@defai.digital/ax-cli 3.15.26 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +56 -21
  2. package/dist/commands/init.d.ts +3 -3
  3. package/dist/commands/init.js +175 -25
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/commands/setup.d.ts +0 -1
  6. package/dist/commands/setup.js +7 -139
  7. package/dist/commands/setup.js.map +1 -1
  8. package/dist/llm/tools.d.ts +14 -0
  9. package/dist/llm/tools.js +17 -4
  10. package/dist/llm/tools.js.map +1 -1
  11. package/dist/planner/types.d.ts +4 -4
  12. package/dist/tools/definitions/ask-user.d.ts +8 -0
  13. package/dist/tools/definitions/ask-user.js +168 -0
  14. package/dist/tools/definitions/ask-user.js.map +1 -0
  15. package/dist/tools/definitions/ax-agent.d.ts +7 -0
  16. package/dist/tools/definitions/ax-agent.js +149 -0
  17. package/dist/tools/definitions/ax-agent.js.map +1 -0
  18. package/dist/tools/definitions/bash-output.d.ts +7 -0
  19. package/dist/tools/definitions/bash-output.js +78 -0
  20. package/dist/tools/definitions/bash-output.js.map +1 -0
  21. package/dist/tools/definitions/bash.d.ts +8 -0
  22. package/dist/tools/definitions/bash.js +152 -0
  23. package/dist/tools/definitions/bash.js.map +1 -0
  24. package/dist/tools/definitions/create-file.d.ts +7 -0
  25. package/dist/tools/definitions/create-file.js +129 -0
  26. package/dist/tools/definitions/create-file.js.map +1 -0
  27. package/dist/tools/definitions/design.d.ts +12 -0
  28. package/dist/tools/definitions/design.js +368 -0
  29. package/dist/tools/definitions/design.js.map +1 -0
  30. package/dist/tools/definitions/index.d.ts +48 -0
  31. package/dist/tools/definitions/index.js +96 -0
  32. package/dist/tools/definitions/index.js.map +1 -0
  33. package/dist/tools/definitions/multi-edit.d.ts +7 -0
  34. package/dist/tools/definitions/multi-edit.js +123 -0
  35. package/dist/tools/definitions/multi-edit.js.map +1 -0
  36. package/dist/tools/definitions/search.d.ts +7 -0
  37. package/dist/tools/definitions/search.js +159 -0
  38. package/dist/tools/definitions/search.js.map +1 -0
  39. package/dist/tools/definitions/str-replace-editor.d.ts +7 -0
  40. package/dist/tools/definitions/str-replace-editor.js +145 -0
  41. package/dist/tools/definitions/str-replace-editor.js.map +1 -0
  42. package/dist/tools/definitions/todo.d.ts +8 -0
  43. package/dist/tools/definitions/todo.js +261 -0
  44. package/dist/tools/definitions/todo.js.map +1 -0
  45. package/dist/tools/definitions/view-file.d.ts +7 -0
  46. package/dist/tools/definitions/view-file.js +111 -0
  47. package/dist/tools/definitions/view-file.js.map +1 -0
  48. package/dist/tools/format-generators.d.ts +62 -0
  49. package/dist/tools/format-generators.js +291 -0
  50. package/dist/tools/format-generators.js.map +1 -0
  51. package/dist/tools/index.d.ts +4 -0
  52. package/dist/tools/index.js +6 -0
  53. package/dist/tools/index.js.map +1 -1
  54. package/dist/tools/result-enhancer.d.ts +64 -0
  55. package/dist/tools/result-enhancer.js +215 -0
  56. package/dist/tools/result-enhancer.js.map +1 -0
  57. package/dist/tools/types.d.ts +249 -0
  58. package/dist/tools/types.js +11 -0
  59. package/dist/tools/types.js.map +1 -0
  60. package/package.json +1 -1
