byterover-cli 1.7.2 → 2.0.0

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 (1310) hide show
  1. package/README.md +65 -551
  2. package/bin/kill-daemon.js +78 -0
  3. package/bin/run.js +2 -2
  4. package/dist/agent/core/domain/blob/types.d.ts +8 -2
  5. package/dist/agent/core/domain/llm/index.d.ts +1 -1
  6. package/dist/agent/core/domain/llm/index.js +1 -1
  7. package/dist/agent/core/domain/llm/registry.js +353 -14
  8. package/dist/agent/core/domain/llm/schemas.d.ts +13 -13
  9. package/dist/agent/core/domain/llm/schemas.js +3 -3
  10. package/dist/agent/core/domain/llm/types.d.ts +15 -5
  11. package/dist/agent/core/domain/llm/types.js +8 -2
  12. package/dist/agent/core/domain/sandbox/types.d.ts +6 -0
  13. package/dist/agent/core/domain/session/session-metadata.d.ts +7 -2
  14. package/dist/agent/core/domain/session/session-metadata.js +14 -4
  15. package/dist/agent/core/domain/streaming/types.d.ts +2 -0
  16. package/dist/agent/core/domain/tools/constants.d.ts +0 -15
  17. package/dist/agent/core/domain/tools/constants.js +0 -15
  18. package/dist/agent/core/domain/tools/types.d.ts +2 -0
  19. package/dist/agent/core/interfaces/i-chat-session.d.ts +1 -1
  20. package/dist/agent/core/interfaces/i-cipher-agent.d.ts +68 -0
  21. package/dist/agent/core/interfaces/i-curate-service.d.ts +34 -7
  22. package/dist/agent/core/interfaces/i-history-storage.d.ts +8 -0
  23. package/dist/agent/core/interfaces/i-key-storage.d.ts +11 -0
  24. package/dist/agent/core/interfaces/i-llm-service.d.ts +1 -1
  25. package/dist/agent/core/interfaces/i-sandbox-service.d.ts +26 -0
  26. package/dist/agent/core/interfaces/i-session-persistence.d.ts +3 -36
  27. package/dist/agent/core/interfaces/i-session-persistence.js +1 -1
  28. package/dist/agent/infra/agent/agent-schemas.d.ts +26 -5
  29. package/dist/agent/infra/agent/agent-schemas.js +10 -3
  30. package/dist/agent/infra/agent/cipher-agent.d.ts +87 -2
  31. package/dist/agent/infra/agent/cipher-agent.js +191 -16
  32. package/dist/agent/infra/agent/interactive-loop.js +1 -5
  33. package/dist/agent/infra/agent/provider-update-config.d.ts +19 -0
  34. package/dist/agent/infra/agent/service-initializer.d.ts +27 -6
  35. package/dist/agent/infra/agent/service-initializer.js +46 -60
  36. package/dist/agent/infra/blob/blob-storage-factory.d.ts +1 -1
  37. package/dist/agent/infra/blob/blob-storage-factory.js +1 -1
  38. package/dist/agent/infra/blob/sqlite-blob-storage.js +8 -5
  39. package/dist/agent/infra/file-system/file-system-service.js +6 -3
  40. package/dist/agent/infra/http/internal-llm-http-service.d.ts +9 -5
  41. package/dist/agent/infra/http/internal-llm-http-service.js +12 -7
  42. package/dist/agent/infra/llm/agent-llm-service.d.ts +420 -0
  43. package/dist/agent/infra/llm/agent-llm-service.js +1291 -0
  44. package/dist/agent/infra/llm/context/compaction/compaction-service.d.ts +14 -12
  45. package/dist/agent/infra/llm/context/compaction/compaction-service.js +26 -9
  46. package/dist/agent/infra/llm/context/compression/reactive-overflow.js +12 -3
  47. package/dist/agent/infra/llm/context/context-manager.d.ts +44 -3
  48. package/dist/agent/infra/llm/context/context-manager.js +203 -98
  49. package/dist/agent/infra/llm/context/deferred-effects.d.ts +30 -0
  50. package/dist/agent/infra/llm/context/deferred-effects.js +40 -0
  51. package/dist/agent/infra/llm/formatters/gemini-formatter.d.ts +1 -1
  52. package/dist/agent/infra/llm/formatters/gemini-formatter.js +14 -10
  53. package/dist/agent/infra/llm/generators/ai-sdk-content-generator.d.ts +33 -0
  54. package/dist/agent/infra/llm/generators/ai-sdk-content-generator.js +166 -0
  55. package/dist/agent/infra/llm/generators/ai-sdk-message-converter.d.ts +20 -0
  56. package/dist/agent/infra/llm/generators/ai-sdk-message-converter.js +182 -0
  57. package/dist/agent/infra/llm/generators/index.d.ts +3 -3
  58. package/dist/agent/infra/llm/generators/index.js +3 -3
  59. package/dist/agent/infra/llm/generators/retryable-content-generator.d.ts +7 -0
  60. package/dist/agent/infra/llm/generators/retryable-content-generator.js +29 -5
  61. package/dist/agent/infra/llm/index.d.ts +1 -2
  62. package/dist/agent/infra/llm/index.js +2 -3
  63. package/dist/agent/infra/llm/model-capabilities.d.ts +1 -0
  64. package/dist/agent/infra/llm/model-capabilities.js +31 -0
  65. package/dist/agent/infra/llm/providers/anthropic.d.ts +7 -0
  66. package/dist/agent/infra/llm/providers/anthropic.js +27 -0
  67. package/dist/agent/infra/llm/providers/byterover.d.ts +9 -0
  68. package/dist/agent/infra/llm/providers/byterover.js +37 -0
  69. package/dist/agent/infra/llm/providers/cerebras.d.ts +7 -0
  70. package/dist/agent/infra/llm/providers/cerebras.js +31 -0
  71. package/dist/agent/infra/llm/providers/cohere.d.ts +7 -0
  72. package/dist/agent/infra/llm/providers/cohere.js +26 -0
  73. package/dist/agent/infra/llm/providers/deepinfra.d.ts +7 -0
  74. package/dist/agent/infra/llm/providers/deepinfra.js +26 -0
  75. package/dist/agent/infra/llm/providers/glm.d.ts +7 -0
  76. package/dist/agent/infra/llm/providers/glm.js +30 -0
  77. package/dist/agent/infra/llm/providers/google-vertex.d.ts +15 -0
  78. package/dist/agent/infra/llm/providers/google-vertex.js +36 -0
  79. package/dist/agent/infra/llm/providers/google.d.ts +7 -0
  80. package/dist/agent/infra/llm/providers/google.js +25 -0
  81. package/dist/agent/infra/llm/providers/groq.d.ts +7 -0
  82. package/dist/agent/infra/llm/providers/groq.js +26 -0
  83. package/dist/agent/infra/llm/providers/index.d.ts +24 -0
  84. package/dist/agent/infra/llm/providers/index.js +75 -0
  85. package/dist/agent/infra/llm/providers/minimax.d.ts +7 -0
  86. package/dist/agent/infra/llm/providers/minimax.js +30 -0
  87. package/dist/agent/infra/llm/providers/mistral.d.ts +7 -0
  88. package/dist/agent/infra/llm/providers/mistral.js +26 -0
  89. package/dist/agent/infra/llm/providers/moonshot.d.ts +7 -0
  90. package/dist/agent/infra/llm/providers/moonshot.js +30 -0
  91. package/dist/agent/infra/llm/providers/openai-compatible.d.ts +9 -0
  92. package/dist/agent/infra/llm/providers/openai-compatible.js +30 -0
  93. package/dist/agent/infra/llm/providers/openai.d.ts +7 -0
  94. package/dist/agent/infra/llm/providers/openai.js +26 -0
  95. package/dist/agent/infra/llm/providers/openrouter.d.ts +7 -0
  96. package/dist/agent/infra/llm/providers/openrouter.js +26 -0
  97. package/dist/agent/infra/llm/providers/perplexity.d.ts +7 -0
  98. package/dist/agent/infra/llm/providers/perplexity.js +26 -0
  99. package/dist/agent/infra/llm/providers/togetherai.d.ts +7 -0
  100. package/dist/agent/infra/llm/providers/togetherai.js +26 -0
  101. package/dist/agent/infra/llm/providers/types.d.ts +81 -0
  102. package/dist/agent/infra/llm/providers/types.js +7 -0
  103. package/dist/agent/infra/llm/providers/vercel.d.ts +7 -0
  104. package/dist/agent/infra/llm/providers/vercel.js +32 -0
  105. package/dist/agent/infra/llm/providers/xai.d.ts +7 -0
  106. package/dist/agent/infra/llm/providers/xai.js +26 -0
  107. package/dist/agent/infra/llm/retry/retry-policy.d.ts +13 -0
  108. package/dist/agent/infra/llm/retry/retry-policy.js +207 -0
  109. package/dist/agent/infra/llm/tokenizers/openrouter-tokenizer.js +1 -1
  110. package/dist/agent/infra/llm/tool-output-processor.d.ts +16 -4
  111. package/dist/agent/infra/llm/tool-output-processor.js +61 -16
  112. package/dist/agent/infra/sandbox/curate-result-collector.d.ts +30 -0
  113. package/dist/agent/infra/sandbox/curate-result-collector.js +39 -0
  114. package/dist/agent/infra/sandbox/curate-service.d.ts +4 -1
  115. package/dist/agent/infra/sandbox/curate-service.js +12 -3
  116. package/dist/agent/infra/sandbox/local-sandbox.d.ts +13 -0
  117. package/dist/agent/infra/sandbox/local-sandbox.js +41 -4
  118. package/dist/agent/infra/sandbox/sandbox-service.d.ts +40 -5
  119. package/dist/agent/infra/sandbox/sandbox-service.js +97 -14
  120. package/dist/agent/infra/sandbox/tools-sdk.d.ts +42 -4
  121. package/dist/agent/infra/sandbox/tools-sdk.js +29 -4
  122. package/dist/agent/infra/session/chat-session.d.ts +1 -1
  123. package/dist/agent/infra/session/chat-session.js +2 -2
  124. package/dist/agent/infra/session/session-event-forwarder.js +6 -3
  125. package/dist/agent/infra/session/session-manager.d.ts +12 -2
  126. package/dist/agent/infra/session/session-manager.js +25 -8
  127. package/dist/agent/infra/session/session-metadata-store.d.ts +17 -10
  128. package/dist/agent/infra/session/session-metadata-store.js +12 -87
  129. package/dist/agent/infra/storage/blob-history-storage.d.ts +5 -0
  130. package/dist/agent/infra/storage/blob-history-storage.js +15 -0
  131. package/dist/agent/infra/storage/dual-format-history-storage.d.ts +6 -0
  132. package/dist/agent/infra/storage/dual-format-history-storage.js +16 -0
  133. package/dist/agent/infra/storage/message-storage-service.js +134 -22
  134. package/dist/agent/infra/storage/sqlite-key-storage.d.ts +8 -0
  135. package/dist/agent/infra/storage/sqlite-key-storage.js +47 -13
  136. package/dist/agent/infra/system-prompt/contributors/context-tree-structure-contributor.js +3 -3
  137. package/dist/agent/infra/tools/implementations/code-exec-tool.js +43 -2
  138. package/dist/agent/infra/tools/implementations/curate-tool.d.ts +221 -22
  139. package/dist/agent/infra/tools/implementations/curate-tool.js +100 -23
  140. package/dist/agent/infra/tools/implementations/memory-path-matcher.d.ts +48 -0
  141. package/dist/agent/infra/tools/implementations/memory-path-matcher.js +217 -0
  142. package/dist/agent/infra/tools/implementations/memory-symbol-tree.d.ts +101 -0
  143. package/dist/agent/infra/tools/implementations/memory-symbol-tree.js +259 -0
  144. package/dist/agent/infra/tools/implementations/search-knowledge-service.d.ts +48 -6
  145. package/dist/agent/infra/tools/implementations/search-knowledge-service.js +394 -41
  146. package/dist/agent/infra/tools/implementations/search-knowledge-tool.d.ts +2 -1
  147. package/dist/agent/infra/tools/implementations/search-knowledge-tool.js +50 -6
  148. package/dist/agent/infra/tools/index.d.ts +0 -4
  149. package/dist/agent/infra/tools/index.js +0 -4
  150. package/dist/agent/infra/tools/tool-registry.js +2 -115
  151. package/dist/agent/infra/transport/transport-event-bridge.d.ts +42 -0
  152. package/dist/agent/infra/transport/transport-event-bridge.js +90 -0
  153. package/dist/agent/infra/validation/workspace-validator.d.ts +3 -3
  154. package/dist/agent/infra/validation/workspace-validator.js +3 -8
  155. package/dist/agent/resources/prompts/curate-detail-preservation.yml +101 -0
  156. package/dist/agent/resources/prompts/system-prompt.yml +404 -94
  157. package/dist/agent/resources/tools/code_exec.txt +97 -0
  158. package/dist/agent/resources/tools/curate.txt +25 -13
  159. package/dist/agent/resources/tools/detect_domains.txt +4 -3
  160. package/dist/oclif/commands/connectors/index.d.ts +12 -0
  161. package/dist/oclif/commands/connectors/index.js +53 -0
  162. package/dist/oclif/commands/connectors/install.d.ts +31 -0
  163. package/dist/oclif/commands/connectors/install.js +148 -0
  164. package/dist/oclif/commands/connectors/list.d.ts +5 -0
  165. package/dist/oclif/commands/connectors/list.js +8 -0
  166. package/dist/oclif/commands/curate/index.d.ts +25 -0
  167. package/dist/oclif/commands/curate/index.js +256 -0
  168. package/dist/oclif/commands/curate/view.d.ts +18 -0
  169. package/dist/oclif/commands/curate/view.js +104 -0
  170. package/dist/oclif/commands/debug.d.ts +35 -0
  171. package/dist/oclif/commands/debug.js +436 -0
  172. package/dist/oclif/commands/hub/index.d.ts +5 -0
  173. package/dist/oclif/commands/hub/index.js +7 -0
  174. package/dist/oclif/commands/hub/install.d.ts +23 -0
  175. package/dist/oclif/commands/hub/install.js +74 -0
  176. package/dist/oclif/commands/hub/list.d.ts +13 -0
  177. package/dist/oclif/commands/hub/list.js +65 -0
  178. package/dist/oclif/commands/hub/registry/add.d.ts +19 -0
  179. package/dist/oclif/commands/hub/registry/add.js +74 -0
  180. package/dist/oclif/commands/hub/registry/index.d.ts +5 -0
  181. package/dist/oclif/commands/hub/registry/index.js +7 -0
  182. package/dist/oclif/commands/hub/registry/list.d.ts +12 -0
  183. package/dist/oclif/commands/hub/registry/list.js +49 -0
  184. package/dist/oclif/commands/hub/registry/remove.d.ts +15 -0
  185. package/dist/oclif/commands/hub/registry/remove.js +46 -0
  186. package/dist/oclif/commands/login.d.ts +4 -0
  187. package/dist/oclif/commands/login.js +51 -31
  188. package/dist/oclif/commands/main.d.ts +3 -17
  189. package/dist/oclif/commands/main.js +15 -96
  190. package/dist/oclif/commands/mcp.js +24 -5
  191. package/dist/oclif/commands/model/index.d.ts +15 -0
  192. package/dist/oclif/commands/model/index.js +59 -0
  193. package/dist/oclif/commands/model/list.d.ts +17 -0
  194. package/dist/oclif/commands/model/list.js +89 -0
  195. package/dist/oclif/commands/model/switch.d.ts +21 -0
  196. package/dist/oclif/commands/model/switch.js +81 -0
  197. package/dist/oclif/commands/providers/connect.d.ts +28 -0
  198. package/dist/oclif/commands/providers/connect.js +141 -0
  199. package/dist/oclif/commands/providers/disconnect.d.ts +14 -0
  200. package/dist/oclif/commands/providers/disconnect.js +61 -0
  201. package/dist/oclif/commands/providers/index.d.ts +15 -0
  202. package/dist/oclif/commands/providers/index.js +59 -0
  203. package/dist/oclif/commands/providers/list.d.ts +12 -0
  204. package/dist/oclif/commands/providers/list.js +45 -0
  205. package/dist/oclif/commands/providers/switch.d.ts +17 -0
  206. package/dist/oclif/commands/providers/switch.js +61 -0
  207. package/dist/oclif/commands/pull.d.ts +1 -6
  208. package/dist/oclif/commands/pull.js +46 -49
  209. package/dist/oclif/commands/push.d.ts +1 -7
  210. package/dist/oclif/commands/push.js +66 -59
  211. package/dist/oclif/commands/query.d.ts +5 -7
  212. package/dist/oclif/commands/query.js +142 -43
  213. package/dist/oclif/commands/restart.d.ts +95 -0
  214. package/dist/oclif/commands/restart.js +333 -0
  215. package/dist/oclif/commands/space/list.d.ts +12 -0
  216. package/dist/oclif/commands/space/list.js +66 -0
  217. package/dist/oclif/commands/space/switch.d.ts +17 -0
  218. package/dist/oclif/commands/space/switch.js +87 -0
  219. package/dist/oclif/commands/status.d.ts +4 -9
  220. package/dist/oclif/commands/status.js +94 -49
  221. package/dist/oclif/hooks/prerun/validate-brv-config-version.d.ts +16 -11
  222. package/dist/oclif/hooks/prerun/validate-brv-config-version.js +67 -24
  223. package/dist/oclif/lib/daemon-client.d.ts +40 -0
  224. package/dist/oclif/lib/daemon-client.js +142 -0
  225. package/dist/oclif/lib/json-response.d.ts +9 -0
  226. package/dist/oclif/lib/json-response.js +10 -0
  227. package/dist/oclif/lib/task-client.d.ts +68 -0
  228. package/dist/oclif/lib/task-client.js +227 -0
  229. package/dist/server/config/environment.d.ts +1 -1
  230. package/dist/server/config/environment.js +2 -2
  231. package/dist/server/constants.d.ts +30 -1
  232. package/dist/server/constants.js +43 -2
  233. package/dist/server/core/domain/client/client-info.d.ts +82 -0
  234. package/dist/server/core/domain/client/client-info.js +87 -0
  235. package/dist/server/core/domain/entities/agent.d.ts +3 -6
  236. package/dist/server/core/domain/entities/agent.js +49 -54
  237. package/dist/server/core/domain/entities/brv-config.d.ts +31 -10
  238. package/dist/server/core/domain/entities/brv-config.js +68 -39
  239. package/dist/server/core/domain/entities/connector-type.d.ts +1 -11
  240. package/dist/server/core/domain/entities/connector-type.js +1 -10
  241. package/dist/server/core/domain/entities/context-tree-snapshot.d.ts +2 -11
  242. package/dist/server/core/domain/entities/curate-log-entry.d.ts +41 -0
  243. package/dist/server/core/domain/entities/curation-status.d.ts +28 -0
  244. package/dist/server/core/domain/entities/provider-config.d.ts +14 -1
  245. package/dist/server/core/domain/entities/provider-config.js +17 -6
  246. package/dist/server/core/domain/entities/provider-registry.d.ts +3 -1
  247. package/dist/server/core/domain/entities/provider-registry.js +230 -10
  248. package/dist/server/core/domain/errors/task-error.d.ts +17 -4
  249. package/dist/server/core/domain/errors/task-error.js +35 -10
  250. package/dist/server/core/domain/knowledge/markdown-writer.d.ts +71 -1
  251. package/dist/server/core/domain/knowledge/markdown-writer.js +403 -37
  252. package/dist/server/core/domain/knowledge/memory-scoring.d.ts +118 -0
  253. package/dist/server/core/domain/knowledge/memory-scoring.js +217 -0
  254. package/dist/server/core/domain/knowledge/relation-parser.d.ts +16 -0
  255. package/dist/server/core/domain/knowledge/relation-parser.js +21 -8
  256. package/dist/server/core/domain/project/project-info.d.ts +54 -0
  257. package/dist/server/core/domain/project/project-info.js +62 -0
  258. package/dist/server/core/domain/transport/schemas.d.ts +97 -19
  259. package/dist/server/core/domain/transport/schemas.js +40 -1
  260. package/dist/server/core/domain/transport/task-info.d.ts +21 -0
  261. package/dist/server/core/interfaces/agent/i-agent-pool.d.ts +88 -0
  262. package/dist/server/core/interfaces/client/i-client-manager.d.ts +117 -0
  263. package/dist/server/core/interfaces/context-tree/i-context-file-reader.d.ts +5 -1
  264. package/dist/server/core/interfaces/context-tree/i-context-tree-merger.d.ts +80 -0
  265. package/dist/server/core/interfaces/context-tree/i-context-tree-service.d.ts +5 -0
  266. package/dist/server/core/interfaces/context-tree/i-context-tree-snapshot-service.d.ts +15 -0
  267. package/dist/server/core/interfaces/daemon/i-agent-idle-timeout-policy.d.ts +39 -0
  268. package/dist/server/core/interfaces/daemon/i-daemon-resilience.d.ts +24 -0
  269. package/dist/server/core/interfaces/daemon/i-heartbeat-writer.d.ts +28 -0
  270. package/dist/server/core/interfaces/daemon/i-idle-timeout-policy.d.ts +34 -0
  271. package/dist/server/core/interfaces/daemon/i-shutdown-handler.d.ts +20 -0
  272. package/dist/server/core/interfaces/daemon/index.d.ts +4 -0
  273. package/dist/server/core/interfaces/daemon/index.js +2 -0
  274. package/dist/server/core/interfaces/executor/i-curate-executor.d.ts +2 -2
  275. package/dist/server/core/interfaces/executor/i-query-executor.d.ts +2 -2
  276. package/dist/server/core/interfaces/hub/i-hub-install-service.d.ts +45 -0
  277. package/dist/server/core/interfaces/hub/i-hub-keychain-store.d.ts +27 -0
  278. package/dist/server/core/interfaces/hub/i-hub-registry-config-store.d.ts +27 -0
  279. package/dist/server/core/interfaces/hub/i-hub-registry-service.d.ts +30 -0
  280. package/dist/server/core/interfaces/hub/i-hub-registry-service.js +1 -0
  281. package/dist/server/core/interfaces/i-provider-config-store.d.ts +3 -1
  282. package/dist/server/core/interfaces/i-provider-model-fetcher.d.ts +59 -0
  283. package/dist/server/core/interfaces/i-provider-model-fetcher.js +7 -0
  284. package/dist/server/core/interfaces/process/i-task-lifecycle-hook.d.ts +27 -0
  285. package/dist/server/core/interfaces/process/i-task-lifecycle-hook.js +1 -0
  286. package/dist/server/core/interfaces/project/i-project-registry.d.ts +46 -0
  287. package/dist/server/core/interfaces/project/i-project-registry.js +1 -0
  288. package/dist/server/core/interfaces/routing/i-project-router.d.ts +45 -0
  289. package/dist/server/core/interfaces/routing/i-project-router.js +1 -0
  290. package/dist/server/core/interfaces/routing/index.d.ts +1 -0
  291. package/dist/server/core/interfaces/routing/index.js +1 -0
  292. package/dist/server/core/interfaces/session/i-session-reader.d.ts +13 -0
  293. package/dist/server/core/interfaces/session/i-session-reader.js +1 -0
  294. package/dist/server/core/interfaces/state/i-auth-state-store.d.ts +68 -0
  295. package/dist/server/core/interfaces/state/i-auth-state-store.js +1 -0
  296. package/dist/server/core/interfaces/state/i-project-state-loader.d.ts +110 -0
  297. package/dist/server/core/interfaces/state/i-project-state-loader.js +1 -0
  298. package/dist/server/core/interfaces/storage/i-curate-log-store.d.ts +20 -0
  299. package/dist/server/core/interfaces/storage/i-curate-log-store.js +1 -0
  300. package/dist/server/core/interfaces/storage/i-global-config-store.d.ts +1 -15
  301. package/dist/server/core/interfaces/storage/i-mcp-config-writer.d.ts +5 -1
  302. package/dist/server/core/interfaces/storage/i-project-config-store.d.ts +6 -1
  303. package/dist/server/core/interfaces/transport/i-transport-server.d.ts +12 -2
  304. package/dist/server/core/interfaces/usecase/i-curate-log-use-case.d.ts +12 -0
  305. package/dist/server/core/interfaces/usecase/i-curate-log-use-case.js +1 -0
  306. package/dist/server/infra/client/client-manager.d.ts +51 -0
  307. package/dist/server/infra/client/client-manager.js +144 -0
  308. package/dist/server/infra/cogit/context-tree-to-push-context-mapper.js +2 -2
  309. package/dist/server/infra/config/auto-init.d.ts +14 -0
  310. package/dist/server/infra/config/auto-init.js +18 -0
  311. package/dist/server/infra/config/file-config-store.d.ts +1 -0
  312. package/dist/server/infra/config/file-config-store.js +15 -7
  313. package/dist/server/infra/connectors/mcp/json-mcp-config-writer.d.ts +1 -2
  314. package/dist/server/infra/connectors/mcp/json-mcp-config-writer.js +9 -8
  315. package/dist/server/infra/connectors/mcp/mcp-connector-config.d.ts +29 -6
  316. package/dist/server/infra/connectors/mcp/mcp-connector-config.js +28 -1
  317. package/dist/server/infra/connectors/mcp/mcp-connector.js +5 -5
  318. package/dist/server/infra/connectors/mcp/toml-mcp-config-writer.d.ts +1 -2
  319. package/dist/server/infra/connectors/rules/rules-connector-config.d.ts +8 -0
  320. package/dist/server/infra/connectors/rules/rules-connector-config.js +8 -0
  321. package/dist/server/infra/connectors/rules/rules-connector.js +34 -7
  322. package/dist/server/infra/connectors/shared/constants.d.ts +5 -0
  323. package/dist/server/infra/connectors/shared/constants.js +12 -0
  324. package/dist/server/infra/connectors/shared/rule-segment-patcher.d.ts +29 -0
  325. package/dist/server/infra/connectors/shared/rule-segment-patcher.js +208 -0
  326. package/dist/server/infra/connectors/skill/skill-connector-config.d.ts +79 -20
  327. package/dist/server/infra/connectors/skill/skill-connector-config.js +74 -10
  328. package/dist/server/infra/connectors/skill/skill-connector.d.ts +31 -4
  329. package/dist/server/infra/connectors/skill/skill-connector.js +136 -39
  330. package/dist/server/infra/context-tree/file-context-file-reader.js +6 -2
  331. package/dist/server/infra/context-tree/file-context-tree-merger.d.ts +51 -0
  332. package/dist/server/infra/context-tree/file-context-tree-merger.js +261 -0
  333. package/dist/server/infra/context-tree/file-context-tree-service.d.ts +1 -0
  334. package/dist/server/infra/context-tree/file-context-tree-service.js +6 -1
  335. package/dist/server/infra/context-tree/file-context-tree-snapshot-service.d.ts +2 -4
  336. package/dist/server/infra/context-tree/file-context-tree-snapshot-service.js +19 -9
  337. package/dist/server/infra/context-tree/hash-utils.d.ts +6 -0
  338. package/dist/server/infra/context-tree/hash-utils.js +9 -0
  339. package/dist/server/infra/daemon/agent-idle-timeout-policy.d.ts +36 -0
  340. package/dist/server/infra/daemon/agent-idle-timeout-policy.js +89 -0
  341. package/dist/server/infra/daemon/agent-logger.d.ts +10 -0
  342. package/dist/server/infra/daemon/agent-logger.js +22 -0
  343. package/dist/server/infra/daemon/agent-pool.d.ts +112 -0
  344. package/dist/server/infra/daemon/agent-pool.js +335 -0
  345. package/dist/server/infra/daemon/agent-process.d.ts +21 -0
  346. package/dist/server/infra/daemon/agent-process.js +610 -0
  347. package/dist/server/infra/daemon/brv-server.d.ts +23 -0
  348. package/dist/server/infra/daemon/brv-server.js +405 -0
  349. package/dist/server/infra/daemon/daemon-resilience.d.ts +34 -0
  350. package/dist/server/infra/daemon/daemon-resilience.js +100 -0
  351. package/dist/server/infra/daemon/heartbeat.d.ts +28 -0
  352. package/dist/server/infra/daemon/heartbeat.js +81 -0
  353. package/dist/server/infra/daemon/idle-timeout-policy.d.ts +38 -0
  354. package/dist/server/infra/daemon/idle-timeout-policy.js +91 -0
  355. package/dist/server/infra/daemon/index.d.ts +5 -0
  356. package/dist/server/infra/daemon/index.js +11 -0
  357. package/dist/server/infra/daemon/port-selector.d.ts +28 -0
  358. package/dist/server/infra/daemon/port-selector.js +45 -0
  359. package/dist/server/infra/daemon/project-task-queue.d.ts +54 -0
  360. package/dist/server/infra/daemon/project-task-queue.js +103 -0
  361. package/dist/server/infra/daemon/session-resolver.d.ts +26 -0
  362. package/dist/server/infra/daemon/session-resolver.js +88 -0
  363. package/dist/server/infra/daemon/shutdown-handler.d.ts +42 -0
  364. package/dist/server/infra/daemon/shutdown-handler.js +101 -0
  365. package/dist/server/infra/executor/curate-executor.d.ts +10 -2
  366. package/dist/server/infra/executor/curate-executor.js +88 -14
  367. package/dist/server/infra/executor/direct-search-responder.d.ts +48 -0
  368. package/dist/server/infra/executor/direct-search-responder.js +88 -0
  369. package/dist/server/infra/executor/folder-pack-executor.d.ts +13 -5
  370. package/dist/server/infra/executor/folder-pack-executor.js +780 -39
  371. package/dist/server/infra/executor/query-executor.d.ts +69 -6
  372. package/dist/server/infra/executor/query-executor.js +313 -22
  373. package/dist/server/infra/executor/query-result-cache.d.ts +87 -0
  374. package/dist/server/infra/executor/query-result-cache.js +127 -0
  375. package/dist/server/infra/executor/query-similarity.d.ts +28 -0
  376. package/dist/server/infra/executor/query-similarity.js +41 -0
  377. package/dist/server/infra/http/provider-model-fetcher-registry.d.ts +31 -0
  378. package/dist/server/infra/http/provider-model-fetcher-registry.js +121 -0
  379. package/dist/server/infra/http/provider-model-fetchers.d.ts +108 -0
  380. package/dist/server/infra/http/provider-model-fetchers.js +582 -0
  381. package/dist/server/infra/hub/composite-hub-registry-service.d.ts +17 -0
  382. package/dist/server/infra/hub/composite-hub-registry-service.js +54 -0
  383. package/dist/server/infra/hub/hub-auth-headers.d.ts +11 -0
  384. package/dist/server/infra/hub/hub-auth-headers.js +29 -0
  385. package/dist/server/infra/hub/hub-install-service.d.ts +22 -0
  386. package/dist/server/infra/hub/hub-install-service.js +99 -0
  387. package/dist/server/infra/hub/hub-keychain-store.d.ts +29 -0
  388. package/dist/server/infra/hub/hub-keychain-store.js +98 -0
  389. package/dist/server/infra/hub/hub-registry-config-store.d.ts +24 -0
  390. package/dist/server/infra/hub/hub-registry-config-store.js +92 -0
  391. package/dist/server/infra/hub/hub-registry-service.d.ts +33 -0
  392. package/dist/server/infra/hub/hub-registry-service.js +109 -0
  393. package/dist/server/infra/mcp/mcp-mode-detector.d.ts +21 -0
  394. package/dist/server/infra/mcp/mcp-mode-detector.js +25 -0
  395. package/dist/server/infra/mcp/mcp-server.d.ts +15 -9
  396. package/dist/server/infra/mcp/mcp-server.js +84 -98
  397. package/dist/server/infra/mcp/tools/brv-curate-tool.d.ts +5 -10
  398. package/dist/server/infra/mcp/tools/brv-curate-tool.js +47 -17
  399. package/dist/server/infra/mcp/tools/brv-query-tool.d.ts +4 -1
  400. package/dist/server/infra/mcp/tools/brv-query-tool.js +39 -12
  401. package/dist/server/infra/mcp/tools/index.d.ts +1 -0
  402. package/dist/server/infra/mcp/tools/index.js +1 -0
  403. package/dist/server/infra/mcp/tools/resolve-client-cwd.d.ts +17 -0
  404. package/dist/server/infra/mcp/tools/resolve-client-cwd.js +27 -0
  405. package/dist/server/infra/mcp/tools/task-result-waiter.js +6 -5
  406. package/dist/server/infra/process/broadcast-utils.d.ts +16 -0
  407. package/dist/server/infra/process/broadcast-utils.js +22 -0
  408. package/dist/server/infra/process/connection-coordinator.d.ts +85 -0
  409. package/dist/server/infra/process/connection-coordinator.js +333 -0
  410. package/dist/server/infra/process/curate-log-handler.d.ts +35 -0
  411. package/dist/server/infra/process/curate-log-handler.js +179 -0
  412. package/dist/server/infra/process/feature-handlers.d.ts +25 -0
  413. package/dist/server/infra/process/feature-handlers.js +165 -0
  414. package/dist/server/infra/process/index.d.ts +6 -7
  415. package/dist/server/infra/process/index.js +5 -6
  416. package/dist/server/infra/process/task-router.d.ts +139 -0
  417. package/dist/server/infra/process/task-router.js +503 -0
  418. package/dist/server/infra/process/transport-handlers.d.ts +55 -117
  419. package/dist/server/infra/process/transport-handlers.js +50 -437
  420. package/dist/server/infra/process/types.d.ts +5 -0
  421. package/dist/server/infra/process/types.js +1 -0
  422. package/dist/server/infra/project/project-registry.d.ts +37 -0
  423. package/dist/server/infra/project/project-registry.js +147 -0
  424. package/dist/server/infra/provider/env-provider-detector.d.ts +33 -0
  425. package/dist/server/infra/provider/env-provider-detector.js +52 -0
  426. package/dist/server/infra/provider/provider-config-resolver.d.ts +30 -0
  427. package/dist/server/infra/provider/provider-config-resolver.js +167 -0
  428. package/dist/server/infra/provider/vertex-ai-utils.d.ts +10 -0
  429. package/dist/server/infra/provider/vertex-ai-utils.js +28 -0
  430. package/dist/server/infra/routing/project-router.d.ts +35 -0
  431. package/dist/server/infra/routing/project-router.js +60 -0
  432. package/dist/server/infra/session/session-reader.d.ts +18 -0
  433. package/dist/server/infra/session/session-reader.js +17 -0
  434. package/dist/server/infra/state/auth-state-store.d.ts +55 -0
  435. package/dist/server/infra/state/auth-state-store.js +111 -0
  436. package/dist/server/infra/state/project-state-loader.d.ts +69 -0
  437. package/dist/server/infra/state/project-state-loader.js +154 -0
  438. package/dist/server/infra/storage/file-curate-log-store.d.ts +61 -0
  439. package/dist/server/infra/storage/file-curate-log-store.js +198 -0
  440. package/dist/server/infra/storage/file-global-config-store.d.ts +0 -2
  441. package/dist/server/infra/storage/file-global-config-store.js +0 -19
  442. package/dist/server/infra/storage/file-onboarding-preference-store.d.ts +1 -1
  443. package/dist/server/infra/storage/file-onboarding-preference-store.js +7 -8
  444. package/dist/server/infra/storage/file-provider-config-store.d.ts +3 -2
  445. package/dist/server/infra/storage/file-provider-config-store.js +3 -3
  446. package/dist/server/infra/storage/file-provider-keychain-store.d.ts +31 -0
  447. package/dist/server/infra/storage/file-provider-keychain-store.js +110 -0
  448. package/dist/server/infra/storage/file-token-store.d.ts +2 -5
  449. package/dist/server/infra/storage/file-token-store.js +2 -5
  450. package/dist/server/infra/storage/provider-keychain-store.d.ts +2 -33
  451. package/dist/server/infra/storage/provider-keychain-store.js +4 -71
  452. package/dist/server/infra/storage/token-store.d.ts +3 -8
  453. package/dist/server/infra/storage/token-store.js +4 -11
  454. package/dist/server/infra/transport/agent-instance-discovery.d.ts +20 -0
  455. package/dist/server/infra/transport/agent-instance-discovery.js +32 -0
  456. package/dist/server/infra/transport/handlers/agent-dto-mapper.d.ts +6 -0
  457. package/dist/server/infra/transport/handlers/agent-dto-mapper.js +16 -0
  458. package/dist/server/infra/transport/handlers/auth-handler.d.ts +60 -0
  459. package/dist/server/infra/transport/handlers/auth-handler.js +257 -0
  460. package/dist/server/infra/transport/handlers/config-handler.d.ts +13 -0
  461. package/dist/server/infra/transport/handlers/config-handler.js +22 -0
  462. package/dist/server/infra/transport/handlers/connectors-handler.d.ts +23 -0
  463. package/dist/server/infra/transport/handlers/connectors-handler.js +73 -0
  464. package/dist/server/infra/transport/handlers/handler-types.d.ts +23 -0
  465. package/dist/server/infra/transport/handlers/handler-types.js +21 -0
  466. package/dist/server/infra/transport/handlers/hub-handler.d.ts +34 -0
  467. package/dist/server/infra/transport/handlers/hub-handler.js +218 -0
  468. package/dist/server/infra/transport/handlers/index.d.ts +26 -0
  469. package/dist/server/infra/transport/handlers/index.js +13 -0
  470. package/dist/server/infra/transport/handlers/init-handler.d.ts +50 -0
  471. package/dist/server/infra/transport/handlers/init-handler.js +157 -0
  472. package/dist/server/infra/transport/handlers/model-handler.d.ts +22 -0
  473. package/dist/server/infra/transport/handlers/model-handler.js +107 -0
  474. package/dist/server/infra/transport/handlers/provider-handler.d.ts +25 -0
  475. package/dist/server/infra/transport/handlers/provider-handler.js +101 -0
  476. package/dist/server/infra/transport/handlers/pull-handler.d.ts +35 -0
  477. package/dist/server/infra/transport/handlers/pull-handler.js +87 -0
  478. package/dist/server/infra/transport/handlers/push-handler.d.ts +37 -0
  479. package/dist/server/infra/transport/handlers/push-handler.js +109 -0
  480. package/dist/server/infra/transport/handlers/reset-handler.d.ts +23 -0
  481. package/dist/server/infra/transport/handlers/reset-handler.js +33 -0
  482. package/dist/server/infra/transport/handlers/space-handler.d.ts +44 -0
  483. package/dist/server/infra/transport/handlers/space-handler.js +206 -0
  484. package/dist/server/infra/transport/handlers/status-handler.d.ts +29 -0
  485. package/dist/server/infra/transport/handlers/status-handler.js +99 -0
  486. package/dist/server/infra/transport/index.d.ts +1 -1
  487. package/dist/server/infra/transport/index.js +0 -1
  488. package/dist/server/infra/transport/port-utils.d.ts +0 -35
  489. package/dist/server/infra/transport/port-utils.js +0 -62
  490. package/dist/server/infra/transport/socket-io-transport-server.d.ts +6 -1
  491. package/dist/server/infra/transport/socket-io-transport-server.js +30 -10
  492. package/dist/server/infra/transport/transport-connector.d.ts +13 -0
  493. package/dist/server/infra/transport/transport-connector.js +18 -0
  494. package/dist/server/infra/usecase/curate-log-use-case.d.ts +32 -0
  495. package/dist/server/infra/usecase/curate-log-use-case.js +142 -0
  496. package/dist/server/templates/sections/brv-instructions.md +8 -0
  497. package/dist/server/templates/sections/command-reference.md +5 -2
  498. package/dist/server/templates/sections/workflow.md +2 -0
  499. package/dist/server/templates/skill/SKILL.md +138 -59
  500. package/dist/server/utils/config-xdg-sync.d.ts +13 -0
  501. package/dist/server/utils/config-xdg-sync.js +25 -0
  502. package/dist/server/utils/curate-result-parser.d.ts +121 -0
  503. package/dist/server/utils/curate-result-parser.js +120 -0
  504. package/dist/server/utils/file-validator.js +78 -1
  505. package/dist/server/utils/global-config-path.d.ts +1 -1
  506. package/dist/server/utils/global-config-path.js +5 -2
  507. package/dist/server/utils/global-data-path.d.ts +2 -2
  508. package/dist/server/utils/global-data-path.js +8 -3
  509. package/dist/server/utils/path-utils.d.ts +38 -0
  510. package/dist/server/utils/path-utils.js +92 -0
  511. package/dist/server/utils/process-logger.js +1 -1
  512. package/dist/server/utils/server-main-resolver.d.ts +9 -0
  513. package/dist/server/utils/server-main-resolver.js +17 -0
  514. package/dist/shared/transport/events/agent-events.d.ts +16 -0
  515. package/dist/shared/transport/events/agent-events.js +10 -0
  516. package/dist/shared/transport/events/auth-events.d.ts +45 -0
  517. package/dist/shared/transport/events/auth-events.js +11 -0
  518. package/dist/shared/transport/events/config-events.d.ts +18 -0
  519. package/dist/shared/transport/events/config-events.js +5 -0
  520. package/dist/shared/transport/events/connector-events.d.ts +35 -0
  521. package/dist/shared/transport/events/connector-events.js +6 -0
  522. package/dist/shared/transport/events/hub-events.d.ts +62 -0
  523. package/dist/shared/transport/events/hub-events.js +10 -0
  524. package/dist/shared/transport/events/index.d.ts +123 -0
  525. package/dist/shared/transport/events/index.js +73 -0
  526. package/dist/shared/transport/events/init-events.d.ts +41 -0
  527. package/dist/shared/transport/events/init-events.js +8 -0
  528. package/dist/shared/transport/events/llm-events.d.ts +13 -0
  529. package/dist/shared/transport/events/llm-events.js +13 -0
  530. package/dist/shared/transport/events/model-events.d.ts +30 -0
  531. package/dist/shared/transport/events/model-events.js +5 -0
  532. package/dist/shared/transport/events/onboarding-events.d.ts +18 -0
  533. package/dist/shared/transport/events/onboarding-events.js +5 -0
  534. package/dist/shared/transport/events/provider-events.d.ts +44 -0
  535. package/dist/shared/transport/events/provider-events.js +8 -0
  536. package/dist/shared/transport/events/pull-events.d.ts +26 -0
  537. package/dist/shared/transport/events/pull-events.js +5 -0
  538. package/dist/shared/transport/events/push-events.d.ts +27 -0
  539. package/dist/shared/transport/events/push-events.js +5 -0
  540. package/dist/shared/transport/events/reset-events.d.ts +6 -0
  541. package/dist/shared/transport/events/reset-events.js +3 -0
  542. package/dist/shared/transport/events/session-events.d.ts +3 -0
  543. package/dist/shared/transport/events/session-events.js +3 -0
  544. package/dist/shared/transport/events/space-events.d.ts +30 -0
  545. package/dist/shared/transport/events/space-events.js +4 -0
  546. package/dist/shared/transport/events/status-events.d.ts +7 -0
  547. package/dist/shared/transport/events/status-events.js +3 -0
  548. package/dist/shared/transport/events/task-events.d.ts +19 -0
  549. package/dist/shared/transport/events/task-events.js +9 -0
  550. package/dist/shared/transport/types/auth-scheme.d.ts +1 -0
  551. package/dist/shared/transport/types/auth-scheme.js +1 -0
  552. package/dist/shared/transport/types/dto.d.ts +112 -0
  553. package/dist/shared/transport/types/dto.js +6 -0
  554. package/dist/shared/transport/types/index.d.ts +1 -0
  555. package/dist/shared/transport/types/index.js +1 -0
  556. package/dist/shared/types/agent.d.ts +5 -0
  557. package/dist/shared/types/agent.js +27 -0
  558. package/dist/shared/types/connector-type.d.ts +18 -0
  559. package/dist/shared/types/connector-type.js +26 -0
  560. package/dist/shared/types/context-tree-changes.d.ts +11 -0
  561. package/dist/shared/types/context-tree-changes.js +1 -0
  562. package/dist/shared/types/index.d.ts +3 -0
  563. package/dist/shared/types/index.js +2 -0
  564. package/dist/tui/app/index.d.ts +9 -0
  565. package/dist/tui/app/index.js +4 -0
  566. package/dist/tui/app/layouts/main-layout.d.ts +14 -0
  567. package/dist/tui/app/layouts/main-layout.js +19 -0
  568. package/dist/tui/app/pages/config-provider-page.d.ts +8 -0
  569. package/dist/tui/app/pages/config-provider-page.js +19 -0
  570. package/dist/tui/app/pages/home-page.d.ts +8 -0
  571. package/dist/tui/app/pages/home-page.js +85 -0
  572. package/dist/tui/app/pages/login-page.d.ts +12 -0
  573. package/dist/tui/app/pages/login-page.js +87 -0
  574. package/dist/tui/app/pages/protected-routes.d.ts +8 -0
  575. package/dist/tui/app/pages/protected-routes.js +14 -0
  576. package/dist/tui/app/router.d.ts +11 -0
  577. package/dist/tui/app/router.js +21 -0
  578. package/dist/tui/components/command/command-output.d.ts +1 -1
  579. package/dist/tui/components/command/command-output.js +5 -7
  580. package/dist/tui/components/command/expanded-command-view.d.ts +1 -1
  581. package/dist/tui/components/command/expanded-command-view.js +5 -6
  582. package/dist/tui/components/command/live-streaming-output.d.ts +2 -4
  583. package/dist/tui/components/command/live-streaming-output.js +5 -19
  584. package/dist/tui/components/command-details.d.ts +1 -1
  585. package/dist/tui/components/command-details.js +3 -3
  586. package/dist/tui/components/command-input.js +84 -171
  587. package/dist/tui/components/command-item.d.ts +1 -1
  588. package/dist/tui/components/command-item.js +6 -7
  589. package/dist/tui/components/execution/execution-status.d.ts +1 -1
  590. package/dist/tui/components/execution/execution-tool.d.ts +1 -1
  591. package/dist/tui/components/execution/expanded-log-view.d.ts +1 -1
  592. package/dist/tui/components/execution/expanded-log-view.js +1 -1
  593. package/dist/tui/components/execution/log-item.d.ts +1 -1
  594. package/dist/tui/components/execution/log-item.js +1 -1
  595. package/dist/tui/components/footer.js +6 -4
  596. package/dist/tui/components/header.js +2 -2
  597. package/dist/tui/components/index.d.ts +0 -2
  598. package/dist/tui/components/index.js +0 -2
  599. package/dist/tui/components/init.d.ts +1 -1
  600. package/dist/tui/components/init.js +26 -32
  601. package/dist/tui/components/inline-prompts/inline-file-selector.d.ts +1 -1
  602. package/dist/tui/components/inline-prompts/inline-input.d.ts +6 -0
  603. package/dist/tui/components/inline-prompts/inline-input.js +53 -16
  604. package/dist/tui/components/inline-prompts/inline-search.d.ts +2 -2
  605. package/dist/tui/components/inline-prompts/inline-search.js +1 -1
  606. package/dist/tui/components/inline-prompts/inline-select.d.ts +1 -1
  607. package/dist/tui/components/inline-prompts/inline-select.js +1 -1
  608. package/dist/tui/components/message-item.d.ts +1 -1
  609. package/dist/tui/components/message-item.js +2 -2
  610. package/dist/tui/components/onboarding/welcome-box.d.ts +1 -8
  611. package/dist/tui/components/onboarding/welcome-box.js +11 -12
  612. package/dist/tui/components/onboarding-item.d.ts +1 -1
  613. package/dist/tui/components/selectable-list.d.ts +3 -1
  614. package/dist/tui/components/selectable-list.js +7 -15
  615. package/dist/tui/components/status-badge.js +1 -1
  616. package/dist/tui/components/suggestions.js +5 -18
  617. package/dist/tui/features/activity/hooks/index.d.ts +2 -0
  618. package/dist/tui/features/activity/hooks/index.js +2 -0
  619. package/dist/tui/features/activity/hooks/use-activity-logs.d.ts +18 -0
  620. package/dist/tui/features/activity/hooks/use-activity-logs.js +208 -0
  621. package/dist/tui/features/activity/hooks/use-feed-navigation.d.ts +24 -0
  622. package/dist/tui/features/activity/hooks/use-feed-navigation.js +43 -0
  623. package/dist/tui/features/activity/index.d.ts +1 -0
  624. package/dist/tui/features/activity/index.js +1 -0
  625. package/dist/tui/features/auth/api/get-auth-state.d.ts +16 -0
  626. package/dist/tui/features/auth/api/get-auth-state.js +21 -0
  627. package/dist/tui/features/auth/api/login.d.ts +3 -0
  628. package/dist/tui/features/auth/api/login.js +14 -0
  629. package/dist/tui/features/auth/api/logout.d.ts +8 -0
  630. package/dist/tui/features/auth/api/logout.js +24 -0
  631. package/dist/tui/features/auth/api/refresh-auth.d.ts +8 -0
  632. package/dist/tui/features/auth/api/refresh-auth.js +24 -0
  633. package/dist/tui/features/auth/components/auth-initializer.d.ts +10 -0
  634. package/dist/tui/features/auth/components/auth-initializer.js +82 -0
  635. package/dist/tui/features/auth/components/login-flow.d.ts +8 -0
  636. package/dist/tui/features/auth/components/login-flow.js +62 -0
  637. package/dist/tui/features/auth/components/logout-flow.d.ts +12 -0
  638. package/dist/tui/features/auth/components/logout-flow.js +81 -0
  639. package/dist/tui/features/auth/guards/auth-guard.d.ts +2 -0
  640. package/dist/tui/features/auth/guards/auth-guard.js +11 -0
  641. package/dist/tui/features/auth/stores/auth-store.d.ts +27 -0
  642. package/dist/tui/features/auth/stores/auth-store.js +29 -0
  643. package/dist/tui/features/commands/components/command-view.d.ts +17 -0
  644. package/dist/tui/features/commands/components/command-view.js +34 -0
  645. package/dist/tui/features/commands/definitions/connectors.d.ts +2 -0
  646. package/dist/tui/features/commands/definitions/connectors.js +9 -0
  647. package/dist/tui/features/commands/definitions/curate.d.ts +2 -0
  648. package/dist/tui/features/commands/definitions/curate.js +53 -0
  649. package/dist/tui/features/commands/definitions/hub-list.d.ts +2 -0
  650. package/dist/tui/features/commands/definitions/hub-list.js +9 -0
  651. package/dist/tui/features/commands/definitions/hub-registry-add.d.ts +2 -0
  652. package/dist/tui/features/commands/definitions/hub-registry-add.js +36 -0
  653. package/dist/tui/features/commands/definitions/hub-registry-list.d.ts +2 -0
  654. package/dist/tui/features/commands/definitions/hub-registry-list.js +9 -0
  655. package/dist/tui/features/commands/definitions/hub-registry-remove.d.ts +2 -0
  656. package/dist/tui/features/commands/definitions/hub-registry-remove.js +25 -0
  657. package/dist/tui/features/commands/definitions/hub-registry.d.ts +2 -0
  658. package/dist/tui/features/commands/definitions/hub-registry.js +8 -0
  659. package/dist/tui/features/commands/definitions/hub.d.ts +2 -0
  660. package/dist/tui/features/commands/definitions/hub.js +7 -0
  661. package/dist/tui/features/commands/definitions/index.d.ts +8 -0
  662. package/dist/tui/features/commands/definitions/index.js +45 -0
  663. package/dist/tui/features/commands/definitions/login.d.ts +2 -0
  664. package/dist/tui/features/commands/definitions/login.js +12 -0
  665. package/dist/tui/features/commands/definitions/logout.d.ts +2 -0
  666. package/dist/tui/features/commands/definitions/logout.js +26 -0
  667. package/dist/tui/features/commands/definitions/model.d.ts +2 -0
  668. package/dist/tui/features/commands/definitions/model.js +9 -0
  669. package/dist/tui/features/commands/definitions/new.d.ts +2 -0
  670. package/dist/tui/features/commands/definitions/new.js +27 -0
  671. package/dist/tui/features/commands/definitions/providers.d.ts +2 -0
  672. package/dist/tui/features/commands/definitions/providers.js +9 -0
  673. package/dist/tui/features/commands/definitions/pull.d.ts +2 -0
  674. package/dist/tui/features/commands/definitions/pull.js +23 -0
  675. package/dist/tui/features/commands/definitions/push.d.ts +2 -0
  676. package/dist/tui/features/commands/definitions/push.js +29 -0
  677. package/dist/tui/features/commands/definitions/query.d.ts +2 -0
  678. package/dist/tui/features/commands/definitions/query.js +36 -0
  679. package/dist/tui/features/commands/definitions/reset.d.ts +2 -0
  680. package/dist/tui/features/commands/definitions/reset.js +22 -0
  681. package/dist/tui/features/commands/definitions/space-list.d.ts +2 -0
  682. package/dist/tui/features/commands/definitions/space-list.js +22 -0
  683. package/dist/tui/features/commands/definitions/space-switch.d.ts +2 -0
  684. package/dist/tui/features/commands/definitions/space-switch.js +9 -0
  685. package/dist/tui/features/commands/definitions/space.d.ts +2 -0
  686. package/dist/tui/features/commands/definitions/space.js +7 -0
  687. package/dist/tui/features/commands/definitions/status.d.ts +2 -0
  688. package/dist/tui/features/commands/definitions/status.js +11 -0
  689. package/dist/tui/features/commands/hooks/use-commands-controller.d.ts +38 -0
  690. package/dist/tui/features/commands/hooks/use-commands-controller.js +43 -0
  691. package/dist/tui/features/commands/hooks/use-slash-command-processor.d.ts +16 -0
  692. package/dist/tui/features/commands/hooks/use-slash-command-processor.js +134 -0
  693. package/dist/tui/features/commands/hooks/use-slash-completion.d.ts +30 -0
  694. package/dist/tui/features/commands/hooks/use-slash-completion.js +256 -0
  695. package/dist/tui/features/commands/stores/commands-store.d.ts +32 -0
  696. package/dist/tui/features/commands/stores/commands-store.js +23 -0
  697. package/dist/tui/features/commands/utils/arg-parser.d.ts +102 -0
  698. package/dist/tui/features/connectors/api/get-agent-config-paths.d.ts +18 -0
  699. package/dist/tui/features/connectors/api/get-agent-config-paths.js +17 -0
  700. package/dist/tui/features/connectors/api/get-agents.d.ts +16 -0
  701. package/dist/tui/features/connectors/api/get-agents.js +19 -0
  702. package/dist/tui/features/connectors/api/get-connectors.d.ts +16 -0
  703. package/dist/tui/features/connectors/api/get-connectors.js +17 -0
  704. package/dist/tui/features/connectors/api/install-connector.d.ts +14 -0
  705. package/dist/tui/features/connectors/api/install-connector.js +27 -0
  706. package/dist/tui/features/connectors/components/agent-search-step.d.ts +9 -0
  707. package/dist/tui/features/connectors/components/agent-search-step.js +18 -0
  708. package/dist/tui/features/connectors/components/confirm-switch-step.d.ts +10 -0
  709. package/dist/tui/features/connectors/components/confirm-switch-step.js +13 -0
  710. package/dist/tui/features/connectors/components/connector-list-step.d.ts +11 -0
  711. package/dist/tui/features/connectors/components/connector-list-step.js +29 -0
  712. package/dist/tui/features/connectors/components/connector-type-step.d.ts +13 -0
  713. package/dist/tui/features/connectors/components/connector-type-step.js +23 -0
  714. package/dist/tui/features/connectors/components/connectors-flow.d.ts +17 -0
  715. package/dist/tui/features/connectors/components/connectors-flow.js +179 -0
  716. package/dist/tui/features/connectors/utils/get-connector-name.d.ts +3 -0
  717. package/dist/tui/features/connectors/utils/get-connector-name.js +33 -0
  718. package/dist/tui/features/curate/api/create-curate-task.d.ts +22 -0
  719. package/dist/tui/features/curate/api/create-curate-task.js +40 -0
  720. package/dist/tui/features/curate/components/curate-flow.d.ts +20 -0
  721. package/dist/tui/features/curate/components/curate-flow.js +41 -0
  722. package/dist/tui/features/hub/api/add-hub-registry.d.ts +15 -0
  723. package/dist/tui/features/hub/api/add-hub-registry.js +30 -0
  724. package/dist/tui/features/hub/api/get-hub-entries.d.ts +16 -0
  725. package/dist/tui/features/hub/api/get-hub-entries.js +17 -0
  726. package/dist/tui/features/hub/api/install-hub-entry.d.ts +14 -0
  727. package/dist/tui/features/hub/api/install-hub-entry.js +24 -0
  728. package/dist/tui/features/hub/api/list-hub-registries.d.ts +16 -0
  729. package/dist/tui/features/hub/api/list-hub-registries.js +17 -0
  730. package/dist/tui/features/hub/api/remove-hub-registry.d.ts +11 -0
  731. package/dist/tui/features/hub/api/remove-hub-registry.js +24 -0
  732. package/dist/tui/features/hub/components/hub-agent-step.d.ts +8 -0
  733. package/dist/tui/features/hub/components/hub-agent-step.js +14 -0
  734. package/dist/tui/features/hub/components/hub-detail-step.d.ts +10 -0
  735. package/dist/tui/features/hub/components/hub-detail-step.js +25 -0
  736. package/dist/tui/features/hub/components/hub-flow.d.ts +7 -0
  737. package/dist/tui/features/hub/components/hub-flow.js +90 -0
  738. package/dist/tui/features/hub/components/hub-list-step.d.ts +10 -0
  739. package/dist/tui/features/hub/components/hub-list-step.js +34 -0
  740. package/dist/tui/features/hub/components/hub-registry-add-view.d.ts +12 -0
  741. package/dist/tui/features/hub/components/hub-registry-add-view.js +36 -0
  742. package/dist/tui/features/hub/components/hub-registry-list-view.d.ts +7 -0
  743. package/dist/tui/features/hub/components/hub-registry-list-view.js +38 -0
  744. package/dist/tui/features/hub/components/hub-registry-remove-view.d.ts +8 -0
  745. package/dist/tui/features/hub/components/hub-registry-remove-view.js +17 -0
  746. package/dist/tui/features/model/api/get-models-by-providers.d.ts +20 -0
  747. package/dist/tui/features/model/api/get-models-by-providers.js +17 -0
  748. package/dist/tui/features/model/api/get-models.d.ts +20 -0
  749. package/dist/tui/features/model/api/get-models.js +17 -0
  750. package/dist/tui/features/model/api/set-active-model.d.ts +13 -0
  751. package/dist/tui/features/model/api/set-active-model.js +13 -0
  752. package/dist/tui/features/model/components/model-dialog.d.ts +67 -0
  753. package/dist/tui/features/model/components/model-dialog.js +96 -0
  754. package/dist/tui/features/model/components/model-flow.d.ts +17 -0
  755. package/dist/tui/features/model/components/model-flow.js +108 -0
  756. package/dist/tui/features/model/stores/model-store.d.ts +35 -0
  757. package/dist/tui/features/model/stores/model-store.js +26 -0
  758. package/dist/tui/features/onboarding/api/auto-setup-onboarding.d.ts +8 -0
  759. package/dist/tui/features/onboarding/api/auto-setup-onboarding.js +24 -0
  760. package/dist/tui/features/onboarding/api/complete-onboarding.d.ts +11 -0
  761. package/dist/tui/features/onboarding/api/complete-onboarding.js +24 -0
  762. package/dist/tui/features/onboarding/api/get-onboarding-state.d.ts +16 -0
  763. package/dist/tui/features/onboarding/api/get-onboarding-state.js +17 -0
  764. package/dist/tui/features/onboarding/hooks/use-app-view-mode.d.ts +27 -0
  765. package/dist/tui/features/onboarding/hooks/use-app-view-mode.js +36 -0
  766. package/dist/tui/features/onboarding/types.d.ts +7 -0
  767. package/dist/tui/features/onboarding/types.js +4 -0
  768. package/dist/tui/features/onboarding/utils.d.ts +28 -0
  769. package/dist/tui/features/onboarding/utils.js +76 -0
  770. package/dist/tui/features/provider/api/connect-provider.d.ts +13 -0
  771. package/dist/tui/features/provider/api/connect-provider.js +28 -0
  772. package/dist/tui/features/provider/api/disconnect-provider.d.ts +11 -0
  773. package/dist/tui/features/provider/api/disconnect-provider.js +26 -0
  774. package/dist/tui/features/provider/api/get-active-provider-config.d.ts +16 -0
  775. package/dist/tui/features/provider/api/get-active-provider-config.js +17 -0
  776. package/dist/tui/features/provider/api/get-providers.d.ts +16 -0
  777. package/dist/tui/features/provider/api/get-providers.js +17 -0
  778. package/dist/tui/features/provider/api/set-active-provider.d.ts +11 -0
  779. package/dist/tui/features/provider/api/set-active-provider.js +24 -0
  780. package/dist/tui/features/provider/api/validate-api-key.d.ts +12 -0
  781. package/dist/tui/features/provider/api/validate-api-key.js +13 -0
  782. package/dist/tui/features/provider/components/api-key-dialog.d.ts +41 -0
  783. package/dist/tui/features/provider/components/api-key-dialog.js +126 -0
  784. package/dist/tui/features/provider/components/base-url-dialog.d.ts +24 -0
  785. package/dist/tui/features/provider/components/base-url-dialog.js +77 -0
  786. package/dist/tui/features/provider/components/credential-path-dialog.d.ts +30 -0
  787. package/dist/tui/features/provider/components/credential-path-dialog.js +85 -0
  788. package/dist/tui/features/provider/components/model-select-step.d.ts +20 -0
  789. package/dist/tui/features/provider/components/model-select-step.js +73 -0
  790. package/dist/tui/features/provider/components/provider-dialog.d.ts +29 -0
  791. package/dist/tui/features/provider/components/provider-dialog.js +20 -0
  792. package/dist/tui/features/provider/components/provider-flow.d.ts +25 -0
  793. package/dist/tui/features/provider/components/provider-flow.js +277 -0
  794. package/dist/tui/features/provider/stores/provider-store.d.ts +28 -0
  795. package/dist/tui/features/provider/stores/provider-store.js +22 -0
  796. package/dist/tui/features/pull/api/execute-pull.d.ts +11 -0
  797. package/dist/tui/features/pull/api/execute-pull.js +13 -0
  798. package/dist/tui/features/pull/api/prepare-pull.d.ts +20 -0
  799. package/dist/tui/features/pull/api/prepare-pull.js +17 -0
  800. package/dist/tui/features/pull/components/pull-flow.d.ts +12 -0
  801. package/dist/tui/features/pull/components/pull-flow.js +70 -0
  802. package/dist/tui/features/push/api/execute-push.d.ts +11 -0
  803. package/dist/tui/features/push/api/execute-push.js +13 -0
  804. package/dist/tui/features/push/api/prepare-push.d.ts +20 -0
  805. package/dist/tui/features/push/api/prepare-push.js +17 -0
  806. package/dist/tui/features/push/components/push-flow.d.ts +13 -0
  807. package/dist/tui/features/push/components/push-flow.js +86 -0
  808. package/dist/tui/features/query/api/create-query-task.d.ts +17 -0
  809. package/dist/tui/features/query/api/create-query-task.js +27 -0
  810. package/dist/tui/features/query/components/query-flow.d.ts +18 -0
  811. package/dist/tui/features/query/components/query-flow.js +36 -0
  812. package/dist/tui/features/reset/api/execute-reset.d.ts +8 -0
  813. package/dist/tui/features/reset/api/execute-reset.js +13 -0
  814. package/dist/tui/features/reset/components/reset-flow.d.ts +12 -0
  815. package/dist/tui/features/reset/components/reset-flow.js +44 -0
  816. package/dist/tui/features/session/components/new-session-flow.d.ts +12 -0
  817. package/dist/tui/features/session/components/new-session-flow.js +28 -0
  818. package/dist/tui/features/space/api/get-spaces.d.ts +16 -0
  819. package/dist/tui/features/space/api/get-spaces.js +17 -0
  820. package/dist/tui/features/space/api/switch-space.d.ts +11 -0
  821. package/dist/tui/features/space/api/switch-space.js +24 -0
  822. package/dist/tui/features/space/components/space-list-view.d.ts +12 -0
  823. package/dist/tui/features/space/components/space-list-view.js +56 -0
  824. package/dist/tui/features/space/components/space-switch-flow.d.ts +13 -0
  825. package/dist/tui/features/space/components/space-switch-flow.js +97 -0
  826. package/dist/tui/features/status/api/get-status.d.ts +16 -0
  827. package/dist/tui/features/status/api/get-status.js +17 -0
  828. package/dist/tui/features/status/components/status-view.d.ts +12 -0
  829. package/dist/tui/features/status/components/status-view.js +26 -0
  830. package/dist/tui/features/status/utils/format-status.d.ts +5 -0
  831. package/dist/tui/features/status/utils/format-status.js +62 -0
  832. package/dist/tui/features/tasks/components/task-subscription-initializer.d.ts +5 -0
  833. package/dist/tui/features/tasks/components/task-subscription-initializer.js +9 -0
  834. package/dist/tui/features/tasks/hooks/use-task-subscriptions.d.ts +5 -0
  835. package/dist/tui/features/tasks/hooks/use-task-subscriptions.js +74 -0
  836. package/dist/tui/features/tasks/stores/tasks-store.d.ts +92 -0
  837. package/dist/tui/features/tasks/stores/tasks-store.js +262 -0
  838. package/dist/tui/features/transport/components/transport-initializer.d.ts +13 -0
  839. package/dist/tui/features/transport/components/transport-initializer.js +107 -0
  840. package/dist/tui/features/transport/hooks/use-transport.d.ts +19 -0
  841. package/dist/tui/features/transport/hooks/use-transport.js +16 -0
  842. package/dist/tui/hooks/index.d.ts +14 -13
  843. package/dist/tui/hooks/index.js +15 -9
  844. package/dist/tui/hooks/use-terminal-breakpoint.js +3 -2
  845. package/dist/tui/lib/api-client.d.ts +20 -0
  846. package/dist/tui/lib/api-client.js +29 -0
  847. package/dist/tui/lib/environment.d.ts +18 -0
  848. package/dist/tui/lib/environment.js +18 -0
  849. package/dist/tui/lib/react-query.d.ts +17 -0
  850. package/dist/tui/lib/react-query.js +17 -0
  851. package/dist/tui/lib/transport-logger.d.ts +13 -0
  852. package/dist/tui/lib/transport-logger.js +40 -0
  853. package/dist/tui/providers/app-providers.d.ts +1 -16
  854. package/dist/tui/providers/app-providers.js +26 -4
  855. package/dist/tui/repl-startup.d.ts +1 -12
  856. package/dist/tui/repl-startup.js +6 -24
  857. package/dist/tui/stores/mode-store.d.ts +25 -0
  858. package/dist/tui/stores/mode-store.js +49 -0
  859. package/dist/tui/stores/theme-store.d.ts +43 -0
  860. package/dist/tui/stores/theme-store.js +39 -0
  861. package/dist/tui/stores/transport-store.d.ts +40 -0
  862. package/dist/tui/stores/transport-store.js +40 -0
  863. package/dist/tui/types/commands.d.ts +23 -91
  864. package/dist/tui/types/commands.js +1 -13
  865. package/dist/tui/types/index.d.ts +3 -4
  866. package/dist/tui/types/index.js +0 -2
  867. package/dist/tui/types/messages.d.ts +8 -1
  868. package/dist/tui/types/ui.d.ts +0 -5
  869. package/dist/tui/utils/error-messages.d.ts +22 -0
  870. package/dist/tui/utils/error-messages.js +45 -0
  871. package/dist/tui/utils/index.d.ts +2 -0
  872. package/dist/tui/utils/index.js +2 -0
  873. package/dist/tui/utils/input.d.ts +14 -0
  874. package/dist/tui/utils/input.js +17 -0
  875. package/dist/tui/utils/log.d.ts +1 -1
  876. package/node_modules/@campfirein/brv-transport-client/README.md +79 -338
  877. package/node_modules/@campfirein/brv-transport-client/dist/constants.d.ts +18 -3
  878. package/node_modules/@campfirein/brv-transport-client/dist/constants.d.ts.map +1 -1
  879. package/node_modules/@campfirein/brv-transport-client/dist/constants.js +25 -4
  880. package/node_modules/@campfirein/brv-transport-client/dist/constants.js.map +1 -1
  881. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.d.ts +4 -9
  882. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.d.ts.map +1 -1
  883. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.js +9 -24
  884. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.js.map +1 -1
  885. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.d.ts +20 -0
  886. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.d.ts.map +1 -1
  887. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.js +30 -0
  888. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.js.map +1 -1
  889. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.d.ts +3 -1
  890. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.d.ts.map +1 -1
  891. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.js +4 -1
  892. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.js.map +1 -1
  893. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.d.ts +10 -1
  894. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.d.ts.map +1 -1
  895. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.js +10 -0
  896. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.js.map +1 -1
  897. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.d.ts +1 -1
  898. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.d.ts.map +1 -1
  899. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.js +1 -1
  900. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.js.map +1 -1
  901. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.d.ts +9 -0
  902. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.d.ts.map +1 -1
  903. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.js +8 -1
  904. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.js.map +1 -1
  905. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.d.ts.map +1 -1
  906. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.js.map +1 -1
  907. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.d.ts.map +1 -1
  908. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.js.map +1 -1
  909. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.d.ts.map +1 -1
  910. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.js.map +1 -1
  911. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.d.ts.map +1 -1
  912. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.js.map +1 -1
  913. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.d.ts.map +1 -1
  914. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.js.map +1 -1
  915. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory-config.d.ts +150 -0
  916. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory-config.d.ts.map +1 -0
  917. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory-config.js +8 -0
  918. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory-config.js.map +1 -0
  919. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.d.ts +9 -4
  920. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.d.ts.map +1 -1
  921. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.js.map +1 -1
  922. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.d.ts.map +1 -1
  923. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.js.map +1 -1
  924. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts.map +1 -1
  925. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.js.map +1 -1
  926. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.d.ts.map +1 -1
  927. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.js.map +1 -1
  928. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.d.ts.map +1 -1
  929. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.js.map +1 -1
  930. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.d.ts.map +1 -1
  931. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.js.map +1 -1
  932. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.d.ts +9 -22
  933. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.d.ts.map +1 -1
  934. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.js.map +1 -1
  935. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-manager.d.ts +46 -0
  936. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-manager.d.ts.map +1 -0
  937. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-manager.js +2 -0
  938. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-manager.js.map +1 -0
  939. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.d.ts.map +1 -1
  940. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.js.map +1 -1
  941. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.d.ts.map +1 -1
  942. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.js.map +1 -1
  943. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.d.ts.map +1 -1
  944. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.js.map +1 -1
  945. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.d.ts.map +1 -1
  946. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.js.map +1 -1
  947. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-spawn-lock.d.ts +27 -0
  948. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-spawn-lock.d.ts.map +1 -0
  949. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-spawn-lock.js +2 -0
  950. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-spawn-lock.js.map +1 -0
  951. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.d.ts.map +1 -1
  952. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.js.map +1 -1
  953. package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts +26 -16
  954. package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts.map +1 -1
  955. package/node_modules/@campfirein/brv-transport-client/dist/index.js +28 -18
  956. package/node_modules/@campfirein/brv-transport-client/dist/index.js.map +1 -1
  957. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts +49 -167
  958. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts.map +1 -1
  959. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js +161 -260
  960. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js.map +1 -1
  961. package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.d.ts.map +1 -1
  962. package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.js.map +1 -1
  963. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-connector.d.ts +46 -0
  964. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-connector.d.ts.map +1 -0
  965. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-connector.js +47 -0
  966. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-connector.js.map +1 -0
  967. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.d.ts +41 -0
  968. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.d.ts.map +1 -0
  969. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.js +48 -0
  970. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-discovery-sync.js.map +1 -0
  971. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.d.ts +37 -0
  972. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.d.ts.map +1 -0
  973. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.js +35 -0
  974. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-health.js.map +1 -0
  975. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-instance-discovery.d.ts +22 -0
  976. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-instance-discovery.d.ts.map +1 -0
  977. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-instance-discovery.js +83 -0
  978. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-instance-discovery.js.map +1 -0
  979. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-reconnector.d.ts +60 -0
  980. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-reconnector.d.ts.map +1 -0
  981. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-reconnector.js +101 -0
  982. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-reconnector.js.map +1 -0
  983. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-spawner.d.ts +33 -0
  984. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-spawner.d.ts.map +1 -0
  985. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-spawner.js +161 -0
  986. package/node_modules/@campfirein/brv-transport-client/dist/infra/daemon-spawner.js.map +1 -0
  987. package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.d.ts.map +1 -1
  988. package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.js.map +1 -1
  989. package/node_modules/@campfirein/brv-transport-client/dist/infra/find-project-root.d.ts +11 -0
  990. package/node_modules/@campfirein/brv-transport-client/dist/infra/find-project-root.d.ts.map +1 -0
  991. package/node_modules/@campfirein/brv-transport-client/dist/infra/find-project-root.js +31 -0
  992. package/node_modules/@campfirein/brv-transport-client/dist/infra/find-project-root.js.map +1 -0
  993. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.d.ts +1 -0
  994. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.d.ts.map +1 -1
  995. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.js +4 -0
  996. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.js.map +1 -1
  997. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-data-path.d.ts +12 -0
  998. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-data-path.d.ts.map +1 -0
  999. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-data-path.js +38 -0
  1000. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-data-path.js.map +1 -0
  1001. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-instance-manager.d.ts +37 -0
  1002. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-instance-manager.d.ts.map +1 -0
  1003. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-instance-manager.js +100 -0
  1004. package/node_modules/@campfirein/brv-transport-client/dist/infra/global-instance-manager.js.map +1 -0
  1005. package/node_modules/@campfirein/brv-transport-client/dist/infra/heartbeat-utils.d.ts +12 -0
  1006. package/node_modules/@campfirein/brv-transport-client/dist/infra/heartbeat-utils.d.ts.map +1 -0
  1007. package/node_modules/@campfirein/brv-transport-client/dist/infra/heartbeat-utils.js +29 -0
  1008. package/node_modules/@campfirein/brv-transport-client/dist/infra/heartbeat-utils.js.map +1 -0
  1009. package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.d.ts.map +1 -1
  1010. package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.js.map +1 -1
  1011. package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.d.ts.map +1 -1
  1012. package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.js.map +1 -1
  1013. package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.d.ts.map +1 -1
  1014. package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.js.map +1 -1
  1015. package/node_modules/@campfirein/brv-transport-client/dist/infra/resolve-server-path.d.ts +12 -0
  1016. package/node_modules/@campfirein/brv-transport-client/dist/infra/resolve-server-path.d.ts.map +1 -0
  1017. package/node_modules/@campfirein/brv-transport-client/dist/infra/resolve-server-path.js +52 -0
  1018. package/node_modules/@campfirein/brv-transport-client/dist/infra/resolve-server-path.js.map +1 -0
  1019. package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.d.ts.map +1 -1
  1020. package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.js.map +1 -1
  1021. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.d.ts +2 -2
  1022. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.d.ts.map +1 -1
  1023. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.js +4 -2
  1024. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.js.map +1 -1
  1025. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts +65 -3
  1026. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts.map +1 -1
  1027. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js +44 -1
  1028. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js.map +1 -1
  1029. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.d.ts +11 -1
  1030. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.d.ts.map +1 -1
  1031. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.js.map +1 -1
  1032. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts +32 -61
  1033. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts.map +1 -1
  1034. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js +133 -37
  1035. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js.map +1 -1
  1036. package/node_modules/@campfirein/brv-transport-client/dist/infra/spawn-lock.d.ts +27 -0
  1037. package/node_modules/@campfirein/brv-transport-client/dist/infra/spawn-lock.d.ts.map +1 -0
  1038. package/node_modules/@campfirein/brv-transport-client/dist/infra/spawn-lock.js +124 -0
  1039. package/node_modules/@campfirein/brv-transport-client/dist/infra/spawn-lock.js.map +1 -0
  1040. package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.d.ts.map +1 -1
  1041. package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.js.map +1 -1
  1042. package/node_modules/@campfirein/brv-transport-client/dist/infra/wait-for-connected-client.d.ts +13 -0
  1043. package/node_modules/@campfirein/brv-transport-client/dist/infra/wait-for-connected-client.d.ts.map +1 -0
  1044. package/node_modules/@campfirein/brv-transport-client/dist/infra/wait-for-connected-client.js +33 -0
  1045. package/node_modules/@campfirein/brv-transport-client/dist/infra/wait-for-connected-client.js.map +1 -0
  1046. package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.d.ts.map +1 -1
  1047. package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.js.map +1 -1
  1048. package/node_modules/@campfirein/brv-transport-client/package.json +3 -12
  1049. package/oclif.manifest.json +1224 -180
  1050. package/package.json +47 -8
  1051. package/dist/agent/infra/llm/generators/openrouter-content-generator.d.ts +0 -94
  1052. package/dist/agent/infra/llm/generators/openrouter-content-generator.js +0 -280
  1053. package/dist/agent/infra/llm/internal-llm-service.d.ts +0 -362
  1054. package/dist/agent/infra/llm/internal-llm-service.js +0 -1039
  1055. package/dist/agent/infra/llm/openrouter-llm-service.d.ts +0 -215
  1056. package/dist/agent/infra/llm/openrouter-llm-service.js +0 -572
  1057. package/dist/agent/infra/llm/stream-processor.d.ts +0 -178
  1058. package/dist/agent/infra/llm/stream-processor.js +0 -350
  1059. package/dist/agent/infra/llm/transformers/openrouter-stream-transformer.d.ts +0 -49
  1060. package/dist/agent/infra/llm/transformers/openrouter-stream-transformer.js +0 -270
  1061. package/dist/agent/infra/tools/implementations/bash-exec-tool.d.ts +0 -13
  1062. package/dist/agent/infra/tools/implementations/bash-exec-tool.js +0 -110
  1063. package/dist/agent/infra/tools/implementations/bash-output-tool.d.ts +0 -12
  1064. package/dist/agent/infra/tools/implementations/bash-output-tool.js +0 -43
  1065. package/dist/agent/infra/tools/implementations/batch-tool.d.ts +0 -12
  1066. package/dist/agent/infra/tools/implementations/batch-tool.js +0 -142
  1067. package/dist/agent/infra/tools/implementations/create-knowledge-topic-tool.d.ts +0 -11
  1068. package/dist/agent/infra/tools/implementations/create-knowledge-topic-tool.js +0 -149
  1069. package/dist/agent/infra/tools/implementations/delete-memory-tool.d.ts +0 -12
  1070. package/dist/agent/infra/tools/implementations/delete-memory-tool.js +0 -37
  1071. package/dist/agent/infra/tools/implementations/edit-file-tool.d.ts +0 -13
  1072. package/dist/agent/infra/tools/implementations/edit-file-tool.js +0 -50
  1073. package/dist/agent/infra/tools/implementations/edit-memory-tool.d.ts +0 -13
  1074. package/dist/agent/infra/tools/implementations/edit-memory-tool.js +0 -53
  1075. package/dist/agent/infra/tools/implementations/kill-process-tool.d.ts +0 -12
  1076. package/dist/agent/infra/tools/implementations/kill-process-tool.js +0 -55
  1077. package/dist/agent/infra/tools/implementations/list-memories-tool.d.ts +0 -12
  1078. package/dist/agent/infra/tools/implementations/list-memories-tool.js +0 -63
  1079. package/dist/agent/infra/tools/implementations/read-memory-tool.d.ts +0 -12
  1080. package/dist/agent/infra/tools/implementations/read-memory-tool.js +0 -39
  1081. package/dist/agent/infra/tools/implementations/read-todos-tool.d.ts +0 -11
  1082. package/dist/agent/infra/tools/implementations/read-todos-tool.js +0 -39
  1083. package/dist/agent/infra/tools/implementations/search-history-tool.d.ts +0 -10
  1084. package/dist/agent/infra/tools/implementations/search-history-tool.js +0 -36
  1085. package/dist/agent/infra/tools/implementations/spec-analyze-tool.d.ts +0 -7
  1086. package/dist/agent/infra/tools/implementations/spec-analyze-tool.js +0 -78
  1087. package/dist/agent/infra/tools/implementations/write-memory-tool.d.ts +0 -13
  1088. package/dist/agent/infra/tools/implementations/write-memory-tool.js +0 -52
  1089. package/dist/agent/infra/tools/implementations/write-todos-tool.d.ts +0 -13
  1090. package/dist/agent/infra/tools/implementations/write-todos-tool.js +0 -121
  1091. package/dist/oclif/commands/curate.d.ts +0 -21
  1092. package/dist/oclif/commands/curate.js +0 -96
  1093. package/dist/oclif/commands/init.d.ts +0 -18
  1094. package/dist/oclif/commands/init.js +0 -129
  1095. package/dist/server/core/domain/entities/context-tree-index.d.ts +0 -26
  1096. package/dist/server/core/domain/entities/context-tree-index.js +0 -27
  1097. package/dist/server/core/domain/entities/event.d.ts +0 -8
  1098. package/dist/server/core/domain/entities/event.js +0 -25
  1099. package/dist/server/core/domain/errors/ace-error.d.ts +0 -34
  1100. package/dist/server/core/domain/errors/ace-error.js +0 -53
  1101. package/dist/server/core/domain/errors/brv-config-version-error.d.ts +0 -16
  1102. package/dist/server/core/domain/errors/brv-config-version-error.js +0 -21
  1103. package/dist/server/core/domain/errors/core-process-error.d.ts +0 -27
  1104. package/dist/server/core/domain/errors/core-process-error.js +0 -43
  1105. package/dist/server/core/domain/instance/index.d.ts +0 -1
  1106. package/dist/server/core/domain/instance/index.js +0 -1
  1107. package/dist/server/core/domain/instance/types.d.ts +0 -57
  1108. package/dist/server/core/domain/instance/types.js +0 -72
  1109. package/dist/server/core/interfaces/instance/i-instance-discovery.d.ts +0 -45
  1110. package/dist/server/core/interfaces/instance/i-instance-manager.d.ts +0 -58
  1111. package/dist/server/core/interfaces/instance/index.d.ts +0 -2
  1112. package/dist/server/core/interfaces/instance/index.js +0 -2
  1113. package/dist/server/core/interfaces/noop-implementations.d.ts +0 -53
  1114. package/dist/server/core/interfaces/noop-implementations.js +0 -62
  1115. package/dist/server/core/interfaces/services/i-tracking-service.d.ts +0 -21
  1116. package/dist/server/core/interfaces/usecase/i-connectors-use-case.d.ts +0 -3
  1117. package/dist/server/core/interfaces/usecase/i-curate-use-case.d.ts +0 -14
  1118. package/dist/server/core/interfaces/usecase/i-init-use-case.d.ts +0 -11
  1119. package/dist/server/core/interfaces/usecase/i-login-use-case.d.ts +0 -6
  1120. package/dist/server/core/interfaces/usecase/i-logout-use-case.d.ts +0 -5
  1121. package/dist/server/core/interfaces/usecase/i-pull-use-case.d.ts +0 -7
  1122. package/dist/server/core/interfaces/usecase/i-push-use-case.d.ts +0 -8
  1123. package/dist/server/core/interfaces/usecase/i-query-use-case.d.ts +0 -11
  1124. package/dist/server/core/interfaces/usecase/i-reset-use-case.d.ts +0 -6
  1125. package/dist/server/core/interfaces/usecase/i-space-list-use-case.d.ts +0 -3
  1126. package/dist/server/core/interfaces/usecase/i-space-switch-use-case.d.ts +0 -3
  1127. package/dist/server/core/interfaces/usecase/i-status-use-case.d.ts +0 -6
  1128. package/dist/server/infra/executor/task-processor.d.ts +0 -89
  1129. package/dist/server/infra/executor/task-processor.js +0 -133
  1130. package/dist/server/infra/instance/file-instance-discovery.d.ts +0 -31
  1131. package/dist/server/infra/instance/file-instance-discovery.js +0 -84
  1132. package/dist/server/infra/instance/file-instance-manager.d.ts +0 -46
  1133. package/dist/server/infra/instance/file-instance-manager.js +0 -123
  1134. package/dist/server/infra/instance/index.d.ts +0 -3
  1135. package/dist/server/infra/instance/index.js +0 -3
  1136. package/dist/server/infra/instance/process-utils.d.ts +0 -14
  1137. package/dist/server/infra/instance/process-utils.js +0 -39
  1138. package/dist/server/infra/process/agent-worker.d.ts +0 -20
  1139. package/dist/server/infra/process/agent-worker.js +0 -1392
  1140. package/dist/server/infra/process/inline-agent-executor.d.ts +0 -32
  1141. package/dist/server/infra/process/inline-agent-executor.js +0 -267
  1142. package/dist/server/infra/process/ipc-types.d.ts +0 -68
  1143. package/dist/server/infra/process/ipc-types.js +0 -12
  1144. package/dist/server/infra/process/parent-heartbeat.d.ts +0 -47
  1145. package/dist/server/infra/process/parent-heartbeat.js +0 -118
  1146. package/dist/server/infra/process/process-manager.d.ts +0 -242
  1147. package/dist/server/infra/process/process-manager.js +0 -765
  1148. package/dist/server/infra/process/task-queue-manager.d.ts +0 -125
  1149. package/dist/server/infra/process/task-queue-manager.js +0 -185
  1150. package/dist/server/infra/process/transport-worker.d.ts +0 -20
  1151. package/dist/server/infra/process/transport-worker.js +0 -196
  1152. package/dist/server/infra/storage/keychain-token-store.d.ts +0 -13
  1153. package/dist/server/infra/storage/keychain-token-store.js +0 -42
  1154. package/dist/server/infra/terminal/oclif-terminal.d.ts +0 -19
  1155. package/dist/server/infra/terminal/oclif-terminal.js +0 -60
  1156. package/dist/server/infra/terminal/repl-terminal.d.ts +0 -31
  1157. package/dist/server/infra/terminal/repl-terminal.js +0 -116
  1158. package/dist/server/infra/tracking/mixpanel-tracking-service.d.ts +0 -24
  1159. package/dist/server/infra/tracking/mixpanel-tracking-service.js +0 -49
  1160. package/dist/server/infra/transport/transport-factory.d.ts +0 -17
  1161. package/dist/server/infra/transport/transport-factory.js +0 -31
  1162. package/dist/server/infra/usecase/connectors-use-case.d.ts +0 -63
  1163. package/dist/server/infra/usecase/connectors-use-case.js +0 -234
  1164. package/dist/server/infra/usecase/curate-use-case.d.ts +0 -59
  1165. package/dist/server/infra/usecase/curate-use-case.js +0 -269
  1166. package/dist/server/infra/usecase/init-use-case.d.ts +0 -126
  1167. package/dist/server/infra/usecase/init-use-case.js +0 -538
  1168. package/dist/server/infra/usecase/login-use-case.d.ts +0 -30
  1169. package/dist/server/infra/usecase/login-use-case.js +0 -127
  1170. package/dist/server/infra/usecase/logout-use-case.d.ts +0 -19
  1171. package/dist/server/infra/usecase/logout-use-case.js +0 -48
  1172. package/dist/server/infra/usecase/pull-use-case.d.ts +0 -49
  1173. package/dist/server/infra/usecase/pull-use-case.js +0 -147
  1174. package/dist/server/infra/usecase/push-use-case.d.ts +0 -50
  1175. package/dist/server/infra/usecase/push-use-case.js +0 -191
  1176. package/dist/server/infra/usecase/query-use-case.d.ts +0 -73
  1177. package/dist/server/infra/usecase/query-use-case.js +0 -410
  1178. package/dist/server/infra/usecase/reset-use-case.d.ts +0 -21
  1179. package/dist/server/infra/usecase/reset-use-case.js +0 -60
  1180. package/dist/server/infra/usecase/space-list-use-case.d.ts +0 -27
  1181. package/dist/server/infra/usecase/space-list-use-case.js +0 -64
  1182. package/dist/server/infra/usecase/space-switch-use-case.d.ts +0 -26
  1183. package/dist/server/infra/usecase/space-switch-use-case.js +0 -110
  1184. package/dist/server/infra/usecase/status-use-case.d.ts +0 -75
  1185. package/dist/server/infra/usecase/status-use-case.js +0 -268
  1186. package/dist/server/templates/skill/TROUBLESHOOTING.md +0 -50
  1187. package/dist/server/templates/skill/WORKFLOWS.md +0 -229
  1188. package/dist/server/utils/environment-detector.d.ts +0 -20
  1189. package/dist/server/utils/environment-detector.js +0 -92
  1190. package/dist/tui/app.d.ts +0 -9
  1191. package/dist/tui/app.js +0 -28
  1192. package/dist/tui/commands/arg-parser.d.ts +0 -102
  1193. package/dist/tui/commands/connectors-command.d.ts +0 -8
  1194. package/dist/tui/commands/connectors-command.js +0 -49
  1195. package/dist/tui/commands/curate-command.d.ts +0 -9
  1196. package/dist/tui/commands/curate-command.js +0 -80
  1197. package/dist/tui/commands/index.d.ts +0 -8
  1198. package/dist/tui/commands/index.js +0 -45
  1199. package/dist/tui/commands/init-command.d.ts +0 -7
  1200. package/dist/tui/commands/init-command.js +0 -87
  1201. package/dist/tui/commands/login-command.d.ts +0 -7
  1202. package/dist/tui/commands/login-command.js +0 -50
  1203. package/dist/tui/commands/logout-command.d.ts +0 -5
  1204. package/dist/tui/commands/logout-command.js +0 -46
  1205. package/dist/tui/commands/model-command.d.ts +0 -13
  1206. package/dist/tui/commands/model-command.js +0 -212
  1207. package/dist/tui/commands/new-command.d.ts +0 -14
  1208. package/dist/tui/commands/new-command.js +0 -61
  1209. package/dist/tui/commands/provider-command.d.ts +0 -13
  1210. package/dist/tui/commands/provider-command.js +0 -181
  1211. package/dist/tui/commands/pull-command.d.ts +0 -5
  1212. package/dist/tui/commands/pull-command.js +0 -61
  1213. package/dist/tui/commands/push-command.d.ts +0 -5
  1214. package/dist/tui/commands/push-command.js +0 -66
  1215. package/dist/tui/commands/query-command.d.ts +0 -5
  1216. package/dist/tui/commands/query-command.js +0 -63
  1217. package/dist/tui/commands/reset-command.d.ts +0 -5
  1218. package/dist/tui/commands/reset-command.js +0 -61
  1219. package/dist/tui/commands/space/index.d.ts +0 -5
  1220. package/dist/tui/commands/space/index.js +0 -14
  1221. package/dist/tui/commands/space/list-command.d.ts +0 -5
  1222. package/dist/tui/commands/space/list-command.js +0 -70
  1223. package/dist/tui/commands/space/switch-command.d.ts +0 -5
  1224. package/dist/tui/commands/space/switch-command.js +0 -35
  1225. package/dist/tui/commands/status-command.d.ts +0 -5
  1226. package/dist/tui/commands/status-command.js +0 -39
  1227. package/dist/tui/components/api-key-dialog.d.ts +0 -39
  1228. package/dist/tui/components/api-key-dialog.js +0 -94
  1229. package/dist/tui/components/message-list.d.ts +0 -16
  1230. package/dist/tui/components/message-list.js +0 -120
  1231. package/dist/tui/components/model-dialog.d.ts +0 -63
  1232. package/dist/tui/components/model-dialog.js +0 -89
  1233. package/dist/tui/components/provider-dialog.d.ts +0 -27
  1234. package/dist/tui/components/provider-dialog.js +0 -31
  1235. package/dist/tui/components/tab-bar.d.ts +0 -11
  1236. package/dist/tui/components/tab-bar.js +0 -11
  1237. package/dist/tui/constants.d.ts +0 -6
  1238. package/dist/tui/constants.js +0 -8
  1239. package/dist/tui/contexts/auth-context.d.ts +0 -33
  1240. package/dist/tui/contexts/auth-context.js +0 -193
  1241. package/dist/tui/contexts/commands-context.d.ts +0 -37
  1242. package/dist/tui/contexts/commands-context.js +0 -65
  1243. package/dist/tui/contexts/index.d.ts +0 -11
  1244. package/dist/tui/contexts/index.js +0 -11
  1245. package/dist/tui/contexts/mode-context.d.ts +0 -43
  1246. package/dist/tui/contexts/mode-context.js +0 -70
  1247. package/dist/tui/contexts/onboarding-context.d.ts +0 -49
  1248. package/dist/tui/contexts/onboarding-context.js +0 -193
  1249. package/dist/tui/contexts/services-context.d.ts +0 -32
  1250. package/dist/tui/contexts/services-context.js +0 -27
  1251. package/dist/tui/contexts/tasks-context.d.ts +0 -101
  1252. package/dist/tui/contexts/tasks-context.js +0 -422
  1253. package/dist/tui/contexts/theme-context.d.ts +0 -55
  1254. package/dist/tui/contexts/theme-context.js +0 -62
  1255. package/dist/tui/contexts/transport-context.d.ts +0 -29
  1256. package/dist/tui/contexts/transport-context.js +0 -81
  1257. package/dist/tui/hooks/use-activity-logs.d.ts +0 -18
  1258. package/dist/tui/hooks/use-activity-logs.js +0 -207
  1259. package/dist/tui/hooks/use-auth-polling.d.ts +0 -27
  1260. package/dist/tui/hooks/use-auth-polling.js +0 -118
  1261. package/dist/tui/hooks/use-onboarding-logs.d.ts +0 -17
  1262. package/dist/tui/hooks/use-onboarding-logs.js +0 -26
  1263. package/dist/tui/hooks/use-onboarding.d.ts +0 -7
  1264. package/dist/tui/hooks/use-onboarding.js +0 -6
  1265. package/dist/tui/hooks/use-slash-command-processor.d.ts +0 -16
  1266. package/dist/tui/hooks/use-slash-command-processor.js +0 -132
  1267. package/dist/tui/hooks/use-slash-completion.d.ts +0 -30
  1268. package/dist/tui/hooks/use-slash-completion.js +0 -230
  1269. package/dist/tui/index.d.ts +0 -1
  1270. package/dist/tui/index.js +0 -1
  1271. package/dist/tui/types.d.ts +0 -1
  1272. package/dist/tui/types.js +0 -1
  1273. package/dist/tui/utils/transport-client-helper.d.ts +0 -9
  1274. package/dist/tui/utils/transport-client-helper.js +0 -99
  1275. package/dist/tui/views/index.d.ts +0 -5
  1276. package/dist/tui/views/index.js +0 -5
  1277. package/dist/tui/views/init-view.d.ts +0 -15
  1278. package/dist/tui/views/init-view.js +0 -41
  1279. package/dist/tui/views/login-view.d.ts +0 -10
  1280. package/dist/tui/views/login-view.js +0 -33
  1281. package/dist/tui/views/main-view.d.ts +0 -12
  1282. package/dist/tui/views/main-view.js +0 -20
  1283. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.d.ts +0 -19
  1284. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.d.ts.map +0 -1
  1285. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.js +0 -2
  1286. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.js.map +0 -1
  1287. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.d.ts +0 -32
  1288. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.d.ts.map +0 -1
  1289. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.js +0 -85
  1290. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.js.map +0 -1
  1291. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.d.ts +0 -16
  1292. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.d.ts.map +0 -1
  1293. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.js +0 -47
  1294. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.js.map +0 -1
  1295. /package/dist/{server/core/interfaces/instance/i-instance-discovery.js → agent/infra/agent/provider-update-config.js} +0 -0
  1296. /package/dist/server/core/{interfaces/instance/i-instance-manager.js → domain/entities/curate-log-entry.js} +0 -0
  1297. /package/dist/server/core/{interfaces/services/i-tracking-service.js → domain/entities/curation-status.js} +0 -0
  1298. /package/dist/server/core/{interfaces/usecase/i-connectors-use-case.js → domain/transport/task-info.js} +0 -0
  1299. /package/dist/server/core/interfaces/{usecase/i-curate-use-case.js → agent/i-agent-pool.js} +0 -0
  1300. /package/dist/server/core/interfaces/{usecase/i-init-use-case.js → client/i-client-manager.js} +0 -0
  1301. /package/dist/server/core/interfaces/{usecase/i-login-use-case.js → context-tree/i-context-tree-merger.js} +0 -0
  1302. /package/dist/server/core/interfaces/{usecase/i-logout-use-case.js → daemon/i-agent-idle-timeout-policy.js} +0 -0
  1303. /package/dist/server/core/interfaces/{usecase/i-pull-use-case.js → daemon/i-daemon-resilience.js} +0 -0
  1304. /package/dist/server/core/interfaces/{usecase/i-push-use-case.js → daemon/i-heartbeat-writer.js} +0 -0
  1305. /package/dist/server/core/interfaces/{usecase/i-query-use-case.js → daemon/i-idle-timeout-policy.js} +0 -0
  1306. /package/dist/server/core/interfaces/{usecase/i-reset-use-case.js → daemon/i-shutdown-handler.js} +0 -0
  1307. /package/dist/server/core/interfaces/{usecase/i-space-list-use-case.js → hub/i-hub-install-service.js} +0 -0
  1308. /package/dist/server/core/interfaces/{usecase/i-space-switch-use-case.js → hub/i-hub-keychain-store.js} +0 -0
  1309. /package/dist/server/core/interfaces/{usecase/i-status-use-case.js → hub/i-hub-registry-config-store.js} +0 -0
  1310. /package/dist/tui/{commands → features/commands/utils}/arg-parser.js +0 -0
