合并 tjwater-cli 到 main #1

Merged
jiang merged 73 commits from tjwater-cli into main 2026-08-18 17:56:45 +08:00
Owner

合并说明

tjwater-cli@18e8b25 合并到 main,统一 Agent 服务、TJWater CLI、权限控制、结果引用和容器门禁。客户交付版不在本 PR 范围内。

已完成 main 祖先整合,并修复 CLI 子进程无界输出、超时孤儿进程、SIGKILL 兜底和 stdin EPIPE 问题。Server 的传感器布置公开合同已同步收敛,现有 CLI 请求字段可通过后端验证。

最终门禁

  • TypeScript 主工程和 OpenCode 类型检查通过。
  • Agent OpenAPI 合同校验通过。
  • Node CLI 端到端测试:6/6。
  • Bun:96/96 tests。
  • Docker test target 构建通过。

后续事项

  • ci-templates@mainuv/install.sh 仍是既有供应链基线风险,发布前确认是否固定版本。
  • timeout 上限、带引号参数解析及成功但非 JSON 的语义可在后续 PR 收敛。

本次仅合并代码主线,不打 tag、不发布、不部署。

## 合并说明 将 `tjwater-cli@18e8b25` 合并到 `main`,统一 Agent 服务、TJWater CLI、权限控制、结果引用和容器门禁。客户交付版不在本 PR 范围内。 已完成 `main` 祖先整合,并修复 CLI 子进程无界输出、超时孤儿进程、SIGKILL 兜底和 stdin EPIPE 问题。Server 的传感器布置公开合同已同步收敛,现有 CLI 请求字段可通过后端验证。 ## 最终门禁 - TypeScript 主工程和 OpenCode 类型检查通过。 - Agent OpenAPI 合同校验通过。 - Node CLI 端到端测试:6/6。 - Bun:96/96 tests。 - Docker `test` target 构建通过。 ## 后续事项 - `ci-templates@main` 与 `uv/install.sh` 仍是既有供应链基线风险,发布前确认是否固定版本。 - timeout 上限、带引号参数解析及成功但非 JSON 的语义可在后续 PR 收敛。 本次仅合并代码主线,不打 tag、不发布、不部署。
jiang added 71 commits 2026-08-18 16:38:54 +08:00
build(docker): fix agent image build
Agent CI/CD / docker-image (push) Successful in 2m3s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
741e39b444
refactor(cli): split tjwater cli modules
Agent CI/CD / deploy-fallback-log (push) Has been cancelled
Agent CI/CD / docker-image (push) Has been cancelled
93d70da8be
build(agent): include cli in build stage
Agent CI/CD / docker-image (push) Successful in 55s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
359b1e6e55
暂时移除后端的认证校验
Agent CI/CD / docker-image (push) Successful in 1m5s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
2295bdcb97
fix(chat): 支持重新生成前撤销消息
Agent CI/CD / docker-image (push) Successful in 5m14s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
0e1ca2418f
fix: regenerate from target turn
Agent CI/CD / docker-image (push) Successful in 49s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
f3b62ed108
fix(chat): restore forked context
Agent CI/CD / docker-image (push) Successful in 1m38s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
801f611ce5
refactor(chat): drop branch groups state
Agent CI/CD / docker-image (push) Successful in 49s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
60b9080c47
fix(chat): hide raw permission metadata
Agent CI/CD / docker-image (push) Successful in 2m38s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
8ed73b1da6
fix(agent): warm up opencode on startup
Agent CI/CD / docker-image (push) Successful in 1m59s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
873c169c2c
docs: add repository guidelines
Agent CI/CD / docker-image (push) Successful in 1m1s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
d1b91a4b1e
fix(tools): clarify chart data format
Agent CI/CD / docker-image (push) Successful in 49s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
cf6cada538
feat(chat): expose model options config
Agent CI/CD / docker-image (push) Failing after 24s
Agent CI/CD / deploy-fallback-log (push) Successful in 1s
c823e3935e
fix(session): propagate network context
Agent CI/CD / docker-image (push) Failing after 15m0s
Agent CI/CD / deploy-fallback-log (push) Successful in 0s
d782b7fa11
fix(docker): vendor bun binary for image builds
Agent CI/CD / docker-image (push) Failing after 24s
Agent CI/CD / deploy-fallback-log (push) Successful in 1s
9aad38acb1
fix(ci): build docker image with host network
Agent CI/CD / docker-image (push) Failing after 26s
Agent CI/CD / deploy-fallback-log (push) Successful in 1s
78f9f6fb42
fix(docker): make ubuntu apt mirror optional
Agent CI/CD / docker-image (push) Successful in 3m48s
Agent CI/CD / deploy-fallback-log (push) Has been skipped
d7faaa2ecb
feat(api): expose REST-only agent routes
Agent CI/CD / docker-image (push) Failing after 35s
Agent CI/CD / deploy-fallback-log (push) Successful in 1s
94529cb141
The previous fire-and-forget startup only created the SDK client, leaving the first chat to await project and tool initialization. Warm the real session/tool path and gate port listening on completion.
OpenCode tools run in a child service, so they cannot read the Agent process-local session map. Hydrate a sanitized context through the authenticated internal bridge and centralize backend project headers to prevent context loss across both boundaries.
fix(container): isolate Agent runtime state
Generic Container CI/CD / test-build-publish (push) Successful in 3m1s
Agent CI/CD v2 / build-test-publish-and-deploy (push) Successful in 3m1s
b49290bd91
jiang added 2 commits 2026-08-18 17:00:45 +08:00
jiang marked the pull request as ready for review 2026-08-18 17:53:43 +08:00
jiang merged commit 11ebf428bb into main 2026-08-18 17:56:45 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OrgTJWater/TJWaterAgent#1