byterover-cli 1.6.0 → 1.7.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 (1520) hide show
  1. package/README.md +10 -10
  2. package/dist/agent/core/domain/agent/agent-registry.d.ts +90 -0
  3. package/dist/agent/core/domain/agent/agent-registry.js +152 -0
  4. package/dist/agent/core/domain/environment/types.d.ts +20 -0
  5. package/dist/agent/core/domain/folder-pack/index.d.ts +1 -0
  6. package/dist/agent/core/domain/folder-pack/types.d.ts +101 -0
  7. package/dist/agent/core/domain/sandbox/constants.d.ts +27 -0
  8. package/dist/agent/core/domain/sandbox/constants.js +134 -0
  9. package/dist/agent/core/domain/sandbox/index.d.ts +2 -0
  10. package/dist/agent/core/domain/sandbox/index.js +2 -0
  11. package/dist/agent/core/domain/sandbox/types.d.ts +30 -0
  12. package/dist/agent/core/domain/sandbox/types.js +5 -0
  13. package/dist/agent/core/domain/storage/history-types.d.ts +38 -0
  14. package/dist/agent/core/domain/storage/message-storage-types.d.ts +327 -0
  15. package/dist/agent/core/domain/streaming/types.d.ts +119 -0
  16. package/dist/agent/core/domain/system-prompt/types.d.ts +175 -0
  17. package/dist/agent/core/domain/tools/constants.d.ts +33 -0
  18. package/dist/agent/core/domain/tools/constants.js +29 -0
  19. package/dist/agent/core/interfaces/cipher-services.d.ts +82 -0
  20. package/dist/agent/core/interfaces/i-blob-storage.d.ts +84 -0
  21. package/dist/agent/core/interfaces/i-chat-session.d.ts +107 -0
  22. package/dist/agent/core/interfaces/i-cipher-agent.d.ts +125 -0
  23. package/dist/agent/core/interfaces/i-content-generator.d.ts +148 -0
  24. package/dist/agent/core/interfaces/i-curate-service.d.ts +185 -0
  25. package/dist/agent/core/interfaces/i-curate-service.js +5 -0
  26. package/dist/agent/core/interfaces/i-document-parser-service.d.ts +54 -0
  27. package/dist/agent/core/interfaces/i-file-system.d.ts +79 -0
  28. package/dist/agent/core/interfaces/i-folder-pack-service.d.ts +34 -0
  29. package/dist/agent/core/interfaces/i-history-storage.d.ts +53 -0
  30. package/dist/agent/core/interfaces/i-llm-service.d.ts +61 -0
  31. package/dist/agent/core/interfaces/i-process-service.d.ts +65 -0
  32. package/dist/agent/core/interfaces/i-sandbox-service.d.ts +58 -0
  33. package/dist/agent/core/interfaces/i-session-persistence.d.ts +133 -0
  34. package/dist/agent/core/interfaces/i-system-prompt-contributor.d.ts +25 -0
  35. package/dist/agent/core/interfaces/i-todo-storage.d.ts +24 -0
  36. package/dist/agent/core/interfaces/i-tool-plugin.d.ts +90 -0
  37. package/dist/agent/core/interfaces/i-tool-provider.d.ts +65 -0
  38. package/dist/agent/core/interfaces/index.d.ts +32 -0
  39. package/dist/agent/infra/agent/agent-error.d.ts +54 -0
  40. package/dist/agent/infra/agent/agent-error.js +79 -0
  41. package/dist/agent/infra/agent/agent-schemas.d.ts +264 -0
  42. package/dist/agent/infra/agent/agent-state-manager.d.ts +140 -0
  43. package/dist/agent/infra/agent/base-agent.d.ts +118 -0
  44. package/dist/agent/infra/agent/cipher-agent.d.ts +173 -0
  45. package/dist/agent/infra/agent/cipher-agent.js +564 -0
  46. package/dist/agent/infra/agent/interactive-commands.d.ts +16 -0
  47. package/dist/agent/infra/agent/interactive-loop.d.ts +24 -0
  48. package/dist/agent/infra/agent/service-initializer.d.ts +79 -0
  49. package/dist/agent/infra/agent/service-initializer.js +298 -0
  50. package/dist/agent/infra/agent/types.d.ts +35 -0
  51. package/dist/agent/infra/blob/blob-reference-resolver.d.ts +107 -0
  52. package/dist/agent/infra/blob/blob-storage-factory.d.ts +13 -0
  53. package/dist/agent/infra/blob/index.d.ts +10 -0
  54. package/dist/agent/infra/blob/index.js +12 -0
  55. package/dist/agent/infra/blob/migrations.d.ts +63 -0
  56. package/dist/agent/infra/blob/sqlite-blob-storage.d.ts +82 -0
  57. package/dist/agent/infra/blob/sqlite-blob-storage.js +304 -0
  58. package/dist/agent/infra/display/todo-display.d.ts +23 -0
  59. package/dist/agent/infra/document-parser/document-parser-service.d.ts +31 -0
  60. package/dist/agent/infra/document-parser/document-parser-service.js +68 -0
  61. package/dist/agent/infra/document-parser/index.d.ts +2 -0
  62. package/dist/agent/infra/document-parser/index.js +2 -0
  63. package/dist/agent/infra/document-parser/office-parser.d.ts +45 -0
  64. package/dist/agent/infra/document-parser/office-parser.js +108 -0
  65. package/dist/agent/infra/environment/environment-context-builder.d.ts +78 -0
  66. package/dist/agent/infra/environment/environment-context-builder.js +256 -0
  67. package/dist/agent/infra/events/event-emitter.d.ts +137 -0
  68. package/dist/agent/infra/file-system/binary-utils.d.ts +59 -0
  69. package/dist/agent/infra/file-system/binary-utils.js +225 -0
  70. package/dist/agent/infra/file-system/file-system-service.d.ts +134 -0
  71. package/dist/agent/infra/file-system/file-system-service.js +1021 -0
  72. package/dist/agent/infra/file-system/path-validator.d.ts +101 -0
  73. package/dist/agent/infra/file-system/path-validator.js +289 -0
  74. package/dist/agent/infra/file-system/pdf-extractor.d.ts +100 -0
  75. package/dist/agent/infra/file-system/pdf-extractor.js +226 -0
  76. package/dist/agent/infra/folder-pack/default-ignore.d.ts +11 -0
  77. package/dist/agent/infra/folder-pack/default-ignore.js +125 -0
  78. package/dist/agent/infra/folder-pack/folder-pack-service.d.ts +57 -0
  79. package/dist/agent/infra/folder-pack/folder-pack-service.js +372 -0
  80. package/dist/agent/infra/folder-pack/index.d.ts +3 -0
  81. package/dist/agent/infra/folder-pack/index.js +3 -0
  82. package/dist/agent/infra/folder-pack/output-generator.d.ts +17 -0
  83. package/dist/agent/infra/folder-pack/output-generator.js +156 -0
  84. package/dist/agent/infra/http/internal-llm-http-service.d.ts +133 -0
  85. package/dist/agent/infra/http/internal-llm-http-service.js +265 -0
  86. package/dist/agent/infra/llm/capability-cache.d.ts +87 -0
  87. package/dist/agent/infra/llm/capability-cache.js +125 -0
  88. package/dist/agent/infra/llm/context/compaction/compaction-service.d.ts +138 -0
  89. package/dist/agent/infra/llm/context/compression/enhanced-compaction.d.ts +112 -0
  90. package/dist/agent/infra/llm/context/compression/filter-compacted.d.ts +83 -0
  91. package/dist/agent/infra/llm/context/compression/middle-removal.d.ts +40 -0
  92. package/dist/agent/infra/llm/context/compression/middle-removal.js +75 -0
  93. package/dist/agent/infra/llm/context/compression/oldest-removal.d.ts +38 -0
  94. package/dist/agent/infra/llm/context/compression/oldest-removal.js +50 -0
  95. package/dist/agent/infra/llm/context/compression/reactive-overflow.d.ts +107 -0
  96. package/dist/agent/infra/llm/context/compression/reactive-overflow.js +272 -0
  97. package/dist/agent/infra/llm/context/compression/types.d.ts +36 -0
  98. package/dist/agent/infra/llm/context/context-manager.d.ts +332 -0
  99. package/dist/agent/infra/llm/context/context-manager.js +671 -0
  100. package/dist/agent/infra/llm/context/utils.d.ts +17 -0
  101. package/dist/agent/infra/llm/formatters/claude-formatter.d.ts +54 -0
  102. package/dist/agent/infra/llm/formatters/gemini-formatter.d.ts +82 -0
  103. package/dist/agent/infra/llm/formatters/openrouter-formatter.d.ts +47 -0
  104. package/dist/agent/infra/llm/formatters/openrouter-formatter.js +236 -0
  105. package/dist/agent/infra/llm/generators/byterover-content-generator.d.ts +91 -0
  106. package/dist/agent/infra/llm/generators/logging-content-generator.d.ts +88 -0
  107. package/dist/agent/infra/llm/generators/logging-content-generator.js +126 -0
  108. package/dist/agent/infra/llm/generators/openrouter-content-generator.d.ts +94 -0
  109. package/dist/agent/infra/llm/generators/retryable-content-generator.d.ts +90 -0
  110. package/dist/agent/infra/llm/generators/retryable-content-generator.js +154 -0
  111. package/dist/agent/infra/llm/index.d.ts +9 -0
  112. package/dist/agent/infra/llm/index.js +13 -0
  113. package/dist/agent/infra/llm/internal-llm-service.d.ts +362 -0
  114. package/dist/agent/infra/llm/internal-llm-service.js +1039 -0
  115. package/dist/agent/infra/llm/openrouter-llm-service.d.ts +215 -0
  116. package/dist/agent/infra/llm/openrouter-llm-service.js +572 -0
  117. package/dist/agent/infra/llm/response-validator.d.ts +89 -0
  118. package/dist/agent/infra/llm/sanitization/tool-sanitizer.d.ts +74 -0
  119. package/dist/agent/infra/llm/sanitization/tool-sanitizer.js +398 -0
  120. package/dist/agent/infra/llm/stream-processor.d.ts +178 -0
  121. package/dist/agent/infra/llm/thought-parser.js +217 -0
  122. package/dist/agent/infra/llm/tokenizers/claude-tokenizer.d.ts +40 -0
  123. package/dist/agent/infra/llm/tokenizers/claude-tokenizer.js +48 -0
  124. package/dist/agent/infra/llm/tokenizers/default-tokenizer.d.ts +31 -0
  125. package/dist/agent/infra/llm/tokenizers/gemini-tokenizer.d.ts +38 -0
  126. package/dist/agent/infra/llm/tokenizers/gemini-tokenizer.js +46 -0
  127. package/dist/agent/infra/llm/tokenizers/openrouter-tokenizer.d.ts +37 -0
  128. package/dist/agent/infra/llm/tokenizers/openrouter-tokenizer.js +49 -0
  129. package/dist/agent/infra/llm/tool-output-processor.d.ts +178 -0
  130. package/dist/agent/infra/llm/transformers/openrouter-stream-transformer.d.ts +49 -0
  131. package/dist/agent/infra/llm/transformers/openrouter-stream-transformer.js +270 -0
  132. package/dist/agent/infra/logger/console-logger.d.ts +42 -0
  133. package/dist/agent/infra/logger/event-based-logger.d.ts +54 -0
  134. package/dist/agent/infra/memory/index.d.ts +6 -0
  135. package/dist/agent/infra/memory/index.js +7 -0
  136. package/dist/agent/infra/memory/memory-manager.d.ts +136 -0
  137. package/dist/agent/infra/memory/memory-manager.js +523 -0
  138. package/dist/agent/infra/process/command-validator.d.ts +82 -0
  139. package/dist/agent/infra/process/process-service.d.ts +127 -0
  140. package/dist/agent/infra/process/process-service.js +528 -0
  141. package/dist/agent/infra/sandbox/curate-service.d.ts +33 -0
  142. package/dist/agent/infra/sandbox/curate-service.js +142 -0
  143. package/dist/agent/infra/sandbox/index.d.ts +2 -0
  144. package/dist/agent/infra/sandbox/index.js +2 -0
  145. package/dist/agent/infra/sandbox/local-sandbox.d.ts +45 -0
  146. package/dist/agent/infra/sandbox/local-sandbox.js +222 -0
  147. package/dist/agent/infra/sandbox/sandbox-service.d.ts +76 -0
  148. package/dist/agent/infra/sandbox/sandbox-service.js +118 -0
  149. package/dist/agent/infra/sandbox/tools-sdk.d.ts +157 -0
  150. package/dist/agent/infra/sandbox/tools-sdk.js +88 -0
  151. package/dist/agent/infra/session/chat-session.d.ts +141 -0
  152. package/dist/agent/infra/session/chat-session.js +372 -0
  153. package/dist/agent/infra/session/index.d.ts +7 -0
  154. package/dist/agent/infra/session/index.js +7 -0
  155. package/dist/agent/infra/session/session-manager.d.ts +210 -0
  156. package/dist/agent/infra/session/session-metadata-store.d.ts +52 -0
  157. package/dist/agent/infra/session/session-metadata-store.js +406 -0
  158. package/dist/agent/infra/session/session-status.d.ts +137 -0
  159. package/dist/agent/infra/storage/blob-history-storage.d.ts +76 -0
  160. package/dist/agent/infra/storage/dual-format-history-storage.d.ts +77 -0
  161. package/dist/agent/infra/storage/granular-history-storage.d.ts +65 -0
  162. package/dist/agent/infra/storage/message-storage-service.d.ts +171 -0
  163. package/dist/agent/infra/storage/message-storage-service.js +782 -0
  164. package/dist/agent/infra/storage/sqlite-key-storage.d.ts +105 -0
  165. package/dist/agent/infra/storage/sqlite-key-storage.js +404 -0
  166. package/dist/agent/infra/storage/tool-part-factory.d.ts +116 -0
  167. package/dist/agent/infra/system-prompt/contributors/agent-prompt-contributor.d.ts +59 -0
  168. package/dist/agent/infra/system-prompt/contributors/agent-prompt-contributor.js +131 -0
  169. package/dist/agent/infra/system-prompt/contributors/companion-contributor.d.ts +54 -0
  170. package/dist/agent/infra/system-prompt/contributors/companion-contributor.js +107 -0
  171. package/dist/agent/infra/system-prompt/contributors/context-tree-structure-contributor.d.ts +67 -0
  172. package/dist/agent/infra/system-prompt/contributors/context-tree-structure-contributor.js +220 -0
  173. package/dist/agent/infra/system-prompt/contributors/datetime-contributor.d.ts +25 -0
  174. package/dist/agent/infra/system-prompt/contributors/environment-contributor.d.ts +25 -0
  175. package/dist/agent/infra/system-prompt/contributors/file-contributor.d.ts +60 -0
  176. package/dist/agent/infra/system-prompt/contributors/file-contributor.js +128 -0
  177. package/dist/agent/infra/system-prompt/contributors/memory-contributor.d.ts +40 -0
  178. package/dist/agent/infra/system-prompt/contributors/static-contributor.d.ts +26 -0
  179. package/dist/agent/infra/system-prompt/schemas.d.ts +157 -0
  180. package/dist/agent/infra/system-prompt/system-prompt-manager.d.ts +136 -0
  181. package/dist/agent/infra/system-prompt/system-prompt-manager.js +307 -0
  182. package/dist/agent/infra/todos/todo-storage-service.d.ts +26 -0
  183. package/dist/agent/infra/tools/core-tool-scheduler.d.ts +99 -0
  184. package/dist/agent/infra/tools/core-tool-scheduler.js +158 -0
  185. package/dist/agent/infra/tools/default-policy-rules.d.ts +26 -0
  186. package/dist/agent/infra/tools/implementations/bash-exec-tool.d.ts +13 -0
  187. package/dist/agent/infra/tools/implementations/bash-exec-tool.js +110 -0
  188. package/dist/agent/infra/tools/implementations/bash-output-tool.d.ts +12 -0
  189. package/dist/agent/infra/tools/implementations/bash-output-tool.js +43 -0
  190. package/dist/agent/infra/tools/implementations/batch-tool.d.ts +12 -0
  191. package/dist/agent/infra/tools/implementations/batch-tool.js +142 -0
  192. package/dist/agent/infra/tools/implementations/code-exec-tool.d.ts +16 -0
  193. package/dist/agent/infra/tools/implementations/code-exec-tool.js +92 -0
  194. package/dist/agent/infra/tools/implementations/create-knowledge-topic-tool.d.ts +11 -0
  195. package/dist/agent/infra/tools/implementations/create-knowledge-topic-tool.js +149 -0
  196. package/dist/agent/infra/tools/implementations/curate-tool.d.ts +346 -0
  197. package/dist/agent/infra/tools/implementations/curate-tool.js +933 -0
  198. package/dist/agent/infra/tools/implementations/delete-memory-tool.d.ts +12 -0
  199. package/dist/agent/infra/tools/implementations/delete-memory-tool.js +37 -0
  200. package/dist/agent/infra/tools/implementations/edit-file-tool.d.ts +13 -0
  201. package/dist/agent/infra/tools/implementations/edit-file-tool.js +50 -0
  202. package/dist/agent/infra/tools/implementations/edit-memory-tool.d.ts +13 -0
  203. package/dist/agent/infra/tools/implementations/edit-memory-tool.js +53 -0
  204. package/dist/agent/infra/tools/implementations/glob-files-tool.d.ts +18 -0
  205. package/dist/agent/infra/tools/implementations/glob-files-tool.js +70 -0
  206. package/dist/agent/infra/tools/implementations/grep-content-tool.d.ts +12 -0
  207. package/dist/agent/infra/tools/implementations/grep-content-tool.js +77 -0
  208. package/dist/agent/infra/tools/implementations/kill-process-tool.d.ts +12 -0
  209. package/dist/agent/infra/tools/implementations/kill-process-tool.js +55 -0
  210. package/dist/agent/infra/tools/implementations/list-directory-tool.d.ts +12 -0
  211. package/dist/agent/infra/tools/implementations/list-directory-tool.js +52 -0
  212. package/dist/agent/infra/tools/implementations/list-memories-tool.d.ts +12 -0
  213. package/dist/agent/infra/tools/implementations/list-memories-tool.js +63 -0
  214. package/dist/agent/infra/tools/implementations/read-file-tool.d.ts +19 -0
  215. package/dist/agent/infra/tools/implementations/read-file-tool.js +96 -0
  216. package/dist/agent/infra/tools/implementations/read-memory-tool.d.ts +12 -0
  217. package/dist/agent/infra/tools/implementations/read-memory-tool.js +39 -0
  218. package/dist/agent/infra/tools/implementations/read-todos-tool.d.ts +11 -0
  219. package/dist/agent/infra/tools/implementations/read-todos-tool.js +39 -0
  220. package/dist/agent/infra/tools/implementations/search-history-tool.d.ts +10 -0
  221. package/dist/agent/infra/tools/implementations/search-history-tool.js +36 -0
  222. package/dist/agent/infra/tools/implementations/search-knowledge-service.d.ts +40 -0
  223. package/dist/agent/infra/tools/implementations/search-knowledge-service.js +302 -0
  224. package/dist/agent/infra/tools/implementations/search-knowledge-tool.d.ts +20 -0
  225. package/dist/agent/infra/tools/implementations/search-knowledge-tool.js +40 -0
  226. package/dist/agent/infra/tools/implementations/spec-analyze-tool.d.ts +7 -0
  227. package/dist/agent/infra/tools/implementations/spec-analyze-tool.js +78 -0
  228. package/dist/agent/infra/tools/implementations/write-file-tool.d.ts +12 -0
  229. package/dist/agent/infra/tools/implementations/write-file-tool.js +52 -0
  230. package/dist/agent/infra/tools/implementations/write-memory-tool.d.ts +13 -0
  231. package/dist/agent/infra/tools/implementations/write-memory-tool.js +52 -0
  232. package/dist/agent/infra/tools/implementations/write-todos-tool.d.ts +13 -0
  233. package/dist/agent/infra/tools/implementations/write-todos-tool.js +121 -0
  234. package/dist/agent/infra/tools/index.d.ts +19 -0
  235. package/dist/agent/infra/tools/index.js +20 -0
  236. package/dist/agent/infra/tools/plugins/logging-plugin.d.ts +28 -0
  237. package/dist/agent/infra/tools/plugins/plugin-manager.d.ts +81 -0
  238. package/dist/agent/infra/tools/plugins/plugin-manager.js +122 -0
  239. package/dist/agent/infra/tools/policy-engine.d.ts +80 -0
  240. package/dist/agent/infra/tools/streaming/metadata-handler.d.ts +31 -0
  241. package/dist/agent/infra/tools/tool-description-loader.js +108 -0
  242. package/dist/agent/infra/tools/tool-invocation.d.ts +216 -0
  243. package/dist/agent/infra/tools/tool-invocation.js +294 -0
  244. package/dist/agent/infra/tools/tool-manager.d.ts +178 -0
  245. package/dist/agent/infra/tools/tool-manager.js +328 -0
  246. package/dist/agent/infra/tools/tool-provider-getter.d.ts +6 -0
  247. package/dist/agent/infra/tools/tool-provider.d.ts +102 -0
  248. package/dist/agent/infra/tools/tool-provider.js +251 -0
  249. package/dist/agent/infra/tools/tool-registry.d.ts +74 -0
  250. package/dist/agent/infra/tools/tool-registry.js +221 -0
  251. package/dist/agent/infra/tools/utils/schema-converter.d.ts +10 -0
  252. package/dist/agent/infra/tools/utils/schema-converter.js +27 -0
  253. package/dist/agent/resources/prompts/system-prompt.yml +505 -0
  254. package/dist/agent/resources/tools/code_exec.txt +126 -0
  255. package/dist/oclif/commands/curate.d.ts +2 -1
  256. package/dist/oclif/commands/curate.js +19 -7
  257. package/dist/oclif/commands/hook-prompt-submit.d.ts +1 -1
  258. package/dist/oclif/commands/hook-prompt-submit.js +3 -3
  259. package/dist/oclif/commands/init.d.ts +1 -1
  260. package/dist/oclif/commands/init.js +18 -18
  261. package/dist/oclif/commands/login.js +12 -12
  262. package/dist/oclif/commands/main.js +24 -10
  263. package/dist/oclif/commands/mcp.js +2 -2
  264. package/dist/oclif/commands/pull.d.ts +1 -1
  265. package/dist/oclif/commands/pull.js +12 -12
  266. package/dist/oclif/commands/push.d.ts +1 -1
  267. package/dist/oclif/commands/push.js +12 -12
  268. package/dist/oclif/commands/query.d.ts +1 -1
  269. package/dist/oclif/commands/query.js +7 -7
  270. package/dist/oclif/commands/status.d.ts +1 -1
  271. package/dist/oclif/commands/status.js +9 -9
  272. package/dist/oclif/hooks/init/update-notifier.d.ts +1 -1
  273. package/dist/oclif/hooks/init/update-notifier.js +2 -2
  274. package/dist/oclif/hooks/prerun/validate-brv-config-version.d.ts +1 -1
  275. package/dist/oclif/hooks/prerun/validate-brv-config-version.js +2 -2
  276. package/dist/server/config/auth.config.d.ts +32 -0
  277. package/dist/server/core/domain/entities/agent.js +106 -0
  278. package/dist/server/core/domain/entities/brv-config.d.ts +75 -0
  279. package/dist/server/core/domain/entities/brv-config.js +182 -0
  280. package/dist/server/core/domain/entities/space.d.ts +36 -0
  281. package/dist/server/core/domain/entities/space.js +76 -0
  282. package/dist/server/core/domain/entities/team.d.ts +44 -0
  283. package/dist/server/core/domain/entities/team.js +96 -0
  284. package/dist/server/core/domain/entities/user.d.ts +31 -0
  285. package/dist/server/core/domain/entities/user.js +52 -0
  286. package/dist/server/core/domain/knowledge/relation-parser.d.ts +94 -0
  287. package/dist/server/core/domain/knowledge/relation-parser.js +131 -0
  288. package/dist/server/core/domain/transport/schemas.d.ts +1252 -0
  289. package/dist/server/core/domain/transport/schemas.js +617 -0
  290. package/dist/server/core/interfaces/auth/i-auth-service.d.ts +35 -0
  291. package/dist/server/core/interfaces/auth/i-token-store.d.ts +22 -0
  292. package/dist/server/core/interfaces/connectors/connector-types.d.ts +83 -0
  293. package/dist/server/core/interfaces/connectors/i-connector-manager.d.ts +79 -0
  294. package/dist/server/core/interfaces/connectors/i-connector.d.ts +63 -0
  295. package/dist/server/core/interfaces/context-tree/i-context-file-reader.d.ts +35 -0
  296. package/dist/server/core/interfaces/context-tree/i-context-tree-snapshot-service.d.ts +36 -0
  297. package/dist/server/core/interfaces/context-tree/i-context-tree-writer-service.d.ts +32 -0
  298. package/dist/server/core/interfaces/executor/i-curate-executor.d.ts +36 -0
  299. package/dist/server/core/interfaces/executor/i-folder-pack-executor.d.ts +39 -0
  300. package/dist/server/core/interfaces/executor/i-query-executor.d.ts +32 -0
  301. package/dist/server/core/interfaces/executor/index.d.ts +3 -0
  302. package/dist/server/core/interfaces/executor/index.js +3 -0
  303. package/dist/server/core/interfaces/noop-implementations.d.ts +53 -0
  304. package/dist/server/core/interfaces/services/i-cogit-pull-service.d.ts +23 -0
  305. package/dist/server/core/interfaces/services/i-cogit-push-service.d.ts +27 -0
  306. package/dist/server/core/interfaces/services/i-http-client.d.ts +41 -0
  307. package/dist/server/core/interfaces/services/i-legacy-rule-detector.d.ts +56 -0
  308. package/dist/server/core/interfaces/services/i-memory-retrieval-service.d.ts +39 -0
  309. package/dist/server/core/interfaces/services/i-memory-storage-service.d.ts +53 -0
  310. package/dist/server/core/interfaces/services/i-rule-template-service.d.ts +15 -0
  311. package/dist/server/core/interfaces/services/i-space-service.d.ts +27 -0
  312. package/dist/server/core/interfaces/services/i-team-service.d.ts +28 -0
  313. package/dist/server/core/interfaces/services/i-tracking-service.d.ts +21 -0
  314. package/dist/server/core/interfaces/services/i-user-service.d.ts +26 -0
  315. package/dist/server/core/interfaces/services/i-workspace-detector-service.d.ts +8 -0
  316. package/dist/server/core/interfaces/storage/i-global-config-store.d.ts +34 -0
  317. package/dist/server/core/interfaces/storage/i-mcp-config-writer.d.ts +40 -0
  318. package/dist/server/core/interfaces/storage/i-project-config-store.d.ts +26 -0
  319. package/dist/server/core/interfaces/transport/index.d.ts +1 -0
  320. package/dist/server/core/interfaces/transport/index.js +2 -0
  321. package/dist/server/core/interfaces/usecase/i-curate-use-case.d.ts +14 -0
  322. package/dist/server/core/interfaces/usecase/i-push-use-case.js +1 -0
  323. package/dist/server/core/interfaces/usecase/i-query-use-case.js +1 -0
  324. package/dist/server/core/interfaces/usecase/i-reset-use-case.js +1 -0
  325. package/dist/server/core/interfaces/usecase/i-space-list-use-case.js +1 -0
  326. package/dist/server/core/interfaces/usecase/i-space-switch-use-case.js +1 -0
  327. package/dist/server/core/interfaces/usecase/i-status-use-case.js +1 -0
  328. package/dist/server/infra/auth/oauth-service.d.ts +64 -0
  329. package/dist/server/infra/auth/oidc-discovery-service.d.ts +51 -0
  330. package/dist/server/infra/browser/system-browser-launcher.d.ts +10 -0
  331. package/dist/server/infra/cogit/context-tree-to-push-context-mapper.d.ts +21 -0
  332. package/dist/server/infra/cogit/http-cogit-pull-service.d.ts +15 -0
  333. package/dist/server/infra/cogit/http-cogit-push-service.d.ts +17 -0
  334. package/dist/server/infra/config/file-config-store.d.ts +19 -0
  335. package/dist/server/infra/connectors/connector-manager.d.ts +33 -0
  336. package/dist/server/infra/connectors/connector-manager.js +206 -0
  337. package/dist/server/infra/connectors/hook/hook-connector.d.ts +46 -0
  338. package/dist/server/infra/connectors/hook/hook-connector.js +246 -0
  339. package/dist/server/infra/connectors/mcp/json-mcp-config-writer.d.ts +26 -0
  340. package/dist/server/infra/connectors/mcp/mcp-connector.d.ts +80 -0
  341. package/dist/server/infra/connectors/mcp/mcp-connector.js +339 -0
  342. package/dist/server/infra/connectors/mcp/toml-mcp-config-writer.d.ts +45 -0
  343. package/dist/server/infra/connectors/rules/legacy-rule-detector.d.ts +21 -0
  344. package/dist/server/infra/connectors/rules/rules-connector-config.d.ts +99 -0
  345. package/dist/server/infra/connectors/rules/rules-connector.d.ts +34 -0
  346. package/dist/server/infra/connectors/rules/rules-connector.js +155 -0
  347. package/dist/server/infra/connectors/shared/rule-file-manager.d.ts +72 -0
  348. package/dist/server/infra/connectors/shared/template-service.d.ts +27 -0
  349. package/dist/server/infra/connectors/skill/skill-connector.d.ts +39 -0
  350. package/dist/server/infra/connectors/skill/skill-connector.js +175 -0
  351. package/dist/server/infra/connectors/skill/skill-content-loader.d.ts +18 -0
  352. package/dist/server/infra/connectors/skill/skill-content-loader.js +33 -0
  353. package/dist/server/infra/context-tree/file-context-file-reader.d.ts +14 -0
  354. package/dist/server/infra/context-tree/file-context-tree-service.d.ts +14 -0
  355. package/dist/server/infra/context-tree/file-context-tree-snapshot-service.d.ts +34 -0
  356. package/dist/server/infra/context-tree/file-context-tree-writer-service.d.ts +28 -0
  357. package/dist/server/infra/context-tree/path-utils.d.ts +7 -0
  358. package/dist/server/infra/context-tree/path-utils.js +7 -0
  359. package/dist/server/infra/executor/curate-executor.d.ts +46 -0
  360. package/dist/server/infra/executor/curate-executor.js +132 -0
  361. package/dist/server/infra/executor/folder-pack-executor.d.ts +27 -0
  362. package/dist/server/infra/executor/folder-pack-executor.js +82 -0
  363. package/dist/server/infra/executor/index.d.ts +3 -0
  364. package/dist/server/infra/executor/index.js +3 -0
  365. package/dist/server/infra/executor/query-executor.d.ts +26 -0
  366. package/dist/server/infra/executor/query-executor.js +49 -0
  367. package/dist/server/infra/executor/task-processor.d.ts +89 -0
  368. package/dist/server/infra/executor/task-processor.js +133 -0
  369. package/dist/server/infra/file/fs-file-service.d.ts +44 -0
  370. package/dist/server/infra/http/authenticated-http-client.d.ts +74 -0
  371. package/dist/server/infra/http/authenticated-http-client.js +159 -0
  372. package/dist/server/infra/http/callback-handler.d.ts +13 -0
  373. package/dist/server/infra/mcp/mcp-server.js +179 -0
  374. package/dist/server/infra/mcp/tools/brv-curate-tool.d.ts +34 -0
  375. package/dist/server/infra/mcp/tools/brv-curate-tool.js +93 -0
  376. package/dist/server/infra/mcp/tools/brv-query-tool.d.ts +17 -0
  377. package/dist/server/infra/mcp/tools/brv-query-tool.js +62 -0
  378. package/dist/server/infra/mcp/tools/task-result-waiter.d.ts +30 -0
  379. package/dist/server/infra/memory/http-memory-retrieval-service.d.ts +18 -0
  380. package/dist/server/infra/memory/http-memory-storage-service.d.ts +18 -0
  381. package/dist/server/infra/process/agent-worker.js +1392 -0
  382. package/dist/server/infra/process/inline-agent-executor.d.ts +32 -0
  383. package/dist/server/infra/process/inline-agent-executor.js +267 -0
  384. package/dist/server/infra/process/process-manager.js +765 -0
  385. package/dist/server/infra/process/transport-handlers.js +472 -0
  386. package/dist/server/infra/space/http-space-service.d.ts +20 -0
  387. package/dist/server/infra/space/http-space-service.js +74 -0
  388. package/dist/server/infra/storage/file-global-config-store.d.ts +22 -0
  389. package/dist/server/infra/storage/file-onboarding-preference-store.d.ts +10 -0
  390. package/dist/server/infra/storage/file-token-store.d.ts +31 -0
  391. package/dist/server/infra/storage/keychain-token-store.d.ts +13 -0
  392. package/dist/server/infra/storage/token-store.d.ts +11 -0
  393. package/dist/server/infra/team/http-team-service.d.ts +21 -0
  394. package/dist/server/infra/template/fs-template-loader.d.ts +33 -0
  395. package/dist/server/infra/terminal/headless-terminal.d.ts +91 -0
  396. package/dist/server/infra/terminal/oclif-terminal.d.ts +19 -0
  397. package/dist/server/infra/terminal/repl-terminal.d.ts +31 -0
  398. package/dist/server/infra/tracking/mixpanel-tracking-service.d.ts +24 -0
  399. package/dist/server/infra/transport/index.d.ts +3 -0
  400. package/dist/server/infra/transport/index.js +6 -0
  401. package/dist/server/infra/transport/transport-factory.d.ts +17 -0
  402. package/dist/server/infra/transport/transport-factory.js +31 -0
  403. package/dist/server/infra/usecase/connectors-use-case.d.ts +63 -0
  404. package/dist/server/infra/usecase/connectors-use-case.js +234 -0
  405. package/dist/server/infra/usecase/curate-use-case.d.ts +59 -0
  406. package/dist/server/infra/usecase/curate-use-case.js +269 -0
  407. package/dist/server/infra/usecase/init-use-case.d.ts +126 -0
  408. package/dist/server/infra/usecase/login-use-case.d.ts +30 -0
  409. package/dist/server/infra/usecase/logout-use-case.d.ts +19 -0
  410. package/dist/server/infra/usecase/logout-use-case.js +48 -0
  411. package/dist/server/infra/usecase/pull-use-case.d.ts +49 -0
  412. package/dist/server/infra/usecase/pull-use-case.js +147 -0
  413. package/dist/server/infra/usecase/push-use-case.d.ts +50 -0
  414. package/dist/server/infra/usecase/push-use-case.js +191 -0
  415. package/dist/server/infra/usecase/query-use-case.d.ts +73 -0
  416. package/dist/server/infra/usecase/query-use-case.js +410 -0
  417. package/dist/server/infra/usecase/reset-use-case.d.ts +21 -0
  418. package/dist/server/infra/usecase/space-list-use-case.d.ts +27 -0
  419. package/dist/server/infra/usecase/space-switch-use-case.d.ts +26 -0
  420. package/dist/server/infra/usecase/space-switch-use-case.js +110 -0
  421. package/dist/server/infra/usecase/status-use-case.d.ts +75 -0
  422. package/dist/server/infra/usecase/status-use-case.js +268 -0
  423. package/dist/server/infra/user/http-user-service.d.ts +13 -0
  424. package/dist/server/infra/user/http-user-service.js +32 -0
  425. package/dist/server/infra/workspace/workspace-detector-service.d.ts +57 -0
  426. package/dist/server/templates/sections/brv-instructions.md +104 -0
  427. package/dist/server/utils/file-content-reader.d.ts +81 -0
  428. package/dist/server/utils/file-content-reader.js +180 -0
  429. package/dist/server/utils/file-validator.js +84 -0
  430. package/dist/server/utils/type-guards.d.ts +16 -0
  431. package/dist/tui/app.js +16 -13
  432. package/dist/tui/commands/arg-parser.d.ts +102 -0
  433. package/dist/tui/commands/arg-parser.js +186 -0
  434. package/dist/tui/commands/connectors-command.d.ts +8 -0
  435. package/dist/tui/commands/connectors-command.js +49 -0
  436. package/dist/tui/commands/curate-command.d.ts +9 -0
  437. package/dist/tui/commands/curate-command.js +80 -0
  438. package/dist/tui/commands/index.d.ts +8 -0
  439. package/dist/tui/commands/index.js +45 -0
  440. package/dist/tui/commands/init-command.d.ts +7 -0
  441. package/dist/tui/commands/init-command.js +87 -0
  442. package/dist/tui/commands/login-command.d.ts +7 -0
  443. package/dist/tui/commands/login-command.js +50 -0
  444. package/dist/tui/commands/logout-command.d.ts +5 -0
  445. package/dist/tui/commands/logout-command.js +46 -0
  446. package/dist/tui/commands/model-command.d.ts +13 -0
  447. package/dist/tui/commands/model-command.js +212 -0
  448. package/dist/tui/commands/new-command.d.ts +14 -0
  449. package/dist/tui/commands/new-command.js +61 -0
  450. package/dist/tui/commands/provider-command.d.ts +13 -0
  451. package/dist/tui/commands/provider-command.js +181 -0
  452. package/dist/tui/commands/pull-command.d.ts +5 -0
  453. package/dist/tui/commands/pull-command.js +61 -0
  454. package/dist/tui/commands/push-command.d.ts +5 -0
  455. package/dist/tui/commands/push-command.js +66 -0
  456. package/dist/tui/commands/query-command.d.ts +5 -0
  457. package/dist/tui/commands/query-command.js +63 -0
  458. package/dist/tui/commands/reset-command.d.ts +5 -0
  459. package/dist/tui/commands/reset-command.js +61 -0
  460. package/dist/tui/commands/space/index.d.ts +5 -0
  461. package/dist/tui/commands/space/index.js +14 -0
  462. package/dist/tui/commands/space/list-command.d.ts +5 -0
  463. package/dist/tui/commands/space/list-command.js +70 -0
  464. package/dist/tui/commands/space/switch-command.d.ts +5 -0
  465. package/dist/tui/commands/space/switch-command.js +35 -0
  466. package/dist/tui/commands/status-command.d.ts +5 -0
  467. package/dist/tui/commands/status-command.js +39 -0
  468. package/dist/tui/components/api-key-dialog.d.ts +1 -1
  469. package/dist/tui/components/command/command-output.d.ts +67 -0
  470. package/dist/tui/components/command/command-output.js +165 -0
  471. package/dist/tui/components/command/expanded-command-view.d.ts +21 -0
  472. package/dist/tui/components/command/expanded-command-view.js +78 -0
  473. package/dist/tui/components/command/index.d.ts +11 -0
  474. package/dist/tui/components/command/index.js +8 -0
  475. package/dist/tui/components/command/live-streaming-output.d.ts +19 -0
  476. package/dist/tui/components/command/live-streaming-output.js +34 -0
  477. package/dist/tui/components/command-details.d.ts +1 -0
  478. package/dist/tui/components/command-details.js +2 -2
  479. package/dist/tui/components/command-input.d.ts +6 -0
  480. package/dist/tui/components/command-input.js +282 -0
  481. package/dist/tui/components/command-item.d.ts +14 -0
  482. package/dist/tui/components/command-item.js +22 -0
  483. package/dist/tui/components/enter-prompt.js +3 -1
  484. package/dist/tui/components/execution/execution-input.d.ts +4 -0
  485. package/dist/tui/components/execution/execution-input.js +16 -4
  486. package/dist/tui/components/execution/execution-progress.js +13 -12
  487. package/dist/tui/components/execution/execution-status.d.ts +1 -1
  488. package/dist/tui/components/execution/execution-tool.d.ts +1 -1
  489. package/dist/tui/components/execution/execution-tool.js +72 -0
  490. package/dist/tui/components/execution/expanded-log-view.js +2 -2
  491. package/dist/tui/components/execution/index.d.ts +0 -1
  492. package/dist/tui/components/execution/index.js +0 -1
  493. package/dist/tui/components/execution/log-item.d.ts +1 -1
  494. package/dist/tui/components/execution/log-item.js +2 -3
  495. package/dist/tui/components/footer.js +8 -9
  496. package/dist/tui/components/header.d.ts +0 -4
  497. package/dist/tui/components/header.js +5 -30
  498. package/dist/tui/components/index.d.ts +8 -1
  499. package/dist/tui/components/index.js +6 -1
  500. package/dist/tui/components/init.js +0 -6
  501. package/dist/tui/components/list.d.ts +16 -0
  502. package/dist/tui/components/list.js +24 -0
  503. package/dist/tui/components/logo.js +2 -2
  504. package/dist/tui/components/message-item.d.ts +4 -0
  505. package/dist/tui/components/message-item.js +14 -4
  506. package/dist/tui/components/message-list.d.ts +16 -0
  507. package/dist/tui/components/message-list.js +120 -0
  508. package/dist/tui/components/onboarding/index.d.ts +0 -1
  509. package/dist/tui/components/onboarding/index.js +0 -1
  510. package/dist/tui/components/onboarding/welcome-box.js +3 -2
  511. package/dist/tui/components/onboarding-item.d.ts +17 -0
  512. package/dist/tui/components/onboarding-item.js +30 -0
  513. package/dist/tui/components/provider-dialog.d.ts +1 -1
  514. package/dist/tui/components/provider-dialog.js +1 -1
  515. package/dist/tui/components/suggestions.js +21 -10
  516. package/dist/tui/contexts/auth-context.d.ts +8 -5
  517. package/dist/tui/contexts/auth-context.js +45 -13
  518. package/dist/tui/contexts/commands-context.d.ts +9 -1
  519. package/dist/tui/contexts/commands-context.js +16 -5
  520. package/dist/tui/contexts/index.d.ts +0 -1
  521. package/dist/tui/contexts/index.js +0 -1
  522. package/dist/tui/contexts/mode-context.d.ts +2 -2
  523. package/dist/tui/contexts/mode-context.js +3 -13
  524. package/dist/tui/contexts/onboarding-context.d.ts +18 -30
  525. package/dist/tui/contexts/onboarding-context.js +134 -129
  526. package/dist/tui/contexts/services-context.d.ts +8 -5
  527. package/dist/tui/contexts/services-context.js +9 -2
  528. package/dist/tui/contexts/tasks-context.d.ts +4 -2
  529. package/dist/tui/contexts/tasks-context.js +31 -11
  530. package/dist/tui/contexts/theme-context.d.ts +1 -0
  531. package/dist/tui/contexts/theme-context.js +1 -0
  532. package/dist/tui/contexts/transport-context.d.ts +1 -1
  533. package/dist/tui/contexts/transport-context.js +3 -4
  534. package/dist/tui/hooks/index.d.ts +2 -1
  535. package/dist/tui/hooks/index.js +1 -1
  536. package/dist/tui/hooks/use-activity-logs.js +71 -13
  537. package/dist/tui/hooks/use-auth-polling.d.ts +3 -3
  538. package/dist/tui/hooks/use-auth-polling.js +6 -6
  539. package/dist/tui/hooks/use-onboarding-logs.d.ts +17 -0
  540. package/dist/tui/hooks/use-onboarding-logs.js +26 -0
  541. package/dist/tui/hooks/use-slash-command-processor.js +4 -3
  542. package/dist/tui/hooks/use-slash-completion.js +3 -3
  543. package/dist/tui/providers/app-providers.d.ts +9 -7
  544. package/dist/tui/providers/app-providers.js +3 -3
  545. package/dist/tui/repl-startup.d.ts +24 -0
  546. package/dist/tui/repl-startup.js +33 -0
  547. package/dist/tui/types/commands.d.ts +4 -2
  548. package/dist/tui/types/messages.d.ts +6 -2
  549. package/dist/tui/utils/transport-client-helper.d.ts +9 -0
  550. package/dist/tui/utils/transport-client-helper.js +99 -0
  551. package/dist/tui/views/index.d.ts +0 -2
  552. package/dist/tui/views/index.js +0 -2
  553. package/dist/tui/views/init-view.js +14 -2
  554. package/dist/tui/views/login-view.js +1 -1
  555. package/dist/tui/views/main-view.d.ts +12 -0
  556. package/dist/tui/views/main-view.js +20 -0
  557. package/oclif.manifest.json +16 -2
  558. package/package.json +4 -2
  559. package/dist/config/auth.config.d.ts +0 -32
  560. package/dist/core/domain/cipher/agent/agent-registry.d.ts +0 -96
  561. package/dist/core/domain/cipher/agent/agent-registry.js +0 -254
  562. package/dist/core/domain/cipher/storage/history-types.d.ts +0 -38
  563. package/dist/core/domain/cipher/storage/message-storage-types.d.ts +0 -327
  564. package/dist/core/domain/cipher/streaming/types.d.ts +0 -119
  565. package/dist/core/domain/cipher/system-prompt/types.d.ts +0 -175
  566. package/dist/core/domain/cipher/tools/constants.d.ts +0 -33
  567. package/dist/core/domain/cipher/tools/constants.js +0 -29
  568. package/dist/core/domain/entities/agent.js +0 -106
  569. package/dist/core/domain/entities/brv-config.d.ts +0 -61
  570. package/dist/core/domain/entities/brv-config.js +0 -165
  571. package/dist/core/domain/entities/space.d.ts +0 -24
  572. package/dist/core/domain/entities/space.js +0 -52
  573. package/dist/core/domain/entities/team.d.ts +0 -42
  574. package/dist/core/domain/entities/team.js +0 -89
  575. package/dist/core/domain/entities/user.d.ts +0 -20
  576. package/dist/core/domain/entities/user.js +0 -32
  577. package/dist/core/domain/errors/connection-error.d.ts +0 -33
  578. package/dist/core/domain/errors/connection-error.js +0 -54
  579. package/dist/core/domain/knowledge/relation-parser.d.ts +0 -91
  580. package/dist/core/domain/knowledge/relation-parser.js +0 -126
  581. package/dist/core/domain/transport/schemas.d.ts +0 -1240
  582. package/dist/core/domain/transport/schemas.js +0 -611
  583. package/dist/core/interfaces/cipher/cipher-services.d.ts +0 -80
  584. package/dist/core/interfaces/cipher/i-blob-storage.d.ts +0 -84
  585. package/dist/core/interfaces/cipher/i-chat-session.d.ts +0 -107
  586. package/dist/core/interfaces/cipher/i-cipher-agent.d.ts +0 -125
  587. package/dist/core/interfaces/cipher/i-content-generator.d.ts +0 -148
  588. package/dist/core/interfaces/cipher/i-file-system.d.ts +0 -79
  589. package/dist/core/interfaces/cipher/i-history-storage.d.ts +0 -53
  590. package/dist/core/interfaces/cipher/i-llm-service.d.ts +0 -61
  591. package/dist/core/interfaces/cipher/i-process-service.d.ts +0 -65
  592. package/dist/core/interfaces/cipher/i-session-persistence.d.ts +0 -133
  593. package/dist/core/interfaces/cipher/i-system-prompt-contributor.d.ts +0 -25
  594. package/dist/core/interfaces/cipher/i-todo-storage.d.ts +0 -24
  595. package/dist/core/interfaces/cipher/i-tool-plugin.d.ts +0 -90
  596. package/dist/core/interfaces/cipher/i-tool-provider.d.ts +0 -65
  597. package/dist/core/interfaces/cipher/index.d.ts +0 -32
  598. package/dist/core/interfaces/connectors/connector-types.d.ts +0 -70
  599. package/dist/core/interfaces/connectors/i-connector-manager.d.ts +0 -72
  600. package/dist/core/interfaces/connectors/i-connector.d.ts +0 -54
  601. package/dist/core/interfaces/executor/i-curate-executor.d.ts +0 -36
  602. package/dist/core/interfaces/executor/i-query-executor.d.ts +0 -32
  603. package/dist/core/interfaces/executor/index.d.ts +0 -2
  604. package/dist/core/interfaces/executor/index.js +0 -2
  605. package/dist/core/interfaces/i-auth-service.d.ts +0 -35
  606. package/dist/core/interfaces/i-cogit-pull-service.d.ts +0 -23
  607. package/dist/core/interfaces/i-cogit-push-service.d.ts +0 -27
  608. package/dist/core/interfaces/i-context-file-reader.d.ts +0 -35
  609. package/dist/core/interfaces/i-context-tree-snapshot-service.d.ts +0 -36
  610. package/dist/core/interfaces/i-context-tree-writer-service.d.ts +0 -32
  611. package/dist/core/interfaces/i-global-config-store.d.ts +0 -34
  612. package/dist/core/interfaces/i-http-client.d.ts +0 -33
  613. package/dist/core/interfaces/i-legacy-rule-detector.d.ts +0 -56
  614. package/dist/core/interfaces/i-mcp-config-writer.d.ts +0 -40
  615. package/dist/core/interfaces/i-memory-retrieval-service.d.ts +0 -39
  616. package/dist/core/interfaces/i-memory-storage-service.d.ts +0 -53
  617. package/dist/core/interfaces/i-project-config-store.d.ts +0 -26
  618. package/dist/core/interfaces/i-rule-template-service.d.ts +0 -15
  619. package/dist/core/interfaces/i-space-service.d.ts +0 -27
  620. package/dist/core/interfaces/i-team-service.d.ts +0 -28
  621. package/dist/core/interfaces/i-token-store.d.ts +0 -22
  622. package/dist/core/interfaces/i-tracking-service.d.ts +0 -21
  623. package/dist/core/interfaces/i-user-service.d.ts +0 -13
  624. package/dist/core/interfaces/i-workspace-detector-service.d.ts +0 -8
  625. package/dist/core/interfaces/noop-implementations.d.ts +0 -53
  626. package/dist/core/interfaces/transport/i-transport-client.d.ts +0 -104
  627. package/dist/core/interfaces/transport/index.d.ts +0 -2
  628. package/dist/core/interfaces/transport/index.js +0 -2
  629. package/dist/core/interfaces/usecase/i-curate-use-case.d.ts +0 -12
  630. package/dist/infra/auth/oauth-service.d.ts +0 -64
  631. package/dist/infra/auth/oidc-discovery-service.d.ts +0 -51
  632. package/dist/infra/browser/system-browser-launcher.d.ts +0 -10
  633. package/dist/infra/cipher/agent/agent-error.d.ts +0 -54
  634. package/dist/infra/cipher/agent/agent-error.js +0 -79
  635. package/dist/infra/cipher/agent/agent-schemas.d.ts +0 -264
  636. package/dist/infra/cipher/agent/agent-state-manager.d.ts +0 -140
  637. package/dist/infra/cipher/agent/base-agent.d.ts +0 -118
  638. package/dist/infra/cipher/agent/cipher-agent.d.ts +0 -173
  639. package/dist/infra/cipher/agent/cipher-agent.js +0 -566
  640. package/dist/infra/cipher/agent/service-initializer.d.ts +0 -79
  641. package/dist/infra/cipher/agent/service-initializer.js +0 -284
  642. package/dist/infra/cipher/agent/types.d.ts +0 -35
  643. package/dist/infra/cipher/blob/blob-reference-resolver.d.ts +0 -107
  644. package/dist/infra/cipher/blob/blob-storage-factory.d.ts +0 -13
  645. package/dist/infra/cipher/blob/index.d.ts +0 -10
  646. package/dist/infra/cipher/blob/index.js +0 -12
  647. package/dist/infra/cipher/blob/migrations.d.ts +0 -63
  648. package/dist/infra/cipher/blob/sqlite-blob-storage.d.ts +0 -82
  649. package/dist/infra/cipher/blob/sqlite-blob-storage.js +0 -307
  650. package/dist/infra/cipher/display/todo-display.d.ts +0 -23
  651. package/dist/infra/cipher/events/event-emitter.d.ts +0 -137
  652. package/dist/infra/cipher/file-system/binary-utils.d.ts +0 -51
  653. package/dist/infra/cipher/file-system/binary-utils.js +0 -202
  654. package/dist/infra/cipher/file-system/file-system-service.d.ts +0 -134
  655. package/dist/infra/cipher/file-system/file-system-service.js +0 -1021
  656. package/dist/infra/cipher/file-system/path-validator.d.ts +0 -101
  657. package/dist/infra/cipher/file-system/path-validator.js +0 -289
  658. package/dist/infra/cipher/file-system/pdf-extractor.d.ts +0 -100
  659. package/dist/infra/cipher/file-system/pdf-extractor.js +0 -226
  660. package/dist/infra/cipher/http/internal-llm-http-service.d.ts +0 -133
  661. package/dist/infra/cipher/http/internal-llm-http-service.js +0 -265
  662. package/dist/infra/cipher/interactive-commands.d.ts +0 -16
  663. package/dist/infra/cipher/interactive-loop.d.ts +0 -24
  664. package/dist/infra/cipher/llm/capability-cache.d.ts +0 -87
  665. package/dist/infra/cipher/llm/capability-cache.js +0 -125
  666. package/dist/infra/cipher/llm/context/compaction/compaction-service.d.ts +0 -138
  667. package/dist/infra/cipher/llm/context/compression/enhanced-compaction.d.ts +0 -112
  668. package/dist/infra/cipher/llm/context/compression/filter-compacted.d.ts +0 -83
  669. package/dist/infra/cipher/llm/context/compression/middle-removal.d.ts +0 -40
  670. package/dist/infra/cipher/llm/context/compression/middle-removal.js +0 -76
  671. package/dist/infra/cipher/llm/context/compression/oldest-removal.d.ts +0 -38
  672. package/dist/infra/cipher/llm/context/compression/oldest-removal.js +0 -53
  673. package/dist/infra/cipher/llm/context/compression/reactive-overflow.d.ts +0 -107
  674. package/dist/infra/cipher/llm/context/compression/reactive-overflow.js +0 -272
  675. package/dist/infra/cipher/llm/context/compression/types.d.ts +0 -36
  676. package/dist/infra/cipher/llm/context/context-manager.d.ts +0 -332
  677. package/dist/infra/cipher/llm/context/context-manager.js +0 -671
  678. package/dist/infra/cipher/llm/context/utils.d.ts +0 -17
  679. package/dist/infra/cipher/llm/formatters/claude-formatter.d.ts +0 -54
  680. package/dist/infra/cipher/llm/formatters/gemini-formatter.d.ts +0 -82
  681. package/dist/infra/cipher/llm/formatters/openrouter-formatter.d.ts +0 -47
  682. package/dist/infra/cipher/llm/formatters/openrouter-formatter.js +0 -238
  683. package/dist/infra/cipher/llm/generators/byterover-content-generator.d.ts +0 -91
  684. package/dist/infra/cipher/llm/generators/logging-content-generator.d.ts +0 -104
  685. package/dist/infra/cipher/llm/generators/logging-content-generator.js +0 -182
  686. package/dist/infra/cipher/llm/generators/openrouter-content-generator.d.ts +0 -94
  687. package/dist/infra/cipher/llm/generators/retryable-content-generator.d.ts +0 -90
  688. package/dist/infra/cipher/llm/generators/retryable-content-generator.js +0 -157
  689. package/dist/infra/cipher/llm/index.d.ts +0 -9
  690. package/dist/infra/cipher/llm/index.js +0 -13
  691. package/dist/infra/cipher/llm/internal-llm-service.d.ts +0 -362
  692. package/dist/infra/cipher/llm/internal-llm-service.js +0 -1059
  693. package/dist/infra/cipher/llm/openrouter-llm-service.d.ts +0 -215
  694. package/dist/infra/cipher/llm/openrouter-llm-service.js +0 -572
  695. package/dist/infra/cipher/llm/response-validator.d.ts +0 -89
  696. package/dist/infra/cipher/llm/sanitization/tool-sanitizer.d.ts +0 -74
  697. package/dist/infra/cipher/llm/sanitization/tool-sanitizer.js +0 -398
  698. package/dist/infra/cipher/llm/stream-processor.d.ts +0 -178
  699. package/dist/infra/cipher/llm/thought-parser.js +0 -217
  700. package/dist/infra/cipher/llm/tokenizers/claude-tokenizer.d.ts +0 -40
  701. package/dist/infra/cipher/llm/tokenizers/claude-tokenizer.js +0 -48
  702. package/dist/infra/cipher/llm/tokenizers/default-tokenizer.d.ts +0 -31
  703. package/dist/infra/cipher/llm/tokenizers/gemini-tokenizer.d.ts +0 -38
  704. package/dist/infra/cipher/llm/tokenizers/gemini-tokenizer.js +0 -46
  705. package/dist/infra/cipher/llm/tokenizers/openrouter-tokenizer.d.ts +0 -37
  706. package/dist/infra/cipher/llm/tokenizers/openrouter-tokenizer.js +0 -49
  707. package/dist/infra/cipher/llm/tool-output-processor.d.ts +0 -178
  708. package/dist/infra/cipher/llm/transformers/openrouter-stream-transformer.d.ts +0 -49
  709. package/dist/infra/cipher/llm/transformers/openrouter-stream-transformer.js +0 -272
  710. package/dist/infra/cipher/logger/console-logger.d.ts +0 -42
  711. package/dist/infra/cipher/logger/event-based-logger.d.ts +0 -54
  712. package/dist/infra/cipher/memory/index.d.ts +0 -6
  713. package/dist/infra/cipher/memory/index.js +0 -7
  714. package/dist/infra/cipher/memory/memory-manager.d.ts +0 -136
  715. package/dist/infra/cipher/memory/memory-manager.js +0 -523
  716. package/dist/infra/cipher/process/command-validator.d.ts +0 -82
  717. package/dist/infra/cipher/process/process-service.d.ts +0 -127
  718. package/dist/infra/cipher/process/process-service.js +0 -528
  719. package/dist/infra/cipher/session/chat-session.d.ts +0 -141
  720. package/dist/infra/cipher/session/chat-session.js +0 -372
  721. package/dist/infra/cipher/session/index.d.ts +0 -7
  722. package/dist/infra/cipher/session/index.js +0 -7
  723. package/dist/infra/cipher/session/session-manager.d.ts +0 -210
  724. package/dist/infra/cipher/session/session-metadata-store.d.ts +0 -52
  725. package/dist/infra/cipher/session/session-metadata-store.js +0 -406
  726. package/dist/infra/cipher/session/session-status.d.ts +0 -137
  727. package/dist/infra/cipher/storage/blob-history-storage.d.ts +0 -76
  728. package/dist/infra/cipher/storage/dual-format-history-storage.d.ts +0 -77
  729. package/dist/infra/cipher/storage/granular-history-storage.d.ts +0 -65
  730. package/dist/infra/cipher/storage/message-storage-service.d.ts +0 -171
  731. package/dist/infra/cipher/storage/message-storage-service.js +0 -779
  732. package/dist/infra/cipher/storage/sqlite-key-storage.d.ts +0 -105
  733. package/dist/infra/cipher/storage/sqlite-key-storage.js +0 -404
  734. package/dist/infra/cipher/storage/tool-part-factory.d.ts +0 -116
  735. package/dist/infra/cipher/system-prompt/contributors/agent-prompt-contributor.d.ts +0 -59
  736. package/dist/infra/cipher/system-prompt/contributors/agent-prompt-contributor.js +0 -131
  737. package/dist/infra/cipher/system-prompt/contributors/companion-contributor.d.ts +0 -54
  738. package/dist/infra/cipher/system-prompt/contributors/companion-contributor.js +0 -107
  739. package/dist/infra/cipher/system-prompt/contributors/context-tree-structure-contributor.d.ts +0 -67
  740. package/dist/infra/cipher/system-prompt/contributors/context-tree-structure-contributor.js +0 -220
  741. package/dist/infra/cipher/system-prompt/contributors/datetime-contributor.d.ts +0 -25
  742. package/dist/infra/cipher/system-prompt/contributors/environment-contributor.d.ts +0 -25
  743. package/dist/infra/cipher/system-prompt/contributors/file-contributor.d.ts +0 -60
  744. package/dist/infra/cipher/system-prompt/contributors/file-contributor.js +0 -128
  745. package/dist/infra/cipher/system-prompt/contributors/memory-contributor.d.ts +0 -40
  746. package/dist/infra/cipher/system-prompt/contributors/static-contributor.d.ts +0 -26
  747. package/dist/infra/cipher/system-prompt/environment-context-builder.d.ts +0 -112
  748. package/dist/infra/cipher/system-prompt/environment-context-builder.js +0 -256
  749. package/dist/infra/cipher/system-prompt/schemas.d.ts +0 -151
  750. package/dist/infra/cipher/system-prompt/system-prompt-manager.d.ts +0 -136
  751. package/dist/infra/cipher/system-prompt/system-prompt-manager.js +0 -307
  752. package/dist/infra/cipher/todos/todo-storage-service.d.ts +0 -26
  753. package/dist/infra/cipher/tools/core-tool-scheduler.d.ts +0 -99
  754. package/dist/infra/cipher/tools/core-tool-scheduler.js +0 -165
  755. package/dist/infra/cipher/tools/default-policy-rules.d.ts +0 -26
  756. package/dist/infra/cipher/tools/implementations/bash-exec-tool.d.ts +0 -13
  757. package/dist/infra/cipher/tools/implementations/bash-exec-tool.js +0 -110
  758. package/dist/infra/cipher/tools/implementations/bash-output-tool.d.ts +0 -12
  759. package/dist/infra/cipher/tools/implementations/bash-output-tool.js +0 -43
  760. package/dist/infra/cipher/tools/implementations/batch-tool.d.ts +0 -12
  761. package/dist/infra/cipher/tools/implementations/batch-tool.js +0 -142
  762. package/dist/infra/cipher/tools/implementations/create-knowledge-topic-tool.d.ts +0 -11
  763. package/dist/infra/cipher/tools/implementations/create-knowledge-topic-tool.js +0 -149
  764. package/dist/infra/cipher/tools/implementations/curate-tool.d.ts +0 -3
  765. package/dist/infra/cipher/tools/implementations/curate-tool.js +0 -927
  766. package/dist/infra/cipher/tools/implementations/delete-memory-tool.d.ts +0 -12
  767. package/dist/infra/cipher/tools/implementations/delete-memory-tool.js +0 -37
  768. package/dist/infra/cipher/tools/implementations/edit-file-tool.d.ts +0 -13
  769. package/dist/infra/cipher/tools/implementations/edit-file-tool.js +0 -50
  770. package/dist/infra/cipher/tools/implementations/edit-memory-tool.d.ts +0 -13
  771. package/dist/infra/cipher/tools/implementations/edit-memory-tool.js +0 -53
  772. package/dist/infra/cipher/tools/implementations/glob-files-tool.d.ts +0 -18
  773. package/dist/infra/cipher/tools/implementations/glob-files-tool.js +0 -70
  774. package/dist/infra/cipher/tools/implementations/grep-content-tool.d.ts +0 -12
  775. package/dist/infra/cipher/tools/implementations/grep-content-tool.js +0 -77
  776. package/dist/infra/cipher/tools/implementations/kill-process-tool.d.ts +0 -12
  777. package/dist/infra/cipher/tools/implementations/kill-process-tool.js +0 -55
  778. package/dist/infra/cipher/tools/implementations/list-directory-tool.d.ts +0 -12
  779. package/dist/infra/cipher/tools/implementations/list-directory-tool.js +0 -52
  780. package/dist/infra/cipher/tools/implementations/list-memories-tool.d.ts +0 -12
  781. package/dist/infra/cipher/tools/implementations/list-memories-tool.js +0 -63
  782. package/dist/infra/cipher/tools/implementations/read-file-tool.d.ts +0 -19
  783. package/dist/infra/cipher/tools/implementations/read-file-tool.js +0 -96
  784. package/dist/infra/cipher/tools/implementations/read-memory-tool.d.ts +0 -12
  785. package/dist/infra/cipher/tools/implementations/read-memory-tool.js +0 -39
  786. package/dist/infra/cipher/tools/implementations/read-todos-tool.d.ts +0 -11
  787. package/dist/infra/cipher/tools/implementations/read-todos-tool.js +0 -39
  788. package/dist/infra/cipher/tools/implementations/search-history-tool.d.ts +0 -10
  789. package/dist/infra/cipher/tools/implementations/search-history-tool.js +0 -36
  790. package/dist/infra/cipher/tools/implementations/search-knowledge-tool.d.ts +0 -7
  791. package/dist/infra/cipher/tools/implementations/search-knowledge-tool.js +0 -303
  792. package/dist/infra/cipher/tools/implementations/spec-analyze-tool.d.ts +0 -7
  793. package/dist/infra/cipher/tools/implementations/spec-analyze-tool.js +0 -78
  794. package/dist/infra/cipher/tools/implementations/task-tool.d.ts +0 -34
  795. package/dist/infra/cipher/tools/implementations/task-tool.js +0 -254
  796. package/dist/infra/cipher/tools/implementations/write-file-tool.d.ts +0 -12
  797. package/dist/infra/cipher/tools/implementations/write-file-tool.js +0 -52
  798. package/dist/infra/cipher/tools/implementations/write-memory-tool.d.ts +0 -13
  799. package/dist/infra/cipher/tools/implementations/write-memory-tool.js +0 -52
  800. package/dist/infra/cipher/tools/implementations/write-todos-tool.d.ts +0 -13
  801. package/dist/infra/cipher/tools/implementations/write-todos-tool.js +0 -121
  802. package/dist/infra/cipher/tools/index.d.ts +0 -19
  803. package/dist/infra/cipher/tools/index.js +0 -20
  804. package/dist/infra/cipher/tools/plugins/logging-plugin.d.ts +0 -28
  805. package/dist/infra/cipher/tools/plugins/plugin-manager.d.ts +0 -81
  806. package/dist/infra/cipher/tools/plugins/plugin-manager.js +0 -122
  807. package/dist/infra/cipher/tools/policy-engine.d.ts +0 -80
  808. package/dist/infra/cipher/tools/streaming/metadata-handler.d.ts +0 -31
  809. package/dist/infra/cipher/tools/tool-description-loader.js +0 -108
  810. package/dist/infra/cipher/tools/tool-invocation.d.ts +0 -216
  811. package/dist/infra/cipher/tools/tool-invocation.js +0 -294
  812. package/dist/infra/cipher/tools/tool-manager.d.ts +0 -175
  813. package/dist/infra/cipher/tools/tool-manager.js +0 -333
  814. package/dist/infra/cipher/tools/tool-provider-getter.d.ts +0 -6
  815. package/dist/infra/cipher/tools/tool-provider.d.ts +0 -102
  816. package/dist/infra/cipher/tools/tool-provider.js +0 -252
  817. package/dist/infra/cipher/tools/tool-registry.d.ts +0 -75
  818. package/dist/infra/cipher/tools/tool-registry.js +0 -200
  819. package/dist/infra/cipher/tools/utils/schema-converter.d.ts +0 -10
  820. package/dist/infra/cipher/tools/utils/schema-converter.js +0 -29
  821. package/dist/infra/cogit/context-tree-to-push-context-mapper.d.ts +0 -21
  822. package/dist/infra/cogit/http-cogit-pull-service.d.ts +0 -15
  823. package/dist/infra/cogit/http-cogit-push-service.d.ts +0 -17
  824. package/dist/infra/config/file-config-store.d.ts +0 -19
  825. package/dist/infra/connectors/connector-manager.d.ts +0 -32
  826. package/dist/infra/connectors/connector-manager.js +0 -160
  827. package/dist/infra/connectors/hook/hook-connector.d.ts +0 -46
  828. package/dist/infra/connectors/hook/hook-connector.js +0 -231
  829. package/dist/infra/connectors/mcp/json-mcp-config-writer.d.ts +0 -26
  830. package/dist/infra/connectors/mcp/mcp-connector.d.ts +0 -80
  831. package/dist/infra/connectors/mcp/mcp-connector.js +0 -324
  832. package/dist/infra/connectors/mcp/toml-mcp-config-writer.d.ts +0 -45
  833. package/dist/infra/connectors/rules/legacy-rule-detector.d.ts +0 -21
  834. package/dist/infra/connectors/rules/rules-connector-config.d.ts +0 -99
  835. package/dist/infra/connectors/rules/rules-connector.d.ts +0 -34
  836. package/dist/infra/connectors/rules/rules-connector.js +0 -139
  837. package/dist/infra/connectors/shared/rule-file-manager.d.ts +0 -72
  838. package/dist/infra/connectors/shared/template-service.d.ts +0 -27
  839. package/dist/infra/connectors/skill/skill-connector.d.ts +0 -39
  840. package/dist/infra/connectors/skill/skill-connector.js +0 -160
  841. package/dist/infra/connectors/skill/skill-content-loader.d.ts +0 -18
  842. package/dist/infra/connectors/skill/skill-content-loader.js +0 -33
  843. package/dist/infra/context-tree/file-context-file-reader.d.ts +0 -14
  844. package/dist/infra/context-tree/file-context-tree-service.d.ts +0 -14
  845. package/dist/infra/context-tree/file-context-tree-snapshot-service.d.ts +0 -34
  846. package/dist/infra/context-tree/file-context-tree-writer-service.d.ts +0 -28
  847. package/dist/infra/context-tree/path-utils.d.ts +0 -7
  848. package/dist/infra/context-tree/path-utils.js +0 -7
  849. package/dist/infra/core/executors/curate-executor.d.ts +0 -30
  850. package/dist/infra/core/executors/curate-executor.js +0 -88
  851. package/dist/infra/core/executors/index.d.ts +0 -2
  852. package/dist/infra/core/executors/index.js +0 -2
  853. package/dist/infra/core/executors/query-executor.d.ts +0 -29
  854. package/dist/infra/core/executors/query-executor.js +0 -87
  855. package/dist/infra/core/task-processor.d.ts +0 -83
  856. package/dist/infra/core/task-processor.js +0 -116
  857. package/dist/infra/file/fs-file-service.d.ts +0 -44
  858. package/dist/infra/http/authenticated-http-client.d.ts +0 -65
  859. package/dist/infra/http/authenticated-http-client.js +0 -138
  860. package/dist/infra/http/callback-handler.d.ts +0 -13
  861. package/dist/infra/mcp/mcp-server.js +0 -178
  862. package/dist/infra/mcp/tools/brv-curate-tool.d.ts +0 -29
  863. package/dist/infra/mcp/tools/brv-curate-tool.js +0 -73
  864. package/dist/infra/mcp/tools/brv-query-tool.d.ts +0 -17
  865. package/dist/infra/mcp/tools/brv-query-tool.js +0 -68
  866. package/dist/infra/mcp/tools/task-result-waiter.d.ts +0 -30
  867. package/dist/infra/memory/http-memory-retrieval-service.d.ts +0 -18
  868. package/dist/infra/memory/http-memory-storage-service.d.ts +0 -18
  869. package/dist/infra/process/agent-worker.js +0 -1354
  870. package/dist/infra/process/inline-agent-executor.d.ts +0 -32
  871. package/dist/infra/process/inline-agent-executor.js +0 -259
  872. package/dist/infra/process/process-manager.js +0 -755
  873. package/dist/infra/process/transport-handlers.js +0 -470
  874. package/dist/infra/repl/commands/arg-parser.d.ts +0 -97
  875. package/dist/infra/repl/commands/arg-parser.js +0 -129
  876. package/dist/infra/repl/commands/connectors-command.d.ts +0 -8
  877. package/dist/infra/repl/commands/connectors-command.js +0 -49
  878. package/dist/infra/repl/commands/curate-command.d.ts +0 -9
  879. package/dist/infra/repl/commands/curate-command.js +0 -83
  880. package/dist/infra/repl/commands/index.d.ts +0 -8
  881. package/dist/infra/repl/commands/index.js +0 -45
  882. package/dist/infra/repl/commands/init-command.d.ts +0 -7
  883. package/dist/infra/repl/commands/init-command.js +0 -87
  884. package/dist/infra/repl/commands/login-command.d.ts +0 -7
  885. package/dist/infra/repl/commands/login-command.js +0 -50
  886. package/dist/infra/repl/commands/logout-command.d.ts +0 -5
  887. package/dist/infra/repl/commands/logout-command.js +0 -48
  888. package/dist/infra/repl/commands/model-command.d.ts +0 -13
  889. package/dist/infra/repl/commands/model-command.js +0 -212
  890. package/dist/infra/repl/commands/new-command.d.ts +0 -14
  891. package/dist/infra/repl/commands/new-command.js +0 -61
  892. package/dist/infra/repl/commands/provider-command.d.ts +0 -13
  893. package/dist/infra/repl/commands/provider-command.js +0 -181
  894. package/dist/infra/repl/commands/pull-command.d.ts +0 -5
  895. package/dist/infra/repl/commands/pull-command.js +0 -61
  896. package/dist/infra/repl/commands/push-command.d.ts +0 -5
  897. package/dist/infra/repl/commands/push-command.js +0 -66
  898. package/dist/infra/repl/commands/query-command.d.ts +0 -5
  899. package/dist/infra/repl/commands/query-command.js +0 -83
  900. package/dist/infra/repl/commands/reset-command.d.ts +0 -5
  901. package/dist/infra/repl/commands/reset-command.js +0 -61
  902. package/dist/infra/repl/commands/space/index.d.ts +0 -5
  903. package/dist/infra/repl/commands/space/index.js +0 -14
  904. package/dist/infra/repl/commands/space/list-command.d.ts +0 -5
  905. package/dist/infra/repl/commands/space/list-command.js +0 -70
  906. package/dist/infra/repl/commands/space/switch-command.d.ts +0 -5
  907. package/dist/infra/repl/commands/space/switch-command.js +0 -35
  908. package/dist/infra/repl/commands/status-command.d.ts +0 -5
  909. package/dist/infra/repl/commands/status-command.js +0 -39
  910. package/dist/infra/repl/repl-startup.d.ts +0 -22
  911. package/dist/infra/repl/repl-startup.js +0 -33
  912. package/dist/infra/repl/transport-client-helper.d.ts +0 -9
  913. package/dist/infra/repl/transport-client-helper.js +0 -100
  914. package/dist/infra/space/http-space-service.d.ts +0 -20
  915. package/dist/infra/space/http-space-service.js +0 -68
  916. package/dist/infra/storage/file-global-config-store.d.ts +0 -22
  917. package/dist/infra/storage/file-onboarding-preference-store.d.ts +0 -10
  918. package/dist/infra/storage/file-token-store.d.ts +0 -31
  919. package/dist/infra/storage/keychain-token-store.d.ts +0 -13
  920. package/dist/infra/storage/token-store.d.ts +0 -11
  921. package/dist/infra/team/http-team-service.d.ts +0 -21
  922. package/dist/infra/template/fs-template-loader.d.ts +0 -33
  923. package/dist/infra/terminal/headless-terminal.d.ts +0 -91
  924. package/dist/infra/terminal/oclif-terminal.d.ts +0 -19
  925. package/dist/infra/terminal/repl-terminal.d.ts +0 -31
  926. package/dist/infra/tracking/mixpanel-tracking-service.d.ts +0 -24
  927. package/dist/infra/transport/index.d.ts +0 -4
  928. package/dist/infra/transport/index.js +0 -4
  929. package/dist/infra/transport/socket-io-transport-client.d.ts +0 -149
  930. package/dist/infra/transport/socket-io-transport-client.js +0 -677
  931. package/dist/infra/transport/transport-client-factory.d.ts +0 -76
  932. package/dist/infra/transport/transport-client-factory.js +0 -168
  933. package/dist/infra/transport/transport-factory.d.ts +0 -33
  934. package/dist/infra/transport/transport-factory.js +0 -59
  935. package/dist/infra/usecase/connectors-use-case.d.ts +0 -63
  936. package/dist/infra/usecase/connectors-use-case.js +0 -228
  937. package/dist/infra/usecase/curate-use-case.d.ts +0 -58
  938. package/dist/infra/usecase/curate-use-case.js +0 -264
  939. package/dist/infra/usecase/init-use-case.d.ts +0 -126
  940. package/dist/infra/usecase/login-use-case.d.ts +0 -30
  941. package/dist/infra/usecase/logout-use-case.d.ts +0 -22
  942. package/dist/infra/usecase/logout-use-case.js +0 -51
  943. package/dist/infra/usecase/pull-use-case.d.ts +0 -49
  944. package/dist/infra/usecase/pull-use-case.js +0 -147
  945. package/dist/infra/usecase/push-use-case.d.ts +0 -50
  946. package/dist/infra/usecase/push-use-case.js +0 -191
  947. package/dist/infra/usecase/query-use-case.d.ts +0 -72
  948. package/dist/infra/usecase/query-use-case.js +0 -411
  949. package/dist/infra/usecase/reset-use-case.d.ts +0 -21
  950. package/dist/infra/usecase/space-list-use-case.d.ts +0 -27
  951. package/dist/infra/usecase/space-switch-use-case.d.ts +0 -26
  952. package/dist/infra/usecase/space-switch-use-case.js +0 -110
  953. package/dist/infra/usecase/status-use-case.d.ts +0 -73
  954. package/dist/infra/usecase/status-use-case.js +0 -287
  955. package/dist/infra/user/http-user-service.d.ts +0 -12
  956. package/dist/infra/user/http-user-service.js +0 -22
  957. package/dist/infra/workspace/workspace-detector-service.d.ts +0 -57
  958. package/dist/resources/prompts/curate.yml +0 -238
  959. package/dist/resources/prompts/explore.yml +0 -112
  960. package/dist/resources/prompts/plan.yml +0 -120
  961. package/dist/resources/prompts/query-orchestrator.yml +0 -112
  962. package/dist/resources/prompts/system-prompt.yml +0 -99
  963. package/dist/resources/tools/task.txt +0 -23
  964. package/dist/templates/sections/brv-instructions.md +0 -98
  965. package/dist/tui/components/execution/expanded-message-view.d.ts +0 -24
  966. package/dist/tui/components/execution/expanded-message-view.js +0 -68
  967. package/dist/tui/components/onboarding/onboarding-flow.d.ts +0 -15
  968. package/dist/tui/components/onboarding/onboarding-flow.js +0 -103
  969. package/dist/tui/contexts/status-context.d.ts +0 -33
  970. package/dist/tui/contexts/status-context.js +0 -159
  971. package/dist/tui/hooks/use-tab-navigation.d.ts +0 -11
  972. package/dist/tui/hooks/use-tab-navigation.js +0 -42
  973. package/dist/tui/views/command-view.d.ts +0 -19
  974. package/dist/tui/views/command-view.js +0 -479
  975. package/dist/tui/views/logs-view.d.ts +0 -32
  976. package/dist/tui/views/logs-view.js +0 -90
  977. package/dist/utils/connection-error-handler.d.ts +0 -16
  978. package/dist/utils/connection-error-handler.js +0 -49
  979. package/dist/utils/file-validator.js +0 -84
  980. package/dist/utils/type-guards.d.ts +0 -16
  981. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-info.d.ts +0 -0
  982. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-info.js +0 -0
  983. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state-machine.d.ts +0 -0
  984. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state-machine.js +0 -0
  985. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state.d.ts +0 -0
  986. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state.js +0 -0
  987. /package/dist/{infra/cipher → agent/core/domain/agent}/exit-codes.d.ts +0 -0
  988. /package/dist/{infra/cipher → agent/core/domain/agent}/exit-codes.js +0 -0
  989. /package/dist/{core/domain/cipher → agent/core/domain}/agent/index.d.ts +0 -0
  990. /package/dist/{core/domain/cipher → agent/core/domain}/agent/index.js +0 -0
  991. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/index.d.ts +0 -0
  992. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/index.js +0 -0
  993. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/types.d.ts +0 -0
  994. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/types.js +0 -0
  995. /package/dist/{core/domain/cipher → agent/core/domain}/blob/types.d.ts +0 -0
  996. /package/dist/{core/domain/cipher → agent/core/domain}/blob/types.js +0 -0
  997. /package/dist/{core/domain/cipher/file-system → agent/core/domain/environment}/types.js +0 -0
  998. /package/dist/{core/domain/cipher → agent/core/domain}/errors/blob-error.d.ts +0 -0
  999. /package/dist/{core/domain/cipher → agent/core/domain}/errors/blob-error.js +0 -0
  1000. /package/dist/{core/domain/cipher → agent/core/domain}/errors/error-normalizer.d.ts +0 -0
  1001. /package/dist/{core/domain/cipher → agent/core/domain}/errors/error-normalizer.js +0 -0
  1002. /package/dist/{core/domain/cipher → agent/core/domain}/errors/file-system-error.d.ts +0 -0
  1003. /package/dist/{core/domain/cipher → agent/core/domain}/errors/file-system-error.js +0 -0
  1004. /package/dist/{core/domain/cipher → agent/core/domain}/errors/llm-error.d.ts +0 -0
  1005. /package/dist/{core/domain/cipher → agent/core/domain}/errors/llm-error.js +0 -0
  1006. /package/dist/{core/domain/cipher → agent/core/domain}/errors/memory-error.d.ts +0 -0
  1007. /package/dist/{core/domain/cipher → agent/core/domain}/errors/memory-error.js +0 -0
  1008. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error-code.d.ts +0 -0
  1009. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error-code.js +0 -0
  1010. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error.d.ts +0 -0
  1011. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error.js +0 -0
  1012. /package/dist/{core/domain/cipher → agent/core/domain}/errors/session-error.d.ts +0 -0
  1013. /package/dist/{core/domain/cipher → agent/core/domain}/errors/session-error.js +0 -0
  1014. /package/dist/{core/domain/cipher → agent/core/domain}/errors/storage-error.d.ts +0 -0
  1015. /package/dist/{core/domain/cipher → agent/core/domain}/errors/storage-error.js +0 -0
  1016. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error-codes.d.ts +0 -0
  1017. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error-codes.js +0 -0
  1018. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error.d.ts +0 -0
  1019. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error.js +0 -0
  1020. /package/dist/{core/domain/cipher → agent/core/domain}/errors/tool-error.d.ts +0 -0
  1021. /package/dist/{core/domain/cipher → agent/core/domain}/errors/tool-error.js +0 -0
  1022. /package/dist/{core/domain/cipher → agent/core/domain}/file-system/types.d.ts +0 -0
  1023. /package/dist/{core/domain/cipher/process → agent/core/domain/file-system}/types.js +0 -0
  1024. /package/dist/{core/domain/cipher/session/types.js → agent/core/domain/folder-pack/index.js} +0 -0
  1025. /package/dist/{core/domain/cipher/system-prompt → agent/core/domain/folder-pack}/types.js +0 -0
  1026. /package/dist/{core/domain/cipher → agent/core/domain}/llm/error-codes.d.ts +0 -0
  1027. /package/dist/{core/domain/cipher → agent/core/domain}/llm/error-codes.js +0 -0
  1028. /package/dist/{core/domain/cipher → agent/core/domain}/llm/index.d.ts +0 -0
  1029. /package/dist/{core/domain/cipher → agent/core/domain}/llm/index.js +0 -0
  1030. /package/dist/{core/domain/cipher → agent/core/domain}/llm/registry.d.ts +0 -0
  1031. /package/dist/{core/domain/cipher → agent/core/domain}/llm/registry.js +0 -0
  1032. /package/dist/{core/domain/cipher → agent/core/domain}/llm/schemas.d.ts +0 -0
  1033. /package/dist/{core/domain/cipher → agent/core/domain}/llm/schemas.js +0 -0
  1034. /package/dist/{core/domain/cipher → agent/core/domain}/llm/types.d.ts +0 -0
  1035. /package/dist/{core/domain/cipher → agent/core/domain}/llm/types.js +0 -0
  1036. /package/dist/{core/domain/cipher → agent/core/domain}/memory/types.d.ts +0 -0
  1037. /package/dist/{core/domain/cipher → agent/core/domain}/memory/types.js +0 -0
  1038. /package/dist/{core/domain/cipher → agent/core/domain}/parsed-interaction.d.ts +0 -0
  1039. /package/dist/{core/domain/cipher → agent/core/domain}/parsed-interaction.js +0 -0
  1040. /package/dist/{core/domain/cipher → agent/core/domain}/process/types.d.ts +0 -0
  1041. /package/dist/{core/domain/cipher/tools → agent/core/domain/process}/types.js +0 -0
  1042. /package/dist/{core/domain/cipher → agent/core/domain}/queue/types.d.ts +0 -0
  1043. /package/dist/{core/domain/cipher → agent/core/domain}/queue/types.js +0 -0
  1044. /package/dist/{core/domain/cipher → agent/core/domain}/session/session-metadata.d.ts +0 -0
  1045. /package/dist/{core/domain/cipher → agent/core/domain}/session/session-metadata.js +0 -0
  1046. /package/dist/{core/domain/cipher → agent/core/domain}/session/types.d.ts +0 -0
  1047. /package/dist/{infra/cipher/agent → agent/core/domain/session}/types.js +0 -0
  1048. /package/dist/{core/domain/cipher → agent/core/domain}/storage/history-types.js +0 -0
  1049. /package/dist/{core/domain/cipher → agent/core/domain}/storage/message-storage-types.js +0 -0
  1050. /package/dist/{core/domain/cipher → agent/core/domain}/streaming/types.js +0 -0
  1051. /package/dist/{infra/cipher/llm/context/compression → agent/core/domain/system-prompt}/types.js +0 -0
  1052. /package/dist/{core/domain/cipher → agent/core/domain}/todos/index.d.ts +0 -0
  1053. /package/dist/{core/domain/cipher → agent/core/domain}/todos/index.js +0 -0
  1054. /package/dist/{core/domain/cipher → agent/core/domain}/todos/types.d.ts +0 -0
  1055. /package/dist/{core/domain/cipher → agent/core/domain}/todos/types.js +0 -0
  1056. /package/dist/{core/domain/cipher → agent/core/domain}/tools/tool-error.d.ts +0 -0
  1057. /package/dist/{core/domain/cipher → agent/core/domain}/tools/tool-error.js +0 -0
  1058. /package/dist/{core/domain/cipher → agent/core/domain}/tools/types.d.ts +0 -0
  1059. /package/dist/{core/interfaces/cipher/cipher-services.js → agent/core/domain/tools/types.js} +0 -0
  1060. /package/dist/{core/interfaces/cipher/i-blob-storage.js → agent/core/interfaces/cipher-services.js} +0 -0
  1061. /package/dist/{core/interfaces/cipher/i-chat-session.js → agent/core/interfaces/i-blob-storage.js} +0 -0
  1062. /package/dist/{core/interfaces/cipher/i-cipher-agent.js → agent/core/interfaces/i-chat-session.js} +0 -0
  1063. /package/dist/{core/interfaces/cipher/i-event-emitter.js → agent/core/interfaces/i-cipher-agent.js} +0 -0
  1064. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-content-generator.js +0 -0
  1065. /package/dist/{core/interfaces/cipher/i-file-system.js → agent/core/interfaces/i-document-parser-service.js} +0 -0
  1066. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-event-emitter.d.ts +0 -0
  1067. /package/dist/{core/interfaces/cipher/i-history-storage.js → agent/core/interfaces/i-event-emitter.js} +0 -0
  1068. /package/dist/{core/interfaces/cipher/i-key-storage.js → agent/core/interfaces/i-file-system.js} +0 -0
  1069. /package/dist/{core/interfaces/cipher/i-llm-provider.js → agent/core/interfaces/i-folder-pack-service.js} +0 -0
  1070. /package/dist/{core/interfaces/cipher/i-llm-service.js → agent/core/interfaces/i-history-storage.js} +0 -0
  1071. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-key-storage.d.ts +0 -0
  1072. /package/dist/{core/interfaces/cipher/i-message-formatter.js → agent/core/interfaces/i-key-storage.js} +0 -0
  1073. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-llm-provider.d.ts +0 -0
  1074. /package/dist/{core/interfaces/cipher/i-process-service.js → agent/core/interfaces/i-llm-provider.js} +0 -0
  1075. /package/dist/{core/interfaces/cipher/i-system-prompt-contributor.js → agent/core/interfaces/i-llm-service.js} +0 -0
  1076. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-logger.d.ts +0 -0
  1077. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-logger.js +0 -0
  1078. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-message-formatter.d.ts +0 -0
  1079. /package/dist/{core/interfaces/cipher/i-todo-storage.js → agent/core/interfaces/i-message-formatter.js} +0 -0
  1080. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-policy-engine.d.ts +0 -0
  1081. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-policy-engine.js +0 -0
  1082. /package/dist/{core/interfaces/cipher/i-tokenizer.js → agent/core/interfaces/i-process-service.js} +0 -0
  1083. /package/dist/{core/interfaces/cipher/i-tool-plugin.js → agent/core/interfaces/i-sandbox-service.js} +0 -0
  1084. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-session-persistence.js +0 -0
  1085. /package/dist/{core/interfaces/cipher/i-tool-provider.js → agent/core/interfaces/i-system-prompt-contributor.js} +0 -0
  1086. /package/dist/{core/interfaces/connectors/connector-types.js → agent/core/interfaces/i-todo-storage.js} +0 -0
  1087. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-tokenizer.d.ts +0 -0
  1088. /package/dist/{core/interfaces/connectors/i-connector-manager.js → agent/core/interfaces/i-tokenizer.js} +0 -0
  1089. /package/dist/{core/interfaces/connectors/i-connector.js → agent/core/interfaces/i-tool-plugin.js} +0 -0
  1090. /package/dist/{core/interfaces/executor/i-curate-executor.js → agent/core/interfaces/i-tool-provider.js} +0 -0
  1091. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-tool-scheduler.d.ts +0 -0
  1092. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-tool-scheduler.js +0 -0
  1093. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/index.js +0 -0
  1094. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/llm-types.d.ts +0 -0
  1095. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/llm-types.js +0 -0
  1096. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-factory.d.ts +0 -0
  1097. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-factory.js +0 -0
  1098. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-type-guards.d.ts +0 -0
  1099. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-type-guards.js +0 -0
  1100. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-types.d.ts +0 -0
  1101. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-types.js +0 -0
  1102. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/sanitization-types.d.ts +0 -0
  1103. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/sanitization-types.js +0 -0
  1104. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/tokenizer-types.d.ts +0 -0
  1105. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/tokenizer-types.js +0 -0
  1106. /package/dist/{infra/cipher → agent/infra}/agent/agent-error-codes.d.ts +0 -0
  1107. /package/dist/{infra/cipher → agent/infra}/agent/agent-error-codes.js +0 -0
  1108. /package/dist/{infra/cipher → agent/infra}/agent/agent-schemas.js +0 -0
  1109. /package/dist/{infra/cipher → agent/infra}/agent/agent-state-manager.js +0 -0
  1110. /package/dist/{infra/cipher → agent/infra}/agent/base-agent.js +0 -0
  1111. /package/dist/{infra/cipher → agent/infra/agent}/command-parser.d.ts +0 -0
  1112. /package/dist/{infra/cipher → agent/infra/agent}/command-parser.js +0 -0
  1113. /package/dist/{infra/cipher → agent/infra}/agent/index.d.ts +0 -0
  1114. /package/dist/{infra/cipher → agent/infra}/agent/index.js +0 -0
  1115. /package/dist/{infra/cipher → agent/infra/agent}/interactive-commands.js +0 -0
  1116. /package/dist/{infra/cipher → agent/infra/agent}/interactive-loop.js +0 -0
  1117. /package/dist/{core/interfaces/executor/i-query-executor.js → agent/infra/agent/types.js} +0 -0
  1118. /package/dist/{infra/cipher → agent/infra}/blob/blob-reference-resolver.js +0 -0
  1119. /package/dist/{infra/cipher → agent/infra}/blob/blob-reference-utils.d.ts +0 -0
  1120. /package/dist/{infra/cipher → agent/infra}/blob/blob-reference-utils.js +0 -0
  1121. /package/dist/{infra/cipher → agent/infra}/blob/blob-storage-factory.js +0 -0
  1122. /package/dist/{infra/cipher → agent/infra}/blob/migrations.js +0 -0
  1123. /package/dist/{infra/cipher → agent/infra}/display/todo-display.js +0 -0
  1124. /package/dist/{infra/cipher → agent/infra}/events/event-emitter.js +0 -0
  1125. /package/dist/{infra/cipher → agent/infra}/file-system/context-tree-file-system-factory.d.ts +0 -0
  1126. /package/dist/{infra/cipher → agent/infra}/file-system/context-tree-file-system-factory.js +0 -0
  1127. /package/dist/{infra/cipher → agent/infra}/file-system/gitignore-filter.d.ts +0 -0
  1128. /package/dist/{infra/cipher → agent/infra}/file-system/gitignore-filter.js +0 -0
  1129. /package/dist/{infra/cipher → agent/infra}/file-system/glob-utils.d.ts +0 -0
  1130. /package/dist/{infra/cipher → agent/infra}/file-system/glob-utils.js +0 -0
  1131. /package/dist/{infra/cipher → agent/infra}/llm/context/async-mutex.d.ts +0 -0
  1132. /package/dist/{infra/cipher → agent/infra}/llm/context/async-mutex.js +0 -0
  1133. /package/dist/{infra/cipher → agent/infra}/llm/context/compaction/compaction-service.js +0 -0
  1134. /package/dist/{infra/cipher → agent/infra}/llm/context/compaction/index.d.ts +0 -0
  1135. /package/dist/{infra/cipher → agent/infra}/llm/context/compaction/index.js +0 -0
  1136. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/enhanced-compaction.js +0 -0
  1137. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/filter-compacted.js +0 -0
  1138. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/index.d.ts +0 -0
  1139. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/index.js +0 -0
  1140. /package/dist/{core/interfaces/i-auth-service.js → agent/infra/llm/context/compression/types.js} +0 -0
  1141. /package/dist/{infra/cipher → agent/infra}/llm/context/index.d.ts +0 -0
  1142. /package/dist/{infra/cipher → agent/infra}/llm/context/index.js +0 -0
  1143. /package/dist/{infra/cipher → agent/infra}/llm/context/loop-detector.d.ts +0 -0
  1144. /package/dist/{infra/cipher → agent/infra}/llm/context/loop-detector.js +0 -0
  1145. /package/dist/{infra/cipher → agent/infra}/llm/context/rw-lock.d.ts +0 -0
  1146. /package/dist/{infra/cipher → agent/infra}/llm/context/rw-lock.js +0 -0
  1147. /package/dist/{infra/cipher → agent/infra}/llm/context/utils.js +0 -0
  1148. /package/dist/{infra/cipher → agent/infra}/llm/formatters/claude-formatter.js +0 -0
  1149. /package/dist/{infra/cipher → agent/infra}/llm/formatters/gemini-formatter.js +0 -0
  1150. /package/dist/{infra/cipher → agent/infra}/llm/generators/byterover-content-generator.js +0 -0
  1151. /package/dist/{infra/cipher → agent/infra}/llm/generators/index.d.ts +0 -0
  1152. /package/dist/{infra/cipher → agent/infra}/llm/generators/index.js +0 -0
  1153. /package/dist/{infra/cipher → agent/infra}/llm/generators/openrouter-content-generator.js +0 -0
  1154. /package/dist/{infra/cipher → agent/infra}/llm/model-capabilities.d.ts +0 -0
  1155. /package/dist/{infra/cipher → agent/infra}/llm/model-capabilities.js +0 -0
  1156. /package/dist/{infra/cipher → agent/infra}/llm/response-validator.js +0 -0
  1157. /package/dist/{infra/cipher → agent/infra}/llm/retry/index.d.ts +0 -0
  1158. /package/dist/{infra/cipher → agent/infra}/llm/retry/index.js +0 -0
  1159. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-policy.d.ts +0 -0
  1160. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-policy.js +0 -0
  1161. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-with-backoff.d.ts +0 -0
  1162. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-with-backoff.js +0 -0
  1163. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/base64-utils.d.ts +0 -0
  1164. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/base64-utils.js +0 -0
  1165. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/index.d.ts +0 -0
  1166. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/index.js +0 -0
  1167. /package/dist/{infra/cipher → agent/infra}/llm/stream-processor.js +0 -0
  1168. /package/dist/{infra/cipher → agent/infra}/llm/thought-parser.d.ts +0 -0
  1169. /package/dist/{infra/cipher → agent/infra}/llm/tokenizers/default-tokenizer.js +0 -0
  1170. /package/dist/{infra/cipher → agent/infra}/llm/tool-output-processor.js +0 -0
  1171. /package/dist/{infra/cipher → agent/infra}/llm/transformers/reasoning-extractor.d.ts +0 -0
  1172. /package/dist/{infra/cipher → agent/infra}/llm/transformers/reasoning-extractor.js +0 -0
  1173. /package/dist/{infra/cipher → agent/infra}/logger/console-logger.js +0 -0
  1174. /package/dist/{infra/cipher → agent/infra}/logger/event-based-logger.js +0 -0
  1175. /package/dist/{infra/cipher → agent/infra}/process/command-validator.js +0 -0
  1176. /package/dist/{infra/cipher → agent/infra}/process/index.d.ts +0 -0
  1177. /package/dist/{infra/cipher → agent/infra}/process/index.js +0 -0
  1178. /package/dist/{infra/cipher → agent/infra}/process/path-utils.d.ts +0 -0
  1179. /package/dist/{infra/cipher → agent/infra}/process/path-utils.js +0 -0
  1180. /package/dist/{infra/cipher → agent/infra}/session/message-queue.d.ts +0 -0
  1181. /package/dist/{infra/cipher → agent/infra}/session/message-queue.js +0 -0
  1182. /package/dist/{infra/cipher → agent/infra}/session/session-event-forwarder.d.ts +0 -0
  1183. /package/dist/{infra/cipher → agent/infra}/session/session-event-forwarder.js +0 -0
  1184. /package/dist/{infra/cipher → agent/infra}/session/session-manager.js +0 -0
  1185. /package/dist/{infra/cipher → agent/infra}/session/session-status.js +0 -0
  1186. /package/dist/{infra/cipher → agent/infra}/session/title-generator.d.ts +0 -0
  1187. /package/dist/{infra/cipher → agent/infra}/session/title-generator.js +0 -0
  1188. /package/dist/{infra/cipher → agent/infra}/storage/blob-history-storage.js +0 -0
  1189. /package/dist/{infra/cipher → agent/infra}/storage/dual-format-history-storage.js +0 -0
  1190. /package/dist/{infra/cipher → agent/infra}/storage/granular-history-storage.js +0 -0
  1191. /package/dist/{infra/cipher → agent/infra}/storage/process-utils.d.ts +0 -0
  1192. /package/dist/{infra/cipher → agent/infra}/storage/process-utils.js +0 -0
  1193. /package/dist/{infra/cipher → agent/infra}/storage/tool-part-factory.js +0 -0
  1194. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributor-schemas.d.ts +0 -0
  1195. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributor-schemas.js +0 -0
  1196. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/datetime-contributor.js +0 -0
  1197. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/environment-contributor.js +0 -0
  1198. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/index.d.ts +0 -0
  1199. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/index.js +0 -0
  1200. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/memory-contributor.js +0 -0
  1201. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/static-contributor.js +0 -0
  1202. /package/dist/{infra/cipher → agent/infra}/system-prompt/prompt-cache.d.ts +0 -0
  1203. /package/dist/{infra/cipher → agent/infra}/system-prompt/prompt-cache.js +0 -0
  1204. /package/dist/{infra/cipher → agent/infra}/system-prompt/schemas.js +0 -0
  1205. /package/dist/{infra/cipher → agent/infra}/todos/todo-storage-service.js +0 -0
  1206. /package/dist/{infra/cipher → agent/infra}/tools/default-policy-rules.js +0 -0
  1207. /package/dist/{infra/cipher → agent/infra}/tools/plugins/index.d.ts +0 -0
  1208. /package/dist/{infra/cipher → agent/infra}/tools/plugins/index.js +0 -0
  1209. /package/dist/{infra/cipher → agent/infra}/tools/plugins/logging-plugin.js +0 -0
  1210. /package/dist/{infra/cipher → agent/infra}/tools/policy-engine.js +0 -0
  1211. /package/dist/{infra/cipher → agent/infra}/tools/streaming/index.d.ts +0 -0
  1212. /package/dist/{infra/cipher → agent/infra}/tools/streaming/index.js +0 -0
  1213. /package/dist/{infra/cipher → agent/infra}/tools/streaming/metadata-handler.js +0 -0
  1214. /package/dist/{infra/cipher → agent/infra}/tools/tool-description-loader.d.ts +0 -0
  1215. /package/dist/{infra/cipher → agent/infra}/tools/tool-invocation-queue.d.ts +0 -0
  1216. /package/dist/{infra/cipher → agent/infra}/tools/tool-invocation-queue.js +0 -0
  1217. /package/dist/{infra/cipher → agent/infra}/tools/tool-markers.d.ts +0 -0
  1218. /package/dist/{infra/cipher → agent/infra}/tools/tool-markers.js +0 -0
  1219. /package/dist/{infra/cipher → agent/infra}/tools/tool-provider-getter.js +0 -0
  1220. /package/dist/{infra/cipher → agent/infra}/validation/workspace-validator.d.ts +0 -0
  1221. /package/dist/{infra/cipher → agent/infra}/validation/workspace-validator.js +0 -0
  1222. /package/dist/{resources → agent/resources}/prompts/reflection.yml +0 -0
  1223. /package/dist/{resources → agent/resources}/prompts/tool-outputs.yml +0 -0
  1224. /package/dist/{resources → agent/resources}/tools/bash_exec.txt +0 -0
  1225. /package/dist/{resources → agent/resources}/tools/bash_output.txt +0 -0
  1226. /package/dist/{resources → agent/resources}/tools/batch.txt +0 -0
  1227. /package/dist/{resources → agent/resources}/tools/create_knowledge_topic.txt +0 -0
  1228. /package/dist/{resources → agent/resources}/tools/curate.txt +0 -0
  1229. /package/dist/{resources → agent/resources}/tools/delete_memory.txt +0 -0
  1230. /package/dist/{resources → agent/resources}/tools/detect_domains.txt +0 -0
  1231. /package/dist/{resources → agent/resources}/tools/edit_file.txt +0 -0
  1232. /package/dist/{resources → agent/resources}/tools/edit_memory.txt +0 -0
  1233. /package/dist/{resources → agent/resources}/tools/glob_files.txt +0 -0
  1234. /package/dist/{resources → agent/resources}/tools/grep_content.txt +0 -0
  1235. /package/dist/{resources → agent/resources}/tools/kill_process.txt +0 -0
  1236. /package/dist/{resources → agent/resources}/tools/list_directory.txt +0 -0
  1237. /package/dist/{resources → agent/resources}/tools/list_memories.txt +0 -0
  1238. /package/dist/{resources → agent/resources}/tools/read_file.txt +0 -0
  1239. /package/dist/{resources → agent/resources}/tools/read_memory.txt +0 -0
  1240. /package/dist/{resources → agent/resources}/tools/read_todos.txt +0 -0
  1241. /package/dist/{resources → agent/resources}/tools/search_history.txt +0 -0
  1242. /package/dist/{resources → agent/resources}/tools/search_knowledge.txt +0 -0
  1243. /package/dist/{resources → agent/resources}/tools/write_file.txt +0 -0
  1244. /package/dist/{resources → agent/resources}/tools/write_memory.txt +0 -0
  1245. /package/dist/{resources → agent/resources}/tools/write_todos.txt +0 -0
  1246. /package/dist/{config → server/config}/auth.config.js +0 -0
  1247. /package/dist/{config → server/config}/environment.d.ts +0 -0
  1248. /package/dist/{config → server/config}/environment.js +0 -0
  1249. /package/dist/{constants.d.ts → server/constants.d.ts} +0 -0
  1250. /package/dist/{constants.js → server/constants.js} +0 -0
  1251. /package/dist/{core → server/core}/domain/entities/agent.d.ts +0 -0
  1252. /package/dist/{core → server/core}/domain/entities/auth-token.d.ts +0 -0
  1253. /package/dist/{core → server/core}/domain/entities/auth-token.js +0 -0
  1254. /package/dist/{core → server/core}/domain/entities/bullet.d.ts +0 -0
  1255. /package/dist/{core → server/core}/domain/entities/bullet.js +0 -0
  1256. /package/dist/{core → server/core}/domain/entities/cogit-push-context.d.ts +0 -0
  1257. /package/dist/{core → server/core}/domain/entities/cogit-push-context.js +0 -0
  1258. /package/dist/{core → server/core}/domain/entities/cogit-push-response.d.ts +0 -0
  1259. /package/dist/{core → server/core}/domain/entities/cogit-push-response.js +0 -0
  1260. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-author.d.ts +0 -0
  1261. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-author.js +0 -0
  1262. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-file.d.ts +0 -0
  1263. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-file.js +0 -0
  1264. /package/dist/{core → server/core}/domain/entities/cogit-snapshot.d.ts +0 -0
  1265. /package/dist/{core → server/core}/domain/entities/cogit-snapshot.js +0 -0
  1266. /package/dist/{core → server/core}/domain/entities/connector-type.d.ts +0 -0
  1267. /package/dist/{core → server/core}/domain/entities/connector-type.js +0 -0
  1268. /package/dist/{core → server/core}/domain/entities/context-tree-index.d.ts +0 -0
  1269. /package/dist/{core → server/core}/domain/entities/context-tree-index.js +0 -0
  1270. /package/dist/{core → server/core}/domain/entities/context-tree-snapshot.d.ts +0 -0
  1271. /package/dist/{core → server/core}/domain/entities/context-tree-snapshot.js +0 -0
  1272. /package/dist/{core → server/core}/domain/entities/event.d.ts +0 -0
  1273. /package/dist/{core → server/core}/domain/entities/event.js +0 -0
  1274. /package/dist/{core → server/core}/domain/entities/global-config.d.ts +0 -0
  1275. /package/dist/{core → server/core}/domain/entities/global-config.js +0 -0
  1276. /package/dist/{core → server/core}/domain/entities/memory.d.ts +0 -0
  1277. /package/dist/{core → server/core}/domain/entities/memory.js +0 -0
  1278. /package/dist/{core → server/core}/domain/entities/oauth-token-data.d.ts +0 -0
  1279. /package/dist/{core → server/core}/domain/entities/oauth-token-data.js +0 -0
  1280. /package/dist/{core → server/core}/domain/entities/parser.d.ts +0 -0
  1281. /package/dist/{core → server/core}/domain/entities/parser.js +0 -0
  1282. /package/dist/{core → server/core}/domain/entities/playbook.d.ts +0 -0
  1283. /package/dist/{core → server/core}/domain/entities/playbook.js +0 -0
  1284. /package/dist/{core → server/core}/domain/entities/presigned-url.d.ts +0 -0
  1285. /package/dist/{core → server/core}/domain/entities/presigned-url.js +0 -0
  1286. /package/dist/{core → server/core}/domain/entities/presigned-urls-response.d.ts +0 -0
  1287. /package/dist/{core → server/core}/domain/entities/presigned-urls-response.js +0 -0
  1288. /package/dist/{core → server/core}/domain/entities/provider-config.d.ts +0 -0
  1289. /package/dist/{core → server/core}/domain/entities/provider-config.js +0 -0
  1290. /package/dist/{core → server/core}/domain/entities/provider-registry.d.ts +0 -0
  1291. /package/dist/{core → server/core}/domain/entities/provider-registry.js +0 -0
  1292. /package/dist/{core → server/core}/domain/entities/retrieve-result.d.ts +0 -0
  1293. /package/dist/{core → server/core}/domain/entities/retrieve-result.js +0 -0
  1294. /package/dist/{core → server/core}/domain/errors/ace-error.d.ts +0 -0
  1295. /package/dist/{core → server/core}/domain/errors/ace-error.js +0 -0
  1296. /package/dist/{core → server/core}/domain/errors/auth-error.d.ts +0 -0
  1297. /package/dist/{core → server/core}/domain/errors/auth-error.js +0 -0
  1298. /package/dist/{core → server/core}/domain/errors/brv-config-version-error.d.ts +0 -0
  1299. /package/dist/{core → server/core}/domain/errors/brv-config-version-error.js +0 -0
  1300. /package/dist/{core → server/core}/domain/errors/core-process-error.d.ts +0 -0
  1301. /package/dist/{core → server/core}/domain/errors/core-process-error.js +0 -0
  1302. /package/dist/{core → server/core}/domain/errors/discovery-error.d.ts +0 -0
  1303. /package/dist/{core → server/core}/domain/errors/discovery-error.js +0 -0
  1304. /package/dist/{core → server/core}/domain/errors/headless-prompt-error.d.ts +0 -0
  1305. /package/dist/{core → server/core}/domain/errors/headless-prompt-error.js +0 -0
  1306. /package/dist/{core → server/core}/domain/errors/task-error.d.ts +0 -0
  1307. /package/dist/{core → server/core}/domain/errors/task-error.js +0 -0
  1308. /package/dist/{core → server/core}/domain/errors/transport-error.d.ts +0 -0
  1309. /package/dist/{core → server/core}/domain/errors/transport-error.js +0 -0
  1310. /package/dist/{core → server/core}/domain/instance/index.d.ts +0 -0
  1311. /package/dist/{core → server/core}/domain/instance/index.js +0 -0
  1312. /package/dist/{core → server/core}/domain/instance/types.d.ts +0 -0
  1313. /package/dist/{core → server/core}/domain/instance/types.js +0 -0
  1314. /package/dist/{core → server/core}/domain/knowledge/directory-manager.d.ts +0 -0
  1315. /package/dist/{core → server/core}/domain/knowledge/directory-manager.js +0 -0
  1316. /package/dist/{core → server/core}/domain/knowledge/markdown-writer.d.ts +0 -0
  1317. /package/dist/{core → server/core}/domain/knowledge/markdown-writer.js +0 -0
  1318. /package/dist/{core → server/core}/domain/transport/index.d.ts +0 -0
  1319. /package/dist/{core → server/core}/domain/transport/index.js +0 -0
  1320. /package/dist/{core → server/core}/domain/transport/types.d.ts +0 -0
  1321. /package/dist/{core → server/core}/domain/transport/types.js +0 -0
  1322. /package/dist/{core/interfaces/i-browser-launcher.js → server/core/interfaces/auth/i-auth-service.js} +0 -0
  1323. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-callback-handler.d.ts +0 -0
  1324. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-callback-handler.js +0 -0
  1325. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-oidc-discovery-service.d.ts +0 -0
  1326. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-oidc-discovery-service.js +0 -0
  1327. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-token-store.js +0 -0
  1328. /package/dist/{core/interfaces/i-cogit-pull-service.js → server/core/interfaces/connectors/connector-types.js} +0 -0
  1329. /package/dist/{core/interfaces/i-cogit-push-service.js → server/core/interfaces/connectors/i-connector-manager.js} +0 -0
  1330. /package/dist/{core/interfaces/i-context-file-reader.js → server/core/interfaces/connectors/i-connector.js} +0 -0
  1331. /package/dist/{core/interfaces/i-context-tree-service.js → server/core/interfaces/context-tree/i-context-file-reader.js} +0 -0
  1332. /package/dist/{core/interfaces → server/core/interfaces/context-tree}/i-context-tree-service.d.ts +0 -0
  1333. /package/dist/{core/interfaces/i-context-tree-snapshot-service.js → server/core/interfaces/context-tree/i-context-tree-service.js} +0 -0
  1334. /package/dist/{core/interfaces/i-context-tree-writer-service.js → server/core/interfaces/context-tree/i-context-tree-snapshot-service.js} +0 -0
  1335. /package/dist/{core/interfaces/i-file-service.js → server/core/interfaces/context-tree/i-context-tree-writer-service.js} +0 -0
  1336. /package/dist/{core/interfaces/i-global-config-store.js → server/core/interfaces/executor/i-curate-executor.js} +0 -0
  1337. /package/dist/{core/interfaces/i-http-client.js → server/core/interfaces/executor/i-folder-pack-executor.js} +0 -0
  1338. /package/dist/{core/interfaces/i-legacy-rule-detector.js → server/core/interfaces/executor/i-query-executor.js} +0 -0
  1339. /package/dist/{core → server/core}/interfaces/i-provider-config-store.d.ts +0 -0
  1340. /package/dist/{core → server/core}/interfaces/i-provider-config-store.js +0 -0
  1341. /package/dist/{core → server/core}/interfaces/i-provider-keychain-store.d.ts +0 -0
  1342. /package/dist/{core → server/core}/interfaces/i-provider-keychain-store.js +0 -0
  1343. /package/dist/{core → server/core}/interfaces/instance/i-instance-discovery.d.ts +0 -0
  1344. /package/dist/{core → server/core}/interfaces/instance/i-instance-discovery.js +0 -0
  1345. /package/dist/{core → server/core}/interfaces/instance/i-instance-manager.d.ts +0 -0
  1346. /package/dist/{core → server/core}/interfaces/instance/i-instance-manager.js +0 -0
  1347. /package/dist/{core → server/core}/interfaces/instance/index.d.ts +0 -0
  1348. /package/dist/{core → server/core}/interfaces/instance/index.js +0 -0
  1349. /package/dist/{core → server/core}/interfaces/noop-implementations.js +0 -0
  1350. /package/dist/{core/interfaces → server/core/interfaces/services}/i-browser-launcher.d.ts +0 -0
  1351. /package/dist/{core/interfaces/i-mcp-config-writer.js → server/core/interfaces/services/i-browser-launcher.js} +0 -0
  1352. /package/dist/{core/interfaces/i-memory-retrieval-service.js → server/core/interfaces/services/i-cogit-pull-service.js} +0 -0
  1353. /package/dist/{core/interfaces/i-memory-storage-service.js → server/core/interfaces/services/i-cogit-push-service.js} +0 -0
  1354. /package/dist/{core/interfaces → server/core/interfaces/services}/i-file-service.d.ts +0 -0
  1355. /package/dist/{core/interfaces/i-onboarding-preference-store.js → server/core/interfaces/services/i-file-service.js} +0 -0
  1356. /package/dist/{core/interfaces/i-project-config-store.js → server/core/interfaces/services/i-http-client.js} +0 -0
  1357. /package/dist/{core/interfaces/i-rule-template-service.js → server/core/interfaces/services/i-legacy-rule-detector.js} +0 -0
  1358. /package/dist/{core/interfaces/i-space-service.js → server/core/interfaces/services/i-memory-retrieval-service.js} +0 -0
  1359. /package/dist/{core/interfaces/i-team-service.js → server/core/interfaces/services/i-memory-storage-service.js} +0 -0
  1360. /package/dist/{core/interfaces/i-template-loader.js → server/core/interfaces/services/i-rule-template-service.js} +0 -0
  1361. /package/dist/{core/interfaces/i-terminal.js → server/core/interfaces/services/i-space-service.js} +0 -0
  1362. /package/dist/{core/interfaces/i-tracking-service.js → server/core/interfaces/services/i-team-service.js} +0 -0
  1363. /package/dist/{core/interfaces → server/core/interfaces/services}/i-template-loader.d.ts +0 -0
  1364. /package/dist/{core/interfaces/i-user-service.js → server/core/interfaces/services/i-template-loader.js} +0 -0
  1365. /package/dist/{core/interfaces → server/core/interfaces/services}/i-terminal.d.ts +0 -0
  1366. /package/dist/{core/interfaces/i-workspace-detector-service.js → server/core/interfaces/services/i-terminal.js} +0 -0
  1367. /package/dist/{core/interfaces/transport/i-transport-client.js → server/core/interfaces/services/i-tracking-service.js} +0 -0
  1368. /package/dist/{core/interfaces/transport/i-transport-server.js → server/core/interfaces/services/i-user-service.js} +0 -0
  1369. /package/dist/{core/interfaces/usecase/i-connectors-use-case.js → server/core/interfaces/services/i-workspace-detector-service.js} +0 -0
  1370. /package/dist/{core/interfaces/usecase/i-curate-use-case.js → server/core/interfaces/storage/i-global-config-store.js} +0 -0
  1371. /package/dist/{core/interfaces/usecase/i-init-use-case.js → server/core/interfaces/storage/i-mcp-config-writer.js} +0 -0
  1372. /package/dist/{core/interfaces → server/core/interfaces/storage}/i-onboarding-preference-store.d.ts +0 -0
  1373. /package/dist/{core/interfaces/usecase/i-login-use-case.js → server/core/interfaces/storage/i-onboarding-preference-store.js} +0 -0
  1374. /package/dist/{core/interfaces/usecase/i-logout-use-case.js → server/core/interfaces/storage/i-project-config-store.js} +0 -0
  1375. /package/dist/{core → server/core}/interfaces/transport/i-transport-server.d.ts +0 -0
  1376. /package/dist/{core/interfaces/usecase/i-pull-use-case.js → server/core/interfaces/transport/i-transport-server.js} +0 -0
  1377. /package/dist/{core → server/core}/interfaces/usecase/i-connectors-use-case.d.ts +0 -0
  1378. /package/dist/{core/interfaces/usecase/i-push-use-case.js → server/core/interfaces/usecase/i-connectors-use-case.js} +0 -0
  1379. /package/dist/{core/interfaces/usecase/i-query-use-case.js → server/core/interfaces/usecase/i-curate-use-case.js} +0 -0
  1380. /package/dist/{core → server/core}/interfaces/usecase/i-init-use-case.d.ts +0 -0
  1381. /package/dist/{core/interfaces/usecase/i-reset-use-case.js → server/core/interfaces/usecase/i-init-use-case.js} +0 -0
  1382. /package/dist/{core → server/core}/interfaces/usecase/i-login-use-case.d.ts +0 -0
  1383. /package/dist/{core/interfaces/usecase/i-space-list-use-case.js → server/core/interfaces/usecase/i-login-use-case.js} +0 -0
  1384. /package/dist/{core → server/core}/interfaces/usecase/i-logout-use-case.d.ts +0 -0
  1385. /package/dist/{core/interfaces/usecase/i-space-switch-use-case.js → server/core/interfaces/usecase/i-logout-use-case.js} +0 -0
  1386. /package/dist/{core → server/core}/interfaces/usecase/i-pull-use-case.d.ts +0 -0
  1387. /package/dist/{core/interfaces/usecase/i-status-use-case.js → server/core/interfaces/usecase/i-pull-use-case.js} +0 -0
  1388. /package/dist/{core → server/core}/interfaces/usecase/i-push-use-case.d.ts +0 -0
  1389. /package/dist/{core → server/core}/interfaces/usecase/i-query-use-case.d.ts +0 -0
  1390. /package/dist/{core → server/core}/interfaces/usecase/i-reset-use-case.d.ts +0 -0
  1391. /package/dist/{core → server/core}/interfaces/usecase/i-space-list-use-case.d.ts +0 -0
  1392. /package/dist/{core → server/core}/interfaces/usecase/i-space-switch-use-case.d.ts +0 -0
  1393. /package/dist/{core → server/core}/interfaces/usecase/i-status-use-case.d.ts +0 -0
  1394. /package/dist/{infra → server/infra}/auth/oauth-service.js +0 -0
  1395. /package/dist/{infra → server/infra}/auth/oidc-discovery-service.js +0 -0
  1396. /package/dist/{infra → server/infra}/browser/system-browser-launcher.js +0 -0
  1397. /package/dist/{infra → server/infra}/cogit/context-tree-to-push-context-mapper.js +0 -0
  1398. /package/dist/{infra → server/infra}/cogit/http-cogit-pull-service.js +0 -0
  1399. /package/dist/{infra → server/infra}/cogit/http-cogit-push-service.js +0 -0
  1400. /package/dist/{infra → server/infra}/config/file-config-store.js +0 -0
  1401. /package/dist/{infra → server/infra}/connectors/hook/hook-connector-config.d.ts +0 -0
  1402. /package/dist/{infra → server/infra}/connectors/hook/hook-connector-config.js +0 -0
  1403. /package/dist/{infra → server/infra}/connectors/mcp/index.d.ts +0 -0
  1404. /package/dist/{infra → server/infra}/connectors/mcp/index.js +0 -0
  1405. /package/dist/{infra → server/infra}/connectors/mcp/json-mcp-config-writer.js +0 -0
  1406. /package/dist/{infra → server/infra}/connectors/mcp/mcp-connector-config.d.ts +0 -0
  1407. /package/dist/{infra → server/infra}/connectors/mcp/mcp-connector-config.js +0 -0
  1408. /package/dist/{infra → server/infra}/connectors/mcp/toml-mcp-config-writer.js +0 -0
  1409. /package/dist/{infra → server/infra}/connectors/rules/legacy-rule-detector.js +0 -0
  1410. /package/dist/{infra → server/infra}/connectors/rules/rules-connector-config.js +0 -0
  1411. /package/dist/{infra → server/infra}/connectors/shared/constants.d.ts +0 -0
  1412. /package/dist/{infra → server/infra}/connectors/shared/constants.js +0 -0
  1413. /package/dist/{infra → server/infra}/connectors/shared/rule-file-manager.js +0 -0
  1414. /package/dist/{infra → server/infra}/connectors/shared/template-service.js +0 -0
  1415. /package/dist/{infra → server/infra}/connectors/skill/index.d.ts +0 -0
  1416. /package/dist/{infra → server/infra}/connectors/skill/index.js +0 -0
  1417. /package/dist/{infra → server/infra}/connectors/skill/skill-connector-config.d.ts +0 -0
  1418. /package/dist/{infra → server/infra}/connectors/skill/skill-connector-config.js +0 -0
  1419. /package/dist/{infra → server/infra}/context-tree/file-context-file-reader.js +0 -0
  1420. /package/dist/{infra → server/infra}/context-tree/file-context-tree-service.js +0 -0
  1421. /package/dist/{infra → server/infra}/context-tree/file-context-tree-snapshot-service.js +0 -0
  1422. /package/dist/{infra → server/infra}/context-tree/file-context-tree-writer-service.js +0 -0
  1423. /package/dist/{infra → server/infra}/file/fs-file-service.js +0 -0
  1424. /package/dist/{infra → server/infra}/http/callback-handler.js +0 -0
  1425. /package/dist/{infra → server/infra}/http/callback-server.d.ts +0 -0
  1426. /package/dist/{infra → server/infra}/http/callback-server.js +0 -0
  1427. /package/dist/{infra → server/infra}/http/openrouter-api-client.d.ts +0 -0
  1428. /package/dist/{infra → server/infra}/http/openrouter-api-client.js +0 -0
  1429. /package/dist/{infra → server/infra}/instance/file-instance-discovery.d.ts +0 -0
  1430. /package/dist/{infra → server/infra}/instance/file-instance-discovery.js +0 -0
  1431. /package/dist/{infra → server/infra}/instance/file-instance-manager.d.ts +0 -0
  1432. /package/dist/{infra → server/infra}/instance/file-instance-manager.js +0 -0
  1433. /package/dist/{infra → server/infra}/instance/index.d.ts +0 -0
  1434. /package/dist/{infra → server/infra}/instance/index.js +0 -0
  1435. /package/dist/{infra → server/infra}/instance/process-utils.d.ts +0 -0
  1436. /package/dist/{infra → server/infra}/instance/process-utils.js +0 -0
  1437. /package/dist/{infra → server/infra}/mcp/index.d.ts +0 -0
  1438. /package/dist/{infra → server/infra}/mcp/index.js +0 -0
  1439. /package/dist/{infra → server/infra}/mcp/mcp-server.d.ts +0 -0
  1440. /package/dist/{infra → server/infra}/mcp/tools/index.d.ts +0 -0
  1441. /package/dist/{infra → server/infra}/mcp/tools/index.js +0 -0
  1442. /package/dist/{infra → server/infra}/mcp/tools/task-result-waiter.js +0 -0
  1443. /package/dist/{infra → server/infra}/memory/http-memory-retrieval-service.js +0 -0
  1444. /package/dist/{infra → server/infra}/memory/http-memory-storage-service.js +0 -0
  1445. /package/dist/{infra → server/infra}/memory/memory-to-playbook-mapper.d.ts +0 -0
  1446. /package/dist/{infra → server/infra}/memory/memory-to-playbook-mapper.js +0 -0
  1447. /package/dist/{infra → server/infra}/process/agent-worker.d.ts +0 -0
  1448. /package/dist/{infra → server/infra}/process/index.d.ts +0 -0
  1449. /package/dist/{infra → server/infra}/process/index.js +0 -0
  1450. /package/dist/{infra → server/infra}/process/ipc-types.d.ts +0 -0
  1451. /package/dist/{infra → server/infra}/process/ipc-types.js +0 -0
  1452. /package/dist/{infra → server/infra}/process/parent-heartbeat.d.ts +0 -0
  1453. /package/dist/{infra → server/infra}/process/parent-heartbeat.js +0 -0
  1454. /package/dist/{infra → server/infra}/process/process-manager.d.ts +0 -0
  1455. /package/dist/{infra → server/infra}/process/task-queue-manager.d.ts +0 -0
  1456. /package/dist/{infra → server/infra}/process/task-queue-manager.js +0 -0
  1457. /package/dist/{infra → server/infra}/process/transport-handlers.d.ts +0 -0
  1458. /package/dist/{infra → server/infra}/process/transport-worker.d.ts +0 -0
  1459. /package/dist/{infra → server/infra}/process/transport-worker.js +0 -0
  1460. /package/dist/{infra → server/infra}/storage/file-global-config-store.js +0 -0
  1461. /package/dist/{infra → server/infra}/storage/file-onboarding-preference-store.js +0 -0
  1462. /package/dist/{infra → server/infra}/storage/file-provider-config-store.d.ts +0 -0
  1463. /package/dist/{infra → server/infra}/storage/file-provider-config-store.js +0 -0
  1464. /package/dist/{infra → server/infra}/storage/file-token-store.js +0 -0
  1465. /package/dist/{infra → server/infra}/storage/keychain-token-store.js +0 -0
  1466. /package/dist/{infra → server/infra}/storage/provider-keychain-store.d.ts +0 -0
  1467. /package/dist/{infra → server/infra}/storage/provider-keychain-store.js +0 -0
  1468. /package/dist/{infra → server/infra}/storage/token-store.js +0 -0
  1469. /package/dist/{infra → server/infra}/team/http-team-service.js +0 -0
  1470. /package/dist/{infra → server/infra}/template/fs-template-loader.js +0 -0
  1471. /package/dist/{infra → server/infra}/terminal/headless-terminal.js +0 -0
  1472. /package/dist/{infra → server/infra}/terminal/oclif-terminal.js +0 -0
  1473. /package/dist/{infra → server/infra}/terminal/repl-terminal.js +0 -0
  1474. /package/dist/{infra → server/infra}/tracking/mixpanel-tracking-service.js +0 -0
  1475. /package/dist/{infra → server/infra}/transport/port-utils.d.ts +0 -0
  1476. /package/dist/{infra → server/infra}/transport/port-utils.js +0 -0
  1477. /package/dist/{infra → server/infra}/transport/socket-io-transport-server.d.ts +0 -0
  1478. /package/dist/{infra → server/infra}/transport/socket-io-transport-server.js +0 -0
  1479. /package/dist/{infra → server/infra}/usecase/init-use-case.js +0 -0
  1480. /package/dist/{infra → server/infra}/usecase/login-use-case.js +0 -0
  1481. /package/dist/{infra → server/infra}/usecase/reset-use-case.js +0 -0
  1482. /package/dist/{infra → server/infra}/usecase/space-list-use-case.js +0 -0
  1483. /package/dist/{infra → server/infra}/workspace/workspace-detector-service.js +0 -0
  1484. /package/dist/{templates → server/templates}/README.md +0 -0
  1485. /package/dist/{templates → server/templates}/base.md +0 -0
  1486. /package/dist/{templates → server/templates}/mcp-base.md +0 -0
  1487. /package/dist/{templates → server/templates}/sections/command-reference.md +0 -0
  1488. /package/dist/{templates → server/templates}/sections/mcp-workflow.md +0 -0
  1489. /package/dist/{templates → server/templates}/sections/workflow.md +0 -0
  1490. /package/dist/{templates → server/templates}/skill/SKILL.md +0 -0
  1491. /package/dist/{templates → server/templates}/skill/TROUBLESHOOTING.md +0 -0
  1492. /package/dist/{templates → server/templates}/skill/WORKFLOWS.md +0 -0
  1493. /package/dist/{utils → server/utils}/crash-log.d.ts +0 -0
  1494. /package/dist/{utils → server/utils}/crash-log.js +0 -0
  1495. /package/dist/{utils → server/utils}/emoji-helpers.d.ts +0 -0
  1496. /package/dist/{utils → server/utils}/emoji-helpers.js +0 -0
  1497. /package/dist/{utils → server/utils}/environment-detector.d.ts +0 -0
  1498. /package/dist/{utils → server/utils}/environment-detector.js +0 -0
  1499. /package/dist/{utils → server/utils}/error-handler.d.ts +0 -0
  1500. /package/dist/{utils → server/utils}/error-handler.js +0 -0
  1501. /package/dist/{utils → server/utils}/error-helpers.d.ts +0 -0
  1502. /package/dist/{utils → server/utils}/error-helpers.js +0 -0
  1503. /package/dist/{utils → server/utils}/file-helpers.d.ts +0 -0
  1504. /package/dist/{utils → server/utils}/file-helpers.js +0 -0
  1505. /package/dist/{utils → server/utils}/file-validator.d.ts +0 -0
  1506. /package/dist/{utils → server/utils}/global-config-path.d.ts +0 -0
  1507. /package/dist/{utils → server/utils}/global-config-path.js +0 -0
  1508. /package/dist/{utils → server/utils}/global-data-path.d.ts +0 -0
  1509. /package/dist/{utils → server/utils}/global-data-path.js +0 -0
  1510. /package/dist/{utils → server/utils}/global-logs-path.d.ts +0 -0
  1511. /package/dist/{utils → server/utils}/global-logs-path.js +0 -0
  1512. /package/dist/{utils → server/utils}/oclif-error-helpers.d.ts +0 -0
  1513. /package/dist/{utils → server/utils}/oclif-error-helpers.js +0 -0
  1514. /package/dist/{utils → server/utils}/process-logger.d.ts +0 -0
  1515. /package/dist/{utils → server/utils}/process-logger.js +0 -0
  1516. /package/dist/{utils → server/utils}/sandbox-detector.d.ts +0 -0
  1517. /package/dist/{utils → server/utils}/sandbox-detector.js +0 -0
  1518. /package/dist/{utils → server/utils}/tool-display-formatter.d.ts +0 -0
  1519. /package/dist/{utils → server/utils}/tool-display-formatter.js +0 -0
  1520. /package/dist/{utils → server/utils}/type-guards.js +0 -0