@@ -6,7 +6,7 @@
6
6
  import { z } from 'zod';
7
7
  import { ErrorScope, ErrorType, LLMErrorCode } from './error-codes.js';
8
8
  import { acceptsAnyModel, getMaxInputTokensForModel, getSupportedModels, isValidProviderModel } from './registry.js';
9
- import { LLM_PROVIDERS } from './types.js';
9
+ import { PROVIDER_TYPES } from './types.js';
10
10
  /**
11
11
  * Default-free field definitions for LLM configuration.
12
12
  * Used to build both the full config schema (with defaults) and the updates schema (no defaults).
@@ -34,8 +34,8 @@ const LLMConfigFields = {
34
34
  .min(1, 'Model name is required')
35
35
  .describe('Specific model name for the selected provider'),
36
36
  provider: z
37
- .enum(LLM_PROVIDERS)
38
- .describe("LLM provider (e.g., 'claude', 'gemini', 'openrouter')"),
37
+ .enum(PROVIDER_TYPES)
38
+ .describe("LLM provider type (e.g., 'claude', 'gemini', 'openai')"),
39
39
  temperature: z.coerce
40
40
  .number()
41
41
  .min(0)
@@ -4,13 +4,23 @@
4
4
  * This module defines the core types for LLM provider abstraction,
5
5
  */
