Repository navigation
release: prepare tRPC Agent Service v0.1.1 - #165
Merged
Merged
Conversation
Add tenant-scoped runtime materialization and process-owned Telegram and WeCom AI Bot connections, with the React setup UI and acceptance documentation.
XnLemon
force-pushed
the
codex/multitenant-webui-acceptance
branch
from
September 9, 2026 18:21
7a1c56d to
c6bcc07
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
XnLemon
pushed a commit
to XnLemon/trpc-agent-service-platform
that referenced
this pull request
Sep 10, 2026
Sync XnLemon/trpc-agent-service-platform with the merged upstream main. Source PR: XnLemon/trpc-agent-service#165 Source merge commit: 204faa4
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概览
本 PR 将服务从“需要通过 API/Admin API 手工拼装控制面对象”推进到可以直接从 WebUI 完成首轮 Agent 与渠道配置的 0.1.1 发布候选。它把多租户、多 Agent、Telegram 和企业微信 AI Bot 的配置、运行时物化、真实对话验收和部署文档串成一条可执行路径。
0.1.1 发布内容
0.1.1。0.1.1。ghcr.io/xnlemon/trpc-agent-service:0.1.1。0.1.1。v0.1.1tag 后,.github/workflows/publish-image.yml会构建并推送 amd64/arm64 GHCR 镜像。核心功能
面向真实用户的 WebUI
在
trpcservice/web新增 React + Tailwind + shadcn 风格 setup flow:WebUI 同时支持:
多租户、多 Agent runtime
TenantRuntimeRegistry。Telegram 和 WeCom AI Bot 连接生命周期
POST /admin/v1/tenants/{tenant_id}/connectionsGET /admin/v1/tenants/{tenant_id}/connectionsDELETE /admin/v1/tenants/{tenant_id}/connections/{binding_id}getMe身份校验、long polling、tenant/binding/app 路由和回复发送。wss://openws.work.weixin.qq.com和aibot_subscribe协议,支持认证回执、重连、心跳、回复确认和 durable outbox。web-wecom-aibot-*)。cmd: aibot_subscribe的认证回执。租户审计与运行时隔离修复
tenant_id动态路由。audit tenant scope violation的问题。复用的上游能力
本 PR 继续复用 tRPC-Agent-Go 和仓库既有平台边界,没有另起一套 Agent 执行框架:
工程亮点
secret_ref;WebUI 连接 secret 只进入进程内 resolver,错误和日志脱敏。AI 评测推荐路径
离线、无外部凭据
git clone https://github.com/XnLemon/trpc-agent-service.git cd trpc-agent-service cp deploy/example.env deploy/service.env ./scripts/quickstart.sh --demo deploy/service.env curl -fsS http://127.0.0.1:8080/readyz期望:服务健康,demo 自动创建 Tenant/App/Model/Backend/Revision,并通过
/v1/chat返回:真实 WebUI + 双租户 Telegram
随后打开
http://localhost:8080:Your agent is connected;tenant-a-session-001;tenant_id、app_id、session 和回复没有串租户。真实 WebUI + WeCom AI Bot
在同一个 WebUI setup flow 选择 WeCom:
Your agent is connected;不要把 Corp ID、Agent ID、应用 Secret、回调 Token 或 EncodingAESKey 填入 AI Bot 长连接表单。完整路径、诊断日志和常见错误阶段见 多租户多 Agent Telegram / WeCom 验收链路。
实际验收成果
trpcfresh-service-1,/readyz返回200 ready。/v1/models和/v1/responses可达。验证结果
go test ./... -count=1npm run build(trpcservice/web)python -m mkdocs build --strict -f docs/mkdocs.yml./scripts/validate-deployment.shgit diff --check/readyz返回ready发布/部署注意事项
v0.1.1tag,触发 GHCR 多架构镜像发布。ghcr.io/xnlemon/trpc-agent-service:0.1.1或 digest,不使用latest。deploy/service.env。