11488 Commits

Author SHA1 Message Date
ccd881c689 build: 精简构建目标为 5 个主平台
Some checks failed
compliance-close / close-non-compliant (push) Has been cancelled
beta / sync (push) Has been cancelled
docs-update / update-docs (push) Has been cancelled
close-prs / close (push) Has been cancelled
close-issues / close (push) Has been cancelled
stats / stats (push) Has been cancelled
allTargets 只保留 win-x64/darwin-arm64/darwin-x64/linux-x64/linux-arm64,
去掉 musl/baseline 变体,加快构建、减少体积。
去掉 --single 即一次构建全部 5 平台(Bun 交叉编译)。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 21:17:28 +08:00
698ce2fa31 feat: zmo providers login 支持填写自定义 base URL(中转地址)
Some checks failed
compliance-close / close-non-compliant (push) Has been cancelled
beta / sync (push) Has been cancelled
login 填完 API key 后新增一步询问 base URL(留空=官方默认)。
若填写则写入 ~/.config/zmo/zmo.json 的 provider.<id>.options.baseURL,
后续请求自动走中转。key 仍存 auth.json,baseURL 走 config。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 20:54:26 +08:00
6953fce7c6 feat: config 加载支持 zmo.json/zmo.jsonc 文件名(优先于 opencode.*)
全局配置加载、globalConfigFile、项目/.opencode 目录、managed 目录
均加入 zmo.json/zmo.jsonc 查找,优先级高于 opencode.* 兼容名。
用户可直接用 ~/.config/zmo/zmo.jsonc 配置。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 20:46:49 +08:00
52eb90e7c3 feat: 支持用环境变量配 provider baseURL(所有 provider 通用)
resolveSDK 在 config 未设 baseURL 时,回退读环境变量:
专属 <PROVIDER>_BASE_URL(如 OPENAI_BASE_URL/ANTHROPIC_BASE_URL)
> 通用 ZMO_BASE_URL。env.all() 含 process.env,用户设系统环境变量即可。
优先级:config options.baseURL > 专属env > 通用 ZMO_BASE_URL > 官方默认。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 20:43:59 +08:00
324549475b feat: 清除终端标题/provider显示名/TUI 中残留的 opencode
Some checks failed
compliance-close / close-non-compliant (push) Has been cancelled
beta / sync (push) Has been cancelled
docs-update / update-docs (push) Has been cancelled
stats / stats (push) Has been cancelled
- app.tsx: 终端标题 setTerminalTitle 改 zmo(之前改错了 attention 声音通知)
- provider.ts: opencode provider 显示名映射为 "Zmo"(修复底栏 OpenCode Zen,源自远程 models.dev 数据)
- 删除 dialog-provider 里 OpenCode Zen/Go 付费服务介绍段
- footer/attention声音包名/更新提示/dialog-status/error上报URL/docs链接 → zmo

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 18:44:47 +08:00
c034a178b9 feat: Windows 下 zmo upgrade 支持自更新
Some checks failed
compliance-close / close-non-compliant (push) Has been cancelled
- installation/index.ts 新增 Windows 升级路径:下载 release zip →
  PowerShell 解压 → 写 .cmd 在进程退出后替换 exe(绕过运行中文件锁)
- method() 在 Windows 兜底返回 curl,让手动下载的 exe 也能走自动更新
- 修 cmd/upgrade.ts 残留的 "opencode upgrade skipped" 文案

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 18:06:09 +08:00
5bd92a3535 feat: 全面清除用户/AI可见的 opencode 痕迹
Some checks failed
compliance-close / close-non-compliant (push) Has been cancelled
beta / sync (push) Has been cancelled
- system.ts 不再把真实 model id 喂给 LLM(修复"底层是opencode/big-pickle")
- TUI 首页 tips、窗口标题、ACP 弹窗、命令提示文案全部 → zmo
- config schema URL → zmo.dev;配置路径提示 → ~/.config/zmo、.zmo/
- 发给各家 LLM API 的标识头(X-Title/Referer/Source/UA/originator)→ zmo
- 保留:opencode provider 路由id、@opencode-ai 包名、opencode.json/OPENCODE_* 兼容

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 17:49:47 +08:00
9970e6c1ad feat: AI 身份改为 zmo + 更新机制指向自有仓库
Some checks failed
compliance-close / close-non-compliant (push) Has been cancelled
beta / sync (push) Has been cancelled
- 8 个系统提示词 txt 的 "You are opencode/OpenCode" 改为 zmo,问"你是谁"答 zmo
- copilot-gpt-5 的 "Your name is" 同步改 zmo
- 更新机制(installation/index.ts)指向 helpLogin/zmo-cli:
  GitHub release API、install 脚本地址、.zmo/bin 路径检测、userAgent
  使以后发布的新版能更新到自有 zmo 版本,而非被覆盖回 opencode
