qlogicagent 2.24.1 → 2.24.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.
Files changed (297) hide show
  1. package/README.md +52 -324
  2. package/dist/agent.js +38 -43
  3. package/dist/cli.js +7 -7
  4. package/dist/default-project-knowledge/INSTRUCTIONS.md +7 -7
  5. package/dist/default-project-knowledge/rules/project-workflow.md +6 -6
  6. package/dist/index.js +265 -1018
  7. package/dist/orchestration.js +10 -10
  8. package/dist/types/agent/runtime-vars.d.ts +1 -16
  9. package/dist/types/agent/tool-loop/compression-pipeline.d.ts +0 -2
  10. package/dist/types/agent/tool-loop.d.ts +0 -6
  11. package/dist/types/agent/types.d.ts +3 -22
  12. package/dist/types/cli/acp-commands.d.ts +4 -5
  13. package/dist/types/cli/acp-message-router.d.ts +1 -2
  14. package/dist/types/cli/acp-session-handlers.d.ts +6 -12
  15. package/dist/types/cli/acp-session-host.d.ts +5 -48
  16. package/dist/types/cli/adapter-launch-config.d.ts +14 -0
  17. package/dist/types/cli/agent-runtime-bootstrap.d.ts +2 -23
  18. package/dist/types/cli/agent-runtime-session-state.d.ts +1 -6
  19. package/dist/types/cli/base-tool-bootstrap.d.ts +0 -2
  20. package/dist/types/cli/cli-acp-request-handler.d.ts +3 -5
  21. package/dist/types/cli/core-tool-coordinator.d.ts +0 -4
  22. package/dist/types/cli/core-tools/agent-tool-service.d.ts +0 -3
  23. package/dist/types/cli/core-tools/fork-system-prompt.d.ts +1 -5
  24. package/dist/types/cli/handlers/files-handler.d.ts +0 -6
  25. package/dist/types/cli/handlers/turn-handler.d.ts +7 -83
  26. package/dist/types/cli/main.d.ts +2 -4
  27. package/dist/types/cli/permission-approval-bridge.d.ts +2 -6
  28. package/dist/types/cli/permission-bootstrap.d.ts +2 -12
  29. package/dist/types/cli/plugin-bootstrap.d.ts +2 -4
  30. package/dist/types/cli/runtime-hook-bootstrap.d.ts +0 -21
  31. package/dist/types/cli/session-context.d.ts +4 -14
  32. package/dist/types/cli/session-coordinator.d.ts +1 -9
  33. package/dist/types/cli/stdio-acp-protocol-coordinator.d.ts +2 -9
  34. package/dist/types/cli/stdio-acp-request-host.d.ts +3 -15
  35. package/dist/types/cli/stdio-agent-session-bootstrap.d.ts +3 -23
  36. package/dist/types/cli/stdio-runtime-bootstrap.d.ts +0 -8
  37. package/dist/types/cli/stdio-runtime-services.d.ts +2 -13
  38. package/dist/types/cli/stdio-server.d.ts +6 -128
  39. package/dist/types/cli/tool-bootstrap.d.ts +4 -8
  40. package/dist/types/cli/tool-catalog.d.ts +2 -2
  41. package/dist/types/cli/tool-invoker-factory.d.ts +0 -2
  42. package/dist/types/cli/tool-registry-adapter.d.ts +3 -7
  43. package/dist/types/cli/tool-result-processor.d.ts +0 -1
  44. package/dist/types/cli/turn-core.d.ts +6 -10
  45. package/dist/types/cli/turn-event-forwarder.d.ts +6 -3
  46. package/dist/types/cli/turn-lifecycle.d.ts +0 -3
  47. package/dist/types/cli/turn-project-router.d.ts +0 -7
  48. package/dist/types/contracts/hooks.d.ts +1 -20
  49. package/dist/types/contracts/tool-execution-evidence.d.ts +20 -1
  50. package/dist/types/contracts/turn-event.d.ts +2 -2
  51. package/dist/types/orchestration/index.d.ts +1 -1
  52. package/dist/types/protocol/notifications.d.ts +2 -9
  53. package/dist/types/protocol/wire/acp-protocol.d.ts +12 -186
  54. package/dist/types/protocol/wire/capability-transport.d.ts +0 -2
  55. package/dist/types/protocol/wire/index.d.ts +2 -10
  56. package/dist/types/protocol/wire/notification-payloads.d.ts +4 -989
  57. package/dist/types/protocol/wire/thread-protocol.d.ts +24 -3
  58. package/dist/types/runtime/config/tunable-defaults.d.ts +3 -75
  59. package/dist/types/runtime/execution/forked-agent.d.ts +2 -5
  60. package/dist/types/runtime/execution/streaming-tool-executor.d.ts +0 -2
  61. package/dist/types/runtime/execution/tool-result-storage.d.ts +13 -4
  62. package/dist/types/runtime/infra/agent-paths.d.ts +4 -54
  63. package/dist/types/runtime/infra/agent-project-projection.d.ts +20 -0
  64. package/dist/types/runtime/infra/background-tasks.d.ts +3 -3
  65. package/dist/types/runtime/infra/default-path-service.d.ts +0 -7
  66. package/dist/types/runtime/infra/llmrouter-catalog.d.ts +1 -1
  67. package/dist/types/runtime/infra/model-registry.d.ts +6 -9
  68. package/dist/types/runtime/infra/project-store.d.ts +3 -3
  69. package/dist/types/runtime/infra/subagent-turn-snapshot.d.ts +54 -7
  70. package/dist/types/runtime/infra/task-runtime.d.ts +1 -1
  71. package/dist/types/runtime/ports/agent-runtime-ports.d.ts +1 -3
  72. package/dist/types/runtime/ports/index.d.ts +0 -4
  73. package/dist/types/runtime/ports/path-service.d.ts +1 -9
  74. package/dist/types/runtime/ports/tool-contracts.d.ts +0 -1
  75. package/dist/types/runtime/session/agent-session-projection.d.ts +37 -0
  76. package/dist/types/runtime/tasks/task-types.d.ts +2 -25
  77. package/dist/types/skills/mcp/mcp-manager.d.ts +2 -2
  78. package/dist/types/skills/plugins/plugin-loader.d.ts +1 -1
  79. package/dist/types/skills/skill-system/skill-category.d.ts +4 -2
  80. package/dist/types/skills/tools.d.ts +1 -18
  81. package/dist/types/test-support/project-store-fixture.d.ts +4 -4
  82. package/dist/types/transport/acp-event-emitter.d.ts +1 -20
  83. package/dist/types/transport/acp-server.d.ts +8 -88
  84. package/package.json +4 -96
  85. package/dist/agent-contract.js +0 -1
  86. package/dist/host-contract.js +0 -1
  87. package/dist/host-session-collection-contract.js +0 -1
  88. package/dist/memory-category-contract.js +0 -1
  89. package/dist/permissions.js +0 -1
  90. package/dist/plugin-marketplace-compute.js +0 -1
  91. package/dist/project-memory-host.js +0 -38
  92. package/dist/protocol.js +0 -1
  93. package/dist/skill-category-contract.js +0 -1
  94. package/dist/tunables.js +0 -1
  95. package/dist/types/agent/memory-recall-context.d.ts +0 -22
  96. package/dist/types/agent/memory-recall-injection.d.ts +0 -32
  97. package/dist/types/cli/acp-extended-handlers.d.ts +0 -110
  98. package/dist/types/cli/acp-extended-host-adapter.d.ts +0 -20
  99. package/dist/types/cli/community-resource-installer.d.ts +0 -39
  100. package/dist/types/cli/community-skill-installer.d.ts +0 -18
  101. package/dist/types/cli/community-workflow-installer.d.ts +0 -29
  102. package/dist/types/cli/default-project-bootstrap.d.ts +0 -12
  103. package/dist/types/cli/dream-host-adapter.d.ts +0 -24
  104. package/dist/types/cli/gateway-rpc-connection.d.ts +0 -50
  105. package/dist/types/cli/handlers/community-handler.d.ts +0 -14
  106. package/dist/types/cli/handlers/config-handler.d.ts +0 -19
  107. package/dist/types/cli/handlers/control-handler.d.ts +0 -29
  108. package/dist/types/cli/handlers/dream-handler.d.ts +0 -41
  109. package/dist/types/cli/handlers/goal-handler.d.ts +0 -66
  110. package/dist/types/cli/handlers/memory-handler.d.ts +0 -23
  111. package/dist/types/cli/handlers/product-handler.d.ts +0 -35
  112. package/dist/types/cli/handlers/session-handler.d.ts +0 -29
  113. package/dist/types/cli/handlers/skill-curator-handler.d.ts +0 -8
  114. package/dist/types/cli/handlers/solo-handler.d.ts +0 -25
  115. package/dist/types/cli/handlers/turn-baseline-handler.d.ts +0 -8
  116. package/dist/types/cli/handlers/workflow-compute-handler.d.ts +0 -8
  117. package/dist/types/cli/handlers/working-materials-handler.d.ts +0 -9
  118. package/dist/types/cli/idle-dream-coordinator.d.ts +0 -57
  119. package/dist/types/cli/memory-background-coordinator.d.ts +0 -26
  120. package/dist/types/cli/memory-candidate-service.d.ts +0 -75
  121. package/dist/types/cli/memory-coordinator.d.ts +0 -40
  122. package/dist/types/cli/multi-agent-handler-host.d.ts +0 -16
  123. package/dist/types/cli/multi-agent-state-coordinator.d.ts +0 -8
  124. package/dist/types/cli/orchestration-memory-context.d.ts +0 -23
  125. package/dist/types/cli/product-acp-params.d.ts +0 -30
  126. package/dist/types/cli/product-coordinator.d.ts +0 -21
  127. package/dist/types/cli/project-memory-store-factory.d.ts +0 -12
  128. package/dist/types/cli/project-template-seeder.d.ts +0 -5
  129. package/dist/types/cli/rpc-registry.d.ts +0 -56
  130. package/dist/types/cli/session-history-coordinator.d.ts +0 -8
  131. package/dist/types/cli/session-query-service.d.ts +0 -27
  132. package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +0 -56
  133. package/dist/types/cli/stdio-session-runtime-coordinator.d.ts +0 -17
  134. package/dist/types/cli/task-distillation-coordinator.d.ts +0 -146
  135. package/dist/types/cli/turn-ask-user-setup.d.ts +0 -24
  136. package/dist/types/cli/turn-suggestion-generator.d.ts +0 -15
  137. package/dist/types/contracts/memory-recall-packet.d.ts +0 -31
  138. package/dist/types/contracts/memory-response-contract.d.ts +0 -2
  139. package/dist/types/host-contract/fts-segment.d.ts +0 -20
  140. package/dist/types/host-contract/index.d.ts +0 -1819
  141. package/dist/types/host-contract/memory-category.d.ts +0 -8
  142. package/dist/types/host-contract/skill-category.d.ts +0 -5
  143. package/dist/types/host-session-collection-contract.d.ts +0 -65
  144. package/dist/types/orchestration/agent-instance.d.ts +0 -215
  145. package/dist/types/orchestration/agent-roster.d.ts +0 -32
  146. package/dist/types/orchestration/dag-scheduler.d.ts +0 -219
  147. package/dist/types/orchestration/delegate-approval-policy.d.ts +0 -8
  148. package/dist/types/orchestration/delegate-bridge.d.ts +0 -8
  149. package/dist/types/orchestration/goal-acceptance.d.ts +0 -17
  150. package/dist/types/orchestration/goal-context-envelope.d.ts +0 -7
  151. package/dist/types/orchestration/goal-loop-coordinator.d.ts +0 -151
  152. package/dist/types/orchestration/goal-mode-adapters.d.ts +0 -152
  153. package/dist/types/orchestration/goal-run-persistence.d.ts +0 -21
  154. package/dist/types/orchestration/goal-run-types.d.ts +0 -225
  155. package/dist/types/orchestration/planner-memory-brief.d.ts +0 -39
  156. package/dist/types/orchestration/product-budget.d.ts +0 -94
  157. package/dist/types/orchestration/product-checkpoint.d.ts +0 -50
  158. package/dist/types/orchestration/product-dag-mutation-applier.d.ts +0 -10
  159. package/dist/types/orchestration/product-persistence.d.ts +0 -90
  160. package/dist/types/orchestration/product-planner.d.ts +0 -332
  161. package/dist/types/orchestration/product-run-coordinator.d.ts +0 -49
  162. package/dist/types/orchestration/product-worktree.d.ts +0 -19
  163. package/dist/types/orchestration/run-state-host-authority.d.ts +0 -7
  164. package/dist/types/orchestration/solo-evaluator.d.ts +0 -179
  165. package/dist/types/orchestration/solo-persistence.d.ts +0 -47
  166. package/dist/types/orchestration/solo-spec-builder.d.ts +0 -58
  167. package/dist/types/orchestration/testing/delegate-test-bridge.d.ts +0 -23
  168. package/dist/types/orchestration/testing/host-agent-provider-directory-fixture.d.ts +0 -7
  169. package/dist/types/orchestration/testing/run-state-client-double.d.ts +0 -13
  170. package/dist/types/orchestration/workflow/budget-permission-gate.d.ts +0 -94
  171. package/dist/types/orchestration/workflow/builtin-capabilities.d.ts +0 -3
  172. package/dist/types/orchestration/workflow/builtin-executors.d.ts +0 -18
  173. package/dist/types/orchestration/workflow/capability-catalog.d.ts +0 -72
  174. package/dist/types/orchestration/workflow/cron-schedule.d.ts +0 -36
  175. package/dist/types/orchestration/workflow/data-item.d.ts +0 -39
  176. package/dist/types/orchestration/workflow/expression.d.ts +0 -60
  177. package/dist/types/orchestration/workflow/host-executors.d.ts +0 -15
  178. package/dist/types/orchestration/workflow/n8n-expression.d.ts +0 -48
  179. package/dist/types/orchestration/workflow/n8n-import.d.ts +0 -64
  180. package/dist/types/orchestration/workflow/n8n-template-compat.d.ts +0 -5
  181. package/dist/types/orchestration/workflow/node-registry.d.ts +0 -32
  182. package/dist/types/orchestration/workflow/node-schema.d.ts +0 -249
  183. package/dist/types/orchestration/workflow/params-schema.d.ts +0 -69
  184. package/dist/types/orchestration/workflow/qla-executor-host.d.ts +0 -63
  185. package/dist/types/orchestration/workflow/run-checkpoint-store.d.ts +0 -53
  186. package/dist/types/orchestration/workflow/run-history-store.d.ts +0 -103
  187. package/dist/types/orchestration/workflow/semantic-acceptance.d.ts +0 -65
  188. package/dist/types/orchestration/workflow/trigger-validation.d.ts +0 -22
  189. package/dist/types/orchestration/workflow/workflow-audit-store.d.ts +0 -31
  190. package/dist/types/orchestration/workflow/workflow-authoring.d.ts +0 -74
  191. package/dist/types/orchestration/workflow/workflow-bundle.d.ts +0 -51
  192. package/dist/types/orchestration/workflow/workflow-controller.d.ts +0 -237
  193. package/dist/types/orchestration/workflow/workflow-edit-context.d.ts +0 -46
  194. package/dist/types/orchestration/workflow/workflow-error.d.ts +0 -28
  195. package/dist/types/orchestration/workflow/workflow-intent-contract.d.ts +0 -56
  196. package/dist/types/orchestration/workflow/workflow-patch.d.ts +0 -122
  197. package/dist/types/orchestration/workflow/workflow-render.d.ts +0 -40
  198. package/dist/types/orchestration/workflow/workflow-runtime.d.ts +0 -184
  199. package/dist/types/orchestration/workflow/workflow-scheduler.d.ts +0 -122
  200. package/dist/types/orchestration/workflow/workflow-store.d.ts +0 -85
  201. package/dist/types/orchestration/workflow/workflow-template-setup.d.ts +0 -65
  202. package/dist/types/orchestration/workflow/workflow-trigger.d.ts +0 -43
  203. package/dist/types/orchestration/workflow-chat-builder.d.ts +0 -152
  204. package/dist/types/orchestration/worktree-task-prompt.d.ts +0 -1
  205. package/dist/types/permissions.d.ts +0 -4
  206. package/dist/types/project-memory-host.d.ts +0 -4
  207. package/dist/types/protocol/agent-contract.d.ts +0 -93
  208. package/dist/types/protocol/methods.d.ts +0 -645
  209. package/dist/types/protocol/wire/acp-agent-management.d.ts +0 -533
  210. package/dist/types/protocol/wire/agent-events.d.ts +0 -1
  211. package/dist/types/protocol/wire/agent-methods.d.ts +0 -500
  212. package/dist/types/protocol/wire/agent-rpc.d.ts +0 -100
  213. package/dist/types/protocol/wire/gateway-contract.d.ts +0 -61
  214. package/dist/types/protocol/wire/gateway-rpc.d.ts +0 -1177
  215. package/dist/types/protocol/wire/memory-provider-lifecycle.d.ts +0 -31
  216. package/dist/types/protocol/wire/turn.d.ts +0 -208
  217. package/dist/types/runtime/community/autonomy-budget.d.ts +0 -26
  218. package/dist/types/runtime/community/community-consent-client.d.ts +0 -55
  219. package/dist/types/runtime/community/package-materialize.d.ts +0 -19
  220. package/dist/types/runtime/community/ranged-download.d.ts +0 -21
  221. package/dist/types/runtime/community/registry-signature.d.ts +0 -48
  222. package/dist/types/runtime/execution/dream-agent.d.ts +0 -273
  223. package/dist/types/runtime/execution/dream-category-context.d.ts +0 -47
  224. package/dist/types/runtime/execution/memory-decay.d.ts +0 -73
  225. package/dist/types/runtime/execution/turn-progress-notifier.d.ts +0 -16
  226. package/dist/types/runtime/hooks/memory-hooks.d.ts +0 -111
  227. package/dist/types/runtime/infra/acp-host-handler.d.ts +0 -31
  228. package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +0 -209
  229. package/dist/types/runtime/infra/acp-usage-tracker.d.ts +0 -46
  230. package/dist/types/runtime/infra/cloud-auth-host-authority.d.ts +0 -4
  231. package/dist/types/runtime/infra/feedback-distillation-worker.d.ts +0 -20
  232. package/dist/types/runtime/infra/feedback-distillation.d.ts +0 -32
  233. package/dist/types/runtime/infra/feedback-event-store.d.ts +0 -179
  234. package/dist/types/runtime/infra/feedback-host-authority.d.ts +0 -4
  235. package/dist/types/runtime/infra/feedback-outbox.d.ts +0 -26
  236. package/dist/types/runtime/infra/feedback-redaction.d.ts +0 -71
  237. package/dist/types/runtime/infra/feedback-upload-client.d.ts +0 -39
  238. package/dist/types/runtime/infra/feedback-upload-worker.d.ts +0 -11
  239. package/dist/types/runtime/infra/host-agent-provider-directory.d.ts +0 -17
  240. package/dist/types/runtime/infra/project-authority-facade.d.ts +0 -11
  241. package/dist/types/runtime/infra/project-data-paths.d.ts +0 -24
  242. package/dist/types/runtime/infra/project-host-authority.d.ts +0 -11
  243. package/dist/types/runtime/infra/project-instructions-store.d.ts +0 -30
  244. package/dist/types/runtime/infra/turn-baseline-store.d.ts +0 -102
  245. package/dist/types/runtime/infra/turn-telemetry-store.d.ts +0 -100
  246. package/dist/types/runtime/infra/working-materials-store.d.ts +0 -29
  247. package/dist/types/runtime/memory/find-relevant-memories.d.ts +0 -26
  248. package/dist/types/runtime/memory/implicit-extraction.d.ts +0 -69
  249. package/dist/types/runtime/memory/memory-recall-attribution.d.ts +0 -24
  250. package/dist/types/runtime/ports/memory-provider.d.ts +0 -219
  251. package/dist/types/runtime/ports/memory-recall-source.d.ts +0 -14
  252. package/dist/types/runtime/ports/memory-writer.d.ts +0 -70
  253. package/dist/types/runtime/ports/project-memory-store.d.ts +0 -49
  254. package/dist/types/runtime/prompt/host-skill-directory.d.ts +0 -16
  255. package/dist/types/runtime/session/group-session-split.d.ts +0 -38
  256. package/dist/types/runtime/session/inbound-upload-persistence.d.ts +0 -47
  257. package/dist/types/runtime/session/session-catalog.d.ts +0 -12
  258. package/dist/types/runtime/session/session-deletion-guard.d.ts +0 -4
  259. package/dist/types/runtime/session/session-locator.d.ts +0 -26
  260. package/dist/types/runtime/session/session-metadata-store.d.ts +0 -8
  261. package/dist/types/runtime/session/session-paths.d.ts +0 -8
  262. package/dist/types/runtime/session/session-permission-store.d.ts +0 -6
  263. package/dist/types/runtime/session/session-persistence.d.ts +0 -37
  264. package/dist/types/runtime/session/session-recovery.d.ts +0 -62
  265. package/dist/types/runtime/session/session-resource-key.d.ts +0 -28
  266. package/dist/types/runtime/session/session-resume.d.ts +0 -9
  267. package/dist/types/runtime/session/session-schema.d.ts +0 -10
  268. package/dist/types/runtime/session/session-summary.d.ts +0 -7
  269. package/dist/types/runtime/session/session-title.d.ts +0 -9
  270. package/dist/types/runtime/session/session-transcript-store.d.ts +0 -30
  271. package/dist/types/runtime/session/session-types.d.ts +0 -113
  272. package/dist/types/runtime/session/session-write-queue.d.ts +0 -3
  273. package/dist/types/skills/memory/host-memory-provider.d.ts +0 -235
  274. package/dist/types/skills/memory/memdir.d.ts +0 -111
  275. package/dist/types/skills/memory/memory-content-safety.d.ts +0 -1
  276. package/dist/types/skills/memory/memory-vector-utils.d.ts +0 -2
  277. package/dist/types/skills/memory/task-distillation.d.ts +0 -183
  278. package/dist/types/skills/plugins/plugin-marketplace.d.ts +0 -43
  279. package/dist/types/skills/skill-system/skill-bundles.d.ts +0 -8
  280. package/dist/types/skills/skill-system/skill-lifecycle.d.ts +0 -89
  281. package/dist/types/test-support/run-state-authority-setup.d.ts +0 -1
  282. package/dist/types/transport/delegate-client.d.ts +0 -82
  283. package/dist/types/transport/host-capability-client.d.ts +0 -21
  284. package/dist/types/transport/host-cloud-auth-client.d.ts +0 -10
  285. package/dist/types/transport/host-community-client.d.ts +0 -7
  286. package/dist/types/transport/host-feedback-client.d.ts +0 -25
  287. package/dist/types/transport/host-profile-client.d.ts +0 -19
  288. package/dist/types/transport/host-project-client.d.ts +0 -16
  289. package/dist/types/transport/host-request-client.d.ts +0 -42
  290. package/dist/types/transport/host-run-state-client.d.ts +0 -23
  291. package/dist/types/transport/host-session-client.d.ts +0 -30
  292. package/dist/types/tunables.d.ts +0 -2
  293. package/dist/types/workflow-host.d.ts +0 -38
  294. package/dist/workflow-host.js +0 -11
  295. /package/dist/types/{host-contract → protocol/wire}/acp-content.d.ts +0 -0
  296. /package/dist/types/{host-contract → runtime/infra}/project-id.d.ts +0 -0
  297. /package/dist/types/{host-contract → runtime/infra}/provider-profile.d.ts +0 -0
