Skip to content

Commit 242f2f2

Browse files
authored
Merge branch 'sst:dev' into dev
2 parents 65f90b0 + 26d0280 commit 242f2f2

File tree

267 files changed

+6826
-1674
lines changed

Some content is hidden

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

267 files changed

+6826
-1674
lines changed

.github/workflows/generate.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@ name: generate
22

33
on:
44
push:
5-
branches-ignore:
6-
- production
7-
pull_request:
8-
branches-ignore:
9-
- production
5+
branches:
6+
- dev
107
workflow_dispatch:
118

129
jobs:
1310
generate:
1411
runs-on: blacksmith-4vcpu-ubuntu-2404
1512
permissions:
1613
contents: write
14+
pull-requests: write
1715
steps:
1816
- name: Checkout repository
1917
uses: actions/checkout@v4
@@ -25,14 +23,29 @@ jobs:
2523
- name: Setup Bun
2624
uses: ./.github/actions/setup-bun
2725

28-
- name: Generate SDK
29-
run: |
30-
bun ./packages/sdk/js/script/build.ts
31-
(cd packages/opencode && bun dev generate > ../sdk/openapi.json)
32-
bun x prettier --write packages/sdk/openapi.json
26+
- name: Generate
27+
run: ./script/generate.ts
3328

34-
- name: Format
35-
run: ./script/format.ts
36-
env:
37-
CI: true
38-
PUSH_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
29+
- name: Commit and push
30+
run: |
31+
if [ -z "$(git status --porcelain)" ]; then
32+
echo "No changes to commit"
33+
exit 0
34+
fi
35+
git config --local user.email "action@github.com"
36+
git config --local user.name "GitHub Action"
37+
git add -A
38+
git commit -m "chore: generate"
39+
git push origin HEAD:${{ github.ref_name }} --no-verify
40+
# if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then
41+
# echo ""
42+
# echo "============================================"
43+
# echo "Failed to push generated code."
44+
# echo "Please run locally and push:"
45+
# echo ""
46+
# echo " ./script/generate.ts"
47+
# echo " git add -A && git commit -m \"chore: generate\" && git push"
48+
# echo ""
49+
# echo "============================================"
50+
# exit 1
51+
# fi

.github/workflows/notify-discord.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: discord
22

33
on:
44
release:
5-
types: [published] # fires only when a release is published
5+
types: [released] # fires when a draft release is published
66

77
jobs:
88
notify:

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Install OpenCode
5757
if: inputs.bump || inputs.version
58-
run: bun i -g opencode-ai@1.0.143
58+
run: bun i -g opencode-ai@1.0.169
5959

6060
- name: Login to GitHub Container Registry
6161
uses: docker/login-action@v3
@@ -193,7 +193,7 @@ jobs:
193193
projectPath: packages/tauri
194194
uploadWorkflowArtifacts: true
195195
tauriScript: ${{ (contains(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
196-
args: --target ${{ matrix.settings.target }}
196+
args: --target ${{ matrix.settings.target }} --config src-tauri/tauri.prod.conf.json
197197
updaterJsonPreferNsis: true
198198
releaseId: ${{ needs.publish.outputs.releaseId }}
199199
tagName: ${{ needs.publish.outputs.tagName }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ Session.vim
1919
opencode.json
2020
a.out
2121
target
22+
.scripts

.opencode/agent/triage.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Use your github-triage tool to triage issues.
1313

1414
## Labels
1515

16+
### windows
17+
18+
Use for any issue that mentions Windows (the OS). Be sure they are saying that they are on Windows.
19+
20+
- Use if they mention WSL too
21+
1622
#### perf
1723

1824
Performance-related issues:
@@ -57,6 +63,8 @@ TUI issues potentially caused by our underlying TUI library:
5763

5864
**Do not** add for general TUI bugs.
5965

66+
---
67+
6068
When assigning to people here are the following rules:
6169

6270
adamdotdev:

.opencode/tool/github-triage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default tool({
1717
.describe("The username of the assignee")
1818
.default("rekram1-node"),
1919
labels: tool.schema
20-
.array(tool.schema.enum(["nix", "opentui", "perf", "desktop", "zen", "docs"]))
20+
.array(tool.schema.enum(["nix", "opentui", "perf", "desktop", "zen", "docs", "windows"]))
2121
.describe("The labels(s) to add to the issue")
2222
.default([]),
2323
},

.opencode/tool/github-triage.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,7 @@ Anything related to OpenCode Zen, billing, or model quality from Zen should have
8282
### docs
8383

8484
Anything related to the documentation should have a docs label
85+
86+
### windows
87+
88+
Use for any issue that involves the windows OS

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Want to take on an issue? Leave a comment and a maintainer may assign it to you
4040
- `packages/plugin`: Source for `@opencode-ai/plugin`
4141

4242
> [!NOTE]
43-
> After touching `packages/opencode/src/server/server.ts`, run "./packages/sdk/js/script/build.ts" to regenerate the JS sdk.
43+
> If you make changes to the API or SDK (e.g. `packages/opencode/src/server/server.ts`), run `./script/generate.ts` to regenerate the SDK and related files.
4444
4545
Please try to follow the [style guide](./STYLE_GUIDE.md)
4646

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ If you're interested in contributing to OpenCode, please read our [contributing
9494

9595
### Building on OpenCode
9696

97-
If you are working on a project that's related to OpenCode and is using "opencode" as a part of its name; for example, "opencode-dashboard" or "opencode-mobile", please add a note to your README to clarify that it is not built by the OpenCode team and is not affiliated with us in anyway.
97+
If you are working on a project that's related to OpenCode and is using "opencode" as a part of its name; for example, "opencode-dashboard" or "opencode-mobile", please add a note to your README to clarify that it is not built by the OpenCode team and is not affiliated with us in any way.
9898

9999
### FAQ
100100

STATS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,5 @@
172172
| 2025-12-14 | 1,082,042 (+8,481) | 1,052,425 (+7,817) | 2,134,467 (+16,298) |
173173
| 2025-12-15 | 1,093,632 (+11,590) | 1,059,078 (+6,653) | 2,152,710 (+18,243) |
174174
| 2025-12-16 | 1,120,477 (+26,845) | 1,078,022 (+18,944) | 2,198,499 (+45,789) |
175+
| 2025-12-17 | 1,151,067 (+30,590) | 1,097,661 (+19,639) | 2,248,728 (+50,229) |
176+
| 2025-12-18 | 1,178,658 (+27,591) | 1,113,418 (+15,757) | 2,292,076 (+43,348) |

0 commit comments

Comments
 (0)