@office-ai/aioncli-core 0.26.0 → 0.30.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 (1466) hide show
  1. package/dist/docs/admin/enterprise-controls.md +115 -0
  2. package/dist/docs/architecture.md +3 -3
  3. package/dist/docs/assets/monitoring-dashboard-logs.png +0 -0
  4. package/dist/docs/assets/monitoring-dashboard-metrics.png +0 -0
  5. package/dist/docs/assets/monitoring-dashboard-overview.png +0 -0
  6. package/dist/docs/assets/theme-ansi-dark.png +0 -0
  7. package/dist/docs/assets/theme-atom-one-dark.png +0 -0
  8. package/dist/docs/assets/theme-ayu-dark.png +0 -0
  9. package/dist/docs/assets/theme-default-dark.png +0 -0
  10. package/dist/docs/assets/theme-dracula-dark.png +0 -0
  11. package/dist/docs/assets/theme-github-dark.png +0 -0
  12. package/dist/docs/assets/theme-holiday-dark.png +0 -0
  13. package/dist/docs/assets/theme-shades-of-purple-dark.png +0 -0
  14. package/dist/docs/assets/theme-solarized-dark.png +0 -0
  15. package/dist/docs/assets/theme-solarized-light.png +0 -0
  16. package/dist/docs/bedrock-integration-plan.md +595 -0
  17. package/dist/docs/changelogs/index.md +187 -0
  18. package/dist/docs/changelogs/latest.md +299 -209
  19. package/dist/docs/changelogs/preview.md +353 -115
  20. package/dist/docs/cli/checkpointing.md +2 -3
  21. package/dist/docs/cli/cli-reference.md +115 -0
  22. package/dist/docs/cli/commands.md +360 -247
  23. package/dist/docs/cli/creating-skills.md +80 -0
  24. package/dist/docs/cli/custom-commands.md +12 -9
  25. package/dist/docs/cli/enterprise.md +25 -5
  26. package/dist/docs/cli/gemini-md.md +20 -12
  27. package/dist/docs/cli/headless.md +34 -372
  28. package/dist/docs/cli/index.md +123 -63
  29. package/dist/docs/cli/keyboard-shortcuts.md +95 -84
  30. package/dist/docs/cli/model-routing.md +7 -2
  31. package/dist/docs/cli/model.md +1 -1
  32. package/dist/docs/cli/notifications.md +58 -0
  33. package/dist/docs/cli/plan-mode.md +190 -0
  34. package/dist/docs/cli/rewind.md +51 -0
  35. package/dist/docs/cli/sandbox.md +4 -3
  36. package/dist/docs/cli/session-management.md +61 -44
  37. package/dist/docs/cli/settings.md +95 -61
  38. package/dist/docs/cli/skills.md +49 -71
  39. package/dist/docs/cli/system-prompt.md +32 -0
  40. package/dist/docs/cli/telemetry.md +75 -4
  41. package/dist/docs/cli/themes.md +85 -53
  42. package/dist/docs/cli/tutorials/automation.md +187 -0
  43. package/dist/docs/cli/tutorials/file-management.md +142 -0
  44. package/dist/docs/cli/tutorials/mcp-setup.md +105 -0
  45. package/dist/docs/cli/tutorials/memory-management.md +126 -0
  46. package/dist/docs/cli/tutorials/session-management.md +105 -0
  47. package/dist/docs/cli/tutorials/shell-commands.md +107 -0
  48. package/dist/docs/cli/tutorials/skills-getting-started.md +36 -58
  49. package/dist/docs/cli/tutorials/task-planning.md +93 -0
  50. package/dist/docs/cli/tutorials/web-tools.md +78 -0
  51. package/dist/docs/cli/uninstall.md +18 -0
  52. package/dist/docs/core/concepts.md +137 -0
  53. package/dist/docs/core/index.md +6 -0
  54. package/dist/docs/core/memport.md +2 -0
  55. package/dist/docs/core/policy-engine.md +57 -7
  56. package/dist/docs/core/remote-agents.md +84 -0
  57. package/dist/docs/core/subagents.md +191 -0
  58. package/dist/docs/extensions/best-practices.md +188 -0
  59. package/dist/docs/extensions/index.md +38 -270
  60. package/dist/docs/extensions/reference.md +265 -0
  61. package/dist/docs/extensions/releasing.md +154 -0
  62. package/dist/docs/extensions/writing-extensions.md +292 -0
  63. package/dist/docs/get-started/authentication.md +162 -0
  64. package/dist/docs/get-started/configuration-v1.md +5 -11
  65. package/dist/docs/get-started/configuration.md +228 -99
  66. package/dist/docs/get-started/examples.md +39 -119
  67. package/dist/docs/get-started/gemini-3.md +2 -17
  68. package/dist/docs/get-started/index.md +6 -4
  69. package/dist/docs/get-started/installation.md +110 -77
  70. package/dist/docs/hooks/best-practices.md +219 -398
  71. package/dist/docs/hooks/index.md +99 -622
  72. package/dist/docs/hooks/reference.md +269 -115
  73. package/dist/docs/hooks/writing-hooks.md +203 -779
  74. package/dist/docs/index.md +146 -147
  75. package/dist/docs/local-development.md +1 -1
  76. package/dist/docs/redirects.json +20 -0
  77. package/dist/docs/reference/commands.md +563 -0
  78. package/dist/docs/reference/configuration.md +1804 -0
  79. package/dist/docs/reference/keyboard-shortcuts.md +168 -0
  80. package/dist/docs/reference/memport.md +246 -0
  81. package/dist/docs/reference/policy-engine.md +386 -0
  82. package/dist/docs/reference/tools.md +106 -0
  83. package/dist/docs/releases.md +3 -3
  84. package/dist/docs/resources/faq.md +175 -0
  85. package/dist/docs/resources/quota-and-pricing.md +199 -0
  86. package/dist/docs/resources/tos-privacy.md +102 -0
  87. package/dist/docs/resources/troubleshooting.md +176 -0
  88. package/dist/docs/resources/uninstall.md +56 -0
  89. package/dist/docs/sidebar.json +105 -217
  90. package/dist/docs/tools/activate-skill.md +43 -0
  91. package/dist/docs/tools/ask-user.md +95 -0
  92. package/dist/docs/tools/file-system.md +48 -139
  93. package/dist/docs/tools/index.md +92 -85
  94. package/dist/docs/tools/internal-docs.md +46 -0
  95. package/dist/docs/tools/mcp-server.md +29 -5
  96. package/dist/docs/tools/memory.md +21 -40
  97. package/dist/docs/tools/planning.md +55 -0
  98. package/dist/docs/tools/shell.md +45 -89
  99. package/dist/docs/tools/todos.md +22 -44
  100. package/dist/docs/tools/web-fetch.md +22 -46
  101. package/dist/docs/tools/web-search.md +19 -29
  102. package/dist/docs/tos-privacy.md +1 -1
  103. package/dist/docs/troubleshooting.md +20 -5
  104. package/dist/index.d.ts +2 -1
  105. package/dist/index.js +2 -1
  106. package/dist/index.js.map +1 -1
  107. package/dist/src/agents/a2a-client-manager.d.ts +4 -5
  108. package/dist/src/agents/a2a-client-manager.js +9 -131
  109. package/dist/src/agents/a2a-client-manager.js.map +1 -1
  110. package/dist/src/agents/a2a-client-manager.test.js +10 -27
  111. package/dist/src/agents/a2a-client-manager.test.js.map +1 -1
  112. package/dist/src/agents/a2a-errors.d.ts +65 -0
  113. package/dist/src/agents/a2a-errors.js +164 -0
  114. package/dist/src/agents/a2a-errors.js.map +1 -0
  115. package/dist/src/agents/a2a-errors.test.d.ts +6 -0
  116. package/dist/src/agents/a2a-errors.test.js +183 -0
  117. package/dist/src/agents/a2a-errors.test.js.map +1 -0
  118. package/dist/src/agents/a2aUtils.d.ts +3 -2
  119. package/dist/src/agents/a2aUtils.js +28 -26
  120. package/dist/src/agents/a2aUtils.js.map +1 -1
  121. package/dist/src/agents/a2aUtils.test.js +9 -9
  122. package/dist/src/agents/a2aUtils.test.js.map +1 -1
  123. package/dist/src/agents/acknowledgedAgents.d.ts +18 -0
  124. package/dist/src/agents/acknowledgedAgents.js +58 -0
  125. package/dist/src/agents/acknowledgedAgents.js.map +1 -0
  126. package/dist/src/agents/acknowledgedAgents.test.d.ts +6 -0
  127. package/dist/src/agents/acknowledgedAgents.test.js +70 -0
  128. package/dist/src/agents/acknowledgedAgents.test.js.map +1 -0
  129. package/dist/src/agents/agent-scheduler.d.ts +35 -0
  130. package/dist/src/agents/agent-scheduler.js +30 -0
  131. package/dist/src/agents/agent-scheduler.js.map +1 -0
  132. package/dist/src/agents/agent-scheduler.test.d.ts +6 -0
  133. package/dist/src/agents/agent-scheduler.test.js +56 -0
  134. package/dist/src/agents/agent-scheduler.test.js.map +1 -0
  135. package/dist/src/agents/agentLoader.d.ts +88 -0
  136. package/dist/src/agents/agentLoader.js +394 -0
  137. package/dist/src/agents/agentLoader.js.map +1 -0
  138. package/dist/src/agents/agentLoader.test.js +458 -0
  139. package/dist/src/agents/agentLoader.test.js.map +1 -0
  140. package/dist/src/agents/auth-provider/api-key-provider.d.ts +30 -0
  141. package/dist/src/agents/auth-provider/api-key-provider.js +66 -0
  142. package/dist/src/agents/auth-provider/api-key-provider.js.map +1 -0
  143. package/dist/src/agents/auth-provider/api-key-provider.test.d.ts +6 -0
  144. package/dist/src/agents/auth-provider/api-key-provider.test.js +130 -0
  145. package/dist/src/agents/auth-provider/api-key-provider.test.js.map +1 -0
  146. package/dist/src/agents/auth-provider/base-provider.d.ts +40 -0
  147. package/dist/src/agents/auth-provider/base-provider.js +43 -0
  148. package/dist/src/agents/auth-provider/base-provider.js.map +1 -0
  149. package/dist/src/agents/auth-provider/base-provider.test.d.ts +6 -0
  150. package/dist/src/agents/auth-provider/base-provider.test.js +107 -0
  151. package/dist/src/agents/auth-provider/base-provider.test.js.map +1 -0
  152. package/dist/src/agents/auth-provider/factory.d.ts +27 -0
  153. package/dist/src/agents/auth-provider/factory.js +161 -0
  154. package/dist/src/agents/auth-provider/factory.js.map +1 -0
  155. package/dist/src/agents/auth-provider/factory.test.d.ts +6 -0
  156. package/dist/src/agents/auth-provider/factory.test.js +344 -0
  157. package/dist/src/agents/auth-provider/factory.test.js.map +1 -0
  158. package/dist/src/agents/auth-provider/http-provider.d.ts +28 -0
  159. package/dist/src/agents/auth-provider/http-provider.js +73 -0
  160. package/dist/src/agents/auth-provider/http-provider.js.map +1 -0
  161. package/dist/src/agents/auth-provider/http-provider.test.d.ts +6 -0
  162. package/dist/src/agents/auth-provider/http-provider.test.js +112 -0
  163. package/dist/src/agents/auth-provider/http-provider.test.js.map +1 -0
  164. package/dist/src/agents/auth-provider/oauth2-provider.d.ts +65 -0
  165. package/dist/src/agents/auth-provider/oauth2-provider.js +233 -0
  166. package/dist/src/agents/auth-provider/oauth2-provider.js.map +1 -0
  167. package/dist/src/agents/auth-provider/oauth2-provider.test.d.ts +6 -0
  168. package/dist/src/agents/auth-provider/oauth2-provider.test.js +490 -0
  169. package/dist/src/agents/auth-provider/oauth2-provider.test.js.map +1 -0
  170. package/dist/src/agents/auth-provider/types.d.ts +74 -0
  171. package/dist/src/agents/auth-provider/types.js +7 -0
  172. package/dist/src/agents/auth-provider/types.js.map +1 -0
  173. package/dist/src/agents/auth-provider/value-resolver.d.ts +29 -0
  174. package/dist/src/agents/auth-provider/value-resolver.js +85 -0
  175. package/dist/src/agents/auth-provider/value-resolver.js.map +1 -0
  176. package/dist/src/agents/auth-provider/value-resolver.test.d.ts +6 -0
  177. package/dist/src/agents/auth-provider/value-resolver.test.js +100 -0
  178. package/dist/src/agents/auth-provider/value-resolver.test.js.map +1 -0
  179. package/dist/src/agents/browser/analyzeScreenshot.d.ts +35 -0
  180. package/dist/src/agents/browser/analyzeScreenshot.js +183 -0
  181. package/dist/src/agents/browser/analyzeScreenshot.js.map +1 -0
  182. package/dist/src/agents/browser/analyzeScreenshot.test.d.ts +6 -0
  183. package/dist/src/agents/browser/analyzeScreenshot.test.js +161 -0
  184. package/dist/src/agents/browser/analyzeScreenshot.test.js.map +1 -0
  185. package/dist/src/agents/browser/automationOverlay.d.ts +26 -0
  186. package/dist/src/agents/browser/automationOverlay.js +100 -0
  187. package/dist/src/agents/browser/automationOverlay.js.map +1 -0
  188. package/dist/src/agents/browser/browserAgentDefinition.d.ts +50 -0
  189. package/dist/src/agents/browser/browserAgentDefinition.js +141 -0
  190. package/dist/src/agents/browser/browserAgentDefinition.js.map +1 -0
  191. package/dist/src/agents/browser/browserAgentFactory.d.ts +42 -0
  192. package/dist/src/agents/browser/browserAgentFactory.js +116 -0
  193. package/dist/src/agents/browser/browserAgentFactory.js.map +1 -0
  194. package/dist/src/agents/browser/browserAgentFactory.test.d.ts +6 -0
  195. package/dist/src/agents/browser/browserAgentFactory.test.js +240 -0
  196. package/dist/src/agents/browser/browserAgentFactory.test.js.map +1 -0
  197. package/dist/src/agents/browser/browserAgentInvocation.d.ts +34 -0
  198. package/dist/src/agents/browser/browserAgentInvocation.js +386 -0
  199. package/dist/src/agents/browser/browserAgentInvocation.js.map +1 -0
  200. package/dist/src/agents/browser/browserAgentInvocation.test.d.ts +6 -0
  201. package/dist/src/agents/browser/browserAgentInvocation.test.js +382 -0
  202. package/dist/src/agents/browser/browserAgentInvocation.test.js.map +1 -0
  203. package/dist/src/agents/browser/browserManager.d.ts +115 -0
  204. package/dist/src/agents/browser/browserManager.js +370 -0
  205. package/dist/src/agents/browser/browserManager.js.map +1 -0
  206. package/dist/src/agents/browser/browserManager.test.d.ts +6 -0
  207. package/dist/src/agents/browser/browserManager.test.js +382 -0
  208. package/dist/src/agents/browser/browserManager.test.js.map +1 -0
  209. package/dist/src/agents/browser/mcpToolWrapper.d.ts +45 -0
  210. package/dist/src/agents/browser/mcpToolWrapper.js +358 -0
  211. package/dist/src/agents/browser/mcpToolWrapper.js.map +1 -0
  212. package/dist/src/agents/browser/mcpToolWrapper.test.d.ts +6 -0
  213. package/dist/src/agents/browser/mcpToolWrapper.test.js +126 -0
  214. package/dist/src/agents/browser/mcpToolWrapper.test.js.map +1 -0
  215. package/dist/src/agents/browser/mcpToolWrapperConfirmation.test.d.ts +6 -0
  216. package/dist/src/agents/browser/mcpToolWrapperConfirmation.test.js +59 -0
  217. package/dist/src/agents/browser/mcpToolWrapperConfirmation.test.js.map +1 -0
  218. package/dist/src/agents/browser/modelAvailability.d.ts +23 -0
  219. package/dist/src/agents/browser/modelAvailability.js +23 -0
  220. package/dist/src/agents/browser/modelAvailability.js.map +1 -0
  221. package/dist/src/agents/cli-help-agent.d.ts +24 -0
  222. package/dist/src/agents/cli-help-agent.js +80 -0
  223. package/dist/src/agents/cli-help-agent.js.map +1 -0
  224. package/dist/src/agents/cli-help-agent.test.js +53 -0
  225. package/dist/src/agents/cli-help-agent.test.js.map +1 -0
  226. package/dist/src/agents/codebase-investigator.d.ts +2 -1
  227. package/dist/src/agents/codebase-investigator.js +68 -39
  228. package/dist/src/agents/codebase-investigator.js.map +1 -1
  229. package/dist/src/agents/codebase-investigator.test.js +37 -9
  230. package/dist/src/agents/codebase-investigator.test.js.map +1 -1
  231. package/dist/src/agents/generalist-agent.d.ts +21 -0
  232. package/dist/src/agents/generalist-agent.js +60 -0
  233. package/dist/src/agents/generalist-agent.js.map +1 -0
  234. package/dist/src/agents/generalist-agent.test.d.ts +6 -0
  235. package/dist/src/agents/generalist-agent.test.js +32 -0
  236. package/dist/src/agents/generalist-agent.test.js.map +1 -0
  237. package/dist/src/agents/introspection-agent.d.ts +2 -2
  238. package/dist/src/agents/local-executor.d.ts +2 -0
  239. package/dist/src/agents/local-executor.js +186 -90
  240. package/dist/src/agents/local-executor.js.map +1 -1
  241. package/dist/src/agents/local-executor.test.js +431 -256
  242. package/dist/src/agents/local-executor.test.js.map +1 -1
  243. package/dist/src/agents/local-invocation.test.js +15 -5
  244. package/dist/src/agents/local-invocation.test.js.map +1 -1
  245. package/dist/src/agents/registry.d.ts +24 -8
  246. package/dist/src/agents/registry.js +193 -96
  247. package/dist/src/agents/registry.js.map +1 -1
  248. package/dist/src/agents/registry.test.js +509 -58
  249. package/dist/src/agents/registry.test.js.map +1 -1
  250. package/dist/src/agents/registry_acknowledgement.test.d.ts +6 -0
  251. package/dist/src/agents/registry_acknowledgement.test.js +130 -0
  252. package/dist/src/agents/registry_acknowledgement.test.js.map +1 -0
  253. package/dist/src/agents/remote-invocation.js +12 -14
  254. package/dist/src/agents/remote-invocation.js.map +1 -1
  255. package/dist/src/agents/remote-invocation.test.js +16 -4
  256. package/dist/src/agents/remote-invocation.test.js.map +1 -1
  257. package/dist/src/agents/subagent-tool-wrapper.js +1 -3
  258. package/dist/src/agents/subagent-tool-wrapper.js.map +1 -1
  259. package/dist/src/agents/subagent-tool-wrapper.test.js +18 -27
  260. package/dist/src/agents/subagent-tool-wrapper.test.js.map +1 -1
  261. package/dist/src/agents/subagent-tool.d.ts +15 -0
  262. package/dist/src/agents/subagent-tool.js +57 -0
  263. package/dist/src/agents/subagent-tool.js.map +1 -0
  264. package/dist/src/agents/subagent-tool.test.d.ts +6 -0
  265. package/dist/src/agents/subagent-tool.test.js +97 -0
  266. package/dist/src/agents/subagent-tool.test.js.map +1 -0
  267. package/dist/src/agents/types.d.ts +37 -22
  268. package/dist/src/agents/types.js +12 -0
  269. package/dist/src/agents/types.js.map +1 -1
  270. package/dist/src/availability/fallbackIntegration.test.js +57 -0
  271. package/dist/src/availability/fallbackIntegration.test.js.map +1 -0
  272. package/dist/src/availability/policyCatalog.d.ts +3 -0
  273. package/dist/src/availability/policyCatalog.js +29 -5
  274. package/dist/src/availability/policyCatalog.js.map +1 -1
  275. package/dist/src/availability/policyCatalog.test.js +20 -1
  276. package/dist/src/availability/policyCatalog.test.js.map +1 -1
  277. package/dist/src/availability/policyHelpers.js +40 -11
  278. package/dist/src/availability/policyHelpers.js.map +1 -1
  279. package/dist/src/availability/policyHelpers.test.js +72 -2
  280. package/dist/src/availability/policyHelpers.test.js.map +1 -1
  281. package/dist/src/availability/testUtils.js +1 -0
  282. package/dist/src/availability/testUtils.js.map +1 -1
  283. package/dist/src/billing/billing.d.ts +80 -0
  284. package/dist/src/billing/billing.js +128 -0
  285. package/dist/src/billing/billing.js.map +1 -0
  286. package/dist/src/billing/billing.test.d.ts +6 -0
  287. package/dist/src/billing/billing.test.js +182 -0
  288. package/dist/src/billing/billing.test.js.map +1 -0
  289. package/dist/src/billing/index.d.ts +6 -0
  290. package/dist/src/billing/index.js +7 -0
  291. package/dist/src/billing/index.js.map +1 -0
  292. package/dist/src/code_assist/admin/admin_controls.d.ts +49 -0
  293. package/dist/src/code_assist/admin/admin_controls.js +197 -0
  294. package/dist/src/code_assist/admin/admin_controls.js.map +1 -0
  295. package/dist/src/code_assist/admin/admin_controls.test.js +589 -0
  296. package/dist/src/code_assist/admin/admin_controls.test.js.map +1 -0
  297. package/dist/src/code_assist/admin/mcpUtils.d.ts +22 -0
  298. package/dist/src/code_assist/admin/mcpUtils.js +53 -0
  299. package/dist/src/code_assist/admin/mcpUtils.js.map +1 -0
  300. package/dist/src/code_assist/admin/mcpUtils.test.d.ts +6 -0
  301. package/dist/src/code_assist/admin/mcpUtils.test.js +101 -0
  302. package/dist/src/code_assist/admin/mcpUtils.test.js.map +1 -0
  303. package/dist/src/code_assist/codeAssist.js +2 -2
  304. package/dist/src/code_assist/codeAssist.js.map +1 -1
  305. package/dist/src/code_assist/codeAssist.test.d.ts +1 -1
  306. package/dist/src/code_assist/codeAssist.test.js +10 -6
  307. package/dist/src/code_assist/codeAssist.test.js.map +1 -1
  308. package/dist/src/code_assist/converter.js +8 -3
  309. package/dist/src/code_assist/converter.js.map +1 -1
  310. package/dist/src/code_assist/converter.test.js +8 -0
  311. package/dist/src/code_assist/converter.test.js.map +1 -1
  312. package/dist/src/code_assist/experiments/experiments.d.ts +1 -1
  313. package/dist/src/code_assist/experiments/experiments.js +22 -0
  314. package/dist/src/code_assist/experiments/experiments.js.map +1 -1
  315. package/dist/src/code_assist/experiments/experiments.test.js +1 -0
  316. package/dist/src/code_assist/experiments/experiments.test.js.map +1 -1
  317. package/dist/src/code_assist/experiments/experiments_local.test.d.ts +6 -0
  318. package/dist/src/code_assist/experiments/experiments_local.test.js +115 -0
  319. package/dist/src/code_assist/experiments/experiments_local.test.js.map +1 -0
  320. package/dist/src/code_assist/experiments/flagNames.d.ts +7 -0
  321. package/dist/src/code_assist/experiments/flagNames.js +7 -0
  322. package/dist/src/code_assist/experiments/flagNames.js.map +1 -1
  323. package/dist/src/code_assist/oauth-credential-storage.js +4 -4
  324. package/dist/src/code_assist/oauth-credential-storage.js.map +1 -1
  325. package/dist/src/code_assist/oauth2.d.ts +1 -1
  326. package/dist/src/code_assist/oauth2.test.js +10 -3
  327. package/dist/src/code_assist/oauth2.test.js.map +1 -1
  328. package/dist/src/code_assist/server.d.ts +7 -4
  329. package/dist/src/code_assist/server.js +20 -4
  330. package/dist/src/code_assist/server.js.map +1 -1
  331. package/dist/src/code_assist/server.test.js +18 -5
  332. package/dist/src/code_assist/server.test.js.map +1 -1
  333. package/dist/src/code_assist/setup.d.ts +35 -3
  334. package/dist/src/code_assist/setup.js +98 -16
  335. package/dist/src/code_assist/setup.js.map +1 -1
  336. package/dist/src/code_assist/setup.test.js +322 -5
  337. package/dist/src/code_assist/setup.test.js.map +1 -1
  338. package/dist/src/code_assist/telemetry.js +2 -1
  339. package/dist/src/code_assist/telemetry.js.map +1 -1
  340. package/dist/src/code_assist/telemetry.test.js +2 -1
  341. package/dist/src/code_assist/telemetry.test.js.map +1 -1
  342. package/dist/src/code_assist/types.d.ts +255 -24
  343. package/dist/src/code_assist/types.js +57 -7
  344. package/dist/src/code_assist/types.js.map +1 -1
  345. package/dist/src/commands/memory.d.ts +11 -0
  346. package/dist/src/commands/memory.js +81 -0
  347. package/dist/src/commands/memory.js.map +1 -0
  348. package/dist/src/commands/memory.test.d.ts +6 -0
  349. package/dist/src/commands/memory.test.js +155 -0
  350. package/dist/src/commands/memory.test.js.map +1 -0
  351. package/dist/src/commands/restore.js +1 -0
  352. package/dist/src/commands/restore.js.map +1 -1
  353. package/dist/src/config/agent-loop-context.d.ts +22 -0
  354. package/dist/src/config/agent-loop-context.js +7 -0
  355. package/dist/src/config/agent-loop-context.js.map +1 -0
  356. package/dist/src/config/config.d.ts +267 -58
  357. package/dist/src/config/config.js +663 -164
  358. package/dist/src/config/config.js.map +1 -1
  359. package/dist/src/config/config.test.d.ts +1 -1
  360. package/dist/src/config/config.test.js +585 -166
  361. package/dist/src/config/config.test.js.map +1 -1
  362. package/dist/src/config/constants.d.ts +4 -0
  363. package/dist/src/config/constants.js +8 -0
  364. package/dist/src/config/constants.js.map +1 -1
  365. package/dist/src/config/defaultModelConfigs.js +27 -8
  366. package/dist/src/config/defaultModelConfigs.js.map +1 -1
  367. package/dist/src/config/memory.d.ts +14 -0
  368. package/dist/src/config/memory.js +28 -0
  369. package/dist/src/config/memory.js.map +1 -0
  370. package/dist/src/config/memory.test.d.ts +6 -0
  371. package/dist/src/config/memory.test.js +82 -0
  372. package/dist/src/config/memory.test.js.map +1 -0
  373. package/dist/src/config/models.d.ts +77 -6
  374. package/dist/src/config/models.js +240 -23
  375. package/dist/src/config/models.js.map +1 -1
  376. package/dist/src/config/models.test.js +153 -47
  377. package/dist/src/config/models.test.js.map +1 -1
  378. package/dist/src/config/projectRegistry.d.ts +36 -0
  379. package/dist/src/config/projectRegistry.js +262 -0
  380. package/dist/src/config/projectRegistry.js.map +1 -0
  381. package/dist/src/config/projectRegistry.test.d.ts +6 -0
  382. package/dist/src/config/projectRegistry.test.js +219 -0
  383. package/dist/src/config/projectRegistry.test.js.map +1 -0
  384. package/dist/src/config/storage.d.ts +23 -1
  385. package/dist/src/config/storage.js +104 -15
  386. package/dist/src/config/storage.js.map +1 -1
  387. package/dist/src/config/storage.test.js +118 -2
  388. package/dist/src/config/storage.test.js.map +1 -1
  389. package/dist/src/config/storageMigration.d.ts +16 -0
  390. package/dist/src/config/storageMigration.js +42 -0
  391. package/dist/src/config/storageMigration.js.map +1 -0
  392. package/dist/src/config/storageMigration.test.d.ts +6 -0
  393. package/dist/src/config/storageMigration.test.js +70 -0
  394. package/dist/src/config/storageMigration.test.js.map +1 -0
  395. package/dist/src/config/trackerFeatureFlag.test.d.ts +6 -0
  396. package/dist/src/config/trackerFeatureFlag.test.js +43 -0
  397. package/dist/src/config/trackerFeatureFlag.test.js.map +1 -0
  398. package/dist/src/config/userHintService.d.ts +46 -0
  399. package/dist/src/config/userHintService.js +81 -0
  400. package/dist/src/config/userHintService.js.map +1 -0
  401. package/dist/src/config/userHintService.test.d.ts +6 -0
  402. package/dist/src/config/userHintService.test.js +62 -0
  403. package/dist/src/config/userHintService.test.js.map +1 -0
  404. package/dist/src/confirmation-bus/message-bus.js +3 -33
  405. package/dist/src/confirmation-bus/message-bus.js.map +1 -1
  406. package/dist/src/confirmation-bus/types.d.ts +95 -20
  407. package/dist/src/confirmation-bus/types.js +9 -3
  408. package/dist/src/confirmation-bus/types.js.map +1 -1
  409. package/dist/src/core/anthropicContentGenerator.d.ts +3 -2
  410. package/dist/src/core/anthropicContentGenerator.js +2 -2
  411. package/dist/src/core/anthropicContentGenerator.js.map +1 -1
  412. package/dist/src/core/baseLlmClient.d.ts +9 -0
  413. package/dist/src/core/baseLlmClient.js +9 -8
  414. package/dist/src/core/baseLlmClient.js.map +1 -1
  415. package/dist/src/core/baseLlmClient.test.js +17 -7
  416. package/dist/src/core/baseLlmClient.test.js.map +1 -1
  417. package/dist/src/core/bedrockContentGenerator.d.ts +73 -0
  418. package/dist/src/core/bedrockContentGenerator.js +628 -0
  419. package/dist/src/core/bedrockContentGenerator.js.map +1 -0
  420. package/dist/src/core/client.d.ts +13 -4
  421. package/dist/src/core/client.js +132 -41
  422. package/dist/src/core/client.js.map +1 -1
  423. package/dist/src/core/client.test.js +333 -79
  424. package/dist/src/core/client.test.js.map +1 -1
  425. package/dist/src/core/contentGenerator.d.ts +16 -3
  426. package/dist/src/core/contentGenerator.js +56 -2
  427. package/dist/src/core/contentGenerator.js.map +1 -1
  428. package/dist/src/core/contentGenerator.test.d.ts +1 -1
  429. package/dist/src/core/contentGenerator.test.js +127 -24
  430. package/dist/src/core/contentGenerator.test.js.map +1 -1
  431. package/dist/src/core/coreToolHookTriggers.d.ts +4 -36
  432. package/dist/src/core/coreToolHookTriggers.js +42 -150
  433. package/dist/src/core/coreToolHookTriggers.js.map +1 -1
  434. package/dist/src/core/coreToolHookTriggers.test.js +62 -94
  435. package/dist/src/core/coreToolHookTriggers.test.js.map +1 -1
  436. package/dist/src/core/coreToolScheduler.d.ts +1 -8
  437. package/dist/src/core/coreToolScheduler.js +160 -125
  438. package/dist/src/core/coreToolScheduler.js.map +1 -1
  439. package/dist/src/core/coreToolScheduler.test.js +480 -62
  440. package/dist/src/core/coreToolScheduler.test.js.map +1 -1
  441. package/dist/src/core/fakeContentGenerator.d.ts +4 -2
  442. package/dist/src/core/fakeContentGenerator.js +9 -2
  443. package/dist/src/core/fakeContentGenerator.js.map +1 -1
  444. package/dist/src/core/fakeContentGenerator.test.js +8 -7
  445. package/dist/src/core/fakeContentGenerator.test.js.map +1 -1
  446. package/dist/src/core/geminiChat.d.ts +31 -3
  447. package/dist/src/core/geminiChat.js +144 -34
  448. package/dist/src/core/geminiChat.js.map +1 -1
  449. package/dist/src/core/geminiChat.test.js +175 -50
  450. package/dist/src/core/geminiChat.test.js.map +1 -1
  451. package/dist/src/core/geminiChat_network_retry.test.js +146 -16
  452. package/dist/src/core/geminiChat_network_retry.test.js.map +1 -1
  453. package/dist/src/core/localLiteRtLmClient.d.ts +24 -0
  454. package/dist/src/core/localLiteRtLmClient.js +77 -0
  455. package/dist/src/core/localLiteRtLmClient.js.map +1 -0
  456. package/dist/src/core/localLiteRtLmClient.test.d.ts +6 -0
  457. package/dist/src/core/localLiteRtLmClient.test.js +87 -0
  458. package/dist/src/core/localLiteRtLmClient.test.js.map +1 -0
  459. package/dist/src/core/logger.js +11 -0
  460. package/dist/src/core/logger.js.map +1 -1
  461. package/dist/src/core/logger.test.js +2 -4
  462. package/dist/src/core/logger.test.js.map +1 -1
  463. package/dist/src/core/loggingContentGenerator.d.ts +7 -3
  464. package/dist/src/core/loggingContentGenerator.js +40 -21
  465. package/dist/src/core/loggingContentGenerator.js.map +1 -1
  466. package/dist/src/core/loggingContentGenerator.test.d.ts +1 -1
  467. package/dist/src/core/loggingContentGenerator.test.js +50 -8
  468. package/dist/src/core/loggingContentGenerator.test.js.map +1 -1
  469. package/dist/src/core/openaiContentGenerator.d.ts +4 -2
  470. package/dist/src/core/openaiContentGenerator.js +31 -23
  471. package/dist/src/core/openaiContentGenerator.js.map +1 -1
  472. package/dist/src/core/openaiContentGenerator.test.js +57 -4
  473. package/dist/src/core/openaiContentGenerator.test.js.map +1 -1
  474. package/dist/src/core/prompts-substitution.test.d.ts +6 -0
  475. package/dist/src/core/prompts-substitution.test.js +109 -0
  476. package/dist/src/core/prompts-substitution.test.js.map +1 -0
  477. package/dist/src/core/prompts.d.ts +11 -9
  478. package/dist/src/core/prompts.js +14 -405
  479. package/dist/src/core/prompts.js.map +1 -1
  480. package/dist/src/core/prompts.test.js +290 -56
  481. package/dist/src/core/prompts.test.js.map +1 -1
  482. package/dist/src/core/recordingContentGenerator.d.ts +5 -3
  483. package/dist/src/core/recordingContentGenerator.js +12 -5
  484. package/dist/src/core/recordingContentGenerator.js.map +1 -1
  485. package/dist/src/core/recordingContentGenerator.test.js +5 -4
  486. package/dist/src/core/recordingContentGenerator.test.js.map +1 -1
  487. package/dist/src/core/tokenLimits.js +6 -10
  488. package/dist/src/core/tokenLimits.js.map +1 -1
  489. package/dist/src/core/tokenLimits.test.js +8 -4
  490. package/dist/src/core/tokenLimits.test.js.map +1 -1
  491. package/dist/src/core/turn.d.ts +10 -2
  492. package/dist/src/core/turn.js +36 -17
  493. package/dist/src/core/turn.js.map +1 -1
  494. package/dist/src/core/turn.test.js +82 -2
  495. package/dist/src/core/turn.test.js.map +1 -1
  496. package/dist/src/fallback/handler.js +1 -1
  497. package/dist/src/fallback/handler.js.map +1 -1
  498. package/dist/src/fallback/handler.test.js +10 -12
  499. package/dist/src/fallback/handler.test.js.map +1 -1
  500. package/dist/src/fallback/types.d.ts +9 -0
  501. package/dist/src/generated/git-commit.d.ts +2 -2
  502. package/dist/src/generated/git-commit.js +2 -2
  503. package/dist/src/hooks/hookAggregator.js +16 -4
  504. package/dist/src/hooks/hookAggregator.js.map +1 -1
  505. package/dist/src/hooks/hookEventHandler.d.ts +10 -16
  506. package/dist/src/hooks/hookEventHandler.js +35 -281
  507. package/dist/src/hooks/hookEventHandler.js.map +1 -1
  508. package/dist/src/hooks/hookEventHandler.test.js +189 -4
  509. package/dist/src/hooks/hookEventHandler.test.js.map +1 -1
  510. package/dist/src/hooks/hookRegistry.js +8 -3
  511. package/dist/src/hooks/hookRegistry.js.map +1 -1
  512. package/dist/src/hooks/hookRegistry.test.js +31 -2
  513. package/dist/src/hooks/hookRegistry.test.js.map +1 -1
  514. package/dist/src/hooks/hookRunner.js +21 -18
  515. package/dist/src/hooks/hookRunner.js.map +1 -1
  516. package/dist/src/hooks/hookSystem.d.ts +59 -0
  517. package/dist/src/hooks/hookSystem.js +206 -6
  518. package/dist/src/hooks/hookSystem.js.map +1 -1
  519. package/dist/src/hooks/hookSystem.test.js +20 -9
  520. package/dist/src/hooks/hookSystem.test.js.map +1 -1
  521. package/dist/src/hooks/hookTranslator.js +13 -6
  522. package/dist/src/hooks/hookTranslator.js.map +1 -1
  523. package/dist/src/hooks/index.d.ts +0 -1
  524. package/dist/src/hooks/index.js +0 -2
  525. package/dist/src/hooks/index.js.map +1 -1
  526. package/dist/src/hooks/runtimeHooks.test.d.ts +6 -0
  527. package/dist/src/hooks/runtimeHooks.test.js +100 -0
  528. package/dist/src/hooks/runtimeHooks.test.js.map +1 -0
  529. package/dist/src/hooks/trustedHooks.js +2 -0
  530. package/dist/src/hooks/trustedHooks.js.map +1 -1
  531. package/dist/src/hooks/types.d.ts +49 -1
  532. package/dist/src/hooks/types.js +43 -19
  533. package/dist/src/hooks/types.js.map +1 -1
  534. package/dist/src/hooks/types.test.js +13 -29
  535. package/dist/src/hooks/types.test.js.map +1 -1
  536. package/dist/src/ide/detect-ide.d.ts +49 -0
  537. package/dist/src/ide/detect-ide.js +56 -3
  538. package/dist/src/ide/detect-ide.js.map +1 -1
  539. package/dist/src/ide/detect-ide.test.js +70 -0
  540. package/dist/src/ide/detect-ide.test.js.map +1 -1
  541. package/dist/src/ide/ide-client.d.ts +0 -10
  542. package/dist/src/ide/ide-client.js +31 -199
  543. package/dist/src/ide/ide-client.js.map +1 -1
  544. package/dist/src/ide/ide-client.test.js +39 -191
  545. package/dist/src/ide/ide-client.test.js.map +1 -1
  546. package/dist/src/ide/ide-connection-utils.d.ts +27 -0
  547. package/dist/src/ide/ide-connection-utils.js +195 -0
  548. package/dist/src/ide/ide-connection-utils.js.map +1 -0
  549. package/dist/src/ide/ide-connection-utils.test.d.ts +6 -0
  550. package/dist/src/ide/ide-connection-utils.test.js +372 -0
  551. package/dist/src/ide/ide-connection-utils.test.js.map +1 -0
  552. package/dist/src/ide/ide-installer.js +76 -5
  553. package/dist/src/ide/ide-installer.js.map +1 -1
  554. package/dist/src/ide/ide-installer.test.js +40 -2
  555. package/dist/src/ide/ide-installer.test.js.map +1 -1
  556. package/dist/src/ide/types.d.ts +40 -40
  557. package/dist/src/index.d.ts +30 -2
  558. package/dist/src/index.js +31 -2
  559. package/dist/src/index.js.map +1 -1
  560. package/dist/src/mcp/mcp-oauth-provider.d.ts +43 -0
  561. package/dist/src/mcp/mcp-oauth-provider.js +67 -0
  562. package/dist/src/mcp/mcp-oauth-provider.js.map +1 -0
  563. package/dist/src/mcp/mcp-oauth-provider.test.d.ts +6 -0
  564. package/dist/src/mcp/mcp-oauth-provider.test.js +63 -0
  565. package/dist/src/mcp/mcp-oauth-provider.test.js.map +1 -0
  566. package/dist/src/mcp/oauth-provider.d.ts +10 -3
  567. package/dist/src/mcp/oauth-provider.js +49 -14
  568. package/dist/src/mcp/oauth-provider.js.map +1 -1
  569. package/dist/src/mcp/oauth-provider.test.js +180 -1
  570. package/dist/src/mcp/oauth-provider.test.js.map +1 -1
  571. package/dist/src/mcp/oauth-token-storage.js +3 -0
  572. package/dist/src/mcp/oauth-token-storage.js.map +1 -1
  573. package/dist/src/mcp/oauth-utils.d.ts +13 -4
  574. package/dist/src/mcp/oauth-utils.js +25 -19
  575. package/dist/src/mcp/oauth-utils.js.map +1 -1
  576. package/dist/src/mcp/oauth-utils.test.js +13 -8
  577. package/dist/src/mcp/oauth-utils.test.js.map +1 -1
  578. package/dist/src/mcp/sa-impersonation-provider.js +3 -1
  579. package/dist/src/mcp/sa-impersonation-provider.js.map +1 -1
  580. package/dist/src/mcp/token-storage/file-token-storage.js +6 -2
  581. package/dist/src/mcp/token-storage/file-token-storage.js.map +1 -1
  582. package/dist/src/mcp/token-storage/hybrid-token-storage.js +4 -0
  583. package/dist/src/mcp/token-storage/hybrid-token-storage.js.map +1 -1
  584. package/dist/src/mcp/token-storage/hybrid-token-storage.test.js +12 -0
  585. package/dist/src/mcp/token-storage/hybrid-token-storage.test.js.map +1 -1
  586. package/dist/src/mcp/token-storage/keychain-token-storage.js +8 -0
  587. package/dist/src/mcp/token-storage/keychain-token-storage.js.map +1 -1
  588. package/dist/src/mcp/token-storage/keychain-token-storage.test.js +10 -5
  589. package/dist/src/mcp/token-storage/keychain-token-storage.test.js.map +1 -1
  590. package/dist/src/output/json-formatter.test.js +2 -0
  591. package/dist/src/output/json-formatter.test.js.map +1 -1
  592. package/dist/src/output/stream-json-formatter.test.js +4 -0
  593. package/dist/src/output/stream-json-formatter.test.js.map +1 -1
  594. package/dist/src/policy/config.d.ts +5 -3
  595. package/dist/src/policy/config.js +137 -64
  596. package/dist/src/policy/config.js.map +1 -1
  597. package/dist/src/policy/config.test.js +218 -12
  598. package/dist/src/policy/config.test.js.map +1 -1
  599. package/dist/src/policy/integrity.d.ts +45 -0
  600. package/dist/src/policy/integrity.js +121 -0
  601. package/dist/src/policy/integrity.js.map +1 -0
  602. package/dist/src/policy/integrity.test.d.ts +6 -0
  603. package/dist/src/policy/integrity.test.js +132 -0
  604. package/dist/src/policy/integrity.test.js.map +1 -0
  605. package/dist/src/policy/persistence.test.js +31 -11
  606. package/dist/src/policy/persistence.test.js.map +1 -1
  607. package/dist/src/policy/policies/conseca.toml +6 -0
  608. package/dist/src/policy/policies/plan.toml +56 -0
  609. package/dist/src/policy/policies/read-only.toml +1 -11
  610. package/dist/src/policy/policies/yolo.toml +13 -2
  611. package/dist/src/policy/policy-engine.d.ts +16 -11
  612. package/dist/src/policy/policy-engine.js +208 -101
  613. package/dist/src/policy/policy-engine.js.map +1 -1
  614. package/dist/src/policy/policy-engine.test.js +538 -199
  615. package/dist/src/policy/policy-engine.test.js.map +1 -1
  616. package/dist/src/policy/policy-updater.test.js +20 -6
  617. package/dist/src/policy/policy-updater.test.js.map +1 -1
  618. package/dist/src/policy/shell-safety.test.js +371 -8
  619. package/dist/src/policy/shell-safety.test.js.map +1 -1
  620. package/dist/src/policy/stable-stringify.js +1 -0
  621. package/dist/src/policy/stable-stringify.js.map +1 -1
  622. package/dist/src/policy/toml-loader.d.ts +5 -5
  623. package/dist/src/policy/toml-loader.js +65 -22
  624. package/dist/src/policy/toml-loader.js.map +1 -1
  625. package/dist/src/policy/toml-loader.test.js +88 -9
  626. package/dist/src/policy/toml-loader.test.js.map +1 -1
  627. package/dist/src/policy/types.d.ts +26 -1
  628. package/dist/src/policy/types.js +8 -0
  629. package/dist/src/policy/types.js.map +1 -1
  630. package/dist/src/policy/utils.d.ts +5 -0
  631. package/dist/src/policy/utils.js +32 -1
  632. package/dist/src/policy/utils.js.map +1 -1
  633. package/dist/src/policy/utils.test.js +67 -7
  634. package/dist/src/policy/utils.test.js.map +1 -1
  635. package/dist/src/policy/workspace-policy.test.d.ts +6 -0
  636. package/dist/src/policy/workspace-policy.test.js +231 -0
  637. package/dist/src/policy/workspace-policy.test.js.map +1 -0
  638. package/dist/src/prompts/promptProvider.d.ts +19 -0
  639. package/dist/src/prompts/promptProvider.js +174 -0
  640. package/dist/src/prompts/promptProvider.js.map +1 -0
  641. package/dist/src/prompts/promptProvider.test.d.ts +6 -0
  642. package/dist/src/prompts/promptProvider.test.js +71 -0
  643. package/dist/src/prompts/promptProvider.test.js.map +1 -0
  644. package/dist/src/prompts/snippets.d.ts +86 -0
  645. package/dist/src/prompts/snippets.js +573 -0
  646. package/dist/src/prompts/snippets.js.map +1 -0
  647. package/dist/src/prompts/snippets.legacy.d.ts +91 -0
  648. package/dist/src/prompts/snippets.legacy.js +573 -0
  649. package/dist/src/prompts/snippets.legacy.js.map +1 -0
  650. package/dist/src/prompts/utils.d.ts +23 -0
  651. package/dist/src/prompts/utils.js +82 -0
  652. package/dist/src/prompts/utils.js.map +1 -0
  653. package/dist/src/routing/modelRouterService.js +18 -8
  654. package/dist/src/routing/modelRouterService.js.map +1 -1
  655. package/dist/src/routing/modelRouterService.test.js +14 -6
  656. package/dist/src/routing/modelRouterService.test.js.map +1 -1
  657. package/dist/src/routing/routingStrategy.d.ts +2 -0
  658. package/dist/src/routing/strategies/approvalModeStrategy.d.ts +18 -0
  659. package/dist/src/routing/strategies/approvalModeStrategy.js +59 -0
  660. package/dist/src/routing/strategies/approvalModeStrategy.js.map +1 -0
  661. package/dist/src/routing/strategies/approvalModeStrategy.test.d.ts +6 -0
  662. package/dist/src/routing/strategies/approvalModeStrategy.test.js +140 -0
  663. package/dist/src/routing/strategies/approvalModeStrategy.test.js.map +1 -0
  664. package/dist/src/routing/strategies/classifierStrategy.js +14 -9
  665. package/dist/src/routing/strategies/classifierStrategy.js.map +1 -1
  666. package/dist/src/routing/strategies/classifierStrategy.test.js +72 -7
  667. package/dist/src/routing/strategies/classifierStrategy.test.js.map +1 -1
  668. package/dist/src/routing/strategies/compositeStrategy.js +1 -0
  669. package/dist/src/routing/strategies/compositeStrategy.js.map +1 -1
  670. package/dist/src/routing/strategies/defaultStrategy.d.ts +1 -1
  671. package/dist/src/routing/strategies/defaultStrategy.js +5 -4
  672. package/dist/src/routing/strategies/defaultStrategy.js.map +1 -1
  673. package/dist/src/routing/strategies/defaultStrategy.test.js +58 -4
  674. package/dist/src/routing/strategies/defaultStrategy.test.js.map +1 -1
  675. package/dist/src/routing/strategies/fallbackStrategy.d.ts +1 -1
  676. package/dist/src/routing/strategies/fallbackStrategy.js +3 -3
  677. package/dist/src/routing/strategies/fallbackStrategy.js.map +1 -1
  678. package/dist/src/routing/strategies/fallbackStrategy.test.js +13 -1
  679. package/dist/src/routing/strategies/fallbackStrategy.test.js.map +1 -1
  680. package/dist/src/routing/strategies/gemmaClassifierStrategy.d.ts +14 -0
  681. package/dist/src/routing/strategies/gemmaClassifierStrategy.js +182 -0
  682. package/dist/src/routing/strategies/gemmaClassifierStrategy.js.map +1 -0
  683. package/dist/src/routing/strategies/gemmaClassifierStrategy.test.d.ts +6 -0
  684. package/dist/src/routing/strategies/gemmaClassifierStrategy.test.js +218 -0
  685. package/dist/src/routing/strategies/gemmaClassifierStrategy.test.js.map +1 -0
  686. package/dist/src/routing/strategies/numericalClassifierStrategy.d.ts +13 -0
  687. package/dist/src/routing/strategies/numericalClassifierStrategy.js +188 -0
  688. package/dist/src/routing/strategies/numericalClassifierStrategy.js.map +1 -0
  689. package/dist/src/routing/strategies/numericalClassifierStrategy.test.d.ts +6 -0
  690. package/dist/src/routing/strategies/numericalClassifierStrategy.test.js +401 -0
  691. package/dist/src/routing/strategies/numericalClassifierStrategy.test.js.map +1 -0
  692. package/dist/src/routing/strategies/overrideStrategy.d.ts +1 -1
  693. package/dist/src/routing/strategies/overrideStrategy.js +6 -6
  694. package/dist/src/routing/strategies/overrideStrategy.js.map +1 -1
  695. package/dist/src/routing/strategies/overrideStrategy.test.js +13 -3
  696. package/dist/src/routing/strategies/overrideStrategy.test.js.map +1 -1
  697. package/dist/src/safety/built-in.js +1 -0
  698. package/dist/src/safety/built-in.js.map +1 -1
  699. package/dist/src/safety/conseca/conseca.d.ts +31 -0
  700. package/dist/src/safety/conseca/conseca.js +105 -0
  701. package/dist/src/safety/conseca/conseca.js.map +1 -0
  702. package/dist/src/safety/conseca/conseca.test.d.ts +6 -0
  703. package/dist/src/safety/conseca/conseca.test.js +226 -0
  704. package/dist/src/safety/conseca/conseca.test.js.map +1 -0
  705. package/dist/src/safety/conseca/integration.test.d.ts +6 -0
  706. package/dist/src/safety/conseca/integration.test.js +19 -0
  707. package/dist/src/safety/conseca/integration.test.js.map +1 -0
  708. package/dist/src/safety/conseca/policy-enforcer.d.ts +13 -0
  709. package/dist/src/safety/conseca/policy-enforcer.js +135 -0
  710. package/dist/src/safety/conseca/policy-enforcer.js.map +1 -0
  711. package/dist/src/safety/conseca/policy-enforcer.test.d.ts +6 -0
  712. package/dist/src/safety/conseca/policy-enforcer.test.js +141 -0
  713. package/dist/src/safety/conseca/policy-enforcer.test.js.map +1 -0
  714. package/dist/src/safety/conseca/policy-generator.d.ts +15 -0
  715. package/dist/src/safety/conseca/policy-generator.js +144 -0
  716. package/dist/src/safety/conseca/policy-generator.js.map +1 -0
  717. package/dist/src/safety/conseca/policy-generator.test.d.ts +6 -0
  718. package/dist/src/safety/conseca/policy-generator.test.js +84 -0
  719. package/dist/src/safety/conseca/policy-generator.test.js.map +1 -0
  720. package/dist/src/safety/conseca/types.d.ts +15 -0
  721. package/dist/src/safety/conseca/types.js +7 -0
  722. package/dist/src/safety/conseca/types.js.map +1 -0
  723. package/dist/src/safety/context-builder.js +3 -1
  724. package/dist/src/safety/context-builder.js.map +1 -1
  725. package/dist/src/scheduler/confirmation.d.ts +50 -0
  726. package/dist/src/scheduler/confirmation.js +204 -0
  727. package/dist/src/scheduler/confirmation.js.map +1 -0
  728. package/dist/src/scheduler/confirmation.test.d.ts +6 -0
  729. package/dist/src/scheduler/confirmation.test.js +310 -0
  730. package/dist/src/scheduler/confirmation.test.js.map +1 -0
  731. package/dist/src/scheduler/policy.d.ts +33 -0
  732. package/dist/src/scheduler/policy.js +119 -0
  733. package/dist/src/scheduler/policy.js.map +1 -0
  734. package/dist/src/scheduler/policy.test.d.ts +6 -0
  735. package/dist/src/scheduler/policy.test.js +419 -0
  736. package/dist/src/scheduler/policy.test.js.map +1 -0
  737. package/dist/src/scheduler/scheduler.d.ts +63 -0
  738. package/dist/src/scheduler/scheduler.js +371 -0
  739. package/dist/src/scheduler/scheduler.js.map +1 -0
  740. package/dist/src/scheduler/scheduler.test.d.ts +6 -0
  741. package/dist/src/scheduler/scheduler.test.js +937 -0
  742. package/dist/src/scheduler/scheduler.test.js.map +1 -0
  743. package/dist/src/scheduler/scheduler_parallel.test.d.ts +6 -0
  744. package/dist/src/scheduler/scheduler_parallel.test.js +401 -0
  745. package/dist/src/scheduler/scheduler_parallel.test.js.map +1 -0
  746. package/dist/src/scheduler/scheduler_waiting_callback.test.d.ts +6 -0
  747. package/dist/src/scheduler/scheduler_waiting_callback.test.js +62 -0
  748. package/dist/src/scheduler/scheduler_waiting_callback.test.js.map +1 -0
  749. package/dist/src/scheduler/state-manager.d.ts +74 -0
  750. package/dist/src/scheduler/state-manager.js +368 -0
  751. package/dist/src/scheduler/state-manager.js.map +1 -0
  752. package/dist/src/scheduler/state-manager.test.d.ts +6 -0
  753. package/dist/src/scheduler/state-manager.test.js +433 -0
  754. package/dist/src/scheduler/state-manager.test.js.map +1 -0
  755. package/dist/src/scheduler/tool-executor.js +25 -27
  756. package/dist/src/scheduler/tool-executor.js.map +1 -1
  757. package/dist/src/scheduler/tool-executor.test.js +26 -25
  758. package/dist/src/scheduler/tool-executor.test.js.map +1 -1
  759. package/dist/src/scheduler/tool-modifier.d.ts +23 -0
  760. package/dist/src/scheduler/tool-modifier.js +53 -0
  761. package/dist/src/scheduler/tool-modifier.js.map +1 -0
  762. package/dist/src/scheduler/tool-modifier.test.d.ts +6 -0
  763. package/dist/src/scheduler/tool-modifier.test.js +179 -0
  764. package/dist/src/scheduler/tool-modifier.test.js.map +1 -0
  765. package/dist/src/scheduler/types.d.ts +51 -8
  766. package/dist/src/scheduler/types.js +15 -1
  767. package/dist/src/scheduler/types.js.map +1 -1
  768. package/dist/src/services/FolderTrustDiscoveryService.d.ts +32 -0
  769. package/dist/src/services/FolderTrustDiscoveryService.js +169 -0
  770. package/dist/src/services/FolderTrustDiscoveryService.js.map +1 -0
  771. package/dist/src/services/FolderTrustDiscoveryService.test.d.ts +6 -0
  772. package/dist/src/services/FolderTrustDiscoveryService.test.js +118 -0
  773. package/dist/src/services/FolderTrustDiscoveryService.test.js.map +1 -0
  774. package/dist/src/services/chatCompressionService.d.ts +5 -1
  775. package/dist/src/services/chatCompressionService.js +169 -23
  776. package/dist/src/services/chatCompressionService.js.map +1 -1
  777. package/dist/src/services/chatCompressionService.test.js +382 -18
  778. package/dist/src/services/chatCompressionService.test.js.map +1 -1
  779. package/dist/src/services/chatRecordingService.d.ts +23 -3
  780. package/dist/src/services/chatRecordingService.js +137 -7
  781. package/dist/src/services/chatRecordingService.js.map +1 -1
  782. package/dist/src/services/chatRecordingService.test.js +450 -186
  783. package/dist/src/services/chatRecordingService.test.js.map +1 -1
  784. package/dist/src/services/contextManager.d.ts +7 -4
  785. package/dist/src/services/contextManager.js +43 -18
  786. package/dist/src/services/contextManager.js.map +1 -1
  787. package/dist/src/services/contextManager.test.js +54 -27
  788. package/dist/src/services/contextManager.test.js.map +1 -1
  789. package/dist/src/services/environmentSanitization.js +4 -3
  790. package/dist/src/services/environmentSanitization.js.map +1 -1
  791. package/dist/src/services/fileDiscoveryService.d.ts +14 -2
  792. package/dist/src/services/fileDiscoveryService.js +79 -7
  793. package/dist/src/services/fileDiscoveryService.js.map +1 -1
  794. package/dist/src/services/fileDiscoveryService.test.js +142 -10
  795. package/dist/src/services/fileDiscoveryService.test.js.map +1 -1
  796. package/dist/src/services/fileKeychain.d.ts +24 -0
  797. package/dist/src/services/fileKeychain.js +123 -0
  798. package/dist/src/services/fileKeychain.js.map +1 -0
  799. package/dist/src/services/gitService.d.ts +2 -1
  800. package/dist/src/services/gitService.js +16 -6
  801. package/dist/src/services/gitService.js.map +1 -1
  802. package/dist/src/services/gitService.test.js +26 -10
  803. package/dist/src/services/gitService.test.js.map +1 -1
  804. package/dist/src/services/keychainService.d.ts +51 -0
  805. package/dist/src/services/keychainService.js +133 -0
  806. package/dist/src/services/keychainService.js.map +1 -0
  807. package/dist/src/services/keychainService.test.d.ts +6 -0
  808. package/dist/src/services/keychainService.test.js +150 -0
  809. package/dist/src/services/keychainService.test.js.map +1 -0
  810. package/dist/src/services/keychainTypes.d.ts +41 -0
  811. package/dist/src/services/keychainTypes.js +18 -0
  812. package/dist/src/services/keychainTypes.js.map +1 -0
  813. package/dist/src/services/loopDetectionService.js +23 -4
  814. package/dist/src/services/loopDetectionService.js.map +1 -1
  815. package/dist/src/services/loopDetectionService.test.js +24 -0
  816. package/dist/src/services/loopDetectionService.test.js.map +1 -1
  817. package/dist/src/services/modelConfig.integration.test.js +2 -2
  818. package/dist/src/services/modelConfig.integration.test.js.map +1 -1
  819. package/dist/src/services/modelConfigService.d.ts +39 -4
  820. package/dist/src/services/modelConfigService.js +153 -76
  821. package/dist/src/services/modelConfigService.js.map +1 -1
  822. package/dist/src/services/modelConfigService.test.js +175 -0
  823. package/dist/src/services/modelConfigService.test.js.map +1 -1
  824. package/dist/src/services/modelConfigServiceTestUtils.js +3 -1
  825. package/dist/src/services/modelConfigServiceTestUtils.js.map +1 -1
  826. package/dist/src/services/sessionSummaryService.js +2 -0
  827. package/dist/src/services/sessionSummaryService.js.map +1 -1
  828. package/dist/src/services/sessionSummaryService.test.js +1 -1
  829. package/dist/src/services/sessionSummaryService.test.js.map +1 -1
  830. package/dist/src/services/shellExecutionService.d.ts +48 -0
  831. package/dist/src/services/shellExecutionService.js +339 -97
  832. package/dist/src/services/shellExecutionService.js.map +1 -1
  833. package/dist/src/services/shellExecutionService.test.js +132 -17
  834. package/dist/src/services/shellExecutionService.test.js.map +1 -1
  835. package/dist/src/services/test-data/resolved-aliases-retry.golden.json +26 -8
  836. package/dist/src/services/test-data/resolved-aliases.golden.json +26 -8
  837. package/dist/src/services/toolOutputMaskingService.d.ts +43 -0
  838. package/dist/src/services/toolOutputMaskingService.js +286 -0
  839. package/dist/src/services/toolOutputMaskingService.js.map +1 -0
  840. package/dist/src/services/toolOutputMaskingService.test.d.ts +6 -0
  841. package/dist/src/services/toolOutputMaskingService.test.js +546 -0
  842. package/dist/src/services/toolOutputMaskingService.test.js.map +1 -0
  843. package/dist/src/services/trackerService.d.ts +49 -0
  844. package/dist/src/services/trackerService.js +193 -0
  845. package/dist/src/services/trackerService.js.map +1 -0
  846. package/dist/src/services/trackerService.test.d.ts +6 -0
  847. package/dist/src/services/trackerService.test.js +117 -0
  848. package/dist/src/services/trackerService.test.js.map +1 -0
  849. package/dist/src/services/trackerTypes.d.ts +51 -0
  850. package/dist/src/services/trackerTypes.js +33 -0
  851. package/dist/src/services/trackerTypes.js.map +1 -0
  852. package/dist/src/skills/builtin/skill-creator/SKILL.md +382 -0
  853. package/dist/src/skills/builtin/skill-creator/scripts/init_skill.cjs +239 -0
  854. package/dist/src/skills/builtin/skill-creator/scripts/package_skill.cjs +106 -0
  855. package/dist/src/skills/builtin/skill-creator/scripts/validate_skill.cjs +131 -0
  856. package/dist/src/skills/skillLoader.d.ts +3 -0
  857. package/dist/src/skills/skillLoader.js +73 -12
  858. package/dist/src/skills/skillLoader.js.map +1 -1
  859. package/dist/src/skills/skillLoader.test.d.ts +5 -0
  860. package/dist/src/skills/skillLoader.test.js +195 -1
  861. package/dist/src/skills/skillLoader.test.js.map +1 -1
  862. package/dist/src/skills/skillManager.d.ts +25 -3
  863. package/dist/src/skills/skillManager.js +76 -11
  864. package/dist/src/skills/skillManager.js.map +1 -1
  865. package/dist/src/skills/skillManager.test.js +209 -9
  866. package/dist/src/skills/skillManager.test.js.map +1 -1
  867. package/dist/src/skills/skillManagerAlias.test.d.ts +6 -0
  868. package/dist/src/skills/skillManagerAlias.test.js +140 -0
  869. package/dist/src/skills/skillManagerAlias.test.js.map +1 -0
  870. package/dist/src/telemetry/activity-monitor.js +1 -0
  871. package/dist/src/telemetry/activity-monitor.js.map +1 -1
  872. package/dist/src/telemetry/billingEvents.d.ts +75 -0
  873. package/dist/src/telemetry/billingEvents.js +181 -0
  874. package/dist/src/telemetry/billingEvents.js.map +1 -0
  875. package/dist/src/telemetry/billingEvents.test.d.ts +6 -0
  876. package/dist/src/telemetry/billingEvents.test.js +139 -0
  877. package/dist/src/telemetry/billingEvents.test.js.map +1 -0
  878. package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +25 -4
  879. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +207 -12
  880. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -1
  881. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +210 -6
  882. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +1 -1
  883. package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +23 -1
  884. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +61 -1
  885. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -1
  886. package/dist/src/telemetry/conseca-logger.d.ts +9 -0
  887. package/dist/src/telemetry/conseca-logger.js +91 -0
  888. package/dist/src/telemetry/conseca-logger.js.map +1 -0
  889. package/dist/src/telemetry/conseca-logger.test.d.ts +6 -0
  890. package/dist/src/telemetry/conseca-logger.test.js +90 -0
  891. package/dist/src/telemetry/conseca-logger.test.js.map +1 -0
  892. package/dist/src/telemetry/file-exporters.js +2 -1
  893. package/dist/src/telemetry/file-exporters.js.map +1 -1
  894. package/dist/src/telemetry/file-exporters.test.d.ts +6 -0
  895. package/dist/src/telemetry/file-exporters.test.js +142 -0
  896. package/dist/src/telemetry/file-exporters.test.js.map +1 -0
  897. package/dist/src/telemetry/gcp-exporters.js +1 -0
  898. package/dist/src/telemetry/gcp-exporters.js.map +1 -1
  899. package/dist/src/telemetry/index.d.ts +3 -2
  900. package/dist/src/telemetry/index.js +3 -2
  901. package/dist/src/telemetry/index.js.map +1 -1
  902. package/dist/src/telemetry/integration.test.circular.js +2 -1
  903. package/dist/src/telemetry/integration.test.circular.js.map +1 -1
  904. package/dist/src/telemetry/llmRole.d.ts +18 -0
  905. package/dist/src/telemetry/llmRole.js +20 -0
  906. package/dist/src/telemetry/llmRole.js.map +1 -0
  907. package/dist/src/telemetry/loggers.d.ts +8 -1
  908. package/dist/src/telemetry/loggers.js +113 -10
  909. package/dist/src/telemetry/loggers.js.map +1 -1
  910. package/dist/src/telemetry/loggers.test.circular.js +5 -2
  911. package/dist/src/telemetry/loggers.test.circular.js.map +1 -1
  912. package/dist/src/telemetry/loggers.test.js +169 -19
  913. package/dist/src/telemetry/loggers.test.js.map +1 -1
  914. package/dist/src/telemetry/memory-monitor.test.js +1 -0
  915. package/dist/src/telemetry/memory-monitor.test.js.map +1 -1
  916. package/dist/src/telemetry/metrics.d.ts +39 -1
  917. package/dist/src/telemetry/metrics.js +105 -4
  918. package/dist/src/telemetry/metrics.js.map +1 -1
  919. package/dist/src/telemetry/metrics.test.js +84 -4
  920. package/dist/src/telemetry/metrics.test.js.map +1 -1
  921. package/dist/src/telemetry/sanitize.test.js +2 -0
  922. package/dist/src/telemetry/sanitize.test.js.map +1 -1
  923. package/dist/src/telemetry/sdk.js +24 -0
  924. package/dist/src/telemetry/sdk.js.map +1 -1
  925. package/dist/src/telemetry/sdk.test.js +5 -1
  926. package/dist/src/telemetry/sdk.test.js.map +1 -1
  927. package/dist/src/telemetry/semantic.js +92 -0
  928. package/dist/src/telemetry/semantic.js.map +1 -1
  929. package/dist/src/telemetry/semantic.truncation.test.d.ts +1 -0
  930. package/dist/src/telemetry/semantic.truncation.test.js +92 -0
  931. package/dist/src/telemetry/semantic.truncation.test.js.map +1 -0
  932. package/dist/src/telemetry/telemetryAttributes.js +5 -0
  933. package/dist/src/telemetry/telemetryAttributes.js.map +1 -1
  934. package/dist/src/telemetry/trace.test.d.ts +6 -0
  935. package/dist/src/telemetry/trace.test.js +116 -0
  936. package/dist/src/telemetry/trace.test.js.map +1 -0
  937. package/dist/src/telemetry/types.d.ts +98 -15
  938. package/dist/src/telemetry/types.js +227 -16
  939. package/dist/src/telemetry/types.js.map +1 -1
  940. package/dist/src/telemetry/uiTelemetry.d.ts +16 -0
  941. package/dist/src/telemetry/uiTelemetry.js +39 -0
  942. package/dist/src/telemetry/uiTelemetry.js.map +1 -1
  943. package/dist/src/telemetry/uiTelemetry.test.js +29 -0
  944. package/dist/src/telemetry/uiTelemetry.test.js.map +1 -1
  945. package/dist/src/test-utils/mock-message-bus.d.ts +1 -19
  946. package/dist/src/test-utils/mock-message-bus.js +5 -65
  947. package/dist/src/test-utils/mock-message-bus.js.map +1 -1
  948. package/dist/src/test-utils/mock-tool.d.ts +1 -0
  949. package/dist/src/test-utils/mock-tool.js +1 -0
  950. package/dist/src/test-utils/mock-tool.js.map +1 -1
  951. package/dist/src/test-utils/mockWorkspaceContext.js +1 -0
  952. package/dist/src/test-utils/mockWorkspaceContext.js.map +1 -1
  953. package/dist/src/tools/activate-skill.d.ts +1 -0
  954. package/dist/src/tools/activate-skill.js +28 -25
  955. package/dist/src/tools/activate-skill.js.map +1 -1
  956. package/dist/src/tools/activate-skill.test.js +24 -6
  957. package/dist/src/tools/activate-skill.test.js.map +1 -1
  958. package/dist/src/tools/ask-user.d.ts +29 -0
  959. package/dist/src/tools/ask-user.js +141 -0
  960. package/dist/src/tools/ask-user.js.map +1 -0
  961. package/dist/src/tools/ask-user.test.d.ts +6 -0
  962. package/dist/src/tools/ask-user.test.js +446 -0
  963. package/dist/src/tools/ask-user.test.js.map +1 -0
  964. package/dist/src/tools/confirmation-policy.test.js +21 -0
  965. package/dist/src/tools/confirmation-policy.test.js.map +1 -1
  966. package/dist/src/tools/constants.d.ts +7 -0
  967. package/dist/src/tools/constants.js +8 -0
  968. package/dist/src/tools/constants.js.map +1 -0
  969. package/dist/src/tools/definitions/base-declarations.d.ts +26 -0
  970. package/dist/src/tools/definitions/base-declarations.js +30 -0
  971. package/dist/src/tools/definitions/base-declarations.js.map +1 -0
  972. package/dist/src/tools/definitions/coreTools.d.ts +36 -0
  973. package/dist/src/tools/definitions/coreTools.js +143 -0
  974. package/dist/src/tools/definitions/coreTools.js.map +1 -0
  975. package/dist/src/tools/definitions/coreToolsModelSnapshots.test.d.ts +6 -0
  976. package/dist/src/tools/definitions/coreToolsModelSnapshots.test.js +82 -0
  977. package/dist/src/tools/definitions/coreToolsModelSnapshots.test.js.map +1 -0
  978. package/dist/src/tools/definitions/dynamic-declaration-helpers.d.ts +30 -0
  979. package/dist/src/tools/definitions/dynamic-declaration-helpers.js +135 -0
  980. package/dist/src/tools/definitions/dynamic-declaration-helpers.js.map +1 -0
  981. package/dist/src/tools/definitions/model-family-sets/default-legacy.d.ts +11 -0
  982. package/dist/src/tools/definitions/model-family-sets/default-legacy.js +575 -0
  983. package/dist/src/tools/definitions/model-family-sets/default-legacy.js.map +1 -0
  984. package/dist/src/tools/definitions/model-family-sets/gemini-3.d.ts +14 -0
  985. package/dist/src/tools/definitions/model-family-sets/gemini-3.js +578 -0
  986. package/dist/src/tools/definitions/model-family-sets/gemini-3.js.map +1 -0
  987. package/dist/src/tools/definitions/modelFamilyService.d.ts +14 -0
  988. package/dist/src/tools/definitions/modelFamilyService.js +29 -0
  989. package/dist/src/tools/definitions/modelFamilyService.js.map +1 -0
  990. package/dist/src/tools/definitions/resolver.d.ts +15 -0
  991. package/dist/src/tools/definitions/resolver.js +27 -0
  992. package/dist/src/tools/definitions/resolver.js.map +1 -0
  993. package/dist/src/tools/definitions/resolver.test.d.ts +6 -0
  994. package/dist/src/tools/definitions/resolver.test.js +58 -0
  995. package/dist/src/tools/definitions/resolver.test.js.map +1 -0
  996. package/dist/src/tools/definitions/trackerTools.d.ts +12 -0
  997. package/dist/src/tools/definitions/trackerTools.js +146 -0
  998. package/dist/src/tools/definitions/trackerTools.js.map +1 -0
  999. package/dist/src/tools/definitions/types.d.ts +44 -0
  1000. package/dist/src/tools/definitions/types.js +7 -0
  1001. package/dist/src/tools/definitions/types.js.map +1 -0
  1002. package/dist/src/tools/diff-utils.d.ts +9 -0
  1003. package/dist/src/tools/diff-utils.js +66 -0
  1004. package/dist/src/tools/diff-utils.js.map +1 -0
  1005. package/dist/src/tools/diff-utils.test.d.ts +6 -0
  1006. package/dist/src/tools/diff-utils.test.js +53 -0
  1007. package/dist/src/tools/diff-utils.test.js.map +1 -0
  1008. package/dist/src/tools/diffOptions.d.ts +1 -1
  1009. package/dist/src/tools/diffOptions.js +7 -3
  1010. package/dist/src/tools/diffOptions.js.map +1 -1
  1011. package/dist/src/tools/diffOptions.test.js +17 -0
  1012. package/dist/src/tools/diffOptions.test.js.map +1 -1
  1013. package/dist/src/tools/edit.d.ts +1 -0
  1014. package/dist/src/tools/edit.js +52 -82
  1015. package/dist/src/tools/edit.js.map +1 -1
  1016. package/dist/src/tools/edit.test.js +96 -1
  1017. package/dist/src/tools/edit.test.js.map +1 -1
  1018. package/dist/src/tools/enter-plan-mode.d.ts +25 -0
  1019. package/dist/src/tools/enter-plan-mode.js +69 -0
  1020. package/dist/src/tools/enter-plan-mode.js.map +1 -0
  1021. package/dist/src/tools/enter-plan-mode.test.d.ts +6 -0
  1022. package/dist/src/tools/enter-plan-mode.test.js +102 -0
  1023. package/dist/src/tools/enter-plan-mode.test.js.map +1 -0
  1024. package/dist/src/tools/exit-plan-mode.d.ts +33 -0
  1025. package/dist/src/tools/exit-plan-mode.js +173 -0
  1026. package/dist/src/tools/exit-plan-mode.js.map +1 -0
  1027. package/dist/src/tools/exit-plan-mode.test.d.ts +6 -0
  1028. package/dist/src/tools/exit-plan-mode.test.js +311 -0
  1029. package/dist/src/tools/exit-plan-mode.test.js.map +1 -0
  1030. package/dist/src/tools/get-internal-docs.d.ts +1 -0
  1031. package/dist/src/tools/get-internal-docs.js +17 -27
  1032. package/dist/src/tools/get-internal-docs.js.map +1 -1
  1033. package/dist/src/tools/glob.d.ts +1 -0
  1034. package/dist/src/tools/glob.js +15 -36
  1035. package/dist/src/tools/glob.js.map +1 -1
  1036. package/dist/src/tools/glob.test.js +219 -280
  1037. package/dist/src/tools/glob.test.js.map +1 -1
  1038. package/dist/src/tools/grep-utils.d.ts +49 -0
  1039. package/dist/src/tools/grep-utils.js +147 -0
  1040. package/dist/src/tools/grep-utils.js.map +1 -0
  1041. package/dist/src/tools/grep.d.ts +18 -8
  1042. package/dist/src/tools/grep.js +273 -247
  1043. package/dist/src/tools/grep.js.map +1 -1
  1044. package/dist/src/tools/grep.test.js +165 -16
  1045. package/dist/src/tools/grep.test.js.map +1 -1
  1046. package/dist/src/tools/line-endings.test.d.ts +6 -0
  1047. package/dist/src/tools/line-endings.test.js +209 -0
  1048. package/dist/src/tools/line-endings.test.js.map +1 -0
  1049. package/dist/src/tools/ls.d.ts +1 -0
  1050. package/dist/src/tools/ls.js +18 -37
  1051. package/dist/src/tools/ls.js.map +1 -1
  1052. package/dist/src/tools/ls.test.js +25 -3
  1053. package/dist/src/tools/ls.test.js.map +1 -1
  1054. package/dist/src/tools/mcp-client-manager.d.ts +18 -5
  1055. package/dist/src/tools/mcp-client-manager.js +118 -37
  1056. package/dist/src/tools/mcp-client-manager.js.map +1 -1
  1057. package/dist/src/tools/mcp-client-manager.test.js +124 -16
  1058. package/dist/src/tools/mcp-client-manager.test.js.map +1 -1
  1059. package/dist/src/tools/mcp-client.d.ts +18 -7
  1060. package/dist/src/tools/mcp-client.js +137 -42
  1061. package/dist/src/tools/mcp-client.js.map +1 -1
  1062. package/dist/src/tools/mcp-client.test.js +248 -29
  1063. package/dist/src/tools/mcp-client.test.js.map +1 -1
  1064. package/dist/src/tools/mcp-tool.d.ts +26 -4
  1065. package/dist/src/tools/mcp-tool.js +17 -5
  1066. package/dist/src/tools/mcp-tool.js.map +1 -1
  1067. package/dist/src/tools/mcp-tool.test.js +5 -5
  1068. package/dist/src/tools/mcp-tool.test.js.map +1 -1
  1069. package/dist/src/tools/memoryTool.d.ts +2 -7
  1070. package/dist/src/tools/memoryTool.js +54 -80
  1071. package/dist/src/tools/memoryTool.js.map +1 -1
  1072. package/dist/src/tools/memoryTool.test.js +62 -114
  1073. package/dist/src/tools/memoryTool.test.js.map +1 -1
  1074. package/dist/src/tools/modifiable-tool.test.js +3 -3
  1075. package/dist/src/tools/modifiable-tool.test.js.map +1 -1
  1076. package/dist/src/tools/omissionPlaceholderDetector.d.ts +15 -0
  1077. package/dist/src/tools/omissionPlaceholderDetector.js +90 -0
  1078. package/dist/src/tools/omissionPlaceholderDetector.js.map +1 -0
  1079. package/dist/src/tools/omissionPlaceholderDetector.test.d.ts +6 -0
  1080. package/dist/src/tools/omissionPlaceholderDetector.test.js +49 -0
  1081. package/dist/src/tools/omissionPlaceholderDetector.test.js.map +1 -0
  1082. package/dist/src/tools/read-file.d.ts +2 -0
  1083. package/dist/src/tools/read-file.js +26 -30
  1084. package/dist/src/tools/read-file.js.map +1 -1
  1085. package/dist/src/tools/read-file.test.js +90 -3
  1086. package/dist/src/tools/read-file.test.js.map +1 -1
  1087. package/dist/src/tools/read-many-files.d.ts +1 -0
  1088. package/dist/src/tools/read-many-files.js +21 -63
  1089. package/dist/src/tools/read-many-files.js.map +1 -1
  1090. package/dist/src/tools/read-many-files.test.js +43 -1
  1091. package/dist/src/tools/read-many-files.test.js.map +1 -1
  1092. package/dist/src/tools/ripGrep.d.ts +20 -3
  1093. package/dist/src/tools/ripGrep.js +217 -189
  1094. package/dist/src/tools/ripGrep.js.map +1 -1
  1095. package/dist/src/tools/ripGrep.test.js +745 -567
  1096. package/dist/src/tools/ripGrep.test.js.map +1 -1
  1097. package/dist/src/tools/shell.d.ts +1 -0
  1098. package/dist/src/tools/shell.js +8 -3
  1099. package/dist/src/tools/shell.js.map +1 -1
  1100. package/dist/src/tools/shell.test.js +248 -11
  1101. package/dist/src/tools/shell.test.js.map +1 -1
  1102. package/dist/src/tools/tool-error.d.ts +4 -0
  1103. package/dist/src/tools/tool-error.js +4 -0
  1104. package/dist/src/tools/tool-error.js.map +1 -1
  1105. package/dist/src/tools/tool-names.d.ts +27 -17
  1106. package/dist/src/tools/tool-names.js +59 -20
  1107. package/dist/src/tools/tool-names.js.map +1 -1
  1108. package/dist/src/tools/tool-names.test.js +55 -2
  1109. package/dist/src/tools/tool-names.test.js.map +1 -1
  1110. package/dist/src/tools/tool-registry.d.ts +10 -2
  1111. package/dist/src/tools/tool-registry.js +58 -11
  1112. package/dist/src/tools/tool-registry.js.map +1 -1
  1113. package/dist/src/tools/tool-registry.test.js +113 -1
  1114. package/dist/src/tools/tool-registry.test.js.map +1 -1
  1115. package/dist/src/tools/tools.d.ts +52 -5
  1116. package/dist/src/tools/tools.js +35 -18
  1117. package/dist/src/tools/tools.js.map +1 -1
  1118. package/dist/src/tools/trackerTools.d.ts +122 -0
  1119. package/dist/src/tools/trackerTools.js +365 -0
  1120. package/dist/src/tools/trackerTools.js.map +1 -0
  1121. package/dist/src/tools/trackerTools.test.d.ts +6 -0
  1122. package/dist/src/tools/trackerTools.test.js +97 -0
  1123. package/dist/src/tools/trackerTools.test.js.map +1 -0
  1124. package/dist/src/tools/web-fetch.d.ts +1 -0
  1125. package/dist/src/tools/web-fetch.js +12 -12
  1126. package/dist/src/tools/web-fetch.js.map +1 -1
  1127. package/dist/src/tools/web-search.d.ts +1 -0
  1128. package/dist/src/tools/web-search.js +9 -11
  1129. package/dist/src/tools/web-search.js.map +1 -1
  1130. package/dist/src/tools/write-file.d.ts +1 -4
  1131. package/dist/src/tools/write-file.js +42 -35
  1132. package/dist/src/tools/write-file.js.map +1 -1
  1133. package/dist/src/tools/write-file.test.js +105 -18
  1134. package/dist/src/tools/write-file.test.js.map +1 -1
  1135. package/dist/src/tools/write-todos.d.ts +1 -30
  1136. package/dist/src/tools/write-todos.js +5 -123
  1137. package/dist/src/tools/write-todos.js.map +1 -1
  1138. package/dist/src/tools/xcode-mcp-fix-transport.d.ts +30 -0
  1139. package/dist/src/tools/xcode-mcp-fix-transport.js +82 -0
  1140. package/dist/src/tools/xcode-mcp-fix-transport.js.map +1 -0
  1141. package/dist/src/tools/xcode-mcp-fix-transport.test.d.ts +1 -0
  1142. package/dist/src/tools/xcode-mcp-fix-transport.test.js +98 -0
  1143. package/dist/src/tools/xcode-mcp-fix-transport.test.js.map +1 -0
  1144. package/dist/src/utils/apiConversionUtils.d.ts +12 -0
  1145. package/dist/src/utils/apiConversionUtils.js +46 -0
  1146. package/dist/src/utils/apiConversionUtils.js.map +1 -0
  1147. package/dist/src/utils/apiConversionUtils.test.d.ts +6 -0
  1148. package/dist/src/utils/apiConversionUtils.test.js +150 -0
  1149. package/dist/src/utils/apiConversionUtils.test.js.map +1 -0
  1150. package/dist/src/utils/approvalModeUtils.d.ts +14 -0
  1151. package/dist/src/utils/approvalModeUtils.js +35 -0
  1152. package/dist/src/utils/approvalModeUtils.js.map +1 -0
  1153. package/dist/src/utils/approvalModeUtils.test.d.ts +6 -0
  1154. package/dist/src/utils/approvalModeUtils.test.js +36 -0
  1155. package/dist/src/utils/approvalModeUtils.test.js.map +1 -0
  1156. package/dist/src/utils/authConsent.d.ts +10 -0
  1157. package/dist/src/utils/authConsent.js +52 -0
  1158. package/dist/src/utils/authConsent.js.map +1 -0
  1159. package/dist/src/utils/authConsent.test.d.ts +6 -0
  1160. package/dist/src/utils/authConsent.test.js +74 -0
  1161. package/dist/src/utils/authConsent.test.js.map +1 -0
  1162. package/dist/src/utils/bfsFileSearch.js +2 -0
  1163. package/dist/src/utils/bfsFileSearch.js.map +1 -1
  1164. package/dist/src/utils/bfsFileSearch.test.js +6 -1
  1165. package/dist/src/utils/bfsFileSearch.test.js.map +1 -1
  1166. package/dist/src/utils/cache.d.ts +63 -0
  1167. package/dist/src/utils/cache.js +103 -0
  1168. package/dist/src/utils/cache.js.map +1 -0
  1169. package/dist/src/utils/cache.test.d.ts +6 -0
  1170. package/dist/src/utils/cache.test.js +158 -0
  1171. package/dist/src/utils/cache.test.js.map +1 -0
  1172. package/dist/src/utils/checkpointUtils.js +2 -0
  1173. package/dist/src/utils/checkpointUtils.js.map +1 -1
  1174. package/dist/src/utils/checks.d.ts +19 -0
  1175. package/dist/src/utils/checks.js +24 -0
  1176. package/dist/src/utils/checks.js.map +1 -0
  1177. package/dist/src/utils/checks.test.d.ts +6 -0
  1178. package/dist/src/utils/checks.test.js +29 -0
  1179. package/dist/src/utils/checks.test.js.map +1 -0
  1180. package/dist/src/utils/compatibility.d.ts +41 -0
  1181. package/dist/src/utils/compatibility.js +112 -0
  1182. package/dist/src/utils/compatibility.js.map +1 -0
  1183. package/dist/src/utils/compatibility.test.d.ts +6 -0
  1184. package/dist/src/utils/compatibility.test.js +233 -0
  1185. package/dist/src/utils/compatibility.test.js.map +1 -0
  1186. package/dist/src/utils/constants.d.ts +7 -0
  1187. package/dist/src/utils/constants.js +8 -0
  1188. package/dist/src/utils/constants.js.map +1 -0
  1189. package/dist/src/utils/deadlineTimer.d.ts +36 -0
  1190. package/dist/src/utils/deadlineTimer.js +87 -0
  1191. package/dist/src/utils/deadlineTimer.js.map +1 -0
  1192. package/dist/src/utils/deadlineTimer.test.d.ts +6 -0
  1193. package/dist/src/utils/deadlineTimer.test.js +64 -0
  1194. package/dist/src/utils/deadlineTimer.test.js.map +1 -0
  1195. package/dist/src/utils/editCorrector.d.ts +3 -3
  1196. package/dist/src/utils/editCorrector.js +37 -10
  1197. package/dist/src/utils/editCorrector.js.map +1 -1
  1198. package/dist/src/utils/editCorrector.test.js +49 -20
  1199. package/dist/src/utils/editCorrector.test.js.map +1 -1
  1200. package/dist/src/utils/editor.d.ts +17 -3
  1201. package/dist/src/utils/editor.js +84 -15
  1202. package/dist/src/utils/editor.js.map +1 -1
  1203. package/dist/src/utils/editor.test.js +160 -17
  1204. package/dist/src/utils/editor.test.js.map +1 -1
  1205. package/dist/src/utils/envExpansion.d.ts +18 -0
  1206. package/dist/src/utils/envExpansion.js +46 -0
  1207. package/dist/src/utils/envExpansion.js.map +1 -0
  1208. package/dist/src/utils/envExpansion.test.d.ts +6 -0
  1209. package/dist/src/utils/envExpansion.test.js +110 -0
  1210. package/dist/src/utils/envExpansion.test.js.map +1 -0
  1211. package/dist/src/utils/environmentContext.js +9 -20
  1212. package/dist/src/utils/environmentContext.js.map +1 -1
  1213. package/dist/src/utils/environmentContext.test.js +31 -14
  1214. package/dist/src/utils/environmentContext.test.js.map +1 -1
  1215. package/dist/src/utils/errors.d.ts +3 -0
  1216. package/dist/src/utils/errors.js +13 -3
  1217. package/dist/src/utils/errors.js.map +1 -1
  1218. package/dist/src/utils/errors.test.js +23 -1
  1219. package/dist/src/utils/errors.test.js.map +1 -1
  1220. package/dist/src/utils/errors_timeout.test.d.ts +6 -0
  1221. package/dist/src/utils/errors_timeout.test.js +40 -0
  1222. package/dist/src/utils/errors_timeout.test.js.map +1 -0
  1223. package/dist/src/utils/events.d.ts +107 -3
  1224. package/dist/src/utils/events.js +65 -1
  1225. package/dist/src/utils/events.js.map +1 -1
  1226. package/dist/src/utils/events.test.js +43 -0
  1227. package/dist/src/utils/events.test.js.map +1 -1
  1228. package/dist/src/utils/extensionLoader.js +2 -0
  1229. package/dist/src/utils/extensionLoader.js.map +1 -1
  1230. package/dist/src/utils/extensionLoader.test.js +21 -0
  1231. package/dist/src/utils/extensionLoader.test.js.map +1 -1
  1232. package/dist/src/utils/fastAckHelper.d.ts +30 -0
  1233. package/dist/src/utils/fastAckHelper.js +142 -0
  1234. package/dist/src/utils/fastAckHelper.js.map +1 -0
  1235. package/dist/src/utils/fastAckHelper.test.d.ts +6 -0
  1236. package/dist/src/utils/fastAckHelper.test.js +115 -0
  1237. package/dist/src/utils/fastAckHelper.test.js.map +1 -0
  1238. package/dist/src/utils/fetch.test.d.ts +6 -0
  1239. package/dist/src/utils/fetch.test.js +206 -0
  1240. package/dist/src/utils/fetch.test.js.map +1 -0
  1241. package/dist/src/utils/fileDiffUtils.d.ts +18 -0
  1242. package/dist/src/utils/fileDiffUtils.js +37 -0
  1243. package/dist/src/utils/fileDiffUtils.js.map +1 -0
  1244. package/dist/src/utils/fileDiffUtils.test.d.ts +6 -0
  1245. package/dist/src/utils/fileDiffUtils.test.js +84 -0
  1246. package/dist/src/utils/fileDiffUtils.test.js.map +1 -0
  1247. package/dist/src/utils/fileUtils.d.ts +27 -3
  1248. package/dist/src/utils/fileUtils.js +104 -60
  1249. package/dist/src/utils/fileUtils.js.map +1 -1
  1250. package/dist/src/utils/fileUtils.test.js +129 -109
  1251. package/dist/src/utils/fileUtils.test.js.map +1 -1
  1252. package/dist/src/utils/filesearch/crawler.d.ts +1 -0
  1253. package/dist/src/utils/filesearch/crawler.js +18 -1
  1254. package/dist/src/utils/filesearch/crawler.js.map +1 -1
  1255. package/dist/src/utils/filesearch/crawler.test.js +101 -82
  1256. package/dist/src/utils/filesearch/crawler.test.js.map +1 -1
  1257. package/dist/src/utils/filesearch/fileSearch.d.ts +4 -3
  1258. package/dist/src/utils/filesearch/fileSearch.js +5 -4
  1259. package/dist/src/utils/filesearch/fileSearch.js.map +1 -1
  1260. package/dist/src/utils/filesearch/fileSearch.test.js +172 -84
  1261. package/dist/src/utils/filesearch/fileSearch.test.js.map +1 -1
  1262. package/dist/src/utils/filesearch/ignore.d.ts +2 -7
  1263. package/dist/src/utils/filesearch/ignore.js +7 -14
  1264. package/dist/src/utils/filesearch/ignore.js.map +1 -1
  1265. package/dist/src/utils/filesearch/ignore.test.js +30 -32
  1266. package/dist/src/utils/filesearch/ignore.test.js.map +1 -1
  1267. package/dist/src/utils/formatters.d.ts +1 -1
  1268. package/dist/src/utils/formatters.js +1 -1
  1269. package/dist/src/utils/formatters.js.map +1 -1
  1270. package/dist/src/utils/formatters.test.js +5 -5
  1271. package/dist/src/utils/formatters.test.js.map +1 -1
  1272. package/dist/src/utils/generateContentResponseUtilities.js +3 -0
  1273. package/dist/src/utils/generateContentResponseUtilities.js.map +1 -1
  1274. package/dist/src/utils/getFolderStructure.test.js +5 -2
  1275. package/dist/src/utils/getFolderStructure.test.js.map +1 -1
  1276. package/dist/src/utils/getPty.js +3 -0
  1277. package/dist/src/utils/getPty.js.map +1 -1
  1278. package/dist/src/utils/gitIgnoreParser.js +10 -11
  1279. package/dist/src/utils/gitIgnoreParser.js.map +1 -1
  1280. package/dist/src/utils/googleErrors.js +4 -0
  1281. package/dist/src/utils/googleErrors.js.map +1 -1
  1282. package/dist/src/utils/googleQuotaErrors.d.ts +23 -9
  1283. package/dist/src/utils/googleQuotaErrors.js +90 -23
  1284. package/dist/src/utils/googleQuotaErrors.js.map +1 -1
  1285. package/dist/src/utils/googleQuotaErrors.test.js +168 -23
  1286. package/dist/src/utils/googleQuotaErrors.test.js.map +1 -1
  1287. package/dist/src/utils/headless.d.ts +26 -0
  1288. package/dist/src/utils/headless.js +33 -0
  1289. package/dist/src/utils/headless.js.map +1 -0
  1290. package/dist/src/utils/headless.test.d.ts +6 -0
  1291. package/dist/src/utils/headless.test.js +167 -0
  1292. package/dist/src/utils/headless.test.js.map +1 -0
  1293. package/dist/src/utils/httpErrors.js +4 -1
  1294. package/dist/src/utils/httpErrors.js.map +1 -1
  1295. package/dist/src/utils/ignoreFileParser.d.ts +30 -0
  1296. package/dist/src/utils/ignoreFileParser.js +100 -0
  1297. package/dist/src/utils/ignoreFileParser.js.map +1 -0
  1298. package/dist/src/utils/ignoreFileParser.test.d.ts +6 -0
  1299. package/dist/src/utils/ignoreFileParser.test.js +167 -0
  1300. package/dist/src/utils/ignoreFileParser.test.js.map +1 -0
  1301. package/dist/src/utils/installationManager.test.js +11 -3
  1302. package/dist/src/utils/installationManager.test.js.map +1 -1
  1303. package/dist/src/utils/llm-edit-fixer.js +9 -9
  1304. package/dist/src/utils/llm-edit-fixer.js.map +1 -1
  1305. package/dist/src/utils/llm-edit-fixer.test.js +2 -2
  1306. package/dist/src/utils/llm-edit-fixer.test.js.map +1 -1
  1307. package/dist/src/utils/markdownUtils.d.ts +22 -0
  1308. package/dist/src/utils/markdownUtils.js +126 -0
  1309. package/dist/src/utils/markdownUtils.js.map +1 -0
  1310. package/dist/src/utils/markdownUtils.test.d.ts +6 -0
  1311. package/dist/src/utils/markdownUtils.test.js +107 -0
  1312. package/dist/src/utils/markdownUtils.test.js.map +1 -0
  1313. package/dist/src/utils/memoryDiscovery.d.ts +11 -3
  1314. package/dist/src/utils/memoryDiscovery.js +122 -102
  1315. package/dist/src/utils/memoryDiscovery.js.map +1 -1
  1316. package/dist/src/utils/memoryDiscovery.test.js +163 -109
  1317. package/dist/src/utils/memoryDiscovery.test.js.map +1 -1
  1318. package/dist/src/utils/memoryImportProcessor.js +7 -24
  1319. package/dist/src/utils/memoryImportProcessor.js.map +1 -1
  1320. package/dist/src/utils/nextSpeakerChecker.js +3 -0
  1321. package/dist/src/utils/nextSpeakerChecker.js.map +1 -1
  1322. package/dist/src/utils/oauth-flow.d.ts +105 -0
  1323. package/dist/src/utils/oauth-flow.js +370 -0
  1324. package/dist/src/utils/oauth-flow.js.map +1 -0
  1325. package/dist/src/utils/oauth-flow.test.d.ts +6 -0
  1326. package/dist/src/utils/oauth-flow.test.js +360 -0
  1327. package/dist/src/utils/oauth-flow.test.js.map +1 -0
  1328. package/dist/src/utils/package.js +10 -3
  1329. package/dist/src/utils/package.js.map +1 -1
  1330. package/dist/src/utils/package.test.d.ts +6 -0
  1331. package/dist/src/utils/package.test.js +57 -0
  1332. package/dist/src/utils/package.test.js.map +1 -0
  1333. package/dist/src/utils/partUtils.js +2 -1
  1334. package/dist/src/utils/partUtils.js.map +1 -1
  1335. package/dist/src/utils/paths.d.ts +33 -9
  1336. package/dist/src/utils/paths.js +88 -29
  1337. package/dist/src/utils/paths.js.map +1 -1
  1338. package/dist/src/utils/paths.test.js +206 -110
  1339. package/dist/src/utils/paths.test.js.map +1 -1
  1340. package/dist/src/utils/planUtils.d.ts +29 -0
  1341. package/dist/src/utils/planUtils.js +55 -0
  1342. package/dist/src/utils/planUtils.js.map +1 -0
  1343. package/dist/src/utils/planUtils.test.d.ts +6 -0
  1344. package/dist/src/utils/planUtils.test.js +76 -0
  1345. package/dist/src/utils/planUtils.test.js.map +1 -0
  1346. package/dist/src/utils/process-utils.d.ts +32 -0
  1347. package/dist/src/utils/process-utils.js +88 -0
  1348. package/dist/src/utils/process-utils.js.map +1 -0
  1349. package/dist/src/utils/process-utils.test.d.ts +6 -0
  1350. package/dist/src/utils/process-utils.test.js +103 -0
  1351. package/dist/src/utils/process-utils.test.js.map +1 -0
  1352. package/dist/src/utils/promptIdContext.d.ts +6 -0
  1353. package/dist/src/utils/promptIdContext.js +15 -0
  1354. package/dist/src/utils/promptIdContext.js.map +1 -1
  1355. package/dist/src/utils/quotaErrorDetection.js +3 -0
  1356. package/dist/src/utils/quotaErrorDetection.js.map +1 -1
  1357. package/dist/src/utils/retry.d.ts +4 -0
  1358. package/dist/src/utils/retry.js +84 -5
  1359. package/dist/src/utils/retry.js.map +1 -1
  1360. package/dist/src/utils/retry.test.js +70 -3
  1361. package/dist/src/utils/retry.test.js.map +1 -1
  1362. package/dist/src/utils/safeJsonStringify.js +1 -0
  1363. package/dist/src/utils/safeJsonStringify.js.map +1 -1
  1364. package/dist/src/utils/schemaValidator.d.ts +8 -1
  1365. package/dist/src/utils/schemaValidator.js +78 -11
  1366. package/dist/src/utils/schemaValidator.js.map +1 -1
  1367. package/dist/src/utils/schemaValidator.test.js +77 -0
  1368. package/dist/src/utils/schemaValidator.test.js.map +1 -1
  1369. package/dist/src/utils/security.d.ts +16 -0
  1370. package/dist/src/utils/security.js +91 -0
  1371. package/dist/src/utils/security.js.map +1 -0
  1372. package/dist/src/utils/security.test.d.ts +1 -0
  1373. package/dist/src/utils/security.test.js +121 -0
  1374. package/dist/src/utils/security.test.js.map +1 -0
  1375. package/dist/src/utils/sessionUtils.d.ts +14 -0
  1376. package/dist/src/utils/sessionUtils.js +122 -0
  1377. package/dist/src/utils/sessionUtils.js.map +1 -0
  1378. package/dist/src/utils/sessionUtils.test.d.ts +1 -0
  1379. package/dist/src/utils/sessionUtils.test.js +171 -0
  1380. package/dist/src/utils/sessionUtils.test.js.map +1 -0
  1381. package/dist/src/utils/shell-utils.d.ts +14 -0
  1382. package/dist/src/utils/shell-utils.integration.test.d.ts +1 -0
  1383. package/dist/src/utils/shell-utils.integration.test.js +58 -0
  1384. package/dist/src/utils/shell-utils.integration.test.js.map +1 -0
  1385. package/dist/src/utils/shell-utils.js +191 -30
  1386. package/dist/src/utils/shell-utils.js.map +1 -1
  1387. package/dist/src/utils/shell-utils.test.js +108 -1
  1388. package/dist/src/utils/shell-utils.test.js.map +1 -1
  1389. package/dist/src/utils/summarizer.js +2 -1
  1390. package/dist/src/utils/summarizer.js.map +1 -1
  1391. package/dist/src/utils/terminal.d.ts +4 -0
  1392. package/dist/src/utils/terminal.js +12 -0
  1393. package/dist/src/utils/terminal.js.map +1 -1
  1394. package/dist/src/utils/terminalSerializer.d.ts +1 -1
  1395. package/dist/src/utils/terminalSerializer.js +25 -13
  1396. package/dist/src/utils/terminalSerializer.js.map +1 -1
  1397. package/dist/src/utils/testUtils.js +1 -0
  1398. package/dist/src/utils/testUtils.js.map +1 -1
  1399. package/dist/src/utils/textUtils.d.ts +14 -0
  1400. package/dist/src/utils/textUtils.js +23 -0
  1401. package/dist/src/utils/textUtils.js.map +1 -1
  1402. package/dist/src/utils/textUtils.test.js +18 -1
  1403. package/dist/src/utils/textUtils.test.js.map +1 -1
  1404. package/dist/src/utils/tokenCalculation.d.ts +2 -2
  1405. package/dist/src/utils/tokenCalculation.js +87 -21
  1406. package/dist/src/utils/tokenCalculation.js.map +1 -1
  1407. package/dist/src/utils/tokenCalculation.test.js +189 -76
  1408. package/dist/src/utils/tokenCalculation.test.js.map +1 -1
  1409. package/dist/src/utils/tool-utils.d.ts +26 -0
  1410. package/dist/src/utils/tool-utils.js +36 -0
  1411. package/dist/src/utils/tool-utils.js.map +1 -1
  1412. package/dist/src/utils/tool-utils.test.js +73 -3
  1413. package/dist/src/utils/tool-utils.test.js.map +1 -1
  1414. package/dist/src/utils/toolCallContext.d.ts +35 -0
  1415. package/dist/src/utils/toolCallContext.js +29 -0
  1416. package/dist/src/utils/toolCallContext.js.map +1 -0
  1417. package/dist/src/utils/toolCallContext.test.d.ts +6 -0
  1418. package/dist/src/utils/toolCallContext.test.js +68 -0
  1419. package/dist/src/utils/toolCallContext.test.js.map +1 -0
  1420. package/dist/src/utils/userAccountManager.js +1 -0
  1421. package/dist/src/utils/userAccountManager.js.map +1 -1
  1422. package/dist/src/utils/userAccountManager.test.js +5 -5
  1423. package/dist/src/utils/userAccountManager.test.js.map +1 -1
  1424. package/dist/src/utils/version.d.ts +2 -0
  1425. package/dist/src/utils/version.js +14 -3
  1426. package/dist/src/utils/version.js.map +1 -1
  1427. package/dist/src/utils/version.test.js +15 -1
  1428. package/dist/src/utils/version.test.js.map +1 -1
  1429. package/dist/src/utils/workspaceContext.d.ts +28 -0
  1430. package/dist/src/utils/workspaceContext.js +74 -9
  1431. package/dist/src/utils/workspaceContext.js.map +1 -1
  1432. package/dist/src/utils/workspaceContext.test.js +56 -1
  1433. package/dist/src/utils/workspaceContext.test.js.map +1 -1
  1434. package/dist/src/voice/responseFormatter.d.ts +38 -0
  1435. package/dist/src/voice/responseFormatter.js +130 -0
  1436. package/dist/src/voice/responseFormatter.js.map +1 -0
  1437. package/dist/src/voice/responseFormatter.test.d.ts +6 -0
  1438. package/dist/src/voice/responseFormatter.test.js +214 -0
  1439. package/dist/src/voice/responseFormatter.test.js.map +1 -0
  1440. package/dist/tsconfig.tsbuildinfo +1 -1
  1441. package/package.json +25 -15
  1442. package/dist/docs/CONTRIBUTING.md +0 -546
  1443. package/dist/src/agents/executor.d.ts +0 -114
  1444. package/dist/src/agents/executor.js +0 -779
  1445. package/dist/src/agents/executor.js.map +0 -1
  1446. package/dist/src/agents/executor.test.js +0 -1362
  1447. package/dist/src/agents/executor.test.js.map +0 -1
  1448. package/dist/src/agents/invocation.d.ts +0 -46
  1449. package/dist/src/agents/invocation.js +0 -102
  1450. package/dist/src/agents/invocation.js.map +0 -1
  1451. package/dist/src/agents/invocation.test.js +0 -215
  1452. package/dist/src/agents/invocation.test.js.map +0 -1
  1453. package/dist/src/core/subagent.d.ts +0 -236
  1454. package/dist/src/core/subagent.js +0 -482
  1455. package/dist/src/core/subagent.js.map +0 -1
  1456. package/dist/src/core/subagent.test.js +0 -530
  1457. package/dist/src/core/subagent.test.js.map +0 -1
  1458. package/dist/src/tools/smart-edit.d.ts +0 -78
  1459. package/dist/src/tools/smart-edit.js +0 -717
  1460. package/dist/src/tools/smart-edit.js.map +0 -1
  1461. package/dist/src/tools/smart-edit.test.js +0 -592
  1462. package/dist/src/tools/smart-edit.test.js.map +0 -1
  1463. /package/dist/src/agents/{executor.test.d.ts → agentLoader.test.d.ts} +0 -0
  1464. /package/dist/src/agents/{invocation.test.d.ts → cli-help-agent.test.d.ts} +0 -0
  1465. /package/dist/src/{core/subagent.test.d.ts → availability/fallbackIntegration.test.d.ts} +0 -0
  1466. /package/dist/src/{tools/smart-edit.test.d.ts → code_assist/admin/admin_controls.test.d.ts} +0 -0