@@ -15,7 +15,6 @@
15
15
  * PRODUCED today (have a real registration site):
16
16
  * - local_bash: backgrounded shell command (BackgroundTaskManager.registerBashTask)
17
17
  * - local_agent: backgrounded forked agent (BackgroundTaskManager.startAgentTask)
18
- * - dream: memory consolidation (runDream → taskStore.registerTask)
19
18
  *
20
19
  * PLANNED — declared for the TASK_PREFIX taxonomy + UI/protocol contract, but NO
21
20
  * producer exists yet. Do not assume these are created anywhere; wire a producer
@@ -24,7 +23,7 @@
24
23
  * - local_workflow: DAG/pipeline execution
25
24
  * - monitor_mcp: MCP server monitoring agent
26
25
  */
27
- export type TaskType = "local_bash" | "local_agent" | "remote_agent" | "local_workflow" | "monitor_mcp" | "dream";
26
+ export type TaskType = "local_bash" | "local_agent" | "remote_agent" | "local_workflow" | "monitor_mcp";
28
27
  /**
29
28
  * How a sub-agent is isolated from the parent execution.
30
29
  *
@@ -111,33 +110,11 @@ export interface RemoteAgentTaskState extends TaskStateBase {
111
110
  /** Polling endpoint for status checks. */
