dsh-agent-tasks 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/index.js +2031 -1879
- package/package.json +19 -6
package/README.md
CHANGED
|
@@ -34,6 +34,20 @@ AI-Agent-Hub 的**任务线 + agent 通信**工具集,共 **12 个 MCP 工具*
|
|
|
34
34
|
(共 12 处),管理者协议 `managerProtocol:232`。本包为占位,下一步搬入;
|
|
35
35
|
搬入后**工具只能注册一次**,其余包通过 `ctx.get('agentTasks')` 调用。
|
|
36
36
|
|
|
37
|
+
## 已知坑(读消息 / 派单模板)
|
|
38
|
+
|
|
39
|
+
- **`taskline_messages` 恒返「没有消息」的根因(2026-11-10 修)**:两个叠加——①旧实现只读
|
|
40
|
+
活会话的 `session.events`;②持久日志把回复存成 `assistant/chunk` 的 block-end,正文**不在**
|
|
41
|
+
`data.message.content`。修法:走 `dsh-hub-core` 的 `readSessionEvents`(活 + 冷都能读)+
|
|
42
|
+
`compactSessionEvents` 重建正文。判据:`/sync/messages` 能读到而 `taskline_messages` 读不到 =
|
|
43
|
+
读法问题,不是会话空。
|
|
44
|
+
- **`compactSessionEvents` 返回 `{ events, lastSeq, streaming }`,不是数组**(`Array.isArray()` 判空会漏)。
|
|
45
|
+
- **它会把插件注入的 `user/message`(`source.kind !== 'user'`)过滤掉**,所以「原始 64 条 → 可展示 11 条」
|
|
46
|
+
是正常的,不是丢消息。
|
|
47
|
+
- **eventId 恒为 `seq`**(真实事件没有 `id`/`key`),压缩后仍保留 `seq`,路由键不会漂移。
|
|
48
|
+
- **§20 用户可见验收**:`taskline_create` / `taskline_prompt` 的 description 里已写死模板
|
|
49
|
+
(可打开产物 / 可复现命令输出 / 重启后一步核验),**禁自证式验收**。
|
|
50
|
+
|
|
37
51
|
## License
|
|
38
52
|
|
|
39
|
-
MIT
|
|
53
|
+
MIT
|