@codemieai/code 0.0.45 → 0.0.46

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 (395) hide show
  1. package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
  2. package/dist/agents/core/BaseAgentAdapter.js +20 -3
  3. package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
  4. package/dist/agents/core/metrics/types.d.ts +0 -6
  5. package/dist/agents/core/metrics/types.d.ts.map +1 -1
  6. package/dist/agents/core/session/BaseSessionAdapter.d.ts +0 -6
  7. package/dist/agents/core/session/BaseSessionAdapter.d.ts.map +1 -1
  8. package/dist/agents/plugins/claude/claude.plugin-installer.d.ts +0 -11
  9. package/dist/agents/plugins/claude/claude.plugin-installer.d.ts.map +1 -1
  10. package/dist/agents/plugins/claude/claude.plugin-installer.js +0 -32
  11. package/dist/agents/plugins/claude/claude.plugin-installer.js.map +1 -1
  12. package/dist/agents/plugins/claude/claude.plugin.js +1 -1
  13. package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -1
  14. package/dist/agents/plugins/claude/claude.session.js +1 -28
  15. package/dist/agents/plugins/claude/claude.session.js.map +1 -1
  16. package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
  17. package/dist/agents/plugins/claude/plugin/README.md +1 -14
  18. package/dist/agents/plugins/claude/plugin/hooks/hooks.json +4 -4
  19. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md +206 -0
  20. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-agent.md +45 -0
  21. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-claude-md-snippet.md +40 -0
  22. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-command.md +30 -0
  23. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-hooks.json +23 -0
  24. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-skill.md +48 -0
  25. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-agent.md +145 -0
  26. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-claude-md-snippet.md +126 -0
  27. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-command.md +170 -0
  28. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-hooks.json +46 -0
  29. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-skill.md +144 -0
  30. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/sample-report.md +223 -0
  31. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/best-practices.md +510 -0
  32. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/component-checklists.md +413 -0
  33. package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/scripts/scan-repo.sh +162 -0
  34. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
  35. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +3 -78
  36. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
  37. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -1
  38. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +7 -16
  39. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -1
  40. package/dist/agents/plugins/claude/sounds-installer.d.ts +1 -1
  41. package/dist/agents/plugins/claude/sounds-installer.d.ts.map +1 -1
  42. package/dist/agents/plugins/claude/sounds-installer.js +1 -4
  43. package/dist/agents/plugins/claude/sounds-installer.js.map +1 -1
  44. package/dist/agents/plugins/codemie-code.plugin.d.ts +1 -4
  45. package/dist/agents/plugins/codemie-code.plugin.d.ts.map +1 -1
  46. package/dist/agents/plugins/codemie-code.plugin.js +26 -81
  47. package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
  48. package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts +1 -8
  49. package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts.map +1 -1
  50. package/dist/agents/plugins/gemini/gemini.session-adapter.js +2 -30
  51. package/dist/agents/plugins/gemini/gemini.session-adapter.js.map +1 -1
  52. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -1
  53. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +2 -8
  54. package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -1
  55. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.d.ts.map +1 -1
  56. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js +0 -7
  57. package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js.map +1 -1
  58. package/dist/agents/plugins/opencode/index.d.ts +1 -1
  59. package/dist/agents/plugins/opencode/index.d.ts.map +1 -1
  60. package/dist/agents/plugins/opencode/index.js.map +1 -1
  61. package/dist/agents/plugins/opencode/opencode-message-types.d.ts +2 -22
  62. package/dist/agents/plugins/opencode/opencode-message-types.d.ts.map +1 -1
  63. package/dist/agents/plugins/opencode/opencode-message-types.js.map +1 -1
  64. package/dist/agents/plugins/opencode/opencode.session.d.ts.map +1 -1
  65. package/dist/agents/plugins/opencode/opencode.session.js +5 -30
  66. package/dist/agents/plugins/opencode/opencode.session.js.map +1 -1
  67. package/dist/agents/plugins/opencode/opencode.sqlite-reader.d.ts.map +1 -1
  68. package/dist/agents/plugins/opencode/opencode.sqlite-reader.js +0 -2
  69. package/dist/agents/plugins/opencode/opencode.sqlite-reader.js.map +1 -1
  70. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts +0 -8
  71. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts.map +1 -1
  72. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js +8 -97
  73. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js.map +1 -1
  74. package/dist/cli/commands/analytics/aggregator.d.ts +0 -8
  75. package/dist/cli/commands/analytics/aggregator.d.ts.map +1 -1
  76. package/dist/cli/commands/analytics/aggregator.js +5 -100
  77. package/dist/cli/commands/analytics/aggregator.js.map +1 -1
  78. package/dist/cli/commands/analytics/data-loader.d.ts +0 -7
  79. package/dist/cli/commands/analytics/data-loader.d.ts.map +1 -1
  80. package/dist/cli/commands/analytics/data-loader.js +3 -10
  81. package/dist/cli/commands/analytics/data-loader.js.map +1 -1
  82. package/dist/cli/commands/analytics/exporter.d.ts.map +1 -1
  83. package/dist/cli/commands/analytics/exporter.js +0 -12
  84. package/dist/cli/commands/analytics/exporter.js.map +1 -1
  85. package/dist/cli/commands/analytics/formatter.d.ts.map +1 -1
  86. package/dist/cli/commands/analytics/formatter.js +0 -9
  87. package/dist/cli/commands/analytics/formatter.js.map +1 -1
  88. package/dist/cli/commands/analytics/types.d.ts +0 -17
  89. package/dist/cli/commands/analytics/types.d.ts.map +1 -1
  90. package/dist/cli/commands/assistants/chat/historyLoader.d.ts +22 -0
  91. package/dist/cli/commands/assistants/chat/historyLoader.d.ts.map +1 -0
  92. package/dist/cli/commands/assistants/chat/historyLoader.js +80 -0
  93. package/dist/cli/commands/assistants/chat/historyLoader.js.map +1 -0
  94. package/dist/cli/commands/assistants/{chat.d.ts → chat/index.d.ts} +1 -1
  95. package/dist/cli/commands/assistants/chat/index.d.ts.map +1 -0
  96. package/dist/cli/commands/assistants/{chat.js → chat/index.js} +54 -45
  97. package/dist/cli/commands/assistants/chat/index.js.map +1 -0
  98. package/dist/cli/commands/assistants/chat/types.d.ts +27 -0
  99. package/dist/cli/commands/assistants/chat/types.d.ts.map +1 -0
  100. package/dist/cli/commands/assistants/chat/types.js +5 -0
  101. package/dist/cli/commands/assistants/chat/types.js.map +1 -0
  102. package/dist/cli/commands/assistants/chat/utils.d.ts +12 -0
  103. package/dist/cli/commands/assistants/chat/utils.d.ts.map +1 -0
  104. package/dist/cli/commands/assistants/chat/utils.js +24 -0
  105. package/dist/cli/commands/assistants/chat/utils.js.map +1 -0
  106. package/dist/cli/commands/assistants/constants.d.ts +1 -0
  107. package/dist/cli/commands/assistants/constants.d.ts.map +1 -1
  108. package/dist/cli/commands/assistants/constants.js.map +1 -1
  109. package/dist/cli/commands/assistants/index.js +2 -2
  110. package/dist/cli/commands/assistants/index.js.map +1 -1
  111. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js +1 -1
  112. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +1 -1
  113. package/dist/cli/commands/assistants/setup/index.js +4 -4
  114. package/dist/cli/commands/assistants/setup/index.js.map +1 -1
  115. package/dist/cli/commands/assistants/setup/selection/index.d.ts +1 -1
  116. package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -1
  117. package/dist/cli/commands/assistants/setup/selection/index.js +5 -3
  118. package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -1
  119. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -1
  120. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +7 -1
  121. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -1
  122. package/dist/cli/commands/assistants/setup/selection/types.d.ts +2 -0
  123. package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -1
  124. package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -1
  125. package/dist/cli/commands/assistants/setup/selection/ui.js +15 -4
  126. package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -1
  127. package/dist/cli/commands/hook.js +1 -1
  128. package/dist/cli/commands/hook.js.map +1 -1
  129. package/dist/cli/commands/plugin.d.ts +16 -0
  130. package/dist/cli/commands/plugin.d.ts.map +1 -0
  131. package/dist/cli/commands/plugin.js +210 -0
  132. package/dist/cli/commands/plugin.js.map +1 -0
  133. package/dist/cli/commands/setup.js +1 -1
  134. package/dist/cli/commands/skill.d.ts.map +1 -1
  135. package/dist/cli/commands/skill.js +3 -1
  136. package/dist/cli/commands/skill.js.map +1 -1
  137. package/dist/cli/commands/sound.d.ts +3 -0
  138. package/dist/cli/commands/sound.d.ts.map +1 -0
  139. package/dist/cli/commands/sound.js +87 -0
  140. package/dist/cli/commands/sound.js.map +1 -0
  141. package/dist/cli/commands/test-metrics.js +3 -5
  142. package/dist/cli/commands/test-metrics.js.map +1 -1
  143. package/dist/cli/index.js +4 -0
  144. package/dist/cli/index.js.map +1 -1
  145. package/dist/env/types.d.ts +8 -0
  146. package/dist/env/types.d.ts.map +1 -1
  147. package/dist/env/types.js.map +1 -1
  148. package/dist/plugins/core/index.d.ts +13 -0
  149. package/dist/plugins/core/index.d.ts.map +1 -0
  150. package/dist/plugins/core/index.js +15 -0
  151. package/dist/plugins/core/index.js.map +1 -0
  152. package/dist/plugins/core/manifest-parser.d.ts +28 -0
  153. package/dist/plugins/core/manifest-parser.d.ts.map +1 -0
  154. package/dist/plugins/core/manifest-parser.js +137 -0
  155. package/dist/plugins/core/manifest-parser.js.map +1 -0
  156. package/dist/plugins/core/plugin-cache.d.ts +65 -0
  157. package/dist/plugins/core/plugin-cache.d.ts.map +1 -0
  158. package/dist/plugins/core/plugin-cache.js +170 -0
  159. package/dist/plugins/core/plugin-cache.js.map +1 -0
  160. package/dist/plugins/core/plugin-loader.d.ts +21 -0
  161. package/dist/plugins/core/plugin-loader.d.ts.map +1 -0
  162. package/dist/plugins/core/plugin-loader.js +55 -0
  163. package/dist/plugins/core/plugin-loader.js.map +1 -0
  164. package/dist/plugins/core/plugin-resolver.d.ts +33 -0
  165. package/dist/plugins/core/plugin-resolver.d.ts.map +1 -0
  166. package/dist/plugins/core/plugin-resolver.js +118 -0
  167. package/dist/plugins/core/plugin-resolver.js.map +1 -0
  168. package/dist/plugins/core/types.d.ts +183 -0
  169. package/dist/plugins/core/types.d.ts.map +1 -0
  170. package/dist/plugins/core/types.js +22 -0
  171. package/dist/plugins/core/types.js.map +1 -0
  172. package/dist/plugins/loaders/agents-loader.d.ts +19 -0
  173. package/dist/plugins/loaders/agents-loader.d.ts.map +1 -0
  174. package/dist/plugins/loaders/agents-loader.js +92 -0
  175. package/dist/plugins/loaders/agents-loader.js.map +1 -0
  176. package/dist/plugins/loaders/hooks-loader.d.ts +27 -0
  177. package/dist/plugins/loaders/hooks-loader.d.ts.map +1 -0
  178. package/dist/plugins/loaders/hooks-loader.js +94 -0
  179. package/dist/plugins/loaders/hooks-loader.js.map +1 -0
  180. package/dist/plugins/loaders/mcp-loader.d.ts +24 -0
  181. package/dist/plugins/loaders/mcp-loader.d.ts.map +1 -0
  182. package/dist/plugins/loaders/mcp-loader.js +86 -0
  183. package/dist/plugins/loaders/mcp-loader.js.map +1 -0
  184. package/dist/plugins/loaders/skills-loader.d.ts +30 -0
  185. package/dist/plugins/loaders/skills-loader.d.ts.map +1 -0
  186. package/dist/plugins/loaders/skills-loader.js +167 -0
  187. package/dist/plugins/loaders/skills-loader.js.map +1 -0
  188. package/dist/providers/plugins/bedrock/bedrock.template.js +1 -1
  189. package/dist/providers/plugins/jwt/jwt.setup-steps.js +1 -1
  190. package/dist/providers/plugins/jwt/jwt.template.js +1 -1
  191. package/dist/providers/plugins/litellm/litellm.template.js +1 -1
  192. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js +10 -0
  193. package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js.map +1 -1
  194. package/dist/providers/plugins/sso/proxy/proxy-types.d.ts +3 -0
  195. package/dist/providers/plugins/sso/proxy/proxy-types.d.ts.map +1 -1
  196. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
  197. package/dist/providers/plugins/sso/session/SessionSyncer.js +2 -3
  198. package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
  199. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts +21 -0
  200. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts.map +1 -0
  201. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js +159 -0
  202. package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js.map +1 -0
  203. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts +24 -0
  204. package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts.map +1 -0
  205. package/dist/providers/plugins/sso/session/processors/conversations/constants.js +36 -0
  206. package/dist/providers/plugins/sso/session/processors/conversations/constants.js.map +1 -0
  207. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts +19 -0
  208. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts.map +1 -0
  209. package/dist/providers/plugins/sso/session/processors/conversations/{conversation-sync-processor.js → syncProcessor.js} +48 -33
  210. package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js.map +1 -0
  211. package/dist/providers/plugins/sso/session/processors/conversations/{conversation-types.d.ts → types.d.ts} +14 -2
  212. package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts.map +1 -0
  213. package/dist/providers/plugins/sso/session/processors/conversations/types.js +14 -0
  214. package/dist/providers/plugins/sso/session/processors/conversations/types.js.map +1 -0
  215. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -1
  216. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js +16 -17
  217. package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -1
  218. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts +3 -3
  219. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -1
  220. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js +8 -38
  221. package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -1
  222. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
  223. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +2 -6
  224. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
  225. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts +49 -31
  226. package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -1
  227. package/dist/providers/plugins/sso/sso.template.js +1 -1
  228. package/dist/{agents/codemie-code/skills → skills}/core/SkillDiscovery.d.ts +10 -0
  229. package/dist/skills/core/SkillDiscovery.d.ts.map +1 -0
  230. package/dist/{agents/codemie-code/skills → skills}/core/SkillDiscovery.js +64 -7
  231. package/dist/skills/core/SkillDiscovery.js.map +1 -0
  232. package/dist/skills/core/SkillManager.d.ts.map +1 -0
  233. package/dist/{agents/codemie-code/skills → skills}/core/SkillManager.js +15 -10
  234. package/dist/skills/core/SkillManager.js.map +1 -0
  235. package/dist/{agents/codemie-code/skills → skills}/core/types.d.ts +3 -25
  236. package/dist/skills/core/types.d.ts.map +1 -0
  237. package/dist/skills/core/types.js.map +1 -0
  238. package/dist/{agents/codemie-code/skills → skills}/index.d.ts +3 -3
  239. package/dist/skills/index.d.ts.map +1 -0
  240. package/dist/{agents/codemie-code/skills → skills}/index.js +2 -2
  241. package/dist/skills/index.js.map +1 -0
  242. package/dist/skills/sync/SkillSync.d.ts.map +1 -0
  243. package/dist/{agents/codemie-code/skills → skills}/sync/SkillSync.js +5 -3
  244. package/dist/skills/sync/SkillSync.js.map +1 -0
  245. package/dist/{agents/codemie-code/skills → skills}/utils/content-loader.d.ts +2 -12
  246. package/dist/skills/utils/content-loader.d.ts.map +1 -0
  247. package/dist/{agents/codemie-code/skills → skills}/utils/content-loader.js +3 -8
  248. package/dist/skills/utils/content-loader.js.map +1 -0
  249. package/dist/skills/utils/pattern-matcher.d.ts.map +1 -0
  250. package/dist/skills/utils/pattern-matcher.js.map +1 -0
  251. package/dist/utils/frontmatter.d.ts.map +1 -0
  252. package/dist/utils/frontmatter.js.map +1 -0
  253. package/package.json +1 -1
  254. package/dist/agents/codemie-code/agent.d.ts +0 -129
  255. package/dist/agents/codemie-code/agent.d.ts.map +0 -1
  256. package/dist/agents/codemie-code/agent.js +0 -1106
  257. package/dist/agents/codemie-code/agent.js.map +0 -1
  258. package/dist/agents/codemie-code/config.d.ts +0 -40
  259. package/dist/agents/codemie-code/config.d.ts.map +0 -1
  260. package/dist/agents/codemie-code/config.js +0 -293
  261. package/dist/agents/codemie-code/config.js.map +0 -1
  262. package/dist/agents/codemie-code/filters.d.ts +0 -91
  263. package/dist/agents/codemie-code/filters.d.ts.map +0 -1
  264. package/dist/agents/codemie-code/filters.js +0 -328
  265. package/dist/agents/codemie-code/filters.js.map +0 -1
  266. package/dist/agents/codemie-code/index.d.ts +0 -93
  267. package/dist/agents/codemie-code/index.d.ts.map +0 -1
  268. package/dist/agents/codemie-code/index.js +0 -359
  269. package/dist/agents/codemie-code/index.js.map +0 -1
  270. package/dist/agents/codemie-code/modes/contextAwarePlanning.d.ts +0 -87
  271. package/dist/agents/codemie-code/modes/contextAwarePlanning.d.ts.map +0 -1
  272. package/dist/agents/codemie-code/modes/contextAwarePlanning.js +0 -957
  273. package/dist/agents/codemie-code/modes/contextAwarePlanning.js.map +0 -1
  274. package/dist/agents/codemie-code/modes/planMode.d.ts +0 -116
  275. package/dist/agents/codemie-code/modes/planMode.d.ts.map +0 -1
  276. package/dist/agents/codemie-code/modes/planMode.js +0 -537
  277. package/dist/agents/codemie-code/modes/planMode.js.map +0 -1
  278. package/dist/agents/codemie-code/prompts.d.ts +0 -47
  279. package/dist/agents/codemie-code/prompts.d.ts.map +0 -1
  280. package/dist/agents/codemie-code/prompts.js +0 -207
  281. package/dist/agents/codemie-code/prompts.js.map +0 -1
  282. package/dist/agents/codemie-code/skills/core/SkillDiscovery.d.ts.map +0 -1
  283. package/dist/agents/codemie-code/skills/core/SkillDiscovery.js.map +0 -1
  284. package/dist/agents/codemie-code/skills/core/SkillManager.d.ts.map +0 -1
  285. package/dist/agents/codemie-code/skills/core/SkillManager.js.map +0 -1
  286. package/dist/agents/codemie-code/skills/core/types.d.ts.map +0 -1
  287. package/dist/agents/codemie-code/skills/core/types.js.map +0 -1
  288. package/dist/agents/codemie-code/skills/index.d.ts.map +0 -1
  289. package/dist/agents/codemie-code/skills/index.js.map +0 -1
  290. package/dist/agents/codemie-code/skills/sync/SkillSync.d.ts.map +0 -1
  291. package/dist/agents/codemie-code/skills/sync/SkillSync.js.map +0 -1
  292. package/dist/agents/codemie-code/skills/utils/content-loader.d.ts.map +0 -1
  293. package/dist/agents/codemie-code/skills/utils/content-loader.js.map +0 -1
  294. package/dist/agents/codemie-code/skills/utils/frontmatter.d.ts.map +0 -1
  295. package/dist/agents/codemie-code/skills/utils/frontmatter.js.map +0 -1
  296. package/dist/agents/codemie-code/skills/utils/pattern-matcher.d.ts.map +0 -1
  297. package/dist/agents/codemie-code/skills/utils/pattern-matcher.js.map +0 -1
  298. package/dist/agents/codemie-code/storage/todoStorage.d.ts +0 -78
  299. package/dist/agents/codemie-code/storage/todoStorage.d.ts.map +0 -1
  300. package/dist/agents/codemie-code/storage/todoStorage.js +0 -225
  301. package/dist/agents/codemie-code/storage/todoStorage.js.map +0 -1
  302. package/dist/agents/codemie-code/tokenUtils.d.ts +0 -108
  303. package/dist/agents/codemie-code/tokenUtils.d.ts.map +0 -1
  304. package/dist/agents/codemie-code/tokenUtils.js +0 -220
  305. package/dist/agents/codemie-code/tokenUtils.js.map +0 -1
  306. package/dist/agents/codemie-code/toolMetadata.d.ts +0 -15
  307. package/dist/agents/codemie-code/toolMetadata.d.ts.map +0 -1
  308. package/dist/agents/codemie-code/toolMetadata.js +0 -316
  309. package/dist/agents/codemie-code/toolMetadata.js.map +0 -1
  310. package/dist/agents/codemie-code/tools/assistant-invocation.d.ts +0 -47
  311. package/dist/agents/codemie-code/tools/assistant-invocation.d.ts.map +0 -1
  312. package/dist/agents/codemie-code/tools/assistant-invocation.js +0 -129
  313. package/dist/agents/codemie-code/tools/assistant-invocation.js.map +0 -1
  314. package/dist/agents/codemie-code/tools/index.d.ts +0 -111
  315. package/dist/agents/codemie-code/tools/index.d.ts.map +0 -1
  316. package/dist/agents/codemie-code/tools/index.js +0 -424
  317. package/dist/agents/codemie-code/tools/index.js.map +0 -1
  318. package/dist/agents/codemie-code/tools/planning.d.ts +0 -54
  319. package/dist/agents/codemie-code/tools/planning.d.ts.map +0 -1
  320. package/dist/agents/codemie-code/tools/planning.js +0 -226
  321. package/dist/agents/codemie-code/tools/planning.js.map +0 -1
  322. package/dist/agents/codemie-code/types.d.ts +0 -459
  323. package/dist/agents/codemie-code/types.d.ts.map +0 -1
  324. package/dist/agents/codemie-code/types.js +0 -59
  325. package/dist/agents/codemie-code/types.js.map +0 -1
  326. package/dist/agents/codemie-code/ui/autocomplete.d.ts +0 -98
  327. package/dist/agents/codemie-code/ui/autocomplete.d.ts.map +0 -1
  328. package/dist/agents/codemie-code/ui/autocomplete.js +0 -145
  329. package/dist/agents/codemie-code/ui/autocomplete.js.map +0 -1
  330. package/dist/agents/codemie-code/ui/keyHandlers.d.ts +0 -112
  331. package/dist/agents/codemie-code/ui/keyHandlers.d.ts.map +0 -1
  332. package/dist/agents/codemie-code/ui/keyHandlers.js +0 -415
  333. package/dist/agents/codemie-code/ui/keyHandlers.js.map +0 -1
  334. package/dist/agents/codemie-code/ui/mentions.d.ts +0 -86
  335. package/dist/agents/codemie-code/ui/mentions.d.ts.map +0 -1
  336. package/dist/agents/codemie-code/ui/mentions.js +0 -122
  337. package/dist/agents/codemie-code/ui/mentions.js.map +0 -1
  338. package/dist/agents/codemie-code/ui/progressTracker.d.ts +0 -125
  339. package/dist/agents/codemie-code/ui/progressTracker.d.ts.map +0 -1
  340. package/dist/agents/codemie-code/ui/progressTracker.js +0 -343
  341. package/dist/agents/codemie-code/ui/progressTracker.js.map +0 -1
  342. package/dist/agents/codemie-code/ui/terminalCodes.d.ts +0 -38
  343. package/dist/agents/codemie-code/ui/terminalCodes.d.ts.map +0 -1
  344. package/dist/agents/codemie-code/ui/terminalCodes.js +0 -42
  345. package/dist/agents/codemie-code/ui/terminalCodes.js.map +0 -1
  346. package/dist/agents/codemie-code/ui/todoPanel.d.ts +0 -112
  347. package/dist/agents/codemie-code/ui/todoPanel.d.ts.map +0 -1
  348. package/dist/agents/codemie-code/ui/todoPanel.js +0 -321
  349. package/dist/agents/codemie-code/ui/todoPanel.js.map +0 -1
  350. package/dist/agents/codemie-code/ui.d.ts +0 -180
  351. package/dist/agents/codemie-code/ui.d.ts.map +0 -1
  352. package/dist/agents/codemie-code/ui.js +0 -1345
  353. package/dist/agents/codemie-code/ui.js.map +0 -1
  354. package/dist/agents/codemie-code/utils/progressionEnforcer.d.ts +0 -87
  355. package/dist/agents/codemie-code/utils/progressionEnforcer.d.ts.map +0 -1
  356. package/dist/agents/codemie-code/utils/progressionEnforcer.js +0 -293
  357. package/dist/agents/codemie-code/utils/progressionEnforcer.js.map +0 -1
  358. package/dist/agents/codemie-code/utils/todoParser.d.ts +0 -41
  359. package/dist/agents/codemie-code/utils/todoParser.d.ts.map +0 -1
  360. package/dist/agents/codemie-code/utils/todoParser.js +0 -305
  361. package/dist/agents/codemie-code/utils/todoParser.js.map +0 -1
  362. package/dist/agents/codemie-code/utils/todoValidator.d.ts +0 -65
  363. package/dist/agents/codemie-code/utils/todoValidator.d.ts.map +0 -1
  364. package/dist/agents/codemie-code/utils/todoValidator.js +0 -249
  365. package/dist/agents/codemie-code/utils/todoValidator.js.map +0 -1
  366. package/dist/agents/codemie-code/validators/planValidator.d.ts +0 -94
  367. package/dist/agents/codemie-code/validators/planValidator.d.ts.map +0 -1
  368. package/dist/agents/codemie-code/validators/planValidator.js +0 -281
  369. package/dist/agents/codemie-code/validators/planValidator.js.map +0 -1
  370. package/dist/agents/plugins/claude/plugin/hooks/hooks.windows.json +0 -98
  371. package/dist/agents/plugins/claude/plugin/sounds/play-random-sound.ps1 +0 -112
  372. package/dist/agents/plugins/claude/plugin/sounds/play-random-sound.sh +0 -58
  373. package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts +0 -26
  374. package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts.map +0 -1
  375. package/dist/agents/plugins/gemini/session/utils/token-aggregator.js +0 -38
  376. package/dist/agents/plugins/gemini/session/utils/token-aggregator.js.map +0 -1
  377. package/dist/cli/commands/assistants/chat.d.ts.map +0 -1
  378. package/dist/cli/commands/assistants/chat.js.map +0 -1
  379. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts +0 -26
  380. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts.map +0 -1
  381. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js +0 -146
  382. package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js.map +0 -1
  383. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +0 -22
  384. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +0 -1
  385. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js.map +0 -1
  386. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.d.ts.map +0 -1
  387. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js +0 -7
  388. package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js.map +0 -1
  389. /package/dist/{agents/codemie-code/skills → skills}/core/SkillManager.d.ts +0 -0
  390. /package/dist/{agents/codemie-code/skills → skills}/core/types.js +0 -0
  391. /package/dist/{agents/codemie-code/skills → skills}/sync/SkillSync.d.ts +0 -0
  392. /package/dist/{agents/codemie-code/skills → skills}/utils/pattern-matcher.d.ts +0 -0
  393. /package/dist/{agents/codemie-code/skills → skills}/utils/pattern-matcher.js +0 -0
  394. /package/dist/{agents/codemie-code/skills/utils → utils}/frontmatter.d.ts +0 -0
  395. /package/dist/{agents/codemie-code/skills/utils → utils}/frontmatter.js +0 -0
