agent-enderun 1.1.1 → 1.1.3
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/{.enderun/ENDERUN.md → ENDERUN.md} +25 -25
- package/README.md +6 -6
- package/bin/cli.js +3 -4
- package/bin/compile.js +21 -0
- package/bin/enderun-dashboard.js +866 -0
- package/bin/generate-cursor-rules.js +78 -0
- package/bin/test-init-run.js +147 -0
- package/bin/validate-agent-army.js +65 -67
- package/bin/watch-memory.js +54 -0
- package/dist/framework-mcp/src/index.js +1 -1
- package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +15 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.js +65 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -0
- package/dist/framework-mcp/src/tools/control_plane/registry.d.ts +12 -0
- package/dist/framework-mcp/src/tools/control_plane/registry.js +35 -0
- package/dist/framework-mcp/src/tools/control_plane/registry.js.map +1 -0
- package/dist/framework-mcp/src/tools/definitions.js +49 -8
- package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/read_file.js +20 -0
- package/dist/framework-mcp/src/tools/file_system/read_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/write_file.js +16 -2
- package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/index.d.ts +1 -1
- package/dist/framework-mcp/src/tools/index.js +5 -0
- package/dist/framework-mcp/src/tools/index.js.map +1 -1
- package/dist/framework-mcp/src/tools/messaging/send_message.d.ts +1 -1
- package/dist/framework-mcp/src/tools/messaging/send_message.js +36 -15
- package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -1
- package/dist/framework-mcp/src/utils/metrics.d.ts +10 -0
- package/dist/framework-mcp/src/utils/metrics.js +39 -0
- package/dist/framework-mcp/src/utils/metrics.js.map +1 -0
- package/dist/framework-mcp/src/utils/security.js +7 -3
- package/dist/framework-mcp/src/utils/security.js.map +1 -1
- package/dist/init-adapters/antigravity-cli/.agents/BRAIN_DASHBOARD.md +11 -0
- package/dist/init-adapters/antigravity-cli/.agents/STATUS.md +3 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/analyst/agent.json +28 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/architect/agent.json +30 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/backend/agent.json +30 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/database/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/devops/agent.json +28 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/explorer/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/frontend/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/git/agent.json +28 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/manager/agent.json +30 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/mobile/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/native/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/quality/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/agents/security/agent.json +29 -0
- package/dist/init-adapters/antigravity-cli/.agents/cli-commands.json +32 -0
- package/dist/init-adapters/antigravity-cli/.agents/config.json +12 -0
- package/dist/init-adapters/antigravity-cli/.agents/mcp_config.json +13 -0
- package/dist/init-adapters/antigravity-cli/.agents/memory/PROJECT_MEMORY.md +8 -0
- package/dist/init-adapters/antigravity-cli/.agents/skills/discovery.md +3 -0
- package/dist/init-adapters/antigravity-cli/.agents/skills/editing.md +3 -0
- package/dist/init-adapters/antigravity-cli/.agents/skills/execution.md +4 -0
- package/dist/init-adapters/antigravity-cli/.agents/skills/file_system.md +4 -0
- package/dist/init-adapters/antigravity-cli/.agents/skills/orchestration.md +3 -0
- package/dist/init-adapters/antigravity-cli/AGENTS.md +1 -0
- package/dist/init-adapters/antigravity-cli/ENDERUN.md +263 -0
- package/dist/init-adapters/antigravity-cli/mcp.json +13 -0
- package/dist/init-adapters/antigravity-cli/package.json +5 -0
- package/dist/init-adapters/antigravity-cli/panda.config.ts +2 -0
- package/dist/init-adapters/claude/.claude/BRAIN_DASHBOARD.md +11 -0
- package/dist/init-adapters/claude/.claude/STATUS.md +3 -0
- package/dist/init-adapters/claude/.claude/agents/analyst.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/architect.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/backend.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/database.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/devops.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/explorer.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/frontend.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/git.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/manager.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/mobile.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/native.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/quality.md +15 -0
- package/dist/init-adapters/claude/.claude/agents/security.md +15 -0
- package/dist/init-adapters/claude/.claude/cli-commands.json +32 -0
- package/dist/init-adapters/claude/.claude/config.json +12 -0
- package/dist/init-adapters/claude/.claude/mcp_config.json +13 -0
- package/dist/init-adapters/claude/.claude/memory/PROJECT_MEMORY.md +8 -0
- package/dist/init-adapters/claude/.claude/skills/discovery.md +3 -0
- package/dist/init-adapters/claude/.claude/skills/editing.md +3 -0
- package/dist/init-adapters/claude/.claude/skills/execution.md +4 -0
- package/dist/init-adapters/claude/.claude/skills/file_system.md +4 -0
- package/dist/init-adapters/claude/.claude/skills/orchestration.md +3 -0
- package/dist/init-adapters/claude/.mcp.json +13 -0
- package/dist/init-adapters/claude/CLAUDE.md +1 -0
- package/dist/init-adapters/claude/ENDERUN.md +263 -0
- package/dist/init-adapters/claude/mcp.json +13 -0
- package/dist/init-adapters/claude/package.json +5 -0
- package/dist/init-adapters/claude/panda.config.ts +2 -0
- package/dist/init-adapters/codex/.github/BRAIN_DASHBOARD.md +11 -0
- package/dist/init-adapters/codex/.github/STATUS.md +3 -0
- package/dist/init-adapters/codex/.github/agents/analyst.md +15 -0
- package/dist/init-adapters/codex/.github/agents/architect.md +15 -0
- package/dist/init-adapters/codex/.github/agents/backend.md +15 -0
- package/dist/init-adapters/codex/.github/agents/database.md +15 -0
- package/dist/init-adapters/codex/.github/agents/devops.md +15 -0
- package/dist/init-adapters/codex/.github/agents/explorer.md +15 -0
- package/dist/init-adapters/codex/.github/agents/frontend.md +15 -0
- package/dist/init-adapters/codex/.github/agents/git.md +15 -0
- package/dist/init-adapters/codex/.github/agents/manager.md +15 -0
- package/dist/init-adapters/codex/.github/agents/mobile.md +15 -0
- package/dist/init-adapters/codex/.github/agents/native.md +15 -0
- package/dist/init-adapters/codex/.github/agents/quality.md +15 -0
- package/dist/init-adapters/codex/.github/agents/security.md +15 -0
- package/dist/init-adapters/codex/.github/cli-commands.json +32 -0
- package/dist/init-adapters/codex/.github/config.json +12 -0
- package/dist/init-adapters/codex/.github/mcp_config.json +13 -0
- package/dist/init-adapters/codex/.github/memory/PROJECT_MEMORY.md +8 -0
- package/dist/init-adapters/codex/.github/skills/discovery.md +3 -0
- package/dist/init-adapters/codex/.github/skills/editing.md +3 -0
- package/dist/init-adapters/codex/.github/skills/execution.md +4 -0
- package/dist/init-adapters/codex/.github/skills/file_system.md +4 -0
- package/dist/init-adapters/codex/.github/skills/orchestration.md +3 -0
- package/dist/init-adapters/codex/.mcp.json +13 -0
- package/dist/init-adapters/codex/.vscode/mcp.json +13 -0
- package/dist/init-adapters/codex/ENDERUN.md +263 -0
- package/dist/init-adapters/codex/copilot-instructions.md +1 -0
- package/dist/init-adapters/codex/mcp.json +13 -0
- package/dist/init-adapters/codex/package.json +5 -0
- package/dist/init-adapters/codex/panda.config.ts +2 -0
- package/dist/init-adapters/cursor/.cursor/BRAIN_DASHBOARD.md +11 -0
- package/dist/init-adapters/cursor/.cursor/STATUS.md +3 -0
- package/dist/init-adapters/cursor/.cursor/agents/analyst.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/architect.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/backend.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/database.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/devops.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/explorer.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/frontend.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/git.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/manager.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/mobile.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/native.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/quality.md +15 -0
- package/dist/init-adapters/cursor/.cursor/agents/security.md +15 -0
- package/dist/init-adapters/cursor/.cursor/cli-commands.json +32 -0
- package/dist/init-adapters/cursor/.cursor/config.json +12 -0
- package/dist/init-adapters/cursor/.cursor/mcp.json +13 -0
- package/dist/init-adapters/cursor/.cursor/memory/PROJECT_MEMORY.md +8 -0
- package/dist/init-adapters/cursor/.cursor/skills/discovery.md +3 -0
- package/dist/init-adapters/cursor/.cursor/skills/editing.md +3 -0
- package/dist/init-adapters/cursor/.cursor/skills/execution.md +4 -0
- package/dist/init-adapters/cursor/.cursor/skills/file_system.md +4 -0
- package/dist/init-adapters/cursor/.cursor/skills/orchestration.md +3 -0
- package/dist/init-adapters/cursor/CURSOR.md +1 -0
- package/dist/init-adapters/cursor/ENDERUN.md +263 -0
- package/dist/init-adapters/cursor/mcp.json +13 -0
- package/dist/init-adapters/cursor/package.json +5 -0
- package/dist/init-adapters/cursor/panda.config.ts +2 -0
- package/dist/init-adapters/gemini/.gemini/BRAIN_DASHBOARD.md +11 -0
- package/dist/init-adapters/gemini/.gemini/STATUS.md +3 -0
- package/dist/init-adapters/gemini/.gemini/agents/analyst.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/architect.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/backend.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/database.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/devops.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/explorer.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/frontend.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/git.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/manager.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/mobile.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/native.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/quality.md +15 -0
- package/dist/init-adapters/gemini/.gemini/agents/security.md +15 -0
- package/dist/init-adapters/gemini/.gemini/cli-commands.json +32 -0
- package/dist/init-adapters/gemini/.gemini/config.json +12 -0
- package/dist/init-adapters/gemini/.gemini/mcp.json +13 -0
- package/dist/init-adapters/gemini/.gemini/memory/PROJECT_MEMORY.md +8 -0
- package/dist/init-adapters/gemini/.gemini/skills/discovery.md +3 -0
- package/dist/init-adapters/gemini/.gemini/skills/editing.md +3 -0
- package/dist/init-adapters/gemini/.gemini/skills/execution.md +4 -0
- package/dist/init-adapters/gemini/.gemini/skills/file_system.md +4 -0
- package/dist/init-adapters/gemini/.gemini/skills/orchestration.md +3 -0
- package/dist/init-adapters/gemini/ENDERUN.md +263 -0
- package/dist/init-adapters/gemini/GEMINI.md +1 -0
- package/dist/init-adapters/gemini/mcp.json +13 -0
- package/dist/init-adapters/gemini/package.json +5 -0
- package/dist/init-adapters/gemini/panda.config.ts +2 -0
- package/dist/init-adapters/grok/.grok/BRAIN_DASHBOARD.md +11 -0
- package/dist/init-adapters/grok/.grok/STATUS.md +3 -0
- package/dist/init-adapters/grok/.grok/agents/analyst.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/architect.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/backend.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/database.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/devops.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/explorer.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/frontend.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/git.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/manager.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/mobile.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/native.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/quality.md +15 -0
- package/dist/init-adapters/grok/.grok/agents/security.md +15 -0
- package/dist/init-adapters/grok/.grok/cli-commands.json +32 -0
- package/dist/init-adapters/grok/.grok/config.json +12 -0
- package/{.enderun → dist/init-adapters/grok/.grok}/mcp_config.json +4 -2
- package/dist/init-adapters/grok/.grok/memory/PROJECT_MEMORY.md +8 -0
- package/dist/init-adapters/grok/.grok/skills/discovery.md +3 -0
- package/dist/init-adapters/grok/.grok/skills/editing.md +3 -0
- package/dist/init-adapters/grok/.grok/skills/execution.md +4 -0
- package/dist/init-adapters/grok/.grok/skills/file_system.md +4 -0
- package/dist/init-adapters/grok/.grok/skills/orchestration.md +3 -0
- package/dist/init-adapters/grok/ENDERUN.md +263 -0
- package/dist/init-adapters/grok/GROK.md +1 -0
- package/{mcp.json → dist/init-adapters/grok/mcp.json} +4 -2
- package/dist/init-adapters/grok/package.json +5 -0
- package/dist/init-adapters/grok/panda.config.ts +2 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp.json +13 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp_config.json +13 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst/agent.json +28 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst.json +28 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect/agent.json +30 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect.json +30 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend/agent.json +30 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend.json +30 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops/agent.json +28 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops.json +28 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git/agent.json +28 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git.json +28 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager/agent.json +30 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager.json +30 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security/agent.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security.json +29 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/hooks.json +4 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp.json +13 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp_config.json +13 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/plugin.json +5 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/analyst.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/architect.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/backend.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/database.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/devops.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/explorer.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/frontend.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/git.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/manager.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/mobile.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/native.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/quality.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/security.md +11 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/discovery.md +3 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/editing.md +3 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/execution.md +4 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/file_system.md +4 -0
- package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/orchestration.md +3 -0
- package/dist/init-adapters/mock-home/Library/Application Support/Claude/claude_desktop_config.json +13 -0
- package/dist/src/cli/adapters/types.d.ts +14 -0
- package/dist/src/cli/adapters/types.js +2 -0
- package/dist/src/cli/adapters/types.js.map +1 -0
- package/dist/src/cli/adapters.d.ts +7 -23
- package/dist/src/cli/adapters.js +126 -142
- package/dist/src/cli/adapters.js.map +1 -1
- package/dist/src/cli/commands/check.d.ts +0 -5
- package/dist/src/cli/commands/check.js +65 -66
- package/dist/src/cli/commands/check.js.map +1 -1
- package/dist/src/cli/commands/init.d.ts +1 -1
- package/dist/src/cli/commands/init.js +156 -311
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/log.d.ts +1 -0
- package/dist/src/cli/commands/log.js.map +1 -1
- package/dist/src/cli/commands/memory.js +2 -69
- package/dist/src/cli/commands/memory.js.map +1 -1
- package/dist/src/cli/commands/orchestrate.d.ts +25 -0
- package/dist/src/cli/commands/orchestrate.js +71 -48
- package/dist/src/cli/commands/orchestrate.js.map +1 -1
- package/dist/src/cli/index.js +170 -23
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/utils/app.d.ts +1 -2
- package/dist/src/cli/utils/app.js +2 -2
- package/dist/src/cli/utils/app.js.map +1 -1
- package/dist/src/cli/utils/config-schema.d.ts +139 -0
- package/dist/src/cli/utils/config-schema.js +43 -0
- package/dist/src/cli/utils/config-schema.js.map +1 -0
- package/dist/src/cli/utils/fs.d.ts +2 -4
- package/dist/src/cli/utils/fs.js +9 -26
- package/dist/src/cli/utils/fs.js.map +1 -1
- package/dist/src/cli/utils/memory.d.ts +4 -3
- package/dist/src/cli/utils/memory.js +136 -113
- package/dist/src/cli/utils/memory.js.map +1 -1
- package/dist/src/cli/utils/pkg.js +6 -2
- package/dist/src/cli/utils/pkg.js.map +1 -1
- package/dist/src/cli/utils/ui.d.ts +30 -0
- package/dist/src/cli/utils/ui.js +56 -0
- package/dist/src/cli/utils/ui.js.map +1 -0
- package/dist/src/modules/adapters/antigravity-cli.d.ts +3 -0
- package/dist/src/modules/adapters/antigravity-cli.js +21 -0
- package/dist/src/modules/adapters/antigravity-cli.js.map +1 -0
- package/dist/src/modules/adapters/claude.d.ts +3 -0
- package/dist/src/modules/adapters/claude.js +36 -0
- package/dist/src/modules/adapters/claude.js.map +1 -0
- package/dist/src/modules/adapters/codex.d.ts +3 -0
- package/dist/src/modules/adapters/codex.js +20 -0
- package/dist/src/modules/adapters/codex.js.map +1 -0
- package/dist/src/modules/adapters/cursor.d.ts +3 -0
- package/dist/src/modules/adapters/cursor.js +20 -0
- package/dist/src/modules/adapters/cursor.js.map +1 -0
- package/dist/src/modules/adapters/gemini.d.ts +3 -0
- package/dist/src/modules/adapters/gemini.js +23 -0
- package/dist/src/modules/adapters/gemini.js.map +1 -0
- package/dist/src/modules/adapters/grok.d.ts +3 -0
- package/dist/src/modules/adapters/grok.js +18 -0
- package/dist/src/modules/adapters/grok.js.map +1 -0
- package/dist/src/modules/adapters/shared.d.ts +1 -0
- package/dist/src/modules/adapters/shared.js +79 -0
- package/dist/src/modules/adapters/shared.js.map +1 -0
- package/dist/src/modules/adapters/types.d.ts +14 -0
- package/dist/src/modules/adapters/types.js +2 -0
- package/dist/src/modules/adapters/types.js.map +1 -0
- package/dist/src/modules/agents/definitions.d.ts +13 -0
- package/dist/src/modules/agents/definitions.js +169 -0
- package/dist/src/modules/agents/definitions.js.map +1 -0
- package/dist/src/modules/skills/definitions.d.ts +31 -0
- package/dist/src/modules/skills/definitions.js +32 -0
- package/dist/src/modules/skills/definitions.js.map +1 -0
- package/dist/src/shared/fs.d.ts +3 -0
- package/dist/src/shared/fs.js +24 -0
- package/dist/src/shared/fs.js.map +1 -0
- package/dist/vitest.config.js +1 -1
- package/dist/vitest.config.js.map +1 -1
- package/eslint.config.js +3 -2
- package/framework-mcp/dist/src/index.js +1 -1
- package/framework-mcp/dist/src/tools/control_plane/locking.js +64 -0
- package/framework-mcp/dist/src/tools/control_plane/registry.js +34 -0
- package/framework-mcp/dist/src/tools/definitions.js +49 -8
- package/framework-mcp/dist/src/tools/file_system/read_file.js +20 -0
- package/framework-mcp/dist/src/tools/file_system/write_file.js +16 -2
- package/framework-mcp/dist/src/tools/index.js +5 -0
- package/framework-mcp/dist/src/tools/messaging/send_message.js +2 -4
- package/framework-mcp/dist/src/utils/metrics.js +38 -0
- package/framework-mcp/dist/src/utils/security.js +7 -3
- package/framework-mcp/dist/tests/tools/file_system/file_system_tools.test.js +147 -0
- package/framework-mcp/package.json +2 -2
- package/framework-mcp/src/index.ts +1 -1
- package/framework-mcp/src/tools/control_plane/locking.ts +77 -0
- package/framework-mcp/src/tools/control_plane/registry.ts +44 -0
- package/framework-mcp/src/tools/definitions.ts +49 -8
- package/framework-mcp/src/tools/file_system/read_file.ts +24 -0
- package/framework-mcp/src/tools/file_system/write_file.ts +19 -2
- package/framework-mcp/src/tools/index.ts +6 -1
- package/framework-mcp/src/tools/messaging/send_message.ts +2 -3
- package/framework-mcp/src/utils/metrics.ts +53 -0
- package/framework-mcp/src/utils/security.ts +8 -3
- package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +164 -0
- package/framework-mcp/tsconfig.json +2 -1
- package/package.json +16 -13
- package/src/cli/adapters/types.ts +16 -0
- package/src/cli/adapters.ts +130 -156
- package/src/cli/commands/check.ts +61 -65
- package/src/cli/commands/init.ts +163 -311
- package/src/cli/commands/log.ts +1 -1
- package/src/cli/commands/memory.ts +3 -80
- package/src/cli/commands/orchestrate.ts +76 -90
- package/src/cli/index.ts +121 -29
- package/src/cli/utils/app.ts +3 -3
- package/src/cli/utils/config-schema.ts +48 -0
- package/src/cli/utils/fs.ts +10 -27
- package/src/cli/utils/memory.ts +143 -108
- package/src/cli/utils/pkg.ts +6 -2
- package/src/cli/utils/ui.ts +63 -0
- package/src/modules/adapters/antigravity-cli.ts +25 -0
- package/src/modules/adapters/claude.ts +36 -0
- package/src/modules/adapters/codex.ts +22 -0
- package/src/modules/adapters/cursor.ts +22 -0
- package/src/modules/adapters/gemini.ts +27 -0
- package/src/modules/adapters/grok.ts +20 -0
- package/src/modules/adapters/shared.ts +90 -0
- package/src/modules/adapters/types.ts +16 -0
- package/src/modules/agents/definitions.ts +182 -0
- package/src/modules/skills/definitions.ts +32 -0
- package/src/shared/fs.ts +25 -0
- package/tsconfig.json +0 -2
- package/.enderun/ARCHITECTURE.md +0 -1
- package/.enderun/BRAIN_DASHBOARD.md +0 -46
- package/.enderun/SECURITY.md +0 -1
- package/.enderun/STATUS.md +0 -61
- package/.enderun/agents/agent_army_schema.json +0 -101
- package/.enderun/agents/analyst.json +0 -32
- package/.enderun/agents/backend.json +0 -32
- package/.enderun/agents/database.json +0 -32
- package/.enderun/agents/devops.json +0 -32
- package/.enderun/agents/explorer.json +0 -32
- package/.enderun/agents/frontend.json +0 -32
- package/.enderun/agents/git.json +0 -32
- package/.enderun/agents/manager.json +0 -34
- package/.enderun/agents/mobile.json +0 -32
- package/.enderun/agents/native.json +0 -32
- package/.enderun/agents/quality.json +0 -32
- package/.enderun/agents/schema/agent-lifecycle-schema.json +0 -41
- package/.enderun/agents/security.json +0 -32
- package/.enderun/benchmarks/.gitkeep +0 -0
- package/.enderun/cli-commands.json +0 -76
- package/.enderun/config.json +0 -12
- package/.enderun/knowledge/ARCHITECTURE.md +0 -1
- package/.enderun/knowledge/SECURITY.md +0 -1
- package/.enderun/knowledge/SHIM_TEMPLATE.md +0 -36
- package/.enderun/knowledge/analyst_reference_guide.md +0 -31
- package/.enderun/knowledge/async_error_handling.md +0 -27
- package/.enderun/knowledge/backend_reference_guide.md +0 -165
- package/.enderun/knowledge/blueprint_driven_construction.md +0 -22
- package/.enderun/knowledge/context_boundary_rules.md +0 -57
- package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +0 -92
- package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +0 -59
- package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +0 -125
- package/.enderun/knowledge/corporate-governance/branded-types-law.md +0 -77
- package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +0 -92
- package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +0 -89
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +0 -56
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +0 -144
- package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +0 -103
- package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +0 -75
- package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +0 -211
- package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +0 -54
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +0 -167
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow.md +0 -29
- package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +0 -76
- package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +0 -49
- package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +0 -112
- package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +0 -79
- package/.enderun/knowledge/database_reference_guide.md +0 -38
- package/.enderun/knowledge/devops_reference_guide.md +0 -43
- package/.enderun/knowledge/documentation_ownership.md +0 -53
- package/.enderun/knowledge/eslint-standards.md +0 -63
- package/.enderun/knowledge/evaluation_engine.md +0 -26
- package/.enderun/knowledge/explorer_reference_guide.md +0 -34
- package/.enderun/knowledge/framework_vs_user_project_boundary.md +0 -52
- package/.enderun/knowledge/frontend_professionalization_guidelines.md +0 -108
- package/.enderun/knowledge/frontend_reference_guide.md +0 -64
- package/.enderun/knowledge/git_reference_guide.md +0 -51
- package/.enderun/knowledge/hermes_live_test_guidelines.md +0 -90
- package/.enderun/knowledge/hermes_protocol.md +0 -59
- package/.enderun/knowledge/legacy_onboarding.md +0 -18
- package/.enderun/knowledge/lessons-learned.md +0 -14
- package/.enderun/knowledge/manager_authority_audit_enforcement.md +0 -104
- package/.enderun/knowledge/manager_reference_guide.md +0 -55
- package/.enderun/knowledge/mobile_reference_guide.md +0 -35
- package/.enderun/knowledge/native_reference_guide.md +0 -34
- package/.enderun/knowledge/project_scaffold_guidelines.md +0 -110
- package/.enderun/knowledge/quality_reference_guide.md +0 -42
- package/.enderun/knowledge/reference_application_guidelines.md +0 -101
- package/.enderun/knowledge/responsive_design_standards.md +0 -27
- package/.enderun/knowledge/router_logic.md +0 -29
- package/.enderun/knowledge/security_reference_guide.md +0 -35
- package/.enderun/knowledge/token_economy_and_memory.md +0 -129
- package/.enderun/knowledge/zero_ui_library_policy.md +0 -13
- package/.enderun/logs/manager.json +0 -48
- package/.enderun/memory/BUSINESS_CONTEXT.md +0 -17
- package/.enderun/memory/DECISIONS.md +0 -24
- package/.enderun/memory/LESSONS_LEARNED.md +0 -12
- package/.enderun/memory/PATTERNS.md +0 -17
- package/.enderun/memory/PROJECT_MEMORY.md +0 -31
- package/.enderun/memory-graph/agent-contexts/analyst.json +0 -1
- package/.enderun/memory-graph/agent-contexts/backend.json +0 -1
- package/.enderun/memory-graph/agent-contexts/devops.json +0 -1
- package/.enderun/memory-graph/agent-contexts/explorer.json +0 -1
- package/.enderun/memory-graph/agent-contexts/frontend.json +0 -1
- package/.enderun/memory-graph/agent-contexts/git.json +0 -1
- package/.enderun/memory-graph/agent-contexts/manager.json +0 -1
- package/.enderun/memory-graph/agent-contexts/mobile.json +0 -1
- package/.enderun/memory-graph/agent-contexts/native.json +0 -1
- package/.enderun/memory-graph/agent-contexts/quality.json +0 -1
- package/.enderun/memory-graph/agent-contexts/security.json +0 -1
- package/.enderun/memory-graph/graph.json +0 -133
- package/.enderun/memory-graph/shared-facts.json +0 -46
- package/.enderun/monitoring/.gitkeep +0 -0
- package/.enderun/observability/AUDIT_LOG.md +0 -9
- package/.enderun/observability/METRICS.md +0 -10
- package/.enderun/observability/README.md +0 -19
- package/.enderun/observability/TRACE_LOG.md +0 -10
- package/.enderun/queue/README.md +0 -36
- package/.enderun/registry/agents.yaml +0 -69
- package/.enderun/skills/agent_handshake.md +0 -37
- package/.enderun/skills/multi_agent_coordination.md +0 -64
- package/.enderun/skills/subagent_lifecycle.md +0 -48
- package/CLAUDE.md +0 -20
- package/GEMINI.md +0 -23
- package/GROK.md +0 -20
- package/agent.md +0 -25
- package/bin/init-check.js +0 -86
- package/bin/update-contract.js +0 -93
- package/dist/.keep +0 -1
- package/dist/apps/backend/src/types/index.d.ts +0 -9
- package/dist/apps/backend/src/types/index.js +0 -5
- package/dist/apps/backend/src/types/index.js.map +0 -1
- package/dist/apps/web/src/main.d.ts +0 -1
- package/dist/apps/web/src/main.js +0 -9
- package/dist/apps/web/src/main.js.map +0 -1
- package/dist/apps/web/vite.config.d.ts +0 -2
- package/dist/apps/web/vite.config.js +0 -6
- package/dist/apps/web/vite.config.js.map +0 -1
- package/dist/tests/adapter.test.d.ts +0 -1
- package/dist/tests/adapter.test.js +0 -80
- package/dist/tests/adapter.test.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/index.d.ts +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/index.js +0 -71
- package/dist/tests/framework-init-test/framework-mcp/src/index.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/definitions.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/definitions.js +0 -111
- package/dist/tests/framework-init-test/framework-mcp/src/tools/definitions.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/patch_file.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/patch_file.js +0 -19
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/patch_file.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/read_file.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/read_file.js +0 -8
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/read_file.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/replace_text.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/replace_text.js +0 -32
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/replace_text.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/write_file.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/write_file.js +0 -10
- package/dist/tests/framework-init-test/framework-mcp/src/tools/file_system/write_file.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/get_status.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/get_status.js +0 -6
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/get_status.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/orchestrate.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/orchestrate.js +0 -6
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/orchestrate.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_contract_hash.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_contract_hash.js +0 -6
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_contract_hash.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_memory.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_memory.js +0 -9
- package/dist/tests/framework-init-test/framework-mcp/src/tools/framework/update_memory.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/index.d.ts +0 -5
- package/dist/tests/framework-init-test/framework-mcp/src/tools/index.js +0 -26
- package/dist/tests/framework-init-test/framework-mcp/src/tools/index.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/log_action.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/log_action.js +0 -23
- package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/log_action.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/send_message.d.ts +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/send_message.js +0 -24
- package/dist/tests/framework-init-test/framework-mcp/src/tools/messaging/send_message.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/tools/types.d.ts +0 -47
- package/dist/tests/framework-init-test/framework-mcp/src/tools/types.js +0 -2
- package/dist/tests/framework-init-test/framework-mcp/src/tools/types.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/utils/cli.d.ts +0 -5
- package/dist/tests/framework-init-test/framework-mcp/src/utils/cli.js +0 -21
- package/dist/tests/framework-init-test/framework-mcp/src/utils/cli.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/src/utils/security.d.ts +0 -12
- package/dist/tests/framework-init-test/framework-mcp/src/utils/security.js +0 -54
- package/dist/tests/framework-init-test/framework-mcp/src/utils/security.js.map +0 -1
- package/dist/tests/framework-init-test/framework-mcp/tests/tools/file_system/replace_text.test.d.ts +0 -1
- package/dist/tests/framework-init-test/framework-mcp/tests/tools/file_system/replace_text.test.js +0 -69
- package/dist/tests/framework-init-test/framework-mcp/tests/tools/file_system/replace_text.test.js.map +0 -1
- package/dist/tests/framework-init-test/panda.config.d.ts +0 -4
- package/dist/tests/framework-init-test/panda.config.js +0 -95
- package/dist/tests/framework-init-test/panda.config.js.map +0 -1
- package/dist/tests/framework-init-test/vitest.config.d.ts +0 -2
- package/dist/tests/framework-init-test/vitest.config.js +0 -19
- package/dist/tests/framework-init-test/vitest.config.js.map +0 -1
- package/dist/tests/gemini.test.d.ts +0 -1
- package/dist/tests/gemini.test.js +0 -38
- package/dist/tests/gemini.test.js.map +0 -1
- package/dist/tests/initial.test.d.ts +0 -1
- package/dist/tests/initial.test.js +0 -7
- package/dist/tests/initial.test.js.map +0 -1
- package/docs/project_analysis_report.md +0 -69
- package/framework-mcp/dist/index.js +0 -70
- package/framework-mcp/dist/tests/tools/file_system/replace_text.test.js +0 -68
- package/framework-mcp/dist/tools/definitions.js +0 -110
- package/framework-mcp/dist/tools/file_system/patch_file.js +0 -18
- package/framework-mcp/dist/tools/file_system/read_file.js +0 -7
- package/framework-mcp/dist/tools/file_system/replace_text.js +0 -31
- package/framework-mcp/dist/tools/file_system/write_file.js +0 -9
- 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/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 -25
- package/framework-mcp/dist/tools/messaging/log_action.js +0 -22
- package/framework-mcp/dist/tools/messaging/send_message.js +0 -23
- package/framework-mcp/dist/tools/types.js +0 -1
- package/framework-mcp/dist/utils/cli.js +0 -20
- package/framework-mcp/dist/utils/security.js +0 -53
- package/framework-mcp/node_modules/@types/node/LICENSE +0 -21
- package/framework-mcp/node_modules/@types/node/README.md +0 -15
- package/framework-mcp/node_modules/@types/node/assert/strict.d.ts +0 -111
- package/framework-mcp/node_modules/@types/node/assert.d.ts +0 -1078
- package/framework-mcp/node_modules/@types/node/async_hooks.d.ts +0 -603
- package/framework-mcp/node_modules/@types/node/buffer.buffer.d.ts +0 -472
- package/framework-mcp/node_modules/@types/node/buffer.d.ts +0 -1934
- package/framework-mcp/node_modules/@types/node/child_process.d.ts +0 -1476
- package/framework-mcp/node_modules/@types/node/cluster.d.ts +0 -578
- package/framework-mcp/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/framework-mcp/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/framework-mcp/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/framework-mcp/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/framework-mcp/node_modules/@types/node/console.d.ts +0 -452
- package/framework-mcp/node_modules/@types/node/constants.d.ts +0 -21
- package/framework-mcp/node_modules/@types/node/crypto.d.ts +0 -4545
- package/framework-mcp/node_modules/@types/node/dgram.d.ts +0 -600
- package/framework-mcp/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/framework-mcp/node_modules/@types/node/dns/promises.d.ts +0 -503
- package/framework-mcp/node_modules/@types/node/dns.d.ts +0 -923
- package/framework-mcp/node_modules/@types/node/domain.d.ts +0 -170
- package/framework-mcp/node_modules/@types/node/events.d.ts +0 -976
- package/framework-mcp/node_modules/@types/node/fs/promises.d.ts +0 -1295
- package/framework-mcp/node_modules/@types/node/fs.d.ts +0 -4461
- package/framework-mcp/node_modules/@types/node/globals.d.ts +0 -172
- package/framework-mcp/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/framework-mcp/node_modules/@types/node/http.d.ts +0 -2089
- package/framework-mcp/node_modules/@types/node/http2.d.ts +0 -2721
- package/framework-mcp/node_modules/@types/node/https.d.ts +0 -579
- package/framework-mcp/node_modules/@types/node/index.d.ts +0 -97
- package/framework-mcp/node_modules/@types/node/inspector.d.ts +0 -253
- package/framework-mcp/node_modules/@types/node/inspector.generated.d.ts +0 -4052
- package/framework-mcp/node_modules/@types/node/module.d.ts +0 -891
- package/framework-mcp/node_modules/@types/node/net.d.ts +0 -1076
- package/framework-mcp/node_modules/@types/node/os.d.ts +0 -506
- package/framework-mcp/node_modules/@types/node/package.json +0 -145
- package/framework-mcp/node_modules/@types/node/path.d.ts +0 -200
- package/framework-mcp/node_modules/@types/node/perf_hooks.d.ts +0 -968
- package/framework-mcp/node_modules/@types/node/process.d.ts +0 -2084
- package/framework-mcp/node_modules/@types/node/punycode.d.ts +0 -117
- package/framework-mcp/node_modules/@types/node/querystring.d.ts +0 -152
- package/framework-mcp/node_modules/@types/node/readline/promises.d.ts +0 -161
- package/framework-mcp/node_modules/@types/node/readline.d.ts +0 -594
- package/framework-mcp/node_modules/@types/node/repl.d.ts +0 -428
- package/framework-mcp/node_modules/@types/node/sea.d.ts +0 -153
- package/framework-mcp/node_modules/@types/node/sqlite.d.ts +0 -721
- package/framework-mcp/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/framework-mcp/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/framework-mcp/node_modules/@types/node/stream/web.d.ts +0 -622
- package/framework-mcp/node_modules/@types/node/stream.d.ts +0 -1687
- package/framework-mcp/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/framework-mcp/node_modules/@types/node/test.d.ts +0 -2163
- package/framework-mcp/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/framework-mcp/node_modules/@types/node/timers.d.ts +0 -287
- package/framework-mcp/node_modules/@types/node/tls.d.ts +0 -1319
- package/framework-mcp/node_modules/@types/node/trace_events.d.ts +0 -197
- package/framework-mcp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/framework-mcp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/framework-mcp/node_modules/@types/node/ts5.6/index.d.ts +0 -97
- package/framework-mcp/node_modules/@types/node/tty.d.ts +0 -208
- package/framework-mcp/node_modules/@types/node/url.d.ts +0 -984
- package/framework-mcp/node_modules/@types/node/util.d.ts +0 -2606
- package/framework-mcp/node_modules/@types/node/v8.d.ts +0 -920
- package/framework-mcp/node_modules/@types/node/vm.d.ts +0 -1000
- package/framework-mcp/node_modules/@types/node/wasi.d.ts +0 -181
- package/framework-mcp/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/framework-mcp/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/framework-mcp/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/framework-mcp/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/framework-mcp/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
- package/framework-mcp/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/framework-mcp/node_modules/@types/node/worker_threads.d.ts +0 -784
- package/framework-mcp/node_modules/@types/node/zlib.d.ts +0 -747
- package/framework-mcp/node_modules/typescript/LICENSE.txt +0 -55
- package/framework-mcp/node_modules/typescript/README.md +0 -50
- package/framework-mcp/node_modules/typescript/SECURITY.md +0 -41
- package/framework-mcp/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
- package/framework-mcp/node_modules/typescript/bin/tsc +0 -2
- package/framework-mcp/node_modules/typescript/bin/tsserver +0 -2
- package/framework-mcp/node_modules/typescript/lib/_tsc.js +0 -133818
- package/framework-mcp/node_modules/typescript/lib/_tsserver.js +0 -659
- package/framework-mcp/node_modules/typescript/lib/_typingsInstaller.js +0 -222
- package/framework-mcp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/lib.d.ts +0 -22
- package/framework-mcp/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
- package/framework-mcp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
- package/framework-mcp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
- package/framework-mcp/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
- package/framework-mcp/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
- package/framework-mcp/node_modules/typescript/lib/lib.es6.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
- package/framework-mcp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/tsc.js +0 -8
- package/framework-mcp/node_modules/typescript/lib/tsserver.js +0 -8
- package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
- package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/framework-mcp/node_modules/typescript/lib/typesMap.json +0 -497
- package/framework-mcp/node_modules/typescript/lib/typescript.d.ts +0 -11437
- package/framework-mcp/node_modules/typescript/lib/typescript.js +0 -200276
- package/framework-mcp/node_modules/typescript/lib/typingsInstaller.js +0 -8
- package/framework-mcp/node_modules/typescript/lib/watchGuard.js +0 -53
- package/framework-mcp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/package.json +0 -120
- package/framework-mcp/node_modules/undici-types/LICENSE +0 -21
- package/framework-mcp/node_modules/undici-types/README.md +0 -6
- package/framework-mcp/node_modules/undici-types/agent.d.ts +0 -31
- package/framework-mcp/node_modules/undici-types/api.d.ts +0 -43
- package/framework-mcp/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/framework-mcp/node_modules/undici-types/cache.d.ts +0 -36
- package/framework-mcp/node_modules/undici-types/client.d.ts +0 -108
- package/framework-mcp/node_modules/undici-types/connector.d.ts +0 -34
- package/framework-mcp/node_modules/undici-types/content-type.d.ts +0 -21
- package/framework-mcp/node_modules/undici-types/cookies.d.ts +0 -28
- package/framework-mcp/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/framework-mcp/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/framework-mcp/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/framework-mcp/node_modules/undici-types/errors.d.ts +0 -149
- package/framework-mcp/node_modules/undici-types/eventsource.d.ts +0 -61
- package/framework-mcp/node_modules/undici-types/fetch.d.ts +0 -209
- package/framework-mcp/node_modules/undici-types/file.d.ts +0 -39
- package/framework-mcp/node_modules/undici-types/filereader.d.ts +0 -54
- package/framework-mcp/node_modules/undici-types/formdata.d.ts +0 -108
- package/framework-mcp/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/framework-mcp/node_modules/undici-types/global-origin.d.ts +0 -7
- package/framework-mcp/node_modules/undici-types/handlers.d.ts +0 -15
- package/framework-mcp/node_modules/undici-types/header.d.ts +0 -4
- package/framework-mcp/node_modules/undici-types/index.d.ts +0 -71
- package/framework-mcp/node_modules/undici-types/interceptors.d.ts +0 -17
- package/framework-mcp/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/framework-mcp/node_modules/undici-types/mock-client.d.ts +0 -25
- package/framework-mcp/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/framework-mcp/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/framework-mcp/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/framework-mcp/node_modules/undici-types/package.json +0 -55
- package/framework-mcp/node_modules/undici-types/patch.d.ts +0 -33
- package/framework-mcp/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/framework-mcp/node_modules/undici-types/pool.d.ts +0 -39
- package/framework-mcp/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/framework-mcp/node_modules/undici-types/readable.d.ts +0 -65
- package/framework-mcp/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/framework-mcp/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/framework-mcp/node_modules/undici-types/util.d.ts +0 -18
- package/framework-mcp/node_modules/undici-types/webidl.d.ts +0 -228
- package/framework-mcp/node_modules/undici-types/websocket.d.ts +0 -150
- package/framework-mcp/tests/tools/file_system/replace_text.test.js +0 -68
- package/framework-mcp/tests/tools/file_system/replace_text.test.ts +0 -77
- package/panda.config.ts +0 -100
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export const TOOLS = [
|
|
2
2
|
{
|
|
3
3
|
name: "read_file",
|
|
4
|
-
description: "Read the content of a file within the project.",
|
|
4
|
+
description: "Read the content of a file within the project. Supports optional line range reading to prevent stream overload.",
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: "object",
|
|
7
7
|
properties: {
|
|
8
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)" },
|
|
9
11
|
},
|
|
10
12
|
required: ["path"],
|
|
11
13
|
},
|
|
@@ -73,19 +75,58 @@ export const TOOLS = [
|
|
|
73
75
|
},
|
|
74
76
|
{
|
|
75
77
|
name: "send_agent_message",
|
|
76
|
-
description: "Send a Hermes protocol message to another agent.",
|
|
78
|
+
description: "Send a Hermes protocol message to another agent for collaboration or sub-tasking.",
|
|
77
79
|
inputSchema: {
|
|
78
80
|
type: "object",
|
|
79
81
|
properties: {
|
|
80
|
-
from: { type: "string", description: "Sender agent (e.g., @manager, @backend).
|
|
81
|
-
to: { type: "string", description: "Target agent (e.g., @backend, @
|
|
82
|
-
category: { type: "string", enum: ["ACTION", "DELEGATION", "
|
|
83
|
-
content: { type: "string", description: "
|
|
84
|
-
traceId: { type: "string", description: "Active Trace ID" },
|
|
82
|
+
from: { type: "string", description: "Sender agent (e.g., @manager, @backend)." },
|
|
83
|
+
to: { type: "string", description: "Target agent (e.g., @backend, @quality)." },
|
|
84
|
+
category: { type: "string", enum: ["ACTION", "DELEGATION", "SUBTASK", "REPLY", "ALERT"], description: "Message type." },
|
|
85
|
+
content: { type: "string", description: "Task description or message content." },
|
|
86
|
+
traceId: { type: "string", description: "Active Trace ID." },
|
|
87
|
+
parentId: { type: "string", description: "Optional parent task trace ID for hierarchical tracking." },
|
|
85
88
|
},
|
|
86
|
-
required: ["to", "category", "content", "traceId"],
|
|
89
|
+
required: ["from", "to", "category", "content", "traceId"],
|
|
87
90
|
},
|
|
88
91
|
},
|
|
92
|
+
{
|
|
93
|
+
name: "acquire_lock",
|
|
94
|
+
description: "Acquire a stateful lock on a shared resource (like PROJECT_MEMORY.md) to prevent concurrent write conflicts.",
|
|
95
|
+
inputSchema: {
|
|
96
|
+
type: "object",
|
|
97
|
+
properties: {
|
|
98
|
+
resource: { type: "string", description: "The resource name or path to lock (e.g., 'memory')." },
|
|
99
|
+
agent: { type: "string", description: "The agent requesting the lock (e.g., '@backend')." },
|
|
100
|
+
ttl: { type: "number", description: "Time-to-live in seconds before the lock auto-expires (default: 60)." }
|
|
101
|
+
},
|
|
102
|
+
required: ["resource", "agent"]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "release_lock",
|
|
107
|
+
description: "Release a previously acquired lock on a resource.",
|
|
108
|
+
inputSchema: {
|
|
109
|
+
type: "object",
|
|
110
|
+
properties: {
|
|
111
|
+
resource: { type: "string", description: "The resource name or path." },
|
|
112
|
+
agent: { type: "string", description: "The agent releasing the lock." }
|
|
113
|
+
},
|
|
114
|
+
required: ["resource", "agent"]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "register_agent",
|
|
119
|
+
description: "Register an agent instance with the Control Plane and validate its permissions.",
|
|
120
|
+
inputSchema: {
|
|
121
|
+
type: "object",
|
|
122
|
+
properties: {
|
|
123
|
+
agent: { type: "string", description: "The agent name (e.g., '@backend')." },
|
|
124
|
+
role: { type: "string", description: "The role of the agent." },
|
|
125
|
+
capability: { type: "number", description: "The capability score (1-10)." }
|
|
126
|
+
},
|
|
127
|
+
required: ["agent", "role"]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
89
130
|
{
|
|
90
131
|
name: "log_agent_action",
|
|
91
132
|
description: "Log an agent action to the framework logs.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../../framework-mcp/src/tools/definitions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAqB;IACnC;QACI,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../../framework-mcp/src/tools/definitions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAqB;IACnC;QACI,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,iHAAiH;QAC9H,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2CAA2C,EAAE;gBAClF,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2CAA2C,EAAE;gBACvF,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yCAAyC,EAAE;aACtF;YACD,QAAQ,EAAE,CAAC,MAAM,CAAC;SACrB;KACJ;IACD;QACI,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,0DAA0D;QACvE,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2CAA2C,EAAE;gBAClF,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;aAC3E;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;SAChC;KACJ;IACD;QACI,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,4DAA4D;QACzE,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBAC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E,qBAAqB,EAAE;gBAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE;gBACjG,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uCAAuC,EAAE;gBACjF,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8CAA8C,EAAE;aAC5F;YACD,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;SAChE;KACJ;IACD;QACI,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,gEAAgE;QAC7E,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;KAClD;CACJ,CAAC"}
|
|
@@ -2,7 +2,27 @@ import fs from "fs";
|
|
|
2
2
|
import { safePath } from "../../utils/security.js";
|
|
3
3
|
export function handleReadFile(projectRoot, args) {
|
|
4
4
|
const filePath = safePath(projectRoot, args.path);
|
|
5
|
+
const startLine = args.startLine !== undefined ? Number(args.startLine) : undefined;
|
|
6
|
+
const endLine = args.endLine !== undefined ? Number(args.endLine) : undefined;
|
|
5
7
|
const content = fs.readFileSync(filePath, "utf8");
|
|
8
|
+
const lines = content.split(/\r?\n/);
|
|
9
|
+
if (startLine !== undefined || endLine !== undefined) {
|
|
10
|
+
const start = startLine !== undefined ? Math.max(1, startLine) - 1 : 0;
|
|
11
|
+
const end = endLine !== undefined ? Math.min(lines.length, endLine) : lines.length;
|
|
12
|
+
const sliced = lines.slice(start, end).join("\n");
|
|
13
|
+
return { content: [{ type: "text", text: sliced }] };
|
|
14
|
+
}
|
|
15
|
+
// Default protection limit: 1000 lines
|
|
16
|
+
const DEFAULT_MAX_LINES = 1000;
|
|
17
|
+
if (lines.length > DEFAULT_MAX_LINES) {
|
|
18
|
+
const sliced = lines.slice(0, DEFAULT_MAX_LINES).join("\n");
|
|
19
|
+
return {
|
|
20
|
+
content: [{
|
|
21
|
+
type: "text",
|
|
22
|
+
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.]`
|
|
23
|
+
}]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
6
26
|
return { content: [{ type: "text", text: content }] };
|
|
7
27
|
}
|
|
8
28
|
//# sourceMappingURL=read_file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read_file.js","sourceRoot":"","sources":["../../../../../framework-mcp/src/tools/file_system/read_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGnD,MAAM,UAAU,cAAc,CAAC,WAAmB,EAAE,IAAc;IAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,IAAc,CAAC,CAAC;IAC5D,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AAC1D,CAAC"}
|
|
1
|
+
{"version":3,"file":"read_file.js","sourceRoot":"","sources":["../../../../../framework-mcp/src/tools/file_system/read_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGnD,MAAM,UAAU,cAAc,CAAC,WAAmB,EAAE,IAAc;IAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,IAAc,CAAC,CAAC;IAC5D,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,K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EAAE,CAAC;oBACN,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,GAAG,MAAM,0CAA0C,KAAK,CAAC,MAAM,2BAA2B,iBAAiB,0FAA0F;iBAC9M,CAAC;SACL,CAAC;IACN,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import { safePath } from "../../utils/security.js";
|
|
3
|
+
import { safePath, resolveFrameworkDir } from "../../utils/security.js";
|
|
4
|
+
import { Metrics } from "../../utils/metrics.js";
|
|
4
5
|
export function handleWriteFile(projectRoot, args) {
|
|
5
6
|
const filePath = safePath(projectRoot, args.path);
|
|
7
|
+
const content = args.content;
|
|
6
8
|
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
7
|
-
fs.writeFileSync(filePath,
|
|
9
|
+
fs.writeFileSync(filePath, content);
|
|
10
|
+
// AUTO-LOGGING & METRICS
|
|
11
|
+
const tokens = Metrics.estimateTokens(content);
|
|
12
|
+
Metrics.logUsage(projectRoot, "@mcp", `write_file: ${args.path}`, tokens);
|
|
13
|
+
try {
|
|
14
|
+
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
15
|
+
const memoryPath = path.join(projectRoot, frameworkDir, "memory/PROJECT_MEMORY.md");
|
|
16
|
+
if (fs.existsSync(memoryPath)) {
|
|
17
|
+
const entry = `\n### ${new Date().toISOString().split("T")[0]} — Auto-Update\n- **Action:** wrote file \`${args.path}\` (${tokens} tokens estimated).\n`;
|
|
18
|
+
fs.appendFileSync(memoryPath, entry);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
catch { /* ignore memory logging errors */ }
|
|
8
22
|
return { content: [{ type: "text", text: `✅ File written: ${args.path}` }] };
|
|
9
23
|
}
|
|
10
24
|
//# sourceMappingURL=write_file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write_file.js","sourceRoot":"","sources":["../../../../../framework-mcp/src/tools/file_system/write_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"write_file.js","sourceRoot":"","sources":["../../../../../framework-mcp/src/tools/file_system/write_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,MAAM,UAAU,eAAe,CAAC,WAAmB,EAAE,IAAc;IAC/D,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,IAAc,CAAC,CAAC;IAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAiB,CAAC;IAEvC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEpC,yBAAyB;IACzB,MAAM,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,eAAe,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IAE1E,IAAI,CAAC;QACD,MAAM,YAAY,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;QACtD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,0BAA0B,CAAC,CAAC;QACpF,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,8CAA8C,IAAI,CAAC,IAAI,OAAO,MAAM,uBAAuB,CAAC;YACzJ,EAAE,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC,CAAC,kCAAkC,CAAC,CAAC;IAE9C,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC;AACjF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TOOLS } from "./definitions.js";
|
|
2
2
|
import { ToolResult, ToolArgs } from "./types.js";
|
|
3
|
-
export type ToolHandler = (projectRoot: string, args: ToolArgs) => ToolResult
|
|
3
|
+
export type ToolHandler = (projectRoot: string, args: ToolArgs) => ToolResult | Promise<ToolResult>;
|
|
4
4
|
export declare const toolHandlers: Record<string, ToolHandler>;
|
|
5
5
|
export { TOOLS };
|
|
@@ -9,6 +9,8 @@ import { handleOrchestrateLoop } from "./framework/orchestrate.js";
|
|
|
9
9
|
import { handleUpdateContractHash } from "./framework/update_contract_hash.js";
|
|
10
10
|
import { handleSendAgentMessage } from "./messaging/send_message.js";
|
|
11
11
|
import { handleLogAgentAction } from "./messaging/log_action.js";
|
|
12
|
+
import { handleAcquireLock, handleReleaseLock } from "./control_plane/locking.js";
|
|
13
|
+
import { handleRegisterAgent } from "./control_plane/registry.js";
|
|
12
14
|
// Map of tool names to their handler functions
|
|
13
15
|
export const toolHandlers = {
|
|
14
16
|
read_file: handleReadFile,
|
|
@@ -21,6 +23,9 @@ export const toolHandlers = {
|
|
|
21
23
|
send_agent_message: handleSendAgentMessage,
|
|
22
24
|
log_agent_action: handleLogAgentAction,
|
|
23
25
|
update_contract_hash: handleUpdateContractHash,
|
|
26
|
+
acquire_lock: handleAcquireLock,
|
|
27
|
+
release_lock: handleReleaseLock,
|
|
28
|
+
register_agent: handleRegisterAgent,
|
|
24
29
|
};
|
|
25
30
|
export { TOOLS };
|
|
26
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../framework-mcp/src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../framework-mcp/src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAMlE,+CAA+C;AAC/C,MAAM,CAAC,MAAM,YAAY,GAAgC;IACrD,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE,eAAe;IAC3B,YAAY,EAAE,iBAAiB;IAC/B,UAAU,EAAE,eAAe;IAC3B,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,gBAAgB,EAAE,qBAAqB;IACvC,kBAAkB,EAAE,sBAAsB;IAC1C,gBAAgB,EAAE,oBAAoB;IACtC,oBAAoB,EAAE,wBAAwB;IAC9C,YAAY,EAAE,iBAAgC;IAC9C,YAAY,EAAE,iBAAgC;IAC9C,cAAc,EAAE,mBAAkC;CACrD,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ToolArgs, ToolResult } from "../types.js";
|
|
2
|
-
export declare function handleSendAgentMessage(projectRoot: string, args: ToolArgs): ToolResult
|
|
2
|
+
export declare function handleSendAgentMessage(projectRoot: string, args: ToolArgs): Promise<ToolResult>;
|
|
@@ -1,24 +1,45 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { resolveFrameworkDir } from "../../utils/security.js";
|
|
4
|
-
export function handleSendAgentMessage(projectRoot, args) {
|
|
4
|
+
export async function handleSendAgentMessage(projectRoot, args) {
|
|
5
5
|
const { to, category, content, traceId } = args;
|
|
6
|
-
// `from` is optional — falls back to "@mcp" for backward compatibility
|
|
7
6
|
const from = args.from || "@mcp";
|
|
8
7
|
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
8
|
+
const messagesDir = path.join(projectRoot, frameworkDir, "messages");
|
|
9
9
|
const agentName = to.replace("@", "");
|
|
10
|
-
const messagePath = path.join(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
const messagePath = path.join(messagesDir, `${agentName}.json`);
|
|
11
|
+
const lockPath = path.join(messagesDir, ".lock");
|
|
12
|
+
// Hermes Lock Protocol: Retry 3 times with 500ms delay
|
|
13
|
+
let retries = 3;
|
|
14
|
+
while (retries > 0 && fs.existsSync(lockPath)) {
|
|
15
|
+
const stats = fs.statSync(lockPath);
|
|
16
|
+
if (Date.now() - stats.mtimeMs > 5000) {
|
|
17
|
+
fs.unlinkSync(lockPath);
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
retries--;
|
|
21
|
+
if (retries > 0) {
|
|
22
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
fs.mkdirSync(messagesDir, { recursive: true });
|
|
27
|
+
fs.writeFileSync(lockPath, `Locked by ${from} at ${new Date().toISOString()}`);
|
|
28
|
+
const message = {
|
|
29
|
+
timestamp: new Date().toISOString(),
|
|
30
|
+
from,
|
|
31
|
+
to,
|
|
32
|
+
category,
|
|
33
|
+
traceId,
|
|
34
|
+
content,
|
|
35
|
+
status: "PENDING"
|
|
36
|
+
};
|
|
37
|
+
fs.appendFileSync(messagePath, JSON.stringify(message) + "\n");
|
|
38
|
+
return { content: [{ type: "text", text: `✅ Message sent to ${to} (from: ${from})` }] };
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
if (fs.existsSync(lockPath))
|
|
42
|
+
fs.unlinkSync(lockPath);
|
|
43
|
+
}
|
|
23
44
|
}
|
|
24
45
|
//# sourceMappingURL=send_message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send_message.js","sourceRoot":"","sources":["../../../../../framework-mcp/src/tools/messaging/send_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,MAAM,UAAU,sBAAsB,CAAC,WAAmB,EAAE,IAAc;
|
|
1
|
+
{"version":3,"file":"send_message.js","sourceRoot":"","sources":["../../../../../framework-mcp/src/tools/messaging/send_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,WAAmB,EAAE,IAAc;IAC5E,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAA2E,CAAC;IACvH,MAAM,IAAI,GAAI,IAAI,CAAC,IAAe,IAAI,MAAM,CAAC;IAE7C,MAAM,YAAY,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,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OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,WAAW,IAAI,GAAG,EAAE,CAAC,EAAE,CAAC;IAC5F,CAAC;YAAS,CAAC;QACP,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;YAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACzD,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const Metrics: {
|
|
2
|
+
/**
|
|
3
|
+
* Estimates tokens based on character count (rough heuristic: 1 token ~= 4 chars).
|
|
4
|
+
*/
|
|
5
|
+
estimateTokens: (text: string) => number;
|
|
6
|
+
/**
|
|
7
|
+
* Logs the token usage and action to the observability metrics file.
|
|
8
|
+
*/
|
|
9
|
+
logUsage: (projectRoot: string, agent: string, action: string, tokens: number) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { resolveFrameworkDir } from "./security.js";
|
|
4
|
+
export const Metrics = {
|
|
5
|
+
/**
|
|
6
|
+
* Estimates tokens based on character count (rough heuristic: 1 token ~= 4 chars).
|
|
7
|
+
*/
|
|
8
|
+
estimateTokens: (text) => {
|
|
9
|
+
return Math.ceil(text.length / 4);
|
|
10
|
+
},
|
|
11
|
+
/**
|
|
12
|
+
* Logs the token usage and action to the observability metrics file.
|
|
13
|
+
*/
|
|
14
|
+
logUsage: (projectRoot, agent, action, tokens) => {
|
|
15
|
+
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
16
|
+
const metricsPath = path.join(projectRoot, frameworkDir, "observability/metrics.json");
|
|
17
|
+
try {
|
|
18
|
+
const metricsDir = path.dirname(metricsPath);
|
|
19
|
+
if (!fs.existsSync(metricsDir))
|
|
20
|
+
fs.mkdirSync(metricsDir, { recursive: true });
|
|
21
|
+
let currentMetrics = [];
|
|
22
|
+
if (fs.existsSync(metricsPath)) {
|
|
23
|
+
currentMetrics = JSON.parse(fs.readFileSync(metricsPath, "utf8"));
|
|
24
|
+
}
|
|
25
|
+
currentMetrics.push({
|
|
26
|
+
timestamp: new Date().toISOString(),
|
|
27
|
+
agent,
|
|
28
|
+
action,
|
|
29
|
+
estimatedTokens: tokens
|
|
30
|
+
});
|
|
31
|
+
// Keep only last 100 entries to save space
|
|
32
|
+
if (currentMetrics.length > 100)
|
|
33
|
+
currentMetrics.shift();
|
|
34
|
+
fs.writeFileSync(metricsPath, JSON.stringify(currentMetrics, null, 2));
|
|
35
|
+
}
|
|
36
|
+
catch { /* ignore: metrics should not block the main process */ }
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=metrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../../framework-mcp/src/utils/metrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAcpD,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB;;OAEG;IACH,cAAc,EAAE,CAAC,IAAY,EAAU,EAAE;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,QAAQ,EAAE,CAAC,WAAmB,EAAE,KAAa,EAAE,MAAc,EAAE,MAAc,EAAE,EAAE;QAC7E,MAAM,YAAY,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;QACtD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,4BAA4B,CAAC,CAAC;QACvF,IAAI,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC7C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;gBAAE,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAE9E,IAAI,cAAc,GAAkB,EAAE,CAAC;YACvC,IAAI,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC7B,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,cAAc,CAAC,IAAI,CAAC;gBAChB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACnC,KAAK;gBACL,MAAM;gBACN,eAAe,EAAE,MAAM;aAC1B,CAAC,CAAC;YAEH,2CAA2C;YAC3C,IAAI,cAAc,CAAC,MAAM,GAAG,GAAG;gBAAE,cAAc,CAAC,KAAK,EAAE,CAAC;YAExD,EAAE,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3E,CAAC;QAAC,MAAM,CAAC,CAAC,uDAAuD,CAAC,CAAC;IACvE,CAAC;CACJ,CAAC"}
|
|
@@ -33,15 +33,19 @@ export function resolveFrameworkDir(projectRoot) {
|
|
|
33
33
|
catch {
|
|
34
34
|
// ignore — fall through to filesystem scan
|
|
35
35
|
}
|
|
36
|
-
// 2. Filesystem scan
|
|
36
|
+
// 2. Filesystem scan
|
|
37
37
|
const candidates = [
|
|
38
38
|
".enderun",
|
|
39
|
+
".cursor",
|
|
39
40
|
".claude",
|
|
41
|
+
".github",
|
|
40
42
|
".grok",
|
|
43
|
+
".windsurf",
|
|
44
|
+
".antigravity",
|
|
41
45
|
".agent",
|
|
42
|
-
".gemini/antigravity",
|
|
43
46
|
".gemini/antigravity-cli",
|
|
44
47
|
".gemini",
|
|
48
|
+
".agents",
|
|
45
49
|
];
|
|
46
50
|
for (const candidate of candidates) {
|
|
47
51
|
const candidatePath = path.join(projectRoot, candidate);
|
|
@@ -49,6 +53,6 @@ export function resolveFrameworkDir(projectRoot) {
|
|
|
49
53
|
return candidate;
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
return ".
|
|
56
|
+
return ".gemini";
|
|
53
57
|
}
|
|
54
58
|
//# sourceMappingURL=security.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.js","sourceRoot":"","sources":["../../../../framework-mcp/src/utils/security.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,WAAmB,EAAE,QAAgB;IAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACrD,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAEjD,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ,KAAK,cAAc,EAAE,CAAC;QACjF,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,yBAAyB,CAAC,CAAC;IAC/E,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACnD,6DAA6D;IAC7D,IAAI,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;QACvD,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAA4B,CAAC;YACpF,MAAM,a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AAwC,CAAC;YAC5E,IAAI,aAAa,IAAI,OAAO,aAAa,CAAC,cAAc,CAAC,KAAK,QAAQ,EAAE,CAAC;gBACrE,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC;YACzC,CAAC;QACL,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACL,2CAA2C;IAC/C,CAAC;IAED,qBAAqB;IACrB,MAAM,UAAU,GAAG;QACf,UAAU;QACV,SAAS;QACT,SAAS;QACT,SAAS;QACT,OAAO;QACP,WAAW;QACX,cAAc;QACd,QAAQ;QACR,yBAAyB;QACzB,SAAS;QACT,SAAS;KACZ,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACxD,IAAI,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/B,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "analyst",
|
|
3
|
+
"displayName": "Business Analyst",
|
|
4
|
+
"description": "Specs verification and Contract Audit specialist.",
|
|
5
|
+
"role": "Strategy Analysis",
|
|
6
|
+
"capability": 9,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"strategy"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Audit of truth and contracts within the Army."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"view_file",
|
|
23
|
+
"list_dir",
|
|
24
|
+
"grep_search"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "architect",
|
|
3
|
+
"displayName": "Lead Architect",
|
|
4
|
+
"description": "System Design, Contracts, and Core Architecture specialist.",
|
|
5
|
+
"role": "System Design",
|
|
6
|
+
"capability": 9,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"design"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Design the project's foundation. Design must be flawless and adhere to the Nizam."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"view_file",
|
|
23
|
+
"write_file",
|
|
24
|
+
"replace_text",
|
|
25
|
+
"list_dir",
|
|
26
|
+
"grep_search"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "backend",
|
|
3
|
+
"displayName": "Backend Specialist",
|
|
4
|
+
"description": "Server logic, Databases, and API implementation specialist.",
|
|
5
|
+
"role": "Backend Development",
|
|
6
|
+
"capability": 9,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"logic"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Focus on server logic and databases. Any deviation from the Ferman is a breach of discipline."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"view_file",
|
|
23
|
+
"replace_text",
|
|
24
|
+
"run_shell_command",
|
|
25
|
+
"list_dir",
|
|
26
|
+
"grep_search"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "database",
|
|
3
|
+
"displayName": "Database Specialist",
|
|
4
|
+
"description": "SQL Schema design and Query Optimization specialist.",
|
|
5
|
+
"role": "Data Management",
|
|
6
|
+
"capability": 9,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"data"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Manage data as the empire's treasury. Secure and optimized."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"view_file",
|
|
23
|
+
"replace_text",
|
|
24
|
+
"run_shell_command",
|
|
25
|
+
"list_dir"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "devops",
|
|
3
|
+
"displayName": "Infrastructure Specialist",
|
|
4
|
+
"description": "CI/CD, Deployment, and Infrastructure specialist.",
|
|
5
|
+
"role": "DevOps",
|
|
6
|
+
"capability": 9,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"infra"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Maintain reliable supply lines and systems like fortresses."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"run_shell_command",
|
|
23
|
+
"view_file",
|
|
24
|
+
"list_dir"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "explorer",
|
|
3
|
+
"displayName": "Intel Explorer",
|
|
4
|
+
"description": "Intelligence, Reconnaissance, and Context Discovery.",
|
|
5
|
+
"role": "Reconnaissance",
|
|
6
|
+
"capability": 8,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"recon"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Gather tactical intelligence and map dependencies for the Manager."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"view_file",
|
|
23
|
+
"list_dir",
|
|
24
|
+
"grep_search",
|
|
25
|
+
"glob"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "frontend",
|
|
3
|
+
"displayName": "Frontend Specialist",
|
|
4
|
+
"description": "UI/UX, Panda CSS, and State Management specialist.",
|
|
5
|
+
"role": "Frontend Development",
|
|
6
|
+
"capability": 9,
|
|
7
|
+
"tags": [
|
|
8
|
+
"core",
|
|
9
|
+
"ui"
|
|
10
|
+
],
|
|
11
|
+
"stateMachine": "../schema/agent-lifecycle-schema.json",
|
|
12
|
+
"hidden": false,
|
|
13
|
+
"customAgentSpec": {
|
|
14
|
+
"customAgent": {
|
|
15
|
+
"systemPromptSections": [
|
|
16
|
+
{
|
|
17
|
+
"title": "Instructions",
|
|
18
|
+
"content": "Build elegant and disciplined UIs with master craftsmanship."
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"toolNames": [
|
|
22
|
+
"view_file",
|
|
23
|
+
"replace_text",
|
|
24
|
+
"list_dir",
|
|
25
|
+
"grep_search"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|