@machina.ai/cell-cli-core 1.22.5-rc1 → 1.25.0-rc2

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 (732) hide show
  1. package/dist/docs/AFTER_MERGE_PROMPT.md +26 -0
  2. package/dist/docs/CHANGES.md +124 -0
  3. package/dist/docs/api-proxy.md +27 -0
  4. package/dist/docs/architecture.md +80 -0
  5. package/dist/docs/assets/connected_devtools.png +0 -0
  6. package/dist/docs/assets/gemini-screenshot.png +0 -0
  7. package/dist/docs/assets/monitoring-dashboard-logs.png +0 -0
  8. package/dist/docs/assets/monitoring-dashboard-metrics.png +0 -0
  9. package/dist/docs/assets/monitoring-dashboard-overview.png +0 -0
  10. package/dist/docs/assets/release_patch.png +0 -0
  11. package/dist/docs/assets/theme-ansi-light.png +0 -0
  12. package/dist/docs/assets/theme-ansi.png +0 -0
  13. package/dist/docs/assets/theme-atom-one.png +0 -0
  14. package/dist/docs/assets/theme-ayu-light.png +0 -0
  15. package/dist/docs/assets/theme-ayu.png +0 -0
  16. package/dist/docs/assets/theme-custom.png +0 -0
  17. package/dist/docs/assets/theme-default-light.png +0 -0
  18. package/dist/docs/assets/theme-default.png +0 -0
  19. package/dist/docs/assets/theme-dracula.png +0 -0
  20. package/dist/docs/assets/theme-github-light.png +0 -0
  21. package/dist/docs/assets/theme-github.png +0 -0
  22. package/dist/docs/assets/theme-google-light.png +0 -0
  23. package/dist/docs/assets/theme-xcode-light.png +0 -0
  24. package/dist/docs/changelogs/index.md +612 -0
  25. package/dist/docs/changelogs/latest.md +153 -0
  26. package/dist/docs/changelogs/preview.md +131 -0
  27. package/dist/docs/changelogs/releases.md +1162 -0
  28. package/dist/docs/cli/authentication.md +3 -0
  29. package/dist/docs/cli/checkpointing.md +94 -0
  30. package/dist/docs/cli/commands.md +357 -0
  31. package/dist/docs/cli/custom-commands.md +315 -0
  32. package/dist/docs/cli/enterprise.md +564 -0
  33. package/dist/docs/cli/gemini-ignore.md +71 -0
  34. package/dist/docs/cli/gemini-md.md +109 -0
  35. package/dist/docs/cli/generation-settings.md +210 -0
  36. package/dist/docs/cli/headless.md +388 -0
  37. package/dist/docs/cli/index.md +63 -0
  38. package/dist/docs/cli/keyboard-shortcuts.md +136 -0
  39. package/dist/docs/cli/model-routing.md +37 -0
  40. package/dist/docs/cli/model.md +62 -0
  41. package/dist/docs/cli/sandbox.md +171 -0
  42. package/dist/docs/cli/session-management.md +158 -0
  43. package/dist/docs/cli/settings.md +148 -0
  44. package/dist/docs/cli/skills.md +188 -0
  45. package/dist/docs/cli/system-prompt.md +94 -0
  46. package/dist/docs/cli/telemetry.md +813 -0
  47. package/dist/docs/cli/themes.md +237 -0
  48. package/dist/docs/cli/token-caching.md +20 -0
  49. package/dist/docs/cli/trusted-folders.md +95 -0
  50. package/dist/docs/cli/tutorials/skills-getting-started.md +124 -0
  51. package/dist/docs/cli/tutorials.md +87 -0
  52. package/dist/docs/cli/uninstall.md +47 -0
  53. package/dist/docs/core/index.md +101 -0
  54. package/dist/docs/core/memport.md +246 -0
  55. package/dist/docs/core/policy-engine.md +268 -0
  56. package/dist/docs/core/tools-api.md +131 -0
  57. package/dist/docs/examples/proxy-script.md +83 -0
  58. package/dist/docs/extensions/extension-releasing.md +183 -0
  59. package/dist/docs/extensions/getting-started-extensions.md +244 -0
  60. package/dist/docs/extensions/index.md +343 -0
  61. package/dist/docs/faq.md +153 -0
  62. package/dist/docs/get-started/authentication.md +321 -0
  63. package/dist/docs/get-started/configuration-v1.md +890 -0
  64. package/dist/docs/get-started/configuration.md +1643 -0
  65. package/dist/docs/get-started/examples.md +218 -0
  66. package/dist/docs/get-started/gemini-3.md +101 -0
  67. package/dist/docs/get-started/index.md +71 -0
  68. package/dist/docs/get-started/installation.md +141 -0
  69. package/dist/docs/hooks/best-practices.md +856 -0
  70. package/dist/docs/hooks/index.md +723 -0
  71. package/dist/docs/hooks/reference.md +178 -0
  72. package/dist/docs/hooks/writing-hooks.md +1044 -0
  73. package/dist/docs/ide-integration/ide-companion-spec.md +267 -0
  74. package/dist/docs/ide-integration/index.md +201 -0
  75. package/dist/docs/index.md +147 -0
  76. package/dist/docs/integration-tests.md +211 -0
  77. package/dist/docs/issue-and-pr-automation.md +134 -0
  78. package/dist/docs/local-development.md +128 -0
  79. package/dist/docs/mcp_integration.md +160 -0
  80. package/dist/docs/mermaid/context.mmd +103 -0
  81. package/dist/docs/mermaid/render-path.mmd +64 -0
  82. package/dist/docs/npm.md +62 -0
  83. package/dist/docs/quota-and-pricing.md +158 -0
  84. package/dist/docs/release-confidence.md +164 -0
  85. package/dist/docs/releases.md +540 -0
  86. package/dist/docs/sidebar.json +301 -0
  87. package/dist/docs/tools/file-system.md +217 -0
  88. package/dist/docs/tools/index.md +95 -0
  89. package/dist/docs/tools/mcp-server.md +1045 -0
  90. package/dist/docs/tools/memory.md +54 -0
  91. package/dist/docs/tools/shell.md +260 -0
  92. package/dist/docs/tools/todos.md +56 -0
  93. package/dist/docs/tools/web-fetch.md +59 -0
  94. package/dist/docs/tools/web-search.md +42 -0
  95. package/dist/docs/tos-privacy.md +96 -0
  96. package/dist/docs/troubleshooting.md +162 -0
  97. package/dist/package.json +7 -4
  98. package/dist/src/agents/a2a-client-manager.d.ts +82 -0
  99. package/dist/src/agents/a2a-client-manager.js +295 -0
  100. package/dist/src/agents/a2a-client-manager.js.map +1 -0
  101. package/dist/src/agents/a2a-client-manager.test.js +281 -0
  102. package/dist/src/agents/a2a-client-manager.test.js.map +1 -0
  103. package/dist/src/agents/a2aUtils.d.ts +29 -0
  104. package/dist/src/agents/a2aUtils.js +113 -0
  105. package/dist/src/agents/a2aUtils.js.map +1 -0
  106. package/dist/src/agents/a2aUtils.test.js +147 -0
  107. package/dist/src/agents/a2aUtils.test.js.map +1 -0
  108. package/dist/src/agents/agentLoader.d.ts +68 -0
  109. package/dist/src/agents/agentLoader.js +255 -0
  110. package/dist/src/agents/agentLoader.js.map +1 -0
  111. package/dist/src/agents/agentLoader.test.js +307 -0
  112. package/dist/src/agents/agentLoader.test.js.map +1 -0
  113. package/dist/src/agents/cli-help-agent.d.ts +24 -0
  114. package/dist/src/agents/cli-help-agent.js +85 -0
  115. package/dist/src/agents/cli-help-agent.js.map +1 -0
  116. package/dist/src/agents/cli-help-agent.test.js +65 -0
  117. package/dist/src/agents/cli-help-agent.test.js.map +1 -0
  118. package/dist/src/agents/codebase-investigator.d.ts +2 -2
  119. package/dist/src/agents/codebase-investigator.js +14 -8
  120. package/dist/src/agents/codebase-investigator.js.map +1 -1
  121. package/dist/src/agents/delegate-to-agent-tool.d.ts +2 -2
  122. package/dist/src/agents/delegate-to-agent-tool.js +25 -14
  123. package/dist/src/agents/delegate-to-agent-tool.js.map +1 -1
  124. package/dist/src/agents/delegate-to-agent-tool.test.js +101 -21
  125. package/dist/src/agents/delegate-to-agent-tool.test.js.map +1 -1
  126. package/dist/src/agents/{executor.d.ts → local-executor.d.ts} +5 -11
  127. package/dist/src/agents/{executor.js → local-executor.js} +123 -62
  128. package/dist/src/agents/local-executor.js.map +1 -0
  129. package/dist/src/agents/local-executor.test.d.ts +6 -0
  130. package/dist/src/agents/{executor.test.js → local-executor.test.js} +136 -58
  131. package/dist/src/agents/local-executor.test.js.map +1 -0
  132. package/dist/src/agents/{invocation.d.ts → local-invocation.d.ts} +6 -7
  133. package/dist/src/agents/{invocation.js → local-invocation.js} +9 -10
  134. package/dist/src/agents/local-invocation.js.map +1 -0
  135. package/dist/src/agents/local-invocation.test.d.ts +6 -0
  136. package/dist/src/agents/{invocation.test.js → local-invocation.test.js} +29 -20
  137. package/dist/src/agents/local-invocation.test.js.map +1 -0
  138. package/dist/src/agents/registry.d.ts +22 -1
  139. package/dist/src/agents/registry.js +192 -35
  140. package/dist/src/agents/registry.js.map +1 -1
  141. package/dist/src/agents/registry.test.js +407 -33
  142. package/dist/src/agents/registry.test.js.map +1 -1
  143. package/dist/src/agents/remote-invocation.d.ts +35 -0
  144. package/dist/src/agents/remote-invocation.js +126 -0
  145. package/dist/src/agents/remote-invocation.js.map +1 -0
  146. package/dist/src/agents/remote-invocation.test.d.ts +6 -0
  147. package/dist/src/agents/remote-invocation.test.js +201 -0
  148. package/dist/src/agents/remote-invocation.test.js.map +1 -0
  149. package/dist/src/agents/subagent-tool-wrapper.d.ts +2 -2
  150. package/dist/src/agents/subagent-tool-wrapper.js +11 -6
  151. package/dist/src/agents/subagent-tool-wrapper.js.map +1 -1
  152. package/dist/src/agents/subagent-tool-wrapper.test.js +33 -19
  153. package/dist/src/agents/subagent-tool-wrapper.test.js.map +1 -1
  154. package/dist/src/agents/types.d.ts +21 -15
  155. package/dist/src/agents/types.js.map +1 -1
  156. package/dist/src/availability/fallbackIntegration.test.d.ts +6 -0
  157. package/dist/src/availability/fallbackIntegration.test.js +58 -0
  158. package/dist/src/availability/fallbackIntegration.test.js.map +1 -0
  159. package/dist/src/availability/modelAvailabilityService.d.ts +2 -1
  160. package/dist/src/availability/policyHelpers.d.ts +4 -3
  161. package/dist/src/availability/policyHelpers.js +13 -22
  162. package/dist/src/availability/policyHelpers.js.map +1 -1
  163. package/dist/src/availability/policyHelpers.test.js +28 -18
  164. package/dist/src/availability/policyHelpers.test.js.map +1 -1
  165. package/dist/src/code_assist/experiments/experiments.d.ts +1 -1
  166. package/dist/src/code_assist/experiments/experiments.js +21 -0
  167. package/dist/src/code_assist/experiments/experiments.js.map +1 -1
  168. package/dist/src/code_assist/experiments/experiments_local.test.d.ts +6 -0
  169. package/dist/src/code_assist/experiments/experiments_local.test.js +110 -0
  170. package/dist/src/code_assist/experiments/experiments_local.test.js.map +1 -0
  171. package/dist/src/code_assist/oauth-credential-storage.js +3 -4
  172. package/dist/src/code_assist/oauth-credential-storage.js.map +1 -1
  173. package/dist/src/code_assist/oauth2.js +32 -2
  174. package/dist/src/code_assist/oauth2.js.map +1 -1
  175. package/dist/src/code_assist/oauth2.test.js +111 -16
  176. package/dist/src/code_assist/oauth2.test.js.map +1 -1
  177. package/dist/src/code_assist/server.d.ts +9 -1
  178. package/dist/src/code_assist/server.js +74 -11
  179. package/dist/src/code_assist/server.js.map +1 -1
  180. package/dist/src/code_assist/server.test.js +199 -27
  181. package/dist/src/code_assist/server.test.js.map +1 -1
  182. package/dist/src/code_assist/setup.js +6 -4
  183. package/dist/src/code_assist/setup.js.map +1 -1
  184. package/dist/src/code_assist/setup.test.js +63 -0
  185. package/dist/src/code_assist/setup.test.js.map +1 -1
  186. package/dist/src/code_assist/telemetry.d.ts +14 -0
  187. package/dist/src/code_assist/telemetry.js +157 -0
  188. package/dist/src/code_assist/telemetry.js.map +1 -0
  189. package/dist/src/code_assist/telemetry.test.d.ts +6 -0
  190. package/dist/src/code_assist/telemetry.test.js +301 -0
  191. package/dist/src/code_assist/telemetry.test.js.map +1 -0
  192. package/dist/src/code_assist/types.d.ts +77 -1
  193. package/dist/src/code_assist/types.js +28 -0
  194. package/dist/src/code_assist/types.js.map +1 -1
  195. package/dist/src/commands/memory.d.ts +11 -0
  196. package/dist/src/commands/memory.js +80 -0
  197. package/dist/src/commands/memory.js.map +1 -0
  198. package/dist/src/commands/memory.test.d.ts +6 -0
  199. package/dist/src/commands/memory.test.js +155 -0
  200. package/dist/src/commands/memory.test.js.map +1 -0
  201. package/dist/src/config/config.d.ts +120 -26
  202. package/dist/src/config/config.js +241 -120
  203. package/dist/src/config/config.js.map +1 -1
  204. package/dist/src/config/config.test.js +215 -43
  205. package/dist/src/config/config.test.js.map +1 -1
  206. package/dist/src/config/flashFallback.test.js +11 -35
  207. package/dist/src/config/flashFallback.test.js.map +1 -1
  208. package/dist/src/config/models.d.ts +8 -9
  209. package/dist/src/config/models.js +18 -15
  210. package/dist/src/config/models.js.map +1 -1
  211. package/dist/src/config/models.test.js +52 -16
  212. package/dist/src/config/models.test.js.map +1 -1
  213. package/dist/src/config/storage.d.ts +5 -0
  214. package/dist/src/config/storage.js +17 -2
  215. package/dist/src/config/storage.js.map +1 -1
  216. package/dist/src/config/storage.test.js +16 -0
  217. package/dist/src/config/storage.test.js.map +1 -1
  218. package/dist/src/confirmation-bus/message-bus.js +2 -1
  219. package/dist/src/confirmation-bus/message-bus.js.map +1 -1
  220. package/dist/src/core/baseLlmClient.js +44 -43
  221. package/dist/src/core/baseLlmClient.js.map +1 -1
  222. package/dist/src/core/baseLlmClient.test.js +12 -19
  223. package/dist/src/core/baseLlmClient.test.js.map +1 -1
  224. package/dist/src/core/client.d.ts +7 -1
  225. package/dist/src/core/client.js +245 -114
  226. package/dist/src/core/client.js.map +1 -1
  227. package/dist/src/core/client.test.js +277 -74
  228. package/dist/src/core/client.test.js.map +1 -1
  229. package/dist/src/core/clientHookTriggers.js +2 -2
  230. package/dist/src/core/clientHookTriggers.js.map +1 -1
  231. package/dist/src/core/contentGenerator.js +3 -3
  232. package/dist/src/core/contentGenerator.js.map +1 -1
  233. package/dist/src/core/contentGenerator.test.js +1 -7
  234. package/dist/src/core/contentGenerator.test.js.map +1 -1
  235. package/dist/src/core/coreToolHookTriggers.d.ts +9 -5
  236. package/dist/src/core/coreToolHookTriggers.js +119 -21
  237. package/dist/src/core/coreToolHookTriggers.js.map +1 -1
  238. package/dist/src/core/coreToolHookTriggers.test.d.ts +6 -0
  239. package/dist/src/core/coreToolHookTriggers.test.js +191 -0
  240. package/dist/src/core/coreToolHookTriggers.test.js.map +1 -0
  241. package/dist/src/core/coreToolScheduler.d.ts +7 -93
  242. package/dist/src/core/coreToolScheduler.js +133 -369
  243. package/dist/src/core/coreToolScheduler.js.map +1 -1
  244. package/dist/src/core/coreToolScheduler.test.js +252 -394
  245. package/dist/src/core/coreToolScheduler.test.js.map +1 -1
  246. package/dist/src/core/geminiChat.d.ts +26 -1
  247. package/dist/src/core/geminiChat.js +112 -79
  248. package/dist/src/core/geminiChat.js.map +1 -1
  249. package/dist/src/core/geminiChat.test.js +125 -92
  250. package/dist/src/core/geminiChat.test.js.map +1 -1
  251. package/dist/src/core/geminiChatHookTriggers.d.ts +8 -4
  252. package/dist/src/core/geminiChatHookTriggers.js +34 -12
  253. package/dist/src/core/geminiChatHookTriggers.js.map +1 -1
  254. package/dist/src/core/geminiChatHookTriggers.test.d.ts +6 -0
  255. package/dist/src/core/geminiChatHookTriggers.test.js +153 -0
  256. package/dist/src/core/geminiChatHookTriggers.test.js.map +1 -0
  257. package/dist/src/core/geminiChat_network_retry.test.js +4 -6
  258. package/dist/src/core/geminiChat_network_retry.test.js.map +1 -1
  259. package/dist/src/core/loggingContentGenerator.js +19 -2
  260. package/dist/src/core/loggingContentGenerator.js.map +1 -1
  261. package/dist/src/core/loggingContentGenerator.test.js +30 -0
  262. package/dist/src/core/loggingContentGenerator.test.js.map +1 -1
  263. package/dist/src/core/nonInteractiveToolExecutor.test.js +4 -4
  264. package/dist/src/core/nonInteractiveToolExecutor.test.js.map +1 -1
  265. package/dist/src/core/prompts.js +37 -13
  266. package/dist/src/core/prompts.js.map +1 -1
  267. package/dist/src/core/prompts.test.js +47 -3
  268. package/dist/src/core/prompts.test.js.map +1 -1
  269. package/dist/src/core/tokenLimits.js +6 -12
  270. package/dist/src/core/tokenLimits.js.map +1 -1
  271. package/dist/src/core/tokenLimits.test.js +8 -4
  272. package/dist/src/core/tokenLimits.test.js.map +1 -1
  273. package/dist/src/core/turn.d.ts +21 -22
  274. package/dist/src/core/turn.js +31 -21
  275. package/dist/src/core/turn.js.map +1 -1
  276. package/dist/src/core/turn.test.js +79 -5
  277. package/dist/src/core/turn.test.js.map +1 -1
  278. package/dist/src/fallback/handler.js +1 -7
  279. package/dist/src/fallback/handler.js.map +1 -1
  280. package/dist/src/fallback/handler.test.js +10 -29
  281. package/dist/src/fallback/handler.test.js.map +1 -1
  282. package/dist/src/generated/git-commit.d.ts +3 -3
  283. package/dist/src/generated/git-commit.js +3 -3
  284. package/dist/src/hooks/hookAggregator.js +7 -0
  285. package/dist/src/hooks/hookAggregator.js.map +1 -1
  286. package/dist/src/hooks/hookEventHandler.d.ts +9 -5
  287. package/dist/src/hooks/hookEventHandler.js +61 -15
  288. package/dist/src/hooks/hookEventHandler.js.map +1 -1
  289. package/dist/src/hooks/hookEventHandler.test.js +223 -8
  290. package/dist/src/hooks/hookEventHandler.test.js.map +1 -1
  291. package/dist/src/hooks/hookPlanner.d.ts +1 -5
  292. package/dist/src/hooks/hookPlanner.js +2 -7
  293. package/dist/src/hooks/hookPlanner.js.map +1 -1
  294. package/dist/src/hooks/hookPlanner.test.js +62 -2
  295. package/dist/src/hooks/hookPlanner.test.js.map +1 -1
  296. package/dist/src/hooks/hookRegistry.d.ts +6 -11
  297. package/dist/src/hooks/hookRegistry.js +41 -14
  298. package/dist/src/hooks/hookRegistry.js.map +1 -1
  299. package/dist/src/hooks/hookRegistry.test.js +166 -2
  300. package/dist/src/hooks/hookRegistry.test.js.map +1 -1
  301. package/dist/src/hooks/hookRunner.d.ts +5 -3
  302. package/dist/src/hooks/hookRunner.js +57 -17
  303. package/dist/src/hooks/hookRunner.js.map +1 -1
  304. package/dist/src/hooks/hookRunner.test.js +172 -35
  305. package/dist/src/hooks/hookRunner.test.js.map +1 -1
  306. package/dist/src/hooks/hookSystem.d.ts +12 -0
  307. package/dist/src/hooks/hookSystem.js +39 -1
  308. package/dist/src/hooks/hookSystem.js.map +1 -1
  309. package/dist/src/hooks/hookTranslator.js +2 -1
  310. package/dist/src/hooks/hookTranslator.js.map +1 -1
  311. package/dist/src/hooks/index.d.ts +1 -2
  312. package/dist/src/hooks/index.js +1 -3
  313. package/dist/src/hooks/index.js.map +1 -1
  314. package/dist/src/hooks/trustedHooks.d.ts +28 -0
  315. package/dist/src/hooks/trustedHooks.js +90 -0
  316. package/dist/src/hooks/trustedHooks.js.map +1 -0
  317. package/dist/src/hooks/trustedHooks.test.d.ts +6 -0
  318. package/dist/src/hooks/trustedHooks.test.js +154 -0
  319. package/dist/src/hooks/trustedHooks.test.js.map +1 -0
  320. package/dist/src/hooks/types.d.ts +41 -9
  321. package/dist/src/hooks/types.js +31 -41
  322. package/dist/src/hooks/types.js.map +1 -1
  323. package/dist/src/hooks/types.test.js +9 -52
  324. package/dist/src/hooks/types.test.js.map +1 -1
  325. package/dist/src/ide/detect-ide.d.ts +4 -0
  326. package/dist/src/ide/detect-ide.js +7 -2
  327. package/dist/src/ide/detect-ide.js.map +1 -1
  328. package/dist/src/ide/detect-ide.test.js +10 -0
  329. package/dist/src/ide/detect-ide.test.js.map +1 -1
  330. package/dist/src/ide/ide-client.js +4 -1
  331. package/dist/src/ide/ide-client.js.map +1 -1
  332. package/dist/src/ide/ide-installer.js +2 -2
  333. package/dist/src/ide/ide-installer.js.map +1 -1
  334. package/dist/src/ide/ide-installer.test.js +11 -2
  335. package/dist/src/ide/ide-installer.test.js.map +1 -1
  336. package/dist/src/index.d.ts +16 -2
  337. package/dist/src/index.js +18 -3
  338. package/dist/src/index.js.map +1 -1
  339. package/dist/src/mcp/oauth-provider.js +7 -3
  340. package/dist/src/mcp/oauth-provider.js.map +1 -1
  341. package/dist/src/mcp/oauth-provider.test.js +4 -1
  342. package/dist/src/mcp/oauth-provider.test.js.map +1 -1
  343. package/dist/src/mcp/oauth-utils.d.ts +8 -1
  344. package/dist/src/mcp/oauth-utils.js +31 -2
  345. package/dist/src/mcp/oauth-utils.js.map +1 -1
  346. package/dist/src/mcp/oauth-utils.test.js +42 -0
  347. package/dist/src/mcp/oauth-utils.test.js.map +1 -1
  348. package/dist/src/mcp/token-storage/file-token-storage.js +2 -2
  349. package/dist/src/mcp/token-storage/file-token-storage.js.map +1 -1
  350. package/dist/src/mcp/token-storage/keychain-token-storage.js +1 -1
  351. package/dist/src/mcp/token-storage/keychain-token-storage.js.map +1 -1
  352. package/dist/src/policy/config.js +62 -23
  353. package/dist/src/policy/config.js.map +1 -1
  354. package/dist/src/policy/config.test.js +24 -2
  355. package/dist/src/policy/config.test.js.map +1 -1
  356. package/dist/src/policy/persistence.test.js +1 -1
  357. package/dist/src/policy/persistence.test.js.map +1 -1
  358. package/dist/src/policy/policies/agent.toml +1 -1
  359. package/dist/src/policy/policies/write.toml +5 -0
  360. package/dist/src/policy/policies/yolo.toml +1 -0
  361. package/dist/src/policy/policy-engine.d.ts +4 -0
  362. package/dist/src/policy/policy-engine.js +137 -53
  363. package/dist/src/policy/policy-engine.js.map +1 -1
  364. package/dist/src/policy/policy-engine.test.js +289 -1
  365. package/dist/src/policy/policy-engine.test.js.map +1 -1
  366. package/dist/src/policy/policy-updater.test.js +5 -5
  367. package/dist/src/policy/policy-updater.test.js.map +1 -1
  368. package/dist/src/policy/shell-safety.test.js +371 -8
  369. package/dist/src/policy/shell-safety.test.js.map +1 -1
  370. package/dist/src/policy/toml-loader.d.ts +0 -8
  371. package/dist/src/policy/toml-loader.js +13 -45
  372. package/dist/src/policy/toml-loader.js.map +1 -1
  373. package/dist/src/policy/toml-loader.test.js +13 -0
  374. package/dist/src/policy/toml-loader.test.js.map +1 -1
  375. package/dist/src/policy/types.d.ts +10 -0
  376. package/dist/src/policy/utils.d.ts +21 -0
  377. package/dist/src/policy/utils.js +45 -0
  378. package/dist/src/policy/utils.js.map +1 -0
  379. package/dist/src/policy/utils.test.d.ts +6 -0
  380. package/dist/src/policy/utils.test.js +92 -0
  381. package/dist/src/policy/utils.test.js.map +1 -0
  382. package/dist/src/routing/routingStrategy.d.ts +2 -0
  383. package/dist/src/routing/strategies/classifierStrategy.js +1 -1
  384. package/dist/src/routing/strategies/classifierStrategy.js.map +1 -1
  385. package/dist/src/routing/strategies/classifierStrategy.test.js +16 -0
  386. package/dist/src/routing/strategies/classifierStrategy.test.js.map +1 -1
  387. package/dist/src/routing/strategies/compositeStrategy.js +4 -2
  388. package/dist/src/routing/strategies/compositeStrategy.js.map +1 -1
  389. package/dist/src/routing/strategies/compositeStrategy.test.js +11 -10
  390. package/dist/src/routing/strategies/compositeStrategy.test.js.map +1 -1
  391. package/dist/src/routing/strategies/fallbackStrategy.d.ts +1 -1
  392. package/dist/src/routing/strategies/fallbackStrategy.js +2 -5
  393. package/dist/src/routing/strategies/fallbackStrategy.js.map +1 -1
  394. package/dist/src/routing/strategies/fallbackStrategy.test.js +13 -6
  395. package/dist/src/routing/strategies/fallbackStrategy.test.js.map +1 -1
  396. package/dist/src/routing/strategies/overrideStrategy.d.ts +1 -1
  397. package/dist/src/routing/strategies/overrideStrategy.js +6 -6
  398. package/dist/src/routing/strategies/overrideStrategy.js.map +1 -1
  399. package/dist/src/routing/strategies/overrideStrategy.test.js +14 -0
  400. package/dist/src/routing/strategies/overrideStrategy.test.js.map +1 -1
  401. package/dist/src/scheduler/tool-executor.d.ts +22 -0
  402. package/dist/src/scheduler/tool-executor.js +198 -0
  403. package/dist/src/scheduler/tool-executor.js.map +1 -0
  404. package/dist/src/scheduler/tool-executor.test.d.ts +6 -0
  405. package/dist/src/scheduler/tool-executor.test.js +231 -0
  406. package/dist/src/scheduler/tool-executor.test.js.map +1 -0
  407. package/dist/src/scheduler/tool-modifier.d.ts +23 -0
  408. package/dist/src/scheduler/tool-modifier.js +50 -0
  409. package/dist/src/scheduler/tool-modifier.js.map +1 -0
  410. package/dist/src/scheduler/tool-modifier.test.d.ts +6 -0
  411. package/dist/src/scheduler/tool-modifier.test.js +159 -0
  412. package/dist/src/scheduler/tool-modifier.test.js.map +1 -0
  413. package/dist/src/scheduler/types.d.ts +95 -0
  414. package/dist/src/scheduler/types.js +7 -0
  415. package/dist/src/scheduler/types.js.map +1 -0
  416. package/dist/src/services/chatCompressionService.js +3 -10
  417. package/dist/src/services/chatCompressionService.js.map +1 -1
  418. package/dist/src/services/chatCompressionService.test.js +1 -0
  419. package/dist/src/services/chatCompressionService.test.js.map +1 -1
  420. package/dist/src/services/chatRecordingService.d.ts +7 -1
  421. package/dist/src/services/chatRecordingService.js +20 -2
  422. package/dist/src/services/chatRecordingService.js.map +1 -1
  423. package/dist/src/services/chatRecordingService.test.js +43 -0
  424. package/dist/src/services/chatRecordingService.test.js.map +1 -1
  425. package/dist/src/services/contextManager.d.ts +5 -11
  426. package/dist/src/services/contextManager.js +20 -17
  427. package/dist/src/services/contextManager.js.map +1 -1
  428. package/dist/src/services/contextManager.test.js +40 -41
  429. package/dist/src/services/contextManager.test.js.map +1 -1
  430. package/dist/src/services/environmentSanitization.d.ts +15 -0
  431. package/dist/src/services/environmentSanitization.js +142 -0
  432. package/dist/src/services/environmentSanitization.js.map +1 -0
  433. package/dist/src/services/environmentSanitization.test.d.ts +6 -0
  434. package/dist/src/services/environmentSanitization.test.js +284 -0
  435. package/dist/src/services/environmentSanitization.test.js.map +1 -0
  436. package/dist/src/services/gitService.js +10 -1
  437. package/dist/src/services/gitService.js.map +1 -1
  438. package/dist/src/services/gitService.test.js +28 -2
  439. package/dist/src/services/gitService.test.js.map +1 -1
  440. package/dist/src/services/loopDetectionService.js +2 -1
  441. package/dist/src/services/loopDetectionService.js.map +1 -1
  442. package/dist/src/services/loopDetectionService.test.js +14 -8
  443. package/dist/src/services/loopDetectionService.test.js.map +1 -1
  444. package/dist/src/services/modelConfig.integration.test.js +3 -3
  445. package/dist/src/services/modelConfig.integration.test.js.map +1 -1
  446. package/dist/src/services/modelConfigService.d.ts +38 -4
  447. package/dist/src/services/modelConfigService.js +135 -76
  448. package/dist/src/services/modelConfigService.js.map +1 -1
  449. package/dist/src/services/modelConfigService.test.js +116 -0
  450. package/dist/src/services/modelConfigService.test.js.map +1 -1
  451. package/dist/src/services/shellExecutionService.d.ts +2 -0
  452. package/dist/src/services/shellExecutionService.js +6 -50
  453. package/dist/src/services/shellExecutionService.js.map +1 -1
  454. package/dist/src/services/shellExecutionService.test.js +68 -4
  455. package/dist/src/services/shellExecutionService.test.js.map +1 -1
  456. package/dist/src/skills/skillLoader.d.ts +31 -0
  457. package/dist/src/skills/skillLoader.js +77 -0
  458. package/dist/src/skills/skillLoader.js.map +1 -0
  459. package/dist/src/skills/skillLoader.test.d.ts +6 -0
  460. package/dist/src/skills/skillLoader.test.js +75 -0
  461. package/dist/src/skills/skillLoader.test.js.map +1 -0
  462. package/dist/src/skills/skillManager.d.ts +69 -0
  463. package/dist/src/skills/skillManager.js +127 -0
  464. package/dist/src/skills/skillManager.js.map +1 -0
  465. package/dist/src/skills/skillManager.test.d.ts +6 -0
  466. package/dist/src/skills/skillManager.test.js +210 -0
  467. package/dist/src/skills/skillManager.test.js.map +1 -0
  468. package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +18 -9
  469. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +234 -160
  470. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -1
  471. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +162 -32
  472. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +1 -1
  473. package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +11 -3
  474. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +24 -5
  475. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -1
  476. package/dist/src/telemetry/loggers.d.ts +3 -3
  477. package/dist/src/telemetry/loggers.js +6 -5
  478. package/dist/src/telemetry/loggers.js.map +1 -1
  479. package/dist/src/telemetry/loggers.test.circular.js +1 -0
  480. package/dist/src/telemetry/loggers.test.circular.js.map +1 -1
  481. package/dist/src/telemetry/loggers.test.js +51 -10
  482. package/dist/src/telemetry/loggers.test.js.map +1 -1
  483. package/dist/src/telemetry/sdk.js +5 -6
  484. package/dist/src/telemetry/sdk.js.map +1 -1
  485. package/dist/src/telemetry/types.d.ts +7 -7
  486. package/dist/src/telemetry/types.js +14 -12
  487. package/dist/src/telemetry/types.js.map +1 -1
  488. package/dist/src/test-utils/mock-message-bus.d.ts +1 -0
  489. package/dist/src/test-utils/mock-message-bus.js +29 -0
  490. package/dist/src/test-utils/mock-message-bus.js.map +1 -1
  491. package/dist/src/test-utils/mock-tool.d.ts +5 -3
  492. package/dist/src/test-utils/mock-tool.js +11 -10
  493. package/dist/src/test-utils/mock-tool.js.map +1 -1
  494. package/dist/src/tools/activate-skill.d.ts +27 -0
  495. package/dist/src/tools/activate-skill.js +133 -0
  496. package/dist/src/tools/activate-skill.js.map +1 -0
  497. package/dist/src/tools/activate-skill.test.d.ts +6 -0
  498. package/dist/src/tools/activate-skill.test.js +113 -0
  499. package/dist/src/tools/activate-skill.test.js.map +1 -0
  500. package/dist/src/tools/confirmation-policy.test.js +3 -12
  501. package/dist/src/tools/confirmation-policy.test.js.map +1 -1
  502. package/dist/src/tools/edit.d.ts +27 -5
  503. package/dist/src/tools/edit.js +455 -136
  504. package/dist/src/tools/edit.js.map +1 -1
  505. package/dist/src/tools/edit.test.js +292 -526
  506. package/dist/src/tools/edit.test.js.map +1 -1
  507. package/dist/src/tools/get-internal-docs.d.ts +27 -0
  508. package/dist/src/tools/get-internal-docs.js +122 -0
  509. package/dist/src/tools/get-internal-docs.js.map +1 -0
  510. package/dist/src/tools/get-internal-docs.test.d.ts +6 -0
  511. package/dist/src/tools/get-internal-docs.test.js +57 -0
  512. package/dist/src/tools/get-internal-docs.test.js.map +1 -0
  513. package/dist/src/tools/glob.d.ts +2 -2
  514. package/dist/src/tools/glob.js +1 -1
  515. package/dist/src/tools/glob.js.map +1 -1
  516. package/dist/src/tools/glob.test.js +2 -1
  517. package/dist/src/tools/glob.test.js.map +1 -1
  518. package/dist/src/tools/grep.d.ts +2 -2
  519. package/dist/src/tools/grep.js +1 -1
  520. package/dist/src/tools/grep.js.map +1 -1
  521. package/dist/src/tools/grep.test.js +5 -4
  522. package/dist/src/tools/grep.test.js.map +1 -1
  523. package/dist/src/tools/ls.d.ts +2 -2
  524. package/dist/src/tools/ls.js +2 -2
  525. package/dist/src/tools/ls.js.map +1 -1
  526. package/dist/src/tools/ls.test.js +2 -1
  527. package/dist/src/tools/ls.test.js.map +1 -1
  528. package/dist/src/tools/mcp-client-manager.js +14 -7
  529. package/dist/src/tools/mcp-client-manager.js.map +1 -1
  530. package/dist/src/tools/mcp-client-manager.test.js +28 -0
  531. package/dist/src/tools/mcp-client-manager.test.js.map +1 -1
  532. package/dist/src/tools/mcp-client.d.ts +5 -4
  533. package/dist/src/tools/mcp-client.js +10 -8
  534. package/dist/src/tools/mcp-client.js.map +1 -1
  535. package/dist/src/tools/mcp-client.test.js +47 -42
  536. package/dist/src/tools/mcp-client.test.js.map +1 -1
  537. package/dist/src/tools/mcp-tool.d.ts +20 -5
  538. package/dist/src/tools/mcp-tool.js +8 -8
  539. package/dist/src/tools/mcp-tool.js.map +1 -1
  540. package/dist/src/tools/mcp-tool.test.js +11 -6
  541. package/dist/src/tools/mcp-tool.test.js.map +1 -1
  542. package/dist/src/tools/memoryTool.d.ts +3 -3
  543. package/dist/src/tools/memoryTool.js +2 -4
  544. package/dist/src/tools/memoryTool.js.map +1 -1
  545. package/dist/src/tools/memoryTool.test.js +5 -2
  546. package/dist/src/tools/memoryTool.test.js.map +1 -1
  547. package/dist/src/tools/message-bus-integration.test.js +10 -37
  548. package/dist/src/tools/message-bus-integration.test.js.map +1 -1
  549. package/dist/src/tools/read-file.d.ts +2 -2
  550. package/dist/src/tools/read-file.js +1 -1
  551. package/dist/src/tools/read-file.js.map +1 -1
  552. package/dist/src/tools/read-file.test.js +3 -2
  553. package/dist/src/tools/read-file.test.js.map +1 -1
  554. package/dist/src/tools/read-many-files.d.ts +2 -2
  555. package/dist/src/tools/read-many-files.js +2 -3
  556. package/dist/src/tools/read-many-files.js.map +1 -1
  557. package/dist/src/tools/read-many-files.test.js +3 -2
  558. package/dist/src/tools/read-many-files.test.js.map +1 -1
  559. package/dist/src/tools/ripGrep.d.ts +3 -2
  560. package/dist/src/tools/ripGrep.js +18 -7
  561. package/dist/src/tools/ripGrep.js.map +1 -1
  562. package/dist/src/tools/ripGrep.test.js +60 -4
  563. package/dist/src/tools/ripGrep.test.js.map +1 -1
  564. package/dist/src/tools/shell.d.ts +3 -6
  565. package/dist/src/tools/shell.js +21 -49
  566. package/dist/src/tools/shell.js.map +1 -1
  567. package/dist/src/tools/shell.test.js +35 -59
  568. package/dist/src/tools/shell.test.js.map +1 -1
  569. package/dist/src/tools/tool-error.d.ts +6 -1
  570. package/dist/src/tools/tool-error.js +6 -0
  571. package/dist/src/tools/tool-error.js.map +1 -1
  572. package/dist/src/tools/tool-names.d.ts +15 -0
  573. package/dist/src/tools/tool-names.js +57 -0
  574. package/dist/src/tools/tool-names.js.map +1 -1
  575. package/dist/src/tools/tool-names.test.d.ts +6 -0
  576. package/dist/src/tools/tool-names.test.js +43 -0
  577. package/dist/src/tools/tool-names.test.js.map +1 -0
  578. package/dist/src/tools/tool-registry.d.ts +11 -7
  579. package/dist/src/tools/tool-registry.js +15 -10
  580. package/dist/src/tools/tool-registry.js.map +1 -1
  581. package/dist/src/tools/tool-registry.test.js +16 -11
  582. package/dist/src/tools/tool-registry.test.js.map +1 -1
  583. package/dist/src/tools/tools.d.ts +8 -6
  584. package/dist/src/tools/tools.js +16 -18
  585. package/dist/src/tools/tools.js.map +1 -1
  586. package/dist/src/tools/tools.test.js +3 -1
  587. package/dist/src/tools/tools.test.js.map +1 -1
  588. package/dist/src/tools/web-fetch.d.ts +2 -2
  589. package/dist/src/tools/web-fetch.js +4 -4
  590. package/dist/src/tools/web-fetch.js.map +1 -1
  591. package/dist/src/tools/web-fetch.test.js +17 -19
  592. package/dist/src/tools/web-fetch.test.js.map +1 -1
  593. package/dist/src/tools/web-search.d.ts +2 -2
  594. package/dist/src/tools/web-search.js +5 -5
  595. package/dist/src/tools/web-search.js.map +1 -1
  596. package/dist/src/tools/web-search.test.js +2 -1
  597. package/dist/src/tools/web-search.test.js.map +1 -1
  598. package/dist/src/tools/write-file.d.ts +2 -2
  599. package/dist/src/tools/write-file.js +9 -6
  600. package/dist/src/tools/write-file.js.map +1 -1
  601. package/dist/src/tools/write-file.test.js +49 -7
  602. package/dist/src/tools/write-file.test.js.map +1 -1
  603. package/dist/src/tools/write-todos.d.ts +2 -2
  604. package/dist/src/tools/write-todos.js +5 -4
  605. package/dist/src/tools/write-todos.js.map +1 -1
  606. package/dist/src/tools/write-todos.test.js +2 -1
  607. package/dist/src/tools/write-todos.test.js.map +1 -1
  608. package/dist/src/utils/apiConversionUtils.d.ts +12 -0
  609. package/dist/src/utils/apiConversionUtils.js +46 -0
  610. package/dist/src/utils/apiConversionUtils.js.map +1 -0
  611. package/dist/src/utils/apiConversionUtils.test.d.ts +6 -0
  612. package/dist/src/utils/apiConversionUtils.test.js +150 -0
  613. package/dist/src/utils/apiConversionUtils.test.js.map +1 -0
  614. package/dist/src/utils/checkpointUtils.d.ts +1 -1
  615. package/dist/src/utils/checkpointUtils.js +1 -1
  616. package/dist/src/utils/checkpointUtils.js.map +1 -1
  617. package/dist/src/utils/checkpointUtils.test.js +1 -1
  618. package/dist/src/utils/checkpointUtils.test.js.map +1 -1
  619. package/dist/src/utils/debugLogger.js +1 -0
  620. package/dist/src/utils/debugLogger.js.map +1 -1
  621. package/dist/src/utils/editCorrector.d.ts +3 -3
  622. package/dist/src/utils/editCorrector.js +27 -10
  623. package/dist/src/utils/editCorrector.js.map +1 -1
  624. package/dist/src/utils/editCorrector.test.js +23 -23
  625. package/dist/src/utils/editCorrector.test.js.map +1 -1
  626. package/dist/src/utils/editor.d.ts +3 -2
  627. package/dist/src/utils/editor.js +26 -6
  628. package/dist/src/utils/editor.js.map +1 -1
  629. package/dist/src/utils/editor.test.js +27 -4
  630. package/dist/src/utils/editor.test.js.map +1 -1
  631. package/dist/src/utils/environmentContext.d.ts +1 -0
  632. package/dist/src/utils/environmentContext.js +4 -0
  633. package/dist/src/utils/environmentContext.js.map +1 -1
  634. package/dist/src/utils/environmentContext.test.js +2 -0
  635. package/dist/src/utils/environmentContext.test.js.map +1 -1
  636. package/dist/src/utils/errorReporting.d.ts +1 -1
  637. package/dist/src/utils/errorReporting.js +13 -12
  638. package/dist/src/utils/errorReporting.js.map +1 -1
  639. package/dist/src/utils/errorReporting.test.js +17 -14
  640. package/dist/src/utils/errorReporting.test.js.map +1 -1
  641. package/dist/src/utils/events.d.ts +71 -19
  642. package/dist/src/utils/events.js +35 -9
  643. package/dist/src/utils/events.js.map +1 -1
  644. package/dist/src/utils/events.test.js +25 -0
  645. package/dist/src/utils/events.test.js.map +1 -1
  646. package/dist/src/utils/fileDiffUtils.d.ts +18 -0
  647. package/dist/src/utils/fileDiffUtils.js +37 -0
  648. package/dist/src/utils/fileDiffUtils.js.map +1 -0
  649. package/dist/src/utils/fileDiffUtils.test.d.ts +6 -0
  650. package/dist/src/utils/fileDiffUtils.test.js +84 -0
  651. package/dist/src/utils/fileDiffUtils.test.js.map +1 -0
  652. package/dist/src/utils/fileUtils.d.ts +4 -0
  653. package/dist/src/utils/fileUtils.js +53 -0
  654. package/dist/src/utils/fileUtils.js.map +1 -1
  655. package/dist/src/utils/fileUtils.test.js +112 -1
  656. package/dist/src/utils/fileUtils.test.js.map +1 -1
  657. package/dist/src/utils/geminiIgnoreParser.d.ts +11 -0
  658. package/dist/src/utils/geminiIgnoreParser.js +20 -0
  659. package/dist/src/utils/geminiIgnoreParser.js.map +1 -1
  660. package/dist/src/utils/geminiIgnoreParser.test.js +48 -0
  661. package/dist/src/utils/geminiIgnoreParser.test.js.map +1 -1
  662. package/dist/src/utils/generateContentResponseUtilities.d.ts +3 -1
  663. package/dist/src/utils/generateContentResponseUtilities.js +106 -0
  664. package/dist/src/utils/generateContentResponseUtilities.js.map +1 -1
  665. package/dist/src/utils/generateContentResponseUtilities.test.js +279 -2
  666. package/dist/src/utils/generateContentResponseUtilities.test.js.map +1 -1
  667. package/dist/src/utils/getFolderStructure.js +7 -2
  668. package/dist/src/utils/getFolderStructure.js.map +1 -1
  669. package/dist/src/utils/gitIgnoreParser.js +9 -10
  670. package/dist/src/utils/gitIgnoreParser.js.map +1 -1
  671. package/dist/src/utils/installationManager.test.js +11 -3
  672. package/dist/src/utils/installationManager.test.js.map +1 -1
  673. package/dist/src/utils/memoryDiscovery.js +3 -4
  674. package/dist/src/utils/memoryDiscovery.js.map +1 -1
  675. package/dist/src/utils/memoryDiscovery.test.js +12 -1
  676. package/dist/src/utils/memoryDiscovery.test.js.map +1 -1
  677. package/dist/src/utils/partUtils.js +1 -1
  678. package/dist/src/utils/partUtils.js.map +1 -1
  679. package/dist/src/utils/paths.d.ts +10 -0
  680. package/dist/src/utils/paths.js +20 -1
  681. package/dist/src/utils/paths.js.map +1 -1
  682. package/dist/src/utils/retry.d.ts +1 -0
  683. package/dist/src/utils/retry.js +17 -5
  684. package/dist/src/utils/retry.js.map +1 -1
  685. package/dist/src/utils/retry.test.js +11 -11
  686. package/dist/src/utils/retry.test.js.map +1 -1
  687. package/dist/src/utils/shell-utils.d.ts +6 -0
  688. package/dist/src/utils/shell-utils.js +97 -12
  689. package/dist/src/utils/shell-utils.js.map +1 -1
  690. package/dist/src/utils/shell-utils.test.js +99 -1
  691. package/dist/src/utils/shell-utils.test.js.map +1 -1
  692. package/dist/src/utils/summarizer.test.js +3 -2
  693. package/dist/src/utils/summarizer.test.js.map +1 -1
  694. package/dist/src/utils/terminal.d.ts +4 -0
  695. package/dist/src/utils/terminal.js +12 -0
  696. package/dist/src/utils/terminal.js.map +1 -1
  697. package/dist/src/utils/tokenCalculation.js +20 -5
  698. package/dist/src/utils/tokenCalculation.js.map +1 -1
  699. package/dist/src/utils/tokenCalculation.test.js +11 -2
  700. package/dist/src/utils/tokenCalculation.test.js.map +1 -1
  701. package/dist/src/utils/tool-utils.d.ts +9 -0
  702. package/dist/src/utils/tool-utils.js +29 -0
  703. package/dist/src/utils/tool-utils.js.map +1 -1
  704. package/dist/src/utils/tool-utils.test.js +17 -2
  705. package/dist/src/utils/tool-utils.test.js.map +1 -1
  706. package/dist/src/utils/userAccountManager.test.js +5 -5
  707. package/dist/src/utils/userAccountManager.test.js.map +1 -1
  708. package/dist/src/utils/workspaceContext.test.js +1 -1
  709. package/dist/src/utils/workspaceContext.test.js.map +1 -1
  710. package/dist/tsconfig.tsbuildinfo +1 -1
  711. package/package.json +8 -6
  712. package/dist/src/agents/executor.js.map +0 -1
  713. package/dist/src/agents/executor.test.js.map +0 -1
  714. package/dist/src/agents/invocation.js.map +0 -1
  715. package/dist/src/agents/invocation.test.js.map +0 -1
  716. package/dist/src/core/sessionHookTriggers.d.ts +0 -28
  717. package/dist/src/core/sessionHookTriggers.js +0 -68
  718. package/dist/src/core/sessionHookTriggers.js.map +0 -1
  719. package/dist/src/tools/smart-edit.d.ts +0 -78
  720. package/dist/src/tools/smart-edit.js +0 -722
  721. package/dist/src/tools/smart-edit.js.map +0 -1
  722. package/dist/src/tools/smart-edit.test.js +0 -592
  723. package/dist/src/tools/smart-edit.test.js.map +0 -1
  724. package/dist/src/utils/shell-permissions.d.ts +0 -52
  725. package/dist/src/utils/shell-permissions.js +0 -188
  726. package/dist/src/utils/shell-permissions.js.map +0 -1
  727. package/dist/src/utils/shell-permissions.test.js +0 -347
  728. package/dist/src/utils/shell-permissions.test.js.map +0 -1
  729. /package/dist/src/agents/{executor.test.d.ts → a2a-client-manager.test.d.ts} +0 -0
  730. /package/dist/src/agents/{invocation.test.d.ts → a2aUtils.test.d.ts} +0 -0
  731. /package/dist/src/{tools/smart-edit.test.d.ts → agents/agentLoader.test.d.ts} +0 -0
  732. /package/dist/src/{utils/shell-permissions.test.d.ts → agents/cli-help-agent.test.d.ts} +0 -0
@@ -0,0 +1,890 @@
1
+ # Cell CLI configuration
2
+
3
+ **Note on deprecated configuration format**
4
+
5
+ This document describes the legacy v1 format for the `settings.json` file. This
6
+ format is now deprecated.
7
+
8
+ - The new format will be supported in the stable release starting
9
+ **[09/10/25]**.
10
+ - Automatic migration from the old format to the new format will begin on
11
+ **[09/17/25]**.
12
+
13
+ For details on the new, recommended format, please see the
14
+ [current Configuration documentation](./configuration.md).
15
+
16
+ Cell CLI offers several ways to configure its behavior, including environment
17
+ variables, command-line arguments, and settings files. This document outlines
18
+ the different configuration methods and available settings.
19
+
20
+ ## Configuration layers
21
+
22
+ Configuration is applied in the following order of precedence (lower numbers are
23
+ overridden by higher numbers):
24
+
25
+ 1. **Default values:** Hardcoded defaults within the application.
26
+ 2. **System defaults file:** System-wide default settings that can be
27
+ overridden by other settings files.
28
+ 3. **User settings file:** Global settings for the current user.
29
+ 4. **Project settings file:** Project-specific settings.
30
+ 5. **System settings file:** System-wide settings that override all other
31
+ settings files.
32
+ 6. **Environment variables:** System-wide or session-specific variables,
33
+ potentially loaded from `.env` files.
34
+ 7. **Command-line arguments:** Values passed when launching the CLI.
35
+
36
+ ## Settings files
37
+
38
+ Cell CLI uses JSON settings files for persistent configuration. There are four
39
+ locations for these files:
40
+
41
+ - **System defaults file:**
42
+ - **Location:** `/etc/gemini-cli/system-defaults.json` (Linux),
43
+ `C:\ProgramData\gemini-cli\system-defaults.json` (Windows) or
44
+ `/Library/Application Support/GeminiCli/system-defaults.json` (macOS). The
45
+ path can be overridden using the `CELL_CLI_SYSTEM_DEFAULTS_PATH` environment
46
+ variable.
47
+ - **Scope:** Provides a base layer of system-wide default settings. These
48
+ settings have the lowest precedence and are intended to be overridden by
49
+ user, project, or system override settings.
50
+ - **User settings file:**
51
+ - **Location:** `~/.cell-cli/settings.json` (where `~` is your home
52
+ directory).
53
+ - **Scope:** Applies to all Cell CLI sessions for the current user. User
54
+ settings override system defaults.
55
+ - **Project settings file:**
56
+ - **Location:** `.cell-cli/settings.json` within your project's root
57
+ directory.
58
+ - **Scope:** Applies only when running Cell CLI from that specific project.
59
+ Project settings override user settings and system defaults.
60
+ - **System settings file:**
61
+ - **Location:** `/etc/gemini-cli/settings.json` (Linux),
62
+ `C:\ProgramData\gemini-cli\settings.json` (Windows) or
63
+ `/Library/Application Support/GeminiCli/settings.json` (macOS). The path can
64
+ be overridden using the `CELL_CLI_SYSTEM_SETTINGS_PATH` environment
65
+ variable.
66
+ - **Scope:** Applies to all Cell CLI sessions on the system, for all users.
67
+ System settings act as overrides, taking precedence over all other settings
68
+ files. May be useful for system administrators at enterprises to have
69
+ controls over users' Cell CLI setups.
70
+
71
+ **Note on environment variables in settings:** String values within your
72
+ `settings.json` files can reference environment variables using either
73
+ `$VAR_NAME` or `${VAR_NAME}` syntax. These variables will be automatically
74
+ resolved when the settings are loaded. For example, if you have an environment
75
+ variable `MY_API_TOKEN`, you could use it in `settings.json` like this:
76
+ `"apiKey": "$MY_API_TOKEN"`.
77
+
78
+ > **Note for Enterprise Users:** For guidance on deploying and managing Gemini
79
+ > CLI in a corporate environment, please see the
80
+ > [Enterprise Configuration](../cli/enterprise.md) documentation.
81
+
82
+ ### The `.cell-cli` directory in your project
83
+
84
+ In addition to a project settings file, a project's `.cell-cli` directory can
85
+ contain other project-specific files related to Cell CLI's operation, such as:
86
+
87
+ - [Custom sandbox profiles](#sandboxing) (e.g.,
88
+ `.cell-cli/sandbox-macos-custom.sb`, `.cell-cli/sandbox.Dockerfile`).
89
+
90
+ ### Available settings in `settings.json`:
91
+
92
+ - **`contextFileName`** (string or array of strings):
93
+ - **Description:** Specifies the filename for context files (e.g.,
94
+ `GEMINI.md`, `AGENTS.md`). Can be a single filename or a list of accepted
95
+ filenames.
96
+ - **Default:** `GEMINI.md`
97
+ - **Example:** `"contextFileName": "AGENTS.md"`
98
+
99
+ - **`bugCommand`** (object):
100
+ - **Description:** Overrides the default URL for the `/bug` command.
101
+ - **Default:**
102
+ `"urlTemplate": "https://github.com/google-gemini/gemini-cli/issues/new?template=bug_report.yml&title={title}&info={info}"`
103
+ - **Properties:**
104
+ - **`urlTemplate`** (string): A URL that can contain `{title}` and `{info}`
105
+ placeholders.
106
+ - **Example:**
107
+ ```json
108
+ "bugCommand": {
109
+ "urlTemplate": "https://bug.example.com/new?title={title}&info={info}"
110
+ }
111
+ ```
112
+
113
+ - **`fileFiltering`** (object):
114
+ - **Description:** Controls git-aware file filtering behavior for @ commands
115
+ and file discovery tools.
116
+ - **Default:** `"respectGitIgnore": true, "enableRecursiveFileSearch": true`
117
+ - **Properties:**
118
+ - **`respectGitIgnore`** (boolean): Whether to respect .gitignore patterns
119
+ when discovering files. When set to `true`, git-ignored files (like
120
+ `node_modules/`, `dist/`, `.env`) are automatically excluded from @
121
+ commands and file listing operations.
122
+ - **`enableRecursiveFileSearch`** (boolean): Whether to enable searching
123
+ recursively for filenames under the current tree when completing @
124
+ prefixes in the prompt.
125
+ - **`disableFuzzySearch`** (boolean): When `true`, disables the fuzzy search
126
+ capabilities when searching for files, which can improve performance on
127
+ projects with a large number of files.
128
+ - **Example:**
129
+ ```json
130
+ "fileFiltering": {
131
+ "respectGitIgnore": true,
132
+ "enableRecursiveFileSearch": false,
133
+ "disableFuzzySearch": true
134
+ }
135
+ ```
136
+
137
+ ### Troubleshooting file search performance
138
+
139
+ If you are experiencing performance issues with file searching (e.g., with `@`
140
+ completions), especially in projects with a very large number of files, here are
141
+ a few things you can try in order of recommendation:
142
+
143
+ 1. **Use `.geminiignore`:** Create a `.geminiignore` file in your project root
144
+ to exclude directories that contain a large number of files that you don't
145
+ need to reference (e.g., build artifacts, logs, `node_modules`). Reducing
146
+ the total number of files crawled is the most effective way to improve
147
+ performance.
148
+
149
+ 2. **Disable fuzzy search:** If ignoring files is not enough, you can disable
150
+ fuzzy search by setting `disableFuzzySearch` to `true` in your
151
+ `settings.json` file. This will use a simpler, non-fuzzy matching algorithm,
152
+ which can be faster.
153
+
154
+ 3. **Disable recursive file search:** As a last resort, you can disable
155
+ recursive file search entirely by setting `enableRecursiveFileSearch` to
156
+ `false`. This will be the fastest option as it avoids a recursive crawl of
157
+ your project. However, it means you will need to type the full path to files
158
+ when using `@` completions.
159
+
160
+ - **`coreTools`** (array of strings):
161
+ - **Description:** Allows you to specify a list of core tool names that should
162
+ be made available to the model. This can be used to restrict the set of
163
+ built-in tools. See [Built-in Tools](../core/tools-api.md#built-in-tools)
164
+ for a list of core tools. You can also specify command-specific restrictions
165
+ for tools that support it, like the `ShellTool`. For example,
166
+ `"coreTools": ["ShellTool(ls -l)"]` will only allow the `ls -l` command to
167
+ be executed.
168
+ - **Default:** All tools available for use by the Gemini model.
169
+ - **Example:** `"coreTools": ["ReadFileTool", "GlobTool", "ShellTool(ls)"]`.
170
+
171
+ - **`allowedTools`** (array of strings):
172
+ - **Default:** `undefined`
173
+ - **Description:** A list of tool names that will bypass the confirmation
174
+ dialog. This is useful for tools that you trust and use frequently. The
175
+ match semantics are the same as `coreTools`.
176
+ - **Example:** `"allowedTools": ["ShellTool(git status)"]`.
177
+
178
+ - **`excludeTools`** (array of strings):
179
+ - **Description:** Allows you to specify a list of core tool names that should
180
+ be excluded from the model. A tool listed in both `excludeTools` and
181
+ `coreTools` is excluded. You can also specify command-specific restrictions
182
+ for tools that support it, like the `ShellTool`. For example,
183
+ `"excludeTools": ["ShellTool(rm -rf)"]` will block the `rm -rf` command.
184
+ - **Default**: No tools excluded.
185
+ - **Example:** `"excludeTools": ["run_shell_command", "findFiles"]`.
186
+ - **Security Note:** Command-specific restrictions in `excludeTools` for
187
+ `run_shell_command` are based on simple string matching and can be easily
188
+ bypassed. This feature is **not a security mechanism** and should not be
189
+ relied upon to safely execute untrusted code. It is recommended to use
190
+ `coreTools` to explicitly select commands that can be executed.
191
+
192
+ - **`allowMCPServers`** (array of strings):
193
+ - **Description:** Allows you to specify a list of MCP server names that
194
+ should be made available to the model. This can be used to restrict the set
195
+ of MCP servers to connect to. Note that this will be ignored if
196
+ `--allowed-mcp-server-names` is set.
197
+ - **Default:** All MCP servers are available for use by the Gemini model.
198
+ - **Example:** `"allowMCPServers": ["myPythonServer"]`.
199
+ - **Security note:** This uses simple string matching on MCP server names,
200
+ which can be modified. If you're a system administrator looking to prevent
201
+ users from bypassing this, consider configuring the `mcpServers` at the
202
+ system settings level such that the user will not be able to configure any
203
+ MCP servers of their own. This should not be used as an airtight security
204
+ mechanism.
205
+
206
+ - **`excludeMCPServers`** (array of strings):
207
+ - **Description:** Allows you to specify a list of MCP server names that
208
+ should be excluded from the model. A server listed in both
209
+ `excludeMCPServers` and `allowMCPServers` is excluded. Note that this will
210
+ be ignored if `--allowed-mcp-server-names` is set.
211
+ - **Default**: No MCP servers excluded.
212
+ - **Example:** `"excludeMCPServers": ["myNodeServer"]`.
213
+ - **Security note:** This uses simple string matching on MCP server names,
214
+ which can be modified. If you're a system administrator looking to prevent
215
+ users from bypassing this, consider configuring the `mcpServers` at the
216
+ system settings level such that the user will not be able to configure any
217
+ MCP servers of their own. This should not be used as an airtight security
218
+ mechanism.
219
+
220
+ - **`autoAccept`** (boolean):
221
+ - **Description:** Controls whether the CLI automatically accepts and executes
222
+ tool calls that are considered safe (e.g., read-only operations) without
223
+ explicit user confirmation. If set to `true`, the CLI will bypass the
224
+ confirmation prompt for tools deemed safe.
225
+ - **Default:** `false`
226
+ - **Example:** `"autoAccept": true`
227
+
228
+ - **`theme`** (string):
229
+ - **Description:** Sets the visual [theme](../cli/themes.md) for Cell CLI.
230
+ - **Default:** `"Default"`
231
+ - **Example:** `"theme": "GitHub"`
232
+
233
+ - **`vimMode`** (boolean):
234
+ - **Description:** Enables or disables vim mode for input editing. When
235
+ enabled, the input area supports vim-style navigation and editing commands
236
+ with NORMAL and INSERT modes. The vim mode status is displayed in the footer
237
+ and persists between sessions.
238
+ - **Default:** `false`
239
+ - **Example:** `"vimMode": true`
240
+
241
+ - **`sandbox`** (boolean or string):
242
+ - **Description:** Controls whether and how to use sandboxing for tool
243
+ execution. If set to `true`, Cell CLI uses a pre-built `gemini-cli-sandbox`
244
+ Docker image. For more information, see [Sandboxing](#sandboxing).
245
+ - **Default:** `false`
246
+ - **Example:** `"sandbox": "docker"`
247
+
248
+ - **`toolDiscoveryCommand`** (string):
249
+ - **Description:** Defines a custom shell command for discovering tools from
250
+ your project. The shell command must return on `stdout` a JSON array of
251
+ [function declarations](https://ai.google.dev/gemini-api/docs/function-calling#function-declarations).
252
+ Tool wrappers are optional.
253
+ - **Default:** Empty
254
+ - **Example:** `"toolDiscoveryCommand": "bin/get_tools"`
255
+
256
+ - **`toolCallCommand`** (string):
257
+ - **Description:** Defines a custom shell command for calling a specific tool
258
+ that was discovered using `toolDiscoveryCommand`. The shell command must
259
+ meet the following criteria:
260
+ - It must take function `name` (exactly as in
261
+ [function declaration](https://ai.google.dev/gemini-api/docs/function-calling#function-declarations))
262
+ as first command line argument.
263
+ - It must read function arguments as JSON on `stdin`, analogous to
264
+ [`functionCall.args`](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#functioncall).
265
+ - It must return function output as JSON on `stdout`, analogous to
266
+ [`functionResponse.response.content`](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#functionresponse).
267
+ - **Default:** Empty
268
+ - **Example:** `"toolCallCommand": "bin/call_tool"`
269
+
270
+ - **`mcpServers`** (object):
271
+ - **Description:** Configures connections to one or more Model-Context
272
+ Protocol (MCP) servers for discovering and using custom tools. Cell CLI
273
+ attempts to connect to each configured MCP server to discover available
274
+ tools. If multiple MCP servers expose a tool with the same name, the tool
275
+ names will be prefixed with the server alias you defined in the
276
+ configuration (e.g., `serverAlias__actualToolName`) to avoid conflicts. Note
277
+ that the system might strip certain schema properties from MCP tool
278
+ definitions for compatibility. At least one of `command`, `url`, or
279
+ `httpUrl` must be provided. If multiple are specified, the order of
280
+ precedence is `httpUrl`, then `url`, then `command`.
281
+ - **Default:** Empty
282
+ - **Properties:**
283
+ - **`<SERVER_NAME>`** (object): The server parameters for the named server.
284
+ - `command` (string, optional): The command to execute to start the MCP
285
+ server via standard I/O.
286
+ - `args` (array of strings, optional): Arguments to pass to the command.
287
+ - `env` (object, optional): Environment variables to set for the server
288
+ process.
289
+ - `cwd` (string, optional): The working directory in which to start the
290
+ server.
291
+ - `url` (string, optional): The URL of an MCP server that uses Server-Sent
292
+ Events (SSE) for communication.
293
+ - `httpUrl` (string, optional): The URL of an MCP server that uses
294
+ streamable HTTP for communication.
295
+ - `headers` (object, optional): A map of HTTP headers to send with
296
+ requests to `url` or `httpUrl`.
297
+ - `timeout` (number, optional): Timeout in milliseconds for requests to
298
+ this MCP server.
299
+ - `trust` (boolean, optional): Trust this server and bypass all tool call
300
+ confirmations.
301
+ - `description` (string, optional): A brief description of the server,
302
+ which may be used for display purposes.
303
+ - `includeTools` (array of strings, optional): List of tool names to
304
+ include from this MCP server. When specified, only the tools listed here
305
+ will be available from this server (allowlist behavior). If not
306
+ specified, all tools from the server are enabled by default.
307
+ - `excludeTools` (array of strings, optional): List of tool names to
308
+ exclude from this MCP server. Tools listed here will not be available to
309
+ the model, even if they are exposed by the server. **Note:**
310
+ `excludeTools` takes precedence over `includeTools` - if a tool is in
311
+ both lists, it will be excluded.
312
+ - **Example:**
313
+ ```json
314
+ "mcpServers": {
315
+ "myPythonServer": {
316
+ "command": "python",
317
+ "args": ["mcp_server.py", "--port", "8080"],
318
+ "cwd": "./mcp_tools/python",
319
+ "timeout": 5000,
320
+ "includeTools": ["safe_tool", "file_reader"],
321
+ },
322
+ "myNodeServer": {
323
+ "command": "node",
324
+ "args": ["mcp_server.js"],
325
+ "cwd": "./mcp_tools/node",
326
+ "excludeTools": ["dangerous_tool", "file_deleter"]
327
+ },
328
+ "myDockerServer": {
329
+ "command": "docker",
330
+ "args": ["run", "-i", "--rm", "-e", "API_KEY", "ghcr.io/foo/bar"],
331
+ "env": {
332
+ "API_KEY": "$MY_API_TOKEN"
333
+ }
334
+ },
335
+ "mySseServer": {
336
+ "url": "http://localhost:8081/events",
337
+ "headers": {
338
+ "Authorization": "Bearer $MY_SSE_TOKEN"
339
+ },
340
+ "description": "An example SSE-based MCP server."
341
+ },
342
+ "myStreamableHttpServer": {
343
+ "httpUrl": "http://localhost:8082/stream",
344
+ "headers": {
345
+ "X-API-Key": "$MY_HTTP_API_KEY"
346
+ },
347
+ "description": "An example Streamable HTTP-based MCP server."
348
+ }
349
+ }
350
+ ```
351
+
352
+ - **`checkpointing`** (object):
353
+ - **Description:** Configures the checkpointing feature, which allows you to
354
+ save and restore conversation and file states. See the
355
+ [Checkpointing documentation](../cli/checkpointing.md) for more details.
356
+ - **Default:** `{"enabled": false}`
357
+ - **Properties:**
358
+ - **`enabled`** (boolean): When `true`, the `/restore` command is available.
359
+
360
+ - **`preferredEditor`** (string):
361
+ - **Description:** Specifies the preferred editor to use for viewing diffs.
362
+ - **Default:** `vscode`
363
+ - **Example:** `"preferredEditor": "vscode"`
364
+
365
+ - **`telemetry`** (object)
366
+ - **Description:** Configures logging and metrics collection for Cell CLI. For
367
+ more information, see [Telemetry](../cli/telemetry.md).
368
+ - **Default:**
369
+ `{"enabled": false, "target": "local", "otlpEndpoint": "http://localhost:4317", "logPrompts": true}`
370
+ - **Properties:**
371
+ - **`enabled`** (boolean): Whether or not telemetry is enabled.
372
+ - **`target`** (string): The destination for collected telemetry. Supported
373
+ values are `local` and `gcp`.
374
+ - **`otlpEndpoint`** (string): The endpoint for the OTLP Exporter.
375
+ - **`logPrompts`** (boolean): Whether or not to include the content of user
376
+ prompts in the logs.
377
+ - **Example:**
378
+ ```json
379
+ "telemetry": {
380
+ "enabled": true,
381
+ "target": "local",
382
+ "otlpEndpoint": "http://localhost:16686",
383
+ "logPrompts": false
384
+ }
385
+ ```
386
+ - **`usageStatisticsEnabled`** (boolean):
387
+ - **Description:** Enables or disables the collection of usage statistics. See
388
+ [Usage Statistics](#usage-statistics) for more information.
389
+ - **Default:** `true`
390
+ - **Example:**
391
+ ```json
392
+ "usageStatisticsEnabled": false
393
+ ```
394
+
395
+ - **`hideTips`** (boolean):
396
+ - **Description:** Enables or disables helpful tips in the CLI interface.
397
+ - **Default:** `false`
398
+ - **Example:**
399
+
400
+ ```json
401
+ "hideTips": true
402
+ ```
403
+
404
+ - **`hideBanner`** (boolean):
405
+ - **Description:** Enables or disables the startup banner (ASCII art logo) in
406
+ the CLI interface.
407
+ - **Default:** `false`
408
+ - **Example:**
409
+
410
+ ```json
411
+ "hideBanner": true
412
+ ```
413
+
414
+ - **`maxSessionTurns`** (number):
415
+ - **Description:** Sets the maximum number of turns for a session. If the
416
+ session exceeds this limit, the CLI will stop processing and start a new
417
+ chat.
418
+ - **Default:** `-1` (unlimited)
419
+ - **Example:**
420
+ ```json
421
+ "maxSessionTurns": 10
422
+ ```
423
+
424
+ - **`summarizeToolOutput`** (object):
425
+ - **Description:** Enables or disables the summarization of tool output. You
426
+ can specify the token budget for the summarization using the `tokenBudget`
427
+ setting.
428
+ - Note: Currently only the `run_shell_command` tool is supported.
429
+ - **Default:** `{}` (Disabled by default)
430
+ - **Example:**
431
+ ```json
432
+ "summarizeToolOutput": {
433
+ "run_shell_command": {
434
+ "tokenBudget": 2000
435
+ }
436
+ }
437
+ ```
438
+
439
+ - **`excludedProjectEnvVars`** (array of strings):
440
+ - **Description:** Specifies environment variables that should be excluded
441
+ from being loaded from project `.env` files. This prevents project-specific
442
+ environment variables (like `DEBUG=true`) from interfering with gemini-cli
443
+ behavior. Variables from `.cell-cli/.env` files are never excluded.
444
+ - **Default:** `["DEBUG", "DEBUG_MODE"]`
445
+ - **Example:**
446
+ ```json
447
+ "excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"]
448
+ ```
449
+
450
+ - **`includeDirectories`** (array of strings):
451
+ - **Description:** Specifies an array of additional absolute or relative paths
452
+ to include in the workspace context. Missing directories will be skipped
453
+ with a warning by default. Paths can use `~` to refer to the user's home
454
+ directory. This setting can be combined with the `--include-directories`
455
+ command-line flag.
456
+ - **Default:** `[]`
457
+ - **Example:**
458
+ ```json
459
+ "includeDirectories": [
460
+ "/path/to/another/project",
461
+ "../shared-library",
462
+ "~/common-utils"
463
+ ]
464
+ ```
465
+
466
+ - **`loadMemoryFromIncludeDirectories`** (boolean):
467
+ - **Description:** Controls the behavior of the `/memory refresh` command. If
468
+ set to `true`, `GEMINI.md` files should be loaded from all directories that
469
+ are added. If set to `false`, `GEMINI.md` should only be loaded from the
470
+ current directory.
471
+ - **Default:** `false`
472
+ - **Example:**
473
+ ```json
474
+ "loadMemoryFromIncludeDirectories": true
475
+ ```
476
+
477
+ - **`showLineNumbers`** (boolean):
478
+ - **Description:** Controls whether line numbers are displayed in code blocks
479
+ in the CLI output.
480
+ - **Default:** `true`
481
+ - **Example:**
482
+ ```json
483
+ "showLineNumbers": false
484
+ ```
485
+
486
+ - **`accessibility`** (object):
487
+ - **Description:** Configures accessibility features for the CLI.
488
+ - **Properties:**
489
+ - **`screenReader`** (boolean): Enables screen reader mode, which adjusts
490
+ the TUI for better compatibility with screen readers. This can also be
491
+ enabled with the `--screen-reader` command-line flag, which will take
492
+ precedence over the setting.
493
+ - **`disableLoadingPhrases`** (boolean): Disables the display of loading
494
+ phrases during operations.
495
+ - **Default:** `{"screenReader": false, "disableLoadingPhrases": false}`
496
+ - **Example:**
497
+ ```json
498
+ "accessibility": {
499
+ "screenReader": true,
500
+ "disableLoadingPhrases": true
501
+ }
502
+ ```
503
+
504
+ ### Example `settings.json`:
505
+
506
+ ```json
507
+ {
508
+ "theme": "GitHub",
509
+ "sandbox": "docker",
510
+ "toolDiscoveryCommand": "bin/get_tools",
511
+ "toolCallCommand": "bin/call_tool",
512
+ "mcpServers": {
513
+ "mainServer": {
514
+ "command": "bin/mcp_server.py"
515
+ },
516
+ "anotherServer": {
517
+ "command": "node",
518
+ "args": ["mcp_server.js", "--verbose"]
519
+ }
520
+ },
521
+ "telemetry": {
522
+ "enabled": true,
523
+ "target": "local",
524
+ "otlpEndpoint": "http://localhost:4317",
525
+ "logPrompts": true
526
+ },
527
+ "usageStatisticsEnabled": true,
528
+ "hideTips": false,
529
+ "hideBanner": false,
530
+ "maxSessionTurns": 10,
531
+ "summarizeToolOutput": {
532
+ "run_shell_command": {
533
+ "tokenBudget": 100
534
+ }
535
+ },
536
+ "excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"],
537
+ "includeDirectories": ["path/to/dir1", "~/path/to/dir2", "../path/to/dir3"],
538
+ "loadMemoryFromIncludeDirectories": true
539
+ }
540
+ ```
541
+
542
+ ## Shell history
543
+
544
+ The CLI keeps a history of shell commands you run. To avoid conflicts between
545
+ different projects, this history is stored in a project-specific directory
546
+ within your user's home folder.
547
+
548
+ - **Location:** `~/.cell-cli/tmp/<project_hash>/shell_history`
549
+ - `<project_hash>` is a unique identifier generated from your project's root
550
+ path.
551
+ - The history is stored in a file named `shell_history`.
552
+
553
+ ## Environment variables and `.env` files
554
+
555
+ Environment variables are a common way to configure applications, especially for
556
+ sensitive information like API keys or for settings that might change between
557
+ environments. For authentication setup, see the
558
+ [Authentication documentation](./authentication.md) which covers all available
559
+ authentication methods.
560
+
561
+ The CLI automatically loads environment variables from an `.env` file. The
562
+ loading order is:
563
+
564
+ 1. `.env` file in the current working directory.
565
+ 2. If not found, it searches upwards in parent directories until it finds an
566
+ `.env` file or reaches the project root (identified by a `.git` folder) or
567
+ the home directory.
568
+ 3. If still not found, it looks for `~/.env` (in the user's home directory).
569
+
570
+ **Environment variable exclusion:** Some environment variables (like `DEBUG` and
571
+ `DEBUG_MODE`) are automatically excluded from being loaded from project `.env`
572
+ files to prevent interference with gemini-cli behavior. Variables from
573
+ `.cell-cli/.env` files are never excluded. You can customize this behavior using
574
+ the `excludedProjectEnvVars` setting in your `settings.json` file.
575
+
576
+ - **`GEMINI_API_KEY`**:
577
+ - Your API key for the Gemini API.
578
+ - One of several available [authentication methods](./authentication.md).
579
+ - Set this in your shell profile (e.g., `~/.bashrc`, `~/.zshrc`) or an `.env`
580
+ file.
581
+ - **`GEMINI_MODEL`**:
582
+ - Specifies the default Gemini model to use.
583
+ - Overrides the hardcoded default
584
+ - Example: `export GEMINI_MODEL="gemini-2.5-flash"`
585
+ - **`GOOGLE_API_KEY`**:
586
+ - Your Google Cloud API key.
587
+ - Required for using Vertex AI in express mode.
588
+ - Ensure you have the necessary permissions.
589
+ - Example: `export GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY"`.
590
+ - **`GOOGLE_CLOUD_PROJECT`**:
591
+ - Your Google Cloud Project ID.
592
+ - Required for using Code Assist or Vertex AI.
593
+ - If using Vertex AI, ensure you have the necessary permissions in this
594
+ project.
595
+ - **Cloud Shell note:** When running in a Cloud Shell environment, this
596
+ variable defaults to a special project allocated for Cloud Shell users. If
597
+ you have `GOOGLE_CLOUD_PROJECT` set in your global environment in Cloud
598
+ Shell, it will be overridden by this default. To use a different project in
599
+ Cloud Shell, you must define `GOOGLE_CLOUD_PROJECT` in a `.env` file.
600
+ - Example: `export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"`.
601
+ - **`GOOGLE_APPLICATION_CREDENTIALS`** (string):
602
+ - **Description:** The path to your Google Application Credentials JSON file.
603
+ - **Example:**
604
+ `export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/credentials.json"`
605
+ - **`OTLP_GOOGLE_CLOUD_PROJECT`**:
606
+ - Your Google Cloud Project ID for Telemetry in Google Cloud
607
+ - Example: `export OTLP_GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"`.
608
+ - **`GOOGLE_CLOUD_LOCATION`**:
609
+ - Your Google Cloud Project Location (e.g., us-central1).
610
+ - Required for using Vertex AI in non express mode.
611
+ - Example: `export GOOGLE_CLOUD_LOCATION="YOUR_PROJECT_LOCATION"`.
612
+ - **`GEMINI_SANDBOX`**:
613
+ - Alternative to the `sandbox` setting in `settings.json`.
614
+ - Accepts `true`, `false`, `docker`, `podman`, or a custom command string.
615
+ - **`HTTP_PROXY` / `HTTPS_PROXY`**:
616
+ - Specifies the proxy server to use for outgoing HTTP/HTTPS requests.
617
+ - Example: `export HTTPS_PROXY="http://proxy.example.com:8080"`
618
+ - **`SEATBELT_PROFILE`** (macOS specific):
619
+ - Switches the Seatbelt (`sandbox-exec`) profile on macOS.
620
+ - `permissive-open`: (Default) Restricts writes to the project folder (and a
621
+ few other folders, see
622
+ `packages/cli/src/utils/sandbox-macos-permissive-open.sb`) but allows other
623
+ operations.
624
+ - `strict`: Uses a strict profile that declines operations by default.
625
+ - `<profile_name>`: Uses a custom profile. To define a custom profile, create
626
+ a file named `sandbox-macos-<profile_name>.sb` in your project's
627
+ `.cell-cli/` directory (e.g.,
628
+ `my-project/.cell-cli/sandbox-macos-custom.sb`).
629
+ - **`DEBUG` or `DEBUG_MODE`** (often used by underlying libraries or the CLI
630
+ itself):
631
+ - Set to `true` or `1` to enable verbose debug logging, which can be helpful
632
+ for troubleshooting.
633
+ - **Note:** These variables are automatically excluded from project `.env`
634
+ files by default to prevent interference with gemini-cli behavior. Use
635
+ `.cell-cli/.env` files if you need to set these for gemini-cli specifically.
636
+ - **`NO_COLOR`**:
637
+ - Set to any value to disable all color output in the CLI.
638
+ - **`CLI_TITLE`**:
639
+ - Set to a string to customize the title of the CLI.
640
+ - **`CODE_ASSIST_ENDPOINT`**:
641
+ - Specifies the endpoint for the code assist server.
642
+ - This is useful for development and testing.
643
+
644
+ ## Command-line arguments
645
+
646
+ Arguments passed directly when running the CLI can override other configurations
647
+ for that specific session.
648
+
649
+ - **`--model <model_name>`** (**`-m <model_name>`**):
650
+ - Specifies the Gemini model to use for this session.
651
+ - Example: `npm start -- --model gemini-1.5-pro-latest`
652
+ - **`--prompt <your_prompt>`** (**`-p <your_prompt>`**):
653
+ - Used to pass a prompt directly to the command. This invokes Cell CLI in a
654
+ non-interactive mode.
655
+ - **`--prompt-interactive <your_prompt>`** (**`-i <your_prompt>`**):
656
+ - Starts an interactive session with the provided prompt as the initial input.
657
+ - The prompt is processed within the interactive session, not before it.
658
+ - Cannot be used when piping input from stdin.
659
+ - Example: `gemini -i "explain this code"`
660
+ - **`--sandbox`** (**`-s`**):
661
+ - Enables sandbox mode for this session.
662
+ - **`--sandbox-image`**:
663
+ - Sets the sandbox image URI.
664
+ - **`--debug`** (**`-d`**):
665
+ - Enables debug mode for this session, providing more verbose output.
666
+
667
+ - **`--help`** (or **`-h`**):
668
+ - Displays help information about command-line arguments.
669
+ - **`--show-memory-usage`**:
670
+ - Displays the current memory usage.
671
+ - **`--yolo`**:
672
+ - Enables YOLO mode, which automatically approves all tool calls.
673
+ - **`--approval-mode <mode>`**:
674
+ - Sets the approval mode for tool calls. Available modes:
675
+ - `default`: Prompt for approval on each tool call (default behavior)
676
+ - `auto_edit`: Automatically approve edit tools (replace, write_file) while
677
+ prompting for others
678
+ - `yolo`: Automatically approve all tool calls (equivalent to `--yolo`)
679
+ - Cannot be used together with `--yolo`. Use `--approval-mode=yolo` instead of
680
+ `--yolo` for the new unified approach.
681
+ - Example: `gemini --approval-mode auto_edit`
682
+ - **`--allowed-tools <tool1,tool2,...>`**:
683
+ - A comma-separated list of tool names that will bypass the confirmation
684
+ dialog.
685
+ - Example: `gemini --allowed-tools "ShellTool(git status)"`
686
+ - **`--telemetry`**:
687
+ - Enables [telemetry](../cli/telemetry.md).
688
+ - **`--telemetry-target`**:
689
+ - Sets the telemetry target. See [telemetry](../cli/telemetry.md) for more
690
+ information.
691
+ - **`--telemetry-otlp-endpoint`**:
692
+ - Sets the OTLP endpoint for telemetry. See [telemetry](../cli/telemetry.md)
693
+ for more information.
694
+ - **`--telemetry-otlp-protocol`**:
695
+ - Sets the OTLP protocol for telemetry (`grpc` or `http`). Defaults to `grpc`.
696
+ See [telemetry](../cli/telemetry.md) for more information.
697
+ - **`--telemetry-log-prompts`**:
698
+ - Enables logging of prompts for telemetry. See
699
+ [telemetry](../cli/telemetry.md) for more information.
700
+ - **`--extensions <extension_name ...>`** (**`-e <extension_name ...>`**):
701
+ - Specifies a list of extensions to use for the session. If not provided, all
702
+ available extensions are used.
703
+ - Use the special term `gemini -e none` to disable all extensions.
704
+ - Example: `gemini -e my-extension -e my-other-extension`
705
+ - **`--list-extensions`** (**`-l`**):
706
+ - Lists all available extensions and exits.
707
+ - **`--include-directories <dir1,dir2,...>`**:
708
+ - Includes additional directories in the workspace for multi-directory
709
+ support.
710
+ - Can be specified multiple times or as comma-separated values.
711
+ - 5 directories can be added at maximum.
712
+ - Example: `--include-directories /path/to/project1,/path/to/project2` or
713
+ `--include-directories /path/to/project1 --include-directories /path/to/project2`
714
+ - **`--screen-reader`**:
715
+ - Enables screen reader mode for accessibility.
716
+ - **`--version`**:
717
+ - Displays the version of the CLI.
718
+
719
+ ## Context files (hierarchical instructional context)
720
+
721
+ While not strictly configuration for the CLI's _behavior_, context files
722
+ (defaulting to `GEMINI.md` but configurable via the `contextFileName` setting)
723
+ are crucial for configuring the _instructional context_ (also referred to as
724
+ "memory") provided to the Gemini model. This powerful feature allows you to give
725
+ project-specific instructions, coding style guides, or any relevant background
726
+ information to the AI, making its responses more tailored and accurate to your
727
+ needs. The CLI includes UI elements, such as an indicator in the footer showing
728
+ the number of loaded context files, to keep you informed about the active
729
+ context.
730
+
731
+ - **Purpose:** These Markdown files contain instructions, guidelines, or context
732
+ that you want the Gemini model to be aware of during your interactions. The
733
+ system is designed to manage this instructional context hierarchically.
734
+
735
+ ### Example context file content (e.g., `GEMINI.md`)
736
+
737
+ Here's a conceptual example of what a context file at the root of a TypeScript
738
+ project might contain:
739
+
740
+ ```markdown
741
+ # Project: My Awesome TypeScript Library
742
+
743
+ ## General Instructions:
744
+
745
+ - When generating new TypeScript code, please follow the existing coding style.
746
+ - Ensure all new functions and classes have JSDoc comments.
747
+ - Prefer functional programming paradigms where appropriate.
748
+ - All code should be compatible with TypeScript 5.0 and Node.js 20+.
749
+
750
+ ## Coding Style:
751
+
752
+ - Use 2 spaces for indentation.
753
+ - Interface names should be prefixed with `I` (e.g., `IUserService`).
754
+ - Private class members should be prefixed with an underscore (`_`).
755
+ - Always use strict equality (`===` and `!==`).
756
+
757
+ ## Specific Component: `src/api/client.ts`
758
+
759
+ - This file handles all outbound API requests.
760
+ - When adding new API call functions, ensure they include robust error handling
761
+ and logging.
762
+ - Use the existing `fetchWithRetry` utility for all GET requests.
763
+
764
+ ## Regarding Dependencies:
765
+
766
+ - Avoid introducing new external dependencies unless absolutely necessary.
767
+ - If a new dependency is required, please state the reason.
768
+ ```
769
+
770
+ This example demonstrates how you can provide general project context, specific
771
+ coding conventions, and even notes about particular files or components. The
772
+ more relevant and precise your context files are, the better the AI can assist
773
+ you. Project-specific context files are highly encouraged to establish
774
+ conventions and context.
775
+
776
+ - **Hierarchical loading and precedence:** The CLI implements a sophisticated
777
+ hierarchical memory system by loading context files (e.g., `GEMINI.md`) from
778
+ several locations. Content from files lower in this list (more specific)
779
+ typically overrides or supplements content from files higher up (more
780
+ general). The exact concatenation order and final context can be inspected
781
+ using the `/memory show` command. The typical loading order is:
782
+ 1. **Global context file:**
783
+ - Location: `~/.cell-cli/<contextFileName>` (e.g., `~/.cell-cli/GEMINI.md`
784
+ in your user home directory).
785
+ - Scope: Provides default instructions for all your projects.
786
+ 2. **Project root and ancestors context files:**
787
+ - Location: The CLI searches for the configured context file in the
788
+ current working directory and then in each parent directory up to either
789
+ the project root (identified by a `.git` folder) or your home directory.
790
+ - Scope: Provides context relevant to the entire project or a significant
791
+ portion of it.
792
+ 3. **Sub-directory context files (contextual/local):**
793
+ - Location: The CLI also scans for the configured context file in
794
+ subdirectories _below_ the current working directory (respecting common
795
+ ignore patterns like `node_modules`, `.git`, etc.). The breadth of this
796
+ search is limited to 200 directories by default, but can be configured
797
+ with a `memoryDiscoveryMaxDirs` field in your `settings.json` file.
798
+ - Scope: Allows for highly specific instructions relevant to a particular
799
+ component, module, or subsection of your project.
800
+ - **Concatenation and UI indication:** The contents of all found context files
801
+ are concatenated (with separators indicating their origin and path) and
802
+ provided as part of the system prompt to the Gemini model. The CLI footer
803
+ displays the count of loaded context files, giving you a quick visual cue
804
+ about the active instructional context.
805
+ - **Importing content:** You can modularize your context files by importing
806
+ other Markdown files using the `@path/to/file.md` syntax. For more details,
807
+ see the [Memory Import Processor documentation](../core/memport.md).
808
+ - **Commands for memory management:**
809
+ - Use `/memory refresh` to force a re-scan and reload of all context files
810
+ from all configured locations. This updates the AI's instructional context.
811
+ - Use `/memory show` to display the combined instructional context currently
812
+ loaded, allowing you to verify the hierarchy and content being used by the
813
+ AI.
814
+ - See the [Commands documentation](../cli/commands.md#memory) for full details
815
+ on the `/memory` command and its sub-commands (`show` and `refresh`).
816
+
817
+ By understanding and utilizing these configuration layers and the hierarchical
818
+ nature of context files, you can effectively manage the AI's memory and tailor
819
+ the Cell CLI's responses to your specific needs and projects.
820
+
821
+ ## Sandboxing
822
+
823
+ The Cell CLI can execute potentially unsafe operations (like shell commands and
824
+ file modifications) within a sandboxed environment to protect your system.
825
+
826
+ Sandboxing is disabled by default, but you can enable it in a few ways:
827
+
828
+ - Using `--sandbox` or `-s` flag.
829
+ - Setting `GEMINI_SANDBOX` environment variable.
830
+ - Sandbox is enabled when using `--yolo` or `--approval-mode=yolo` by default.
831
+
832
+ By default, it uses a pre-built `gemini-cli-sandbox` Docker image.
833
+
834
+ For project-specific sandboxing needs, you can create a custom Dockerfile at
835
+ `.cell-cli/sandbox.Dockerfile` in your project's root directory. This Dockerfile
836
+ can be based on the base sandbox image:
837
+
838
+ ```dockerfile
839
+ FROM gemini-cli-sandbox
840
+
841
+ # Add your custom dependencies or configurations here
842
+ # For example:
843
+ # RUN apt-get update && apt-get install -y some-package
844
+ # COPY ./my-config /app/my-config
845
+ ```
846
+
847
+ When `.cell-cli/sandbox.Dockerfile` exists, you can use `BUILD_SANDBOX`
848
+ environment variable when running Cell CLI to automatically build the custom
849
+ sandbox image:
850
+
851
+ ```bash
852
+ BUILD_SANDBOX=1 gemini -s
853
+ ```
854
+
855
+ ## Usage statistics
856
+
857
+ To help us improve the Cell CLI, we collect anonymized usage statistics. This
858
+ data helps us understand how the CLI is used, identify common issues, and
859
+ prioritize new features.
860
+
861
+ **What we collect:**
862
+
863
+ - **Tool calls:** We log the names of the tools that are called, whether they
864
+ succeed or fail, and how long they take to execute. We do not collect the
865
+ arguments passed to the tools or any data returned by them.
866
+ - **API requests:** We log the Gemini model used for each request, the duration
867
+ of the request, and whether it was successful. We do not collect the content
868
+ of the prompts or responses.
869
+ - **Session information:** We collect information about the configuration of the
870
+ CLI, such as the enabled tools and the approval mode.
871
+
872
+ **What we DON'T collect:**
873
+
874
+ - **Personally identifiable information (PII):** We do not collect any personal
875
+ information, such as your name, email address, or API keys.
876
+ - **Prompt and response content:** We do not log the content of your prompts or
877
+ the responses from the Gemini model.
878
+ - **File content:** We do not log the content of any files that are read or
879
+ written by the CLI.
880
+
881
+ **How to opt out:**
882
+
883
+ You can opt out of usage statistics collection at any time by setting the
884
+ `usageStatisticsEnabled` property to `false` in your `settings.json` file:
885
+
886
+ ```json
887
+ {
888
+ "usageStatisticsEnabled": false
889
+ }
890
+ ```