qlogicagent 2.23.14 → 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 +2 -6
  11. package/dist/types/agent/types.d.ts +9 -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 +4 -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 +8 -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 +8 -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
@@ -1,533 +0,0 @@
1
- /**
2
- * ACP (Agent-Client Protocol) type definitions for third-party agent management.
3
- *
4
- * These types define the contract for discovering, registering, and managing
5
- * external ACP-compatible agent CLIs alongside qlogicagent's internal agents.
6
- */
7
- import type { ProductTaskStatus, ProductInstanceDef, ProductTaskDef } from "./agent-methods.js";
8
- export type { SoloState, SoloAgentState, SoloAgentResult, SoloStatus, ProductPhase, ProductTaskStatus, ProductInstanceDef, ProductTaskDef, ProductStatus, ProductSummary, } from "./agent-methods.js";
9
- /** ACP initialize result (from agent's response). */
10
- export interface AcpInitializeResult {
11
- protocolVersion: number;
12
- /** Standard ACP agentCapabilities (official SDK field). */
13
- agentCapabilities: {
14
- loadSession?: boolean;
15
- mcpCapabilities?: {
16
- http?: boolean;
17
- sse?: boolean;
18
- stdio?: boolean;
19
- };
20
- promptCapabilities?: {
21
- audio?: boolean;
22
- embeddedContext?: boolean;
23
- image?: boolean;
24
- };
25
- sessionCapabilities?: Record<string, unknown>;
26
- [key: string]: unknown;
27
- };
28
- /** Standard ACP agentInfo (official SDK field). */
29
- agentInfo?: {
30
- name: string;
31
- version?: string;
32
- };
33
- authMethods?: Array<{
34
- type: string;
35
- [key: string]: unknown;
36
- }>;
37
- }
38
- /** ACP session/new result (official: { sessionId, configOptions?, models?, modes? }). */
39
- export interface AcpSessionResult {
40
- sessionId: string;
41
- }
42
- /** Standard ACP stopReason. */
43
- export type AcpStopReason = "end_turn" | "max_tokens" | "max_turn_requests" | "refusal" | "cancelled";
44
- /** ACP prompt response (official: { stopReason, usage?, userMessageId? }). */
45
- export interface AcpPromptResponse {
46
- stopReason: AcpStopReason;
47
- usage?: AcpPromptResponseUsage;
48
- userMessageId?: string;
49
- /** Aggregated text from session/update notifications (populated by adapter). */
50
- text?: string;
51
- }
52
- /** ACP per-turn usage stats (aligned with SDK zUsage). */
53
- export interface AcpPromptResponseUsage {
54
- inputTokens?: number;
55
- outputTokens?: number;
56
- totalTokens?: number;
57
- cachedReadTokens?: number;
58
- cachedWriteTokens?: number;
59
- thoughtTokens?: number;
60
- }
61
- /** ACP usage_update notification payload (session-level). */
62
- export interface AcpUsageUpdatePayload {
63
- used?: number;
64
- size?: number;
65
- cost?: number;
66
- inputTokens?: number;
67
- outputTokens?: number;
68
- totalTokens?: number;
69
- }
70
- /** MCP server config to inject into ACP session/new. */
71
- export interface McpServerEnvEntry {
72
- name: string;
73
- value: string;
74
- }
75
- export interface McpServerConfig {
76
- name: string;
77
- command: string;
78
- args: string[];
79
- env?: McpServerEnvEntry[];
80
- }
81
- export interface SoloEvaluation {
82
- winnerId: string;
83
- reasoning: string;
84
- /** True once the user adopted the winner's worktree changes into the workspace (solo.select).
85
- * Absent on the auto-judge recommendation — the UI keeps the adopt action visible until then. */
86
- adopted?: boolean;
87
- /** displayId of the agent that acted as judge — a competitor judging its own race is a
88
- * trust caveat the user must see, not a hidden implementation detail. */
89
- judgedBy?: string;
90
- /** True when the judge did NOT compete (preferred): an independent ready agent scored the race. */
91
- judgeExternal?: boolean;
92
- /** True when the verdict is a fallback (judge turn failed / unparseable response) rather than a
93
- * real comparison — the UI must flag it for manual review instead of presenting it as a ruling. */
94
- degraded?: boolean;
95
- }
96
- /** Lightweight Spec (design D3): goal + constraints + acceptance, fits one screen. */
97
- export interface SoloSpec {
98
- goal: string;
99
- constraints: string[];
100
- /** 3-5 checkable acceptance criteria — the evaluate scoring rubric. */
101
- acceptance: string[];
102
- /** Original raw task, kept for reference. */
103
- rawTask: string;
104
- /** Clarification Q&A trail (optional). */
105
- clarifications?: {
106
- question: string;
107
- answer: string;
108
- }[];
109
- }
110
- /** x/solo.specChat RPC params (R3 多轮对话式 spec)。history 含到本轮为止的完整对话(末条为用户最新消息)。 */
111
- export interface SoloSpecChatParams {
112
- rawTask: string;
113
- history: {
114
- role: "user" | "assistant";
115
- content: string;
116
- }[];
117
- projectId?: string;
118
- /** 上一轮形成的规格草稿——回传给主持人做增量更新,防止第二轮起整份重写。 */
119
- draft?: SoloSpec;
120
- }
121
- /** x/solo.specChat RPC result. */
122
- export interface SoloSpecChatResult {
123
- reply?: string;
124
- spec?: SoloSpec;
125
- error?: string;
126
- }
127
- /** x/solo.specJudge RPC params/result(启动软门防呆:judge 最终 spec 质量)。 */
128
- export interface SoloSpecJudgeParams {
129
- spec: SoloSpec;
130
- }
131
- export interface SoloSpecJudgeResult {
132
- ok: boolean;
133
- issues: string[];
134
- /** True when ok=true came from a SKIPPED judgement (no LLM / judge call failed) — an unjudged
135
- * soft-gate pass, not a real "spec reviewed OK". Fail-open stays, but honestly labeled. */
136
- judgeSkipped?: boolean;
137
- }
138
- export interface WorkflowChatContextCheckpoint {
139
- protocolVersion: 1;
140
- producer: "qlogicagent";
141
- payload: {
142
- messages: {
143
- role: "user" | "assistant";
144
- content: string;
145
- }[];
146
- /** Revisable conversation evidence. Deliberately has no ready/complete/pass gate. */
147
- intentContract?: WorkflowIntentContract;
148
- };
149
- }
150
- export interface WorkflowIntentContract {
151
- revision: number;
152
- observations: Array<{
153
- id: string;
154
- sequence: number;
155
- text: string;
156
- }>;
157
- facts: Array<{
158
- id: string;
159
- statement: string;
160
- confidence: "explicit" | "inferred";
161
- sourceObservationIds: string[];
162
- status: "active" | "superseded";
163
- }>;
164
- openQuestions: Array<{
165
- id: string;
166
- question: string;
167
- sourceObservationIds: string[];
168
- status: "open" | "resolved";
169
- }>;
170
- diagnostics: string[];
171
- }
172
- export interface WorkflowChatContextTurn {
173
- sequence: number;
174
- role: "user" | "assistant";
175
- content: string;
176
- }
177
- /** x/workflow.chat RPC params(M4 自动化页对话式搭图/改图)。
178
- * Runtime Host 传入 durable checkpoint + checkpoint 之后的新消息。`history` 仅保留给显式
179
- * ephemeral 局部编辑,不再是持久化会话权威。 */
180
- export interface WorkflowChatParams {
181
- context?: {
182
- checkpoint: WorkflowChatContextCheckpoint | null;
183
- newTurns: WorkflowChatContextTurn[];
184
- };
185
- /** Answered UI clarification ids. Resolves revisable evidence only; never marks the workflow complete. */
186
- resolvedClarificationIds?: string[];
187
- history?: {
188
- role: "user" | "assistant";
189
- content: string;
190
- }[];
191
- /** Registered project whose capability catalog and workflow draft are being edited. */
192
- projectId: string;
193
- /** Workflow currently edited. The Host injects this into connector tools. */
194
- workflowId?: string;
195
- /** Exact Runtime Host capability snapshot for this proposal round. */
196
- capabilities: Array<{
197
- category: string;
198
- kind: string;
199
- id: string;
200
- label: string;
201
- [key: string]: unknown;
202
- }>;
203
- currentWorkflow?: string;
204
- /** Host-built bounded prompt context; full currentWorkflow stays compiler-only. */
205
- editContext?: Record<string, unknown>;
206
- /** D19 框选局部修改:框选的节点 id;非空 → agent 产 scoped proposal,由 Gateway Host 应用。 */
207
- scope?: string[];
208
- }
209
- /** x/workflow.chat RPC result:one deterministic proposal compiled from bounded Agent operations.
210
- * Runtime Host is the only mutation owner; UI never receives or reapplies raw graph patches. */
211
- export interface WorkflowChatResult {
212
- reply?: string;
213
- proposal?: {
214
- patch: unknown[];
215
- };
216
- error?: string;
217
- /** propose 全被校验拒(无任何提案落地)时的显式失败:前端展示真实错误 + 重试出路,不许当正常回复。 */
218
- rejected?: {
219
- attempts: number;
220
- errors: string[];
221
- };
222
- /** Agent-authored structured interaction. Transport only: not a save, finish, or proposal gate. */
223
- clarify?: Array<{
224
- intentQuestionId?: string;
225
- id?: string;
226
- purpose?: string;
227
- nodeId?: string;
228
- field?: string;
229
- header: string;
230
- question: string;
231
- options?: Array<{
232
- label: string;
233
- description?: string;
234
- }>;
235
- multiSelect?: boolean;
236
- }>;
237
- /** qlogicagent-owned compact model context. Runtime stores this opaque payload separately from
238
- * the complete visible transcript and assigns the durable transcript boundary on commit. */
239
- contextCheckpoint?: WorkflowChatContextCheckpoint;
240
- semanticAcceptance?: Record<string, unknown>;
241
- intentContract?: WorkflowIntentContract;
242
- capabilitySelection?: string[];
243
- /** Host-owned secure input request produced by a connector tool. */
244
- pendingConnectorInput?: Record<string, unknown>;
245
- /** Layered connector validation evidence; informative and never a uniform completion gate. */
246
- connectorValidation?: Record<string, unknown>;
247
- }
248
- /** solo.start RPC params. */
249
- export interface SoloStartParams {
250
- task: string;
251
- agents: string[];
252
- cwd: string;
253
- /** Project ID that owns this solo session. Used for session storage routing. */
254
- projectId: string;
255
- /** Optional shared config injected into all agents (memory seed, rules, etc). */
256
- sharedConfig?: {
257
- /** Initial memory entries to seed into each agent's context. */
258
- memory?: string[];
259
- /** Rules/instructions to inject as system prompt prefix. */
260
- rules?: string[];
261
- /** Model override for all agents. */
262
- model?: string;
263
- };
264
- /** Spec from the Spec phase; when present, injected into enrichedTask + persisted + used as evaluate rubric. */
265
- spec?: SoloSpec;
266
- }
267
- /** Solo control RPC params. Status projection is Host-native and not an agent method. */
268
- export interface SoloIdParams {
269
- soloId: string;
270
- }
271
- /** solo.select RPC params. */
272
- export interface SoloSelectParams {
273
- soloId: string;
274
- winnerId: string;
275
- }
276
- /** solo.message RPC params — send follow-up to individual agent. */
277
- export interface SoloMessageParams {
278
- soloId: string;
279
- agentId: string;
280
- content: string;
281
- /** For duplicate agentIds, specify which instance (0-based index). */
282
- agentIndex?: number;
283
- }
284
- /** solo.evaluate RPC params — user-triggered evaluation with chosen evaluator. */
285
- export interface SoloEvaluateParams {
286
- soloId: string;
287
- /** Which agent in the solo session should perform the evaluation comparison. */
288
- evaluatorAgentId: string;
289
- /** For duplicate agentIds, specify which instance (0-based index). */
290
- evaluatorIndex?: number;
291
- }
292
- export type ProductInstanceState = "idle" | "running" | "completed" | "failed" | "paused";
293
- /** Product budget configuration & runtime counters. */
294
- export interface ProductBudget {
295
- maxTotalTokens?: number;
296
- maxDuration?: number;
297
- usedTokens: number;
298
- inputTokens?: number;
299
- outputTokens?: number;
300
- elapsed: number;
301
- }
302
- /** product.create RPC params. */
303
- export interface ProductCreateParams {
304
- /** Optional existing product ID, used when a confirmed planning session transitions into execution. */
305
- productId?: string;
306
- name: string;
307
- cwd: string;
308
- /** Project ID that owns this product session. Used for session storage routing. */
309
- projectId: string;
310
- instances: ProductInstanceDef[];
311
- tasks: ProductTaskDef[];
312
- budget?: {
313
- maxTotalTokens?: number;
314
- maxDuration?: number;
315
- };
316
- /**
317
- * Durable per-turn policy inherited from a parent Goal. Product keeps member-specific model
318
- * selection: modelId/reasoningEffort apply only to the native qlogicagent member, while Host
319
- * permissions and active skills remain available to every supervised member.
320
- */
321
- turnContext?: {
322
- modelId?: string;
323
- reasoningEffort?: string;
324
- permissions?: unknown;
325
- activeSkills?: string[];
326
- /** Native qlogicagent-only projection of the parent Goal for Agent-local compaction. */
327
- goalContextEnvelope?: import("./chat-types.js").ContextEnvelope;
328
- };
329
- }
330
- /**
331
- * product.plan RPC params — starts an interactive planning session.
332
- * The leader agent decomposes the goal into modules and proposes a DAG.
333
- */
334
- export interface ProductPlanParams {
335
- /** High-level project goal (e.g. "build a multiplayer MMO game"). */
336
- goal: string;
337
- /** Working directory for the project. */
338
- cwd: string;
339
- /** Gateway project registry identity that owns the planning and execution run. */
340
- projectId: string;
341
- /** Gateway canonical session that owns the durable Product run. */
342
- canonicalSessionId: string;
343
- /** Which agent acts as the team leader (must be ACP-compatible). */
344
- leaderAgentId: string;
345
- /** Optional: project name. Leader can suggest one if omitted. */
346
- name?: string;
347
- /** Optional: budget constraints communicated to leader during planning. */
348
- budget?: {
349
- maxTotalTokens?: number;
350
- maxDuration?: number;
351
- };
352
- /**
353
- * Optional user-supplied allow-list of agent ids the selected leader may assign tasks to —
354
- * during planning AND during execution-phase reassignment. The user picks WHICH agents participate;
355
- * the leader still auto-plans + assigns, but only within this set.
356
- *
357
- * Semantics are PRESENCE-based (see buildAgentRoster) — an explicit `[]` differs from omitted:
358
- * - omitted / undefined → ALL ready agents.
359
- * - `[]` (explicit empty array) → ONLY `leaderAgentId`: the user deselected every worker.
360
- * - non-empty → the assignable roster = ready catalog entries whose id ∈ allowedAgents, PLUS the
361
- * selected leader. Product may use that leader as a single-agent executor; Goal keeps the selected
362
- * leader control-only whenever another ready worker exists.
363
- */
364
- allowedAgents?: string[];
365
- }
366
- /** The structured plan produced by the leader agent. */
367
- export interface ProductPlan {
368
- /** Product/project name. */
369
- name: string;
370
- /** Modules the project is decomposed into. */
371
- modules: Array<{
372
- name: string;
373
- description: string;
374
- /** Suggested agent for this module (leader's recommendation). */
375
- suggestedAgentId?: string;
376
- }>;
377
- /** Proposed team members (leader may suggest agents for each module). */
378
- instances: ProductInstanceDef[];
379
- /** Proposed task DAG. */
380
- tasks: ProductTaskDef[];
381
- /** Leader's explanation of the decomposition strategy. */
382
- reasoning: string;
383
- }
384
- /**
385
- * product.confirm RPC params — user confirms (optionally modified) plan.
386
- * This starts the actual DAG execution with the leader managing progress.
387
- */
388
- export interface ProductConfirmParams {
389
- /** The planning session product ID (returned by product.plan). */
390
- productId: string;
391
- projectId: string;
392
- canonicalSessionId: string;
393
- cwd: string;
394
- /** Final instances (user may have reassigned agents). */
395
- instances: ProductInstanceDef[];
396
- /** Final task DAG (user may have modified). */
397
- tasks: ProductTaskDef[];
398
- /** Budget for execution phase. */
399
- budget?: {
400
- maxTotalTokens?: number;
401
- maxDuration?: number;
402
- };
403
- }
404
- /**
405
- * product.message RPC params — user sends a message to the leader during any phase.
406
- * Supports: multi-turn planning dialogue, and user intervention during execution.
407
- */
408
- export interface ProductMessageParams {
409
- productId: string;
410
- projectId: string;
411
- canonicalSessionId: string;
412
- cwd: string;
413
- /** User's message content. */
414
- content: string;
415
- }
416
- /** Exact user-authored edit to a running Product DAG. One RPC carries one atomic mutation. */
417
- export interface ProductDagMutationParams {
418
- productId: string;
419
- projectId: string;
420
- canonicalSessionId: string;
421
- cwd: string;
422
- mutation: {
423
- type: "add_dependency" | "remove_dependency";
424
- taskId: string;
425
- details: {
426
- from: string;
427
- to: string;
428
- };
429
- };
430
- }
431
- /** Product lifecycle RPC params. Status projection is Host-native and not an agent method. */
432
- export interface ProductIdParams {
433
- productId: string;
434
- projectId: string;
435
- canonicalSessionId: string;
436
- cwd: string;
437
- }
438
- /**
439
- * product.replay RPC params — re-run from an arbitrary completed/failed task forward.
440
- * Resets the task + its descendants to pending and reuses upstream (ancestor) outputs as context.
441
- */
442
- export interface ProductReplayParams {
443
- productId: string;
444
- projectId: string;
445
- canonicalSessionId: string;
446
- cwd: string;
447
- taskId: string;
448
- }
449
- /** x/goal.start RPC params — launch a long-horizon goal run (instant, returns goalRunId). */
450
- export interface GoalStartParams {
451
- goal: string;
452
- projectId: string;
453
- canonicalSessionId: string;
454
- cwd: string;
455
- agentPool: string[];
456
- leaderAgentId: string;
457
- budget?: {
458
- maxTotalTokens?: number;
459
- maxDurationMs?: number;
460
- };
461
- modelId?: string;
462
- reasoningEffort?: string;
463
- permissionPolicy?: unknown;
464
- activeSkills?: string[];
465
- }
466
- /** x/goal.pause / x/goal.stop RPC params. Gateway derives the leader from the immutable session owner. */
467
- export interface GoalIdParams {
468
- goalRunId: string;
469
- projectId: string;
470
- canonicalSessionId: string;
471
- cwd: string;
472
- leaderAgentId: string;
473
- }
474
- /** x/goal.resume RPC params — optionally update the goal on resume. */
475
- export interface GoalResumeParams extends GoalIdParams {
476
- newGoal?: string;
477
- additionalBudget?: {
478
- maxTotalTokens?: number;
479
- maxDurationMs?: number;
480
- };
481
- }
482
- /** x/goal.updateGoal RPC params. */
483
- export interface GoalUpdateGoalParams extends GoalIdParams {
484
- newGoal: string;
485
- }
486
- /** x/goal.message RPC params — queue a steering message for the next phase boundary. */
487
- export interface GoalMessageParams extends GoalIdParams {
488
- text: string;
489
- kind?: "instruction_once" | "constraint_add" | "constraint_remove" | "answer_to_blocker" | "priority_change";
490
- }
491
- /** Runtime instance state. */
492
- export interface ProductInstanceStatus {
493
- instanceId: string;
494
- name: string;
495
- agentId: string;
496
- state: ProductInstanceState;
497
- worktreePath?: string;
498
- usage?: {
499
- inputTokens: number;
500
- outputTokens: number;
501
- };
502
- }
503
- /** Runtime task state. */
504
- export interface ProductTaskState {
505
- taskId: string;
506
- assignee: string;
507
- status: ProductTaskStatus;
508
- result?: string;
509
- error?: string;
510
- startedAt?: string;
511
- completedAt?: string;
512
- /** Per-task token usage, surfaced for cost attribution in the task detail view. */
513
- inputTokens?: number;
514
- outputTokens?: number;
515
- /** Relative paths of files the task produced. */
516
- changedFiles?: string[];
517
- }
518
- /** solo.delete / solo.cancel cleanup RPC params. */
519
- export interface SoloDeleteParams {
520
- soloId: string;
521
- }
522
- /** product.delete cleanup RPC params. */
523
- export interface ProductDeleteParams extends ProductIdParams {
524
- }
525
- export type { AgentSource } from "./notification-payloads.js";
526
- /** One row of the team roster shown to the leader during planning (soft capability hints only). */
527
- export interface AgentRosterEntry {
528
- id: string;
529
- name: string;
530
- model?: string;
531
- strengths: string;
532
- isLeader: boolean;
533
- }
@@ -1 +0,0 @@
1
- export { AGENT_TEAM_WS_EVENT_NAMES, AGENT_WS_EVENT_NAMES, ALL_AGENT_WS_EVENT_NAMES, type AgentTeamWsEventName, type AgentWsEventName, type AllAgentWsEventName, } from "../agent-contract.js";