Commit 2686e4c
committed
chore: merge OpenCode v1.18.22-sscity
Upstream v1.18.21 (826d9ad, merged at ab828ce) -> v1.18.22 (47b6b6f),
40 commits / 197 files. Upstream superseded the v1.18.21 release commit with
ad0bb6d6 (sync release versions for v1.18.21) in the v1.18.22 lineage; merge
base is 57fa34f (fix anomalyco#43892), effective input identical to the audited
40-commit range.
Functional changes:
- fix(opencode): normalize upgrade endpoint (anomalyco#44686) — target is now a
required semver field, raw-body upgrade handler dropped; groups/handlers
global httpapi + generated SDK (sdk.gen description, types.gen required
target, openapi required:["target"]) adopted whole; fork had no global
httpapi deltas.
- fix: resolve console device URLs (anomalyco#44029) — origin-rooted
verification_uri_complete resolved via URL() with HTTP(S) protocol
validation in account.ts and core plugin/provider/opencode.ts, with
upstream tests for both.
- fix(provider): guard textVerbosity injection for
@ai-sdk/openai-compatible providers (anomalyco#43915) — adopted onto fork
transform.ts; hunks disjoint from GLM/ZhiPu normalization, auto-merged.
- fix: bump Amazon Bedrock provider (anomalyco#43909) — 4.0.112 -> 4.0.158.
- test(opencode): align unknown finish coverage (anomalyco#43895).
- console zen streaming/memory + unblock workspace, stats model
normalization + tooltip truncation, app model provider headers, go
pricing changes, docs + i18n updates.
Conflicts resolved: 30 package.json version bumps (rebranded 1.18.22-sscity),
bun.lock (took upstream, rebranded workspace entries via bun install).
run-process.test.ts reconciled by hand: the shared "unknown stream finish
preserves partial output and continues" test keeps the fork streamError +
auto-ok form; upstream's json variant adopted under its upstream name with
the middle-step expectation adapted to the fork's stronger semantics —
output-less errored streams are retried transparently (adjacent step-starts,
no step-finish part), while the with-output unknown-finish path (step-finish
reason "unknown" then loop continues) stays covered by the fork json test.
Fork retry caps (content-policy maxAttempts) and GLM/ZhiPu transform
normalization preserved; fork small_model_fallback generated SDK/OpenAPI
surfaces kept, merge-consistent with upstream's upgrade regen. Tests from
both sides kept: transform 437, retry 68, account 15, httpapi-global 4,
run-process 15, prompt 62, empty-stream 6, core provider-opencode 12,
stats inference 11, llm package 328 all pass; typecheck 30/30.197 files changed
Lines changed: 1341 additions & 687 deletions
File tree
- nix
- packages
- app
- src/components
- cli
- codemode
- console
- app
- src
- i18n
- routes
- api/support/actions
- download/[channel]
- go
- workspace/[id]/go
- zen/util
- test
- core
- src
- function
- mail
- support
- core
- src/plugin/provider
- test/plugin
- desktop
- effect-drizzle-sqlite
- effect-sqlite-node
- enterprise
- function
- http-recorder
- llm
- opencode
- src
- account
- provider
- server/routes/instance/httpapi
- groups
- handlers
- session
- test
- account
- cli/run
- provider
- server
- session
- plugin
- sdk
- js
- src/v2/gen
- server
- session-ui
- slack
- stats
- app
- src/routes
- [lab]
- core
- src/domain
- server
- tui
- ui
- src/i18n
- web
- src/content/docs
- ar
- bs
- da
- de
- es
- fr
- it
- ja
- ko
- nb
- pl
- pt-br
- ru
- th
- tr
- zh-cn
- zh-tw
- sdks/vscode
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments