sema-core 1.0.2

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 (411) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +150 -0
  3. package/dist/constants/config.d.ts +20 -0
  4. package/dist/constants/config.d.ts.map +1 -0
  5. package/dist/constants/config.js +31 -0
  6. package/dist/constants/config.js.map +1 -0
  7. package/dist/constants/message.d.ts +10 -0
  8. package/dist/constants/message.d.ts.map +1 -0
  9. package/dist/constants/message.js +25 -0
  10. package/dist/constants/message.js.map +1 -0
  11. package/dist/constants/product.d.ts +5 -0
  12. package/dist/constants/product.d.ts.map +1 -0
  13. package/dist/constants/product.js +8 -0
  14. package/dist/constants/product.js.map +1 -0
  15. package/dist/core/Conversation.d.ts +16 -0
  16. package/dist/core/Conversation.d.ts.map +1 -0
  17. package/dist/core/Conversation.js +226 -0
  18. package/dist/core/Conversation.js.map +1 -0
  19. package/dist/core/RunTools.d.ts +11 -0
  20. package/dist/core/RunTools.d.ts.map +1 -0
  21. package/dist/core/RunTools.js +244 -0
  22. package/dist/core/RunTools.js.map +1 -0
  23. package/dist/core/SemaCore.d.ts +49 -0
  24. package/dist/core/SemaCore.d.ts.map +1 -0
  25. package/dist/core/SemaCore.js +94 -0
  26. package/dist/core/SemaCore.js.map +1 -0
  27. package/dist/core/SemaEngine.d.ts +54 -0
  28. package/dist/core/SemaEngine.d.ts.map +1 -0
  29. package/dist/core/SemaEngine.js +335 -0
  30. package/dist/core/SemaEngine.js.map +1 -0
  31. package/dist/events/EventSystem.d.ts +42 -0
  32. package/dist/events/EventSystem.d.ts.map +1 -0
  33. package/dist/events/EventSystem.js +134 -0
  34. package/dist/events/EventSystem.js.map +1 -0
  35. package/dist/events/types.d.ts +300 -0
  36. package/dist/events/types.d.ts.map +1 -0
  37. package/dist/events/types.js +4 -0
  38. package/dist/events/types.js.map +1 -0
  39. package/dist/index.d.ts +2 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +6 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/manager/ConfManager.d.ts +76 -0
  44. package/dist/manager/ConfManager.d.ts.map +1 -0
  45. package/dist/manager/ConfManager.js +329 -0
  46. package/dist/manager/ConfManager.js.map +1 -0
  47. package/dist/manager/ModelManager.d.ts +51 -0
  48. package/dist/manager/ModelManager.d.ts.map +1 -0
  49. package/dist/manager/ModelManager.js +291 -0
  50. package/dist/manager/ModelManager.js.map +1 -0
  51. package/dist/manager/PermissionManager.d.ts +16 -0
  52. package/dist/manager/PermissionManager.d.ts.map +1 -0
  53. package/dist/manager/PermissionManager.js +308 -0
  54. package/dist/manager/PermissionManager.js.map +1 -0
  55. package/dist/manager/StateManager.d.ts +164 -0
  56. package/dist/manager/StateManager.d.ts.map +1 -0
  57. package/dist/manager/StateManager.js +357 -0
  58. package/dist/manager/StateManager.js.map +1 -0
  59. package/dist/services/agents/agentsManager.d.ts +112 -0
  60. package/dist/services/agents/agentsManager.d.ts.map +1 -0
  61. package/dist/services/agents/agentsManager.js +394 -0
  62. package/dist/services/agents/agentsManager.js.map +1 -0
  63. package/dist/services/agents/defaultBuiltInAgentsConfs.d.ts +3 -0
  64. package/dist/services/agents/defaultBuiltInAgentsConfs.d.ts.map +1 -0
  65. package/dist/services/agents/defaultBuiltInAgentsConfs.js +102 -0
  66. package/dist/services/agents/defaultBuiltInAgentsConfs.js.map +1 -0
  67. package/dist/services/agents/genSystemPrompt.d.ts +23 -0
  68. package/dist/services/agents/genSystemPrompt.d.ts.map +1 -0
  69. package/dist/services/agents/genSystemPrompt.js +189 -0
  70. package/dist/services/agents/genSystemPrompt.js.map +1 -0
  71. package/dist/services/agents/prompt.d.ts +12 -0
  72. package/dist/services/agents/prompt.d.ts.map +1 -0
  73. package/dist/services/agents/prompt.js +162 -0
  74. package/dist/services/agents/prompt.js.map +1 -0
  75. package/dist/services/api/adapt/anthropic.d.ts +10 -0
  76. package/dist/services/api/adapt/anthropic.d.ts.map +1 -0
  77. package/dist/services/api/adapt/anthropic.js +233 -0
  78. package/dist/services/api/adapt/anthropic.js.map +1 -0
  79. package/dist/services/api/adapt/openai.d.ts +8 -0
  80. package/dist/services/api/adapt/openai.d.ts.map +1 -0
  81. package/dist/services/api/adapt/openai.js +412 -0
  82. package/dist/services/api/adapt/openai.js.map +1 -0
  83. package/dist/services/api/adapt/util.d.ts +7 -0
  84. package/dist/services/api/adapt/util.d.ts.map +1 -0
  85. package/dist/services/api/adapt/util.js +24 -0
  86. package/dist/services/api/adapt/util.js.map +1 -0
  87. package/dist/services/api/apiUtil.d.ts +10 -0
  88. package/dist/services/api/apiUtil.d.ts.map +1 -0
  89. package/dist/services/api/apiUtil.js +256 -0
  90. package/dist/services/api/apiUtil.js.map +1 -0
  91. package/dist/services/api/cache.d.ts +11 -0
  92. package/dist/services/api/cache.d.ts.map +1 -0
  93. package/dist/services/api/cache.js +128 -0
  94. package/dist/services/api/cache.js.map +1 -0
  95. package/dist/services/api/queryLLM.d.ts +18 -0
  96. package/dist/services/api/queryLLM.d.ts.map +1 -0
  97. package/dist/services/api/queryLLM.js +147 -0
  98. package/dist/services/api/queryLLM.js.map +1 -0
  99. package/dist/services/command/runCommand.d.ts +18 -0
  100. package/dist/services/command/runCommand.d.ts.map +1 -0
  101. package/dist/services/command/runCommand.js +149 -0
  102. package/dist/services/command/runCommand.js.map +1 -0
  103. package/dist/services/mcp/MCPClient.d.ts +35 -0
  104. package/dist/services/mcp/MCPClient.d.ts.map +1 -0
  105. package/dist/services/mcp/MCPClient.js +166 -0
  106. package/dist/services/mcp/MCPClient.js.map +1 -0
  107. package/dist/services/mcp/MCPManager.d.ts +140 -0
  108. package/dist/services/mcp/MCPManager.d.ts.map +1 -0
  109. package/dist/services/mcp/MCPManager.js +650 -0
  110. package/dist/services/mcp/MCPManager.js.map +1 -0
  111. package/dist/services/mcp/MCPToolAdapter.d.ts +22 -0
  112. package/dist/services/mcp/MCPToolAdapter.d.ts.map +1 -0
  113. package/dist/services/mcp/MCPToolAdapter.js +177 -0
  114. package/dist/services/mcp/MCPToolAdapter.js.map +1 -0
  115. package/dist/services/plugins/customCommands.d.ts +29 -0
  116. package/dist/services/plugins/customCommands.d.ts.map +1 -0
  117. package/dist/services/plugins/customCommands.js +227 -0
  118. package/dist/services/plugins/customCommands.js.map +1 -0
  119. package/dist/services/skill/skillLoader.d.ts +17 -0
  120. package/dist/services/skill/skillLoader.d.ts.map +1 -0
  121. package/dist/services/skill/skillLoader.js +122 -0
  122. package/dist/services/skill/skillLoader.js.map +1 -0
  123. package/dist/services/skill/skillParser.d.ts +15 -0
  124. package/dist/services/skill/skillParser.d.ts.map +1 -0
  125. package/dist/services/skill/skillParser.js +66 -0
  126. package/dist/services/skill/skillParser.js.map +1 -0
  127. package/dist/services/skill/skillRegistry.d.ts +34 -0
  128. package/dist/services/skill/skillRegistry.d.ts.map +1 -0
  129. package/dist/services/skill/skillRegistry.js +98 -0
  130. package/dist/services/skill/skillRegistry.js.map +1 -0
  131. package/dist/tools/AskUserQuestion/AskUserQuestion.d.ts +179 -0
  132. package/dist/tools/AskUserQuestion/AskUserQuestion.d.ts.map +1 -0
  133. package/dist/tools/AskUserQuestion/AskUserQuestion.js +165 -0
  134. package/dist/tools/AskUserQuestion/AskUserQuestion.js.map +1 -0
  135. package/dist/tools/AskUserQuestion/prompt.d.ts +3 -0
  136. package/dist/tools/AskUserQuestion/prompt.d.ts.map +1 -0
  137. package/dist/tools/AskUserQuestion/prompt.js +17 -0
  138. package/dist/tools/AskUserQuestion/prompt.js.map +1 -0
  139. package/dist/tools/Bash/Bash.d.ts +75 -0
  140. package/dist/tools/Bash/Bash.d.ts.map +1 -0
  141. package/dist/tools/Bash/Bash.js +200 -0
  142. package/dist/tools/Bash/Bash.js.map +1 -0
  143. package/dist/tools/Bash/prompt.d.ts +8 -0
  144. package/dist/tools/Bash/prompt.d.ts.map +1 -0
  145. package/dist/tools/Bash/prompt.js +167 -0
  146. package/dist/tools/Bash/prompt.js.map +1 -0
  147. package/dist/tools/Bash/utils.d.ts +5 -0
  148. package/dist/tools/Bash/utils.d.ts.map +1 -0
  149. package/dist/tools/Bash/utils.js +21 -0
  150. package/dist/tools/Bash/utils.js.map +1 -0
  151. package/dist/tools/Edit/Edit.d.ts +110 -0
  152. package/dist/tools/Edit/Edit.d.ts.map +1 -0
  153. package/dist/tools/Edit/Edit.js +213 -0
  154. package/dist/tools/Edit/Edit.js.map +1 -0
  155. package/dist/tools/Edit/prompt.d.ts +3 -0
  156. package/dist/tools/Edit/prompt.d.ts.map +1 -0
  157. package/dist/tools/Edit/prompt.js +15 -0
  158. package/dist/tools/Edit/prompt.js.map +1 -0
  159. package/dist/tools/Edit/utils.d.ts +10 -0
  160. package/dist/tools/Edit/utils.d.ts.map +1 -0
  161. package/dist/tools/Edit/utils.js +51 -0
  162. package/dist/tools/Edit/utils.js.map +1 -0
  163. package/dist/tools/ExitPlanMode/ExitPlanMode.d.ts +42 -0
  164. package/dist/tools/ExitPlanMode/ExitPlanMode.d.ts.map +1 -0
  165. package/dist/tools/ExitPlanMode/ExitPlanMode.js +157 -0
  166. package/dist/tools/ExitPlanMode/ExitPlanMode.js.map +1 -0
  167. package/dist/tools/ExitPlanMode/prompt.d.ts +3 -0
  168. package/dist/tools/ExitPlanMode/prompt.d.ts.map +1 -0
  169. package/dist/tools/ExitPlanMode/prompt.js +28 -0
  170. package/dist/tools/ExitPlanMode/prompt.js.map +1 -0
  171. package/dist/tools/Glob/Glob.d.ts +44 -0
  172. package/dist/tools/Glob/Glob.d.ts.map +1 -0
  173. package/dist/tools/Glob/Glob.js +113 -0
  174. package/dist/tools/Glob/Glob.js.map +1 -0
  175. package/dist/tools/Glob/prompt.d.ts +3 -0
  176. package/dist/tools/Glob/prompt.d.ts.map +1 -0
  177. package/dist/tools/Glob/prompt.js +11 -0
  178. package/dist/tools/Glob/prompt.js.map +1 -0
  179. package/dist/tools/Grep/Grep.d.ts +106 -0
  180. package/dist/tools/Grep/Grep.d.ts.map +1 -0
  181. package/dist/tools/Grep/Grep.js +301 -0
  182. package/dist/tools/Grep/Grep.js.map +1 -0
  183. package/dist/tools/Grep/prompt.d.ts +3 -0
  184. package/dist/tools/Grep/prompt.d.ts.map +1 -0
  185. package/dist/tools/Grep/prompt.js +17 -0
  186. package/dist/tools/Grep/prompt.js.map +1 -0
  187. package/dist/tools/NotebookEdit/NotebookEdit.d.ts +98 -0
  188. package/dist/tools/NotebookEdit/NotebookEdit.d.ts.map +1 -0
  189. package/dist/tools/NotebookEdit/NotebookEdit.js +228 -0
  190. package/dist/tools/NotebookEdit/NotebookEdit.js.map +1 -0
  191. package/dist/tools/NotebookEdit/prompt.d.ts +3 -0
  192. package/dist/tools/NotebookEdit/prompt.d.ts.map +1 -0
  193. package/dist/tools/NotebookEdit/prompt.js +6 -0
  194. package/dist/tools/NotebookEdit/prompt.js.map +1 -0
  195. package/dist/tools/Read/Read.d.ts +107 -0
  196. package/dist/tools/Read/Read.d.ts.map +1 -0
  197. package/dist/tools/Read/Read.js +175 -0
  198. package/dist/tools/Read/Read.js.map +1 -0
  199. package/dist/tools/Read/prompt.d.ts +4 -0
  200. package/dist/tools/Read/prompt.d.ts.map +1 -0
  201. package/dist/tools/Read/prompt.js +21 -0
  202. package/dist/tools/Read/prompt.js.map +1 -0
  203. package/dist/tools/Skill/Skill.d.ts +62 -0
  204. package/dist/tools/Skill/Skill.d.ts.map +1 -0
  205. package/dist/tools/Skill/Skill.js +142 -0
  206. package/dist/tools/Skill/Skill.js.map +1 -0
  207. package/dist/tools/Skill/prompt.d.ts +3 -0
  208. package/dist/tools/Skill/prompt.d.ts.map +1 -0
  209. package/dist/tools/Skill/prompt.js +58 -0
  210. package/dist/tools/Skill/prompt.js.map +1 -0
  211. package/dist/tools/Task/Task.d.ts +59 -0
  212. package/dist/tools/Task/Task.d.ts.map +1 -0
  213. package/dist/tools/Task/Task.js +213 -0
  214. package/dist/tools/Task/Task.js.map +1 -0
  215. package/dist/tools/Task/prompt.d.ts +6 -0
  216. package/dist/tools/Task/prompt.d.ts.map +1 -0
  217. package/dist/tools/Task/prompt.js +75 -0
  218. package/dist/tools/Task/prompt.js.map +1 -0
  219. package/dist/tools/TodoWrite/TodoWrite.d.ts +92 -0
  220. package/dist/tools/TodoWrite/TodoWrite.d.ts.map +1 -0
  221. package/dist/tools/TodoWrite/TodoWrite.js +101 -0
  222. package/dist/tools/TodoWrite/TodoWrite.js.map +1 -0
  223. package/dist/tools/TodoWrite/prompt.d.ts +3 -0
  224. package/dist/tools/TodoWrite/prompt.d.ts.map +1 -0
  225. package/dist/tools/TodoWrite/prompt.js +187 -0
  226. package/dist/tools/TodoWrite/prompt.js.map +1 -0
  227. package/dist/tools/Write/Write.d.ts +77 -0
  228. package/dist/tools/Write/Write.d.ts.map +1 -0
  229. package/dist/tools/Write/Write.js +189 -0
  230. package/dist/tools/Write/Write.js.map +1 -0
  231. package/dist/tools/Write/prompt.d.ts +3 -0
  232. package/dist/tools/Write/prompt.d.ts.map +1 -0
  233. package/dist/tools/Write/prompt.js +13 -0
  234. package/dist/tools/Write/prompt.js.map +1 -0
  235. package/dist/tools/base/Tool.d.ts +36 -0
  236. package/dist/tools/base/Tool.d.ts.map +1 -0
  237. package/dist/tools/base/Tool.js +3 -0
  238. package/dist/tools/base/Tool.js.map +1 -0
  239. package/dist/tools/base/tools.d.ts +9 -0
  240. package/dist/tools/base/tools.d.ts.map +1 -0
  241. package/dist/tools/base/tools.js +105 -0
  242. package/dist/tools/base/tools.js.map +1 -0
  243. package/dist/types/agent.d.ts +30 -0
  244. package/dist/types/agent.d.ts.map +1 -0
  245. package/dist/types/agent.js +3 -0
  246. package/dist/types/agent.js.map +1 -0
  247. package/dist/types/command.d.ts +44 -0
  248. package/dist/types/command.d.ts.map +1 -0
  249. package/dist/types/command.js +6 -0
  250. package/dist/types/command.js.map +1 -0
  251. package/dist/types/config.d.ts +14 -0
  252. package/dist/types/config.d.ts.map +1 -0
  253. package/dist/types/config.js +3 -0
  254. package/dist/types/config.js.map +1 -0
  255. package/dist/types/errors.d.ts +18 -0
  256. package/dist/types/errors.d.ts.map +1 -0
  257. package/dist/types/errors.js +33 -0
  258. package/dist/types/errors.js.map +1 -0
  259. package/dist/types/index.d.ts +91 -0
  260. package/dist/types/index.d.ts.map +1 -0
  261. package/dist/types/index.js +18 -0
  262. package/dist/types/index.js.map +1 -0
  263. package/dist/types/mcp.d.ts +127 -0
  264. package/dist/types/mcp.d.ts.map +1 -0
  265. package/dist/types/mcp.js +6 -0
  266. package/dist/types/mcp.js.map +1 -0
  267. package/dist/types/message.d.ts +31 -0
  268. package/dist/types/message.d.ts.map +1 -0
  269. package/dist/types/message.js +3 -0
  270. package/dist/types/message.js.map +1 -0
  271. package/dist/types/model.d.ts +21 -0
  272. package/dist/types/model.d.ts.map +1 -0
  273. package/dist/types/model.js +3 -0
  274. package/dist/types/model.js.map +1 -0
  275. package/dist/types/notebook.d.ts +57 -0
  276. package/dist/types/notebook.d.ts.map +1 -0
  277. package/dist/types/notebook.js +3 -0
  278. package/dist/types/notebook.js.map +1 -0
  279. package/dist/types/skill.d.ts +34 -0
  280. package/dist/types/skill.d.ts.map +1 -0
  281. package/dist/types/skill.js +8 -0
  282. package/dist/types/skill.js.map +1 -0
  283. package/dist/types/uuid.d.ts +2 -0
  284. package/dist/types/uuid.d.ts.map +1 -0
  285. package/dist/types/uuid.js +3 -0
  286. package/dist/types/uuid.js.map +1 -0
  287. package/dist/util/adapter.d.ts +11 -0
  288. package/dist/util/adapter.d.ts.map +1 -0
  289. package/dist/util/adapter.js +75 -0
  290. package/dist/util/adapter.js.map +1 -0
  291. package/dist/util/agentStats.d.ts +11 -0
  292. package/dist/util/agentStats.d.ts.map +1 -0
  293. package/dist/util/agentStats.js +60 -0
  294. package/dist/util/agentStats.js.map +1 -0
  295. package/dist/util/cacheLLM.d.ts +47 -0
  296. package/dist/util/cacheLLM.d.ts.map +1 -0
  297. package/dist/util/cacheLLM.js +154 -0
  298. package/dist/util/cacheLLM.js.map +1 -0
  299. package/dist/util/commands.d.ts +16 -0
  300. package/dist/util/commands.d.ts.map +1 -0
  301. package/dist/util/commands.js +216 -0
  302. package/dist/util/commands.js.map +1 -0
  303. package/dist/util/compact.d.ts +25 -0
  304. package/dist/util/compact.d.ts.map +1 -0
  305. package/dist/util/compact.js +451 -0
  306. package/dist/util/compact.js.map +1 -0
  307. package/dist/util/cwd.d.ts +44 -0
  308. package/dist/util/cwd.d.ts.map +1 -0
  309. package/dist/util/cwd.js +84 -0
  310. package/dist/util/cwd.js.map +1 -0
  311. package/dist/util/diff.d.ts +10 -0
  312. package/dist/util/diff.d.ts.map +1 -0
  313. package/dist/util/diff.js +127 -0
  314. package/dist/util/diff.js.map +1 -0
  315. package/dist/util/directory.d.ts +37 -0
  316. package/dist/util/directory.d.ts.map +1 -0
  317. package/dist/util/directory.js +137 -0
  318. package/dist/util/directory.js.map +1 -0
  319. package/dist/util/env.d.ts +5 -0
  320. package/dist/util/env.d.ts.map +1 -0
  321. package/dist/util/env.js +39 -0
  322. package/dist/util/env.js.map +1 -0
  323. package/dist/util/exec.d.ts +6 -0
  324. package/dist/util/exec.d.ts.map +1 -0
  325. package/dist/util/exec.js +43 -0
  326. package/dist/util/exec.js.map +1 -0
  327. package/dist/util/file.d.ts +61 -0
  328. package/dist/util/file.d.ts.map +1 -0
  329. package/dist/util/file.js +365 -0
  330. package/dist/util/file.js.map +1 -0
  331. package/dist/util/filePermission.d.ts +14 -0
  332. package/dist/util/filePermission.d.ts.map +1 -0
  333. package/dist/util/filePermission.js +45 -0
  334. package/dist/util/filePermission.js.map +1 -0
  335. package/dist/util/fileReference.d.ts +40 -0
  336. package/dist/util/fileReference.d.ts.map +1 -0
  337. package/dist/util/fileReference.js +343 -0
  338. package/dist/util/fileReference.js.map +1 -0
  339. package/dist/util/format.d.ts +9 -0
  340. package/dist/util/format.d.ts.map +1 -0
  341. package/dist/util/format.js +61 -0
  342. package/dist/util/format.js.map +1 -0
  343. package/dist/util/frontmatter.d.ts +35 -0
  344. package/dist/util/frontmatter.d.ts.map +1 -0
  345. package/dist/util/frontmatter.js +119 -0
  346. package/dist/util/frontmatter.js.map +1 -0
  347. package/dist/util/git.d.ts +4 -0
  348. package/dist/util/git.d.ts.map +1 -0
  349. package/dist/util/git.js +55 -0
  350. package/dist/util/git.js.map +1 -0
  351. package/dist/util/history.d.ts +27 -0
  352. package/dist/util/history.d.ts.map +1 -0
  353. package/dist/util/history.js +248 -0
  354. package/dist/util/history.js.map +1 -0
  355. package/dist/util/log.d.ts +23 -0
  356. package/dist/util/log.d.ts.map +1 -0
  357. package/dist/util/log.js +246 -0
  358. package/dist/util/log.js.map +1 -0
  359. package/dist/util/logLLM.d.ts +20 -0
  360. package/dist/util/logLLM.d.ts.map +1 -0
  361. package/dist/util/logLLM.js +414 -0
  362. package/dist/util/logLLM.js.map +1 -0
  363. package/dist/util/message.d.ts +12 -0
  364. package/dist/util/message.d.ts.map +1 -0
  365. package/dist/util/message.js +156 -0
  366. package/dist/util/message.js.map +1 -0
  367. package/dist/util/model.d.ts +22 -0
  368. package/dist/util/model.d.ts.map +1 -0
  369. package/dist/util/model.js +61 -0
  370. package/dist/util/model.js.map +1 -0
  371. package/dist/util/notebook.d.ts +14 -0
  372. package/dist/util/notebook.d.ts.map +1 -0
  373. package/dist/util/notebook.js +104 -0
  374. package/dist/util/notebook.js.map +1 -0
  375. package/dist/util/ripgrep.d.ts +3 -0
  376. package/dist/util/ripgrep.d.ts.map +1 -0
  377. package/dist/util/ripgrep.js +187 -0
  378. package/dist/util/ripgrep.js.map +1 -0
  379. package/dist/util/rules.d.ts +6 -0
  380. package/dist/util/rules.d.ts.map +1 -0
  381. package/dist/util/rules.js +111 -0
  382. package/dist/util/rules.js.map +1 -0
  383. package/dist/util/savePath.d.ts +73 -0
  384. package/dist/util/savePath.d.ts.map +1 -0
  385. package/dist/util/savePath.js +189 -0
  386. package/dist/util/savePath.js.map +1 -0
  387. package/dist/util/secureFile.d.ts +136 -0
  388. package/dist/util/secureFile.d.ts.map +1 -0
  389. package/dist/util/secureFile.js +496 -0
  390. package/dist/util/secureFile.js.map +1 -0
  391. package/dist/util/session.d.ts +37 -0
  392. package/dist/util/session.d.ts.map +1 -0
  393. package/dist/util/session.js +120 -0
  394. package/dist/util/session.js.map +1 -0
  395. package/dist/util/shell.d.ts +40 -0
  396. package/dist/util/shell.d.ts.map +1 -0
  397. package/dist/util/shell.js +876 -0
  398. package/dist/util/shell.js.map +1 -0
  399. package/dist/util/time.d.ts +24 -0
  400. package/dist/util/time.d.ts.map +1 -0
  401. package/dist/util/time.js +53 -0
  402. package/dist/util/time.js.map +1 -0
  403. package/dist/util/tokens.d.ts +9 -0
  404. package/dist/util/tokens.d.ts.map +1 -0
  405. package/dist/util/tokens.js +79 -0
  406. package/dist/util/tokens.js.map +1 -0
  407. package/dist/util/topic.d.ts +9 -0
  408. package/dist/util/topic.d.ts.map +1 -0
  409. package/dist/util/topic.js +52 -0
  410. package/dist/util/topic.js.map +1 -0
  411. package/package.json +83 -0
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.getContext = void 0;
37
+ exports.formatSystemPrompt = formatSystemPrompt;
38
+ exports.generateTodosReminders = generateTodosReminders;
39
+ exports.generatePlanReminders = generatePlanReminders;
40
+ exports.genEnv = genEnv;
41
+ exports.genGitStatus = genGitStatus;
42
+ exports.buildAgentSystemPrompt = buildAgentSystemPrompt;
43
+ const product_1 = require("../../constants/product");
44
+ const git_1 = require("../../util/git");
45
+ const env_1 = require("../../util/env");
46
+ const lodash_es_1 = require("lodash-es");
47
+ const ConfManager_1 = require("../../manager/ConfManager");
48
+ const skillRegistry_1 = require("../skill/skillRegistry");
49
+ const cwd_1 = require("../../util/cwd");
50
+ const path = __importStar(require("path"));
51
+ const prompt_1 = require("./prompt");
52
+ async function formatSystemPrompt(options) {
53
+ // 获取系统提示、上下文
54
+ const context = await (0, exports.getContext)();
55
+ // 合并系统提示,每个部分作为独立的 text 内容
56
+ const systemPromptParts = [
57
+ getProductSyspromptPrefix(),
58
+ getSystemPrompt(context, options)
59
+ ].filter(prompt => prompt.trim().length > 0); // 过滤空提示
60
+ // 转换为 text 内容数组格式
61
+ return systemPromptParts.map(text => ({ type: 'text', text }));
62
+ }
63
+ exports.getContext = (0, lodash_es_1.memoize)(async () => {
64
+ // 并行获取各种上下文信息
65
+ const [env, gitStatus] = await Promise.all([
66
+ (0, env_1.getEnv)(), // 目录结构
67
+ (0, git_1.getGitStatus)(), // Git状态信息
68
+ ]);
69
+ // 返回组合的上下文对象
70
+ return {
71
+ ...(env ? { env } : {}),
72
+ ...(gitStatus ? { gitStatus } : {}),
73
+ };
74
+ });
75
+ function generateTodosReminders() {
76
+ const additionalReminders = [];
77
+ const rulesReminder = `<system-reminder>
78
+ ${prompt_1.Empty_Todo_Reminder_Prompt}
79
+ </system-reminder>`;
80
+ additionalReminders.push({
81
+ type: 'text',
82
+ text: rulesReminder
83
+ });
84
+ return additionalReminders;
85
+ }
86
+ function generatePlanReminders(taskDescription) {
87
+ const additionalReminders = [];
88
+ const currentDir = (0, cwd_1.getOriginalCwd)();
89
+ const plansDir = path.join(currentDir, '.sema/', 'plans/');
90
+ // 生成计划文件名的提示
91
+ const planFileInstruction = taskDescription
92
+ ? `You should create your plan at ${plansDir}<title>.md where <title> is a descriptive name based on the task: "${taskDescription}". Choose a clear, concise title in kebab-case (e.g., "implement-api-gateway.md", "fix-streaming-parser.md").`
93
+ : `You should create your plan at ${plansDir}<title>.md where <title> is a descriptive name you generate based on the user's request. Choose a clear, concise title in kebab-case.`;
94
+ const rulesReminder = `<system-reminder>
95
+ Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits (with the exception of the plan file mentioned below), run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supersedes any other instructions you have received.
96
+
97
+ ## Plan File Info:
98
+ No plan file exists yet. ${planFileInstruction}
99
+ You should build your plan incrementally by writing to or editing this file. NOTE that this is the only file you are allowed to edit - other than this you are only allowed to take READ-ONLY actions.
100
+
101
+ ${prompt_1.PlanMode_Reminder_Prompt}
102
+ </system-reminder>`;
103
+ additionalReminders.push({
104
+ type: 'text',
105
+ text: rulesReminder
106
+ });
107
+ return additionalReminders;
108
+ }
109
+ function getProductSyspromptPrefix() {
110
+ try {
111
+ // 尝试从配置管理器中获取自定义的 systemPrompt
112
+ const configManager = (0, ConfManager_1.getConfManager)();
113
+ const coreConfig = configManager.getCoreConfig();
114
+ if (coreConfig?.systemPrompt) {
115
+ return coreConfig.systemPrompt;
116
+ }
117
+ }
118
+ catch (error) {
119
+ }
120
+ // 如果没有配置自定义 systemPrompt,使用默认值
121
+ return `You are ${product_1.PRODUCT_NAME}, ${product_1.GROUP}'s Agent AI for coding.`;
122
+ }
123
+ function getSystemPrompt(context = {}, options) {
124
+ // 获取 Skills 摘要
125
+ let skillsSummary = '';
126
+ try {
127
+ skillsSummary = (0, skillRegistry_1.getSkillsSummary)();
128
+ }
129
+ catch (error) {
130
+ // Skills 系统可能未初始化,忽略错误
131
+ }
132
+ // 是否包含 Task Management 部分(默认包含,除非明确指定没有 TodoWrite 工具)
133
+ const hasTodoWriteTool = options?.hasTodoWriteTool !== false;
134
+ let TodoWriteSystemPrompt = '';
135
+ let TodoWrite_Tool_Usage_IMPORTANT = '';
136
+ if (hasTodoWriteTool) {
137
+ TodoWriteSystemPrompt = prompt_1.With_TodoWrite_Prompt;
138
+ TodoWrite_Tool_Usage_IMPORTANT = `IMPORTANT: Always use the TodoWrite tool to plan and track tasks throughout the conversation.`;
139
+ }
140
+ else {
141
+ TodoWriteSystemPrompt = prompt_1.Without_TodoWrite_Prompt;
142
+ }
143
+ // 是否包含 AskUserQuestion 部分(默认包含,除非明确指定没有 AskUserQuestion 工具)
144
+ const hasAskUserQuestionTool = options?.hasAskUserQuestionTool !== false;
145
+ const AskQuestionSystemPrompt = hasAskUserQuestionTool ? prompt_1.Ask_Question_Prompt : '';
146
+ return `
147
+ ${prompt_1.Agent_Summary_Prompt}
148
+ ${skillsSummary}
149
+
150
+ ${prompt_1.Style_and_Professional_Prompt}
151
+
152
+ ${TodoWriteSystemPrompt}
153
+
154
+ ${AskQuestionSystemPrompt}
155
+
156
+ ${prompt_1.Doing_Tasks_Prompt}
157
+
158
+ ${prompt_1.Tool_Usage_Policy_Prompt}
159
+ ${TodoWrite_Tool_Usage_IMPORTANT}
160
+
161
+ ${prompt_1.Code_References_Prompt}
162
+
163
+ ${genEnv(context)}
164
+
165
+ ${genGitStatus(context)}
166
+ `;
167
+ }
168
+ function genEnv(context) {
169
+ if (context && 'env' in context) {
170
+ return `Here is useful information about the environment you are running in:
171
+ <env>${context.env}</env>`;
172
+ }
173
+ return '';
174
+ }
175
+ function genGitStatus(context) {
176
+ if (context && 'gitStatus' in context) {
177
+ return `gitStatus: ${context.gitStatus}`;
178
+ }
179
+ return '';
180
+ }
181
+ /**
182
+ * 构建代理模式的系统提示(用于 Explore/Plan 等子代理)
183
+ */
184
+ async function buildAgentSystemPrompt(agentPrompt) {
185
+ const context = await (0, exports.getContext)();
186
+ const fullPrompt = agentPrompt + prompt_1.SUBAGENT_NOTES + genEnv(context) + genGitStatus(context);
187
+ return [{ type: 'text', text: fullPrompt }];
188
+ }
189
+ //# sourceMappingURL=genSystemPrompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genSystemPrompt.js","sourceRoot":"","sources":["../../../src/services/agents/genSystemPrompt.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ export declare const Agent_Summary_Prompt = "You are an interactive code agent tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.";
2
+ export declare const Style_and_Professional_Prompt = "# Tone and style\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- Your output will be displayed on a command line interface. Your responses should be short and concise. You can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\n- Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like Bash or code comments as means to communicate with the user during the session.\n- NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. This includes markdown files.\n\n# Professional objectivity\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if product honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs. Avoid using over-the-top validation or excessive praise when responding to users such as \"You're absolutely right\" or similar phrases.";
3
+ export declare const Ask_Question_Prompt = "# Asking questions as you work\nYou have access to the AskUserQuestion tool to ask the user questions when you need clarification, want to validate assumptions, or need to make a decision you're unsure about. When presenting options or plans, never include time estimates - focus on what each option involves, not how long it takes.";
4
+ export declare const Doing_Tasks_Prompt = "# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- NEVER propose changes to code you haven't read. If a user asks about or wants you to modify a file, read it first. Understand existing code before suggesting modifications.\n- Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.\n- Avoid over-engineering. Only make changes that are directly requested or clearly necessary. Keep solutions simple and focused.\n - Don't add features, refactor code, or make \"improvements\" beyond what was asked. A bug fix doesn't need surrounding code cleaned up. A simple feature doesn't need extra configurability. Don't add docstrings, comments, or type annotations to code you didn't change. Only add comments where the logic isn't self-evident.\n - Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs). Don't use feature flags or backwards-compatibility shims when you can just change the code.\n - Don't create helpers, utilities, or abstractions for one-time operations. Don't design for hypothetical future requirements. The right amount of complexity is the minimum needed for the current task\u2014three similar lines of code is better than a premature abstraction.\n- Avoid backwards-compatibility hacks like renaming unused `_vars`, re-exporting types, adding `// removed` comments for removed code, etc. If something is unused, delete it completely.\n\n- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.\n- The conversation has unlimited context through automatic summarization.";
5
+ export declare const Tool_Usage_Policy_Prompt = "# Tool usage policy\n- When doing file search, prefer to use the Task tool in order to reduce context usage.\n- You should proactively use the Task tool with specialized agents when the task at hand matches the agent's description.\n- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.\n- If the user specifies that they want you to run tools \"in parallel\", you MUST send a single message with multiple tool use content blocks. \n- Use specialized tools instead of bash commands when possible, as this provides a better user experience. For file operations, use dedicated tools: Read for reading files instead of cat/head/tail, Edit for editing instead of sed/awk, and Write for creating files instead of cat with heredoc or echo redirection. Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution. NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.\n- VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the Task tool with subagent_type=Explore instead of running search commands directly.\n<example>\nuser: Where are errors from the client handled?\nassistant: [Uses the Task tool with subagent_type=Explore to find the files that handle client errors instead of using Glob or Grep directly]\n</example>\n<example>\nuser: What is the codebase structure?\nassistant: [Uses the Task tool with subagent_type=Explore]\n</example>";
6
+ export declare const Code_References_Prompt = "# Code References\n\nWhen referencing specific functions or pieces of code include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function in src/services/process.ts:712.\n</example>";
7
+ export declare const Empty_Todo_Reminder_Prompt = "This is a reminder that your todo list is currently empty. DO NOT mention this to the user explicitly because they are already aware. If you are working on tasks that would benefit from a todo list please use the TodoWrite tool to create one. If not, please feel free to ignore. Again do not mention this message to the user.";
8
+ export declare const With_TodoWrite_Prompt = "# Planning without timelines\nWhen planning tasks, provide concrete implementation steps without time estimates. Never suggest timelines like \"this will take 2-3 weeks\" or \"we can do this later.\" Focus on what needs to be done, not when. Break work into actionable steps and let users decide scheduling.\n\n# Task Management\nYou have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThese tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the TodoWrite tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using Bash.\n\nLooks like I found 10 type errors. I'm going to use the TodoWrite tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the TodoWrite tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>";
9
+ export declare const Without_TodoWrite_Prompt = "# No time estimates\nNever give time estimates or predictions for how long tasks will take, whether for your own work or for users planning their projects. Avoid phrases like \"this will take me a few minutes,\" \"should be done in about 5 minutes,\" \"this is a quick fix,\" \"this will take 2-3 weeks,\" or \"we can do this later.\" Focus on what needs to be done, not how long it might take. Break work into actionable steps and let users judge timing for themselves.";
10
+ export declare const PlanMode_Reminder_Prompt = "## Plan Workflow\n\n### Phase 1: Initial Understanding\nGoal: Gain a comprehensive understanding of the user's request by reading through code and asking them questions. Critical: In this phase you should only use the Explore subagent type.\n\n1. Focus on understanding the user's request and the code associated with their request\n\n2. **Launch Explore agents SEQUENTIALLY** (one at a time, multiple messages if needed) to explore the codebase.\n - Launch ONE Explore agent per message\n - Wait for the agent to complete before launching the next one\n - Use 1 agent when the task is isolated to known files, the user provided specific file paths, or you're making a small targeted change\n - Use multiple sequential agents when: the scope is uncertain, multiple areas of the codebase are involved, or you need to understand existing patterns before planning\n - Quality over quantity - 3 agents maximum across multiple messages, but you should try to use the minimum number of agents necessary (usually just 1)\n - If using multiple agents sequentially: Give each agent a specific search focus or area to explore based on what you learned from previous agents. Example: First agent searches for existing implementations, then based on findings, second agent explores related components, then third investigates testing patterns if needed\n\n### Phase 2: Design\nGoal: Design an implementation approach.\n\nLaunch Plan agent(s) to design the implementation based on the user's intent and your exploration results from Phase 1.\n\nYou can launch up to 1 agent(s) in parallel.\n\n**Guidelines:**\n- **Default**: Launch at least 1 Plan agent for most tasks - it helps validate your understanding and consider alternatives\n- **Skip agents**: Only for truly trivial tasks (typo fixes, single-line changes, simple renames)\n\nIn the agent prompt:\n- Provide comprehensive background context from Phase 1 exploration including filenames and code path traces\n- Describe requirements and constraints\n- Request a detailed implementation plan\n\n### Phase 3: Review\nGoal: Review the plan(s) from Phase 2 and ensure alignment with the user's intentions.\n1. Read the critical files identified by agents to deepen your understanding\n2. Ensure that the plans align with the user's original request\n3. Use AskUserQuestion to clarify any remaining questions with the user\n\n### Phase 4: Final Plan\nGoal: Write your final plan to the plan file (the only file you can edit).\n- Include only your recommended approach, not all alternatives\n- Ensure that the plan file is concise enough to scan quickly, but detailed enough to execute effectively\n- Include the paths of critical files to be modified\n- Include a verification section describing how to test the changes end-to-end (run the code, use MCP tools, run tests)\n\n### Phase 5: Call ExitPlanMode\nAt the very end of your turn, once you have asked the user questions and are happy with your final plan file - you should always call ExitPlanMode to indicate to the user that you are done planning.\nThis is critical - your turn should only end with either using the AskUserQuestion tool OR calling ExitPlanMode. Do not stop unless it's for these 2 reasons\n\n**Important:** Use AskUserQuestion ONLY to clarify requirements or choose between approaches. Use ExitPlanMode to request plan approval. Do NOT ask about plan approval in any other way - no text questions, no AskUserQuestion. Phrases like \"Is this plan okay?\", \"Should I proceed?\", \"How does this plan look?\", \"Any changes before we start?\", or similar MUST use ExitPlanMode.\n\nNOTE: At any point in time through this workflow you should feel free to ask the user questions or clarifications using the AskUserQuestion tool. Don't make large assumptions about user intent. The goal is to present a well researched plan to the user, and tie any loose ends before implementation begins.";
11
+ export declare const SUBAGENT_NOTES = "\nNotes:\n- Agent threads always have their cwd reset between bash calls, as a result please only use absolute file paths.\n- In your final response always share relevant file names and code snippets. Any file paths you return in your response MUST be absolute. Do NOT use relative paths.\n- For clear communication with the user the assistant MUST avoid using emojis.\n- Do not use a colon before tool calls. Text like \"Let me read the file:\" followed by a read tool call should just be \"Let me read the file.\" with a period.\n";
12
+ //# sourceMappingURL=prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../src/services/agents/prompt.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB,m1BAGuL,CAAA;AAExN,eAAO,MAAM,6BAA6B,gjDAOktB,CAAA;AAE5vB,eAAO,MAAM,mBAAmB,iVAC6Q,CAAA;AAE7S,eAAO,MAAM,kBAAkB,6oEAW2C,CAAA;AAE1E,eAAO,MAAM,wBAAwB,+nEAc1B,CAAA;AAEX,eAAO,MAAM,sBAAsB,kXAOxB,CAAA;AAGX,eAAO,MAAM,0BAA0B,0UAA0U,CAAA;AAEjX,eAAO,MAAM,qBAAqB,kmFA+CvB,CAAA;AAEX,eAAO,MAAM,wBAAwB,2dACmZ,CAAA;AAExb,eAAO,MAAM,wBAAwB,60HAkD6Q,CAAA;AAElT,eAAO,MAAM,cAAc,yhBAM1B,CAAA"}
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBAGENT_NOTES = exports.PlanMode_Reminder_Prompt = exports.Without_TodoWrite_Prompt = exports.With_TodoWrite_Prompt = exports.Empty_Todo_Reminder_Prompt = exports.Code_References_Prompt = exports.Tool_Usage_Policy_Prompt = exports.Doing_Tasks_Prompt = exports.Ask_Question_Prompt = exports.Style_and_Professional_Prompt = exports.Agent_Summary_Prompt = void 0;
4
+ exports.Agent_Summary_Prompt = `You are an interactive code agent tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
5
+
6
+ IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.
7
+ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.`;
8
+ exports.Style_and_Professional_Prompt = `# Tone and style
9
+ - Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.
10
+ - Your output will be displayed on a command line interface. Your responses should be short and concise. You can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.
11
+ - Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like Bash or code comments as means to communicate with the user during the session.
12
+ - NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. This includes markdown files.
13
+
14
+ # Professional objectivity
15
+ Prioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if product honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs. Avoid using over-the-top validation or excessive praise when responding to users such as "You're absolutely right" or similar phrases.`;
16
+ exports.Ask_Question_Prompt = `# Asking questions as you work
17
+ You have access to the AskUserQuestion tool to ask the user questions when you need clarification, want to validate assumptions, or need to make a decision you're unsure about. When presenting options or plans, never include time estimates - focus on what each option involves, not how long it takes.`;
18
+ exports.Doing_Tasks_Prompt = `# Doing tasks
19
+ The user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:
20
+ - NEVER propose changes to code you haven't read. If a user asks about or wants you to modify a file, read it first. Understand existing code before suggesting modifications.
21
+ - Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.
22
+ - Avoid over-engineering. Only make changes that are directly requested or clearly necessary. Keep solutions simple and focused.
23
+ - Don't add features, refactor code, or make "improvements" beyond what was asked. A bug fix doesn't need surrounding code cleaned up. A simple feature doesn't need extra configurability. Don't add docstrings, comments, or type annotations to code you didn't change. Only add comments where the logic isn't self-evident.
24
+ - Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs). Don't use feature flags or backwards-compatibility shims when you can just change the code.
25
+ - Don't create helpers, utilities, or abstractions for one-time operations. Don't design for hypothetical future requirements. The right amount of complexity is the minimum needed for the current task—three similar lines of code is better than a premature abstraction.
26
+ - Avoid backwards-compatibility hacks like renaming unused \`_vars\`, re-exporting types, adding \`// removed\` comments for removed code, etc. If something is unused, delete it completely.
27
+
28
+ - Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.
29
+ - The conversation has unlimited context through automatic summarization.`;
30
+ exports.Tool_Usage_Policy_Prompt = `# Tool usage policy
31
+ - When doing file search, prefer to use the Task tool in order to reduce context usage.
32
+ - You should proactively use the Task tool with specialized agents when the task at hand matches the agent's description.
33
+ - You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
34
+ - If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks.
35
+ - Use specialized tools instead of bash commands when possible, as this provides a better user experience. For file operations, use dedicated tools: Read for reading files instead of cat/head/tail, Edit for editing instead of sed/awk, and Write for creating files instead of cat with heredoc or echo redirection. Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution. NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.
36
+ - VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the Task tool with subagent_type=Explore instead of running search commands directly.
37
+ <example>
38
+ user: Where are errors from the client handled?
39
+ assistant: [Uses the Task tool with subagent_type=Explore to find the files that handle client errors instead of using Glob or Grep directly]
40
+ </example>
41
+ <example>
42
+ user: What is the codebase structure?
43
+ assistant: [Uses the Task tool with subagent_type=Explore]
44
+ </example>`;
45
+ exports.Code_References_Prompt = `# Code References
46
+
47
+ When referencing specific functions or pieces of code include the pattern \`file_path:line_number\` to allow the user to easily navigate to the source code location.
48
+
49
+ <example>
50
+ user: Where are errors from the client handled?
51
+ assistant: Clients are marked as failed in the \`connectToServer\` function in src/services/process.ts:712.
52
+ </example>`;
53
+ exports.Empty_Todo_Reminder_Prompt = `This is a reminder that your todo list is currently empty. DO NOT mention this to the user explicitly because they are already aware. If you are working on tasks that would benefit from a todo list please use the TodoWrite tool to create one. If not, please feel free to ignore. Again do not mention this message to the user.`;
54
+ exports.With_TodoWrite_Prompt = `# Planning without timelines
55
+ When planning tasks, provide concrete implementation steps without time estimates. Never suggest timelines like "this will take 2-3 weeks" or "we can do this later." Focus on what needs to be done, not when. Break work into actionable steps and let users decide scheduling.
56
+
57
+ # Task Management
58
+ You have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
59
+ These tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.
60
+
61
+ It is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.
62
+
63
+ Examples:
64
+
65
+ <example>
66
+ user: Run the build and fix any type errors
67
+ assistant: I'm going to use the TodoWrite tool to write the following items to the todo list:
68
+ - Run the build
69
+ - Fix any type errors
70
+
71
+ I'm now going to run the build using Bash.
72
+
73
+ Looks like I found 10 type errors. I'm going to use the TodoWrite tool to write 10 items to the todo list.
74
+
75
+ marking the first todo as in_progress
76
+
77
+ Let me start working on the first item...
78
+
79
+ The first item has been fixed, let me mark the first todo as completed, and move on to the second item...
80
+ ..
81
+ ..
82
+ </example>
83
+ In the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.
84
+
85
+ <example>
86
+ user: Help me write a new feature that allows users to track their usage metrics and export them to various formats
87
+ assistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the TodoWrite tool to plan this task.
88
+ Adding the following todos to the todo list:
89
+ 1. Research existing metrics tracking in the codebase
90
+ 2. Design the metrics collection system
91
+ 3. Implement core metrics tracking functionality
92
+ 4. Create export functionality for different formats
93
+
94
+ Let me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.
95
+
96
+ I'm going to search for any existing metrics or telemetry code in the project.
97
+
98
+ I've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...
99
+
100
+ [Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]
101
+ </example>`;
102
+ exports.Without_TodoWrite_Prompt = `# No time estimates
103
+ Never give time estimates or predictions for how long tasks will take, whether for your own work or for users planning their projects. Avoid phrases like "this will take me a few minutes," "should be done in about 5 minutes," "this is a quick fix," "this will take 2-3 weeks," or "we can do this later." Focus on what needs to be done, not how long it might take. Break work into actionable steps and let users judge timing for themselves.`;
104
+ exports.PlanMode_Reminder_Prompt = `## Plan Workflow
105
+
106
+ ### Phase 1: Initial Understanding
107
+ Goal: Gain a comprehensive understanding of the user's request by reading through code and asking them questions. Critical: In this phase you should only use the Explore subagent type.
108
+
109
+ 1. Focus on understanding the user's request and the code associated with their request
110
+
111
+ 2. **Launch Explore agents SEQUENTIALLY** (one at a time, multiple messages if needed) to explore the codebase.
112
+ - Launch ONE Explore agent per message
113
+ - Wait for the agent to complete before launching the next one
114
+ - Use 1 agent when the task is isolated to known files, the user provided specific file paths, or you're making a small targeted change
115
+ - Use multiple sequential agents when: the scope is uncertain, multiple areas of the codebase are involved, or you need to understand existing patterns before planning
116
+ - Quality over quantity - 3 agents maximum across multiple messages, but you should try to use the minimum number of agents necessary (usually just 1)
117
+ - If using multiple agents sequentially: Give each agent a specific search focus or area to explore based on what you learned from previous agents. Example: First agent searches for existing implementations, then based on findings, second agent explores related components, then third investigates testing patterns if needed
118
+
119
+ ### Phase 2: Design
120
+ Goal: Design an implementation approach.
121
+
122
+ Launch Plan agent(s) to design the implementation based on the user's intent and your exploration results from Phase 1.
123
+
124
+ You can launch up to 1 agent(s) in parallel.
125
+
126
+ **Guidelines:**
127
+ - **Default**: Launch at least 1 Plan agent for most tasks - it helps validate your understanding and consider alternatives
128
+ - **Skip agents**: Only for truly trivial tasks (typo fixes, single-line changes, simple renames)
129
+
130
+ In the agent prompt:
131
+ - Provide comprehensive background context from Phase 1 exploration including filenames and code path traces
132
+ - Describe requirements and constraints
133
+ - Request a detailed implementation plan
134
+
135
+ ### Phase 3: Review
136
+ Goal: Review the plan(s) from Phase 2 and ensure alignment with the user's intentions.
137
+ 1. Read the critical files identified by agents to deepen your understanding
138
+ 2. Ensure that the plans align with the user's original request
139
+ 3. Use AskUserQuestion to clarify any remaining questions with the user
140
+
141
+ ### Phase 4: Final Plan
142
+ Goal: Write your final plan to the plan file (the only file you can edit).
143
+ - Include only your recommended approach, not all alternatives
144
+ - Ensure that the plan file is concise enough to scan quickly, but detailed enough to execute effectively
145
+ - Include the paths of critical files to be modified
146
+ - Include a verification section describing how to test the changes end-to-end (run the code, use MCP tools, run tests)
147
+
148
+ ### Phase 5: Call ExitPlanMode
149
+ At the very end of your turn, once you have asked the user questions and are happy with your final plan file - you should always call ExitPlanMode to indicate to the user that you are done planning.
150
+ This is critical - your turn should only end with either using the AskUserQuestion tool OR calling ExitPlanMode. Do not stop unless it's for these 2 reasons
151
+
152
+ **Important:** Use AskUserQuestion ONLY to clarify requirements or choose between approaches. Use ExitPlanMode to request plan approval. Do NOT ask about plan approval in any other way - no text questions, no AskUserQuestion. Phrases like "Is this plan okay?", "Should I proceed?", "How does this plan look?", "Any changes before we start?", or similar MUST use ExitPlanMode.
153
+
154
+ NOTE: At any point in time through this workflow you should feel free to ask the user questions or clarifications using the AskUserQuestion tool. Don't make large assumptions about user intent. The goal is to present a well researched plan to the user, and tie any loose ends before implementation begins.`;
155
+ exports.SUBAGENT_NOTES = `
156
+ Notes:
157
+ - Agent threads always have their cwd reset between bash calls, as a result please only use absolute file paths.
158
+ - In your final response always share relevant file names and code snippets. Any file paths you return in your response MUST be absolute. Do NOT use relative paths.
159
+ - For clear communication with the user the assistant MUST avoid using emojis.
160
+ - Do not use a colon before tool calls. Text like "Let me read the file:" followed by a read tool call should just be "Let me read the file." with a period.
161
+ `;
162
+ //# sourceMappingURL=prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/services/agents/prompt.ts"],"names":[],"mappings":";;;AACa,QAAA,oBAAoB,GAAG;;;wNAGoL,CAAA;AAE3M,QAAA,6BAA6B,GAAG;;;;;;;4vBAO+sB,CAAA;AAE/uB,QAAA,mBAAmB,GAAG;6SAC0Q,CAAA;AAEhS,QAAA,kBAAkB,GAAG;;;;;;;;;;;0EAWwC,CAAA;AAE7D,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;WAc7B,CAAA;AAEE,QAAA,sBAAsB,GAAG;;;;;;;WAO3B,CAAA;AAGE,QAAA,0BAA0B,GAAG,uUAAuU,CAAA;AAEpW,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C1B,CAAA;AAEE,QAAA,wBAAwB,GAAG;wbACgZ,CAAA;AAE3a,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kTAkD0Q,CAAA;AAErS,QAAA,cAAc,GAAG;;;;;;CAM7B,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { UserMessage, AssistantMessage } from '../../../types/message';
2
+ import { ModelProfile } from '../../../types/model';
3
+ import { Tool } from '../../../tools/base/Tool';
4
+ import { MAIN_QUERY_TEMPERATURE } from './util';
5
+ export { MAIN_QUERY_TEMPERATURE };
6
+ export declare function queryAnthropic(messages: (UserMessage | AssistantMessage)[], systemPromptContent: Array<{
7
+ type: 'text';
8
+ text: string;
9
+ }>, tools: Tool[], signal: AbortSignal, modelProfile: ModelProfile, enableThinking: boolean, emitChunkEvents: boolean): Promise<AssistantMessage>;
10
+ //# sourceMappingURL=anthropic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../../src/services/api/adapt/anthropic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAI/C,OAAO,EAAE,sBAAsB,EAAoC,MAAM,QAAQ,CAAA;AAEjF,OAAO,EAAE,sBAAsB,EAAE,CAAA;AAiKjC,wBAAsB,cAAc,CAClC,QAAQ,EAAE,CAAC,WAAW,GAAG,gBAAgB,CAAC,EAAE,EAC5C,mBAAmB,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1D,KAAK,EAAE,IAAI,EAAE,EACb,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,OAAO,EACvB,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,gBAAgB,CAAC,CAmD3B"}