Skip to content

Commit ac78aa5

Browse files
authored
Merge branch 'dev' into fix/diff-fg-light-mode
2 parents 4391f10 + 73c5c32 commit ac78aa5

File tree

628 files changed

+37329
-42210
lines changed

Some content is hidden

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

628 files changed

+37329
-42210
lines changed

.github/workflows/duplicate-issues.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ jobs:
5555
5656
Feel free to ignore if none of these address your specific case.'
5757
58+
Additionally, if the issue mentions keybinds, keyboard shortcuts, or key bindings, please add a comment mentioning the pinned keybinds issue #4997:
59+
'For keybind-related issues, please also check our pinned keybinds documentation: #4997'
60+
5861
If no clear duplicates are found, do not comment."

.github/workflows/format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
22+
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}
2123

2224
- name: Setup Bun
2325
uses: ./.github/actions/setup-bun
@@ -27,3 +29,4 @@ jobs:
2729
./script/format.ts
2830
env:
2931
CI: true
32+
PUSH_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}

.github/workflows/publish.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ permissions:
2626
jobs:
2727
publish:
2828
runs-on: blacksmith-4vcpu-ubuntu-2404
29+
if: github.repository == 'sst/opencode' && github.ref == 'refs/heads/dev'
2930
steps:
3031
- uses: actions/checkout@v3
3132
with:
@@ -79,3 +80,103 @@ jobs:
7980
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
8081
AUR_KEY: ${{ secrets.AUR_KEY }}
8182
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
83+
84+
publish-tauri:
85+
continue-on-error: true
86+
strategy:
87+
fail-fast: false
88+
matrix:
89+
settings:
90+
- host: macos-latest
91+
target: x86_64-apple-darwin
92+
- host: macos-latest
93+
target: aarch64-apple-darwin
94+
- host: windows-latest
95+
target: x86_64-pc-windows-msvc
96+
- host: ubuntu-24.04
97+
target: x86_64-unknown-linux-gnu
98+
runs-on: ${{ matrix.settings.host }}
99+
steps:
100+
- uses: actions/checkout@v3
101+
with:
102+
fetch-depth: 0
103+
104+
- uses: apple-actions/import-codesign-certs@v2
105+
if: ${{ runner.os == 'macOS' }}
106+
with:
107+
keychain: build
108+
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
109+
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
110+
111+
- name: Verify Certificate
112+
if: ${{ runner.os == 'macOS' }}
113+
run: |
114+
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
115+
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
116+
echo "CERT_ID=$CERT_ID" >> $GITHUB_ENV
117+
echo "Certificate imported."
118+
119+
- name: Setup Apple API Key
120+
if: ${{ runner.os == 'macOS' }}
121+
run: |
122+
echo "${{ secrets.APPLE_API_KEY_PATH }}" > $RUNNER_TEMP/apple-api-key.p8
123+
124+
- run: git fetch --force --tags
125+
126+
- uses: ./.github/actions/setup-bun
127+
128+
- name: install dependencies (ubuntu only)
129+
if: startsWith(matrix.settings.host, 'ubuntu')
130+
run: |
131+
sudo apt-get update
132+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
133+
134+
- name: install Rust stable
135+
uses: dtolnay/rust-toolchain@stable
136+
with:
137+
targets: ${{ matrix.settings.target }}
138+
139+
- uses: Swatinem/rust-cache@v2
140+
with:
141+
workspaces: packages/tauri/src-tauri
142+
shared-key: ${{ matrix.settings.target }}
143+
144+
- name: Prepare
145+
run: |
146+
cd packages/tauri
147+
bun ./scripts/prepare.ts
148+
env:
149+
OPENCODE_BUMP: ${{ inputs.bump }}
150+
OPENCODE_VERSION: ${{ inputs.version }}
151+
OPENCODE_CHANNEL: latest
152+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
153+
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
154+
AUR_KEY: ${{ secrets.AUR_KEY }}
155+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
156+
RUST_TARGET: ${{ matrix.settings.target }}
157+
GH_TOKEN: ${{ github.token }}
158+
159+
# Fixes AppImage build issues, can be removed when https://github.com/tauri-apps/tauri/pull/12491 is released
160+
- run: cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch feat/truly-portable-appimage
161+
if: startsWith(matrix.settings.host, 'ubuntu')
162+
163+
- name: Build and upload artifacts
164+
uses: tauri-apps/tauri-action@390cbe447412ced1303d35abe75287949e43437a
165+
env:
166+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167+
TAURI_BUNDLER_NEW_APPIMAGE_FORMAT: true
168+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
169+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
170+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
171+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
172+
APPLE_SIGNING_IDENTITY: ${{ env.CERT_ID }}
173+
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
174+
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
175+
APPLE_API_KEY_PATH: ${{ runner.temp }}/apple-api-key.p8
176+
with:
177+
projectPath: packages/tauri
178+
uploadWorkflowArtifacts: true
179+
tauriScript: ${{ (startsWith(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
180+
args: --target ${{ matrix.settings.target }}
181+
updaterJsonPreferNsis: true
182+
# releaseId: TODO

.github/workflows/review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ jobs:
4646
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
OPENCODE_PERMISSION: '{ "bash": { "gh*": "allow", "gh pr review*": "deny", "*": "deny" } }'
49+
PR_TITLE: ${{ steps.pr-details.outputs.title }}
4950
run: |
5051
PR_BODY=$(jq -r .body pr_data.json)
51-
opencode run -m anthropic/claude-sonnet-4-5 "A new pull request has been created: '${{ steps.pr-details.outputs.title }}'
52+
opencode run -m anthropic/claude-opus-4-5 "A new pull request has been created: '${PR_TITLE}'
5253
5354
<pr-number>
5455
${{ steps.pr-number.outputs.number }}
@@ -75,4 +76,4 @@ jobs:
7576
-f 'body=[summary of issue]' -f 'commit_id=${{ steps.pr-details.outputs.sha }}' -f 'path=[path-to-file]' -F \"line=[line]\" -f 'side=RIGHT'
7677
\`\`\`
7778
78-
Only create comments for actual violations. If the code follows all guidelines, don't run any gh commands."
79+
Only create comments for actual violations. If the code follows all guidelines, comment on the issue using gh cli: 'lgtm' AND NOTHING ELSE!!!!."

.github/workflows/sdk.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: sdk
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- production
7+
pull_request:
8+
branches-ignore:
9+
- production
10+
workflow_dispatch:
11+
jobs:
12+
format:
13+
runs-on: blacksmith-4vcpu-ubuntu-2404
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Setup Bun
23+
uses: ./.github/actions/setup-bun
24+
25+
- name: run
26+
run: |
27+
bun ./packages/sdk/js/script/build.ts
28+
(cd packages/opencode && bun dev generate > ../sdk/openapi.json)
29+
if [ -z "$(git status --porcelain)" ]; then
30+
echo "No changes to commit"
31+
exit 0
32+
fi
33+
git config --local user.email "[email protected]"
34+
git config --local user.name "GitHub Action"
35+
git add -A
36+
git commit -m "chore: regen sdk"
37+
git push --no-verify
38+
env:
39+
CI: true

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,3 @@ jobs:
2828
bun turbo test
2929
env:
3030
CI: true
31-
32-
- name: Check SDK is up to date
33-
run: |
34-
bun ./packages/sdk/js/script/build.ts
35-
git diff --exit-code packages/sdk/js/src/gen packages/sdk/js/dist
36-
continue-on-error: false

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ node_modules
66
.idea
77
.vscode
88
*~
9-
openapi.json
109
playground
1110
tmp
1211
dist
@@ -18,3 +17,4 @@ refs
1817
Session.vim
1918
opencode.json
2019
a.out
20+
target

.opencode/command/hello.md

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

.opencode/command/rmslop.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
description: Remove AI code slop
3+
---
4+
5+
Check the diff against dev, and remove all AI generated slop introduced in this branch.
6+
7+
This includes:
8+
9+
- Extra comments that a human wouldn't add or is inconsistent with the rest of the file
10+
- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
11+
- Casts to any to get around type issues
12+
- Any other style that is inconsistent with the file
13+
- Unnecessary emoji usage
14+
15+
Report at the end with only a 1-3 sentence summary of what you changed

0 commit comments

Comments
 (0)