112
111
  pollEndpoint?: string;
113
112
  }
114
- /** A single dream agent turn — text output + tool use count. */
115
- export interface DreamTurn {
116
- text: string;
117
- toolUseCount: number;
118
- }
119
- /** Dream phase lifecycle — CC alignment. */
120
- export type DreamPhase = "starting" | "updating" | "completed" | "failed";
121
- /** Dream task — background memory consolidation agent (CC autoDream parity). */
122
- export interface DreamTaskState extends TaskStateBase {
123
- type: "dream";
124
- sessionId: string;
125
- /** Current dream phase. */
126
- phase: DreamPhase;
127
- /** Number of sessions being reviewed. */
128
- sessionsReviewing: number;
129
- /** Memory files touched by the dream agent. */
130
- filesTouched: string[];
131
- /** Dream agent turn history (capped). */
132
- turns: DreamTurn[];
133
- /** Stashed lock mtime for rollback on failure. */
134
- priorLockMtime: number;
135
- }
136
113
  /** Placeholder for planned task types. */
137
114
  export interface PlannedTaskState extends TaskStateBase {
138
115
  type: "local_workflow" | "monitor_mcp";
139
116
  }
140
117
  /** Union of all concrete task states. */
141
- export type TaskState = LocalBashTaskState | LocalAgentTaskState | RemoteAgentTaskState | DreamTaskState | PlannedTaskState;
118
+ export type TaskState = LocalBashTaskState | LocalAgentTaskState | RemoteAgentTaskState | PlannedTaskState;
142
119
  /** Create a new task state with defaults populated. */
