atabey 0.0.5 → 0.0.7
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.d.ts +1 -0
- package/dist/framework-mcp/src/index.js +30 -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.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 +1 -1
- 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 +5 -2
- package/dist/src/shared/constants.js +4 -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/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/package.json +5 -4
- 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/dist/constants.js +0 -64
- package/framework-mcp/dist/index.js +0 -119
- package/framework-mcp/dist/tools/control_plane/locking.js +0 -82
- package/framework-mcp/dist/tools/control_plane/registry.js +0 -34
- package/framework-mcp/dist/tools/definitions.js +0 -290
- package/framework-mcp/dist/tools/file_system/batch_surgical_edit.js +0 -59
- package/framework-mcp/dist/tools/file_system/patch_file.js +0 -29
- package/framework-mcp/dist/tools/file_system/read_file.js +0 -51
- package/framework-mcp/dist/tools/file_system/replace_text.js +0 -45
- package/framework-mcp/dist/tools/file_system/write_file.js +0 -38
- package/framework-mcp/dist/tools/framework/audit_deps.js +0 -41
- package/framework-mcp/dist/tools/framework/get_status.js +0 -5
- package/framework-mcp/dist/tools/framework/orchestrate.js +0 -5
- package/framework-mcp/dist/tools/framework/run_tests.js +0 -27
- 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 -60
- package/framework-mcp/dist/tools/memory/get_insights.js +0 -34
- package/framework-mcp/dist/tools/memory/read_memory.js +0 -28
- package/framework-mcp/dist/tools/messaging/log_action.js +0 -22
- package/framework-mcp/dist/tools/messaging/send_message.js +0 -94
- package/framework-mcp/dist/tools/observability/check_ports.js +0 -26
- package/framework-mcp/dist/tools/observability/get_health.js +0 -19
- package/framework-mcp/dist/tools/quality/check_lint.js +0 -30
- package/framework-mcp/dist/tools/search/get_gaps.js +0 -48
- package/framework-mcp/dist/tools/search/get_map.js +0 -43
- package/framework-mcp/dist/tools/search/grep_search.js +0 -75
- package/framework-mcp/dist/tools/search/list_dir.js +0 -28
- package/framework-mcp/dist/tools/shell/run_command.js +0 -56
- package/framework-mcp/dist/utils/cli.js +0 -59
- package/framework-mcp/dist/utils/compliance.js +0 -78
- package/framework-mcp/dist/utils/fs.js +0 -44
- package/framework-mcp/dist/utils/metrics.js +0 -56
- package/framework-mcp/dist/utils/security.js +0 -60
- package/framework-mcp/package-lock.json +0 -1191
- package/framework-mcp/package.json +0 -26
- package/framework-mcp/src/constants.ts +0 -78
- package/framework-mcp/src/declarations.d.ts +0 -17
- package/framework-mcp/src/index.ts +0 -144
- package/framework-mcp/src/tools/control_plane/locking.ts +0 -89
- package/framework-mcp/src/tools/control_plane/registry.ts +0 -38
- package/framework-mcp/src/tools/definitions.ts +0 -292
- package/framework-mcp/src/tools/file_system/batch_surgical_edit.ts +0 -79
- package/framework-mcp/src/tools/file_system/patch_file.ts +0 -39
- package/framework-mcp/src/tools/file_system/read_file.ts +0 -58
- package/framework-mcp/src/tools/file_system/replace_text.ts +0 -54
- package/framework-mcp/src/tools/file_system/write_file.ts +0 -45
- package/framework-mcp/src/tools/framework/audit_deps.ts +0 -49
- package/framework-mcp/src/tools/framework/get_status.ts +0 -7
- package/framework-mcp/src/tools/framework/orchestrate.ts +0 -7
- package/framework-mcp/src/tools/framework/run_tests.ts +0 -30
- package/framework-mcp/src/tools/framework/update_contract_hash.ts +0 -7
- package/framework-mcp/src/tools/framework/update_memory.ts +0 -10
- package/framework-mcp/src/tools/index.ts +0 -64
- package/framework-mcp/src/tools/memory/get_insights.ts +0 -41
- package/framework-mcp/src/tools/memory/read_memory.ts +0 -31
- package/framework-mcp/src/tools/messaging/log_action.ts +0 -28
- package/framework-mcp/src/tools/messaging/send_message.ts +0 -97
- package/framework-mcp/src/tools/observability/check_ports.ts +0 -30
- package/framework-mcp/src/tools/observability/get_health.ts +0 -24
- package/framework-mcp/src/tools/quality/check_lint.ts +0 -36
- package/framework-mcp/src/tools/search/get_gaps.ts +0 -54
- package/framework-mcp/src/tools/search/get_map.ts +0 -48
- package/framework-mcp/src/tools/search/grep_search.ts +0 -75
- package/framework-mcp/src/tools/search/list_dir.ts +0 -34
- package/framework-mcp/src/tools/shell/run_command.ts +0 -66
- package/framework-mcp/src/tools/types.ts +0 -89
- package/framework-mcp/src/utils/cli.ts +0 -53
- package/framework-mcp/src/utils/compliance.ts +0 -95
- package/framework-mcp/src/utils/fs.ts +0 -45
- package/framework-mcp/src/utils/metrics.ts +0 -73
- package/framework-mcp/src/utils/security.ts +0 -66
- 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/adapters/core.ts +0 -91
- package/src/cli/adapters/index.ts +0 -5
- package/src/cli/adapters/paths.ts +0 -135
- package/src/cli/adapters/scaffold.ts +0 -95
- package/src/cli/adapters/utils.ts +0 -87
- package/src/cli/commands/approve.ts +0 -73
- package/src/cli/commands/check.ts +0 -188
- package/src/cli/commands/compliance.ts +0 -55
- package/src/cli/commands/contract.ts +0 -68
- package/src/cli/commands/explorer.ts +0 -45
- package/src/cli/commands/git.ts +0 -39
- package/src/cli/commands/init/scaffold-core.ts +0 -136
- package/src/cli/commands/init/scaffold-docs.ts +0 -44
- package/src/cli/commands/init/scaffold-ops.ts +0 -83
- package/src/cli/commands/init/scaffold-standards.ts +0 -67
- package/src/cli/commands/init.ts +0 -193
- package/src/cli/commands/knowledge.ts +0 -44
- package/src/cli/commands/lint.ts +0 -23
- package/src/cli/commands/log.ts +0 -37
- package/src/cli/commands/memory.ts +0 -6
- package/src/cli/commands/orchestrate.ts +0 -450
- package/src/cli/commands/plan.ts +0 -113
- package/src/cli/commands/script.ts +0 -20
- package/src/cli/commands/security.ts +0 -38
- package/src/cli/commands/status.ts +0 -44
- package/src/cli/commands/trace.ts +0 -31
- package/src/cli/index.ts +0 -322
- package/src/cli/shims.ts +0 -66
- package/src/cli/utils/claude.ts +0 -63
- package/src/cli/utils/compliance.ts +0 -191
- package/src/cli/utils/config-schema.ts +0 -48
- package/src/cli/utils/fs.ts +0 -170
- package/src/cli/utils/i18n.ts +0 -44
- package/src/cli/utils/memory.ts +0 -303
- package/src/cli/utils/pkg.ts +0 -317
- package/src/cli/utils/schemas.ts +0 -22
- package/src/cli/utils/string.ts +0 -55
- package/src/cli/utils/time.ts +0 -27
- package/src/cli/utils/ui.ts +0 -66
- package/src/contracts/index.ts +0 -1
- package/src/contracts/tasks.ts +0 -26
- package/src/modules/adapters/definitions.ts +0 -171
- package/src/modules/adapters/registry.ts +0 -27
- package/src/modules/adapters/shared.ts +0 -120
- package/src/modules/adapters/types.ts +0 -16
- package/src/modules/agents/definitions.ts +0 -460
- package/src/modules/agents/registry/analyst.ts +0 -44
- package/src/modules/agents/registry/architect.ts +0 -47
- package/src/modules/agents/registry/backend.ts +0 -46
- package/src/modules/agents/registry/database.ts +0 -43
- package/src/modules/agents/registry/devops.ts +0 -44
- package/src/modules/agents/registry/explorer.ts +0 -41
- package/src/modules/agents/registry/frontend.ts +0 -48
- package/src/modules/agents/registry/git.ts +0 -41
- package/src/modules/agents/registry/manager.ts +0 -58
- package/src/modules/agents/registry/mobile.ts +0 -44
- package/src/modules/agents/registry/native.ts +0 -44
- package/src/modules/agents/registry/quality.ts +0 -46
- package/src/modules/agents/registry/security.ts +0 -42
- package/src/modules/agents/types.ts +0 -37
- package/src/modules/skills/definitions.ts +0 -71
- package/src/schema/agent-lifecycle-schema.json +0 -59
- package/src/shared/constants.ts +0 -218
- package/src/shared/errors.ts +0 -75
- package/src/shared/fs.ts +0 -50
- package/src/shared/logger.ts +0 -139
- package/src/shared/types.ts +0 -20
- /package/{framework-mcp/dist/tools/types.js → dist/framework-mcp/tests/tools/file_system/compliance-risk.test.d.ts} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "atabey-mcp",
|
|
3
|
-
"version": "0.0.4",
|
|
4
|
-
"description": "Agent Atabey Model Context Protocol (MCP) Server",
|
|
5
|
-
"author": "Yusuf BEKAR",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/ysf-bkr/atabey.git"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://github.com/ysf-bkr/atabey#readme",
|
|
12
|
-
"type": "module",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "npx tsc",
|
|
15
|
-
"start": "node dist/index.js",
|
|
16
|
-
"dev": "tsx src/index.ts"
|
|
17
|
-
},
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
20
|
-
"zod": "^3.24.2"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@types/node": "^25.9.1",
|
|
24
|
-
"typescript": "^5.9.3"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Agent Atabey — Single Source of Truth for framework constants.
|
|
5
|
-
* Import from here instead of hardcoding paths, phases, or directory names.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// ─── Framework identity ───────────────────────────────────────────────────
|
|
9
|
-
|
|
10
|
-
export const FRAMEWORK = {
|
|
11
|
-
NAME: "Agent Atabey",
|
|
12
|
-
CORE_DIR: ".atabey",
|
|
13
|
-
// This is the hub for unified adapter layouts (e.g. .agents/gemini, .agents/claude)
|
|
14
|
-
UNIFIED_HUB_DIR: ".agents",
|
|
15
|
-
// This is the default directory to scaffold new apps into
|
|
16
|
-
APPS_DIR: "apps",
|
|
17
|
-
// This is where all skills are stored
|
|
18
|
-
SKILLS_DIR: "skills",
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const FRAMEWORK_SUBDIRS = {
|
|
22
|
-
AGENTS: "agents",
|
|
23
|
-
SKILLS: "skills",
|
|
24
|
-
KNOWLEDGE: "knowledge",
|
|
25
|
-
MESSAGES: "messages",
|
|
26
|
-
MEMORY: "memory",
|
|
27
|
-
MEMORY_GRAPH: "memory-graph",
|
|
28
|
-
LOGS: "logs",
|
|
29
|
-
CONFIG: "config",
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const ROOT_CONFIG_FILES = {
|
|
33
|
-
MCP: "mcp.json",
|
|
34
|
-
NATIVE_MODULES: "native-modules.json",
|
|
35
|
-
TSCONFIG: "tsconfig.json",
|
|
36
|
-
ESLINT: "eslint.config.js",
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const MCP = {
|
|
40
|
-
// Environment variable used by MCP to identify project root
|
|
41
|
-
PROJECT_ROOT_ENV: "ATABEY_PROJECT_ROOT",
|
|
42
|
-
// Environment variable for test mode
|
|
43
|
-
TEST_DIR_ENV: "ATABEY_TEST_DIR",
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export const MEMORY_FILES = {
|
|
47
|
-
STATE: "state.json",
|
|
48
|
-
SHARED_FACTS: "shared_facts.json",
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const NATIVE_AGENT_PATHS = {
|
|
52
|
-
gemini: ".gemini/agents",
|
|
53
|
-
claude: ".claude/agents",
|
|
54
|
-
cursor: ".cursor/rules",
|
|
55
|
-
codex: ".agents/instructions",
|
|
56
|
-
grok: ".grok",
|
|
57
|
-
"antigravity-cli": ".antigravity/agents",
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// ─── Backward-compatible aliases ──────────────────────────────────────────
|
|
61
|
-
|
|
62
|
-
export const CORE_FRAMEWORK_DIR = FRAMEWORK.CORE_DIR;
|
|
63
|
-
export const UNIFIED_HUB_DIR = FRAMEWORK.UNIFIED_HUB_DIR;
|
|
64
|
-
export const SKILLS_HUB_PATH = pathJoin(UNIFIED_HUB_DIR, FRAMEWORK_SUBDIRS.SKILLS);
|
|
65
|
-
|
|
66
|
-
// ─── Path Helpers ─────────────────────────────────────────────────────────
|
|
67
|
-
|
|
68
|
-
function pathJoin(...args: string[]): string {
|
|
69
|
-
return path.join(...args);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function corePath(subdir: string, filename: string): string {
|
|
73
|
-
return pathJoin(FRAMEWORK.CORE_DIR, subdir, filename);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function knowledgePath(filename: string): string {
|
|
77
|
-
return corePath(FRAMEWORK_SUBDIRS.KNOWLEDGE, filename);
|
|
78
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare module "@modelcontextprotocol/sdk/server/index.js" {
|
|
2
|
-
export class Server {
|
|
3
|
-
constructor(info: { name: string; version: string }, options: { capabilities: { tools: Record<string, never> } });
|
|
4
|
-
setRequestHandler(schema: unknown, handler: (request: unknown) => Promise<unknown>): void;
|
|
5
|
-
connect(transport: unknown): Promise<void>;
|
|
6
|
-
close(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module "@modelcontextprotocol/sdk/server/stdio.js" {
|
|
11
|
-
export class StdioServerTransport {}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare module "@modelcontextprotocol/sdk/types.js" {
|
|
15
|
-
export const ListToolsRequestSchema: unknown;
|
|
16
|
-
export const CallToolRequestSchema: unknown;
|
|
17
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
4
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
5
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
|
-
import {
|
|
7
|
-
CallToolRequestSchema,
|
|
8
|
-
ListToolsRequestSchema,
|
|
9
|
-
} from "@modelcontextprotocol/sdk/types.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import { TOOLS, toolHandlers } from "./tools/index.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// ─── Server Setup ─────────────────────────────────────────────────
|
|
16
|
-
|
|
17
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
18
|
-
|
|
19
|
-
// Robustly find package.json by walking up from __dirname
|
|
20
|
-
function findPackageJson(startDir: string): string {
|
|
21
|
-
let currentDir = startDir;
|
|
22
|
-
while (currentDir !== path.parse(currentDir).root) {
|
|
23
|
-
const pkgPath = path.join(currentDir, "package.json");
|
|
24
|
-
if (fs.existsSync(pkgPath)) return pkgPath;
|
|
25
|
-
currentDir = path.dirname(currentDir);
|
|
26
|
-
}
|
|
27
|
-
throw new Error("Could not find package.json for atabey-mcp");
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const pkgPath = findPackageJson(__dirname);
|
|
31
|
-
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
32
|
-
const serverVersion = pkg.version;
|
|
33
|
-
|
|
34
|
-
const server = new Server(
|
|
35
|
-
{
|
|
36
|
-
name: "atabey-mcp",
|
|
37
|
-
version: serverVersion,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
capabilities: {
|
|
41
|
-
tools: {},
|
|
42
|
-
},
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
// Basic Schema Validator for Required Fields
|
|
47
|
-
function validateArgs(toolName: string, args: Record<string, unknown>): string | null {
|
|
48
|
-
const definition = TOOLS.find(t => t.name === toolName);
|
|
49
|
-
if (!definition) return `Unknown tool: ${toolName}`;
|
|
50
|
-
|
|
51
|
-
const required = definition.inputSchema.required || [];
|
|
52
|
-
for (const field of required) {
|
|
53
|
-
if (args[field] === undefined || args[field] === null || args[field] === "") {
|
|
54
|
-
return `Missing required argument: '${field}' for tool '${toolName}'`;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
server.setRequestHandler(ListToolsRequestSchema, async (request) => {
|
|
61
|
-
// 2026 Stateless Spec: Log client info from metadata if available
|
|
62
|
-
const meta = (request as { _meta?: { client?: { name?: string; version?: string } } })._meta;
|
|
63
|
-
if (meta) {
|
|
64
|
-
process.stderr.write(`[MCP] Stateless ListTools from ${meta.client?.name || "unknown"} v${meta.client?.version || "?.?"}\n`);
|
|
65
|
-
}
|
|
66
|
-
return { tools: TOOLS };
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
70
|
-
const req = request as { params: { name: string, arguments?: Record<string, unknown> } };
|
|
71
|
-
const { name, arguments: args } = req.params;
|
|
72
|
-
const meta = (request as { _meta?: { client?: { name?: string; version?: string } } })._meta;
|
|
73
|
-
|
|
74
|
-
// 2026 Stateless Spec: Prioritize metadata-driven context
|
|
75
|
-
if (meta) {
|
|
76
|
-
process.stderr.write(`[MCP] Stateless CallTool: ${name} (Client: ${meta.client?.name || "unknown"})\n`);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const projectRoot = process.env.ATABEY_PROJECT_ROOT || process.cwd();
|
|
80
|
-
|
|
81
|
-
try {
|
|
82
|
-
const handler = toolHandlers[name];
|
|
83
|
-
if (!handler) {
|
|
84
|
-
return {
|
|
85
|
-
isError: true,
|
|
86
|
-
content: [{ type: "text" as const, text: `❌ Unknown tool: ${name}` }],
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// 🛡️ Runtime Validation
|
|
91
|
-
const validationError = validateArgs(name, args || {});
|
|
92
|
-
if (validationError) {
|
|
93
|
-
return {
|
|
94
|
-
isError: true,
|
|
95
|
-
content: [{ type: "text" as const, text: `❌ Validation Error: ${validationError}` }],
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return await handler(projectRoot, args || {});
|
|
100
|
-
} catch (error: unknown) {
|
|
101
|
-
const message = error instanceof Error ? error.message : "Unknown error occurred";
|
|
102
|
-
return {
|
|
103
|
-
isError: true,
|
|
104
|
-
content: [{ type: "text" as const, text: `❌ Execution failed: ${message}` }],
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
// ─── Graceful Startup & Shutdown ──────────────────────────────────
|
|
110
|
-
|
|
111
|
-
async function run() {
|
|
112
|
-
const transport = new StdioServerTransport();
|
|
113
|
-
|
|
114
|
-
// Prevent unhandled errors from crashing the MCP stream
|
|
115
|
-
process.on("uncaughtException", (error: Error) => {
|
|
116
|
-
process.stderr.write(`[atabey-mcp] Uncaught exception: ${error.message}
|
|
117
|
-
`);
|
|
118
|
-
});
|
|
119
|
-
process.on("unhandledRejection", (reason: unknown) => {
|
|
120
|
-
const message = reason instanceof Error ? reason.message : String(reason);
|
|
121
|
-
process.stderr.write(`[atabey-mcp] Unhandled rejection: ${message}
|
|
122
|
-
`);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
// Graceful shutdown on SIGINT/SIGTERM
|
|
126
|
-
const shutdown = async () => {
|
|
127
|
-
try {
|
|
128
|
-
await server.close();
|
|
129
|
-
} catch {
|
|
130
|
-
// Already closed or failed — safe to ignore
|
|
131
|
-
}
|
|
132
|
-
process.exit(0);
|
|
133
|
-
};
|
|
134
|
-
process.on("SIGINT", shutdown);
|
|
135
|
-
process.on("SIGTERM", shutdown);
|
|
136
|
-
|
|
137
|
-
await server.connect(transport);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
run().catch((error: Error) => {
|
|
141
|
-
process.stderr.write(`[atabey-mcp] Fatal startup error: ${error.message}
|
|
142
|
-
`);
|
|
143
|
-
process.exit(1);
|
|
144
|
-
});
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { ToolResult, AcquireLockArgs, ReleaseLockArgs } from "../types.js";
|
|
4
|
-
import { resolveFrameworkDir } from "../../utils/security.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Handles acquiring a stateful lock on a resource.
|
|
8
|
-
*/
|
|
9
|
-
export async function handleAcquireLock(projectRoot: string, args: AcquireLockArgs): Promise<ToolResult> {
|
|
10
|
-
const { resource, agent, ttl = 60 } = args;
|
|
11
|
-
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
12
|
-
const lockDir = path.join(projectRoot, frameworkDir, "locks");
|
|
13
|
-
const lockPath = path.join(lockDir, `${resource}.lock`);
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
if (!fs.existsSync(lockDir)) fs.mkdirSync(lockDir, { recursive: true });
|
|
17
|
-
|
|
18
|
-
// Check for stale lock first
|
|
19
|
-
if (fs.existsSync(lockPath)) {
|
|
20
|
-
const stat = fs.statSync(lockPath);
|
|
21
|
-
const now = new Date().getTime();
|
|
22
|
-
const age = (now - stat.mtimeMs) / 1000;
|
|
23
|
-
|
|
24
|
-
if (age < ttl) {
|
|
25
|
-
return {
|
|
26
|
-
isError: true,
|
|
27
|
-
content: [{ type: "text", text: `Resource '${resource}' is currently locked by another agent.` }]
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
// Lock expired, safe to override by renaming first (POSIX atomic operation)
|
|
31
|
-
const tempLockPath = `${lockPath}.${Math.random().toString(36).substring(2)}.old`;
|
|
32
|
-
try {
|
|
33
|
-
fs.renameSync(lockPath, tempLockPath);
|
|
34
|
-
fs.unlinkSync(tempLockPath);
|
|
35
|
-
} catch {
|
|
36
|
-
// If rename failed, it means another agent already evicting/deleting it.
|
|
37
|
-
// Do not delete anything else; proceed and let writeFileSync (wx flag) fail if a new lock exists.
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Use 'wx' flag for atomic file creation
|
|
42
|
-
const lockData = JSON.stringify({ agent, timestamp: new Date().toISOString() });
|
|
43
|
-
fs.writeFileSync(lockPath, lockData, { flag: "wx" });
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
content: [{ type: "text", text: `✅ Lock acquired for resource '${resource}' by ${agent}.` }]
|
|
47
|
-
};
|
|
48
|
-
} catch (e) {
|
|
49
|
-
const error = e as { code?: string };
|
|
50
|
-
if (error.code === "EEXIST") {
|
|
51
|
-
return {
|
|
52
|
-
isError: true,
|
|
53
|
-
content: [{ type: "text", text: `Resource '${resource}' was just acquired by another agent.` }]
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
isError: true,
|
|
58
|
-
content: [{ type: "text", text: `Failed to acquire lock: ${String(e)}` }]
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Handles releasing a lock.
|
|
65
|
-
*/
|
|
66
|
-
export async function handleReleaseLock(projectRoot: string, args: ReleaseLockArgs): Promise<ToolResult> {
|
|
67
|
-
const { resource, agent } = args;
|
|
68
|
-
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
69
|
-
const lockPath = path.join(projectRoot, frameworkDir, "locks", `${resource}.lock`);
|
|
70
|
-
|
|
71
|
-
try {
|
|
72
|
-
if (!fs.existsSync(lockPath)) {
|
|
73
|
-
return { content: [{ type: "text", text: `ℹ️ No lock found for resource '${resource}'.` }] };
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const lockData = JSON.parse(fs.readFileSync(lockPath, "utf8"));
|
|
77
|
-
if (lockData.agent !== agent) {
|
|
78
|
-
return {
|
|
79
|
-
isError: true,
|
|
80
|
-
content: [{ type: "text", text: `❌ Denied: You do not own the lock for '${resource}'. Owned by ${lockData.agent}.` }]
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
fs.unlinkSync(lockPath);
|
|
85
|
-
return { content: [{ type: "text", text: `✅ Lock released for resource '${resource}' by ${agent}.` }] };
|
|
86
|
-
} catch (e) {
|
|
87
|
-
return { isError: true, content: [{ type: "text", text: `Failed to release lock: ${String(e)}` }] };
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { ToolResult, RegisterAgentArgs } from "../types.js";
|
|
4
|
-
import { resolveFrameworkDir } from "../../utils/security.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Handles agent registration with the Control Plane.
|
|
8
|
-
* This can be used to validate permissions and active status.
|
|
9
|
-
*/
|
|
10
|
-
export async function handleRegisterAgent(projectRoot: string, args: RegisterAgentArgs): Promise<ToolResult> {
|
|
11
|
-
const { agent, role, capability = 5 } = args;
|
|
12
|
-
const frameworkDir = resolveFrameworkDir(projectRoot);
|
|
13
|
-
const registryDir = path.join(projectRoot, frameworkDir, "registry");
|
|
14
|
-
const agentFile = path.join(registryDir, `${agent.replace("@", "")}_active.json`);
|
|
15
|
-
|
|
16
|
-
try {
|
|
17
|
-
if (!fs.existsSync(registryDir)) fs.mkdirSync(registryDir, { recursive: true });
|
|
18
|
-
|
|
19
|
-
const agentData = {
|
|
20
|
-
agent,
|
|
21
|
-
role,
|
|
22
|
-
capability,
|
|
23
|
-
last_seen: new Date().toISOString(),
|
|
24
|
-
status: "ACTIVE"
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
fs.writeFileSync(agentFile, JSON.stringify(agentData, null, 2));
|
|
28
|
-
|
|
29
|
-
return {
|
|
30
|
-
content: [{ type: "text", text: `🎖️ Agent ${agent} (${role}) registered successfully in the Atabey Control Plane.` }]
|
|
31
|
-
};
|
|
32
|
-
} catch (e) {
|
|
33
|
-
return {
|
|
34
|
-
isError: true,
|
|
35
|
-
content: [{ type: "text", text: `Failed to register agent: ${String(e)}` }]
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|