atabey 0.0.6 → 0.0.8
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/ATABEY.md +4 -4
- package/README.md +35 -33
- package/bin/cli.js +2 -2
- package/bin/validate-agent-army.js +6 -6
- package/dist/framework-mcp/src/constants.js +1 -1
- package/dist/framework-mcp/src/constants.js.map +1 -1
- package/dist/framework-mcp/src/index.js +29 -5
- package/dist/framework-mcp/src/index.js.map +1 -1
- package/dist/framework-mcp/src/resources/index.d.ts +10 -0
- package/dist/framework-mcp/src/resources/index.js +59 -0
- package/dist/framework-mcp/src/resources/index.js.map +1 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.js +3 -3
- package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -1
- package/dist/framework-mcp/src/tools/control_plane/registry.js +3 -2
- package/dist/framework-mcp/src/tools/control_plane/registry.js.map +1 -1
- package/dist/framework-mcp/src/tools/definitions.js +33 -1
- package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.d.ts +1 -1
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +8 -3
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/patch_file.d.ts +1 -1
- package/dist/framework-mcp/src/tools/file_system/patch_file.js +8 -3
- package/dist/framework-mcp/src/tools/file_system/patch_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/read_file.js +3 -3
- package/dist/framework-mcp/src/tools/file_system/read_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/replace_text.d.ts +1 -1
- package/dist/framework-mcp/src/tools/file_system/replace_text.js +8 -3
- package/dist/framework-mcp/src/tools/file_system/replace_text.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/write_file.d.ts +1 -1
- package/dist/framework-mcp/src/tools/file_system/write_file.js +10 -5
- package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/framework/audit_deps.js +2 -2
- package/dist/framework-mcp/src/tools/framework/audit_deps.js.map +1 -1
- package/dist/framework-mcp/src/tools/framework/run_tests.js +2 -2
- package/dist/framework-mcp/src/tools/framework/run_tests.js.map +1 -1
- package/dist/framework-mcp/src/tools/framework/submit_plan.d.ts +10 -0
- package/dist/framework-mcp/src/tools/framework/submit_plan.js +14 -0
- package/dist/framework-mcp/src/tools/framework/submit_plan.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/update_memory.js +1 -1
- package/dist/framework-mcp/src/tools/framework/update_memory.js.map +1 -1
- package/dist/framework-mcp/src/tools/index.js +2 -0
- package/dist/framework-mcp/src/tools/index.js.map +1 -1
- package/dist/framework-mcp/src/tools/memory/get_insights.js +1 -1
- package/dist/framework-mcp/src/tools/memory/get_insights.js.map +1 -1
- package/dist/framework-mcp/src/tools/messaging/log_action.js +1 -1
- package/dist/framework-mcp/src/tools/messaging/log_action.js.map +1 -1
- package/dist/framework-mcp/src/tools/messaging/send_message.js +5 -5
- package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -1
- package/dist/framework-mcp/src/tools/observability/check_ports.js +1 -1
- package/dist/framework-mcp/src/tools/observability/check_ports.js.map +1 -1
- package/dist/framework-mcp/src/tools/quality/check_lint.js +2 -2
- package/dist/framework-mcp/src/tools/quality/check_lint.js.map +1 -1
- package/dist/framework-mcp/src/tools/search/get_gaps.js +1 -1
- package/dist/framework-mcp/src/tools/search/get_gaps.js.map +1 -1
- package/dist/framework-mcp/src/tools/search/grep_search.js +3 -3
- package/dist/framework-mcp/src/tools/search/grep_search.js.map +1 -1
- package/dist/framework-mcp/src/tools/types.d.ts +1 -0
- package/dist/framework-mcp/src/utils/compliance.d.ts +6 -0
- package/dist/framework-mcp/src/utils/compliance.js +158 -5
- package/dist/framework-mcp/src/utils/compliance.js.map +1 -1
- package/dist/framework-mcp/src/utils/permissions.d.ts +12 -0
- package/dist/framework-mcp/src/utils/permissions.js +72 -0
- package/dist/framework-mcp/src/utils/permissions.js.map +1 -0
- package/dist/framework-mcp/tests/tools/file_system/compliance-risk.test.d.ts +1 -0
- package/dist/framework-mcp/tests/tools/file_system/compliance-risk.test.js +84 -0
- package/dist/framework-mcp/tests/tools/file_system/compliance-risk.test.js.map +1 -0
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js +31 -31
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js.map +1 -1
- package/dist/framework-mcp/tests/tools/file_system/permissions.test.d.ts +1 -0
- package/dist/framework-mcp/tests/tools/file_system/permissions.test.js +92 -0
- package/dist/framework-mcp/tests/tools/file_system/permissions.test.js.map +1 -0
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.js +5 -5
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.js.map +1 -1
- package/dist/src/cli/adapters/core.js +13 -20
- package/dist/src/cli/adapters/core.js.map +1 -1
- package/dist/src/cli/adapters/scaffold.js +2 -2
- package/dist/src/cli/adapters/scaffold.js.map +1 -1
- package/dist/src/cli/commands/check.js +5 -3
- package/dist/src/cli/commands/check.js.map +1 -1
- package/dist/src/cli/commands/compliance.js +2 -2
- package/dist/src/cli/commands/compliance.js.map +1 -1
- package/dist/src/cli/commands/contract.js +2 -2
- package/dist/src/cli/commands/contract.js.map +1 -1
- package/dist/src/cli/commands/dashboard.d.ts +5 -0
- package/dist/src/cli/commands/dashboard.js +124 -0
- package/dist/src/cli/commands/dashboard.js.map +1 -0
- package/dist/src/cli/commands/explorer.js +3 -3
- package/dist/src/cli/commands/explorer.js.map +1 -1
- package/dist/src/cli/commands/git.js +3 -3
- package/dist/src/cli/commands/git.js.map +1 -1
- package/dist/src/cli/commands/init/create-agent.d.ts +4 -0
- package/dist/src/cli/commands/init/create-agent.js +59 -0
- package/dist/src/cli/commands/init/create-agent.js.map +1 -0
- package/dist/src/cli/commands/init/scaffold-core.d.ts +1 -0
- package/dist/src/cli/commands/init/scaffold-core.js +11 -7
- package/dist/src/cli/commands/init/scaffold-core.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-docs.d.ts +1 -0
- package/dist/src/cli/commands/init/scaffold-docs.js +4 -6
- package/dist/src/cli/commands/init/scaffold-docs.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-ops.js +4 -4
- package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-standards.js +10 -8
- package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -1
- package/dist/src/cli/commands/init.js +26 -10
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/knowledge.js +3 -3
- package/dist/src/cli/commands/knowledge.js.map +1 -1
- package/dist/src/cli/commands/lint.js +2 -2
- package/dist/src/cli/commands/lint.js.map +1 -1
- package/dist/src/cli/commands/log.js +6 -28
- package/dist/src/cli/commands/log.js.map +1 -1
- package/dist/src/cli/commands/orchestrate.d.ts +10 -17
- package/dist/src/cli/commands/orchestrate.js +92 -341
- package/dist/src/cli/commands/orchestrate.js.map +1 -1
- package/dist/src/cli/commands/plan.d.ts +5 -0
- package/dist/src/cli/commands/plan.js +80 -59
- package/dist/src/cli/commands/plan.js.map +1 -1
- package/dist/src/cli/commands/script.js +3 -3
- package/dist/src/cli/commands/script.js.map +1 -1
- package/dist/src/cli/commands/security.js +2 -2
- package/dist/src/cli/commands/security.js.map +1 -1
- package/dist/src/cli/commands/status.js +65 -8
- package/dist/src/cli/commands/status.js.map +1 -1
- package/dist/src/cli/commands/trace.d.ts +4 -0
- package/dist/src/cli/commands/trace.js +83 -2
- package/dist/src/cli/commands/trace.js.map +1 -1
- package/dist/src/cli/index.js +68 -18
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/shims.js +14 -14
- package/dist/src/cli/utils/claude.js +1 -1
- package/dist/src/cli/utils/claude.js.map +1 -1
- package/dist/src/cli/utils/compliance.js +7 -1
- package/dist/src/cli/utils/compliance.js.map +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/i18n.d.ts +1 -0
- package/dist/src/cli/utils/i18n.js +2 -0
- package/dist/src/cli/utils/i18n.js.map +1 -1
- package/dist/src/cli/utils/memory.d.ts +12 -3
- package/dist/src/cli/utils/memory.js +39 -31
- package/dist/src/cli/utils/memory.js.map +1 -1
- package/dist/src/cli/utils/pkg.js +2 -2
- package/dist/src/cli/utils/pkg.js.map +1 -1
- package/dist/src/cli/utils/schemas.d.ts +8 -8
- package/dist/src/cli/utils/ui.js +4 -4
- package/dist/src/cli/utils/ui.js.map +1 -1
- package/dist/src/contracts/tasks.d.ts +2 -2
- package/dist/src/dashboard/vite.config.d.ts +2 -0
- package/dist/src/dashboard/vite.config.js +16 -0
- package/dist/src/dashboard/vite.config.js.map +1 -0
- package/dist/src/modules/adapters/definitions.js +10 -10
- package/dist/src/modules/adapters/definitions.js.map +1 -1
- package/dist/src/modules/adapters/shared.js +4 -4
- package/dist/src/modules/adapters/shared.js.map +1 -1
- package/dist/src/modules/agents/definitions.d.ts +19 -0
- package/dist/src/modules/agents/definitions.js +74 -21
- package/dist/src/modules/agents/definitions.js.map +1 -1
- package/dist/src/modules/agents/registry/backend.js +8 -0
- package/dist/src/modules/agents/registry/backend.js.map +1 -1
- package/dist/src/modules/agents/registry/database.js +7 -0
- package/dist/src/modules/agents/registry/database.js.map +1 -1
- package/dist/src/modules/agents/registry/devops.js +6 -0
- package/dist/src/modules/agents/registry/devops.js.map +1 -1
- package/dist/src/modules/agents/registry/frontend.js +8 -0
- package/dist/src/modules/agents/registry/frontend.js.map +1 -1
- package/dist/src/modules/agents/registry/security.js +6 -0
- package/dist/src/modules/agents/registry/security.js.map +1 -1
- package/dist/src/modules/agents/types.d.ts +2 -0
- package/dist/src/modules/engines/evaluation-engine.d.ts +11 -0
- package/dist/src/modules/engines/evaluation-engine.js +103 -0
- package/dist/src/modules/engines/evaluation-engine.js.map +1 -0
- package/dist/src/modules/engines/health-engine.d.ts +16 -0
- package/dist/src/modules/engines/health-engine.js +50 -0
- package/dist/src/modules/engines/health-engine.js.map +1 -0
- package/dist/src/modules/engines/planning-engine.d.ts +25 -0
- package/dist/src/modules/engines/planning-engine.js +79 -0
- package/dist/src/modules/engines/planning-engine.js.map +1 -0
- package/dist/src/modules/engines/risk-engine.d.ts +18 -0
- package/dist/src/modules/engines/risk-engine.js +106 -0
- package/dist/src/modules/engines/risk-engine.js.map +1 -0
- package/dist/src/modules/engines/routing-engine.d.ts +11 -0
- package/dist/src/modules/engines/routing-engine.js +74 -0
- package/dist/src/modules/engines/routing-engine.js.map +1 -0
- package/dist/src/modules/engines/types.d.ts +47 -0
- package/dist/src/modules/engines/types.js +2 -0
- package/dist/src/modules/engines/types.js.map +1 -0
- package/dist/src/shared/constants.d.ts +6 -2
- package/dist/src/shared/constants.js +5 -1
- package/dist/src/shared/constants.js.map +1 -1
- package/dist/src/shared/fs.d.ts +1 -0
- package/dist/src/shared/fs.js +4 -0
- package/dist/src/shared/fs.js.map +1 -1
- package/dist/src/shared/storage.d.ts +60 -0
- package/dist/src/shared/storage.js +208 -0
- package/dist/src/shared/storage.js.map +1 -0
- package/dist/tests/adapter.test.js +3 -2
- package/dist/tests/adapter.test.js.map +1 -1
- package/dist/tests/agent-memory-v2.test.d.ts +1 -0
- package/dist/tests/agent-memory-v2.test.js +68 -0
- package/dist/tests/agent-memory-v2.test.js.map +1 -0
- package/dist/tests/agents-definitions.test.js +42 -0
- package/dist/tests/agents-definitions.test.js.map +1 -1
- package/dist/tests/integration/hermes_locking.test.js +7 -10
- package/dist/tests/integration/hermes_locking.test.js.map +1 -1
- package/dist/tests/orchestrate.test.js +5 -1
- package/dist/tests/orchestrate.test.js.map +1 -1
- package/dist/tests/orchestrator-dependencies.test.d.ts +1 -0
- package/dist/tests/orchestrator-dependencies.test.js +52 -0
- package/dist/tests/orchestrator-dependencies.test.js.map +1 -0
- package/dist/tests/plan.test.d.ts +1 -0
- package/dist/tests/plan.test.js +63 -0
- package/dist/tests/plan.test.js.map +1 -0
- package/dist/tests/planning-engine.test.d.ts +1 -0
- package/dist/tests/planning-engine.test.js +50 -0
- package/dist/tests/planning-engine.test.js.map +1 -0
- package/dist/tests/status-cost.test.d.ts +1 -0
- package/dist/tests/status-cost.test.js +54 -0
- package/dist/tests/status-cost.test.js.map +1 -0
- package/dist/tests/status.test.js +8 -7
- package/dist/tests/status.test.js.map +1 -1
- package/dist/tests/trace-replay.test.d.ts +1 -0
- package/dist/tests/trace-replay.test.js +65 -0
- package/dist/tests/trace-replay.test.js.map +1 -0
- package/dist/tests/trace.test.js +14 -7
- package/dist/tests/trace.test.js.map +1 -1
- package/dist/ui/assets/index-Bkt7APzu.css +1 -0
- package/dist/ui/assets/index-CeX-06mI.js +49 -0
- package/dist/ui/index.html +14 -0
- package/framework-mcp/dist/constants.js +1 -1
- package/framework-mcp/{src/constants.ts → dist/framework-mcp/src/constants.js} +4 -18
- package/framework-mcp/{src/index.ts → dist/framework-mcp/src/index.js} +52 -53
- package/framework-mcp/dist/framework-mcp/src/resources/index.js +58 -0
- package/framework-mcp/{src/tools/control_plane/locking.ts → dist/framework-mcp/src/tools/control_plane/locking.js} +14 -21
- package/framework-mcp/{src/tools/control_plane/registry.ts → dist/framework-mcp/src/tools/control_plane/registry.js} +8 -11
- package/framework-mcp/{src/tools/definitions.ts → dist/framework-mcp/src/tools/definitions.js} +35 -5
- package/framework-mcp/{src/tools/file_system/batch_surgical_edit.ts → dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js} +16 -31
- package/framework-mcp/{src/tools/file_system/patch_file.ts → dist/framework-mcp/src/tools/file_system/patch_file.js} +9 -14
- package/framework-mcp/{src/tools/file_system/read_file.ts → dist/framework-mcp/src/tools/file_system/read_file.js} +9 -16
- package/framework-mcp/{src/tools/file_system/replace_text.ts → dist/framework-mcp/src/tools/file_system/replace_text.js} +13 -17
- package/framework-mcp/{src/tools/file_system/write_file.ts → dist/framework-mcp/src/tools/file_system/write_file.js} +14 -16
- package/framework-mcp/{src/tools/framework/audit_deps.ts → dist/framework-mcp/src/tools/framework/audit_deps.js} +9 -17
- package/framework-mcp/{src/tools/framework/get_status.ts → dist/framework-mcp/src/tools/framework/get_status.js} +1 -3
- package/framework-mcp/{src/tools/framework/orchestrate.ts → dist/framework-mcp/src/tools/framework/orchestrate.js} +1 -3
- package/framework-mcp/{src/tools/framework/run_tests.ts → dist/framework-mcp/src/tools/framework/run_tests.js} +9 -12
- package/framework-mcp/dist/framework-mcp/src/tools/framework/submit_plan.js +13 -0
- package/framework-mcp/{src/tools/framework/update_contract_hash.ts → dist/framework-mcp/src/tools/framework/update_contract_hash.js} +1 -3
- package/framework-mcp/{src/tools/framework/update_memory.ts → dist/framework-mcp/src/tools/framework/update_memory.js} +2 -4
- package/framework-mcp/{src/tools/index.ts → dist/framework-mcp/src/tools/index.js} +5 -7
- package/framework-mcp/{src/tools/memory/get_insights.ts → dist/framework-mcp/src/tools/memory/get_insights.js} +4 -11
- package/framework-mcp/{src/tools/memory/read_memory.ts → dist/framework-mcp/src/tools/memory/read_memory.js} +3 -6
- package/framework-mcp/{src/tools/messaging/log_action.ts → dist/framework-mcp/src/tools/messaging/log_action.js} +2 -8
- package/framework-mcp/{src/tools/messaging/send_message.ts → dist/framework-mcp/src/tools/messaging/send_message.js} +19 -22
- package/framework-mcp/{src/tools/observability/check_ports.ts → dist/framework-mcp/src/tools/observability/check_ports.js} +6 -10
- package/framework-mcp/{src/tools/observability/get_health.ts → dist/framework-mcp/src/tools/observability/get_health.js} +1 -6
- package/framework-mcp/{src/tools/quality/check_lint.ts → dist/framework-mcp/src/tools/quality/check_lint.js} +3 -9
- package/framework-mcp/{src/tools/search/get_gaps.ts → dist/framework-mcp/src/tools/search/get_gaps.js} +12 -18
- package/framework-mcp/{src/tools/search/get_map.ts → dist/framework-mcp/src/tools/search/get_map.js} +14 -19
- package/framework-mcp/{src/tools/search/grep_search.ts → dist/framework-mcp/src/tools/search/grep_search.js} +26 -26
- package/framework-mcp/{src/tools/search/list_dir.ts → dist/framework-mcp/src/tools/search/list_dir.js} +4 -10
- package/framework-mcp/{src/tools/shell/run_command.ts → dist/framework-mcp/src/tools/shell/run_command.js} +1 -11
- package/framework-mcp/dist/framework-mcp/src/tools/types.js +1 -0
- package/framework-mcp/{src/utils/cli.ts → dist/framework-mcp/src/utils/cli.js} +25 -19
- package/framework-mcp/dist/framework-mcp/src/utils/compliance.js +231 -0
- package/framework-mcp/{src/utils/fs.ts → dist/framework-mcp/src/utils/fs.js} +9 -10
- package/framework-mcp/{src/utils/metrics.ts → dist/framework-mcp/src/utils/metrics.js} +11 -28
- package/framework-mcp/dist/framework-mcp/src/utils/permissions.js +71 -0
- package/framework-mcp/{src/utils/security.ts → dist/framework-mcp/src/utils/security.js} +9 -15
- package/framework-mcp/dist/index.js +29 -5
- package/framework-mcp/dist/resources/index.js +58 -0
- package/{src/cli/adapters/core.ts → framework-mcp/dist/src/cli/adapters/core.js} +21 -41
- package/{src/cli/adapters/index.ts → framework-mcp/dist/src/cli/adapters/index.js} +1 -1
- package/{src/cli/adapters/paths.ts → framework-mcp/dist/src/cli/adapters/paths.js} +19 -53
- package/{src/cli/adapters/scaffold.ts → framework-mcp/dist/src/cli/adapters/scaffold.js} +18 -42
- package/{src/cli/adapters/utils.ts → framework-mcp/dist/src/cli/adapters/utils.js} +19 -31
- package/{src/cli/commands/approve.ts → framework-mcp/dist/src/cli/commands/approve.js} +15 -25
- package/{src/cli/commands/check.ts → framework-mcp/dist/src/cli/commands/check.js} +36 -43
- package/{src/cli/commands/compliance.ts → framework-mcp/dist/src/cli/commands/compliance.js} +10 -15
- package/{src/cli/commands/contract.ts → framework-mcp/dist/src/cli/commands/contract.js} +13 -31
- package/framework-mcp/dist/src/cli/commands/dashboard.js +123 -0
- package/{src/cli/commands/explorer.ts → framework-mcp/dist/src/cli/commands/explorer.js} +14 -17
- package/{src/cli/commands/git.ts → framework-mcp/dist/src/cli/commands/git.js} +15 -14
- package/framework-mcp/dist/src/cli/commands/init/create-agent.js +58 -0
- package/{src/cli/commands/init/scaffold-core.ts → framework-mcp/dist/src/cli/commands/init/scaffold-core.js} +35 -59
- package/framework-mcp/dist/src/cli/commands/init/scaffold-docs.js +34 -0
- package/{src/cli/commands/init/scaffold-ops.ts → framework-mcp/dist/src/cli/commands/init/scaffold-ops.js} +19 -22
- package/{src/cli/commands/init/scaffold-standards.ts → framework-mcp/dist/src/cli/commands/init/scaffold-standards.js} +20 -20
- package/{src/cli/commands/init.ts → framework-mcp/dist/src/cli/commands/init.js} +51 -77
- package/{src/cli/commands/knowledge.ts → framework-mcp/dist/src/cli/commands/knowledge.js} +9 -11
- package/{src/cli/commands/lint.ts → framework-mcp/dist/src/cli/commands/lint.js} +5 -6
- package/framework-mcp/dist/src/cli/commands/log.js +10 -0
- package/{src/cli/commands/memory.ts → framework-mcp/dist/src/cli/commands/memory.js} +1 -3
- package/framework-mcp/dist/src/cli/commands/orchestrate.js +159 -0
- package/framework-mcp/dist/src/cli/commands/plan.js +117 -0
- package/{src/cli/commands/script.ts → framework-mcp/dist/src/cli/commands/script.js} +6 -7
- package/{src/cli/commands/security.ts → framework-mcp/dist/src/cli/commands/security.js} +6 -8
- package/framework-mcp/dist/src/cli/commands/status.js +97 -0
- package/framework-mcp/dist/src/cli/commands/trace.js +109 -0
- package/{src/cli/index.ts → framework-mcp/dist/src/cli/index.js} +80 -64
- package/{src/cli/shims.ts → framework-mcp/dist/src/cli/shims.js} +15 -15
- package/{src/cli/utils/claude.ts → framework-mcp/dist/src/cli/utils/claude.js} +8 -15
- package/{src/cli/utils/compliance.ts → framework-mcp/dist/src/cli/utils/compliance.js} +18 -36
- package/{src/cli/utils/config-schema.ts → framework-mcp/dist/src/cli/utils/config-schema.js} +0 -6
- package/{src/cli/utils/fs.ts → framework-mcp/dist/src/cli/utils/fs.js} +34 -67
- package/{src/cli/utils/i18n.ts → framework-mcp/dist/src/cli/utils/i18n.js} +3 -17
- package/{src/cli/utils/memory.ts → framework-mcp/dist/src/cli/utils/memory.js} +87 -114
- package/{src/cli/utils/pkg.ts → framework-mcp/dist/src/cli/utils/pkg.js} +120 -155
- package/{src/cli/utils/schemas.ts → framework-mcp/dist/src/cli/utils/schemas.js} +0 -3
- package/{src/cli/utils/string.ts → framework-mcp/dist/src/cli/utils/string.js} +18 -24
- package/{src/cli/utils/time.ts → framework-mcp/dist/src/cli/utils/time.js} +4 -4
- package/{src/cli/utils/ui.ts → framework-mcp/dist/src/cli/utils/ui.js} +9 -17
- package/{src/contracts/tasks.ts → framework-mcp/dist/src/contracts/tasks.js} +0 -6
- package/framework-mcp/dist/src/dashboard/vite.config.js +15 -0
- package/framework-mcp/dist/src/modules/adapters/definitions.js +140 -0
- package/framework-mcp/dist/src/modules/adapters/registry.js +18 -0
- package/{src/modules/adapters/shared.ts → framework-mcp/dist/src/modules/adapters/shared.js} +9 -25
- package/framework-mcp/dist/src/modules/adapters/types.js +1 -0
- package/{src/modules/agents/definitions.ts → framework-mcp/dist/src/modules/agents/definitions.js} +158 -161
- package/{src/modules/agents/registry/analyst.ts → framework-mcp/dist/src/modules/agents/registry/analyst.js} +9 -14
- package/{src/modules/agents/registry/architect.ts → framework-mcp/dist/src/modules/agents/registry/architect.js} +9 -14
- package/{src/modules/agents/registry/backend.ts → framework-mcp/dist/src/modules/agents/registry/backend.js} +16 -13
- package/{src/modules/agents/registry/database.ts → framework-mcp/dist/src/modules/agents/registry/database.js} +16 -14
- package/{src/modules/agents/registry/devops.ts → framework-mcp/dist/src/modules/agents/registry/devops.js} +15 -14
- package/{src/modules/agents/registry/explorer.ts → framework-mcp/dist/src/modules/agents/registry/explorer.js} +9 -14
- package/{src/modules/agents/registry/frontend.ts → framework-mcp/dist/src/modules/agents/registry/frontend.js} +17 -14
- package/{src/modules/agents/registry/git.ts → framework-mcp/dist/src/modules/agents/registry/git.js} +9 -14
- package/{src/modules/agents/registry/manager.ts → framework-mcp/dist/src/modules/agents/registry/manager.js} +10 -15
- package/{src/modules/agents/registry/mobile.ts → framework-mcp/dist/src/modules/agents/registry/mobile.js} +9 -14
- package/{src/modules/agents/registry/native.ts → framework-mcp/dist/src/modules/agents/registry/native.js} +9 -14
- package/{src/modules/agents/registry/quality.ts → framework-mcp/dist/src/modules/agents/registry/quality.js} +9 -14
- package/{src/modules/agents/registry/security.ts → framework-mcp/dist/src/modules/agents/registry/security.js} +15 -14
- package/framework-mcp/dist/src/modules/agents/types.js +1 -0
- package/framework-mcp/dist/src/modules/engines/evaluation-engine.js +102 -0
- package/framework-mcp/dist/src/modules/engines/health-engine.js +49 -0
- package/framework-mcp/dist/src/modules/engines/planning-engine.js +78 -0
- package/framework-mcp/dist/src/modules/engines/risk-engine.js +105 -0
- package/framework-mcp/dist/src/modules/engines/routing-engine.js +73 -0
- package/framework-mcp/dist/src/modules/engines/types.js +1 -0
- package/{src/modules/skills/definitions.ts → framework-mcp/dist/src/modules/skills/definitions.js} +0 -1
- package/{src/shared/constants.ts → framework-mcp/dist/src/shared/constants.js} +40 -71
- package/{src/shared/errors.ts → framework-mcp/dist/src/shared/errors.js} +10 -17
- package/{src/shared/fs.ts → framework-mcp/dist/src/shared/fs.js} +14 -13
- package/{src/shared/logger.ts → framework-mcp/dist/src/shared/logger.js} +28 -51
- package/framework-mcp/dist/src/shared/storage.js +207 -0
- package/framework-mcp/dist/src/shared/types.js +12 -0
- package/framework-mcp/dist/tools/control_plane/locking.js +3 -3
- package/framework-mcp/dist/tools/control_plane/registry.js +3 -2
- package/framework-mcp/dist/tools/definitions.js +33 -1
- package/framework-mcp/dist/tools/file_system/batch_surgical_edit.js +8 -3
- package/framework-mcp/dist/tools/file_system/patch_file.js +8 -3
- package/framework-mcp/dist/tools/file_system/read_file.js +3 -3
- package/framework-mcp/dist/tools/file_system/replace_text.js +8 -3
- package/framework-mcp/dist/tools/file_system/write_file.js +10 -5
- package/framework-mcp/dist/tools/framework/audit_deps.js +2 -2
- package/framework-mcp/dist/tools/framework/run_tests.js +2 -2
- package/framework-mcp/dist/tools/framework/submit_plan.js +13 -0
- package/framework-mcp/dist/tools/framework/update_memory.js +1 -1
- package/framework-mcp/dist/tools/index.js +2 -0
- package/framework-mcp/dist/tools/memory/get_insights.js +1 -1
- package/framework-mcp/dist/tools/messaging/log_action.js +1 -1
- package/framework-mcp/dist/tools/messaging/send_message.js +5 -5
- package/framework-mcp/dist/tools/observability/check_ports.js +1 -1
- package/framework-mcp/dist/tools/quality/check_lint.js +2 -2
- package/framework-mcp/dist/tools/search/get_gaps.js +1 -1
- package/framework-mcp/dist/tools/search/grep_search.js +3 -3
- package/framework-mcp/dist/utils/compliance.js +158 -5
- package/framework-mcp/dist/utils/permissions.js +71 -0
- package/framework-mcp/package.json +7 -1
- package/mcp.json +1 -1
- package/package.json +10 -6
- package/templates/prompts/contract-design-recipe.md +1 -1
- package/templates/prompts/db-management-recipe.md +3 -3
- package/templates/prompts/deployment-recipe.md +3 -3
- package/templates/prompts/performance-optimization-recipe.md +3 -3
- package/templates/prompts/pull-request-template.md +2 -2
- package/templates/prompts/security-audit-recipe.md +3 -3
- package/templates/standards/crud-governance.md +1 -1
- package/templates/standards/deployment-standards.md +1 -1
- package/templates/standards/governance-standards.md +1 -1
- package/templates/standards/llm-governance.md +1 -1
- package/templates/standards/nextjs-standards.md +13 -0
- package/templates/standards/observability-standards.md +1 -1
- package/templates/standards/security-audit-standards.md +1 -1
- package/templates/standards/security-standards.md +1 -1
- package/templates/standards/testing-standards.md +1 -1
- package/templates/standards/vite-standards.md +13 -0
- package/framework-mcp/package-lock.json +0 -1191
- package/framework-mcp/src/declarations.d.ts +0 -17
- package/framework-mcp/src/tools/types.ts +0 -89
- package/framework-mcp/src/utils/compliance.ts +0 -95
- package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +0 -212
- package/framework-mcp/tests/tools/messaging/send_message.test.ts +0 -136
- package/framework-mcp/tests/tools/quality/check_lint.test.ts +0 -46
- package/framework-mcp/tests/tools/shell/run_command.test.ts +0 -55
- package/framework-mcp/tsconfig.json +0 -14
- package/src/cli/commands/init/scaffold-docs.ts +0 -44
- package/src/cli/commands/log.ts +0 -37
- package/src/cli/commands/orchestrate.ts +0 -450
- package/src/cli/commands/plan.ts +0 -113
- package/src/cli/commands/status.ts +0 -44
- package/src/cli/commands/trace.ts +0 -31
- package/src/modules/adapters/definitions.ts +0 -171
- package/src/modules/adapters/registry.ts +0 -27
- package/src/modules/adapters/types.ts +0 -16
- package/src/modules/agents/types.ts +0 -37
- package/src/schema/agent-lifecycle-schema.json +0 -59
- package/src/shared/types.ts +0 -20
- /package/{src/contracts/index.ts → framework-mcp/dist/src/contracts/index.js} +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import { listTasks, readState, readStatus } from "../utils/memory.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Print the current framework status.
|
|
6
|
-
*/
|
|
7
|
-
export async function statusCommand() {
|
|
8
|
-
const state = readState();
|
|
9
|
-
const tasks = listTasks();
|
|
10
|
-
const agentStatuses = readStatus();
|
|
11
|
-
|
|
12
|
-
if (!state) {
|
|
13
|
-
console.error("❌ Error: Memory state not found. Please run 'init' first.");
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
console.warn("\n📊 --- PROJECT STATUS ---");
|
|
18
|
-
console.warn(`🔹 Phase: ${state.phase}`);
|
|
19
|
-
console.warn(`🆔 Trace ID: ${state.traceId}`);
|
|
20
|
-
console.warn(`🤖 Manager: ${state.managerState}`);
|
|
21
|
-
|
|
22
|
-
// Read Agent Status from Document Store
|
|
23
|
-
console.warn("\n🎖️ Atabey Army Status (Agent States):");
|
|
24
|
-
for (const [agentName, info] of Object.entries(agentStatuses)) {
|
|
25
|
-
const { state, task } = info as { state: string; task: string };
|
|
26
|
-
let coloredState = state;
|
|
27
|
-
if (state === "READY") coloredState = chalk.green(state);
|
|
28
|
-
else if (state === "EXECUTING") coloredState = chalk.yellow(state);
|
|
29
|
-
else if (state === "BLOCKED" || state === "TIMEOUT") coloredState = chalk.red(state);
|
|
30
|
-
else if (state === "WAITING") coloredState = chalk.cyan(state);
|
|
31
|
-
|
|
32
|
-
console.warn(` ${chalk.bold(agentName.padEnd(12))} : [${coloredState}] - ${task}`);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (tasks.length > 0) {
|
|
36
|
-
console.warn("\n📋 Active Tasks:");
|
|
37
|
-
tasks.forEach((t: { priority: string; status: string; description: string; agent: string }) => {
|
|
38
|
-
console.warn(` - [${t.priority}] ${t.status}: ${t.description} (@${t.agent})`);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
console.warn("\n-----------------------\n");
|
|
43
|
-
}
|
|
44
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { updateDocumentStore, generateULID, getFrameworkDir } from "../utils/memory.js";
|
|
2
|
-
import { sanitizeInput, normalizeAgentName, normalizePriority } from "../utils/string.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Generate a new Trace ID and add it to project memory.
|
|
6
|
-
*/
|
|
7
|
-
export async function traceNewCommand(description: string, agent = "manager", priority = "P2"): Promise<string | void> {
|
|
8
|
-
const traceId = generateULID();
|
|
9
|
-
const safeDescription = sanitizeInput(description);
|
|
10
|
-
const safeAgent = normalizeAgentName(agent);
|
|
11
|
-
const safePriority = normalizePriority(priority);
|
|
12
|
-
const frameworkDir = getFrameworkDir();
|
|
13
|
-
// ...
|
|
14
|
-
|
|
15
|
-
// --- Document Store Write ---
|
|
16
|
-
updateDocumentStore("task", {
|
|
17
|
-
traceId,
|
|
18
|
-
description: safeDescription,
|
|
19
|
-
agent: safeAgent,
|
|
20
|
-
priority: safePriority,
|
|
21
|
-
status: "IN_PROGRESS",
|
|
22
|
-
createdAt: new Date().toISOString()
|
|
23
|
-
}, traceId, frameworkDir);
|
|
24
|
-
// ----------------------------
|
|
25
|
-
|
|
26
|
-
console.warn(`
|
|
27
|
-
✅ New Trace ID created: ${traceId}`);
|
|
28
|
-
console.warn(`📝 Added to task list: ${description}
|
|
29
|
-
`);
|
|
30
|
-
return traceId;
|
|
31
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import type { AdapterConfig, AdapterId } from "./types.js";
|
|
3
|
-
import { addMcpServerToClaude, findClaudeConfigPath } from "../../cli/utils/claude.js";
|
|
4
|
-
import { writeJsonFile } from "../../shared/fs.js";
|
|
5
|
-
import { registerGlobalAntigravityPlugins } from "./shared.js";
|
|
6
|
-
import { registry } from "./registry.js";
|
|
7
|
-
import { UI } from "../../cli/utils/ui.js";
|
|
8
|
-
|
|
9
|
-
// ─── Register Core Adapters ──────────────────────────────────────────────────
|
|
10
|
-
|
|
11
|
-
// ♊ Gemini
|
|
12
|
-
registry.register(
|
|
13
|
-
{
|
|
14
|
-
id: "gemini",
|
|
15
|
-
frameworkDir: ".gemini",
|
|
16
|
-
shimFile: "GEMINI.md",
|
|
17
|
-
shimTemplate: "src/cli/shims/gemini.md",
|
|
18
|
-
role: "commander",
|
|
19
|
-
templateDir: ".atabey",
|
|
20
|
-
nestedDirs: ["agents", "rules"],
|
|
21
|
-
agentsDir: ".gemini/agents",
|
|
22
|
-
agentsExt: ".md"
|
|
23
|
-
},
|
|
24
|
-
(projectRoot, mcpBlock) => {
|
|
25
|
-
const frameworkDir = ".gemini";
|
|
26
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp.json"), mcpBlock);
|
|
27
|
-
UI.success(`Gemini MCP registered → ${frameworkDir}/mcp.json`);
|
|
28
|
-
registerGlobalAntigravityPlugins(mcpBlock);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
// 🚀 Claude
|
|
33
|
-
registry.register(
|
|
34
|
-
{
|
|
35
|
-
id: "claude",
|
|
36
|
-
frameworkDir: ".claude",
|
|
37
|
-
shimFile: "CLAUDE.md",
|
|
38
|
-
shimTemplate: "src/cli/shims/claude.md",
|
|
39
|
-
role: "architect",
|
|
40
|
-
templateDir: ".atabey",
|
|
41
|
-
nestedDirs: ["agents", "rules"],
|
|
42
|
-
agentsDir: ".claude/agents",
|
|
43
|
-
agentsExt: ".md"
|
|
44
|
-
},
|
|
45
|
-
(projectRoot, mcpBlock) => {
|
|
46
|
-
const configPath = findClaudeConfigPath();
|
|
47
|
-
if (configPath) {
|
|
48
|
-
const block = mcpBlock as { mcpServers: Record<string, unknown> };
|
|
49
|
-
const mcpEntry = block.mcpServers["atabey"] as Record<string, unknown>;
|
|
50
|
-
const ok = addMcpServerToClaude(configPath, "atabey", mcpEntry);
|
|
51
|
-
if (ok) UI.success(`Claude MCP registered → ${configPath}`);
|
|
52
|
-
}
|
|
53
|
-
const frameworkDir = ".claude";
|
|
54
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
|
|
55
|
-
writeJsonFile(path.join(projectRoot, ".mcp.json"), mcpBlock);
|
|
56
|
-
UI.success("Claude Code Project MCP → .mcp.json");
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
// 🤖 Grok
|
|
61
|
-
registry.register(
|
|
62
|
-
{
|
|
63
|
-
id: "grok",
|
|
64
|
-
frameworkDir: ".grok",
|
|
65
|
-
shimFile: "GROK.md",
|
|
66
|
-
shimTemplate: "src/cli/shims/grok.md",
|
|
67
|
-
role: "researcher",
|
|
68
|
-
templateDir: ".atabey",
|
|
69
|
-
nestedDirs: ["agents", "rules"],
|
|
70
|
-
agentsDir: ".grok/agents",
|
|
71
|
-
agentsExt: ".md"
|
|
72
|
-
},
|
|
73
|
-
(projectRoot, mcpBlock) => {
|
|
74
|
-
const frameworkDir = ".grok";
|
|
75
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
|
|
76
|
-
UI.success(`Grok MCP → ${frameworkDir}/mcp_config.json`);
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
// ✍️ Cursor
|
|
81
|
-
registry.register(
|
|
82
|
-
{
|
|
83
|
-
id: "cursor",
|
|
84
|
-
frameworkDir: ".cursor",
|
|
85
|
-
shimFile: "CURSOR.md",
|
|
86
|
-
shimTemplate: "src/cli/shims/cursor.mdc",
|
|
87
|
-
role: "implementer",
|
|
88
|
-
templateDir: ".atabey",
|
|
89
|
-
nestedDirs: ["rules"],
|
|
90
|
-
agentsDir: ".cursor/rules",
|
|
91
|
-
agentsExt: ".mdc"
|
|
92
|
-
},
|
|
93
|
-
(projectRoot, mcpBlock) => {
|
|
94
|
-
const frameworkDir = ".cursor";
|
|
95
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp.json"), mcpBlock);
|
|
96
|
-
UI.success(`Cursor IDE Project MCP → ${frameworkDir}/mcp.json`);
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
|
|
100
|
-
// 💡 Codex (Copilot)
|
|
101
|
-
registry.register(
|
|
102
|
-
{
|
|
103
|
-
id: "codex",
|
|
104
|
-
frameworkDir: ".agents",
|
|
105
|
-
shimFile: "copilot-instructions.md",
|
|
106
|
-
shimTemplate: "src/cli/shims/codex.md",
|
|
107
|
-
role: "implementer",
|
|
108
|
-
templateDir: ".atabey",
|
|
109
|
-
nestedDirs: ["skills", "rules", "instructions"],
|
|
110
|
-
agentsDir: ".agents/instructions",
|
|
111
|
-
agentsExt: ".md"
|
|
112
|
-
},
|
|
113
|
-
(projectRoot, mcpBlock) => {
|
|
114
|
-
const frameworkDir = ".agents";
|
|
115
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
|
|
116
|
-
writeJsonFile(path.join(projectRoot, ".vscode/mcp.json"), mcpBlock);
|
|
117
|
-
writeJsonFile(path.join(projectRoot, ".mcp.json"), mcpBlock);
|
|
118
|
-
UI.success("GitHub Copilot Project MCP → .vscode/mcp.json & .mcp.json");
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
|
|
122
|
-
// 🏠 Local LLM (Ollama / Private AI)
|
|
123
|
-
registry.register(
|
|
124
|
-
{
|
|
125
|
-
id: "local",
|
|
126
|
-
frameworkDir: ".atabey",
|
|
127
|
-
shimFile: "LOCAL_AI.md",
|
|
128
|
-
shimTemplate: "src/cli/shims/local.md",
|
|
129
|
-
role: "commander",
|
|
130
|
-
templateDir: ".atabey",
|
|
131
|
-
nestedDirs: ["agents", "rules"],
|
|
132
|
-
agentsDir: ".atabey/agents",
|
|
133
|
-
agentsExt: ".md"
|
|
134
|
-
},
|
|
135
|
-
(projectRoot, mcpBlock) => {
|
|
136
|
-
const frameworkDir = ".atabey";
|
|
137
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
|
|
138
|
-
UI.success(`Local LLM MCP (Ollama/Private AI) registered → ${frameworkDir}/mcp_config.json`);
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
// 🛸 Antigravity
|
|
143
|
-
registry.register(
|
|
144
|
-
{
|
|
145
|
-
id: "antigravity-cli",
|
|
146
|
-
frameworkDir: ".antigravity",
|
|
147
|
-
shimFile: "AGENTS.md",
|
|
148
|
-
shimTemplate: "src/cli/shims/antigravity-cli.md",
|
|
149
|
-
role: "general",
|
|
150
|
-
templateDir: ".atabey",
|
|
151
|
-
nestedDirs: ["agents", "plugins", "rules"],
|
|
152
|
-
agentsDir: ".antigravity/agents",
|
|
153
|
-
agentsExt: ".md"
|
|
154
|
-
},
|
|
155
|
-
(projectRoot, mcpBlock) => {
|
|
156
|
-
const frameworkDir = ".antigravity";
|
|
157
|
-
writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
|
|
158
|
-
UI.success(`Antigravity CLI MCP → ${frameworkDir}/mcp_config.json`);
|
|
159
|
-
registerGlobalAntigravityPlugins(mcpBlock);
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Mapped Adapter Configurations
|
|
165
|
-
*/
|
|
166
|
-
export const ADAPTER_CONFIGS: Record<AdapterId, AdapterConfig> = registry.getConfigs();
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Post-Initialization Handlers for specific adapters
|
|
170
|
-
*/
|
|
171
|
-
export const POST_INIT_HANDLERS: Record<AdapterId, (projectRoot: string, mcpBlock: unknown) => void> = registry.getHandlers();
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AdapterId, AdapterConfig } from "./types.js";
|
|
2
|
-
|
|
3
|
-
type PostInitHandler = (projectRoot: string, mcpBlock: unknown) => void;
|
|
4
|
-
|
|
5
|
-
class AdapterRegistry {
|
|
6
|
-
private configs: Map<string, AdapterConfig> = new Map();
|
|
7
|
-
private handlers: Map<string, PostInitHandler> = new Map();
|
|
8
|
-
|
|
9
|
-
register(config: AdapterConfig, handler: PostInitHandler) {
|
|
10
|
-
this.configs.set(config.id, config);
|
|
11
|
-
this.handlers.set(config.id, handler);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
getConfigs(): Record<string, AdapterConfig> {
|
|
15
|
-
return Object.fromEntries(this.configs);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
getHandlers(): Record<string, PostInitHandler> {
|
|
19
|
-
return Object.fromEntries(this.handlers);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
getIds(): AdapterId[] {
|
|
23
|
-
return Array.from(this.configs.keys()) as AdapterId[];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const registry = new AdapterRegistry();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const ADAPTER_IDS = ["gemini", "claude", "grok", "cursor", "codex", "local", "antigravity-cli"] as const;
|
|
2
|
-
export type AdapterId = (typeof ADAPTER_IDS)[number];
|
|
3
|
-
|
|
4
|
-
export type AdapterRole = "commander" | "architect" | "researcher" | "implementer" | "general";
|
|
5
|
-
|
|
6
|
-
export interface AdapterConfig {
|
|
7
|
-
id: AdapterId;
|
|
8
|
-
frameworkDir: string;
|
|
9
|
-
shimFile: string;
|
|
10
|
-
shimTemplate: string;
|
|
11
|
-
role: AdapterRole;
|
|
12
|
-
templateDir: ".atabey";
|
|
13
|
-
nestedDirs?: string[];
|
|
14
|
-
agentsDir?: string; // Directory to write individual agents/rules, relative to projectRoot
|
|
15
|
-
agentsExt?: string; // Extensions for agent files (.md or .mdc)
|
|
16
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type AgentTier = "supreme" | "core" | "recon";
|
|
2
|
-
export type AgentTag =
|
|
3
|
-
| "core" | "orchestration" | "governance" | "security"
|
|
4
|
-
| "design" | "logic" | "ui" | "mobile" | "native"
|
|
5
|
-
| "audit" | "discipline" | "data" | "infra"
|
|
6
|
-
| "recon" | "logistics" | "strategy";
|
|
7
|
-
|
|
8
|
-
export interface AgentInstructions {
|
|
9
|
-
/** One-line identity statement surfaced to the agent as its persona. */
|
|
10
|
-
identity: string;
|
|
11
|
-
/** The agent's primary mission objective. */
|
|
12
|
-
mission: string;
|
|
13
|
-
/** Chain of Thought protocol the agent must follow. */
|
|
14
|
-
chainOfThought: string;
|
|
15
|
-
/** Mandatory, ordered discipline rules the agent must enforce. */
|
|
16
|
-
rules: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Optional: skill documents the agent MUST read before acting.
|
|
19
|
-
* Paths are relative to the framework's knowledge directory.
|
|
20
|
-
*/
|
|
21
|
-
knowledgeFiles?: string[];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface AgentDefinition {
|
|
25
|
-
/** Machine identifier — used in routing and send_agent_message targets. */
|
|
26
|
-
name: string;
|
|
27
|
-
displayName: string;
|
|
28
|
-
role: string;
|
|
29
|
-
description: string;
|
|
30
|
-
/** Capability score 1–10. Determines orchestration authority. */
|
|
31
|
-
capability: 10 | 9 | 8;
|
|
32
|
-
tier: AgentTier;
|
|
33
|
-
tags: AgentTag[];
|
|
34
|
-
stateMachine: string;
|
|
35
|
-
tools: string[];
|
|
36
|
-
instructions: AgentInstructions;
|
|
37
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Atabey Agent Lifecycle",
|
|
3
|
-
"initialState": "INIT",
|
|
4
|
-
"states": {
|
|
5
|
-
"INIT": {
|
|
6
|
-
"description": "Agent loaded and parsing initial workspace state.",
|
|
7
|
-
"transitions": {
|
|
8
|
-
"RESOLVED": "READY"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"READY": {
|
|
12
|
-
"description": "Agent is idle and listening for Hermes message cues.",
|
|
13
|
-
"transitions": {
|
|
14
|
-
"DELEGATED": "PLANNING"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"PLANNING": {
|
|
18
|
-
"description": "Agent is creating a strategic task division plan.",
|
|
19
|
-
"transitions": {
|
|
20
|
-
"PLAN_READY": "EXECUTING",
|
|
21
|
-
"ABORTED": "FAILED"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"EXECUTING": {
|
|
25
|
-
"description": "Agent is running shell scripts, file tools or code modifications.",
|
|
26
|
-
"transitions": {
|
|
27
|
-
"DELEGATE_REQUIRED": "DELEGATING",
|
|
28
|
-
"RUN_COMPLETE": "VERIFYING",
|
|
29
|
-
"CRASHED": "FAILED"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"DELEGATING": {
|
|
33
|
-
"description": "Agent is blocked waiting for sub-agent results.",
|
|
34
|
-
"transitions": {
|
|
35
|
-
"SUBTASK_RETURNED": "EXECUTING",
|
|
36
|
-
"SUBTASK_TIMEOUT": "FAILED"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"VERIFYING": {
|
|
40
|
-
"description": "Agent runs linting, testing, and compliance on the outputs.",
|
|
41
|
-
"transitions": {
|
|
42
|
-
"COMPLIANT": "COMPLETED",
|
|
43
|
-
"NON_COMPLIANT": "FAILED"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"COMPLETED": {
|
|
47
|
-
"description": "Task sequence finalized successfully.",
|
|
48
|
-
"transitions": {
|
|
49
|
-
"RESET": "READY"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"FAILED": {
|
|
53
|
-
"description": "Validation failed, trace aborted.",
|
|
54
|
-
"transitions": {
|
|
55
|
-
"RETRY": "READY"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
package/src/shared/types.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent Atabey Framework — Internal Branded Types
|
|
3
|
-
* Used to enforce absolute type safety within the core orchestration logic.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export type Brand<K, T> = K & { __brand: T };
|
|
7
|
-
|
|
8
|
-
export type TraceID = Brand<string, "TraceID">;
|
|
9
|
-
export type AgentID = Brand<string, "AgentID">;
|
|
10
|
-
export type PhaseID = Brand<string, "PhaseID">;
|
|
11
|
-
export type ProjectPath = Brand<string, "ProjectPath">;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Casts a raw string to a Branded Type.
|
|
15
|
-
* Use this only at the boundaries of the system.
|
|
16
|
-
*/
|
|
17
|
-
export function asTraceID(val: string): TraceID { return val as TraceID; }
|
|
18
|
-
export function asAgentID(val: string): AgentID { return val as AgentID; }
|
|
19
|
-
export function asPhaseID(val: string): PhaseID { return val as PhaseID; }
|
|
20
|
-
export function asProjectPath(val: string): ProjectPath { return val as ProjectPath; }
|
|
File without changes
|