- zenmux X-Title/Referer 改为 zmo 标识

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 16:58:11 +08:00
0f474f9f27 fix: 修复 Windows clone 退化的 custom-elements.d.ts symlink
app/enterprise 两个包的 custom-elements.d.ts 是指向 ui 包的符号链接,
Windows clone 时退化成纯文本路径,导致全量 typecheck(pre-push 钩子)失败。
填入真实声明内容以恢复,与 CLI 逻辑无关。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 14:01:22 +08:00
b345dfcc50 rebrand: 将 opencode 改造为 zmo CLI 并隐藏非 CLI 命令
为打造自有纯 CLI 产品 zmo(类 Claude Code),在保留上游同步能力的前提下做套壳改造:
- 入口隐藏 9 个非 CLI 命令(console/web/github/pr/stats/export/import/db/debug)
- 全面 rebrand:scriptName、Logo、配置目录(~/.config/zmo)、bin 名、构建产物、可见文案
- env 双读兼容(ZMO_* 优先,回退 OPENCODE_*),配置文件名新增 zmo.json
- 刻意保留 @opencode-ai/* 内部包名与 opencode provider,避免破坏功能与上游同步

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 04:33:26 +08:00
Aiden Cline
cc9b73b0bd tweak: background agent prompting to avoid polling issues (#30790) 2026-06-04 14:18:03 -05:00
opencode-agent[bot]
fe5ac304b5 chore: generate 2026-06-04 19:09:33 +00:00
James Long
ba1b660d57 feat(core): moving sessions (#30640) 2026-06-04 15:07:46 -04:00
Colin McDonnell
e45e0e1125 fix: bump @openrouter/ai-sdk-provider to 2.9.0 (#30800) 2026-06-04 14:05:51 -05:00
Aiden Cline
5b14fb4a1b fix(tui): add Vue syntax highlighting (#30802) 2026-06-04 14:02:11 -05:00
Aiden Cline
730ea6d2e3 fix(opencode): attribute task child agent on creation (#30786) 2026-06-04 13:19:46 -05:00
LIU Xinyu
21a0fdd4c0 fix(opencode): ACP.loadSession should replay all messages (#30761)
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
2026-06-04 23:14:21 +05:30
Ariane Emory
cb65926c82 fix(tui): show toast when variant_list keybind used with no variants (#30724) 2026-06-04 12:14:24 -05:00
Dax Raad
94c49b20ba make scripts executable 2026-06-04 11:19:36 -04:00
Dax Raad
7f54b1bfb8 fix build 2026-06-04 11:11:23 -04:00
opencode-agent[bot]
789e4d57b9 fix(enterprise): install hono standard validator peer (#30740)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-06-04 10:55:22 -04:00
Frank
f5d1ae6a9e zen: nemotron 3 ultra 2026-06-04 10:40:58 -04:00
Shoubhit Dash
7e09660c3b fix(opencode): respect disabled auto compaction on overflow (#30749) 2026-06-04 19:47:49 +05:30
Shoubhit Dash
6d4f3b4ab2 feat(tui): improve experimental session switcher (#30738) 2026-06-04 19:22:01 +05:30
Kit Langton
caea930074 fix(core): reset pre-launch session projections (#30728) 2026-06-04 09:43:10 -04:00
opencode-agent[bot]
69cfc44dba fix(acp): replay loaded session transcript (#30645)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
2026-06-04 12:35:57 +05:30
opencode-agent[bot]
30ec231aaf chore: generate 2026-06-04 06:59:09 +00:00
Dax
1ff19103a2 feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00
Aiden Cline
70bb710715 refactor(opencode): clean up task tool prompts (#30687) 2026-06-04 00:44:00 -05:00
Aiden Cline
74a27dbf98 test: wait for shell truncation readiness (#30679) 2026-06-04 00:20:35 -05:00
Aiden Cline
9f42bd4a85 feat: bump bedrock and add proper mantle support for openai models through aws bedrock (#30464) 2026-06-04 00:09:12 -05:00
Aiden Cline
2a33addd29 fix(opencode): avoid shell cancel race (#30641) 2026-06-03 22:44:25 -05:00
Aiden Cline
9251e5d8c4 docs: correct compaction prune default (#30670) 2026-06-03 22:37:39 -05:00
opencode-agent[bot]
b0a929440b chore: generate 2026-06-04 03:03:39 +00:00
Kit Langton
76ee87ead8 feat(core): add embedded v2 session runtime and tool foundation (#30632) 2026-06-03 23:02:17 -04:00
Brendan Allan
c35267776a fix(app,ui): session review reactivity and VCS query cache (#30660) 2026-06-04 02:59:56 +00:00
Luke Parker
55bafa29d4 feat(app): v2 thinking level selector (#30646) 2026-06-04 11:35:30 +10:00
Luke Parker
f62ba5eb86 fix(app): hide unavailable titlebar update (#30642) 2026-06-03 23:51:40 +00:00
opencode-agent[bot]
04b38ce830 chore: generate 2026-06-03 23:42:15 +00:00
Jérôme Benoit
0b796c5f3d fix(opencode): route SAP AI Core reasoning variants through modelParams (#30482) 2026-06-03 18:40:39 -05:00
Frank
fa6ea8bd25 zen: update nvidia tos 2026-06-03 19:09:02 -04:00
Aiden Cline
ee74dd83f5 fix(opencode): preserve variant for delegated tasks (#30630) 2026-06-03 17:43:47 -05:00
Aiden Cline
d3d4335509 chore: remove zed extension and automation (#30628) 2026-06-03 17:16:21 -05:00
Adam
2c32f7e520 fix(stats): count all go usage 2026-06-03 17:06:33 -05:00
opencode-agent[bot]
a41f774cad chore: generate 2026-06-03 21:00:33 +00:00
Dax
889e0f9545 feat(core): add skill registry and file agent loading (#30617) 2026-06-03 16:58:34 -04:00
Aiden Cline
9991a33e3f fix(core): expose azure openai xhigh efforts (#30620) 2026-06-03 15:27:23 -05:00
Dax
11dbd15812 refactor(core): nest model api id (#30603) 2026-06-03 14:11:38 -04:00
opencode-agent[bot]
af6383485b chore: generate 2026-06-03 17:51:22 +00:00
Dax
5900345f8c test(core): cover v1 provider option lowering (#30599) 2026-06-03 17:49:28 +00:00