Skip to content

Commit 7c544e7

Browse files
author
anduimagui
committed
Merge remote-tracking branch 'upstream/dev' into dev
2 parents e51eab5 + 5ffcde9 commit 7c544e7

1,432 files changed

Lines changed: 10473 additions & 11799 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: format
1+
name: generate
22

33
on:
44
push:
@@ -8,8 +8,9 @@ on:
88
branches-ignore:
99
- production
1010
workflow_dispatch:
11+
1112
jobs:
12-
format:
13+
generate:
1314
runs-on: blacksmith-4vcpu-ubuntu-2404
1415
permissions:
1516
contents: write
@@ -24,9 +25,14 @@ jobs:
2425
- name: Setup Bun
2526
uses: ./.github/actions/setup-bun
2627

27-
- name: run
28+
- name: Generate SDK
2829
run: |
29-
./script/format.ts
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
33+
34+
- name: Format
35+
run: ./script/format.ts
3036
env:
3137
CI: true
3238
PUSH_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}

.github/workflows/opencode.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ jobs:
2929
uses: sst/opencode/github@latest
3030
env:
3131
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
32+
OPENCODE_PERMISSION: '{"bash": "deny"}'
3233
with:
3334
model: opencode/claude-haiku-4-5

.github/workflows/publish.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ name: publish
22
run-name: "${{ format('release {0}', inputs.bump) }}"
33

44
on:
5+
push:
6+
branches:
7+
- dev
8+
- snapshot-*
59
workflow_dispatch:
610
inputs:
711
bump:
812
description: "Bump major, minor, or patch"
9-
required: true
13+
required: false
1014
type: choice
1115
options:
1216
- major
@@ -20,6 +24,7 @@ on:
2024
concurrency: ${{ github.workflow }}-${{ github.ref }}
2125

2226
permissions:
27+
id-token: write
2328
contents: write
2429
packages: write
2530

@@ -34,20 +39,13 @@ jobs:
3439

3540
- run: git fetch --force --tags
3641

37-
- uses: actions/setup-go@v5
38-
with:
39-
go-version: ">=1.24.0"
40-
cache: true
41-
cache-dependency-path: go.sum
42-
4342
- uses: ./.github/actions/setup-bun
4443

45-
- name: Install makepkg
44+
- name: Setup SSH for AUR
45+
if: inputs.bump || inputs.version
4646
run: |
4747
sudo apt-get update
4848
sudo apt-get install -y pacman-package-manager
49-
- name: Setup SSH for AUR
50-
run: |
5149
mkdir -p ~/.ssh
5250
echo "${{ secrets.AUR_KEY }}" > ~/.ssh/id_rsa
5351
chmod 600 ~/.ssh/id_rsa
@@ -56,11 +54,8 @@ jobs:
5654
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true
5755
5856
- name: Install OpenCode
59-
run: curl -fsSL https://opencode.ai/install | bash
60-
61-
- name: Setup npm auth
62-
run: |
63-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
57+
if: inputs.bump || inputs.version
58+
run: bun i -g opencode-ai@1.0.143
6459

6560
- name: Login to GitHub Container Registry
6661
uses: docker/login-action@v3
@@ -69,29 +64,39 @@ jobs:
6964
username: ${{ github.repository_owner }}
7065
password: ${{ secrets.GITHUB_TOKEN }}
7166

67+
- uses: actions/setup-node@v4
68+
with:
69+
node-version: "24"
70+
registry-url: "https://registry.npmjs.org"
71+
7272
- name: Publish
73-
run: |
74-
./script/publish.ts
73+
id: publish
74+
run: ./script/publish.ts
7575
env:
7676
OPENCODE_BUMP: ${{ inputs.bump }}
7777
OPENCODE_VERSION: ${{ inputs.version }}
78-
OPENCODE_CHANNEL: latest
79-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
80-
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
81-
AUR_KEY: ${{ secrets.AUR_KEY }}
8278
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
79+
AUR_KEY: ${{ secrets.AUR_KEY }}
80+
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
81+
NPM_CONFIG_PROVENANCE: false
82+
outputs:
83+
releaseId: ${{ steps.publish.outputs.releaseId }}
84+
tagName: ${{ steps.publish.outputs.tagName }}
8385

