refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -213,7 +213,7 @@ type PendingCall struct {
|
||||
2. 有快照时先写 `agent_run_suspensions`,再写 `agent_prompts`(`status=pending`、`suspendable=true`、`owner_instance`、`lease_until=now+30s`)。两步不在同一事务里:快照先落库,回收任务看到交互记录时快照一定已存在;交互记录写失败时快照随后被删除。交互没有以挂起结束(回答、超时、取消、写库失败)时,`Await` 退出前按 `(assistant_message_id, prompt_id)` 条件删除快照,不会误删同一消息上更新的快照。
|
||||
3. 本地登记 waiter,调用适配层的 `Emit` 发出事件(工具审批仍是 `tool_approval_required`,新增字段 `hot_wait_seconds`;`timeout_seconds` 保留为同一值,兼容旧前端)。
|
||||
4. 等待以下任一事件:
|
||||
- Pub/Sub 唤醒(频道 `weknora:agent_prompt:wake`):从数据库读取回答,以数据库为准。
|
||||
- Pub/Sub 唤醒(频道 `academy:agent_prompt:wake`):从数据库读取回答,以数据库为准。
|
||||
- 每 3 秒轮询一次数据库状态,兜底 Pub/Sub 丢消息。
|
||||
- 短等待计时器到期:可挂起时执行 `pending → suspended` 的 CAS,同时写入 `expires_at`;不可挂起时执行 `pending → expired`。CAS 失败说明用户刚好回答,转为读取回答。
|
||||
- ctx 取消(用户停止):执行 `pending → canceled` 的 CAS。失败同样转为读取回答。
|
||||
@@ -360,7 +360,7 @@ func (e *AgentEngine) Resume(
|
||||
| 消息列表接口:消息新增 `run_state`、`pending_prompt` | `pending_prompt` 只对会话所有者返回,包含卡片所需字段和 `expires_at` |
|
||||
| 新增 `StreamManager.ResetEvents` | Redis 实现为 `DEL` 事件列表;memory 实现为清空事件切片。两者都保留 steer 列表(P3 已实现) |
|
||||
|
||||
API 文档、Swagger、`client/` SDK 同步更新(按 `weknora-api-docs-sync` 流程处理)。
|
||||
API 文档、Swagger、`client/` SDK 同步更新(按 `academy-api-docs-sync` 流程处理)。
|
||||
|
||||
## 8. 会话级语义
|
||||
|
||||
@@ -404,7 +404,7 @@ API 文档、Swagger、`client/` SDK 同步更新(按 `weknora-api-docs-sync`
|
||||
|
||||
| 配置项 | 默认值 | 说明 |
|
||||
|---|---|---|
|
||||
| `agent.prompt_suspend_enabled` | 未配置时为 `true`(P4 起) | 设为 `false` 恢复为纯阻塞式(仍写数据库记录);对所有可挂起类型生效。环境变量 `WEKNORA_AGENT_PROMPT_SUSPEND=true/false` 可覆盖 |
|
||||
| `agent.prompt_suspend_enabled` | 未配置时为 `true`(P4 起) | 设为 `false` 恢复为纯阻塞式(仍写数据库记录);对所有可挂起类型生效。环境变量 `ACADEMY_AGENT_PROMPT_SUSPEND=true/false` 可覆盖 |
|
||||
| `agent.prompt_hot_wait_seconds` | `120` | 短等待时长;`0` 取默认值 |
|
||||
| `agent.prompt_expire_seconds` | `604800`(7 天) | 挂起后的过期时间;`0` 取默认值,负数表示不过期 |
|
||||
| `agent.tool_approval_timeout_seconds` | `600` | 保留;仅在关闭挂起时作为阻塞上限 |
|
||||
|
||||
Reference in new issue
Block a user