143
120
  export declare function createTaskState(overrides: Pick<TaskStateBase, "taskId" | "type" | "label"> & Partial<TaskStateBase>): TaskStateBase;
@@ -69,7 +69,7 @@ export interface McpManagerConfig {
69
69
  /** Active workspace boundary for local-path arguments passed into MCP tools. */
70
70
  workspaceRoot?: string;
71
71
  /** Runtime-owned catalog used for dynamic MCP tool injection. */
72
- toolCatalog?: ToolRegistryLike;
72
+ toolCatalog: ToolRegistryLike;
73
73
  }
74
74
  export declare function resolveMcpCallTimeoutMs(value: number | undefined): number;
75
75
  export declare function withMcpDeadline<T>(operation: Promise<T>, timeoutMs: number, label: string): Promise<T>;
@@ -113,7 +113,7 @@ export declare class McpManager {
113
113
  private injectedNamesByServer;
114
114
  private log;
115
115
  private workspaceRoot?;
116
- private toolCatalog?;
116
+ private toolCatalog;
117
117
  private serverToolFilters;
118
118
  private serverOAuth;
119
119
  private serverCallTimeouts;
@@ -17,7 +17,7 @@ export interface PluginLoaderConfig {
17
17
  warn(msg: string): void;
18
18
  };
19
19
  /** Runtime-owned tool catalog used for plugin tool registration. */
20
- toolCatalog?: PluginToolRegistry;
20
+ toolCatalog: PluginToolRegistry;
21
21
  }
