agent-enderun 1.1.9 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -20
- package/bin/cli.js +7 -0
- package/bin/enderun-dashboard.js +16 -857
- package/bin/validate-agent-army.js +12 -12
- package/dist/framework-mcp/src/index.js +14 -2
- package/dist/framework-mcp/src/index.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +2 -1
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/replace_text.js +2 -1
- package/dist/framework-mcp/src/tools/file_system/replace_text.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/write_file.js +3 -3
- package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
- package/dist/framework-mcp/src/utils/fs.d.ts +16 -0
- package/dist/framework-mcp/src/utils/fs.js +45 -0
- package/dist/framework-mcp/src/utils/fs.js.map +1 -0
- package/dist/framework-mcp/src/utils/metrics.js.map +1 -1
- package/dist/src/cli/adapters/core.d.ts +12 -0
- package/dist/src/cli/adapters/core.js +44 -0
- package/dist/src/cli/adapters/core.js.map +1 -0
- package/dist/src/cli/adapters/index.d.ts +4 -0
- package/dist/src/cli/adapters/index.js +5 -0
- package/dist/src/cli/adapters/index.js.map +1 -0
- package/dist/src/cli/adapters/scaffold.d.ts +2 -0
- package/dist/src/cli/adapters/scaffold.js +65 -0
- package/dist/src/cli/adapters/scaffold.js.map +1 -0
- package/dist/src/cli/adapters/utils.d.ts +4 -0
- package/dist/src/cli/adapters/utils.js +77 -0
- package/dist/src/cli/adapters/utils.js.map +1 -0
- package/dist/src/cli/commands/app.js +20 -5
- package/dist/src/cli/commands/app.js.map +1 -1
- package/dist/src/cli/commands/approve.d.ts +1 -1
- package/dist/src/cli/commands/approve.js +7 -7
- package/dist/src/cli/commands/approve.js.map +1 -1
- package/dist/src/cli/commands/check.d.ts +1 -1
- package/dist/src/cli/commands/check.js +42 -63
- package/dist/src/cli/commands/check.js.map +1 -1
- package/dist/src/cli/commands/compliance.d.ts +1 -1
- package/dist/src/cli/commands/compliance.js +1 -1
- package/dist/src/cli/commands/compliance.js.map +1 -1
- package/dist/src/cli/commands/contract.d.ts +2 -2
- package/dist/src/cli/commands/contract.js +8 -14
- package/dist/src/cli/commands/contract.js.map +1 -1
- package/dist/src/cli/commands/dashboard/data-service.d.ts +33 -0
- package/dist/src/cli/commands/dashboard/data-service.js +120 -0
- package/dist/src/cli/commands/dashboard/data-service.js.map +1 -0
- package/dist/src/cli/commands/dashboard/html-template.d.ts +4 -0
- package/dist/src/cli/commands/dashboard/html-template.js +697 -0
- package/dist/src/cli/commands/dashboard/html-template.js.map +1 -0
- package/dist/src/cli/commands/dashboard/server.d.ts +2 -0
- package/dist/src/cli/commands/dashboard/server.js +38 -0
- package/dist/src/cli/commands/dashboard/server.js.map +1 -0
- package/dist/src/cli/commands/dashboard.d.ts +4 -0
- package/dist/src/cli/commands/dashboard.js +10 -0
- package/dist/src/cli/commands/dashboard.js.map +1 -0
- package/dist/src/cli/commands/explorer.d.ts +2 -2
- package/dist/src/cli/commands/explorer.js +2 -2
- package/dist/src/cli/commands/explorer.js.map +1 -1
- package/dist/src/cli/commands/git.d.ts +2 -2
- package/dist/src/cli/commands/git.js +2 -2
- package/dist/src/cli/commands/git.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-core.d.ts +4 -0
- package/dist/src/cli/commands/init/scaffold-core.js +65 -0
- package/dist/src/cli/commands/init/scaffold-core.js.map +1 -0
- package/dist/src/cli/commands/init/scaffold-ops.d.ts +1 -0
- package/dist/src/cli/commands/init/scaffold-ops.js +83 -0
- package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -0
- package/dist/src/cli/commands/init/scaffold-standards.d.ts +2 -0
- package/dist/src/cli/commands/init/scaffold-standards.js +58 -0
- package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -0
- package/dist/src/cli/commands/init.js +14 -284
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/knowledge.d.ts +2 -2
- package/dist/src/cli/commands/knowledge.js +4 -3
- package/dist/src/cli/commands/knowledge.js.map +1 -1
- package/dist/src/cli/commands/lint.d.ts +1 -1
- package/dist/src/cli/commands/lint.js +2 -3
- package/dist/src/cli/commands/lint.js.map +1 -1
- package/dist/src/cli/commands/log.d.ts +1 -1
- package/dist/src/cli/commands/log.js +3 -2
- package/dist/src/cli/commands/log.js.map +1 -1
- package/dist/src/cli/commands/memory.d.ts +1 -1
- package/dist/src/cli/commands/memory.js +1 -1
- package/dist/src/cli/commands/memory.js.map +1 -1
- package/dist/src/cli/commands/orchestrate.d.ts +9 -9
- package/dist/src/cli/commands/orchestrate.js +176 -178
- package/dist/src/cli/commands/orchestrate.js.map +1 -1
- package/dist/src/cli/commands/plan.d.ts +4 -0
- package/dist/src/cli/commands/plan.js +40 -0
- package/dist/src/cli/commands/plan.js.map +1 -0
- package/dist/src/cli/commands/script.d.ts +1 -1
- package/dist/src/cli/commands/script.js +1 -1
- package/dist/src/cli/commands/script.js.map +1 -1
- package/dist/src/cli/commands/security.d.ts +1 -1
- package/dist/src/cli/commands/security.js +1 -1
- package/dist/src/cli/commands/security.js.map +1 -1
- package/dist/src/cli/commands/status.d.ts +1 -1
- package/dist/src/cli/commands/status.js +28 -79
- package/dist/src/cli/commands/status.js.map +1 -1
- package/dist/src/cli/commands/trace.d.ts +1 -1
- package/dist/src/cli/commands/trace.js +19 -32
- package/dist/src/cli/commands/trace.js.map +1 -1
- package/dist/src/cli/index.js +41 -22
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/shims.js +6 -6
- package/dist/src/cli/utils/app-backend.js +7 -0
- package/dist/src/cli/utils/app-backend.js.map +1 -1
- package/dist/src/cli/utils/app-docs.js +23 -5
- package/dist/src/cli/utils/app-docs.js.map +1 -1
- package/dist/src/cli/utils/app-frontend.js +5 -0
- package/dist/src/cli/utils/app-frontend.js.map +1 -1
- package/dist/src/cli/utils/app-inferrer.d.ts +1 -0
- package/dist/src/cli/utils/app-inferrer.js +12 -1
- package/dist/src/cli/utils/app-inferrer.js.map +1 -1
- package/dist/src/cli/utils/app-mobile.d.ts +2 -0
- package/dist/src/cli/utils/app-mobile.js +106 -0
- package/dist/src/cli/utils/app-mobile.js.map +1 -0
- package/dist/src/cli/utils/app-types.js +8 -4
- package/dist/src/cli/utils/app-types.js.map +1 -1
- package/dist/src/cli/utils/app.d.ts +1 -0
- package/dist/src/cli/utils/app.js +1 -0
- package/dist/src/cli/utils/app.js.map +1 -1
- package/dist/src/cli/utils/claude.js +2 -1
- package/dist/src/cli/utils/claude.js.map +1 -1
- package/dist/src/cli/utils/compliance.d.ts +7 -0
- package/dist/src/cli/utils/compliance.js +81 -0
- package/dist/src/cli/utils/compliance.js.map +1 -0
- package/dist/src/cli/utils/config-schema.d.ts +3 -3
- package/dist/src/cli/utils/config-schema.js +3 -3
- package/dist/src/cli/utils/config-schema.js.map +1 -1
- package/dist/src/cli/utils/fs.d.ts +3 -3
- package/dist/src/cli/utils/fs.js +10 -14
- package/dist/src/cli/utils/fs.js.map +1 -1
- package/dist/src/cli/utils/memory.d.ts +19 -4
- package/dist/src/cli/utils/memory.js +181 -146
- package/dist/src/cli/utils/memory.js.map +1 -1
- package/dist/src/cli/utils/pkg.js +15 -14
- package/dist/src/cli/utils/pkg.js.map +1 -1
- package/dist/src/cli/utils/schemas.d.ts +49 -0
- package/dist/src/cli/utils/schemas.js +20 -0
- package/dist/src/cli/utils/schemas.js.map +1 -0
- package/dist/src/cli/utils/string.d.ts +1 -0
- package/dist/src/cli/utils/string.js +10 -4
- package/dist/src/cli/utils/string.js.map +1 -1
- package/dist/src/cli/utils/ui.d.ts +1 -1
- package/dist/src/cli/utils/ui.js +8 -5
- package/dist/src/cli/utils/ui.js.map +1 -1
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.js +2 -0
- package/dist/src/contracts/index.js.map +1 -0
- package/dist/src/contracts/tasks.d.ts +44 -0
- package/dist/src/contracts/tasks.js +21 -0
- package/dist/src/contracts/tasks.js.map +1 -0
- package/dist/src/modules/adapters/definitions.d.ts +1 -1
- package/dist/src/modules/adapters/shared.js +16 -10
- package/dist/src/modules/adapters/shared.js.map +1 -1
- package/dist/src/modules/adapters/types.d.ts +2 -2
- package/dist/src/modules/agents/definitions.d.ts +14 -12
- package/dist/src/modules/agents/definitions.js +281 -153
- package/dist/src/modules/agents/definitions.js.map +1 -1
- package/dist/src/modules/agents/registry/analyst.d.ts +2 -0
- package/dist/src/modules/agents/registry/analyst.js +36 -0
- package/dist/src/modules/agents/registry/analyst.js.map +1 -0
- package/dist/src/modules/agents/registry/architect.d.ts +2 -0
- package/dist/src/modules/agents/registry/architect.js +42 -0
- package/dist/src/modules/agents/registry/architect.js.map +1 -0
- package/dist/src/modules/agents/registry/backend.d.ts +2 -0
- package/dist/src/modules/agents/registry/backend.js +43 -0
- package/dist/src/modules/agents/registry/backend.js.map +1 -0
- package/dist/src/modules/agents/registry/database.d.ts +2 -0
- package/dist/src/modules/agents/registry/database.js +38 -0
- package/dist/src/modules/agents/registry/database.js.map +1 -0
- package/dist/src/modules/agents/registry/devops.d.ts +2 -0
- package/dist/src/modules/agents/registry/devops.js +38 -0
- package/dist/src/modules/agents/registry/devops.js.map +1 -0
- package/dist/src/modules/agents/registry/explorer.d.ts +2 -0
- package/dist/src/modules/agents/registry/explorer.js +36 -0
- package/dist/src/modules/agents/registry/explorer.js.map +1 -0
- package/dist/src/modules/agents/registry/frontend.d.ts +2 -0
- package/dist/src/modules/agents/registry/frontend.js +44 -0
- package/dist/src/modules/agents/registry/frontend.js.map +1 -0
- package/dist/src/modules/agents/registry/git.d.ts +2 -0
- package/dist/src/modules/agents/registry/git.js +35 -0
- package/dist/src/modules/agents/registry/git.js.map +1 -0
- package/dist/src/modules/agents/registry/manager.d.ts +2 -0
- package/dist/src/modules/agents/registry/manager.js +49 -0
- package/dist/src/modules/agents/registry/manager.js.map +1 -0
- package/dist/src/modules/agents/registry/mobile.d.ts +2 -0
- package/dist/src/modules/agents/registry/mobile.js +40 -0
- package/dist/src/modules/agents/registry/mobile.js.map +1 -0
- package/dist/src/modules/agents/registry/native.d.ts +2 -0
- package/dist/src/modules/agents/registry/native.js +36 -0
- package/dist/src/modules/agents/registry/native.js.map +1 -0
- package/dist/src/modules/agents/registry/quality.d.ts +2 -0
- package/dist/src/modules/agents/registry/quality.js +41 -0
- package/dist/src/modules/agents/registry/quality.js.map +1 -0
- package/dist/src/modules/agents/registry/security.d.ts +2 -0
- package/dist/src/modules/agents/registry/security.js +37 -0
- package/dist/src/modules/agents/registry/security.js.map +1 -0
- package/dist/src/modules/agents/types.d.ts +31 -0
- package/dist/src/modules/agents/types.js +2 -0
- package/dist/src/modules/agents/types.js.map +1 -0
- package/dist/src/modules/skills/definitions.d.ts +1 -1
- package/dist/src/modules/skills/definitions.js +1 -1
- package/dist/src/shared/errors.d.ts +8 -6
- package/dist/src/shared/errors.js +13 -10
- package/dist/src/shared/errors.js.map +1 -1
- package/dist/src/shared/fs.d.ts +5 -0
- package/dist/src/shared/fs.js +24 -1
- package/dist/src/shared/fs.js.map +1 -1
- package/dist/src/shared/logger.js +3 -6
- package/dist/src/shared/logger.js.map +1 -1
- package/dist/src/shared/types.d.ts +19 -0
- package/dist/src/shared/types.js +13 -0
- package/dist/src/shared/types.js.map +1 -0
- package/dist/tests/adapter.test.js +1 -1
- package/dist/tests/adapter.test.js.map +1 -1
- package/dist/tests/agents-definitions.test.js +18 -8
- package/dist/tests/agents-definitions.test.js.map +1 -1
- package/dist/tests/approve.test.js +24 -58
- package/dist/tests/approve.test.js.map +1 -1
- package/dist/tests/cli/init/adapter_init.test.js +39 -0
- package/dist/tests/cli/init/adapter_init.test.js.map +1 -0
- package/dist/tests/integration/agent_flow.test.js +53 -0
- package/dist/tests/integration/agent_flow.test.js.map +1 -0
- package/dist/tests/memory-utils.test.js +28 -144
- package/dist/tests/memory-utils.test.js.map +1 -1
- package/dist/tests/modules/adapters/adapters.test.js +30 -0
- package/dist/tests/modules/adapters/adapters.test.js.map +1 -0
- package/dist/tests/orchestrate.test.js +28 -92
- package/dist/tests/orchestrate.test.js.map +1 -1
- package/dist/tests/status.test.js +27 -85
- package/dist/tests/status.test.js.map +1 -1
- package/dist/tests/time.test.js +1 -1
- package/dist/tests/trace.test.js +15 -48
- package/dist/tests/trace.test.js.map +1 -1
- package/package.json +5 -20
- package/src/cli/adapters/core.ts +53 -0
- package/src/cli/adapters/index.ts +4 -0
- package/src/cli/adapters/scaffold.ts +78 -0
- package/src/cli/adapters/utils.ts +87 -0
- package/src/cli/commands/app.ts +23 -5
- package/src/cli/commands/approve.ts +15 -7
- package/src/cli/commands/check.ts +45 -64
- package/src/cli/commands/compliance.ts +1 -1
- package/src/cli/commands/contract.ts +20 -14
- package/src/cli/commands/dashboard/data-service.ts +119 -0
- package/src/cli/commands/dashboard/html-template.ts +696 -0
- package/src/cli/commands/dashboard/server.ts +43 -0
- package/src/cli/commands/dashboard.ts +11 -0
- package/src/cli/commands/explorer.ts +2 -2
- package/src/cli/commands/git.ts +2 -2
- package/src/cli/commands/init/scaffold-core.ts +71 -0
- package/src/cli/commands/init/scaffold-ops.ts +86 -0
- package/src/cli/commands/init/scaffold-standards.ts +59 -0
- package/src/cli/commands/init.ts +22 -302
- package/src/cli/commands/knowledge.ts +5 -3
- package/src/cli/commands/lint.ts +2 -4
- package/src/cli/commands/log.ts +4 -2
- package/src/cli/commands/memory.ts +1 -1
- package/src/cli/commands/orchestrate.ts +186 -177
- package/src/cli/commands/plan.ts +47 -0
- package/src/cli/commands/script.ts +1 -1
- package/src/cli/commands/security.ts +1 -1
- package/src/cli/commands/status.ts +27 -75
- package/src/cli/commands/trace.ts +19 -34
- package/src/cli/index.ts +42 -22
- package/src/cli/shims.ts +6 -6
- package/src/cli/utils/app-backend.ts +8 -0
- package/src/cli/utils/app-docs.ts +23 -5
- package/src/cli/utils/app-frontend.ts +6 -0
- package/src/cli/utils/app-inferrer.ts +11 -1
- package/src/cli/utils/app-mobile.ts +113 -0
- package/src/cli/utils/app-types.ts +9 -4
- package/src/cli/utils/app.ts +1 -0
- package/src/cli/utils/claude.ts +2 -1
- package/src/cli/utils/compliance.ts +97 -0
- package/src/cli/utils/config-schema.ts +4 -4
- package/src/cli/utils/fs.ts +11 -16
- package/src/cli/utils/memory.ts +197 -152
- package/src/cli/utils/pkg.ts +15 -14
- package/src/cli/utils/schemas.ts +22 -0
- package/src/cli/utils/string.ts +11 -4
- package/src/cli/utils/ui.ts +8 -5
- package/src/contracts/index.ts +1 -0
- package/src/contracts/tasks.ts +26 -0
- package/src/modules/adapters/definitions.ts +1 -1
- package/src/modules/adapters/shared.ts +16 -10
- package/src/modules/adapters/types.ts +2 -2
- package/src/modules/agents/definitions.ts +320 -164
- package/src/modules/agents/registry/analyst.ts +40 -0
- package/src/modules/agents/registry/architect.ts +46 -0
- package/src/modules/agents/registry/backend.ts +47 -0
- package/src/modules/agents/registry/database.ts +42 -0
- package/src/modules/agents/registry/devops.ts +42 -0
- package/src/modules/agents/registry/explorer.ts +40 -0
- package/src/modules/agents/registry/frontend.ts +48 -0
- package/src/modules/agents/registry/git.ts +39 -0
- package/src/modules/agents/registry/manager.ts +53 -0
- package/src/modules/agents/registry/mobile.ts +44 -0
- package/src/modules/agents/registry/native.ts +40 -0
- package/src/modules/agents/registry/quality.ts +45 -0
- package/src/modules/agents/registry/security.ts +41 -0
- package/src/modules/agents/types.ts +37 -0
- package/src/modules/skills/definitions.ts +1 -1
- package/src/shared/errors.ts +13 -10
- package/src/shared/fs.ts +25 -1
- package/src/shared/logger.ts +3 -6
- package/src/shared/types.ts +20 -0
- package/.github/workflows/ci.yml +0 -40
- package/ENDERUN.md +0 -264
- package/bin/compile.js +0 -21
- package/bin/generate-cursor-rules.js +0 -78
- package/bin/hermes-sandbox.js +0 -145
- package/bin/run-multi-test.js +0 -77
- package/bin/test-init-run.js +0 -147
- package/bin/watch-memory.js +0 -54
- package/dist/init-adapters/antigravity-cli/.agents/BRAIN_DASHBOARD.md +0 -11
- package/dist/init-adapters/antigravity-cli/.agents/STATUS.md +0 -3
- package/dist/init-adapters/antigravity-cli/.agents/agents/analyst/agent.json +0 -28
- package/dist/init-adapters/antigravity-cli/.agents/agents/architect/agent.json +0 -30
- package/dist/init-adapters/antigravity-cli/.agents/agents/backend/agent.json +0 -30
- package/dist/init-adapters/antigravity-cli/.agents/agents/database/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/agents/devops/agent.json +0 -28
- package/dist/init-adapters/antigravity-cli/.agents/agents/explorer/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/agents/frontend/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/agents/git/agent.json +0 -28
- package/dist/init-adapters/antigravity-cli/.agents/agents/manager/agent.json +0 -30
- package/dist/init-adapters/antigravity-cli/.agents/agents/mobile/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/agents/native/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/agents/quality/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/agents/security/agent.json +0 -29
- package/dist/init-adapters/antigravity-cli/.agents/cli-commands.json +0 -32
- package/dist/init-adapters/antigravity-cli/.agents/config.json +0 -12
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/agents-manifest.md +0 -79
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/approval-flows.md +0 -61
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/component-patterns.md +0 -91
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/data-fetching-patterns.md +0 -13
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/design-system.md +0 -31
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/enterprise-architecture.md +0 -69
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/error-handling.md +0 -74
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/eslint-standards.md +0 -10
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/logging.md +0 -7
- package/dist/init-adapters/antigravity-cli/.agents/knowledge/tech-stack.md +0 -9
- package/dist/init-adapters/antigravity-cli/.agents/mcp_config.json +0 -13
- package/dist/init-adapters/antigravity-cli/.agents/memory/DECISIONS.md +0 -10
- package/dist/init-adapters/antigravity-cli/.agents/memory/PROJECT_MEMORY.md +0 -8
- package/dist/init-adapters/antigravity-cli/.agents/observability/audit_log.md +0 -5
- package/dist/init-adapters/antigravity-cli/.agents/observability/telemetry.md +0 -6
- package/dist/init-adapters/antigravity-cli/.agents/registry/agent_registry.md +0 -18
- package/dist/init-adapters/antigravity-cli/.agents/router/routing_rules.md +0 -8
- package/dist/init-adapters/antigravity-cli/.agents/rules/analyst.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/architect.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/backend.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/database.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/devops.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/explorer.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/frontend.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/git.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/manager.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/mobile.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/native.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/quality.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/rules/security.md +0 -16
- package/dist/init-adapters/antigravity-cli/.agents/skills/discovery.md +0 -3
- package/dist/init-adapters/antigravity-cli/.agents/skills/editing.md +0 -3
- package/dist/init-adapters/antigravity-cli/.agents/skills/execution.md +0 -4
- package/dist/init-adapters/antigravity-cli/.agents/skills/file_system.md +0 -4
- package/dist/init-adapters/antigravity-cli/.agents/skills/orchestration.md +0 -3
- package/dist/init-adapters/antigravity-cli/AGENTS.md +0 -8
- package/dist/init-adapters/antigravity-cli/ENDERUN.md +0 -261
- package/dist/init-adapters/antigravity-cli/docs/README.md +0 -6
- package/dist/init-adapters/antigravity-cli/docs/getting-started.md +0 -4
- package/dist/init-adapters/antigravity-cli/mcp.json +0 -13
- package/dist/init-adapters/antigravity-cli/package.json +0 -5
- package/dist/init-adapters/antigravity-cli/panda.config.ts +0 -2
- package/dist/init-adapters/claude/.claude/BRAIN_DASHBOARD.md +0 -11
- package/dist/init-adapters/claude/.claude/STATUS.md +0 -3
- package/dist/init-adapters/claude/.claude/agents/analyst.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/architect.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/backend.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/database.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/devops.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/explorer.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/frontend.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/git.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/manager.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/mobile.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/native.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/quality.md +0 -17
- package/dist/init-adapters/claude/.claude/agents/security.md +0 -17
- package/dist/init-adapters/claude/.claude/cli-commands.json +0 -32
- package/dist/init-adapters/claude/.claude/config.json +0 -12
- package/dist/init-adapters/claude/.claude/knowledge/agents-manifest.md +0 -79
- package/dist/init-adapters/claude/.claude/knowledge/approval-flows.md +0 -61
- package/dist/init-adapters/claude/.claude/knowledge/component-patterns.md +0 -91
- package/dist/init-adapters/claude/.claude/knowledge/data-fetching-patterns.md +0 -13
- package/dist/init-adapters/claude/.claude/knowledge/design-system.md +0 -31
- package/dist/init-adapters/claude/.claude/knowledge/enterprise-architecture.md +0 -69
- package/dist/init-adapters/claude/.claude/knowledge/error-handling.md +0 -74
- package/dist/init-adapters/claude/.claude/knowledge/eslint-standards.md +0 -10
- package/dist/init-adapters/claude/.claude/knowledge/logging.md +0 -7
- package/dist/init-adapters/claude/.claude/knowledge/tech-stack.md +0 -9
- package/dist/init-adapters/claude/.claude/mcp_config.json +0 -13
- package/dist/init-adapters/claude/.claude/memory/DECISIONS.md +0 -10
- package/dist/init-adapters/claude/.claude/memory/PROJECT_MEMORY.md +0 -8
- package/dist/init-adapters/claude/.claude/observability/audit_log.md +0 -5
- package/dist/init-adapters/claude/.claude/observability/telemetry.md +0 -6
- package/dist/init-adapters/claude/.claude/registry/agent_registry.md +0 -18
- package/dist/init-adapters/claude/.claude/router/routing_rules.md +0 -8
- package/dist/init-adapters/claude/.claude/rules/analyst.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/architect.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/backend.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/database.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/devops.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/explorer.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/frontend.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/git.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/manager.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/mobile.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/native.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/quality.md +0 -16
- package/dist/init-adapters/claude/.claude/rules/security.md +0 -16
- package/dist/init-adapters/claude/.claude/skills/discovery.md +0 -3
- package/dist/init-adapters/claude/.claude/skills/editing.md +0 -3
- package/dist/init-adapters/claude/.claude/skills/execution.md +0 -4
- package/dist/init-adapters/claude/.claude/skills/file_system.md +0 -4
- package/dist/init-adapters/claude/.claude/skills/orchestration.md +0 -3
- package/dist/init-adapters/claude/.mcp.json +0 -13
- package/dist/init-adapters/claude/CLAUDE.md +0 -8
- package/dist/init-adapters/claude/ENDERUN.md +0 -261
- package/dist/init-adapters/claude/docs/README.md +0 -6
- package/dist/init-adapters/claude/docs/getting-started.md +0 -4
- package/dist/init-adapters/claude/mcp.json +0 -13
- package/dist/init-adapters/claude/package.json +0 -5
- package/dist/init-adapters/claude/panda.config.ts +0 -2
- package/dist/init-adapters/codex/.github/BRAIN_DASHBOARD.md +0 -11
- package/dist/init-adapters/codex/.github/STATUS.md +0 -3
- package/dist/init-adapters/codex/.github/agents/analyst.md +0 -17
- package/dist/init-adapters/codex/.github/agents/architect.md +0 -17
- package/dist/init-adapters/codex/.github/agents/backend.md +0 -17
- package/dist/init-adapters/codex/.github/agents/database.md +0 -17
- package/dist/init-adapters/codex/.github/agents/devops.md +0 -17
- package/dist/init-adapters/codex/.github/agents/explorer.md +0 -17
- package/dist/init-adapters/codex/.github/agents/frontend.md +0 -17
- package/dist/init-adapters/codex/.github/agents/git.md +0 -17
- package/dist/init-adapters/codex/.github/agents/manager.md +0 -17
- package/dist/init-adapters/codex/.github/agents/mobile.md +0 -17
- package/dist/init-adapters/codex/.github/agents/native.md +0 -17
- package/dist/init-adapters/codex/.github/agents/quality.md +0 -17
- package/dist/init-adapters/codex/.github/agents/security.md +0 -17
- package/dist/init-adapters/codex/.github/cli-commands.json +0 -32
- package/dist/init-adapters/codex/.github/config.json +0 -12
- package/dist/init-adapters/codex/.github/instructions/agents-manifest.md +0 -79
- package/dist/init-adapters/codex/.github/instructions/analyst.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/approval-flows.md +0 -61
- package/dist/init-adapters/codex/.github/instructions/architect.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/backend.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/component-patterns.md +0 -91
- package/dist/init-adapters/codex/.github/instructions/data-fetching-patterns.md +0 -13
- package/dist/init-adapters/codex/.github/instructions/database.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/design-system.md +0 -31
- package/dist/init-adapters/codex/.github/instructions/devops.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/enterprise-architecture.md +0 -69
- package/dist/init-adapters/codex/.github/instructions/error-handling.md +0 -74
- package/dist/init-adapters/codex/.github/instructions/eslint-standards.md +0 -10
- package/dist/init-adapters/codex/.github/instructions/explorer.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/frontend.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/git.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/logging.md +0 -7
- package/dist/init-adapters/codex/.github/instructions/manager.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/mobile.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/native.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/quality.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/security.md +0 -16
- package/dist/init-adapters/codex/.github/instructions/tech-stack.md +0 -9
- package/dist/init-adapters/codex/.github/mcp_config.json +0 -13
- package/dist/init-adapters/codex/.github/memory/DECISIONS.md +0 -10
- package/dist/init-adapters/codex/.github/memory/PROJECT_MEMORY.md +0 -8
- package/dist/init-adapters/codex/.github/observability/audit_log.md +0 -5
- package/dist/init-adapters/codex/.github/observability/telemetry.md +0 -6
- package/dist/init-adapters/codex/.github/registry/agent_registry.md +0 -18
- package/dist/init-adapters/codex/.github/router/routing_rules.md +0 -8
- package/dist/init-adapters/codex/.github/skills/discovery.md +0 -3
- package/dist/init-adapters/codex/.github/skills/editing.md +0 -3
- package/dist/init-adapters/codex/.github/skills/execution.md +0 -4
- package/dist/init-adapters/codex/.github/skills/file_system.md +0 -4
- package/dist/init-adapters/codex/.github/skills/orchestration.md +0 -3
- package/dist/init-adapters/codex/.mcp.json +0 -13
- package/dist/init-adapters/codex/.vscode/mcp.json +0 -13
- package/dist/init-adapters/codex/ENDERUN.md +0 -261
- package/dist/init-adapters/codex/copilot-instructions.md +0 -7
- package/dist/init-adapters/codex/docs/README.md +0 -6
- package/dist/init-adapters/codex/docs/getting-started.md +0 -4
- package/dist/init-adapters/codex/mcp.json +0 -13
- package/dist/init-adapters/codex/package.json +0 -5
- package/dist/init-adapters/codex/panda.config.ts +0 -2
- package/dist/init-adapters/cursor/.cursor/BRAIN_DASHBOARD.md +0 -11
- package/dist/init-adapters/cursor/.cursor/STATUS.md +0 -3
- package/dist/init-adapters/cursor/.cursor/agents/analyst.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/architect.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/backend.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/database.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/devops.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/explorer.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/frontend.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/git.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/manager.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/mobile.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/native.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/quality.md +0 -17
- package/dist/init-adapters/cursor/.cursor/agents/security.md +0 -17
- package/dist/init-adapters/cursor/.cursor/cli-commands.json +0 -32
- package/dist/init-adapters/cursor/.cursor/config.json +0 -12
- package/dist/init-adapters/cursor/.cursor/knowledge/agents-manifest.md +0 -79
- package/dist/init-adapters/cursor/.cursor/knowledge/approval-flows.md +0 -61
- package/dist/init-adapters/cursor/.cursor/knowledge/component-patterns.md +0 -91
- package/dist/init-adapters/cursor/.cursor/knowledge/data-fetching-patterns.md +0 -13
- package/dist/init-adapters/cursor/.cursor/knowledge/design-system.md +0 -31
- package/dist/init-adapters/cursor/.cursor/knowledge/enterprise-architecture.md +0 -69
- package/dist/init-adapters/cursor/.cursor/knowledge/error-handling.md +0 -74
- package/dist/init-adapters/cursor/.cursor/knowledge/eslint-standards.md +0 -10
- package/dist/init-adapters/cursor/.cursor/knowledge/logging.md +0 -7
- package/dist/init-adapters/cursor/.cursor/knowledge/tech-stack.md +0 -9
- package/dist/init-adapters/cursor/.cursor/mcp.json +0 -13
- package/dist/init-adapters/cursor/.cursor/memory/DECISIONS.md +0 -10
- package/dist/init-adapters/cursor/.cursor/memory/PROJECT_MEMORY.md +0 -8
- package/dist/init-adapters/cursor/.cursor/observability/audit_log.md +0 -5
- package/dist/init-adapters/cursor/.cursor/observability/telemetry.md +0 -6
- package/dist/init-adapters/cursor/.cursor/registry/agent_registry.md +0 -18
- package/dist/init-adapters/cursor/.cursor/router/routing_rules.md +0 -8
- package/dist/init-adapters/cursor/.cursor/rules/analyst.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/architect.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/backend.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/database.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/devops.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/explorer.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/frontend.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/git.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/manager.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/mobile.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/native.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/quality.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/rules/security.mdc +0 -22
- package/dist/init-adapters/cursor/.cursor/skills/discovery.md +0 -3
- package/dist/init-adapters/cursor/.cursor/skills/editing.md +0 -3
- package/dist/init-adapters/cursor/.cursor/skills/execution.md +0 -4
- package/dist/init-adapters/cursor/.cursor/skills/file_system.md +0 -4
- package/dist/init-adapters/cursor/.cursor/skills/orchestration.md +0 -3
- package/dist/init-adapters/cursor/CURSOR.md +0 -7
- package/dist/init-adapters/cursor/ENDERUN.md +0 -261
- package/dist/init-adapters/cursor/docs/README.md +0 -6
- package/dist/init-adapters/cursor/docs/getting-started.md +0 -4
- package/dist/init-adapters/cursor/mcp.json +0 -13
- package/dist/init-adapters/cursor/package.json +0 -5
- package/dist/init-adapters/cursor/panda.config.ts +0 -2
- package/dist/init-adapters/gemini/.gemini/BRAIN_DASHBOARD.md +0 -11
- package/dist/init-adapters/gemini/.gemini/STATUS.md +0 -3
- package/dist/init-adapters/gemini/.gemini/agents/analyst.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/architect.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/backend.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/database.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/devops.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/explorer.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/frontend.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/git.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/manager.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/mobile.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/native.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/quality.md +0 -17
- package/dist/init-adapters/gemini/.gemini/agents/security.md +0 -17
- package/dist/init-adapters/gemini/.gemini/cli-commands.json +0 -32
- package/dist/init-adapters/gemini/.gemini/config.json +0 -12
- package/dist/init-adapters/gemini/.gemini/knowledge/agents-manifest.md +0 -79
- package/dist/init-adapters/gemini/.gemini/knowledge/approval-flows.md +0 -61
- package/dist/init-adapters/gemini/.gemini/knowledge/component-patterns.md +0 -91
- package/dist/init-adapters/gemini/.gemini/knowledge/data-fetching-patterns.md +0 -13
- package/dist/init-adapters/gemini/.gemini/knowledge/design-system.md +0 -31
- package/dist/init-adapters/gemini/.gemini/knowledge/enterprise-architecture.md +0 -69
- package/dist/init-adapters/gemini/.gemini/knowledge/error-handling.md +0 -74
- package/dist/init-adapters/gemini/.gemini/knowledge/eslint-standards.md +0 -10
- package/dist/init-adapters/gemini/.gemini/knowledge/logging.md +0 -7
- package/dist/init-adapters/gemini/.gemini/knowledge/tech-stack.md +0 -9
- package/dist/init-adapters/gemini/.gemini/mcp.json +0 -13
- package/dist/init-adapters/gemini/.gemini/memory/DECISIONS.md +0 -10
- package/dist/init-adapters/gemini/.gemini/memory/PROJECT_MEMORY.md +0 -8
- package/dist/init-adapters/gemini/.gemini/observability/audit_log.md +0 -5
- package/dist/init-adapters/gemini/.gemini/observability/telemetry.md +0 -6
- package/dist/init-adapters/gemini/.gemini/registry/agent_registry.md +0 -18
- package/dist/init-adapters/gemini/.gemini/router/routing_rules.md +0 -8
- package/dist/init-adapters/gemini/.gemini/rules/analyst.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/architect.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/backend.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/database.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/devops.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/explorer.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/frontend.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/git.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/manager.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/mobile.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/native.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/quality.md +0 -16
- package/dist/init-adapters/gemini/.gemini/rules/security.md +0 -16
- package/dist/init-adapters/gemini/.gemini/skills/discovery.md +0 -3
- package/dist/init-adapters/gemini/.gemini/skills/editing.md +0 -3
- package/dist/init-adapters/gemini/.gemini/skills/execution.md +0 -4
- package/dist/init-adapters/gemini/.gemini/skills/file_system.md +0 -4
- package/dist/init-adapters/gemini/.gemini/skills/orchestration.md +0 -3
- package/dist/init-adapters/gemini/ENDERUN.md +0 -261
- package/dist/init-adapters/gemini/GEMINI.md +0 -8
- package/dist/init-adapters/gemini/docs/README.md +0 -6
- package/dist/init-adapters/gemini/docs/getting-started.md +0 -4
- package/dist/init-adapters/gemini/mcp.json +0 -13
- package/dist/init-adapters/gemini/package.json +0 -5
- package/dist/init-adapters/gemini/panda.config.ts +0 -2
- package/dist/init-adapters/grok/.grok/BRAIN_DASHBOARD.md +0 -11
- package/dist/init-adapters/grok/.grok/STATUS.md +0 -3
- package/dist/init-adapters/grok/.grok/agents/analyst.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/architect.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/backend.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/database.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/devops.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/explorer.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/frontend.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/git.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/manager.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/mobile.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/native.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/quality.md +0 -17
- package/dist/init-adapters/grok/.grok/agents/security.md +0 -17
- package/dist/init-adapters/grok/.grok/cli-commands.json +0 -32
- package/dist/init-adapters/grok/.grok/config.json +0 -12
- package/dist/init-adapters/grok/.grok/knowledge/agents-manifest.md +0 -79
- package/dist/init-adapters/grok/.grok/knowledge/approval-flows.md +0 -61
- package/dist/init-adapters/grok/.grok/knowledge/component-patterns.md +0 -91
- package/dist/init-adapters/grok/.grok/knowledge/data-fetching-patterns.md +0 -13
- package/dist/init-adapters/grok/.grok/knowledge/design-system.md +0 -31
- package/dist/init-adapters/grok/.grok/knowledge/enterprise-architecture.md +0 -69
- package/dist/init-adapters/grok/.grok/knowledge/error-handling.md +0 -74
- package/dist/init-adapters/grok/.grok/knowledge/eslint-standards.md +0 -10
- package/dist/init-adapters/grok/.grok/knowledge/logging.md +0 -7
- package/dist/init-adapters/grok/.grok/knowledge/tech-stack.md +0 -9
- package/dist/init-adapters/grok/.grok/mcp_config.json +0 -13
- package/dist/init-adapters/grok/.grok/memory/DECISIONS.md +0 -10
- package/dist/init-adapters/grok/.grok/memory/PROJECT_MEMORY.md +0 -8
- package/dist/init-adapters/grok/.grok/observability/audit_log.md +0 -5
- package/dist/init-adapters/grok/.grok/observability/telemetry.md +0 -6
- package/dist/init-adapters/grok/.grok/registry/agent_registry.md +0 -18
- package/dist/init-adapters/grok/.grok/router/routing_rules.md +0 -8
- package/dist/init-adapters/grok/.grok/rules/analyst.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/architect.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/backend.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/database.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/devops.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/explorer.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/frontend.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/git.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/manager.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/mobile.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/native.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/quality.md +0 -16
- package/dist/init-adapters/grok/.grok/rules/security.md +0 -16
- package/dist/init-adapters/grok/.grok/skills/discovery.md +0 -3
- package/dist/init-adapters/grok/.grok/skills/editing.md +0 -3
- package/dist/init-adapters/grok/.grok/skills/execution.md +0 -4
- package/dist/init-adapters/grok/.grok/skills/file_system.md +0 -4
- package/dist/init-adapters/grok/.grok/skills/orchestration.md +0 -3
- package/dist/init-adapters/grok/ENDERUN.md +0 -261
- package/dist/init-adapters/grok/GROK.md +0 -7
- package/dist/init-adapters/grok/docs/README.md +0 -6
- package/dist/init-adapters/grok/docs/getting-started.md +0 -4
- package/dist/init-adapters/grok/mcp.json +0 -13
- package/dist/init-adapters/grok/package.json +0 -5
- package/dist/init-adapters/grok/panda.config.ts +0 -2
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp.json +0 -13
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp_config.json +0 -13
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst/agent.json +0 -28
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst.json +0 -28
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect/agent.json +0 -30
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect.json +0 -30
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend/agent.json +0 -30
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend.json +0 -30
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops/agent.json +0 -28
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops.json +0 -28
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git/agent.json +0 -28
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git.json +0 -28
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager/agent.json +0 -30
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager.json +0 -30
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security/agent.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security.json +0 -29
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/hooks.json +0 -4
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp.json +0 -13
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp_config.json +0 -13
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/plugin.json +0 -5
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/analyst.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/architect.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/backend.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/database.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/devops.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/explorer.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/frontend.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/git.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/manager.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/mobile.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/native.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/quality.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/security.md +0 -11
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/discovery.md +0 -3
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/editing.md +0 -3
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/execution.md +0 -4
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/file_system.md +0 -4
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/orchestration.md +0 -3
- package/dist/init-adapters/mock-home/Library/Application Support/Claude/claude_desktop_config.json +0 -13
- package/dist/src/cli/adapters/types.d.ts +0 -14
- package/dist/src/cli/adapters/types.js +0 -2
- package/dist/src/cli/adapters/types.js.map +0 -1
- package/dist/src/cli/adapters.d.ts +0 -16
- package/dist/src/cli/adapters.js +0 -223
- package/dist/src/cli/adapters.js.map +0 -1
- package/dist/src/modules/adapters/antigravity-cli.d.ts +0 -3
- package/dist/src/modules/adapters/antigravity-cli.js +0 -21
- package/dist/src/modules/adapters/antigravity-cli.js.map +0 -1
- package/dist/src/modules/adapters/claude.d.ts +0 -3
- package/dist/src/modules/adapters/claude.js +0 -36
- package/dist/src/modules/adapters/claude.js.map +0 -1
- package/dist/src/modules/adapters/codex.d.ts +0 -3
- package/dist/src/modules/adapters/codex.js +0 -20
- package/dist/src/modules/adapters/codex.js.map +0 -1
- package/dist/src/modules/adapters/cursor.d.ts +0 -3
- package/dist/src/modules/adapters/cursor.js +0 -20
- package/dist/src/modules/adapters/cursor.js.map +0 -1
- package/dist/src/modules/adapters/gemini.d.ts +0 -3
- package/dist/src/modules/adapters/gemini.js +0 -23
- package/dist/src/modules/adapters/gemini.js.map +0 -1
- package/dist/src/modules/adapters/grok.d.ts +0 -3
- package/dist/src/modules/adapters/grok.js +0 -18
- package/dist/src/modules/adapters/grok.js.map +0 -1
- package/dist/src/shared/config.d.ts +0 -41
- package/dist/src/shared/config.js +0 -61
- package/dist/src/shared/config.js.map +0 -1
- package/dist/src/shared/container.d.ts +0 -25
- package/dist/src/shared/container.js +0 -56
- package/dist/src/shared/container.js.map +0 -1
- package/dist/tests/config.test.js +0 -58
- package/dist/tests/config.test.js.map +0 -1
- package/dist/tests/container.runner.js +0 -68
- package/dist/tests/container.runner.js.map +0 -1
- package/dist/tests/container.test.js +0 -73
- package/dist/tests/container.test.js.map +0 -1
- package/dist/tests/mock-project/apps/web/panda.config.d.ts +0 -4
- package/dist/tests/mock-project/apps/web/panda.config.js +0 -3
- package/dist/tests/mock-project/apps/web/panda.config.js.map +0 -1
- package/dist/tests/shared.test.d.ts +0 -1
- package/dist/tests/shared.test.js +0 -80
- package/dist/tests/shared.test.js.map +0 -1
- package/docs/README.md +0 -44
- package/docs/getting-started.md +0 -4
- package/docs/user/action-plan-2026.md +0 -9
- package/docs/user/corporate-governance.md +0 -25
- package/docs/user/getting-started.md +0 -13
- package/docs/user/roadmap.md +0 -13
- package/eslint.config.js +0 -92
- package/framework-mcp/dist/index.js +0 -76
- package/framework-mcp/dist/tools/control_plane/locking.js +0 -64
- package/framework-mcp/dist/tools/control_plane/registry.js +0 -34
- package/framework-mcp/dist/tools/dashboard/start_dashboard.js +0 -29
- package/framework-mcp/dist/tools/definitions.js +0 -270
- package/framework-mcp/dist/tools/file_system/batch_surgical_edit.js +0 -50
- package/framework-mcp/dist/tools/file_system/patch_file.js +0 -21
- package/framework-mcp/dist/tools/file_system/read_file.js +0 -34
- package/framework-mcp/dist/tools/file_system/replace_text.js +0 -38
- package/framework-mcp/dist/tools/file_system/write_file.js +0 -26
- package/framework-mcp/dist/tools/framework/audit_deps.js +0 -41
- package/framework-mcp/dist/tools/framework/get_status.js +0 -5
- package/framework-mcp/dist/tools/framework/orchestrate.js +0 -5
- package/framework-mcp/dist/tools/framework/run_tests.js +0 -25
- package/framework-mcp/dist/tools/framework/update_contract_hash.js +0 -5
- package/framework-mcp/dist/tools/framework/update_memory.js +0 -8
- package/framework-mcp/dist/tools/index.js +0 -54
- package/framework-mcp/dist/tools/memory/get_insights.js +0 -34
- package/framework-mcp/dist/tools/memory/read_memory.js +0 -28
- package/framework-mcp/dist/tools/messaging/log_action.js +0 -22
- package/framework-mcp/dist/tools/messaging/send_message.js +0 -74
- package/framework-mcp/dist/tools/observability/check_ports.js +0 -26
- package/framework-mcp/dist/tools/observability/get_health.js +0 -19
- package/framework-mcp/dist/tools/search/get_gaps.js +0 -48
- package/framework-mcp/dist/tools/search/get_map.js +0 -43
- package/framework-mcp/dist/tools/search/grep_search.js +0 -59
- package/framework-mcp/dist/tools/search/list_dir.js +0 -28
- package/framework-mcp/dist/tools/types.js +0 -1
- package/framework-mcp/dist/utils/cli.js +0 -20
- package/framework-mcp/dist/utils/compliance.js +0 -29
- package/framework-mcp/dist/utils/metrics.js +0 -38
- package/framework-mcp/dist/utils/security.js +0 -57
- package/framework-mcp/package.json +0 -19
- package/framework-mcp/src/declarations.d.ts +0 -17
- package/framework-mcp/src/index.ts +0 -95
- package/framework-mcp/src/tools/control_plane/locking.ts +0 -77
- package/framework-mcp/src/tools/control_plane/registry.ts +0 -44
- package/framework-mcp/src/tools/dashboard/start_dashboard.ts +0 -33
- package/framework-mcp/src/tools/definitions.ts +0 -272
- package/framework-mcp/src/tools/file_system/batch_surgical_edit.ts +0 -70
- package/framework-mcp/src/tools/file_system/patch_file.ts +0 -29
- package/framework-mcp/src/tools/file_system/read_file.ts +0 -39
- package/framework-mcp/src/tools/file_system/replace_text.ts +0 -50
- package/framework-mcp/src/tools/file_system/write_file.ts +0 -33
- package/framework-mcp/src/tools/framework/audit_deps.ts +0 -49
- package/framework-mcp/src/tools/framework/get_status.ts +0 -7
- package/framework-mcp/src/tools/framework/orchestrate.ts +0 -7
- package/framework-mcp/src/tools/framework/run_tests.ts +0 -28
- package/framework-mcp/src/tools/framework/update_contract_hash.ts +0 -7
- package/framework-mcp/src/tools/framework/update_memory.ts +0 -10
- package/framework-mcp/src/tools/index.ts +0 -60
- package/framework-mcp/src/tools/memory/get_insights.ts +0 -41
- package/framework-mcp/src/tools/memory/read_memory.ts +0 -31
- package/framework-mcp/src/tools/messaging/log_action.ts +0 -28
- package/framework-mcp/src/tools/messaging/send_message.ts +0 -76
- package/framework-mcp/src/tools/observability/check_ports.ts +0 -30
- package/framework-mcp/src/tools/observability/get_health.ts +0 -24
- package/framework-mcp/src/tools/search/get_gaps.ts +0 -54
- package/framework-mcp/src/tools/search/get_map.ts +0 -48
- package/framework-mcp/src/tools/search/grep_search.ts +0 -65
- package/framework-mcp/src/tools/search/list_dir.ts +0 -34
- package/framework-mcp/src/tools/types.ts +0 -54
- package/framework-mcp/src/utils/cli.ts +0 -20
- package/framework-mcp/src/utils/compliance.ts +0 -37
- package/framework-mcp/src/utils/metrics.ts +0 -53
- package/framework-mcp/src/utils/security.ts +0 -64
- package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +0 -206
- package/framework-mcp/tests/tools/messaging/send_message.test.ts +0 -136
- package/framework-mcp/tsconfig.json +0 -14
- package/src/cli/adapters/types.ts +0 -16
- package/src/cli/adapters.ts +0 -244
- package/src/shared/config.ts +0 -73
- package/src/shared/container.ts +0 -67
- package/templates/prompts/bug-fix-recipe.md +0 -20
- package/templates/prompts/new-feature-recipe.md +0 -19
- package/templates/prompts/refactoring-recipe.md +0 -21
- package/templates/standards/architecture-standards.md +0 -23
- package/templates/standards/crud-governance.md +0 -21
- package/templates/standards/frontend-standards.md +0 -38
- package/templates/standards/i18n-standards.md +0 -17
- package/templates/standards/logging-and-secrets.md +0 -29
- package/templates/standards/mobile-standards.md +0 -24
- package/templates/standards/quality-standards.md +0 -31
- package/templates/standards/security-standards.md +0 -21
- package/templates/standards/tailwind-standards.md +0 -20
- package/templates/standards/testing-standards.md +0 -31
- package/tsconfig.json +0 -24
- /package/dist/tests/{config.test.d.ts → cli/init/adapter_init.test.d.ts} +0 -0
- /package/dist/tests/{container.runner.d.ts → integration/agent_flow.test.d.ts} +0 -0
- /package/dist/tests/{container.test.d.ts → modules/adapters/adapters.test.d.ts} +0 -0
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
export const TOOLS = [
|
|
2
|
-
{
|
|
3
|
-
name: "read_file",
|
|
4
|
-
description: "Read the content of a file within the project. Supports optional line range reading to prevent stream overload.",
|
|
5
|
-
inputSchema: {
|
|
6
|
-
type: "object",
|
|
7
|
-
properties: {
|
|
8
|
-
path: { type: "string", description: "Path to the file relative to project root" },
|
|
9
|
-
startLine: { type: "number", description: "Optional starting line number (1-indexed)" },
|
|
10
|
-
endLine: { type: "number", description: "Optional ending line number (inclusive)" },
|
|
11
|
-
},
|
|
12
|
-
required: ["path"],
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: "list_dir",
|
|
17
|
-
description: "List the contents of a directory. Essential for codebase exploration.",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: "object",
|
|
20
|
-
properties: {
|
|
21
|
-
path: { type: "string", description: "Path to the directory relative to project root (default: '.')" },
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: "grep_search",
|
|
27
|
-
description: "Perform a recursive regex search across the codebase to find functions, variables, or patterns.",
|
|
28
|
-
inputSchema: {
|
|
29
|
-
type: "object",
|
|
30
|
-
properties: {
|
|
31
|
-
pattern: { type: "string", description: "The regex pattern to search for" },
|
|
32
|
-
includePattern: { type: "string", description: "Optional: Filter files by extension (e.g., '.ts')" },
|
|
33
|
-
excludePattern: { type: "string", description: "Optional: Directory pattern to exclude (default: 'node_modules')" },
|
|
34
|
-
},
|
|
35
|
-
required: ["pattern"],
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "write_file",
|
|
40
|
-
description: "Write content to a file. Creates directories if missing.",
|
|
41
|
-
inputSchema: {
|
|
42
|
-
type: "object",
|
|
43
|
-
properties: {
|
|
44
|
-
path: { type: "string", description: "Path to the file relative to project root" },
|
|
45
|
-
content: { type: "string", description: "Complete content of the file" },
|
|
46
|
-
},
|
|
47
|
-
required: ["path", "content"],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: "replace_text",
|
|
52
|
-
description: "Surgically replace a string in a file with another string.",
|
|
53
|
-
inputSchema: {
|
|
54
|
-
type: "object",
|
|
55
|
-
properties: {
|
|
56
|
-
path: { type: "string", description: "Path to the file" },
|
|
57
|
-
oldText: { type: "string", description: "The exact text to find" },
|
|
58
|
-
newText: { type: "string", description: "The text to replace it with" },
|
|
59
|
-
allowMultiple: { type: "boolean", description: "Allow multiple replacements if oldText is not unique." }
|
|
60
|
-
},
|
|
61
|
-
required: ["path", "oldText", "newText"],
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: "batch_surgical_edit",
|
|
66
|
-
description: "Perform multiple surgical text replacements across multiple files in a single batch request. More efficient for cross-cutting changes.",
|
|
67
|
-
inputSchema: {
|
|
68
|
-
type: "object",
|
|
69
|
-
properties: {
|
|
70
|
-
edits: {
|
|
71
|
-
type: "array",
|
|
72
|
-
items: {
|
|
73
|
-
type: "object",
|
|
74
|
-
properties: {
|
|
75
|
-
path: { type: "string", description: "Path to the file" },
|
|
76
|
-
oldText: { type: "string", description: "The exact text to find" },
|
|
77
|
-
newText: { type: "string", description: "The text to replace it with" },
|
|
78
|
-
allowMultiple: { type: "boolean", description: "Allow multiple replacements in this file." }
|
|
79
|
-
},
|
|
80
|
-
required: ["path", "oldText", "newText"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
required: ["edits"],
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "patch_file",
|
|
89
|
-
description: "Safely update a file by replacing a specific line range with new content.",
|
|
90
|
-
inputSchema: {
|
|
91
|
-
type: "object",
|
|
92
|
-
properties: {
|
|
93
|
-
path: { type: "string", description: "Path to the file" },
|
|
94
|
-
startLine: { type: "number", description: "Starting line number (1-indexed)" },
|
|
95
|
-
endLine: { type: "number", description: "Ending line number (inclusive)" },
|
|
96
|
-
newContent: { type: "string", description: "The new lines to insert" },
|
|
97
|
-
},
|
|
98
|
-
required: ["path", "startLine", "endLine", "newContent"],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: "get_project_map",
|
|
103
|
-
description: "Generate a tree-view map of the project structure to visualize the layout. Useful for onboarding and architectural analysis.",
|
|
104
|
-
inputSchema: {
|
|
105
|
-
type: "object",
|
|
106
|
-
properties: {
|
|
107
|
-
maxDepth: { type: "number", description: "Maximum directory depth to scan (default: 3)" },
|
|
108
|
-
includeFiles: { type: "boolean", description: "Whether to include files in the map (default: true)" }
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: "get_project_gaps",
|
|
114
|
-
description: "Scans the codebase for TODOs, FIXMEs, and empty function bodies. Helps identify what is left and where the agent might have skipped logic.",
|
|
115
|
-
inputSchema: {
|
|
116
|
-
type: "object",
|
|
117
|
-
properties: {
|
|
118
|
-
path: { type: "string", description: "Path to the source directory (default: 'src')" },
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: "audit_dependencies",
|
|
124
|
-
description: "Audits package.json for unused, redundant, or duplicate-like packages to ensure a clean dependency tree.",
|
|
125
|
-
inputSchema: { type: "object", properties: {} },
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: "run_tests",
|
|
129
|
-
description: "Execute project test suites (Vitest, Playwright, etc.) and capture detailed pass/fail reports for analysis.",
|
|
130
|
-
inputSchema: {
|
|
131
|
-
type: "object",
|
|
132
|
-
properties: {
|
|
133
|
-
command: { type: "string", description: "The test command to run (default: 'npm test')" }
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: "get_system_health",
|
|
139
|
-
description: "Retrieve real-time system metrics like CPU load, RAM usage, and uptime.",
|
|
140
|
-
inputSchema: { type: "object", properties: {} }
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: "check_active_ports",
|
|
144
|
-
description: "Identify which network ports are currently active and listening. Helps verify if the dev server or API is running.",
|
|
145
|
-
inputSchema: {
|
|
146
|
-
type: "object",
|
|
147
|
-
properties: {
|
|
148
|
-
filter: { type: "string", description: "Optional: Filter results by port number or service name (e.g., ':3000')" }
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: "start_dashboard",
|
|
154
|
-
description: "Start the Enderun Web Dashboard (Command Center) to visualize real-time agent status, logs, and system metrics in the browser.",
|
|
155
|
-
inputSchema: {
|
|
156
|
-
type: "object",
|
|
157
|
-
properties: {
|
|
158
|
-
port: { type: "number", description: "Optional: Port to run the dashboard on (default: 5858)" }
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: "get_framework_status",
|
|
164
|
-
description: "Get the current project phase, active traces, and agent states.",
|
|
165
|
-
inputSchema: { type: "object", properties: {} },
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: "read_project_memory",
|
|
169
|
-
description: "Read the full project central memory (PROJECT_MEMORY.md). Use this at the start of a session to gain context.",
|
|
170
|
-
inputSchema: { type: "object", properties: {} },
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: "get_memory_insights",
|
|
174
|
-
description: "Retrieve a summarized version of the project memory (active phase, trace, and last 5 actions) to save tokens.",
|
|
175
|
-
inputSchema: { type: "object", properties: {} },
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: "update_project_memory",
|
|
179
|
-
description: "Update a specific section in PROJECT_MEMORY.md.",
|
|
180
|
-
inputSchema: {
|
|
181
|
-
type: "object",
|
|
182
|
-
properties: {
|
|
183
|
-
section: { type: "string", description: "Section name (e.g., HISTORY, ACTIVE TASKS)" },
|
|
184
|
-
content: { type: "string", description: "Markdown content to append or set" },
|
|
185
|
-
},
|
|
186
|
-
required: ["section", "content"],
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: "orchestrate_loop",
|
|
191
|
-
description: "Process the pending Hermes messages and trigger dynamic state transitions.",
|
|
192
|
-
inputSchema: { type: "object", properties: {} },
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
name: "send_agent_message",
|
|
196
|
-
description: "Send a Hermes protocol message to another agent for collaboration or sub-tasking.",
|
|
197
|
-
inputSchema: {
|
|
198
|
-
type: "object",
|
|
199
|
-
properties: {
|
|
200
|
-
from: { type: "string", description: "Sender agent (e.g., @manager, @backend)." },
|
|
201
|
-
to: { type: "string", description: "Target agent (e.g., @backend, @quality)." },
|
|
202
|
-
category: { type: "string", enum: ["ACTION", "DELEGATION", "SUBTASK", "REPLY", "ALERT"], description: "Message type." },
|
|
203
|
-
content: { type: "string", description: "Task description or message content." },
|
|
204
|
-
traceId: { type: "string", description: "Active Trace ID." },
|
|
205
|
-
parentId: { type: "string", description: "Optional parent task trace ID for hierarchical tracking." },
|
|
206
|
-
priority: { type: "string", enum: ["HIGH", "NORMAL", "LOW"], description: "Optional priority level (HIGH, NORMAL, LOW). Defaults to HIGH for ALERT/ACTION." },
|
|
207
|
-
},
|
|
208
|
-
required: ["from", "to", "category", "content", "traceId"],
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: "acquire_lock",
|
|
213
|
-
description: "Acquire a stateful lock on a shared resource (like PROJECT_MEMORY.md) to prevent concurrent write conflicts.",
|
|
214
|
-
inputSchema: {
|
|
215
|
-
type: "object",
|
|
216
|
-
properties: {
|
|
217
|
-
resource: { type: "string", description: "The resource name or path to lock (e.g., 'memory')." },
|
|
218
|
-
agent: { type: "string", description: "The agent requesting the lock (e.g., '@backend')." },
|
|
219
|
-
ttl: { type: "number", description: "Time-to-live in seconds before the lock auto-expires (default: 60)." }
|
|
220
|
-
},
|
|
221
|
-
required: ["resource", "agent"]
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
name: "release_lock",
|
|
226
|
-
description: "Release a previously acquired lock on a resource.",
|
|
227
|
-
inputSchema: {
|
|
228
|
-
type: "object",
|
|
229
|
-
properties: {
|
|
230
|
-
resource: { type: "string", description: "The resource name or path." },
|
|
231
|
-
agent: { type: "string", description: "The agent releasing the lock." }
|
|
232
|
-
},
|
|
233
|
-
required: ["resource", "agent"]
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
name: "register_agent",
|
|
238
|
-
description: "Register an agent instance with the Control Plane and validate its permissions.",
|
|
239
|
-
inputSchema: {
|
|
240
|
-
type: "object",
|
|
241
|
-
properties: {
|
|
242
|
-
agent: { type: "string", description: "The agent name (e.g., '@backend')." },
|
|
243
|
-
role: { type: "string", description: "The role of the agent." },
|
|
244
|
-
capability: { type: "number", description: "The capability score (1-10)." }
|
|
245
|
-
},
|
|
246
|
-
required: ["agent", "role"]
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: "log_agent_action",
|
|
251
|
-
description: "Log an agent action to the framework logs.",
|
|
252
|
-
inputSchema: {
|
|
253
|
-
type: "object",
|
|
254
|
-
properties: {
|
|
255
|
-
agent: { type: "string", description: "The agent name (e.g., @manager, @backend)" },
|
|
256
|
-
action: { type: "string", description: "Action type or name" },
|
|
257
|
-
traceId: { type: "string", description: "The active Trace ID" },
|
|
258
|
-
status: { type: "string", enum: ["SUCCESS", "FAILURE"], description: "The status of the action" },
|
|
259
|
-
summary: { type: "string", description: "Brief description of the action taken" },
|
|
260
|
-
findings: { type: "string", description: "Optional comma-separated findings or details" }
|
|
261
|
-
},
|
|
262
|
-
required: ["agent", "action", "traceId", "status", "summary"]
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
name: "update_contract_hash",
|
|
267
|
-
description: "Re-generate and synchronize the backend contract SHA-256 hash.",
|
|
268
|
-
inputSchema: { type: "object", properties: {} }
|
|
269
|
-
}
|
|
270
|
-
];
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import { safePath } from "../../utils/security.js";
|
|
3
|
-
import { Metrics } from "../../utils/metrics.js";
|
|
4
|
-
import { verifyCorporateCompliance } from "../../utils/compliance.js";
|
|
5
|
-
/**
|
|
6
|
-
* Performs multiple surgical text replacements across multiple files in a single batch.
|
|
7
|
-
*/
|
|
8
|
-
export function handleBatchSurgicalEdit(projectRoot, args) {
|
|
9
|
-
const edits = args.edits;
|
|
10
|
-
if (!Array.isArray(edits) || edits.length === 0) {
|
|
11
|
-
throw new Error("No edits provided in the batch request.");
|
|
12
|
-
}
|
|
13
|
-
const results = [];
|
|
14
|
-
let totalTokens = 0;
|
|
15
|
-
for (const edit of edits) {
|
|
16
|
-
const filePath = safePath(projectRoot, edit.path);
|
|
17
|
-
if (!fs.existsSync(filePath)) {
|
|
18
|
-
throw new Error(`File not found: ${edit.path}`);
|
|
19
|
-
}
|
|
20
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
21
|
-
const { oldText, newText, allowMultiple = false } = edit;
|
|
22
|
-
if (!content.includes(oldText)) {
|
|
23
|
-
throw new Error(`Text not found in file ${edit.path}: "${oldText.slice(0, 50)}..."`);
|
|
24
|
-
}
|
|
25
|
-
// Surgical precision guard
|
|
26
|
-
if (!allowMultiple) {
|
|
27
|
-
const firstIndex = content.indexOf(oldText);
|
|
28
|
-
const lastIndex = content.lastIndexOf(oldText);
|
|
29
|
-
if (firstIndex !== lastIndex) {
|
|
30
|
-
throw new Error(`Ambiguous replacement in ${edit.path}: "${oldText.slice(0, 50)}..." found multiple times.`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const newContent = allowMultiple
|
|
34
|
-
? content.replace(new RegExp(oldText.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), newText)
|
|
35
|
-
: content.replace(oldText, newText);
|
|
36
|
-
// ENFORCE CORPORATE COMPLIANCE
|
|
37
|
-
verifyCorporateCompliance(newContent, edit.path);
|
|
38
|
-
fs.writeFileSync(filePath, newContent);
|
|
39
|
-
const tokens = Metrics.estimateTokens(newText);
|
|
40
|
-
totalTokens += tokens;
|
|
41
|
-
results.push(`✅ Edited ${edit.path}`);
|
|
42
|
-
}
|
|
43
|
-
Metrics.logUsage(projectRoot, "@mcp", `batch_surgical_edit: ${edits.length} files`, totalTokens);
|
|
44
|
-
return {
|
|
45
|
-
content: [{
|
|
46
|
-
type: "text",
|
|
47
|
-
text: `Successfully performed ${edits.length} edits:\n${results.join("\n")}`
|
|
48
|
-
}]
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import { safePath } from "../../utils/security.js";
|
|
3
|
-
import { Metrics } from "../../utils/metrics.js";
|
|
4
|
-
export function handlePatchFile(projectRoot, args) {
|
|
5
|
-
const filePath = safePath(projectRoot, args.path);
|
|
6
|
-
const lines = fs.readFileSync(filePath, "utf8").split("\n");
|
|
7
|
-
const start = args.startLine - 1;
|
|
8
|
-
const end = args.endLine;
|
|
9
|
-
const newContent = args.newContent.split("\n");
|
|
10
|
-
if (start < 0 || start > lines.length) {
|
|
11
|
-
throw new Error(`Invalid start line: ${start + 1}. File has ${lines.length} lines.`);
|
|
12
|
-
}
|
|
13
|
-
if (end < start + 1 || end > lines.length) {
|
|
14
|
-
throw new Error(`Invalid end line: ${end}. Must be between ${start + 1} and ${lines.length}.`);
|
|
15
|
-
}
|
|
16
|
-
lines.splice(start, end - start, ...newContent);
|
|
17
|
-
fs.writeFileSync(filePath, lines.join("\n"));
|
|
18
|
-
const tokens = Metrics.estimateTokens(args.newContent);
|
|
19
|
-
Metrics.logUsage(projectRoot, "@mcp", `patch_file: ${args.path}`, tokens);
|
|
20
|
-
return { content: [{ type: "text", text: `✅ File patched successfully: ${args.path}` }] };
|
|
21
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import { safePath } from "../../utils/security.js";
|
|
3
|
-
import { Metrics } from "../../utils/metrics.js";
|
|
4
|
-
export function handleReadFile(projectRoot, args) {
|
|
5
|
-
const filePath = safePath(projectRoot, args.path);
|
|
6
|
-
const startLine = args.startLine !== undefined ? Number(args.startLine) : undefined;
|
|
7
|
-
const endLine = args.endLine !== undefined ? Number(args.endLine) : undefined;
|
|
8
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
9
|
-
const lines = content.split(/\r?\n/);
|
|
10
|
-
if (startLine !== undefined || endLine !== undefined) {
|
|
11
|
-
const start = startLine !== undefined ? Math.max(1, startLine) - 1 : 0;
|
|
12
|
-
const end = endLine !== undefined ? Math.min(lines.length, endLine) : lines.length;
|
|
13
|
-
const sliced = lines.slice(start, end).join("\n");
|
|
14
|
-
const tokens = Metrics.estimateTokens(sliced);
|
|
15
|
-
Metrics.logUsage(projectRoot, "@mcp", `read_file: ${args.path}`, tokens);
|
|
16
|
-
return { content: [{ type: "text", text: sliced }] };
|
|
17
|
-
}
|
|
18
|
-
// Default protection limit: 1000 lines
|
|
19
|
-
const DEFAULT_MAX_LINES = 1000;
|
|
20
|
-
if (lines.length > DEFAULT_MAX_LINES) {
|
|
21
|
-
const sliced = lines.slice(0, DEFAULT_MAX_LINES).join("\n");
|
|
22
|
-
const tokens = Metrics.estimateTokens(sliced);
|
|
23
|
-
Metrics.logUsage(projectRoot, "@mcp", `read_file: ${args.path} (truncated)`, tokens);
|
|
24
|
-
return {
|
|
25
|
-
content: [{
|
|
26
|
-
type: "text",
|
|
27
|
-
text: `${sliced}\n\n... [TRUNCATED - File is too long (${lines.length} lines). Only the first ${DEFAULT_MAX_LINES} lines are shown. Use startLine and endLine parameters to read other parts of the file.]`
|
|
28
|
-
}]
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const tokens = Metrics.estimateTokens(content);
|
|
32
|
-
Metrics.logUsage(projectRoot, "@mcp", `read_file: ${args.path}`, tokens);
|
|
33
|
-
return { content: [{ type: "text", text: content }] };
|
|
34
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import { safePath } from "../../utils/security.js";
|
|
3
|
-
import { Metrics } from "../../utils/metrics.js";
|
|
4
|
-
import { verifyCorporateCompliance } from "../../utils/compliance.js";
|
|
5
|
-
export function handleReplaceText(projectRoot, args) {
|
|
6
|
-
const filePath = safePath(projectRoot, args.path);
|
|
7
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
8
|
-
const oldText = args.oldText;
|
|
9
|
-
const newText = args.newText;
|
|
10
|
-
const allowMultiple = args.allowMultiple || false; // Default to false
|
|
11
|
-
if (!content.includes(oldText)) {
|
|
12
|
-
throw new Error(`Text not found in file: ${oldText.slice(0, 100)}...`);
|
|
13
|
-
}
|
|
14
|
-
// Surgical precision guard: reject ambiguous replacements unless allowMultiple is true.
|
|
15
|
-
if (!allowMultiple) {
|
|
16
|
-
const firstIndex = content.indexOf(oldText);
|
|
17
|
-
const lastIndex = content.lastIndexOf(oldText);
|
|
18
|
-
if (firstIndex !== lastIndex) {
|
|
19
|
-
const count = (content.match(new RegExp(oldText.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g")) || []).length;
|
|
20
|
-
throw new Error(`Ambiguous replacement: "${oldText.slice(0, 80)}..." found ${count} times in ${args.path}. ` +
|
|
21
|
-
"Provide a longer, unique context string or set 'allow_multiple' to true.");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// Perform replacement(s)
|
|
25
|
-
let newContent;
|
|
26
|
-
if (allowMultiple) {
|
|
27
|
-
newContent = content.replace(new RegExp(oldText.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), newText);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
newContent = content.replace(oldText, newText);
|
|
31
|
-
}
|
|
32
|
-
// ENFORCE CORPORATE COMPLIANCE
|
|
33
|
-
verifyCorporateCompliance(newContent, args.path);
|
|
34
|
-
fs.writeFileSync(filePath, newContent);
|
|
35
|
-
const tokens = Metrics.estimateTokens(newText);
|
|
36
|
-
Metrics.logUsage(projectRoot, "@mcp", `replace_text: ${args.path}`, tokens);
|
|
37
|
-
return { content: [{ type: "text", text: `✅ Surgical edit successful in ${args.path}` }] };
|
|
38
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { safePath, resolveFrameworkDir } from "../../utils/security.js";
|
|
4
|
-
import { Metrics } from "../../utils/metrics.js";
|
|
5
|
-
import { verifyCorporateCompliance } from "../../utils/compliance.js";
|
|
6
|
-
export function handleWriteFile(projectRoot, args) {
|
|
7
|
-
const filePath = safePath(projectRoot, args.path);
|
|
8
|
-
const content = args.content;
|
|
9
|
-
// ENFORCE CORPORATE COMPLIANCE
|
|
10
|
-
verifyCorporateCompliance(content, args.path);
|
|
11
|
-
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
12
|
-
fs.writeFileSync(filePath, content);
|
|
13
|
-
// AUTO-LOGGING & METRICS
|
|
14
|
-
const tokens = Metrics.estimateTokens(content);
|
|
15
|
-
Metrics.logUsage(projectRoot, "@mcp", `write_file: ${args.path}`, tokens);
|
|
16
|
-
try {
|
|
17
|
-
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
18
|
-
const memoryPath = path.join(projectRoot, frameworkDir, "memory/PROJECT_MEMORY.md");
|
|
19
|
-
if (fs.existsSync(memoryPath)) {
|
|
20
|
-
const entry = `\n### ${new Date().toISOString().split("T")[0]} — Auto-Update\n- **Action:** wrote file \`${args.path}\` (${tokens} tokens estimated).\n`;
|
|
21
|
-
fs.appendFileSync(memoryPath, entry);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
catch { /* ignore memory logging errors */ }
|
|
25
|
-
return { content: [{ type: "text", text: `✅ File written: ${args.path}` }] };
|
|
26
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
/**
|
|
4
|
-
* Audits package.json for unused or duplicate-like packages.
|
|
5
|
-
* Focuses on project health and cleanup.
|
|
6
|
-
*/
|
|
7
|
-
export function handleAuditDependencies(projectRoot, _args) {
|
|
8
|
-
const pkgPath = path.join(projectRoot, "package.json");
|
|
9
|
-
if (!fs.existsSync(pkgPath)) {
|
|
10
|
-
throw new Error("package.json not found.");
|
|
11
|
-
}
|
|
12
|
-
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
13
|
-
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
14
|
-
const depNames = Object.keys(deps);
|
|
15
|
-
const results = [];
|
|
16
|
-
// 1. Look for similar packages (potential duplicates)
|
|
17
|
-
const similarityGroups = {
|
|
18
|
-
"CSS/Styling": ["tailwind", "panda", "styled-components", "emotion", "sass"],
|
|
19
|
-
"Testing": ["vitest", "jest", "mocha", "jasmine"],
|
|
20
|
-
"Fetching": ["axios", "ky", "fetch"]
|
|
21
|
-
};
|
|
22
|
-
for (const [group, patterns] of Object.entries(similarityGroups)) {
|
|
23
|
-
const found = depNames.filter(d => patterns.some(p => d.includes(p)));
|
|
24
|
-
if (found.length > 1) {
|
|
25
|
-
results.push(`⚠️ Potential redundancy in [${group}]: Found ${found.join(", ")}`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
// 2. Scan for "any" usage in package names (bad practice markers)
|
|
29
|
-
const legacyDeps = depNames.filter(d => d.includes("legacy") || d.includes("compat"));
|
|
30
|
-
if (legacyDeps.length > 0) {
|
|
31
|
-
results.push(`ℹ️ Legacy compatibility packages detected: ${legacyDeps.join(", ")}`);
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
content: [{
|
|
35
|
-
type: "text",
|
|
36
|
-
text: results.length > 0
|
|
37
|
-
? `Dependency Audit Results:\n\n${results.join("\n")}`
|
|
38
|
-
: "✅ Dependencies look clean and consolidated."
|
|
39
|
-
}]
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { execSync } from "child_process";
|
|
2
|
-
/**
|
|
3
|
-
* Executes project tests and returns results for agent analysis.
|
|
4
|
-
*/
|
|
5
|
-
export function handleRunTests(projectRoot, args) {
|
|
6
|
-
const testCommand = args.command || "npm test";
|
|
7
|
-
try {
|
|
8
|
-
const output = execSync(testCommand, { cwd: projectRoot, encoding: "utf8", stdio: "pipe" });
|
|
9
|
-
return {
|
|
10
|
-
content: [{ type: "text", text: `✅ Tests passed successfully!\n\n${output}` }]
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
catch (error) {
|
|
14
|
-
const err = error;
|
|
15
|
-
const stderr = err.stderr?.toString() || "";
|
|
16
|
-
const stdout = err.stdout?.toString() || "";
|
|
17
|
-
return {
|
|
18
|
-
isError: true,
|
|
19
|
-
content: [{
|
|
20
|
-
type: "text",
|
|
21
|
-
text: `❌ Tests FAILED!\n\n--- STDOUT ---\n${stdout}\n\n--- STDERR ---\n${stderr}`
|
|
22
|
-
}]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { safeExec } from "../../utils/cli.js";
|
|
2
|
-
export function handleUpdateProjectMemory(projectRoot, args) {
|
|
3
|
-
const section = args.section;
|
|
4
|
-
const content = args.content;
|
|
5
|
-
// Using execFileSync with array args prevents command injection
|
|
6
|
-
safeExec("npx", ["agent-enderun", "update_project_memory", section, content], projectRoot, args.timeout);
|
|
7
|
-
return { content: [{ type: "text", text: `✅ Section ${section} updated.` }] };
|
|
8
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { TOOLS } from "./definitions.js";
|
|
2
|
-
import { handleReadFile } from "./file_system/read_file.js";
|
|
3
|
-
import { handleWriteFile } from "./file_system/write_file.js";
|
|
4
|
-
import { handleReplaceText } from "./file_system/replace_text.js";
|
|
5
|
-
import { handleBatchSurgicalEdit } from "./file_system/batch_surgical_edit.js";
|
|
6
|
-
import { handlePatchFile } from "./file_system/patch_file.js";
|
|
7
|
-
import { handleGrepSearch } from "./search/grep_search.js";
|
|
8
|
-
import { handleListDir } from "./search/list_dir.js";
|
|
9
|
-
import { handleGetProjectGaps } from "./search/get_gaps.js";
|
|
10
|
-
import { handleGetProjectMap } from "./search/get_map.js";
|
|
11
|
-
import { handleGetFrameworkStatus } from "./framework/get_status.js";
|
|
12
|
-
import { handleUpdateProjectMemory } from "./framework/update_memory.js";
|
|
13
|
-
import { handleAuditDependencies } from "./framework/audit_deps.js";
|
|
14
|
-
import { handleRunTests } from "./framework/run_tests.js";
|
|
15
|
-
import { handleGetSystemHealth } from "./observability/get_health.js";
|
|
16
|
-
import { handleCheckPorts } from "./observability/check_ports.js";
|
|
17
|
-
import { handleStartDashboard } from "./dashboard/start_dashboard.js";
|
|
18
|
-
import { handleOrchestrateLoop } from "./framework/orchestrate.js";
|
|
19
|
-
import { handleUpdateContractHash } from "./framework/update_contract_hash.js";
|
|
20
|
-
import { handleReadProjectMemory } from "./memory/read_memory.js";
|
|
21
|
-
import { handleGetMemoryInsights } from "./memory/get_insights.js";
|
|
22
|
-
import { handleSendAgentMessage } from "./messaging/send_message.js";
|
|
23
|
-
import { handleLogAgentAction } from "./messaging/log_action.js";
|
|
24
|
-
import { handleAcquireLock, handleReleaseLock } from "./control_plane/locking.js";
|
|
25
|
-
import { handleRegisterAgent } from "./control_plane/registry.js";
|
|
26
|
-
// Map of tool names to their handler functions
|
|
27
|
-
export const toolHandlers = {
|
|
28
|
-
read_file: handleReadFile,
|
|
29
|
-
list_dir: handleListDir,
|
|
30
|
-
grep_search: handleGrepSearch,
|
|
31
|
-
get_project_map: handleGetProjectMap,
|
|
32
|
-
get_project_gaps: handleGetProjectGaps,
|
|
33
|
-
write_file: handleWriteFile,
|
|
34
|
-
replace_text: handleReplaceText,
|
|
35
|
-
batch_surgical_edit: handleBatchSurgicalEdit,
|
|
36
|
-
patch_file: handlePatchFile,
|
|
37
|
-
get_framework_status: handleGetFrameworkStatus,
|
|
38
|
-
read_project_memory: handleReadProjectMemory,
|
|
39
|
-
get_memory_insights: handleGetMemoryInsights,
|
|
40
|
-
update_project_memory: handleUpdateProjectMemory,
|
|
41
|
-
audit_dependencies: handleAuditDependencies,
|
|
42
|
-
run_tests: handleRunTests,
|
|
43
|
-
get_system_health: handleGetSystemHealth,
|
|
44
|
-
check_active_ports: handleCheckPorts,
|
|
45
|
-
start_dashboard: handleStartDashboard,
|
|
46
|
-
orchestrate_loop: handleOrchestrateLoop,
|
|
47
|
-
send_agent_message: handleSendAgentMessage,
|
|
48
|
-
log_agent_action: handleLogAgentAction,
|
|
49
|
-
update_contract_hash: handleUpdateContractHash,
|
|
50
|
-
acquire_lock: handleAcquireLock,
|
|
51
|
-
release_lock: handleReleaseLock,
|
|
52
|
-
register_agent: handleRegisterAgent,
|
|
53
|
-
};
|
|
54
|
-
export { TOOLS };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { resolveFrameworkDir } from "../../utils/security.js";
|
|
4
|
-
/**
|
|
5
|
-
* Extracts key insights from the project memory to minimize token usage.
|
|
6
|
-
* Returns only the active phase, trace, and the last 5 decisions/tasks.
|
|
7
|
-
*/
|
|
8
|
-
export function handleGetMemoryInsights(projectRoot, _args) {
|
|
9
|
-
try {
|
|
10
|
-
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
11
|
-
const memoryPath = path.join(projectRoot, frameworkDir, "memory/PROJECT_MEMORY.md");
|
|
12
|
-
if (!fs.existsSync(memoryPath)) {
|
|
13
|
-
return { content: [{ type: "text", text: "New project: No history available." }] };
|
|
14
|
-
}
|
|
15
|
-
const content = fs.readFileSync(memoryPath, "utf8");
|
|
16
|
-
const lines = content.split("\n");
|
|
17
|
-
const activePhase = lines.find(l => l.includes("Active Phase:"))?.split(":")[1]?.trim() || "Unknown";
|
|
18
|
-
const activeTrace = lines.find(l => l.includes("Active Trace:"))?.split(":")[1]?.trim() || "None";
|
|
19
|
-
// Find the last 5 history items (heuristic)
|
|
20
|
-
const historyStartIndex = lines.findIndex(l => l.includes("## History"));
|
|
21
|
-
let recentHistory = "No history found.";
|
|
22
|
-
if (historyStartIndex !== -1) {
|
|
23
|
-
recentHistory = lines.slice(historyStartIndex + 1, historyStartIndex + 15)
|
|
24
|
-
.filter(l => l.trim().startsWith("-"))
|
|
25
|
-
.slice(-5)
|
|
26
|
-
.join("\n");
|
|
27
|
-
}
|
|
28
|
-
const insights = `🧠 **Memory Insights**\n- **Phase:** ${activePhase}\n- **Trace:** ${activeTrace}\n\n**Recent Actions:**\n${recentHistory}`;
|
|
29
|
-
return { content: [{ type: "text", text: insights }] };
|
|
30
|
-
}
|
|
31
|
-
catch (e) {
|
|
32
|
-
return { isError: true, content: [{ type: "text", text: `Failed to extract insights: ${String(e)}` }] };
|
|
33
|
-
}
|
|
34
|
-
}
|