@defai.digital/ax-cli 4.4.6 → 4.4.10

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 (802) hide show
  1. package/bin/ax-cli +1 -5
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +158 -9
  4. package/dist/index.js.map +1 -1
  5. package/dist/setup.d.ts +27 -0
  6. package/dist/setup.d.ts.map +1 -0
  7. package/dist/setup.js +591 -0
  8. package/dist/setup.js.map +1 -0
  9. package/package.json +43 -135
  10. package/LICENSE +0 -22
  11. package/README.md +0 -387
  12. package/config-defaults/messages.yaml +0 -75
  13. package/config-defaults/models.yaml +0 -57
  14. package/config-defaults/prompts.yaml +0 -948
  15. package/config-defaults/settings.yaml +0 -157
  16. package/dist/agent/agent-executor.d.ts +0 -61
  17. package/dist/agent/agent-executor.js +0 -194
  18. package/dist/agent/agent-executor.js.map +0 -1
  19. package/dist/agent/agent-router.d.ts +0 -68
  20. package/dist/agent/agent-router.js +0 -242
  21. package/dist/agent/agent-router.js.map +0 -1
  22. package/dist/agent/context-manager.d.ts +0 -122
  23. package/dist/agent/context-manager.js +0 -406
  24. package/dist/agent/context-manager.js.map +0 -1
  25. package/dist/agent/core/index.d.ts +0 -8
  26. package/dist/agent/core/index.js +0 -9
  27. package/dist/agent/core/index.js.map +0 -1
  28. package/dist/agent/core/types.d.ts +0 -92
  29. package/dist/agent/core/types.js +0 -11
  30. package/dist/agent/core/types.js.map +0 -1
  31. package/dist/agent/dependency-resolver.d.ts +0 -90
  32. package/dist/agent/dependency-resolver.js +0 -366
  33. package/dist/agent/dependency-resolver.js.map +0 -1
  34. package/dist/agent/execution/index.d.ts +0 -9
  35. package/dist/agent/execution/index.js +0 -9
  36. package/dist/agent/execution/index.js.map +0 -1
  37. package/dist/agent/execution/tool-executor.d.ts +0 -93
  38. package/dist/agent/execution/tool-executor.js +0 -552
  39. package/dist/agent/execution/tool-executor.js.map +0 -1
  40. package/dist/agent/index.d.ts +0 -14
  41. package/dist/agent/index.js +0 -145
  42. package/dist/agent/index.js.map +0 -1
  43. package/dist/agent/llm-agent.d.ts +0 -368
  44. package/dist/agent/llm-agent.js +0 -1931
  45. package/dist/agent/llm-agent.js.map +0 -1
  46. package/dist/agent/loop-detector.d.ts +0 -72
  47. package/dist/agent/loop-detector.js +0 -335
  48. package/dist/agent/loop-detector.js.map +0 -1
  49. package/dist/agent/parallel-tools.d.ts +0 -69
  50. package/dist/agent/parallel-tools.js +0 -188
  51. package/dist/agent/parallel-tools.js.map +0 -1
  52. package/dist/agent/planning/index.d.ts +0 -9
  53. package/dist/agent/planning/index.js +0 -9
  54. package/dist/agent/planning/index.js.map +0 -1
  55. package/dist/agent/planning/plan-executor.d.ts +0 -79
  56. package/dist/agent/planning/plan-executor.js +0 -240
  57. package/dist/agent/planning/plan-executor.js.map +0 -1
  58. package/dist/agent/progress-tracker.d.ts +0 -94
  59. package/dist/agent/progress-tracker.js +0 -225
  60. package/dist/agent/progress-tracker.js.map +0 -1
  61. package/dist/agent/specialized/analysis-agent.d.ts +0 -11
  62. package/dist/agent/specialized/analysis-agent.js +0 -24
  63. package/dist/agent/specialized/analysis-agent.js.map +0 -1
  64. package/dist/agent/specialized/debug-agent.d.ts +0 -11
  65. package/dist/agent/specialized/debug-agent.js +0 -46
  66. package/dist/agent/specialized/debug-agent.js.map +0 -1
  67. package/dist/agent/specialized/documentation-agent.d.ts +0 -11
  68. package/dist/agent/specialized/documentation-agent.js +0 -24
  69. package/dist/agent/specialized/documentation-agent.js.map +0 -1
  70. package/dist/agent/specialized/index.d.ts +0 -11
  71. package/dist/agent/specialized/index.js +0 -12
  72. package/dist/agent/specialized/index.js.map +0 -1
  73. package/dist/agent/specialized/performance-agent.d.ts +0 -11
  74. package/dist/agent/specialized/performance-agent.js +0 -24
  75. package/dist/agent/specialized/performance-agent.js.map +0 -1
  76. package/dist/agent/specialized/refactoring-agent.d.ts +0 -11
  77. package/dist/agent/specialized/refactoring-agent.js +0 -24
  78. package/dist/agent/specialized/refactoring-agent.js.map +0 -1
  79. package/dist/agent/specialized/testing-agent.d.ts +0 -11
  80. package/dist/agent/specialized/testing-agent.js +0 -24
  81. package/dist/agent/specialized/testing-agent.js.map +0 -1
  82. package/dist/agent/status-reporter.d.ts +0 -114
  83. package/dist/agent/status-reporter.js +0 -335
  84. package/dist/agent/status-reporter.js.map +0 -1
  85. package/dist/agent/streaming/index.d.ts +0 -9
  86. package/dist/agent/streaming/index.js +0 -9
  87. package/dist/agent/streaming/index.js.map +0 -1
  88. package/dist/agent/streaming/stream-handler.d.ts +0 -62
  89. package/dist/agent/streaming/stream-handler.js +0 -217
  90. package/dist/agent/streaming/stream-handler.js.map +0 -1
  91. package/dist/agent/subagent-orchestrator.d.ts +0 -166
  92. package/dist/agent/subagent-orchestrator.js +0 -487
  93. package/dist/agent/subagent-orchestrator.js.map +0 -1
  94. package/dist/agent/subagent-types.d.ts +0 -261
  95. package/dist/agent/subagent-types.js +0 -257
  96. package/dist/agent/subagent-types.js.map +0 -1
  97. package/dist/agent/subagent.d.ts +0 -116
  98. package/dist/agent/subagent.js +0 -507
  99. package/dist/agent/subagent.js.map +0 -1
  100. package/dist/checkpoint/index.d.ts +0 -9
  101. package/dist/checkpoint/index.js +0 -11
  102. package/dist/checkpoint/index.js.map +0 -1
  103. package/dist/checkpoint/manager.d.ts +0 -101
  104. package/dist/checkpoint/manager.js +0 -407
  105. package/dist/checkpoint/manager.js.map +0 -1
  106. package/dist/checkpoint/storage.d.ts +0 -39
  107. package/dist/checkpoint/storage.js +0 -350
  108. package/dist/checkpoint/storage.js.map +0 -1
  109. package/dist/checkpoint/types.d.ts +0 -111
  110. package/dist/checkpoint/types.js +0 -17
  111. package/dist/checkpoint/types.js.map +0 -1
  112. package/dist/commands/cache.d.ts +0 -7
  113. package/dist/commands/cache.js +0 -284
  114. package/dist/commands/cache.js.map +0 -1
  115. package/dist/commands/custom-commands.d.ts +0 -77
  116. package/dist/commands/custom-commands.js +0 -251
  117. package/dist/commands/custom-commands.js.map +0 -1
  118. package/dist/commands/design.d.ts +0 -18
  119. package/dist/commands/design.js +0 -511
  120. package/dist/commands/design.js.map +0 -1
  121. package/dist/commands/doctor.d.ts +0 -6
  122. package/dist/commands/doctor.js +0 -773
  123. package/dist/commands/doctor.js.map +0 -1
  124. package/dist/commands/frontend.d.ts +0 -9
  125. package/dist/commands/frontend.js +0 -645
  126. package/dist/commands/frontend.js.map +0 -1
  127. package/dist/commands/init/wizard.d.ts +0 -55
  128. package/dist/commands/init/wizard.js +0 -189
  129. package/dist/commands/init/wizard.js.map +0 -1
  130. package/dist/commands/init.d.ts +0 -8
  131. package/dist/commands/init.js +0 -195
  132. package/dist/commands/init.js.map +0 -1
  133. package/dist/commands/mcp-migrate.d.ts +0 -9
  134. package/dist/commands/mcp-migrate.js +0 -175
  135. package/dist/commands/mcp-migrate.js.map +0 -1
  136. package/dist/commands/mcp.d.ts +0 -2
  137. package/dist/commands/mcp.js +0 -1292
  138. package/dist/commands/mcp.js.map +0 -1
  139. package/dist/commands/memory.d.ts +0 -6
  140. package/dist/commands/memory.js +0 -555
  141. package/dist/commands/memory.js.map +0 -1
  142. package/dist/commands/models.d.ts +0 -5
  143. package/dist/commands/models.js +0 -213
  144. package/dist/commands/models.js.map +0 -1
  145. package/dist/commands/plan.d.ts +0 -43
  146. package/dist/commands/plan.js +0 -362
  147. package/dist/commands/plan.js.map +0 -1
  148. package/dist/commands/rewind.d.ts +0 -19
  149. package/dist/commands/rewind.js +0 -221
  150. package/dist/commands/rewind.js.map +0 -1
  151. package/dist/commands/setup.d.ts +0 -14
  152. package/dist/commands/setup.js +0 -733
  153. package/dist/commands/setup.js.map +0 -1
  154. package/dist/commands/status.d.ts +0 -7
  155. package/dist/commands/status.js +0 -437
  156. package/dist/commands/status.js.map +0 -1
  157. package/dist/commands/templates.d.ts +0 -5
  158. package/dist/commands/templates.js +0 -245
  159. package/dist/commands/templates.js.map +0 -1
  160. package/dist/commands/update.d.ts +0 -49
  161. package/dist/commands/update.js +0 -366
  162. package/dist/commands/update.js.map +0 -1
  163. package/dist/commands/usage.d.ts +0 -8
  164. package/dist/commands/usage.js +0 -264
  165. package/dist/commands/usage.js.map +0 -1
  166. package/dist/commands/vscode.d.ts +0 -7
  167. package/dist/commands/vscode.js +0 -419
  168. package/dist/commands/vscode.js.map +0 -1
  169. package/dist/constants.d.ts +0 -236
  170. package/dist/constants.js +0 -288
  171. package/dist/constants.js.map +0 -1
  172. package/dist/design/figma-alias.d.ts +0 -170
  173. package/dist/design/figma-alias.js +0 -577
  174. package/dist/design/figma-alias.js.map +0 -1
  175. package/dist/design/figma-audit.d.ts +0 -40
  176. package/dist/design/figma-audit.js +0 -383
  177. package/dist/design/figma-audit.js.map +0 -1
  178. package/dist/design/figma-client.d.ts +0 -131
  179. package/dist/design/figma-client.js +0 -369
  180. package/dist/design/figma-client.js.map +0 -1
  181. package/dist/design/figma-map.d.ts +0 -29
  182. package/dist/design/figma-map.js +0 -346
  183. package/dist/design/figma-map.js.map +0 -1
  184. package/dist/design/figma-tokens.d.ts +0 -73
  185. package/dist/design/figma-tokens.js +0 -448
  186. package/dist/design/figma-tokens.js.map +0 -1
  187. package/dist/design/index.d.ts +0 -13
  188. package/dist/design/index.js +0 -20
  189. package/dist/design/index.js.map +0 -1
  190. package/dist/design/types.d.ts +0 -98
  191. package/dist/design/types.js +0 -9
  192. package/dist/design/types.js.map +0 -1
  193. package/dist/hooks/hook-runner.d.ts +0 -142
  194. package/dist/hooks/hook-runner.js +0 -436
  195. package/dist/hooks/hook-runner.js.map +0 -1
  196. package/dist/hooks/index.d.ts +0 -9
  197. package/dist/hooks/index.js +0 -10
  198. package/dist/hooks/index.js.map +0 -1
  199. package/dist/hooks/manager.d.ts +0 -84
  200. package/dist/hooks/manager.js +0 -348
  201. package/dist/hooks/manager.js.map +0 -1
  202. package/dist/hooks/types.d.ts +0 -134
  203. package/dist/hooks/types.js +0 -9
  204. package/dist/hooks/types.js.map +0 -1
  205. package/dist/index.d.ts +0 -2
  206. package/dist/ipc/index.d.ts +0 -9
  207. package/dist/ipc/index.js +0 -10
  208. package/dist/ipc/index.js.map +0 -1
  209. package/dist/ipc/vscode-client.d.ts +0 -200
  210. package/dist/ipc/vscode-client.js +0 -495
  211. package/dist/ipc/vscode-client.js.map +0 -1
  212. package/dist/llm/client.d.ts +0 -205
  213. package/dist/llm/client.js +0 -735
  214. package/dist/llm/client.js.map +0 -1
  215. package/dist/llm/tools.d.ts +0 -102
  216. package/dist/llm/tools.js +0 -275
  217. package/dist/llm/tools.js.map +0 -1
  218. package/dist/llm/types.d.ts +0 -428
  219. package/dist/llm/types.js +0 -194
  220. package/dist/llm/types.js.map +0 -1
  221. package/dist/mcp/automatosx-auto-discovery.d.ts +0 -66
  222. package/dist/mcp/automatosx-auto-discovery.js +0 -169
  223. package/dist/mcp/automatosx-auto-discovery.js.map +0 -1
  224. package/dist/mcp/automatosx-loader.d.ts +0 -99
  225. package/dist/mcp/automatosx-loader.js +0 -250
  226. package/dist/mcp/automatosx-loader.js.map +0 -1
  227. package/dist/mcp/cancellation.d.ts +0 -182
  228. package/dist/mcp/cancellation.js +0 -275
  229. package/dist/mcp/cancellation.js.map +0 -1
  230. package/dist/mcp/client-v2.d.ts +0 -500
  231. package/dist/mcp/client-v2.js +0 -1433
  232. package/dist/mcp/client-v2.js.map +0 -1
  233. package/dist/mcp/client.d.ts +0 -170
  234. package/dist/mcp/client.js +0 -232
  235. package/dist/mcp/client.js.map +0 -1
  236. package/dist/mcp/config-detector.d.ts +0 -90
  237. package/dist/mcp/config-detector.js +0 -250
  238. package/dist/mcp/config-detector.js.map +0 -1
  239. package/dist/mcp/config-migrator.d.ts +0 -68
  240. package/dist/mcp/config-migrator.js +0 -291
  241. package/dist/mcp/config-migrator.js.map +0 -1
  242. package/dist/mcp/config.d.ts +0 -24
  243. package/dist/mcp/config.js +0 -273
  244. package/dist/mcp/config.js.map +0 -1
  245. package/dist/mcp/constants.d.ts +0 -66
  246. package/dist/mcp/constants.js +0 -85
  247. package/dist/mcp/constants.js.map +0 -1
  248. package/dist/mcp/content-length-transport.d.ts +0 -106
  249. package/dist/mcp/content-length-transport.js +0 -413
  250. package/dist/mcp/content-length-transport.js.map +0 -1
  251. package/dist/mcp/debug.d.ts +0 -211
  252. package/dist/mcp/debug.js +0 -404
  253. package/dist/mcp/debug.js.map +0 -1
  254. package/dist/mcp/error-formatter.d.ts +0 -40
  255. package/dist/mcp/error-formatter.js +0 -207
  256. package/dist/mcp/error-formatter.js.map +0 -1
  257. package/dist/mcp/error-remediation.d.ts +0 -45
  258. package/dist/mcp/error-remediation.js +0 -291
  259. package/dist/mcp/error-remediation.js.map +0 -1
  260. package/dist/mcp/health.d.ts +0 -120
  261. package/dist/mcp/health.js +0 -267
  262. package/dist/mcp/health.js.map +0 -1
  263. package/dist/mcp/index.d.ts +0 -56
  264. package/dist/mcp/index.js +0 -89
  265. package/dist/mcp/index.js.map +0 -1
  266. package/dist/mcp/invariants.d.ts +0 -141
  267. package/dist/mcp/invariants.js +0 -243
  268. package/dist/mcp/invariants.js.map +0 -1
  269. package/dist/mcp/mutex-safe.d.ts +0 -151
  270. package/dist/mcp/mutex-safe.js +0 -260
  271. package/dist/mcp/mutex-safe.js.map +0 -1
  272. package/dist/mcp/progress.d.ts +0 -155
  273. package/dist/mcp/progress.js +0 -252
  274. package/dist/mcp/progress.js.map +0 -1
  275. package/dist/mcp/prompts.d.ts +0 -68
  276. package/dist/mcp/prompts.js +0 -129
  277. package/dist/mcp/prompts.js.map +0 -1
  278. package/dist/mcp/provider-mcp-loader.d.ts +0 -130
  279. package/dist/mcp/provider-mcp-loader.js +0 -292
  280. package/dist/mcp/provider-mcp-loader.js.map +0 -1
  281. package/dist/mcp/reconnection.d.ts +0 -101
  282. package/dist/mcp/reconnection.js +0 -253
  283. package/dist/mcp/reconnection.js.map +0 -1
  284. package/dist/mcp/registry.d.ts +0 -75
  285. package/dist/mcp/registry.js +0 -276
  286. package/dist/mcp/registry.js.map +0 -1
  287. package/dist/mcp/resources.d.ts +0 -58
  288. package/dist/mcp/resources.js +0 -144
  289. package/dist/mcp/resources.js.map +0 -1
  290. package/dist/mcp/schema-validator.d.ts +0 -82
  291. package/dist/mcp/schema-validator.js +0 -161
  292. package/dist/mcp/schema-validator.js.map +0 -1
  293. package/dist/mcp/ssrf-protection.d.ts +0 -86
  294. package/dist/mcp/ssrf-protection.js +0 -311
  295. package/dist/mcp/ssrf-protection.js.map +0 -1
  296. package/dist/mcp/subscriptions.d.ts +0 -168
  297. package/dist/mcp/subscriptions.js +0 -248
  298. package/dist/mcp/subscriptions.js.map +0 -1
  299. package/dist/mcp/templates.d.ts +0 -52
  300. package/dist/mcp/templates.js +0 -627
  301. package/dist/mcp/templates.js.map +0 -1
  302. package/dist/mcp/transports.d.ts +0 -80
  303. package/dist/mcp/transports.js +0 -237
  304. package/dist/mcp/transports.js.map +0 -1
  305. package/dist/mcp/type-safety.d.ts +0 -225
  306. package/dist/mcp/type-safety.js +0 -237
  307. package/dist/mcp/type-safety.js.map +0 -1
  308. package/dist/mcp/validation.d.ts +0 -29
  309. package/dist/mcp/validation.js +0 -339
  310. package/dist/mcp/validation.js.map +0 -1
  311. package/dist/mcp/zai-detector.d.ts +0 -63
  312. package/dist/mcp/zai-detector.js +0 -193
  313. package/dist/mcp/zai-detector.js.map +0 -1
  314. package/dist/mcp/zai-templates.d.ts +0 -90
  315. package/dist/mcp/zai-templates.js +0 -157
  316. package/dist/mcp/zai-templates.js.map +0 -1
  317. package/dist/memory/context-generator.d.ts +0 -84
  318. package/dist/memory/context-generator.js +0 -546
  319. package/dist/memory/context-generator.js.map +0 -1
  320. package/dist/memory/context-injector.d.ts +0 -97
  321. package/dist/memory/context-injector.js +0 -159
  322. package/dist/memory/context-injector.js.map +0 -1
  323. package/dist/memory/context-store.d.ts +0 -103
  324. package/dist/memory/context-store.js +0 -264
  325. package/dist/memory/context-store.js.map +0 -1
  326. package/dist/memory/index.d.ts +0 -43
  327. package/dist/memory/index.js +0 -49
  328. package/dist/memory/index.js.map +0 -1
  329. package/dist/memory/provider-context-store.d.ts +0 -127
  330. package/dist/memory/provider-context-store.js +0 -385
  331. package/dist/memory/provider-context-store.js.map +0 -1
  332. package/dist/memory/schemas.d.ts +0 -118
  333. package/dist/memory/schemas.js +0 -106
  334. package/dist/memory/schemas.js.map +0 -1
  335. package/dist/memory/stats-collector.d.ts +0 -73
  336. package/dist/memory/stats-collector.js +0 -170
  337. package/dist/memory/stats-collector.js.map +0 -1
  338. package/dist/memory/types.d.ts +0 -177
  339. package/dist/memory/types.js +0 -73
  340. package/dist/memory/types.js.map +0 -1
  341. package/dist/permissions/index.d.ts +0 -6
  342. package/dist/permissions/index.js +0 -7
  343. package/dist/permissions/index.js.map +0 -1
  344. package/dist/permissions/permission-manager.d.ts +0 -149
  345. package/dist/permissions/permission-manager.js +0 -410
  346. package/dist/permissions/permission-manager.js.map +0 -1
  347. package/dist/planner/dependency-resolver.d.ts +0 -72
  348. package/dist/planner/dependency-resolver.js +0 -272
  349. package/dist/planner/dependency-resolver.js.map +0 -1
  350. package/dist/planner/index.d.ts +0 -12
  351. package/dist/planner/index.js +0 -28
  352. package/dist/planner/index.js.map +0 -1
  353. package/dist/planner/plan-generator.d.ts +0 -74
  354. package/dist/planner/plan-generator.js +0 -244
  355. package/dist/planner/plan-generator.js.map +0 -1
  356. package/dist/planner/plan-storage.d.ts +0 -113
  357. package/dist/planner/plan-storage.js +0 -398
  358. package/dist/planner/plan-storage.js.map +0 -1
  359. package/dist/planner/prompts/planning-prompt.d.ts +0 -62
  360. package/dist/planner/prompts/planning-prompt.js +0 -414
  361. package/dist/planner/prompts/planning-prompt.js.map +0 -1
  362. package/dist/planner/task-planner.d.ts +0 -139
  363. package/dist/planner/task-planner.js +0 -532
  364. package/dist/planner/task-planner.js.map +0 -1
  365. package/dist/planner/token-estimator.d.ts +0 -63
  366. package/dist/planner/token-estimator.js +0 -295
  367. package/dist/planner/token-estimator.js.map +0 -1
  368. package/dist/planner/types.d.ts +0 -425
  369. package/dist/planner/types.js +0 -213
  370. package/dist/planner/types.js.map +0 -1
  371. package/dist/provider/config.d.ts +0 -227
  372. package/dist/provider/config.js +0 -430
  373. package/dist/provider/config.js.map +0 -1
  374. package/dist/schemas/api-schemas.d.ts +0 -45
  375. package/dist/schemas/api-schemas.js +0 -129
  376. package/dist/schemas/api-schemas.js.map +0 -1
  377. package/dist/schemas/confirmation-schemas.d.ts +0 -39
  378. package/dist/schemas/confirmation-schemas.js +0 -48
  379. package/dist/schemas/confirmation-schemas.js.map +0 -1
  380. package/dist/schemas/index-unified.d.ts +0 -12
  381. package/dist/schemas/index-unified.js +0 -17
  382. package/dist/schemas/index-unified.js.map +0 -1
  383. package/dist/schemas/index.d.ts +0 -83
  384. package/dist/schemas/index.js +0 -139
  385. package/dist/schemas/index.js.map +0 -1
  386. package/dist/schemas/settings-schemas.d.ts +0 -186
  387. package/dist/schemas/settings-schemas.js +0 -324
  388. package/dist/schemas/settings-schemas.js.map +0 -1
  389. package/dist/schemas/tool-schemas.d.ts +0 -127
  390. package/dist/schemas/tool-schemas.js +0 -84
  391. package/dist/schemas/tool-schemas.js.map +0 -1
  392. package/dist/schemas/yaml-schemas.d.ts +0 -231
  393. package/dist/schemas/yaml-schemas.js +0 -199
  394. package/dist/schemas/yaml-schemas.js.map +0 -1
  395. package/dist/sdk/errors.d.ts +0 -100
  396. package/dist/sdk/errors.js +0 -138
  397. package/dist/sdk/errors.js.map +0 -1
  398. package/dist/sdk/index.d.ts +0 -901
  399. package/dist/sdk/index.js +0 -1272
  400. package/dist/sdk/index.js.map +0 -1
  401. package/dist/sdk/progress-reporter.d.ts +0 -123
  402. package/dist/sdk/progress-reporter.js +0 -220
  403. package/dist/sdk/progress-reporter.js.map +0 -1
  404. package/dist/sdk/testing.d.ts +0 -427
  405. package/dist/sdk/testing.js +0 -725
  406. package/dist/sdk/testing.js.map +0 -1
  407. package/dist/sdk/tool-registry.d.ts +0 -194
  408. package/dist/sdk/tool-registry.js +0 -326
  409. package/dist/sdk/tool-registry.js.map +0 -1
  410. package/dist/sdk/types.d.ts +0 -53
  411. package/dist/sdk/types.js +0 -8
  412. package/dist/sdk/types.js.map +0 -1
  413. package/dist/sdk/unified-logger.d.ts +0 -173
  414. package/dist/sdk/unified-logger.js +0 -327
  415. package/dist/sdk/unified-logger.js.map +0 -1
  416. package/dist/sdk/version.d.ts +0 -163
  417. package/dist/sdk/version.js +0 -205
  418. package/dist/sdk/version.js.map +0 -1
  419. package/dist/tools/ask-user.d.ts +0 -126
  420. package/dist/tools/ask-user.js +0 -290
  421. package/dist/tools/ask-user.js.map +0 -1
  422. package/dist/tools/ax-agent.d.ts +0 -71
  423. package/dist/tools/ax-agent.js +0 -283
  424. package/dist/tools/ax-agent.js.map +0 -1
  425. package/dist/tools/bash-output.d.ts +0 -25
  426. package/dist/tools/bash-output.js +0 -146
  427. package/dist/tools/bash-output.js.map +0 -1
  428. package/dist/tools/bash.d.ts +0 -67
  429. package/dist/tools/bash.js +0 -522
  430. package/dist/tools/bash.js.map +0 -1
  431. package/dist/tools/confirmation-tool.d.ts +0 -16
  432. package/dist/tools/confirmation-tool.js +0 -76
  433. package/dist/tools/confirmation-tool.js.map +0 -1
  434. package/dist/tools/definitions/ask-user.d.ts +0 -8
  435. package/dist/tools/definitions/ask-user.js +0 -168
  436. package/dist/tools/definitions/ask-user.js.map +0 -1
  437. package/dist/tools/definitions/ax-agent.d.ts +0 -8
  438. package/dist/tools/definitions/ax-agent.js +0 -276
  439. package/dist/tools/definitions/ax-agent.js.map +0 -1
  440. package/dist/tools/definitions/bash-output.d.ts +0 -7
  441. package/dist/tools/definitions/bash-output.js +0 -78
  442. package/dist/tools/definitions/bash-output.js.map +0 -1
  443. package/dist/tools/definitions/bash.d.ts +0 -8
  444. package/dist/tools/definitions/bash.js +0 -152
  445. package/dist/tools/definitions/bash.js.map +0 -1
  446. package/dist/tools/definitions/create-file.d.ts +0 -7
  447. package/dist/tools/definitions/create-file.js +0 -129
  448. package/dist/tools/definitions/create-file.js.map +0 -1
  449. package/dist/tools/definitions/design.d.ts +0 -12
  450. package/dist/tools/definitions/design.js +0 -368
  451. package/dist/tools/definitions/design.js.map +0 -1
  452. package/dist/tools/definitions/index.d.ts +0 -49
  453. package/dist/tools/definitions/index.js +0 -87
  454. package/dist/tools/definitions/index.js.map +0 -1
  455. package/dist/tools/definitions/multi-edit.d.ts +0 -7
  456. package/dist/tools/definitions/multi-edit.js +0 -123
  457. package/dist/tools/definitions/multi-edit.js.map +0 -1
  458. package/dist/tools/definitions/search.d.ts +0 -7
  459. package/dist/tools/definitions/search.js +0 -159
  460. package/dist/tools/definitions/search.js.map +0 -1
  461. package/dist/tools/definitions/str-replace-editor.d.ts +0 -7
  462. package/dist/tools/definitions/str-replace-editor.js +0 -145
  463. package/dist/tools/definitions/str-replace-editor.js.map +0 -1
  464. package/dist/tools/definitions/todo.d.ts +0 -8
  465. package/dist/tools/definitions/todo.js +0 -261
  466. package/dist/tools/definitions/todo.js.map +0 -1
  467. package/dist/tools/definitions/view-file.d.ts +0 -7
  468. package/dist/tools/definitions/view-file.js +0 -111
  469. package/dist/tools/definitions/view-file.js.map +0 -1
  470. package/dist/tools/design-tool.d.ts +0 -68
  471. package/dist/tools/design-tool.js +0 -299
  472. package/dist/tools/design-tool.js.map +0 -1
  473. package/dist/tools/format-generators.d.ts +0 -62
  474. package/dist/tools/format-generators.js +0 -291
  475. package/dist/tools/format-generators.js.map +0 -1
  476. package/dist/tools/index.d.ts +0 -8
  477. package/dist/tools/index.js +0 -11
  478. package/dist/tools/index.js.map +0 -1
  479. package/dist/tools/priority-registry.d.ts +0 -124
  480. package/dist/tools/priority-registry.js +0 -401
  481. package/dist/tools/priority-registry.js.map +0 -1
  482. package/dist/tools/priority.d.ts +0 -158
  483. package/dist/tools/priority.js +0 -350
  484. package/dist/tools/priority.js.map +0 -1
  485. package/dist/tools/registry.d.ts +0 -146
  486. package/dist/tools/registry.js +0 -171
  487. package/dist/tools/registry.js.map +0 -1
  488. package/dist/tools/search.d.ts +0 -85
  489. package/dist/tools/search.js +0 -430
  490. package/dist/tools/search.js.map +0 -1
  491. package/dist/tools/text-editor.d.ts +0 -87
  492. package/dist/tools/text-editor.js +0 -1369
  493. package/dist/tools/text-editor.js.map +0 -1
  494. package/dist/tools/todo-tool.d.ts +0 -20
  495. package/dist/tools/todo-tool.js +0 -186
  496. package/dist/tools/todo-tool.js.map +0 -1
  497. package/dist/tools/types.d.ts +0 -175
  498. package/dist/tools/types.js +0 -11
  499. package/dist/tools/types.js.map +0 -1
  500. package/dist/types/index.d.ts +0 -30
  501. package/dist/types/index.js +0 -2
  502. package/dist/types/index.js.map +0 -1
  503. package/dist/types/project-analysis.d.ts +0 -84
  504. package/dist/types/project-analysis.js +0 -5
  505. package/dist/types/project-analysis.js.map +0 -1
  506. package/dist/types/template.d.ts +0 -53
  507. package/dist/types/template.js +0 -5
  508. package/dist/types/template.js.map +0 -1
  509. package/dist/ui/app.d.ts +0 -7
  510. package/dist/ui/app.js +0 -102
  511. package/dist/ui/app.js.map +0 -1
  512. package/dist/ui/components/api-key-input.d.ts +0 -7
  513. package/dist/ui/components/api-key-input.js +0 -92
  514. package/dist/ui/components/api-key-input.js.map +0 -1
  515. package/dist/ui/components/chat-history.d.ts +0 -12
  516. package/dist/ui/components/chat-history.js +0 -391
  517. package/dist/ui/components/chat-history.js.map +0 -1
  518. package/dist/ui/components/chat-input.d.ts +0 -13
  519. package/dist/ui/components/chat-input.js +0 -179
  520. package/dist/ui/components/chat-input.js.map +0 -1
  521. package/dist/ui/components/chat-interface.d.ts +0 -11
  522. package/dist/ui/components/chat-interface.js +0 -830
  523. package/dist/ui/components/chat-interface.js.map +0 -1
  524. package/dist/ui/components/collapsible-tool-result.d.ts +0 -42
  525. package/dist/ui/components/collapsible-tool-result.js +0 -216
  526. package/dist/ui/components/collapsible-tool-result.js.map +0 -1
  527. package/dist/ui/components/command-suggestions.d.ts +0 -29
  528. package/dist/ui/components/command-suggestions.js +0 -88
  529. package/dist/ui/components/command-suggestions.js.map +0 -1
  530. package/dist/ui/components/confirmation-dialog.d.ts +0 -11
  531. package/dist/ui/components/confirmation-dialog.js +0 -100
  532. package/dist/ui/components/confirmation-dialog.js.map +0 -1
  533. package/dist/ui/components/context-breakdown.d.ts +0 -23
  534. package/dist/ui/components/context-breakdown.js +0 -124
  535. package/dist/ui/components/context-breakdown.js.map +0 -1
  536. package/dist/ui/components/diff-renderer.d.ts +0 -13
  537. package/dist/ui/components/diff-renderer.js +0 -192
  538. package/dist/ui/components/diff-renderer.js.map +0 -1
  539. package/dist/ui/components/index.d.ts +0 -18
  540. package/dist/ui/components/index.js +0 -20
  541. package/dist/ui/components/index.js.map +0 -1
  542. package/dist/ui/components/keyboard-help.d.ts +0 -17
  543. package/dist/ui/components/keyboard-help.js +0 -122
  544. package/dist/ui/components/keyboard-help.js.map +0 -1
  545. package/dist/ui/components/keyboard-hints.d.ts +0 -35
  546. package/dist/ui/components/keyboard-hints.js +0 -142
  547. package/dist/ui/components/keyboard-hints.js.map +0 -1
  548. package/dist/ui/components/loading-spinner.d.ts +0 -9
  549. package/dist/ui/components/loading-spinner.js +0 -120
  550. package/dist/ui/components/loading-spinner.js.map +0 -1
  551. package/dist/ui/components/mcp-dashboard.d.ts +0 -15
  552. package/dist/ui/components/mcp-dashboard.js +0 -520
  553. package/dist/ui/components/mcp-dashboard.js.map +0 -1
  554. package/dist/ui/components/mcp-status.d.ts +0 -5
  555. package/dist/ui/components/mcp-status.js +0 -58
  556. package/dist/ui/components/mcp-status.js.map +0 -1
  557. package/dist/ui/components/model-selection.d.ts +0 -12
  558. package/dist/ui/components/model-selection.js +0 -17
  559. package/dist/ui/components/model-selection.js.map +0 -1
  560. package/dist/ui/components/phase-progress.d.ts +0 -21
  561. package/dist/ui/components/phase-progress.js +0 -185
  562. package/dist/ui/components/phase-progress.js.map +0 -1
  563. package/dist/ui/components/question-dialog.d.ts +0 -17
  564. package/dist/ui/components/question-dialog.js +0 -181
  565. package/dist/ui/components/question-dialog.js.map +0 -1
  566. package/dist/ui/components/quick-actions.d.ts +0 -12
  567. package/dist/ui/components/quick-actions.js +0 -171
  568. package/dist/ui/components/quick-actions.js.map +0 -1
  569. package/dist/ui/components/reasoning-display.d.ts +0 -36
  570. package/dist/ui/components/reasoning-display.js +0 -46
  571. package/dist/ui/components/reasoning-display.js.map +0 -1
  572. package/dist/ui/components/status-bar.d.ts +0 -47
  573. package/dist/ui/components/status-bar.js +0 -310
  574. package/dist/ui/components/status-bar.js.map +0 -1
  575. package/dist/ui/components/subagent-monitor.d.ts +0 -41
  576. package/dist/ui/components/subagent-monitor.js +0 -122
  577. package/dist/ui/components/subagent-monitor.js.map +0 -1
  578. package/dist/ui/components/toast-notification.d.ts +0 -197
  579. package/dist/ui/components/toast-notification.js +0 -190
  580. package/dist/ui/components/toast-notification.js.map +0 -1
  581. package/dist/ui/components/tool-group-display.d.ts +0 -19
  582. package/dist/ui/components/tool-group-display.js +0 -222
  583. package/dist/ui/components/tool-group-display.js.map +0 -1
  584. package/dist/ui/components/virtualized-chat-history.d.ts +0 -33
  585. package/dist/ui/components/virtualized-chat-history.js +0 -182
  586. package/dist/ui/components/virtualized-chat-history.js.map +0 -1
  587. package/dist/ui/components/welcome-panel.d.ts +0 -11
  588. package/dist/ui/components/welcome-panel.js +0 -225
  589. package/dist/ui/components/welcome-panel.js.map +0 -1
  590. package/dist/ui/hooks/use-chat-reducer.d.ts +0 -69
  591. package/dist/ui/hooks/use-chat-reducer.js +0 -118
  592. package/dist/ui/hooks/use-chat-reducer.js.map +0 -1
  593. package/dist/ui/hooks/use-enhanced-input.d.ts +0 -53
  594. package/dist/ui/hooks/use-enhanced-input.js +0 -1275
  595. package/dist/ui/hooks/use-enhanced-input.js.map +0 -1
  596. package/dist/ui/hooks/use-input-handler.d.ts +0 -79
  597. package/dist/ui/hooks/use-input-handler.js +0 -2251
  598. package/dist/ui/hooks/use-input-handler.js.map +0 -1
  599. package/dist/ui/hooks/use-input-history.d.ts +0 -9
  600. package/dist/ui/hooks/use-input-history.js +0 -168
  601. package/dist/ui/hooks/use-input-history.js.map +0 -1
  602. package/dist/ui/shared/max-sized-box.d.ts +0 -17
  603. package/dist/ui/shared/max-sized-box.js +0 -14
  604. package/dist/ui/shared/max-sized-box.js.map +0 -1
  605. package/dist/ui/themes/index.d.ts +0 -5
  606. package/dist/ui/themes/index.js +0 -5
  607. package/dist/ui/themes/index.js.map +0 -1
  608. package/dist/ui/themes/theme-registry.d.ts +0 -55
  609. package/dist/ui/themes/theme-registry.js +0 -202
  610. package/dist/ui/themes/theme-registry.js.map +0 -1
  611. package/dist/ui/utils/bracketed-paste-handler.d.ts +0 -97
  612. package/dist/ui/utils/bracketed-paste-handler.js +0 -322
  613. package/dist/ui/utils/bracketed-paste-handler.js.map +0 -1
  614. package/dist/ui/utils/change-summarizer.d.ts +0 -20
  615. package/dist/ui/utils/change-summarizer.js +0 -282
  616. package/dist/ui/utils/change-summarizer.js.map +0 -1
  617. package/dist/ui/utils/code-colorizer.d.ts +0 -9
  618. package/dist/ui/utils/code-colorizer.js +0 -13
  619. package/dist/ui/utils/code-colorizer.js.map +0 -1
  620. package/dist/ui/utils/colors.d.ts +0 -41
  621. package/dist/ui/utils/colors.js +0 -80
  622. package/dist/ui/utils/colors.js.map +0 -1
  623. package/dist/ui/utils/image-handler.d.ts +0 -29
  624. package/dist/ui/utils/image-handler.js +0 -129
  625. package/dist/ui/utils/image-handler.js.map +0 -1
  626. package/dist/ui/utils/markdown-renderer.d.ts +0 -4
  627. package/dist/ui/utils/markdown-renderer.js +0 -40
  628. package/dist/ui/utils/markdown-renderer.js.map +0 -1
  629. package/dist/ui/utils/semantic-action-detector.d.ts +0 -49
  630. package/dist/ui/utils/semantic-action-detector.js +0 -339
  631. package/dist/ui/utils/semantic-action-detector.js.map +0 -1
  632. package/dist/ui/utils/tool-grouper.d.ts +0 -94
  633. package/dist/ui/utils/tool-grouper.js +0 -618
  634. package/dist/ui/utils/tool-grouper.js.map +0 -1
  635. package/dist/utils/api-error.d.ts +0 -61
  636. package/dist/utils/api-error.js +0 -176
  637. package/dist/utils/api-error.js.map +0 -1
  638. package/dist/utils/audit-logger.d.ts +0 -206
  639. package/dist/utils/audit-logger.js +0 -286
  640. package/dist/utils/audit-logger.js.map +0 -1
  641. package/dist/utils/auto-accept-logger.d.ts +0 -175
  642. package/dist/utils/auto-accept-logger.js +0 -423
  643. package/dist/utils/auto-accept-logger.js.map +0 -1
  644. package/dist/utils/automatosx-detector.d.ts +0 -19
  645. package/dist/utils/automatosx-detector.js +0 -52
  646. package/dist/utils/automatosx-detector.js.map +0 -1
  647. package/dist/utils/background-task-manager.d.ts +0 -114
  648. package/dist/utils/background-task-manager.js +0 -470
  649. package/dist/utils/background-task-manager.js.map +0 -1
  650. package/dist/utils/cache.d.ts +0 -77
  651. package/dist/utils/cache.js +0 -180
  652. package/dist/utils/cache.js.map +0 -1
  653. package/dist/utils/command-security.d.ts +0 -85
  654. package/dist/utils/command-security.js +0 -210
  655. package/dist/utils/command-security.js.map +0 -1
  656. package/dist/utils/config-loader.d.ts +0 -190
  657. package/dist/utils/config-loader.js +0 -108
  658. package/dist/utils/config-loader.js.map +0 -1
  659. package/dist/utils/confirmation-service.d.ts +0 -51
  660. package/dist/utils/confirmation-service.js +0 -220
  661. package/dist/utils/confirmation-service.js.map +0 -1
  662. package/dist/utils/console-messenger.d.ts +0 -80
  663. package/dist/utils/console-messenger.js +0 -142
  664. package/dist/utils/console-messenger.js.map +0 -1
  665. package/dist/utils/custom-instructions.d.ts +0 -1
  666. package/dist/utils/custom-instructions.js +0 -24
  667. package/dist/utils/custom-instructions.js.map +0 -1
  668. package/dist/utils/encryption.d.ts +0 -86
  669. package/dist/utils/encryption.js +0 -236
  670. package/dist/utils/encryption.js.map +0 -1
  671. package/dist/utils/enhanced-error-messages.d.ts +0 -33
  672. package/dist/utils/enhanced-error-messages.js +0 -440
  673. package/dist/utils/enhanced-error-messages.js.map +0 -1
  674. package/dist/utils/error-handler.d.ts +0 -65
  675. package/dist/utils/error-handler.js +0 -148
  676. package/dist/utils/error-handler.js.map +0 -1
  677. package/dist/utils/error-translator.d.ts +0 -25
  678. package/dist/utils/error-translator.js +0 -203
  679. package/dist/utils/error-translator.js.map +0 -1
  680. package/dist/utils/external-editor.d.ts +0 -47
  681. package/dist/utils/external-editor.js +0 -179
  682. package/dist/utils/external-editor.js.map +0 -1
  683. package/dist/utils/file-cache.d.ts +0 -148
  684. package/dist/utils/file-cache.js +0 -413
  685. package/dist/utils/file-cache.js.map +0 -1
  686. package/dist/utils/file-lock.d.ts +0 -141
  687. package/dist/utils/file-lock.js +0 -554
  688. package/dist/utils/file-lock.js.map +0 -1
  689. package/dist/utils/file-mentions.d.ts +0 -68
  690. package/dist/utils/file-mentions.js +0 -225
  691. package/dist/utils/file-mentions.js.map +0 -1
  692. package/dist/utils/history-manager.d.ts +0 -52
  693. package/dist/utils/history-manager.js +0 -211
  694. package/dist/utils/history-manager.js.map +0 -1
  695. package/dist/utils/history-migration.d.ts +0 -9
  696. package/dist/utils/history-migration.js +0 -37
  697. package/dist/utils/history-migration.js.map +0 -1
  698. package/dist/utils/image-processor.d.ts +0 -33
  699. package/dist/utils/image-processor.js +0 -124
  700. package/dist/utils/image-processor.js.map +0 -1
  701. package/dist/utils/index.d.ts +0 -92
  702. package/dist/utils/index.js +0 -111
  703. package/dist/utils/index.js.map +0 -1
  704. package/dist/utils/init-previewer.d.ts +0 -56
  705. package/dist/utils/init-previewer.js +0 -239
  706. package/dist/utils/init-previewer.js.map +0 -1
  707. package/dist/utils/init-validator.d.ts +0 -65
  708. package/dist/utils/init-validator.js +0 -252
  709. package/dist/utils/init-validator.js.map +0 -1
  710. package/dist/utils/input-sanitizer.d.ts +0 -210
  711. package/dist/utils/input-sanitizer.js +0 -362
  712. package/dist/utils/input-sanitizer.js.map +0 -1
  713. package/dist/utils/instruction-generator.d.ts +0 -21
  714. package/dist/utils/instruction-generator.js +0 -233
  715. package/dist/utils/instruction-generator.js.map +0 -1
  716. package/dist/utils/json-utils.d.ts +0 -72
  717. package/dist/utils/json-utils.js +0 -226
  718. package/dist/utils/json-utils.js.map +0 -1
  719. package/dist/utils/llm-optimized-instruction-generator.d.ts +0 -36
  720. package/dist/utils/llm-optimized-instruction-generator.js +0 -365
  721. package/dist/utils/llm-optimized-instruction-generator.js.map +0 -1
  722. package/dist/utils/message-optimizer.d.ts +0 -100
  723. package/dist/utils/message-optimizer.js +0 -297
  724. package/dist/utils/message-optimizer.js.map +0 -1
  725. package/dist/utils/onboarding-manager.d.ts +0 -45
  726. package/dist/utils/onboarding-manager.js +0 -131
  727. package/dist/utils/onboarding-manager.js.map +0 -1
  728. package/dist/utils/parallel-analyzer.d.ts +0 -123
  729. package/dist/utils/parallel-analyzer.js +0 -241
  730. package/dist/utils/parallel-analyzer.js.map +0 -1
  731. package/dist/utils/paste-utils.d.ts +0 -99
  732. package/dist/utils/paste-utils.js +0 -295
  733. package/dist/utils/paste-utils.js.map +0 -1
  734. package/dist/utils/path-helpers.d.ts +0 -8
  735. package/dist/utils/path-helpers.js +0 -35
  736. package/dist/utils/path-helpers.js.map +0 -1
  737. package/dist/utils/path-security.d.ts +0 -92
  738. package/dist/utils/path-security.js +0 -300
  739. package/dist/utils/path-security.js.map +0 -1
  740. package/dist/utils/path-utils.d.ts +0 -83
  741. package/dist/utils/path-utils.js +0 -122
  742. package/dist/utils/path-utils.js.map +0 -1
  743. package/dist/utils/path-validator.d.ts +0 -66
  744. package/dist/utils/path-validator.js +0 -141
  745. package/dist/utils/path-validator.js.map +0 -1
  746. package/dist/utils/performance.d.ts +0 -74
  747. package/dist/utils/performance.js +0 -133
  748. package/dist/utils/performance.js.map +0 -1
  749. package/dist/utils/process-pool.d.ts +0 -109
  750. package/dist/utils/process-pool.js +0 -332
  751. package/dist/utils/process-pool.js.map +0 -1
  752. package/dist/utils/progress-tracker.d.ts +0 -51
  753. package/dist/utils/progress-tracker.js +0 -152
  754. package/dist/utils/progress-tracker.js.map +0 -1
  755. package/dist/utils/project-analyzer.d.ts +0 -49
  756. package/dist/utils/project-analyzer.js +0 -396
  757. package/dist/utils/project-analyzer.js.map +0 -1
  758. package/dist/utils/prompt-builder.d.ts +0 -14
  759. package/dist/utils/prompt-builder.js +0 -100
  760. package/dist/utils/prompt-builder.js.map +0 -1
  761. package/dist/utils/provider-context.d.ts +0 -243
  762. package/dist/utils/provider-context.js +0 -421
  763. package/dist/utils/provider-context.js.map +0 -1
  764. package/dist/utils/provider-file-cache.d.ts +0 -91
  765. package/dist/utils/provider-file-cache.js +0 -165
  766. package/dist/utils/provider-file-cache.js.map +0 -1
  767. package/dist/utils/provider-settings.d.ts +0 -181
  768. package/dist/utils/provider-settings.js +0 -450
  769. package/dist/utils/provider-settings.js.map +0 -1
  770. package/dist/utils/rate-limiter.d.ts +0 -222
  771. package/dist/utils/rate-limiter.js +0 -338
  772. package/dist/utils/rate-limiter.js.map +0 -1
  773. package/dist/utils/retry-helper.d.ts +0 -81
  774. package/dist/utils/retry-helper.js +0 -244
  775. package/dist/utils/retry-helper.js.map +0 -1
  776. package/dist/utils/safety-rules.d.ts +0 -64
  777. package/dist/utils/safety-rules.js +0 -225
  778. package/dist/utils/safety-rules.js.map +0 -1
  779. package/dist/utils/settings-manager.d.ts +0 -256
  780. package/dist/utils/settings-manager.js +0 -967
  781. package/dist/utils/settings-manager.js.map +0 -1
  782. package/dist/utils/setup-validator.d.ts +0 -47
  783. package/dist/utils/setup-validator.js +0 -304
  784. package/dist/utils/setup-validator.js.map +0 -1
  785. package/dist/utils/string-utils.d.ts +0 -19
  786. package/dist/utils/string-utils.js +0 -28
  787. package/dist/utils/string-utils.js.map +0 -1
  788. package/dist/utils/template-manager.d.ts +0 -62
  789. package/dist/utils/template-manager.js +0 -366
  790. package/dist/utils/template-manager.js.map +0 -1
  791. package/dist/utils/text-utils.d.ts +0 -82
  792. package/dist/utils/text-utils.js +0 -203
  793. package/dist/utils/text-utils.js.map +0 -1
  794. package/dist/utils/token-counter.d.ts +0 -76
  795. package/dist/utils/token-counter.js +0 -231
  796. package/dist/utils/token-counter.js.map +0 -1
  797. package/dist/utils/usage-tracker.d.ts +0 -78
  798. package/dist/utils/usage-tracker.js +0 -126
  799. package/dist/utils/usage-tracker.js.map +0 -1
  800. package/dist/utils/version.d.ts +0 -14
  801. package/dist/utils/version.js +0 -70
  802. package/dist/utils/version.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"design.js","sourceRoot":"","sources":["../../../src/tools/definitions/design.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,YAAY,GAAmB;IAC1C,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IAExB,WAAW,EAAE;;;;4DAI6C;IAE1D,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,4DAA4D;gBAC9D,QAAQ,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC;aAC3C;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,sCAAsC;gBACnD,OAAO,EAAE,CAAC;aACX;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;gBAC9B,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE,MAAM;aAChB;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,4BAA4B;gBACzC,OAAO,EAAE,KAAK;aACf;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE,IAAI;aACd;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE,KAA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DAAwD,CAAC;IAExE,QAAQ,EAAE;QACR;YACE,WAAW,EAAE,kBAAkB;YAC/B,QAAQ,EAAE,kCAAkC;YAC5C,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE;YAC/B,gBAAgB,EAAE,uCAAuC;SAC1D;KACF;IAED,SAAS,EAAE,GAAG;IACd,WAAW,EAAE,MAAM;IACnB,oBAAoB,EAAE,KAAK;IAE3B,UAAU,EAAE,CAAC,QAAQ,CAAC;IACtB,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,CAAC,kBAAkB,EAAE,WAAW,CAAC;CAChD,CAAC"}