@@ -0,0 +1,109 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
7
+ import { getCoreSystemPrompt } from './prompts.js';
8
+ import fs from 'node:fs';
9
+ import * as toolNames from '../tools/tool-names.js';
10
+ vi.mock('node:fs');
11
+ vi.mock('../utils/gitUtils', () => ({
12
+ isGitRepository: vi.fn().mockReturnValue(false),
13
+ }));
14
+ describe('Core System Prompt Substitution', () => {
15
+ let mockConfig;
16
+ beforeEach(() => {
17
+ vi.resetAllMocks();
18
+ vi.stubEnv('GEMINI_SYSTEM_MD', 'true');
19
+ mockConfig = {
20
+ getToolRegistry: vi.fn().mockReturnValue({
21
+ getAllToolNames: vi
22
+ .fn()
23
+ .mockReturnValue([
24
+ toolNames.WRITE_FILE_TOOL_NAME,
25
+ toolNames.READ_FILE_TOOL_NAME,
26
+ ]),
27
+ }),
28
+ getEnableShellOutputEfficiency: vi.fn().mockReturnValue(true),
29
+ storage: {
30
+ getProjectTempDir: vi.fn().mockReturnValue('/tmp/project-temp'),
31
+ },
32
+ isInteractive: vi.fn().mockReturnValue(true),
33
+ isInteractiveShellEnabled: vi.fn().mockReturnValue(true),
34
+ isAgentsEnabled: vi.fn().mockReturnValue(false),
35
+ getModel: vi.fn().mockReturnValue('auto'),
36
+ getActiveModel: vi.fn().mockReturnValue('gemini-1.5-pro'),
37
+ getAgentRegistry: vi.fn().mockReturnValue({
38
+ getDirectoryContext: vi.fn().mockReturnValue('Mock Agent Directory'),
39
+ getAllDefinitions: vi.fn().mockReturnValue([]),
40
+ }),
41
+ getSkillManager: vi.fn().mockReturnValue({
42
+ getSkills: vi.fn().mockReturnValue([]),
43
+ }),
44
+ getApprovedPlanPath: vi.fn().mockReturnValue(undefined),
45
+ };
46
+ });
47
+ it('should substitute ${AgentSkills} in custom system prompt', () => {
48
+ const skills = [
49
+ {
50
+ name: 'test-skill',
51
+ description: 'A test skill description',
52
+ location: '/path/to/test-skill/SKILL.md',
53
+ body: 'Skill content',
54
+ },
55
+ ];
56
+ vi.mocked(mockConfig.getSkillManager().getSkills).mockReturnValue(skills);
57
+ vi.mocked(fs.existsSync).mockReturnValue(true);
58
+ vi.mocked(fs.readFileSync).mockReturnValue('Skills go here: ${AgentSkills}');
59
+ const prompt = getCoreSystemPrompt(mockConfig);
60
+ expect(prompt).toContain('Skills go here:');
61
+ expect(prompt).toContain('<available_skills>');
62
+ expect(prompt).toContain('<name>test-skill</name>');
63
+ expect(prompt).not.toContain('${AgentSkills}');
64
+ });
65
+ it('should substitute ${SubAgents} in custom system prompt', () => {
66
+ vi.mocked(fs.existsSync).mockReturnValue(true);
67
+ vi.mocked(fs.readFileSync).mockReturnValue('Agents: ${SubAgents}');
68
+ vi.mocked(mockConfig.getAgentRegistry().getAllDefinitions).mockReturnValue([
69
+ {
70
+ name: 'test-agent',
71
+ description: 'Test Agent Description',
72
+ },
73
+ ]);
74
+ const prompt = getCoreSystemPrompt(mockConfig);
75
+ expect(prompt).toContain('Agents:');
76
+ expect(prompt).toContain('# Available Sub-Agents');
77
+ expect(prompt).toContain('- test-agent -> Test Agent Description');
78
+ expect(prompt).not.toContain('${SubAgents}');
79
+ });
80
+ it('should substitute ${AvailableTools} in custom system prompt', () => {
81
+ vi.mocked(fs.existsSync).mockReturnValue(true);
82
+ vi.mocked(fs.readFileSync).mockReturnValue('Tools:\n${AvailableTools}');
83
+ const prompt = getCoreSystemPrompt(mockConfig);
84
+ expect(prompt).toContain(`Tools:\n- ${toolNames.WRITE_FILE_TOOL_NAME}\n- ${toolNames.READ_FILE_TOOL_NAME}`);
85
+ expect(prompt).not.toContain('${AvailableTools}');
86
+ });
87
+ it('should substitute tool names using the ${toolName}_ToolName pattern', () => {
88
+ vi.mocked(fs.existsSync).mockReturnValue(true);
89
+ vi.mocked(fs.readFileSync).mockReturnValue('Use ${write_file_ToolName} and ${read_file_ToolName}.');
90
+ const prompt = getCoreSystemPrompt(mockConfig);
91
+ expect(prompt).toContain(`Use ${toolNames.WRITE_FILE_TOOL_NAME} and ${toolNames.READ_FILE_TOOL_NAME}.`);
92
+ expect(prompt).not.toContain('${write_file_ToolName}');
93
+ expect(prompt).not.toContain('${read_file_ToolName}');
94
+ });
95
+ it('should not substitute old patterns', () => {
96
+ vi.mocked(fs.existsSync).mockReturnValue(true);
97
+ vi.mocked(fs.readFileSync).mockReturnValue('${WriteFileToolName} and ${WRITE_FILE_TOOL_NAME}');
98
+ const prompt = getCoreSystemPrompt(mockConfig);
99
+ expect(prompt).toBe('${WriteFileToolName} and ${WRITE_FILE_TOOL_NAME}');
100
+ });
101
+ it('should not substitute disabled tool names', () => {
102
+ vi.mocked(mockConfig.getToolRegistry().getAllToolNames).mockReturnValue([]);
103
+ vi.mocked(fs.existsSync).mockReturnValue(true);
104
+ vi.mocked(fs.readFileSync).mockReturnValue('Use ${write_file_ToolName}.');
105
+ const prompt = getCoreSystemPrompt(mockConfig);
106
+ expect(prompt).toBe('Use ${write_file_ToolName}.');
107
+ });
108
+ });
109
+ //# sourceMappingURL=prompts-substitution.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-substitution.test.js","sourceRoot":"","sources":["../../../src/core/prompts-substitution.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzB,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEpD,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACnB,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE,CAAC,CAAC;IAClC,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC;CAChD,CAAC,CAAC,CAAC;AAEJ,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,IAAI,UAAkB,CAAC;IACvB,UAAU,CAAC,GAAG,EAAE;QACd,EAAE,CAAC,aAAa,EAAE,CAAC;QACnB,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;QACvC,UAAU,GAAG;YACX,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,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,CAAC,mBAAmB,GAAG,CAC9E,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC/C,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,eAAe,CACxC,kDAAkD,CACnD,CAAC;QAEF,MAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAE/C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,eAAe,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC5E,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC/C,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;QAE1E,MAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAE/C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -4,15 +4,17 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { Config } from '../config/config.js';
7
- export declare function resolvePathFromEnv(envVar?: string): {
8
- isSwitch: boolean;
9
- value: string | null;
10
- isDisabled: boolean;
11
- };
12
- export declare function getCoreSystemPrompt(config: Config, userMemory?: string): string;
7
+ import type { HierarchicalMemory } from '../config/memory.js';
8
+ /**
9
+ * Resolves a path or switch value from an environment variable.
10
+ * @deprecated Use resolvePathFromEnv from @google/gemini-cli-core/prompts/utils instead.
11
+ */
12
+ export declare function resolvePathFromEnv(envVar?: string): import("../prompts/utils.js").ResolvedPath;
13
+ /**
14
+ * Returns the core system prompt for the agent.
15
+ */
16
+ export declare function getCoreSystemPrompt(config: Config, userMemory?: string | HierarchicalMemory, interactiveOverride?: boolean): string;
13
17
  /**
14
18
  * Provides the system prompt for the history compression process.
15
- * This prompt instructs the model to act as a specialized state manager,
16
- * think in a scratchpad, and produce a structured XML summary.
17
19
  */