@@ -1,424 +0,0 @@
1
- /**
2
- * System Tools Registry for CodeMie Native Agent
3
- *
4
- * Creates and manages system tools available to the LangGraph ReAct agent
5
- */
6
- import { promises as fs } from 'node:fs';
7
- import { exec } from 'node:child_process';
8
- import { promisify } from 'node:util';
9
- import path from 'node:path';
10
- import { StructuredTool } from '@langchain/core/tools';
11
- import { z } from 'zod';
12
- import { EVENT_TYPES } from '../types.js';
13
- import { filterDirectoryEntries, createFilterConfig, DEFAULT_FILTER_CONFIG, generateFilterStats } from '../filters.js';
14
- import { logger } from '../../../utils/logger.js';
15
- import { isPathWithinDirectory } from '../../../utils/paths.js';
16
- const execAsync = promisify(exec);
17
- /**
18
- * Basic file read tool - reads file contents
19
- */
20
- export class ReadFileTool extends StructuredTool {
21
- static name = 'read_file';
22
- name = ReadFileTool.name;
23
- description = 'Read the contents of a file from the filesystem';
24
- schema = z.object({
25
- filePath: z.string().describe('Path to the file to read'),
26
- });
27
- workingDirectory;
28
- constructor(workingDirectory) {
29
- super();
30
- this.workingDirectory = workingDirectory;
31
- }
32
- async _call({ filePath }) {
33
- try {
34
- // Resolve path relative to working directory
35
- const resolvedPath = path.resolve(this.workingDirectory, filePath);
36
- // Security check - ensure we're not escaping working directory
37
- if (!isPathWithinDirectory(this.workingDirectory, resolvedPath)) {
38
- throw new Error('Access denied: Path is outside working directory');
39
- }
40
- // Emit progress: starting file read
41
- emitToolProgress(this.name, {
42
- percentage: 10,
43
- operation: `Reading ${path.basename(filePath)}...`,
44
- details: `Opening file: ${filePath}`
45
- });
46
- // Check file stats for progress estimation
47
- const stats = await fs.stat(resolvedPath);
48
- const fileSize = stats.size;
49
- // Emit progress: file opened
50
- emitToolProgress(this.name, {
51
- percentage: 30,
52
- operation: `Reading ${path.basename(filePath)}...`,
53
- details: `File size: ${this.formatFileSize(fileSize)}`
54
- });
55
- // For large files, simulate progress by reading in chunks
56
- if (fileSize > 50000) { // 50KB threshold for showing progress
57
- let content = '';
58
- const chunkSize = 8192; // 8KB chunks
59
- const totalChunks = Math.ceil(fileSize / chunkSize);
60
- const fileHandle = await fs.open(resolvedPath, 'r');
61
- const buffer = Buffer.alloc(chunkSize);
62
- try {
63
- for (let i = 0; i < totalChunks; i++) {
64
- const { bytesRead } = await fileHandle.read(buffer, 0, chunkSize, i * chunkSize);
65
- content += buffer.subarray(0, bytesRead).toString('utf-8');
66
- const progress = Math.min(30 + Math.round((i + 1) / totalChunks * 60), 90);
67
- emitToolProgress(this.name, {
68
- percentage: progress,
69
- operation: `Reading ${path.basename(filePath)}...`,
70
- details: `${Math.round((i + 1) / totalChunks * 100)}% complete`
71
- });
72
- // Small delay for large files to show progress
73
- if (i % 10 === 0) {
74
- await new Promise(resolve => setTimeout(resolve, 1));
75
- }
76
- }
77
- }
78
- finally {
79
- await fileHandle.close();
80
- }
81
- // Final progress
82
- emitToolProgress(this.name, {
83
- percentage: 100,
84
- operation: `Completed reading ${path.basename(filePath)}`,
85
- details: `Read ${this.formatFileSize(fileSize)}`
86
- });
87
- return `File: ${filePath}\n\n${content}`;
88
- }
89
- else {
90
- // For small files, read normally but still show progress
91
- const content = await fs.readFile(resolvedPath, 'utf-8');
92
- emitToolProgress(this.name, {
93
- percentage: 100,
94
- operation: `Completed reading ${path.basename(filePath)}`,
95
- details: `Read ${this.formatFileSize(fileSize)}`
96
- });
97
- return `File: ${filePath}\n\n${content}`;
98
- }
99
- }
100
- catch (error) {
101
- return `Error reading file: ${error instanceof Error ? error.message : String(error)}`;
102
- }
103
- }
104
- formatFileSize(bytes) {
105
- if (bytes < 1024)
106
- return `${bytes} B`;
107
- if (bytes < 1024 * 1024)
108
- return `${(bytes / 1024).toFixed(1)} KB`;
109
- return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
110
- }
111
- }
112
- /**
113
- * Basic file write tool - writes content to a file
114
- */
115
- export class WriteFileTool extends StructuredTool {
116
- static name = 'write_file';
117
- name = WriteFileTool.name;
118
- description = 'Write content to a file in the filesystem';
119
- schema = z.object({
120
- filePath: z.string().describe('Path to the file to write'),
121
- content: z.string().describe('Content to write to the file'),
122
- });
123
- workingDirectory;
124
- constructor(workingDirectory) {
125
- super();
126
- this.workingDirectory = workingDirectory;
127
- }
128
- async _call({ filePath, content }) {
129
- try {
130
- // Resolve path relative to working directory
131
- const resolvedPath = path.resolve(this.workingDirectory, filePath);
132
- // Security check - ensure we're not escaping working directory
133
- if (!isPathWithinDirectory(this.workingDirectory, resolvedPath)) {
134
- throw new Error('Access denied: Path is outside working directory');
135
- }
136
- // Ensure directory exists
137
- const dir = path.dirname(resolvedPath);
138
- await fs.mkdir(dir, { recursive: true });
139
- await fs.writeFile(resolvedPath, content, 'utf-8');
140
- return `Successfully wrote ${content.length} characters to ${filePath}`;
141
- }
142
- catch (error) {
143
- return `Error writing file: ${error instanceof Error ? error.message : String(error)}`;
144
- }
145
- }
146
- }
147
- /**
148
- * Basic command execution tool - runs shell commands
149
- */
150
- export class ExecuteCommandTool extends StructuredTool {
151
- static name = 'execute_command';
152
- name = ExecuteCommandTool.name;
153
- description = 'Execute a shell command in the working directory';
154
- schema = z.object({
155
- command: z.string().describe('Shell command to execute'),
156
- });
157
- workingDirectory;
158
- timeout;
159
- constructor(workingDirectory, timeout = 300) {
160
- super();
161
- this.workingDirectory = workingDirectory;
162
- this.timeout = timeout * 1000; // Convert seconds to milliseconds
163
- }
164
- async _call({ command }) {
165
- try {
166
- // Basic security checks
167
- const dangerousCommands = ['rm -rf', 'sudo', 'chmod +x', 'curl', 'wget'];
168
- if (dangerousCommands.some(cmd => command.toLowerCase().includes(cmd))) {
169
- return `Error: Command rejected for security reasons: ${command}`;
170
- }
171
- // Emit progress: command starting
172
- emitToolProgress(this.name, {
173
- percentage: 10,
174
- operation: `Executing command...`,
175
- details: command.length > 50 ? `${command.substring(0, 47)}...` : command
176
- });
177
- // Start timer for progress estimation
178
- const startTime = Date.now();
179
- let progressInterval;
180
- // For long-running commands, simulate progress
181
- const estimatedTime = this.estimateCommandTime(command);
182
- if (estimatedTime > 2000) { // Only show progress for commands estimated > 2s
183
- progressInterval = setInterval(() => {
184
- const elapsed = Date.now() - startTime;
185
- const progress = Math.min(10 + Math.round((elapsed / estimatedTime) * 80), 90);
186
- emitToolProgress(this.name, {
187
- percentage: progress,
188
- operation: `Executing command...`,
189
- details: `Running for ${Math.round(elapsed / 1000)}s`,
190
- estimatedTimeRemaining: Math.max(0, estimatedTime - elapsed)
191
- });
192
- }, 1000);
193
- }
194
- try {
195
- const { stdout, stderr } = await execAsync(command, {
196
- cwd: this.workingDirectory,
197
- timeout: this.timeout, // Use configured timeout (default: 5 minutes)
198
- maxBuffer: 1024 * 1024 // 1MB output limit
199
- });
200
- // Clear interval and emit completion
201
- if (progressInterval) {
202
- clearInterval(progressInterval);
203
- }
204
- const executionTime = Date.now() - startTime;
205
- emitToolProgress(this.name, {
206
- percentage: 100,
207
- operation: `Command completed`,
208
- details: `Finished in ${executionTime}ms`
209
- });
210
- let result = '';
211
- if (stdout)
212
- result += `STDOUT:\n${stdout}\n`;
213
- if (stderr)
214
- result += `STDERR:\n${stderr}\n`;
215
- return result || 'Command executed successfully (no output)';
216
- }
217
- catch (error) {
218
- if (progressInterval) {
219
- clearInterval(progressInterval);
220
- }
221
- throw error;
222
- }
223
- }
224
- catch (error) {
225
- return `Error executing command: ${error instanceof Error ? error.message : String(error)}`;
226
- }
227
- }
228
- estimateCommandTime(command) {
229
- // Simple heuristics for command execution time estimation
230
- const lowerCommand = command.toLowerCase();
231
- if (lowerCommand.includes('npm install') || lowerCommand.includes('yarn install')) {
232
- return 15000; // 15s for package installs
233
- }
234
- if (lowerCommand.includes('npm run build') || lowerCommand.includes('yarn build')) {
235
- return 10000; // 10s for builds
236
- }
237
- if (lowerCommand.includes('git clone') || lowerCommand.includes('git pull')) {
238
- return 8000; // 8s for git operations
239
- }
240
- if (lowerCommand.includes('find') || lowerCommand.includes('grep -r')) {
241
- return 5000; // 5s for search operations
242
- }
243
- if (lowerCommand.includes('tar') || lowerCommand.includes('zip') || lowerCommand.includes('unzip')) {
244
- return 6000; // 6s for compression operations
245
- }
246
- return 2000; // Default 2s
247
- }
248
- }
249
- /**
250
- * Directory listing tool - lists files and directories with intelligent filtering
251
- */
252
- export class ListDirectoryTool extends StructuredTool {
253
- static name = 'list_directory';
254
- name = ListDirectoryTool.name;
255
- description = 'List files and directories in a given path, automatically filtering out common ignore patterns (node_modules, .git, build artifacts, etc.)';
256
- schema = z.object({
257
- directoryPath: z.string().optional().describe('Directory path to list (defaults to working directory)'),
258
- showAll: z.boolean().optional().describe('Show all files including normally filtered ones (default: false)'),
259
- includeHidden: z.boolean().optional().describe('Include hidden files and directories (default: false)'),
260
- });
261
- workingDirectory;
262
- filterConfig;
263
- constructor(workingDirectory, filterConfig) {
264
- super();
265
- this.workingDirectory = workingDirectory;
266
- this.filterConfig = filterConfig || DEFAULT_FILTER_CONFIG;
267
- }
268
- async _call({ directoryPath, showAll = false, includeHidden = false }) {
269
- try {
270
- const targetPath = directoryPath
271
- ? path.resolve(this.workingDirectory, directoryPath)
272
- : this.workingDirectory;
273
- // Security check
274
- if (!isPathWithinDirectory(this.workingDirectory, targetPath)) {
275
- throw new Error('Access denied: Path is outside working directory');
276
- }
277
- const entries = await fs.readdir(targetPath, { withFileTypes: true });
278
- // Convert to our format for filtering
279
- let directoryEntries = entries.map(entry => ({
280
- name: entry.name,
281
- isDirectory: entry.isDirectory()
282
- }));
283
- // Filter hidden files if not requested
284
- if (!includeHidden) {
285
- directoryEntries = directoryEntries.filter(entry => !entry.name.startsWith('.'));
286
- }
287
- // Store original count for statistics
288
- const originalEntries = [...directoryEntries];
289
- // Apply filtering if not showAll
290
- let filteredEntries = directoryEntries;
291
- let filterStats;
292
- if (!showAll) {
293
- const filterConfig = createFilterConfig({
294
- ...this.filterConfig,
295
- enabled: true
296
- });
297
- filteredEntries = filterDirectoryEntries(directoryEntries, filterConfig, directoryPath || '');
298
- filterStats = generateFilterStats(originalEntries, filteredEntries, filterConfig);
299
- }
300
- // Separate into files and directories
301
- const files = [];
302
- const directories = [];
303
- for (const entry of filteredEntries) {
304
- if (entry.isDirectory) {
305
- directories.push(`${entry.name}/`);
306
- }
307
- else {
308
- files.push(entry.name);
309
- }
310
- }
311
- // Build result string
312
- let result = `Directory: ${directoryPath || '.'}\n\n`;
313
- if (directories.length > 0) {
314
- result += 'Directories:\n';
315
- result += directories.map(dir => ` ${dir}`).join('\n') + '\n\n';
316
- }
317
- if (files.length > 0) {
318
- result += 'Files:\n';
319
- result += files.map(file => ` ${file}`).join('\n');
320
- }
321
- if (directories.length === 0 && files.length === 0) {
322
- result += 'Directory is empty';
323
- }
324
- // Add filtering summary if filtering was applied
325
- if (!showAll && filterStats && filterStats.ignoredEntries > 0) {
326
- result += `\n\n--- Filtered out ${filterStats.ignoredEntries} items ---`;
327
- result += `\nShowing ${filterStats.filteredEntries} of ${filterStats.totalEntries} total items`;
328
- result += `\nUse showAll: true to see all items`;
329
- }
330
- return result;
331
- }
332
- catch (error) {
333
- return `Error listing directory: ${error instanceof Error ? error.message : String(error)}`;
334
- }
335
- }
336
- }
337
- /**
338
- * Global tool event emitter - set during chatStream
339
- */
340
- let globalToolEventCallback = null;
341
- /**
342
- * Set the global tool event callback for the current execution
343
- */
344
- export function setGlobalToolEventCallback(callback) {
345
- globalToolEventCallback = callback;
346
- }
347
- /**
348
- * Emit a tool progress event using the global callback
349
- */
350
- export function emitToolProgress(toolName, progress) {
351
- if (globalToolEventCallback) {
352
- globalToolEventCallback({
353
- type: EVENT_TYPES.TOOL_CALL_PROGRESS,
354
- toolName,
355
- progress
356
- });
357
- }
358
- }
359
- /** Helper to conditionally log debug messages based on config */
360
- function debug(config, ...args) {
361
- if (config.debug) {
362
- logger.debug(...args);
363
- }
364
- }
365
- /**
366
- * Create system tools available to the CodeMie agent
367
- */
368
- export async function createSystemTools(config, getConversationHistory) {
369
- try {
370
- const tools = [
371
- new ReadFileTool(config.workingDirectory),
372
- new WriteFileTool(config.workingDirectory),
373
- new ListDirectoryTool(config.workingDirectory, config.directoryFilters),
374
- new ExecuteCommandTool(config.workingDirectory, config.timeout)
375
- ];
376
- // Assistant invocation tool (if conversation history getter provided)
377
- if (getConversationHistory) {
378
- try {
379
- const { InvokeAssistantTool } = await import('./assistant-invocation.js');
380
- tools.push(new InvokeAssistantTool(getConversationHistory));
381
- debug(config, 'Added assistant invocation tool');
382
- }
383
- catch (error) {
384
- debug(config, 'Assistant invocation tool not available:', error);
385
- }
386
- }
387
- // Planning and todo tools
388
- try {
389
- const { planningTools, initializeTodoStorage } = await import('./planning.js');
390
- // Initialize todo storage for this working directory
391
- initializeTodoStorage(config.workingDirectory, config.debug);
392
- tools.push(...planningTools);
393
- debug(config, `Added ${planningTools.length} planning tools`);
394
- debug(config, `Initialized todo storage for: ${config.workingDirectory}`);
395
- }
396
- catch (error) {
397
- debug(config, 'Planning tools not available:', error);
398
- }
399
- debug(config, `Created ${tools.length} total system tools`);
400
- return tools;
401
- }
402
- catch (error) {
403
- debug(config, 'Error creating system tools:', error);
404
- // Return empty array on error to allow agent to function
405
- return [];
406
- }
407
- }
408
- /**
409
- * Get available tool names and descriptions
410
- */
411
- export async function getToolSummary() {
412
- const { InvokeAssistantTool } = await import('./assistant-invocation.js');
413
- const { WriteSimpleTodosTool, ShowSimpleTodosTool } = await import('./planning.js');
414
- return [
415
- { name: ReadFileTool.name, description: 'Read the contents of a file from the filesystem' },
416
- { name: WriteFileTool.name, description: 'Write content to a file in the filesystem' },
417
- { name: ListDirectoryTool.name, description: 'List files and directories in a given path, automatically filtering out common ignore patterns (node_modules, .git, build artifacts, etc.)' },
418
- { name: ExecuteCommandTool.name, description: 'Execute a shell command in the working directory' },
419
- { name: InvokeAssistantTool.name, description: 'Invoke a registered CodeMie assistant for specialized help on specific topics' },
420
- { name: WriteSimpleTodosTool.name, description: 'Create or update a structured todo list for planning and progress tracking' },
421
- { name: ShowSimpleTodosTool.name, description: 'Display the current todo list with progress information' }
422
- ];
423
- }
424
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/agents/codemie-code/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,S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,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;IAC1E,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;IAEpF,OAAO;QACL,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE,iDAAiD,EAAE;QAC3F,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,2CAA2C,EAAE;QACtF,EAAE,IAAI,EAAE,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,4IAA4I,EAAE;QAC3L,EAAE,IAAI,EAAE,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,kDAAkD,EAAE;QAClG,EAAE,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,+EAA+E,EAAE;QAChI,EAAE,IAAI,EAAE,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,4EAA4E,EAAE;QAC9H,EAAE,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,yDAAyD,EAAE;KAC3G,CAAC;AACJ,CAAC"}
@@ -1,54 +0,0 @@
1
- /**
2
- * Planning Tools for CodeMie Agent
3
- *
4
- * Implementation of to_do management tools with persistent file storage
5
- */
6
- import { StructuredTool } from '@langchain/core/tools';
7
- import { z } from 'zod';
8
- import type { Todo, TodoUpdateEvent } from '../types.js';
9
- /**
10
- * Initialize to_do storage for the current working directory
11
- */
12
- export declare function initializeTodoStorage(workingDirectory: string, debug?: boolean): void;
13
- /**
14
- * Simple Write Todos Tool
15
- */
16
- export declare class WriteSimpleTodosTool extends StructuredTool {
17
- static readonly name = "write_todos";
18
- name: string;
19
- description: string;
20
- schema: z.ZodObject<{
21
- todos: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
22
- content: z.ZodString;
23
- status: z.ZodOptional<z.ZodEnum<{
24
- pending: "pending";
25
- completed: "completed";
26
- in_progress: "in_progress";
27
- }>>;
28
- }, z.core.$strip>>]>;
29
- }, z.core.$strip>;
30
- _call(input: {
31
- todos: any;
32
- }): Promise<string>;
33
- }
34
- /**
35
- * Show Todos Tool with Storage Information
36
- */
37
- export declare class ShowSimpleTodosTool extends StructuredTool {
38
- static readonly name = "show_todos";
39
- name: string;
40
- description: string;
41
- schema: z.ZodObject<{}, z.core.$strip>;
42
- _call(): Promise<string>;
43
- }
44
- export declare const planningTools: (WriteSimpleTodosTool | ShowSimpleTodosTool)[];
45
- export declare const writeTodos: WriteSimpleTodosTool;
46
- export declare const showTodos: ShowSimpleTodosTool;
47
- export declare class TodoStateManager {
48
- static addEventCallback(callback: (event: TodoUpdateEvent) => void): void;
49
- static removeEventCallback(callback: (event: TodoUpdateEvent) => void): void;
50
- static getCurrentTodos(): Todo[];
51
- static clearTodos(): Promise<void>;
52
- static getStorageInfo(): any;
53
- }
54
- //# sourceMappingURL=planning.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planning.d.ts","sourceRoot":"","sources":["../../../../src/agents/codemie-code/tools/planning.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAQzD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,IAAI,CAmCnF;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,cAAc;IACtD,MAAM,CAAC,QAAQ,CAAC,IAAI,iBAAiB;IACrC,IAAI,SAA6B;IACjC,WAAW,SAAgF;IAE3F,MAAM;;;;;;;;;sBASH;IAEG,KAAK,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM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