22
22
  export declare class PluginLoader {
23
23
  private config;
@@ -1,5 +1,7 @@
1
- import { type HubSkillCategory } from "../../host-contract/skill-category.js";
2
- export { HUB_SKILL_CATEGORIES, HUB_SKILL_CATEGORY_LABELS, isHubSkillCategory, type HubSkillCategory, } from "../../host-contract/skill-category.js";
1
+ export declare const HUB_SKILL_CATEGORIES: readonly ["efficiency", "dev", "cloud", "data", "industrial", "marketing", "ecommerce", "procurement", "hr", "accounting", "finance", "legal", "lifestyle"];
2
+ export type HubSkillCategory = (typeof HUB_SKILL_CATEGORIES)[number];
3
+ export declare const HUB_SKILL_CATEGORY_LABELS: Readonly<Record<HubSkillCategory, string>>;
4
+ export declare function isHubSkillCategory(value: unknown): value is HubSkillCategory;
3
5
  /**
4
6
  * Offline-safe domain selection. Keyword matches are deliberately narrow; an
5
7
  * unclassified general procedure belongs to general productivity rather than
@@ -1,10 +1,5 @@
1
1
  /**
2
- * Tool registry and compatibility facade.
3
- *
4
- * The registry is the single source of truth for locally executable tools.
5
- * New runtime code should depend on a ToolCatalog/ToolRegistry instance; the
6
- * module-level functions below remain as a compatibility facade for older
7
- * bootstrap paths while those call sites are migrated.
2
+ * In-memory implementation behind the Runtime ToolCatalog port.
8
3
  *
9
4
  * The registry owns complete executable definitions. Prompt projection may keep
10
5
  * large parameter schemas non-resident until the Agent explicitly expands an
@@ -28,15 +23,3 @@ export declare class ToolRegistry {
28
23
  getTools(): PortableTool[];
29
24
  getToolManifest(): ToolDefinition[];
30
25
  }
31
- export declare function getDefaultToolRegistry(): ToolRegistry;
32
- export declare function setToolPool(tools: PortableTool[]): void;
33
- export declare function addTool(tool: PortableTool<any>): void;
34
- export declare function addTools(tools: PortableTool<any>[]): void;
35
- export declare function removeTool(name: string): boolean;
36
- export declare function findTool(name: string): PortableTool | undefined;
37
- export declare function hasTool(name: string): boolean;
38
- export declare function getToolNames(): string[];
39
- export declare function getToolCount(): number;
40
- export declare function executeTool(name: string, toolCallId: string, args: Record<string, unknown>, signal?: AbortSignal): Promise<import("./portable-tool.js").PortableToolResult>;
41
- export declare function getTools(): PortableTool[];
42
- export declare function getToolManifest(): ToolDefinition[];
@@ -1,11 +1,11 @@
1
- import type { HostProjectInfo, HostProjectType } from "../host-contract/index.js";
1
+ import type { AgentProjectInfo, AgentProjectType } from "../runtime/infra/agent-project-projection.js";
2
2
  export * from "../runtime/infra/project-store.js";
3
3
  export declare function resetProjectStore(): void;
4
4
  export declare function createProject(params: {
5
5
  name: string;
6
6
  workspaceDir: string;
7
- type?: HostProjectType;
7
+ type?: AgentProjectType;
8
8
  groupId?: string;
9
9
  skipAutoSwitch?: boolean;
10
- }): HostProjectInfo;
11
- export declare function switchProject(projectId: string): HostProjectInfo | null;
10
+ }): AgentProjectInfo;
11
+ export declare function switchProject(projectId: string): AgentProjectInfo | null;
@@ -1,22 +1,3 @@
1
- /**
2
- * ACP Event Emitter translates internal qlogicagent notifications to ACP
3
- * session/update notifications.
4
- *
5
- * Maps internal notifications (turn.delta, turn.tool_call, etc.) to standard
6
- * ACP session/update messages whenever ACP has a native representation. Only
7
- * notifications without a standard representation use negotiated extensions.
8
- *
9
- * Usage: Called by the StdioServer event loop. Instead of (or in addition to)
10
- * emitting raw notifications, events are translated and emitted through the
11
- * AcpServer.emitSessionUpdate() method.
12
- */
1
+ /** Translate internal turn events to the standard ACP session/update subset. */
13
2
  import type { AcpServer } from "./acp-server.js";
14
- /**
15
- * Translates and emits a qlogicagent internal notification as an ACP session/update.
16
- *
17
- * @param server The AcpServer instance to emit through
18
- * @param sessionId Active ACP session ID
19
- * @param method Internal notification method name
20
- * @param params Internal notification payload
21
- */
22
3
  export declare function emitAcpUpdate(server: AcpServer, sessionId: string, method: string, params: Record<string, unknown>): boolean;
@@ -7,20 +7,17 @@
7
7
  * Protocol: ACP v1 over JSON-RPC 2.0 / stdio (line-delimited JSON).
8
8
  *
9
9
  * Responsibilities:
10
- * - Accepts ACP standard methods: initialize, session/new, session/prompt, session/close
11
- * - Accepts x/ extended methods: x/abort, x/dream, x/solo.*, x/product.*, x/goal.*, x/workflow.*
12
- * - Emits ACP session/update notifications (standard + x_ extended)
10
+ * - Accepts ACP standard methods only
11
+ * - Emits standard ACP session/update notifications
13
12
  * - Translates host permission responses back to the agent
14
13
  *
15
14
  * Architecture: AcpServer wraps a Transport and delegates to an AcpRequestHandler
16
15
  * interface. The StdioServer implements this interface by routing ACP methods to
17
16
  * existing internal handlers.
18
17
  */
18
+ import type { SessionUpdate } from "@agentclientprotocol/sdk";
19
19
  import type { Transport } from "./io-transport.js";
20
- import { type AcpInitializeParams, type AcpInitializeResult, type AcpSessionNewParams, type AcpSessionLoadParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionCloseParams, type AcpSessionSetConfigParams, type AcpSessionSetConfigResult, type AcpSessionUpdateType, type AcpPermissionRequestParams, type AcpPermissionRequestResult } from "../protocol/wire/index.js";
21
- import { DelegateClient } from "./delegate-client.js";
22
- import type { HostRequestClient } from "./host-request-client.js";
23
- import { type HostRequestService } from "../host-contract/index.js";
20
+ import { type AcpInitializeParams, type AcpInitializeResult, type AcpSessionNewParams, type AcpSessionLoadParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionCloseParams, type AcpSessionSetConfigParams, type AcpSessionSetConfigResult, type AcpPermissionRequestParams, type AcpPermissionRequestResult } from "../protocol/wire/index.js";
24
21
  export declare const ACP_ERROR_CODES: {
25
22
  readonly PARSE_ERROR: -32700;
26
23
  readonly INVALID_REQUEST: -32600;
@@ -44,9 +41,8 @@ export interface AcpRequestHandler {
44
41
  handleAcpSessionPrompt(params: AcpSessionPromptParams): Promise<AcpSessionPromptResult>;
45
42
  handleAcpSessionClose(params: AcpSessionCloseParams): Promise<void>;
46
43
  handleAcpSessionSetConfig(params: AcpSessionSetConfigParams): Promise<AcpSessionSetConfigResult>;
47
- handleAcpSessionSetModel(sessionId: string, model: string): Promise<void>;
48
44
  handleAcpSessionSetMode(sessionId: string, modeId: string): Promise<string>;
49
- handleAcpSessionLoad(params: AcpSessionLoadParams): Promise<{
45
+ handleAcpSessionLoad(params: AcpSessionLoadParams): Promise<AcpSessionNewResult & {
50
46
  replay: Array<{
51
47
  type: "user_message_chunk" | "agent_message_chunk";
52
48
  content: string;
@@ -55,61 +51,20 @@ export interface AcpRequestHandler {
55
51
  /** Single source of truth for advertised slash commands (also summarized by /help). */
56
52
  buildAvailableCommands(): Array<{
57
53
  name: string;
58
- description?: string;
54
+ description: string;
59
55
  }>;
60
56
  /** Pre-prompt slash-command intercept. Returns {handled,reply}; server emits + acks. */
61
57
  tryDispatchCommand(params: AcpSessionPromptParams): Promise<{
62
58
  handled: boolean;
63
59
  reply?: string;
64
60
  }>;
65
- handleAcpPermissionResponse(permissionId: string, optionId: string): void;
66
61
  handleAcpAbort(params: {
67
62
  sessionId: string;
68
63
  turnId?: string;
69
64
  }): Promise<void>;
70
- handleAcpDream(params: {
71
- sessionId: string;
72
- config?: Record<string, unknown>;
73
- }): Promise<{
74
- ok: boolean;
75
- summary?: string;
76
- }>;
77
- handleAcpSoloStart(params: Record<string, unknown>): Promise<unknown>;
78
- handleAcpSoloSelect(params: Record<string, unknown>): Promise<unknown>;
79
- handleAcpSoloCancel(params: Record<string, unknown>): Promise<unknown>;
80
- handleAcpSoloSubscribe(params: Record<string, unknown>): Promise<unknown>;
81
- handleAcpSoloMessage(params: Record<string, unknown>): Promise<unknown>;
82
- handleAcpSoloEvaluate(params: Record<string, unknown>): Promise<unknown>;
83
- handleAcpSoloDelete(params: Record<string, unknown>): Promise<unknown>;
84
- handleAcpSoloSpecChat(params: Record<string, unknown>): Promise<unknown>;
85
- handleAcpWorkflowChat(params: Record<string, unknown>): Promise<unknown>;
86
- handleAcpWorkflowMatchIntent(params: Record<string, unknown>): Promise<unknown>;
87
- handleAcpWorkflowPlanCommand(params: Record<string, unknown>): Promise<unknown>;
88
- handleAcpSoloSpecJudge(params: Record<string, unknown>): Promise<unknown>;
89
- handleAcpProductCreate(params: Record<string, unknown>): Promise<unknown>;
90
- handleAcpProductPlan(params: Record<string, unknown>): Promise<unknown>;
91
- handleAcpProductConfirm(params: Record<string, unknown>): Promise<unknown>;
92
- handleAcpProductMessage(params: Record<string, unknown>): Promise<unknown>;
93
- handleAcpProductMutateDag(params: Record<string, unknown>): Promise<unknown>;
94
- handleAcpProductPause(params: Record<string, unknown>): Promise<unknown>;
95
- handleAcpProductResume(params: Record<string, unknown>): Promise<unknown>;
96
- handleAcpProductCancel(params: Record<string, unknown>): Promise<unknown>;
97
- handleAcpProductRollback(params: Record<string, unknown>): Promise<unknown>;
98
- handleAcpProductReplay(params: Record<string, unknown>): Promise<unknown>;
99
- handleAcpProductSubscribe(params: Record<string, unknown>): Promise<unknown>;
100
- handleAcpGoalStart(params: Record<string, unknown>): Promise<unknown>;
101
- handleAcpGoalPause(params: Record<string, unknown>): Promise<unknown>;
102
- handleAcpGoalResume(params: Record<string, unknown>): Promise<unknown>;
103
- handleAcpGoalUpdateGoal(params: Record<string, unknown>): Promise<unknown>;
104
- handleAcpGoalStop(params: Record<string, unknown>): Promise<unknown>;
105
- handleAcpGoalMessage(params: Record<string, unknown>): Promise<unknown>;
106
- handleAcpGoalRecover(params: Record<string, unknown>): Promise<unknown>;
107
- handleAcpGoalDismiss(params: Record<string, unknown>): Promise<unknown>;
108
65
  }
109
66
  export interface AcpServerConfig {
110
67
  verbose?: boolean;
111
- /** Coordinator-owned unary host client used only for response claiming here. */
112
- hostRequestClient?: HostRequestClient;
113
68
  }
114
69
  /**
115
70
  * AcpServermanages the ACP protocol state machine.
@@ -125,30 +80,12 @@ export declare class AcpServer {
125
80
  private transport;
126
81
  private handler;
127
82
  private verbose;
128
- /** Host capabilities declared during initialize */
129
- private hostCapabilities;
130
- /** Whether the host supports x_ extended events */
131
- private hostSupportsExtendedEvents;
132
- /** Whether the host supports x/ extended RPC methods */
133
- private hostSupportsExtendedMethods;
134
- /** T9(delegate transport):host 是否在 initialize 声明服务 gateway-routed delegate(x/delegate 族;设计 §2.4)。 */
135
- private hostSupportsDelegate;
136
- /** Exact host-request capability negotiated during initialize. */
137
- private negotiatedHostRequestCapability;
138
83
  /** Sessions registered via session/new on this connection (multi-session per connection). */
139
84
  private registeredSessions;
140
85
  /** Pending permission requests (agent -> host) waiting for response */
141
86
  private pendingPermissions;
142
87
  /** Map from outbound JSON-RPC request id -> permissionId for response matching */
143
88
  private outboundRequestMap;
144
- /**
145
- * delegate transport 跨进程 delegate 客户端(泛化本类的 outbound-request 底座;设计 §5.1)。与审批 outboundRequestMap
146
- * 并存:x/delegate 用 `del-*` rpc id,审批用 `perm-*`,handleResponse 先问 delegate 再落审批,互不干扰。
147
- * All orchestration stations call this client through the authority-neutral DelegateBridge.
148
- */
149
- private readonly delegateClient;
150
- /** Coordinator-owned client reference; AcpServer only offers its response-claim seam. */
151
- private readonly hostRequestClient?;
152
89
  constructor(transport: Transport, handler: AcpRequestHandler, config?: AcpServerConfig);
153
90
  /**
154
91
  * Route an incoming raw message through ACP protocol handling.
@@ -157,11 +94,9 @@ export declare class AcpServer {
157
94
  */
158
95
  dispatchMessage(raw: unknown): boolean;
159
96
  /**
160
- * Emit an ACP session/update notification to the host.
161
- * Standard update types are always sent; x_ types only if the host declared
162
- * the qlogicagent capability with events enabled.
97
+ * Emit a standard ACP session/update notification to the host.
163
98
  */
164
- emitSessionUpdate(sessionId: string, type: AcpSessionUpdateType, payload: Record<string, unknown>): void;
99
+ emitSessionUpdate(sessionId: string, update: SessionUpdate): void;
165
100
  /**
166
101
  * Send a permission request to the host (agent -> host RPC).
167
102
  * Returns a promise that resolves with the host's chosen option.
@@ -173,18 +108,6 @@ export declare class AcpServer {
173
108
  * pending approval can't survive to poison the next turn.
174
109
  */
175
110
  cancelAllPendingPermissions(): void;
176
- /** Whether the host supports extended events */
177
- get supportsExtendedEvents(): boolean;
178
- /** Whether the host supports extended methods */
179
- get supportsExtendedMethods(): boolean;
180
- /** T9(delegate transport):host 是否声明服务 gateway-routed delegate(gate;设计 §2.4)。 */
181
- get supportsDelegate(): boolean;
182
- /** Exact service check over the initialize capability; no boolean/prefix fallback. */
183
- supportsHostRequestService(service: HostRequestService): boolean;
184
- /** Capability snapshot consumed by the coordinator-owned HostRequestClient. */
185
- get hostRequestCapability(): unknown;
186
- /** Cross-process delegate client used by orchestration stations through DelegateBridge. */
187
- get delegate(): DelegateClient;
188
111
  /** Whether a session id has been registered via session/new on this connection. */
189
112
  hasSession(sessionId: string): boolean;
190
113
  private handleRequest;
@@ -196,12 +119,9 @@ export declare class AcpServer {
196
119
  private onSessionPrompt;
197
120
  private onSessionClose;
198
121
  private onSessionSetConfig;
199
- private onSessionSetModel;
200
122
  private onSessionSetMode;
201
- private onAbort;
202
123
  private onSessionCancel;
203
124
  private onCancel;
204
- private onDream;
205
125
  private sendResult;
206
126
  private sendError;
207
127
  private isJsonRpcResponse;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.24.1",
3
+ "version": "2.24.2",
4
4
  "packageManager": "pnpm@10.23.0",
5
- "description": "XiaozhiClaw Agent CLI subprocess architecture (JSON-RPC over stdio)",
5
+ "description": "XiaozhiClaw standard ACP Agent adapter",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
@@ -24,50 +24,6 @@
24
24
  "./orchestration": {
25
25
  "types": "./dist/types/orchestration/index.d.ts",
26
26
  "default": "./dist/orchestration.js"
27
- },
28
- "./protocol": {
29
- "types": "./dist/types/protocol/wire/index.d.ts",
30
- "default": "./dist/protocol.js"
31
- },
32
- "./agent-contract": {
33
- "types": "./dist/types/protocol/agent-contract.d.ts",
34
- "default": "./dist/agent-contract.js"
35
- },
36
- "./permissions": {
37
- "types": "./dist/types/permissions.d.ts",
38
- "default": "./dist/permissions.js"
39
- },
40
- "./tunables": {
41
- "types": "./dist/types/tunables.d.ts",
42
- "default": "./dist/tunables.js"
43
- },
44
- "./workflow-host": {
45
- "types": "./dist/types/workflow-host.d.ts",
46
- "default": "./dist/workflow-host.js"
47
- },
48
- "./project-memory-host": {
49
- "types": "./dist/types/project-memory-host.d.ts",
50
- "default": "./dist/project-memory-host.js"
51
- },
52
- "./host-contract": {
53
- "types": "./dist/types/host-contract/index.d.ts",
54
- "default": "./dist/host-contract.js"
55
- },
56
- "./memory-category-contract": {
57
- "types": "./dist/types/host-contract/memory-category.d.ts",
58
- "default": "./dist/memory-category-contract.js"
59
- },
60
- "./skill-category-contract": {
61
- "types": "./dist/types/host-contract/skill-category.d.ts",
62
- "default": "./dist/skill-category-contract.js"
63
- },
64
- "./host-session-collection-contract": {
65
- "types": "./dist/types/host-session-collection-contract.d.ts",
66
- "default": "./dist/host-session-collection-contract.js"
67
- },
68
- "./plugin-marketplace-compute": {
69
- "types": "./dist/types/skills/plugins/plugin-marketplace.d.ts",
70
- "default": "./dist/plugin-marketplace-compute.js"
71
27
  }
72
28
  },
73
29
  "files": [
@@ -78,12 +34,6 @@
78
34
  },
79
35
  "typesVersions": {
80
36
  "*": {
81
- "protocol": [
82
- "./dist/types/protocol/wire/index.d.ts"
83
- ],
84
- "agent-contract": [
85
- "./dist/types/protocol/agent-contract.d.ts"
86
- ],
87
37
  "agent": [
88
38
  "./dist/types/agent/agent.d.ts"
89
39
  ],
@@ -92,33 +42,6 @@
92
42
  ],
93
43
  "orchestration": [
94
44
  "./dist/types/orchestration/index.d.ts"
95
- ],
96
- "permissions": [
97
- "./dist/types/permissions.d.ts"
98
- ],
99
- "tunables": [
100
- "./dist/types/tunables.d.ts"
101
- ],
102
- "workflow-host": [
103
- "./dist/types/workflow-host.d.ts"
104
- ],
105
- "project-memory-host": [
106
- "./dist/types/project-memory-host.d.ts"
107
- ],
108
- "host-contract": [
109
- "./dist/types/host-contract/index.d.ts"
110
- ],
111
- "memory-category-contract": [
112
- "./dist/types/host-contract/memory-category.d.ts"
113
- ],
114
- "skill-category-contract": [
115
- "./dist/types/host-contract/skill-category.d.ts"
116
- ],
117
- "host-session-collection-contract": [
118
- "./dist/types/host-session-collection-contract.d.ts"
119
- ],
120
- "plugin-marketplace-compute": [
121
- "./dist/types/skills/plugins/plugin-marketplace.d.ts"
122
45
  ]
123
46
  }
124
47
  },
@@ -132,35 +55,20 @@
132
55
  "test:release": "pnpm test && pnpm run test:slow",
133
56
  "test:replay": "vitest run benchmarks/transcript-replay",
134
57
  "benchmark:multi-session-real": "tsx benchmarks/multi-session-real/runner.ts",
135
- "benchmark:multi-session-live": "tsx benchmarks/multi-session-real/live-runner.ts",
136
- "benchmark:multi-session-live:resume": "tsx benchmarks/multi-session-real/live-runner.ts --resume",
137
- "benchmark:subagent-delegation-live": "tsx benchmarks/subagent-delegation/live-runner.ts",
138
- "benchmark:workflow-authoring": "tsx benchmarks/workflow-authoring/runner.ts",
139
- "benchmark:goal-long-horizon": "tsx benchmarks/goal-long-horizon/runner.ts",
140
58
  "check": "node scripts/run-check.mjs",
141
59
  "test:watch": "vitest",
142
60
  "benchmark:hermes-superiority": "tsx benchmarks/hermes-superiority/runner.ts",
143
- "benchmark:product-blackbox": "tsx benchmarks/product-blackbox/runner.ts",
144
- "benchmark:product-blind-preflight": "tsx benchmarks/product-blackbox/runner.ts blind-preflight",
145
- "benchmark:product-blind-calibration": "tsx benchmarks/product-blackbox/runner.ts prepare-blind-calibration",
146
- "benchmark:product-blind-score": "tsx benchmarks/product-blackbox/runner.ts score-blind-calibration",
147
- "benchmark:capability-state-fixtures": "tsx benchmarks/product-blackbox/run-capability-state-fixtures.ts",
148
61
  "lint": "oxlint .",
149
62
  "check:encoding-corruption": "node scripts/check-encoding-corruption.mjs",
150
63
  "check:mechanical-rules": "node scripts/check-mechanical-rules.mjs",
151
64
  "check:windows-hide": "node scripts/check-windows-hide.mjs src",
152
65
  "check:test-suite-governance": "node scripts/check-test-suite-governance.mjs",
153
66
  "check:architecture-boundaries": "node scripts/check-architecture-boundaries.mjs",
154
- "check:agent-contract": "node scripts/check-agent-contract-hash.mjs",
155
- "check:route-a-teardown": "node scripts/check-route-a-teardown.mjs",
156
- "check:transcript-tool-persistence": "node scripts/check-transcript-tool-persistence.mjs",
157
67
  "check:provider-core-boundary": "node scripts/check-provider-core-boundary.mjs",
158
68
  "check:provider-core-release-sync": "node scripts/check-provider-core-release-sync.mjs",
159
69
  "check:workspace-hygiene": "node scripts/check-workspace-hygiene.mjs",
160
70
  "check:workspace-hygiene:strict": "node scripts/check-workspace-hygiene.mjs --strict",
161
71
  "check:package-artifact": "npm run build && node scripts/check-package-artifact.mjs",
162
- "corpus:export-feedback": "tsx scripts/export-feedback-corpus.ts",
163
- "redteam:community-desensitization": "tsx src/runtime/community/community-desensitization-red-team-cli.ts",
164
72
  "clean:workspace-hygiene": "node scripts/clean-workspace-hygiene.mjs",
165
73
  "release": "node scripts/release.mjs"
166
74
  },
@@ -170,8 +78,8 @@
170
78
  "dependencies": {
171
79
  "@agentclientprotocol/sdk": "^0.25.0",
172
80
  "@napi-rs/canvas": "0.1.100",
173
- "@xiaozhiclaw/module-sdk": "0.4.2",
174
- "@xiaozhiclaw/provider-core": "0.1.35",
81
+ "@xiaozhiclaw/module-sdk": "0.4.3",
82
+ "@xiaozhiclaw/provider-core": "0.1.36",
175
83
  "ajv": "8.20.0",
176
84
  "better-sqlite3": "^12.10.0",
177
85
  "dotenv": "^17.3.1",
@@ -1 +0,0 @@
1
- var T=10,A=1,_=["completed","failed","cancelled"],E=["turn.start","turn.delta","turn.end","turn.error","turn.recovery","turn.text_rollback","turn.file_changes","turn.tool_call","turn.tool_result","turn.tool_blocked","turn.reasoning_delta","turn.approval_request","turn.ask_user","turn.media_result","turn.plan_update","turn.suggestions","turn.sidechain_started","turn.subagent_started","turn.subagent_delta","turn.subagent_activity","turn.subagent_ended","turn.subagent_completed","turn.subagent_decision","turn.sidechain_completed","turn.task_updated","turn.todos_updated","turn.exec_progress","turn.progress","turn.tool_use_summary","turn.tool_selection_policy","turn.lifecycle","turn.document_maintenance","turn.artifact_contract","turn.usage_update","team.member.notification","session.info","session.recovery_pending","thread.item","memory.updated","skills.updated","turn.memory_recall","turn.memory_written","system.activity","workflow.created","workflow.updated","workflow.deleted","workflow.runStarted","workflow.runCompleted","workflow.runFailed","workflow.nodeStatus","workflow.triggerDropped","workflow.alert","workflow.approvalRequested","workflow.approvalTimedOut"],I=["solo.progress","solo.specProgress","solo.agentDelta","solo.agentActivity","solo.agentUsage","solo.evaluation","solo.agentDiff","solo.state","product.taskStarted","product.taskOutput","product.members","product.agentActivity","product.taskCompleted","product.taskFailed","product.taskHandoff","product.budgetUpdate","product.budgetWarning","product.budgetExceeded","product.checkpointed","product.completed","product.dagTopology","plan.interrupted","product.planReady","product.planningDelta","product.leaderMessage","product.planFailed","product.planningAsk","mention.delegate_started","mention.delegate_activity","mention.delegate_settled"],p=[...E,...I],N=p,f={"turn.subagent_started":["turnId","parentTurnId","subagentId","agentType","displayName","delegatedTask","mode","startedAt"],"turn.subagent_activity":["turnId","parentTurnId","subagentId","agentType","displayName","conciseStatus","status","observedAt"],"turn.subagent_completed":["turnId","parentTurnId","subagentId","agentType","displayName","status","evidence","toolsUsed","durationMs","tokenUsage","finishedAt"],"turn.subagent_decision":["turnId","parentTurnId","subagentId","decision","decidedAt"],"product.taskStarted":["productId","taskId","assignee","attempt"],"product.taskCompleted":["productId","taskId","result","attempt"],"product.taskFailed":["productId","taskId","error","attempt","terminalState"],"product.taskHandoff":["productId","taskId","from","to","reason","attempt","timestamp"],"product.budgetExceeded":["productId","usedTokens","reason"],"mention.delegate_started":["parentSessionId","parentMessageId","bindingId","executionSessionId","delegationId","sequence","providerId","revision"],"mention.delegate_activity":["parentSessionId","parentMessageId","bindingId","executionSessionId","delegationId","sequence","providerId","revision"],"mention.delegate_settled":["parentSessionId","parentMessageId","bindingId","executionSessionId","delegationId","sequence","providerId","revision","status"]};function k(d,a,c={}){let l=c.requireKnownAssignee??!0,n=[];d.length===0&&n.push({taskId:"",reason:"\u7F3A\u5C11\u6267\u884C\u6210\u5458:\u81F3\u5C11\u9700\u8981\u4E00\u4E2A instance"});let s=new Set;for(let e of a){let t=(e.taskId??"").trim();if(!t){n.push({taskId:"",reason:"\u5B58\u5728\u6CA1\u6709 taskId \u7684\u4EFB\u52A1"});continue}s.has(t)&&n.push({taskId:t,reason:`taskId \u91CD\u590D:"${t}"`}),s.add(t),(e.prompt??"").trim()||n.push({taskId:t,reason:"\u4EFB\u52A1\u8BF4\u660E\u4E3A\u7A7A"}),(e.assignee??"").trim()||n.push({taskId:t,reason:"\u6CA1\u6709\u6307\u6D3E\u8D1F\u8D23\u6210\u5458"})}let i=new Set(d.flatMap(e=>[(e.name??"").trim(),(e.agentId??"").trim()]).filter(Boolean));for(let e of a){let t=(e.assignee??"").trim();l&&t&&i.size>0&&!i.has(t)&&n.push({taskId:e.taskId,reason:`\u8D1F\u8D23\u6210\u5458\u300C${t}\u300D\u4E0D\u5728\u56E2\u961F\u540D\u5355\u91CC`});for(let o of e.dependsOn??[])o===e.taskId?n.push({taskId:e.taskId,reason:"\u4EFB\u52A1\u4F9D\u8D56\u4E86\u81EA\u5DF1"}):s.has(o)||n.push({taskId:e.taskId,reason:`\u4F9D\u8D56\u4E86\u4E0D\u5B58\u5728\u7684\u4EFB\u52A1\u300C${o}\u300D`})}let g=new Map(a.map(e=>[e.taskId,(e.dependsOn??[]).filter(t=>s.has(t))])),r=new Map,u=e=>{let t=r.get(e);if(t==="done")return!1;if(t==="visiting")return!0;r.set(e,"visiting");for(let o of g.get(e)??[])if(u(o))return!0;return r.set(e,"done"),!1};for(let e of s)if(u(e)){n.push({taskId:e,reason:"\u4EFB\u52A1\u4F9D\u8D56\u6210\u73AF"});break}return n}var S={version:10,eventSchemaVersion:1,eventNames:p,eventRequiredKeys:f,terminalStates:_},m="5fcb0701c3e9acaff61e5039729e6eb5f41352581ce52079edfa434913ef234c",y={version:10,hash:m};export{S as AGENT_CONTRACT_DESCRIPTOR,m as AGENT_CONTRACT_HASH,y as AGENT_CONTRACT_IDENTITY,T as AGENT_CONTRACT_VERSION,p as AGENT_EVENT_NAMES,f as AGENT_EVENT_REQUIRED_KEYS,A as AGENT_EVENT_SCHEMA_VERSION,I as AGENT_TEAM_WS_EVENT_NAMES,_ as AGENT_TERMINAL_STATES,E as AGENT_WS_EVENT_NAMES,N as ALL_AGENT_WS_EVENT_NAMES,k as collectProductPlanIssues};