18
- export declare function getCompressionPrompt(): string;
20
+ export declare function getCompressionPrompt(config: Config): string;
@@ -3,416 +3,25 @@
3
3
  * Copyright 2025 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import path from 'node:path';
7
- import fs from 'node:fs';
8
- import os from 'node:os';
9
- import { EDIT_TOOL_NAME, GLOB_TOOL_NAME, GREP_TOOL_NAME, MEMORY_TOOL_NAME, READ_FILE_TOOL_NAME, SHELL_TOOL_NAME, WRITE_FILE_TOOL_NAME, WRITE_TODOS_TOOL_NAME, DELEGATE_TO_AGENT_TOOL_NAME, ACTIVATE_SKILL_TOOL_NAME, } from '../tools/tool-names.js';
10
- import process from 'node:process';
11
- import { isGitRepository } from '../utils/gitUtils.js';
12
- import { CodebaseInvestigatorAgent } from '../agents/codebase-investigator.js';
13
- import { GEMINI_DIR } from '../utils/paths.js';
14
- import { debugLogger } from '../utils/debugLogger.js';
15
- import { WriteTodosTool } from '../tools/write-todos.js';
16
- import { resolveModel, isPreviewModel } from '../config/models.js';
6
+ import { PromptProvider } from '../prompts/promptProvider.js';
7
+ import { resolvePathFromEnv as resolvePathFromEnvImpl } from '../prompts/utils.js';
8
+ /**
9
+ * Resolves a path or switch value from an environment variable.
10
+ * @deprecated Use resolvePathFromEnv from @google/gemini-cli-core/prompts/utils instead.
11
+ */
17
12
  export function resolvePathFromEnv(envVar) {
18
- // Handle the case where the environment variable is not set, empty, or just whitespace.
19
- const trimmedEnvVar = envVar?.trim();
20
- if (!trimmedEnvVar) {
21
- return { isSwitch: false, value: null, isDisabled: false };
22
- }
23
- const lowerEnvVar = trimmedEnvVar.toLowerCase();
24
- // Check if the input is a common boolean-like string.
25
- if (['0', 'false', '1', 'true'].includes(lowerEnvVar)) {
26
- // If so, identify it as a "switch" and return its value.
27
- const isDisabled = ['0', 'false'].includes(lowerEnvVar);
28
- return { isSwitch: true, value: lowerEnvVar, isDisabled };
29
- }
30
- // If it's not a switch, treat it as a potential file path.
31
- let customPath = trimmedEnvVar;
32
- // Safely expand the tilde (~) character to the user's home directory.
33
- if (customPath.startsWith('~/') || customPath === '~') {
34
- try {
35
- const home = os.homedir(); // This is the call that can throw an error.
36
- if (customPath === '~') {
37
- customPath = home;
38
- }
39
- else {
40
- customPath = path.join(home, customPath.slice(2));
41
- }
42
- }
43
- catch (error) {
44
- // If os.homedir() fails, we catch the error instead of crashing.
45
- debugLogger.warn(`Could not resolve home directory for path: ${trimmedEnvVar}`, error);
46
- // Return null to indicate the path resolution failed.
47
- return { isSwitch: false, value: null, isDisabled: false };
48
- }
49
- }
50
- // Return it as a non-switch with the fully resolved absolute path.
51
- return {
52
- isSwitch: false,
53
- value: path.resolve(customPath),
54
- isDisabled: false,
55
- };
13
+ return resolvePathFromEnvImpl(envVar);
56
14
  }