6
6
  /**
7
- * Supported LLM providers as a const array for runtime validation.
7
+ * Provider types for formatter/tokenizer selection.
8
+ * These represent the underlying API format, NOT provider IDs.
9
+ * e.g., OpenRouter, xAI, Groq, Mistral all use 'openai' format.
8
10
  */
9
- export declare const LLM_PROVIDERS: readonly ["claude", "gemini", "openrouter"];
11
+ export declare const PROVIDER_TYPES: readonly ["claude", "gemini", "openai"];
10
12
  /**
11
- * Union type of all supported LLM providers.
13
+ * Union type of provider types.
12
14
  */
13
- export type LLMProvider = (typeof LLM_PROVIDERS)[number];
15
+ export type ProviderType = (typeof PROVIDER_TYPES)[number];
16
+ /**
17
+ * @deprecated Use PROVIDER_TYPES instead. Kept for backward compatibility.
18
+ */
19
+ export declare const LLM_PROVIDERS: readonly ["claude", "gemini", "openai"];
20
+ /**
21
+ * @deprecated Use ProviderType instead. Kept for backward compatibility.
22
+ */
23
+ export type LLMProvider = ProviderType;
14
24
  /**
15
25
  * Supported file types for multimodal input.
16
26
  */
@@ -84,7 +94,7 @@ export interface LLMContext {
84
94
  /** Current model name */
85
95
  model: string;
86
96
  /** Current provider */
87
- provider: LLMProvider;
97
+ provider: ProviderType;
88
98
  }
