@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,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bash Tool Definition - Claude Code Quality
|
|
3
|
-
*
|
|
4
|
-
* Execute bash commands in a persistent shell session with timeout control
|
|
5
|
-
* and security measures.
|
|
6
|
-
*/
|
|
7
|
-
export const bashTool = {
|
|
8
|
-
name: 'bash',
|
|
9
|
-
displayName: 'Bash',
|
|
10
|
-
description: `Execute bash commands in a persistent shell session with timeout control and security measures.
|
|
11
|
-
|
|
12
|
-
This tool is for terminal operations like git, npm, docker, system commands, and process management. Each invocation runs in the same shell environment, preserving environment variables and working directory between calls.
|
|
13
|
-
|
|
14
|
-
IMPORTANT: This tool is for COMMAND EXECUTION only. Do NOT use it for:
|
|
15
|
-
- Reading files (use view_file instead)
|
|
16
|
-
- Editing files (use str_replace_editor or create_file instead)
|
|
17
|
-
- Searching files (use search instead)
|
|
18
|
-
- Directory listing (use view_file with a directory path)
|
|
19
|
-
|
|
20
|
-
The shell supports background processes using the ' &' suffix or background: true parameter. Background tasks return a task_id that can be monitored with bash_output.
|
|
21
|
-
|
|
22
|
-
Before executing commands that create directories or files, verify the parent directory exists using view_file. Always quote file paths containing spaces with double quotes.`,
|
|
23
|
-
parameters: {
|
|
24
|
-
type: 'object',
|
|
25
|
-
properties: {
|
|
26
|
-
command: {
|
|
27
|
-
type: 'string',
|
|
28
|
-
description: `The bash command to execute.
|
|
29
|
-
- Quote file paths containing spaces with double quotes
|
|
30
|
-
- Use && to chain dependent commands
|
|
31
|
-
- Use ; to chain independent commands
|
|
32
|
-
- Append ' &' or use background: true for background execution`,
|
|
33
|
-
examples: [
|
|
34
|
-
'npm test',
|
|
35
|
-
'git status && git diff',
|
|
36
|
-
'npm run dev &',
|
|
37
|
-
'cd "/path/with spaces" && ls',
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
background: {
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
description: 'Run command in background. Returns task_id for monitoring with bash_output. Equivalent to appending " &" to command.',
|
|
43
|
-
default: false,
|
|
44
|
-
},
|
|
45
|
-
timeout: {
|
|
46
|
-
type: 'number',
|
|
47
|
-
description: 'Timeout in milliseconds. Default: 120000 (2 min). Max: 600000 (10 min). Ignored for background commands.',
|
|
48
|
-
default: 120000,
|
|
49
|
-
constraints: ['Must be between 1 and 600000'],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
required: ['command'],
|
|
53
|
-
},
|
|
54
|
-
usageNotes: [
|
|
55
|
-
'Prefer specialized tools over bash for file operations:',
|
|
56
|
-
' - File reading: Use view_file (NOT cat, head, tail)',
|
|
57
|
-
' - File editing: Use str_replace_editor (NOT sed, awk)',
|
|
58
|
-
' - File creation: Use create_file (NOT echo >, cat <<EOF)',
|
|
59
|
-
' - File search: Use search (NOT grep, find, rg)',
|
|
60
|
-
' - Directory listing: Use view_file with directory path (NOT ls)',
|
|
61
|
-
'Commands can be chained:',
|
|
62
|
-
' - Use && for dependent commands (second runs only if first succeeds)',
|
|
63
|
-
' - Use ; for independent commands (both run regardless)',
|
|
64
|
-
' - Use | for piping output',
|
|
65
|
-
'Background execution:',
|
|
66
|
-
' - Append " &" or set background: true for long-running processes',
|
|
67
|
-
' - Use bash_output with task_id to check output',
|
|
68
|
-
' - Background tasks continue even if agent session ends',
|
|
69
|
-
'Output handling:',
|
|
70
|
-
' - Output over 30000 characters is truncated',
|
|
71
|
-
' - Use output redirection (> file) for large outputs',
|
|
72
|
-
'Environment:',
|
|
73
|
-
' - Shell session is persistent across invocations',
|
|
74
|
-
' - Environment variables and working directory are preserved',
|
|
75
|
-
' - Use cd sparingly; prefer absolute paths',
|
|
76
|
-
'For git commits, use HEREDOC format for multi-line messages:',
|
|
77
|
-
' git commit -m "$(cat <<\'EOF\'\\nmessage here\\nEOF\\n)"',
|
|
78
|
-
],
|
|
79
|
-
constraints: [
|
|
80
|
-
'NEVER execute destructive commands without explicit user confirmation:',
|
|
81
|
-
' - rm -rf on system directories',
|
|
82
|
-
' - git push --force to main/master',
|
|
83
|
-
' - Database drop/delete operations',
|
|
84
|
-
' - System modification commands (mkfs, dd)',
|
|
85
|
-
'NEVER use interactive flags that require user input:',
|
|
86
|
-
' - git rebase -i (use non-interactive alternatives)',
|
|
87
|
-
' - git add -i (use git add directly)',
|
|
88
|
-
' - Any command with -i that expects keyboard input',
|
|
89
|
-
'NEVER expose secrets in command output:',
|
|
90
|
-
' - Avoid printing environment variables with secrets',
|
|
91
|
-
' - Use --quiet flags when credentials might appear',
|
|
92
|
-
'NEVER skip safety mechanisms:',
|
|
93
|
-
' - git push with --no-verify unless explicitly requested',
|
|
94
|
-
' - Commands that bypass confirmation prompts',
|
|
95
|
-
],
|
|
96
|
-
antiPatterns: [
|
|
97
|
-
'Reading file contents with cat/head/tail (use view_file instead)',
|
|
98
|
-
'Editing files with sed/awk (use str_replace_editor instead)',
|
|
99
|
-
'Creating files with echo/cat (use create_file instead)',
|
|
100
|
-
'Searching with grep/find/rg (use search instead)',
|
|
101
|
-
'Directory listing with ls (use view_file with directory path)',
|
|
102
|
-
'Any operation where a specialized tool exists',
|
|
103
|
-
],
|
|
104
|
-
examples: [
|
|
105
|
-
{
|
|
106
|
-
description: 'Run tests',
|
|
107
|
-
scenario: 'Execute the project test suite',
|
|
108
|
-
input: { command: 'npm test' },
|
|
109
|
-
expectedBehavior: 'Runs tests and returns results',
|
|
110
|
-
notes: 'Use appropriate test command for the project (npm, pytest, go test, etc.)',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
description: 'Git status and diff',
|
|
114
|
-
scenario: 'Check current git state before committing',
|
|
115
|
-
input: { command: 'git status && git diff --staged' },
|
|
116
|
-
expectedBehavior: 'Shows working tree status and staged changes',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
description: 'Start development server in background',
|
|
120
|
-
scenario: 'Start a long-running process without blocking',
|
|
121
|
-
input: { command: 'npm run dev', background: true },
|
|
122
|
-
expectedBehavior: 'Returns task_id for monitoring, server runs in background',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
description: 'Git commit with proper message',
|
|
126
|
-
scenario: 'Create a commit with multi-line message',
|
|
127
|
-
input: {
|
|
128
|
-
command: `git commit -m "$(cat <<'EOF'
|
|
129
|
-
feat: add user authentication
|
|
130
|
-
|
|
131
|
-
- Implement JWT tokens
|
|
132
|
-
- Add login/logout endpoints
|
|
133
|
-
EOF
|
|
134
|
-
)"`,
|
|
135
|
-
},
|
|
136
|
-
expectedBehavior: 'Creates commit with formatted message',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
description: 'Install dependencies',
|
|
140
|
-
scenario: 'Install project dependencies',
|
|
141
|
-
input: { command: 'npm install' },
|
|
142
|
-
expectedBehavior: 'Installs packages and updates lock file',
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
tokenCost: 1200,
|
|
146
|
-
safetyLevel: 'dangerous',
|
|
147
|
-
requiresConfirmation: true,
|
|
148
|
-
categories: ['command-execution'],
|
|
149
|
-
alternatives: ['view_file', 'str_replace_editor', 'create_file', 'search'],
|
|
150
|
-
relatedTools: ['bash_output'],
|
|
151
|
-
};
|
|
152
|
-
//# sourceMappingURL=bash.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bash.js","sourceRoot":"","sources":["../../../src/tools/definitions/bash.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,CAAC,MAAM,QAAQ,GAAmB;IACtC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IAEnB,WAAW,EAAE;;;;;;;;;;;;8KAY+J;IAE5K,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;;;;+DAI0C;gBACvD,QAAQ,EAAE;oBACR,UAAU;oBACV,wBAAwB;oBACxB,eAAe;oBACf,8BAA8B;iBAC/B;aACF;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,sHAAsH;gBACxH,OAAO,EAAE,KAAK;aACf;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0GAA0G;gBAC5G,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,CAAC,8BAA8B,CAAC;aAC9C;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IAED,UAAU,EAAE;QACV,yDAAyD;QACzD,uDAAuD;QACvD,yDAAyD;QACzD,4DAA4D;QAC5D,kDAAkD;QAClD,mEAAmE;QACnE,0BAA0B;QAC1B,wEAAwE;QACxE,0DAA0D;QAC1D,6BAA6B;QAC7B,uBAAuB;QACvB,oEAAoE;QACpE,kDAAkD;QAClD,0DAA0D;QAC1D,kBAAkB;QAClB,+CAA+C;QAC/C,uDAAuD;QACvD,cAAc;QACd,oDAAoD;QACpD,+DAA+D;QAC/D,6CAA6C;QAC7C,8DAA8D;QAC9D,4DAA4D;KAC7D;IAED,WAAW,EAAE;QACX,wEAAwE;QACxE,kCAAkC;QAClC,qCAAqC;QACrC,qCAAqC;QACrC,6CAA6C;QAC7C,sDAAsD;QACtD,sDAAsD;QACtD,uCAAuC;QACvC,qDAAqD;QACrD,yCAAyC;QACzC,uDAAuD;QACvD,qDAAqD;QACrD,+BAA+B;QAC/B,2DAA2D;QAC3D,+CAA+C;KAChD;IAED,YAAY,EAAE;QACZ,kEAAkE;QAClE,6DAA6D;QAC7D,wDAAwD;QACxD,kDAAkD;QAClD,+DAA+D;QAC/D,+CAA+C;KAChD;IAED,QAAQ,EAAE;QACR;YACE,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,gCAAgC;YAC1C,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;YAC9B,gBAAgB,EAAE,gCAAgC;YAClD,KAAK,EAAE,2EAA2E;SACnF;QACD;YACE,WAAW,EAAE,qBAAqB;YAClC,QAAQ,EAAE,2CAA2C;YACrD,KAAK,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE;YACrD,gBAAgB,EAAE,8CAA8C;SACjE;QACD;YACE,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,+CAA+C;YACzD,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE;YACnD,gBAAgB,EAAE,2DAA2D;SAC9E;QACD;YACE,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,yCAAyC;YACnD,KAAK,EAAE;gBACL,OAAO,EAAE;;;;;;GAMd;aACI;YACD,gBAAgB,EAAE,uCAAuC;SAC1D;QACD;YACE,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,8BAA8B;YACxC,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;YACjC,gBAAgB,EAAE,yCAAyC;SAC5D;KACF;IAED,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,WAAW;IACxB,oBAAoB,EAAE,IAAI;IAE1B,UAAU,EAAE,CAAC,mBAAmB,CAAC;IACjC,YAAY,EAAE,CAAC,WAAW,EAAE,oBAAoB,EAAE,aAAa,EAAE,QAAQ,CAAC;IAC1E,YAAY,EAAE,CAAC,aAAa,CAAC;CAC9B,CAAC"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create File Tool Definition - Claude Code Quality
|
|
3
|
-
*
|
|
4
|
-
* Create a new file or overwrite an existing file with specified content.
|
|
5
|
-
*/
|
|
6
|
-
export const createFileTool = {
|
|
7
|
-
name: 'create_file',
|
|
8
|
-
displayName: 'Create File',
|
|
9
|
-
description: `Create a new file or overwrite an existing file with specified content.
|
|
10
|
-
|
|
11
|
-
This tool writes content to a file path. If the file exists, it will be OVERWRITTEN. If parent directories don't exist, they will be created automatically.
|
|
12
|
-
|
|
13
|
-
IMPORTANT: For modifying existing files, prefer str_replace_editor. This tool is for:
|
|
14
|
-
- Creating new files from scratch
|
|
15
|
-
- Complete file rewrites when editing is impractical
|
|
16
|
-
|
|
17
|
-
When creating code files, match the project's coding style (indentation, quotes, semicolons, etc.) and include all necessary imports and complete implementations.`,
|
|
18
|
-
parameters: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
path: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
description: 'Path where the file should be created. Parent directories are created if needed.',
|
|
24
|
-
format: 'file-path',
|
|
25
|
-
examples: ['/project/src/utils/format.ts', './config.json'],
|
|
26
|
-
},
|
|
27
|
-
content: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
description: 'Complete content to write to the file. Include all necessary code, imports, etc.',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
required: ['path', 'content'],
|
|
33
|
-
},
|
|
34
|
-
usageNotes: [
|
|
35
|
-
'Creates parent directories automatically if they do not exist',
|
|
36
|
-
'Prefer str_replace_editor for modifying existing files',
|
|
37
|
-
'For existing files, use view_file first to understand current content',
|
|
38
|
-
'Do NOT create documentation files (README, etc.) unless explicitly requested',
|
|
39
|
-
'Do NOT use emojis in file content unless explicitly requested',
|
|
40
|
-
'Match the coding style of the project (indentation, quotes, etc.)',
|
|
41
|
-
'Include complete, working code - not stubs or placeholders',
|
|
42
|
-
'Always include necessary imports at the top of the file',
|
|
43
|
-
'Add appropriate file headers/comments if the project uses them',
|
|
44
|
-
],
|
|
45
|
-
constraints: [
|
|
46
|
-
'OVERWRITES existing files without warning',
|
|
47
|
-
'For existing files, view_file should be called first to understand context',
|
|
48
|
-
'Avoid creating files that duplicate existing functionality',
|
|
49
|
-
'Do not create unnecessary configuration files',
|
|
50
|
-
'Do not create test files unless explicitly requested',
|
|
51
|
-
],
|
|
52
|
-
antiPatterns: [
|
|
53
|
-
'Using bash echo/cat to create files',
|
|
54
|
-
'Creating files when editing would suffice',
|
|
55
|
-
'Creating documentation without being asked',
|
|
56
|
-
'Creating placeholder/stub files',
|
|
57
|
-
'Creating files that duplicate existing patterns',
|
|
58
|
-
'Overwriting files without reading them first',
|
|
59
|
-
],
|
|
60
|
-
examples: [
|
|
61
|
-
{
|
|
62
|
-
description: 'Create a new utility file',
|
|
63
|
-
scenario: 'Add a new helper function file',
|
|
64
|
-
input: {
|
|
65
|
-
path: '/project/src/utils/format.ts',
|
|
66
|
-
content: `/**
|
|
67
|
-
* Format utilities
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
export function formatCurrency(amount: number, currency = 'USD'): string {
|
|
71
|
-
return new Intl.NumberFormat('en-US', {
|
|
72
|
-
style: 'currency',
|
|
73
|
-
currency
|
|
74
|
-
}).format(amount);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function formatDate(date: Date): string {
|
|
78
|
-
return date.toISOString().split('T')[0];
|
|
79
|
-
}
|
|
80
|
-
`,
|
|
81
|
-
},
|
|
82
|
-
expectedBehavior: 'Creates format.ts with the utility functions',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
description: 'Create a test file',
|
|
86
|
-
scenario: 'Add tests for an existing module',
|
|
87
|
-
input: {
|
|
88
|
-
path: '/project/src/utils/format.test.ts',
|
|
89
|
-
content: `import { formatCurrency, formatDate } from './format';
|
|
90
|
-
|
|
91
|
-
describe('formatCurrency', () => {
|
|
92
|
-
it('formats USD correctly', () => {
|
|
93
|
-
expect(formatCurrency(1234.56)).toBe('$1,234.56');
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
describe('formatDate', () => {
|
|
98
|
-
it('formats date as ISO string', () => {
|
|
99
|
-
const date = new Date('2024-01-15T10:30:00Z');
|
|
100
|
-
expect(formatDate(date)).toBe('2024-01-15');
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
`,
|
|
104
|
-
},
|
|
105
|
-
expectedBehavior: 'Creates format.test.ts with test cases',
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
description: 'Create a configuration file',
|
|
109
|
-
scenario: 'Add a new JSON configuration',
|
|
110
|
-
input: {
|
|
111
|
-
path: '/project/config/settings.json',
|
|
112
|
-
content: `{
|
|
113
|
-
"apiEndpoint": "https://api.example.com",
|
|
114
|
-
"timeout": 30000,
|
|
115
|
-
"retries": 3
|
|
116
|
-
}
|
|
117
|
-
`,
|
|
118
|
-
},
|
|
119
|
-
expectedBehavior: 'Creates settings.json with configuration',
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
tokenCost: 400,
|
|
123
|
-
safetyLevel: 'moderate',
|
|
124
|
-
requiresConfirmation: false,
|
|
125
|
-
categories: ['file-operations'],
|
|
126
|
-
alternatives: ['str_replace_editor'],
|
|
127
|
-
relatedTools: ['view_file', 'str_replace_editor'],
|
|
128
|
-
};
|
|
129
|
-
//# sourceMappingURL=create-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-file.js","sourceRoot":"","sources":["../../../src/tools/definitions/create-file.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAE1B,WAAW,EAAE;;;;;;;;mKAQoJ;IAEjK,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kFAAkF;gBACpF,MAAM,EAAE,WAAW;gBACnB,QAAQ,EAAE,CAAC,8BAA8B,EAAE,eAAe,CAAC;aAC5D;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,kFAAkF;aACrF;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;KAC9B;IAED,UAAU,EAAE;QACV,+DAA+D;QAC/D,wDAAwD;QACxD,uEAAuE;QACvE,8EAA8E;QAC9E,+DAA+D;QAC/D,mEAAmE;QACnE,4DAA4D;QAC5D,yDAAyD;QACzD,gEAAgE;KACjE;IAED,WAAW,EAAE;QACX,2CAA2C;QAC3C,4EAA4E;QAC5E,4DAA4D;QAC5D,+CAA+C;QAC/C,sDAAsD;KACvD;IAED,YAAY,EAAE;QACZ,qCAAqC;QACrC,2CAA2C;QAC3C,4CAA4C;QAC5C,iCAAiC;QACjC,iDAAiD;QACjD,8CAA8C;KAC/C;IAED,QAAQ,EAAE;QACR;YACE,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,gCAAgC;YAC1C,KAAK,EAAE;gBACL,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE;;;;;;;;;;;;;;CAchB;aACM;YACD,gBAAgB,EAAE,8CAA8C;SACjE;QACD;YACE,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,kCAAkC;YAC5C,KAAK,EAAE;gBACL,IAAI,EAAE,mCAAmC;gBACzC,OAAO,EAAE;;;;;;;;;;;;;;CAchB;aACM;YACD,gBAAgB,EAAE,wCAAwC;SAC3D;QACD;YACE,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,8BAA8B;YACxC,KAAK,EAAE;gBACL,IAAI,EAAE,+BAA+B;gBACrC,OAAO,EAAE;;;;;CAKhB;aACM;YACD,gBAAgB,EAAE,0CAA0C;SAC7D;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,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Design Tools Definitions - Claude Code Quality
|
|
3
|
-
*
|
|
4
|
-
* Figma integration tools for design-to-code workflows.
|
|
5
|
-
*/
|
|
6
|
-
import type { ToolDefinition } from '../types.js';
|
|
7
|
-
export declare const figmaMapTool: ToolDefinition;
|
|
8
|
-
export declare const figmaTokensTool: ToolDefinition;
|
|
9
|
-
export declare const figmaAuditTool: ToolDefinition;
|
|
10
|
-
export declare const figmaSearchTool: ToolDefinition;
|
|
11
|
-
export declare const figmaAliasListTool: ToolDefinition;
|
|
12
|
-
export declare const figmaAliasResolveTool: ToolDefinition;
|
|
@@ -1,368 +0,0 @@
|
|
|
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
|