byterover-cli 1.6.0 → 1.7.1

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 (2575) 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/node_modules/@campfirein/brv-transport-client/README.md +409 -0
  558. package/node_modules/@campfirein/brv-transport-client/dist/constants.d.ts +19 -0
  559. package/node_modules/@campfirein/brv-transport-client/dist/constants.d.ts.map +1 -0
  560. package/node_modules/@campfirein/brv-transport-client/dist/constants.js +24 -0
  561. package/node_modules/@campfirein/brv-transport-client/dist/constants.js.map +1 -0
  562. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.d.ts +77 -0
  563. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.d.ts.map +1 -0
  564. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.js +135 -0
  565. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/entities/instance-info.js.map +1 -0
  566. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.d.ts +63 -0
  567. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.d.ts.map +1 -0
  568. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.js +104 -0
  569. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/connection-error.js.map +1 -0
  570. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.d.ts +177 -0
  571. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.d.ts.map +1 -0
  572. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.js +319 -0
  573. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/errors/transport-error.js.map +1 -0
  574. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.d.ts +216 -0
  575. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.d.ts.map +1 -0
  576. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.js +172 -0
  577. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/event-names.js.map +1 -0
  578. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.d.ts +22 -0
  579. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.d.ts.map +1 -0
  580. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.js +23 -0
  581. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/events/index.js.map +1 -0
  582. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.d.ts +47 -0
  583. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.d.ts.map +1 -0
  584. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.js +7 -0
  585. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/types.js.map +1 -0
  586. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.d.ts +31 -0
  587. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.d.ts.map +1 -0
  588. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.js +49 -0
  589. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/common.js.map +1 -0
  590. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.d.ts +21 -0
  591. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.d.ts.map +1 -0
  592. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.js +30 -0
  593. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/event-name-validator.js.map +1 -0
  594. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.d.ts +9 -0
  595. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.d.ts.map +1 -0
  596. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.js +9 -0
  597. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/index.js.map +1 -0
  598. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.d.ts +21 -0
  599. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.d.ts.map +1 -0
  600. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.js +30 -0
  601. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/room-name-validator.js.map +1 -0
  602. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.d.ts +29 -0
  603. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.d.ts.map +1 -0
  604. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.js +61 -0
  605. package/node_modules/@campfirein/brv-transport-client/dist/core/domain/validators/url-validator.js.map +1 -0
  606. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.d.ts +44 -0
  607. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.d.ts.map +1 -0
  608. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.js +2 -0
  609. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-factory.js.map +1 -0
  610. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.d.ts +45 -0
  611. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.d.ts.map +1 -0
  612. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.js +2 -0
  613. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client-logger.js.map +1 -0
  614. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts +170 -0
  615. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.d.ts.map +1 -0
  616. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.js +2 -0
  617. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-client.js.map +1 -0
  618. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.d.ts +78 -0
  619. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.d.ts.map +1 -0
  620. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.js +2 -0
  621. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-connection-state.js.map +1 -0
  622. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.d.ts +33 -0
  623. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.d.ts.map +1 -0
  624. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.js +2 -0
  625. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-event-dispatcher.js.map +1 -0
  626. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.d.ts +42 -0
  627. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.d.ts.map +1 -0
  628. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.js +2 -0
  629. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-force-reconnect-manager.js.map +1 -0
  630. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.d.ts +45 -0
  631. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.d.ts.map +1 -0
  632. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.js +2 -0
  633. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-discovery.js.map +1 -0
  634. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.d.ts +19 -0
  635. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.d.ts.map +1 -0
  636. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.js +2 -0
  637. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-instance-reader.js.map +1 -0
  638. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.d.ts +27 -0
  639. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.d.ts.map +1 -0
  640. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.js +2 -0
  641. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-reconnection-strategy.js.map +1 -0
  642. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.d.ts +32 -0
  643. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.d.ts.map +1 -0
  644. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.js +2 -0
  645. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-room-manager.js.map +1 -0
  646. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.d.ts +45 -0
  647. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.d.ts.map +1 -0
  648. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.js +2 -0
  649. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket-provider.js.map +1 -0
  650. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.d.ts +56 -0
  651. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.d.ts.map +1 -0
  652. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.js +2 -0
  653. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-socket.js.map +1 -0
  654. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.d.ts +35 -0
  655. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.d.ts.map +1 -0
  656. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.js +2 -0
  657. package/node_modules/@campfirein/brv-transport-client/dist/core/interfaces/i-wake-detector.js.map +1 -0
  658. package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts +65 -0
  659. package/node_modules/@campfirein/brv-transport-client/dist/index.d.ts.map +1 -0
  660. package/node_modules/@campfirein/brv-transport-client/dist/index.js +73 -0
  661. package/node_modules/@campfirein/brv-transport-client/dist/index.js.map +1 -0
  662. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts +283 -0
  663. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.d.ts.map +1 -0
  664. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js +451 -0
  665. package/node_modules/@campfirein/brv-transport-client/dist/infra/client-factory.js.map +1 -0
  666. package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.d.ts +90 -0
  667. package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.d.ts.map +1 -0
  668. package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.js +142 -0
  669. package/node_modules/@campfirein/brv-transport-client/dist/infra/connection-state-manager.js.map +1 -0
  670. package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.d.ts +168 -0
  671. package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.d.ts.map +1 -0
  672. package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.js +265 -0
  673. package/node_modules/@campfirein/brv-transport-client/dist/infra/event-dispatcher.js.map +1 -0
  674. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.d.ts +32 -0
  675. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.d.ts.map +1 -0
  676. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.js +85 -0
  677. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-discovery.js.map +1 -0
  678. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.d.ts +16 -0
  679. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.d.ts.map +1 -0
  680. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.js +47 -0
  681. package/node_modules/@campfirein/brv-transport-client/dist/infra/file-instance-reader.js.map +1 -0
  682. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.d.ts +102 -0
  683. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.d.ts.map +1 -0
  684. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.js +161 -0
  685. package/node_modules/@campfirein/brv-transport-client/dist/infra/force-reconnect-manager.js.map +1 -0
  686. package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.d.ts +17 -0
  687. package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.d.ts.map +1 -0
  688. package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.js +24 -0
  689. package/node_modules/@campfirein/brv-transport-client/dist/infra/no-op-client-logger.js.map +1 -0
  690. package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.d.ts +17 -0
  691. package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.d.ts.map +1 -0
  692. package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.js +40 -0
  693. package/node_modules/@campfirein/brv-transport-client/dist/infra/process-utils.js.map +1 -0
  694. package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.d.ts +136 -0
  695. package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.d.ts.map +1 -0
  696. package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.js +174 -0
  697. package/node_modules/@campfirein/brv-transport-client/dist/infra/reconnection-strategy.js.map +1 -0
  698. package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.d.ts +122 -0
  699. package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.d.ts.map +1 -0
  700. package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.js +306 -0
  701. package/node_modules/@campfirein/brv-transport-client/dist/infra/room-manager.js.map +1 -0
  702. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.d.ts +14 -0
  703. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.d.ts.map +1 -0
  704. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.js +28 -0
  705. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/index.js.map +1 -0
  706. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts +953 -0
  707. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.d.ts.map +1 -0
  708. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js +476 -0
  709. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/schemas.js.map +1 -0
  710. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.d.ts +221 -0
  711. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.d.ts.map +1 -0
  712. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.js +2 -0
  713. package/node_modules/@campfirein/brv-transport-client/dist/infra/schemas/types.js.map +1 -0
  714. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts +283 -0
  715. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.d.ts.map +1 -0
  716. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js +668 -0
  717. package/node_modules/@campfirein/brv-transport-client/dist/infra/socket-io-client.js.map +1 -0
  718. package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.d.ts +25 -0
  719. package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.d.ts.map +1 -0
  720. package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.js +54 -0
  721. package/node_modules/@campfirein/brv-transport-client/dist/infra/utils/deep-freeze.js.map +1 -0
  722. package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.d.ts +72 -0
  723. package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.d.ts.map +1 -0
  724. package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.js +130 -0
  725. package/node_modules/@campfirein/brv-transport-client/dist/infra/wake-detector.js.map +1 -0
  726. package/node_modules/@campfirein/brv-transport-client/package.json +62 -0
  727. package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
  728. package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
  729. package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
  730. package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
  731. package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
  732. package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
  733. package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
  734. package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
  735. package/node_modules/@socket.io/component-emitter/package.json +28 -0
  736. package/node_modules/engine.io-client/LICENSE +22 -0
  737. package/node_modules/engine.io-client/README.md +331 -0
  738. package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
  739. package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
  740. package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
  741. package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
  742. package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
  743. package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
  744. package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
  745. package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
  746. package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
  747. package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
  748. package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
  749. package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
  750. package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
  751. package/node_modules/engine.io-client/build/cjs/index.js +32 -0
  752. package/node_modules/engine.io-client/build/cjs/package.json +10 -0
  753. package/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
  754. package/node_modules/engine.io-client/build/cjs/socket.js +765 -0
  755. package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
  756. package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
  757. package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
  758. package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
  759. package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
  760. package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
  761. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
  762. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
  763. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
  764. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
  765. package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
  766. package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
  767. package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
  768. package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
  769. package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
  770. package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
  771. package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
  772. package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
  773. package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
  774. package/node_modules/engine.io-client/build/cjs/util.js +65 -0
  775. package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
  776. package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
  777. package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
  778. package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
  779. package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
  780. package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
  781. package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
  782. package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
  783. package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
  784. package/node_modules/engine.io-client/build/esm/globals.js +22 -0
  785. package/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
  786. package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
  787. package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
  788. package/node_modules/engine.io-client/build/esm/index.js +15 -0
  789. package/node_modules/engine.io-client/build/esm/package.json +10 -0
  790. package/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
  791. package/node_modules/engine.io-client/build/esm/socket.js +727 -0
  792. package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
  793. package/node_modules/engine.io-client/build/esm/transport.js +142 -0
  794. package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
  795. package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
  796. package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
  797. package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
  798. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
  799. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
  800. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
  801. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
  802. package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
  803. package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
  804. package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
  805. package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
  806. package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
  807. package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
  808. package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
  809. package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
  810. package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
  811. package/node_modules/engine.io-client/build/esm/util.js +59 -0
  812. package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
  813. package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
  814. package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
  815. package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
  816. package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
  817. package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
  818. package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
  819. package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
  820. package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
  821. package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
  822. package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
  823. package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
  824. package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
  825. package/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
  826. package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
  827. package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
  828. package/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
  829. package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
  830. package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
  831. package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
  832. package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
  833. package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
  834. package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
  835. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
  836. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
  837. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
  838. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
  839. package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
  840. package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
  841. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
  842. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
  843. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
  844. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
  845. package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
  846. package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
  847. package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
  848. package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
  849. package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
  850. package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
  851. package/node_modules/engine.io-client/dist/engine.io.js +2968 -0
  852. package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
  853. package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
  854. package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
  855. package/node_modules/engine.io-client/node_modules/debug/LICENSE +20 -0
  856. package/node_modules/engine.io-client/node_modules/debug/README.md +481 -0
  857. package/node_modules/engine.io-client/node_modules/debug/package.json +60 -0
  858. package/node_modules/engine.io-client/node_modules/debug/src/browser.js +271 -0
  859. package/node_modules/engine.io-client/node_modules/debug/src/common.js +274 -0
  860. package/node_modules/engine.io-client/node_modules/debug/src/index.js +10 -0
  861. package/node_modules/engine.io-client/node_modules/debug/src/node.js +263 -0
  862. package/node_modules/engine.io-client/node_modules/ws/LICENSE +20 -0
  863. package/node_modules/engine.io-client/node_modules/ws/README.md +548 -0
  864. package/node_modules/engine.io-client/node_modules/ws/browser.js +8 -0
  865. package/node_modules/engine.io-client/node_modules/ws/index.js +13 -0
  866. package/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js +131 -0
  867. package/node_modules/engine.io-client/node_modules/ws/lib/constants.js +12 -0
  868. package/node_modules/engine.io-client/node_modules/ws/lib/event-target.js +292 -0
  869. package/node_modules/engine.io-client/node_modules/ws/lib/extension.js +203 -0
  870. package/node_modules/engine.io-client/node_modules/ws/lib/limiter.js +55 -0
  871. package/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js +514 -0
  872. package/node_modules/engine.io-client/node_modules/ws/lib/receiver.js +704 -0
  873. package/node_modules/engine.io-client/node_modules/ws/lib/sender.js +497 -0
  874. package/node_modules/engine.io-client/node_modules/ws/lib/stream.js +159 -0
  875. package/node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js +62 -0
  876. package/node_modules/engine.io-client/node_modules/ws/lib/validation.js +130 -0
  877. package/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js +540 -0
  878. package/node_modules/engine.io-client/node_modules/ws/lib/websocket.js +1338 -0
  879. package/node_modules/engine.io-client/node_modules/ws/package.json +69 -0
  880. package/node_modules/engine.io-client/node_modules/ws/wrapper.mjs +8 -0
  881. package/node_modules/engine.io-client/package.json +95 -0
  882. package/node_modules/engine.io-parser/LICENSE +22 -0
  883. package/node_modules/engine.io-parser/Readme.md +158 -0
  884. package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
  885. package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
  886. package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
  887. package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
  888. package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
  889. package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
  890. package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
  891. package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
  892. package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
  893. package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
  894. package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
  895. package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
  896. package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
  897. package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
  898. package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
  899. package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
  900. package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
  901. package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
  902. package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
  903. package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
  904. package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
  905. package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
  906. package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
  907. package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
  908. package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
  909. package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
  910. package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
  911. package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
  912. package/node_modules/engine.io-parser/build/esm/index.js +156 -0
  913. package/node_modules/engine.io-parser/build/esm/package.json +8 -0
  914. package/node_modules/engine.io-parser/package.json +46 -0
  915. package/node_modules/ms/index.js +162 -0
  916. package/node_modules/ms/license.md +21 -0
  917. package/node_modules/ms/package.json +38 -0
  918. package/node_modules/ms/readme.md +59 -0
  919. package/node_modules/socket.io-client/LICENSE +21 -0
  920. package/node_modules/socket.io-client/README.md +29 -0
  921. package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
  922. package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
  923. package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
  924. package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
  925. package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
  926. package/node_modules/socket.io-client/build/cjs/index.js +76 -0
  927. package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
  928. package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
  929. package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
  930. package/node_modules/socket.io-client/build/cjs/on.js +9 -0
  931. package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
  932. package/node_modules/socket.io-client/build/cjs/socket.js +910 -0
  933. package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
  934. package/node_modules/socket.io-client/build/cjs/url.js +69 -0
  935. package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
  936. package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
  937. package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
  938. package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
  939. package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
  940. package/node_modules/socket.io-client/build/esm/index.js +58 -0
  941. package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
  942. package/node_modules/socket.io-client/build/esm/manager.js +367 -0
  943. package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
  944. package/node_modules/socket.io-client/build/esm/on.js +6 -0
  945. package/node_modules/socket.io-client/build/esm/package.json +5 -0
  946. package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
  947. package/node_modules/socket.io-client/build/esm/socket.js +882 -0
  948. package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
  949. package/node_modules/socket.io-client/build/esm/url.js +59 -0
  950. package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
  951. package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
  952. package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
  953. package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
  954. package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
  955. package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
  956. package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
  957. package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
  958. package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
  959. package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
  960. package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
  961. package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
  962. package/node_modules/socket.io-client/build/esm-debug/socket.js +903 -0
  963. package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
  964. package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
  965. package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
  966. package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
  967. package/node_modules/socket.io-client/dist/socket.io.js +4908 -0
  968. package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
  969. package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
  970. package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
  971. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
  972. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
  973. package/node_modules/socket.io-client/node_modules/debug/LICENSE +20 -0
  974. package/node_modules/socket.io-client/node_modules/debug/README.md +481 -0
  975. package/node_modules/socket.io-client/node_modules/debug/package.json +60 -0
  976. package/node_modules/socket.io-client/node_modules/debug/src/browser.js +271 -0
  977. package/node_modules/socket.io-client/node_modules/debug/src/common.js +274 -0
  978. package/node_modules/socket.io-client/node_modules/debug/src/index.js +10 -0
  979. package/node_modules/socket.io-client/node_modules/debug/src/node.js +263 -0
  980. package/node_modules/socket.io-client/package.json +101 -0
  981. package/node_modules/socket.io-parser/LICENSE +20 -0
  982. package/node_modules/socket.io-parser/Readme.md +81 -0
  983. package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
  984. package/node_modules/socket.io-parser/build/cjs/binary.js +88 -0
  985. package/node_modules/socket.io-parser/build/cjs/index.d.ts +90 -0
  986. package/node_modules/socket.io-parser/build/cjs/index.js +321 -0
  987. package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
  988. package/node_modules/socket.io-parser/build/cjs/is-binary.js +55 -0
  989. package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
  990. package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
  991. package/node_modules/socket.io-parser/build/esm/binary.js +83 -0
  992. package/node_modules/socket.io-parser/build/esm/index.d.ts +90 -0
  993. package/node_modules/socket.io-parser/build/esm/index.js +311 -0
  994. package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
  995. package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
  996. package/node_modules/socket.io-parser/build/esm/package.json +3 -0
  997. package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
  998. package/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
  999. package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +90 -0
  1000. package/node_modules/socket.io-parser/build/esm-debug/index.js +316 -0
  1001. package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
  1002. package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
  1003. package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
  1004. package/node_modules/socket.io-parser/node_modules/debug/LICENSE +20 -0
  1005. package/node_modules/socket.io-parser/node_modules/debug/README.md +481 -0
  1006. package/node_modules/socket.io-parser/node_modules/debug/package.json +60 -0
  1007. package/node_modules/socket.io-parser/node_modules/debug/src/browser.js +271 -0
  1008. package/node_modules/socket.io-parser/node_modules/debug/src/common.js +274 -0
  1009. package/node_modules/socket.io-parser/node_modules/debug/src/index.js +10 -0
  1010. package/node_modules/socket.io-parser/node_modules/debug/src/node.js +263 -0
  1011. package/node_modules/socket.io-parser/package.json +58 -0
  1012. package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
  1013. package/node_modules/xmlhttprequest-ssl/README.md +67 -0
  1014. package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
  1015. package/node_modules/xmlhttprequest-ssl/package.json +40 -0
  1016. package/node_modules/zod/LICENSE +21 -0
  1017. package/node_modules/zod/README.md +208 -0
  1018. package/node_modules/zod/index.cjs +33 -0
  1019. package/node_modules/zod/index.d.cts +4 -0
  1020. package/node_modules/zod/index.d.ts +4 -0
  1021. package/node_modules/zod/index.js +4 -0
  1022. package/node_modules/zod/package.json +118 -0
  1023. package/node_modules/zod/src/index.ts +4 -0
  1024. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  1025. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  1026. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  1027. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  1028. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  1029. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  1030. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  1031. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  1032. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  1033. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  1034. package/node_modules/zod/src/v3/errors.ts +13 -0
  1035. package/node_modules/zod/src/v3/external.ts +6 -0
  1036. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  1037. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  1038. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  1039. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  1040. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  1041. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  1042. package/node_modules/zod/src/v3/index.ts +4 -0
  1043. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  1044. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  1045. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  1046. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  1047. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  1048. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  1049. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  1050. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  1051. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  1052. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  1053. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  1054. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  1055. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  1056. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  1057. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  1058. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  1059. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  1060. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  1061. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  1062. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  1063. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  1064. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  1065. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  1066. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  1067. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  1068. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  1069. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  1070. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  1071. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  1072. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  1073. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  1074. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  1075. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  1076. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  1077. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  1078. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  1079. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  1080. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  1081. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  1082. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  1083. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  1084. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  1085. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  1086. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  1087. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  1088. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  1089. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  1090. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  1091. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  1092. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  1093. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  1094. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  1095. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  1096. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  1097. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  1098. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  1099. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  1100. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  1101. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  1102. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  1103. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  1104. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  1105. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  1106. package/node_modules/zod/src/v3/types.ts +5136 -0
  1107. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  1108. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  1109. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  1110. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  1111. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  1112. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  1113. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  1114. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  1115. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  1116. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  1117. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  1118. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  1119. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  1120. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  1121. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  1122. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  1123. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  1124. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  1125. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  1126. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  1127. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  1128. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  1129. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  1130. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  1131. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  1132. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  1133. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  1134. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  1135. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  1136. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  1137. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  1138. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  1139. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  1140. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  1141. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  1142. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  1143. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  1144. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  1145. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  1146. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  1147. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  1148. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  1149. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  1150. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  1151. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  1152. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  1153. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  1154. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  1155. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  1156. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  1157. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  1158. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  1159. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  1160. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  1161. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  1162. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  1163. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  1164. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  1165. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  1166. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  1167. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  1168. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  1169. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  1170. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  1171. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  1172. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  1173. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  1174. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  1175. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  1176. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  1177. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  1178. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  1179. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  1180. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  1181. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  1182. package/node_modules/zod/src/v4/core/config.ts +15 -0
  1183. package/node_modules/zod/src/v4/core/core.ts +134 -0
  1184. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  1185. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  1186. package/node_modules/zod/src/v4/core/function.ts +176 -0
  1187. package/node_modules/zod/src/v4/core/index.ts +15 -0
  1188. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  1189. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  1190. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  1191. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  1192. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  1193. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  1194. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  1195. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  1196. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  1197. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  1198. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  1199. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  1200. package/node_modules/zod/src/v4/core/util.ts +775 -0
  1201. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  1202. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  1203. package/node_modules/zod/src/v4/index.ts +4 -0
  1204. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  1205. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  1206. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  1207. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  1208. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  1209. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  1210. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  1211. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  1212. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  1213. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  1214. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  1215. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  1216. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  1217. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  1218. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  1219. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  1220. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  1221. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  1222. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  1223. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  1224. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  1225. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  1226. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  1227. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1228. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  1229. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  1230. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  1231. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  1232. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  1233. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  1234. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  1235. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  1236. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  1237. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  1238. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  1239. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  1240. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  1241. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  1242. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  1243. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  1244. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  1245. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  1246. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  1247. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1248. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  1249. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  1250. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  1251. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  1252. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  1253. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  1254. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  1255. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  1256. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  1257. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  1258. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  1259. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  1260. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1261. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  1262. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  1263. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  1264. package/node_modules/zod/v3/ZodError.cjs +138 -0
  1265. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1266. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1267. package/node_modules/zod/v3/ZodError.js +133 -0
  1268. package/node_modules/zod/v3/errors.cjs +17 -0
  1269. package/node_modules/zod/v3/errors.d.cts +5 -0
  1270. package/node_modules/zod/v3/errors.d.ts +5 -0
  1271. package/node_modules/zod/v3/errors.js +9 -0
  1272. package/node_modules/zod/v3/external.cjs +22 -0
  1273. package/node_modules/zod/v3/external.d.cts +6 -0
  1274. package/node_modules/zod/v3/external.d.ts +6 -0
  1275. package/node_modules/zod/v3/external.js +6 -0
  1276. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  1277. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1278. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1279. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1280. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  1281. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1282. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1283. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1284. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  1285. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1286. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1287. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1288. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  1289. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1290. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1291. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1292. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  1293. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1294. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1295. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1296. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  1297. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1298. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1299. package/node_modules/zod/v3/helpers/util.js +133 -0
  1300. package/node_modules/zod/v3/index.cjs +33 -0
  1301. package/node_modules/zod/v3/index.d.cts +4 -0
  1302. package/node_modules/zod/v3/index.d.ts +4 -0
  1303. package/node_modules/zod/v3/index.js +4 -0
  1304. package/node_modules/zod/v3/locales/en.cjs +111 -0
  1305. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  1306. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  1307. package/node_modules/zod/v3/locales/en.js +109 -0
  1308. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  1309. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1310. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1311. package/node_modules/zod/v3/standard-schema.js +1 -0
  1312. package/node_modules/zod/v3/types.cjs +3775 -0
  1313. package/node_modules/zod/v3/types.d.cts +1031 -0
  1314. package/node_modules/zod/v3/types.d.ts +1031 -0
  1315. package/node_modules/zod/v3/types.js +3693 -0
  1316. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  1317. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1318. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1319. package/node_modules/zod/v4/classic/checks.js +1 -0
  1320. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  1321. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1322. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1323. package/node_modules/zod/v4/classic/coerce.js +17 -0
  1324. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  1325. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  1326. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  1327. package/node_modules/zod/v4/classic/compat.js +27 -0
  1328. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  1329. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  1330. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  1331. package/node_modules/zod/v4/classic/errors.js +41 -0
  1332. package/node_modules/zod/v4/classic/external.cjs +70 -0
  1333. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  1334. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  1335. package/node_modules/zod/v4/classic/external.js +18 -0
  1336. package/node_modules/zod/v4/classic/index.cjs +33 -0
  1337. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  1338. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  1339. package/node_modules/zod/v4/classic/index.js +4 -0
  1340. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  1341. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  1342. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  1343. package/node_modules/zod/v4/classic/iso.js +30 -0
  1344. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  1345. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  1346. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  1347. package/node_modules/zod/v4/classic/parse.js +6 -0
  1348. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  1349. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  1350. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  1351. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  1352. package/node_modules/zod/v4/core/api.cjs +1039 -0
  1353. package/node_modules/zod/v4/core/api.d.cts +284 -0
  1354. package/node_modules/zod/v4/core/api.d.ts +284 -0
  1355. package/node_modules/zod/v4/core/api.js +906 -0
  1356. package/node_modules/zod/v4/core/checks.cjs +591 -0
  1357. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  1358. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  1359. package/node_modules/zod/v4/core/checks.js +565 -0
  1360. package/node_modules/zod/v4/core/core.cjs +67 -0
  1361. package/node_modules/zod/v4/core/core.d.cts +49 -0
  1362. package/node_modules/zod/v4/core/core.d.ts +49 -0
  1363. package/node_modules/zod/v4/core/core.js +61 -0
  1364. package/node_modules/zod/v4/core/doc.cjs +39 -0
  1365. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  1366. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  1367. package/node_modules/zod/v4/core/doc.js +35 -0
  1368. package/node_modules/zod/v4/core/errors.cjs +226 -0
  1369. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  1370. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  1371. package/node_modules/zod/v4/core/errors.js +195 -0
  1372. package/node_modules/zod/v4/core/function.cjs +102 -0
  1373. package/node_modules/zod/v4/core/function.d.cts +52 -0
  1374. package/node_modules/zod/v4/core/function.d.ts +52 -0
  1375. package/node_modules/zod/v4/core/function.js +75 -0
  1376. package/node_modules/zod/v4/core/index.cjs +44 -0
  1377. package/node_modules/zod/v4/core/index.d.cts +15 -0
  1378. package/node_modules/zod/v4/core/index.d.ts +15 -0
  1379. package/node_modules/zod/v4/core/index.js +15 -0
  1380. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1381. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  1382. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  1383. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1384. package/node_modules/zod/v4/core/parse.cjs +87 -0
  1385. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  1386. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  1387. package/node_modules/zod/v4/core/parse.js +57 -0
  1388. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  1389. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  1390. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  1391. package/node_modules/zod/v4/core/regexes.js +95 -0
  1392. package/node_modules/zod/v4/core/registries.cjs +56 -0
  1393. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1394. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1395. package/node_modules/zod/v4/core/registries.js +51 -0
  1396. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  1397. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  1398. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  1399. package/node_modules/zod/v4/core/schemas.js +1717 -0
  1400. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1401. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  1402. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  1403. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1404. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  1405. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  1406. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  1407. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  1408. package/node_modules/zod/v4/core/util.cjs +539 -0
  1409. package/node_modules/zod/v4/core/util.d.cts +183 -0
  1410. package/node_modules/zod/v4/core/util.d.ts +183 -0
  1411. package/node_modules/zod/v4/core/util.js +493 -0
  1412. package/node_modules/zod/v4/core/versions.cjs +8 -0
  1413. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1414. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1415. package/node_modules/zod/v4/core/versions.js +5 -0
  1416. package/node_modules/zod/v4/index.cjs +22 -0
  1417. package/node_modules/zod/v4/index.d.cts +3 -0
  1418. package/node_modules/zod/v4/index.d.ts +3 -0
  1419. package/node_modules/zod/v4/index.js +3 -0
  1420. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  1421. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  1422. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1423. package/node_modules/zod/v4/locales/ar.js +116 -0
  1424. package/node_modules/zod/v4/locales/az.cjs +141 -0
  1425. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  1426. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1427. package/node_modules/zod/v4/locales/az.js +115 -0
  1428. package/node_modules/zod/v4/locales/be.cjs +190 -0
  1429. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  1430. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1431. package/node_modules/zod/v4/locales/be.js +164 -0
  1432. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  1433. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  1434. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1435. package/node_modules/zod/v4/locales/ca.js +118 -0
  1436. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  1437. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  1438. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1439. package/node_modules/zod/v4/locales/cs.js +135 -0
  1440. package/node_modules/zod/v4/locales/de.cjs +142 -0
  1441. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  1442. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1443. package/node_modules/zod/v4/locales/de.js +116 -0
  1444. package/node_modules/zod/v4/locales/en.cjs +145 -0
  1445. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1446. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  1447. package/node_modules/zod/v4/locales/en.js +117 -0
  1448. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  1449. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1450. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  1451. package/node_modules/zod/v4/locales/eo.js +116 -0
  1452. package/node_modules/zod/v4/locales/es.cjs +143 -0
  1453. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  1454. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1455. package/node_modules/zod/v4/locales/es.js +117 -0
  1456. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  1457. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  1458. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1459. package/node_modules/zod/v4/locales/fa.js +122 -0
  1460. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  1461. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  1462. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1463. package/node_modules/zod/v4/locales/fi.js +122 -0
  1464. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  1465. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  1466. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1467. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  1468. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  1469. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  1470. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1471. package/node_modules/zod/v4/locales/fr.js +116 -0
  1472. package/node_modules/zod/v4/locales/he.cjs +143 -0
  1473. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  1474. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1475. package/node_modules/zod/v4/locales/he.js +117 -0
  1476. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  1477. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  1478. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1479. package/node_modules/zod/v4/locales/hu.js +117 -0
  1480. package/node_modules/zod/v4/locales/id.cjs +142 -0
  1481. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  1482. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1483. package/node_modules/zod/v4/locales/id.js +116 -0
  1484. package/node_modules/zod/v4/locales/index.cjs +84 -0
  1485. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  1486. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  1487. package/node_modules/zod/v4/locales/index.js +39 -0
  1488. package/node_modules/zod/v4/locales/it.cjs +143 -0
  1489. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  1490. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1491. package/node_modules/zod/v4/locales/it.js +117 -0
  1492. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  1493. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  1494. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1495. package/node_modules/zod/v4/locales/ja.js +115 -0
  1496. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  1497. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  1498. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  1499. package/node_modules/zod/v4/locales/kh.js +117 -0
  1500. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  1501. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  1502. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1503. package/node_modules/zod/v4/locales/ko.js +121 -0
  1504. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  1505. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  1506. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1507. package/node_modules/zod/v4/locales/mk.js +118 -0
  1508. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  1509. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  1510. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1511. package/node_modules/zod/v4/locales/ms.js +116 -0
  1512. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  1513. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  1514. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1515. package/node_modules/zod/v4/locales/nl.js +117 -0
  1516. package/node_modules/zod/v4/locales/no.cjs +142 -0
  1517. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  1518. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1519. package/node_modules/zod/v4/locales/no.js +116 -0
  1520. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  1521. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  1522. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1523. package/node_modules/zod/v4/locales/ota.js +117 -0
  1524. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  1525. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  1526. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1527. package/node_modules/zod/v4/locales/pl.js +117 -0
  1528. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  1529. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  1530. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1531. package/node_modules/zod/v4/locales/ps.js +122 -0
  1532. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  1533. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  1534. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1535. package/node_modules/zod/v4/locales/pt.js +116 -0
  1536. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  1537. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  1538. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1539. package/node_modules/zod/v4/locales/ru.js +164 -0
  1540. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  1541. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  1542. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1543. package/node_modules/zod/v4/locales/sl.js +117 -0
  1544. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  1545. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  1546. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1547. package/node_modules/zod/v4/locales/sv.js +118 -0
  1548. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  1549. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  1550. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1551. package/node_modules/zod/v4/locales/ta.js +117 -0
  1552. package/node_modules/zod/v4/locales/th.cjs +143 -0
  1553. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  1554. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1555. package/node_modules/zod/v4/locales/th.js +117 -0
  1556. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  1557. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1558. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  1559. package/node_modules/zod/v4/locales/tr.js +115 -0
  1560. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  1561. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  1562. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  1563. package/node_modules/zod/v4/locales/ua.js +117 -0
  1564. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  1565. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  1566. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1567. package/node_modules/zod/v4/locales/ur.js +117 -0
  1568. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  1569. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  1570. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1571. package/node_modules/zod/v4/locales/vi.js +116 -0
  1572. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  1573. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  1574. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1575. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  1576. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  1577. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  1578. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1579. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  1580. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  1581. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1582. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1583. package/node_modules/zod/v4/mini/checks.js +1 -0
  1584. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  1585. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1586. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1587. package/node_modules/zod/v4/mini/coerce.js +17 -0
  1588. package/node_modules/zod/v4/mini/external.cjs +62 -0
  1589. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  1590. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  1591. package/node_modules/zod/v4/mini/external.js +13 -0
  1592. package/node_modules/zod/v4/mini/index.cjs +32 -0
  1593. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1594. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1595. package/node_modules/zod/v4/mini/index.js +3 -0
  1596. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  1597. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1598. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1599. package/node_modules/zod/v4/mini/iso.js +30 -0
  1600. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  1601. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1602. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1603. package/node_modules/zod/v4/mini/parse.js +1 -0
  1604. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  1605. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  1606. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  1607. package/node_modules/zod/v4/mini/schemas.js +732 -0
  1608. package/node_modules/zod/v4-mini/index.cjs +17 -0
  1609. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  1610. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  1611. package/node_modules/zod/v4-mini/index.js +1 -0
  1612. package/oclif.manifest.json +16 -2
  1613. package/package.json +7 -2
  1614. package/dist/config/auth.config.d.ts +0 -32
  1615. package/dist/core/domain/cipher/agent/agent-registry.d.ts +0 -96
  1616. package/dist/core/domain/cipher/agent/agent-registry.js +0 -254
  1617. package/dist/core/domain/cipher/storage/history-types.d.ts +0 -38
  1618. package/dist/core/domain/cipher/storage/message-storage-types.d.ts +0 -327
  1619. package/dist/core/domain/cipher/streaming/types.d.ts +0 -119
  1620. package/dist/core/domain/cipher/system-prompt/types.d.ts +0 -175
  1621. package/dist/core/domain/cipher/tools/constants.d.ts +0 -33
  1622. package/dist/core/domain/cipher/tools/constants.js +0 -29
  1623. package/dist/core/domain/entities/agent.js +0 -106
  1624. package/dist/core/domain/entities/brv-config.d.ts +0 -61
  1625. package/dist/core/domain/entities/brv-config.js +0 -165
  1626. package/dist/core/domain/entities/space.d.ts +0 -24
  1627. package/dist/core/domain/entities/space.js +0 -52
  1628. package/dist/core/domain/entities/team.d.ts +0 -42
  1629. package/dist/core/domain/entities/team.js +0 -89
  1630. package/dist/core/domain/entities/user.d.ts +0 -20
  1631. package/dist/core/domain/entities/user.js +0 -32
  1632. package/dist/core/domain/errors/connection-error.d.ts +0 -33
  1633. package/dist/core/domain/errors/connection-error.js +0 -54
  1634. package/dist/core/domain/knowledge/relation-parser.d.ts +0 -91
  1635. package/dist/core/domain/knowledge/relation-parser.js +0 -126
  1636. package/dist/core/domain/transport/schemas.d.ts +0 -1240
  1637. package/dist/core/domain/transport/schemas.js +0 -611
  1638. package/dist/core/interfaces/cipher/cipher-services.d.ts +0 -80
  1639. package/dist/core/interfaces/cipher/i-blob-storage.d.ts +0 -84
  1640. package/dist/core/interfaces/cipher/i-chat-session.d.ts +0 -107
  1641. package/dist/core/interfaces/cipher/i-cipher-agent.d.ts +0 -125
  1642. package/dist/core/interfaces/cipher/i-content-generator.d.ts +0 -148
  1643. package/dist/core/interfaces/cipher/i-file-system.d.ts +0 -79
  1644. package/dist/core/interfaces/cipher/i-history-storage.d.ts +0 -53
  1645. package/dist/core/interfaces/cipher/i-llm-service.d.ts +0 -61
  1646. package/dist/core/interfaces/cipher/i-process-service.d.ts +0 -65
  1647. package/dist/core/interfaces/cipher/i-session-persistence.d.ts +0 -133
  1648. package/dist/core/interfaces/cipher/i-system-prompt-contributor.d.ts +0 -25
  1649. package/dist/core/interfaces/cipher/i-todo-storage.d.ts +0 -24
  1650. package/dist/core/interfaces/cipher/i-tool-plugin.d.ts +0 -90
  1651. package/dist/core/interfaces/cipher/i-tool-provider.d.ts +0 -65
  1652. package/dist/core/interfaces/cipher/index.d.ts +0 -32
  1653. package/dist/core/interfaces/connectors/connector-types.d.ts +0 -70
  1654. package/dist/core/interfaces/connectors/i-connector-manager.d.ts +0 -72
  1655. package/dist/core/interfaces/connectors/i-connector.d.ts +0 -54
  1656. package/dist/core/interfaces/executor/i-curate-executor.d.ts +0 -36
  1657. package/dist/core/interfaces/executor/i-query-executor.d.ts +0 -32
  1658. package/dist/core/interfaces/executor/index.d.ts +0 -2
  1659. package/dist/core/interfaces/executor/index.js +0 -2
  1660. package/dist/core/interfaces/i-auth-service.d.ts +0 -35
  1661. package/dist/core/interfaces/i-cogit-pull-service.d.ts +0 -23
  1662. package/dist/core/interfaces/i-cogit-push-service.d.ts +0 -27
  1663. package/dist/core/interfaces/i-context-file-reader.d.ts +0 -35
  1664. package/dist/core/interfaces/i-context-tree-snapshot-service.d.ts +0 -36
  1665. package/dist/core/interfaces/i-context-tree-writer-service.d.ts +0 -32
  1666. package/dist/core/interfaces/i-global-config-store.d.ts +0 -34
  1667. package/dist/core/interfaces/i-http-client.d.ts +0 -33
  1668. package/dist/core/interfaces/i-legacy-rule-detector.d.ts +0 -56
  1669. package/dist/core/interfaces/i-mcp-config-writer.d.ts +0 -40
  1670. package/dist/core/interfaces/i-memory-retrieval-service.d.ts +0 -39
  1671. package/dist/core/interfaces/i-memory-storage-service.d.ts +0 -53
  1672. package/dist/core/interfaces/i-project-config-store.d.ts +0 -26
  1673. package/dist/core/interfaces/i-rule-template-service.d.ts +0 -15
  1674. package/dist/core/interfaces/i-space-service.d.ts +0 -27
  1675. package/dist/core/interfaces/i-team-service.d.ts +0 -28
  1676. package/dist/core/interfaces/i-token-store.d.ts +0 -22
  1677. package/dist/core/interfaces/i-tracking-service.d.ts +0 -21
  1678. package/dist/core/interfaces/i-user-service.d.ts +0 -13
  1679. package/dist/core/interfaces/i-workspace-detector-service.d.ts +0 -8
  1680. package/dist/core/interfaces/noop-implementations.d.ts +0 -53
  1681. package/dist/core/interfaces/transport/i-transport-client.d.ts +0 -104
  1682. package/dist/core/interfaces/transport/index.d.ts +0 -2
  1683. package/dist/core/interfaces/transport/index.js +0 -2
  1684. package/dist/core/interfaces/usecase/i-curate-use-case.d.ts +0 -12
  1685. package/dist/infra/auth/oauth-service.d.ts +0 -64
  1686. package/dist/infra/auth/oidc-discovery-service.d.ts +0 -51
  1687. package/dist/infra/browser/system-browser-launcher.d.ts +0 -10
  1688. package/dist/infra/cipher/agent/agent-error.d.ts +0 -54
  1689. package/dist/infra/cipher/agent/agent-error.js +0 -79
  1690. package/dist/infra/cipher/agent/agent-schemas.d.ts +0 -264
  1691. package/dist/infra/cipher/agent/agent-state-manager.d.ts +0 -140
  1692. package/dist/infra/cipher/agent/base-agent.d.ts +0 -118
  1693. package/dist/infra/cipher/agent/cipher-agent.d.ts +0 -173
  1694. package/dist/infra/cipher/agent/cipher-agent.js +0 -566
  1695. package/dist/infra/cipher/agent/service-initializer.d.ts +0 -79
  1696. package/dist/infra/cipher/agent/service-initializer.js +0 -284
  1697. package/dist/infra/cipher/agent/types.d.ts +0 -35
  1698. package/dist/infra/cipher/blob/blob-reference-resolver.d.ts +0 -107
  1699. package/dist/infra/cipher/blob/blob-storage-factory.d.ts +0 -13
  1700. package/dist/infra/cipher/blob/index.d.ts +0 -10
  1701. package/dist/infra/cipher/blob/index.js +0 -12
  1702. package/dist/infra/cipher/blob/migrations.d.ts +0 -63
  1703. package/dist/infra/cipher/blob/sqlite-blob-storage.d.ts +0 -82
  1704. package/dist/infra/cipher/blob/sqlite-blob-storage.js +0 -307
  1705. package/dist/infra/cipher/display/todo-display.d.ts +0 -23
  1706. package/dist/infra/cipher/events/event-emitter.d.ts +0 -137
  1707. package/dist/infra/cipher/file-system/binary-utils.d.ts +0 -51
  1708. package/dist/infra/cipher/file-system/binary-utils.js +0 -202
  1709. package/dist/infra/cipher/file-system/file-system-service.d.ts +0 -134
  1710. package/dist/infra/cipher/file-system/file-system-service.js +0 -1021
  1711. package/dist/infra/cipher/file-system/path-validator.d.ts +0 -101
  1712. package/dist/infra/cipher/file-system/path-validator.js +0 -289
  1713. package/dist/infra/cipher/file-system/pdf-extractor.d.ts +0 -100
  1714. package/dist/infra/cipher/file-system/pdf-extractor.js +0 -226
  1715. package/dist/infra/cipher/http/internal-llm-http-service.d.ts +0 -133
  1716. package/dist/infra/cipher/http/internal-llm-http-service.js +0 -265
  1717. package/dist/infra/cipher/interactive-commands.d.ts +0 -16
  1718. package/dist/infra/cipher/interactive-loop.d.ts +0 -24
  1719. package/dist/infra/cipher/llm/capability-cache.d.ts +0 -87
  1720. package/dist/infra/cipher/llm/capability-cache.js +0 -125
  1721. package/dist/infra/cipher/llm/context/compaction/compaction-service.d.ts +0 -138
  1722. package/dist/infra/cipher/llm/context/compression/enhanced-compaction.d.ts +0 -112
  1723. package/dist/infra/cipher/llm/context/compression/filter-compacted.d.ts +0 -83
  1724. package/dist/infra/cipher/llm/context/compression/middle-removal.d.ts +0 -40
  1725. package/dist/infra/cipher/llm/context/compression/middle-removal.js +0 -76
  1726. package/dist/infra/cipher/llm/context/compression/oldest-removal.d.ts +0 -38
  1727. package/dist/infra/cipher/llm/context/compression/oldest-removal.js +0 -53
  1728. package/dist/infra/cipher/llm/context/compression/reactive-overflow.d.ts +0 -107
  1729. package/dist/infra/cipher/llm/context/compression/reactive-overflow.js +0 -272
  1730. package/dist/infra/cipher/llm/context/compression/types.d.ts +0 -36
  1731. package/dist/infra/cipher/llm/context/context-manager.d.ts +0 -332
  1732. package/dist/infra/cipher/llm/context/context-manager.js +0 -671
  1733. package/dist/infra/cipher/llm/context/utils.d.ts +0 -17
  1734. package/dist/infra/cipher/llm/formatters/claude-formatter.d.ts +0 -54
  1735. package/dist/infra/cipher/llm/formatters/gemini-formatter.d.ts +0 -82
  1736. package/dist/infra/cipher/llm/formatters/openrouter-formatter.d.ts +0 -47
  1737. package/dist/infra/cipher/llm/formatters/openrouter-formatter.js +0 -238
  1738. package/dist/infra/cipher/llm/generators/byterover-content-generator.d.ts +0 -91
  1739. package/dist/infra/cipher/llm/generators/logging-content-generator.d.ts +0 -104
  1740. package/dist/infra/cipher/llm/generators/logging-content-generator.js +0 -182
  1741. package/dist/infra/cipher/llm/generators/openrouter-content-generator.d.ts +0 -94
  1742. package/dist/infra/cipher/llm/generators/retryable-content-generator.d.ts +0 -90
  1743. package/dist/infra/cipher/llm/generators/retryable-content-generator.js +0 -157
  1744. package/dist/infra/cipher/llm/index.d.ts +0 -9
  1745. package/dist/infra/cipher/llm/index.js +0 -13
  1746. package/dist/infra/cipher/llm/internal-llm-service.d.ts +0 -362
  1747. package/dist/infra/cipher/llm/internal-llm-service.js +0 -1059
  1748. package/dist/infra/cipher/llm/openrouter-llm-service.d.ts +0 -215
  1749. package/dist/infra/cipher/llm/openrouter-llm-service.js +0 -572
  1750. package/dist/infra/cipher/llm/response-validator.d.ts +0 -89
  1751. package/dist/infra/cipher/llm/sanitization/tool-sanitizer.d.ts +0 -74
  1752. package/dist/infra/cipher/llm/sanitization/tool-sanitizer.js +0 -398
  1753. package/dist/infra/cipher/llm/stream-processor.d.ts +0 -178
  1754. package/dist/infra/cipher/llm/thought-parser.js +0 -217
  1755. package/dist/infra/cipher/llm/tokenizers/claude-tokenizer.d.ts +0 -40
  1756. package/dist/infra/cipher/llm/tokenizers/claude-tokenizer.js +0 -48
  1757. package/dist/infra/cipher/llm/tokenizers/default-tokenizer.d.ts +0 -31
  1758. package/dist/infra/cipher/llm/tokenizers/gemini-tokenizer.d.ts +0 -38
  1759. package/dist/infra/cipher/llm/tokenizers/gemini-tokenizer.js +0 -46
  1760. package/dist/infra/cipher/llm/tokenizers/openrouter-tokenizer.d.ts +0 -37
  1761. package/dist/infra/cipher/llm/tokenizers/openrouter-tokenizer.js +0 -49
  1762. package/dist/infra/cipher/llm/tool-output-processor.d.ts +0 -178
  1763. package/dist/infra/cipher/llm/transformers/openrouter-stream-transformer.d.ts +0 -49
  1764. package/dist/infra/cipher/llm/transformers/openrouter-stream-transformer.js +0 -272
  1765. package/dist/infra/cipher/logger/console-logger.d.ts +0 -42
  1766. package/dist/infra/cipher/logger/event-based-logger.d.ts +0 -54
  1767. package/dist/infra/cipher/memory/index.d.ts +0 -6
  1768. package/dist/infra/cipher/memory/index.js +0 -7
  1769. package/dist/infra/cipher/memory/memory-manager.d.ts +0 -136
  1770. package/dist/infra/cipher/memory/memory-manager.js +0 -523
  1771. package/dist/infra/cipher/process/command-validator.d.ts +0 -82
  1772. package/dist/infra/cipher/process/process-service.d.ts +0 -127
  1773. package/dist/infra/cipher/process/process-service.js +0 -528
  1774. package/dist/infra/cipher/session/chat-session.d.ts +0 -141
  1775. package/dist/infra/cipher/session/chat-session.js +0 -372
  1776. package/dist/infra/cipher/session/index.d.ts +0 -7
  1777. package/dist/infra/cipher/session/index.js +0 -7
  1778. package/dist/infra/cipher/session/session-manager.d.ts +0 -210
  1779. package/dist/infra/cipher/session/session-metadata-store.d.ts +0 -52
  1780. package/dist/infra/cipher/session/session-metadata-store.js +0 -406
  1781. package/dist/infra/cipher/session/session-status.d.ts +0 -137
  1782. package/dist/infra/cipher/storage/blob-history-storage.d.ts +0 -76
  1783. package/dist/infra/cipher/storage/dual-format-history-storage.d.ts +0 -77
  1784. package/dist/infra/cipher/storage/granular-history-storage.d.ts +0 -65
  1785. package/dist/infra/cipher/storage/message-storage-service.d.ts +0 -171
  1786. package/dist/infra/cipher/storage/message-storage-service.js +0 -779
  1787. package/dist/infra/cipher/storage/sqlite-key-storage.d.ts +0 -105
  1788. package/dist/infra/cipher/storage/sqlite-key-storage.js +0 -404
  1789. package/dist/infra/cipher/storage/tool-part-factory.d.ts +0 -116
  1790. package/dist/infra/cipher/system-prompt/contributors/agent-prompt-contributor.d.ts +0 -59
  1791. package/dist/infra/cipher/system-prompt/contributors/agent-prompt-contributor.js +0 -131
  1792. package/dist/infra/cipher/system-prompt/contributors/companion-contributor.d.ts +0 -54
  1793. package/dist/infra/cipher/system-prompt/contributors/companion-contributor.js +0 -107
  1794. package/dist/infra/cipher/system-prompt/contributors/context-tree-structure-contributor.d.ts +0 -67
  1795. package/dist/infra/cipher/system-prompt/contributors/context-tree-structure-contributor.js +0 -220
  1796. package/dist/infra/cipher/system-prompt/contributors/datetime-contributor.d.ts +0 -25
  1797. package/dist/infra/cipher/system-prompt/contributors/environment-contributor.d.ts +0 -25
  1798. package/dist/infra/cipher/system-prompt/contributors/file-contributor.d.ts +0 -60
  1799. package/dist/infra/cipher/system-prompt/contributors/file-contributor.js +0 -128
  1800. package/dist/infra/cipher/system-prompt/contributors/memory-contributor.d.ts +0 -40
  1801. package/dist/infra/cipher/system-prompt/contributors/static-contributor.d.ts +0 -26
  1802. package/dist/infra/cipher/system-prompt/environment-context-builder.d.ts +0 -112
  1803. package/dist/infra/cipher/system-prompt/environment-context-builder.js +0 -256
  1804. package/dist/infra/cipher/system-prompt/schemas.d.ts +0 -151
  1805. package/dist/infra/cipher/system-prompt/system-prompt-manager.d.ts +0 -136
  1806. package/dist/infra/cipher/system-prompt/system-prompt-manager.js +0 -307
  1807. package/dist/infra/cipher/todos/todo-storage-service.d.ts +0 -26
  1808. package/dist/infra/cipher/tools/core-tool-scheduler.d.ts +0 -99
  1809. package/dist/infra/cipher/tools/core-tool-scheduler.js +0 -165
  1810. package/dist/infra/cipher/tools/default-policy-rules.d.ts +0 -26
  1811. package/dist/infra/cipher/tools/implementations/bash-exec-tool.d.ts +0 -13
  1812. package/dist/infra/cipher/tools/implementations/bash-exec-tool.js +0 -110
  1813. package/dist/infra/cipher/tools/implementations/bash-output-tool.d.ts +0 -12
  1814. package/dist/infra/cipher/tools/implementations/bash-output-tool.js +0 -43
  1815. package/dist/infra/cipher/tools/implementations/batch-tool.d.ts +0 -12
  1816. package/dist/infra/cipher/tools/implementations/batch-tool.js +0 -142
  1817. package/dist/infra/cipher/tools/implementations/create-knowledge-topic-tool.d.ts +0 -11
  1818. package/dist/infra/cipher/tools/implementations/create-knowledge-topic-tool.js +0 -149
  1819. package/dist/infra/cipher/tools/implementations/curate-tool.d.ts +0 -3
  1820. package/dist/infra/cipher/tools/implementations/curate-tool.js +0 -927
  1821. package/dist/infra/cipher/tools/implementations/delete-memory-tool.d.ts +0 -12
  1822. package/dist/infra/cipher/tools/implementations/delete-memory-tool.js +0 -37
  1823. package/dist/infra/cipher/tools/implementations/edit-file-tool.d.ts +0 -13
  1824. package/dist/infra/cipher/tools/implementations/edit-file-tool.js +0 -50
  1825. package/dist/infra/cipher/tools/implementations/edit-memory-tool.d.ts +0 -13
  1826. package/dist/infra/cipher/tools/implementations/edit-memory-tool.js +0 -53
  1827. package/dist/infra/cipher/tools/implementations/glob-files-tool.d.ts +0 -18
  1828. package/dist/infra/cipher/tools/implementations/glob-files-tool.js +0 -70
  1829. package/dist/infra/cipher/tools/implementations/grep-content-tool.d.ts +0 -12
  1830. package/dist/infra/cipher/tools/implementations/grep-content-tool.js +0 -77
  1831. package/dist/infra/cipher/tools/implementations/kill-process-tool.d.ts +0 -12
  1832. package/dist/infra/cipher/tools/implementations/kill-process-tool.js +0 -55
  1833. package/dist/infra/cipher/tools/implementations/list-directory-tool.d.ts +0 -12
  1834. package/dist/infra/cipher/tools/implementations/list-directory-tool.js +0 -52
  1835. package/dist/infra/cipher/tools/implementations/list-memories-tool.d.ts +0 -12
  1836. package/dist/infra/cipher/tools/implementations/list-memories-tool.js +0 -63
  1837. package/dist/infra/cipher/tools/implementations/read-file-tool.d.ts +0 -19
  1838. package/dist/infra/cipher/tools/implementations/read-file-tool.js +0 -96
  1839. package/dist/infra/cipher/tools/implementations/read-memory-tool.d.ts +0 -12
  1840. package/dist/infra/cipher/tools/implementations/read-memory-tool.js +0 -39
  1841. package/dist/infra/cipher/tools/implementations/read-todos-tool.d.ts +0 -11
  1842. package/dist/infra/cipher/tools/implementations/read-todos-tool.js +0 -39
  1843. package/dist/infra/cipher/tools/implementations/search-history-tool.d.ts +0 -10
  1844. package/dist/infra/cipher/tools/implementations/search-history-tool.js +0 -36
  1845. package/dist/infra/cipher/tools/implementations/search-knowledge-tool.d.ts +0 -7
  1846. package/dist/infra/cipher/tools/implementations/search-knowledge-tool.js +0 -303
  1847. package/dist/infra/cipher/tools/implementations/spec-analyze-tool.d.ts +0 -7
  1848. package/dist/infra/cipher/tools/implementations/spec-analyze-tool.js +0 -78
  1849. package/dist/infra/cipher/tools/implementations/task-tool.d.ts +0 -34
  1850. package/dist/infra/cipher/tools/implementations/task-tool.js +0 -254
  1851. package/dist/infra/cipher/tools/implementations/write-file-tool.d.ts +0 -12
  1852. package/dist/infra/cipher/tools/implementations/write-file-tool.js +0 -52
  1853. package/dist/infra/cipher/tools/implementations/write-memory-tool.d.ts +0 -13
  1854. package/dist/infra/cipher/tools/implementations/write-memory-tool.js +0 -52
  1855. package/dist/infra/cipher/tools/implementations/write-todos-tool.d.ts +0 -13
  1856. package/dist/infra/cipher/tools/implementations/write-todos-tool.js +0 -121
  1857. package/dist/infra/cipher/tools/index.d.ts +0 -19
  1858. package/dist/infra/cipher/tools/index.js +0 -20
  1859. package/dist/infra/cipher/tools/plugins/logging-plugin.d.ts +0 -28
  1860. package/dist/infra/cipher/tools/plugins/plugin-manager.d.ts +0 -81
  1861. package/dist/infra/cipher/tools/plugins/plugin-manager.js +0 -122
  1862. package/dist/infra/cipher/tools/policy-engine.d.ts +0 -80
  1863. package/dist/infra/cipher/tools/streaming/metadata-handler.d.ts +0 -31
  1864. package/dist/infra/cipher/tools/tool-description-loader.js +0 -108
  1865. package/dist/infra/cipher/tools/tool-invocation.d.ts +0 -216
  1866. package/dist/infra/cipher/tools/tool-invocation.js +0 -294
  1867. package/dist/infra/cipher/tools/tool-manager.d.ts +0 -175
  1868. package/dist/infra/cipher/tools/tool-manager.js +0 -333
  1869. package/dist/infra/cipher/tools/tool-provider-getter.d.ts +0 -6
  1870. package/dist/infra/cipher/tools/tool-provider.d.ts +0 -102
  1871. package/dist/infra/cipher/tools/tool-provider.js +0 -252
  1872. package/dist/infra/cipher/tools/tool-registry.d.ts +0 -75
  1873. package/dist/infra/cipher/tools/tool-registry.js +0 -200
  1874. package/dist/infra/cipher/tools/utils/schema-converter.d.ts +0 -10
  1875. package/dist/infra/cipher/tools/utils/schema-converter.js +0 -29
  1876. package/dist/infra/cogit/context-tree-to-push-context-mapper.d.ts +0 -21
  1877. package/dist/infra/cogit/http-cogit-pull-service.d.ts +0 -15
  1878. package/dist/infra/cogit/http-cogit-push-service.d.ts +0 -17
  1879. package/dist/infra/config/file-config-store.d.ts +0 -19
  1880. package/dist/infra/connectors/connector-manager.d.ts +0 -32
  1881. package/dist/infra/connectors/connector-manager.js +0 -160
  1882. package/dist/infra/connectors/hook/hook-connector.d.ts +0 -46
  1883. package/dist/infra/connectors/hook/hook-connector.js +0 -231
  1884. package/dist/infra/connectors/mcp/json-mcp-config-writer.d.ts +0 -26
  1885. package/dist/infra/connectors/mcp/mcp-connector.d.ts +0 -80
  1886. package/dist/infra/connectors/mcp/mcp-connector.js +0 -324
  1887. package/dist/infra/connectors/mcp/toml-mcp-config-writer.d.ts +0 -45
  1888. package/dist/infra/connectors/rules/legacy-rule-detector.d.ts +0 -21
  1889. package/dist/infra/connectors/rules/rules-connector-config.d.ts +0 -99
  1890. package/dist/infra/connectors/rules/rules-connector.d.ts +0 -34
  1891. package/dist/infra/connectors/rules/rules-connector.js +0 -139
  1892. package/dist/infra/connectors/shared/rule-file-manager.d.ts +0 -72
  1893. package/dist/infra/connectors/shared/template-service.d.ts +0 -27
  1894. package/dist/infra/connectors/skill/skill-connector.d.ts +0 -39
  1895. package/dist/infra/connectors/skill/skill-connector.js +0 -160
  1896. package/dist/infra/connectors/skill/skill-content-loader.d.ts +0 -18
  1897. package/dist/infra/connectors/skill/skill-content-loader.js +0 -33
  1898. package/dist/infra/context-tree/file-context-file-reader.d.ts +0 -14
  1899. package/dist/infra/context-tree/file-context-tree-service.d.ts +0 -14
  1900. package/dist/infra/context-tree/file-context-tree-snapshot-service.d.ts +0 -34
  1901. package/dist/infra/context-tree/file-context-tree-writer-service.d.ts +0 -28
  1902. package/dist/infra/context-tree/path-utils.d.ts +0 -7
  1903. package/dist/infra/context-tree/path-utils.js +0 -7
  1904. package/dist/infra/core/executors/curate-executor.d.ts +0 -30
  1905. package/dist/infra/core/executors/curate-executor.js +0 -88
  1906. package/dist/infra/core/executors/index.d.ts +0 -2
  1907. package/dist/infra/core/executors/index.js +0 -2
  1908. package/dist/infra/core/executors/query-executor.d.ts +0 -29
  1909. package/dist/infra/core/executors/query-executor.js +0 -87
  1910. package/dist/infra/core/task-processor.d.ts +0 -83
  1911. package/dist/infra/core/task-processor.js +0 -116
  1912. package/dist/infra/file/fs-file-service.d.ts +0 -44
  1913. package/dist/infra/http/authenticated-http-client.d.ts +0 -65
  1914. package/dist/infra/http/authenticated-http-client.js +0 -138
  1915. package/dist/infra/http/callback-handler.d.ts +0 -13
  1916. package/dist/infra/mcp/mcp-server.js +0 -178
  1917. package/dist/infra/mcp/tools/brv-curate-tool.d.ts +0 -29
  1918. package/dist/infra/mcp/tools/brv-curate-tool.js +0 -73
  1919. package/dist/infra/mcp/tools/brv-query-tool.d.ts +0 -17
  1920. package/dist/infra/mcp/tools/brv-query-tool.js +0 -68
  1921. package/dist/infra/mcp/tools/task-result-waiter.d.ts +0 -30
  1922. package/dist/infra/memory/http-memory-retrieval-service.d.ts +0 -18
  1923. package/dist/infra/memory/http-memory-storage-service.d.ts +0 -18
  1924. package/dist/infra/process/agent-worker.js +0 -1354
  1925. package/dist/infra/process/inline-agent-executor.d.ts +0 -32
  1926. package/dist/infra/process/inline-agent-executor.js +0 -259
  1927. package/dist/infra/process/process-manager.js +0 -755
  1928. package/dist/infra/process/transport-handlers.js +0 -470
  1929. package/dist/infra/repl/commands/arg-parser.d.ts +0 -97
  1930. package/dist/infra/repl/commands/arg-parser.js +0 -129
  1931. package/dist/infra/repl/commands/connectors-command.d.ts +0 -8
  1932. package/dist/infra/repl/commands/connectors-command.js +0 -49
  1933. package/dist/infra/repl/commands/curate-command.d.ts +0 -9
  1934. package/dist/infra/repl/commands/curate-command.js +0 -83
  1935. package/dist/infra/repl/commands/index.d.ts +0 -8
  1936. package/dist/infra/repl/commands/index.js +0 -45
  1937. package/dist/infra/repl/commands/init-command.d.ts +0 -7
  1938. package/dist/infra/repl/commands/init-command.js +0 -87
  1939. package/dist/infra/repl/commands/login-command.d.ts +0 -7
  1940. package/dist/infra/repl/commands/login-command.js +0 -50
  1941. package/dist/infra/repl/commands/logout-command.d.ts +0 -5
  1942. package/dist/infra/repl/commands/logout-command.js +0 -48
  1943. package/dist/infra/repl/commands/model-command.d.ts +0 -13
  1944. package/dist/infra/repl/commands/model-command.js +0 -212
  1945. package/dist/infra/repl/commands/new-command.d.ts +0 -14
  1946. package/dist/infra/repl/commands/new-command.js +0 -61
  1947. package/dist/infra/repl/commands/provider-command.d.ts +0 -13
  1948. package/dist/infra/repl/commands/provider-command.js +0 -181
  1949. package/dist/infra/repl/commands/pull-command.d.ts +0 -5
  1950. package/dist/infra/repl/commands/pull-command.js +0 -61
  1951. package/dist/infra/repl/commands/push-command.d.ts +0 -5
  1952. package/dist/infra/repl/commands/push-command.js +0 -66
  1953. package/dist/infra/repl/commands/query-command.d.ts +0 -5
  1954. package/dist/infra/repl/commands/query-command.js +0 -83
  1955. package/dist/infra/repl/commands/reset-command.d.ts +0 -5
  1956. package/dist/infra/repl/commands/reset-command.js +0 -61
  1957. package/dist/infra/repl/commands/space/index.d.ts +0 -5
  1958. package/dist/infra/repl/commands/space/index.js +0 -14
  1959. package/dist/infra/repl/commands/space/list-command.d.ts +0 -5
  1960. package/dist/infra/repl/commands/space/list-command.js +0 -70
  1961. package/dist/infra/repl/commands/space/switch-command.d.ts +0 -5
  1962. package/dist/infra/repl/commands/space/switch-command.js +0 -35
  1963. package/dist/infra/repl/commands/status-command.d.ts +0 -5
  1964. package/dist/infra/repl/commands/status-command.js +0 -39
  1965. package/dist/infra/repl/repl-startup.d.ts +0 -22
  1966. package/dist/infra/repl/repl-startup.js +0 -33
  1967. package/dist/infra/repl/transport-client-helper.d.ts +0 -9
  1968. package/dist/infra/repl/transport-client-helper.js +0 -100
  1969. package/dist/infra/space/http-space-service.d.ts +0 -20
  1970. package/dist/infra/space/http-space-service.js +0 -68
  1971. package/dist/infra/storage/file-global-config-store.d.ts +0 -22
  1972. package/dist/infra/storage/file-onboarding-preference-store.d.ts +0 -10
  1973. package/dist/infra/storage/file-token-store.d.ts +0 -31
  1974. package/dist/infra/storage/keychain-token-store.d.ts +0 -13
  1975. package/dist/infra/storage/token-store.d.ts +0 -11
  1976. package/dist/infra/team/http-team-service.d.ts +0 -21
  1977. package/dist/infra/template/fs-template-loader.d.ts +0 -33
  1978. package/dist/infra/terminal/headless-terminal.d.ts +0 -91
  1979. package/dist/infra/terminal/oclif-terminal.d.ts +0 -19
  1980. package/dist/infra/terminal/repl-terminal.d.ts +0 -31
  1981. package/dist/infra/tracking/mixpanel-tracking-service.d.ts +0 -24
  1982. package/dist/infra/transport/index.d.ts +0 -4
  1983. package/dist/infra/transport/index.js +0 -4
  1984. package/dist/infra/transport/socket-io-transport-client.d.ts +0 -149
  1985. package/dist/infra/transport/socket-io-transport-client.js +0 -677
  1986. package/dist/infra/transport/transport-client-factory.d.ts +0 -76
  1987. package/dist/infra/transport/transport-client-factory.js +0 -168
  1988. package/dist/infra/transport/transport-factory.d.ts +0 -33
  1989. package/dist/infra/transport/transport-factory.js +0 -59
  1990. package/dist/infra/usecase/connectors-use-case.d.ts +0 -63
  1991. package/dist/infra/usecase/connectors-use-case.js +0 -228
  1992. package/dist/infra/usecase/curate-use-case.d.ts +0 -58
  1993. package/dist/infra/usecase/curate-use-case.js +0 -264
  1994. package/dist/infra/usecase/init-use-case.d.ts +0 -126
  1995. package/dist/infra/usecase/login-use-case.d.ts +0 -30
  1996. package/dist/infra/usecase/logout-use-case.d.ts +0 -22
  1997. package/dist/infra/usecase/logout-use-case.js +0 -51
  1998. package/dist/infra/usecase/pull-use-case.d.ts +0 -49
  1999. package/dist/infra/usecase/pull-use-case.js +0 -147
  2000. package/dist/infra/usecase/push-use-case.d.ts +0 -50
  2001. package/dist/infra/usecase/push-use-case.js +0 -191
  2002. package/dist/infra/usecase/query-use-case.d.ts +0 -72
  2003. package/dist/infra/usecase/query-use-case.js +0 -411
  2004. package/dist/infra/usecase/reset-use-case.d.ts +0 -21
  2005. package/dist/infra/usecase/space-list-use-case.d.ts +0 -27
  2006. package/dist/infra/usecase/space-switch-use-case.d.ts +0 -26
  2007. package/dist/infra/usecase/space-switch-use-case.js +0 -110
  2008. package/dist/infra/usecase/status-use-case.d.ts +0 -73
  2009. package/dist/infra/usecase/status-use-case.js +0 -287
  2010. package/dist/infra/user/http-user-service.d.ts +0 -12
  2011. package/dist/infra/user/http-user-service.js +0 -22
  2012. package/dist/infra/workspace/workspace-detector-service.d.ts +0 -57
  2013. package/dist/resources/prompts/curate.yml +0 -238
  2014. package/dist/resources/prompts/explore.yml +0 -112
  2015. package/dist/resources/prompts/plan.yml +0 -120
  2016. package/dist/resources/prompts/query-orchestrator.yml +0 -112
  2017. package/dist/resources/prompts/system-prompt.yml +0 -99
  2018. package/dist/resources/tools/task.txt +0 -23
  2019. package/dist/templates/sections/brv-instructions.md +0 -98
  2020. package/dist/tui/components/execution/expanded-message-view.d.ts +0 -24
  2021. package/dist/tui/components/execution/expanded-message-view.js +0 -68
  2022. package/dist/tui/components/onboarding/onboarding-flow.d.ts +0 -15
  2023. package/dist/tui/components/onboarding/onboarding-flow.js +0 -103
  2024. package/dist/tui/contexts/status-context.d.ts +0 -33
  2025. package/dist/tui/contexts/status-context.js +0 -159
  2026. package/dist/tui/hooks/use-tab-navigation.d.ts +0 -11
  2027. package/dist/tui/hooks/use-tab-navigation.js +0 -42
  2028. package/dist/tui/views/command-view.d.ts +0 -19
  2029. package/dist/tui/views/command-view.js +0 -479
  2030. package/dist/tui/views/logs-view.d.ts +0 -32
  2031. package/dist/tui/views/logs-view.js +0 -90
  2032. package/dist/utils/connection-error-handler.d.ts +0 -16
  2033. package/dist/utils/connection-error-handler.js +0 -49
  2034. package/dist/utils/file-validator.js +0 -84
  2035. package/dist/utils/type-guards.d.ts +0 -16
  2036. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-info.d.ts +0 -0
  2037. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-info.js +0 -0
  2038. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state-machine.d.ts +0 -0
  2039. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state-machine.js +0 -0
  2040. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state.d.ts +0 -0
  2041. /package/dist/{core/domain/cipher → agent/core/domain}/agent/agent-state.js +0 -0
  2042. /package/dist/{infra/cipher → agent/core/domain/agent}/exit-codes.d.ts +0 -0
  2043. /package/dist/{infra/cipher → agent/core/domain/agent}/exit-codes.js +0 -0
  2044. /package/dist/{core/domain/cipher → agent/core/domain}/agent/index.d.ts +0 -0
  2045. /package/dist/{core/domain/cipher → agent/core/domain}/agent/index.js +0 -0
  2046. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/index.d.ts +0 -0
  2047. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/index.js +0 -0
  2048. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/types.d.ts +0 -0
  2049. /package/dist/{core/domain/cipher → agent/core/domain}/agent-events/types.js +0 -0
  2050. /package/dist/{core/domain/cipher → agent/core/domain}/blob/types.d.ts +0 -0
  2051. /package/dist/{core/domain/cipher → agent/core/domain}/blob/types.js +0 -0
  2052. /package/dist/{core/domain/cipher/file-system → agent/core/domain/environment}/types.js +0 -0
  2053. /package/dist/{core/domain/cipher → agent/core/domain}/errors/blob-error.d.ts +0 -0
  2054. /package/dist/{core/domain/cipher → agent/core/domain}/errors/blob-error.js +0 -0
  2055. /package/dist/{core/domain/cipher → agent/core/domain}/errors/error-normalizer.d.ts +0 -0
  2056. /package/dist/{core/domain/cipher → agent/core/domain}/errors/error-normalizer.js +0 -0
  2057. /package/dist/{core/domain/cipher → agent/core/domain}/errors/file-system-error.d.ts +0 -0
  2058. /package/dist/{core/domain/cipher → agent/core/domain}/errors/file-system-error.js +0 -0
  2059. /package/dist/{core/domain/cipher → agent/core/domain}/errors/llm-error.d.ts +0 -0
  2060. /package/dist/{core/domain/cipher → agent/core/domain}/errors/llm-error.js +0 -0
  2061. /package/dist/{core/domain/cipher → agent/core/domain}/errors/memory-error.d.ts +0 -0
  2062. /package/dist/{core/domain/cipher → agent/core/domain}/errors/memory-error.js +0 -0
  2063. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error-code.d.ts +0 -0
  2064. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error-code.js +0 -0
  2065. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error.d.ts +0 -0
  2066. /package/dist/{core/domain/cipher → agent/core/domain}/errors/process-error.js +0 -0
  2067. /package/dist/{core/domain/cipher → agent/core/domain}/errors/session-error.d.ts +0 -0
  2068. /package/dist/{core/domain/cipher → agent/core/domain}/errors/session-error.js +0 -0
  2069. /package/dist/{core/domain/cipher → agent/core/domain}/errors/storage-error.d.ts +0 -0
  2070. /package/dist/{core/domain/cipher → agent/core/domain}/errors/storage-error.js +0 -0
  2071. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error-codes.d.ts +0 -0
  2072. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error-codes.js +0 -0
  2073. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error.d.ts +0 -0
  2074. /package/dist/{core/domain/cipher → agent/core/domain}/errors/system-prompt-error.js +0 -0
  2075. /package/dist/{core/domain/cipher → agent/core/domain}/errors/tool-error.d.ts +0 -0
  2076. /package/dist/{core/domain/cipher → agent/core/domain}/errors/tool-error.js +0 -0
  2077. /package/dist/{core/domain/cipher → agent/core/domain}/file-system/types.d.ts +0 -0
  2078. /package/dist/{core/domain/cipher/process → agent/core/domain/file-system}/types.js +0 -0
  2079. /package/dist/{core/domain/cipher/session/types.js → agent/core/domain/folder-pack/index.js} +0 -0
  2080. /package/dist/{core/domain/cipher/system-prompt → agent/core/domain/folder-pack}/types.js +0 -0
  2081. /package/dist/{core/domain/cipher → agent/core/domain}/llm/error-codes.d.ts +0 -0
  2082. /package/dist/{core/domain/cipher → agent/core/domain}/llm/error-codes.js +0 -0
  2083. /package/dist/{core/domain/cipher → agent/core/domain}/llm/index.d.ts +0 -0
  2084. /package/dist/{core/domain/cipher → agent/core/domain}/llm/index.js +0 -0
  2085. /package/dist/{core/domain/cipher → agent/core/domain}/llm/registry.d.ts +0 -0
  2086. /package/dist/{core/domain/cipher → agent/core/domain}/llm/registry.js +0 -0
  2087. /package/dist/{core/domain/cipher → agent/core/domain}/llm/schemas.d.ts +0 -0
  2088. /package/dist/{core/domain/cipher → agent/core/domain}/llm/schemas.js +0 -0
  2089. /package/dist/{core/domain/cipher → agent/core/domain}/llm/types.d.ts +0 -0
  2090. /package/dist/{core/domain/cipher → agent/core/domain}/llm/types.js +0 -0
  2091. /package/dist/{core/domain/cipher → agent/core/domain}/memory/types.d.ts +0 -0
  2092. /package/dist/{core/domain/cipher → agent/core/domain}/memory/types.js +0 -0
  2093. /package/dist/{core/domain/cipher → agent/core/domain}/parsed-interaction.d.ts +0 -0
  2094. /package/dist/{core/domain/cipher → agent/core/domain}/parsed-interaction.js +0 -0
  2095. /package/dist/{core/domain/cipher → agent/core/domain}/process/types.d.ts +0 -0
  2096. /package/dist/{core/domain/cipher/tools → agent/core/domain/process}/types.js +0 -0
  2097. /package/dist/{core/domain/cipher → agent/core/domain}/queue/types.d.ts +0 -0
  2098. /package/dist/{core/domain/cipher → agent/core/domain}/queue/types.js +0 -0
  2099. /package/dist/{core/domain/cipher → agent/core/domain}/session/session-metadata.d.ts +0 -0
  2100. /package/dist/{core/domain/cipher → agent/core/domain}/session/session-metadata.js +0 -0
  2101. /package/dist/{core/domain/cipher → agent/core/domain}/session/types.d.ts +0 -0
  2102. /package/dist/{infra/cipher/agent → agent/core/domain/session}/types.js +0 -0
  2103. /package/dist/{core/domain/cipher → agent/core/domain}/storage/history-types.js +0 -0
  2104. /package/dist/{core/domain/cipher → agent/core/domain}/storage/message-storage-types.js +0 -0
  2105. /package/dist/{core/domain/cipher → agent/core/domain}/streaming/types.js +0 -0
  2106. /package/dist/{infra/cipher/llm/context/compression → agent/core/domain/system-prompt}/types.js +0 -0
  2107. /package/dist/{core/domain/cipher → agent/core/domain}/todos/index.d.ts +0 -0
  2108. /package/dist/{core/domain/cipher → agent/core/domain}/todos/index.js +0 -0
  2109. /package/dist/{core/domain/cipher → agent/core/domain}/todos/types.d.ts +0 -0
  2110. /package/dist/{core/domain/cipher → agent/core/domain}/todos/types.js +0 -0
  2111. /package/dist/{core/domain/cipher → agent/core/domain}/tools/tool-error.d.ts +0 -0
  2112. /package/dist/{core/domain/cipher → agent/core/domain}/tools/tool-error.js +0 -0
  2113. /package/dist/{core/domain/cipher → agent/core/domain}/tools/types.d.ts +0 -0
  2114. /package/dist/{core/interfaces/cipher/cipher-services.js → agent/core/domain/tools/types.js} +0 -0
  2115. /package/dist/{core/interfaces/cipher/i-blob-storage.js → agent/core/interfaces/cipher-services.js} +0 -0
  2116. /package/dist/{core/interfaces/cipher/i-chat-session.js → agent/core/interfaces/i-blob-storage.js} +0 -0
  2117. /package/dist/{core/interfaces/cipher/i-cipher-agent.js → agent/core/interfaces/i-chat-session.js} +0 -0
  2118. /package/dist/{core/interfaces/cipher/i-event-emitter.js → agent/core/interfaces/i-cipher-agent.js} +0 -0
  2119. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-content-generator.js +0 -0
  2120. /package/dist/{core/interfaces/cipher/i-file-system.js → agent/core/interfaces/i-document-parser-service.js} +0 -0
  2121. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-event-emitter.d.ts +0 -0
  2122. /package/dist/{core/interfaces/cipher/i-history-storage.js → agent/core/interfaces/i-event-emitter.js} +0 -0
  2123. /package/dist/{core/interfaces/cipher/i-key-storage.js → agent/core/interfaces/i-file-system.js} +0 -0
  2124. /package/dist/{core/interfaces/cipher/i-llm-provider.js → agent/core/interfaces/i-folder-pack-service.js} +0 -0
  2125. /package/dist/{core/interfaces/cipher/i-llm-service.js → agent/core/interfaces/i-history-storage.js} +0 -0
  2126. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-key-storage.d.ts +0 -0
  2127. /package/dist/{core/interfaces/cipher/i-message-formatter.js → agent/core/interfaces/i-key-storage.js} +0 -0
  2128. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-llm-provider.d.ts +0 -0
  2129. /package/dist/{core/interfaces/cipher/i-process-service.js → agent/core/interfaces/i-llm-provider.js} +0 -0
  2130. /package/dist/{core/interfaces/cipher/i-system-prompt-contributor.js → agent/core/interfaces/i-llm-service.js} +0 -0
  2131. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-logger.d.ts +0 -0
  2132. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-logger.js +0 -0
  2133. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-message-formatter.d.ts +0 -0
  2134. /package/dist/{core/interfaces/cipher/i-todo-storage.js → agent/core/interfaces/i-message-formatter.js} +0 -0
  2135. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-policy-engine.d.ts +0 -0
  2136. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-policy-engine.js +0 -0
  2137. /package/dist/{core/interfaces/cipher/i-tokenizer.js → agent/core/interfaces/i-process-service.js} +0 -0
  2138. /package/dist/{core/interfaces/cipher/i-tool-plugin.js → agent/core/interfaces/i-sandbox-service.js} +0 -0
  2139. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-session-persistence.js +0 -0
  2140. /package/dist/{core/interfaces/cipher/i-tool-provider.js → agent/core/interfaces/i-system-prompt-contributor.js} +0 -0
  2141. /package/dist/{core/interfaces/connectors/connector-types.js → agent/core/interfaces/i-todo-storage.js} +0 -0
  2142. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-tokenizer.d.ts +0 -0
  2143. /package/dist/{core/interfaces/connectors/i-connector-manager.js → agent/core/interfaces/i-tokenizer.js} +0 -0
  2144. /package/dist/{core/interfaces/connectors/i-connector.js → agent/core/interfaces/i-tool-plugin.js} +0 -0
  2145. /package/dist/{core/interfaces/executor/i-curate-executor.js → agent/core/interfaces/i-tool-provider.js} +0 -0
  2146. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-tool-scheduler.d.ts +0 -0
  2147. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/i-tool-scheduler.js +0 -0
  2148. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/index.js +0 -0
  2149. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/llm-types.d.ts +0 -0
  2150. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/llm-types.js +0 -0
  2151. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-factory.d.ts +0 -0
  2152. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-factory.js +0 -0
  2153. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-type-guards.d.ts +0 -0
  2154. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-type-guards.js +0 -0
  2155. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-types.d.ts +0 -0
  2156. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/message-types.js +0 -0
  2157. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/sanitization-types.d.ts +0 -0
  2158. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/sanitization-types.js +0 -0
  2159. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/tokenizer-types.d.ts +0 -0
  2160. /package/dist/{core/interfaces/cipher → agent/core/interfaces}/tokenizer-types.js +0 -0
  2161. /package/dist/{infra/cipher → agent/infra}/agent/agent-error-codes.d.ts +0 -0
  2162. /package/dist/{infra/cipher → agent/infra}/agent/agent-error-codes.js +0 -0
  2163. /package/dist/{infra/cipher → agent/infra}/agent/agent-schemas.js +0 -0
  2164. /package/dist/{infra/cipher → agent/infra}/agent/agent-state-manager.js +0 -0
  2165. /package/dist/{infra/cipher → agent/infra}/agent/base-agent.js +0 -0
  2166. /package/dist/{infra/cipher → agent/infra/agent}/command-parser.d.ts +0 -0
  2167. /package/dist/{infra/cipher → agent/infra/agent}/command-parser.js +0 -0
  2168. /package/dist/{infra/cipher → agent/infra}/agent/index.d.ts +0 -0
  2169. /package/dist/{infra/cipher → agent/infra}/agent/index.js +0 -0
  2170. /package/dist/{infra/cipher → agent/infra/agent}/interactive-commands.js +0 -0
  2171. /package/dist/{infra/cipher → agent/infra/agent}/interactive-loop.js +0 -0
  2172. /package/dist/{core/interfaces/executor/i-query-executor.js → agent/infra/agent/types.js} +0 -0
  2173. /package/dist/{infra/cipher → agent/infra}/blob/blob-reference-resolver.js +0 -0
  2174. /package/dist/{infra/cipher → agent/infra}/blob/blob-reference-utils.d.ts +0 -0
  2175. /package/dist/{infra/cipher → agent/infra}/blob/blob-reference-utils.js +0 -0
  2176. /package/dist/{infra/cipher → agent/infra}/blob/blob-storage-factory.js +0 -0
  2177. /package/dist/{infra/cipher → agent/infra}/blob/migrations.js +0 -0
  2178. /package/dist/{infra/cipher → agent/infra}/display/todo-display.js +0 -0
  2179. /package/dist/{infra/cipher → agent/infra}/events/event-emitter.js +0 -0
  2180. /package/dist/{infra/cipher → agent/infra}/file-system/context-tree-file-system-factory.d.ts +0 -0
  2181. /package/dist/{infra/cipher → agent/infra}/file-system/context-tree-file-system-factory.js +0 -0
  2182. /package/dist/{infra/cipher → agent/infra}/file-system/gitignore-filter.d.ts +0 -0
  2183. /package/dist/{infra/cipher → agent/infra}/file-system/gitignore-filter.js +0 -0
  2184. /package/dist/{infra/cipher → agent/infra}/file-system/glob-utils.d.ts +0 -0
  2185. /package/dist/{infra/cipher → agent/infra}/file-system/glob-utils.js +0 -0
  2186. /package/dist/{infra/cipher → agent/infra}/llm/context/async-mutex.d.ts +0 -0
  2187. /package/dist/{infra/cipher → agent/infra}/llm/context/async-mutex.js +0 -0
  2188. /package/dist/{infra/cipher → agent/infra}/llm/context/compaction/compaction-service.js +0 -0
  2189. /package/dist/{infra/cipher → agent/infra}/llm/context/compaction/index.d.ts +0 -0
  2190. /package/dist/{infra/cipher → agent/infra}/llm/context/compaction/index.js +0 -0
  2191. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/enhanced-compaction.js +0 -0
  2192. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/filter-compacted.js +0 -0
  2193. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/index.d.ts +0 -0
  2194. /package/dist/{infra/cipher → agent/infra}/llm/context/compression/index.js +0 -0
  2195. /package/dist/{core/interfaces/i-auth-service.js → agent/infra/llm/context/compression/types.js} +0 -0
  2196. /package/dist/{infra/cipher → agent/infra}/llm/context/index.d.ts +0 -0
  2197. /package/dist/{infra/cipher → agent/infra}/llm/context/index.js +0 -0
  2198. /package/dist/{infra/cipher → agent/infra}/llm/context/loop-detector.d.ts +0 -0
  2199. /package/dist/{infra/cipher → agent/infra}/llm/context/loop-detector.js +0 -0
  2200. /package/dist/{infra/cipher → agent/infra}/llm/context/rw-lock.d.ts +0 -0
  2201. /package/dist/{infra/cipher → agent/infra}/llm/context/rw-lock.js +0 -0
  2202. /package/dist/{infra/cipher → agent/infra}/llm/context/utils.js +0 -0
  2203. /package/dist/{infra/cipher → agent/infra}/llm/formatters/claude-formatter.js +0 -0
  2204. /package/dist/{infra/cipher → agent/infra}/llm/formatters/gemini-formatter.js +0 -0
  2205. /package/dist/{infra/cipher → agent/infra}/llm/generators/byterover-content-generator.js +0 -0
  2206. /package/dist/{infra/cipher → agent/infra}/llm/generators/index.d.ts +0 -0
  2207. /package/dist/{infra/cipher → agent/infra}/llm/generators/index.js +0 -0
  2208. /package/dist/{infra/cipher → agent/infra}/llm/generators/openrouter-content-generator.js +0 -0
  2209. /package/dist/{infra/cipher → agent/infra}/llm/model-capabilities.d.ts +0 -0
  2210. /package/dist/{infra/cipher → agent/infra}/llm/model-capabilities.js +0 -0
  2211. /package/dist/{infra/cipher → agent/infra}/llm/response-validator.js +0 -0
  2212. /package/dist/{infra/cipher → agent/infra}/llm/retry/index.d.ts +0 -0
  2213. /package/dist/{infra/cipher → agent/infra}/llm/retry/index.js +0 -0
  2214. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-policy.d.ts +0 -0
  2215. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-policy.js +0 -0
  2216. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-with-backoff.d.ts +0 -0
  2217. /package/dist/{infra/cipher → agent/infra}/llm/retry/retry-with-backoff.js +0 -0
  2218. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/base64-utils.d.ts +0 -0
  2219. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/base64-utils.js +0 -0
  2220. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/index.d.ts +0 -0
  2221. /package/dist/{infra/cipher → agent/infra}/llm/sanitization/index.js +0 -0
  2222. /package/dist/{infra/cipher → agent/infra}/llm/stream-processor.js +0 -0
  2223. /package/dist/{infra/cipher → agent/infra}/llm/thought-parser.d.ts +0 -0
  2224. /package/dist/{infra/cipher → agent/infra}/llm/tokenizers/default-tokenizer.js +0 -0
  2225. /package/dist/{infra/cipher → agent/infra}/llm/tool-output-processor.js +0 -0
  2226. /package/dist/{infra/cipher → agent/infra}/llm/transformers/reasoning-extractor.d.ts +0 -0
  2227. /package/dist/{infra/cipher → agent/infra}/llm/transformers/reasoning-extractor.js +0 -0
  2228. /package/dist/{infra/cipher → agent/infra}/logger/console-logger.js +0 -0
  2229. /package/dist/{infra/cipher → agent/infra}/logger/event-based-logger.js +0 -0
  2230. /package/dist/{infra/cipher → agent/infra}/process/command-validator.js +0 -0
  2231. /package/dist/{infra/cipher → agent/infra}/process/index.d.ts +0 -0
  2232. /package/dist/{infra/cipher → agent/infra}/process/index.js +0 -0
  2233. /package/dist/{infra/cipher → agent/infra}/process/path-utils.d.ts +0 -0
  2234. /package/dist/{infra/cipher → agent/infra}/process/path-utils.js +0 -0
  2235. /package/dist/{infra/cipher → agent/infra}/session/message-queue.d.ts +0 -0
  2236. /package/dist/{infra/cipher → agent/infra}/session/message-queue.js +0 -0
  2237. /package/dist/{infra/cipher → agent/infra}/session/session-event-forwarder.d.ts +0 -0
  2238. /package/dist/{infra/cipher → agent/infra}/session/session-event-forwarder.js +0 -0
  2239. /package/dist/{infra/cipher → agent/infra}/session/session-manager.js +0 -0
  2240. /package/dist/{infra/cipher → agent/infra}/session/session-status.js +0 -0
  2241. /package/dist/{infra/cipher → agent/infra}/session/title-generator.d.ts +0 -0
  2242. /package/dist/{infra/cipher → agent/infra}/session/title-generator.js +0 -0
  2243. /package/dist/{infra/cipher → agent/infra}/storage/blob-history-storage.js +0 -0
  2244. /package/dist/{infra/cipher → agent/infra}/storage/dual-format-history-storage.js +0 -0
  2245. /package/dist/{infra/cipher → agent/infra}/storage/granular-history-storage.js +0 -0
  2246. /package/dist/{infra/cipher → agent/infra}/storage/process-utils.d.ts +0 -0
  2247. /package/dist/{infra/cipher → agent/infra}/storage/process-utils.js +0 -0
  2248. /package/dist/{infra/cipher → agent/infra}/storage/tool-part-factory.js +0 -0
  2249. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributor-schemas.d.ts +0 -0
  2250. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributor-schemas.js +0 -0
  2251. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/datetime-contributor.js +0 -0
  2252. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/environment-contributor.js +0 -0
  2253. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/index.d.ts +0 -0
  2254. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/index.js +0 -0
  2255. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/memory-contributor.js +0 -0
  2256. /package/dist/{infra/cipher → agent/infra}/system-prompt/contributors/static-contributor.js +0 -0
  2257. /package/dist/{infra/cipher → agent/infra}/system-prompt/prompt-cache.d.ts +0 -0
  2258. /package/dist/{infra/cipher → agent/infra}/system-prompt/prompt-cache.js +0 -0
  2259. /package/dist/{infra/cipher → agent/infra}/system-prompt/schemas.js +0 -0
  2260. /package/dist/{infra/cipher → agent/infra}/todos/todo-storage-service.js +0 -0
  2261. /package/dist/{infra/cipher → agent/infra}/tools/default-policy-rules.js +0 -0
  2262. /package/dist/{infra/cipher → agent/infra}/tools/plugins/index.d.ts +0 -0
  2263. /package/dist/{infra/cipher → agent/infra}/tools/plugins/index.js +0 -0
  2264. /package/dist/{infra/cipher → agent/infra}/tools/plugins/logging-plugin.js +0 -0
  2265. /package/dist/{infra/cipher → agent/infra}/tools/policy-engine.js +0 -0
  2266. /package/dist/{infra/cipher → agent/infra}/tools/streaming/index.d.ts +0 -0
  2267. /package/dist/{infra/cipher → agent/infra}/tools/streaming/index.js +0 -0
  2268. /package/dist/{infra/cipher → agent/infra}/tools/streaming/metadata-handler.js +0 -0
  2269. /package/dist/{infra/cipher → agent/infra}/tools/tool-description-loader.d.ts +0 -0
  2270. /package/dist/{infra/cipher → agent/infra}/tools/tool-invocation-queue.d.ts +0 -0
  2271. /package/dist/{infra/cipher → agent/infra}/tools/tool-invocation-queue.js +0 -0
  2272. /package/dist/{infra/cipher → agent/infra}/tools/tool-markers.d.ts +0 -0
  2273. /package/dist/{infra/cipher → agent/infra}/tools/tool-markers.js +0 -0
  2274. /package/dist/{infra/cipher → agent/infra}/tools/tool-provider-getter.js +0 -0
  2275. /package/dist/{infra/cipher → agent/infra}/validation/workspace-validator.d.ts +0 -0
  2276. /package/dist/{infra/cipher → agent/infra}/validation/workspace-validator.js +0 -0
  2277. /package/dist/{resources → agent/resources}/prompts/reflection.yml +0 -0
  2278. /package/dist/{resources → agent/resources}/prompts/tool-outputs.yml +0 -0
  2279. /package/dist/{resources → agent/resources}/tools/bash_exec.txt +0 -0
  2280. /package/dist/{resources → agent/resources}/tools/bash_output.txt +0 -0
  2281. /package/dist/{resources → agent/resources}/tools/batch.txt +0 -0
  2282. /package/dist/{resources → agent/resources}/tools/create_knowledge_topic.txt +0 -0
  2283. /package/dist/{resources → agent/resources}/tools/curate.txt +0 -0
  2284. /package/dist/{resources → agent/resources}/tools/delete_memory.txt +0 -0
  2285. /package/dist/{resources → agent/resources}/tools/detect_domains.txt +0 -0
  2286. /package/dist/{resources → agent/resources}/tools/edit_file.txt +0 -0
  2287. /package/dist/{resources → agent/resources}/tools/edit_memory.txt +0 -0
  2288. /package/dist/{resources → agent/resources}/tools/glob_files.txt +0 -0
  2289. /package/dist/{resources → agent/resources}/tools/grep_content.txt +0 -0
  2290. /package/dist/{resources → agent/resources}/tools/kill_process.txt +0 -0
  2291. /package/dist/{resources → agent/resources}/tools/list_directory.txt +0 -0
  2292. /package/dist/{resources → agent/resources}/tools/list_memories.txt +0 -0
  2293. /package/dist/{resources → agent/resources}/tools/read_file.txt +0 -0
  2294. /package/dist/{resources → agent/resources}/tools/read_memory.txt +0 -0
  2295. /package/dist/{resources → agent/resources}/tools/read_todos.txt +0 -0
  2296. /package/dist/{resources → agent/resources}/tools/search_history.txt +0 -0
  2297. /package/dist/{resources → agent/resources}/tools/search_knowledge.txt +0 -0
  2298. /package/dist/{resources → agent/resources}/tools/write_file.txt +0 -0
  2299. /package/dist/{resources → agent/resources}/tools/write_memory.txt +0 -0
  2300. /package/dist/{resources → agent/resources}/tools/write_todos.txt +0 -0
  2301. /package/dist/{config → server/config}/auth.config.js +0 -0
  2302. /package/dist/{config → server/config}/environment.d.ts +0 -0
  2303. /package/dist/{config → server/config}/environment.js +0 -0
  2304. /package/dist/{constants.d.ts → server/constants.d.ts} +0 -0
  2305. /package/dist/{constants.js → server/constants.js} +0 -0
  2306. /package/dist/{core → server/core}/domain/entities/agent.d.ts +0 -0
  2307. /package/dist/{core → server/core}/domain/entities/auth-token.d.ts +0 -0
  2308. /package/dist/{core → server/core}/domain/entities/auth-token.js +0 -0
  2309. /package/dist/{core → server/core}/domain/entities/bullet.d.ts +0 -0
  2310. /package/dist/{core → server/core}/domain/entities/bullet.js +0 -0
  2311. /package/dist/{core → server/core}/domain/entities/cogit-push-context.d.ts +0 -0
  2312. /package/dist/{core → server/core}/domain/entities/cogit-push-context.js +0 -0
  2313. /package/dist/{core → server/core}/domain/entities/cogit-push-response.d.ts +0 -0
  2314. /package/dist/{core → server/core}/domain/entities/cogit-push-response.js +0 -0
  2315. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-author.d.ts +0 -0
  2316. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-author.js +0 -0
  2317. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-file.d.ts +0 -0
  2318. /package/dist/{core → server/core}/domain/entities/cogit-snapshot-file.js +0 -0
  2319. /package/dist/{core → server/core}/domain/entities/cogit-snapshot.d.ts +0 -0
  2320. /package/dist/{core → server/core}/domain/entities/cogit-snapshot.js +0 -0
  2321. /package/dist/{core → server/core}/domain/entities/connector-type.d.ts +0 -0
  2322. /package/dist/{core → server/core}/domain/entities/connector-type.js +0 -0
  2323. /package/dist/{core → server/core}/domain/entities/context-tree-index.d.ts +0 -0
  2324. /package/dist/{core → server/core}/domain/entities/context-tree-index.js +0 -0
  2325. /package/dist/{core → server/core}/domain/entities/context-tree-snapshot.d.ts +0 -0
  2326. /package/dist/{core → server/core}/domain/entities/context-tree-snapshot.js +0 -0
  2327. /package/dist/{core → server/core}/domain/entities/event.d.ts +0 -0
  2328. /package/dist/{core → server/core}/domain/entities/event.js +0 -0
  2329. /package/dist/{core → server/core}/domain/entities/global-config.d.ts +0 -0
  2330. /package/dist/{core → server/core}/domain/entities/global-config.js +0 -0
  2331. /package/dist/{core → server/core}/domain/entities/memory.d.ts +0 -0
  2332. /package/dist/{core → server/core}/domain/entities/memory.js +0 -0
  2333. /package/dist/{core → server/core}/domain/entities/oauth-token-data.d.ts +0 -0
  2334. /package/dist/{core → server/core}/domain/entities/oauth-token-data.js +0 -0
  2335. /package/dist/{core → server/core}/domain/entities/parser.d.ts +0 -0
  2336. /package/dist/{core → server/core}/domain/entities/parser.js +0 -0
  2337. /package/dist/{core → server/core}/domain/entities/playbook.d.ts +0 -0
  2338. /package/dist/{core → server/core}/domain/entities/playbook.js +0 -0
  2339. /package/dist/{core → server/core}/domain/entities/presigned-url.d.ts +0 -0
  2340. /package/dist/{core → server/core}/domain/entities/presigned-url.js +0 -0
  2341. /package/dist/{core → server/core}/domain/entities/presigned-urls-response.d.ts +0 -0
  2342. /package/dist/{core → server/core}/domain/entities/presigned-urls-response.js +0 -0
  2343. /package/dist/{core → server/core}/domain/entities/provider-config.d.ts +0 -0
  2344. /package/dist/{core → server/core}/domain/entities/provider-config.js +0 -0
  2345. /package/dist/{core → server/core}/domain/entities/provider-registry.d.ts +0 -0
  2346. /package/dist/{core → server/core}/domain/entities/provider-registry.js +0 -0
  2347. /package/dist/{core → server/core}/domain/entities/retrieve-result.d.ts +0 -0
  2348. /package/dist/{core → server/core}/domain/entities/retrieve-result.js +0 -0
  2349. /package/dist/{core → server/core}/domain/errors/ace-error.d.ts +0 -0
  2350. /package/dist/{core → server/core}/domain/errors/ace-error.js +0 -0
  2351. /package/dist/{core → server/core}/domain/errors/auth-error.d.ts +0 -0
  2352. /package/dist/{core → server/core}/domain/errors/auth-error.js +0 -0
  2353. /package/dist/{core → server/core}/domain/errors/brv-config-version-error.d.ts +0 -0
  2354. /package/dist/{core → server/core}/domain/errors/brv-config-version-error.js +0 -0
  2355. /package/dist/{core → server/core}/domain/errors/core-process-error.d.ts +0 -0
  2356. /package/dist/{core → server/core}/domain/errors/core-process-error.js +0 -0
  2357. /package/dist/{core → server/core}/domain/errors/discovery-error.d.ts +0 -0
  2358. /package/dist/{core → server/core}/domain/errors/discovery-error.js +0 -0
  2359. /package/dist/{core → server/core}/domain/errors/headless-prompt-error.d.ts +0 -0
  2360. /package/dist/{core → server/core}/domain/errors/headless-prompt-error.js +0 -0
  2361. /package/dist/{core → server/core}/domain/errors/task-error.d.ts +0 -0
  2362. /package/dist/{core → server/core}/domain/errors/task-error.js +0 -0
  2363. /package/dist/{core → server/core}/domain/errors/transport-error.d.ts +0 -0
  2364. /package/dist/{core → server/core}/domain/errors/transport-error.js +0 -0
  2365. /package/dist/{core → server/core}/domain/instance/index.d.ts +0 -0
  2366. /package/dist/{core → server/core}/domain/instance/index.js +0 -0
  2367. /package/dist/{core → server/core}/domain/instance/types.d.ts +0 -0
  2368. /package/dist/{core → server/core}/domain/instance/types.js +0 -0
  2369. /package/dist/{core → server/core}/domain/knowledge/directory-manager.d.ts +0 -0
  2370. /package/dist/{core → server/core}/domain/knowledge/directory-manager.js +0 -0
  2371. /package/dist/{core → server/core}/domain/knowledge/markdown-writer.d.ts +0 -0
  2372. /package/dist/{core → server/core}/domain/knowledge/markdown-writer.js +0 -0
  2373. /package/dist/{core → server/core}/domain/transport/index.d.ts +0 -0
  2374. /package/dist/{core → server/core}/domain/transport/index.js +0 -0
  2375. /package/dist/{core → server/core}/domain/transport/types.d.ts +0 -0
  2376. /package/dist/{core → server/core}/domain/transport/types.js +0 -0
  2377. /package/dist/{core/interfaces/i-browser-launcher.js → server/core/interfaces/auth/i-auth-service.js} +0 -0
  2378. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-callback-handler.d.ts +0 -0
  2379. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-callback-handler.js +0 -0
  2380. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-oidc-discovery-service.d.ts +0 -0
  2381. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-oidc-discovery-service.js +0 -0
  2382. /package/dist/{core/interfaces → server/core/interfaces/auth}/i-token-store.js +0 -0
  2383. /package/dist/{core/interfaces/i-cogit-pull-service.js → server/core/interfaces/connectors/connector-types.js} +0 -0
  2384. /package/dist/{core/interfaces/i-cogit-push-service.js → server/core/interfaces/connectors/i-connector-manager.js} +0 -0
  2385. /package/dist/{core/interfaces/i-context-file-reader.js → server/core/interfaces/connectors/i-connector.js} +0 -0
  2386. /package/dist/{core/interfaces/i-context-tree-service.js → server/core/interfaces/context-tree/i-context-file-reader.js} +0 -0
  2387. /package/dist/{core/interfaces → server/core/interfaces/context-tree}/i-context-tree-service.d.ts +0 -0
  2388. /package/dist/{core/interfaces/i-context-tree-snapshot-service.js → server/core/interfaces/context-tree/i-context-tree-service.js} +0 -0
  2389. /package/dist/{core/interfaces/i-context-tree-writer-service.js → server/core/interfaces/context-tree/i-context-tree-snapshot-service.js} +0 -0
  2390. /package/dist/{core/interfaces/i-file-service.js → server/core/interfaces/context-tree/i-context-tree-writer-service.js} +0 -0
  2391. /package/dist/{core/interfaces/i-global-config-store.js → server/core/interfaces/executor/i-curate-executor.js} +0 -0
  2392. /package/dist/{core/interfaces/i-http-client.js → server/core/interfaces/executor/i-folder-pack-executor.js} +0 -0
  2393. /package/dist/{core/interfaces/i-legacy-rule-detector.js → server/core/interfaces/executor/i-query-executor.js} +0 -0
  2394. /package/dist/{core → server/core}/interfaces/i-provider-config-store.d.ts +0 -0
  2395. /package/dist/{core → server/core}/interfaces/i-provider-config-store.js +0 -0
  2396. /package/dist/{core → server/core}/interfaces/i-provider-keychain-store.d.ts +0 -0
  2397. /package/dist/{core → server/core}/interfaces/i-provider-keychain-store.js +0 -0
  2398. /package/dist/{core → server/core}/interfaces/instance/i-instance-discovery.d.ts +0 -0
  2399. /package/dist/{core → server/core}/interfaces/instance/i-instance-discovery.js +0 -0
  2400. /package/dist/{core → server/core}/interfaces/instance/i-instance-manager.d.ts +0 -0
  2401. /package/dist/{core → server/core}/interfaces/instance/i-instance-manager.js +0 -0
  2402. /package/dist/{core → server/core}/interfaces/instance/index.d.ts +0 -0
  2403. /package/dist/{core → server/core}/interfaces/instance/index.js +0 -0
  2404. /package/dist/{core → server/core}/interfaces/noop-implementations.js +0 -0
  2405. /package/dist/{core/interfaces → server/core/interfaces/services}/i-browser-launcher.d.ts +0 -0
  2406. /package/dist/{core/interfaces/i-mcp-config-writer.js → server/core/interfaces/services/i-browser-launcher.js} +0 -0
  2407. /package/dist/{core/interfaces/i-memory-retrieval-service.js → server/core/interfaces/services/i-cogit-pull-service.js} +0 -0
  2408. /package/dist/{core/interfaces/i-memory-storage-service.js → server/core/interfaces/services/i-cogit-push-service.js} +0 -0
  2409. /package/dist/{core/interfaces → server/core/interfaces/services}/i-file-service.d.ts +0 -0
  2410. /package/dist/{core/interfaces/i-onboarding-preference-store.js → server/core/interfaces/services/i-file-service.js} +0 -0
  2411. /package/dist/{core/interfaces/i-project-config-store.js → server/core/interfaces/services/i-http-client.js} +0 -0
  2412. /package/dist/{core/interfaces/i-rule-template-service.js → server/core/interfaces/services/i-legacy-rule-detector.js} +0 -0
  2413. /package/dist/{core/interfaces/i-space-service.js → server/core/interfaces/services/i-memory-retrieval-service.js} +0 -0
  2414. /package/dist/{core/interfaces/i-team-service.js → server/core/interfaces/services/i-memory-storage-service.js} +0 -0
  2415. /package/dist/{core/interfaces/i-template-loader.js → server/core/interfaces/services/i-rule-template-service.js} +0 -0
  2416. /package/dist/{core/interfaces/i-terminal.js → server/core/interfaces/services/i-space-service.js} +0 -0
  2417. /package/dist/{core/interfaces/i-tracking-service.js → server/core/interfaces/services/i-team-service.js} +0 -0
  2418. /package/dist/{core/interfaces → server/core/interfaces/services}/i-template-loader.d.ts +0 -0
  2419. /package/dist/{core/interfaces/i-user-service.js → server/core/interfaces/services/i-template-loader.js} +0 -0
  2420. /package/dist/{core/interfaces → server/core/interfaces/services}/i-terminal.d.ts +0 -0
  2421. /package/dist/{core/interfaces/i-workspace-detector-service.js → server/core/interfaces/services/i-terminal.js} +0 -0
  2422. /package/dist/{core/interfaces/transport/i-transport-client.js → server/core/interfaces/services/i-tracking-service.js} +0 -0
  2423. /package/dist/{core/interfaces/transport/i-transport-server.js → server/core/interfaces/services/i-user-service.js} +0 -0
  2424. /package/dist/{core/interfaces/usecase/i-connectors-use-case.js → server/core/interfaces/services/i-workspace-detector-service.js} +0 -0
  2425. /package/dist/{core/interfaces/usecase/i-curate-use-case.js → server/core/interfaces/storage/i-global-config-store.js} +0 -0
  2426. /package/dist/{core/interfaces/usecase/i-init-use-case.js → server/core/interfaces/storage/i-mcp-config-writer.js} +0 -0
  2427. /package/dist/{core/interfaces → server/core/interfaces/storage}/i-onboarding-preference-store.d.ts +0 -0
  2428. /package/dist/{core/interfaces/usecase/i-login-use-case.js → server/core/interfaces/storage/i-onboarding-preference-store.js} +0 -0
  2429. /package/dist/{core/interfaces/usecase/i-logout-use-case.js → server/core/interfaces/storage/i-project-config-store.js} +0 -0
  2430. /package/dist/{core → server/core}/interfaces/transport/i-transport-server.d.ts +0 -0
  2431. /package/dist/{core/interfaces/usecase/i-pull-use-case.js → server/core/interfaces/transport/i-transport-server.js} +0 -0
  2432. /package/dist/{core → server/core}/interfaces/usecase/i-connectors-use-case.d.ts +0 -0
  2433. /package/dist/{core/interfaces/usecase/i-push-use-case.js → server/core/interfaces/usecase/i-connectors-use-case.js} +0 -0
  2434. /package/dist/{core/interfaces/usecase/i-query-use-case.js → server/core/interfaces/usecase/i-curate-use-case.js} +0 -0
  2435. /package/dist/{core → server/core}/interfaces/usecase/i-init-use-case.d.ts +0 -0
  2436. /package/dist/{core/interfaces/usecase/i-reset-use-case.js → server/core/interfaces/usecase/i-init-use-case.js} +0 -0
  2437. /package/dist/{core → server/core}/interfaces/usecase/i-login-use-case.d.ts +0 -0
  2438. /package/dist/{core/interfaces/usecase/i-space-list-use-case.js → server/core/interfaces/usecase/i-login-use-case.js} +0 -0
  2439. /package/dist/{core → server/core}/interfaces/usecase/i-logout-use-case.d.ts +0 -0
  2440. /package/dist/{core/interfaces/usecase/i-space-switch-use-case.js → server/core/interfaces/usecase/i-logout-use-case.js} +0 -0
  2441. /package/dist/{core → server/core}/interfaces/usecase/i-pull-use-case.d.ts +0 -0
  2442. /package/dist/{core/interfaces/usecase/i-status-use-case.js → server/core/interfaces/usecase/i-pull-use-case.js} +0 -0
  2443. /package/dist/{core → server/core}/interfaces/usecase/i-push-use-case.d.ts +0 -0
  2444. /package/dist/{core → server/core}/interfaces/usecase/i-query-use-case.d.ts +0 -0
  2445. /package/dist/{core → server/core}/interfaces/usecase/i-reset-use-case.d.ts +0 -0
  2446. /package/dist/{core → server/core}/interfaces/usecase/i-space-list-use-case.d.ts +0 -0
  2447. /package/dist/{core → server/core}/interfaces/usecase/i-space-switch-use-case.d.ts +0 -0
  2448. /package/dist/{core → server/core}/interfaces/usecase/i-status-use-case.d.ts +0 -0
  2449. /package/dist/{infra → server/infra}/auth/oauth-service.js +0 -0
  2450. /package/dist/{infra → server/infra}/auth/oidc-discovery-service.js +0 -0
  2451. /package/dist/{infra → server/infra}/browser/system-browser-launcher.js +0 -0
  2452. /package/dist/{infra → server/infra}/cogit/context-tree-to-push-context-mapper.js +0 -0
  2453. /package/dist/{infra → server/infra}/cogit/http-cogit-pull-service.js +0 -0
  2454. /package/dist/{infra → server/infra}/cogit/http-cogit-push-service.js +0 -0
  2455. /package/dist/{infra → server/infra}/config/file-config-store.js +0 -0
  2456. /package/dist/{infra → server/infra}/connectors/hook/hook-connector-config.d.ts +0 -0
  2457. /package/dist/{infra → server/infra}/connectors/hook/hook-connector-config.js +0 -0
  2458. /package/dist/{infra → server/infra}/connectors/mcp/index.d.ts +0 -0
  2459. /package/dist/{infra → server/infra}/connectors/mcp/index.js +0 -0
  2460. /package/dist/{infra → server/infra}/connectors/mcp/json-mcp-config-writer.js +0 -0
  2461. /package/dist/{infra → server/infra}/connectors/mcp/mcp-connector-config.d.ts +0 -0
  2462. /package/dist/{infra → server/infra}/connectors/mcp/mcp-connector-config.js +0 -0
  2463. /package/dist/{infra → server/infra}/connectors/mcp/toml-mcp-config-writer.js +0 -0
  2464. /package/dist/{infra → server/infra}/connectors/rules/legacy-rule-detector.js +0 -0
  2465. /package/dist/{infra → server/infra}/connectors/rules/rules-connector-config.js +0 -0
  2466. /package/dist/{infra → server/infra}/connectors/shared/constants.d.ts +0 -0
  2467. /package/dist/{infra → server/infra}/connectors/shared/constants.js +0 -0
  2468. /package/dist/{infra → server/infra}/connectors/shared/rule-file-manager.js +0 -0
  2469. /package/dist/{infra → server/infra}/connectors/shared/template-service.js +0 -0
  2470. /package/dist/{infra → server/infra}/connectors/skill/index.d.ts +0 -0
  2471. /package/dist/{infra → server/infra}/connectors/skill/index.js +0 -0
  2472. /package/dist/{infra → server/infra}/connectors/skill/skill-connector-config.d.ts +0 -0
  2473. /package/dist/{infra → server/infra}/connectors/skill/skill-connector-config.js +0 -0
  2474. /package/dist/{infra → server/infra}/context-tree/file-context-file-reader.js +0 -0
  2475. /package/dist/{infra → server/infra}/context-tree/file-context-tree-service.js +0 -0
  2476. /package/dist/{infra → server/infra}/context-tree/file-context-tree-snapshot-service.js +0 -0
  2477. /package/dist/{infra → server/infra}/context-tree/file-context-tree-writer-service.js +0 -0
  2478. /package/dist/{infra → server/infra}/file/fs-file-service.js +0 -0
  2479. /package/dist/{infra → server/infra}/http/callback-handler.js +0 -0
  2480. /package/dist/{infra → server/infra}/http/callback-server.d.ts +0 -0
  2481. /package/dist/{infra → server/infra}/http/callback-server.js +0 -0
  2482. /package/dist/{infra → server/infra}/http/openrouter-api-client.d.ts +0 -0
  2483. /package/dist/{infra → server/infra}/http/openrouter-api-client.js +0 -0
  2484. /package/dist/{infra → server/infra}/instance/file-instance-discovery.d.ts +0 -0
  2485. /package/dist/{infra → server/infra}/instance/file-instance-discovery.js +0 -0
  2486. /package/dist/{infra → server/infra}/instance/file-instance-manager.d.ts +0 -0
  2487. /package/dist/{infra → server/infra}/instance/file-instance-manager.js +0 -0
  2488. /package/dist/{infra → server/infra}/instance/index.d.ts +0 -0
  2489. /package/dist/{infra → server/infra}/instance/index.js +0 -0
  2490. /package/dist/{infra → server/infra}/instance/process-utils.d.ts +0 -0
  2491. /package/dist/{infra → server/infra}/instance/process-utils.js +0 -0
  2492. /package/dist/{infra → server/infra}/mcp/index.d.ts +0 -0
  2493. /package/dist/{infra → server/infra}/mcp/index.js +0 -0
  2494. /package/dist/{infra → server/infra}/mcp/mcp-server.d.ts +0 -0
  2495. /package/dist/{infra → server/infra}/mcp/tools/index.d.ts +0 -0
  2496. /package/dist/{infra → server/infra}/mcp/tools/index.js +0 -0
  2497. /package/dist/{infra → server/infra}/mcp/tools/task-result-waiter.js +0 -0
  2498. /package/dist/{infra → server/infra}/memory/http-memory-retrieval-service.js +0 -0
  2499. /package/dist/{infra → server/infra}/memory/http-memory-storage-service.js +0 -0
  2500. /package/dist/{infra → server/infra}/memory/memory-to-playbook-mapper.d.ts +0 -0
  2501. /package/dist/{infra → server/infra}/memory/memory-to-playbook-mapper.js +0 -0
  2502. /package/dist/{infra → server/infra}/process/agent-worker.d.ts +0 -0
  2503. /package/dist/{infra → server/infra}/process/index.d.ts +0 -0
  2504. /package/dist/{infra → server/infra}/process/index.js +0 -0
  2505. /package/dist/{infra → server/infra}/process/ipc-types.d.ts +0 -0
  2506. /package/dist/{infra → server/infra}/process/ipc-types.js +0 -0
  2507. /package/dist/{infra → server/infra}/process/parent-heartbeat.d.ts +0 -0
  2508. /package/dist/{infra → server/infra}/process/parent-heartbeat.js +0 -0
  2509. /package/dist/{infra → server/infra}/process/process-manager.d.ts +0 -0
  2510. /package/dist/{infra → server/infra}/process/task-queue-manager.d.ts +0 -0
  2511. /package/dist/{infra → server/infra}/process/task-queue-manager.js +0 -0
  2512. /package/dist/{infra → server/infra}/process/transport-handlers.d.ts +0 -0
  2513. /package/dist/{infra → server/infra}/process/transport-worker.d.ts +0 -0
  2514. /package/dist/{infra → server/infra}/process/transport-worker.js +0 -0
  2515. /package/dist/{infra → server/infra}/storage/file-global-config-store.js +0 -0
  2516. /package/dist/{infra → server/infra}/storage/file-onboarding-preference-store.js +0 -0
  2517. /package/dist/{infra → server/infra}/storage/file-provider-config-store.d.ts +0 -0
  2518. /package/dist/{infra → server/infra}/storage/file-provider-config-store.js +0 -0
  2519. /package/dist/{infra → server/infra}/storage/file-token-store.js +0 -0
  2520. /package/dist/{infra → server/infra}/storage/keychain-token-store.js +0 -0
  2521. /package/dist/{infra → server/infra}/storage/provider-keychain-store.d.ts +0 -0
  2522. /package/dist/{infra → server/infra}/storage/provider-keychain-store.js +0 -0
  2523. /package/dist/{infra → server/infra}/storage/token-store.js +0 -0
  2524. /package/dist/{infra → server/infra}/team/http-team-service.js +0 -0
  2525. /package/dist/{infra → server/infra}/template/fs-template-loader.js +0 -0
  2526. /package/dist/{infra → server/infra}/terminal/headless-terminal.js +0 -0
  2527. /package/dist/{infra → server/infra}/terminal/oclif-terminal.js +0 -0
  2528. /package/dist/{infra → server/infra}/terminal/repl-terminal.js +0 -0
  2529. /package/dist/{infra → server/infra}/tracking/mixpanel-tracking-service.js +0 -0
  2530. /package/dist/{infra → server/infra}/transport/port-utils.d.ts +0 -0
  2531. /package/dist/{infra → server/infra}/transport/port-utils.js +0 -0
  2532. /package/dist/{infra → server/infra}/transport/socket-io-transport-server.d.ts +0 -0
  2533. /package/dist/{infra → server/infra}/transport/socket-io-transport-server.js +0 -0
  2534. /package/dist/{infra → server/infra}/usecase/init-use-case.js +0 -0
  2535. /package/dist/{infra → server/infra}/usecase/login-use-case.js +0 -0
  2536. /package/dist/{infra → server/infra}/usecase/reset-use-case.js +0 -0
  2537. /package/dist/{infra → server/infra}/usecase/space-list-use-case.js +0 -0
  2538. /package/dist/{infra → server/infra}/workspace/workspace-detector-service.js +0 -0
  2539. /package/dist/{templates → server/templates}/README.md +0 -0
  2540. /package/dist/{templates → server/templates}/base.md +0 -0
  2541. /package/dist/{templates → server/templates}/mcp-base.md +0 -0
  2542. /package/dist/{templates → server/templates}/sections/command-reference.md +0 -0
  2543. /package/dist/{templates → server/templates}/sections/mcp-workflow.md +0 -0
  2544. /package/dist/{templates → server/templates}/sections/workflow.md +0 -0
  2545. /package/dist/{templates → server/templates}/skill/SKILL.md +0 -0
  2546. /package/dist/{templates → server/templates}/skill/TROUBLESHOOTING.md +0 -0
  2547. /package/dist/{templates → server/templates}/skill/WORKFLOWS.md +0 -0
  2548. /package/dist/{utils → server/utils}/crash-log.d.ts +0 -0
  2549. /package/dist/{utils → server/utils}/crash-log.js +0 -0
  2550. /package/dist/{utils → server/utils}/emoji-helpers.d.ts +0 -0
  2551. /package/dist/{utils → server/utils}/emoji-helpers.js +0 -0
  2552. /package/dist/{utils → server/utils}/environment-detector.d.ts +0 -0
  2553. /package/dist/{utils → server/utils}/environment-detector.js +0 -0
  2554. /package/dist/{utils → server/utils}/error-handler.d.ts +0 -0
  2555. /package/dist/{utils → server/utils}/error-handler.js +0 -0
  2556. /package/dist/{utils → server/utils}/error-helpers.d.ts +0 -0
  2557. /package/dist/{utils → server/utils}/error-helpers.js +0 -0
  2558. /package/dist/{utils → server/utils}/file-helpers.d.ts +0 -0
  2559. /package/dist/{utils → server/utils}/file-helpers.js +0 -0
  2560. /package/dist/{utils → server/utils}/file-validator.d.ts +0 -0
  2561. /package/dist/{utils → server/utils}/global-config-path.d.ts +0 -0
  2562. /package/dist/{utils → server/utils}/global-config-path.js +0 -0
  2563. /package/dist/{utils → server/utils}/global-data-path.d.ts +0 -0
  2564. /package/dist/{utils → server/utils}/global-data-path.js +0 -0
  2565. /package/dist/{utils → server/utils}/global-logs-path.d.ts +0 -0
  2566. /package/dist/{utils → server/utils}/global-logs-path.js +0 -0
  2567. /package/dist/{utils → server/utils}/oclif-error-helpers.d.ts +0 -0
  2568. /package/dist/{utils → server/utils}/oclif-error-helpers.js +0 -0
  2569. /package/dist/{utils → server/utils}/process-logger.d.ts +0 -0
  2570. /package/dist/{utils → server/utils}/process-logger.js +0 -0
  2571. /package/dist/{utils → server/utils}/sandbox-detector.d.ts +0 -0
  2572. /package/dist/{utils → server/utils}/sandbox-detector.js +0 -0
  2573. /package/dist/{utils → server/utils}/tool-display-formatter.d.ts +0 -0
  2574. /package/dist/{utils → server/utils}/tool-display-formatter.js +0 -0
  2575. /package/dist/{utils → server/utils}/type-guards.js +0 -0
