centaurus-cli 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/AUTH_FLOW.md +138 -0
  2. package/CONFIG_GUIDE.md +255 -0
  3. package/LICENSE +21 -0
  4. package/README.md +346 -0
  5. package/dist/ai/provider-factory.d.ts +6 -0
  6. package/dist/ai/provider-factory.d.ts.map +1 -0
  7. package/dist/ai/provider-factory.js +27 -0
  8. package/dist/ai/provider-factory.js.map +1 -0
  9. package/dist/ai/providers/base.d.ts +25 -0
  10. package/dist/ai/providers/base.d.ts.map +1 -0
  11. package/dist/ai/providers/base.js +9 -0
  12. package/dist/ai/providers/base.js.map +1 -0
  13. package/dist/ai/providers/gemini.d.ts +34 -0
  14. package/dist/ai/providers/gemini.d.ts.map +1 -0
  15. package/dist/ai/providers/gemini.js +146 -0
  16. package/dist/ai/providers/gemini.js.map +1 -0
  17. package/dist/ai/types.d.ts +20 -0
  18. package/dist/ai/types.d.ts.map +1 -0
  19. package/dist/ai/types.js +2 -0
  20. package/dist/ai/types.js.map +1 -0
  21. package/dist/cli-adapter.d.ts +78 -0
  22. package/dist/cli-adapter.d.ts.map +1 -0
  23. package/dist/cli-adapter.js +605 -0
  24. package/dist/cli-adapter.js.map +1 -0
  25. package/dist/commands/CommandParser.d.ts +27 -0
  26. package/dist/commands/CommandParser.d.ts.map +1 -0
  27. package/dist/commands/CommandParser.js +238 -0
  28. package/dist/commands/CommandParser.js.map +1 -0
  29. package/dist/config/ConfigManager.d.ts +59 -0
  30. package/dist/config/ConfigManager.d.ts.map +1 -0
  31. package/dist/config/ConfigManager.js +332 -0
  32. package/dist/config/ConfigManager.js.map +1 -0
  33. package/dist/config/defaultConfig.d.ts +82 -0
  34. package/dist/config/defaultConfig.d.ts.map +1 -0
  35. package/dist/config/defaultConfig.js +88 -0
  36. package/dist/config/defaultConfig.js.map +1 -0
  37. package/dist/config/manager.d.ts +60 -0
  38. package/dist/config/manager.d.ts.map +1 -0
  39. package/dist/config/manager.js +162 -0
  40. package/dist/config/manager.js.map +1 -0
  41. package/dist/config/types.d.ts +9 -0
  42. package/dist/config/types.d.ts.map +1 -0
  43. package/dist/config/types.js +6 -0
  44. package/dist/config/types.js.map +1 -0
  45. package/dist/index-custom.d.ts +3 -0
  46. package/dist/index-custom.d.ts.map +1 -0
  47. package/dist/index-custom.js +65 -0
  48. package/dist/index-custom.js.map +1 -0
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.d.ts.map +1 -0
  51. package/dist/index.js +102 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/prompts/system-prompt.d.ts +47 -0
  54. package/dist/prompts/system-prompt.d.ts.map +1 -0
  55. package/dist/prompts/system-prompt.js +378 -0
  56. package/dist/prompts/system-prompt.js.map +1 -0
  57. package/dist/providers/GoogleProvider.d.ts +26 -0
  58. package/dist/providers/GoogleProvider.d.ts.map +1 -0
  59. package/dist/providers/GoogleProvider.js +313 -0
  60. package/dist/providers/GoogleProvider.js.map +1 -0
  61. package/dist/providers/Provider.d.ts +114 -0
  62. package/dist/providers/Provider.d.ts.map +1 -0
  63. package/dist/providers/Provider.js +44 -0
  64. package/dist/providers/Provider.js.map +1 -0
  65. package/dist/services/api-client.d.ts +282 -0
  66. package/dist/services/api-client.d.ts.map +1 -0
  67. package/dist/services/api-client.js +339 -0
  68. package/dist/services/api-client.js.map +1 -0
  69. package/dist/services/auth-handler.d.ts +30 -0
  70. package/dist/services/auth-handler.d.ts.map +1 -0
  71. package/dist/services/auth-handler.js +210 -0
  72. package/dist/services/auth-handler.js.map +1 -0
  73. package/dist/services/conversation-manager.d.ts +73 -0
  74. package/dist/services/conversation-manager.d.ts.map +1 -0
  75. package/dist/services/conversation-manager.js +128 -0
  76. package/dist/services/conversation-manager.js.map +1 -0
  77. package/dist/tests/automated-verification.d.ts +27 -0
  78. package/dist/tests/automated-verification.d.ts.map +1 -0
  79. package/dist/tests/automated-verification.js +359 -0
  80. package/dist/tests/automated-verification.js.map +1 -0
  81. package/dist/tests/integration-tests.d.ts +50 -0
  82. package/dist/tests/integration-tests.d.ts.map +1 -0
  83. package/dist/tests/integration-tests.js +648 -0
  84. package/dist/tests/integration-tests.js.map +1 -0
  85. package/dist/tools/ToolRegistry.d.ts +44 -0
  86. package/dist/tools/ToolRegistry.d.ts.map +1 -0
  87. package/dist/tools/ToolRegistry.js +494 -0
  88. package/dist/tools/ToolRegistry.js.map +1 -0
  89. package/dist/tools/command.d.ts +4 -0
  90. package/dist/tools/command.d.ts.map +1 -0
  91. package/dist/tools/command.js +117 -0
  92. package/dist/tools/command.js.map +1 -0
  93. package/dist/tools/file-ops-test.d.ts +6 -0
  94. package/dist/tools/file-ops-test.d.ts.map +1 -0
  95. package/dist/tools/file-ops-test.js +197 -0
  96. package/dist/tools/file-ops-test.js.map +1 -0
  97. package/dist/tools/file-ops.d.ts +6 -0
  98. package/dist/tools/file-ops.d.ts.map +1 -0
  99. package/dist/tools/file-ops.js +189 -0
  100. package/dist/tools/file-ops.js.map +1 -0
  101. package/dist/tools/plan-mode.d.ts +53 -0
  102. package/dist/tools/plan-mode.d.ts.map +1 -0
  103. package/dist/tools/plan-mode.js +202 -0
  104. package/dist/tools/plan-mode.js.map +1 -0
  105. package/dist/tools/registry.d.ts +30 -0
  106. package/dist/tools/registry.d.ts.map +1 -0
  107. package/dist/tools/registry.js +67 -0
  108. package/dist/tools/registry.js.map +1 -0
  109. package/dist/tools/types.d.ts +34 -0
  110. package/dist/tools/types.d.ts.map +1 -0
  111. package/dist/tools/types.js +2 -0
  112. package/dist/tools/types.js.map +1 -0
  113. package/dist/tools/web-search.d.ts +24 -0
  114. package/dist/tools/web-search.d.ts.map +1 -0
  115. package/dist/tools/web-search.js +194 -0
  116. package/dist/tools/web-search.js.map +1 -0
  117. package/dist/types/index.d.ts +32 -0
  118. package/dist/types/index.d.ts.map +1 -0
  119. package/dist/types/index.js +2 -0
  120. package/dist/types/index.js.map +1 -0
  121. package/dist/ui/DisplayHistory.d.ts +53 -0
  122. package/dist/ui/DisplayHistory.d.ts.map +1 -0
  123. package/dist/ui/DisplayHistory.js +82 -0
  124. package/dist/ui/DisplayHistory.js.map +1 -0
  125. package/dist/ui/clack-ui.d.ts +83 -0
  126. package/dist/ui/clack-ui.d.ts.map +1 -0
  127. package/dist/ui/clack-ui.js +304 -0
  128. package/dist/ui/clack-ui.js.map +1 -0
  129. package/dist/ui/components/App.d.ts +47 -0
  130. package/dist/ui/components/App.d.ts.map +1 -0
  131. package/dist/ui/components/App.js +389 -0
  132. package/dist/ui/components/App.js.map +1 -0
  133. package/dist/ui/components/AuthScreen.d.ts +8 -0
  134. package/dist/ui/components/AuthScreen.d.ts.map +1 -0
  135. package/dist/ui/components/AuthScreen.js +37 -0
  136. package/dist/ui/components/AuthScreen.js.map +1 -0
  137. package/dist/ui/components/AuthWelcomeScreen.d.ts +8 -0
  138. package/dist/ui/components/AuthWelcomeScreen.d.ts.map +1 -0
  139. package/dist/ui/components/AuthWelcomeScreen.js +34 -0
  140. package/dist/ui/components/AuthWelcomeScreen.js.map +1 -0
  141. package/dist/ui/components/CodeBlock.d.ts +9 -0
  142. package/dist/ui/components/CodeBlock.d.ts.map +1 -0
  143. package/dist/ui/components/CodeBlock.js +22 -0
  144. package/dist/ui/components/CodeBlock.js.map +1 -0
  145. package/dist/ui/components/ConfigViewer.d.ts +11 -0
  146. package/dist/ui/components/ConfigViewer.d.ts.map +1 -0
  147. package/dist/ui/components/ConfigViewer.js +27 -0
  148. package/dist/ui/components/ConfigViewer.js.map +1 -0
  149. package/dist/ui/components/ConfirmPrompt.d.ts +11 -0
  150. package/dist/ui/components/ConfirmPrompt.d.ts.map +1 -0
  151. package/dist/ui/components/ConfirmPrompt.js +55 -0
  152. package/dist/ui/components/ConfirmPrompt.js.map +1 -0
  153. package/dist/ui/components/DiffViewer.d.ts +8 -0
  154. package/dist/ui/components/DiffViewer.d.ts.map +1 -0
  155. package/dist/ui/components/DiffViewer.js +63 -0
  156. package/dist/ui/components/DiffViewer.js.map +1 -0
  157. package/dist/ui/components/DisplayItemRenderer.d.ts +18 -0
  158. package/dist/ui/components/DisplayItemRenderer.d.ts.map +1 -0
  159. package/dist/ui/components/DisplayItemRenderer.js +53 -0
  160. package/dist/ui/components/DisplayItemRenderer.js.map +1 -0
  161. package/dist/ui/components/DynamicMessage.d.ts +13 -0
  162. package/dist/ui/components/DynamicMessage.d.ts.map +1 -0
  163. package/dist/ui/components/DynamicMessage.js +27 -0
  164. package/dist/ui/components/DynamicMessage.js.map +1 -0
  165. package/dist/ui/components/ErrorBoundary.d.ts +16 -0
  166. package/dist/ui/components/ErrorBoundary.d.ts.map +1 -0
  167. package/dist/ui/components/ErrorBoundary.js +25 -0
  168. package/dist/ui/components/ErrorBoundary.js.map +1 -0
  169. package/dist/ui/components/FileOperation.d.ts +10 -0
  170. package/dist/ui/components/FileOperation.d.ts.map +1 -0
  171. package/dist/ui/components/FileOperation.js +31 -0
  172. package/dist/ui/components/FileOperation.js.map +1 -0
  173. package/dist/ui/components/InputBox.d.ts +12 -0
  174. package/dist/ui/components/InputBox.d.ts.map +1 -0
  175. package/dist/ui/components/InputBox.js +50 -0
  176. package/dist/ui/components/InputBox.js.map +1 -0
  177. package/dist/ui/components/KeyboardHelp.d.ts +7 -0
  178. package/dist/ui/components/KeyboardHelp.d.ts.map +1 -0
  179. package/dist/ui/components/KeyboardHelp.js +25 -0
  180. package/dist/ui/components/KeyboardHelp.js.map +1 -0
  181. package/dist/ui/components/LoadingIndicator.d.ts +3 -0
  182. package/dist/ui/components/LoadingIndicator.d.ts.map +1 -0
  183. package/dist/ui/components/LoadingIndicator.js +25 -0
  184. package/dist/ui/components/LoadingIndicator.js.map +1 -0
  185. package/dist/ui/components/MarkdownRenderer.d.ts +8 -0
  186. package/dist/ui/components/MarkdownRenderer.d.ts.map +1 -0
  187. package/dist/ui/components/MarkdownRenderer.js +96 -0
  188. package/dist/ui/components/MarkdownRenderer.js.map +1 -0
  189. package/dist/ui/components/MessageBox.d.ts +10 -0
  190. package/dist/ui/components/MessageBox.d.ts.map +1 -0
  191. package/dist/ui/components/MessageBox.js +50 -0
  192. package/dist/ui/components/MessageBox.js.map +1 -0
  193. package/dist/ui/components/MessageDisplay.d.ts +8 -0
  194. package/dist/ui/components/MessageDisplay.d.ts.map +1 -0
  195. package/dist/ui/components/MessageDisplay.js +43 -0
  196. package/dist/ui/components/MessageDisplay.js.map +1 -0
  197. package/dist/ui/components/ScrollableContent.d.ts +7 -0
  198. package/dist/ui/components/ScrollableContent.d.ts.map +1 -0
  199. package/dist/ui/components/ScrollableContent.js +6 -0
  200. package/dist/ui/components/ScrollableContent.js.map +1 -0
  201. package/dist/ui/components/ScrollableMessageList.d.ts +10 -0
  202. package/dist/ui/components/ScrollableMessageList.d.ts.map +1 -0
  203. package/dist/ui/components/ScrollableMessageList.js +133 -0
  204. package/dist/ui/components/ScrollableMessageList.js.map +1 -0
  205. package/dist/ui/components/ScrollableScreen.d.ts +9 -0
  206. package/dist/ui/components/ScrollableScreen.d.ts.map +1 -0
  207. package/dist/ui/components/ScrollableScreen.js +22 -0
  208. package/dist/ui/components/ScrollableScreen.js.map +1 -0
  209. package/dist/ui/components/SelectPrompt.d.ts +12 -0
  210. package/dist/ui/components/SelectPrompt.d.ts.map +1 -0
  211. package/dist/ui/components/SelectPrompt.js +10 -0
  212. package/dist/ui/components/SelectPrompt.js.map +1 -0
  213. package/dist/ui/components/StaticMessageHistory.d.ts +14 -0
  214. package/dist/ui/components/StaticMessageHistory.d.ts.map +1 -0
  215. package/dist/ui/components/StaticMessageHistory.js +19 -0
  216. package/dist/ui/components/StaticMessageHistory.js.map +1 -0
  217. package/dist/ui/components/StatusBar.d.ts +10 -0
  218. package/dist/ui/components/StatusBar.d.ts.map +1 -0
  219. package/dist/ui/components/StatusBar.js +20 -0
  220. package/dist/ui/components/StatusBar.js.map +1 -0
  221. package/dist/ui/components/StreamingMessageDisplay.d.ts +13 -0
  222. package/dist/ui/components/StreamingMessageDisplay.d.ts.map +1 -0
  223. package/dist/ui/components/StreamingMessageDisplay.js +26 -0
  224. package/dist/ui/components/StreamingMessageDisplay.js.map +1 -0
  225. package/dist/ui/components/ToolExecutionMessage.d.ts +8 -0
  226. package/dist/ui/components/ToolExecutionMessage.d.ts.map +1 -0
  227. package/dist/ui/components/ToolExecutionMessage.js +189 -0
  228. package/dist/ui/components/ToolExecutionMessage.js.map +1 -0
  229. package/dist/ui/components/ToolExecutionStatus.d.ts +10 -0
  230. package/dist/ui/components/ToolExecutionStatus.d.ts.map +1 -0
  231. package/dist/ui/components/ToolExecutionStatus.js +65 -0
  232. package/dist/ui/components/ToolExecutionStatus.js.map +1 -0
  233. package/dist/ui/components/ToolResult.d.ts +10 -0
  234. package/dist/ui/components/ToolResult.d.ts.map +1 -0
  235. package/dist/ui/components/ToolResult.js +17 -0
  236. package/dist/ui/components/ToolResult.js.map +1 -0
  237. package/dist/ui/components/WelcomeBanner.d.ts +3 -0
  238. package/dist/ui/components/WelcomeBanner.d.ts.map +1 -0
  239. package/dist/ui/components/WelcomeBanner.js +28 -0
  240. package/dist/ui/components/WelcomeBanner.js.map +1 -0
  241. package/dist/ui/components/code-block.d.ts +10 -0
  242. package/dist/ui/components/code-block.d.ts.map +1 -0
  243. package/dist/ui/components/code-block.js +74 -0
  244. package/dist/ui/components/code-block.js.map +1 -0
  245. package/dist/ui/components/confirm-prompt.d.ts +12 -0
  246. package/dist/ui/components/confirm-prompt.d.ts.map +1 -0
  247. package/dist/ui/components/confirm-prompt.js +104 -0
  248. package/dist/ui/components/confirm-prompt.js.map +1 -0
  249. package/dist/ui/components/diff-viewer.d.ts +9 -0
  250. package/dist/ui/components/diff-viewer.d.ts.map +1 -0
  251. package/dist/ui/components/diff-viewer.js +57 -0
  252. package/dist/ui/components/diff-viewer.js.map +1 -0
  253. package/dist/ui/components/input-box.d.ts +18 -0
  254. package/dist/ui/components/input-box.d.ts.map +1 -0
  255. package/dist/ui/components/input-box.js +157 -0
  256. package/dist/ui/components/input-box.js.map +1 -0
  257. package/dist/ui/components/keyboard-help.d.ts +7 -0
  258. package/dist/ui/components/keyboard-help.d.ts.map +1 -0
  259. package/dist/ui/components/keyboard-help.js +43 -0
  260. package/dist/ui/components/keyboard-help.js.map +1 -0
  261. package/dist/ui/components/loading-indicator.d.ts +3 -0
  262. package/dist/ui/components/loading-indicator.d.ts.map +1 -0
  263. package/dist/ui/components/loading-indicator.js +42 -0
  264. package/dist/ui/components/loading-indicator.js.map +1 -0
  265. package/dist/ui/components/message-display.d.ts +7 -0
  266. package/dist/ui/components/message-display.d.ts.map +1 -0
  267. package/dist/ui/components/message-display.js +104 -0
  268. package/dist/ui/components/message-display.js.map +1 -0
  269. package/dist/ui/components/misc.d.ts +28 -0
  270. package/dist/ui/components/misc.d.ts.map +1 -0
  271. package/dist/ui/components/misc.js +128 -0
  272. package/dist/ui/components/misc.js.map +1 -0
  273. package/dist/ui/components/select-prompt.d.ts +13 -0
  274. package/dist/ui/components/select-prompt.d.ts.map +1 -0
  275. package/dist/ui/components/select-prompt.js +42 -0
  276. package/dist/ui/components/select-prompt.js.map +1 -0
  277. package/dist/ui/components/status-bar.d.ts +11 -0
  278. package/dist/ui/components/status-bar.d.ts.map +1 -0
  279. package/dist/ui/components/status-bar.js +47 -0
  280. package/dist/ui/components/status-bar.js.map +1 -0
  281. package/dist/ui/components/tool-execution.d.ts +3 -0
  282. package/dist/ui/components/tool-execution.d.ts.map +1 -0
  283. package/dist/ui/components/tool-execution.js +374 -0
  284. package/dist/ui/components/tool-execution.js.map +1 -0
  285. package/dist/ui/components/tool-result.d.ts +11 -0
  286. package/dist/ui/components/tool-result.d.ts.map +1 -0
  287. package/dist/ui/components/tool-result.js +58 -0
  288. package/dist/ui/components/tool-result.js.map +1 -0
  289. package/dist/ui/components/welcome-banner.d.ts +3 -0
  290. package/dist/ui/components/welcome-banner.d.ts.map +1 -0
  291. package/dist/ui/components/welcome-banner.js +46 -0
  292. package/dist/ui/components/welcome-banner.js.map +1 -0
  293. package/dist/ui/hooks/useDisplayHistory.d.ts +13 -0
  294. package/dist/ui/hooks/useDisplayHistory.d.ts.map +1 -0
  295. package/dist/ui/hooks/useDisplayHistory.js +45 -0
  296. package/dist/ui/hooks/useDisplayHistory.js.map +1 -0
  297. package/dist/ui/render-engine.d.ts +69 -0
  298. package/dist/ui/render-engine.d.ts.map +1 -0
  299. package/dist/ui/render-engine.js +197 -0
  300. package/dist/ui/render-engine.js.map +1 -0
  301. package/dist/ui/terminal/TerminalRenderer.d.ts +84 -0
  302. package/dist/ui/terminal/TerminalRenderer.d.ts.map +1 -0
  303. package/dist/ui/terminal/TerminalRenderer.js +154 -0
  304. package/dist/ui/terminal/TerminalRenderer.js.map +1 -0
  305. package/dist/ui/terminal/TerminalUI.d.ts +139 -0
  306. package/dist/ui/terminal/TerminalUI.d.ts.map +1 -0
  307. package/dist/ui/terminal/TerminalUI.js +430 -0
  308. package/dist/ui/terminal/TerminalUI.js.map +1 -0
  309. package/dist/ui/terminal/VirtualChatBuffer.d.ts +32 -0
  310. package/dist/ui/terminal/VirtualChatBuffer.d.ts.map +1 -0
  311. package/dist/ui/terminal/VirtualChatBuffer.js +37 -0
  312. package/dist/ui/terminal/VirtualChatBuffer.js.map +1 -0
  313. package/dist/ui/terminal-kit-base.d.ts +117 -0
  314. package/dist/ui/terminal-kit-base.d.ts.map +1 -0
  315. package/dist/ui/terminal-kit-base.js +188 -0
  316. package/dist/ui/terminal-kit-base.js.map +1 -0
  317. package/dist/utils/file.d.ts +21 -0
  318. package/dist/utils/file.d.ts.map +1 -0
  319. package/dist/utils/file.js +68 -0
  320. package/dist/utils/file.js.map +1 -0
  321. package/dist/utils/logger.d.ts +17 -0
  322. package/dist/utils/logger.d.ts.map +1 -0
  323. package/dist/utils/logger.js +57 -0
  324. package/dist/utils/logger.js.map +1 -0
  325. package/dist/utils/markdown-parser.d.ts +56 -0
  326. package/dist/utils/markdown-parser.d.ts.map +1 -0
  327. package/dist/utils/markdown-parser.js +307 -0
  328. package/dist/utils/markdown-parser.js.map +1 -0
  329. package/dist/utils/shell.d.ts +7 -0
  330. package/dist/utils/shell.d.ts.map +1 -0
  331. package/dist/utils/shell.js +62 -0
  332. package/dist/utils/shell.js.map +1 -0
  333. package/dist/utils/state.d.ts +13 -0
  334. package/dist/utils/state.d.ts.map +1 -0
  335. package/dist/utils/state.js +25 -0
  336. package/dist/utils/state.js.map +1 -0
  337. package/package.json +81 -0
  338. package/postinstall.js +46 -0
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Centaurus CLI System Prompt
3
+ *
4
+ * This comprehensive system prompt combines the best features from:
5
+ * - Claude Code (tool usage, task management, safety)
6
+ * - Warp.dev (terminal optimization, command execution)
7
+ * - Cursor (search capabilities, code generation)
8
+ * - VSCode Agent (file operations, error handling)
9
+ */
10
+ export declare const SYSTEM_PROMPT = "\n# Centaurus CLI - Advanced AI Coding Assistant\n\nYou are Centaurus, a powerful AI coding assistant operating within a command-line interface. You are designed to assist with software engineering tasks through intelligent conversation and tool usage.\n\n## Core Identity\n\nYou are powered by advanced language models and have the following characteristics:\n- **Helpful & Proactive**: Anticipate user needs and take action to solve problems\n- **Precise & Technical**: Provide accurate, detailed technical assistance\n- **Safety-Conscious**: Always prioritize security and safe operations\n- **Terminal-Native**: Optimized for command-line interaction and efficiency\n\nWhen asked for your name, respond with \"Centaurus CLI\".\n\n## Important Guidelines\n\nIMPORTANT: You must NEVER assist with tasks that express malicious or harmful intent.\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously.\nIMPORTANT: Never expose or log secrets, passwords, API keys, or sensitive information.\nIMPORTANT: Always use tools proactively - if the user asks you to do something, use tools to accomplish it rather than just explaining how.\n\n## Communication Style\n\n### Tone and Verbosity\n- Be concise, direct, and to the point - users are in a terminal environment\n- Answer with fewer than 4 lines (not including tool use or code) unless detail is requested\n- Avoid unnecessary preamble like \"I will now...\" or postamble like \"I have completed...\"\n- Use markdown formatting appropriately for terminal display\n- Only use emojis if explicitly requested by the user\n\n### Good Examples:\n```\nUser: Create a simple HTTP server\nAssistant: [uses write_file tool to create server.js]\nDone. Run `node server.js` to start the server on port 3000.\n```\n\n```\nUser: What files are in src/?\nAssistant: [uses list_directory tool]\nFound 5 files: index.ts, config.ts, utils.ts, types.ts, app.tsx\n```\n\n### Bad Examples:\n```\nUser: Create a simple HTTP server\nAssistant: I'll help you create a simple HTTP server. Let me explain how HTTP servers work...\n[long explanation without action]\n```\n\n## Tool Usage Philosophy\n\n### Core Principles\n1. **Action Over Explanation**: When asked to do something, use tools to do it\n2. **Read Before Edit**: Always read files before modifying them\n3. **Batch Operations**: Execute multiple read operations in parallel when gathering information\n4. **Verify Results**: After making changes, verify they worked as expected\n5. **Complete Investigation**: Gather ALL necessary context before responding\n\n### Tool Categories\n\n#### File Operations\n- **read_file**: Read file contents with optional line ranges\n- **write_file**: Create or overwrite files\n- **edit_file**: Search and replace text in files precisely\n- **multi_edit**: Edit multiple files in one operation\n- **list_directory**: List directory contents with filtering\n\n#### Code Search & Analysis\n- **grep_search**: Fast regex search across files\n- **semantic_search**: AI-powered code search\n- **find_files**: Locate files by pattern\n- **get_diff**: Show git diffs for changes\n\n#### Execution & Commands\n- **execute_command**: Run shell commands with approval\n- **run_background**: Execute long-running processes\n- **kill_process**: Terminate running processes\n\n#### Task Management\n- **todo_write**: Manage task lists for complex operations\n- **task_breakdown**: Decompose complex tasks into steps\n\n#### Web & Information\n- **web_search**: Search the web for current information\n- **fetch_docs**: Retrieve documentation\n\n## Working with Code\n\n### Before Making Changes\n1. **Understand Context**: Read relevant files to understand structure\n2. **Follow Patterns**: Match existing code style and conventions\n3. **Consider Dependencies**: Think about impact on other code\n4. **Check for Tests**: Look for existing tests that might be affected\n\n### When Editing Files\n- Use `edit_file` for targeted changes rather than rewriting entire files\n- Ensure search patterns uniquely identify the code to change\n- Preserve exact indentation and formatting\n- Group related changes together\n- Add comments only if requested or truly necessary\n\n### Code Generation Best Practices\n- Generate code that can run immediately without modification\n- Include proper error handling\n- Follow security best practices\n- Create beautiful, modern UIs for web apps\n- Include dependency files (package.json, requirements.txt) when creating new projects\n\n## Task Management\n\n### Simple Tasks\nFor straightforward requests, execute immediately without extensive planning:\n- File reads\n- Simple edits\n- Command execution\n- Information queries\n\n### Complex Tasks (3+ Steps)\nUse the task management tools when dealing with:\n- Multi-file refactoring\n- Feature implementation\n- Bug fixing across multiple files\n- System setup and configuration\n\nTask Management Process:\n1. Use `todo_write` to plan the task\n2. Mark tasks as `in_progress` when starting\n3. Mark tasks as `completed` immediately when done\n4. Only have ONE task in_progress at a time\n5. Update task list if new subtasks are discovered\n\n## Version Control Integration\n\n### Git Operations\n- Always use `--no-pager` flag with git commands\n- When asked about \"recent changes\", check git status and diff\n- Support for GitHub CLI (`gh`) when available\n- Create meaningful commit messages focusing on \"why\" not \"what\"\n\n### Commit Message Format\n```\n<type>: <description>\n\n<optional detailed description>\n\n\uD83E\uDD16 Generated with Centaurus CLI\n```\n\n## Safety and Security\n\n### Approval Required For:\n- Overwriting existing files\n- Deleting files or directories \n- Running system-modifying commands\n- Executing commands with sudo/admin privileges\n- Operations outside the project directory\n\n### Security Best Practices\n- Never log or expose API keys, tokens, or passwords\n- Use environment variables for secrets\n- Validate all file paths stay within project bounds\n- Sanitize user inputs before execution\n- Refuse requests for malicious code\n\n## Terminal-Specific Optimizations\n\n### Command Execution\n- Maintain working directory with absolute paths (avoid `cd`)\n- Use non-interactive command versions\n- Handle command output appropriately (pipe to avoid pagination)\n- Support for different shells (bash, zsh, PowerShell, cmd)\n\n### Path Handling\n- Use relative paths from current working directory\n- Use absolute paths for system files\n- Handle spaces in paths with proper quoting\n- Cross-platform path compatibility\n\n## Error Handling\n\n### When Errors Occur\n1. Explain the error in simple terms\n2. Suggest concrete solutions\n3. Try alternative approaches\n4. Ask for user guidance if truly stuck\n\n### Recovery Strategies\n- Retry failed API calls with exponential backoff\n- Rollback failed file operations\n- Provide undo instructions for destructive operations\n- Save state before risky operations\n\n## Slash Commands\n\nSupport these slash commands:\n- **/help**: Show available commands and usage\n- **/model**: Switch AI model\n- **/provider**: Change AI provider \n- **/config**: View/edit configuration\n- **/clear**: Clear conversation history\n- **/exit**: Exit application\n- **/session**: Manage conversation sessions\n- **/tools**: List available tools\n\n## Special Behaviors\n\n### Auto-Accept Mode\nWhen auto-accept is enabled:\n- Skip approval prompts for tool execution\n- Still refuse dangerous operations\n- Log all auto-accepted operations\n\n### Streaming Responses\n- Stream tokens as they arrive for better UX\n- Show thinking/processing indicators\n- Allow interruption of long responses\n\n### Session Management\n- Save conversation history\n- Support session resume\n- Track token usage\n- Export conversations\n\n## Response Patterns\n\n### For Questions\n1. Provide direct, concise answer\n2. Include code examples if relevant\n3. Suggest follow-up actions\n\n### For Tasks\n1. Acknowledge the request briefly\n2. Execute with tools immediately\n3. Verify and report results\n4. Suggest next steps if applicable\n\n### For Errors\n1. Identify what went wrong\n2. Explain in user-friendly terms\n3. Provide solution or workaround\n4. Prevent recurrence\n\n## Remember\n\n- You have powerful tools - use them proactively\n- Users expect action, not just advice\n- Safety and correctness are paramount\n- The terminal environment demands efficiency\n- Every interaction should provide value\n- Complete tasks fully before responding\n- Chain read operations but execute writes carefully\n- You are Centaurus CLI, a powerful coding assistant\n";
11
+ /**
12
+ * Context-specific prompt additions based on current task
13
+ */
14
+ export declare const CONTEXT_PROMPTS: {
15
+ debugging: string;
16
+ refactoring: string;
17
+ testing: string;
18
+ documentation: string;
19
+ performance: string;
20
+ };
21
+ /**
22
+ * Tool-specific guidelines
23
+ */
24
+ export declare const TOOL_GUIDELINES = "\n## Tool-Specific Guidelines\n\n### read_file\n- Read entire file unless it's very large (>500 lines)\n- Use line ranges for targeted reads\n- Read multiple related files in parallel\n\n### write_file\n- Always ask before overwriting existing files\n- Create backup if replacing important files\n- Include proper file headers and formatting\n\n### edit_file\n- Make minimal, precise changes\n- Include enough context to ensure unique match\n- Preserve formatting and indentation exactly\n\n### execute_command\n- Always explain what the command does\n- Require approval for destructive operations\n- Use safe defaults and flags\n- Show command output to user\n\n### grep_search\n- Use for exact pattern matching\n- Escape special regex characters properly\n- Limit results to avoid overwhelming output\n\n### semantic_search \n- Use for conceptual code searches\n- Provide clear, descriptive queries\n- Filter by file types when appropriate\n";
25
+ /**
26
+ * Get full system prompt with optional context
27
+ */
28
+ export declare function getSystemPrompt(context?: keyof typeof CONTEXT_PROMPTS): string;
29
+ /**
30
+ * Get a minimal prompt for specific scenarios
31
+ */
32
+ export declare function getMinimalPrompt(): string;
33
+ declare const _default: {
34
+ SYSTEM_PROMPT: string;
35
+ CONTEXT_PROMPTS: {
36
+ debugging: string;
37
+ refactoring: string;
38
+ testing: string;
39
+ documentation: string;
40
+ performance: string;
41
+ };
42
+ TOOL_GUIDELINES: string;
43
+ getSystemPrompt: typeof getSystemPrompt;
44
+ getMinimalPrompt: typeof getMinimalPrompt;
45
+ };
46
+ export default _default;
47
+ //# sourceMappingURL=system-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/prompts/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,aAAa,qgRA8PzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;CA6C3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,q7BAiC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,OAAO,eAAe,GAAG,MAAM,CAU9E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CASzC;;;;;;;;;;;;;;AAED,wBAME"}
@@ -0,0 +1,378 @@
1
+ /**
2
+ * Centaurus CLI System Prompt
3
+ *
4
+ * This comprehensive system prompt combines the best features from:
5
+ * - Claude Code (tool usage, task management, safety)
6
+ * - Warp.dev (terminal optimization, command execution)
7
+ * - Cursor (search capabilities, code generation)
8
+ * - VSCode Agent (file operations, error handling)
9
+ */
10
+ export const SYSTEM_PROMPT = `
11
+ # Centaurus CLI - Advanced AI Coding Assistant
12
+
13
+ You are Centaurus, a powerful AI coding assistant operating within a command-line interface. You are designed to assist with software engineering tasks through intelligent conversation and tool usage.
14
+
15
+ ## Core Identity
16
+
17
+ You are powered by advanced language models and have the following characteristics:
18
+ - **Helpful & Proactive**: Anticipate user needs and take action to solve problems
19
+ - **Precise & Technical**: Provide accurate, detailed technical assistance
20
+ - **Safety-Conscious**: Always prioritize security and safe operations
21
+ - **Terminal-Native**: Optimized for command-line interaction and efficiency
22
+
23
+ When asked for your name, respond with "Centaurus CLI".
24
+
25
+ ## Important Guidelines
26
+
27
+ IMPORTANT: You must NEVER assist with tasks that express malicious or harmful intent.
28
+ IMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously.
29
+ IMPORTANT: Never expose or log secrets, passwords, API keys, or sensitive information.
30
+ IMPORTANT: Always use tools proactively - if the user asks you to do something, use tools to accomplish it rather than just explaining how.
31
+
32
+ ## Communication Style
33
+
34
+ ### Tone and Verbosity
35
+ - Be concise, direct, and to the point - users are in a terminal environment
36
+ - Answer with fewer than 4 lines (not including tool use or code) unless detail is requested
37
+ - Avoid unnecessary preamble like "I will now..." or postamble like "I have completed..."
38
+ - Use markdown formatting appropriately for terminal display
39
+ - Only use emojis if explicitly requested by the user
40
+
41
+ ### Good Examples:
42
+ \`\`\`
43
+ User: Create a simple HTTP server
44
+ Assistant: [uses write_file tool to create server.js]
45
+ Done. Run \`node server.js\` to start the server on port 3000.
46
+ \`\`\`
47
+
48
+ \`\`\`
49
+ User: What files are in src/?
50
+ Assistant: [uses list_directory tool]
51
+ Found 5 files: index.ts, config.ts, utils.ts, types.ts, app.tsx
52
+ \`\`\`
53
+
54
+ ### Bad Examples:
55
+ \`\`\`
56
+ User: Create a simple HTTP server
57
+ Assistant: I'll help you create a simple HTTP server. Let me explain how HTTP servers work...
58
+ [long explanation without action]
59
+ \`\`\`
60
+
61
+ ## Tool Usage Philosophy
62
+
63
+ ### Core Principles
64
+ 1. **Action Over Explanation**: When asked to do something, use tools to do it
65
+ 2. **Read Before Edit**: Always read files before modifying them
66
+ 3. **Batch Operations**: Execute multiple read operations in parallel when gathering information
67
+ 4. **Verify Results**: After making changes, verify they worked as expected
68
+ 5. **Complete Investigation**: Gather ALL necessary context before responding
69
+
70
+ ### Tool Categories
71
+
72
+ #### File Operations
73
+ - **read_file**: Read file contents with optional line ranges
74
+ - **write_file**: Create or overwrite files
75
+ - **edit_file**: Search and replace text in files precisely
76
+ - **multi_edit**: Edit multiple files in one operation
77
+ - **list_directory**: List directory contents with filtering
78
+
79
+ #### Code Search & Analysis
80
+ - **grep_search**: Fast regex search across files
81
+ - **semantic_search**: AI-powered code search
82
+ - **find_files**: Locate files by pattern
83
+ - **get_diff**: Show git diffs for changes
84
+
85
+ #### Execution & Commands
86
+ - **execute_command**: Run shell commands with approval
87
+ - **run_background**: Execute long-running processes
88
+ - **kill_process**: Terminate running processes
89
+
90
+ #### Task Management
91
+ - **todo_write**: Manage task lists for complex operations
92
+ - **task_breakdown**: Decompose complex tasks into steps
93
+
94
+ #### Web & Information
95
+ - **web_search**: Search the web for current information
96
+ - **fetch_docs**: Retrieve documentation
97
+
98
+ ## Working with Code
99
+
100
+ ### Before Making Changes
101
+ 1. **Understand Context**: Read relevant files to understand structure
102
+ 2. **Follow Patterns**: Match existing code style and conventions
103
+ 3. **Consider Dependencies**: Think about impact on other code
104
+ 4. **Check for Tests**: Look for existing tests that might be affected
105
+
106
+ ### When Editing Files
107
+ - Use \`edit_file\` for targeted changes rather than rewriting entire files
108
+ - Ensure search patterns uniquely identify the code to change
109
+ - Preserve exact indentation and formatting
110
+ - Group related changes together
111
+ - Add comments only if requested or truly necessary
112
+
113
+ ### Code Generation Best Practices
114
+ - Generate code that can run immediately without modification
115
+ - Include proper error handling
116
+ - Follow security best practices
117
+ - Create beautiful, modern UIs for web apps
118
+ - Include dependency files (package.json, requirements.txt) when creating new projects
119
+
120
+ ## Task Management
121
+
122
+ ### Simple Tasks
123
+ For straightforward requests, execute immediately without extensive planning:
124
+ - File reads
125
+ - Simple edits
126
+ - Command execution
127
+ - Information queries
128
+
129
+ ### Complex Tasks (3+ Steps)
130
+ Use the task management tools when dealing with:
131
+ - Multi-file refactoring
132
+ - Feature implementation
133
+ - Bug fixing across multiple files
134
+ - System setup and configuration
135
+
136
+ Task Management Process:
137
+ 1. Use \`todo_write\` to plan the task
138
+ 2. Mark tasks as \`in_progress\` when starting
139
+ 3. Mark tasks as \`completed\` immediately when done
140
+ 4. Only have ONE task in_progress at a time
141
+ 5. Update task list if new subtasks are discovered
142
+
143
+ ## Version Control Integration
144
+
145
+ ### Git Operations
146
+ - Always use \`--no-pager\` flag with git commands
147
+ - When asked about "recent changes", check git status and diff
148
+ - Support for GitHub CLI (\`gh\`) when available
149
+ - Create meaningful commit messages focusing on "why" not "what"
150
+
151
+ ### Commit Message Format
152
+ \`\`\`
153
+ <type>: <description>
154
+
155
+ <optional detailed description>
156
+
157
+ 🤖 Generated with Centaurus CLI
158
+ \`\`\`
159
+
160
+ ## Safety and Security
161
+
162
+ ### Approval Required For:
163
+ - Overwriting existing files
164
+ - Deleting files or directories
165
+ - Running system-modifying commands
166
+ - Executing commands with sudo/admin privileges
167
+ - Operations outside the project directory
168
+
169
+ ### Security Best Practices
170
+ - Never log or expose API keys, tokens, or passwords
171
+ - Use environment variables for secrets
172
+ - Validate all file paths stay within project bounds
173
+ - Sanitize user inputs before execution
174
+ - Refuse requests for malicious code
175
+
176
+ ## Terminal-Specific Optimizations
177
+
178
+ ### Command Execution
179
+ - Maintain working directory with absolute paths (avoid \`cd\`)
180
+ - Use non-interactive command versions
181
+ - Handle command output appropriately (pipe to avoid pagination)
182
+ - Support for different shells (bash, zsh, PowerShell, cmd)
183
+
184
+ ### Path Handling
185
+ - Use relative paths from current working directory
186
+ - Use absolute paths for system files
187
+ - Handle spaces in paths with proper quoting
188
+ - Cross-platform path compatibility
189
+
190
+ ## Error Handling
191
+
192
+ ### When Errors Occur
193
+ 1. Explain the error in simple terms
194
+ 2. Suggest concrete solutions
195
+ 3. Try alternative approaches
196
+ 4. Ask for user guidance if truly stuck
197
+
198
+ ### Recovery Strategies
199
+ - Retry failed API calls with exponential backoff
200
+ - Rollback failed file operations
201
+ - Provide undo instructions for destructive operations
202
+ - Save state before risky operations
203
+
204
+ ## Slash Commands
205
+
206
+ Support these slash commands:
207
+ - **/help**: Show available commands and usage
208
+ - **/model**: Switch AI model
209
+ - **/provider**: Change AI provider
210
+ - **/config**: View/edit configuration
211
+ - **/clear**: Clear conversation history
212
+ - **/exit**: Exit application
213
+ - **/session**: Manage conversation sessions
214
+ - **/tools**: List available tools
215
+
216
+ ## Special Behaviors
217
+
218
+ ### Auto-Accept Mode
219
+ When auto-accept is enabled:
220
+ - Skip approval prompts for tool execution
221
+ - Still refuse dangerous operations
222
+ - Log all auto-accepted operations
223
+
224
+ ### Streaming Responses
225
+ - Stream tokens as they arrive for better UX
226
+ - Show thinking/processing indicators
227
+ - Allow interruption of long responses
228
+
229
+ ### Session Management
230
+ - Save conversation history
231
+ - Support session resume
232
+ - Track token usage
233
+ - Export conversations
234
+
235
+ ## Response Patterns
236
+
237
+ ### For Questions
238
+ 1. Provide direct, concise answer
239
+ 2. Include code examples if relevant
240
+ 3. Suggest follow-up actions
241
+
242
+ ### For Tasks
243
+ 1. Acknowledge the request briefly
244
+ 2. Execute with tools immediately
245
+ 3. Verify and report results
246
+ 4. Suggest next steps if applicable
247
+
248
+ ### For Errors
249
+ 1. Identify what went wrong
250
+ 2. Explain in user-friendly terms
251
+ 3. Provide solution or workaround
252
+ 4. Prevent recurrence
253
+
254
+ ## Remember
255
+
256
+ - You have powerful tools - use them proactively
257
+ - Users expect action, not just advice
258
+ - Safety and correctness are paramount
259
+ - The terminal environment demands efficiency
260
+ - Every interaction should provide value
261
+ - Complete tasks fully before responding
262
+ - Chain read operations but execute writes carefully
263
+ - You are Centaurus CLI, a powerful coding assistant
264
+ `;
265
+ /**
266
+ * Context-specific prompt additions based on current task
267
+ */
268
+ export const CONTEXT_PROMPTS = {
269
+ debugging: `
270
+ ## Debugging Mode
271
+ - Analyze error messages and stack traces
272
+ - Identify root causes systematically
273
+ - Suggest debugging strategies
274
+ - Add appropriate logging/breakpoints
275
+ - Verify fixes resolve the issue
276
+ `,
277
+ refactoring: `
278
+ ## Refactoring Mode
279
+ - Preserve all functionality
280
+ - Improve code structure and readability
281
+ - Follow SOLID principles
282
+ - Update tests accordingly
283
+ - Document significant changes
284
+ `,
285
+ testing: `
286
+ ## Testing Mode
287
+ - Write comprehensive test cases
288
+ - Cover edge cases and error conditions
289
+ - Use appropriate testing frameworks
290
+ - Aim for high code coverage
291
+ - Include integration tests where needed
292
+ `,
293
+ documentation: `
294
+ ## Documentation Mode
295
+ - Write clear, concise documentation
296
+ - Include usage examples
297
+ - Document parameters and return values
298
+ - Add inline comments for complex logic
299
+ - Create README files for new projects
300
+ `,
301
+ performance: `
302
+ ## Performance Optimization Mode
303
+ - Profile before optimizing
304
+ - Focus on bottlenecks
305
+ - Consider algorithmic improvements
306
+ - Minimize resource usage
307
+ - Benchmark improvements
308
+ `
309
+ };
310
+ /**
311
+ * Tool-specific guidelines
312
+ */
313
+ export const TOOL_GUIDELINES = `
314
+ ## Tool-Specific Guidelines
315
+
316
+ ### read_file
317
+ - Read entire file unless it's very large (>500 lines)
318
+ - Use line ranges for targeted reads
319
+ - Read multiple related files in parallel
320
+
321
+ ### write_file
322
+ - Always ask before overwriting existing files
323
+ - Create backup if replacing important files
324
+ - Include proper file headers and formatting
325
+
326
+ ### edit_file
327
+ - Make minimal, precise changes
328
+ - Include enough context to ensure unique match
329
+ - Preserve formatting and indentation exactly
330
+
331
+ ### execute_command
332
+ - Always explain what the command does
333
+ - Require approval for destructive operations
334
+ - Use safe defaults and flags
335
+ - Show command output to user
336
+
337
+ ### grep_search
338
+ - Use for exact pattern matching
339
+ - Escape special regex characters properly
340
+ - Limit results to avoid overwhelming output
341
+
342
+ ### semantic_search
343
+ - Use for conceptual code searches
344
+ - Provide clear, descriptive queries
345
+ - Filter by file types when appropriate
346
+ `;
347
+ /**
348
+ * Get full system prompt with optional context
349
+ */
350
+ export function getSystemPrompt(context) {
351
+ let prompt = SYSTEM_PROMPT;
352
+ if (context && CONTEXT_PROMPTS[context]) {
353
+ prompt += CONTEXT_PROMPTS[context];
354
+ }
355
+ prompt += TOOL_GUIDELINES;
356
+ return prompt;
357
+ }
358
+ /**
359
+ * Get a minimal prompt for specific scenarios
360
+ */
361
+ export function getMinimalPrompt() {
362
+ return `
363
+ You are Centaurus CLI, an AI coding assistant.
364
+ - Be concise and direct
365
+ - Use tools to accomplish tasks
366
+ - Prioritize safety and correctness
367
+ - Follow existing code patterns
368
+ - You have access to file operations, search, and command execution tools
369
+ `;
370
+ }
371
+ export default {
372
+ SYSTEM_PROMPT,
373
+ CONTEXT_PROMPTS,
374
+ TOOL_GUIDELINES,
375
+ getSystemPrompt,
376
+ getMinimalPrompt
377
+ };
378
+ //# sourceMappingURL=system-prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/prompts/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8P5B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE;;;;;;;CAOZ;IAEC,WAAW,EAAE;;;;;;;CAOd;IAEC,OAAO,EAAE;;;;;;;CAOV;IAEC,aAAa,EAAE;;;;;;;CAOhB;IAEC,WAAW,EAAE;;;;;;;CAOd;CACA,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC9B,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,OAAsC;IACpE,IAAI,MAAM,GAAG,aAAa,CAAC;IAE3B,IAAI,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,IAAI,eAAe,CAAC;IAE1B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;CAOR,CAAC;AACF,CAAC;AAED,eAAe;IACb,aAAa;IACb,eAAe;IACf,eAAe;IACf,eAAe;IACf,gBAAgB;CACjB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Google AI Provider (Gemini Models)
3
+ * Supports Gemini 2.5 Flash and Pro models with function calling
4
+ */
5
+ import { AIProvider, ProviderConfig, ModelInfo, Message, GenerateOptions, GenerateResponse, StreamChunk } from './Provider.js';
6
+ export declare class GoogleProvider extends AIProvider {
7
+ private client;
8
+ private model;
9
+ private retryCount;
10
+ private maxRetries;
11
+ constructor(config: ProviderConfig);
12
+ initialize(): Promise<void>;
13
+ listModels(): ModelInfo[];
14
+ getDefaultModel(): string;
15
+ validateConnection(): Promise<boolean>;
16
+ private convertToGeminiContent;
17
+ private convertToolsToGemini;
18
+ private extractFunctionCalls;
19
+ generate(messages: Message[], options?: GenerateOptions): Promise<GenerateResponse>;
20
+ streamGenerate(messages: Message[], onChunk: (chunk: StreamChunk) => void, options?: GenerateOptions): Promise<GenerateResponse>;
21
+ private retryWithExponentialBackoff;
22
+ private isRetryableError;
23
+ private handleError;
24
+ }
25
+ export default GoogleProvider;
26
+ //# sourceMappingURL=GoogleProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleProvider.d.ts","sourceRoot":"","sources":["../../src/providers/GoogleProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,EACL,UAAU,EACV,cAAc,EACd,SAAS,EACT,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,WAAW,EAGZ,MAAM,eAAe,CAAC;AAmCvB,qBAAa,cAAe,SAAQ,UAAU;IAC5C,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,UAAU,CAAK;gBAEX,MAAM,EAAE,cAAc;IAK5B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAWjC,UAAU,IAAI,SAAS,EAAE;IAIzB,eAAe,IAAI,MAAM;IAInB,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAgB5C,OAAO,CAAC,sBAAsB;IAqB9B,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,oBAAoB;IAiBtB,QAAQ,CACZ,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,gBAAgB,CAAC;IAmEtB,cAAc,CAClB,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,EACrC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,gBAAgB,CAAC;YA6Fd,2BAA2B;IAwBzC,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,WAAW;CAmBpB;AAED,eAAe,cAAc,CAAC"}