atabey 0.0.1
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 +258 -0
- package/LICENSE +21 -0
- package/README.md +190 -0
- package/bin/cli.js +26 -0
- package/bin/validate-agent-army.js +145 -0
- package/dist/framework-mcp/src/constants.d.ts +47 -0
- package/dist/framework-mcp/src/constants.js +65 -0
- package/dist/framework-mcp/src/constants.js.map +1 -0
- package/dist/framework-mcp/src/index.d.ts +1 -0
- package/dist/framework-mcp/src/index.js +120 -0
- package/dist/framework-mcp/src/index.js.map +1 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +9 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.js +83 -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 +6 -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.d.ts +2 -0
- package/dist/framework-mcp/src/tools/definitions.js +291 -0
- package/dist/framework-mcp/src/tools/definitions.js.map +1 -0
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.d.ts +5 -0
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +60 -0
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -0
- package/dist/framework-mcp/src/tools/file_system/patch_file.d.ts +2 -0
- package/dist/framework-mcp/src/tools/file_system/patch_file.js +26 -0
- package/dist/framework-mcp/src/tools/file_system/patch_file.js.map +1 -0
- package/dist/framework-mcp/src/tools/file_system/read_file.d.ts +2 -0
- package/dist/framework-mcp/src/tools/file_system/read_file.js +52 -0
- package/dist/framework-mcp/src/tools/file_system/read_file.js.map +1 -0
- package/dist/framework-mcp/src/tools/file_system/replace_text.d.ts +2 -0
- package/dist/framework-mcp/src/tools/file_system/replace_text.js +46 -0
- package/dist/framework-mcp/src/tools/file_system/replace_text.js.map +1 -0
- package/dist/framework-mcp/src/tools/file_system/write_file.d.ts +2 -0
- package/dist/framework-mcp/src/tools/file_system/write_file.js +39 -0
- package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/audit_deps.d.ts +6 -0
- package/dist/framework-mcp/src/tools/framework/audit_deps.js +42 -0
- package/dist/framework-mcp/src/tools/framework/audit_deps.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/get_status.d.ts +2 -0
- package/dist/framework-mcp/src/tools/framework/get_status.js +6 -0
- package/dist/framework-mcp/src/tools/framework/get_status.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/orchestrate.d.ts +2 -0
- package/dist/framework-mcp/src/tools/framework/orchestrate.js +6 -0
- package/dist/framework-mcp/src/tools/framework/orchestrate.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/run_tests.d.ts +5 -0
- package/dist/framework-mcp/src/tools/framework/run_tests.js +26 -0
- package/dist/framework-mcp/src/tools/framework/run_tests.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/update_contract_hash.d.ts +2 -0
- package/dist/framework-mcp/src/tools/framework/update_contract_hash.js +6 -0
- package/dist/framework-mcp/src/tools/framework/update_contract_hash.js.map +1 -0
- package/dist/framework-mcp/src/tools/framework/update_memory.d.ts +2 -0
- package/dist/framework-mcp/src/tools/framework/update_memory.js +9 -0
- package/dist/framework-mcp/src/tools/framework/update_memory.js.map +1 -0
- package/dist/framework-mcp/src/tools/index.d.ts +4 -0
- package/dist/framework-mcp/src/tools/index.js +61 -0
- package/dist/framework-mcp/src/tools/index.js.map +1 -0
- package/dist/framework-mcp/src/tools/memory/get_insights.d.ts +6 -0
- package/dist/framework-mcp/src/tools/memory/get_insights.js +35 -0
- package/dist/framework-mcp/src/tools/memory/get_insights.js.map +1 -0
- package/dist/framework-mcp/src/tools/memory/read_memory.d.ts +6 -0
- package/dist/framework-mcp/src/tools/memory/read_memory.js +29 -0
- package/dist/framework-mcp/src/tools/memory/read_memory.js.map +1 -0
- package/dist/framework-mcp/src/tools/messaging/log_action.d.ts +2 -0
- package/dist/framework-mcp/src/tools/messaging/log_action.js +23 -0
- package/dist/framework-mcp/src/tools/messaging/log_action.js.map +1 -0
- package/dist/framework-mcp/src/tools/messaging/send_message.d.ts +2 -0
- package/dist/framework-mcp/src/tools/messaging/send_message.js +95 -0
- package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -0
- package/dist/framework-mcp/src/tools/observability/check_ports.d.ts +5 -0
- package/dist/framework-mcp/src/tools/observability/check_ports.js +27 -0
- package/dist/framework-mcp/src/tools/observability/check_ports.js.map +1 -0
- package/dist/framework-mcp/src/tools/observability/get_health.d.ts +5 -0
- package/dist/framework-mcp/src/tools/observability/get_health.js +20 -0
- package/dist/framework-mcp/src/tools/observability/get_health.js.map +1 -0
- package/dist/framework-mcp/src/tools/quality/check_lint.d.ts +5 -0
- package/dist/framework-mcp/src/tools/quality/check_lint.js +29 -0
- package/dist/framework-mcp/src/tools/quality/check_lint.js.map +1 -0
- package/dist/framework-mcp/src/tools/search/get_gaps.d.ts +6 -0
- package/dist/framework-mcp/src/tools/search/get_gaps.js +49 -0
- package/dist/framework-mcp/src/tools/search/get_gaps.js.map +1 -0
- package/dist/framework-mcp/src/tools/search/get_map.d.ts +6 -0
- package/dist/framework-mcp/src/tools/search/get_map.js +44 -0
- package/dist/framework-mcp/src/tools/search/get_map.js.map +1 -0
- package/dist/framework-mcp/src/tools/search/grep_search.d.ts +5 -0
- package/dist/framework-mcp/src/tools/search/grep_search.js +76 -0
- package/dist/framework-mcp/src/tools/search/grep_search.js.map +1 -0
- package/dist/framework-mcp/src/tools/search/list_dir.d.ts +5 -0
- package/dist/framework-mcp/src/tools/search/list_dir.js +29 -0
- package/dist/framework-mcp/src/tools/search/list_dir.js.map +1 -0
- package/dist/framework-mcp/src/tools/shell/run_command.d.ts +2 -0
- package/dist/framework-mcp/src/tools/shell/run_command.js +47 -0
- package/dist/framework-mcp/src/tools/shell/run_command.js.map +1 -0
- package/dist/framework-mcp/src/tools/types.d.ts +120 -0
- package/dist/framework-mcp/src/tools/types.js +2 -0
- package/dist/framework-mcp/src/tools/types.js.map +1 -0
- package/dist/framework-mcp/src/utils/cli.d.ts +5 -0
- package/dist/framework-mcp/src/utils/cli.js +21 -0
- package/dist/framework-mcp/src/utils/cli.js.map +1 -0
- package/dist/framework-mcp/src/utils/compliance.d.ts +5 -0
- package/dist/framework-mcp/src/utils/compliance.js +79 -0
- package/dist/framework-mcp/src/utils/compliance.js.map +1 -0
- package/dist/framework-mcp/src/utils/fs.d.ts +16 -0
- package/dist/framework-mcp/src/utils/fs.js +45 -0
- package/dist/framework-mcp/src/utils/fs.js.map +1 -0
- package/dist/framework-mcp/src/utils/metrics.d.ts +30 -0
- package/dist/framework-mcp/src/utils/metrics.js +57 -0
- package/dist/framework-mcp/src/utils/metrics.js.map +1 -0
- package/dist/framework-mcp/src/utils/security.d.ts +10 -0
- package/dist/framework-mcp/src/utils/security.js +61 -0
- package/dist/framework-mcp/src/utils/security.js.map +1 -0
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.d.ts +1 -0
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js +192 -0
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js.map +1 -0
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.d.ts +1 -0
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.js +115 -0
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.js.map +1 -0
- package/dist/framework-mcp/tests/tools/quality/check_lint.test.d.ts +1 -0
- package/dist/framework-mcp/tests/tools/quality/check_lint.test.js +36 -0
- package/dist/framework-mcp/tests/tools/quality/check_lint.test.js.map +1 -0
- package/dist/framework-mcp/tests/tools/shell/run_command.test.d.ts +1 -0
- package/dist/framework-mcp/tests/tools/shell/run_command.test.js +43 -0
- package/dist/framework-mcp/tests/tools/shell/run_command.test.js.map +1 -0
- package/dist/src/cli/adapters/core.d.ts +12 -0
- package/dist/src/cli/adapters/core.js +55 -0
- package/dist/src/cli/adapters/core.js.map +1 -0
- package/dist/src/cli/adapters/index.d.ts +5 -0
- package/dist/src/cli/adapters/index.js +6 -0
- package/dist/src/cli/adapters/index.js.map +1 -0
- package/dist/src/cli/adapters/paths.d.ts +15 -0
- package/dist/src/cli/adapters/paths.js +102 -0
- package/dist/src/cli/adapters/paths.js.map +1 -0
- package/dist/src/cli/adapters/scaffold.d.ts +2 -0
- package/dist/src/cli/adapters/scaffold.js +72 -0
- package/dist/src/cli/adapters/scaffold.js.map +1 -0
- package/dist/src/cli/adapters/utils.d.ts +4 -0
- package/dist/src/cli/adapters/utils.js +76 -0
- package/dist/src/cli/adapters/utils.js.map +1 -0
- package/dist/src/cli/commands/approve.d.ts +1 -0
- package/dist/src/cli/commands/approve.js +64 -0
- package/dist/src/cli/commands/approve.js.map +1 -0
- package/dist/src/cli/commands/check.d.ts +1 -0
- package/dist/src/cli/commands/check.js +180 -0
- package/dist/src/cli/commands/check.js.map +1 -0
- package/dist/src/cli/commands/compliance.d.ts +1 -0
- package/dist/src/cli/commands/compliance.js +51 -0
- package/dist/src/cli/commands/compliance.js.map +1 -0
- package/dist/src/cli/commands/contract.d.ts +10 -0
- package/dist/src/cli/commands/contract.js +51 -0
- package/dist/src/cli/commands/contract.js.map +1 -0
- package/dist/src/cli/commands/explorer.d.ts +2 -0
- package/dist/src/cli/commands/explorer.js +43 -0
- package/dist/src/cli/commands/explorer.js.map +1 -0
- package/dist/src/cli/commands/git.d.ts +2 -0
- package/dist/src/cli/commands/git.js +41 -0
- package/dist/src/cli/commands/git.js.map +1 -0
- package/dist/src/cli/commands/init/scaffold-core.d.ts +7 -0
- package/dist/src/cli/commands/init/scaffold-core.js +102 -0
- package/dist/src/cli/commands/init/scaffold-core.js.map +1 -0
- package/dist/src/cli/commands/init/scaffold-ops.d.ts +1 -0
- package/dist/src/cli/commands/init/scaffold-ops.js +81 -0
- package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -0
- package/dist/src/cli/commands/init/scaffold-standards.d.ts +2 -0
- package/dist/src/cli/commands/init/scaffold-standards.js +66 -0
- package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -0
- package/dist/src/cli/commands/init.d.ts +5 -0
- package/dist/src/cli/commands/init.js +128 -0
- package/dist/src/cli/commands/init.js.map +1 -0
- package/dist/src/cli/commands/knowledge.d.ts +2 -0
- package/dist/src/cli/commands/knowledge.js +43 -0
- package/dist/src/cli/commands/knowledge.js.map +1 -0
- package/dist/src/cli/commands/lint.d.ts +4 -0
- package/dist/src/cli/commands/lint.js +23 -0
- package/dist/src/cli/commands/lint.js.map +1 -0
- package/dist/src/cli/commands/log.d.ts +10 -0
- package/dist/src/cli/commands/log.js +33 -0
- package/dist/src/cli/commands/log.js.map +1 -0
- package/dist/src/cli/commands/memory.d.ts +1 -0
- package/dist/src/cli/commands/memory.js +5 -0
- package/dist/src/cli/commands/memory.js.map +1 -0
- package/dist/src/cli/commands/orchestrate.d.ts +67 -0
- package/dist/src/cli/commands/orchestrate.js +414 -0
- package/dist/src/cli/commands/orchestrate.js.map +1 -0
- package/dist/src/cli/commands/plan.d.ts +6 -0
- package/dist/src/cli/commands/plan.js +97 -0
- package/dist/src/cli/commands/plan.js.map +1 -0
- package/dist/src/cli/commands/script.d.ts +1 -0
- package/dist/src/cli/commands/script.js +20 -0
- package/dist/src/cli/commands/script.js.map +1 -0
- package/dist/src/cli/commands/security.d.ts +1 -0
- package/dist/src/cli/commands/security.js +37 -0
- package/dist/src/cli/commands/security.js.map +1 -0
- package/dist/src/cli/commands/status.d.ts +4 -0
- package/dist/src/cli/commands/status.js +41 -0
- package/dist/src/cli/commands/status.js.map +1 -0
- package/dist/src/cli/commands/trace.d.ts +4 -0
- package/dist/src/cli/commands/trace.js +29 -0
- package/dist/src/cli/commands/trace.js.map +1 -0
- package/dist/src/cli/index.d.ts +2 -0
- package/dist/src/cli/index.js +289 -0
- package/dist/src/cli/index.js.map +1 -0
- package/dist/src/cli/shims.d.ts +1 -0
- package/dist/src/cli/shims.js +67 -0
- package/dist/src/cli/shims.js.map +1 -0
- package/dist/src/cli/utils/claude.d.ts +8 -0
- package/dist/src/cli/utils/claude.js +57 -0
- package/dist/src/cli/utils/claude.js.map +1 -0
- package/dist/src/cli/utils/compliance.d.ts +11 -0
- package/dist/src/cli/utils/compliance.js +168 -0
- package/dist/src/cli/utils/compliance.js.map +1 -0
- 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 +10 -0
- package/dist/src/cli/utils/fs.js +138 -0
- package/dist/src/cli/utils/fs.js.map +1 -0
- package/dist/src/cli/utils/memory.d.ts +30 -0
- package/dist/src/cli/utils/memory.js +269 -0
- package/dist/src/cli/utils/memory.js.map +1 -0
- package/dist/src/cli/utils/pkg.d.ts +43 -0
- package/dist/src/cli/utils/pkg.js +283 -0
- package/dist/src/cli/utils/pkg.js.map +1 -0
- package/dist/src/cli/utils/schemas.d.ts +49 -0
- package/dist/src/cli/utils/schemas.js +20 -0
- package/dist/src/cli/utils/schemas.js.map +1 -0
- package/dist/src/cli/utils/string.d.ts +7 -0
- package/dist/src/cli/utils/string.js +50 -0
- package/dist/src/cli/utils/string.js.map +1 -0
- package/dist/src/cli/utils/time.d.ts +2 -0
- package/dist/src/cli/utils/time.js +28 -0
- package/dist/src/cli/utils/time.js.map +1 -0
- package/dist/src/cli/utils/ui.d.ts +30 -0
- package/dist/src/cli/utils/ui.js +59 -0
- package/dist/src/cli/utils/ui.js.map +1 -0
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.js +2 -0
- package/dist/src/contracts/index.js.map +1 -0
- package/dist/src/contracts/tasks.d.ts +44 -0
- package/dist/src/contracts/tasks.js +21 -0
- package/dist/src/contracts/tasks.js.map +1 -0
- package/dist/src/modules/adapters/definitions.d.ts +9 -0
- package/dist/src/modules/adapters/definitions.js +141 -0
- package/dist/src/modules/adapters/definitions.js.map +1 -0
- package/dist/src/modules/adapters/registry.d.ts +12 -0
- package/dist/src/modules/adapters/registry.js +19 -0
- package/dist/src/modules/adapters/registry.js.map +1 -0
- package/dist/src/modules/adapters/shared.d.ts +1 -0
- package/dist/src/modules/adapters/shared.js +105 -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 +15 -0
- package/dist/src/modules/agents/definitions.js +401 -0
- package/dist/src/modules/agents/definitions.js.map +1 -0
- package/dist/src/modules/agents/registry/analyst.d.ts +2 -0
- package/dist/src/modules/agents/registry/analyst.js +40 -0
- package/dist/src/modules/agents/registry/analyst.js.map +1 -0
- package/dist/src/modules/agents/registry/architect.d.ts +2 -0
- package/dist/src/modules/agents/registry/architect.js +43 -0
- package/dist/src/modules/agents/registry/architect.js.map +1 -0
- package/dist/src/modules/agents/registry/backend.d.ts +2 -0
- package/dist/src/modules/agents/registry/backend.js +43 -0
- package/dist/src/modules/agents/registry/backend.js.map +1 -0
- package/dist/src/modules/agents/registry/database.d.ts +2 -0
- package/dist/src/modules/agents/registry/database.js +39 -0
- package/dist/src/modules/agents/registry/database.js.map +1 -0
- package/dist/src/modules/agents/registry/devops.d.ts +2 -0
- package/dist/src/modules/agents/registry/devops.js +40 -0
- package/dist/src/modules/agents/registry/devops.js.map +1 -0
- package/dist/src/modules/agents/registry/explorer.d.ts +2 -0
- package/dist/src/modules/agents/registry/explorer.js +37 -0
- package/dist/src/modules/agents/registry/explorer.js.map +1 -0
- package/dist/src/modules/agents/registry/frontend.d.ts +2 -0
- package/dist/src/modules/agents/registry/frontend.js +44 -0
- package/dist/src/modules/agents/registry/frontend.js.map +1 -0
- package/dist/src/modules/agents/registry/git.d.ts +2 -0
- package/dist/src/modules/agents/registry/git.js +37 -0
- package/dist/src/modules/agents/registry/git.js.map +1 -0
- package/dist/src/modules/agents/registry/manager.d.ts +2 -0
- package/dist/src/modules/agents/registry/manager.js +54 -0
- package/dist/src/modules/agents/registry/manager.js.map +1 -0
- package/dist/src/modules/agents/registry/mobile.d.ts +2 -0
- package/dist/src/modules/agents/registry/mobile.js +40 -0
- package/dist/src/modules/agents/registry/mobile.js.map +1 -0
- package/dist/src/modules/agents/registry/native.d.ts +2 -0
- package/dist/src/modules/agents/registry/native.js +40 -0
- package/dist/src/modules/agents/registry/native.js.map +1 -0
- package/dist/src/modules/agents/registry/quality.d.ts +2 -0
- package/dist/src/modules/agents/registry/quality.js +42 -0
- package/dist/src/modules/agents/registry/quality.js.map +1 -0
- package/dist/src/modules/agents/registry/security.d.ts +2 -0
- package/dist/src/modules/agents/registry/security.js +38 -0
- package/dist/src/modules/agents/registry/security.js.map +1 -0
- package/dist/src/modules/agents/types.d.ts +31 -0
- package/dist/src/modules/agents/types.js +2 -0
- package/dist/src/modules/agents/types.js.map +1 -0
- package/dist/src/modules/skills/definitions.d.ts +48 -0
- package/dist/src/modules/skills/definitions.js +71 -0
- package/dist/src/modules/skills/definitions.js.map +1 -0
- package/dist/src/shared/constants.d.ts +116 -0
- package/dist/src/shared/constants.js +184 -0
- package/dist/src/shared/constants.js.map +1 -0
- package/dist/src/shared/errors.d.ts +46 -0
- package/dist/src/shared/errors.js +69 -0
- package/dist/src/shared/errors.js.map +1 -0
- package/dist/src/shared/fs.d.ts +8 -0
- package/dist/src/shared/fs.js +48 -0
- package/dist/src/shared/fs.js.map +1 -0
- package/dist/src/shared/logger.d.ts +28 -0
- package/dist/src/shared/logger.js +117 -0
- package/dist/src/shared/logger.js.map +1 -0
- package/dist/src/shared/types.d.ts +19 -0
- package/dist/src/shared/types.js +13 -0
- package/dist/src/shared/types.js.map +1 -0
- package/dist/tests/adapter.test.d.ts +1 -0
- package/dist/tests/adapter.test.js +128 -0
- package/dist/tests/adapter.test.js.map +1 -0
- package/dist/tests/adapters/paths.test.d.ts +1 -0
- package/dist/tests/adapters/paths.test.js +63 -0
- package/dist/tests/adapters/paths.test.js.map +1 -0
- package/dist/tests/agents-definitions.test.d.ts +1 -0
- package/dist/tests/agents-definitions.test.js +61 -0
- package/dist/tests/agents-definitions.test.js.map +1 -0
- package/dist/tests/approve.test.d.ts +1 -0
- package/dist/tests/approve.test.js +52 -0
- package/dist/tests/approve.test.js.map +1 -0
- package/dist/tests/cli/init/adapter_init.test.d.ts +1 -0
- package/dist/tests/cli/init/adapter_init.test.js +50 -0
- package/dist/tests/cli/init/adapter_init.test.js.map +1 -0
- package/dist/tests/cli/init/unified_init.test.d.ts +1 -0
- package/dist/tests/cli/init/unified_init.test.js +58 -0
- package/dist/tests/cli/init/unified_init.test.js.map +1 -0
- package/dist/tests/errors.test.d.ts +1 -0
- package/dist/tests/errors.test.js +64 -0
- package/dist/tests/errors.test.js.map +1 -0
- package/dist/tests/fs-utils.test.d.ts +1 -0
- package/dist/tests/fs-utils.test.js +101 -0
- package/dist/tests/fs-utils.test.js.map +1 -0
- package/dist/tests/integration/agent_flow.test.d.ts +1 -0
- package/dist/tests/integration/agent_flow.test.js +55 -0
- package/dist/tests/integration/agent_flow.test.js.map +1 -0
- package/dist/tests/integration/hermes_locking.test.d.ts +1 -0
- package/dist/tests/integration/hermes_locking.test.js +64 -0
- package/dist/tests/integration/hermes_locking.test.js.map +1 -0
- package/dist/tests/logger.test.d.ts +1 -0
- package/dist/tests/logger.test.js +81 -0
- package/dist/tests/logger.test.js.map +1 -0
- package/dist/tests/memory-utils.test.d.ts +1 -0
- package/dist/tests/memory-utils.test.js +59 -0
- package/dist/tests/memory-utils.test.js.map +1 -0
- package/dist/tests/modules/adapters/adapters.test.d.ts +1 -0
- package/dist/tests/modules/adapters/adapters.test.js +30 -0
- package/dist/tests/modules/adapters/adapters.test.js.map +1 -0
- package/dist/tests/orchestrate.test.d.ts +1 -0
- package/dist/tests/orchestrate.test.js +67 -0
- package/dist/tests/orchestrate.test.js.map +1 -0
- package/dist/tests/shared/constants.test.d.ts +1 -0
- package/dist/tests/shared/constants.test.js +17 -0
- package/dist/tests/shared/constants.test.js.map +1 -0
- package/dist/tests/skills-definitions.test.d.ts +1 -0
- package/dist/tests/skills-definitions.test.js +34 -0
- package/dist/tests/skills-definitions.test.js.map +1 -0
- package/dist/tests/status.test.d.ts +1 -0
- package/dist/tests/status.test.js +49 -0
- package/dist/tests/status.test.js.map +1 -0
- package/dist/tests/string.test.d.ts +1 -0
- package/dist/tests/string.test.js +89 -0
- package/dist/tests/string.test.js.map +1 -0
- package/dist/tests/time.test.d.ts +1 -0
- package/dist/tests/time.test.js +48 -0
- package/dist/tests/time.test.js.map +1 -0
- package/dist/tests/trace.test.d.ts +1 -0
- package/dist/tests/trace.test.js +28 -0
- package/dist/tests/trace.test.js.map +1 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.js +20 -0
- package/dist/vitest.config.js.map +1 -0
- package/framework-mcp/dist/constants.js +64 -0
- package/framework-mcp/dist/index.js +119 -0
- package/framework-mcp/dist/tools/control_plane/locking.js +82 -0
- package/framework-mcp/dist/tools/control_plane/registry.js +34 -0
- package/framework-mcp/dist/tools/definitions.js +290 -0
- package/framework-mcp/dist/tools/file_system/batch_surgical_edit.js +59 -0
- package/framework-mcp/dist/tools/file_system/patch_file.js +25 -0
- package/framework-mcp/dist/tools/file_system/read_file.js +51 -0
- package/framework-mcp/dist/tools/file_system/replace_text.js +45 -0
- package/framework-mcp/dist/tools/file_system/write_file.js +38 -0
- package/framework-mcp/dist/tools/framework/audit_deps.js +41 -0
- package/framework-mcp/dist/tools/framework/get_status.js +5 -0
- package/framework-mcp/dist/tools/framework/orchestrate.js +5 -0
- package/framework-mcp/dist/tools/framework/run_tests.js +25 -0
- package/framework-mcp/dist/tools/framework/update_contract_hash.js +5 -0
- package/framework-mcp/dist/tools/framework/update_memory.js +8 -0
- package/framework-mcp/dist/tools/index.js +60 -0
- package/framework-mcp/dist/tools/memory/get_insights.js +34 -0
- package/framework-mcp/dist/tools/memory/read_memory.js +28 -0
- package/framework-mcp/dist/tools/messaging/log_action.js +22 -0
- package/framework-mcp/dist/tools/messaging/send_message.js +94 -0
- package/framework-mcp/dist/tools/observability/check_ports.js +26 -0
- package/framework-mcp/dist/tools/observability/get_health.js +19 -0
- package/framework-mcp/dist/tools/quality/check_lint.js +28 -0
- package/framework-mcp/dist/tools/search/get_gaps.js +48 -0
- package/framework-mcp/dist/tools/search/get_map.js +43 -0
- package/framework-mcp/dist/tools/search/grep_search.js +75 -0
- package/framework-mcp/dist/tools/search/list_dir.js +28 -0
- package/framework-mcp/dist/tools/shell/run_command.js +46 -0
- package/framework-mcp/dist/tools/types.js +1 -0
- package/framework-mcp/dist/utils/cli.js +20 -0
- package/framework-mcp/dist/utils/compliance.js +78 -0
- package/framework-mcp/dist/utils/fs.js +44 -0
- package/framework-mcp/dist/utils/metrics.js +56 -0
- package/framework-mcp/dist/utils/security.js +60 -0
- package/framework-mcp/package-lock.json +1191 -0
- package/framework-mcp/package.json +26 -0
- package/framework-mcp/src/constants.ts +78 -0
- package/framework-mcp/src/declarations.d.ts +17 -0
- package/framework-mcp/src/index.ts +144 -0
- package/framework-mcp/src/tools/control_plane/locking.ts +89 -0
- package/framework-mcp/src/tools/control_plane/registry.ts +38 -0
- package/framework-mcp/src/tools/definitions.ts +292 -0
- package/framework-mcp/src/tools/file_system/batch_surgical_edit.ts +79 -0
- package/framework-mcp/src/tools/file_system/patch_file.ts +33 -0
- package/framework-mcp/src/tools/file_system/read_file.ts +58 -0
- package/framework-mcp/src/tools/file_system/replace_text.ts +54 -0
- package/framework-mcp/src/tools/file_system/write_file.ts +45 -0
- package/framework-mcp/src/tools/framework/audit_deps.ts +49 -0
- package/framework-mcp/src/tools/framework/get_status.ts +7 -0
- package/framework-mcp/src/tools/framework/orchestrate.ts +7 -0
- package/framework-mcp/src/tools/framework/run_tests.ts +28 -0
- package/framework-mcp/src/tools/framework/update_contract_hash.ts +7 -0
- package/framework-mcp/src/tools/framework/update_memory.ts +10 -0
- package/framework-mcp/src/tools/index.ts +64 -0
- package/framework-mcp/src/tools/memory/get_insights.ts +41 -0
- package/framework-mcp/src/tools/memory/read_memory.ts +31 -0
- package/framework-mcp/src/tools/messaging/log_action.ts +28 -0
- package/framework-mcp/src/tools/messaging/send_message.ts +97 -0
- package/framework-mcp/src/tools/observability/check_ports.ts +30 -0
- package/framework-mcp/src/tools/observability/get_health.ts +24 -0
- package/framework-mcp/src/tools/quality/check_lint.ts +33 -0
- package/framework-mcp/src/tools/search/get_gaps.ts +54 -0
- package/framework-mcp/src/tools/search/get_map.ts +48 -0
- package/framework-mcp/src/tools/search/grep_search.ts +75 -0
- package/framework-mcp/src/tools/search/list_dir.ts +34 -0
- package/framework-mcp/src/tools/shell/run_command.ts +56 -0
- package/framework-mcp/src/tools/types.ts +89 -0
- package/framework-mcp/src/utils/cli.ts +20 -0
- package/framework-mcp/src/utils/compliance.ts +95 -0
- package/framework-mcp/src/utils/fs.ts +45 -0
- package/framework-mcp/src/utils/metrics.ts +73 -0
- package/framework-mcp/src/utils/security.ts +66 -0
- package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +212 -0
- package/framework-mcp/tests/tools/messaging/send_message.test.ts +136 -0
- package/framework-mcp/tests/tools/quality/check_lint.test.ts +46 -0
- package/framework-mcp/tests/tools/shell/run_command.test.ts +55 -0
- package/framework-mcp/tsconfig.json +14 -0
- package/mcp.json +13 -0
- package/package.json +89 -0
- package/src/cli/adapters/core.ts +67 -0
- package/src/cli/adapters/index.ts +5 -0
- package/src/cli/adapters/paths.ts +135 -0
- package/src/cli/adapters/scaffold.ts +93 -0
- package/src/cli/adapters/utils.ts +87 -0
- package/src/cli/commands/approve.ts +73 -0
- package/src/cli/commands/check.ts +188 -0
- package/src/cli/commands/compliance.ts +55 -0
- package/src/cli/commands/contract.ts +68 -0
- package/src/cli/commands/explorer.ts +45 -0
- package/src/cli/commands/git.ts +39 -0
- package/src/cli/commands/init/scaffold-core.ts +128 -0
- package/src/cli/commands/init/scaffold-ops.ts +83 -0
- package/src/cli/commands/init/scaffold-standards.ts +67 -0
- package/src/cli/commands/init.ts +163 -0
- package/src/cli/commands/knowledge.ts +44 -0
- package/src/cli/commands/lint.ts +23 -0
- package/src/cli/commands/log.ts +37 -0
- package/src/cli/commands/memory.ts +6 -0
- package/src/cli/commands/orchestrate.ts +456 -0
- package/src/cli/commands/plan.ts +113 -0
- package/src/cli/commands/script.ts +20 -0
- package/src/cli/commands/security.ts +38 -0
- package/src/cli/commands/status.ts +44 -0
- package/src/cli/commands/trace.ts +31 -0
- package/src/cli/index.ts +322 -0
- package/src/cli/shims.ts +66 -0
- package/src/cli/utils/claude.ts +63 -0
- package/src/cli/utils/compliance.ts +191 -0
- package/src/cli/utils/config-schema.ts +48 -0
- package/src/cli/utils/fs.ts +170 -0
- package/src/cli/utils/memory.ts +303 -0
- package/src/cli/utils/pkg.ts +317 -0
- package/src/cli/utils/schemas.ts +22 -0
- package/src/cli/utils/string.ts +55 -0
- package/src/cli/utils/time.ts +27 -0
- package/src/cli/utils/ui.ts +66 -0
- package/src/contracts/index.ts +1 -0
- package/src/contracts/tasks.ts +26 -0
- package/src/modules/adapters/definitions.ts +171 -0
- package/src/modules/adapters/registry.ts +27 -0
- package/src/modules/adapters/shared.ts +120 -0
- package/src/modules/adapters/types.ts +16 -0
- package/src/modules/agents/definitions.ts +454 -0
- package/src/modules/agents/registry/analyst.ts +44 -0
- package/src/modules/agents/registry/architect.ts +47 -0
- package/src/modules/agents/registry/backend.ts +47 -0
- package/src/modules/agents/registry/database.ts +43 -0
- package/src/modules/agents/registry/devops.ts +44 -0
- package/src/modules/agents/registry/explorer.ts +41 -0
- package/src/modules/agents/registry/frontend.ts +48 -0
- package/src/modules/agents/registry/git.ts +41 -0
- package/src/modules/agents/registry/manager.ts +58 -0
- package/src/modules/agents/registry/mobile.ts +44 -0
- package/src/modules/agents/registry/native.ts +44 -0
- package/src/modules/agents/registry/quality.ts +46 -0
- package/src/modules/agents/registry/security.ts +42 -0
- package/src/modules/agents/types.ts +37 -0
- package/src/modules/skills/definitions.ts +71 -0
- package/src/schema/agent-lifecycle-schema.json +59 -0
- package/src/shared/constants.ts +218 -0
- package/src/shared/errors.ts +75 -0
- package/src/shared/fs.ts +50 -0
- package/src/shared/logger.ts +139 -0
- package/src/shared/types.ts +20 -0
- package/templates/prompts/bug-fix-recipe.md +20 -0
- package/templates/prompts/contract-design-recipe.md +21 -0
- package/templates/prompts/db-management-recipe.md +25 -0
- package/templates/prompts/deployment-recipe.md +23 -0
- package/templates/prompts/new-feature-recipe.md +19 -0
- package/templates/prompts/performance-optimization-recipe.md +23 -0
- package/templates/prompts/pull-request-template.md +21 -0
- package/templates/prompts/refactoring-recipe.md +21 -0
- package/templates/prompts/security-audit-recipe.md +20 -0
- package/templates/standards/architecture-standards.md +23 -0
- package/templates/standards/auth-standards.md +125 -0
- package/templates/standards/crud-governance.md +21 -0
- package/templates/standards/deployment-standards.md +21 -0
- package/templates/standards/frontend-standards.md +42 -0
- package/templates/standards/github-actions-standards.md +43 -0
- package/templates/standards/governance-standards.md +147 -0
- package/templates/standards/i18n-standards.md +29 -0
- package/templates/standards/kysely-standards.md +47 -0
- package/templates/standards/llm-governance.md +29 -0
- package/templates/standards/logging-and-secrets.md +34 -0
- package/templates/standards/mobile-standards.md +23 -0
- package/templates/standards/observability-standards.md +29 -0
- package/templates/standards/performance-standards.md +29 -0
- package/templates/standards/pino-standards.md +46 -0
- package/templates/standards/playwright-standards.md +54 -0
- package/templates/standards/quality-standards.md +32 -0
- package/templates/standards/react-query-standards.md +72 -0
- package/templates/standards/react-router-standards.md +62 -0
- package/templates/standards/security-audit-standards.md +33 -0
- package/templates/standards/security-standards.md +21 -0
- package/templates/standards/swagger-standards.md +50 -0
- package/templates/standards/tailwind-standards.md +29 -0
- package/templates/standards/testing-standards.md +31 -0
- package/templates/standards/token-economy.md +27 -0
- package/templates/standards/typeorm-standards.md +49 -0
- package/templates/standards/vitest-standards.md +110 -0
package/ATABEY.md
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# Agent Atabey Enterprise
|
|
2
|
+
# Place in project root. This file is the single source of truth for Base Project AI Extensions.
|
|
3
|
+
|
|
4
|
+
## šļø SUPREME LAW & ZERO DEVIATION POLICY (MANDATORY)
|
|
5
|
+
> Any deviation from these rules is considered a violation of "Atabey Order," and the development process is immediately HALTED.
|
|
6
|
+
- [ ] **Surgical Precision:** No file editing is allowed except via `replace_text` or `patch_file`. Overwriting the entire file is forbidden.
|
|
7
|
+
- [ ] **Zero Type Hole:** Using the `any` type is a disciplinary offense at the level of 'treason'.
|
|
8
|
+
- [ ] **Zero Console:** Usage of `console.log` is forbidden; only `EnterpriseLogger` is used.
|
|
9
|
+
- [ ] **Phase Discipline:** Phases cannot be skipped. No transition to the next step until success criteria are met.
|
|
10
|
+
- [ ] **Contract First:** Code cannot be written if the contract signature (`contract_hash`) is broken.
|
|
11
|
+
|
|
12
|
+
## šļø DISCIPLINE HIERARCHY
|
|
13
|
+
1. **ATABEY.md:** The Supreme Law.
|
|
14
|
+
2. **Standard Operating Procedures (SOPs):** All rules under `.atabey/knowledge/*.md`.
|
|
15
|
+
3. **Manager Directives:** Tasks and approvals issued by @manager.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## š§ INTELLIGENCE & DISCOVERY PROTOCOLS
|
|
20
|
+
|
|
21
|
+
### š Architecture Discovery Protocol (ADP)
|
|
22
|
+
When encountering a project, agents must never assume a specific folder structure. Use the following algorithm:
|
|
23
|
+
1. **Entry Point Hunt:** Identify main entry points (`index.ts`, `main.ts`, `server.ts`) via `search_codebase`.
|
|
24
|
+
2. **Business Logic Mapping:** Search for core domain keywords (e.g. `service`, `repository`, `controller`) to find where logic resides, regardless of directory names.
|
|
25
|
+
3. **Contract Analysis:** Locate type definitions and API schemas to establish the "System Contract".
|
|
26
|
+
4. **Adaptive Scaffolding:** Always propose architectural improvements or scaffolding *before* writing code. Wait for explicit User consent.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## šŖ TOKEN ECONOMY & CONTEXT MANAGEMENT
|
|
31
|
+
|
|
32
|
+
To minimize AI costs and maximize speed, all agents must adhere to the **Token Economy Protocol**:
|
|
33
|
+
|
|
34
|
+
1. **Search Before Reading (MANDATORY):** Never `read_file` an entire directory or large file without searching for specific points of interest first.
|
|
35
|
+
2. **Surgical Operations:** When editing, use the `replace` tool for targeted changes instead of overwriting entire files unless the file is very small (<50 lines).
|
|
36
|
+
3. **Output Conciseness:** MCP tools must return the minimum required data. Avoid verbose logs or redundant status messages in tool outputs.
|
|
37
|
+
4. **Context Compaction:** Before starting a new task, use `get_memory_insights` to retrieve only the relevant historical context.
|
|
38
|
+
5. **No Blind Coding:** Stop and ask if a task requires reading more than 5 large files without a clear search result.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Constitution Status
|
|
43
|
+
This file (`./ATABEY.md`) and the `.atabey/knowledge/` folder represent the "Supreme Law" of the project. All agents must read this file first in every session and strictly comply with its rules 100%. All framework-specific documentation is stored within `.atabey/knowledge/`.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## STEP 0 ā STARTUP (EVERY SESSION, NON-NEGOTIABLE)
|
|
48
|
+
|
|
49
|
+
1. **Restore Session Memory & Load Role (NON-NEGOTIABLE):**
|
|
50
|
+
- **Immediately Read `.atabey/memory/PROJECT_MEMORY.md`** as the very first action.
|
|
51
|
+
- **Check `memory/DECISIONS.md`** for project-specific architecture constraints.
|
|
52
|
+
- **Load Agent Prompt:** Adopt the **Commander** (for Gemini/Claude) or **Implementer** (for Cursor) identity.
|
|
53
|
+
2. **Read Platform Shim First:** Read `GEMINI.md`, `CLAUDE.md`, or `.cursor/rules/global.mdc` based on your platform.
|
|
54
|
+
3. **Respect Authority:** All specialists MUST report to the **Commander** and follow **Architect** reviews.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## šļø HIERARCHY OF AUTHORITY
|
|
59
|
+
1. **ATABEY.md:** The Supreme Law.
|
|
60
|
+
2. **SECURITY.md & ARCHITECTURE.md:** Domain Laws.
|
|
61
|
+
3. **memory/DECISIONS.md:** Fixed architectural choices.
|
|
62
|
+
4. **Platform Shim:** Role-specific instructions.
|
|
63
|
+
5. **memory/PROJECT_MEMORY.md:** Active state.
|
|
64
|
+
3. **Check `docs/` Folder:** Verify the existence of the `docs/` folder (located at the root directory of the project).
|
|
65
|
+
4. **Absorb Context:** Read `docs/README.md` and `docs/getting-started.md`. If they are missing, check if the architecture folder exists.
|
|
66
|
+
5. **Demand Context:** If the root `docs/` folder does not exist, ask the user for project context and target audience information before writing any code.
|
|
67
|
+
6. **Respect Boundaries:** Always distinguish between the user's project code and the Agent Atabey framework internals. Read `.atabey/knowledge/framework_vs_user_project_boundary.md` if unsure. Never mix the two.
|
|
68
|
+
6. **Automatic @manager Mode:** You are ALWAYS operating as `@manager`. You do NOT need to be called with `@manager` ā this role is your default identity. You analyze, delegate, and orchestrate on EVERY turn without exception.
|
|
69
|
+
|
|
70
|
+
**NEVER SKIP THIS STEP.** Do not assume context; read first, then act as @manager.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## CORE PRINCIPLES
|
|
75
|
+
|
|
76
|
+
- **Permanent @manager Identity (Enterprise Standard):** The AI assistant is ALWAYS the `@manager` by default ā on every turn, every message, without exception. The user does NOT need to type `@manager` to trigger this role. Explicitly typing a different agent (e.g. `@backend`, `@frontend`, `@analyst`) does NOT bypass @manager. All requests must still be processed by @manager first.
|
|
77
|
+
- **Manager MANDATORY Orchestration (Enterprise Project Rule):** Every user request ā regardless of how it is phrased or which agent is directly addressed ā MUST first be received, analyzed, and orchestrated by the `@manager` agent. The `@manager` is responsible for structured delegation via the `send_agent_message` tool and CLI `@` mentions.
|
|
78
|
+
- **CLI @-Mentions:** The CLI supports direct delegation via `atabey @agent "task"`. This bypasses manual JSON creation and follows the Hermes protocol.
|
|
79
|
+
- **Enterprise CRUD & Admin Governance (Enterprise Standard):** All high-risk administrative operations (user/permission management, bulk delete/purge, system config changes, audit log access, critical integrations, PII export, production schema changes, etc.) are strictly under @manager control. Specialist agents (@backend, @frontend, etc.) **must refuse** and immediately redirect such requests to @manager. Unauthorized execution is recorded as āRule Violation - Unauthorized Administrative Actionā. Full list and rules are defined in `.atabey/knowledge/crud-governance.md` ā āCorporate CRUD and Administrative Operation Governanceā.
|
|
80
|
+
- **Zero-Request Logging Policy:** Agents MUST log every action and update `PROJECT_MEMORY.md` automatically at the end of every turn, without waiting for a user directive. This is the "Operating Mode" of the framework.
|
|
81
|
+
- **Immediate Memory Sync:** Every state change, decision, or improved capability must be reflected in the memory files immediately.
|
|
82
|
+
- **Zero Temporary Storage & Single Source of Truth:** Storing, caching, or writing project details, logs, tasks, files, or agent planning documents (including implementation plans, scratch scripts, or intermediate tasks) in the operating system's temporary directory (\`/tmp\`, \`/var/tmp\`, \`temp\`, etc.) is strictly forbidden. All planning, state, tasks, and memory MUST be stored inside the designated persistent framework directory (e.g., \`.atabey/\` or \`.agents/\`) or the project workspace. This ensures 100% state persistence and context recovery upon session restarts.
|
|
83
|
+
- **Contract-First Agent Evolution:** Tools and SOPs used by agents must be defined via schemas and contracts first.
|
|
84
|
+
- **Zero Mock Policy:** The use of fake (mock) data or placeholders is strictly forbidden. Every line of code must connect to a real endpoint or a typed contract. (Exception: Controlled mock usage is allowed for external 3rd party services like Stripe, Twilio).
|
|
85
|
+
- **Branded Types Law:** All IDs (UserID, ProjectID, etc.) must be in the "Branded Types" format defined in the app-local types (e.g., `apps/backend/src/types`). Using plain strings or numbers is forbidden.
|
|
86
|
+
- **CLI-First Policy:** Due to the AI CLI Assistant focus, all outputs must be user-friendly (using Chalk, Clack, etc.) and stream-based. All commands must support the `--output json` flag and produce machine-readable output.
|
|
87
|
+
- **Audit Logging Necessity:** Every critical action must be logged traceably under the `.atabey/logs/` folder.
|
|
88
|
+
- **Design Continuity & Response Policy:** All UI changes MUST be responsive (Mobile-First + Fluid) and surgical. Unnecessary overhauls of existing layouts are strictly forbidden.
|
|
89
|
+
- **Shared Component First Policy (Zero Tolerance):** Defining common UI elements (Button, Input, Card, etc.) inside page files is FORBIDDEN. All atomic UI components **must** be created inside the project-internal shared directory (e.g. `apps/web/src/components/ui/`).
|
|
90
|
+
Creating any top-level shared UI package under `packages/`, `libs/`, `ui-components/`, or similar structures is **strictly prohibited** unless @manager has given explicit written approval for a very large multi-app monorepo after formal risk assessment. Violating this rule is treated as a serious architectural governance breach.
|
|
91
|
+
- **File Ownership Rule:** Each file is the responsibility of a single agent.
|
|
92
|
+
- **CLI Command Mapping:** All CLI commands in the project must be defined in the `.atabey/cli-commands.json` file and assigned to the relevant agent.
|
|
93
|
+
- **Exit Code Standard:** Standard exit codes (e.g., 64: User Error, 70: Internal Error) must be used in error situations.
|
|
94
|
+
- **Phase-Based Execution:** The development process must progress through defined Phases. You cannot move to the next phase until the current one is completed.
|
|
95
|
+
- **CLI-Driven Orchestration:** All agent interactions and task delegations must be traceable via `gemini cli`.
|
|
96
|
+
- **Monorepo Discipline:** Commands must always be run from the monorepo root directory using npm workspaces (e.g., `npm run dev --workspace=web`).
|
|
97
|
+
- **Framework vs User Project Boundary (Critical Rule):**
|
|
98
|
+
When working on the user's own application, agents **must never** suggest, create, or modify files inside the framework's own source code (`framework-mcp/src/`, `.atabey/agents/`, `bin/cli.js`, `panda.config.ts` at root, etc.).
|
|
99
|
+
All development must happen exclusively inside the user's project structure (`apps/backend/src/`, `apps/web/src/`, `src/`, etc.).
|
|
100
|
+
The only exception is when the **explicit goal** of the session is to improve or extend the Agent Atabey framework itself.
|
|
101
|
+
Violating this boundary causes confusion, broken setups, and is considered a serious rule violation. @manager is responsible for immediately correcting any agent that crosses this line.
|
|
102
|
+
|
|
103
|
+
- **Documentation Ownership Rule (Enterprise Standard ā Zero Tolerance):**
|
|
104
|
+
Agents are **mandatory** to write all documentation they produce for the user's project (architectural decisions, patterns, implementation details, toaster/approval flow documents, research findings, etc.) **exclusively into the user's own `docs/` folder**.
|
|
105
|
+
These documents must **never** be written into `.atabey/knowledge/`, `.atabey/agents/`, or any framework folder.
|
|
106
|
+
Violation is considered a serious rule breach and is corrected by @manager.
|
|
107
|
+
The detailed and binding rule is defined in `.atabey/knowledge/documentation_ownership.md`.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## STEP 1 ā VALIDATE BEFORE ACTING
|
|
112
|
+
|
|
113
|
+
Before writing any code or design, check `docs/tech-stack.md`:
|
|
114
|
+
|
|
115
|
+
| Unknown | Action |
|
|
116
|
+
|---|---|
|
|
117
|
+
| Target Audience | Ask ā do not proceed |
|
|
118
|
+
| Platform (web / mobile / desktop / backend) | Ask ā do not proceed |
|
|
119
|
+
| **Technology Stack** | **Check `docs/tech-stack.md` ā If missing ā ASK** |
|
|
120
|
+
| Database (MariaDB / SQLite / PostgreSQL) | Ask ā do not proceed |
|
|
121
|
+
| Environment (prototype / production) | Ask ā do not proceed |
|
|
122
|
+
| Auth required? | Ask ā do not proceed |
|
|
123
|
+
| Monorepo or separate repos? | Ask ā do not proceed |
|
|
124
|
+
| Deploy target (Vercel / Bare metal / Managed platform)? | Ask ā do not proceed |
|
|
125
|
+
| i18n (multi-language) required? | Ask ā do not proceed |
|
|
126
|
+
| API versioning strategy? | Ask ā do not proceed |
|
|
127
|
+
| Accessibility level (WCAG AA / AAA)? | Default AA ā ask if different |
|
|
128
|
+
| Scope too broad ("build the whole app") | Break into parts ā confirm each part |
|
|
129
|
+
|
|
130
|
+
Small details (port, filename, folder name) ā assume and state them.
|
|
131
|
+
|
|
132
|
+
Always write assumptions at the top of your response:
|
|
133
|
+
```
|
|
134
|
+
Assumption: [what] ā [why]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## OUTPUT FLOWS (MANDATORY STANDARDS)
|
|
140
|
+
|
|
141
|
+
Every agent must use the **Mandatory Output Flow** defined in their specific `.md` file. However, the following sections are mandatory in all outputs:
|
|
142
|
+
|
|
143
|
+
- **Assumptions:** All assumptions made.
|
|
144
|
+
- **Problem:** What is being built and why (Max 2-3 sentences).
|
|
145
|
+
- **File Tree:** Complete folder and file structure.
|
|
146
|
+
- **Code:** Complete code content (using "..." is forbidden).
|
|
147
|
+
- **Audit Logging:** How the changes are logged.
|
|
148
|
+
- **Tests:** Test file for every service and utility.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## ABSOLUTE DON'TS ā APPLIES TO EVERY RESPONSE
|
|
153
|
+
|
|
154
|
+
- **`any` Type is Forbidden:** The use of `any` is strictly forbidden in TypeScript projects.
|
|
155
|
+
- **`console.log` is Forbidden:** `console.log` cannot be present in production code.
|
|
156
|
+
- **Mock Data is Forbidden:** The use of fake (mock) data or placeholders is strictly forbidden. Every line of code must connect to a real endpoint or a typed contract. (Exception: Controlled mock usage is allowed for external 3rd party services like Stripe, Twilio).
|
|
157
|
+
- **File Ownership Violation:** Making unauthorized changes in files outside your scope is forbidden.
|
|
158
|
+
- **Security Rule Violation:** Violating security protocols is strictly forbidden.
|
|
159
|
+
- **Hardcoded Secrets:** Embedding API keys or env variables inside the code is forbidden.
|
|
160
|
+
- **Raw SQL Strings:** Direct strings cannot be used for SQL queries; strictly use `Kysely`.
|
|
161
|
+
- **Direct DB call in a controller:** Database operations cannot be performed directly inside a Controller.
|
|
162
|
+
- **Missing try/catch on async operations:** Error handling (try/catch) is mandatory for asynchronous operations.
|
|
163
|
+
- **Use of Temporary Directories (e.g. `/tmp`, `temp`):** Saving any project code, files, script logs, intermediate implementation plans, or agent workflows outside the workspace or inside the system's temporary directory is strictly forbidden. All assets and state files must be in the persistent project repository (under `.atabey/` or the workspace root).
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## LANGUAGE POLICY
|
|
168
|
+
|
|
169
|
+
- Code comments: English (Explain why it was done, not what it does).
|
|
170
|
+
- Variable / function / class / file names: English.
|
|
171
|
+
- User-facing UI text: English (Default).
|
|
172
|
+
- Communication: English by default (Global rule).
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## API & CONTRACT MANAGEMENT
|
|
177
|
+
|
|
178
|
+
### 1. contract.version.json Standard
|
|
179
|
+
This file is the single source of truth for API stability. `@architect` is responsible for its integrity.
|
|
180
|
+
|
|
181
|
+
```json
|
|
182
|
+
{
|
|
183
|
+
"version": "MAJOR.MINOR",
|
|
184
|
+
"last_updated": "ISO-8601",
|
|
185
|
+
"contract_hash": "sha256-hash-of-shared-types",
|
|
186
|
+
"breaking_changes": [
|
|
187
|
+
{ "version": "1.0", "description": "Initial stable release" }
|
|
188
|
+
],
|
|
189
|
+
"deprecated_versions": []
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
- **MAJOR:** Incremented on breaking changes (Phase Rollback required).
|
|
193
|
+
- **MINOR:** Incremented on additive changes (New fields/endpoints).
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## STATE MACHINE & EXECUTION PHASES
|
|
198
|
+
|
|
199
|
+
The development process follows a strict State Machine. Transition to the next phase is prohibited until the "Success Criteria" of the current phase is met.
|
|
200
|
+
|
|
201
|
+
- **[STATE: PHASE_0] Discovery & Setup:** Requirement analysis, and validating `.atabey/docs/tech-stack.md`.
|
|
202
|
+
- **[STATE: PHASE_1] Architecture & Contracts:** Setup of data models, API schemas, and backend-defined types (e.g., apps/backend/src/types). Cannot proceed until Frontend and Backend approve these schemas.
|
|
203
|
+
- **[STATE: PHASE_2] Core Development:** Active agents build core features in parallel. (Under the apps/ folder)
|
|
204
|
+
- **[STATE: PHASE_3] Integration & Testing:** System integration.
|
|
205
|
+
- **[STATE: PHASE_4] Optimization & Deployment:** Performance audit and deployment.
|
|
206
|
+
|
|
207
|
+
**Rollback Rule:** If a missing field or error is detected in the API schema (app types) during Phase 2 or later, the system immediately transitions to `[STATE: ROLLBACK_PHASE_1]`. All relevant agents stop their processes, switch to `WAITING` state, and cannot return to Phase 2 until the `@architect` resolves the issues.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
Every agent must produce a response for their assigned task within a maximum of 30 minutes (or the time defined per project). Upon timeout, `@manager` automatically moves the relevant task to `BLOCKED` status and logs the escalation.
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## CLI STANDARDS & CONFIGURATION
|
|
216
|
+
|
|
217
|
+
### 1. CLI Command Map (`.atabey/cli-commands.json`)
|
|
218
|
+
All CLI commands are centrally managed in this file. Each command must have a designated owner agent.
|
|
219
|
+
|
|
220
|
+
### 2. Configuration (`.atabey/config.json`)
|
|
221
|
+
CLI behaviors (logLevel, outputFormat, defaultProfile) are managed through this file.
|
|
222
|
+
|
|
223
|
+
**Priority Rule:** CLI Flags > `.atabey/config.json` > `.env` > Default Values.
|
|
224
|
+
|
|
225
|
+
### 3. Exit Codes
|
|
226
|
+
- `0`: Success
|
|
227
|
+
- `64`: User Error (Invalid argument, missing parameter)
|
|
228
|
+
- `70`: Internal Error (Software error, crash)
|
|
229
|
+
- `71`: Connection/Network Error
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## API VERSIONING STRATEGY
|
|
234
|
+
|
|
235
|
+
All APIs are versioned via the URL path (`/api/v1/...`). The `apps/backend/contract.version.json` file uses the MAJOR.MINOR format, and must be updated with every change. The `@architect` is responsible for its accuracy. The MAJOR version is incremented for every breaking change. Old versions continue to be supported for at least 1 MAJOR release.
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## PARALLEL EXECUTION & COORDINATION RULES
|
|
240
|
+
|
|
241
|
+
1. **Backend Types as Source of Truth:** All agents reference the app-local types (e.g., `apps/backend/src/types`) and the `apps/backend/contract.version.json` file.
|
|
242
|
+
2. **Commit-Level Logging:** Every agent must log every atomic change to the `.atabey/logs/[agent-name].json` file.
|
|
243
|
+
3. **Implicit Dependency Lock:** If an agent's required output is not ready, it switches to `WAITING` state.
|
|
244
|
+
4. **Ownership Enforcement:** Changes to files outside an agent's scope cannot be made without `@manager` approval.
|
|
245
|
+
5. **No Blind Coding:** Agents must periodically read `.atabey/logs/` and `.atabey/STATUS.md`.
|
|
246
|
+
6. **Agent Directives (Message Queue):** `.atabey/messages/` is used for inter-agent communication.
|
|
247
|
+
- **Message Queue Lock Protocol:** Before writing to a file, check for `.atabey/messages/.lock`.
|
|
248
|
+
- If it exists, wait 500ms and retry (max 3 retries).
|
|
249
|
+
- If lock persists after 3 retries, the agent MUST assume a **stale lock**, delete it, and notify `@manager` in their log.
|
|
250
|
+
- Delete `.lock` and the message file immediately after processing.
|
|
251
|
+
7. **Phase Rollback Protocol:** If contracts are insufficient, return to Phase 1. All agents become `WAITING` and write `CONTRACT_CHANGED` to their log.
|
|
252
|
+
8. **Next.js Ownership Rule:** `apps/web/api/` and `server/actions/` -> @backend. `apps/web/(routes)/` and `components/` -> @frontend.
|
|
253
|
+
9. **Zero Mock Test Policy:** Integration tests must use a real database or service-compatible test backend; do not rely on mocks for persistence behavior.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
Developed by **Yusuf BEKAR** | [Enterprise Inquiries](mailto:ybekar@msn.com)
|
|
258
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yusuf BEKAR
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# šļø Agent Atabey ā Enterprise AI Governance & Autonomous Orchestration Framework
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ysf-bkr/atabey)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## š¹š· TĆRKĆE ā Genel BakıÅ
|
|
9
|
+
|
|
10
|
+
**Agent Atabey**, karmaÅık, ƶlƧeklenebilir ve yüksek denetim gerektiren kurumsal yazılım projeleri iƧin tasarlanmıŠbir **"Ćstün Yapay Zeka YƶnetiÅimi ve Otonom Orkestrasyon ĆerƧevesidir"**. Kaotik yapay zeka kodlamasını disiplinli, yƶnetilebilir ve izlenebilir bir **"Otonom Ordu"** operasyonuna dƶnüÅtürür.
|
|
11
|
+
|
|
12
|
+
### šÆ ĆƶzdüÄümüz Problemler
|
|
13
|
+
Standart yapay zeka kod asistanları (Claude, Cursor, Aider vb.) baÄımsız "kod yazıcılar" olarak ƧalıÅır. Sıkı bir yƶnetiÅim olmadan bu durum Åunlara yol aƧar:
|
|
14
|
+
- **Kontrolsüz Yapay Zeka (Rogue AI):** Dosyaların tamamının kontrolsüzce yeniden yazılması.
|
|
15
|
+
- **BaÄlam Kayması (Context Drift):** Oturumlar arasında ciddi hafıza kaybı.
|
|
16
|
+
- **Token İsrafı:** Optimizasyon eksikliÄi nedeniyle yüksek API maliyetleri.
|
|
17
|
+
- **Ćoklu Ajan Kaosu:** Farklı ajanlar arasında ƧakıÅmalar ve yarıŠdurumları.
|
|
18
|
+
- **Kurumsal Kontrol Kaybı:** Denetimsiz CRUD iÅlemleri ve Åema deÄiÅiklikleri.
|
|
19
|
+
|
|
20
|
+
### š Temel Ćzellikler
|
|
21
|
+
- **Sıkı YƶnetiÅim:** Kritik iÅlemler iƧin "Human-in-the-Loop" onayı ve Trace ID tabanlı izleme.
|
|
22
|
+
- **GeliÅmiÅ Hafıza Sistemi:** BaÄlam kaymasını engelleyen 3 katmanlı hafıza mimarisi.
|
|
23
|
+
- **Token Ekonomisi:** %90'a varan tasarruf saÄlayan "Cerrahi Müdahale" (Surgical Edits) mantıÄı.
|
|
24
|
+
- **Hermes Mesaj Aracısı:** Ajan ƧakıÅmalarını engelleyen asenkron, olay tabanlı iletiÅim.
|
|
25
|
+
- **Güvenli Yerel AI:** %100 veri gizliliÄi iƧin **Yerel LLM** (Ollama, vLLM) desteÄi.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## šŗšø ENGLISH ā Overview
|
|
30
|
+
|
|
31
|
+
**Agent Atabey** is an advanced "Supreme AI Governance & Autonomous Orchestration Framework" designed for complex, scalable, and highly auditable enterprise software projects. It transforms chaotic AI coding into a disciplined, governed, and traceable "Autonomous Army" operation.
|
|
32
|
+
|
|
33
|
+
### šÆ The Problem We Solve
|
|
34
|
+
Standard AI coding assistants act as independent "code writers". Without strict governance, this leads to:
|
|
35
|
+
- **Rogue AI:** Uncontrolled rewrites of entire files.
|
|
36
|
+
- **Context Drift:** Severe memory loss between development sessions.
|
|
37
|
+
- **Token Waste:** High API costs due to lack of optimization.
|
|
38
|
+
- **Multi-Agent Chaos:** Conflicts and race conditions between different agents.
|
|
39
|
+
- **Loss of Corporate Control:** Unsupervised CRUD operations and schema changes.
|
|
40
|
+
|
|
41
|
+
### š Core Features
|
|
42
|
+
- **Strict Governance:** "Human-in-the-Loop" for critical operations and Trace ID tracking.
|
|
43
|
+
- **Advanced Memory System:** 3-tier architecture that prevents context drift.
|
|
44
|
+
- **Token Economy:** Up to 90% savings via "Surgical Edits" instead of full rewrites.
|
|
45
|
+
- **Hermes Message Broker:** Asynchronous communication preventing agent conflicts.
|
|
46
|
+
- **Private & Secure AI:** Support for **Local LLMs** (Ollama, vLLM) ensuring 100% data privacy.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## šŖ The 13-Agent Specialized Army / 13 Uzman Ajanlık Ordu
|
|
51
|
+
|
|
52
|
+
| Agent | Tier | Role & Responsibility / Rol ve Sorumluluk |
|
|
53
|
+
| :--- | :--- | :--- |
|
|
54
|
+
| **@manager** | Supreme | **Orchestration & Governance:** Task delegation, memory pruning, compliance. |
|
|
55
|
+
| **@architect**| Core | **System Design:** Core architecture, type contracts, governance locks. |
|
|
56
|
+
| **@analyst** | Core | **Contract Audit:** Verifies requirements map to code; contract-first compliance. |
|
|
57
|
+
| **@security** | Core | **Safety Guardian:** Manages auth, encryption, RLS, and secret protection. |
|
|
58
|
+
| **@backend** | Core | **Domain Logic:** API design, branded types, and layered architecture. |
|
|
59
|
+
| **@database** | Core | **DB Management:** Schema migrations, query optimization, type-safe access. |
|
|
60
|
+
| **@frontend** | Core | **UI Specialist:** Atomic, responsive-first interfaces, Zero-UI dependency. |
|
|
61
|
+
| **@mobile** | Core | **Mobile Engineer:** React Native/Expo specialist, offline-first focus. |
|
|
62
|
+
| **@native** | Core | **Native Division:** OS-level integrations, desktop (Tauri/Electron) layers. |
|
|
63
|
+
| **@quality** | Recon | **QA & Testing:** Enforces 80% coverage and zero-mock testing policies. |
|
|
64
|
+
| **@explorer** | Recon | **Intel Explorer:** Codebase discovery, dependency mapping, recon reports. |
|
|
65
|
+
| **@git** | Recon | **Logistics Master:** Version control hygiene, Trace-ID commit enforcement. |
|
|
66
|
+
| **@devops** | Recon | **Infrastructure:** CI/CD pipelines, containers, immutable deployments. |
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## š§Ŗ Core Agent Skills / Temel Ajan Yetenekleri
|
|
71
|
+
|
|
72
|
+
1. **š File System Mastery:** Token-verimli dosya okuma ve yazma.
|
|
73
|
+
2. **āļø Surgical Modification:** `replace_text` ile milimetrik kod düzenleme.
|
|
74
|
+
3. **šØ Hermes Messaging:** Trace-ID takipli ajanlar arası iletiÅim.
|
|
75
|
+
4. **šļø Governance & Locking:** OS seviyesinde kaynak kilitleme (Race condition koruması).
|
|
76
|
+
5. **𧪠QA & Discipline:** AST tabanlı kod uyumluluk denetimi ve test kapıları.
|
|
77
|
+
6. **šļø Database Excellence:** Tip-güvenli sorgular (Kysely) ve repository desenleri.
|
|
78
|
+
7. **š DevOps Automation:** Güvenli sır (secret) yƶnetimi ve otonom yayın hatları.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## āļø Structural Modes / Yapısal Modlar
|
|
83
|
+
|
|
84
|
+
- **Unified Mode (`--unified`):** Tüm AI yapılandırmalarını tek bir `.atabey/` klasƶründe toplar. Temiz ƧalıÅma alanları iƧin kurumsal standarttır.
|
|
85
|
+
- **Native Mode:** Her AI asistanı iƧin ayrı klasƶrler (ƶrn: `.claude`, `.gemini`) kullanır.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## š° Open Core & Pricing Model / Fiyatlandırma Modeli
|
|
90
|
+
|
|
91
|
+
Agent Atabey **Open Core** modelini takip eder. Ćekirdek ƧerƧeve aƧık kaynaklıdır (MIT). Kurumsal uyumluluk ve sınırsız ƶlƧeklendirme iƧin **Enterprise Edition** sunulmaktadır.
|
|
92
|
+
|
|
93
|
+
| Feature / Ćzellik | Community (Free) | Pro ($49/user/month) | Enterprise (Custom) |
|
|
94
|
+
| :--- | :--- | :--- | :--- |
|
|
95
|
+
| **Agent Army** | 13 Standard Agents | 13 Standard + Custom Agents | Unlimited Custom Agents |
|
|
96
|
+
| **Memory System** | Standard 3-Tier Memory | Extended Context & History | Infinite Archival & Vector DB |
|
|
97
|
+
| **Governance** | Basic Rules | Advanced Team Policies | EU AI Act & Full Audit |
|
|
98
|
+
| **Security & RBAC** | Basic Access | Role-Based Workflows | Advanced RLS & SSO |
|
|
99
|
+
| **Support** | Community / GitHub | Standard Email Support | 24/7 SLA & Success Manager |
|
|
100
|
+
|
|
101
|
+
*Enterprise: [ybekar@msn.com](mailto:ybekar@msn.com)*
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## š ļø Kurulum ve BaÅlatma / Initializing Framework
|
|
106
|
+
|
|
107
|
+
`atabey init` komutu, projenizi otonom ajan ordusu yƶnetimine hazır hale getirir. Kurulum esnasında anayasal kuralları (`ATABEY.md`), platform entegrasyon dosyalarını (shims), mesajlaÅma kanallarını, bellek klasƶrlerini ve MCP (Model Context Protocol) sunucu yapılandırmasını otomatik olarak hazırlar.
|
|
108
|
+
|
|
109
|
+
### āļø Kurulum SeƧenekleri ve Parametreleri (Flags)
|
|
110
|
+
* `--unified`: Tüm konfigürasyonu ve ajan tanımlarını tek bir `.atabey/` (veya `.agents/`) klasƶründe toplar. ĆalıÅma alanını temiz tutmak iƧin kurumsal standarttır.
|
|
111
|
+
* `--yes` veya `-y`: EtkileÅimli soruları atlayarak varsayılan deÄerlerle (Modern Mavi tema) hızlı kurulum yapar.
|
|
112
|
+
* `--dry-run`: Dosya yazmadan sadece kurulum adımlarını simüle eder.
|
|
113
|
+
|
|
114
|
+
### š Desteklenen Adaptƶr Kurulum Komutları
|
|
115
|
+
|
|
116
|
+
Hangi yapay zeka asistanını veya IDE'yi kullanıyorsanız ona uygun adaptƶr komutunu ƧalıÅtırabilirsiniz:
|
|
117
|
+
|
|
118
|
+
#### ā Gemini CLI Adaptƶrü (`gemini`)
|
|
119
|
+
Gemini modelleri iƧin stratejik komuta merkezi yapılandırması sunar.
|
|
120
|
+
```bash
|
|
121
|
+
# Kurumsal Hızlı Kurulum
|
|
122
|
+
npx atabey init gemini --unified --yes
|
|
123
|
+
```
|
|
124
|
+
* **ĆalıÅma Dizini:** `.gemini/`
|
|
125
|
+
* **Entegrasyon (Shim) Dosyası:** `GEMINI.md`
|
|
126
|
+
|
|
127
|
+
#### š Claude Code Adaptƶrü (`claude`)
|
|
128
|
+
Anthropic Claude CLI/Code araçları için optimize edilmiŠcerrahi müdahale yapılandırmasıdır.
|
|
129
|
+
```bash
|
|
130
|
+
npx atabey init claude --unified --yes
|
|
131
|
+
```
|
|
132
|
+
* **ĆalıÅma Dizini:** `.claude/`
|
|
133
|
+
* **Entegrasyon (Shim) Dosyası:** `CLAUDE.md`
|
|
134
|
+
|
|
135
|
+
#### š¤ Grok Adaptƶrü (`grok`)
|
|
136
|
+
xAI Grok arayüzü ve CLI araƧları iƧin otonom keÅif yapılandırmasıdır.
|
|
137
|
+
```bash
|
|
138
|
+
npx atabey init grok --unified --yes
|
|
139
|
+
```
|
|
140
|
+
* **ĆalıÅma Dizini:** `.grok/`
|
|
141
|
+
* **Entegrasyon (Shim) Dosyası:** `GROK.md`
|
|
142
|
+
|
|
143
|
+
#### āļø Cursor IDE Adaptƶrü (`cursor`)
|
|
144
|
+
Cursor IDE'de otomatik uygulanan kurallar (`.cursor/rules/*.mdc`) oluÅturur.
|
|
145
|
+
```bash
|
|
146
|
+
npx atabey init cursor --yes
|
|
147
|
+
```
|
|
148
|
+
* **ĆalıÅma Dizini:** `.cursor/rules/`
|
|
149
|
+
* **Ajan Dosya Uzantısı:** `.mdc`
|
|
150
|
+
|
|
151
|
+
#### š” GitHub Copilot / Codex Adaptƶrü (`codex`)
|
|
152
|
+
VS Code ve Copilot entegrasyonu iƧin yapılandırılmıÅtır.
|
|
153
|
+
```bash
|
|
154
|
+
npx atabey init codex --yes
|
|
155
|
+
```
|
|
156
|
+
* **ĆalıÅma Dizini:** `.agents/`
|
|
157
|
+
* **Entegrasyon (Shim) Dosyası:** `copilot-instructions.md`
|
|
158
|
+
|
|
159
|
+
#### š Yerel LLM / Ollama Adaptƶrü (`local`)
|
|
160
|
+
%100 veri gizliliÄi saÄlamak amacıyla Ollama veya vLLM gibi yerel ƧalıÅan LLM'ler iƧin yapılandırılmıÅtır.
|
|
161
|
+
```bash
|
|
162
|
+
npx atabey init local --yes
|
|
163
|
+
```
|
|
164
|
+
* **ĆalıÅma Dizini:** `.atabey/`
|
|
165
|
+
* **Entegrasyon (Shim) Dosyası:** `LOCAL_AI.md`
|
|
166
|
+
|
|
167
|
+
#### šø Antigravity CLI Adaptƶrü (`antigravity-cli`)
|
|
168
|
+
Atabey'in kendi otonom CLI motoru ve plugin'leri iƧin iƧ disiplin yapılandırmasıdır.
|
|
169
|
+
```bash
|
|
170
|
+
npx atabey init antigravity-cli --yes
|
|
171
|
+
```
|
|
172
|
+
* **ĆalıÅma Dizini:** `.antigravity/`
|
|
173
|
+
* **Entegrasyon (Shim) Dosyası:** `AGENTS.md`
|
|
174
|
+
|
|
175
|
+
### š Kurulum Sonrası OluÅan Klasƶr ve Dosya Yapısı
|
|
176
|
+
|
|
177
|
+
BaÅarılı bir `init` kurulumundan sonra projenizin kƶk dizininde Åu yapı oluÅturulur:
|
|
178
|
+
|
|
179
|
+
* **ATABEY.md:** Proje Anayasası (Disiplin Kuralları).
|
|
180
|
+
* **mcp.json:** Root MCP Sunucu Entegrasyonu.
|
|
181
|
+
* **.atabey/config.json:** Atabey tema, adaptƶr ve profil ayarları.
|
|
182
|
+
* **.atabey/STATUS.md:** Ajan durumlarını gƶsteren canlı tablo.
|
|
183
|
+
* **.atabey/messages/:** Ajanlar arası asenkron kuyruk klasörü (.lock dahil).
|
|
184
|
+
* **.atabey/logs/:** Ajanların iÅlem logları.
|
|
185
|
+
* **.atabey/memory/PROJECT_MEMORY.md:** Aktif geliÅtirme baÄlamı ve bellek dosyası.
|
|
186
|
+
* **.atabey/memory-graph/shared-facts.json:** Proje teknoloji yıÄını ve temel gerƧekleri.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
Developed by **Yusuf BEKAR** | [Enterprise Inquiries](mailto:ybekar@msn.com)
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
import fs from "node:fs";
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = dirname(__filename);
|
|
9
|
+
|
|
10
|
+
const cliPath = join(__dirname, "../dist/src/cli/index.js");
|
|
11
|
+
|
|
12
|
+
if (!fs.existsSync(cliPath)) {
|
|
13
|
+
process.stderr.write("\nā Error: Compiled CLI not found at 'dist/src/cli/index.js'\n");
|
|
14
|
+
process.stderr.write("š” Solution Tip: Run 'npm run build' to compile the project first.\n\n");
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const cmd = "node";
|
|
19
|
+
const child = spawn(cmd, [cliPath, ...process.argv.slice(2)], {
|
|
20
|
+
stdio: "inherit",
|
|
21
|
+
shell: false
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
child.on("exit", (code) => {
|
|
25
|
+
process.exit(code ?? 0);
|
|
26
|
+
});
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from "fs";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import yaml from "js-yaml";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* AL-compatible agent folder names across all adapters (after init).
|
|
9
|
+
*/
|
|
10
|
+
const AGENT_FOLDER_NAMES = ["agents", "skills", "plugins"];
|
|
11
|
+
const FRAMEWORK_CANDIDATES = [
|
|
12
|
+
".atabey",
|
|
13
|
+
".cursor",
|
|
14
|
+
".claude",
|
|
15
|
+
".github",
|
|
16
|
+
".grok",
|
|
17
|
+
".antigravity",
|
|
18
|
+
".agent",
|
|
19
|
+
".gemini/antigravity-cli",
|
|
20
|
+
".gemini",
|
|
21
|
+
".agents",
|
|
22
|
+
"antigravity-cli"
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
function detectFrameworkDir() {
|
|
26
|
+
const projectRoot = process.cwd();
|
|
27
|
+
for (const dir of FRAMEWORK_CANDIDATES) {
|
|
28
|
+
const dirPath = path.resolve(projectRoot, dir);
|
|
29
|
+
if (!fs.existsSync(dirPath)) continue;
|
|
30
|
+
|
|
31
|
+
for (const folderName of AGENT_FOLDER_NAMES) {
|
|
32
|
+
const agentsPath = path.join(dirPath, folderName);
|
|
33
|
+
if (fs.existsSync(agentsPath)) {
|
|
34
|
+
return { frameworkDir: dir, agentsDir: agentsPath };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Helper to parse YAML-like Frontmatter from Markdown.
|
|
43
|
+
*/
|
|
44
|
+
function parseFrontmatter(content) {
|
|
45
|
+
let fm = {};
|
|
46
|
+
const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
|
|
47
|
+
if (match) {
|
|
48
|
+
try {
|
|
49
|
+
fm = yaml.load(match[1]) || {};
|
|
50
|
+
} catch (e) {
|
|
51
|
+
console.error("Error parsing YAML frontmatter:", e);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Also parse from HTML comments in the body as fallback/complement
|
|
56
|
+
const commentMatches = content.matchAll(/<!--\s*(\w+)\s*:\s*(.*?)\s*-->/g);
|
|
57
|
+
for (const m of commentMatches) {
|
|
58
|
+
let value = m[2].trim();
|
|
59
|
+
if (value.startsWith("[") && value.endsWith("]")) {
|
|
60
|
+
value = value.slice(1, -1).split(",").map(s => s.trim().replace(/"/g, "").replace(/'/g, ""));
|
|
61
|
+
} else if (value.startsWith("\"") && value.endsWith("\"")) {
|
|
62
|
+
value = value.slice(1, -1);
|
|
63
|
+
}
|
|
64
|
+
fm[m[1]] = value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return Object.keys(fm).length > 0 ? fm : null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
const detected = detectFrameworkDir();
|
|
72
|
+
if (!detected) {
|
|
73
|
+
process.stderr.write("ā¹ļø No framework agents/ dir found for AL validation. Skipping.");
|
|
74
|
+
process.exit(0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const { agentsDir } = detected;
|
|
78
|
+
|
|
79
|
+
try {
|
|
80
|
+
const files = [];
|
|
81
|
+
const walk = (dir) => {
|
|
82
|
+
if (!fs.existsSync(dir)) return;
|
|
83
|
+
const list = fs.readdirSync(dir);
|
|
84
|
+
for (const item of list) {
|
|
85
|
+
const fullPath = path.join(dir, item);
|
|
86
|
+
if (fs.statSync(fullPath).isDirectory()) {
|
|
87
|
+
walk(fullPath);
|
|
88
|
+
} else if (item.endsWith(".json") || item.endsWith(".md")) {
|
|
89
|
+
files.push({ name: item, path: fullPath });
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
walk(agentsDir);
|
|
94
|
+
|
|
95
|
+
let totalFailed = 0;
|
|
96
|
+
|
|
97
|
+
process.stderr.write(`\nš”ļø STARTING AGENT ARMY AL VALIDATION (${detected.frameworkDir})...\n`);
|
|
98
|
+
process.stderr.write("--------------------------------------------------\n");
|
|
99
|
+
process.stderr.write("| Agent ID | Format | Status | Category |\n");
|
|
100
|
+
process.stderr.write("--------------------------------------------------\n");
|
|
101
|
+
|
|
102
|
+
for (const file of files) {
|
|
103
|
+
const fileName = file.name;
|
|
104
|
+
const filePath = file.path;
|
|
105
|
+
if (fileName === "agent_army_schema.json" || fileName === "schema") continue;
|
|
106
|
+
|
|
107
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
108
|
+
const isMd = fileName.endsWith(".md");
|
|
109
|
+
|
|
110
|
+
let agent;
|
|
111
|
+
try {
|
|
112
|
+
agent = isMd ? parseFrontmatter(content) : JSON.parse(content);
|
|
113
|
+
if (!agent && isMd) throw new Error("Missing Frontmatter");
|
|
114
|
+
} catch (e) {
|
|
115
|
+
process.stderr.write(`| ${fileName.padEnd(9)} | ${isMd ? "MD " : "JSON"} | ā INVALID | ${String(e.message).slice(0, 14)} |\n`);
|
|
116
|
+
totalFailed++;
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Validate AL compliance fields
|
|
121
|
+
const missing = [];
|
|
122
|
+
if (!agent.name) missing.push("name");
|
|
123
|
+
if (agent.capability === undefined) missing.push("capability");
|
|
124
|
+
if (!agent.tags) missing.push("tags");
|
|
125
|
+
|
|
126
|
+
if (missing.length > 0) {
|
|
127
|
+
process.stderr.write(`| ${fileName.padEnd(9)} | ${isMd ? "MD " : "JSON"} | ā FAILED | ${missing.join(",").slice(0, 14)} |\n`);
|
|
128
|
+
totalFailed++;
|
|
129
|
+
} else {
|
|
130
|
+
const cat = Array.isArray(agent.tags) ? agent.tags[0] : "core";
|
|
131
|
+
process.stderr.write(`| ${agent.name.padEnd(9)} | ${isMd ? "MD " : "JSON"} | ā
PASSED | ${cat.padEnd(14)} |\n`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
process.stderr.write("--------------------------------------------------\n");
|
|
136
|
+
if (totalFailed > 0) {
|
|
137
|
+
process.stderr.write(`ā Validation failed! Detected ${totalFailed} invalid agent configurations.\n`);
|
|
138
|
+
process.exit(1);
|
|
139
|
+
} else {
|
|
140
|
+
process.stderr.write("š SUCCESS: All core agents are AL-Compliant!\n");
|
|
141
|
+
}
|
|
142
|
+
} catch (e) {
|
|
143
|
+
process.stderr.write(`ā Critical error during validation: ${e}\n`);
|
|
144
|
+
process.exit(1);
|
|
145
|
+
}
|