atabey 0.0.11 → 0.0.13
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 +52 -249
- package/PRIVACY.md +161 -0
- package/README.md +355 -140
- package/bin/completion.sh +30 -0
- package/bin/{validate-agent-army.js → validate-al-registry.js} +6 -6
- package/dist/framework-mcp/src/index.js +14 -2
- package/dist/framework-mcp/src/index.js.map +1 -1
- package/dist/framework-mcp/src/resources/index.js +5 -5
- package/dist/framework-mcp/src/resources/index.js.map +1 -1
- package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +1 -1
- package/dist/framework-mcp/src/tools/control_plane/locking.js +11 -9
- package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -1
- package/dist/framework-mcp/src/tools/definitions.d.ts +5 -0
- package/dist/framework-mcp/src/tools/definitions.js +116 -241
- package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +4 -4
- package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/read_file.js +1 -1
- package/dist/framework-mcp/src/tools/file_system/replace_text.js +3 -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 +4 -4
- package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/framework/audit_deps.js +1 -1
- package/dist/framework-mcp/src/tools/framework/audit_deps.js.map +1 -1
- package/dist/framework-mcp/src/tools/framework/submit_plan.d.ts +4 -3
- package/dist/framework-mcp/src/tools/framework/submit_plan.js.map +1 -1
- package/dist/framework-mcp/src/tools/gateway/llm_gateway_query.d.ts +19 -0
- package/dist/framework-mcp/src/tools/gateway/llm_gateway_query.js +138 -0
- package/dist/framework-mcp/src/tools/gateway/llm_gateway_query.js.map +1 -0
- package/dist/framework-mcp/src/tools/gateway/llm_gateway_status.d.ts +8 -0
- package/dist/framework-mcp/src/tools/gateway/llm_gateway_status.js +91 -0
- package/dist/framework-mcp/src/tools/gateway/llm_gateway_status.js.map +1 -0
- package/dist/framework-mcp/src/tools/index.d.ts +2 -0
- package/dist/framework-mcp/src/tools/index.js +81 -17
- package/dist/framework-mcp/src/tools/index.js.map +1 -1
- package/dist/framework-mcp/src/tools/memory/delete_knowledge.d.ts +8 -0
- package/dist/framework-mcp/src/tools/memory/delete_knowledge.js +29 -0
- package/dist/framework-mcp/src/tools/memory/delete_knowledge.js.map +1 -0
- package/dist/framework-mcp/src/tools/memory/read_memory.js +1 -1
- package/dist/framework-mcp/src/tools/memory/read_memory.js.map +1 -1
- package/dist/framework-mcp/src/tools/memory/search_knowledge.d.ts +8 -0
- package/dist/framework-mcp/src/tools/memory/search_knowledge.js +49 -0
- package/dist/framework-mcp/src/tools/memory/search_knowledge.js.map +1 -0
- package/dist/framework-mcp/src/tools/memory/store_knowledge.d.ts +10 -0
- package/dist/framework-mcp/src/tools/memory/store_knowledge.js +31 -0
- package/dist/framework-mcp/src/tools/memory/store_knowledge.js.map +1 -0
- package/dist/framework-mcp/src/tools/messaging/ask_human.d.ts +6 -0
- package/dist/framework-mcp/src/tools/messaging/ask_human.js +31 -0
- package/dist/framework-mcp/src/tools/messaging/ask_human.js.map +1 -0
- 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/observability/get_health.js +1 -1
- package/dist/framework-mcp/src/tools/quality/analyze_code_quality.d.ts +11 -0
- package/dist/framework-mcp/src/tools/quality/analyze_code_quality.js +166 -0
- package/dist/framework-mcp/src/tools/quality/analyze_code_quality.js.map +1 -0
- package/dist/framework-mcp/src/tools/quality/check_architecture_compliance.d.ts +11 -0
- package/dist/framework-mcp/src/tools/quality/check_architecture_compliance.js +135 -0
- package/dist/framework-mcp/src/tools/quality/check_architecture_compliance.js.map +1 -0
- package/dist/framework-mcp/src/tools/schemas.d.ts +439 -0
- package/dist/framework-mcp/src/tools/schemas.js +183 -0
- package/dist/framework-mcp/src/tools/schemas.js.map +1 -0
- package/dist/framework-mcp/src/tools/search/get_map.js +2 -2
- package/dist/framework-mcp/src/tools/search/get_map.js.map +1 -1
- package/dist/framework-mcp/src/tools/search/grep_search.js +10 -7
- package/dist/framework-mcp/src/tools/search/grep_search.js.map +1 -1
- package/dist/framework-mcp/src/tools/shell/run_command.js +72 -7
- package/dist/framework-mcp/src/tools/shell/run_command.js.map +1 -1
- package/dist/framework-mcp/src/tools/types.d.ts +10 -9
- package/dist/framework-mcp/src/utils/compliance.d.ts +10 -0
- package/dist/framework-mcp/src/utils/compliance.js +102 -41
- package/dist/framework-mcp/src/utils/compliance.js.map +1 -1
- package/dist/framework-mcp/src/utils/fs.d.ts +10 -7
- package/dist/framework-mcp/src/utils/fs.js +10 -7
- package/dist/framework-mcp/src/utils/fs.js.map +1 -1
- package/dist/framework-mcp/src/utils/types.d.ts +8 -0
- package/dist/framework-mcp/src/utils/types.js +4 -0
- package/dist/framework-mcp/src/utils/types.js.map +1 -1
- package/dist/framework-mcp/src/utils/zod-to-mcp.d.ts +10 -0
- package/dist/framework-mcp/src/utils/zod-to-mcp.js +80 -0
- package/dist/framework-mcp/src/utils/zod-to-mcp.js.map +1 -0
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js +4 -4
- package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js.map +1 -1
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.js +17 -16
- package/dist/framework-mcp/tests/tools/messaging/send_message.test.js.map +1 -1
- package/dist/src/cli/adapters/core.js +2 -1
- package/dist/src/cli/adapters/core.js.map +1 -1
- package/dist/src/cli/adapters/scaffold.js +2 -1
- package/dist/src/cli/adapters/scaffold.js.map +1 -1
- package/dist/src/cli/commands/check.js +17 -17
- package/dist/src/cli/commands/check.js.map +1 -1
- package/dist/src/cli/commands/compliance.d.ts +5 -1
- package/dist/src/cli/commands/compliance.js +34 -42
- package/dist/src/cli/commands/compliance.js.map +1 -1
- package/dist/src/cli/commands/contract.js +6 -5
- package/dist/src/cli/commands/contract.js.map +1 -1
- package/dist/src/cli/commands/coverage.d.ts +1 -0
- package/dist/src/cli/commands/coverage.js +121 -0
- package/dist/src/cli/commands/coverage.js.map +1 -0
- package/dist/src/cli/commands/dashboard.d.ts +1 -1
- package/dist/src/cli/commands/dashboard.js +479 -39
- package/dist/src/cli/commands/dashboard.js.map +1 -1
- package/dist/src/cli/commands/explorer.js +8 -7
- package/dist/src/cli/commands/explorer.js.map +1 -1
- package/dist/src/cli/commands/gateway.d.ts +1 -0
- package/dist/src/cli/commands/gateway.js +172 -0
- package/dist/src/cli/commands/gateway.js.map +1 -0
- package/dist/src/cli/commands/git.js +8 -9
- package/dist/src/cli/commands/git.js.map +1 -1
- package/dist/src/cli/commands/index-codebase.d.ts +4 -0
- package/dist/src/cli/commands/index-codebase.js +52 -0
- package/dist/src/cli/commands/index-codebase.js.map +1 -0
- package/dist/src/cli/commands/init/create-agent.js +3 -3
- package/dist/src/cli/commands/init/create-agent.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-core.d.ts +1 -1
- package/dist/src/cli/commands/init/scaffold-core.js +7 -6
- package/dist/src/cli/commands/init/scaffold-core.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-docs.js +4 -3
- package/dist/src/cli/commands/init/scaffold-docs.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-ops.js +3 -3
- package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -1
- package/dist/src/cli/commands/init/scaffold-standards.js +11 -7
- package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -1
- package/dist/src/cli/commands/init.d.ts +2 -0
- package/dist/src/cli/commands/init.js +127 -45
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/knowledge.js +5 -32
- package/dist/src/cli/commands/knowledge.js.map +1 -1
- package/dist/src/cli/commands/lint.js +5 -4
- package/dist/src/cli/commands/lint.js.map +1 -1
- package/dist/src/cli/commands/mcp.d.ts +11 -0
- package/dist/src/cli/commands/mcp.js +130 -0
- package/dist/src/cli/commands/mcp.js.map +1 -0
- package/dist/src/cli/commands/orchestrate.d.ts +10 -9
- package/dist/src/cli/commands/orchestrate.js +132 -66
- package/dist/src/cli/commands/orchestrate.js.map +1 -1
- package/dist/src/cli/commands/plan.js +16 -14
- package/dist/src/cli/commands/plan.js.map +1 -1
- package/dist/src/cli/commands/quickstart.d.ts +9 -0
- package/dist/src/cli/commands/quickstart.js +72 -0
- package/dist/src/cli/commands/quickstart.js.map +1 -0
- package/dist/src/cli/commands/script.js +6 -5
- package/dist/src/cli/commands/script.js.map +1 -1
- package/dist/src/cli/commands/security.js +5 -8
- package/dist/src/cli/commands/security.js.map +1 -1
- package/dist/src/cli/commands/status.js +23 -19
- package/dist/src/cli/commands/status.js.map +1 -1
- package/dist/src/cli/commands/trace.d.ts +2 -0
- package/dist/src/cli/commands/trace.js +59 -61
- package/dist/src/cli/commands/trace.js.map +1 -1
- package/dist/src/cli/index.js +236 -294
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/platforms/core.d.ts +12 -0
- package/dist/src/cli/platforms/core.js +73 -0
- package/dist/src/cli/platforms/core.js.map +1 -0
- package/dist/src/cli/platforms/index.d.ts +5 -0
- package/dist/src/cli/platforms/index.js +6 -0
- package/dist/src/cli/platforms/index.js.map +1 -0
- package/dist/src/cli/platforms/paths.d.ts +15 -0
- package/dist/src/cli/platforms/paths.js +102 -0
- package/dist/src/cli/platforms/paths.js.map +1 -0
- package/dist/src/cli/platforms/scaffold.d.ts +2 -0
- package/dist/src/cli/platforms/scaffold.js +73 -0
- package/dist/src/cli/platforms/scaffold.js.map +1 -0
- package/dist/src/cli/platforms/utils.d.ts +4 -0
- package/dist/src/cli/platforms/utils.js +76 -0
- package/dist/src/cli/platforms/utils.js.map +1 -0
- package/dist/src/cli/shims.js +5 -5
- package/dist/src/cli/utils/claude.js +2 -1
- package/dist/src/cli/utils/claude.js.map +1 -1
- package/dist/src/cli/utils/compliance.d.ts +10 -9
- package/dist/src/cli/utils/compliance.js +10 -171
- package/dist/src/cli/utils/compliance.js.map +1 -1
- package/dist/src/cli/utils/fs.d.ts +3 -3
- package/dist/src/cli/utils/fs.js +8 -7
- package/dist/src/cli/utils/fs.js.map +1 -1
- package/dist/src/cli/utils/i18n.d.ts +5 -0
- package/dist/src/cli/utils/i18n.js +5 -0
- package/dist/src/cli/utils/i18n.js.map +1 -1
- package/dist/src/cli/utils/memory.js +9 -6
- package/dist/src/cli/utils/memory.js.map +1 -1
- package/dist/src/cli/utils/pkg.js +8 -7
- package/dist/src/cli/utils/pkg.js.map +1 -1
- package/dist/src/cli/utils/schemas.d.ts +4 -4
- package/dist/src/cli/utils/ui.d.ts +23 -0
- package/dist/src/cli/utils/ui.js +42 -0
- package/dist/src/cli/utils/ui.js.map +1 -1
- package/dist/src/contracts/tasks.d.ts +4 -4
- package/dist/src/dashboard/src/hooks/useApi.d.ts +18 -0
- package/dist/src/dashboard/src/hooks/useApi.js +47 -0
- package/dist/src/dashboard/src/hooks/useApi.js.map +1 -0
- package/dist/src/dashboard/src/hooks/useSSE.d.ts +12 -0
- package/dist/src/dashboard/src/hooks/useSSE.js +60 -0
- package/dist/src/dashboard/src/hooks/useSSE.js.map +1 -0
- package/dist/src/modules/adapters/shared.js +3 -3
- package/dist/src/modules/adapters/shared.js.map +1 -1
- package/dist/src/modules/agents/definitions.d.ts +5 -13
- package/dist/src/modules/agents/definitions.js +179 -78
- package/dist/src/modules/agents/definitions.js.map +1 -1
- package/dist/src/modules/agents/registry/analyst.js +2 -1
- package/dist/src/modules/agents/registry/analyst.js.map +1 -1
- package/dist/src/modules/agents/registry/architect.js +1 -0
- package/dist/src/modules/agents/registry/architect.js.map +1 -1
- package/dist/src/modules/agents/registry/backend.js +8 -6
- package/dist/src/modules/agents/registry/backend.js.map +1 -1
- package/dist/src/modules/agents/registry/database.js.map +1 -1
- package/dist/src/modules/agents/registry/devops.js.map +1 -1
- package/dist/src/modules/agents/registry/explorer.js +2 -0
- package/dist/src/modules/agents/registry/explorer.js.map +1 -1
- package/dist/src/modules/agents/registry/frontend.js +8 -6
- package/dist/src/modules/agents/registry/frontend.js.map +1 -1
- package/dist/src/modules/agents/registry/git.js.map +1 -1
- package/dist/src/modules/agents/registry/manager.js +11 -4
- package/dist/src/modules/agents/registry/manager.js.map +1 -1
- package/dist/src/modules/agents/registry/mobile.js +7 -5
- package/dist/src/modules/agents/registry/mobile.js.map +1 -1
- package/dist/src/modules/agents/registry/native.js +7 -5
- package/dist/src/modules/agents/registry/native.js.map +1 -1
- package/dist/src/modules/agents/registry/quality.js +11 -8
- package/dist/src/modules/agents/registry/quality.js.map +1 -1
- package/dist/src/modules/agents/registry/security.js.map +1 -1
- package/dist/src/modules/contracts/api.d.ts +178 -0
- package/dist/src/modules/contracts/api.js +56 -0
- package/dist/src/modules/contracts/api.js.map +1 -0
- package/dist/src/modules/contracts/index.d.ts +5 -0
- package/dist/src/modules/contracts/index.js +6 -0
- package/dist/src/modules/contracts/index.js.map +1 -0
- package/dist/src/modules/engines/agent-executor.d.ts +50 -0
- package/dist/src/modules/engines/agent-executor.js +188 -0
- package/dist/src/modules/engines/agent-executor.js.map +1 -0
- package/dist/src/modules/engines/health-engine.d.ts +7 -1
- package/dist/src/modules/engines/health-engine.js +85 -8
- package/dist/src/modules/engines/health-engine.js.map +1 -1
- package/dist/src/modules/engines/planning-engine.d.ts +1 -1
- package/dist/src/modules/engines/planning-engine.js +5 -4
- package/dist/src/modules/engines/planning-engine.js.map +1 -1
- package/dist/src/modules/engines/quality-gate.d.ts +23 -0
- package/dist/src/modules/engines/quality-gate.js +85 -0
- package/dist/src/modules/engines/quality-gate.js.map +1 -0
- package/dist/src/modules/engines/risk-engine.js +6 -6
- package/dist/src/modules/engines/risk-engine.js.map +1 -1
- package/dist/src/modules/engines/routing-engine.d.ts +59 -1
- package/dist/src/modules/engines/routing-engine.js +353 -25
- package/dist/src/modules/engines/routing-engine.js.map +1 -1
- package/dist/src/modules/engines/types.d.ts +7 -3
- package/dist/src/modules/gateway/circuit-breaker.d.ts +40 -0
- package/dist/src/modules/gateway/circuit-breaker.js +163 -0
- package/dist/src/modules/gateway/circuit-breaker.js.map +1 -0
- package/dist/src/modules/gateway/cost-tracker.d.ts +55 -0
- package/dist/src/modules/gateway/cost-tracker.js +127 -0
- package/dist/src/modules/gateway/cost-tracker.js.map +1 -0
- package/dist/src/modules/gateway/gateway.d.ts +68 -0
- package/dist/src/modules/gateway/gateway.js +235 -0
- package/dist/src/modules/gateway/gateway.js.map +1 -0
- package/dist/src/modules/gateway/index.d.ts +19 -0
- package/dist/src/modules/gateway/index.js +19 -0
- package/dist/src/modules/gateway/index.js.map +1 -0
- package/dist/src/modules/gateway/load-balancer.d.ts +86 -0
- package/dist/src/modules/gateway/load-balancer.js +230 -0
- package/dist/src/modules/gateway/load-balancer.js.map +1 -0
- package/dist/src/modules/gateway/providers/anthropic.d.ts +14 -0
- package/dist/src/modules/gateway/providers/anthropic.js +169 -0
- package/dist/src/modules/gateway/providers/anthropic.js.map +1 -0
- package/dist/src/modules/gateway/providers/base.d.ts +38 -0
- package/dist/src/modules/gateway/providers/base.js +42 -0
- package/dist/src/modules/gateway/providers/base.js.map +1 -0
- package/dist/src/modules/gateway/providers/google.d.ts +18 -0
- package/dist/src/modules/gateway/providers/google.js +176 -0
- package/dist/src/modules/gateway/providers/google.js.map +1 -0
- package/dist/src/modules/gateway/providers/grok.d.ts +14 -0
- package/dist/src/modules/gateway/providers/grok.js +166 -0
- package/dist/src/modules/gateway/providers/grok.js.map +1 -0
- package/dist/src/modules/gateway/providers/index.d.ts +21 -0
- package/dist/src/modules/gateway/providers/index.js +38 -0
- package/dist/src/modules/gateway/providers/index.js.map +1 -0
- package/dist/src/modules/gateway/providers/ollama.d.ts +23 -0
- package/dist/src/modules/gateway/providers/ollama.js +187 -0
- package/dist/src/modules/gateway/providers/ollama.js.map +1 -0
- package/dist/src/modules/gateway/providers/openai.d.ts +14 -0
- package/dist/src/modules/gateway/providers/openai.js +170 -0
- package/dist/src/modules/gateway/providers/openai.js.map +1 -0
- package/dist/src/modules/gateway/rate-limiter.d.ts +41 -0
- package/dist/src/modules/gateway/rate-limiter.js +119 -0
- package/dist/src/modules/gateway/rate-limiter.js.map +1 -0
- package/dist/src/modules/gateway/types.d.ts +114 -0
- package/dist/src/modules/gateway/types.js +8 -0
- package/dist/src/modules/gateway/types.js.map +1 -0
- package/dist/src/modules/memory/core.d.ts +42 -0
- package/dist/src/modules/memory/core.js +100 -0
- package/dist/src/modules/memory/core.js.map +1 -0
- package/dist/src/modules/memory/embedding.d.ts +28 -0
- package/dist/src/modules/memory/embedding.js +131 -0
- package/dist/src/modules/memory/embedding.js.map +1 -0
- package/dist/src/modules/memory/types.d.ts +18 -0
- package/dist/src/modules/memory/types.js +2 -0
- package/dist/src/modules/memory/types.js.map +1 -0
- package/dist/src/modules/memory/vector-store.d.ts +13 -0
- package/dist/src/modules/memory/vector-store.js +75 -0
- package/dist/src/modules/memory/vector-store.js.map +1 -0
- package/dist/src/modules/providers/definitions.d.ts +9 -0
- package/dist/src/modules/providers/definitions.js +141 -0
- package/dist/src/modules/providers/definitions.js.map +1 -0
- package/dist/src/modules/providers/registry.d.ts +12 -0
- package/dist/src/modules/providers/registry.js +19 -0
- package/dist/src/modules/providers/registry.js.map +1 -0
- package/dist/src/modules/providers/shared.d.ts +1 -0
- package/dist/src/modules/providers/shared.js +105 -0
- package/dist/src/modules/providers/shared.js.map +1 -0
- package/dist/src/modules/providers/types.d.ts +14 -0
- package/dist/src/modules/providers/types.js +2 -0
- package/dist/src/modules/providers/types.js.map +1 -0
- package/dist/src/modules/skills/adapter-skills.d.ts +68 -0
- package/dist/src/modules/skills/adapter-skills.js +450 -0
- package/dist/src/modules/skills/adapter-skills.js.map +1 -0
- package/dist/src/shared/audit.d.ts +105 -0
- package/dist/src/shared/audit.js +220 -0
- package/dist/src/shared/audit.js.map +1 -0
- package/dist/src/shared/constants.d.ts +11 -11
- package/dist/src/shared/constants.js +3 -3
- package/dist/src/shared/constants.js.map +1 -1
- package/dist/src/shared/fs.js +4 -2
- package/dist/src/shared/fs.js.map +1 -1
- package/dist/src/shared/lock.d.ts +82 -0
- package/dist/src/shared/lock.js +160 -0
- package/dist/src/shared/lock.js.map +1 -0
- package/dist/src/shared/logger.d.ts +2 -0
- package/dist/src/shared/logger.js +15 -5
- package/dist/src/shared/logger.js.map +1 -1
- package/dist/src/shared/pii.d.ts +37 -0
- package/dist/src/shared/pii.js +122 -0
- package/dist/src/shared/pii.js.map +1 -0
- package/dist/src/shared/retention.d.ts +63 -0
- package/dist/src/shared/retention.js +171 -0
- package/dist/src/shared/retention.js.map +1 -0
- package/dist/src/shared/storage.d.ts +13 -11
- package/dist/src/shared/storage.js +18 -14
- package/dist/src/shared/storage.js.map +1 -1
- package/dist/src/shared/string.d.ts +1 -0
- package/dist/src/shared/string.js +30 -0
- package/dist/src/shared/string.js.map +1 -0
- package/dist/src/shared/types.d.ts +8 -0
- package/dist/src/shared/types.js +4 -0
- package/dist/src/shared/types.js.map +1 -1
- package/dist/tests/adapter.test.js +3 -2
- package/dist/tests/adapter.test.js.map +1 -1
- package/dist/tests/adapters/paths.test.js +4 -4
- package/dist/tests/adapters/paths.test.js.map +1 -1
- package/dist/tests/cli/commands/check.test.d.ts +1 -0
- package/dist/tests/cli/commands/check.test.js +9 -0
- package/dist/tests/cli/commands/check.test.js.map +1 -0
- package/dist/tests/cli/commands/coverage.test.d.ts +1 -0
- package/dist/tests/cli/commands/coverage.test.js +9 -0
- package/dist/tests/cli/commands/coverage.test.js.map +1 -0
- package/dist/tests/cli/commands/dashboard-coverage.test.d.ts +1 -0
- package/dist/tests/cli/commands/dashboard-coverage.test.js +88 -0
- package/dist/tests/cli/commands/dashboard-coverage.test.js.map +1 -0
- package/dist/tests/cli/commands/exports.test.d.ts +1 -0
- package/dist/tests/cli/commands/exports.test.js +61 -0
- package/dist/tests/cli/commands/exports.test.js.map +1 -0
- package/dist/tests/cli/commands/lint.test.d.ts +1 -0
- package/dist/tests/cli/commands/lint.test.js +9 -0
- package/dist/tests/cli/commands/lint.test.js.map +1 -0
- package/dist/tests/cli/init/adapter_init.test.js +4 -5
- package/dist/tests/cli/init/adapter_init.test.js.map +1 -1
- package/dist/tests/cli/init/unified_init.test.js +5 -7
- package/dist/tests/cli/init/unified_init.test.js.map +1 -1
- package/dist/tests/core-memory.test.d.ts +1 -0
- package/dist/tests/core-memory.test.js +78 -0
- package/dist/tests/core-memory.test.js.map +1 -0
- package/dist/tests/dashboard.test.d.ts +1 -0
- package/dist/tests/dashboard.test.js +116 -0
- package/dist/tests/dashboard.test.js.map +1 -0
- package/dist/tests/fs-utils.test.js +5 -5
- package/dist/tests/fs-utils.test.js.map +1 -1
- package/dist/tests/integration/agent_flow.test.js +24 -10
- package/dist/tests/integration/agent_flow.test.js.map +1 -1
- package/dist/tests/modules/adapters/adapters.test.js +2 -2
- package/dist/tests/modules/adapters/adapters.test.js.map +1 -1
- package/dist/tests/modules/contracts/contracts.test.d.ts +1 -0
- package/dist/tests/modules/contracts/contracts.test.js +73 -0
- package/dist/tests/modules/contracts/contracts.test.js.map +1 -0
- package/dist/tests/modules/engines/agent-executor.test.d.ts +1 -0
- package/dist/tests/modules/engines/agent-executor.test.js +61 -0
- package/dist/tests/modules/engines/agent-executor.test.js.map +1 -0
- package/dist/tests/modules/engines/evaluation-engine.test.d.ts +1 -0
- package/dist/tests/modules/engines/evaluation-engine.test.js +45 -0
- package/dist/tests/modules/engines/evaluation-engine.test.js.map +1 -0
- package/dist/tests/modules/engines/health-engine.test.d.ts +1 -0
- package/dist/tests/modules/engines/health-engine.test.js +56 -0
- package/dist/tests/modules/engines/health-engine.test.js.map +1 -0
- package/dist/tests/modules/engines/planning-engine.test.d.ts +1 -0
- package/dist/tests/modules/engines/planning-engine.test.js +75 -0
- package/dist/tests/modules/engines/planning-engine.test.js.map +1 -0
- package/dist/tests/modules/engines/risk-engine.test.d.ts +1 -0
- package/dist/tests/modules/engines/risk-engine.test.js +61 -0
- package/dist/tests/modules/engines/risk-engine.test.js.map +1 -0
- package/dist/tests/modules/engines/routing-engine.test.d.ts +1 -0
- package/dist/tests/modules/engines/routing-engine.test.js +56 -0
- package/dist/tests/modules/engines/routing-engine.test.js.map +1 -0
- package/dist/tests/modules/gateway/circuit-breaker.test.d.ts +1 -0
- package/dist/tests/modules/gateway/circuit-breaker.test.js +124 -0
- package/dist/tests/modules/gateway/circuit-breaker.test.js.map +1 -0
- package/dist/tests/modules/gateway/cost-tracker.test.d.ts +1 -0
- package/dist/tests/modules/gateway/cost-tracker.test.js +74 -0
- package/dist/tests/modules/gateway/cost-tracker.test.js.map +1 -0
- package/dist/tests/modules/gateway/load-balancer.test.d.ts +1 -0
- package/dist/tests/modules/gateway/load-balancer.test.js +70 -0
- package/dist/tests/modules/gateway/load-balancer.test.js.map +1 -0
- package/dist/tests/modules/gateway/rate-limiter.test.d.ts +1 -0
- package/dist/tests/modules/gateway/rate-limiter.test.js +62 -0
- package/dist/tests/modules/gateway/rate-limiter.test.js.map +1 -0
- package/dist/tests/modules/memory/vector-store.test.d.ts +1 -0
- package/dist/tests/modules/memory/vector-store.test.js +109 -0
- package/dist/tests/modules/memory/vector-store.test.js.map +1 -0
- package/dist/tests/orchestrator-dependencies.test.js +40 -22
- package/dist/tests/orchestrator-dependencies.test.js.map +1 -1
- package/dist/tests/planning-engine.test.js +9 -8
- package/dist/tests/planning-engine.test.js.map +1 -1
- package/dist/tests/risk-engine.test.d.ts +1 -0
- package/dist/tests/risk-engine.test.js +44 -0
- package/dist/tests/risk-engine.test.js.map +1 -0
- package/dist/tests/shared/audit.test.d.ts +1 -0
- package/dist/tests/shared/audit.test.js +53 -0
- package/dist/tests/shared/audit.test.js.map +1 -0
- package/dist/tests/status-cost.test.js +15 -24
- package/dist/tests/status-cost.test.js.map +1 -1
- package/dist/tests/status.test.js +16 -17
- package/dist/tests/status.test.js.map +1 -1
- package/dist/tests/storage-operations.test.d.ts +1 -0
- package/dist/tests/storage-operations.test.js +116 -0
- package/dist/tests/storage-operations.test.js.map +1 -0
- package/dist/tests/trace-replay.test.js +34 -40
- package/dist/tests/trace-replay.test.js.map +1 -1
- package/dist/ui/assets/index-B-d2ejS8.js +519 -0
- package/dist/ui/assets/index-CyXywq5G.css +1 -0
- package/dist/ui/index.html +2 -2
- package/dist/vitest.config.js +5 -5
- package/dist/vitest.config.js.map +1 -1
- package/framework-mcp/README.md +339 -25
- package/framework-mcp/dist/dashboard/assets/index-BAPGLiWE.js +267 -0
- package/framework-mcp/dist/dashboard/index.html +15 -0
- package/framework-mcp/dist/framework-mcp/src/constants.js +64 -0
- package/framework-mcp/dist/framework-mcp/src/index.js +156 -0
- package/framework-mcp/dist/framework-mcp/src/resources/index.js +58 -0
- package/framework-mcp/dist/framework-mcp/src/tools/control_plane/locking.js +84 -0
- package/framework-mcp/dist/framework-mcp/src/tools/control_plane/registry.js +35 -0
- package/framework-mcp/dist/framework-mcp/src/tools/definitions.js +197 -0
- package/framework-mcp/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +64 -0
- package/framework-mcp/dist/framework-mcp/src/tools/file_system/patch_file.js +34 -0
- package/framework-mcp/dist/framework-mcp/src/tools/file_system/read_file.js +51 -0
- package/framework-mcp/dist/framework-mcp/src/tools/file_system/replace_text.js +50 -0
- package/framework-mcp/dist/framework-mcp/src/tools/file_system/write_file.js +55 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/audit_deps.js +41 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/get_status.js +5 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/orchestrate.js +5 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/run_tests.js +27 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/submit_plan.js +13 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/update_contract_hash.js +5 -0
- package/framework-mcp/dist/framework-mcp/src/tools/framework/update_memory.js +8 -0
- package/framework-mcp/dist/framework-mcp/src/tools/gateway/llm_gateway_query.js +137 -0
- package/framework-mcp/dist/framework-mcp/src/tools/gateway/llm_gateway_status.js +90 -0
- package/framework-mcp/dist/framework-mcp/src/tools/index.js +126 -0
- package/framework-mcp/dist/framework-mcp/src/tools/memory/delete_knowledge.js +28 -0
- package/framework-mcp/dist/framework-mcp/src/tools/memory/get_insights.js +22 -0
- package/framework-mcp/dist/framework-mcp/src/tools/memory/read_memory.js +28 -0
- package/framework-mcp/dist/framework-mcp/src/tools/memory/search_knowledge.js +48 -0
- package/framework-mcp/dist/framework-mcp/src/tools/memory/store_knowledge.js +30 -0
- package/framework-mcp/dist/framework-mcp/src/tools/messaging/ask_human.js +30 -0
- package/framework-mcp/dist/framework-mcp/src/tools/messaging/log_action.js +22 -0
- package/framework-mcp/dist/framework-mcp/src/tools/messaging/send_message.js +94 -0
- package/framework-mcp/dist/framework-mcp/src/tools/observability/check_ports.js +26 -0
- package/framework-mcp/dist/framework-mcp/src/tools/observability/get_health.js +19 -0
- package/framework-mcp/dist/framework-mcp/src/tools/quality/analyze_code_quality.js +165 -0
- package/framework-mcp/dist/framework-mcp/src/tools/quality/check_architecture_compliance.js +134 -0
- package/framework-mcp/dist/framework-mcp/src/tools/quality/check_lint.js +30 -0
- package/framework-mcp/dist/framework-mcp/src/tools/schemas.js +182 -0
- package/framework-mcp/dist/framework-mcp/src/tools/search/get_gaps.js +48 -0
- package/framework-mcp/dist/framework-mcp/src/tools/search/get_map.js +43 -0
- package/framework-mcp/dist/framework-mcp/src/tools/search/grep_search.js +78 -0
- package/framework-mcp/dist/framework-mcp/src/tools/search/list_dir.js +28 -0
- package/framework-mcp/dist/framework-mcp/src/tools/shell/run_command.js +121 -0
- package/framework-mcp/dist/framework-mcp/src/tools/types.js +1 -0
- package/framework-mcp/dist/framework-mcp/src/utils/cli.js +59 -0
- package/framework-mcp/dist/framework-mcp/src/utils/compliance.js +292 -0
- package/framework-mcp/dist/framework-mcp/src/utils/errors.js +68 -0
- package/framework-mcp/dist/framework-mcp/src/utils/fs.js +47 -0
- package/framework-mcp/dist/framework-mcp/src/utils/memory.js +74 -0
- package/framework-mcp/dist/framework-mcp/src/utils/metrics.js +56 -0
- package/framework-mcp/dist/framework-mcp/src/utils/permissions.js +71 -0
- package/framework-mcp/dist/framework-mcp/src/utils/security.js +60 -0
- package/framework-mcp/dist/framework-mcp/src/utils/storage.js +207 -0
- package/framework-mcp/dist/framework-mcp/src/utils/types.js +16 -0
- package/framework-mcp/dist/framework-mcp/src/utils/zod-to-mcp.js +79 -0
- package/framework-mcp/dist/index.js +14 -2
- package/framework-mcp/dist/src/cli/utils/memory.js +279 -0
- package/framework-mcp/dist/src/cli/utils/time.js +27 -0
- package/framework-mcp/dist/src/cli/utils/ui.js +100 -0
- package/framework-mcp/dist/src/modules/memory/core.js +99 -0
- package/framework-mcp/dist/src/modules/memory/embedding.js +130 -0
- package/framework-mcp/dist/src/modules/memory/types.js +1 -0
- package/framework-mcp/dist/src/modules/memory/vector-store.js +74 -0
- package/framework-mcp/dist/src/shared/constants.js +187 -0
- package/framework-mcp/dist/src/shared/fs.js +53 -0
- package/framework-mcp/dist/src/shared/logger.js +126 -0
- package/framework-mcp/dist/src/shared/pii.js +121 -0
- package/framework-mcp/dist/src/shared/storage.js +211 -0
- package/framework-mcp/dist/src/shared/types.js +16 -0
- package/framework-mcp/dist/tools/definitions.js +79 -247
- package/framework-mcp/dist/tools/index.js +37 -0
- package/framework-mcp/dist/tools/schemas.js +133 -0
- package/framework-mcp/dist/utils/types.js +4 -0
- package/framework-mcp/dist/utils/zod-to-mcp.js +77 -0
- package/framework-mcp/package.json +2 -2
- package/mcp.json +5 -4
- package/package.json +19 -17
- package/templates/full/ATABEY_FULL.md +515 -0
- package/templates/standards/crud-governance.md +1 -1
- package/templates/standards/logging-and-secrets.md +1 -1
- package/templates/standards/performance-standards.md +2 -2
- package/templates/standards/quality-standards.md +1 -1
- package/dist/ui/assets/index-Bkt7APzu.css +0 -1
- package/dist/ui/assets/index-CeX-06mI.js +0 -49
package/ATABEY.md
CHANGED
|
@@ -1,258 +1,61 @@
|
|
|
1
|
-
# Agent Atabey
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
## [GOV] 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:
|
|
1
|
+
# Agent Atabey — Supreme Law (Summary)
|
|
2
|
+
|
|
3
|
+
> This file contains the core rules that AI agents must follow.
|
|
4
|
+
> **Full version:** `templates/full/ATABEY_FULL.md`
|
|
5
|
+
|
|
6
|
+
## [RULE 1] Always Work Inside the Project Directory
|
|
7
|
+
- **NEVER write to `/tmp`, `/var/tmp`, `temp` or similar locations.** All files, logs, and state must remain inside the project directory.
|
|
8
|
+
- All work is done under `apps/`, `src/`, `docs/`, `tests/`.
|
|
9
|
+
- Do not touch framework files (`framework-mcp/src/`, `bin/`, `.atabey/agents/`).
|
|
10
|
+
|
|
11
|
+
## [RULE 2] Hierarchy
|
|
12
|
+
1. **ATABEY.md** — Supreme Law
|
|
13
|
+
2. **`.atabey/knowledge/*.md`** — Standard Operating Procedures
|
|
14
|
+
3. **@manager directives** — Tasks and approvals
|
|
15
|
+
|
|
16
|
+
## [RULE 3] 13 Specialized Agents
|
|
17
|
+
| Agent | Tier | Responsibility |
|
|
18
|
+
|-------|------|----------------|
|
|
19
|
+
| @manager | Supreme | Orchestration, governance, quality gate |
|
|
20
|
+
| @security | Supreme | Security audit |
|
|
21
|
+
| @architect | Core | System design, contracts |
|
|
22
|
+
| @backend | Core | API, business logic, tests |
|
|
23
|
+
| @frontend | Core | UI, atomic components, responsive |
|
|
24
|
+
| @quality | Core | Compliance, lint, test coverage |
|
|
25
|
+
| @database | Core | Database management |
|
|
26
|
+
| @analyst | Core | Strategy analysis |
|
|
27
|
+
| @mobile | Core | React Native |
|
|
28
|
+
| @native | Core | Native integration |
|
|
29
|
+
| @devops | Core | CI/CD, deploy |
|
|
30
|
+
| @explorer | Recon | Codebase discovery |
|
|
31
|
+
| @git | Recon | Version control |
|
|
32
|
+
|
|
33
|
+
## [RULE 4] Prohibitions
|
|
34
|
+
- `any` type is forbidden
|
|
35
|
+
- `console.log` is forbidden — use `EnterpriseLogger`
|
|
36
|
+
- Mock data is forbidden (except 3rd party services)
|
|
37
|
+
- Writing to `/tmp` or similar is forbidden
|
|
38
|
+
- Raw SQL is forbidden — use Kysely/ORM
|
|
39
|
+
- Direct DB calls in controllers are forbidden
|
|
40
|
+
|
|
41
|
+
## [RULE 5] Phase System
|
|
133
42
|
```
|
|
134
|
-
|
|
43
|
+
PHASE_0 → PHASE_1 → PHASE_2 → PHASE_3 → PHASE_4
|
|
135
44
|
```
|
|
45
|
+
Skipping phases is forbidden. If contracts break, ROLLBACK_PHASE_1.
|
|
136
46
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
}
|
|
47
|
+
## [RULE 6] Quality Gate
|
|
48
|
+
```
|
|
49
|
+
Agent completes → @quality review → PASS → Memory update
|
|
50
|
+
→ FAIL → 3x retry → Human
|
|
191
51
|
```
|
|
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
52
|
|
|
239
|
-
##
|
|
53
|
+
## [RULE 7] Risk Engine
|
|
54
|
+
Score ≥ 60 → Human approval required (`atabey approve <traceId>`)
|
|
240
55
|
|
|
241
|
-
|
|
242
|
-
|
|
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.
|
|
56
|
+
## [RULE 8] Contract-First
|
|
57
|
+
Validate contracts before writing code (`atabey verify-contract`).
|
|
254
58
|
|
|
255
59
|
---
|
|
256
60
|
|
|
257
|
-
|
|
258
|
-
|
|
61
|
+
*Detailed rules: `templates/full/ATABEY_FULL.md`*
|
package/PRIVACY.md
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Privacy & Compliance — Agent Atabey
|
|
2
|
+
|
|
3
|
+
## KVKK & GDPR Compliance Declaration
|
|
4
|
+
|
|
5
|
+
Agent Atabey is designed with **Privacy by Design** and **Privacy by Default** principles, compliant with:
|
|
6
|
+
|
|
7
|
+
- **KVKK** (Turkish Personal Data Protection Law No. 6698) — Articles 4, 5, 7, 11, 12
|
|
8
|
+
- **GDPR** (EU General Data Protection Regulation) — Articles 5, 17, 32
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 📋 Data Inventory
|
|
13
|
+
|
|
14
|
+
| Data Type | Collected | Storage | Retention | Purpose |
|
|
15
|
+
|-----------|-----------|---------|-----------|---------|
|
|
16
|
+
| **Chat messages** | ✅ | SQLite (`messages`) | 30 days | Agent communication (Hermes) |
|
|
17
|
+
| **Audit logs** | ✅ | SQLite (`audit_log`) | 30-90 days | Governance & traceability |
|
|
18
|
+
| **Agent execution logs** | ✅ | SQLite (`logs`) | 30 days | Performance monitoring |
|
|
19
|
+
| **Task plans** | ✅ | SQLite (`tasks`) | 30 days | Task orchestration |
|
|
20
|
+
| **Project memory** | ✅ | SQLite + `.md` | Project lifetime | Agent context |
|
|
21
|
+
| **Vector embeddings** | ✅ | SQLite | Project lifetime | Semantic search |
|
|
22
|
+
| **API keys** | ❌ Never stored | Env variables only | N/A | N/A |
|
|
23
|
+
| **User credentials** | ❌ Never stored | N/A | N/A | N/A |
|
|
24
|
+
| **Personal data (PII)** | ❌ Automatically masked | N/A | N/A | N/A |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🛡️ Built-in Compliance Features
|
|
29
|
+
|
|
30
|
+
### 1. PII Masking (KVKK Art. 12 / GDPR Art. 32)
|
|
31
|
+
|
|
32
|
+
All logs and audit records are automatically scanned for Personally Identifiable Information:
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// Automatic masking on every log entry
|
|
36
|
+
logger.info("User email: user@example.com");
|
|
37
|
+
// Output: [INFO] User email: [EMAIL]
|
|
38
|
+
|
|
39
|
+
// Automatic masking on audit records
|
|
40
|
+
audit.log({ details: { phone: "+90 555 123 4567" } });
|
|
41
|
+
// Stored: { phone: "[PHONE]" }
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Masked patterns:**
|
|
45
|
+
| Pattern | Example | Masked |
|
|
46
|
+
|---------|---------|--------|
|
|
47
|
+
| Email | `user@example.com` | `[EMAIL]` |
|
|
48
|
+
| Phone (TR) | `+90 555 123 4567` | `[PHONE]` |
|
|
49
|
+
| TC Kimlik | `12345678901` | `[TCKN]` |
|
|
50
|
+
| Credit Card | `4532 1234 5678 1234` | `[CC]` |
|
|
51
|
+
| IP Address | `192.168.1.1` | `[IP]` |
|
|
52
|
+
| API Keys | `sk-abc...` | `[REDACTED]` |
|
|
53
|
+
| JWT Tokens | `eyJ...` | `[REDACTED]` |
|
|
54
|
+
| Passwords | `"password": "123"` | `"password": "***"` |
|
|
55
|
+
|
|
56
|
+
### 2. Data Retention (KVKK Art. 5 / GDPR Art. 5)
|
|
57
|
+
|
|
58
|
+
| Category | Retention | Justification |
|
|
59
|
+
|----------|-----------|---------------|
|
|
60
|
+
| OPERATIONAL | 30 days | KVKK Art. 5 — Limited purpose |
|
|
61
|
+
| USER_DATA | 90 days | KVKK Art. 5 — Contract fulfillment |
|
|
62
|
+
| API_CALL | 180 days | KVKK Art. 5 — Legal obligation |
|
|
63
|
+
| SECURITY | 365 days | KVKK Art. 5 — Security audit |
|
|
64
|
+
| COMPLIANCE | 730 days | KVKK Art. 5 — Regulatory compliance |
|
|
65
|
+
|
|
66
|
+
Automatic cleanup runs every hour. Configure via environment:
|
|
67
|
+
```bash
|
|
68
|
+
export ATABEY_DATA_RETENTION_DAYS=60 # Override default (30)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 3. Right to Erasure (KVKK Art. 7 / GDPR Art. 17)
|
|
72
|
+
|
|
73
|
+
Users can request deletion of all data associated with a Trace ID:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Delete all data for a specific trace
|
|
77
|
+
npx atabey approve T-042
|
|
78
|
+
|
|
79
|
+
# Complete data erasure (admin only)
|
|
80
|
+
atabey kvkk:erase-all
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Via API:
|
|
84
|
+
```typescript
|
|
85
|
+
import { DataRetention } from "./shared/retention.js";
|
|
86
|
+
|
|
87
|
+
// Delete trace data
|
|
88
|
+
DataRetention.eraseTraceData("T-abc123");
|
|
89
|
+
|
|
90
|
+
// Delete ALL data (requires confirmation code)
|
|
91
|
+
DataRetention.eraseAllData("KVKK-RIGHT-TO-ERASURE");
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 4. Data Portability (KVKK Art. 11 / GDPR Art. 20)
|
|
95
|
+
|
|
96
|
+
All stored data is exportable:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# Export audit logs
|
|
100
|
+
atabey gateway stats
|
|
101
|
+
|
|
102
|
+
# Export all data
|
|
103
|
+
atabey kvkk:export
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 5. Data Processing Records (KVKK Art. 4 / GDPR Art. 30)
|
|
107
|
+
|
|
108
|
+
Every data processing operation is logged in the audit trail:
|
|
109
|
+
- **What** data was processed
|
|
110
|
+
- **Who** processed it (which agent)
|
|
111
|
+
- **When** it was processed (timestamp)
|
|
112
|
+
- **Why** it was processed (trace ID)
|
|
113
|
+
- **Retention** period applied
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 🔒 Security Measures
|
|
118
|
+
|
|
119
|
+
| Measure | KVKK | GDPR | Implementation |
|
|
120
|
+
|---------|------|------|----------------|
|
|
121
|
+
| Pseudonymization | Art. 5 | Art. 32 | PII masking |
|
|
122
|
+
| Encryption at rest | Art. 12 | Art. 32 | SQLite file permissions |
|
|
123
|
+
| Access control | Art. 12 | Art. 32 | File-based locking |
|
|
124
|
+
| Incident response | Art. 12 | Art. 33 | Hermes alert system |
|
|
125
|
+
| Data breach notification | Art. 12 | Art. 34 | Audit log + logger |
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 📝 CLI Commands
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
# Check current retention status
|
|
133
|
+
atabey kvkk:status
|
|
134
|
+
|
|
135
|
+
# Export data inventory
|
|
136
|
+
atabey kvkk:export
|
|
137
|
+
|
|
138
|
+
# Erase all data (with confirmation)
|
|
139
|
+
atabey kvkk:erase-all
|
|
140
|
+
|
|
141
|
+
# Run compliance audit
|
|
142
|
+
atabey check
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 📚 References
|
|
148
|
+
|
|
149
|
+
- **KVKK Law No. 6698:** [kvkk.gov.tr](https://www.kvkk.gov.tr)
|
|
150
|
+
- **GDPR:** [gdpr.eu](https://gdpr.eu)
|
|
151
|
+
- **KVKK Art. 5:** Data processing conditions
|
|
152
|
+
- **KVKK Art. 7:** Right to erasure
|
|
153
|
+
- **KVKK Art. 11:** Data subject rights
|
|
154
|
+
- **KVKK Art. 12:** Data security obligations
|
|
155
|
+
- **GDPR Art. 5:** Principles of processing
|
|
156
|
+
- **GDPR Art. 17:** Right to erasure
|
|
157
|
+
- **GDPR Art. 32:** Security of processing
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
*Last updated: 19.06.2026*
|