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
@@ -1,89 +0,0 @@
1
- export type SkillLifecycleState = "active" | "stale" | "archived";
2
- export interface SkillLifecycleRecord {
3
- name: string;
4
- state: SkillLifecycleState;
5
- createdAt: string;
6
- lastUsedAt?: string;
7
- lastViewedAt?: string;
8
- lastPatchedAt?: string;
9
- staleAt?: string;
10
- archivedAt?: string;
11
- pinned: boolean;
12
- useCount: number;
13
- positiveCount?: number;
14
- negativeCount?: number;
15
- source: "learned" | "created" | "installed" | "promoted";
16
- resourceType?: string;
17
- launcherRequired?: boolean;
18
- manualReviewRequired?: boolean;
19
- sourceTier?: "official" | "community";
20
- riskTier?: "R0" | "R1" | "R2" | "R3";
21
- artifactDigest?: string;
22
- contentTreeDigest?: string;
23
- registryResourceId?: string;
24
- registryVersion?: string;
25
- registrySourceTier?: "official" | "community";
26
- registryRiskTier?: "R0" | "R1" | "R2" | "R3";
27
- registryEffectiveRiskTier?: "R0" | "R1" | "R2" | "R3";
28
- registryKeptSignalAt?: string;
29
- }
30
- export interface SkillLifecycleStore {
31
- version: 1;
32
- records: Record<string, SkillLifecycleRecord>;
33
- }
34
- export interface SkillUsageStats {
35
- invokeCount: number;
36
- activeCount: number;
37
- positiveCount: number;
38
- negativeCount: number;
39
- lastUsedAt?: string;
40
- successRate?: number;
41
- }
42
- export interface CuratorResult {
43
- transitioned: Array<{
44
- name: string;
45
- from: SkillLifecycleState;
46
- to: SkillLifecycleState;
47
- }>;
48
- skippedPinned: string[];
49
- }
50
- /**
51
- * Ensure a lifecycle record exists for a skill. Creates one if missing.
52
- */
53
- export declare function ensureRecord(store: SkillLifecycleStore, name: string, source?: SkillLifecycleRecord["source"]): SkillLifecycleRecord;
54
- /**
55
- * Record a skill invocation — resets to active if stale.
56
- */
57
- export declare function recordInvocation(store: SkillLifecycleStore, name: string, success?: boolean): void;
58
- /**
59
- * Record that a skill was viewed/listed.
60
- */
61
- export declare function recordView(store: SkillLifecycleStore, name: string): void;
62
- /**
63
- * Record that a skill was edited/patched.
64
- */
65
- export declare function recordPatch(store: SkillLifecycleStore, name: string): void;
66
- export declare function pinSkill(store: SkillLifecycleStore, name: string): boolean;
67
- export declare function unpinSkill(store: SkillLifecycleStore, name: string): boolean;
68
- export declare function isPinned(store: SkillLifecycleStore, name: string): boolean;
69
- /**
70
- * Run curator evaluation on all skills. Transitions states based on inactivity.
71
- * Pinned skills are never transitioned.
72
- *
73
- * Call this on agent idle, periodic timer, or explicit RPC.
74
- */
75
- export declare function runCurator(store: SkillLifecycleStore): CuratorResult;
76
- /**
77
- * Get all skills in a given state.
78
- */
79
- export declare function getSkillsByState(store: SkillLifecycleStore, state: SkillLifecycleState): SkillLifecycleRecord[];
80
- /**
81
- * Get lifecycle record for a skill. Returns undefined if not tracked.
82
- */
83
- export declare function getLifecycleRecord(store: SkillLifecycleStore, name: string): SkillLifecycleRecord | undefined;
84
- export declare function getLifecycleSkillStats(store: SkillLifecycleStore, name: string): SkillUsageStats | undefined;
85
- export declare function getAllLifecycleSkillStats(store: SkillLifecycleStore): Record<string, SkillUsageStats>;
86
- /**
87
- * Remove a lifecycle record (e.g., when skill is deleted).
88
- */
89
- export declare function removeRecord(store: SkillLifecycleStore, name: string): void;
@@ -1,82 +0,0 @@
1
- /**
2
- * DelegateClient —— qlogicagent(leader)侧的跨进程 delegate 传输客户端(delegate transport lane impl-transport-qla)。
3
- *
4
- * 契约单一事实源:host-contract §12 DelegateWire(冻结,严禁本文件自改契约)。
5
- * Wire authority:host-contract §12 DelegateWire;行为由本文件及其 contract tests 锁定。
6
- *
7
- * 方向倒置(设计 §1):今天 qlogicagent→gateway 唯一 outbound 请求 = session/request_permission
8
- * (acp-server.ts:247 requestPermission)。本客户端泛化该 outbound-request 底座,新增:
9
- * - `x/delegate`(agent→host 请求,有 id,resolve TurnResult)—— leader 请网关代派一个 worker 回合。
10
- * - `x/delegate.update`(host→agent 通知,回流帧)—— 消费 worker 的 SupervisorEventSink 事件喂 leader。
11
- * - `x/delegate.respond` / `x/delegate.cancel`(agent→host 通知)—— 审批应答 / 取消。
12
- *
13
- * 不变式落点(设计 §6,注释标 T 号):
14
- * T3/T6 消费方 seq 单调连续校验(跳号=丢帧/乱序,fail-loud);
15
- * T5 请求无客户端硬超时(回合可跑数分钟;挂死靠 gateway 判活 + 下行 lifecycle 暴露,不靠客户端计时);
16
- * T7 结构化 error 保结构(code + data.diagnostics,禁裸串);
17
- * T9 capability 握手 gate:host 未声明 delegate 能力则拒发 x/delegate(fail-loud,不静默降级);
18
- * E1/R1 每帧带权威 member(=to.handle);leader 断言帧 member 与请求一致(不等=路由漂移,fail-loud)。
19
- *
20
- * 纪律:fail-loud(丢帧/漂移/gate 未过一律炸,不静默);单轨(delegationId 唯一关联主键,无第二关联轴);零 mock。
21
- */
22
- import { type DelegateCancelParams, type DelegateRequestParams, type DelegateRespondParams, type DelegateUpdateFrame, type SupervisorEventSink, type TurnResult } from "../host-contract/index.js";
23
- import type { AcpJsonRpcNotification, AcpJsonRpcRequest, AcpJsonRpcResponse } from "../protocol/wire/index.js";
24
- /** 结构化 JSON-RPC error(保留 code + data;T7)。 */
25
- export type DelegateRpcError = Error & {
26
- code?: number;
27
- data?: unknown;
28
- };
29
- /**
30
- * 传输底座(由 AcpServer 注入):把帧写到与 gateway 的 ACP/stdio 双向连接(T1 单通道),
31
- * 并暴露 T9 gate(host 是否在 initialize 声明了 delegate 能力位)。
32
- */
33
- export interface DelegateClientTransport {
34
- /** 发一帧(请求或通知)到 host(复用现有 ACP/stdio 连接;不开第二通道,T1)。 */
35
- send(msg: AcpJsonRpcRequest | AcpJsonRpcNotification): void;
36
- /** T9:host 是否在 initialize 声明服务 delegate(否则拒发 x/delegate,fail-loud,不静默降级)。 */
37
- hostSupportsDelegate(): boolean;
38
- }
39
- export interface DelegateClientOptions {
40
- /** 结构化日志出口(默认 stderr;绝不含 prompt/凭据明文)。 */
41
- log?: (line: string) => void;
42
- }
43
- export declare class DelegateClient {
44
- private readonly transport;
45
- /** rpc id → 在飞 delegation(x/delegate 终态响应按此匹配)。 */
46
- private readonly byRpcId;
47
- /** delegationId → 在飞 delegation(x/delegate.update 回流帧按此路由;本地唯一性去重)。 */
48
- private readonly byDelegationId;
49
- private readonly log;
50
- constructor(transport: DelegateClientTransport, options?: DelegateClientOptions);
51
- /**
52
- * 发 `x/delegate` 请求(agent→host),resolve 出最终 TurnResult。回流事件经 sink 喂 leader。
53
- * 【请求即隐式订阅】(设计 §3.1):gateway 收到即开始把该 delegation 的 sink 事件泵成 x/delegate.update
54
- * 下行,本客户端按 delegationId 路由到传入 sink。**无客户端硬超时**(T5:回合可跑数分钟)。
55
- */
56
- delegate(params: DelegateRequestParams, sink: SupervisorEventSink): Promise<TurnResult>;
57
- /** 发 `x/delegate.respond`(leader 来源审批应答;通知,fire-and-forget)。optionId 不透明透传(E2)。 */
58
- respond(params: DelegateRespondParams): void;
59
- /** 发 `x/delegate.cancel`(取消回合,不杀进程;通知)。终态由 gateway 保证下行显式 cancelled(E3)。 */
60
- cancel(params: DelegateCancelParams): void;
61
- /** 是否有该 delegationId 在飞(观测/测试用)。 */
62
- has(delegationId: string): boolean;
63
- /**
64
- * AcpServer.handleResponse 优先问本客户端是否认领该 rpc 响应(x/delegate 终态)。
65
- * 返回 true=已认领并处理;false=非 delegate 响应(调用方继续走审批映射)。
66
- */
67
- handleResponse(msg: AcpJsonRpcResponse): boolean;
68
- /**
69
- * AcpServer.handleNotification 收到 `x/delegate.update` 回流帧时调用。
70
- * T3/T6 seq 单调连续校验(跳号=丢帧/乱序,fail-loud reject 该 delegation);
71
- * E1/R1 member 断言(帧 member 必须 = 请求的 to.handle,不等=路由漂移,fail-loud);
72
- * 反序列化 event → 本地 sink 回调(1:1 无损镜像,设计 §3.2)。
73
- */
74
- handleUpdate(frame: DelegateUpdateFrame): void;
75
- /** 连接关闭/重生:拒绝全部在飞 delegation(禁悬挂;调用方据 reject 决定重派)。 */
76
- dispose(reason?: string): void;
77
- /** 帧 → 本地 SupervisorEventSink 回调(去 member 的 event 重新盖回权威 frame.member,1:1 无损)。 */
78
- private dispatchToSink;
79
- private forget;
80
- private settleResolve;
81
- private settleReject;
82
- }
@@ -1,21 +0,0 @@
1
- /** Thin, read-only Capability facade over the coordinator-owned HostRequestClient. */
2
- import { type HostCapabilityRequestParams, type HostApplyCuratorPlanResult, type HostCuratorTransition, type HostFinalizeSkillInstallResult, type HostPrepareSkillInstallParams, type HostPrepareSkillInstallResult, type HostSkillFileResponse, type HostSkillInvocationResult, type HostSkillMutation, type HostSkillMutationResult, type HostSkillSnapshotResponse } from "../host-contract/index.js";
3
- export interface HostCapabilityRequester {
4
- request(params: HostCapabilityRequestParams): Promise<unknown>;
5
- }
6
- export interface HostCapabilityClientConfig {
7
- client: HostCapabilityRequester;
8
- }
9
- export declare class HostCapabilityClient {
10
- private readonly config;
11
- constructor(config: HostCapabilityClientConfig);
12
- getSkillSnapshot(projectId?: string, knownRevision?: string): Promise<HostSkillSnapshotResponse>;
13
- readSkillFile(name: string, relativePath?: string, expectedRevision?: string): Promise<HostSkillFileResponse>;
14
- recordSkillInvocation(name: string, success: boolean): Promise<HostSkillInvocationResult>;
15
- commitSkillMutation<T extends HostSkillMutation>(mutation: T): Promise<Extract<HostSkillMutationResult, {
16
- kind: T["kind"];
17
- }>>;
18
- applyCuratorPlan(expectedRevision: string, transitions: HostCuratorTransition[]): Promise<HostApplyCuratorPlanResult>;
19
- prepareSkillInstall(params: HostPrepareSkillInstallParams): Promise<HostPrepareSkillInstallResult>;
20
- finalizeSkillInstall(installationId: string, action: "adopt" | "discard"): Promise<HostFinalizeSkillInstallResult>;
21
- }
@@ -1,10 +0,0 @@
1
- import type { HostRequestClient } from "./host-request-client.js";
2
- export interface HostCloudAuthProbeResult {
3
- ok: boolean;
4
- status: number;
5
- }
6
- export declare class HostCloudAuthClient {
7
- private readonly client;
8
- constructor(client: Pick<HostRequestClient, "request">);
9
- probeSession(): Promise<HostCloudAuthProbeResult>;
10
- }
@@ -1,7 +0,0 @@
1
- import type { HostRequestClient } from "./host-request-client.js";
2
- export declare class HostCommunityClient {
3
- private readonly client;
4
- constructor(client: Pick<HostRequestClient, "request">);
5
- resolveInstall(resourceId: string, version?: string): Promise<unknown>;
6
- listResourceVersions(resourceId: string): Promise<unknown>;
7
- }
@@ -1,25 +0,0 @@
1
- /** Thin D2 feedback/telemetry facade over the coordinator-owned HostRequestClient. */
2
- import { type HostDistillableFeedbackEvent, type HostFeedbackRequestParams, type HostFeedbackSweepResult } from "../host-contract/index.js";
3
- export interface HostFeedbackRequester {
4
- request(params: HostFeedbackRequestParams): Promise<unknown>;
5
- }
6
- export declare class HostFeedbackClient {
7
- private readonly config;
8
- constructor(config: {
9
- client: HostFeedbackRequester;
10
- });
11
- commitTurnTelemetry(params: Extract<HostFeedbackRequestParams, {
12
- method: "commitTurnTelemetry";
13
- }>["params"]): Promise<{
14
- ok: true;
15
- }>;
16
- listDistillableFeedback(projectId: string): Promise<HostDistillableFeedbackEvent[]>;
17
- markFeedbackDistilled(projectId: string, turnId: string, info: {
18
- clusterKey: string;
19
- idempotencyKey: string;
20
- }): Promise<{
21
- ok: true;
22
- updated: boolean;
23
- }>;
24
- runUploadSweep(projectId: string): Promise<HostFeedbackSweepResult>;
25
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * Thin profile facade over the coordinator-owned HostRequestClient.
3
- * It owns no transport, request ids, timers, or pending table.
4
- */
5
- import type { HostProfileRequestParams } from "../host-contract/index.js";
6
- export interface HostProfileRequester {
7
- request(params: HostProfileRequestParams): Promise<unknown>;
8
- }
9
- export interface HostProfileClientConfig {
10
- client: HostProfileRequester;
11
- }
12
- export declare class HostProfileClient {
13
- private readonly config;
14
- constructor(config: HostProfileClientConfig);
15
- getTunables(): Promise<Record<string, unknown>>;
16
- updateTunable(key: string, value: unknown): Promise<void>;
17
- clearTunable(key: string): Promise<void>;
18
- appendDirectoryAllowRule(pathPrefix: string): Promise<void>;
19
- }
@@ -1,16 +0,0 @@
1
- /** Thin project-registry facade over the coordinator-owned HostRequestClient. */
2
- import { type HostProjectInfo, type HostProjectMutationResult, type HostProjectRequestParams, type HostProjectSnapshotResult } from "../host-contract/index.js";
3
- export interface HostProjectRequester {
4
- request(params: HostProjectRequestParams): Promise<unknown>;
5
- }
6
- export declare class HostProjectClient {
7
- private readonly client;
8
- constructor(client: HostProjectRequester);
9
- getSnapshot(): Promise<HostProjectSnapshotResult>;
10
- create(params: Extract<HostProjectRequestParams, {
11
- method: "create";
12
- }>["params"]): Promise<HostProjectMutationResult>;
13
- switch(projectIdOrQuery: string): Promise<HostProjectMutationResult>;
14
- update(projectId: string, patch: Partial<Pick<HostProjectInfo, "planStatus" | "planAgents" | "planWinnerId" | "leaderSessionId" | "primaryWorkflowId">>): Promise<HostProjectMutationResult>;
15
- private mutation;
16
- }
@@ -1,42 +0,0 @@
1
- /**
2
- * Unary agent-to-host request client over the existing ACP/stdio transport.
3
- * Memory/profile requests have no implicit timeout; callers with bounded work
4
- * (notably preview) provide a per-request timeout explicitly.
5
- */
6
- import { type HostRequestParams } from "../host-contract/index.js";
7
- import type { AcpJsonRpcNotification, AcpJsonRpcRequest, AcpJsonRpcResponse } from "../protocol/wire/index.js";
8
- export type HostRequestRpcError = Error & {
9
- code?: number;
10
- data?: unknown;
11
- };
12
- export interface HostRequestClientTransport {
13
- send(msg: AcpJsonRpcRequest | AcpJsonRpcNotification): void;
14
- hostRequestCapability(): unknown;
15
- }
16
- export interface HostRequestClientOptions {
17
- log?: (line: string) => void;
18
- }
19
- export interface HostRequestOptions {
20
- timeoutMs?: number;
21
- signal?: AbortSignal;
22
- }
23
- export declare class HostRequestTimeoutError extends Error {
24
- constructor(service: string, method: string, timeoutMs: number);
25
- }
26
- export declare class HostRequestClient {
27
- private readonly transport;
28
- private readonly byRpcId;
29
- private readonly log;
30
- private disposedReason;
31
- constructor(transport: HostRequestClientTransport, options?: HostRequestClientOptions);
32
- supportsService(service: HostRequestParams["service"]): boolean;
33
- request(params: HostRequestParams, opts?: HostRequestOptions): Promise<unknown>;
34
- get pendingCount(): number;
35
- handleResponse(msg: AcpJsonRpcResponse): boolean;
36
- /** Cancel only one service lane; preview follows turn cancellation while durable store work does not. */
37
- cancelByService(service: HostRequestParams["service"], reason?: string): void;
38
- dispose(reason?: string): void;
39
- private cleanup;
40
- private settleResolve;
41
- private settleReject;
42
- }
@@ -1,23 +0,0 @@
1
- import type { HostRequestParams, RunEvent, RunState } from "../host-contract/index.js";
2
- export interface HostRunStateRequester {
3
- request(params: HostRequestParams): Promise<unknown>;
4
- }
5
- export declare class HostRunStateClient {
6
- private readonly requester;
7
- constructor(requester: HostRunStateRequester);
8
- open(runId: string, kind: "solo" | "product" | "goal", projectId: string, sessionId: string): Promise<string>;
9
- /**
10
- * Atomic open + first checkpoint. Prefer this over `open()` then `checkpoint()` whenever the first
11
- * snapshot is already in hand: the two-call sequence can leave an addressable run with no checkpoint,
12
- * and one such remnant permanently breaks the whole project's run-list projection.
13
- */
14
- openWithCheckpoint(runId: string, kind: "solo" | "product" | "goal", projectId: string, snapshot: unknown, sessionId: string, checkpointId?: string): Promise<string>;
15
- recordEvent(runId: string, event: RunEvent, sessionId: string): Promise<void>;
16
- checkpoint(runId: string, snapshot: unknown, sessionId: string, checkpointId?: string): Promise<void>;
17
- get(runId: string, sessionId: string): Promise<RunState>;
18
- list(projectId: string, sessionId: string, kind?: "solo" | "product" | "goal"): Promise<RunState[]>;
19
- delete(runId: string, sessionId: string): Promise<boolean>;
20
- getCheckpoint(runId: string, checkpointId: string, sessionId: string): Promise<unknown | undefined>;
21
- listCheckpoints(runId: string, sessionId: string): Promise<string[]>;
22
- restoreCheckpoint(runId: string, checkpointId: string, sessionId: string): Promise<unknown | undefined>;
23
- }
@@ -1,30 +0,0 @@
1
- /** Thin Session persistence facade over the coordinator-owned HostRequestClient. */
2
- import { type HostSessionAppendResult, type HostSessionGroupSplitResult, type HostSessionLoadForResumeResult, type HostSessionMutationResult, type HostSessionRequestParams } from "../host-contract/index.js";
3
- import { type HostRequestOptions } from "./host-request-client.js";
4
- export interface HostSessionRequester {
5
- request(params: HostSessionRequestParams, options?: HostRequestOptions): Promise<unknown>;
6
- }
7
- export interface HostSessionClientConfig {
8
- client: HostSessionRequester;
9
- }
10
- type AppendParams = Extract<HostSessionRequestParams, {
11
- method: "appendTranscript";
12
- }>["params"];
13
- type StateUsage = Extract<HostSessionRequestParams, {
14
- method: "saveState";
15
- }>["params"]["usage"];
16
- type SplitParams = Extract<HostSessionRequestParams, {
17
- method: "groupSplit";
18
- }>["params"];
19
- export declare class HostSessionClient {
20
- private readonly config;
21
- constructor(config: HostSessionClientConfig);
22
- loadForResume(sessionId: string, projectId?: string, includeMessages?: boolean): Promise<HostSessionLoadForResumeResult>;
23
- appendTranscript(params: AppendParams): Promise<HostSessionAppendResult>;
24
- updateTitle(sessionId: string, operationId: string, title: string): Promise<HostSessionMutationResult>;
25
- saveState(sessionId: string, turnId: string, operationId: string, usage: StateUsage, model?: string): Promise<HostSessionMutationResult>;
26
- saveTaskSummary(sessionId: string, operationId: string, summary: string, generatedAtTurn: number): Promise<HostSessionMutationResult>;
27
- groupSplit(sessionId: string, operationId: string, reason: SplitParams["reason"], cas?: Pick<SplitParams, "expectedLastActiveAt" | "expectedTurnCount">): Promise<HostSessionGroupSplitResult>;
28
- private mutation;
29
- }
30
- export {};
@@ -1,2 +0,0 @@
1
- export { coerceTunableValue, getTunableDefaults, validateTunableKey, validateTunableUpdate, } from "./runtime/config/tunable-defaults.js";
2
- export type { TunableDefaults, TunableKey, } from "./runtime/config/tunable-defaults.js";
@@ -1,38 +0,0 @@
1
- /**
2
- * Host-owned Workflow module surface.
3
- *
4
- * All exports are inert until Runtime's Gateway Host constructs a project-scoped store/controller/scheduler.
5
- * The qlogicagent executable must consume the injected MCP capability instead of constructing these
6
- * owners itself after cutover.
7
- */
8
- export { WorkflowStore, workflowsDir } from "./orchestration/workflow/workflow-store.js";
9
- export type { ConcurrencyPolicy, WorkflowRecord } from "./orchestration/workflow/workflow-store.js";
10
- export { WorkflowController, defaultRuntimeFactory } from "./orchestration/workflow/workflow-controller.js";
11
- export type { RunContext, RunOutcome, RuntimeFactory } from "./orchestration/workflow/workflow-controller.js";
12
- export { createQlaExecutorHost } from "./orchestration/workflow/qla-executor-host.js";
13
- export type { QlaExecutorHostDeps } from "./orchestration/workflow/qla-executor-host.js";
14
- export { WorkflowScheduler } from "./orchestration/workflow/workflow-scheduler.js";
15
- export type { SchedulerClock, SchedulerDeps } from "./orchestration/workflow/workflow-scheduler.js";
16
- export { WorkflowRuntime } from "./orchestration/workflow/workflow-runtime.js";
17
- export type { RunResult, WorkflowRuntimeOptions } from "./orchestration/workflow/workflow-runtime.js";
18
- export { NodeRegistry } from "./orchestration/workflow/node-registry.js";
19
- export { hostExecutors, HOST_BACKED_KINDS } from "./orchestration/workflow/host-executors.js";
20
- export type { ExecutorHost } from "./orchestration/workflow/node-schema.js";
21
- export type { AgentHostRequest, ApprovalHostRequest, ChannelHostRequest, HttpHostRequest, McpHostRequest, MemoryHostRequest, SubworkflowHostRequest, WebhookWaitHostRequest, } from "./orchestration/workflow/node-schema.js";
22
- export { WorkflowRunHistoryStore } from "./orchestration/workflow/run-history-store.js";
23
- export type { RecoverableWorkflowRun } from "./orchestration/workflow/run-history-store.js";
24
- export type { WorkflowTriggerKind } from "./orchestration/workflow/budget-permission-gate.js";
25
- export { FileRunCheckpoint } from "./orchestration/workflow/run-checkpoint-store.js";
26
- export type { RunCheckpoint } from "./orchestration/workflow/run-checkpoint-store.js";
27
- export { WorkflowAuditStore } from "./orchestration/workflow/workflow-audit-store.js";
28
- export { applyPatch, PatchError } from "./orchestration/workflow/workflow-patch.js";
29
- export type { ApplyResult, PatchEnvelope, WorkflowPatch, WorkflowPatchDiagnostic } from "./orchestration/workflow/workflow-patch.js";
30
- export { builtinWorkflowCapabilities } from "./orchestration/workflow/builtin-capabilities.js";
31
- export { buildWorkflowEditContextCapsule } from "./orchestration/workflow/workflow-edit-context.js";
32
- export type { WorkflowEditContextCapsule, WorkflowRunEvidence } from "./orchestration/workflow/workflow-edit-context.js";
33
- export { fromWorkflowBundle, toWorkflowBundle } from "./orchestration/workflow/workflow-bundle.js";
34
- export type { ParsedBundle, WorkflowBundle } from "./orchestration/workflow/workflow-bundle.js";
35
- export { applyWorkflowTemplateSetup, projectWorkflowTemplateSetup, validateWorkflowTemplateSetup, } from "./orchestration/workflow/workflow-template-setup.js";
36
- export type { WorkflowTemplateSetupBinding, WorkflowTemplateSetupField, WorkflowTemplateSetupManifest, WorkflowTemplateSetupProjection, WorkflowTemplateSetupState, WorkflowTemplateSetupValue, } from "./orchestration/workflow/workflow-template-setup.js";
37
- export { renderWorkflow } from "./orchestration/workflow/workflow-render.js";
38
- export type { WorkflowDef } from "./orchestration/workflow/node-schema.js";