@defai.digital/ax-cli 4.4.7 → 4.4.11
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.
- package/bin/ax-cli +1 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +158 -9
- package/dist/index.js.map +1 -1
- package/dist/setup.d.ts +27 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +591 -0
- package/dist/setup.js.map +1 -0
- package/package.json +43 -135
- package/LICENSE +0 -22
- package/README.md +0 -420
- package/config-defaults/messages.yaml +0 -75
- package/config-defaults/models.yaml +0 -57
- package/config-defaults/prompts.yaml +0 -948
- package/config-defaults/settings.yaml +0 -157
- package/dist/agent/agent-executor.d.ts +0 -61
- package/dist/agent/agent-executor.js +0 -194
- package/dist/agent/agent-executor.js.map +0 -1
- package/dist/agent/agent-router.d.ts +0 -68
- package/dist/agent/agent-router.js +0 -242
- package/dist/agent/agent-router.js.map +0 -1
- package/dist/agent/context-manager.d.ts +0 -122
- package/dist/agent/context-manager.js +0 -406
- package/dist/agent/context-manager.js.map +0 -1
- package/dist/agent/core/index.d.ts +0 -8
- package/dist/agent/core/index.js +0 -9
- package/dist/agent/core/index.js.map +0 -1
- package/dist/agent/core/types.d.ts +0 -92
- package/dist/agent/core/types.js +0 -11
- package/dist/agent/core/types.js.map +0 -1
- package/dist/agent/dependency-resolver.d.ts +0 -90
- package/dist/agent/dependency-resolver.js +0 -366
- package/dist/agent/dependency-resolver.js.map +0 -1
- package/dist/agent/execution/index.d.ts +0 -9
- package/dist/agent/execution/index.js +0 -9
- package/dist/agent/execution/index.js.map +0 -1
- package/dist/agent/execution/tool-executor.d.ts +0 -93
- package/dist/agent/execution/tool-executor.js +0 -552
- package/dist/agent/execution/tool-executor.js.map +0 -1
- package/dist/agent/index.d.ts +0 -14
- package/dist/agent/index.js +0 -145
- package/dist/agent/index.js.map +0 -1
- package/dist/agent/llm-agent.d.ts +0 -368
- package/dist/agent/llm-agent.js +0 -1931
- package/dist/agent/llm-agent.js.map +0 -1
- package/dist/agent/loop-detector.d.ts +0 -72
- package/dist/agent/loop-detector.js +0 -335
- package/dist/agent/loop-detector.js.map +0 -1
- package/dist/agent/parallel-tools.d.ts +0 -69
- package/dist/agent/parallel-tools.js +0 -188
- package/dist/agent/parallel-tools.js.map +0 -1
- package/dist/agent/planning/index.d.ts +0 -9
- package/dist/agent/planning/index.js +0 -9
- package/dist/agent/planning/index.js.map +0 -1
- package/dist/agent/planning/plan-executor.d.ts +0 -79
- package/dist/agent/planning/plan-executor.js +0 -240
- package/dist/agent/planning/plan-executor.js.map +0 -1
- package/dist/agent/progress-tracker.d.ts +0 -94
- package/dist/agent/progress-tracker.js +0 -225
- package/dist/agent/progress-tracker.js.map +0 -1
- package/dist/agent/specialized/analysis-agent.d.ts +0 -11
- package/dist/agent/specialized/analysis-agent.js +0 -24
- package/dist/agent/specialized/analysis-agent.js.map +0 -1
- package/dist/agent/specialized/debug-agent.d.ts +0 -11
- package/dist/agent/specialized/debug-agent.js +0 -46
- package/dist/agent/specialized/debug-agent.js.map +0 -1
- package/dist/agent/specialized/documentation-agent.d.ts +0 -11
- package/dist/agent/specialized/documentation-agent.js +0 -24
- package/dist/agent/specialized/documentation-agent.js.map +0 -1
- package/dist/agent/specialized/index.d.ts +0 -11
- package/dist/agent/specialized/index.js +0 -12
- package/dist/agent/specialized/index.js.map +0 -1
- package/dist/agent/specialized/performance-agent.d.ts +0 -11
- package/dist/agent/specialized/performance-agent.js +0 -24
- package/dist/agent/specialized/performance-agent.js.map +0 -1
- package/dist/agent/specialized/refactoring-agent.d.ts +0 -11
- package/dist/agent/specialized/refactoring-agent.js +0 -24
- package/dist/agent/specialized/refactoring-agent.js.map +0 -1
- package/dist/agent/specialized/testing-agent.d.ts +0 -11
- package/dist/agent/specialized/testing-agent.js +0 -24
- package/dist/agent/specialized/testing-agent.js.map +0 -1
- package/dist/agent/status-reporter.d.ts +0 -114
- package/dist/agent/status-reporter.js +0 -335
- package/dist/agent/status-reporter.js.map +0 -1
- package/dist/agent/streaming/index.d.ts +0 -9
- package/dist/agent/streaming/index.js +0 -9
- package/dist/agent/streaming/index.js.map +0 -1
- package/dist/agent/streaming/stream-handler.d.ts +0 -62
- package/dist/agent/streaming/stream-handler.js +0 -217
- package/dist/agent/streaming/stream-handler.js.map +0 -1
- package/dist/agent/subagent-orchestrator.d.ts +0 -166
- package/dist/agent/subagent-orchestrator.js +0 -487
- package/dist/agent/subagent-orchestrator.js.map +0 -1
- package/dist/agent/subagent-types.d.ts +0 -261
- package/dist/agent/subagent-types.js +0 -257
- package/dist/agent/subagent-types.js.map +0 -1
- package/dist/agent/subagent.d.ts +0 -116
- package/dist/agent/subagent.js +0 -507
- package/dist/agent/subagent.js.map +0 -1
- package/dist/checkpoint/index.d.ts +0 -9
- package/dist/checkpoint/index.js +0 -11
- package/dist/checkpoint/index.js.map +0 -1
- package/dist/checkpoint/manager.d.ts +0 -101
- package/dist/checkpoint/manager.js +0 -407
- package/dist/checkpoint/manager.js.map +0 -1
- package/dist/checkpoint/storage.d.ts +0 -39
- package/dist/checkpoint/storage.js +0 -350
- package/dist/checkpoint/storage.js.map +0 -1
- package/dist/checkpoint/types.d.ts +0 -111
- package/dist/checkpoint/types.js +0 -17
- package/dist/checkpoint/types.js.map +0 -1
- package/dist/commands/cache.d.ts +0 -7
- package/dist/commands/cache.js +0 -284
- package/dist/commands/cache.js.map +0 -1
- package/dist/commands/custom-commands.d.ts +0 -77
- package/dist/commands/custom-commands.js +0 -251
- package/dist/commands/custom-commands.js.map +0 -1
- package/dist/commands/design.d.ts +0 -18
- package/dist/commands/design.js +0 -511
- package/dist/commands/design.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -6
- package/dist/commands/doctor.js +0 -773
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/frontend.d.ts +0 -9
- package/dist/commands/frontend.js +0 -645
- package/dist/commands/frontend.js.map +0 -1
- package/dist/commands/init/wizard.d.ts +0 -55
- package/dist/commands/init/wizard.js +0 -189
- package/dist/commands/init/wizard.js.map +0 -1
- package/dist/commands/init.d.ts +0 -8
- package/dist/commands/init.js +0 -195
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/mcp-migrate.d.ts +0 -9
- package/dist/commands/mcp-migrate.js +0 -175
- package/dist/commands/mcp-migrate.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -2
- package/dist/commands/mcp.js +0 -1292
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/memory.d.ts +0 -6
- package/dist/commands/memory.js +0 -555
- package/dist/commands/memory.js.map +0 -1
- package/dist/commands/models.d.ts +0 -5
- package/dist/commands/models.js +0 -213
- package/dist/commands/models.js.map +0 -1
- package/dist/commands/plan.d.ts +0 -43
- package/dist/commands/plan.js +0 -362
- package/dist/commands/plan.js.map +0 -1
- package/dist/commands/rewind.d.ts +0 -19
- package/dist/commands/rewind.js +0 -221
- package/dist/commands/rewind.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -14
- package/dist/commands/setup.js +0 -733
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/status.d.ts +0 -7
- package/dist/commands/status.js +0 -437
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/templates.d.ts +0 -5
- package/dist/commands/templates.js +0 -245
- package/dist/commands/templates.js.map +0 -1
- package/dist/commands/update.d.ts +0 -49
- package/dist/commands/update.js +0 -366
- package/dist/commands/update.js.map +0 -1
- package/dist/commands/usage.d.ts +0 -8
- package/dist/commands/usage.js +0 -264
- package/dist/commands/usage.js.map +0 -1
- package/dist/commands/vscode.d.ts +0 -7
- package/dist/commands/vscode.js +0 -419
- package/dist/commands/vscode.js.map +0 -1
- package/dist/constants.d.ts +0 -236
- package/dist/constants.js +0 -288
- package/dist/constants.js.map +0 -1
- package/dist/design/figma-alias.d.ts +0 -170
- package/dist/design/figma-alias.js +0 -577
- package/dist/design/figma-alias.js.map +0 -1
- package/dist/design/figma-audit.d.ts +0 -40
- package/dist/design/figma-audit.js +0 -383
- package/dist/design/figma-audit.js.map +0 -1
- package/dist/design/figma-client.d.ts +0 -131
- package/dist/design/figma-client.js +0 -369
- package/dist/design/figma-client.js.map +0 -1
- package/dist/design/figma-map.d.ts +0 -29
- package/dist/design/figma-map.js +0 -346
- package/dist/design/figma-map.js.map +0 -1
- package/dist/design/figma-tokens.d.ts +0 -73
- package/dist/design/figma-tokens.js +0 -448
- package/dist/design/figma-tokens.js.map +0 -1
- package/dist/design/index.d.ts +0 -13
- package/dist/design/index.js +0 -20
- package/dist/design/index.js.map +0 -1
- package/dist/design/types.d.ts +0 -98
- package/dist/design/types.js +0 -9
- package/dist/design/types.js.map +0 -1
- package/dist/hooks/hook-runner.d.ts +0 -142
- package/dist/hooks/hook-runner.js +0 -436
- package/dist/hooks/hook-runner.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -9
- package/dist/hooks/index.js +0 -10
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/manager.d.ts +0 -84
- package/dist/hooks/manager.js +0 -348
- package/dist/hooks/manager.js.map +0 -1
- package/dist/hooks/types.d.ts +0 -134
- package/dist/hooks/types.js +0 -9
- package/dist/hooks/types.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/ipc/index.d.ts +0 -9
- package/dist/ipc/index.js +0 -10
- package/dist/ipc/index.js.map +0 -1
- package/dist/ipc/vscode-client.d.ts +0 -200
- package/dist/ipc/vscode-client.js +0 -495
- package/dist/ipc/vscode-client.js.map +0 -1
- package/dist/llm/client.d.ts +0 -205
- package/dist/llm/client.js +0 -735
- package/dist/llm/client.js.map +0 -1
- package/dist/llm/tools.d.ts +0 -102
- package/dist/llm/tools.js +0 -275
- package/dist/llm/tools.js.map +0 -1
- package/dist/llm/types.d.ts +0 -428
- package/dist/llm/types.js +0 -194
- package/dist/llm/types.js.map +0 -1
- package/dist/mcp/automatosx-auto-discovery.d.ts +0 -66
- package/dist/mcp/automatosx-auto-discovery.js +0 -169
- package/dist/mcp/automatosx-auto-discovery.js.map +0 -1
- package/dist/mcp/automatosx-loader.d.ts +0 -99
- package/dist/mcp/automatosx-loader.js +0 -250
- package/dist/mcp/automatosx-loader.js.map +0 -1
- package/dist/mcp/cancellation.d.ts +0 -182
- package/dist/mcp/cancellation.js +0 -275
- package/dist/mcp/cancellation.js.map +0 -1
- package/dist/mcp/client-v2.d.ts +0 -500
- package/dist/mcp/client-v2.js +0 -1433
- package/dist/mcp/client-v2.js.map +0 -1
- package/dist/mcp/client.d.ts +0 -170
- package/dist/mcp/client.js +0 -232
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/config-detector.d.ts +0 -90
- package/dist/mcp/config-detector.js +0 -250
- package/dist/mcp/config-detector.js.map +0 -1
- package/dist/mcp/config-migrator.d.ts +0 -68
- package/dist/mcp/config-migrator.js +0 -291
- package/dist/mcp/config-migrator.js.map +0 -1
- package/dist/mcp/config.d.ts +0 -24
- package/dist/mcp/config.js +0 -273
- package/dist/mcp/config.js.map +0 -1
- package/dist/mcp/constants.d.ts +0 -66
- package/dist/mcp/constants.js +0 -85
- package/dist/mcp/constants.js.map +0 -1
- package/dist/mcp/content-length-transport.d.ts +0 -106
- package/dist/mcp/content-length-transport.js +0 -413
- package/dist/mcp/content-length-transport.js.map +0 -1
- package/dist/mcp/debug.d.ts +0 -211
- package/dist/mcp/debug.js +0 -404
- package/dist/mcp/debug.js.map +0 -1
- package/dist/mcp/error-formatter.d.ts +0 -40
- package/dist/mcp/error-formatter.js +0 -207
- package/dist/mcp/error-formatter.js.map +0 -1
- package/dist/mcp/error-remediation.d.ts +0 -45
- package/dist/mcp/error-remediation.js +0 -291
- package/dist/mcp/error-remediation.js.map +0 -1
- package/dist/mcp/health.d.ts +0 -120
- package/dist/mcp/health.js +0 -267
- package/dist/mcp/health.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -56
- package/dist/mcp/index.js +0 -89
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/invariants.d.ts +0 -141
- package/dist/mcp/invariants.js +0 -243
- package/dist/mcp/invariants.js.map +0 -1
- package/dist/mcp/mutex-safe.d.ts +0 -151
- package/dist/mcp/mutex-safe.js +0 -260
- package/dist/mcp/mutex-safe.js.map +0 -1
- package/dist/mcp/progress.d.ts +0 -155
- package/dist/mcp/progress.js +0 -252
- package/dist/mcp/progress.js.map +0 -1
- package/dist/mcp/prompts.d.ts +0 -68
- package/dist/mcp/prompts.js +0 -129
- package/dist/mcp/prompts.js.map +0 -1
- package/dist/mcp/provider-mcp-loader.d.ts +0 -130
- package/dist/mcp/provider-mcp-loader.js +0 -292
- package/dist/mcp/provider-mcp-loader.js.map +0 -1
- package/dist/mcp/reconnection.d.ts +0 -101
- package/dist/mcp/reconnection.js +0 -253
- package/dist/mcp/reconnection.js.map +0 -1
- package/dist/mcp/registry.d.ts +0 -75
- package/dist/mcp/registry.js +0 -276
- package/dist/mcp/registry.js.map +0 -1
- package/dist/mcp/resources.d.ts +0 -58
- package/dist/mcp/resources.js +0 -144
- package/dist/mcp/resources.js.map +0 -1
- package/dist/mcp/schema-validator.d.ts +0 -82
- package/dist/mcp/schema-validator.js +0 -161
- package/dist/mcp/schema-validator.js.map +0 -1
- package/dist/mcp/ssrf-protection.d.ts +0 -86
- package/dist/mcp/ssrf-protection.js +0 -311
- package/dist/mcp/ssrf-protection.js.map +0 -1
- package/dist/mcp/subscriptions.d.ts +0 -168
- package/dist/mcp/subscriptions.js +0 -248
- package/dist/mcp/subscriptions.js.map +0 -1
- package/dist/mcp/templates.d.ts +0 -52
- package/dist/mcp/templates.js +0 -627
- package/dist/mcp/templates.js.map +0 -1
- package/dist/mcp/transports.d.ts +0 -80
- package/dist/mcp/transports.js +0 -237
- package/dist/mcp/transports.js.map +0 -1
- package/dist/mcp/type-safety.d.ts +0 -225
- package/dist/mcp/type-safety.js +0 -237
- package/dist/mcp/type-safety.js.map +0 -1
- package/dist/mcp/validation.d.ts +0 -29
- package/dist/mcp/validation.js +0 -339
- package/dist/mcp/validation.js.map +0 -1
- package/dist/mcp/zai-detector.d.ts +0 -63
- package/dist/mcp/zai-detector.js +0 -193
- package/dist/mcp/zai-detector.js.map +0 -1
- package/dist/mcp/zai-templates.d.ts +0 -90
- package/dist/mcp/zai-templates.js +0 -157
- package/dist/mcp/zai-templates.js.map +0 -1
- package/dist/memory/context-generator.d.ts +0 -84
- package/dist/memory/context-generator.js +0 -546
- package/dist/memory/context-generator.js.map +0 -1
- package/dist/memory/context-injector.d.ts +0 -97
- package/dist/memory/context-injector.js +0 -159
- package/dist/memory/context-injector.js.map +0 -1
- package/dist/memory/context-store.d.ts +0 -103
- package/dist/memory/context-store.js +0 -264
- package/dist/memory/context-store.js.map +0 -1
- package/dist/memory/index.d.ts +0 -43
- package/dist/memory/index.js +0 -49
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/provider-context-store.d.ts +0 -127
- package/dist/memory/provider-context-store.js +0 -385
- package/dist/memory/provider-context-store.js.map +0 -1
- package/dist/memory/schemas.d.ts +0 -118
- package/dist/memory/schemas.js +0 -106
- package/dist/memory/schemas.js.map +0 -1
- package/dist/memory/stats-collector.d.ts +0 -73
- package/dist/memory/stats-collector.js +0 -170
- package/dist/memory/stats-collector.js.map +0 -1
- package/dist/memory/types.d.ts +0 -177
- package/dist/memory/types.js +0 -73
- package/dist/memory/types.js.map +0 -1
- package/dist/permissions/index.d.ts +0 -6
- package/dist/permissions/index.js +0 -7
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/permission-manager.d.ts +0 -149
- package/dist/permissions/permission-manager.js +0 -410
- package/dist/permissions/permission-manager.js.map +0 -1
- package/dist/planner/dependency-resolver.d.ts +0 -72
- package/dist/planner/dependency-resolver.js +0 -272
- package/dist/planner/dependency-resolver.js.map +0 -1
- package/dist/planner/index.d.ts +0 -12
- package/dist/planner/index.js +0 -28
- package/dist/planner/index.js.map +0 -1
- package/dist/planner/plan-generator.d.ts +0 -74
- package/dist/planner/plan-generator.js +0 -244
- package/dist/planner/plan-generator.js.map +0 -1
- package/dist/planner/plan-storage.d.ts +0 -113
- package/dist/planner/plan-storage.js +0 -398
- package/dist/planner/plan-storage.js.map +0 -1
- package/dist/planner/prompts/planning-prompt.d.ts +0 -62
- package/dist/planner/prompts/planning-prompt.js +0 -414
- package/dist/planner/prompts/planning-prompt.js.map +0 -1
- package/dist/planner/task-planner.d.ts +0 -139
- package/dist/planner/task-planner.js +0 -532
- package/dist/planner/task-planner.js.map +0 -1
- package/dist/planner/token-estimator.d.ts +0 -63
- package/dist/planner/token-estimator.js +0 -295
- package/dist/planner/token-estimator.js.map +0 -1
- package/dist/planner/types.d.ts +0 -425
- package/dist/planner/types.js +0 -213
- package/dist/planner/types.js.map +0 -1
- package/dist/provider/config.d.ts +0 -227
- package/dist/provider/config.js +0 -430
- package/dist/provider/config.js.map +0 -1
- package/dist/schemas/api-schemas.d.ts +0 -45
- package/dist/schemas/api-schemas.js +0 -129
- package/dist/schemas/api-schemas.js.map +0 -1
- package/dist/schemas/confirmation-schemas.d.ts +0 -39
- package/dist/schemas/confirmation-schemas.js +0 -48
- package/dist/schemas/confirmation-schemas.js.map +0 -1
- package/dist/schemas/index-unified.d.ts +0 -12
- package/dist/schemas/index-unified.js +0 -17
- package/dist/schemas/index-unified.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -83
- package/dist/schemas/index.js +0 -139
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/settings-schemas.d.ts +0 -186
- package/dist/schemas/settings-schemas.js +0 -324
- package/dist/schemas/settings-schemas.js.map +0 -1
- package/dist/schemas/tool-schemas.d.ts +0 -127
- package/dist/schemas/tool-schemas.js +0 -84
- package/dist/schemas/tool-schemas.js.map +0 -1
- package/dist/schemas/yaml-schemas.d.ts +0 -231
- package/dist/schemas/yaml-schemas.js +0 -199
- package/dist/schemas/yaml-schemas.js.map +0 -1
- package/dist/sdk/errors.d.ts +0 -100
- package/dist/sdk/errors.js +0 -138
- package/dist/sdk/errors.js.map +0 -1
- package/dist/sdk/index.d.ts +0 -901
- package/dist/sdk/index.js +0 -1272
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/progress-reporter.d.ts +0 -123
- package/dist/sdk/progress-reporter.js +0 -220
- package/dist/sdk/progress-reporter.js.map +0 -1
- package/dist/sdk/testing.d.ts +0 -427
- package/dist/sdk/testing.js +0 -725
- package/dist/sdk/testing.js.map +0 -1
- package/dist/sdk/tool-registry.d.ts +0 -194
- package/dist/sdk/tool-registry.js +0 -326
- package/dist/sdk/tool-registry.js.map +0 -1
- package/dist/sdk/types.d.ts +0 -53
- package/dist/sdk/types.js +0 -8
- package/dist/sdk/types.js.map +0 -1
- package/dist/sdk/unified-logger.d.ts +0 -173
- package/dist/sdk/unified-logger.js +0 -327
- package/dist/sdk/unified-logger.js.map +0 -1
- package/dist/sdk/version.d.ts +0 -163
- package/dist/sdk/version.js +0 -205
- package/dist/sdk/version.js.map +0 -1
- package/dist/tools/ask-user.d.ts +0 -126
- package/dist/tools/ask-user.js +0 -290
- package/dist/tools/ask-user.js.map +0 -1
- package/dist/tools/ax-agent.d.ts +0 -71
- package/dist/tools/ax-agent.js +0 -283
- package/dist/tools/ax-agent.js.map +0 -1
- package/dist/tools/bash-output.d.ts +0 -25
- package/dist/tools/bash-output.js +0 -146
- package/dist/tools/bash-output.js.map +0 -1
- package/dist/tools/bash.d.ts +0 -67
- package/dist/tools/bash.js +0 -522
- package/dist/tools/bash.js.map +0 -1
- package/dist/tools/confirmation-tool.d.ts +0 -16
- package/dist/tools/confirmation-tool.js +0 -76
- package/dist/tools/confirmation-tool.js.map +0 -1
- package/dist/tools/definitions/ask-user.d.ts +0 -8
- package/dist/tools/definitions/ask-user.js +0 -168
- package/dist/tools/definitions/ask-user.js.map +0 -1
- package/dist/tools/definitions/ax-agent.d.ts +0 -8
- package/dist/tools/definitions/ax-agent.js +0 -276
- package/dist/tools/definitions/ax-agent.js.map +0 -1
- package/dist/tools/definitions/bash-output.d.ts +0 -7
- package/dist/tools/definitions/bash-output.js +0 -78
- package/dist/tools/definitions/bash-output.js.map +0 -1
- package/dist/tools/definitions/bash.d.ts +0 -8
- package/dist/tools/definitions/bash.js +0 -152
- package/dist/tools/definitions/bash.js.map +0 -1
- package/dist/tools/definitions/create-file.d.ts +0 -7
- package/dist/tools/definitions/create-file.js +0 -129
- package/dist/tools/definitions/create-file.js.map +0 -1
- package/dist/tools/definitions/design.d.ts +0 -12
- package/dist/tools/definitions/design.js +0 -368
- package/dist/tools/definitions/design.js.map +0 -1
- package/dist/tools/definitions/index.d.ts +0 -49
- package/dist/tools/definitions/index.js +0 -87
- package/dist/tools/definitions/index.js.map +0 -1
- package/dist/tools/definitions/multi-edit.d.ts +0 -7
- package/dist/tools/definitions/multi-edit.js +0 -123
- package/dist/tools/definitions/multi-edit.js.map +0 -1
- package/dist/tools/definitions/search.d.ts +0 -7
- package/dist/tools/definitions/search.js +0 -159
- package/dist/tools/definitions/search.js.map +0 -1
- package/dist/tools/definitions/str-replace-editor.d.ts +0 -7
- package/dist/tools/definitions/str-replace-editor.js +0 -145
- package/dist/tools/definitions/str-replace-editor.js.map +0 -1
- package/dist/tools/definitions/todo.d.ts +0 -8
- package/dist/tools/definitions/todo.js +0 -261
- package/dist/tools/definitions/todo.js.map +0 -1
- package/dist/tools/definitions/view-file.d.ts +0 -7
- package/dist/tools/definitions/view-file.js +0 -111
- package/dist/tools/definitions/view-file.js.map +0 -1
- package/dist/tools/design-tool.d.ts +0 -68
- package/dist/tools/design-tool.js +0 -299
- package/dist/tools/design-tool.js.map +0 -1
- package/dist/tools/format-generators.d.ts +0 -62
- package/dist/tools/format-generators.js +0 -291
- package/dist/tools/format-generators.js.map +0 -1
- package/dist/tools/index.d.ts +0 -8
- package/dist/tools/index.js +0 -11
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/priority-registry.d.ts +0 -124
- package/dist/tools/priority-registry.js +0 -401
- package/dist/tools/priority-registry.js.map +0 -1
- package/dist/tools/priority.d.ts +0 -158
- package/dist/tools/priority.js +0 -350
- package/dist/tools/priority.js.map +0 -1
- package/dist/tools/registry.d.ts +0 -146
- package/dist/tools/registry.js +0 -171
- package/dist/tools/registry.js.map +0 -1
- package/dist/tools/search.d.ts +0 -85
- package/dist/tools/search.js +0 -430
- package/dist/tools/search.js.map +0 -1
- package/dist/tools/text-editor.d.ts +0 -87
- package/dist/tools/text-editor.js +0 -1369
- package/dist/tools/text-editor.js.map +0 -1
- package/dist/tools/todo-tool.d.ts +0 -20
- package/dist/tools/todo-tool.js +0 -186
- package/dist/tools/todo-tool.js.map +0 -1
- package/dist/tools/types.d.ts +0 -175
- package/dist/tools/types.js +0 -11
- package/dist/tools/types.js.map +0 -1
- package/dist/types/index.d.ts +0 -30
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +0 -1
- package/dist/types/project-analysis.d.ts +0 -84
- package/dist/types/project-analysis.js +0 -5
- package/dist/types/project-analysis.js.map +0 -1
- package/dist/types/template.d.ts +0 -53
- package/dist/types/template.js +0 -5
- package/dist/types/template.js.map +0 -1
- package/dist/ui/app.d.ts +0 -7
- package/dist/ui/app.js +0 -102
- package/dist/ui/app.js.map +0 -1
- package/dist/ui/components/api-key-input.d.ts +0 -7
- package/dist/ui/components/api-key-input.js +0 -92
- package/dist/ui/components/api-key-input.js.map +0 -1
- package/dist/ui/components/chat-history.d.ts +0 -12
- package/dist/ui/components/chat-history.js +0 -391
- package/dist/ui/components/chat-history.js.map +0 -1
- package/dist/ui/components/chat-input.d.ts +0 -13
- package/dist/ui/components/chat-input.js +0 -179
- package/dist/ui/components/chat-input.js.map +0 -1
- package/dist/ui/components/chat-interface.d.ts +0 -11
- package/dist/ui/components/chat-interface.js +0 -830
- package/dist/ui/components/chat-interface.js.map +0 -1
- package/dist/ui/components/collapsible-tool-result.d.ts +0 -42
- package/dist/ui/components/collapsible-tool-result.js +0 -216
- package/dist/ui/components/collapsible-tool-result.js.map +0 -1
- package/dist/ui/components/command-suggestions.d.ts +0 -29
- package/dist/ui/components/command-suggestions.js +0 -88
- package/dist/ui/components/command-suggestions.js.map +0 -1
- package/dist/ui/components/confirmation-dialog.d.ts +0 -11
- package/dist/ui/components/confirmation-dialog.js +0 -100
- package/dist/ui/components/confirmation-dialog.js.map +0 -1
- package/dist/ui/components/context-breakdown.d.ts +0 -23
- package/dist/ui/components/context-breakdown.js +0 -124
- package/dist/ui/components/context-breakdown.js.map +0 -1
- package/dist/ui/components/diff-renderer.d.ts +0 -13
- package/dist/ui/components/diff-renderer.js +0 -192
- package/dist/ui/components/diff-renderer.js.map +0 -1
- package/dist/ui/components/index.d.ts +0 -18
- package/dist/ui/components/index.js +0 -20
- package/dist/ui/components/index.js.map +0 -1
- package/dist/ui/components/keyboard-help.d.ts +0 -17
- package/dist/ui/components/keyboard-help.js +0 -122
- package/dist/ui/components/keyboard-help.js.map +0 -1
- package/dist/ui/components/keyboard-hints.d.ts +0 -35
- package/dist/ui/components/keyboard-hints.js +0 -142
- package/dist/ui/components/keyboard-hints.js.map +0 -1
- package/dist/ui/components/loading-spinner.d.ts +0 -9
- package/dist/ui/components/loading-spinner.js +0 -120
- package/dist/ui/components/loading-spinner.js.map +0 -1
- package/dist/ui/components/mcp-dashboard.d.ts +0 -15
- package/dist/ui/components/mcp-dashboard.js +0 -520
- package/dist/ui/components/mcp-dashboard.js.map +0 -1
- package/dist/ui/components/mcp-status.d.ts +0 -5
- package/dist/ui/components/mcp-status.js +0 -58
- package/dist/ui/components/mcp-status.js.map +0 -1
- package/dist/ui/components/model-selection.d.ts +0 -12
- package/dist/ui/components/model-selection.js +0 -17
- package/dist/ui/components/model-selection.js.map +0 -1
- package/dist/ui/components/phase-progress.d.ts +0 -21
- package/dist/ui/components/phase-progress.js +0 -185
- package/dist/ui/components/phase-progress.js.map +0 -1
- package/dist/ui/components/question-dialog.d.ts +0 -17
- package/dist/ui/components/question-dialog.js +0 -181
- package/dist/ui/components/question-dialog.js.map +0 -1
- package/dist/ui/components/quick-actions.d.ts +0 -12
- package/dist/ui/components/quick-actions.js +0 -171
- package/dist/ui/components/quick-actions.js.map +0 -1
- package/dist/ui/components/reasoning-display.d.ts +0 -36
- package/dist/ui/components/reasoning-display.js +0 -46
- package/dist/ui/components/reasoning-display.js.map +0 -1
- package/dist/ui/components/status-bar.d.ts +0 -47
- package/dist/ui/components/status-bar.js +0 -310
- package/dist/ui/components/status-bar.js.map +0 -1
- package/dist/ui/components/subagent-monitor.d.ts +0 -41
- package/dist/ui/components/subagent-monitor.js +0 -122
- package/dist/ui/components/subagent-monitor.js.map +0 -1
- package/dist/ui/components/toast-notification.d.ts +0 -197
- package/dist/ui/components/toast-notification.js +0 -190
- package/dist/ui/components/toast-notification.js.map +0 -1
- package/dist/ui/components/tool-group-display.d.ts +0 -19
- package/dist/ui/components/tool-group-display.js +0 -222
- package/dist/ui/components/tool-group-display.js.map +0 -1
- package/dist/ui/components/virtualized-chat-history.d.ts +0 -33
- package/dist/ui/components/virtualized-chat-history.js +0 -182
- package/dist/ui/components/virtualized-chat-history.js.map +0 -1
- package/dist/ui/components/welcome-panel.d.ts +0 -11
- package/dist/ui/components/welcome-panel.js +0 -225
- package/dist/ui/components/welcome-panel.js.map +0 -1
- package/dist/ui/hooks/use-chat-reducer.d.ts +0 -69
- package/dist/ui/hooks/use-chat-reducer.js +0 -118
- package/dist/ui/hooks/use-chat-reducer.js.map +0 -1
- package/dist/ui/hooks/use-enhanced-input.d.ts +0 -53
- package/dist/ui/hooks/use-enhanced-input.js +0 -1275
- package/dist/ui/hooks/use-enhanced-input.js.map +0 -1
- package/dist/ui/hooks/use-input-handler.d.ts +0 -79
- package/dist/ui/hooks/use-input-handler.js +0 -2251
- package/dist/ui/hooks/use-input-handler.js.map +0 -1
- package/dist/ui/hooks/use-input-history.d.ts +0 -9
- package/dist/ui/hooks/use-input-history.js +0 -168
- package/dist/ui/hooks/use-input-history.js.map +0 -1
- package/dist/ui/shared/max-sized-box.d.ts +0 -17
- package/dist/ui/shared/max-sized-box.js +0 -14
- package/dist/ui/shared/max-sized-box.js.map +0 -1
- package/dist/ui/themes/index.d.ts +0 -5
- package/dist/ui/themes/index.js +0 -5
- package/dist/ui/themes/index.js.map +0 -1
- package/dist/ui/themes/theme-registry.d.ts +0 -55
- package/dist/ui/themes/theme-registry.js +0 -202
- package/dist/ui/themes/theme-registry.js.map +0 -1
- package/dist/ui/utils/bracketed-paste-handler.d.ts +0 -97
- package/dist/ui/utils/bracketed-paste-handler.js +0 -322
- package/dist/ui/utils/bracketed-paste-handler.js.map +0 -1
- package/dist/ui/utils/change-summarizer.d.ts +0 -20
- package/dist/ui/utils/change-summarizer.js +0 -282
- package/dist/ui/utils/change-summarizer.js.map +0 -1
- package/dist/ui/utils/code-colorizer.d.ts +0 -9
- package/dist/ui/utils/code-colorizer.js +0 -13
- package/dist/ui/utils/code-colorizer.js.map +0 -1
- package/dist/ui/utils/colors.d.ts +0 -41
- package/dist/ui/utils/colors.js +0 -80
- package/dist/ui/utils/colors.js.map +0 -1
- package/dist/ui/utils/image-handler.d.ts +0 -29
- package/dist/ui/utils/image-handler.js +0 -129
- package/dist/ui/utils/image-handler.js.map +0 -1
- package/dist/ui/utils/markdown-renderer.d.ts +0 -4
- package/dist/ui/utils/markdown-renderer.js +0 -40
- package/dist/ui/utils/markdown-renderer.js.map +0 -1
- package/dist/ui/utils/semantic-action-detector.d.ts +0 -49
- package/dist/ui/utils/semantic-action-detector.js +0 -339
- package/dist/ui/utils/semantic-action-detector.js.map +0 -1
- package/dist/ui/utils/tool-grouper.d.ts +0 -94
- package/dist/ui/utils/tool-grouper.js +0 -618
- package/dist/ui/utils/tool-grouper.js.map +0 -1
- package/dist/utils/api-error.d.ts +0 -61
- package/dist/utils/api-error.js +0 -176
- package/dist/utils/api-error.js.map +0 -1
- package/dist/utils/audit-logger.d.ts +0 -206
- package/dist/utils/audit-logger.js +0 -286
- package/dist/utils/audit-logger.js.map +0 -1
- package/dist/utils/auto-accept-logger.d.ts +0 -175
- package/dist/utils/auto-accept-logger.js +0 -423
- package/dist/utils/auto-accept-logger.js.map +0 -1
- package/dist/utils/automatosx-detector.d.ts +0 -19
- package/dist/utils/automatosx-detector.js +0 -52
- package/dist/utils/automatosx-detector.js.map +0 -1
- package/dist/utils/background-task-manager.d.ts +0 -114
- package/dist/utils/background-task-manager.js +0 -470
- package/dist/utils/background-task-manager.js.map +0 -1
- package/dist/utils/cache.d.ts +0 -77
- package/dist/utils/cache.js +0 -180
- package/dist/utils/cache.js.map +0 -1
- package/dist/utils/command-security.d.ts +0 -85
- package/dist/utils/command-security.js +0 -210
- package/dist/utils/command-security.js.map +0 -1
- package/dist/utils/config-loader.d.ts +0 -190
- package/dist/utils/config-loader.js +0 -108
- package/dist/utils/config-loader.js.map +0 -1
- package/dist/utils/confirmation-service.d.ts +0 -51
- package/dist/utils/confirmation-service.js +0 -220
- package/dist/utils/confirmation-service.js.map +0 -1
- package/dist/utils/console-messenger.d.ts +0 -80
- package/dist/utils/console-messenger.js +0 -142
- package/dist/utils/console-messenger.js.map +0 -1
- package/dist/utils/custom-instructions.d.ts +0 -1
- package/dist/utils/custom-instructions.js +0 -24
- package/dist/utils/custom-instructions.js.map +0 -1
- package/dist/utils/encryption.d.ts +0 -86
- package/dist/utils/encryption.js +0 -236
- package/dist/utils/encryption.js.map +0 -1
- package/dist/utils/enhanced-error-messages.d.ts +0 -33
- package/dist/utils/enhanced-error-messages.js +0 -440
- package/dist/utils/enhanced-error-messages.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -65
- package/dist/utils/error-handler.js +0 -148
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/error-translator.d.ts +0 -25
- package/dist/utils/error-translator.js +0 -203
- package/dist/utils/error-translator.js.map +0 -1
- package/dist/utils/external-editor.d.ts +0 -47
- package/dist/utils/external-editor.js +0 -179
- package/dist/utils/external-editor.js.map +0 -1
- package/dist/utils/file-cache.d.ts +0 -148
- package/dist/utils/file-cache.js +0 -413
- package/dist/utils/file-cache.js.map +0 -1
- package/dist/utils/file-lock.d.ts +0 -141
- package/dist/utils/file-lock.js +0 -554
- package/dist/utils/file-lock.js.map +0 -1
- package/dist/utils/file-mentions.d.ts +0 -68
- package/dist/utils/file-mentions.js +0 -225
- package/dist/utils/file-mentions.js.map +0 -1
- package/dist/utils/history-manager.d.ts +0 -52
- package/dist/utils/history-manager.js +0 -211
- package/dist/utils/history-manager.js.map +0 -1
- package/dist/utils/history-migration.d.ts +0 -9
- package/dist/utils/history-migration.js +0 -37
- package/dist/utils/history-migration.js.map +0 -1
- package/dist/utils/image-processor.d.ts +0 -33
- package/dist/utils/image-processor.js +0 -124
- package/dist/utils/image-processor.js.map +0 -1
- package/dist/utils/index.d.ts +0 -92
- package/dist/utils/index.js +0 -111
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/init-previewer.d.ts +0 -56
- package/dist/utils/init-previewer.js +0 -239
- package/dist/utils/init-previewer.js.map +0 -1
- package/dist/utils/init-validator.d.ts +0 -65
- package/dist/utils/init-validator.js +0 -252
- package/dist/utils/init-validator.js.map +0 -1
- package/dist/utils/input-sanitizer.d.ts +0 -210
- package/dist/utils/input-sanitizer.js +0 -362
- package/dist/utils/input-sanitizer.js.map +0 -1
- package/dist/utils/instruction-generator.d.ts +0 -21
- package/dist/utils/instruction-generator.js +0 -233
- package/dist/utils/instruction-generator.js.map +0 -1
- package/dist/utils/json-utils.d.ts +0 -72
- package/dist/utils/json-utils.js +0 -226
- package/dist/utils/json-utils.js.map +0 -1
- package/dist/utils/llm-optimized-instruction-generator.d.ts +0 -36
- package/dist/utils/llm-optimized-instruction-generator.js +0 -365
- package/dist/utils/llm-optimized-instruction-generator.js.map +0 -1
- package/dist/utils/message-optimizer.d.ts +0 -100
- package/dist/utils/message-optimizer.js +0 -297
- package/dist/utils/message-optimizer.js.map +0 -1
- package/dist/utils/onboarding-manager.d.ts +0 -45
- package/dist/utils/onboarding-manager.js +0 -131
- package/dist/utils/onboarding-manager.js.map +0 -1
- package/dist/utils/parallel-analyzer.d.ts +0 -123
- package/dist/utils/parallel-analyzer.js +0 -241
- package/dist/utils/parallel-analyzer.js.map +0 -1
- package/dist/utils/paste-utils.d.ts +0 -99
- package/dist/utils/paste-utils.js +0 -295
- package/dist/utils/paste-utils.js.map +0 -1
- package/dist/utils/path-helpers.d.ts +0 -8
- package/dist/utils/path-helpers.js +0 -35
- package/dist/utils/path-helpers.js.map +0 -1
- package/dist/utils/path-security.d.ts +0 -92
- package/dist/utils/path-security.js +0 -300
- package/dist/utils/path-security.js.map +0 -1
- package/dist/utils/path-utils.d.ts +0 -83
- package/dist/utils/path-utils.js +0 -122
- package/dist/utils/path-utils.js.map +0 -1
- package/dist/utils/path-validator.d.ts +0 -66
- package/dist/utils/path-validator.js +0 -141
- package/dist/utils/path-validator.js.map +0 -1
- package/dist/utils/performance.d.ts +0 -74
- package/dist/utils/performance.js +0 -133
- package/dist/utils/performance.js.map +0 -1
- package/dist/utils/process-pool.d.ts +0 -109
- package/dist/utils/process-pool.js +0 -332
- package/dist/utils/process-pool.js.map +0 -1
- package/dist/utils/progress-tracker.d.ts +0 -51
- package/dist/utils/progress-tracker.js +0 -152
- package/dist/utils/progress-tracker.js.map +0 -1
- package/dist/utils/project-analyzer.d.ts +0 -49
- package/dist/utils/project-analyzer.js +0 -396
- package/dist/utils/project-analyzer.js.map +0 -1
- package/dist/utils/prompt-builder.d.ts +0 -14
- package/dist/utils/prompt-builder.js +0 -100
- package/dist/utils/prompt-builder.js.map +0 -1
- package/dist/utils/provider-context.d.ts +0 -243
- package/dist/utils/provider-context.js +0 -421
- package/dist/utils/provider-context.js.map +0 -1
- package/dist/utils/provider-file-cache.d.ts +0 -91
- package/dist/utils/provider-file-cache.js +0 -165
- package/dist/utils/provider-file-cache.js.map +0 -1
- package/dist/utils/provider-settings.d.ts +0 -181
- package/dist/utils/provider-settings.js +0 -450
- package/dist/utils/provider-settings.js.map +0 -1
- package/dist/utils/rate-limiter.d.ts +0 -222
- package/dist/utils/rate-limiter.js +0 -338
- package/dist/utils/rate-limiter.js.map +0 -1
- package/dist/utils/retry-helper.d.ts +0 -81
- package/dist/utils/retry-helper.js +0 -244
- package/dist/utils/retry-helper.js.map +0 -1
- package/dist/utils/safety-rules.d.ts +0 -64
- package/dist/utils/safety-rules.js +0 -225
- package/dist/utils/safety-rules.js.map +0 -1
- package/dist/utils/settings-manager.d.ts +0 -256
- package/dist/utils/settings-manager.js +0 -967
- package/dist/utils/settings-manager.js.map +0 -1
- package/dist/utils/setup-validator.d.ts +0 -47
- package/dist/utils/setup-validator.js +0 -304
- package/dist/utils/setup-validator.js.map +0 -1
- package/dist/utils/string-utils.d.ts +0 -19
- package/dist/utils/string-utils.js +0 -28
- package/dist/utils/string-utils.js.map +0 -1
- package/dist/utils/template-manager.d.ts +0 -62
- package/dist/utils/template-manager.js +0 -366
- package/dist/utils/template-manager.js.map +0 -1
- package/dist/utils/text-utils.d.ts +0 -82
- package/dist/utils/text-utils.js +0 -203
- package/dist/utils/text-utils.js.map +0 -1
- package/dist/utils/token-counter.d.ts +0 -76
- package/dist/utils/token-counter.js +0 -231
- package/dist/utils/token-counter.js.map +0 -1
- package/dist/utils/usage-tracker.d.ts +0 -78
- package/dist/utils/usage-tracker.js +0 -126
- package/dist/utils/usage-tracker.js.map +0 -1
- package/dist/utils/version.d.ts +0 -14
- package/dist/utils/version.js +0 -70
- 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;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,WAAW,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACnD,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAElC,WAAW,EAAE;;8HAE+G;IAE5H,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;gBACpC,QAAQ,EAAE,CAAC,aAAa,EAAE,mBAAmB,EAAE,OAAO,CAAC;aACxD;SACF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;IAED,UAAU,EAAE;QACV,qDAAqD;QACrD,wDAAwD;QACxD,sDAAsD;KACvD;IAED,WAAW,EAAE;QACX,2CAA2C;QAC3C,mCAAmC;KACpC;IAED,YAAY,EAAE,CAAC,wDAAwD,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,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,eAAe,EACf,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,iCAAiC;AACjC,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,qB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,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -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;4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vE;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"}
|
|
@@ -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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AAE,CAAC,IAAI,EAAE,KAAK,CAAC;aAC1B;YACD,gBAAgB,EAAE,+CAA+C;SAClE;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,WAAW,CAAC;CAC5B,CAAC"}
|
|
@@ -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;gBACd,WAAW,EACT,wFAAwF;gBAC1F,QAAQ,EAAE;oBACR,cAAc;oBACd,oGAAoG;iBACrG;aACF;YACD,WA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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;
|