Skip to content

Commit eaeea49

Browse files
committed
Merge branch 'dev' into feat/permission-indicator-in-sidebar
2 parents 9518e89 + 6baee07 commit eaeea49

File tree

153 files changed

+3035
-1309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+3035
-1309
lines changed

.github/workflows/docs-update.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Docs Update
2+
3+
on:
4+
schedule:
5+
# Run every 4 hours
6+
- cron: "0 */4 * * *"
7+
workflow_dispatch: # Allow manual trigger for testing
8+
9+
jobs:
10+
update-docs:
11+
if: github.repository == 'sst/opencode'
12+
runs-on: blacksmith-4vcpu-ubuntu-2404
13+
permissions:
14+
id-token: write
15+
contents: write
16+
pull-requests: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # Fetch full history to access commits
22+
23+
- name: Setup Bun
24+
uses: ./.github/actions/setup-bun
25+
26+
- name: Get recent commits
27+
id: commits
28+
run: |
29+
COMMITS=$(git log --since="4 hours ago" --pretty=format:"- %h %s" 2>/dev/null || echo "")
30+
if [ -z "$COMMITS" ]; then
31+
echo "No commits in the last 4 hours"
32+
echo "has_commits=false" >> $GITHUB_OUTPUT
33+
else
34+
echo "has_commits=true" >> $GITHUB_OUTPUT
35+
{
36+
echo "list<<EOF"
37+
echo "$COMMITS"
38+
echo "EOF"
39+
} >> $GITHUB_OUTPUT
40+
fi
41+
42+
- name: Run opencode
43+
if: steps.commits.outputs.has_commits == 'true'
44+
uses: sst/opencode/github@latest
45+
env:
46+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
47+
with:
48+
model: opencode/gpt-5.2
49+
agent: docs
50+
prompt: |
51+
Review the following commits from the last 4 hours and identify any new features that may need documentation.
52+
53+
<recent_commits>
54+
${{ steps.commits.outputs.list }}
55+
</recent_commits>
56+
57+
Steps:
58+
1. For each commit that looks like a new feature or significant change:
59+
- Read the changed files to understand what was added
60+
- Check if the feature is already documented in packages/web/src/content/docs/*
61+
2. If you find undocumented features:
62+
- Update the relevant documentation files in packages/web/src/content/docs/*
63+
- Follow the existing documentation style and structure
64+
- Make sure to document the feature clearly with examples where appropriate
65+
3. If all new features are already documented, report that no updates are needed
66+
4. If you are creating a new documentation file be sure to update packages/web/astro.config.mjs too.
67+
68+
Focus on user-facing features and API changes. Skip internal refactors, bug fixes, and test updates unless they affect user-facing behavior.
69+
Don't feel the need to document every little thing. It is perfectly okay to make 0 changes at all.
70+
Try to keep documentation only for large features or changes that already have a good spot to be documented.

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ jobs:
7979
AUR_KEY: ${{ secrets.AUR_KEY }}
8080
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
8181
NPM_CONFIG_PROVENANCE: false
82+
83+
- uses: actions/upload-artifact@v4
84+
with:
85+
name: opencode-cli
86+
path: packages/opencode/dist
87+
8288
outputs:
8389
release: ${{ steps.publish.outputs.release }}
8490
tag: ${{ steps.publish.outputs.tag }}
@@ -99,6 +105,8 @@ jobs:
99105
target: x86_64-pc-windows-msvc
100106
- host: blacksmith-4vcpu-ubuntu-2404
101107
target: x86_64-unknown-linux-gnu
108+
- host: blacksmith-4vcpu-ubuntu-2404-arm
109+
target: aarch64-unknown-linux-gnu
102110
runs-on: ${{ matrix.settings.host }}
103111
steps:
104112
- uses: actions/checkout@v3
@@ -147,7 +155,6 @@ jobs:
147155
shared-key: ${{ matrix.settings.target }}
148156

149157
- name: Prepare
150-
if: inputs.bump || inputs.version
151158
run: |
152159
cd packages/tauri
153160
bun ./scripts/prepare.ts
@@ -159,6 +166,7 @@ jobs:
159166
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
160167
RUST_TARGET: ${{ matrix.settings.target }}
161168
GH_TOKEN: ${{ github.token }}
169+
GITHUB_RUN_ID: ${{ github.run_id }}
162170

163171
# Fixes AppImage build issues, can be removed when https://github.com/tauri-apps/tauri/pull/12491 is released
164172
- name: Install tauri-cli from portable appimage branch
@@ -186,7 +194,7 @@ jobs:
186194
projectPath: packages/tauri
187195
uploadWorkflowArtifacts: true
188196
tauriScript: ${{ (contains(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
189-
args: --target ${{ matrix.settings.target }} --config src-tauri/tauri.prod.conf.json
197+
args: --target ${{ matrix.settings.target }} --config ./src-tauri/tauri.prod.conf.json --verbose
190198
updaterJsonPreferNsis: true
191199
releaseId: ${{ needs.publish.outputs.release }}
192200
tagName: ${{ needs.publish.outputs.tag }}

STATS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,4 @@
177177
| 2025-12-19 | 1,203,485 (+24,827) | 1,129,698 (+16,280) | 2,333,183 (+41,107) |
178178
| 2025-12-20 | 1,223,000 (+19,515) | 1,146,258 (+16,560) | 2,369,258 (+36,075) |
179179
| 2025-12-21 | 1,242,675 (+19,675) | 1,158,909 (+12,651) | 2,401,584 (+32,326) |
180+
| 2025-12-22 | 1,262,522 (+19,847) | 1,169,121 (+10,212) | 2,431,643 (+30,059) |

0 commit comments

Comments
 (0)