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,645 +0,0 @@
1
- /**
2
- * Centralized RPC Method Protocolall JSON-RPC request methods
3
- * that qlogicagent exposes to external apps.
4
- *
5
- * This is the SINGLE SOURCE OF TRUTH for the agent's inbound API contract.
6
- *
7
- * Reference: Codex app-server RPC, Claude Code JSON-RPC, GitHub Copilot Agent API.
8
- */
9
- import type { ChatMessage, LocalizedToolText, ToolCapabilityCategory } from "./wire/chat-types.js";
10
- import type { GatewayRpcMethodMap, RpcProjectInfo, RpcProjectType, RpcProjectStatus } from "./wire/index.js";
11
- export interface InitializeParams {
12
- protocolVersion: string;
13
- host?: {
14
- name: string;
15
- version: string;
16
- };
17
- /** Legacy flat form. */
18
- hostName?: string;
19
- hostVersion?: string;
20
- capabilities?: {
21
- streaming?: boolean;
22
- toolApproval?: boolean;
23
- threads?: boolean;
24
- };
25
- config?: Record<string, unknown>;
26
- }
27
- export interface InitializeResult {
28
- protocolVersion: string;
29
- agent: {
30
- name: string;
31
- version: string;
32
- };
33
- capabilities: {
34
- tools: string[];
35
- streaming: boolean;
36
- threads: boolean;
37
- /** New: list of notification methods the agent can emit. */
38
- notifications: string[];
39
- /** New: list of RPC methods the agent supports. */
40
- methods: string[];
41
- };
42
- }
43
- export interface ThreadCreateParams {
44
- id?: string;
45
- title?: string;
46
- cwd?: string;
47
- config?: Record<string, unknown>;
48
- }
49
- export interface ThreadCreateResult {
50
- id: string;
51
- title?: string;
52
- status: "active";
53
- createdAt: string;
54
- }
55
- export interface ThreadListParams {
56
- limit?: number;
57
- }
58
- export interface ThreadListResult {
59
- threads: Array<{
60
- id: string;
61
- title?: string;
62
- status: "active" | "archived";
63
- turnCount?: number;
64
- createdAt: string;
65
- lastActiveAt: string;
66
- }>;
67
- }
68
- export interface SessionResumeParams {
69
- sessionId: string;
70
- }
71
- export interface SessionResumeResult {
72
- metadata: {
73
- sessionId: string;
74
- projectId: string;
75
- createdAt: string;
76
- lastActiveAt: string;
77
- model?: string;
78
- cwd?: string;
79
- turnCount: number;
80
- messageCount: number;
81
- title?: string;
82
- totalInputTokens?: number;
83
- totalOutputTokens?: number;
84
- };
85
- messages: ChatMessage[];
86
- }
87
- export interface SessionGetInfoParams {
88
- sessionId?: string;
89
- }
90
- export interface SessionGetInfoResult {
91
- sessionId: string;
92
- /** Persistent storage paths for this session. */
93
- paths: {
94
- /** Session directory (~/.qlogicagent/sessions/<id>/). */
95
- sessionDir: string;
96
- /** Transcript file path. */
97
- transcript: string;
98
- /** Session state file path. */
99
- state: string;
100
- /** Agent home root (~/.qlogicagent/). */
101
- agentHome: string;
102
- /** User settings path. */
103
- settings: string;
104
- /** Current working directory. */
105
- cwd: string;
106
- };
107
- model?: string;
108
- provider?: string;
109
- turnCount: number;
110
- title?: string;
111
- /** Cumulative token usage for the session. */
112
- usage?: {
113
- totalPromptTokens: number;
114
- totalCompletionTokens: number;
115
- totalCost?: number;
116
- };
117
- }
118
- export type SessionGetMessagesParams = GatewayRpcMethodMap["session.getMessages"]["params"];
119
- export type SessionGetMessagesResult = GatewayRpcMethodMap["session.getMessages"]["result"];
120
- export interface MemoryListParams {
121
- /** Filter by source: "local" (md files), "store" (in-memory), "qmemory" (remote). */
122
- source?: "local" | "store" | "qmemory" | "all";
123
- }
124
- export interface MemoryListResult {
125
- entries: Array<{
126
- source: "local" | "store" | "qmemory";
127
- target?: string;
128
- path?: string;
129
- entryCount: number;
130
- charCount: number;
131
- lastModified?: string;
132
- }>;
133
- }
134
- export interface MemoryReadParams {
135
- /** Source to read from. */
136
- source: "local" | "store" | "qmemory";
137
- /** Target within source (e.g. "memory", "user"). */
138
- target?: string;
139
- /** For local source, file path relative to agent home. */
140
- path?: string;
141
- }
142
- export interface MemoryReadResult {
143
- content: string;
144
- source: string;
145
- target?: string;
146
- entryCount: number;
147
- }
148
- export interface MemoryWriteParams {
149
- source: "local" | "store";
150
- target?: string;
151
- content: string;
152
- /** Write mode: "append" adds to existing, "replace" overwrites. */
153
- mode?: "append" | "replace";
154
- }
155
- export interface MemoryWriteResult {
156
- ok: boolean;
157
- entryCount: number;
158
- message: string;
159
- }
160
- export interface MemoryDreamParams {
161
- turnId?: string;
162
- sessionId: string;
163
- config?: Record<string, unknown>;
164
- }
165
- export interface MemoryDreamResult {
166
- accepted: boolean;
167
- turnId: string;
168
- }
169
- export interface ToolsListParams {
170
- /** Filter by category. */
171
- category?: ToolCapabilityCategory;
172
- /** Include tools that are installed but currently disabled by provider/config availability. */
173
- includeUnavailable?: boolean;
174
- }
175
- export interface ToolsListResult {
176
- tools: Array<{
177
- id: string;
178
- name: string;
179
- category: ToolCapabilityCategory;
180
- displayName: LocalizedToolText;
181
- displayDescription: LocalizedToolText;
182
- fallbackName: string;
183
- fallbackDescription: string;
184
- description: string;
185
- source: "builtin";
186
- enabled?: boolean;
187
- parameters?: Record<string, unknown>;
188
- }>;
189
- total: number;
190
- }
191
- export type CommunityInstallRiskTier = "R0" | "R1" | "R2" | "R3";
192
- export type CommunityInstallSourceTier = "official" | "community";
193
- export type CommunityInstallTrustStage = "quarantine" | "trial" | "trusted";
194
- export type CommunityInstallReviewStatus = "pending" | "approved" | "rejected";
195
- export interface CommunityInstallResolution {
196
- id: string;
197
- type: string;
198
- kind: string;
199
- sourceTier: CommunityInstallSourceTier;
200
- trustStage: CommunityInstallTrustStage;
201
- reviewStatus: CommunityInstallReviewStatus;
202
- resourceRiskTier: CommunityInstallRiskTier;
203
- effectiveRiskTier: CommunityInstallRiskTier;
204
- requires: string[];
205
- dependencies: CommunityInstallResolution[];
206
- version: string;
207
- checksum: string;
208
- sizeBytes: number;
209
- downloadUrl: string;
210
- manifest: unknown;
211
- }
212
- export interface CommunityResolveInstallParams {
213
- resourceId: string;
214
- version?: string;
215
- explicitInstallConsent: true;
216
- explicitHighRiskConsent?: true;
217
- }
218
- export interface CommunityResolveInstallResult {
219
- ok: boolean;
220
- install: CommunityInstallResolution;
221
- }
222
- export interface CommunityInstallResourceParams {
223
- resourceId: string;
224
- version?: string;
225
- explicitInstallConsent: true;
226
- allowReplace?: boolean;
227
- replacementPolicy?: "managed-unmodified" | "user-confirmed";
228
- }
229
- export interface CommunityInstalledResource {
230
- resourceId: string;
231
- version: string;
232
- skillName: string;
233
- installDir: string;
234
- checksum: string;
235
- }
236
- export type CommunityInstallResourcePreview = {
237
- kind: "mcp";
238
- mode: "preview";
239
- resourceId: string;
240
- version: string;
241
- sourceTier: CommunityInstallSourceTier;
242
- perUseConsentRequired: true;
243
- declaredPermissions: string[];
244
- manifest: unknown;
245
- } | {
246
- kind: "executable";
247
- mode: "launcher-required" | "manual-review-required";
248
- resourceId: string;
249
- version: string;
250
- resourceType: string;
251
- sourceTier: CommunityInstallSourceTier;
252
- riskTier: CommunityInstallRiskTier;
253
- artifactDigest: string;
254
- launcherRequired: true;
255
- manualReviewRequired: boolean;
256
- autoRunBlocked: true;
257
- manifest: unknown;
258
- };
259
- export interface CommunityInstallResourceResult {
260
- ok: boolean;
261
- installed?: CommunityInstalledResource;
262
- preview?: CommunityInstallResourcePreview;
263
- signalWarning?: string;
264
- }
265
- export interface CommunityRuntimeStatusParams {
266
- ids: string[];
267
- }
268
- export interface CommunityRuntimeDependencyStatus {
269
- id: string;
270
- known: boolean;
271
- label?: string;
272
- present: boolean;
273
- version?: string;
274
- binPath?: string;
275
- quick?: boolean;
276
- estSizeMB?: number;
277
- docsUrl?: string;
278
- }
279
- export interface CommunityRuntimeStatusResult {
280
- ok: boolean;
281
- items: CommunityRuntimeDependencyStatus[];
282
- }
283
- export interface CommunityInstallRuntimeParams {
284
- id: string;
285
- }
286
- export interface CommunityInstallRuntimeResult {
287
- ok: boolean;
288
- id: string;
289
- version?: string;
290
- binPath?: string;
291
- }
292
- export interface TodosListParams {
293
- /** Filter by status. */
294
- status?: "not-started" | "in-progress" | "completed" | "all";
295
- }
296
- export interface TodoItem {
297
- id: number;
298
- title: string;
299
- status: "not-started" | "in-progress" | "completed";
300
- description?: string;
301
- owner?: string;
302
- blockedBy?: number[];
303
- blocks?: number[];
304
- }
305
- export interface TodosListResult {
306
- items: TodoItem[];
307
- summary: {
308
- total: number;
309
- completed: number;
310
- inProgress: number;
311
- notStarted: number;
312
- };
313
- }
314
- export interface AgentPingResult {
315
- status: "ok";
316
- }
317
- export interface MemorySearchParams {
318
- query: string;
319
- /** Max results (default 10). */
320
- limit?: number;
321
- }
322
- export interface MemorySearchResult {
323
- results: Array<{
324
- id: string;
325
- text: string;
326
- score: number;
327
- source: string;
328
- metadata?: Record<string, unknown>;
329
- }>;
330
- }
331
- export interface MemoryDeleteParams {
332
- /** Source: "local" only (QMemory delete via adapter). */
333
- source: "local" | "qmemory";
334
- /** For local: target ("memory" | "user"). */
335
- target?: string;
336
- /** For local: substring to match and remove. For qmemory: memory block ID. */
337
- match: string;
338
- }
339
- export interface MemoryDeleteResult {
340
- ok: boolean;
341
- removedCount: number;
342
- message: string;
343
- }
344
- export interface TasksListParams {
345
- /** Filter by lifecycle state. */
346
- lifecycle?: "running" | "completed" | "failed" | "cancelled" | "all";
347
- }
348
- export interface TasksListResult {
349
- tasks: Array<{
350
- taskId: string;
351
- type: string;
352
- lifecycle: string;
353
- label?: string;
354
- }>;
355
- }
356
- export interface TasksCancelParams {
357
- taskId: string;
358
- }
359
- export interface TasksCancelResult {
360
- ok: boolean;
361
- message: string;
362
- }
363
- export type ProjectType = RpcProjectType;
364
- export type ProjectStatus = RpcProjectStatus;
365
- export type ProjectInfo = RpcProjectInfo;
366
- export type ProjectCreateParams = GatewayRpcMethodMap["project.create"]["params"];
367
- export type ProjectCreateResult = GatewayRpcMethodMap["project.create"]["result"];
368
- export type ProjectListParams = GatewayRpcMethodMap["project.list"]["params"];
369
- export type ProjectListResult = GatewayRpcMethodMap["project.list"]["result"];
370
- export type ProjectDetachParams = GatewayRpcMethodMap["project.detach"]["params"];
371
- export type ProjectDetachResult = GatewayRpcMethodMap["project.detach"]["result"];
372
- export type ProjectDeleteParams = GatewayRpcMethodMap["project.delete"]["params"];
373
- export type ProjectDeleteResult = GatewayRpcMethodMap["project.delete"]["result"];
374
- export type ProjectRenameParams = GatewayRpcMethodMap["project.rename"]["params"];
375
- export type ProjectRenameResult = GatewayRpcMethodMap["project.rename"]["result"];
376
- export type ProjectArchiveParams = GatewayRpcMethodMap["project.archive"]["params"];
377
- export type ProjectArchiveResult = GatewayRpcMethodMap["project.archive"]["result"];
378
- export type ProjectUnarchiveParams = GatewayRpcMethodMap["project.unarchive"]["params"];
379
- export type ProjectUnarchiveResult = GatewayRpcMethodMap["project.unarchive"]["result"];
380
- export type ProjectUpdateParams = GatewayRpcMethodMap["project.update"]["params"];
381
- export type ProjectUpdateResult = GatewayRpcMethodMap["project.update"]["result"];
382
- export type SessionCreateParams = GatewayRpcMethodMap["session.create"]["params"];
383
- export type SessionCreateResult = GatewayRpcMethodMap["session.create"]["result"];
384
- export type SessionListParams = GatewayRpcMethodMap["session.list"]["params"];
385
- export type SessionListResult = GatewayRpcMethodMap["session.list"]["result"];
386
- export type SessionGetParams = GatewayRpcMethodMap["session.get"]["params"];
387
- export type SessionGetResult = GatewayRpcMethodMap["session.get"]["result"];
388
- export type SessionUpdateParams = GatewayRpcMethodMap["session.update"]["params"];
389
- export type SessionUpdateResult = GatewayRpcMethodMap["session.update"]["result"];
390
- export type SessionDeleteParams = GatewayRpcMethodMap["session.delete"]["params"];
391
- export type SessionDeleteResult = GatewayRpcMethodMap["session.delete"]["result"];
392
- export type SessionArchiveParams = GatewayRpcMethodMap["session.archive"]["params"];
393
- export type SessionArchiveResult = GatewayRpcMethodMap["session.archive"]["result"];
394
- export type SessionLoadNativeTranscriptParams = GatewayRpcMethodMap["session.loadNativeTranscript"]["params"];
395
- export type SessionLoadNativeTranscriptResult = GatewayRpcMethodMap["session.loadNativeTranscript"]["result"];
396
- export type SessionAdoptNativeParams = GatewayRpcMethodMap["session.adoptNative"]["params"];
397
- export type SessionAdoptNativeResult = GatewayRpcMethodMap["session.adoptNative"]["result"];
398
- export type InstructionsListParams = GatewayRpcMethodMap["instructions.list"]["params"];
399
- export type InstructionsListResult = GatewayRpcMethodMap["instructions.list"]["result"];
400
- export type InstructionsReadParams = GatewayRpcMethodMap["instructions.read"]["params"];
401
- export type InstructionsReadResult = GatewayRpcMethodMap["instructions.read"]["result"];
402
- export type InstructionsWriteParams = GatewayRpcMethodMap["instructions.write"]["params"];
403
- export type InstructionsWriteResult = GatewayRpcMethodMap["instructions.write"]["result"];
404
- export type InstructionsDeleteParams = GatewayRpcMethodMap["instructions.delete"]["params"];
405
- export type InstructionsDeleteResult = GatewayRpcMethodMap["instructions.delete"]["result"];
406
- export type FilesListParams = GatewayRpcMethodMap["files.list"]["params"];
407
- export type FilesListResult = GatewayRpcMethodMap["files.list"]["result"];
408
- export type FilesReadParams = GatewayRpcMethodMap["files.read"]["params"];
409
- export type FilesReadResult = GatewayRpcMethodMap["files.read"]["result"];
410
- export type FilesCreateParams = GatewayRpcMethodMap["files.create"]["params"];
411
- export type FilesCreateResult = GatewayRpcMethodMap["files.create"]["result"];
412
- export type FilesRenameParams = GatewayRpcMethodMap["files.rename"]["params"];
413
- export type FilesRenameResult = GatewayRpcMethodMap["files.rename"]["result"];
414
- export type FilesMoveParams = GatewayRpcMethodMap["files.move"]["params"];
415
- export type FilesMoveResult = GatewayRpcMethodMap["files.move"]["result"];
416
- export type FilesCopyParams = GatewayRpcMethodMap["files.copy"]["params"];
417
- export type FilesCopyResult = GatewayRpcMethodMap["files.copy"]["result"];
418
- export type FilesSearchParams = GatewayRpcMethodMap["files.search"]["params"];
419
- export type FilesSearchResult = GatewayRpcMethodMap["files.search"]["result"];
420
- export type FilesUndoOperationParams = GatewayRpcMethodMap["files.undoOperation"]["params"];
421
- export type FilesUndoOperationResult = GatewayRpcMethodMap["files.undoOperation"]["result"];
422
- export type FilesDeleteParams = GatewayRpcMethodMap["files.delete"]["params"];
423
- export type FilesDeleteResult = GatewayRpcMethodMap["files.delete"]["result"];
424
- export type FilesGitStatusParams = GatewayRpcMethodMap["files.gitStatus"]["params"];
425
- export type FilesGitStatusResult = GatewayRpcMethodMap["files.gitStatus"]["result"];
426
- export type SessionSwitchProjectParams = GatewayRpcMethodMap["session.switchProject"]["params"];
427
- export type SessionSwitchProjectResult = GatewayRpcMethodMap["session.switchProject"]["result"];
428
- export type SessionGetStateParams = GatewayRpcMethodMap["session.getState"]["params"];
429
- export type SessionGetStateResult = GatewayRpcMethodMap["session.getState"]["result"];
430
- export interface RpcMethodMap {
431
- "initialize": {
432
- params: InitializeParams;
433
- result: InitializeResult;
434
- };
435
- "thread.create": {
436
- params: ThreadCreateParams;
437
- result: ThreadCreateResult;
438
- };
439
- "thread.list": {
440
- params: ThreadListParams;
441
- result: ThreadListResult;
442
- };
443
- "session.resume": {
444
- params: SessionResumeParams;
445
- result: SessionResumeResult;
446
- };
447
- "session.getInfo": {
448
- params: SessionGetInfoParams;
449
- result: SessionGetInfoResult;
450
- };
451
- "session.getMessages": {
452
- params: SessionGetMessagesParams;
453
- result: SessionGetMessagesResult;
454
- };
455
- "memory.list": {
456
- params: MemoryListParams;
457
- result: MemoryListResult;
458
- };
459
- "memory.read": {
460
- params: MemoryReadParams;
461
- result: MemoryReadResult;
462
- };
463
- "memory.write": {
464
- params: MemoryWriteParams;
465
- result: MemoryWriteResult;
466
- };
467
- "memory.search": {
468
- params: MemorySearchParams;
469
- result: MemorySearchResult;
470
- };
471
- "memory.delete": {
472
- params: MemoryDeleteParams;
473
- result: MemoryDeleteResult;
474
- };
475
- "memory.dream": {
476
- params: MemoryDreamParams;
477
- result: MemoryDreamResult;
478
- };
479
- "tools.list": {
480
- params: ToolsListParams;
481
- result: ToolsListResult;
482
- };
483
- "community.resolveInstall": {
484
- params: CommunityResolveInstallParams;
485
- result: CommunityResolveInstallResult;
486
- };
487
- "community.installResource": {
488
- params: CommunityInstallResourceParams;
489
- result: CommunityInstallResourceResult;
490
- };
491
- "community.runtimeStatus": {
492
- params: CommunityRuntimeStatusParams;
493
- result: CommunityRuntimeStatusResult;
494
- };
495
- "community.installRuntime": {
496
- params: CommunityInstallRuntimeParams;
497
- result: CommunityInstallRuntimeResult;
498
- };
499
- "todos.list": {
500
- params: TodosListParams;
501
- result: TodosListResult;
502
- };
503
- "tasks.list": {
504
- params: TasksListParams;
505
- result: TasksListResult;
506
- };
507
- "tasks.cancel": {
508
- params: TasksCancelParams;
509
- result: TasksCancelResult;
510
- };
511
- "agent.ping": {
512
- params: undefined;
513
- result: AgentPingResult;
514
- };
515
- "project.create": {
516
- params: ProjectCreateParams;
517
- result: ProjectCreateResult;
518
- };
519
- "project.list": {
520
- params: ProjectListParams;
521
- result: ProjectListResult;
522
- };
523
- "project.detach": {
524
- params: ProjectDetachParams;
525
- result: ProjectDetachResult;
526
- };
527
- "project.delete": {
528
- params: ProjectDeleteParams;
529
- result: ProjectDeleteResult;
530
- };
531
- "project.rename": {
532
- params: ProjectRenameParams;
533
- result: ProjectRenameResult;
534
- };
535
- "project.archive": {
536
- params: ProjectArchiveParams;
537
- result: ProjectArchiveResult;
538
- };
539
- "project.unarchive": {
540
- params: ProjectUnarchiveParams;
541
- result: ProjectUnarchiveResult;
542
- };
543
- "project.update": {
544
- params: ProjectUpdateParams;
545
- result: ProjectUpdateResult;
546
- };
547
- "session.switchProject": {
548
- params: SessionSwitchProjectParams;
549
- result: SessionSwitchProjectResult;
550
- };
551
- "session.getState": {
552
- params: SessionGetStateParams;
553
- result: SessionGetStateResult;
554
- };
555
- "session.create": {
556
- params: SessionCreateParams;
557
- result: SessionCreateResult;
558
- };
559
- "session.list": {
560
- params: SessionListParams;
561
- result: SessionListResult;
562
- };
563
- "session.get": {
564
- params: SessionGetParams;
565
- result: SessionGetResult;
566
- };
567
- "session.update": {
568
- params: SessionUpdateParams;
569
- result: SessionUpdateResult;
570
- };
571
- "session.delete": {
572
- params: SessionDeleteParams;
573
- result: SessionDeleteResult;
574
- };
575
- "session.archive": {
576
- params: SessionArchiveParams;
577
- result: SessionArchiveResult;
578
- };
579
- "session.loadNativeTranscript": {
580
- params: SessionLoadNativeTranscriptParams;
581
- result: SessionLoadNativeTranscriptResult;
582
- };
583
- "session.adoptNative": {
584
- params: SessionAdoptNativeParams;
585
- result: SessionAdoptNativeResult;
586
- };
587
- "instructions.list": {
588
- params: InstructionsListParams;
589
- result: InstructionsListResult;
590
- };
591
- "instructions.read": {
592
- params: InstructionsReadParams;
593
- result: InstructionsReadResult;
594
- };
595
- "instructions.write": {
596
- params: InstructionsWriteParams;
597
- result: InstructionsWriteResult;
598
- };
599
- "instructions.delete": {
600
- params: InstructionsDeleteParams;
601
- result: InstructionsDeleteResult;
602
- };
603
- "files.list": {
604
- params: FilesListParams;
605
- result: FilesListResult;
606
- };
607
- "files.read": {
608
- params: FilesReadParams;
609
- result: FilesReadResult;
610
- };
611
- "files.create": {
612
- params: FilesCreateParams;
613
- result: FilesCreateResult;
614
- };
615
- "files.rename": {
616
- params: FilesRenameParams;
617
- result: FilesRenameResult;
618
- };
619
- "files.move": {
620
- params: FilesMoveParams;
621
- result: FilesMoveResult;
622
- };
623
- "files.copy": {
624
- params: FilesCopyParams;
625
- result: FilesCopyResult;
626
- };
627
- "files.search": {
628
- params: FilesSearchParams;
629
- result: FilesSearchResult;
630
- };
631
- "files.undoOperation": {
632
- params: FilesUndoOperationParams;
633
- result: FilesUndoOperationResult;
634
- };
635
- "files.delete": {
636
- params: FilesDeleteParams;
637
- result: FilesDeleteResult;
638
- };
639
- "files.gitStatus": {
640
- params: FilesGitStatusParams;
641
- result: FilesGitStatusResult;
642
- };
643
- }
644
- /** All known RPC method names. */
645
- export type RpcMethod = keyof RpcMethodMap;