@@ -1,1240 +0,0 @@
1
- /**
2
- * Transport Schemas - Types and validation for Socket.IO transport layer.
3
- *
4
- * Architecture (Clean Architecture compliance):
5
- * - Domain types from agent-events/types.ts are the Single Source of Truth (SSOT)
6
- * - Transport layer IMPORTS from domain, does NOT redefine
7
- * - Transport events EXTEND domain types with `taskId` for routing
8
- * - Zod schemas provide runtime validation for transport messages
9
- */
10
- import { z } from 'zod';
11
- import type { AgentEventMap } from '../cipher/agent-events/types.js';
12
- export type { AgentTerminationReason, LogLevel, TokenUsage, ToolErrorType, UIEventType, } from '../cipher/agent-events/types.js';
13
- export declare const TokenUsageSchema: z.ZodObject<{
14
- inputTokens: z.ZodNumber;
15
- outputTokens: z.ZodNumber;
16
- totalTokens: z.ZodNumber;
17
- }, "strip", z.ZodTypeAny, {
18
- inputTokens: number;
19
- outputTokens: number;
20
- totalTokens: number;
21
- }, {
22
- inputTokens: number;
23
- outputTokens: number;
24
- totalTokens: number;
25
- }>;
26
- export declare const LogLevelSchema: z.ZodEnum<["debug", "error", "info", "warn"]>;
27
- export declare const UIEventTypeSchema: z.ZodEnum<["banner", "help", "prompt", "response", "separator", "shutdown"]>;
28
- export declare const ToolErrorTypeSchema: z.ZodEnum<["CANCELLED", "CONFIRMATION_REJECTED", "EXECUTION_FAILED", "INTERNAL_ERROR", "INVALID_PARAM_TYPE", "INVALID_PARAMS", "MISSING_REQUIRED_PARAM", "PARAM_VALIDATION_FAILED", "PERMISSION_DENIED", "PROVIDER_ERROR", "TIMEOUT", "TOOL_DISABLED", "TOOL_NOT_FOUND"]>;
29
- export declare const AgentTerminationReasonSchema: z.ZodEnum<["ABORTED", "ERROR", "GOAL", "MAX_TURNS", "PROTOCOL_VIOLATION", "TIMEOUT"]>;
30
- export declare const TodoStatusSchema: z.ZodEnum<["cancelled", "completed", "in_progress", "pending"]>;
31
- export declare const TodoItemSchema: z.ZodObject<{
32
- activeForm: z.ZodString;
33
- content: z.ZodString;
34
- status: z.ZodEnum<["cancelled", "completed", "in_progress", "pending"]>;
35
- }, "strip", z.ZodTypeAny, {
36
- status: "cancelled" | "completed" | "in_progress" | "pending";
37
- content: string;
38
- activeForm: string;
39
- }, {
40
- status: "cancelled" | "completed" | "in_progress" | "pending";
41
- content: string;
42
- activeForm: string;
43
- }>;
44
- export declare const ConversationResetPayloadSchema: z.ZodObject<{
45
- sessionId: z.ZodString;
46
- }, "strip", z.ZodTypeAny, {
47
- sessionId: string;
48
- }, {
49
- sessionId: string;
50
- }>;
51
- export declare const ExecutionStartedPayloadSchema: z.ZodObject<{
52
- maxIterations: z.ZodNumber;
53
- maxTimeMs: z.ZodOptional<z.ZodNumber>;
54
- sessionId: z.ZodString;
55
- startTime: z.ZodDate;
56
- }, "strip", z.ZodTypeAny, {
57
- maxIterations: number;
58
- startTime: Date;
59
- sessionId: string;
60
- maxTimeMs?: number | undefined;
61
- }, {
62
- maxIterations: number;
63
- startTime: Date;
64
- sessionId: string;
65
- maxTimeMs?: number | undefined;
66
- }>;
67
- export declare const ExecutionTerminatedPayloadSchema: z.ZodObject<{
68
- durationMs: z.ZodOptional<z.ZodNumber>;
69
- endTime: z.ZodDate;
70
- error: z.ZodOptional<z.ZodAny>;
71
- reason: z.ZodEnum<["ABORTED", "ERROR", "GOAL", "MAX_TURNS", "PROTOCOL_VIOLATION", "TIMEOUT"]>;
72
- sessionId: z.ZodString;
73
- toolCallsExecuted: z.ZodNumber;
74
- turnCount: z.ZodNumber;
75
- }, "strip", z.ZodTypeAny, {
76
- toolCallsExecuted: number;
77
- turnCount: number;
78
- reason: "ABORTED" | "ERROR" | "GOAL" | "MAX_TURNS" | "PROTOCOL_VIOLATION" | "TIMEOUT";
79
- sessionId: string;
80
- endTime: Date;
81
- error?: any;
82
- durationMs?: number | undefined;
83
- }, {
84
- toolCallsExecuted: number;
85
- turnCount: number;
86
- reason: "ABORTED" | "ERROR" | "GOAL" | "MAX_TURNS" | "PROTOCOL_VIOLATION" | "TIMEOUT";
87
- sessionId: string;
88
- endTime: Date;
89
- error?: any;
90
- durationMs?: number | undefined;
91
- }>;
92
- export declare const LogPayloadSchema: z.ZodObject<{
93
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
94
- level: z.ZodEnum<["debug", "error", "info", "warn"]>;
95
- message: z.ZodString;
96
- sessionId: z.ZodOptional<z.ZodString>;
97
- source: z.ZodOptional<z.ZodString>;
98
- }, "strip", z.ZodTypeAny, {
99
- message: string;
100
- level: "debug" | "error" | "info" | "warn";
101
- sessionId?: string | undefined;
102
- source?: string | undefined;
103
- context?: Record<string, unknown> | undefined;
104
- }, {
105
- message: string;
106
- level: "debug" | "error" | "info" | "warn";
107
- sessionId?: string | undefined;
108
- source?: string | undefined;
109
- context?: Record<string, unknown> | undefined;
110
- }>;
111
- export declare const StateChangedPayloadSchema: z.ZodObject<{
112
- field: z.ZodString;
113
- newValue: z.ZodUnknown;
114
- oldValue: z.ZodOptional<z.ZodUnknown>;
115
- sessionId: z.ZodOptional<z.ZodString>;
116
- }, "strip", z.ZodTypeAny, {
117
- field: string;
118
- sessionId?: string | undefined;
119
- newValue?: unknown;
120
- oldValue?: unknown;
121
- }, {
122
- field: string;
123
- sessionId?: string | undefined;
124
- newValue?: unknown;
125
- oldValue?: unknown;
126
- }>;
127
- export declare const StateResetPayloadSchema: z.ZodObject<{
128
- sessionId: z.ZodOptional<z.ZodString>;
129
- }, "strip", z.ZodTypeAny, {
130
- sessionId?: string | undefined;
131
- }, {
132
- sessionId?: string | undefined;
133
- }>;
134
- export declare const UIPayloadSchema: z.ZodObject<{
135
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
- message: z.ZodOptional<z.ZodString>;
137
- sessionId: z.ZodOptional<z.ZodString>;
138
- type: z.ZodEnum<["banner", "help", "prompt", "response", "separator", "shutdown"]>;
139
- }, "strip", z.ZodTypeAny, {
140
- type: "prompt" | "banner" | "help" | "response" | "separator" | "shutdown";
141
- message?: string | undefined;
142
- sessionId?: string | undefined;
143
- context?: Record<string, unknown> | undefined;
144
- }, {
145
- type: "prompt" | "banner" | "help" | "response" | "separator" | "shutdown";
146
- message?: string | undefined;
147
- sessionId?: string | undefined;
148
- context?: Record<string, unknown> | undefined;
149
- }>;
150
- export declare const ChunkPayloadSchema: z.ZodObject<{
151
- content: z.ZodString;
152
- isComplete: z.ZodOptional<z.ZodBoolean>;
153
- sessionId: z.ZodString;
154
- type: z.ZodEnum<["reasoning", "text"]>;
155
- }, "strip", z.ZodTypeAny, {
156
- type: "reasoning" | "text";
157
- sessionId: string;
158
- content: string;
159
- isComplete?: boolean | undefined;
160
- }, {
161
- type: "reasoning" | "text";
162
- sessionId: string;
163
- content: string;
164
- isComplete?: boolean | undefined;
165
- }>;
166
- export declare const ErrorPayloadSchema: z.ZodObject<{
167
- code: z.ZodOptional<z.ZodString>;
168
- error: z.ZodString;
169
- sessionId: z.ZodString;
170
- }, "strip", z.ZodTypeAny, {
171
- error: string;
172
- sessionId: string;
173
- code?: string | undefined;
174
- }, {
175
- error: string;
176
- sessionId: string;
177
- code?: string | undefined;
178
- }>;
179
- export declare const OutputTruncatedPayloadSchema: z.ZodObject<{
180
- originalLength: z.ZodNumber;
181
- savedToFile: z.ZodString;
182
- sessionId: z.ZodString;
183
- toolName: z.ZodString;
184
- }, "strip", z.ZodTypeAny, {
185
- sessionId: string;
186
- toolName: string;
187
- originalLength: number;
188
- savedToFile: string;
189
- }, {
190
- sessionId: string;
191
- toolName: string;
192
- originalLength: number;
193
- savedToFile: string;
194
- }>;
195
- export declare const ResponsePayloadSchema: z.ZodObject<{
196
- content: z.ZodString;
197
- model: z.ZodOptional<z.ZodString>;
198
- partial: z.ZodOptional<z.ZodBoolean>;
199
- provider: z.ZodOptional<z.ZodString>;
200
- reasoning: z.ZodOptional<z.ZodString>;
201
- sessionId: z.ZodString;
202
- tokenUsage: z.ZodOptional<z.ZodObject<{
203
- inputTokens: z.ZodNumber;
204
- outputTokens: z.ZodNumber;
205
- totalTokens: z.ZodNumber;
206
- }, "strip", z.ZodTypeAny, {
207
- inputTokens: number;
208
- outputTokens: number;
209
- totalTokens: number;
210
- }, {
211
- inputTokens: number;
212
- outputTokens: number;
213
- totalTokens: number;
214
- }>>;
215
- }, "strip", z.ZodTypeAny, {
216
- sessionId: string;
217
- content: string;
218
- model?: string | undefined;
219
- reasoning?: string | undefined;
220
- provider?: string | undefined;
221
- partial?: boolean | undefined;
222
- tokenUsage?: {
223
- inputTokens: number;
224
- outputTokens: number;
225
- totalTokens: number;
226
- } | undefined;
227
- }, {
228
- sessionId: string;
229
- content: string;
230
- model?: string | undefined;
231
- reasoning?: string | undefined;
232
- provider?: string | undefined;
233
- partial?: boolean | undefined;
234
- tokenUsage?: {
235
- inputTokens: number;
236
- outputTokens: number;
237
- totalTokens: number;
238
- } | undefined;
239
- }>;
240
- export declare const ThinkingPayloadSchema: z.ZodObject<{
241
- sessionId: z.ZodString;
242
- }, "strip", z.ZodTypeAny, {
243
- sessionId: string;
244
- }, {
245
- sessionId: string;
246
- }>;
247
- export declare const ThoughtPayloadSchema: z.ZodObject<{
248
- description: z.ZodString;
249
- sessionId: z.ZodString;
250
- subject: z.ZodString;
251
- }, "strip", z.ZodTypeAny, {
252
- description: string;
253
- sessionId: string;
254
- subject: string;
255
- }, {
256
- description: string;
257
- sessionId: string;
258
- subject: string;
259
- }>;
260
- export declare const TodoUpdatedPayloadSchema: z.ZodObject<{
261
- sessionId: z.ZodString;
262
- todos: z.ZodArray<z.ZodObject<{
263
- activeForm: z.ZodString;
264
- content: z.ZodString;
265
- status: z.ZodEnum<["cancelled", "completed", "in_progress", "pending"]>;
266
- }, "strip", z.ZodTypeAny, {
267
- status: "cancelled" | "completed" | "in_progress" | "pending";
268
- content: string;
269
- activeForm: string;
270
- }, {
271
- status: "cancelled" | "completed" | "in_progress" | "pending";
272
- content: string;
273
- activeForm: string;
274
- }>, "many">;
275
- }, "strip", z.ZodTypeAny, {
276
- sessionId: string;
277
- todos: {
278
- status: "cancelled" | "completed" | "in_progress" | "pending";
279
- content: string;
280
- activeForm: string;
281
- }[];
282
- }, {
283
- sessionId: string;
284
- todos: {
285
- status: "cancelled" | "completed" | "in_progress" | "pending";
286
- content: string;
287
- activeForm: string;
288
- }[];
289
- }>;
290
- export declare const ToolCallPayloadSchema: z.ZodObject<{
291
- args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
292
- callId: z.ZodOptional<z.ZodString>;
293
- sessionId: z.ZodString;
294
- toolName: z.ZodString;
295
- }, "strip", z.ZodTypeAny, {
296
- sessionId: string;
297
- toolName: string;
298
- args: Record<string, unknown>;
299
- callId?: string | undefined;
300
- }, {
301
- sessionId: string;
302
- toolName: string;
303
- args: Record<string, unknown>;
304
- callId?: string | undefined;
305
- }>;
306
- export declare const ToolResultPayloadSchema: z.ZodObject<{
307
- callId: z.ZodOptional<z.ZodString>;
308
- error: z.ZodOptional<z.ZodString>;
309
- errorType: z.ZodOptional<z.ZodEnum<["CANCELLED", "CONFIRMATION_REJECTED", "EXECUTION_FAILED", "INTERNAL_ERROR", "INVALID_PARAM_TYPE", "INVALID_PARAMS", "MISSING_REQUIRED_PARAM", "PARAM_VALIDATION_FAILED", "PERMISSION_DENIED", "PROVIDER_ERROR", "TIMEOUT", "TOOL_DISABLED", "TOOL_NOT_FOUND"]>>;
310
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
311
- result: z.ZodOptional<z.ZodUnknown>;
312
- sessionId: z.ZodString;
313
- success: z.ZodBoolean;
314
- toolName: z.ZodString;
315
- }, "strip", z.ZodTypeAny, {
316
- sessionId: string;
317
- toolName: string;
318
- success: boolean;
319
- error?: string | undefined;
320
- callId?: string | undefined;
321
- metadata?: Record<string, unknown> | undefined;
322
- errorType?: "TIMEOUT" | "CANCELLED" | "CONFIRMATION_REJECTED" | "EXECUTION_FAILED" | "INTERNAL_ERROR" | "INVALID_PARAM_TYPE" | "INVALID_PARAMS" | "MISSING_REQUIRED_PARAM" | "PARAM_VALIDATION_FAILED" | "PERMISSION_DENIED" | "PROVIDER_ERROR" | "TOOL_DISABLED" | "TOOL_NOT_FOUND" | undefined;
323
- result?: unknown;
324
- }, {
325
- sessionId: string;
326
- toolName: string;
327
- success: boolean;
328
- error?: string | undefined;
329
- callId?: string | undefined;
330
- metadata?: Record<string, unknown> | undefined;
331
- errorType?: "TIMEOUT" | "CANCELLED" | "CONFIRMATION_REJECTED" | "EXECUTION_FAILED" | "INTERNAL_ERROR" | "INVALID_PARAM_TYPE" | "INVALID_PARAMS" | "MISSING_REQUIRED_PARAM" | "PARAM_VALIDATION_FAILED" | "PERMISSION_DENIED" | "PROVIDER_ERROR" | "TOOL_DISABLED" | "TOOL_NOT_FOUND" | undefined;
332
- result?: unknown;
333
- }>;
334
- export declare const UnsupportedInputPayloadSchema: z.ZodObject<{
335
- reason: z.ZodString;
336
- sessionId: z.ZodString;
337
- }, "strip", z.ZodTypeAny, {
338
- reason: string;
339
- sessionId: string;
340
- }, {
341
- reason: string;
342
- sessionId: string;
343
- }>;
344
- export declare const WarningPayloadSchema: z.ZodObject<{
345
- message: z.ZodString;
346
- model: z.ZodOptional<z.ZodString>;
347
- provider: z.ZodOptional<z.ZodString>;
348
- sessionId: z.ZodString;
349
- }, "strip", z.ZodTypeAny, {
350
- message: string;
351
- sessionId: string;
352
- model?: string | undefined;
353
- provider?: string | undefined;
354
- }, {
355
- message: string;
356
- sessionId: string;
357
- model?: string | undefined;
358
- provider?: string | undefined;
359
- }>;
360
- export declare const TransportEventNames: {
361
- readonly CHUNK: "llmservice:chunk";
362
- readonly CONVERSATION_RESET: "cipher:conversationReset";
363
- readonly ERROR: "llmservice:error";
364
- readonly EXECUTION_STARTED: "cipher:executionStarted";
365
- readonly EXECUTION_TERMINATED: "cipher:executionTerminated";
366
- readonly LOG: "cipher:log";
367
- readonly OUTPUT_TRUNCATED: "llmservice:outputTruncated";
368
- readonly RESPONSE: "llmservice:response";
369
- readonly STATE_CHANGED: "cipher:stateChanged";
370
- readonly STATE_RESET: "cipher:stateReset";
371
- readonly THINKING: "llmservice:thinking";
372
- readonly THOUGHT: "llmservice:thought";
373
- readonly TODO_UPDATED: "llmservice:todoUpdated";
374
- readonly TOOL_CALL: "llmservice:toolCall";
375
- readonly TOOL_RESULT: "llmservice:toolResult";
376
- readonly UI: "cipher:ui";
377
- readonly UNSUPPORTED_INPUT: "llmservice:unsupportedInput";
378
- readonly WARNING: "llmservice:warning";
379
- };
380
- /**
381
- * Transport Events - Sent to Clients (TUI, external CLIs)
382
- *
383
- * Event naming convention:
384
- * - task:* events are Transport-generated (lifecycle events)
385
- * - llmservice:* events are forwarded from Agent with ORIGINAL names
386
- *
387
- * This means FE receives the SAME event names that Agent emits internally.
388
- * No mapping needed - what you see is what Agent does.
389
- *
390
- * Event Flow:
391
- * 1. Client sends task:create → Transport generates taskId → task:ack
392
- * 2. Transport forwards to Agent → Agent starts → task:started
393
- * 3. Agent processes:
394
- * - LLM generates text → llmservice:response (streaming chunks)
395
- * - LLM calls a tool → llmservice:toolCall
396
- * - Tool returns result → llmservice:toolResult
397
- * 4. Agent finishes → task:completed OR task:error
398
- */
399
- export declare const TransportTaskEventNames: {
400
- readonly ACK: "task:ack";
401
- readonly CANCEL: "task:cancel";
402
- readonly CANCELLED: "task:cancelled";
403
- readonly COMPLETED: "task:completed";
404
- readonly CREATE: "task:create";
405
- readonly CREATED: "task:created";
406
- readonly ERROR: "task:error";
407
- readonly EXECUTE: "task:execute";
408
- readonly STARTED: "task:started";
409
- };
410
- export declare const LlmEventNames: {
411
- readonly CHUNK: "llmservice:chunk";
412
- readonly ERROR: "llmservice:error";
413
- readonly RESPONSE: "llmservice:response";
414
- readonly THINKING: "llmservice:thinking";
415
- readonly TOOL_CALL: "llmservice:toolCall";
416
- readonly TOOL_RESULT: "llmservice:toolResult";
417
- readonly UNSUPPORTED_INPUT: "llmservice:unsupportedInput";
418
- };
419
- /**
420
- * Explicit list of LLM event names for iteration.
421
- *
422
- * Avoids `Object.values(LlmEventNames)` so call sites remain readable and
423
- * type-safe (the list is visible and ordered intentionally).
424
- */
425
- export declare const TransportLlmEventList: readonly ["llmservice:thinking", "llmservice:chunk", "llmservice:response", "llmservice:toolCall", "llmservice:toolResult", "llmservice:error", "llmservice:unsupportedInput"];
426
- /**
427
- * Transport-generated Agent lifecycle/control events (internal).
428
- */
429
- export declare const TransportAgentEventNames: {
430
- readonly CONNECTED: "agent:connected";
431
- readonly DISCONNECTED: "agent:disconnected";
432
- readonly NEW_SESSION: "agent:newSession";
433
- readonly NEW_SESSION_CREATED: "agent:newSessionCreated";
434
- readonly REGISTER: "agent:register";
435
- readonly RESTART: "agent:restart";
436
- readonly RESTARTED: "agent:restarted";
437
- readonly RESTARTING: "agent:restarting";
438
- };
439
- /**
440
- * Transport-generated session events (internal).
441
- */
442
- export declare const TransportSessionEventNames: {
443
- readonly CREATE: "session:create";
444
- readonly INFO: "session:info";
445
- readonly LIST: "session:list";
446
- readonly SWITCH: "session:switch";
447
- readonly SWITCHED: "session:switched";
448
- };
449
- /**
450
- * task:execute - Transport sends task to Agent for processing
451
- * Internal message, not exposed to external clients
452
- */
453
- export declare const TaskExecuteSchema: z.ZodObject<{
454
- /** Client's working directory for file validation */
455
- clientCwd: z.ZodOptional<z.ZodString>;
456
- /** Client ID that created the task (for response routing) */
457
- clientId: z.ZodString;
458
- /** Task content/prompt */
459
- content: z.ZodString;
460
- /** Optional file paths for curate --files */
461
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
462
- /** Unique task identifier */
463
- taskId: z.ZodString;
464
- /** Task type */
465
- type: z.ZodEnum<["curate", "query"]>;
466
- }, "strip", z.ZodTypeAny, {
467
- clientId: string;
468
- type: "curate" | "query";
469
- content: string;
470
- taskId: string;
471
- files?: string[] | undefined;
472
- clientCwd?: string | undefined;
473
- }, {
474
- clientId: string;
475
- type: "curate" | "query";
476
- content: string;
477
- taskId: string;
478
- files?: string[] | undefined;
479
- clientCwd?: string | undefined;
480
- }>;
481
- /**
482
- * task:cancel - Transport tells Agent to cancel a task
483
- */
484
- export declare const TaskCancelSchema: z.ZodObject<{
485
- taskId: z.ZodString;
486
- }, "strip", z.ZodTypeAny, {
487
- taskId: string;
488
- }, {
489
- taskId: string;
490
- }>;
491
- export type TaskExecute = z.infer<typeof TaskExecuteSchema>;
492
- export type TaskCancel = z.infer<typeof TaskCancelSchema>;
493
- /**
494
- * llmservice:thinking - Agent started thinking
495
- * Extends: AgentEventMap['llmservice:thinking'] + taskId
496
- */
497
- export type LlmThinkingEvent = AgentEventMap['llmservice:thinking'] & {
498
- taskId: string;
499
- };
500
- /**
501
- * llmservice:chunk - Streaming content chunk from Agent
502
- * Extends: AgentEventMap['llmservice:chunk'] + taskId
503
- */
504
- export type LlmChunkEvent = AgentEventMap['llmservice:chunk'] & {
505
- taskId: string;
506
- };
507
- /**
508
- * llmservice:error - Error from Agent LLM service
509
- * Extends: AgentEventMap['llmservice:error'] + taskId
510
- */
511
- export type LlmErrorEvent = AgentEventMap['llmservice:error'] & {
512
- taskId: string;
513
- };
514
- /**
515
- * llmservice:unsupportedInput - Agent received unsupported input
516
- * Extends: AgentEventMap['llmservice:unsupportedInput'] + taskId
517
- */
518
- export type LlmUnsupportedInputEvent = AgentEventMap['llmservice:unsupportedInput'] & {
519
- taskId: string;
520
- };
521
- /**
522
- * llmservice:response - LLM text output
523
- * Extends: AgentEventMap['llmservice:response'] + taskId
524
- */
525
- export type LlmResponseEvent = AgentEventMap['llmservice:response'] & {
526
- taskId: string;
527
- };
528
- /**
529
- * llmservice:toolCall - Agent invokes a tool
530
- * Extends: AgentEventMap['llmservice:toolCall'] + taskId
531
- */
532
- export type LlmToolCallEvent = AgentEventMap['llmservice:toolCall'] & {
533
- taskId: string;
534
- };
535
- /**
536
- * llmservice:toolResult - Tool returns result
537
- * Extends: AgentEventMap['llmservice:toolResult'] + taskId
538
- */
539
- export type LlmToolResultEvent = AgentEventMap['llmservice:toolResult'] & {
540
- taskId: string;
541
- };
542
- export declare const LlmThinkingEventSchema: z.ZodObject<{
543
- sessionId: z.ZodString;
544
- taskId: z.ZodString;
545
- }, "strip", z.ZodTypeAny, {
546
- sessionId: string;
547
- taskId: string;
548
- }, {
549
- sessionId: string;
550
- taskId: string;
551
- }>;
552
- export declare const LlmChunkEventSchema: z.ZodObject<{
553
- content: z.ZodString;
554
- isComplete: z.ZodOptional<z.ZodBoolean>;
555
- sessionId: z.ZodString;
556
- taskId: z.ZodString;
557
- type: z.ZodEnum<["reasoning", "text"]>;
558
- }, "strip", z.ZodTypeAny, {
559
- type: "reasoning" | "text";
560
- sessionId: string;
561
- content: string;
562
- taskId: string;
563
- isComplete?: boolean | undefined;
564
- }, {
565
- type: "reasoning" | "text";
566
- sessionId: string;
567
- content: string;
568
- taskId: string;
569
- isComplete?: boolean | undefined;
570
- }>;
571
- export declare const LlmErrorEventSchema: z.ZodObject<{
572
- code: z.ZodOptional<z.ZodString>;
573
- error: z.ZodString;
574
- sessionId: z.ZodString;
575
- taskId: z.ZodString;
576
- }, "strip", z.ZodTypeAny, {
577
- error: string;
578
- sessionId: string;
579
- taskId: string;
580
- code?: string | undefined;
581
- }, {
582
- error: string;
583
- sessionId: string;
584
- taskId: string;
585
- code?: string | undefined;
586
- }>;
587
- export declare const LlmUnsupportedInputEventSchema: z.ZodObject<{
588
- reason: z.ZodString;
589
- sessionId: z.ZodString;
590
- taskId: z.ZodString;
591
- }, "strip", z.ZodTypeAny, {
592
- reason: string;
593
- sessionId: string;
594
- taskId: string;
595
- }, {
596
- reason: string;
597
- sessionId: string;
598
- taskId: string;
599
- }>;
600
- /**
601
- * task:ack - Transport acknowledges task creation
602
- */
603
- export declare const TaskAckSchema: z.ZodObject<{
604
- taskId: z.ZodString;
605
- }, "strip", z.ZodTypeAny, {
606
- taskId: string;
607
- }, {
608
- taskId: string;
609
- }>;
610
- /**
611
- * task:created - Broadcasted when a new task is created
612
- * Sent to broadcast-room for TUI monitoring
613
- */
614
- export declare const TaskCreatedSchema: z.ZodObject<{
615
- /** Client's working directory for file validation */
616
- clientCwd: z.ZodOptional<z.ZodString>;
617
- /** Task content/prompt */
618
- content: z.ZodString;
619
- /** Optional file paths for curate --files */
620
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
621
- /** Unique task identifier */
622
- taskId: z.ZodString;
623
- /** Task type (curate or query) */
624
- type: z.ZodEnum<["curate", "query"]>;
625
- }, "strip", z.ZodTypeAny, {
626
- type: "curate" | "query";
627
- content: string;
628
- taskId: string;
629
- files?: string[] | undefined;
630
- clientCwd?: string | undefined;
631
- }, {
632
- type: "curate" | "query";
633
- content: string;
634
- taskId: string;
635
- files?: string[] | undefined;
636
- clientCwd?: string | undefined;
637
- }>;
638
- /**
639
- * task:started - Agent begins processing the task
640
- * Direct send: {taskId} only
641
- * Broadcast: {taskId, content, type, files?, clientCwd?}
642
- */
643
- export declare const TaskStartedEventSchema: z.ZodObject<{
644
- /** Client's working directory for file validation */
645
- clientCwd: z.ZodOptional<z.ZodString>;
646
- /** Task content/prompt */
647
- content: z.ZodOptional<z.ZodString>;
648
- /** Optional file paths for curate --files */
649
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
650
- /** Unique task identifier */
651
- taskId: z.ZodString;
652
- /** Task type (curate or query) */
653
- type: z.ZodOptional<z.ZodString>;
654
- }, "strip", z.ZodTypeAny, {
655
- taskId: string;
656
- type?: string | undefined;
657
- content?: string | undefined;
658
- files?: string[] | undefined;
659
- clientCwd?: string | undefined;
660
- }, {
661
- taskId: string;
662
- type?: string | undefined;
663
- content?: string | undefined;
664
- files?: string[] | undefined;
665
- clientCwd?: string | undefined;
666
- }>;
667
- /**
668
- * task:cancelled - Task was cancelled before completion
669
- * Terminal state: no more events should follow for this taskId
670
- */
671
- export declare const TaskCancelledEventSchema: z.ZodObject<{
672
- taskId: z.ZodString;
673
- }, "strip", z.ZodTypeAny, {
674
- taskId: string;
675
- }, {
676
- taskId: string;
677
- }>;
678
- /**
679
- * task:completed - Task finished successfully
680
- */
681
- export declare const TaskCompletedEventSchema: z.ZodObject<{
682
- result: z.ZodString;
683
- taskId: z.ZodString;
684
- }, "strip", z.ZodTypeAny, {
685
- result: string;
686
- taskId: string;
687
- }, {
688
- result: string;
689
- taskId: string;
690
- }>;
691
- /**
692
- * Structured error object
693
- * Matches TaskErrorData interface in task-error.ts
694
- */
695
- export declare const TaskErrorDataSchema: z.ZodObject<{
696
- code: z.ZodOptional<z.ZodString>;
697
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
698
- message: z.ZodString;
699
- name: z.ZodString;
700
- }, "strip", z.ZodTypeAny, {
701
- message: string;
702
- name: string;
703
- code?: string | undefined;
704
- details?: Record<string, unknown> | undefined;
705
- }, {
706
- message: string;
707
- name: string;
708
- code?: string | undefined;
709
- details?: Record<string, unknown> | undefined;
710
- }>;
711
- /**
712
- * task:error - Task failed with error
713
- */
714
- export declare const TaskErrorEventSchema: z.ZodObject<{
715
- error: z.ZodObject<{
716
- code: z.ZodOptional<z.ZodString>;
717
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
718
- message: z.ZodString;
719
- name: z.ZodString;
720
- }, "strip", z.ZodTypeAny, {
721
- message: string;
722
- name: string;
723
- code?: string | undefined;
724
- details?: Record<string, unknown> | undefined;
725
- }, {
726
- message: string;
727
- name: string;
728
- code?: string | undefined;
729
- details?: Record<string, unknown> | undefined;
730
- }>;
731
- taskId: z.ZodString;
732
- }, "strip", z.ZodTypeAny, {
733
- error: {
734
- message: string;
735
- name: string;
736
- code?: string | undefined;
737
- details?: Record<string, unknown> | undefined;
738
- };
739
- taskId: string;
740
- }, {
741
- error: {
742
- message: string;
743
- name: string;
744
- code?: string | undefined;
745
- details?: Record<string, unknown> | undefined;
746
- };
747
- taskId: string;
748
- }>;
749
- /**
750
- * llmservice:response - LLM text output
751
- * Matches: AgentEventMap['llmservice:response'] + taskId
752
- */
753
- export declare const LlmResponseEventSchema: z.ZodObject<{
754
- content: z.ZodString;
755
- model: z.ZodOptional<z.ZodString>;
756
- partial: z.ZodOptional<z.ZodBoolean>;
757
- provider: z.ZodOptional<z.ZodString>;
758
- reasoning: z.ZodOptional<z.ZodString>;
759
- sessionId: z.ZodString;
760
- taskId: z.ZodString;
761
- tokenUsage: z.ZodOptional<z.ZodObject<{
762
- inputTokens: z.ZodNumber;
763
- outputTokens: z.ZodNumber;
764
- totalTokens: z.ZodNumber;
765
- }, "strip", z.ZodTypeAny, {
766
- inputTokens: number;
767
- outputTokens: number;
768
- totalTokens: number;
769
- }, {
770
- inputTokens: number;
771
- outputTokens: number;
772
- totalTokens: number;
773
- }>>;
774
- }, "strip", z.ZodTypeAny, {
775
- sessionId: string;
776
- content: string;
777
- taskId: string;
778
- model?: string | undefined;
779
- reasoning?: string | undefined;
780
- provider?: string | undefined;
781
- partial?: boolean | undefined;
782
- tokenUsage?: {
783
- inputTokens: number;
784
- outputTokens: number;
785
- totalTokens: number;
786
- } | undefined;
787
- }, {
788
- sessionId: string;
789
- content: string;
790
- taskId: string;
791
- model?: string | undefined;
792
- reasoning?: string | undefined;
793
- provider?: string | undefined;
794
- partial?: boolean | undefined;
795
- tokenUsage?: {
796
- inputTokens: number;
797
- outputTokens: number;
798
- totalTokens: number;
799
- } | undefined;
800
- }>;
801
- /**
802
- * llmservice:toolCall - Agent invokes a tool
803
- * Matches: AgentEventMap['llmservice:toolCall'] + taskId
804
- */
805
- export declare const LlmToolCallEventSchema: z.ZodObject<{
806
- args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
807
- callId: z.ZodOptional<z.ZodString>;
808
- sessionId: z.ZodString;
809
- taskId: z.ZodString;
810
- toolName: z.ZodString;
811
- }, "strip", z.ZodTypeAny, {
812
- sessionId: string;
813
- toolName: string;
814
- args: Record<string, unknown>;
815
- taskId: string;
816
- callId?: string | undefined;
817
- }, {
818
- sessionId: string;
819
- toolName: string;
820
- args: Record<string, unknown>;
821
- taskId: string;
822
- callId?: string | undefined;
823
- }>;
824
- /**
825
- * llmservice:toolResult - Tool returns result
826
- * Matches: AgentEventMap['llmservice:toolResult'] + taskId
827
- */
828
- export declare const LlmToolResultEventSchema: z.ZodObject<{
829
- callId: z.ZodOptional<z.ZodString>;
830
- error: z.ZodOptional<z.ZodString>;
831
- errorType: z.ZodOptional<z.ZodEnum<["CANCELLED", "CONFIRMATION_REJECTED", "EXECUTION_FAILED", "INTERNAL_ERROR", "INVALID_PARAM_TYPE", "INVALID_PARAMS", "MISSING_REQUIRED_PARAM", "PARAM_VALIDATION_FAILED", "PERMISSION_DENIED", "PROVIDER_ERROR", "TIMEOUT", "TOOL_DISABLED", "TOOL_NOT_FOUND"]>>;
832
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
833
- result: z.ZodOptional<z.ZodUnknown>;
834
- sessionId: z.ZodString;
835
- success: z.ZodBoolean;
836
- taskId: z.ZodString;
837
- toolName: z.ZodString;
838
- }, "strip", z.ZodTypeAny, {
839
- sessionId: string;
840
- toolName: string;
841
- success: boolean;
842
- taskId: string;
843
- error?: string | undefined;
844
- callId?: string | undefined;
845
- metadata?: Record<string, unknown> | undefined;
846
- errorType?: "TIMEOUT" | "CANCELLED" | "CONFIRMATION_REJECTED" | "EXECUTION_FAILED" | "INTERNAL_ERROR" | "INVALID_PARAM_TYPE" | "INVALID_PARAMS" | "MISSING_REQUIRED_PARAM" | "PARAM_VALIDATION_FAILED" | "PERMISSION_DENIED" | "PROVIDER_ERROR" | "TOOL_DISABLED" | "TOOL_NOT_FOUND" | undefined;
847
- result?: unknown;
848
- }, {
849
- sessionId: string;
850
- toolName: string;
851
- success: boolean;
852
- taskId: string;
853
- error?: string | undefined;
854
- callId?: string | undefined;
855
- metadata?: Record<string, unknown> | undefined;
856
- errorType?: "TIMEOUT" | "CANCELLED" | "CONFIRMATION_REJECTED" | "EXECUTION_FAILED" | "INTERNAL_ERROR" | "INVALID_PARAM_TYPE" | "INVALID_PARAMS" | "MISSING_REQUIRED_PARAM" | "PARAM_VALIDATION_FAILED" | "PERMISSION_DENIED" | "PROVIDER_ERROR" | "TOOL_DISABLED" | "TOOL_NOT_FOUND" | undefined;
857
- result?: unknown;
858
- }>;
859
- export type TaskAck = z.infer<typeof TaskAckSchema>;
860
- export type TaskCancelledEvent = z.infer<typeof TaskCancelledEventSchema>;
861
- export type TaskCreated = z.infer<typeof TaskCreatedSchema>;
862
- export type TaskStartedEvent = z.infer<typeof TaskStartedEventSchema>;
863
- export type TaskCompletedEvent = z.infer<typeof TaskCompletedEventSchema>;
864
- export type TaskErrorData = z.infer<typeof TaskErrorDataSchema>;
865
- export type TaskErrorEvent = z.infer<typeof TaskErrorEventSchema>;
866
- export declare const TaskTypeSchema: z.ZodEnum<["curate", "query"]>;
867
- /**
868
- * Request to create a new task
869
- */
870
- export declare const TaskCreateRequestSchema: z.ZodObject<{
871
- /** Client's working directory for file validation */
872
- clientCwd: z.ZodOptional<z.ZodString>;
873
- /** Task content/prompt */
874
- content: z.ZodString;
875
- /** Optional file paths for curate --files (max 5) */
876
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
877
- /** Task ID - generated by Client UseCase (UUID v4) */
878
- taskId: z.ZodString;
879
- /** Task type */
880
- type: z.ZodEnum<["curate", "query"]>;
881
- }, "strip", z.ZodTypeAny, {
882
- type: "curate" | "query";
883
- content: string;
884
- taskId: string;
885
- files?: string[] | undefined;
886
- clientCwd?: string | undefined;
887
- }, {
888
- type: "curate" | "query";
889
- content: string;
890
- taskId: string;
891
- files?: string[] | undefined;
892
- clientCwd?: string | undefined;
893
- }>;
894
- /**
895
- * Response after task creation
896
- */
897
- export declare const TaskCreateResponseSchema: z.ZodObject<{
898
- /** Created task ID */
899
- taskId: z.ZodString;
900
- }, "strip", z.ZodTypeAny, {
901
- taskId: string;
902
- }, {
903
- taskId: string;
904
- }>;
905
- /**
906
- * Request to cancel a task
907
- */
908
- export declare const TaskCancelRequestSchema: z.ZodObject<{
909
- taskId: z.ZodString;
910
- }, "strip", z.ZodTypeAny, {
911
- taskId: string;
912
- }, {
913
- taskId: string;
914
- }>;
915
- /**
916
- * Response after task cancellation
917
- */
918
- export declare const TaskCancelResponseSchema: z.ZodObject<{
919
- /** Error message if cancellation failed */
920
- error: z.ZodOptional<z.ZodString>;
921
- success: z.ZodBoolean;
922
- }, "strip", z.ZodTypeAny, {
923
- success: boolean;
924
- error?: string | undefined;
925
- }, {
926
- success: boolean;
927
- error?: string | undefined;
928
- }>;
929
- /**
930
- * Session info returned by queries
931
- */
932
- export declare const SessionInfoSchema: z.ZodObject<{
933
- createdAt: z.ZodNumber;
934
- id: z.ZodString;
935
- lastActiveAt: z.ZodNumber;
936
- name: z.ZodOptional<z.ZodString>;
937
- }, "strip", z.ZodTypeAny, {
938
- id: string;
939
- createdAt: number;
940
- lastActiveAt: number;
941
- name?: string | undefined;
942
- }, {
943
- id: string;
944
- createdAt: number;
945
- lastActiveAt: number;
946
- name?: string | undefined;
947
- }>;
948
- /**
949
- * Session statistics
950
- */
951
- export declare const SessionStatsSchema: z.ZodObject<{
952
- completedTasks: z.ZodNumber;
953
- failedTasks: z.ZodNumber;
954
- totalTasks: z.ZodNumber;
955
- }, "strip", z.ZodTypeAny, {
956
- completedTasks: number;
957
- failedTasks: number;
958
- totalTasks: number;
959
- }, {
960
- completedTasks: number;
961
- failedTasks: number;
962
- totalTasks: number;
963
- }>;
964
- /**
965
- * Request for session:info (empty - get current session)
966
- */
967
- export declare const SessionInfoRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
968
- /**
969
- * Response for session:info
970
- */
971
- export declare const SessionInfoResponseSchema: z.ZodObject<{
972
- session: z.ZodObject<{
973
- createdAt: z.ZodNumber;
974
- id: z.ZodString;
975
- lastActiveAt: z.ZodNumber;
976
- name: z.ZodOptional<z.ZodString>;
977
- }, "strip", z.ZodTypeAny, {
978
- id: string;
979
- createdAt: number;
980
- lastActiveAt: number;
981
- name?: string | undefined;
982
- }, {
983
- id: string;
984
- createdAt: number;
985
- lastActiveAt: number;
986
- name?: string | undefined;
987
- }>;
988
- stats: z.ZodObject<{
989
- completedTasks: z.ZodNumber;
990
- failedTasks: z.ZodNumber;
991
- totalTasks: z.ZodNumber;
992
- }, "strip", z.ZodTypeAny, {
993
- completedTasks: number;
994
- failedTasks: number;
995
- totalTasks: number;
996
- }, {
997
- completedTasks: number;
998
- failedTasks: number;
999
- totalTasks: number;
1000
- }>;
1001
- }, "strip", z.ZodTypeAny, {
1002
- session: {
1003
- id: string;
1004
- createdAt: number;
1005
- lastActiveAt: number;
1006
- name?: string | undefined;
1007
- };
1008
- stats: {
1009
- completedTasks: number;
1010
- failedTasks: number;
1011
- totalTasks: number;
1012
- };
1013
- }, {
1014
- session: {
1015
- id: string;
1016
- createdAt: number;
1017
- lastActiveAt: number;
1018
- name?: string | undefined;
1019
- };
1020
- stats: {
1021
- completedTasks: number;
1022
- failedTasks: number;
1023
- totalTasks: number;
1024
- };
1025
- }>;
1026
- /**
1027
- * Request for session:list (empty - list all)
1028
- */
1029
- export declare const SessionListRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1030
- /**
1031
- * Response for session:list
1032
- */
1033
- export declare const SessionListResponseSchema: z.ZodObject<{
1034
- sessions: z.ZodArray<z.ZodObject<{
1035
- createdAt: z.ZodNumber;
1036
- id: z.ZodString;
1037
- lastActiveAt: z.ZodNumber;
1038
- name: z.ZodOptional<z.ZodString>;
1039
- }, "strip", z.ZodTypeAny, {
1040
- id: string;
1041
- createdAt: number;
1042
- lastActiveAt: number;
1043
- name?: string | undefined;
1044
- }, {
1045
- id: string;
1046
- createdAt: number;
1047
- lastActiveAt: number;
1048
- name?: string | undefined;
1049
- }>, "many">;
1050
- }, "strip", z.ZodTypeAny, {
1051
- sessions: {
1052
- id: string;
1053
- createdAt: number;
1054
- lastActiveAt: number;
1055
- name?: string | undefined;
1056
- }[];
1057
- }, {
1058
- sessions: {
1059
- id: string;
1060
- createdAt: number;
1061
- lastActiveAt: number;
1062
- name?: string | undefined;
1063
- }[];
1064
- }>;
1065
- /**
1066
- * Request for session:create
1067
- */
1068
- export declare const SessionCreateRequestSchema: z.ZodObject<{
1069
- name: z.ZodOptional<z.ZodString>;
1070
- }, "strip", z.ZodTypeAny, {
1071
- name?: string | undefined;
1072
- }, {
1073
- name?: string | undefined;
1074
- }>;
1075
- /**
1076
- * Response for session:create
1077
- */
1078
- export declare const SessionCreateResponseSchema: z.ZodObject<{
1079
- sessionId: z.ZodString;
1080
- }, "strip", z.ZodTypeAny, {
1081
- sessionId: string;
1082
- }, {
1083
- sessionId: string;
1084
- }>;
1085
- /**
1086
- * Request for session:switch
1087
- */
1088
- export declare const SessionSwitchRequestSchema: z.ZodObject<{
1089
- sessionId: z.ZodString;
1090
- }, "strip", z.ZodTypeAny, {
1091
- sessionId: string;
1092
- }, {
1093
- sessionId: string;
1094
- }>;
1095
- /**
1096
- * Response for session:switch
1097
- */
1098
- export declare const SessionSwitchResponseSchema: z.ZodObject<{
1099
- success: z.ZodBoolean;
1100
- }, "strip", z.ZodTypeAny, {
1101
- success: boolean;
1102
- }, {
1103
- success: boolean;
1104
- }>;
1105
- /**
1106
- * Broadcast when session switches (server → all clients)
1107
- */
1108
- export declare const SessionSwitchedBroadcastSchema: z.ZodObject<{
1109
- sessionId: z.ZodString;
1110
- }, "strip", z.ZodTypeAny, {
1111
- sessionId: string;
1112
- }, {
1113
- sessionId: string;
1114
- }>;
1115
- /**
1116
- * Request to restart/reinitialize the Agent.
1117
- * Used when config changes (e.g., after /init) require Agent to reload.
1118
- */
1119
- export declare const AgentRestartRequestSchema: z.ZodObject<{
1120
- /** Optional reason for restart (for logging) */
1121
- reason: z.ZodOptional<z.ZodString>;
1122
- }, "strip", z.ZodTypeAny, {
1123
- reason?: string | undefined;
1124
- }, {
1125
- reason?: string | undefined;
1126
- }>;
1127
- /**
1128
- * Response after agent restart request.
1129
- */
1130
- export declare const AgentRestartResponseSchema: z.ZodObject<{
1131
- /** Error message if restart failed */
1132
- error: z.ZodOptional<z.ZodString>;
1133
- /** Whether the restart was initiated successfully */
1134
- success: z.ZodBoolean;
1135
- }, "strip", z.ZodTypeAny, {
1136
- success: boolean;
1137
- error?: string | undefined;
1138
- }, {
1139
- success: boolean;
1140
- error?: string | undefined;
1141
- }>;
1142
- /**
1143
- * Request to create a new session (end current, start fresh).
1144
- * Used by /new command to start a fresh conversation.
1145
- */
1146
- export declare const AgentNewSessionRequestSchema: z.ZodObject<{
1147
- /** Optional reason for new session (for logging) */
1148
- reason: z.ZodOptional<z.ZodString>;
1149
- }, "strip", z.ZodTypeAny, {
1150
- reason?: string | undefined;
1151
- }, {
1152
- reason?: string | undefined;
1153
- }>;
1154
- /**
1155
- * Response after new session is created.
1156
- */
1157
- export declare const AgentNewSessionResponseSchema: z.ZodObject<{
1158
- /** Error message if session creation failed */
1159
- error: z.ZodOptional<z.ZodString>;
1160
- /** The new session ID */
1161
- sessionId: z.ZodOptional<z.ZodString>;
1162
- /** Whether the new session was created successfully */
1163
- success: z.ZodBoolean;
1164
- }, "strip", z.ZodTypeAny, {
1165
- success: boolean;
1166
- error?: string | undefined;
1167
- sessionId?: string | undefined;
1168
- }, {
1169
- success: boolean;
1170
- error?: string | undefined;
1171
- sessionId?: string | undefined;
1172
- }>;
1173
- /**
1174
- * Agent status event names.
1175
- */
1176
- export declare const AgentStatusEventNames: {
1177
- /** Status changed broadcast */
1178
- readonly STATUS_CHANGED: "agent:status:changed";
1179
- };
1180
- /**
1181
- * Agent health status for monitoring.
1182
- * Used by Transport to check if CipherAgent is ready before forwarding tasks.
1183
- */
1184
- export declare const AgentStatusSchema: z.ZodObject<{
1185
- /** Number of tasks currently processing */
1186
- activeTasks: z.ZodNumber;
1187
- /** Whether auth token is loaded and valid */
1188
- hasAuth: z.ZodBoolean;
1189
- /** Whether BrvConfig is loaded */
1190
- hasConfig: z.ZodBoolean;
1191
- /** Whether CipherAgent is initialized and ready */
1192
- isInitialized: z.ZodBoolean;
1193
- /** Last initialization error message */
1194
- lastError: z.ZodOptional<z.ZodString>;
1195
- /** Number of tasks waiting in queue */
1196
- queuedTasks: z.ZodNumber;
1197
- }, "strip", z.ZodTypeAny, {
1198
- activeTasks: number;
1199
- hasAuth: boolean;
1200
- hasConfig: boolean;
1201
- isInitialized: boolean;
1202
- queuedTasks: number;
1203
- lastError?: string | undefined;
1204
- }, {
1205
- activeTasks: number;
1206
- hasAuth: boolean;
1207
- hasConfig: boolean;
1208
- isInitialized: boolean;
1209
- queuedTasks: number;
1210
- lastError?: string | undefined;
1211
- }>;
1212
- export type AgentStatus = z.infer<typeof AgentStatusSchema>;
1213
- export type TodoItem = z.infer<typeof TodoItemSchema>;
1214
- export type ChunkPayload = z.infer<typeof ChunkPayloadSchema>;
1215
- export type ResponsePayload = z.infer<typeof ResponsePayloadSchema>;
1216
- export type ToolCallPayload = z.infer<typeof ToolCallPayloadSchema>;
1217
- export type ToolResultPayload = z.infer<typeof ToolResultPayloadSchema>;
1218
- export type TodoUpdatedPayload = z.infer<typeof TodoUpdatedPayloadSchema>;
1219
- export type ExecutionStartedPayload = z.infer<typeof ExecutionStartedPayloadSchema>;
1220
- export type ExecutionTerminatedPayload = z.infer<typeof ExecutionTerminatedPayloadSchema>;
1221
- export type TaskType = z.infer<typeof TaskTypeSchema>;
1222
- export type TaskCreateRequest = z.infer<typeof TaskCreateRequestSchema>;
1223
- export type TaskCreateResponse = z.infer<typeof TaskCreateResponseSchema>;
1224
- export type TaskCancelRequest = z.infer<typeof TaskCancelRequestSchema>;
1225
- export type TaskCancelResponse = z.infer<typeof TaskCancelResponseSchema>;
1226
- export type SessionInfo = z.infer<typeof SessionInfoSchema>;
1227
- export type SessionStats = z.infer<typeof SessionStatsSchema>;
1228
- export type SessionInfoRequest = z.infer<typeof SessionInfoRequestSchema>;
1229
- export type SessionInfoResponse = z.infer<typeof SessionInfoResponseSchema>;
1230
- export type SessionListRequest = z.infer<typeof SessionListRequestSchema>;
1231
- export type SessionListResponse = z.infer<typeof SessionListResponseSchema>;
1232
- export type SessionCreateRequest = z.infer<typeof SessionCreateRequestSchema>;
1233
- export type SessionCreateResponse = z.infer<typeof SessionCreateResponseSchema>;
1234
- export type SessionSwitchRequest = z.infer<typeof SessionSwitchRequestSchema>;
1235
- export type SessionSwitchResponse = z.infer<typeof SessionSwitchResponseSchema>;
1236
- export type SessionSwitchedBroadcast = z.infer<typeof SessionSwitchedBroadcastSchema>;
1237
- export type AgentRestartRequest = z.infer<typeof AgentRestartRequestSchema>;
1238
- export type AgentRestartResponse = z.infer<typeof AgentRestartResponseSchema>;
1239
- export type AgentNewSessionRequest = z.infer<typeof AgentNewSessionRequestSchema>;
1240
- export type AgentNewSessionResponse = z.infer<typeof AgentNewSessionResponseSchema>;