Skip to content

Commit af8988f

Browse files
committed
sync: merge upstream v1.2.27 into shuvcode-dev
2 parents d40d473 + 4ee426b commit af8988f

593 files changed

Lines changed: 27549 additions & 10630 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.

.github/actions/setup-bun/action.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ description: "Setup Bun with caching and install dependencies"
33
runs:
44
using: "composite"
55
steps:
6-
- name: Cache Bun dependencies
7-
uses: actions/cache@v4
8-
with:
9-
path: ~/.bun/install/cache
10-
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
11-
restore-keys: |
12-
${{ runner.os }}-bun-
13-
146
- name: Get baseline download URL
157
id: bun-url
168
shell: bash
@@ -31,6 +23,23 @@ runs:
3123
bun-version-file: ${{ !steps.bun-url.outputs.url && 'package.json' || '' }}
3224
bun-download-url: ${{ steps.bun-url.outputs.url }}
3325

26+
- name: Get cache directory
27+
id: cache
28+
shell: bash
29+
run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
30+
31+
- name: Cache Bun dependencies
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ steps.cache.outputs.dir }}
35+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-bun-
38+
39+
- name: Install setuptools for distutils compatibility
40+
run: python3 -m pip install setuptools || pip install setuptools || true
41+
shell: bash
42+
3443
- name: Install dependencies
3544
run: bun install
3645
shell: bash

.github/workflows/publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ jobs:
115115
target: x86_64-apple-darwin
116116
- host: macos-latest
117117
target: aarch64-apple-darwin
118+
# github-hosted: blacksmith lacks ARM64 MSVC cross-compilation toolchain
119+
- host: windows-2025
120+
target: aarch64-pc-windows-msvc
118121
- host: blacksmith-4vcpu-windows-2025
119122
target: x86_64-pc-windows-msvc
120123
- host: blacksmith-4vcpu-ubuntu-2404
@@ -149,6 +152,10 @@ jobs:
149152
150153
- uses: ./.github/actions/setup-bun
151154

155+
- uses: actions/setup-node@v4
156+
with:
157+
node-version: "24"
158+
152159
- name: Cache apt packages
153160
if: contains(matrix.settings.host, 'ubuntu')
154161
uses: actions/cache@v4
@@ -254,6 +261,10 @@ jobs:
254261
- host: macos-latest
255262
target: aarch64-apple-darwin
256263
platform_flag: --mac --arm64
264+
# github-hosted: blacksmith lacks ARM64 MSVC cross-compilation toolchain
265+
- host: "windows-2025"
266+
target: aarch64-pc-windows-msvc
267+
platform_flag: --win --arm64
257268
- host: "blacksmith-4vcpu-windows-2025"
258269
target: x86_64-pc-windows-msvc
259270
platform_flag: --win

.github/workflows/test.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ on:
77
- integration
88
pull_request:
99
workflow_dispatch:
10+
11+
concurrency:
12+
# Keep every run on dev so cancelled checks do not pollute the default branch
13+
# commit history. PRs and other branches still share a group and cancel stale runs.
14+
group: ${{ case(github.ref == 'refs/heads/dev', format('{0}-{1}', github.workflow, github.run_id), format('{0}-{1}', github.workflow, github.event.pull_request.number || github.ref)) }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
1020
jobs:
1121
unit:
1222
name: unit (${{ matrix.settings.name }})
@@ -143,18 +153,3 @@ jobs:
143153
path: |
144154
packages/app/e2e/test-results
145155
packages/app/e2e/playwright-report
146-
147-
required:
148-
name: test (linux)
149-
runs-on: blacksmith-4vcpu-ubuntu-2404
150-
needs:
151-
- unit
152-
- e2e
153-
if: always()
154-
steps:
155-
- name: Verify upstream test jobs passed
156-
run: |
157-
echo "unit=${{ needs.unit.result }}"
158-
echo "e2e=${{ needs.e2e.result }}"
159-
test "${{ needs.unit.result }}" = "success"
160-
test "${{ needs.e2e.result }}" = "success"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ts-dist
1717
/result
1818
refs
1919
Session.vim
20-
opencode.json
20+
/opencode.json
2121
a.out
2222
target
2323
.scripts

.opencode/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
plans/
22
bun.lock
33
package.json
4+
package-lock.json

.opencode/tool/github-triage.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ Choose labels and assignee using the current triage policy and ownership rules.
44
Pick the most fitting labels for the issue and assign one owner.
55

66
If unsure, choose the team/section with the most overlap with the issue and assign a member from that team at random.
7-
8-
(Note: rekram1-node is on vacation, do not assign issues to him.)

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,7 @@ const table = sqliteTable("session", {
147147
- Avoid mocks as much as possible
148148
- Test actual implementation, do not duplicate logic into tests
149149
- Tests cannot run from repo root (guard: `do-not-run-tests-from-root`); run from package dirs like `packages/opencode`.
150+
151+
## Type Checking
152+
153+
- Always run `bun typecheck` from package directories (e.g., `packages/opencode`), never `tsc` directly.

README.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ OpenCode 内置两种 Agent,可用 `Tab` 键快速切换:
137137

138138
---
139139

140-
**加入我们的社区** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)
140+
**加入我们的社区** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true) | [X.com](https://x.com/opencode)

README.zht.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ OpenCode 內建了兩種 Agent,您可以使用 `Tab` 鍵快速切換。
137137

138138
---
139139

140-
**加入我們的社群** [Discord](https://discord.gg/opencode) | [X.com](https://x.com/opencode)
140+
**加入我們的社群** [飞书](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=de8k6664-1b5e-43f2-8efd-21d6772647b5&qr_code=true) | [X.com](https://x.com/opencode)

0 commit comments

Comments
 (0)