agent-enderun 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -277
- package/bin/enderun-dashboard.js +13 -13
- package/bin/utils/docgen.ts +24 -0
- 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 +64 -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/check.js +10 -62
- package/dist/src/cli/commands/check.js.map +1 -1
- package/dist/src/cli/commands/init.js +13 -22
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/orchestrate.d.ts +9 -9
- package/dist/src/cli/commands/orchestrate.js +58 -89
- 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/status.js +27 -78
- package/dist/src/cli/commands/status.js.map +1 -1
- package/dist/src/cli/commands/trace.js +18 -31
- package/dist/src/cli/commands/trace.js.map +1 -1
- package/dist/src/cli/index.js +6 -2
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/utils/compliance.d.ts +7 -0
- package/dist/src/cli/utils/compliance.js +50 -0
- package/dist/src/cli/utils/compliance.js.map +1 -0
- package/dist/src/cli/utils/fs.d.ts +1 -1
- package/dist/src/cli/utils/fs.js +1 -1
- package/dist/src/cli/utils/fs.js.map +1 -1
- package/dist/src/cli/utils/memory.d.ts +12 -4
- package/dist/src/cli/utils/memory.js +111 -147
- package/dist/src/cli/utils/memory.js.map +1 -1
- package/dist/src/cli/utils/pkg.js +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.js +7 -4
- 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 +9 -3
- 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 +38 -5
- package/dist/src/modules/agents/definitions.js +696 -93
- package/dist/src/modules/agents/definitions.js.map +1 -1
- package/dist/src/shared/fs.d.ts +1 -0
- package/dist/src/shared/fs.js +8 -0
- 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/tests/adapter.test.js +1 -1
- package/dist/tests/adapter.test.js.map +1 -1
- package/dist/tests/agents-definitions.test.js +19 -13
- 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 -18
- package/src/cli/adapters/core.ts +54 -0
- package/src/cli/adapters/index.ts +4 -0
- package/src/cli/adapters/scaffold.ts +77 -0
- package/src/cli/adapters/utils.ts +87 -0
- package/src/cli/commands/check.ts +10 -62
- package/src/cli/commands/init.ts +13 -22
- package/src/cli/commands/orchestrate.ts +62 -88
- package/src/cli/commands/plan.ts +47 -0
- package/src/cli/commands/status.ts +26 -74
- package/src/cli/commands/trace.ts +18 -33
- package/src/cli/index.ts +6 -2
- package/src/cli/utils/compliance.ts +66 -0
- package/src/cli/utils/fs.ts +2 -2
- package/src/cli/utils/memory.ts +118 -156
- package/src/cli/utils/pkg.ts +1 -1
- package/src/cli/utils/schemas.ts +22 -0
- package/src/cli/utils/string.ts +11 -4
- package/src/cli/utils/ui.ts +7 -4
- 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 +9 -3
- package/src/modules/adapters/types.ts +2 -2
- package/src/modules/agents/definitions.ts +816 -103
- package/src/shared/fs.ts +9 -0
- package/src/shared/logger.ts +3 -6
- 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,181 +1,894 @@
|
|
|
1
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
+
// Enderun Army — Agent Registry
|
|
3
|
+
// Enderun Order v2 · Structured AgentDefinition schema
|
|
4
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5
|
+
|
|
6
|
+
import fs from "fs";
|
|
7
|
+
import path from "path";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
|
|
10
|
+
export type AgentTier = "supreme" | "core" | "recon";
|
|
11
|
+
export type AgentTag =
|
|
12
|
+
| "core" | "orchestration" | "governance" | "security"
|
|
13
|
+
| "design" | "logic" | "ui" | "mobile" | "native"
|
|
14
|
+
| "audit" | "discipline" | "data" | "infra"
|
|
15
|
+
| "recon" | "logistics" | "strategy";
|
|
16
|
+
|
|
17
|
+
export interface AgentInstructions {
|
|
18
|
+
/** One-line identity statement surfaced to the agent as its persona. */
|
|
19
|
+
identity: string;
|
|
20
|
+
/** The agent's primary mission objective. */
|
|
21
|
+
mission: string;
|
|
22
|
+
/** Chain of Thought protocol the agent must follow. */
|
|
23
|
+
chainOfThought: string;
|
|
24
|
+
/** Mandatory, ordered discipline rules the agent must enforce. */
|
|
25
|
+
rules: string[];
|
|
26
|
+
/**
|
|
27
|
+
* Optional: skill documents the agent MUST read before acting.
|
|
28
|
+
* Paths are relative to the framework's knowledge directory.
|
|
29
|
+
*/
|
|
30
|
+
knowledgeFiles?: string[];
|
|
31
|
+
}
|
|
32
|
+
|
|
1
33
|
export interface AgentDefinition {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
34
|
+
/** Machine identifier — used in routing and send_agent_message targets. */
|
|
35
|
+
name: string;
|
|
36
|
+
displayName: string;
|
|
37
|
+
role: string;
|
|
38
|
+
description: string;
|
|
39
|
+
/** Capability score 1–10. Determines orchestration authority. */
|
|
40
|
+
capability: 10 | 9 | 8;
|
|
41
|
+
tier: AgentTier;
|
|
42
|
+
tags: AgentTag[];
|
|
43
|
+
stateMachine: string;
|
|
44
|
+
tools: string[];
|
|
45
|
+
instructions: AgentInstructions;
|
|
11
46
|
}
|
|
12
47
|
|
|
48
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
49
|
+
|
|
50
|
+
const STATE_MACHINE = "../schema/agent-lifecycle-schema.json" as const;
|
|
51
|
+
|
|
13
52
|
export const ALL_AGENTS: AgentDefinition[] = [
|
|
53
|
+
|
|
54
|
+
// ── SUPREME TIER ────────────────────────────────────────────────────────────
|
|
55
|
+
|
|
14
56
|
{
|
|
15
57
|
name: "manager",
|
|
16
58
|
displayName: "Manager (Orchestrator)",
|
|
17
59
|
role: "Corporate Orchestration & AL Governance",
|
|
18
|
-
description:
|
|
60
|
+
description:
|
|
61
|
+
"Supreme Manager and Strategic Orchestrator of the Enderun Army. " +
|
|
62
|
+
"Acts as the AL Management Assistant and ultimate discipline enforcer.",
|
|
19
63
|
capability: 10,
|
|
64
|
+
tier: "supreme",
|
|
20
65
|
tags: ["core", "orchestration", "governance"],
|
|
21
|
-
stateMachine:
|
|
22
|
-
tools: [
|
|
23
|
-
|
|
66
|
+
stateMachine: STATE_MACHINE,
|
|
67
|
+
tools: [
|
|
68
|
+
"orchestrate_loop",
|
|
69
|
+
"send_agent_message",
|
|
70
|
+
"read_project_memory",
|
|
71
|
+
"get_memory_insights",
|
|
72
|
+
"update_project_memory",
|
|
73
|
+
"get_project_gaps",
|
|
74
|
+
"get_project_map",
|
|
75
|
+
"audit_dependencies",
|
|
76
|
+
"list_dir",
|
|
77
|
+
"grep_search",
|
|
78
|
+
"get_framework_status",
|
|
79
|
+
"get_system_health",
|
|
80
|
+
"check_active_ports",
|
|
81
|
+
"start_dashboard",
|
|
82
|
+
],
|
|
83
|
+
instructions: {
|
|
84
|
+
identity: "AL Management Assistant and Supreme Discipline Enforcer",
|
|
85
|
+
mission:
|
|
86
|
+
"Ensure ZERO DEVIATION from Enderun Order standards across every " +
|
|
87
|
+
"specialist, every phase, and every commit.",
|
|
88
|
+
chainOfThought: "1. Analyze: Audit the current task against constitutional governance and phase walls.\n" +
|
|
89
|
+
"2. Validate: Cross-reference requirements with project memory and architectural constraints.\n" +
|
|
90
|
+
"3. Plan: Break the task into atomic, verifiable sub-steps (Trace IDs).\n" +
|
|
91
|
+
"4. Execute: Delegate sub-tasks to appropriate specialists and verify compliance at each step.",
|
|
92
|
+
rules: [
|
|
93
|
+
"ABSOLUTE COMPLIANCE: Freeze project and block task on any Nizam violation " +
|
|
94
|
+
"(e.g. 'any' type, 'console.log', file overwrite). No further action until breach is purged.",
|
|
95
|
+
"PHASE WALL: Gate every phase transition — reject if even one TODO or lint error exists in scope.",
|
|
96
|
+
"ORCHESTRATION AUDIT: Audit every specialist message for constitutional compliance before delegating next sub-task.",
|
|
97
|
+
"STRATEGIC RECIPES: Direct specialists to '.enderun/prompts/' for all refactor, bug-fix, or feature tasks.",
|
|
98
|
+
"SURGICAL PRECISION: Reject any full-file overwrite proposal unless the file is under 50 lines.",
|
|
99
|
+
"GAP ANALYSIS: Run 'get_project_gaps' after each phase — unfinished logic is a breach of discipline.",
|
|
100
|
+
"SYSTEM OBSERVABILITY: Periodically invoke 'get_system_health' and 'check_active_ports' to verify environment stability.",
|
|
101
|
+
"MEMORY INTEGRITY: Synchronize 'PROJECT_MEMORY.md' after every single turn. Memory drift is treason.",
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
{
|
|
107
|
+
name: "security",
|
|
108
|
+
displayName: "Security Specialist",
|
|
109
|
+
role: "Security Enforcement",
|
|
110
|
+
description:
|
|
111
|
+
"Auth, Encryption, and Safety enforcement specialist. " +
|
|
112
|
+
"Guardian of the Nizam — blocks any action that endangers the project.",
|
|
113
|
+
capability: 10,
|
|
114
|
+
tier: "supreme",
|
|
115
|
+
tags: ["core", "security"],
|
|
116
|
+
stateMachine: STATE_MACHINE,
|
|
117
|
+
tools: [
|
|
118
|
+
"read_file",
|
|
119
|
+
"replace_text",
|
|
120
|
+
"grep_search",
|
|
121
|
+
"read_project_memory",
|
|
122
|
+
"get_memory_insights",
|
|
123
|
+
"log_agent_action",
|
|
124
|
+
],
|
|
125
|
+
instructions: {
|
|
126
|
+
identity: "Security Guardian and Zero-Trust Enforcer",
|
|
127
|
+
mission:
|
|
128
|
+
"Protect the empire's data and infrastructure — no secret leaks, " +
|
|
129
|
+
"no raw SQL, no unenforced RLS.",
|
|
130
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
131
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
132
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
133
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
134
|
+
rules: [
|
|
135
|
+
"RLS ENFORCEMENT: Verify multi-tenant Row Level Security policies are active on every database table.",
|
|
136
|
+
"NO SECRETS: Block any commit containing hardcoded secrets (API keys, passwords). Force '.env' usage.",
|
|
137
|
+
"RAW SQL FORBIDDEN: Reject any query that bypasses Kysely — zero exceptions.",
|
|
138
|
+
"AUDIT LOGS: Monitor and log all high-risk administrative actions via 'log_agent_action'.",
|
|
139
|
+
],
|
|
140
|
+
knowledgeFiles: ["security-standards.md"],
|
|
141
|
+
},
|
|
24
142
|
},
|
|
143
|
+
|
|
144
|
+
// ── CORE TIER ────────────────────────────────────────────────────────────────
|
|
145
|
+
|
|
25
146
|
{
|
|
26
147
|
name: "architect",
|
|
27
148
|
displayName: "Lead Architect",
|
|
28
149
|
role: "System Design",
|
|
29
|
-
description:
|
|
150
|
+
description:
|
|
151
|
+
"System Design, Contracts, and Core Architecture specialist. " +
|
|
152
|
+
"Owns the Control Plane Governance & Locking discipline.",
|
|
30
153
|
capability: 9,
|
|
154
|
+
tier: "core",
|
|
31
155
|
tags: ["core", "design"],
|
|
32
|
-
stateMachine:
|
|
33
|
-
tools: [
|
|
34
|
-
|
|
156
|
+
stateMachine: STATE_MACHINE,
|
|
157
|
+
tools: [
|
|
158
|
+
"read_file",
|
|
159
|
+
"write_file",
|
|
160
|
+
"replace_text",
|
|
161
|
+
"batch_surgical_edit",
|
|
162
|
+
"list_dir",
|
|
163
|
+
"grep_search",
|
|
164
|
+
"update_contract_hash",
|
|
165
|
+
"read_project_memory",
|
|
166
|
+
"get_memory_insights",
|
|
167
|
+
"acquire_lock",
|
|
168
|
+
"release_lock",
|
|
169
|
+
"register_agent",
|
|
170
|
+
],
|
|
171
|
+
instructions: {
|
|
172
|
+
identity: "System Architecture Designer and Contract Governance Owner",
|
|
173
|
+
mission:
|
|
174
|
+
"Design a flawless, contract-first foundation that every other " +
|
|
175
|
+
"specialist can build on without ambiguity.",
|
|
176
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
177
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
178
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
179
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
180
|
+
rules: [
|
|
181
|
+
"CONTRACT FIRST: Read governance documents before designing any contract or interface.",
|
|
182
|
+
"TYPE SAFETY: Enforce strict typing across all boundaries — 'any' type is unconditionally forbidden.",
|
|
183
|
+
"CONTRACT STABILITY: Validate 'contract.version.json' consistency before and after every schema change.",
|
|
184
|
+
"GOVERNANCE READ: Always read architecture governance docs before making design decisions.",
|
|
185
|
+
],
|
|
186
|
+
},
|
|
35
187
|
},
|
|
188
|
+
|
|
36
189
|
{
|
|
37
190
|
name: "backend",
|
|
38
191
|
displayName: "Backend Specialist",
|
|
39
192
|
role: "Backend Development",
|
|
40
|
-
description:
|
|
193
|
+
description:
|
|
194
|
+
"Server logic, Databases, and API implementation specialist. " +
|
|
195
|
+
"Owns the Database Management & Migrations discipline.",
|
|
41
196
|
capability: 9,
|
|
197
|
+
tier: "core",
|
|
42
198
|
tags: ["core", "logic"],
|
|
43
|
-
stateMachine:
|
|
44
|
-
tools: [
|
|
45
|
-
|
|
46
|
-
|
|
199
|
+
stateMachine: STATE_MACHINE,
|
|
200
|
+
tools: [
|
|
201
|
+
"read_file",
|
|
202
|
+
"write_file",
|
|
203
|
+
"replace_text",
|
|
204
|
+
"batch_surgical_edit",
|
|
205
|
+
"patch_file",
|
|
206
|
+
"list_dir",
|
|
207
|
+
"grep_search",
|
|
208
|
+
"send_agent_message",
|
|
209
|
+
"read_project_memory",
|
|
210
|
+
"get_memory_insights",
|
|
211
|
+
],
|
|
212
|
+
instructions: {
|
|
213
|
+
identity: "Backend Domain Engineer and Database Management Owner",
|
|
214
|
+
mission:
|
|
215
|
+
"Deliver reliable, type-safe server logic that upholds Kysley-only " +
|
|
216
|
+
"data access and strict repository/service separation.",
|
|
217
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
218
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
219
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
220
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
221
|
+
rules: [
|
|
222
|
+
"BRANDED TYPES: Use branded types for all domain IDs — never raw string or number.",
|
|
223
|
+
"KYSELY ONLY: All database access via Kysely — raw SQL strings are unconditionally forbidden.",
|
|
224
|
+
"LAYER SEPARATION: Isolate queries in repository/service layers — direct DB calls in controllers are forbidden.",
|
|
225
|
+
"ERROR HANDLING: Wrap all async logic in robust try/catch blocks with typed error responses.",
|
|
226
|
+
"HIGH-RISK OPS: Refuse User/Role management, bulk deletes, schema alterations, and billing changes autonomously. " +
|
|
227
|
+
"Return a standard refusal, send a managerApproval request to @manager, and shift to WAITING status.",
|
|
228
|
+
],
|
|
229
|
+
knowledgeFiles: ["skills/database_management.md"],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
|
|
233
|
+
{
|
|
47
234
|
name: "frontend",
|
|
48
235
|
displayName: "Frontend Specialist",
|
|
49
236
|
role: "Frontend Development",
|
|
50
|
-
description:
|
|
237
|
+
description:
|
|
238
|
+
"UI/UX, Panda CSS, and State Management specialist. " +
|
|
239
|
+
"Builds 100% responsive interfaces that adapt flawlessly to all viewports.",
|
|
51
240
|
capability: 9,
|
|
241
|
+
tier: "core",
|
|
52
242
|
tags: ["core", "ui"],
|
|
53
|
-
stateMachine:
|
|
54
|
-
tools: [
|
|
55
|
-
|
|
243
|
+
stateMachine: STATE_MACHINE,
|
|
244
|
+
tools: [
|
|
245
|
+
"read_file",
|
|
246
|
+
"write_file",
|
|
247
|
+
"replace_text",
|
|
248
|
+
"batch_surgical_edit",
|
|
249
|
+
"patch_file",
|
|
250
|
+
"list_dir",
|
|
251
|
+
"grep_search",
|
|
252
|
+
"read_project_memory",
|
|
253
|
+
"get_memory_insights",
|
|
254
|
+
],
|
|
255
|
+
instructions: {
|
|
256
|
+
identity: "Responsive UI Engineer and i18n Discipline Owner",
|
|
257
|
+
mission:
|
|
258
|
+
"Build elegant, disciplined UIs that adapt flawlessly to mobile, " +
|
|
259
|
+
"tablet, and desktop without a single hardcoded pixel or raw string.",
|
|
260
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
261
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
262
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
263
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
264
|
+
rules: [
|
|
265
|
+
"MOBILE FIRST: Design Mobile-First using object-based syntax for all layouts " +
|
|
266
|
+
"(e.g. width: { base: '100%', md: '50%', lg: '33.33%' }).",
|
|
267
|
+
"NO HARDCODED PIXELS: Forbid fixed pixel values for core layout grids.",
|
|
268
|
+
"NO ABSOLUTE POSITIONING: Forbid 'position: absolute' for page structure — use flex or CSS Grid.",
|
|
269
|
+
"i18n DISCIPLINE: Never hardcode user-facing strings — all text lives in 'locales/' JSON files.",
|
|
270
|
+
"FLUID TYPOGRAPHY: Use clamp() or viewport-based spacing to ensure smooth scaling across screen sizes.",
|
|
271
|
+
"OVERFLOW GUARD: Prevent horizontal scroll via proper box-sizing, max-width bounds, and container margins.",
|
|
272
|
+
"ATOMIC UI: Create shared components exclusively in 'apps/web/src/components/ui/'.",
|
|
273
|
+
],
|
|
274
|
+
knowledgeFiles: ["frontend-standards.md", "i18n-standards.md"],
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
{
|
|
279
|
+
name: "mobile",
|
|
280
|
+
displayName: "Mobile Specialist",
|
|
281
|
+
role: "Mobile Development",
|
|
282
|
+
description:
|
|
283
|
+
"React Native and Expo development specialist. " +
|
|
284
|
+
"Builds high-performance apps that adapt to all screen aspect ratios.",
|
|
285
|
+
capability: 9,
|
|
286
|
+
tier: "core",
|
|
287
|
+
tags: ["core", "mobile"],
|
|
288
|
+
stateMachine: STATE_MACHINE,
|
|
289
|
+
tools: [
|
|
290
|
+
"read_file",
|
|
291
|
+
"write_file",
|
|
292
|
+
"replace_text",
|
|
293
|
+
"batch_surgical_edit",
|
|
294
|
+
"list_dir",
|
|
295
|
+
"grep_search",
|
|
296
|
+
"read_project_memory",
|
|
297
|
+
],
|
|
298
|
+
instructions: {
|
|
299
|
+
identity: "React Native Engineer and Accessibility Standards Owner",
|
|
300
|
+
mission:
|
|
301
|
+
"Deliver performant, accessible mobile experiences with dynamic " +
|
|
302
|
+
"scaling, SafeArea compliance, and offline-first architecture.",
|
|
303
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
304
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
305
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
306
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
307
|
+
rules: [
|
|
308
|
+
"DYNAMIC SCALING: Use 'useWindowDimensions' or flex ratios — hardcoded layout pixels are forbidden.",
|
|
309
|
+
"SAFE AREA: Wrap all screens in SafeAreaProvider + SafeAreaView from 'react-native-safe-area-context'.",
|
|
310
|
+
"TEXT OVERFLOW: Apply numberOfLines and ellipsizeMode; ensure accessibility font scaling cannot break layouts.",
|
|
311
|
+
"FLASHLIST: Use Shopify's FlashList for all scrollable lists with correct estimated item sizes.",
|
|
312
|
+
"TOUCH TARGETS: All touchable components must have a minimum interactive area of 44dp × 44dp.",
|
|
313
|
+
"OFFLINE FIRST: Implement caching via React Query and local storage for all critical data paths.",
|
|
314
|
+
],
|
|
315
|
+
knowledgeFiles: ["mobile-standards.md"],
|
|
316
|
+
},
|
|
56
317
|
},
|
|
318
|
+
|
|
57
319
|
{
|
|
58
320
|
name: "quality",
|
|
59
321
|
displayName: "Quality Specialist",
|
|
60
322
|
role: "Quality Audit & Discipline Enforcer",
|
|
61
|
-
description:
|
|
323
|
+
description:
|
|
324
|
+
"Audit, Testing, and Compliance specialist. " +
|
|
325
|
+
"Supreme inspector and guardian of code discipline.",
|
|
62
326
|
capability: 9,
|
|
327
|
+
tier: "core",
|
|
63
328
|
tags: ["core", "audit", "discipline"],
|
|
64
|
-
stateMachine:
|
|
65
|
-
tools: [
|
|
66
|
-
|
|
329
|
+
stateMachine: STATE_MACHINE,
|
|
330
|
+
tools: [
|
|
331
|
+
"list_dir",
|
|
332
|
+
"grep_search",
|
|
333
|
+
"read_file",
|
|
334
|
+
"get_project_gaps",
|
|
335
|
+
"read_project_memory",
|
|
336
|
+
"get_memory_insights",
|
|
337
|
+
"run_tests",
|
|
338
|
+
"log_agent_action",
|
|
339
|
+
"send_agent_message",
|
|
340
|
+
],
|
|
341
|
+
instructions: {
|
|
342
|
+
identity: "Quality Gatekeeper and Test Discipline Enforcer",
|
|
343
|
+
mission:
|
|
344
|
+
"Guarantee that every line in the codebase is tested, lint-clean, " +
|
|
345
|
+
"and free of 'any' types before any phase transition.",
|
|
346
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
347
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
348
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
349
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
350
|
+
rules: [
|
|
351
|
+
"AUTONOMOUS TESTING: Execute 'run_tests' after every logic change — analyze stderr and pinpoint exact failure line.",
|
|
352
|
+
"FAILURE TRACKING: Log 'FAILURE' via 'log_agent_action' with stack trace; notify @manager to freeze task.",
|
|
353
|
+
"COVERAGE GATE: Every new service or logic block requires a '.test.ts' file using Vitest — coverage threshold: > 80%.",
|
|
354
|
+
"ZERO TOLERANCE: Reject any code containing lint errors, 'any' type usage, or hardcoded 'console.log'.",
|
|
355
|
+
"TEST PATTERN: Enforce Given-When-Then pattern in all test suites without exception.",
|
|
356
|
+
],
|
|
357
|
+
knowledgeFiles: ["quality-standards.md", "testing-standards.md"],
|
|
358
|
+
},
|
|
67
359
|
},
|
|
360
|
+
|
|
68
361
|
{
|
|
69
362
|
name: "database",
|
|
70
363
|
displayName: "Database Specialist",
|
|
71
364
|
role: "Data Management",
|
|
72
|
-
description:
|
|
365
|
+
description:
|
|
366
|
+
"SQL Schema design and Query Optimization specialist. " +
|
|
367
|
+
"Manages data as the empire's treasury — secure and optimized.",
|
|
73
368
|
capability: 9,
|
|
369
|
+
tier: "core",
|
|
74
370
|
tags: ["core", "data"],
|
|
75
|
-
stateMachine:
|
|
76
|
-
tools: [
|
|
77
|
-
|
|
371
|
+
stateMachine: STATE_MACHINE,
|
|
372
|
+
tools: [
|
|
373
|
+
"read_file",
|
|
374
|
+
"write_file",
|
|
375
|
+
"replace_text",
|
|
376
|
+
"patch_file",
|
|
377
|
+
"list_dir",
|
|
378
|
+
"grep_search",
|
|
379
|
+
"read_project_memory",
|
|
380
|
+
],
|
|
381
|
+
instructions: {
|
|
382
|
+
identity: "Database Architect and Migration Integrity Owner",
|
|
383
|
+
mission:
|
|
384
|
+
"Design and evolve a contract-driven, deterministic schema that " +
|
|
385
|
+
"guarantees data integrity and query performance.",
|
|
386
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
387
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
388
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
389
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
390
|
+
rules: [
|
|
391
|
+
"CONTRACT DRIVEN: All schemas must originate from and stay consistent with the type contract.",
|
|
392
|
+
"NO RAW SQL: Forbid raw SQL strings in the application layer — Kysely exclusively.",
|
|
393
|
+
"DETERMINISTIC MIGRATIONS: Every migration must be reversible and produce identical results across environments.",
|
|
394
|
+
"PERFORMANCE FIRST: Design indexes proactively — never retroactively after a performance incident.",
|
|
395
|
+
],
|
|
396
|
+
knowledgeFiles: ["skills/database_management.md"],
|
|
397
|
+
},
|
|
78
398
|
},
|
|
399
|
+
|
|
79
400
|
{
|
|
80
401
|
name: "devops",
|
|
81
402
|
displayName: "Infrastructure Specialist",
|
|
82
403
|
role: "DevOps",
|
|
83
|
-
description:
|
|
404
|
+
description:
|
|
405
|
+
"CI/CD, Deployment, and Infrastructure specialist. " +
|
|
406
|
+
"Maintains reliable supply lines and fortified system environments.",
|
|
84
407
|
capability: 9,
|
|
408
|
+
tier: "core",
|
|
85
409
|
tags: ["core", "infra"],
|
|
86
|
-
stateMachine:
|
|
87
|
-
tools: [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
410
|
+
stateMachine: STATE_MACHINE,
|
|
411
|
+
tools: [
|
|
412
|
+
"run_shell_command",
|
|
413
|
+
"read_file",
|
|
414
|
+
"list_dir",
|
|
415
|
+
"get_system_health",
|
|
416
|
+
"check_active_ports",
|
|
417
|
+
"read_project_memory",
|
|
418
|
+
"send_agent_message",
|
|
419
|
+
],
|
|
420
|
+
instructions: {
|
|
421
|
+
identity: "Infrastructure Engineer and Environment Integrity Guardian",
|
|
422
|
+
mission:
|
|
423
|
+
"Keep the development and production environments healthy, isolated, " +
|
|
424
|
+
"and free of untracked configuration drift.",
|
|
425
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
426
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
427
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
428
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
429
|
+
rules: [
|
|
430
|
+
"HEALTH MONITORING: Invoke 'get_system_health' regularly — alert @manager if RAM or CPU reach critical thresholds.",
|
|
431
|
+
"PORT AUDIT: Use 'check_active_ports' to confirm Next.js, API, and DB services are on their designated ports.",
|
|
432
|
+
"ENVIRONMENT ISOLATION: All variables managed via '.env' — hardcoded secrets trigger immediate escalation.",
|
|
433
|
+
"NO UNTRACKED DEPLOYMENTS: Every deployment must be declared, versioned, and traceable.",
|
|
434
|
+
],
|
|
435
|
+
knowledgeFiles: ["skills/devops_infrastructure.md"],
|
|
436
|
+
},
|
|
111
437
|
},
|
|
438
|
+
|
|
112
439
|
{
|
|
113
|
-
name: "
|
|
114
|
-
displayName: "
|
|
115
|
-
role: "
|
|
116
|
-
description:
|
|
440
|
+
name: "analyst",
|
|
441
|
+
displayName: "Business Analyst",
|
|
442
|
+
role: "Strategy Analysis",
|
|
443
|
+
description:
|
|
444
|
+
"Specs verification and Contract Audit specialist. " +
|
|
445
|
+
"Audits truth and contracts within the Army.",
|
|
117
446
|
capability: 9,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
447
|
+
tier: "core",
|
|
448
|
+
tags: ["core", "strategy"],
|
|
449
|
+
stateMachine: STATE_MACHINE,
|
|
450
|
+
tools: [
|
|
451
|
+
"read_file",
|
|
452
|
+
"list_dir",
|
|
453
|
+
"grep_search",
|
|
454
|
+
"get_project_map",
|
|
455
|
+
"read_project_memory",
|
|
456
|
+
"get_memory_insights",
|
|
457
|
+
],
|
|
458
|
+
instructions: {
|
|
459
|
+
identity: "Strategy Analyst and Contract-First Compliance Auditor",
|
|
460
|
+
mission:
|
|
461
|
+
"Ensure every user requirement is accurately mapped to a typed API " +
|
|
462
|
+
"contract before a single line of application code is written.",
|
|
463
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
464
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
465
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
466
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
467
|
+
rules: [
|
|
468
|
+
"REQUIREMENTS MAPPING: Verify that all user requirements from docs/ correctly map to API schemas and types.",
|
|
469
|
+
"CONTRACT FIRST: Enforce the Contract-First model — no application code without a validated contract.",
|
|
470
|
+
"VERSIONING INTEGRITY: Validate that all API versioning changes are correctly registered in 'contract.version.json'.",
|
|
471
|
+
"LIVE AUDIT: Continuously audit business rules against the live implementation for drift.",
|
|
472
|
+
],
|
|
473
|
+
},
|
|
122
474
|
},
|
|
475
|
+
|
|
123
476
|
{
|
|
124
477
|
name: "native",
|
|
125
478
|
displayName: "Native Division",
|
|
126
479
|
role: "Native Integration",
|
|
127
|
-
description:
|
|
480
|
+
description:
|
|
481
|
+
"Desktop apps and system-level logic specialist. " +
|
|
482
|
+
"Handles OS deep layers with paramount security.",
|
|
128
483
|
capability: 9,
|
|
484
|
+
tier: "core",
|
|
129
485
|
tags: ["core", "native"],
|
|
130
|
-
stateMachine:
|
|
131
|
-
tools: [
|
|
132
|
-
|
|
486
|
+
stateMachine: STATE_MACHINE,
|
|
487
|
+
tools: [
|
|
488
|
+
"read_file",
|
|
489
|
+
"write_file",
|
|
490
|
+
"replace_text",
|
|
491
|
+
"list_dir",
|
|
492
|
+
"grep_search",
|
|
493
|
+
"read_project_memory",
|
|
494
|
+
"run_shell_command",
|
|
495
|
+
],
|
|
496
|
+
instructions: {
|
|
497
|
+
identity: "Native Integration Engineer and OS-Layer Security Enforcer",
|
|
498
|
+
mission:
|
|
499
|
+
"Deliver secure, platform-aware native integrations that isolate " +
|
|
500
|
+
"system-level concerns from business logic.",
|
|
501
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
502
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
503
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
504
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
505
|
+
rules: [
|
|
506
|
+
"SECURITY PARAMOUNT: Handle all OS-layer operations with rigorous input validation.",
|
|
507
|
+
"PLATFORM ISOLATION: Strictly separate platform-specific code from shared business logic.",
|
|
508
|
+
"SYSTEM CALL AUDITING: Validate all native module inputs and log elevated-privilege operations.",
|
|
509
|
+
],
|
|
510
|
+
},
|
|
133
511
|
},
|
|
512
|
+
|
|
513
|
+
// ── RECON TIER ───────────────────────────────────────────────────────────────
|
|
514
|
+
|
|
134
515
|
{
|
|
135
|
-
name: "
|
|
136
|
-
displayName: "
|
|
137
|
-
role: "
|
|
138
|
-
description:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
516
|
+
name: "explorer",
|
|
517
|
+
displayName: "Intel Explorer",
|
|
518
|
+
role: "Reconnaissance",
|
|
519
|
+
description:
|
|
520
|
+
"Intelligence, Reconnaissance, and Context Discovery. " +
|
|
521
|
+
"Maps the architecture before any specialist acts.",
|
|
522
|
+
capability: 8,
|
|
523
|
+
tier: "recon",
|
|
524
|
+
tags: ["core", "recon"],
|
|
525
|
+
stateMachine: STATE_MACHINE,
|
|
526
|
+
tools: [
|
|
527
|
+
"read_file",
|
|
528
|
+
"list_dir",
|
|
529
|
+
"grep_search",
|
|
530
|
+
"get_project_map",
|
|
531
|
+
"read_project_memory",
|
|
532
|
+
"get_memory_insights",
|
|
533
|
+
],
|
|
534
|
+
instructions: {
|
|
535
|
+
identity: "System Mapper and Architecture Discovery Protocol Owner",
|
|
536
|
+
mission:
|
|
537
|
+
"Deliver a complete, accurate dependency map to the Manager before " +
|
|
538
|
+
"any design or implementation phase begins.",
|
|
539
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
540
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
541
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
542
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
543
|
+
rules: [
|
|
544
|
+
"READ ONLY: Strictly operate in read-only mode — never suggest, write, or modify any codebase file.",
|
|
545
|
+
"ADP EXECUTION: Follow the Architecture Discovery Protocol — identify entry points (index.ts, main.ts), scan domain structures.",
|
|
546
|
+
"DEPENDENCY MAP: Map all file dependencies and surface them to @manager in a structured report.",
|
|
547
|
+
"RECON FIRST: No specialist should act on an unexplored codebase — flag absence of ADP as a phase blocker.",
|
|
548
|
+
],
|
|
549
|
+
},
|
|
144
550
|
},
|
|
551
|
+
|
|
145
552
|
{
|
|
146
|
-
name: "
|
|
147
|
-
displayName: "
|
|
148
|
-
role: "
|
|
149
|
-
description:
|
|
553
|
+
name: "git",
|
|
554
|
+
displayName: "Logistics Master",
|
|
555
|
+
role: "Version Control",
|
|
556
|
+
description:
|
|
557
|
+
"Git flow, Branching, and Atomic Commit master. " +
|
|
558
|
+
"Manages the scrolls of history.",
|
|
150
559
|
capability: 9,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
560
|
+
tier: "core",
|
|
561
|
+
tags: ["core", "logistics"],
|
|
562
|
+
stateMachine: STATE_MACHINE,
|
|
563
|
+
tools: [
|
|
564
|
+
"run_shell_command",
|
|
565
|
+
"list_dir",
|
|
566
|
+
"grep_search",
|
|
567
|
+
"read_project_memory",
|
|
568
|
+
"send_agent_message",
|
|
569
|
+
],
|
|
570
|
+
instructions: {
|
|
571
|
+
identity: "Version Control Specialist and Commit Traceability Enforcer",
|
|
572
|
+
mission:
|
|
573
|
+
"Keep a perfectly atomic, traceable commit history that lets any " +
|
|
574
|
+
"agent reconstruct what changed and why.",
|
|
575
|
+
chainOfThought: "1. Analyze: Read the task, context, and relevant governance documents.\n" +
|
|
576
|
+
"2. Validate: Cross-reference with project rules, contracts, and architecture standards.\n" +
|
|
577
|
+
"3. Plan: Break down the task into small, atomic, and verifiable steps.\n" +
|
|
578
|
+
"4. Execute: Perform the task using approved tools, adhering to quality and security constraints.",
|
|
579
|
+
rules: [
|
|
580
|
+
"TRACE ID PREFIX: Prefix every commit message with the active Trace ID (e.g. '[TRC-042] Description').",
|
|
581
|
+
"ATOMIC COMMITS: Each commit must contain exactly one logical change — no bundled unrelated modifications.",
|
|
582
|
+
"NO FORCE PUSH: Force-pushing to any shared branch is unconditionally forbidden.",
|
|
583
|
+
"GIT FLOW: Strictly follow git-flow branching conventions — feature, hotfix, release naming enforced.",
|
|
584
|
+
],
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
|
|
156
588
|
];
|
|
157
589
|
|
|
158
|
-
|
|
159
|
-
|
|
590
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
591
|
+
// Multi-Platform Agent Exporter
|
|
592
|
+
// Supported targets:
|
|
593
|
+
// claude-code → .claude/agents/{name}.md (YAML frontmatter + system prompt)
|
|
594
|
+
// gemini-cli → .gemini/agents/{name}.md (same format, Gemini field names)
|
|
595
|
+
// antigravity → .agents/{name}/agent.json (JSON, customAgent schema)
|
|
596
|
+
// codex-cli → .agents/{name}.md (YAML frontmatter, AGENTS.md style)
|
|
597
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
598
|
+
|
|
599
|
+
/** Map our internal tool names → Claude Code's built-in tool identifiers */
|
|
600
|
+
const CLAUDE_TOOL_MAP: Record<string, string> = {
|
|
601
|
+
read_file: "Read",
|
|
602
|
+
write_file: "Write",
|
|
603
|
+
replace_text: "Edit",
|
|
604
|
+
batch_surgical_edit: "MultiEdit",
|
|
605
|
+
patch_file: "Edit",
|
|
606
|
+
list_dir: "LS",
|
|
607
|
+
grep_search: "Grep",
|
|
608
|
+
run_shell_command: "Bash",
|
|
609
|
+
view_file: "Read",
|
|
610
|
+
run_tests: "Bash",
|
|
611
|
+
log_agent_action: "Write",
|
|
612
|
+
send_agent_message: "Task",
|
|
613
|
+
// Enderun-custom tools pass through as-is (MCP or custom tools)
|
|
614
|
+
orchestrate_loop: "Task",
|
|
615
|
+
get_project_map: "Bash",
|
|
616
|
+
get_project_gaps: "Bash",
|
|
617
|
+
get_memory_insights: "Read",
|
|
618
|
+
read_project_memory: "Read",
|
|
619
|
+
update_project_memory: "Write",
|
|
620
|
+
audit_dependencies: "Bash",
|
|
621
|
+
get_framework_status: "Bash",
|
|
622
|
+
get_system_health: "Bash",
|
|
623
|
+
check_active_ports: "Bash",
|
|
624
|
+
start_dashboard: "Bash",
|
|
625
|
+
update_contract_hash: "Write",
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
/** Map our internal tool names → Gemini CLI tool identifiers */
|
|
629
|
+
const GEMINI_TOOL_MAP: Record<string, string> = {
|
|
630
|
+
read_file: "read_file",
|
|
631
|
+
write_file: "write_file",
|
|
632
|
+
replace_text: "replace",
|
|
633
|
+
batch_surgical_edit: "replace",
|
|
634
|
+
patch_file: "replace",
|
|
635
|
+
list_dir: "list_directory",
|
|
636
|
+
grep_search: "grep_search",
|
|
637
|
+
run_shell_command: "run_shell_command",
|
|
638
|
+
view_file: "read_file",
|
|
639
|
+
run_tests: "run_shell_command",
|
|
640
|
+
log_agent_action: "write_file",
|
|
641
|
+
send_agent_message: "run_shell_command",
|
|
642
|
+
orchestrate_loop: "run_shell_command",
|
|
643
|
+
get_project_map: "run_shell_command",
|
|
644
|
+
get_project_gaps: "run_shell_command",
|
|
645
|
+
get_memory_insights: "read_file",
|
|
646
|
+
read_project_memory: "read_file",
|
|
647
|
+
update_project_memory: "write_file",
|
|
648
|
+
audit_dependencies: "run_shell_command",
|
|
649
|
+
get_framework_status: "run_shell_command",
|
|
650
|
+
get_system_health: "run_shell_command",
|
|
651
|
+
check_active_ports: "run_shell_command",
|
|
652
|
+
start_dashboard: "run_shell_command",
|
|
653
|
+
update_contract_hash: "write_file",
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
/** Alias for Antigravity JSON export used by CLI */
|
|
657
|
+
export const buildAgentJson = toAntigravityJson;
|
|
658
|
+
|
|
659
|
+
/** Strategy: which model to assign based on capability score */
|
|
660
|
+
function resolveModel(
|
|
661
|
+
cap: number,
|
|
662
|
+
platform: "claude-code" | "gemini-cli" | "antigravity" | "codex-cli"
|
|
663
|
+
): string {
|
|
664
|
+
if (platform === "claude-code") {
|
|
665
|
+
return cap === 10 ? "claude-opus-4-8"
|
|
666
|
+
: cap === 9 ? "claude-sonnet-4-6"
|
|
667
|
+
: "claude-haiku-4-5";
|
|
668
|
+
}
|
|
669
|
+
if (platform === "gemini-cli" || platform === "antigravity") {
|
|
670
|
+
return cap === 10 ? "gemini-2.5-pro"
|
|
671
|
+
: cap === 9 ? "gemini-2.5-flash"
|
|
672
|
+
: "gemini-2.5-flash-8b";
|
|
673
|
+
}
|
|
674
|
+
// codex-cli
|
|
675
|
+
return cap === 10 ? "codex-1" : "o4-mini";
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/** Build a flat system prompt string from structured instructions */
|
|
679
|
+
function buildSystemPrompt(ag: AgentDefinition, baseKnowledgeDir: string = path.join(process.cwd(), "templates/standards")): string {
|
|
680
|
+
const lines: string[] = [
|
|
681
|
+
"# Identity",
|
|
682
|
+
ag.instructions.identity,
|
|
683
|
+
"",
|
|
684
|
+
"# Mission",
|
|
685
|
+
ag.instructions.mission,
|
|
686
|
+
"",
|
|
687
|
+
"# Chain of Thought Protocol",
|
|
688
|
+
ag.instructions.chainOfThought,
|
|
689
|
+
"",
|
|
690
|
+
"# Discipline rules",
|
|
691
|
+
...ag.instructions.rules.map(r => `- ${r}`),
|
|
692
|
+
];
|
|
693
|
+
|
|
694
|
+
if (ag.instructions.knowledgeFiles?.length) {
|
|
695
|
+
lines.push("", "# Required reading (Standards Enforced)");
|
|
696
|
+
ag.instructions.knowledgeFiles.forEach(f => {
|
|
697
|
+
const filePath = path.join(baseKnowledgeDir, f);
|
|
698
|
+
if (fs.existsSync(filePath)) {
|
|
699
|
+
lines.push(`\n## Content of ${f}:\n`, fs.readFileSync(filePath, "utf8"));
|
|
700
|
+
} else {
|
|
701
|
+
lines.push(`- ${f} (File not found)`);
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
return lines.join("\n");
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
709
|
+
// CLAUDE CODE → .claude/agents/{name}.md
|
|
710
|
+
// Spec: https://code.claude.com/docs/en/sub-agents
|
|
711
|
+
// Fields: name, description, model, tools (Claude tool IDs), color
|
|
712
|
+
// Body: system prompt (plain Markdown)
|
|
713
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
714
|
+
|
|
715
|
+
export function toClaudeCodeMd(ag: AgentDefinition, baseKnowledgeDir?: string): string {
|
|
716
|
+
const tools = [...new Set(ag.tools.map(t => CLAUDE_TOOL_MAP[t] ?? t))];
|
|
717
|
+
const model = resolveModel(ag.capability, "claude-code");
|
|
718
|
+
const color = ag.tier === "supreme" ? "purple"
|
|
719
|
+
: ag.tier === "recon" ? "gray"
|
|
720
|
+
: "blue";
|
|
721
|
+
|
|
722
|
+
const frontmatter = [
|
|
723
|
+
"---",
|
|
724
|
+
`name: ${ag.name}`,
|
|
725
|
+
"description: >-",
|
|
726
|
+
` ${ag.description} Use proactively for ${ag.role.toLowerCase()} tasks.`,
|
|
727
|
+
`model: ${model}`,
|
|
728
|
+
`tools: [${tools.map(t => `"${t}"`).join(", ")}]`,
|
|
729
|
+
`color: ${color}`,
|
|
730
|
+
"---",
|
|
731
|
+
].join("\n");
|
|
732
|
+
|
|
733
|
+
return `${frontmatter}\n\n${buildSystemPrompt(ag, baseKnowledgeDir)}`;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
737
|
+
// GEMINI CLI → .gemini/agents/{name}.md
|
|
738
|
+
// Spec: https://geminicli.com/docs/core/subagents/
|
|
739
|
+
// Fields: name, description, model, tools (Gemini tool IDs)
|
|
740
|
+
// Body: system prompt (plain Markdown)
|
|
741
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
742
|
+
|
|
743
|
+
export function toGeminiCliMd(ag: AgentDefinition, baseKnowledgeDir?: string): string {
|
|
744
|
+
const tools = [...new Set(ag.tools.map(t => GEMINI_TOOL_MAP[t] ?? t))];
|
|
745
|
+
const model = resolveModel(ag.capability, "gemini-cli");
|
|
746
|
+
|
|
747
|
+
const frontmatter = [
|
|
748
|
+
"---",
|
|
749
|
+
`name: ${ag.name}`,
|
|
750
|
+
"description: >-",
|
|
751
|
+
` ${ag.description}`,
|
|
752
|
+
`model: ${model}`,
|
|
753
|
+
"tools:",
|
|
754
|
+
...tools.map(t => ` - ${t}`),
|
|
755
|
+
"---",
|
|
756
|
+
].join("\n");
|
|
757
|
+
|
|
758
|
+
return `${frontmatter}\n\n${buildSystemPrompt(ag, baseKnowledgeDir)}`;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
762
|
+
// ANTIGRAVITY CLI → .agents/{name}/agent.json
|
|
763
|
+
// Spec: github.com/google-gemini/gemini-cli/discussions/27305
|
|
764
|
+
// Format: JSON with customAgent.systemPromptSections[] + toolNames[]
|
|
765
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
766
|
+
|
|
767
|
+
export function toAntigravityJson(ag: AgentDefinition): string {
|
|
768
|
+
const payload = {
|
|
160
769
|
name: ag.name,
|
|
161
770
|
displayName: ag.displayName,
|
|
162
771
|
description: ag.description,
|
|
163
|
-
role: ag.role,
|
|
164
|
-
capability: ag.capability,
|
|
165
|
-
tags: ag.tags,
|
|
166
|
-
stateMachine: ag.stateMachine,
|
|
167
772
|
hidden: false,
|
|
168
773
|
customAgentSpec: {
|
|
169
774
|
customAgent: {
|
|
170
775
|
systemPromptSections: [
|
|
171
776
|
{
|
|
172
|
-
title: "
|
|
173
|
-
content: ag.instructions
|
|
174
|
-
}
|
|
777
|
+
title: "Identity & Mission",
|
|
778
|
+
content: `${ag.instructions.identity}\n\n${ag.instructions.mission}`,
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
title: "Chain of Thought Protocol",
|
|
782
|
+
content: ag.instructions.chainOfThought,
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
title: "Discipline Rules",
|
|
786
|
+
content: ag.instructions.rules.join("\n"),
|
|
787
|
+
},
|
|
788
|
+
...(ag.instructions.knowledgeFiles?.length
|
|
789
|
+
? [{
|
|
790
|
+
title: "Required Reading",
|
|
791
|
+
content: ag.instructions.knowledgeFiles.join("\n"),
|
|
792
|
+
}]
|
|
793
|
+
: []),
|
|
175
794
|
],
|
|
176
|
-
toolNames: ag.tools
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
795
|
+
toolNames: ag.tools,
|
|
796
|
+
},
|
|
797
|
+
},
|
|
798
|
+
};
|
|
799
|
+
return JSON.stringify(payload, null, 2);
|
|
180
800
|
}
|
|
181
801
|
|
|
802
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
803
|
+
// CODEX CLI (OpenAI) → AGENTS.md or .agents/{name}.md
|
|
804
|
+
// Spec: developers.openai.com/codex/cli/reference (AGENTS.md convention)
|
|
805
|
+
// Format: YAML frontmatter (agent-type, when-to-use, allowed-tools)
|
|
806
|
+
// + Markdown system prompt body
|
|
807
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
808
|
+
|
|
809
|
+
export function toCodexMd(ag: AgentDefinition, baseKnowledgeDir?: string): string {
|
|
810
|
+
const model = resolveModel(ag.capability, "codex-cli");
|
|
811
|
+
// Codex uses shell-accessible tool names; map to bash or generic
|
|
812
|
+
const tools = [...new Set(ag.tools.map(t => {
|
|
813
|
+
if (["read_file","view_file","list_dir","grep_search","get_memory_insights","read_project_memory"].includes(t)) return "read";
|
|
814
|
+
if (["write_file","replace_text","batch_surgical_edit","patch_file","update_project_memory","log_agent_action"].includes(t)) return "write";
|
|
815
|
+
return "shell"; // run_shell_command and custom tools
|
|
816
|
+
}))];
|
|
817
|
+
|
|
818
|
+
const frontmatter = [
|
|
819
|
+
"---",
|
|
820
|
+
`agent-type: "${ag.name}"`,
|
|
821
|
+
`display-name: "${ag.displayName}"`,
|
|
822
|
+
"when-to-use: >-",
|
|
823
|
+
` Use for ${ag.role.toLowerCase()}. ${ag.description}`,
|
|
824
|
+
`model: ${model}`,
|
|
825
|
+
`allowed-tools: [${tools.map(t => `"${t}"`).join(", ")}]`,
|
|
826
|
+
`tier: ${ag.tier}`,
|
|
827
|
+
`capability: ${ag.capability}`,
|
|
828
|
+
"---",
|
|
829
|
+
].join("\n");
|
|
830
|
+
|
|
831
|
+
return `${frontmatter}\n\n${buildSystemPrompt(ag, baseKnowledgeDir)}`;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
835
|
+
// CURSOR IDE → .cursor/rules/{name}.mdc
|
|
836
|
+
// Format: YAML frontmatter (description, globs) + Markdown system prompt
|
|
837
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
838
|
+
|
|
839
|
+
const GLOB_MAP: Record<string, string> = {
|
|
840
|
+
backend: "apps/backend/**/*",
|
|
841
|
+
frontend: "apps/web/**/*",
|
|
842
|
+
database: "apps/backend/src/database/**/*",
|
|
843
|
+
mobile: "apps/mobile/**/*",
|
|
844
|
+
native: "apps/native/**/*",
|
|
845
|
+
quality: "*",
|
|
846
|
+
security: "*",
|
|
847
|
+
devops: "*",
|
|
848
|
+
explorer: "*",
|
|
849
|
+
git: "*",
|
|
850
|
+
analyst: "*",
|
|
851
|
+
manager: "*",
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
export function toCursorMdc(ag: AgentDefinition, baseKnowledgeDir?: string): string {
|
|
855
|
+
const glob = GLOB_MAP[ag.name] || "**/*";
|
|
856
|
+
const frontmatter = [
|
|
857
|
+
"---",
|
|
858
|
+
`description: Agent Enderun — @${ag.name} rules for ${ag.displayName}. ${ag.description.slice(0, 100)}`,
|
|
859
|
+
`globs: ${glob}`,
|
|
860
|
+
"alwaysApply: false",
|
|
861
|
+
"---",
|
|
862
|
+
].join("\n");
|
|
863
|
+
|
|
864
|
+
return `${frontmatter}\n\n${buildSystemPrompt(ag, baseKnowledgeDir)}`;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
868
|
+
// Batch export — generate all agents for a given platform
|
|
869
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
870
|
+
|
|
871
|
+
export type ExportTarget = "claude-code" | "gemini-cli" | "antigravity" | "codex-cli" | "cursor";
|
|
872
|
+
|
|
873
|
+
export interface ExportedFile {
|
|
874
|
+
/** Relative path where the file should be written */
|
|
875
|
+
path: string;
|
|
876
|
+
content: string;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export function exportAllAgents(target: ExportTarget): ExportedFile[] {
|
|
880
|
+
return ALL_AGENTS.map(ag => {
|
|
881
|
+
switch (target) {
|
|
882
|
+
case "claude-code":
|
|
883
|
+
return { path: `.claude/agents/${ag.name}.md`, content: toClaudeCodeMd(ag) };
|
|
884
|
+
case "gemini-cli":
|
|
885
|
+
return { path: `.gemini/agents/${ag.name}.md`, content: toGeminiCliMd(ag) };
|
|
886
|
+
case "antigravity":
|
|
887
|
+
return { path: `.agents/${ag.name}/agent.json`, content: toAntigravityJson(ag) };
|
|
888
|
+
case "codex-cli":
|
|
889
|
+
return { path: `.agents/${ag.name}.md`, content: toCodexMd(ag) };
|
|
890
|
+
case "cursor":
|
|
891
|
+
return { path: `.cursor/rules/${ag.name}.mdc`, content: toCursorMdc(ag) };
|
|
892
|
+
}
|
|
893
|
+
});
|
|
894
|
+
}
|