@@ -0,0 +1,368 @@
1
+ /**
2
+ * Design Tools Definitions - Claude Code Quality
3
+ *
4
+ * Figma integration tools for design-to-code workflows.
5
+ */
6
+ export const figmaMapTool = {
7
+ name: 'figma_map',
8
+ displayName: 'Figma Map',
9
+ description: `Map a Figma file structure to see its pages, frames, and components.
10
+
11
+ Use this to explore the structure of a Figma design file. Returns a hierarchical view of the file's organization including pages, frames, components, and their relationships.
12
+
13
+ Requires FIGMA_ACCESS_TOKEN environment variable to be set.`,
14
+ parameters: {
15
+ type: 'object',
16
+ properties: {
17
+ file_key: {
18
+ type: 'string',
19
+ description: 'Figma file key (from the URL: figma.com/file/FILE_KEY/...)',
20
+ examples: ['abc123xyz', 'FigmaFileKey123'],
21
+ },
22
+ depth: {
23
+ type: 'number',
24
+ description: 'Maximum depth to traverse (optional)',
25
+ default: 3,
26
+ },
27
+ format: {
28
+ type: 'string',
29
+ enum: ['tree', 'json', 'flat'],
30
+ description: 'Output format (default: tree)',
31
+ default: 'tree',
32
+ },
33
+ show_ids: {
34
+ type: 'boolean',
35
+ description: 'Include node IDs in output',
36
+ default: false,
37
+ },
38
+ show_types: {
39
+ type: 'boolean',
40
+ description: 'Include node types in output',
41
+ default: true,
42
+ },
43
+ frames_only: {
44
+ type: 'boolean',
45
+ description: 'Show only frames and components',
46
+ default: false,
47
+ },
48
+ },
49
+ required: ['file_key'],
50
+ },
51
+ usageNotes: [
52
+ 'Get file_key from Figma URL: figma.com/file/FILE_KEY/...',
53
+ 'Use tree format for visual hierarchy overview',
54
+ 'Use json format for programmatic processing',
55
+ 'Set frames_only: true to focus on main containers',
56
+ 'Increase depth for detailed component inspection',
57
+ ],
58
+ constraints: [
59
+ 'Requires FIGMA_ACCESS_TOKEN environment variable',
60
+ 'Large files may take longer to process',
61
+ 'Deep traversal may hit API rate limits',
62
+ ],
63
+ antiPatterns: [
64
+ 'Not setting FIGMA_ACCESS_TOKEN before use',
65
+ 'Setting very high depth for large files',
66
+ ],
67
+ examples: [
68
+ {
69
+ description: 'Map file structure',
70
+ scenario: 'Explore a design file organization',
71
+ input: { file_key: 'abc123xyz', format: 'tree', depth: 2 },
72
+ expectedBehavior: 'Returns tree view of pages and frames',
73
+ },
74
+ ],
75
+ tokenCost: 350,
76
+ safetyLevel: 'safe',
77
+ requiresConfirmation: false,
78
+ categories: ['design'],
79
+ alternatives: [],
80
+ relatedTools: ['figma_tokens', 'figma_search', 'figma_audit'],
81
+ };
82
+ export const figmaTokensTool = {
83
+ name: 'figma_tokens',
84
+ displayName: 'Figma Tokens',
85
+ description: `Extract design tokens (colors, spacing, radii) from a Figma file's variables.
86
+
87
+ Use this to generate design tokens from Figma variables in various formats for use in code. Supports CSS, SCSS, Tailwind, and JSON output formats.
88
+
89
+ Requires FIGMA_ACCESS_TOKEN environment variable to be set.`,
90
+ parameters: {
91
+ type: 'object',
92
+ properties: {
93
+ file_key: {
94
+ type: 'string',
95
+ description: 'Figma file key containing design tokens/variables',
96
+ },
97
+ format: {
98
+ type: 'string',
99
+ enum: ['json', 'tailwind', 'css', 'scss'],
100
+ description: 'Output format (default: json)',
101
+ default: 'json',
102
+ },
103
+ color_format: {
104
+ type: 'string',
105
+ enum: ['hex', 'rgb', 'hsl'],
106
+ description: 'Color output format (default: hex)',
107
+ default: 'hex',
108
+ },
109
+ dimension_unit: {
110
+ type: 'string',
111
+ enum: ['px', 'rem'],
112
+ description: 'Dimension unit (default: px)',
113
+ default: 'px',
114
+ },
115
+ rem_base: {
116
+ type: 'number',
117
+ description: 'Base value for rem conversion (default: 16)',
118
+ default: 16,
119
+ },
120
+ },
121
+ required: ['file_key'],
122
+ },
123
+ usageNotes: [
124
+ 'Use tailwind format for Tailwind CSS configuration',
125
+ 'Use css format for CSS custom properties',
126
+ 'Use scss format for SCSS variables',
127
+ 'Set rem for dimension_unit for responsive designs',
128
+ 'Adjust rem_base to match your project settings',
129
+ ],
130
+ constraints: [
131
+ 'Requires FIGMA_ACCESS_TOKEN environment variable',
132
+ 'Only extracts published variables',
133
+ 'Complex variable modes may not be fully supported',
134
+ ],
135
+ antiPatterns: [
136
+ 'Using px units when rem is more appropriate',
137
+ 'Not matching color_format to project standards',
138
+ ],
139
+ examples: [
140
+ {
141
+ description: 'Extract tokens for Tailwind',
142
+ scenario: 'Generate Tailwind config from Figma',
143
+ input: { file_key: 'abc123xyz', format: 'tailwind', dimension_unit: 'rem' },
144
+ expectedBehavior: 'Returns Tailwind-compatible token configuration',
145
+ },
146
+ ],
147
+ tokenCost: 350,
148
+ safetyLevel: 'safe',
149
+ requiresConfirmation: false,
150
+ categories: ['design'],
151
+ alternatives: [],
152
+ relatedTools: ['figma_map', 'figma_audit'],
153
+ };
154
+ export const figmaAuditTool = {
155
+ name: 'figma_audit',
156
+ displayName: 'Figma Audit',
157
+ description: `Run a design audit on a Figma file to check for naming conventions, missing auto-layout, and other best practices.
158
+
159
+ Use this to analyze a Figma file for design system compliance and best practices. Returns a list of issues with severity and recommendations.
160
+
161
+ Requires FIGMA_ACCESS_TOKEN environment variable to be set.`,
162
+ parameters: {
163
+ type: 'object',
164
+ properties: {
165
+ file_key: {
166
+ type: 'string',
167
+ description: 'Figma file key to audit',
168
+ },
169
+ depth: {
170
+ type: 'number',
171
+ description: 'Maximum depth to traverse (optional)',
172
+ },
173
+ rules: {
174
+ type: 'array',
175
+ description: "Specific rules to run (e.g., ['layer-naming', 'missing-autolayout']). Runs all by default.",
176
+ items: { type: 'string' },
177
+ },
178
+ exclude_rules: {
179
+ type: 'array',
180
+ description: 'Rules to exclude from the audit',
181
+ items: { type: 'string' },
182
+ },
183
+ },
184
+ required: ['file_key'],
185
+ },
186
+ usageNotes: [
187
+ 'Run without rules parameter to check all rules',
188
+ 'Use exclude_rules to skip known intentional violations',
189
+ 'Focus on high-severity issues first',
190
+ 'Common rules: layer-naming, missing-autolayout, color-consistency',
191
+ ],
192
+ constraints: [
193
+ 'Requires FIGMA_ACCESS_TOKEN environment variable',
194
+ 'Large files may take longer to audit',
195
+ 'Custom rules are not supported',
196
+ ],
197
+ antiPatterns: [
198
+ 'Ignoring all audit results without review',
199
+ 'Running on very large files without depth limit',
200
+ ],
201
+ examples: [
202
+ {
203
+ description: 'Full design audit',
204
+ scenario: 'Check file for all best practices',
205
+ input: { file_key: 'abc123xyz' },
206
+ expectedBehavior: 'Returns list of issues with severity levels',
207
+ },
208
+ {
209
+ description: 'Focused audit',
210
+ scenario: 'Check only naming conventions',
211
+ input: { file_key: 'abc123xyz', rules: ['layer-naming'] },
212
+ expectedBehavior: 'Returns only naming convention issues',
213
+ },
214
+ ],
215
+ tokenCost: 350,
216
+ safetyLevel: 'safe',
217
+ requiresConfirmation: false,
218
+ categories: ['design'],
219
+ alternatives: [],
220
+ relatedTools: ['figma_map', 'figma_tokens'],
221
+ };
222
+ export const figmaSearchTool = {
223
+ name: 'figma_search',
224
+ displayName: 'Figma Search',
225
+ description: `Search for nodes in a Figma file by name, type, or text content.
226
+
227
+ Use this to find specific elements within a Figma design file. Can search by node name, node type, or text content.
228
+
229
+ Requires FIGMA_ACCESS_TOKEN environment variable to be set.`,
230
+ parameters: {
231
+ type: 'object',
232
+ properties: {
233
+ file_key: {
234
+ type: 'string',
235
+ description: 'Figma file key to search in',
236
+ },
237
+ name: {
238
+ type: 'string',
239
+ description: 'Search by node name (partial match)',
240
+ },
241
+ type: {
242
+ type: 'string',
243
+ description: 'Filter by node type (e.g., FRAME, TEXT, COMPONENT)',
244
+ },
245
+ text: {
246
+ type: 'string',
247
+ description: 'Search text nodes by content',
248
+ },
249
+ limit: {
250
+ type: 'number',
251
+ description: 'Maximum results to return (default: 10)',
252
+ default: 10,
253
+ },
254
+ },
255
+ required: ['file_key'],
256
+ },
257
+ usageNotes: [
258
+ 'At least one search parameter (name, type, or text) is recommended',
259
+ 'Combine parameters to narrow results',
260
+ 'Common types: FRAME, TEXT, COMPONENT, INSTANCE, GROUP',
261
+ 'Name search is case-insensitive partial match',
262
+ ],
263
+ constraints: [
264
+ 'Requires FIGMA_ACCESS_TOKEN environment variable',
265
+ 'Large files may have many matches',
266
+ 'Limit results for faster response',
267
+ ],
268
+ antiPatterns: [
269
+ 'Searching without any filter parameters',
270
+ 'Setting very high limit on large files',
271
+ ],
272
+ examples: [
273
+ {
274
+ description: 'Find buttons',
275
+ scenario: 'Search for all button components',
276
+ input: { file_key: 'abc123xyz', name: 'button', type: 'COMPONENT' },
277
+ expectedBehavior: 'Returns button components matching the name',
278
+ },
279
+ {
280
+ description: 'Find specific text',
281
+ scenario: 'Find nodes containing specific copy',
282
+ input: { file_key: 'abc123xyz', text: 'Sign up' },
283
+ expectedBehavior: 'Returns text nodes containing "Sign up"',
284
+ },
285
+ ],
286
+ tokenCost: 300,
287
+ safetyLevel: 'safe',
288
+ requiresConfirmation: false,
289
+ categories: ['design'],
290
+ alternatives: [],
291
+ relatedTools: ['figma_map'],
292
+ };
293
+ export const figmaAliasListTool = {
294
+ name: 'figma_alias_list',
295
+ displayName: 'Figma Alias List',
296
+ description: `List all saved Figma design aliases (shortcuts to specific files/nodes).
297
+
298
+ Aliases are saved shortcuts that map a friendly name to a Figma file key and optional node ID. Use this to see all configured aliases.`,
299
+ parameters: {
300
+ type: 'object',
301
+ properties: {},
302
+ required: [],
303
+ },
304
+ usageNotes: [
305
+ 'Returns all configured Figma aliases',
306
+ 'Aliases simplify referencing frequently used designs',
307
+ 'Use figma_alias_resolve to get the actual file key from an alias',
308
+ ],
309
+ constraints: ['Aliases must be configured in project settings'],
310
+ antiPatterns: [],
311
+ examples: [
312
+ {
313
+ description: 'List all aliases',
314
+ scenario: 'See available design shortcuts',
315
+ input: {},
316
+ expectedBehavior: 'Returns list of alias names and descriptions',
317
+ },
318
+ ],
319
+ tokenCost: 150,
320
+ safetyLevel: 'safe',
321
+ requiresConfirmation: false,
322
+ categories: ['design'],
323
+ alternatives: [],
324
+ relatedTools: ['figma_alias_resolve', 'figma_map'],
325
+ };
326
+ export const figmaAliasResolveTool = {
327
+ name: 'figma_alias_resolve',
328
+ displayName: 'Figma Alias Resolve',
329
+ description: `Resolve a design alias to its Figma file key and node ID.
330
+
331
+ Use this to convert a friendly alias name into the actual Figma file key and optional node ID for use with other Figma tools.`,
332
+ parameters: {
333
+ type: 'object',
334
+ properties: {
335
+ alias: {
336
+ type: 'string',
337
+ description: 'Alias name to resolve',
338
+ examples: ['main-design', 'component-library', 'icons'],
339
+ },
340
+ },
341
+ required: ['alias'],
342
+ },
343
+ usageNotes: [
344
+ 'Use figma_alias_list first to see available aliases',
345
+ 'Resolved file_key can be used with other figma_* tools',
346
+ 'Node ID is optional and points to a specific element',
347
+ ],
348
+ constraints: [
349
+ 'Alias must exist in project configuration',
350
+ 'Returns error for unknown aliases',
351
+ ],
352
+ antiPatterns: ['Guessing alias names without checking figma_alias_list'],
353
+ examples: [
354
+ {
355
+ description: 'Resolve an alias',
356
+ scenario: 'Get file key for the main design',
357
+ input: { alias: 'main-design' },
358
+ expectedBehavior: 'Returns file_key and optional node_id',
359
+ },
360
+ ],
361
+ tokenCost: 150,
362
+ safetyLevel: 'safe',
363
+ requiresConfirmation: false,
364
+ categories: ['design'],
365
+ alternatives: [],
366
+ relatedTools: ['figma_alias_list', 'figma_map'],
367
+ };
368
+ //# sourceMappingURL=design.js.map
@@ -0,0 +1 @@
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,KAAK;aACf;SACF;Q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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"}
@@ -0,0 +1,48 @@
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
+ export { bashTool } from './bash.js';
9
+ export { bashOutputTool } from './bash-output.js';
10
+ export { viewFileTool } from './view-file.js';
11
+ export { createFileTool } from './create-file.js';
12
+ export { strReplaceEditorTool } from './str-replace-editor.js';
13
+ export { multiEditTool } from './multi-edit.js';
14
+ export { searchTool } from './search.js';
15
+ export { createTodoListTool, updateTodoListTool } from './todo.js';
16
+ export { askUserTool } from './ask-user.js';
17
+ export { axAgentTool } from './ax-agent.js';
18
+ export { figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool, } from './design.js';
19
+ /**
20
+ * All tool definitions - Single Source of Truth
21
+ *
22
+ * This array contains all rich tool definitions with Claude Code-quality
23
+ * descriptions, usage notes, constraints, and examples.
24
+ *
25
+ * OpenAI and Anthropic formats are DERIVED from these definitions using
26
+ * the format generators.
27
+ */
28
+ export declare const TOOL_DEFINITIONS: ToolDefinition[];
29
+ /**
30
+ * Get a tool definition by name
31
+ */
32
+ export declare function getToolDefinition(name: string): ToolDefinition | undefined;
33
+ /**
34
+ * Get tool definitions by category
35
+ */
36
+ export declare function getToolsByCategory(category: string): ToolDefinition[];
37
+ /**
38
+ * Get tool definitions by safety level
39
+ */
40
+ export declare function getToolsBySafetyLevel(level: 'safe' | 'moderate' | 'dangerous'): ToolDefinition[];
41
+ /**
42
+ * Get tool definitions that require confirmation
43
+ */
44
+ export declare function getToolsRequiringConfirmation(): ToolDefinition[];
45
+ /**
46
+ * Calculate total token cost for all tools
47
+ */
48
+ export declare function getTotalTokenCost(): number;
@@ -0,0 +1,96 @@
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
+ // Core tools
8
+ export { bashTool } from './bash.js';
9
+ export { bashOutputTool } from './bash-output.js';
10
+ export { viewFileTool } from './view-file.js';
11
+ export { createFileTool } from './create-file.js';
12
+ export { strReplaceEditorTool } from './str-replace-editor.js';
13
+ export { multiEditTool } from './multi-edit.js';
14
+ export { searchTool } from './search.js';
15
+ export { createTodoListTool, updateTodoListTool } from './todo.js';
16
+ export { askUserTool } from './ask-user.js';
17
+ export { axAgentTool } from './ax-agent.js';
18
+ export { figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool, } from './design.js';
19
+ // Import all tools for the array
20
+ import { bashTool } from './bash.js';
21
+ import { bashOutputTool } from './bash-output.js';
22
+ import { viewFileTool } from './view-file.js';
23
+ import { createFileTool } from './create-file.js';
24
+ import { strReplaceEditorTool } from './str-replace-editor.js';
25
+ import { multiEditTool } from './multi-edit.js';
26
+ import { searchTool } from './search.js';
27
+ import { createTodoListTool, updateTodoListTool } from './todo.js';
28
+ import { askUserTool } from './ask-user.js';
29
+ import { axAgentTool } from './ax-agent.js';
30
+ import { figmaMapTool, figmaTokensTool, figmaAuditTool, figmaSearchTool, figmaAliasListTool, figmaAliasResolveTool, } from './design.js';
31
+ /**
32
+ * All tool definitions - Single Source of Truth
33
+ *
34
+ * This array contains all rich tool definitions with Claude Code-quality
35
+ * descriptions, usage notes, constraints, and examples.
36
+ *
37
+ * OpenAI and Anthropic formats are DERIVED from these definitions using
38
+ * the format generators.
39
+ */
40
+ export const TOOL_DEFINITIONS = [
41
+ // File operations
42
+ viewFileTool,
43
+ createFileTool,
44
+ strReplaceEditorTool,
45
+ multiEditTool,
46
+ // Command execution
47
+ bashTool,
48
+ bashOutputTool,
49
+ // Search
50
+ searchTool,
51
+ // Task management
52
+ createTodoListTool,
53
+ updateTodoListTool,
54
+ // User interaction
55
+ askUserTool,
56
+ // Agent delegation
57
+ axAgentTool,
58
+ // Design tools
59
+ figmaMapTool,
60
+ figmaTokensTool,
61
+ figmaAuditTool,
62
+ figmaSearchTool,
63
+ figmaAliasListTool,
64
+ figmaAliasResolveTool,
65
+ ];
66
+ /**
67
+ * Get a tool definition by name
68
+ */
69
+ export function getToolDefinition(name) {
70
+ return TOOL_DEFINITIONS.find((t) => t.name === name);
71
+ }
72
+ /**
73
+ * Get tool definitions by category
74
+ */
75
+ export function getToolsByCategory(category) {
76
+ return TOOL_DEFINITIONS.filter((t) => t.categories.includes(category));
77
+ }
78
+ /**
79
+ * Get tool definitions by safety level
80
+ */
81
+ export function getToolsBySafetyLevel(level) {
82
+ return TOOL_DEFINITIONS.filter((t) => t.safetyLevel === level);
83
+ }
84
+ /**
85
+ * Get tool definitions that require confirmation
86
+ */
87
+ export function getToolsRequiringConfirmation() {
88
+ return TOOL_DEFINITIONS.filter((t) => t.requiresConfirmation);
89
+ }
90
+ /**
91
+ * Calculate total token cost for all tools
92
+ */
93
+ export function getTotalTokenCost() {
94
+ return TOOL_DEFINITIONS.reduce((sum, t) => sum + t.tokenCost, 0);
95
+ }
96
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,aAAa;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,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AC"}
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,123 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-edit.js","sourceRoot":"","sources":["../../../src/tools/definitions/multi-edit.ts"],"names":[],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O,EAAE,eAAe;wBACxB,OAAO,EAAE;SACZ;qBACE;iBACF;aACF;YACD,gBAAgB,EAAE,uCAAuC;SAC1D;QACD;YACE,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,yCAAyC;YACnD,KAAK,EAAE;gBACL,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE;oBACL;wBACE,OAAO,EAAE,uBAAuB;wBAChC,OAAO,EAAE,uBAAuB;qBACjC;oBACD;wBACE,OAAO,EAAE,wBAAwB;wBACjC,OAAO,EAAE,wBAAwB;qBAClC;oBACD;wBACE,OAAO,EAAE,sBAAsB;wBAC/B,OAAO,EAAE,sBAAsB;qBAChC;iBACF;aACF;YACD,gBAAgB,EAAE,oDAAoD;SACvE;KACF;IAED,SAAS,EAAE,GAAG;IACd,WAAW,EAAE,UAAU;IACvB,oBAAoB,EAAE,KAAK;IAE3B,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,YAAY,EAAE,CAAC,oBAAoB,CAAC;IACpC,YAAY,EAAE,CAAC,WAAW,EAAE,oBAAoB,CAAC;CAClD,CAAC"}
@@ -0,0 +1,7 @@
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;