@@ -1,49 +0,0 @@
1
- /**
2
- * Tool Definitions - Barrel Export
3
- *
4
- * This file exports all tool definitions and provides the TOOL_DEFINITIONS array
5
- * which is the single source of truth for all tool metadata.
6
- */
7
- import type { ToolDefinition } from '../types.js';
8
- import { bashTool } from './bash.js';
9
- import { bashOutputTool } from './bash-output.js';
10
- import { viewFileTool } from './view-file.js';
11
- import { createFileTool } from './create-file.js';
12
- import { strReplaceEditorTool } from './str-replace-editor.js';
13
- import { multiEditTool } from './multi-edit.js';
14
- import { searchTool } from './search.js';
15
- import { createTodoListTool, updateTodoListTool } from './todo.js';
16
- import { askUserTool } from './ask-user.js';
17
- import { axAgentTool, axAgentsParallelTool } from './ax-agent.js';
18
- import { figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool } from './design.js';
19
- export { bashTool, bashOutputTool, viewFileTool, createFileTool, strReplaceEditorTool, multiEditTool, searchTool, createTodoListTool, updateTodoListTool, askUserTool, axAgentTool, axAgentsParallelTool, figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool, };
20
- /**
21
- * All tool definitions - Single Source of Truth
22
- *
23
- * This array contains all rich tool definitions with Claude Code-quality
24
- * descriptions, usage notes, constraints, and examples.
25
- *
26
- * OpenAI and Anthropic formats are DERIVED from these definitions using
27
- * the format generators.
28
- */
29
- export declare const TOOL_DEFINITIONS: ToolDefinition[];
30
- /**
31
- * Get a tool definition by name
32
- */
33
- export declare function getToolDefinition(name: string): ToolDefinition | undefined;
34
- /**
35
- * Get tool definitions by category
36
- */
37
- export declare function getToolsByCategory(category: string): ToolDefinition[];
38
- /**
39
- * Get tool definitions by safety level
40
- */
41
- export declare function getToolsBySafetyLevel(level: 'safe' | 'moderate' | 'dangerous'): ToolDefinition[];
42
- /**
43
- * Get tool definitions that require confirmation
44
- */
45
- export declare function getToolsRequiringConfirmation(): ToolDefinition[];
46
- /**
47
- * Calculate total token cost for all tools
48
- */
49
- export declare function getTotalTokenCost(): number;
@@ -1,87 +0,0 @@
1
- /**
2
- * Tool Definitions - Barrel Export
3
- *
4
- * This file exports all tool definitions and provides the TOOL_DEFINITIONS array
5
- * which is the single source of truth for all tool metadata.
6
- */
7
- // Import and re-export all tool definitions
8
- import { bashTool } from './bash.js';
9
- import { bashOutputTool } from './bash-output.js';
10
- import { viewFileTool } from './view-file.js';
11
- import { createFileTool } from './create-file.js';
12
- import { strReplaceEditorTool } from './str-replace-editor.js';
13
- import { multiEditTool } from './multi-edit.js';
14
- import { searchTool } from './search.js';
15
- import { createTodoListTool, updateTodoListTool } from './todo.js';
16
- import { askUserTool } from './ask-user.js';
17
- import { axAgentTool, axAgentsParallelTool } from './ax-agent.js';
18
- import { figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool, } from './design.js';
19
- // Re-export all tool definitions
20
- export { bashTool, bashOutputTool, viewFileTool, createFileTool, strReplaceEditorTool, multiEditTool, searchTool, createTodoListTool, updateTodoListTool, askUserTool, axAgentTool, axAgentsParallelTool, figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool, };
21
- /**
22
- * All tool definitions - Single Source of Truth
23
- *
24
- * This array contains all rich tool definitions with Claude Code-quality
25
- * descriptions, usage notes, constraints, and examples.
26
- *
27
- * OpenAI and Anthropic formats are DERIVED from these definitions using
28
- * the format generators.
29
- */
30
- export const TOOL_DEFINITIONS = [
31
- // File operations
32
- viewFileTool,
33
- createFileTool,
34
- strReplaceEditorTool,
35
- multiEditTool,
36
- // Command execution
37
- bashTool,
38
- bashOutputTool,
39
- // Search
40
- searchTool,
41
- // Task management
42
- createTodoListTool,
43
- updateTodoListTool,
44
- // User interaction
45
- askUserTool,
46
- // Agent delegation
47
- axAgentTool,
48
- axAgentsParallelTool,
49
- // Design tools
50
- figmaMapTool,
51
- figmaTokensTool,
52
- figmaAuditTool,
53
- figmaSearchTool,
54
- figmaAliasListTool,
55
- figmaAliasResolveTool,
56
- ];
57
- /**
58
- * Get a tool definition by name
59
- */
60
- export function getToolDefinition(name) {
61
- return TOOL_DEFINITIONS.find((t) => t.name === name);
62
- }
63
- /**
64
- * Get tool definitions by category
65
- */
66
- export function getToolsByCategory(category) {
67
- return TOOL_DEFINITIONS.filter((t) => t.categories.includes(category));
68
- }
69
- /**
70
- * Get tool definitions by safety level
71
- */
72
- export function getToolsBySafetyLevel(level) {
73
- return TOOL_DEFINITIONS.filter((t) => t.safetyLevel === level);
74
- }
75
- /**
76
- * Get tool definitions that require confirmation
77
- */
78
- export function getToolsRequiringConfirmation() {
79
- return TOOL_DEFINITIONS.filter((t) => t.requiresConfirmation);
80
- }
81
- /**
82
- * Calculate total token cost for all tools
83
- */
84
- export function getTotalTokenCost() {
85
- return TOOL_DEFINITIONS.reduce((sum, t) => sum + t.tokenCost, 0);
86
- }
87
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,4CAA4C;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAA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CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACvD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB;IACjD,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAgD,CAAC,CACxE,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,KAAwC;IAExC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC;AACjE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,6BAA6B;IAC3C,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAChE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AACnE,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Multi Edit Tool Definition - Claude Code Quality
3
- *
4
- * Make multiple edits to a single file in one atomic operation.
5
- */
6
- import type { ToolDefinition } from '../types.js';
7
- export declare const multiEditTool: ToolDefinition;
@@ -1,123 +0,0 @@
1
- /**
2
- * Multi Edit Tool Definition - Claude Code Quality
3
- *
4
- * Make multiple edits to a single file in one atomic operation.
5
- */
6
- export const multiEditTool = {
7
- name: 'multi_edit',
8
- displayName: 'Multi Edit',
9
- description: `Make multiple edits to a single file in one atomic operation.
10
-
11
- Use this instead of multiple str_replace_editor calls when you need to make several changes to the same file. Edits are applied sequentially and the operation fails entirely if any edit is invalid (all-or-nothing).
12
-
13
- Each edit in the array operates on the result of the previous edit. This means:
14
- 1. The first edit modifies the original file
15
- 2. The second edit operates on the result after the first edit
16
- 3. And so on...
17
-
18
- This is useful for:
19
- - Making multiple related changes to a file
20
- - Refactoring that requires several coordinated changes
21
- - Adding imports AND using them in the same operation`,
22
- parameters: {
23
- type: 'object',
24
- properties: {
25
- path: {
26
- type: 'string',
27
- description: 'Path to the file to edit',
28
- format: 'file-path',
29
- },
30
- edits: {
31
- type: 'array',
32
- description: 'Array of edits to apply sequentially. Each edit operates on the result of the previous edit.',
33
- items: {
34
- type: 'object',
35
- properties: {
36
- old_str: {
37
- type: 'string',
38
- description: 'Text to replace',
39
- },
40
- new_str: {
41
- type: 'string',
42
- description: 'Replacement text',
43
- },
44
- },
45
- required: ['old_str', 'new_str'],
46
- },
47
- },
48
- },
49
- required: ['path', 'edits'],
50
- },
51
- usageNotes: [
52
- 'Use when making 2+ changes to the same file',
53
- 'More efficient than multiple str_replace_editor calls',
54
- 'Edits are applied sequentially - order matters!',
55
- 'Later edits operate on the result of earlier edits',
56
- 'All edits succeed or none do (atomic operation)',
57
- 'Always view_file first to see current content',
58
- 'Plan the edit order carefully when edits might affect each other',
59
- ],
60
- constraints: [
61
- 'File must exist',
62
- 'All old_str values must be found (in sequence)',
63
- 'If any edit fails, the entire operation is rolled back',
64
- 'Each edit must find its old_str in the content after previous edits',
65
- ],
66
- antiPatterns: [
67
- 'Using for a single edit (use str_replace_editor instead)',
68
- 'Not reading the file first',
69
- 'Not considering how earlier edits affect later ones',
70
- 'Edits that conflict or overlap',
71
- ],
72
- examples: [
73
- {
74
- description: 'Add import and use it',
75
- scenario: 'Import a function and add a call to it',
76
- input: {
77
- path: '/project/src/app.ts',
78
- edits: [
79
- {
80
- old_str: "import { existingFn } from './utils';",
81
- new_str: `import { existingFn } from './utils';
82
- import { newFn } from './helpers';`,
83
- },
84
- {
85
- old_str: 'existingFn();',
86
- new_str: `existingFn();
87
- newFn();`,
88
- },
89
- ],
90
- },
91
- expectedBehavior: 'Adds import and uses the new function',
92
- },
93
- {
94
- description: 'Refactor multiple related items',
95
- scenario: 'Rename a constant and update its usages',
96
- input: {
97
- path: '/project/src/config.ts',
98
- edits: [
99
- {
100
- old_str: 'const OLD_NAME = 100;',
101
- new_str: 'const NEW_NAME = 100;',
102
- },
103
- {
104
- old_str: 'console.log(OLD_NAME);',
105
- new_str: 'console.log(NEW_NAME);',
106
- },
107
- {
108
- old_str: 'return OLD_NAME * 2;',
109
- new_str: 'return NEW_NAME * 2;',
110
- },
111
- ],
112
- },
113
- expectedBehavior: 'Renames constant and updates all usages atomically',
114
- },
115
- ],
116
- tokenCost: 450,
117
- safetyLevel: 'moderate',
118
- requiresConfirmation: false,
119
- categories: ['file-operations'],
120
- alternatives: ['str_replace_editor'],
121
- relatedTools: ['view_file', 'str_replace_editor'],
122
- };
123
- //# sourceMappingURL=multi-edit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"multi-edit.js","sourceRoot":"","sources":["../../../src/tools/definitions/multi-edit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IAEzB,WAAW,EAAE;;;;;;;;;;;;sDAYuC;IAEpD,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,WAAW;aACpB;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,WAAW,EACT,8FAA8F;gBAChG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,OAAO,EAAE;4BACP,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,iBAAiB;yBAC/B;wBACD,OAAO,EAAE;4BACP,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,kBAAkB;yBAChC;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AE,CAAC,oBAAoB,CAAC;IACpC,YAAY,EAAE,CAAC,WAAW,EAAE,oBAAoB,CAAC;CAClD,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Search Tool Definition - Claude Code Quality
3
- *
4
- * Unified search tool for finding text content or files in the codebase.
5
- */
6
- import type { ToolDefinition } from '../types.js';
7
- export declare const searchTool: ToolDefinition;
@@ -1,159 +0,0 @@
1
- /**
2
- * Search Tool Definition - Claude Code Quality
3
- *
4
- * Unified search tool for finding text content or files in the codebase.
5
- */
6
- export const searchTool = {
7
- name: 'search',
8
- displayName: 'Search',
9
- description: `Unified search tool for finding text content or files in the codebase.
10
-
11
- This tool combines text search (like grep/ripgrep) and file search (like find) into a single interface. It's powered by ripgrep for fast, accurate results.
12
-
13
- Use this tool instead of bash grep/find/rg commands. It's faster, safer, and integrated with the agent workflow.
14
-
15
- Search types:
16
- - "text": Search file CONTENTS for matching text/patterns
17
- - "files": Search file NAMES/PATHS matching pattern
18
- - "both": Search both content and file names (default)
19
-
20
- Results are sorted by relevance and common directories like node_modules are excluded by default.`,
21
- parameters: {
22
- type: 'object',
23
- properties: {
24
- query: {
25
- type: 'string',
26
- description: 'Search pattern. Can be literal text or regex (set regex: true).',
27
- examples: ['TODO', 'function.*export', 'class UserService', '*.test.ts'],
28
- },
29
- search_type: {
30
- type: 'string',
31
- enum: ['text', 'files', 'both'],
32
- description: 'Type of search. "text" for content, "files" for names, "both" for both.',
33
- default: 'both',
34
- },
35
- include_pattern: {
36
- type: 'string',
37
- description: 'Glob pattern for files to include. Example: "*.ts", "src/**/*.js"',
38
- examples: ['*.ts', '*.{js,jsx}', 'src/**/*'],
39
- },
40
- exclude_pattern: {
41
- type: 'string',
42
- description: 'Glob pattern for files to exclude. Example: "*.log", "node_modules"',
43
- examples: ['*.log', 'node_modules', 'dist', '*.min.js'],
44
- },
45
- case_sensitive: {
46
- type: 'boolean',
47
- description: 'Whether search is case-sensitive.',
48
- default: false,
49
- },
50
- whole_word: {
51
- type: 'boolean',
52
- description: 'Match whole words only.',
53
- default: false,
54
- },
55
- regex: {
56
- type: 'boolean',
57
- description: 'Treat query as regular expression.',
58
- default: false,
59
- },
60
- max_results: {
61
- type: 'number',
62
- description: 'Maximum results to return.',
63
- default: 50,
64
- constraints: ['Must be between 1 and 500'],
65
- },
66
- file_types: {
67
- type: 'array',
68
- description: 'File extensions to search (without dot). Example: ["ts", "js", "py"]',
69
- examples: [['ts', 'tsx'], ['py'], ['js', 'jsx', 'ts', 'tsx']],
70
- items: {
71
- type: 'string',
72
- },
73
- },
74
- include_hidden: {
75
- type: 'boolean',
76
- description: 'Include hidden files (starting with dot).',
77
- default: false,
78
- },
79
- },
80
- required: ['query'],
81
- },
82
- usageNotes: [
83
- 'Always use this instead of bash grep/find/rg',
84
- 'Default search_type "both" searches content AND file names',
85
- 'Use include_pattern to narrow down to specific file types',
86
- 'Common patterns:',
87
- ' - Find function: search("function myFunction")',
88
- ' - Find files: search("*.test.ts", { search_type: "files" })',
89
- ' - Find in specific files: search("TODO", { include_pattern: "*.ts" })',
90
- 'For complex regex, set regex: true',
91
- 'Results are sorted by relevance',
92
- 'node_modules and common build directories are excluded by default',
93
- 'Use file_types for common extensions instead of include_pattern',
94
- ],
95
- constraints: [
96
- 'Does not search binary files',
97
- 'node_modules excluded by default',
98
- 'Max 500 results per search',
99
- 'Very large files may be partially searched',
100
- 'Regex patterns must be valid ripgrep syntax',
101
- ],
102
- antiPatterns: [
103
- 'Using bash grep instead of search',
104
- 'Using bash find instead of search',
105
- 'Using bash rg instead of search',
106
- 'Searching without specifying file types for large codebases',
107
- ],
108
- examples: [
109
- {
110
- description: 'Find TODO comments',
111
- scenario: 'Locate all TODO items in the codebase',
112
- input: { query: 'TODO', search_type: 'text' },
113
- expectedBehavior: 'Returns all lines containing TODO with file paths and line numbers',
114
- },
115
- {
116
- description: 'Find test files',
117
- scenario: 'Locate all test files in the project',
118
- input: { query: '*.test.ts', search_type: 'files' },
119
- expectedBehavior: 'Returns paths to all .test.ts files',
120
- },
121
- {
122
- description: 'Find function definition',
123
- scenario: 'Locate where a specific function is defined',
124
- input: {
125
- query: 'function processPayment',
126
- search_type: 'text',
127
- include_pattern: '*.ts',
128
- },
129
- expectedBehavior: 'Returns file and line where processPayment is defined',
130
- },
131
- {
132
- description: 'Find class usage with regex',
133
- scenario: 'Find all instantiations of a class',
134
- input: {
135
- query: 'new UserService\\(',
136
- regex: true,
137
- search_type: 'text',
138
- },
139
- expectedBehavior: 'Returns all places where UserService is instantiated',
140
- },
141
- {
142
- description: 'Search in specific file types',
143
- scenario: 'Find imports in TypeScript files only',
144
- input: {
145
- query: "import.*from 'react'",
146
- regex: true,
147
- file_types: ['ts', 'tsx'],
148
- },
149
- expectedBehavior: 'Returns all React imports in TypeScript files',
150
- },
151
- ],
152
- tokenCost: 550,
153
- safetyLevel: 'safe',
154
- requiresConfirmation: false,
155
- categories: ['search'],
156
- alternatives: [],
157
- relatedTools: ['view_file'],
158
- };
159
- //# sourceMappingURL=search.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/tools/definitions/search.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,QAAQ;IAErB,WAAW,EAAE;;;;;;;;;;;kGAWmF;IAEhG,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iEAAiE;gBACnE,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,WAAW,CAAC;aACzE;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;gBAC/B,WAAW,EACT,yEAAyE;gBAC3E,OAAO,EAAE,MAAM;aAChB;YAC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AS,EAAE,GAAG;IACd,WAAW,EAAE,MAAM;IACnB,oBAAoB,EAAE,KAAK;IAE3B,UAAU,EAAE,CAAC,QAAQ,CAAC;IACtB,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,CAAC,WAAW,CAAC;CAC5B,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * String Replace Editor Tool Definition - Claude Code Quality
3
- *
4
- * Edit files with precise string replacement.
5
- */
6
- import type { ToolDefinition } from '../types.js';
7
- export declare const strReplaceEditorTool: ToolDefinition;
@@ -1,145 +0,0 @@
1
- /**
2
- * String Replace Editor Tool Definition - Claude Code Quality
3
- *
4
- * Edit files with precise string replacement.
5
- */
6
- export const strReplaceEditorTool = {
7
- name: 'str_replace_editor',
8
- displayName: 'String Replace Editor',
9
- description: `Edit files with precise string replacement.
10
-
11
- This tool performs exact string matching and replacement within files. It's the primary way to modify existing files safely and precisely.
12
-
13
- The replacement is EXACT - the old_str must match the file content character-for-character, including whitespace and indentation. If old_str appears multiple times and replace_all is false (default), the operation fails to prevent unintended changes.
14
-
15
- IMPORTANT: Always use view_file to read the file first before editing. This ensures you have the exact current content and correct indentation.
16
-
17
- When copying text from view_file output, ignore the line number prefix. The format is: spaces + line number + tab + actual content. Copy only the content after the tab.`,
18
- parameters: {
19
- type: 'object',
20
- properties: {
21
- path: {
22
- type: 'string',
23
- description: 'Path to the file to edit. Must exist.',
24
- format: 'file-path',
25
- },
26
- old_str: {
27
- type: 'string',
28
- description: `Text to replace. Must match EXACTLY including:
29
- - Whitespace (spaces, tabs)
30
- - Line endings
31
- - Indentation
32
- Include enough context to make the match unique. For multi-line replacements, include complete lines.`,
33
- examples: [
34
- 'const x = 1;',
35
- 'function processData(input) {\n return input;\n}',
36
- ],
37
- },
38
- new_str: {
39
- type: 'string',
40
- description: 'Replacement text. Must be different from old_str. Preserve original indentation style.',
41
- examples: [
42
- 'const x = 2;',
43
- 'function processData(input) {\n // Validate input\n if (!input) return null;\n return input;\n}',
44
- ],
45
- },
46
- replace_all: {
47
- type: 'boolean',
48
- description: 'Replace ALL occurrences instead of failing on duplicates. Use for variable/function renaming.',
49
- default: false,
50
- },
51
- },
52
- required: ['path', 'old_str', 'new_str'],
53
- },
54
- usageNotes: [
55
- 'ALWAYS view_file first to see current content and indentation',
56
- 'Match indentation exactly - copy from the file, do not assume',
57
- 'Include enough surrounding context to make old_str unique:',
58
- ' - Bad: "return true;" (likely appears multiple times)',
59
- ' - Good: "function validate(x) {\\n return true;\\n}"',
60
- 'For multiple changes to the same file, use multi_edit instead',
61
- 'Use replace_all: true for renaming across file (variables, functions, etc.)',
62
- 'Preserve the coding style of the file (tabs vs spaces, semicolons, etc.)',
63
- 'When editing code from view_file output, ignore the line number prefix',
64
- 'The line number format is: spaces + line number + tab + actual content',
65
- 'For large multi-line changes, include the entire block to replace',
66
- ],
67
- constraints: [
68
- 'File must exist (cannot create new files - use create_file)',
69
- 'old_str must exist in the file',
70
- 'old_str must be unique unless replace_all is true',
71
- 'new_str must be different from old_str',
72
- 'Must read file with view_file before editing',
73
- 'Cannot use for creating new files (use create_file)',
74
- ],
75
- antiPatterns: [
76
- 'Editing without reading the file first',
77
- 'Using bash sed/awk for editing',
78
- 'Making multiple separate edits when multi_edit would work',
79
- 'Guessing indentation instead of copying from file',
80
- 'Using very short old_str that may not be unique',
81
- 'Trying to create a file (use create_file instead)',
82
- ],
83
- examples: [
84
- {
85
- description: 'Fix a simple bug',
86
- scenario: 'Change a value in the code',
87
- input: {
88
- path: '/project/src/config.ts',
89
- old_str: 'const MAX_RETRIES = 3;',
90
- new_str: 'const MAX_RETRIES = 5;',
91
- },
92
- expectedBehavior: 'Updates the constant value',
93
- },
94
- {
95
- description: 'Rename a variable across file',
96
- scenario: 'Rename a variable consistently',
97
- input: {
98
- path: '/project/src/utils.ts',
99
- old_str: 'userData',
100
- new_str: 'userProfile',
101
- replace_all: true,
102
- },
103
- expectedBehavior: 'Renames all occurrences of userData to userProfile',
104
- },
105
- {
106
- description: 'Add error handling to a function',
107
- scenario: 'Wrap existing code with try-catch',
108
- input: {
109
- path: '/project/src/api.ts',
110
- old_str: `async function fetchData(url) {
111
- const response = await fetch(url);
112
- return response.json();
113
- }`,
114
- new_str: `async function fetchData(url) {
115
- try {
116
- const response = await fetch(url);
117
- return response.json();
118
- } catch (error) {
119
- console.error('Fetch failed:', error);
120
- throw error;
121
- }
122
- }`,
123
- },
124
- expectedBehavior: 'Adds try-catch around the function body',
125
- },
126
- {
127
- description: 'Add import statement',
128
- scenario: 'Add a new import at the top of a file',
129
- input: {
130
- path: '/project/src/utils.ts',
131
- old_str: "import { existingImport } from './existing';",
132
- new_str: `import { existingImport } from './existing';
133
- import { newImport } from './new';`,
134
- },
135
- expectedBehavior: 'Adds new import after existing one',
136
- },
137
- ],
138
- tokenCost: 600,
139
- safetyLevel: 'moderate',
140
- requiresConfirmation: false,
141
- categories: ['file-operations'],
142
- alternatives: ['multi_edit', 'create_file'],
143
- relatedTools: ['view_file', 'multi_edit'],
144
- };
145
- //# sourceMappingURL=str-replace-editor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"str-replace-editor.js","sourceRoot":"","sources":["../../../src/tools/definitions/str-replace-editor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAmB;IAClD,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,uBAAuB;IAEpC,WAAW,EAAE;;;;;;;;yKAQ0J;IAEvK,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;gBACpD,MAAM,EAAE,WAAW;aACpB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;;;;sGAIiF;gBAC9F,QAAQ,EAAE;oBACR,cAAc;oBACd,mDAAmD;iBACpD;aACF;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ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EAGf;gBACM,OAAO,EAAE;;;;;;;;EAQf;aACK;YACD,gBAAgB,EAAE,yCAAyC;SAC5D;QACD;YACE,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,uCAAuC;YACjD,KAAK,EAAE;gBACL,IAAI,EAAE,uBAAuB;gBAC7B,OAAO,EAAE,8CAA8C;gBACvD,OAAO,EAAE;mCACkB;aAC5B;YACD,gBAAgB,EAAE,oCAAoC;SACvD;KACF;IAED,SAAS,EAAE,GAAG;IACd,WAAW,EAAE,UAAU;IACvB,oBAAoB,EAAE,KAAK;IAE3B,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,YAAY,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;IAC3C,YAAY,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;CAC1C,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Todo Tools Definition - Claude Code Quality
3
- *
4
- * Create and update task lists for planning and tracking work.
5
- */
6
- import type { ToolDefinition } from '../types.js';
7
- export declare const createTodoListTool: ToolDefinition;
8
- export declare const updateTodoListTool: ToolDefinition;