Skip to content

Commit 916949b

Browse files
committed
chore(client): sync v2 session import command
2 parents 52074f3 + 2dea1f3 commit 916949b

2,181 files changed

Lines changed: 49714 additions & 14248 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@opencode-ai/core": patch
2+
"@opencode/core": patch
33
---
44

55
Correct directory page headings when the read offset is zero.

‎.github/workflows/deploy-files.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: deploy-files
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- v2
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: deploy-files-${{ github.ref_name }}
12+
cancel-in-progress: false
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
deploy:
19+
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'v2')
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
23+
24+
- uses: ./.github/actions/setup-bun
25+
26+
- name: Typecheck
27+
working-directory: services/files
28+
run: bun typecheck
29+
30+
- name: Deploy
31+
working-directory: services/files
32+
run: bun run deploy --env ${{ github.ref_name == 'v2' && 'production' || 'dev' }}
33+
env:
34+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

‎.github/workflows/deploy-www.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
- uses: ./.github/actions/setup-bun
2525

2626
- name: Build
27-
working-directory: packages/www
27+
working-directory: services/www
2828
run: bun run build
2929
env:
3030
CLOUDFLARE_ENV: ${{ github.ref_name == 'v2' && 'production' || 'dev' }}
3131

3232
- name: Deploy
33-
working-directory: packages/www
33+
working-directory: services/www
3434
run: bun run deploy
3535
env:
3636
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

‎.github/workflows/nix-hashes.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- "bun.lock"
1212
- "package.json"
1313
- "packages/*/package.json"
14+
- "services/*/package.json"
1415
- "flake.lock"
1516
- "nix/node_modules.nix"
1617
- "nix/scripts/**"

‎.github/workflows/publish.yml‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Deploy update service
5050
if: github.ref_name == 'v2'
51-
working-directory: packages/updates
51+
working-directory: services/update
5252
run: bun run deploy
5353
env:
5454
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
@@ -670,19 +670,6 @@ jobs:
670670
git config --global user.name "opencode"
671671
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true
672672
673-
- name: Upload desktop release assets
674-
if: needs.version.outputs.release
675-
env:
676-
GH_TOKEN: ${{ steps.committer.outputs.token }}
677-
run: |
678-
shopt -s nullglob
679-
files=(/tmp/desktop/*.{exe,blockmap,dmg,zip,AppImage,deb,rpm} /tmp/desktop/*.app.tar.gz)
680-
if (( ${#files[@]} == 0 )); then
681-
echo "No desktop release assets found"
682-
exit 1
683-
fi
684-
gh release upload "v${{ needs.version.outputs.version }}" "${files[@]}" --clobber --repo "${{ needs.version.outputs.repo }}"
685-
686673
- run: ./script/publish.ts
687674
env:
688675
OPENCODE_VERSION: ${{ needs.version.outputs.version }}
@@ -694,3 +681,6 @@ jobs:
694681
LATEST_YML_DIR: /tmp/latest-yml
695682
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
696683
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
684+
OPENCODE_DESKTOP_DIST: /tmp/desktop
685+
CLOUDFLARE_ACCOUNT_ID: 15d29c8639fd3733b1b5486a2acfd968
686+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
echo "app=true" >> "$GITHUB_OUTPUT"
5050
exit 0
5151
fi
52-
bun x [email protected] ls --affected --filter=@opencode-ai/app --output=json > affected.json
52+
bun x [email protected] ls --affected --filter=@opencode/app --output=json > affected.json
5353
bun -e 'const result = await Bun.file("affected.json").json(); console.log(`app=${result.packages.count > 0}`)' >> "$GITHUB_OUTPUT"
5454
5555
unit:
@@ -132,10 +132,10 @@ jobs:
132132
timeout-minutes: 15
133133
run: |
134134
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
135-
bun turbo verify:package --filter=@opencode-ai/sdk
135+
bun turbo verify:package --filter=@opencode/sdk
136136
exit 0
137137
fi
138-
bun turbo verify:package --affected --filter=@opencode-ai/sdk
138+
bun turbo verify:package --affected --filter=@opencode/sdk
139139
env:
140140
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && format('{0}^1', github.sha) || github.event.before }}
141141
TURBO_SCM_HEAD: ${{ github.sha }}
@@ -173,7 +173,7 @@ jobs:
173173

174174
- name: Check generated documentation
175175
if: runner.os == 'Linux'
176-
working-directory: packages/www
176+
working-directory: services/www
177177
run: bun run check:generated
178178

179179
e2e:

‎.opencode/tool/github-pr-search.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference path="../env.d.ts" />
2-
import { tool } from "@opencode-ai/plugin"
2+
import { tool } from "@opencode/plugin"
33
async function githubFetch(endpoint: string, options: RequestInit = {}) {
44
const response = await fetch(`https://api.github.com${endpoint}`, {
55
...options,

‎.opencode/tool/github-triage.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference path="../env.d.ts" />
2-
import { tool } from "@opencode-ai/plugin"
2+
import { tool } from "@opencode/plugin"
33

44
const TEAM = {
55
tui: ["kommander", "simonklee"],

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ const { a, b } = obj
8484
### Imports
8585

8686
- Never alias imports. Do not use `import { foo as bar } from "..."` or renamed imports like `resolve as pathResolve`.
87-
- Never use type-position `import("...")` references such as `Schema.declare<import("@opencode-ai/plugin/effect/plugin").Plugin["effect"]>`. Only when two imports genuinely collide on a name and no other option exists, an aliased type import (`import type { Plugin as PluginDefinition } from "..."`) is permitted as a last resort — still strongly preferred not to.
87+
- Never use type-position `import("...")` references such as `Schema.declare<import("@opencode/plugin/effect/plugin").Plugin["effect"]>`. Only when two imports genuinely collide on a name and no other option exists, an aliased type import (`import type { Plugin as PluginDefinition } from "..."`) is permitted as a last resort — still strongly preferred not to.
8888
- Never use star imports. Do not use `import * as Foo from "..."` or `import type * as Foo from "..."`.
89-
- If a namespace-style value is needed, import the module's own exported namespace by name, for example `import { Project } from "@opencode-ai/core/project"`, then reference `Project.ID`.
89+
- If a namespace-style value is needed, import the module's own exported namespace by name, for example `import { Project } from "@opencode/core/project"`, then reference `Project.ID`.
9090
- Prefer dynamic imports for heavy modules that are only needed in selected code paths, especially in startup-sensitive entrypoints. Destructure dynamic import bindings near the top of the narrowest scope that needs them so they read like normal imports. Avoid inline chains such as `await import("./module").then((mod) => mod.value())` or `(await import("./module")).value()`. Keep branch-specific imports inside the branch that needs them to preserve lazy loading.
9191

9292
### Variables

0 commit comments

Comments
 (0)