57
- export function getCoreSystemPrompt(config, userMemory) {
58
- // A flag to indicate whether the system prompt override is active.
59
- let systemMdEnabled = false;
60
- // The default path for the system prompt file. This can be overridden.
61
- let systemMdPath = path.resolve(path.join(GEMINI_DIR, 'system.md'));
62
- // Resolve the environment variable to get either a path or a switch value.
63
- const systemMdResolution = resolvePathFromEnv(process.env['GEMINI_SYSTEM_MD']);
64
- // Proceed only if the environment variable is set and is not disabled.
65
- if (systemMdResolution.value && !systemMdResolution.isDisabled) {
66
- systemMdEnabled = true;
67
- // We update systemMdPath to this new custom path.
68
- if (!systemMdResolution.isSwitch) {
69
- systemMdPath = systemMdResolution.value;
70
- }
71
- // require file to exist when override is enabled
72
- if (!fs.existsSync(systemMdPath)) {
73
- throw new Error(`missing system prompt file '${systemMdPath}'`);
74
- }
75
- }
76
- // TODO(joshualitt): Replace with system instructions on model configs.
77
- const desiredModel = resolveModel(config.getActiveModel(), config.getPreviewFeatures());
78
- const isGemini3 = isPreviewModel(desiredModel);
79
- const mandatesVariant = isGemini3
80
- ? `
81
- - **Do not call tools in silence:** You must provide to the user very short and concise natural explanation (one sentence) before calling tools.`
82
- : ``;
83
- const enableCodebaseInvestigator = config
84
- .getToolRegistry()
85
- .getAllToolNames()
86
- .includes(CodebaseInvestigatorAgent.name);
87
- const enableWriteTodosTool = config
88
- .getToolRegistry()
89
- .getAllToolNames()
90
- .includes(WriteTodosTool.Name);
91
- const interactiveMode = config.isInteractive();
92
- const skills = config.getSkillManager().getSkills();
93
- let skillsPrompt = '';
94
- if (skills.length > 0) {
95
- const skillsXml = skills
96
- .map((skill) => ` <skill>
97
- <name>${skill.name}</name>
98
- <description>${skill.description}</description>
99
- <location>${skill.location}</location>
100
- </skill>`)
101
- .join('\n');
102
- skillsPrompt = `
103
- # Available Agent Skills
104
-
105
- You have access to the following specialized skills. To activate a skill and receive its detailed instructions, you can call the \`${ACTIVATE_SKILL_TOOL_NAME}\` tool with the skill's name.
106
-
107
- <available_skills>
108
- ${skillsXml}
109
- </available_skills>
110
- `;
111
- }
112
- let basePrompt;
113
- if (systemMdEnabled) {
114
- basePrompt = fs.readFileSync(systemMdPath, 'utf8');
115
- }
116
- else {
117
- const promptConfig = {
118
- preamble: `You are ${interactiveMode ? 'an interactive ' : 'a non-interactive '}CLI agent specializing in software engineering tasks. Your primary goal is to help users safely and efficiently, adhering strictly to the following instructions and utilizing your available tools.`,
119
- coreMandates: `
120
- # Core Mandates
121
-
122
- - **Conventions:** Rigorously adhere to existing project conventions when reading or modifying code. Analyze surrounding code, tests, and configuration first.
123
- - **Libraries/Frameworks:** NEVER assume a library/framework is available or appropriate. Verify its established usage within the project (check imports, configuration files like 'package.json', 'Cargo.toml', 'requirements.txt', 'build.gradle', etc., or observe neighboring files) before employing it.
124
- - **Style & Structure:** Mimic the style (formatting, naming), structure, framework choices, typing, and architectural patterns of existing code in the project.
125
- - **Idiomatic Changes:** When editing, understand the local context (imports, functions/classes) to ensure your changes integrate naturally and idiomatically.
126
- - **Comments:** Add code comments sparingly. Focus on *why* something is done, especially for complex logic, rather than *what* is done. Only add high-value comments if necessary for clarity or if requested by the user. Do not edit comments that are separate from the code you are changing. *NEVER* talk to the user or describe your changes through comments.
127
- - **Proactiveness:** Fulfill the user's request thoroughly. When adding features or fixing bugs, this includes adding tests to ensure quality. Consider all created files, especially tests, to be permanent artifacts unless the user says otherwise.
128
- - ${interactiveMode ? `**Confirm Ambiguity/Expansion:** Do not take significant actions beyond the clear scope of the request without confirming with the user. If asked *how* to do something, explain first, don't just do it.` : `**Handle Ambiguity/Expansion:** Do not take significant actions beyond the clear scope of the request.`}
129
- - **Explaining Changes:** After completing a code modification or file operation *do not* provide summaries unless asked.
130
- - **Do Not revert changes:** Do not revert changes to the codebase unless asked to do so by the user. Only revert changes made by you if they have resulted in an error or if the user has explicitly asked you to revert the changes.${skills.length > 0
131
- ? `
132
- - **Skill Guidance:** Once a skill is activated via \`${ACTIVATE_SKILL_TOOL_NAME}\`, its instructions and resources are returned wrapped in \`<ACTIVATED_SKILL>\` tags. You MUST treat the content within \`<INSTRUCTIONS>\` as expert procedural guidance, prioritizing these specialized rules and workflows over your general defaults for the duration of the task. You may utilize any listed \`<AVAILABLE_RESOURCES>\` as needed. Follow this expert guidance strictly while continuing to uphold your core safety and security standards.`
133
- : ''}${mandatesVariant}${!interactiveMode
134
- ? `
135
- - **Continue the work** You are not to interact with the user. Do your best to complete the task at hand, using your best judgement and avoid asking user for any additional information.`
136
- : ''}
137
-
138
- ${config.getAgentRegistry().getDirectoryContext()}${skillsPrompt}`,
139
- primaryWorkflows_prefix: `
140
- # Primary Workflows
141
-
142
- ## Software Engineering Tasks
143
- When requested to perform tasks like fixing bugs, adding features, refactoring, or explaining code, follow this sequence:
144
- 1. **Understand:** Think about the user's request and the relevant codebase context. Use '${GREP_TOOL_NAME}' and '${GLOB_TOOL_NAME}' search tools extensively (in parallel if independent) to understand file structures, existing code patterns, and conventions.
145
- Use '${READ_FILE_TOOL_NAME}' to understand context and validate any assumptions you may have. If you need to read multiple files, you should make multiple parallel calls to '${READ_FILE_TOOL_NAME}'.
146
- 2. **Plan:** Build a coherent and grounded (based on the understanding in step 1) plan for how you intend to resolve the user's task. Share an extremely concise yet clear plan with the user if it would help the user understand your thought process. As part of the plan, you should use an iterative development process that includes writing unit tests to verify your changes. Use output logs or debug statements as part of this process to arrive at a solution.`,
147
- primaryWorkflows_prefix_ci: `
148
- # Primary Workflows
149
-
150
- ## Software Engineering Tasks
151
- When requested to perform tasks like fixing bugs, adding features, refactoring, or explaining code, follow this sequence:
152
- 1. **Understand & Strategize:** Think about the user's request and the relevant codebase context. When the task involves **complex refactoring, codebase exploration or system-wide analysis**, your **first and primary action** must be to delegate to the '${CodebaseInvestigatorAgent.name}' agent using the '${DELEGATE_TO_AGENT_TOOL_NAME}' tool. Use it to build a comprehensive understanding of the code, its structure, and dependencies. For **simple, targeted searches** (like finding a specific function name, file path, or variable declaration), you should use '${GREP_TOOL_NAME}' or '${GLOB_TOOL_NAME}' directly.
153
- 2. **Plan:** Build a coherent and grounded (based on the understanding in step 1) plan for how you intend to resolve the user's task. If '${CodebaseInvestigatorAgent.name}' was used, do not ignore the output of the agent, you must use it as the foundation of your plan. Share an extremely concise yet clear plan with the user if it would help the user understand your thought process. As part of the plan, you should use an iterative development process that includes writing unit tests to verify your changes. Use output logs or debug statements as part of this process to arrive at a solution.`,
154
- primaryWorkflows_prefix_ci_todo: `
155
- # Primary Workflows
156
-
157
- ## Software Engineering Tasks
158
- When requested to perform tasks like fixing bugs, adding features, refactoring, or explaining code, follow this sequence:
159
- 1. **Understand & Strategize:** Think about the user's request and the relevant codebase context. When the task involves **complex refactoring, codebase exploration or system-wide analysis**, your **first and primary action** must be to delegate to the '${CodebaseInvestigatorAgent.name}' agent using the '${DELEGATE_TO_AGENT_TOOL_NAME}' tool. Use it to build a comprehensive understanding of the code, its structure, and dependencies. For **simple, targeted searches** (like finding a specific function name, file path, or variable declaration), you should use '${GREP_TOOL_NAME}' or '${GLOB_TOOL_NAME}' directly.
160
- 2. **Plan:** Build a coherent and grounded (based on the understanding in step 1) plan for how you intend to resolve the user's task. If '${CodebaseInvestigatorAgent.name}' was used, do not ignore the output of the agent, you must use it as the foundation of your plan. For complex tasks, break them down into smaller, manageable subtasks and use the \`${WRITE_TODOS_TOOL_NAME}\` tool to track your progress. Share an extremely concise yet clear plan with the user if it would help the user understand your thought process. As part of the plan, you should use an iterative development process that includes writing unit tests to verify your changes. Use output logs or debug statements as part of this process to arrive at a solution.`,
161
- primaryWorkflows_todo: `
162
- # Primary Workflows
163
-
164
- ## Software Engineering Tasks
165
- When requested to perform tasks like fixing bugs, adding features, refactoring, or explaining code, follow this sequence:
166
- 1. **Understand:** Think about the user's request and the relevant codebase context. Use '${GREP_TOOL_NAME}' and '${GLOB_TOOL_NAME}' search tools extensively (in parallel if independent) to understand file structures, existing code patterns, and conventions. Use '${READ_FILE_TOOL_NAME}' to understand context and validate any assumptions you may have. If you need to read multiple files, you should make multiple parallel calls to '${READ_FILE_TOOL_NAME}'.
167
- 2. **Plan:** Build a coherent and grounded (based on the understanding in step 1) plan for how you intend to resolve the user's task. For complex tasks, break them down into smaller, manageable subtasks and use the \`${WRITE_TODOS_TOOL_NAME}\` tool to track your progress. Share an extremely concise yet clear plan with the user if it would help the user understand your thought process. As part of the plan, you should use an iterative development process that includes writing unit tests to verify your changes. Use output logs or debug statements as part of this process to arrive at a solution.`,
168
- primaryWorkflows_suffix: `3. **Implement:** Use the available tools (e.g., '${EDIT_TOOL_NAME}', '${WRITE_FILE_TOOL_NAME}' '${SHELL_TOOL_NAME}' ...) to act on the plan, strictly adhering to the project's established conventions (detailed under 'Core Mandates').
169
- 4. **Verify (Tests):** If applicable and feasible, verify the changes using the project's testing procedures. Identify the correct test commands and frameworks by examining 'README' files, build/package configuration (e.g., 'package.json'), or existing test execution patterns. NEVER assume standard test commands.
170
- 5. **Verify (Standards):** VERY IMPORTANT: After making code changes, execute the project-specific build, linting and type-checking commands (e.g., 'tsc', 'npm run lint', 'ruff check .') that you have identified for this project (or obtained from the user). This ensures code quality and adherence to standards.${interactiveMode ? " If unsure about these commands, you can ask the user if they'd like you to run them and if so how to." : ''}
171
- 6. **Finalize:** After all verification passes, consider the task complete. Do not remove or revert any changes or created files (like tests). Await the user's next instruction.
172
-
173
- ## New Applications
174
-
175
- **Goal:** Autonomously implement and deliver a visually appealing, substantially complete, and functional prototype. Utilize all tools at your disposal to implement the application. Some tools you may especially find useful are '${WRITE_FILE_TOOL_NAME}', '${EDIT_TOOL_NAME}' and '${SHELL_TOOL_NAME}'.
176
-
177
- 1. **Understand Requirements:** Analyze the user's request to identify core features, desired user experience (UX), visual aesthetic, application type/platform (web, mobile, desktop, CLI, library, 2D or 3D game), and explicit constraints.${interactiveMode ? ' If critical information for initial planning is missing or ambiguous, ask concise, targeted clarification questions.' : ''}
178
- 2. **Propose Plan:** Formulate an internal development plan. Present a clear, concise, high-level summary to the user. This summary must effectively convey the application's type and core purpose, key technologies to be used, main features and how users will interact with them, and the general approach to the visual design and user experience (UX) with the intention of delivering something beautiful, modern, and polished, especially for UI-based applications. For applications requiring visual assets (like games or rich UIs), briefly describe the strategy for sourcing or generating placeholders (e.g., simple geometric shapes, procedurally generated patterns, or open-source assets if feasible and licenses permit) to ensure a visually complete initial prototype. Ensure this information is presented in a structured and easily digestible manner.
179
- - When key technologies aren't specified, prefer the following:
180
- - **Websites (Frontend):** React (JavaScript/TypeScript) or Angular with Bootstrap CSS, incorporating Material Design principles for UI/UX.
181
- - **Back-End APIs:** Node.js with Express.js (JavaScript/TypeScript) or Python with FastAPI.
182
- - **Full-stack:** Next.js (React/Node.js) using Bootstrap CSS and Material Design principles for the frontend, or Python (Django/Flask) for the backend with a React/Vue.js/Angular frontend styled with Bootstrap CSS and Material Design principles.
183
- - **CLIs:** Python or Go.
184
- - **Mobile App:** Compose Multiplatform (Kotlin Multiplatform) or Flutter (Dart) using Material Design libraries and principles, when sharing code between Android and iOS. Jetpack Compose (Kotlin JVM) with Material Design principles or SwiftUI (Swift) for native apps targeted at either Android or iOS, respectively.
185
- - **3d Games:** HTML/CSS/JavaScript with Three.js.
186
- - **2d Games:** HTML/CSS/JavaScript.
187
- ${(function () {
188
- if (interactiveMode) {
189
- return `3. **User Approval:** Obtain user approval for the proposed plan.
190
- 4. **Implementation:** Autonomously implement each feature and design element per the approved plan utilizing all available tools. When starting ensure you scaffold the application using '${SHELL_TOOL_NAME}' for commands like 'npm init', 'npx create-react-app'. Aim for full scope completion. Proactively create or source necessary placeholder assets (e.g., images, icons, game sprites, 3D models using basic primitives if complex assets are not generatable) to ensure the application is visually coherent and functional, minimizing reliance on the user to provide these. If the model can generate simple assets (e.g., a uniformly colored square sprite, a simple 3D cube), it should do so. Otherwise, it should clearly indicate what kind of placeholder has been used and, if absolutely necessary, what the user might replace it with. Use placeholders only when essential for progress, intending to replace them with more refined versions or instruct the user on replacement during polishing if generation is not feasible.
191
- 5. **Verify:** Review work against the original request, the approved plan. Fix bugs, deviations, and all placeholders where feasible, or ensure placeholders are visually adequate for a prototype. Ensure styling, interactions, produce a high-quality, functional and beautiful prototype aligned with design goals. Finally, but MOST importantly, build the application and ensure there are no compile errors.
192
- 6. **Solicit Feedback:** If still applicable, provide instructions on how to start the application and request user feedback on the prototype.`;
193
- }
194
- else {
195
- return `3. **Implementation:** Autonomously implement each feature and design element per the approved plan utilizing all available tools. When starting ensure you scaffold the application using '${SHELL_TOOL_NAME}' for commands like 'npm init', 'npx create-react-app'. Aim for full scope completion. Proactively create or source necessary placeholder assets (e.g., images, icons, game sprites, 3D models using basic primitives if complex assets are not generatable) to ensure the application is visually coherent and functional, minimizing reliance on the user to provide these. If the model can generate simple assets (e.g., a uniformly colored square sprite, a simple 3D cube), it should do so. Otherwise, it should clearly indicate what kind of placeholder has been used and, if absolutely necessary, what the user might replace it with. Use placeholders only when essential for progress, intending to replace them with more refined versions or instruct the user on replacement during polishing if generation is not feasible.
196
- 4. **Verify:** Review work against the original request, the approved plan. Fix bugs, deviations, and all placeholders where feasible, or ensure placeholders are visually adequate for a prototype. Ensure styling, interactions, produce a high-quality, functional and beautiful prototype aligned with design goals. Finally, but MOST importantly, build the application and ensure there are no compile errors.`;
197
- }
198
- })()}`,
199
- operationalGuidelines: `
200
- # Operational Guidelines
201
- ${(function () {
202
- if (config.getEnableShellOutputEfficiency()) {
203
- return `
204
- ## Shell tool output token efficiency:
205
-
206
- IT IS CRITICAL TO FOLLOW THESE GUIDELINES TO AVOID EXCESSIVE TOKEN CONSUMPTION.
207
-
208
- - Always prefer command flags that reduce output verbosity when using '${SHELL_TOOL_NAME}'.
209
- - Aim to minimize tool output tokens while still capturing necessary information.
210
- - If a command is expected to produce a lot of output, use quiet or silent flags where available and appropriate.
211
- - Always consider the trade-off between output verbosity and the need for information. If a command's full output is essential for understanding the result, avoid overly aggressive quieting that might obscure important details.
212
- - If a command does not have quiet/silent flags or for commands with potentially long output that may not be useful, redirect stdout and stderr to temp files in the project's temporary directory. For example: 'command > <temp_dir>/out.log 2> <temp_dir>/err.log'.
213
- - After the command runs, inspect the temp files (e.g. '<temp_dir>/out.log' and '<temp_dir>/err.log') using commands like 'grep', 'tail', 'head', ... (or platform equivalents). Remove the temp files when done.
214
- `;
215
- }
216
- return '';
217
- })()}
218
-
219
- ## Tone and Style (CLI Interaction)
220
- - **Concise & Direct:** Adopt a professional, direct, and concise tone suitable for a CLI environment.
221
- - **Minimal Output:** Aim for fewer than 3 lines of text output (excluding tool use/code generation) per response whenever practical. Focus strictly on the user's query.
222
- - **Clarity over Brevity (When Needed):** While conciseness is key, prioritize clarity for essential explanations or when seeking necessary clarification if a request is ambiguous.${(function () {
223
- if (isGemini3) {
224
- return '';
225
- }
226
- else {
227
- return `
228
- - **No Chitchat:** Avoid conversational filler, preambles ("Okay, I will now..."), or postambles ("I have finished the changes..."). Get straight to the action or answer.`;
229
- }
230
- })()}
231
- - **Formatting:** Use GitHub-flavored Markdown. Responses will be rendered in monospace.
232
- - **Tools vs. Text:** Use tools for actions, text output *only* for communication. Do not add explanatory comments within tool calls or code blocks unless specifically part of the required code/command itself.
233
- - **Handling Inability:** If unable/unwilling to fulfill a request, state so briefly (1-2 sentences) without excessive justification. Offer alternatives if appropriate.
234
-
235
- ## Security and Safety Rules
236
- - **Explain Critical Commands:** Before executing commands with '${SHELL_TOOL_NAME}' that modify the file system, codebase, or system state, you *must* provide a brief explanation of the command's purpose and potential impact. Prioritize user understanding and safety. You should not ask permission to use the tool; the user will be presented with a confirmation dialogue upon use (you do not need to tell them this).
237
- - **Security First:** Always apply security best practices. Never introduce code that exposes, logs, or commits secrets, API keys, or other sensitive information.
238
-
239
- ## Tool Usage
240
- - **Parallelism:** Execute multiple independent tool calls in parallel when feasible (i.e. searching the codebase).
241
- - **Command Execution:** Use the '${SHELL_TOOL_NAME}' tool for running shell commands, remembering the safety rule to explain modifying commands first.
242
- ${(function () {
243
- if (interactiveMode) {
244
- return `- **Background Processes:** Use background processes (via \`&\`) for commands that are unlikely to stop on their own, e.g. \`node server.js &\`. If unsure, ask the user.
245
- - **Interactive Commands:** Prefer non-interactive commands when it makes sense; however, some commands are only interactive and expect user input during their execution (e.g. ssh, vim). If you choose to execute an interactive command consider letting the user know they can press \`ctrl + f\` to focus into the shell to provide input.`;
246
- }
247
- else {
248
- return `- **Background Processes:** Use background processes (via \`&\`) for commands that are unlikely to stop on their own, e.g. \`node server.js &\`.
249
- - **Interactive Commands:** Only execute non-interactive commands.`;
250
- }
251
- })()}
252
- - **Remembering Facts:** Use the '${MEMORY_TOOL_NAME}' tool to remember specific, *user-related* facts or preferences when the user explicitly asks, or when they state a clear, concise piece of information that would help personalize or streamline *your future interactions with them* (e.g., preferred coding style, common project paths they use, personal tool aliases). This tool is for user-specific information that should persist across sessions. Do *not* use it for general project context or information.${interactiveMode ? ` If unsure whether to save something, you can ask the user, "Should I remember that for you?"` : ''}
253
- - **Respect User Confirmations:** Most tool calls (also denoted as 'function calls') will first require confirmation from the user, where they will either approve or cancel the function call. If a user cancels a function call, respect their choice and do _not_ try to make the function call again. It is okay to request the tool call again _only_ if the user requests that same tool call on a subsequent prompt. When a user cancels a function call, assume best intentions from the user and consider inquiring if they prefer any alternative paths forward.
254
-
255
- ## Interaction Details
256
- - **Help Command:** The user can use '/help' to display help information.
257
- - **Feedback:** To report a bug or provide feedback, please use the /bug command.`,
258
- sandbox: `
259
- ${(function () {
260
- // Determine sandbox status based on environment variables
261
- const isSandboxExec = process.env['SANDBOX'] === 'sandbox-exec';
262
- const isGenericSandbox = !!process.env['SANDBOX']; // Check if SANDBOX is set to any non-empty value
263
- if (isSandboxExec) {
264
- return `
265
- # macOS Seatbelt
266
- You are running under macos seatbelt with limited access to files outside the project directory or system temp directory, and with limited access to host system resources such as ports. If you encounter failures that could be due to macOS Seatbelt (e.g. if a command fails with 'Operation not permitted' or similar error), as you report the error to the user, also explain why you think it could be due to macOS Seatbelt, and how the user may need to adjust their Seatbelt profile.
267
- `;
268
- }
269
- else if (isGenericSandbox) {
270
- return `
271
- # Sandbox
272
- You are running in a sandbox container with limited access to files outside the project directory or system temp directory, and with limited access to host system resources such as ports. If you encounter failures that could be due to sandboxing (e.g. if a command fails with 'Operation not permitted' or similar error), when you report the error to the user, also explain why you think it could be due to sandboxing, and how the user may need to adjust their sandbox configuration.
273
- `;
274
- }
275
- else {
276
- return `
277
- # Outside of Sandbox
278
- You are running outside of a sandbox container, directly on the user's system. For critical commands that are particularly likely to modify the user's system outside of the project directory or system temp directory, as you explain the command to the user (per the Explain Critical Commands rule above), also remind the user to consider enabling sandboxing.
279
- `;
280
- }
281
- })()}`,
282
- git: `
283
- ${(function () {
284
- if (isGitRepository(process.cwd())) {
285
- return `
286
- # Git Repository
287
- - The current working (project) directory is being managed by a git repository.
288
- - When asked to commit changes or prepare a commit, always start by gathering information using shell commands:
289
- - \`git status\` to ensure that all relevant files are tracked and staged, using \`git add ...\` as needed.
290
- - \`git diff HEAD\` to review all changes (including unstaged changes) to tracked files in work tree since last commit.
291
- - \`git diff --staged\` to review only staged changes when a partial commit makes sense or was requested by the user.
292
- - \`git log -n 3\` to review recent commit messages and match their style (verbosity, formatting, signature line, etc.)
293
- - Combine shell commands whenever possible to save time/steps, e.g. \`git status && git diff HEAD && git log -n 3\`.
294
- - Always propose a draft commit message. Never just ask the user to give you the full commit message.
295
- - Prefer commit messages that are clear, concise, and focused more on "why" and less on "what".${interactiveMode
296
- ? `
297
- - Keep the user informed and ask for clarification or confirmation where needed.`
298
- : ''}
299
- - After each commit, confirm that it was successful by running \`git status\`.
300
- - If a commit fails, never attempt to work around the issues without being asked to do so.
301
- - Never push changes to a remote repository without being asked explicitly by the user.
302
- `;
303
- }
304
- return '';
305
- })()}`,
306
- finalReminder: `
307
- # Final Reminder
308
- Your core function is efficient and safe assistance. Balance extreme conciseness with the crucial need for clarity, especially regarding safety and potential system modifications. Always prioritize user control and project conventions. Never make assumptions about the contents of files; instead use '${READ_FILE_TOOL_NAME}' to ensure you aren't making broad assumptions. Finally, you are an agent - please keep going until the user's query is completely resolved.`,
309
- };
310
- const orderedPrompts = [
311
- 'preamble',
312
- 'coreMandates',
313
- ];
314
- if (enableCodebaseInvestigator && enableWriteTodosTool) {
315
- orderedPrompts.push('primaryWorkflows_prefix_ci_todo');
316
- }
317
- else if (enableCodebaseInvestigator) {
318
- orderedPrompts.push('primaryWorkflows_prefix_ci');
319
- }
320
- else if (enableWriteTodosTool) {
321
- orderedPrompts.push('primaryWorkflows_todo');
322
- }
323
- else {
324
- orderedPrompts.push('primaryWorkflows_prefix');
325
- }
326
- orderedPrompts.push('primaryWorkflows_suffix', 'operationalGuidelines', 'sandbox', 'git', 'finalReminder');
327
- // By default, all prompts are enabled. A prompt is disabled if its corresponding
328
- // GEMINI_PROMPT_<NAME> environment variable is set to "0" or "false".
329
- const enabledPrompts = orderedPrompts.filter((key) => {
330
- const envVar = process.env[`GEMINI_PROMPT_${key.toUpperCase()}`];
331
- const lowerEnvVar = envVar?.trim().toLowerCase();
332
- return lowerEnvVar !== '0' && lowerEnvVar !== 'false';
333
- });
334
- basePrompt = enabledPrompts.map((key) => promptConfig[key]).join('\n');
335
- basePrompt = `${basePrompt}${skillsPrompt}`;
336
- }
337
- // if GEMINI_WRITE_SYSTEM_MD is set (and not 0|false), write base system prompt to file
338
- const writeSystemMdResolution = resolvePathFromEnv(process.env['GEMINI_WRITE_SYSTEM_MD']);
339
- // Write the base prompt to a file if the GEMINI_WRITE_SYSTEM_MD environment
340
- // variable is set and is not explicitly '0' or 'false'.
341
- if (writeSystemMdResolution.value && !writeSystemMdResolution.isDisabled) {
342
- const writePath = writeSystemMdResolution.isSwitch
343
- ? systemMdPath
344
- : writeSystemMdResolution.value;
345
- fs.mkdirSync(path.dirname(writePath), { recursive: true });
346
- fs.writeFileSync(writePath, basePrompt);
347
- }
348
- basePrompt = basePrompt.trim();
349
- const memorySuffix = userMemory && userMemory.trim().length > 0
350
- ? `\n\n---\n\n${userMemory.trim()}`
351
- : '';
352
- return `${basePrompt}${memorySuffix}`;
15
+ /**
16
+ * Returns the core system prompt for the agent.
17
+ */
18
+ export function getCoreSystemPrompt(config, userMemory, interactiveOverride) {
19
+ return new PromptProvider().getCoreSystemPrompt(config, userMemory, interactiveOverride);
353
20
  }
354
21
  /**
355
22
  * Provides the system prompt for the history compression process.
356
- * This prompt instructs the model to act as a specialized state manager,
357
- * think in a scratchpad, and produce a structured XML summary.
358
23
  */
359
- export function getCompressionPrompt() {
360
- return `
361
- You are the component that summarizes internal chat history into a given structure.
362
-
363
- When the conversation history grows too large, you will be invoked to distill the entire history into a concise, structured XML snapshot. This snapshot is CRITICAL, as it will become the agent's *only* memory of the past. The agent will resume its work based solely on this snapshot. All crucial details, plans, errors, and user directives MUST be preserved.
364
-
365
- First, you will think through the entire history in a private <scratchpad>. Review the user's overall goal, the agent's actions, tool outputs, file modifications, and any unresolved questions. Identify every piece of information that is essential for future actions.
366
-
367
- After your reasoning is complete, generate the final <state_snapshot> XML object. Be incredibly dense with information. Omit any irrelevant conversational filler.
368
-
369
- The structure MUST be as follows:
370
-
371
- <state_snapshot>
372
- <overall_goal>
373
- <!-- A single, concise sentence describing the user's high-level objective. -->
374
- <!-- Example: "Refactor the authentication service to use a new JWT library." -->
375
- </overall_goal>
376
-
377
- <key_knowledge>
378
- <!-- Crucial facts, conventions, and constraints the agent must remember based on the conversation history and interaction with the user. Use bullet points. -->
379
- <!-- Example:
380
- - Build Command: \`npm run build\`
381
- - Testing: Tests are run with \`npm test\`. Test files must end in \`.test.ts\`.
382
- - API Endpoint: The primary API endpoint is \`https://api.example.com/v2\`.
383
-
384
- -->
385
- </key_knowledge>
386
-
387
- <file_system_state>
388
- <!-- List files that have been created, read, modified, or deleted. Note their status and critical learnings. -->
389
- <!-- Example:
390
- - CWD: \`/home/user/project/src\`
391
- - READ: \`package.json\` - Confirmed 'axios' is a dependency.
392
- - MODIFIED: \`services/auth.ts\` - Replaced 'jsonwebtoken' with 'jose'.
393
- - CREATED: \`tests/new-feature.test.ts\` - Initial test structure for the new feature.
394
- -->
395
- </file_system_state>
396
-
397
- <recent_actions>
398
- <!-- A summary of the last few significant agent actions and their outcomes. Focus on facts. -->
399
- <!-- Example:
400
- - Ran \`grep 'old_function'\` which returned 3 results in 2 files.
401
- - Ran \`npm run test\`, which failed due to a snapshot mismatch in \`UserProfile.test.ts\`.
402
- - Ran \`ls -F static/\` and discovered image assets are stored as \`.webp\`.
403
- -->
404
- </recent_actions>
405
-
406
- <current_plan>
407
- <!-- The agent's step-by-step plan. Mark completed steps. -->
408
- <!-- Example:
409
- 1. [DONE] Identify all files using the deprecated 'UserAPI'.
410
- 2. [IN PROGRESS] Refactor \`src/components/UserProfile.tsx\` to use the new 'ProfileAPI'.
411
- 3. [TODO] Refactor the remaining files.
412
- 4. [TODO] Update tests to reflect the API change.
413
- -->
414
- </current_plan>
415
- </state_snapshot>
416
- `.trim();
24
+ export function getCompressionPrompt(config) {
25
+ return new PromptProvider().getCompressionPrompt(config);
417
26
  }
418
27
  //# sourceMappingURL=prompts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/core/prompts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EACL,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,UAAU,kBAAkB,CAAC,MAAe;IAKhD,wFAAwF;IACxF,MAAM,aAAa,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;IACrC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OA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