89
99
  /**
90
100
  * Token usage statistics.
@@ -4,9 +4,15 @@
4
4
  * This module defines the core types for LLM provider abstraction,
5
5
  */
6
6
  /**
7
- * Supported LLM providers as a const array for runtime validation.
7
+ * Provider types for formatter/tokenizer selection.
8
+ * These represent the underlying API format, NOT provider IDs.
9
+ * e.g., OpenRouter, xAI, Groq, Mistral all use 'openai' format.
8
10
  */
9
- export const LLM_PROVIDERS = ['claude', 'gemini', 'openrouter'];
11
+ export const PROVIDER_TYPES = ['claude', 'gemini', 'openai'];
12
+ /**
13
+ * @deprecated Use PROVIDER_TYPES instead. Kept for backward compatibility.
14
+ */
15
+ export const LLM_PROVIDERS = PROVIDER_TYPES;
10
16
  /**
11
17
  * Supported file types for multimodal input.
12
18
  */
@@ -6,8 +6,12 @@
6
6
  * Result of code execution in the sandbox.
7
7
  */
8
8
  export interface REPLResult {
9
+ /** Accumulated curate() call results from within sandbox execution */
10
+ curateResults?: unknown[];
9
11
  /** Execution time in milliseconds */
10
12
  executionTime: number;
13
+ /** If set by setFinalResult(), signals early termination of the agentic loop */
14
+ finalResult?: string;
11
15
  /** Current context state (variable names to values) */
12
16
  locals: Record<string, unknown>;
13
17
  /** Return value of the last expression (if any) */
@@ -25,6 +29,8 @@ export interface SandboxConfig {
25
29
  contextPayload?: Record<string, unknown> | string | unknown[];
26
30
  /** Language: 'javascript' or 'typescript' (default: auto-detect) */
27
31
  language?: 'javascript' | 'typescript';
32
+ /** Cap stdout buffer at this many characters. undefined = unlimited. */
33
+ maxStdoutChars?: number;
28
34
  /** Timeout in ms (default: 30000, max: 300000) */
29
35
  timeout?: number;
30
36
  }
@@ -2,7 +2,7 @@
2
2
  * Session Metadata Types and Schemas
3
3
  *
4
4
  * Defines the data structures for persistent session management.
5
- * Sessions are stored in .brv/sessions/ directory as JSON files.
5
+ * Sessions are stored in the XDG sessions directory as JSON files.
6
6
  *
7
7
  * Design adapted from gemini-cli's ChatRecordingService pattern.
8
8
  */
@@ -12,7 +12,7 @@ import { z } from 'zod';
12
12
  */
13
13
  export type SessionStatus = 'active' | 'ended' | 'interrupted';
14
14
  /**
15
- * Active session pointer stored in .brv/sessions/active.json
15
+ * Active session pointer stored in active.json within sessions directory
16
16
  * Points to the currently active session for auto-resume.
17
17
  */
18
18
  export interface ActiveSessionPointer {
@@ -41,6 +41,8 @@ export interface SessionMetadata {
41
41
  lastUpdated: string;
42
42
  /** Number of messages in session (cached for quick display) */
43
43
  messageCount: number;
44
+ /** Provider ID active when session was created (for cross-provider resume detection) */
45
+ providerId?: string;
44
46
  /** Unique session identifier (UUID) */
45
47
  sessionId: string;
46
48
  /** Session lifecycle status */
@@ -104,6 +106,7 @@ export declare const SessionMetadataSchema: z.ZodObject<{
104
106
  createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
105
107
  lastUpdated: z.ZodUnion<[z.ZodString, z.ZodString]>;
106
108
  messageCount: z.ZodNumber;
109
+ providerId: z.ZodOptional<z.ZodString>;
107
110
  sessionId: z.ZodString;
108
111
  status: z.ZodEnum<["active", "ended", "interrupted"]>;
109
112
  summary: z.ZodOptional<z.ZodString>;
@@ -116,6 +119,7 @@ export declare const SessionMetadataSchema: z.ZodObject<{
116
119
  lastUpdated: string;
117
120
  messageCount: number;
118
121
  workingDirectory: string;
122
+ providerId?: string | undefined;
119
123
  summary?: string | undefined;
120
124
  title?: string | undefined;
121
125
  }, {
@@ -125,6 +129,7 @@ export declare const SessionMetadataSchema: z.ZodObject<{
125
129
  lastUpdated: string;
126
130
  messageCount: number;
127
131
  workingDirectory: string;
132
+ providerId?: string | undefined;
128
133
  summary?: string | undefined;
129
134
  title?: string | undefined;
130
135
  }>;
@@ -2,7 +2,7 @@
2
2
  * Session Metadata Types and Schemas
3
3
  *
4
4
  * Defines the data structures for persistent session management.
5
- * Sessions are stored in .brv/sessions/ directory as JSON files.
5
+ * Sessions are stored in the XDG sessions directory as JSON files.
6
6
  *
7
7
  * Design adapted from gemini-cli's ChatRecordingService pattern.
8
8
  */
@@ -14,7 +14,10 @@ import { z } from 'zod';
14
14
  * Schema for ActiveSessionPointer validation.
15
15
  */
16
16
  export const ActiveSessionPointerSchema = z.object({
17
- activatedAt: z.string().datetime({ offset: true }).or(z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)),
17
+ activatedAt: z
18
+ .string()
19
+ .datetime({ offset: true })
20
+ .or(z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)),
18
21
  pid: z.number().int().positive(),
19
22
  // Optional for backward compatibility with existing session files (treated as stale if missing)
20
23
  processToken: z.string().optional(),
@@ -24,9 +27,16 @@ export const ActiveSessionPointerSchema = z.object({
24
27
  * Schema for SessionMetadata validation.
25
28
  */
26
29
  export const SessionMetadataSchema = z.object({
27
- createdAt: z.string().datetime({ offset: true }).or(z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)),
28
- lastUpdated: z.string().datetime({ offset: true }).or(z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)),
30
+ createdAt: z
31
+ .string()
32
+ .datetime({ offset: true })
33
+ .or(z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)),
34
+ lastUpdated: z
35
+ .string()
36
+ .datetime({ offset: true })
37
+ .or(z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)),
29
38
  messageCount: z.number().int().nonnegative(),
39
+ providerId: z.string().optional(),
30
40
  sessionId: z.string().min(1),
31
41
  status: z.enum(['active', 'ended', 'interrupted']),
32
42
  summary: z.string().optional(),
@@ -89,6 +89,8 @@ export type StreamingEvent = {
89
89
  export interface StreamOptions {
90
90
  /** Execution context */
91
91
  executionContext?: ExecutionContext;
92
+ /** Session ID override — uses default session if not provided (for per-task session isolation) */
93
+ sessionId?: string;
92
94
  /** AbortSignal for cancellation */
93
95
  signal?: AbortSignal;
94
96
  /** Task ID for concurrent task isolation (included in all emitted events) */
@@ -3,29 +3,14 @@
3
3
  * These constants ensure type safety and prevent typos.
4
4
  */
5
5
  export declare const ToolName: {
6
- readonly BASH_EXEC: 'bash_exec';
7
- readonly BASH_OUTPUT: 'bash_output';
8
- readonly BATCH: 'batch';
9
6
  readonly CODE_EXEC: 'code_exec';
10
- readonly CREATE_KNOWLEDGE_TOPIC: 'create_knowledge_topic';
11
7
  readonly CURATE: 'curate';
12
- readonly DELETE_MEMORY: 'delete_memory';
13
- readonly EDIT_FILE: 'edit_file';
14
- readonly EDIT_MEMORY: 'edit_memory';
15
8
  readonly GLOB_FILES: 'glob_files';
16
9
  readonly GREP_CONTENT: 'grep_content';
17
- readonly KILL_PROCESS: 'kill_process';
18
10
  readonly LIST_DIRECTORY: 'list_directory';
19
- readonly LIST_MEMORIES: 'list_memories';
20
11
  readonly READ_FILE: 'read_file';
21
- readonly READ_MEMORY: 'read_memory';
22
- readonly READ_TODOS: 'read_todos';
23
- readonly SEARCH_HISTORY: 'search_history';
24
12
  readonly SEARCH_KNOWLEDGE: 'search_knowledge';
25
- readonly SPEC_ANALYZE: 'spec_analyze';
26
13
  readonly WRITE_FILE: 'write_file';
27
- readonly WRITE_MEMORY: 'write_memory';
28
- readonly WRITE_TODOS: 'write_todos';
29
14
  };
30
15
  /**
31
16
  * Union type of all known tool names.
@@ -3,27 +3,12 @@
3
3
  * These constants ensure type safety and prevent typos.
4
4
  */
5
5
  export const ToolName = {
6
- BASH_EXEC: 'bash_exec',
7
- BASH_OUTPUT: 'bash_output',
8
- BATCH: 'batch',
9
6
  CODE_EXEC: 'code_exec',
10
- CREATE_KNOWLEDGE_TOPIC: 'create_knowledge_topic',
11
7
  CURATE: 'curate',
12
- DELETE_MEMORY: 'delete_memory',
13
- EDIT_FILE: 'edit_file',
14
- EDIT_MEMORY: 'edit_memory',
15
8
  GLOB_FILES: 'glob_files',
16
9
  GREP_CONTENT: 'grep_content',
17
- KILL_PROCESS: 'kill_process',
18
10
  LIST_DIRECTORY: 'list_directory',
19
- LIST_MEMORIES: 'list_memories',
20
11
  READ_FILE: 'read_file',
21
- READ_MEMORY: 'read_memory',
22
- READ_TODOS: 'read_todos',
23
- SEARCH_HISTORY: 'search_history',
24
12
  SEARCH_KNOWLEDGE: 'search_knowledge',
25
- SPEC_ANALYZE: 'spec_analyze',
26
13
  WRITE_FILE: 'write_file',
27
- WRITE_MEMORY: 'write_memory',
28
- WRITE_TODOS: 'write_todos',
29
14
  };
@@ -82,6 +82,8 @@ export interface Tool {
82
82
  * Contains metadata about the execution environment.
83
83
  */
84
84
  export interface ToolExecutionContext {
85
+ /** Command type for context-aware tool behavior (e.g., 'curate', 'query') */
86
+ commandType?: string;
85
87
  /**
86
88
  * Callback for streaming metadata updates during execution.
87
89
  * Tools can use this to push real-time output (e.g., bash streaming).
@@ -48,7 +48,7 @@ export interface IChatSession {
48
48
  * Reset the conversation history.
49
49
  * Clears all messages except the system prompt (if present).
50
50
  */
51
- reset(): void;
51
+ reset(): Promise<void>;
52
52
  /**
53
53
  * Send a message and get a response.
54
54
  * Handles tool execution loop automatically.
@@ -7,6 +7,8 @@ import type { ConversationMetadata } from '../domain/system-prompt/types.js';
7
7
  * Contains runtime information about how the agent is being executed
8
8
  */
9
9
  export interface ExecutionContext {
10
+ /** Clear conversation history before execution (RLM mode — prevents accumulation across calls) */
11
+ clearHistory?: boolean;
10
12
  /** Command type that initiated the execution (for command-specific prompt loading) */
11
13
  commandType?: 'chat' | 'curate' | 'query';
12
14
  /** Metadata about the conversation (for JSON input mode) */
@@ -15,6 +17,12 @@ export interface ExecutionContext {
15
17
  fileReferenceInstructions?: string;
16
18
  /** Whether running in JSON input mode (headless with conversation history) */
17
19
  isJsonInputMode?: boolean;
20
+ /** Override maxIterations for this execution (e.g., 2 for queries with pre-fetched context) */
21
+ maxIterations?: number;
22
+ /** Override maxTokens for this execution (e.g., 1024 for queries) */
23
+ maxTokens?: number;
24
+ /** Override temperature for this execution (e.g., 0.3 for factual queries) */
25
+ temperature?: number;
18
26
  }
19
27
  /**
20
28
  * Agent execution state (string union for external consumers).
@@ -56,12 +64,41 @@ export interface ICipherAgent {
56
64
  * @returns true if a run was in progress and was signaled to abort; false otherwise
57
65
  */
58
66
  cancel(): Promise<boolean>;
67
+ /**
68
+ * Create a task-scoped child session for parallel execution.
69
+ * The session gets its own sandbox, context manager, and LLM service.
70
+ *
71
+ * @param taskId - Unique task identifier (used as part of session ID)
72
+ * @param commandType - Command type for agent name tracking ('curate' | 'query')
73
+ * @returns Session ID of the created task session
74
+ */
75
+ createTaskSession(taskId: string, commandType: string): Promise<string>;
76
+ /**
77
+ * Delete a sandbox variable from the agent's default session.
78
+ *
79
+ * @param key - Variable name to delete
80
+ */
81
+ deleteSandboxVariable(key: string): void;
82
+ /**
83
+ * Delete a sandbox variable from a specific session's sandbox.
84
+ *
85
+ * @param sessionId - Target session
86
+ * @param key - Variable name to delete
87
+ */
88
+ deleteSandboxVariableOnSession(sessionId: string, key: string): void;
59
89
  /**
60
90
  * Delete a session completely (memory + history)
61
91
  * @param sessionId - Session ID to delete
62
92
  * @returns True if session existed and was deleted
63
93
  */
64
94
  deleteSession(sessionId: string): Promise<boolean>;
95
+ /**
96
+ * Delete a task session and all its resources (sandbox + history).
97
+ * Use this for cleanup after per-task session execution.
98
+ *
99
+ * @param sessionId - Task session ID to delete
100
+ */
101
+ deleteTaskSession(sessionId: string): Promise<void>;
65
102
  /**
66
103
  * Execute the agent with user input.
67
104
  * Uses the agent's default session (created during start()).
@@ -76,6 +113,19 @@ export interface ICipherAgent {
76
113
  executionContext?: ExecutionContext;
77
114
  taskId?: string;
78
115
  }): Promise<string>;
116
+ /**
117
+ * Execute the agent on a specific session (not the default session).
118
+ * Used for per-task session isolation in parallel execution.
119
+ *
120
+ * @param sessionId - Session to execute on
121
+ * @param input - User input string
122
+ * @param options - Optional execution options
123
+ * @returns Agent response
124
+ */
125
+ executeOnSession(sessionId: string, input: string, options?: {
126
+ executionContext?: ExecutionContext;
127
+ taskId?: string;
128
+ }): Promise<string>;
79
129
  /**
80
130
  * Generate a complete response (waits for full completion).
81
131
  * Wrapper around stream() that collects all events and returns final result.
@@ -107,6 +157,24 @@ export interface ICipherAgent {
107
157
  * Clears execution history and resets iteration counter
108
158
  */
109
159
  reset(): void;
160
+ /**
161
+ * Set a variable in the agent's default session sandbox.
162
+ * If the sandbox doesn't exist yet, the variable is buffered and injected
163
+ * when the sandbox is created on the first code execution.
164
+ *
165
+ * @param key - Variable name
166
+ * @param value - Variable value
167
+ */
168
+ setSandboxVariable(key: string, value: unknown): void;
169
+ /**
170
+ * Set a variable in a specific session's sandbox.
171
+ * Used for per-task session isolation in parallel execution.
172
+ *
173
+ * @param sessionId - Target session
174
+ * @param key - Variable name
175
+ * @param value - Variable value
176
+ */
177
+ setSandboxVariableOnSession(sessionId: string, key: string, value: unknown): void;
110
178
  /**
111
179
  * Start the agent - initializes all services asynchronously
112
180
  * Must be called before execute()
@@ -6,12 +6,20 @@
6
6
  * Raw concept metadata for a knowledge topic.
7
7
  */
8
8
  export interface CurateRawConcept {
9
- /** What changes in the codebase are induced by this concept */
9
+ /** Author or source attribution */
10
+ author?: string;
11
+ /** Changes, updates, or modifications relevant to this concept (code changes, process updates, market shifts, etc.) */
10
12
  changes?: string[];
11
- /** Which files are related to this concept */
13
+ /** Related resources: source files, documents, URLs, data sources, or references */
12
14
  files?: string[];
13
- /** What is the flow included in this concept */
15
+ /** Process flow, workflow, or sequence of steps */
14
16
  flow?: string;
17
+ /** Regex or validation patterns with descriptions */
18
+ patterns?: Array<{
19
+ description: string;
20
+ flags?: string;
21
+ pattern: string;
22
+ }>;
15
23
  /** What is the task related to this concept */
16
24
  task?: string;
17
25
  /** When the concept was created or modified (ISO 8601 format) */
@@ -21,17 +29,36 @@ export interface CurateRawConcept {
21
29
  * Narrative section for descriptive and structural context.
22
30
  */
23
31
  export interface CurateNarrative {
24
- /** Dependency management information */
32
+ /** Dependencies, prerequisites, blockers, or relationship information */
25
33
  dependencies?: string;
26
- /** Feature documentation for this concept */
27
- features?: string;
28
- /** Code structure documentation */
34
+ /** Concrete examples, use cases, or action items */
35
+ examples?: string;
36
+ /** Key highlights, capabilities, deliverables, or notable outcomes */
37
+ highlights?: string;
38
+ /** Exact rules, constraints, or guidelines - preserved verbatim */
39
+ rules?: string;
40
+ /** Structural or organizational documentation (hierarchies, layouts, timelines, schemas) */
29
41
  structure?: string;
30
42
  }
43
+ /**
44
+ * A factual statement extracted during curation.
45
+ */
46
+ export interface CurateFact {
47
+ /** Category of the fact */
48
+ category?: 'convention' | 'environment' | 'other' | 'personal' | 'preference' | 'project' | 'team';
49
+ /** The full factual statement */
50
+ statement: string;
51
+ /** What the fact is about (e.g., "user_name", "database") */
52
+ subject?: string;
53
+ /** The extracted value (e.g., "Andy", "PostgreSQL 15") */
54
+ value?: string;
55
+ }
31
56
  /**
32
57
  * Content structure for ADD and UPDATE operations.
33
58
  */
34
59
  export interface CurateContent {
60
+ /** Factual statements extracted from content */
61
+ facts?: CurateFact[];
35
62
  /** Narrative section with descriptive and structural context */
36
63
  narrative?: CurateNarrative;
37
64
  /** Raw concept section with metadata and technical footprint */
@@ -7,6 +7,14 @@ import type { InternalMessage } from './message-types.js';
7
7
  * to persist and restore conversation history across sessions.
8
8
  */
9
9
  export interface IHistoryStorage {
10
+ /**
11
+ * Append a single message to the session history.
12
+ * More efficient than saveHistory for incremental updates.
13
+ *
14
+ * @param sessionId - Unique session identifier
15
+ * @param message - Single message to append
16
+ */
17
+ appendMessage(sessionId: string, message: InternalMessage): Promise<void>;
10
18
  /**
11
19
  * Delete all history for a specific session.
12
20
  *
@@ -71,6 +71,17 @@ export interface IKeyStorage {
71
71
  * @returns Array of matching full keys
72
72
  */
73
73
  list(prefix: StorageKey): Promise<StorageKey[]>;
74
+ /**
75
+ * List all key-value pairs matching a prefix.
76
+ * More efficient than list() followed by individual get() calls.
77
+ *
78
+ * @param prefix - Key prefix to match
79
+ * @returns Array of key-value pairs
80
+ */
81
+ listWithValues<T>(prefix: StorageKey): Promise<Array<{
82
+ key: StorageKey;
83
+ value: T;
84
+ }>>;
74
85
  /**
75
86
  * Set a value at a composite key.
76
87
  * Creates or overwrites the value at the key.
@@ -1,5 +1,5 @@
1
+ import type { LLMServiceConfig } from '../../infra/llm/agent-llm-service.js';
1
2
  import type { ContextManager, FileData, ImageData } from '../../infra/llm/context/context-manager.js';
2
- import type { LLMServiceConfig } from '../../infra/llm/internal-llm-service.js';
3
3
  import type { ToolSet } from '../domain/tools/types.js';
4
4
  import type { ExecutionContext } from './i-cipher-agent.js';
5
5
  /**
@@ -1,4 +1,5 @@
1
1
  import type { ISearchKnowledgeService } from '../../infra/sandbox/tools-sdk.js';
2
+ import type { SessionManager } from '../../infra/session/session-manager.js';
2
3
  import type { EnvironmentContext } from '../domain/environment/types.js';
3
4
  import type { REPLResult, SandboxConfig } from '../domain/sandbox/types.js';
4
5
  import type { ICurateService } from './i-curate-service.js';
@@ -18,6 +19,14 @@ export interface ISandboxService {
18
19
  * @param sessionId - Session identifier
19
20
  */
20
21
  clearSession(sessionId: string): Promise<void>;
22
+ /**
23
+ * Delete a variable from a session's sandbox.
24
+ * If the sandbox doesn't exist yet, cleans up any pending variable with that key.
25
+ *
26
+ * @param sessionId - Session identifier
27
+ * @param key - Variable name to delete
28
+ */
29
+ deleteSandboxVariable(sessionId: string, key: string): void;
21
30
  /**
22
31
  * Execute JavaScript/TypeScript code in a sandbox.
23
32
  *
@@ -48,6 +57,16 @@ export interface ISandboxService {
48
57
  * @param fileSystem - File system service instance
49
58
  */
50
59
  setFileSystem?(fileSystem: IFileSystem): void;
60
+ /**
61
+ * Set a variable in a session's sandbox.
62
+ * If the sandbox doesn't exist yet, the variable is buffered and injected
63
+ * when the sandbox is created on the first executeCode() call.
64
+ *
65
+ * @param sessionId - Session identifier
66
+ * @param key - Variable name
67
+ * @param value - Variable value (must be JSON-serializable or a plain object)
68
+ */
69
+ setSandboxVariable(sessionId: string, key: string, value: unknown): void;
51
70
  /**
52
71
  * Set the search knowledge service for Tools SDK injection.
53
72
  * When set, sandboxes will have access to knowledge search via `tools.searchKnowledge()`.
@@ -55,4 +74,11 @@ export interface ISandboxService {
55
74
  * @param searchKnowledgeService - Search knowledge service instance
56
75
  */
57
76
  setSearchKnowledgeService?(searchKnowledgeService: ISearchKnowledgeService): void;
77
+ /**
78
+ * Set the session manager for sub-agent delegation.
79
+ * When set, sandboxes will have access to `tools.agentQuery()`.
80
+ *
81
+ * @param sessionManager - Session manager instance
82
+ */
83
+ setSessionManager?(sessionManager: SessionManager): void;
58
84
  }
@@ -2,7 +2,7 @@
2
2
  * Interface for Session Persistence Operations
3
3
  *
4
4
  * Defines the contract for session metadata storage and retrieval.
5
- * Implementation uses JSON files in .brv/sessions/ directory.
5
+ * Implementation uses JSON files in the XDG sessions directory.
6
6
  */
7
7
  import type { ActiveSessionPointer, SessionInfo, SessionMetadata } from '../domain/session/session-metadata.js';
8
8
  /**
@@ -32,7 +32,7 @@ export interface SessionCleanupResult {
32
32
  /**
33
33
  * Interface for session metadata persistence.
34
34
  *
35
- * Manages session metadata stored in .brv/sessions/ directory:
35
+ * Manages session metadata stored in the XDG sessions directory:
36
36
  * - active.json: Current active session pointer
37
37
  * - session-*.json: Individual session metadata files
38
38
  */
@@ -44,18 +44,6 @@ export interface ISessionPersistence {
44
44
  * @returns Cleanup result with counts
45
45
  */
46
46
  cleanupSessions(config: SessionRetentionConfig): Promise<SessionCleanupResult>;
47
- /**
48
- * Clear the active session pointer.
49
- * Removes .brv/sessions/active.json
50
- */
51
- clearActiveSession(): Promise<void>;
52
- /**
53
- * Delete a session and its metadata.
54
- *
55
- * @param sessionId - Session ID to delete
56
- * @returns True if session was deleted, false if not found
57
- */
58
- deleteSession(sessionId: string): Promise<boolean>;
59
47
  /**
60
48
  * Get the currently active session pointer.
61
49
  *
@@ -88,13 +76,6 @@ export interface ISessionPersistence {
88
76
  * @returns Array of session info sorted by lastUpdated (newest first)
89
77
  */
90
78
  listSessions(): Promise<SessionInfo[]>;
91
- /**
92
- * Mark a session as ended.
93
- * Updates the session status to 'ended' and lastUpdated timestamp.
94
- *
95
- * @param sessionId - Session ID to mark as ended
96
- */
97
- markSessionEnded(sessionId: string): Promise<void>;
98
79
  /**
99
80
  * Mark a session as interrupted (e.g., process crashed).
100
81
  * Updates the session status to 'interrupted'.
@@ -111,23 +92,9 @@ export interface ISessionPersistence {
111
92
  saveSession(metadata: SessionMetadata): Promise<void>;
112
93
  /**
113
94
  * Set the active session pointer.
114
- * Creates or updates .brv/sessions/active.json
95
+ * Creates or updates active.json in sessions directory
115
96
  *
116
97
  * @param sessionId - Session ID to set as active
117
98
  */
118
99
  setActiveSession(sessionId: string): Promise<void>;
119
- /**
120
- * Set session title from first user message.
121
- *
122
- * @param sessionId - Session ID to update
123
- * @param title - Session title
124
- */
125
- setSessionTitle(sessionId: string, title: string): Promise<void>;
126
- /**
127
- * Update session activity (lastUpdated timestamp and message count).
128
- *
129
- * @param sessionId - Session ID to update
130
- * @param messageCount - Current message count
131
- */
132
- updateSessionActivity(sessionId: string, messageCount: number): Promise<void>;
133
100
  }
@@ -2,6 +2,6 @@
2
2
  * Interface for Session Persistence Operations
3
3
  *
4
4
  * Defines the contract for session metadata storage and retrieval.
5
- * Implementation uses JSON files in .brv/sessions/ directory.
5
+ * Implementation uses JSON files in the XDG sessions directory.
6
6
  */
7
7
  export {};