@@ -0,0 +1,1039 @@
1
+ import { getErrorMessage } from '../../../server/utils/error-helpers.js';
2
+ import { AgentStateMachine } from '../../core/domain/agent/agent-state-machine.js';
3
+ import { AgentState, TerminationReason } from '../../core/domain/agent/agent-state.js';
4
+ import { LlmGenerationError, LlmMaxIterationsError, LlmResponseParsingError } from '../../core/domain/errors/llm-error.js';
5
+ import { getEffectiveMaxInputTokens, getMaxInputTokensForModel, getProviderFromModel, isValidProviderModel, safeParseLLMConfig, } from '../../core/domain/llm/index.js';
6
+ import { StreamChunkType, } from '../../core/interfaces/i-content-generator.js';
7
+ import { NoOpLogger } from '../../core/interfaces/i-logger.js';
8
+ import { EnvironmentContextBuilder } from '../environment/environment-context-builder.js';
9
+ import { ToolMetadataHandler } from '../tools/streaming/metadata-handler.js';
10
+ import { AsyncMutex } from './context/async-mutex.js';
11
+ import { ContextManager } from './context/context-manager.js';
12
+ import { LoopDetector } from './context/loop-detector.js';
13
+ import { ClaudeMessageFormatter } from './formatters/claude-formatter.js';
14
+ import { GeminiMessageFormatter } from './formatters/gemini-formatter.js';
15
+ import { ThoughtParser } from './thought-parser.js';
16
+ import { ClaudeTokenizer } from './tokenizers/claude-tokenizer.js';
17
+ import { GeminiTokenizer } from './tokenizers/gemini-tokenizer.js';
18
+ import { ToolOutputProcessor } from './tool-output-processor.js';
19
+ /** Target utilization ratio for message tokens (leaves headroom for response) */
20
+ const TARGET_MESSAGE_TOKEN_UTILIZATION = 0.7;
21
+ /**
22
+ * ByteRover LLM Service.
23
+ *
24
+ * Orchestrates the agentic loop using IContentGenerator for LLM calls.
25
+ * Responsibilities:
26
+ * - Manage conversation context via ContextManager
27
+ * - Execute agentic loop (call LLM → execute tools → repeat)
28
+ * - Delegate tool execution to ToolManager
29
+ * - Delegate LLM calls to IContentGenerator
30
+ * - Handle errors and iteration limits
31
+ *
32
+ * Does NOT:
33
+ * - Execute tools directly (uses ToolManager)
34
+ * - Store persistent history (uses in-memory ContextManager)
35
+ * - Format messages for specific providers (handled by generators)
36
+ * - Handle retry logic (handled by RetryableContentGenerator decorator)
37
+ */
38
+ export class ByteRoverLLMService {
39
+ compactionService;
40
+ config;
41
+ contextManager;
42
+ environmentBuilder;
43
+ formatter;
44
+ generator;
45
+ logger;
46
+ loopDetector;
47
+ memoryManager;
48
+ metadataHandler;
49
+ mutex = new AsyncMutex();
50
+ outputProcessor;
51
+ providerType;
52
+ sessionEventBus;
53
+ sessionId;
54
+ systemPromptManager;
55
+ tokenizer;
56
+ toolManager;
57
+ workingDirectory;
58
+ /**
59
+ * Initialize a new ByteRover LLM service instance.
60
+ *
61
+ * Sets up the service with all required dependencies and initializes:
62
+ * - Context manager for conversation history
63
+ * - Message formatter (Gemini or Claude format based on model)
64
+ * - Token counter/tokenizer for the selected model
65
+ * - Configuration with sensible defaults
66
+ *
67
+ * Each service instance maintains isolated conversation context,
68
+ * allowing multiple concurrent sessions with separate histories.
69
+ *
70
+ * @param sessionId - Unique identifier for this session
71
+ * @param generator - Content generator for LLM calls (with decorators pre-applied)
72
+ * @param config - LLM service configuration (model, tokens, temperature)
73
+ * @param options - Service dependencies
74
+ * @param options.toolManager - Tool manager for executing agent tools
75
+ * @param options.systemPromptManager - System prompt manager for building system prompts
76
+ * @param options.memoryManager - Memory manager for agent memories
77
+ * @param options.sessionEventBus - Event bus for session lifecycle events
78
+ * @param options.compactionService - Optional compaction service for context overflow management
79
+ * @param options.historyStorage - Optional history storage for persistence
80
+ * @param options.logger - Optional logger for structured logging
81
+ */
82
+ constructor(sessionId, generator, config, options) {
83
+ this.sessionId = sessionId;
84
+ this.generator = generator;
85
+ this.compactionService = options.compactionService;
86
+ this.toolManager = options.toolManager;
87
+ this.systemPromptManager = options.systemPromptManager;
88
+ this.memoryManager = options.memoryManager;
89
+ this.sessionEventBus = options.sessionEventBus;
90
+ this.logger = options.logger ?? new NoOpLogger();
91
+ this.outputProcessor = new ToolOutputProcessor(config.truncationConfig);
92
+ this.loopDetector = new LoopDetector();
93
+ this.environmentBuilder = new EnvironmentContextBuilder();
94
+ this.metadataHandler = new ToolMetadataHandler(this.sessionEventBus);
95
+ this.workingDirectory = process.cwd();
96
+ // Detect provider type from model name (needed for validation)
97
+ const modelName = config.model ?? 'claude-haiku-4-5@20251001';
98
+ this.providerType = this.detectProviderType(modelName);
99
+ // Validate core LLM config using Zod schema (logs warning if invalid)
100
+ this.validateConfig(modelName, config.maxInputTokens);
101
+ // Get effective max input tokens from registry (respects model limits)
102
+ const effectiveMaxInputTokens = getEffectiveMaxInputTokens(this.providerType, modelName, config.maxInputTokens);
103
+ this.config = {
104
+ maxInputTokens: effectiveMaxInputTokens,
105
+ maxIterations: config.maxIterations ?? 50,
106
+ maxTokens: config.maxTokens ?? 8192,
107
+ model: modelName,
108
+ temperature: config.temperature ?? 0.7,
109
+ thinkingConfig: config.thinkingConfig,
110
+ timeout: config.timeout,
111
+ verbose: config.verbose ?? false,
112
+ };
113
+ // Initialize formatter and tokenizer based on provider type
114
+ if (this.providerType === 'claude') {
115
+ this.formatter = new ClaudeMessageFormatter();
116
+ this.tokenizer = new ClaudeTokenizer(this.config.model);
117
+ }
118
+ else {
119
+ this.formatter = new GeminiMessageFormatter();
120
+ this.tokenizer = new GeminiTokenizer(this.config.model);
121
+ }
122
+ // Initialize context manager with optional history storage
123
+ this.contextManager = new ContextManager({
124
+ formatter: this.formatter,
125
+ historyStorage: options.historyStorage,
126
+ maxInputTokens: this.config.maxInputTokens,
127
+ sessionId,
128
+ tokenizer: this.tokenizer,
129
+ });
130
+ }
131
+ /**
132
+ * Complete a task with tool calling support.
133
+ *
134
+ * This is the main entry point for the agentic loop.
135
+ * It handles:
136
+ * 1. Adding user message to context
137
+ * 2. Looping: call LLM → check for tool calls → execute tools
138
+ * 3. Returning final response when no more tool calls
139
+ *
140
+ * @param textInput - User input text
141
+ * @param options - Execution options
142
+ * @param options.executionContext - Optional execution context
143
+ * @param options.signal - Optional abort signal for cancellation
144
+ * @param options.imageData - Optional image data
145
+ * @param options.fileData - Optional file data
146
+ * @param options.stream - Whether to stream response (not implemented yet)
147
+ * @param options.taskId - Task ID from usecase for billing tracking
148
+ * @returns Final assistant response
149
+ */
150
+ async completeTask(textInput, options) {
151
+ // Extract options with defaults
152
+ const { executionContext, fileData, imageData, signal, stream, taskId } = options ?? {};
153
+ // Get filtered tools based on command type (e.g., only read-only tools for 'query')
154
+ const toolSet = this.toolManager.getToolsForCommand(options?.executionContext?.commandType);
155
+ // Create state machine with configured limits
156
+ const maxTimeMs = this.config.timeout ?? 600_000; // 10 min default
157
+ const stateMachine = new AgentStateMachine(this.config.maxIterations, maxTimeMs);
158
+ stateMachine.transition(AgentState.EXECUTING);
159
+ // Agentic loop with state machine
160
+ while (!stateMachine.isTerminal()) {
161
+ // Check termination conditions (timeout, max turns)
162
+ const terminationReason = stateMachine.shouldTerminate();
163
+ if (terminationReason) {
164
+ return this.handleTermination(terminationReason, stateMachine, taskId);
165
+ }
166
+ // Check if aborted via signal
167
+ if (signal?.aborted) {
168
+ stateMachine.abort();
169
+ throw new Error('Operation aborted');
170
+ }
171
+ try {
172
+ // eslint-disable-next-line no-await-in-loop -- Sequential iterations required for agentic loop
173
+ const result = await this.executeAgenticIteration({
174
+ executionContext,
175
+ fileData,
176
+ imageData,
177
+ iterationCount: stateMachine.getContext().turnCount,
178
+ stream,
179
+ taskId,
180
+ textInput,
181
+ tools: toolSet,
182
+ });
183
+ if (result !== null) {
184
+ // Task complete - no tool calls
185
+ stateMachine.complete();
186
+ return result;
187
+ }
188
+ // Tool calls were executed, continue loop
189
+ stateMachine.incrementTurn();
190
+ }
191
+ catch (error) {
192
+ stateMachine.fail(error);
193
+ this.handleLLMError(error, taskId);
194
+ }
195
+ }
196
+ // Should not reach here - state machine should exit via terminal states
197
+ throw new Error('Agent loop terminated unexpectedly');
198
+ }
199
+ /**
200
+ * Get all available tools for the agent.
201
+ *
202
+ * Retrieves the current set of tools that can be used during task execution.
203
+ * These tools are passed to the LLM to enable function calling capabilities.
204
+ *
205
+ * @returns Promise resolving to a map of tool names to their schemas
206
+ */
207
+ async getAllTools() {
208
+ return this.toolManager.getAllTools();
209
+ }
210
+ /**
211
+ * Get the service's runtime configuration.
212
+ *
213
+ * Returns metadata about the service including:
214
+ * - Configured and model-specific token limits
215
+ * - Selected LLM model
216
+ * - Provider name (always 'byterover')
217
+ * - Router type (always 'in-built')
218
+ *
219
+ * This is useful for introspecting service capabilities and limits
220
+ * without needing access to the internal config object.
221
+ *
222
+ * @returns Service configuration object with model info and constraints
223
+ */
224
+ getConfig() {
225
+ // Get model's actual max tokens from registry
226
+ const modelMaxTokens = getMaxInputTokensForModel(this.providerType, this.config.model);
227
+ return {
228
+ configuredMaxInputTokens: this.config.maxInputTokens,
229
+ model: this.config.model,
230
+ modelMaxInputTokens: modelMaxTokens,
231
+ provider: 'byterover',
232
+ router: 'in-built',
233
+ };
234
+ }
235
+ /**
236
+ * Get access to the conversation context manager.
237
+ *
238
+ * Provides access to the ContextManager instance that maintains:
239
+ * - Conversation history (messages and responses)
240
+ * - Token counting and compression
241
+ * - Message formatting for the selected model
242
+ *
243
+ * Useful for:
244
+ * - Inspecting conversation state
245
+ * - Retrieving formatted messages
246
+ * - Managing context during multi-turn interactions
247
+ *
248
+ * @returns The ContextManager instance managing conversation state
249
+ */
250
+ getContextManager() {
251
+ return this.contextManager;
252
+ }
253
+ /**
254
+ * Initialize the LLM service by loading persisted history.
255
+ * Should be called after construction to restore previous conversation.
256
+ *
257
+ * @returns True if history was loaded, false otherwise
258
+ */
259
+ async initialize() {
260
+ return this.contextManager.initialize();
261
+ }
262
+ /**
263
+ * Add a parallel tool result to the context.
264
+ * Called sequentially after parallel execution to preserve message order.
265
+ *
266
+ * @param result - Parallel tool result to add
267
+ */
268
+ async addParallelToolResultToContext(result) {
269
+ const { toolCall, toolResult } = result;
270
+ if (!toolResult) {
271
+ // This shouldn't happen, but handle gracefully
272
+ await this.contextManager.addToolResult(toolCall.id, toolCall.function.name, 'Error: No tool result available', {
273
+ errorType: 'NO_RESULT',
274
+ success: false,
275
+ });
276
+ return;
277
+ }
278
+ await this.contextManager.addToolResult(toolCall.id, toolCall.function.name, toolResult.processedOutput.content, {
279
+ errorType: toolResult.errorType,
280
+ metadata: toolResult.metadata,
281
+ success: toolResult.success,
282
+ }, toolResult.processedOutput.attachments);
283
+ }
284
+ /**
285
+ * Build generation request for the IContentGenerator.
286
+ *
287
+ * Converts internal context to the standardized GenerateContentRequest format.
288
+ *
289
+ * @param options - Request options
290
+ * @param options.systemPrompt - System prompt text
291
+ * @param options.tools - Available tools for function calling
292
+ * @param options.executionContext - Optional execution context
293
+ * @returns GenerateContentRequest for the generator
294
+ */
295
+ buildGenerateContentRequest(options) {
296
+ // Get internal messages from context manager
297
+ const messages = this.contextManager.getMessages();
298
+ return {
299
+ config: {
300
+ maxTokens: this.config.maxTokens,
301
+ temperature: this.config.temperature,
302
+ },
303
+ contents: messages,
304
+ executionContext: options.executionContext,
305
+ model: this.config.model,
306
+ systemPrompt: options.systemPrompt,
307
+ taskId: options.taskId ?? '',
308
+ tools: options.tools,
309
+ };
310
+ }
311
+ /**
312
+ * Call LLM via generator and process the response.
313
+ *
314
+ * Uses the IContentGenerator interface which already has:
315
+ * - Retry logic (via RetryableContentGenerator decorator)
316
+ * - Logging (via LoggingContentGenerator decorator)
317
+ *
318
+ * @param request - Generation request
319
+ * @returns Parsed internal message from response
320
+ */
321
+ async callLLMAndParseResponse(request) {
322
+ try {
323
+ const response = await this.generator.generateContent(request);
324
+ // Convert response to InternalMessage format
325
+ const message = {
326
+ content: response.content,
327
+ role: 'assistant',
328
+ toolCalls: response.toolCalls,
329
+ };
330
+ // Validate the message has content or tool calls
331
+ if (!message.content && (!message.toolCalls || message.toolCalls.length === 0)) {
332
+ throw new LlmResponseParsingError('Response has neither content nor tool calls', 'byterover', this.config.model);
333
+ }
334
+ return message;
335
+ }
336
+ catch (error) {
337
+ // Re-throw LLM errors as-is
338
+ if (error instanceof LlmResponseParsingError || error instanceof LlmGenerationError) {
339
+ throw error;
340
+ }
341
+ // Wrap other errors
342
+ throw new LlmGenerationError(error instanceof Error ? error.message : String(error), 'byterover', this.config.model);
343
+ }
344
+ }
345
+ /**
346
+ * Streaming variant of callLLMAndParseResponse that:
347
+ * - Uses generateContentStream for real-time chunk delivery
348
+ * - Accumulates content and tool calls from chunks
349
+ * - Emits llmservice:chunk events for thinking/reasoning chunks
350
+ * - Returns complete InternalMessage when stream ends
351
+ *
352
+ * @param request - Generation request
353
+ * @param taskId - Task ID for event emission
354
+ * @returns Parsed internal message from accumulated stream
355
+ */
356
+ async callLLMAndParseResponseStreaming(request, taskId) {
357
+ try {
358
+ let accumulatedContent = '';
359
+ let accumulatedToolCalls = [];
360
+ // Stream chunks and accumulate content
361
+ for await (const chunk of this.generator.generateContentStream(request)) {
362
+ // Emit thinking/reasoning chunks as events for TUI display
363
+ if (chunk.type === StreamChunkType.THINKING && chunk.reasoning) {
364
+ this.sessionEventBus.emit('llmservice:chunk', {
365
+ content: chunk.reasoning,
366
+ isComplete: chunk.isComplete,
367
+ taskId,
368
+ type: 'reasoning', // Convert THINKING to 'reasoning' for TUI compatibility
369
+ });
370
+ }
371
+ // Accumulate text content (skip thinking chunks from accumulated content)
372
+ if (chunk.content && chunk.type !== StreamChunkType.THINKING) {
373
+ accumulatedContent += chunk.content;
374
+ // Emit text chunks for TUI display
375
+ this.sessionEventBus.emit('llmservice:chunk', {
376
+ content: chunk.content,
377
+ isComplete: chunk.isComplete,
378
+ taskId,
379
+ type: 'text',
380
+ });
381
+ }
382
+ // Accumulate tool calls
383
+ if (chunk.toolCalls) {
384
+ accumulatedToolCalls = chunk.toolCalls;
385
+ }
386
+ }
387
+ // Convert accumulated response to InternalMessage format
388
+ const message = {
389
+ content: accumulatedContent || null,
390
+ role: 'assistant',
391
+ toolCalls: accumulatedToolCalls.length > 0 ? accumulatedToolCalls : undefined,
392
+ };
393
+ // Validate the message has content or tool calls
394
+ if (!message.content && (!message.toolCalls || message.toolCalls.length === 0)) {
395
+ throw new LlmResponseParsingError('Response has neither content nor tool calls', 'byterover', this.config.model);
396
+ }
397
+ return message;
398
+ }
399
+ catch (error) {
400
+ // Re-throw LLM errors as-is
401
+ if (error instanceof LlmResponseParsingError || error instanceof LlmGenerationError) {
402
+ throw error;
403
+ }
404
+ // Wrap other errors
405
+ throw new LlmGenerationError(error instanceof Error ? error.message : String(error), 'byterover', this.config.model);
406
+ }
407
+ }
408
+ /**
409
+ * Check for context overflow and trigger compaction if needed.
410
+ * Called after each assistant response and after tool execution batches.
411
+ *
412
+ * Follows OpenCode's compaction patterns:
413
+ * - First tries pruning tool outputs (if overflow > 85%)
414
+ * - Then tries full compaction with LLM summary (if overflow > 95%)
415
+ *
416
+ * @param taskId - Task ID from usecase for billing tracking (passed from caller)
417
+ */
418
+ async checkAndTriggerCompaction(taskId) {
419
+ if (!this.compactionService)
420
+ return;
421
+ // Calculate current token usage
422
+ const messages = this.contextManager.getMessages();
423
+ const messagesTokens = messages.reduce((total, msg) => total +
424
+ this.generator.estimateTokensSync(typeof msg.content === 'string' ? msg.content : JSON.stringify(msg.content)), 0);
425
+ // Estimate system prompt tokens (rough estimate since we don't have full context here)
426
+ // Using a conservative estimate of 2000 tokens for system prompt
427
+ const estimatedSystemPromptTokens = 2000;
428
+ const currentTokens = estimatedSystemPromptTokens + messagesTokens;
429
+ // Check overflow
430
+ const overflowResult = this.compactionService.checkOverflow(currentTokens, this.config.maxInputTokens);
431
+ if (!overflowResult.isOverflow)
432
+ return;
433
+ // Emit context overflow event
434
+ const utilizationPercent = Math.round((currentTokens / this.config.maxInputTokens) * 100);
435
+ this.sessionEventBus.emit('llmservice:contextOverflow', {
436
+ currentTokens,
437
+ maxTokens: this.config.maxInputTokens,
438
+ taskId: taskId || undefined,
439
+ utilizationPercent,
440
+ });
441
+ if (overflowResult.recommendation === 'prune') {
442
+ // Try pruning tool outputs first
443
+ const pruneResult = await this.compactionService.pruneToolOutputs(this.sessionId);
444
+ // Emit context pruned event
445
+ if (pruneResult.compactedCount > 0) {
446
+ this.sessionEventBus.emit('llmservice:contextPruned', {
447
+ pruneCount: pruneResult.compactedCount,
448
+ reason: 'overflow',
449
+ taskId: taskId || undefined,
450
+ tokensSaved: pruneResult.tokensSaved,
451
+ });
452
+ // Also emit warning for backward compatibility
453
+ this.sessionEventBus.emit('llmservice:warning', {
454
+ message: `Context compaction: pruned ${pruneResult.compactedCount} old tool outputs (~${pruneResult.tokensSaved} tokens)`,
455
+ taskId: taskId || undefined,
456
+ });
457
+ }
458
+ }
459
+ else if (overflowResult.recommendation === 'compact') {
460
+ const originalTokens = currentTokens;
461
+ // Full compaction needed - generate LLM summary
462
+ // Use the same taskId from caller for billing tracking
463
+ const summary = await this.compactionService.generateSummary(this.generator, messages, taskId, this.config.model);
464
+ await this.compactionService.createCompactionBoundary(this.sessionId, summary);
465
+ // Emit context compressed event
466
+ // Estimate compressed tokens (summary is much smaller than original)
467
+ const compressedTokens = this.generator.estimateTokensSync(summary);
468
+ this.sessionEventBus.emit('llmservice:contextCompressed', {
469
+ compressedTokens,
470
+ originalTokens,
471
+ strategy: 'summary',
472
+ taskId: taskId || undefined,
473
+ });
474
+ // Also emit warning for backward compatibility
475
+ this.sessionEventBus.emit('llmservice:warning', {
476
+ message: 'Context compaction: created summary boundary for conversation history',
477
+ taskId: taskId || undefined,
478
+ });
479
+ }
480
+ }
481
+ /**
482
+ * Detect provider type from model name using the LLM registry.
483
+ *
484
+ * Uses the centralized registry to determine provider from model name.
485
+ * Falls back to string prefix matching if model is not in registry.
486
+ *
487
+ * @param model - Model identifier
488
+ * @returns Provider type ('claude' or 'gemini')
489
+ */
490
+ detectProviderType(model) {
491
+ // Use registry to detect provider
492
+ const registryProvider = getProviderFromModel(model);
493
+ if (registryProvider === 'claude' || registryProvider === 'gemini') {
494
+ return registryProvider;
495
+ }
496
+ // Fallback to string prefix matching for unknown models
497
+ return model.toLowerCase().startsWith('claude') ? 'claude' : 'gemini';
498
+ }
499
+ /**
500
+ * Determine which reflection prompt to add based on hierarchical priority.
501
+ * Only the highest priority eligible reflection is returned.
502
+ *
503
+ * Priority (highest to lowest):
504
+ * 1. final_iteration - query only, at the last iteration
505
+ * 2. near_max_iterations - general, at 80% threshold
506
+ * 3. mid_point_check - query only, at 50% threshold
507
+ * 4. completion_check - general, periodic every 3 iterations
508
+ *
509
+ * @param iterationCount - Current iteration count (0-indexed)
510
+ * @param commandType - Command type ('query' or 'curate')
511
+ * @returns Reflection type to add, or undefined if none eligible
512
+ */
513
+ determineReflectionType(iterationCount, commandType) {
514
+ const isQuery = commandType === 'query';
515
+ const isLastIteration = iterationCount === this.config.maxIterations - 1;
516
+ const midPoint = Math.floor(this.config.maxIterations / 2);
517
+ const isAtMidPoint = iterationCount === midPoint;
518
+ const isNearMax = iterationCount >= Math.floor(this.config.maxIterations * 0.8);
519
+ const isPeriodicCheck = iterationCount > 0 && iterationCount % 3 === 0;
520
+ // Priority 1: final_iteration (query only, last iteration) - highest priority
521
+ if (isQuery && isLastIteration) {
522
+ return 'final_iteration';
523
+ }
524
+ // Priority 2: near_max_iterations (general, 80% threshold)
525
+ if (isNearMax) {
526
+ return 'near_max_iterations';
527
+ }
528
+ // Priority 3: mid_point_check (query only, 50% threshold)
529
+ if (isQuery && isAtMidPoint) {
530
+ return 'mid_point_check';
531
+ }
532
+ // Priority 4: completion_check (general, periodic every 3 iterations) - lowest priority
533
+ if (isPeriodicCheck) {
534
+ return 'completion_check';
535
+ }
536
+ return undefined;
537
+ }
538
+ /**
539
+ * Execute a single iteration of the agentic loop.
540
+ *
541
+ * @param options - Iteration options
542
+ * @param options.executionContext - Optional execution context
543
+ * @param options.fileData - Optional file data (only used on first iteration)
544
+ * @param options.imageData - Optional image data (only used on first iteration)
545
+ * @param options.iterationCount - Current iteration number
546
+ * @param options.stream - Whether to stream response and emit thinking chunks
547
+ * @param options.taskId - Task ID from usecase for billing tracking
548
+ * @param options.textInput - User input text (only used on first iteration)
549
+ * @param options.tools - Available tools for this iteration
550
+ * @returns Final response string if complete, null if more iterations needed
551
+ */
552
+ async executeAgenticIteration(options) {
553
+ const { executionContext, fileData, imageData, iterationCount, stream, taskId, textInput, tools } = options;
554
+ // Build system prompt using SystemPromptManager (before compression for correct token accounting)
555
+ // Use filtered tool names based on command type (e.g., only read-only tools for 'query')
556
+ const availableTools = this.toolManager.getToolNamesForCommand(executionContext?.commandType);
557
+ const markersSet = this.toolManager.getAvailableMarkers();
558
+ // Convert Set to Record for prompt factory
559
+ const availableMarkers = {};
560
+ for (const marker of markersSet) {
561
+ availableMarkers[marker] = marker;
562
+ }
563
+ // Build environment context for system prompt
564
+ const environmentContext = await this.environmentBuilder.build({
565
+ includeBrvStructure: true,
566
+ includeFileTree: true,
567
+ maxFileTreeDepth: 3,
568
+ maxFileTreeEntries: 100,
569
+ workingDirectory: this.workingDirectory,
570
+ });
571
+ let systemPrompt = await this.systemPromptManager.build({
572
+ availableMarkers,
573
+ availableTools,
574
+ commandType: executionContext?.commandType,
575
+ conversationMetadata: executionContext?.conversationMetadata,
576
+ environmentContext,
577
+ fileReferenceInstructions: executionContext?.fileReferenceInstructions,
578
+ memoryManager: this.memoryManager,
579
+ });
580
+ // Determine which reflection prompt to add (only highest priority is chosen)
581
+ const reflectionType = this.determineReflectionType(iterationCount, executionContext?.commandType);
582
+ // Add reflection prompt if eligible (hierarchical: only one reflection per iteration)
583
+ if (reflectionType) {
584
+ const reflectionPrompt = this.systemPromptManager.buildReflectionPrompt({
585
+ currentIteration: iterationCount + 1,
586
+ maxIterations: this.config.maxIterations,
587
+ type: reflectionType,
588
+ });
589
+ systemPrompt = systemPrompt + '\n\n' + reflectionPrompt;
590
+ }
591
+ // Verbose debug: Show complete system prompt
592
+ if (this.config.verbose) {
593
+ this.logger.debug('System prompt details', {
594
+ first500Chars: systemPrompt.slice(0, 500),
595
+ iteration: iterationCount + 1,
596
+ last500Chars: systemPrompt.slice(-500),
597
+ length: systemPrompt.length,
598
+ lines: systemPrompt.split('\n').length,
599
+ reflectionType,
600
+ });
601
+ }
602
+ // Final iteration optimization for query: strip tools (reflection already added above)
603
+ let toolsForThisIteration = tools;
604
+ if (executionContext?.commandType === 'query' && iterationCount === this.config.maxIterations - 1) {
605
+ toolsForThisIteration = {}; // Empty toolset forces text response
606
+ }
607
+ // Get token count for logging (using system prompt for token accounting)
608
+ const systemPromptTokens = this.generator.estimateTokensSync(systemPrompt);
609
+ // Add user message and compress context within mutex lock
610
+ return this.mutex.withLock(async () => {
611
+ // Add user message to context only on the first iteration
612
+ if (iterationCount === 0) {
613
+ await this.contextManager.addUserMessage(textInput, imageData, fileData);
614
+ }
615
+ const messages = this.contextManager.getMessages();
616
+ const messageTokenCounts = messages.map((msg) => this.generator.estimateTokensSync(typeof msg.content === 'string' ? msg.content : JSON.stringify(msg.content)));
617
+ const maxMessageTokens = this.config.maxInputTokens - systemPromptTokens;
618
+ // Target utilization to leave headroom for response
619
+ const targetMessageTokens = Math.floor(maxMessageTokens * TARGET_MESSAGE_TOKEN_UTILIZATION);
620
+ this.contextManager.compressMessage(targetMessageTokens, messageTokenCounts);
621
+ // Build generation request
622
+ const request = this.buildGenerateContentRequest({
623
+ executionContext,
624
+ systemPrompt,
625
+ taskId,
626
+ tools: toolsForThisIteration,
627
+ });
628
+ // Call LLM via generator (retry + logging handled by decorators)
629
+ // Use streaming variant if enabled to emit thinking/reasoning chunks
630
+ const lastMessage = stream
631
+ ? await this.callLLMAndParseResponseStreaming(request, taskId)
632
+ : await this.callLLMAndParseResponse(request);
633
+ // Check if there are tool calls
634
+ if (!lastMessage.toolCalls || lastMessage.toolCalls.length === 0) {
635
+ const response = await this.handleFinalResponse(lastMessage, taskId);
636
+ // Auto-compaction check after assistant response
637
+ await this.checkAndTriggerCompaction(taskId ?? '');
638
+ return response;
639
+ }
640
+ // Has tool calls - handle them (pass taskId for subagent billing)
641
+ await this.handleToolCalls(lastMessage, taskId);
642
+ // Auto-compaction check after tool execution batch
643
+ await this.checkAndTriggerCompaction(taskId ?? '');
644
+ return null;
645
+ });
646
+ }
647
+ /**
648
+ * Execute a single tool call in parallel (without adding to context).
649
+ * Returns all information needed to add the result to context later.
650
+ *
651
+ * @param toolCall - Tool call to execute
652
+ * @param taskId - Task ID from usecase for billing tracking (passed to subagents)
653
+ * @returns Parallel tool result with all execution data
654
+ */
655
+ async executeToolCallParallel(toolCall, taskId) {
656
+ const toolName = toolCall.function.name;
657
+ const toolArgs = JSON.parse(toolCall.function.arguments);
658
+ try {
659
+ // Check for loops before execution (mutex-protected)
660
+ const loopResult = await this.loopDetector.recordAndCheck(toolName, toolArgs);
661
+ if (loopResult.isLoop) {
662
+ // Emit dedicated doom loop event for observability
663
+ this.sessionEventBus.emit('llmservice:doomLoopDetected', {
664
+ args: toolArgs,
665
+ loopType: loopResult.loopType,
666
+ repeatCount: loopResult.repeatCount ?? 0,
667
+ taskId: taskId || undefined,
668
+ toolName,
669
+ });
670
+ // Also emit warning event for backward compatibility
671
+ this.sessionEventBus.emit('llmservice:warning', {
672
+ message: `Doom loop detected: ${loopResult.loopType} - tool "${toolName}" repeated ${loopResult.repeatCount} times. Auto-denying to prevent infinite loop.`,
673
+ taskId: taskId || undefined,
674
+ });
675
+ return {
676
+ toolCall,
677
+ toolResult: {
678
+ errorType: 'LOOP_DETECTED',
679
+ metadata: {
680
+ loopType: loopResult.loopType,
681
+ repeatCount: loopResult.repeatCount,
682
+ },
683
+ processedOutput: {
684
+ content: `⚠️ DOOM LOOP DETECTED: ${loopResult.suggestion}\n\nThe tool call has been automatically rejected to prevent an infinite loop. Please try a different approach to accomplish your goal.`,
685
+ },
686
+ success: false,
687
+ },
688
+ };
689
+ }
690
+ // Emit tool call event
691
+ this.sessionEventBus.emit('llmservice:toolCall', {
692
+ args: toolArgs,
693
+ callId: toolCall.id,
694
+ taskId: taskId || undefined,
695
+ toolName,
696
+ });
697
+ // Create metadata callback for streaming tool output
698
+ const metadataCallback = this.metadataHandler.createCallback(toolCall.id, toolName);
699
+ // Execute tool via ToolManager (returns structured result)
700
+ // Pass taskId in context for subagent billing tracking
701
+ const result = await this.toolManager.executeTool(toolName, toolArgs, this.sessionId, {
702
+ metadata: metadataCallback,
703
+ taskId,
704
+ });
705
+ // Process output (truncation and file saving if needed)
706
+ const processedOutput = await this.outputProcessor.processStructuredOutput(toolName, result.content);
707
+ // Emit truncation event if output was truncated
708
+ if (processedOutput.metadata?.truncated) {
709
+ this.sessionEventBus.emit('llmservice:outputTruncated', {
710
+ originalLength: processedOutput.metadata.originalLength,
711
+ savedToFile: processedOutput.metadata.savedToFile,
712
+ taskId: taskId || undefined,
713
+ toolName,
714
+ });
715
+ }
716
+ // Emit tool result event with success/error info
717
+ this.sessionEventBus.emit('llmservice:toolResult', {
718
+ callId: toolCall.id,
719
+ error: result.errorMessage,
720
+ errorType: result.errorType,
721
+ metadata: {
722
+ ...result.metadata,
723
+ ...processedOutput.metadata,
724
+ },
725
+ result: processedOutput.content,
726
+ success: result.success,
727
+ taskId: taskId || undefined,
728
+ toolName,
729
+ });
730
+ return {
731
+ toolCall,
732
+ toolResult: {
733
+ errorType: result.errorType,
734
+ metadata: {
735
+ ...result.metadata,
736
+ ...processedOutput.metadata,
737
+ },
738
+ processedOutput,
739
+ success: result.success,
740
+ },
741
+ };
742
+ }
743
+ catch (error) {
744
+ // Catch any unexpected errors during execution
745
+ const errorMessage = getErrorMessage(error);
746
+ this.logger.error('Error executing tool in parallel', { error, toolCallId: toolCall.id, toolName });
747
+ return {
748
+ error: errorMessage,
749
+ toolCall,
750
+ toolResult: {
751
+ errorType: 'EXECUTION_ERROR',
752
+ metadata: {},
753
+ processedOutput: { content: `Error executing tool: ${errorMessage}` },
754
+ success: false,
755
+ },
756
+ };
757
+ }
758
+ }
759
+ /**
760
+ * Extract text content from an internal message.
761
+ *
762
+ * @param message - Internal message
763
+ * @returns Text content as string
764
+ */
765
+ extractTextContent(message) {
766
+ if (typeof message.content === 'string') {
767
+ return message.content;
768
+ }
769
+ if (Array.isArray(message.content)) {
770
+ return message.content
771
+ .filter((part) => part.type === 'text')
772
+ .map((part) => (part.type === 'text' ? part.text : ''))
773
+ .join('');
774
+ }
775
+ return '';
776
+ }
777
+ /**
778
+ * Extract partial response from conversation history when max iterations reached.
779
+ * Returns the last assistant message or accumulated tool outputs.
780
+ *
781
+ * @returns Partial response string
782
+ */
783
+ async getPartialResponse() {
784
+ const history = this.contextManager.getMessages();
785
+ // Find last assistant message
786
+ for (let i = history.length - 1; i >= 0; i--) {
787
+ const msg = history[i];
788
+ if (msg && msg.role === 'assistant') {
789
+ return this.extractTextContent(msg);
790
+ }
791
+ }
792
+ return '';
793
+ }
794
+ /**
795
+ * Handle final response when there are no tool calls.
796
+ *
797
+ * @param lastMessage - Last message from LLM
798
+ * @param taskId - Optional task ID for concurrent task isolation
799
+ * @returns Final response content
800
+ */
801
+ async handleFinalResponse(lastMessage, taskId) {
802
+ const content = this.extractTextContent(lastMessage);
803
+ // Emit response event
804
+ this.sessionEventBus.emit('llmservice:response', {
805
+ content,
806
+ model: this.config.model,
807
+ provider: 'byterover',
808
+ taskId: taskId || undefined,
809
+ });
810
+ // Add assistant message to context
811
+ await this.contextManager.addAssistantMessage(content);
812
+ return content;
813
+ }
814
+ /**
815
+ * Handle LLM errors and re-throw or wrap appropriately.
816
+ *
817
+ * @param error - Error to handle
818
+ * @param taskId - Optional task ID for concurrent task isolation
819
+ */
820
+ handleLLMError(error, taskId) {
821
+ // Emit error event
822
+ const errorMessage = error instanceof Error ? error.message : String(error);
823
+ this.sessionEventBus.emit('llmservice:error', {
824
+ error: errorMessage,
825
+ taskId: taskId || undefined,
826
+ });
827
+ // Re-throw LLM errors as-is
828
+ if (error instanceof LlmResponseParsingError ||
829
+ error instanceof LlmGenerationError ||
830
+ error instanceof LlmMaxIterationsError) {
831
+ throw error;
832
+ }
833
+ // Wrap other errors
834
+ if (error && typeof error === 'object' && 'message' in error) {
835
+ throw new LlmGenerationError(getErrorMessage(error), 'byterover', this.config.model);
836
+ }
837
+ throw new LlmGenerationError(String(error), 'byterover', this.config.model);
838
+ }
839
+ /**
840
+ * Handle agent termination due to timeout or max turns.
841
+ *
842
+ * Emits appropriate events and returns a partial response.
843
+ *
844
+ * @param reason - Why the agent is terminating
845
+ * @param stateMachine - The state machine for context
846
+ * @param taskId - Optional task ID for concurrent task isolation
847
+ * @returns Partial response or fallback message
848
+ */
849
+ async handleTermination(reason, stateMachine, taskId) {
850
+ const context = stateMachine.getContext();
851
+ const durationMs = Date.now() - context.startTime.getTime();
852
+ this.logger.warn('Agent execution terminated', {
853
+ durationMs,
854
+ reason,
855
+ toolCallsExecuted: context.toolCallsExecuted,
856
+ turnCount: context.turnCount,
857
+ });
858
+ // Emit termination event
859
+ this.sessionEventBus.emit('llmservice:warning', {
860
+ message: `Agent terminated: ${reason} after ${context.turnCount} turns`,
861
+ model: this.config.model,
862
+ provider: 'byterover',
863
+ taskId: taskId || undefined,
864
+ });
865
+ // Get accumulated response from context
866
+ const partialResponse = await this.getPartialResponse();
867
+ this.sessionEventBus.emit('llmservice:response', {
868
+ content: partialResponse,
869
+ model: this.config.model,
870
+ partial: true,
871
+ provider: 'byterover',
872
+ taskId: taskId || undefined,
873
+ });
874
+ if (reason === TerminationReason.MAX_TURNS) {
875
+ return (partialResponse ||
876
+ 'Maximum iterations reached without completing the task. Please try breaking down the task into smaller steps.');
877
+ }
878
+ if (reason === TerminationReason.TIMEOUT) {
879
+ return partialResponse || 'Execution timed out. Please try a simpler task or increase the timeout.';
880
+ }
881
+ return partialResponse || 'Agent execution terminated unexpectedly.';
882
+ }
883
+ /**
884
+ * Handle thoughts from LLM response (Gemini only).
885
+ *
886
+ * Extracts and emits thought events if present.
887
+ *
888
+ * @param message - Message potentially containing thoughts
889
+ * @param taskId - Optional task ID for concurrent task isolation
890
+ */
891
+ handleThoughts(message, taskId) {
892
+ // Only process thoughts for Gemini models
893
+ if (this.providerType !== 'gemini') {
894
+ return;
895
+ }
896
+ // Check if message has thought content
897
+ if (message.thought) {
898
+ // Parse thought if not already parsed
899
+ if (!message.thoughtSummary) {
900
+ message.thoughtSummary = ThoughtParser.parse(message.thought);
901
+ }
902
+ // Emit thought event
903
+ this.sessionEventBus.emit('llmservice:thought', {
904
+ description: message.thoughtSummary.description,
905
+ subject: message.thoughtSummary.subject,
906
+ taskId: taskId || undefined,
907
+ });
908
+ }
909
+ }
910
+ /**
911
+ * Handle tool calls from LLM response.
912
+ * Uses tool parts with state machine: pending → running → completed/error.
913
+ * Executes tools in parallel for performance, but updates state in order.
914
+ *
915
+ * @param lastMessage - Last message containing tool calls
916
+ * @param taskId - Task ID from usecase for billing tracking (passed to subagents)
917
+ */
918
+ async handleToolCalls(lastMessage, taskId) {
919
+ if (!lastMessage.toolCalls || lastMessage.toolCalls.length === 0) {
920
+ return;
921
+ }
922
+ // Emit thought events if present
923
+ this.handleThoughts(lastMessage, taskId);
924
+ // Has tool calls - add assistant message with tool calls
925
+ const assistantContent = this.extractTextContent(lastMessage);
926
+ await this.contextManager.addAssistantMessage(assistantContent, lastMessage.toolCalls);
927
+ // Step 1: Create pending tool parts for all tool calls
928
+ for (const toolCall of lastMessage.toolCalls) {
929
+ const toolArgs = JSON.parse(toolCall.function.arguments);
930
+ this.contextManager.addToolCallPending(toolCall.id, toolCall.function.name, toolArgs);
931
+ }
932
+ // Step 2: Transition all to running state
933
+ const startTime = Date.now();
934
+ for (const toolCall of lastMessage.toolCalls) {
935
+ const runningState = {
936
+ input: JSON.parse(toolCall.function.arguments),
937
+ startedAt: startTime,
938
+ status: 'running',
939
+ };
940
+ this.contextManager.updateToolCallState(toolCall.id, runningState);
941
+ }
942
+ // Step 3: Execute all tool calls in parallel (pass taskId for subagent billing)
943
+ const parallelResults = await Promise.allSettled(lastMessage.toolCalls.map((toolCall) => this.executeToolCallParallel(toolCall, taskId)));
944
+ // Step 4: Update tool part states with results (in order)
945
+ const endTime = Date.now();
946
+ // eslint-disable-next-line unicorn/no-for-loop -- Need index to access both parallelResults and toolCalls in parallel
947
+ for (let i = 0; i < parallelResults.length; i++) {
948
+ const settledResult = parallelResults[i];
949
+ const toolCall = lastMessage.toolCalls[i];
950
+ const toolArgs = JSON.parse(toolCall.function.arguments);
951
+ if (settledResult.status === 'fulfilled') {
952
+ const result = settledResult.value;
953
+ if (result.toolResult?.success) {
954
+ // Transition to completed state
955
+ const completedState = {
956
+ attachments: result.toolResult.processedOutput.attachments,
957
+ input: toolArgs,
958
+ metadata: result.toolResult.metadata,
959
+ output: result.toolResult.processedOutput.content,
960
+ status: 'completed',
961
+ time: { end: endTime, start: startTime },
962
+ title: result.toolResult.processedOutput.title,
963
+ };
964
+ this.contextManager.updateToolCallState(toolCall.id, completedState);
965
+ }
966
+ else {
967
+ // Transition to error state
968
+ const errorState = {
969
+ error: result.toolResult?.processedOutput.content ?? result.error ?? 'Unknown error',
970
+ input: toolArgs,
971
+ status: 'error',
972
+ time: { end: endTime, start: startTime },
973
+ };
974
+ this.contextManager.updateToolCallState(toolCall.id, errorState);
975
+ }
976
+ // Also add to context as tool result message (for backward compatibility)
977
+ // eslint-disable-next-line no-await-in-loop -- Must add results in order
978
+ await this.addParallelToolResultToContext(result);
979
+ }
980
+ else {
981
+ // Handle unexpected Promise rejection
982
+ const errorMessage = getErrorMessage(settledResult.reason);
983
+ this.logger.error('Unexpected error in parallel tool execution', {
984
+ error: settledResult.reason,
985
+ toolCallId: toolCall.id,
986
+ toolName: toolCall.function.name,
987
+ });
988
+ // Transition to error state
989
+ const errorState = {
990
+ error: errorMessage,
991
+ input: toolArgs,
992
+ status: 'error',
993
+ time: { end: endTime, start: startTime },
994
+ };
995
+ this.contextManager.updateToolCallState(toolCall.id, errorState);
996
+ // Also add to context as tool result message (for backward compatibility)
997
+ // eslint-disable-next-line no-await-in-loop -- Must add results in order
998
+ await this.contextManager.addToolResult(toolCall.id, toolCall.function.name, `Error: ${errorMessage}`, {
999
+ errorType: 'UNEXPECTED_ERROR',
1000
+ success: false,
1001
+ });
1002
+ }
1003
+ }
1004
+ }
1005
+ /**
1006
+ * Validate LLM configuration using Zod schema.
1007
+ *
1008
+ * Performs validation against the centralized LLM config schema.
1009
+ * Logs warnings for invalid configurations but doesn't throw to maintain
1010
+ * backward compatibility with existing code.
1011
+ *
1012
+ * @param model - Model name to validate
1013
+ * @param maxInputTokens - Optional max input tokens to validate
1014
+ */
1015
+ validateConfig(model, maxInputTokens) {
1016
+ const result = safeParseLLMConfig({
1017
+ maxInputTokens,
1018
+ maxIterations: this.config?.maxIterations ?? 50,
1019
+ model,
1020
+ provider: this.providerType,
1021
+ });
1022
+ if (!result.success) {
1023
+ // Log validation warnings but don't throw (backward compatibility)
1024
+ const issues = result.error.issues.map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ');
1025
+ this.logger.warn('LLM config validation warning', {
1026
+ issues,
1027
+ model,
1028
+ provider: this.providerType,
1029
+ });
1030
+ // Also check if model is valid in registry
1031
+ if (!isValidProviderModel(this.providerType, model)) {
1032
+ this.logger.info('Model not in registry, using fallback defaults', {
1033
+ model,
1034
+ provider: this.providerType,
1035
+ });
1036
+ }
1037
+ }
1038
+ }
1039
+ }