8486
publish-tauri:
87+
needs: publish
88+
continue-on-error: true
8589
strategy:
90+
fail-fast: false
8691
matrix:
8792
settings:
8893
- host: macos-latest
8994
target: x86_64-apple-darwin
9095
- host: macos-latest
9196
target: aarch64-apple-darwin
92-
- host: windows-latest
97+
- host: blacksmith-4vcpu-windows-2025
9398
target: x86_64-pc-windows-msvc
94-
- host: ubuntu-24.04
99+
- host: blacksmith-4vcpu-ubuntu-2404
95100
target: x86_64-unknown-linux-gnu
96101
runs-on: ${{ matrix.settings.host }}
97102
steps:
@@ -124,7 +129,7 @@ jobs:
124129
- uses: ./.github/actions/setup-bun
125130

126131
- name: install dependencies (ubuntu only)
127-
if: startsWith(matrix.settings.host, 'ubuntu')
132+
if: contains(matrix.settings.host, 'ubuntu')
128133
run: |
129134
sudo apt-get update
130135
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
@@ -156,7 +161,7 @@ jobs:
156161

157162
# Fixes AppImage build issues, can be removed when https://github.com/tauri-apps/tauri/pull/12491 is released
158163
- run: cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch feat/truly-portable-appimage
159-
if: startsWith(matrix.settings.host, 'ubuntu')
164+
if: contains(matrix.settings.host, 'ubuntu')
160165

161166
- name: Build and upload artifacts
162167
uses: tauri-apps/tauri-action@390cbe447412ced1303d35abe75287949e43437a
@@ -174,7 +179,9 @@ jobs:
174179
with:
175180
projectPath: packages/tauri
176181
uploadWorkflowArtifacts: true
177-
tauriScript: ${{ (startsWith(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
182+
tauriScript: ${{ (contains(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
178183
args: --target ${{ matrix.settings.target }}
179184
updaterJsonPreferNsis: true
180-
# releaseId: TODO
185+
releaseId: ${{ needs.publish.outputs.releaseId }}
186+
tagName: ${{ needs.publish.outputs.tagName }}
187+
releaseAssetNamePattern: opencode-desktop-[platform]-[arch][ext]

.github/workflows/sdk.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/snapshot.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/sync-zed-extension.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: "sync-zed-extension"
22

33
on:
44
workflow_dispatch:
5-
release:
6-
types: [published]
5+
# release:
6+
# types: [published]
77

88
jobs:
99
zed:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ node_modules
99
playground
1010
tmp
1111
dist
12+
ts-dist
1213
.turbo
1314
**/.serena
1415
.serena/

.opencode/command/commit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
description: git commit and push
3+
model: opencode/glm-4.6
34
---
45

56
commit and push

.opencode/opencode.jsonc

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
3-
"plugin": ["opencode-openai-codex-auth"],
3+
// "plugin": ["opencode-openai-codex-auth"],
44
// "enterprise": {
55
// "url": "https://enterprise.dev.opencode.ai",
66
// },
77
"instructions": ["STYLE_GUIDE.md"],
88
"provider": {
99
"opencode": {
10-
"options": {
11-
// "baseURL": "http://localhost:8080",
12-
},
13-
},
14-
},
15-
"mcp": {
16-
"exa": {
17-
"type": "remote",
18-
"url": "https://mcp.exa.ai/mcp",
19-
},
20-
"morph": {
21-
"type": "local",
22-
"command": ["bunx", "@morphllm/morphmcp"],
23-
"environment": {
24-
"ENABLED_TOOLS": "warp_grep",
25-
},
10+
"options": {},
2611
},
2712
},
2813
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</picture>
88
</a>
99
</p>
10-
<p align="center">The AI coding agent built for the terminal.</p>
10+
<p align="center">The open source AI coding agent.</p>
1111
<p align="center">
1212
<a href="https://opencode.ai/discord"><img alt="Discord" src="https://img.shields.io/discord/1391832426048651334?style=flat-square&label=discord" /></a>
1313
<a href="https://www.npmjs.com/package/opencode-ai"><img alt="npm" src="https://img.shields.io/npm/v/opencode-ai?style=flat-square" /></a>
@@ -30,7 +30,7 @@ scoop bucket add extras; scoop install extras/opencode # Windows
3030
choco install opencode # Windows
3131
brew install opencode # macOS and Linux
3232
paru -S opencode-bin # Arch Linux
33-
mise use --pin -g ubi:sst/opencode # Any OS
33+
mise use -g ubi:sst/opencode # Any OS
3434
nix run nixpkgs#opencode # or github:sst/opencode for latest dev branch
3535
```
3636

0 commit comments

Comments
 (0)