agent-enderun 0.7.1 → 0.7.5

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.
Files changed (177) hide show
  1. package/.enderun/BRAIN_DASHBOARD.md +47 -0
  2. package/.enderun/PROJECT_MEMORY.md +139 -0
  3. package/.enderun/STATUS.md +62 -0
  4. package/.enderun/agents/agent_army_schema.json +85 -0
  5. package/.enderun/agents/analyst/agent.json +23 -0
  6. package/.enderun/agents/analyst/prompt.md +225 -0
  7. package/.enderun/agents/backend/agent.json +24 -0
  8. package/.enderun/agents/backend/prompt.md +331 -0
  9. package/.enderun/agents/devops/agent.json +61 -0
  10. package/.enderun/agents/devops/prompt.md +127 -0
  11. package/.enderun/agents/explorer/agent.json +22 -0
  12. package/.enderun/agents/explorer/prompt.md +115 -0
  13. package/.enderun/agents/frontend/agent.json +24 -0
  14. package/.enderun/agents/frontend/prompt.md +313 -0
  15. package/.enderun/agents/git/agent.json +22 -0
  16. package/.enderun/agents/git/prompt.md +99 -0
  17. package/.enderun/agents/manager/agent.json +48 -0
  18. package/.enderun/agents/manager/prompt.md +231 -0
  19. package/.enderun/agents/mobile/agent.json +21 -0
  20. package/.enderun/agents/mobile/prompt.md +91 -0
  21. package/.enderun/agents/native/agent.json +21 -0
  22. package/.enderun/agents/native/prompt.md +96 -0
  23. package/.enderun/agents/orchestrator/agent.json +53 -0
  24. package/.enderun/agents/orchestrator/prompt.md +124 -0
  25. package/.enderun/agents/qa/agent.json +57 -0
  26. package/.enderun/agents/qa/prompt.md +69 -0
  27. package/.enderun/agents/schema/agent-lifecycle-schema.json +65 -0
  28. package/.enderun/agents/security/agent.json +54 -0
  29. package/.enderun/agents/security/prompt.md +154 -0
  30. package/.enderun/gemini.md +19 -0
  31. package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +92 -0
  32. package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +59 -0
  33. package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +125 -0
  34. package/.enderun/knowledge/corporate-governance/branded-types-law.md +77 -0
  35. package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +92 -0
  36. package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +89 -0
  37. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +56 -0
  38. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +144 -0
  39. package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +103 -0
  40. package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +75 -0
  41. package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +211 -0
  42. package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +54 -0
  43. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +167 -0
  44. package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +76 -0
  45. package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +49 -0
  46. package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +112 -0
  47. package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +79 -0
  48. package/.enderun/knowledge/deployment_checklist.md +7 -0
  49. package/{.antigravitycli → .enderun}/knowledge/framework_vs_user_project_boundary.md +3 -3
  50. package/{.antigravitycli → .enderun}/knowledge/frontend_professionalization_guidelines.md +17 -20
  51. package/{.antigravitycli → .enderun}/knowledge/hermes_live_test_guidelines.md +9 -9
  52. package/{.antigravitycli → .enderun}/knowledge/hermes_protocol.md +2 -2
  53. package/.enderun/knowledge/kentim_constitution.md +34 -0
  54. package/{.antigravitycli → .enderun}/knowledge/manager_authority_audit_enforcement.md +11 -11
  55. package/{.antigravitycli → .enderun}/knowledge/project_scaffold_guidelines.md +8 -8
  56. package/{.antigravitycli → .enderun}/knowledge/reference_application_guidelines.md +7 -7
  57. package/.enderun/logs/analyst.json +1 -0
  58. package/.enderun/logs/backend.json +1 -0
  59. package/.enderun/logs/devops.json +1 -0
  60. package/.enderun/logs/explorer.json +1 -0
  61. package/.enderun/logs/frontend.json +1 -0
  62. package/.enderun/logs/git.json +1 -0
  63. package/.enderun/logs/manager.json +20 -0
  64. package/.enderun/logs/mobile.json +1 -0
  65. package/.enderun/logs/native.json +1 -0
  66. package/.enderun/logs/orchestrator.json +1 -0
  67. package/.enderun/logs/qa.json +1 -0
  68. package/.enderun/logs/security.json +1 -0
  69. package/.enderun/memory-graph/agent-contexts/analyst.json +1 -0
  70. package/.enderun/memory-graph/agent-contexts/backend.json +1 -0
  71. package/.enderun/memory-graph/agent-contexts/devops.json +1 -0
  72. package/.enderun/memory-graph/agent-contexts/explorer.json +1 -0
  73. package/.enderun/memory-graph/agent-contexts/frontend.json +1 -0
  74. package/.enderun/memory-graph/agent-contexts/git.json +1 -0
  75. package/.enderun/memory-graph/agent-contexts/manager.json +1 -0
  76. package/.enderun/memory-graph/agent-contexts/mobile.json +1 -0
  77. package/.enderun/memory-graph/agent-contexts/native.json +1 -0
  78. package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -0
  79. package/.enderun/memory-graph/agent-contexts/qa.json +1 -0
  80. package/.enderun/memory-graph/agent-contexts/security.json +1 -0
  81. package/.enderun/memory-graph/graph.json +26 -0
  82. package/.enderun/memory-graph/shared-facts.json +52 -0
  83. package/.enderun/monitoring/.gitkeep +0 -0
  84. package/.enderun/queue/README.md +36 -0
  85. package/ENDERUN.md +4 -4
  86. package/README.md +151 -89
  87. package/bin/cli.js +13 -2138
  88. package/bin/hermes-sandbox.js +0 -0
  89. package/bin/validate-agent-army.js +3 -3
  90. package/docs/architecture/approval-flows.md +2 -37
  91. package/docs/backend/error-handling.md +2 -51
  92. package/docs/frontend/component-patterns.md +2 -47
  93. package/docs/getting-started.md +7 -15
  94. package/docs/roadmap.md +2 -2
  95. package/framework-mcp/dist/index.js +0 -0
  96. package/framework-mcp/dist/schemas.js +3 -3
  97. package/framework-mcp/dist/tools/framework.js +17 -10
  98. package/framework-mcp/dist/tools/governance.js +696 -0
  99. package/framework-mcp/dist/tools/index.js +14 -12
  100. package/framework-mcp/dist/tools/memory.js +106 -0
  101. package/framework-mcp/dist/tools/monitoring.js +294 -0
  102. package/framework-mcp/dist/tools/orchestration.js +368 -0
  103. package/framework-mcp/dist/tools/pipeline.js +267 -0
  104. package/framework-mcp/dist/utils.js +25 -3
  105. package/framework-mcp/package.json +3 -3
  106. package/framework-mcp/src/schemas.ts +3 -3
  107. package/framework-mcp/src/tools/framework.ts +18 -10
  108. package/framework-mcp/src/tools/governance.ts +891 -0
  109. package/framework-mcp/src/tools/index.ts +14 -12
  110. package/framework-mcp/src/tools/memory.ts +103 -0
  111. package/framework-mcp/src/tools/monitoring.ts +351 -0
  112. package/framework-mcp/src/tools/orchestration.ts +439 -0
  113. package/framework-mcp/src/tools/pipeline.ts +353 -0
  114. package/framework-mcp/src/utils.ts +24 -3
  115. package/framework-mcp/tsconfig.json +2 -1
  116. package/gemini.md +19 -0
  117. package/package.json +14 -20
  118. package/.antigravitycli/BRAIN_DASHBOARD.md +0 -43
  119. package/.antigravitycli/ENDERUN.md +0 -253
  120. package/.antigravitycli/PROJECT_MEMORY.md +0 -78
  121. package/.antigravitycli/STATUS.md +0 -21
  122. package/.antigravitycli/agents/agent_army_schema.json +0 -79
  123. package/.antigravitycli/agents/analyst/agent.json +0 -55
  124. package/.antigravitycli/agents/backend/agent.json +0 -58
  125. package/.antigravitycli/agents/explorer/agent.json +0 -50
  126. package/.antigravitycli/agents/frontend/agent.json +0 -56
  127. package/.antigravitycli/agents/git/agent.json +0 -53
  128. package/.antigravitycli/agents/manager/agent.json +0 -82
  129. package/.antigravitycli/agents/mobile/agent.json +0 -52
  130. package/.antigravitycli/agents/native/agent.json +0 -56
  131. package/.antigravitycli/assets/manager.png +0 -0
  132. package/.antigravitycli/blueprints/README.md +0 -82
  133. package/.antigravitycli/blueprints/backend/errors/config/meta.json +0 -16
  134. package/.antigravitycli/blueprints/backend/errors/domain-error.ts +0 -64
  135. package/.antigravitycli/knowledge/README.md +0 -22
  136. package/.antigravitycli/knowledge/database_governance_guidelines.md +0 -118
  137. package/.antigravitycli/knowledge/deployment_checklist.md +0 -133
  138. package/.antigravitycli/knowledge/documentation_ownership.md +0 -122
  139. package/.antigravitycli/knowledge/documentation_ownership_status.md +0 -122
  140. package/.antigravitycli/knowledge/enterprise_capabilities_reference.md +0 -149
  141. package/.antigravitycli/knowledge/enterprise_frontend_adaptation.md +0 -232
  142. package/.antigravitycli/knowledge/enterprise_project_adaptation.md +0 -168
  143. package/.antigravitycli/knowledge/frontend_real_battle_test_protocol.md +0 -162
  144. package/antigravity.md +0 -15
  145. package/docs/architecture/decisions/README.md +0 -31
  146. package/docs/architecture/notification-strategy.md +0 -38
  147. package/docs/backend/audit-logging.md +0 -34
  148. package/docs/frontend/forms.md +0 -40
  149. package/docs/frontend/notifications.md +0 -37
  150. package/framework-mcp/dist/tools/academy.js +0 -182
  151. package/framework-mcp/dist/tools/database.js +0 -57
  152. package/framework-mcp/dist/tools/repository.js +0 -101
  153. package/framework-mcp/dist/tools/scaffold.js +0 -132
  154. package/framework-mcp/src/tools/academy.ts +0 -180
  155. package/framework-mcp/src/tools/database.ts +0 -54
  156. package/framework-mcp/src/tools/repository.ts +0 -101
  157. package/framework-mcp/src/tools/scaffold.ts +0 -150
  158. /package/{.antigravitycli/messages → .enderun/benchmarks}/.gitkeep +0 -0
  159. /package/{.antigravitycli → .enderun}/cli-commands.json +0 -0
  160. /package/{.antigravitycli → .enderun}/config.json +0 -0
  161. /package/{.antigravitycli → .enderun}/knowledge/api_design_rules.md +0 -0
  162. /package/{.antigravitycli → .enderun}/knowledge/async_error_handling.md +0 -0
  163. /package/{.antigravitycli → .enderun}/knowledge/blueprint_driven_construction.md +0 -0
  164. /package/{.antigravitycli → .enderun}/knowledge/branded_types_pattern.md +0 -0
  165. /package/{.antigravitycli → .enderun}/knowledge/code_review_checklist.md +0 -0
  166. /package/{.antigravitycli → .enderun}/knowledge/contract_versioning.md +0 -0
  167. /package/{.antigravitycli → .enderun}/knowledge/database_migration.md +0 -0
  168. /package/{.antigravitycli → .enderun}/knowledge/git_commit_strategy.md +0 -0
  169. /package/{.antigravitycli → .enderun}/knowledge/legacy_onboarding.md +0 -0
  170. /package/{.antigravitycli → .enderun}/knowledge/monitoring_setup.md +0 -0
  171. /package/{.antigravitycli → .enderun}/knowledge/performance_guidelines.md +0 -0
  172. /package/{.antigravitycli → .enderun}/knowledge/repository_patterns.md +0 -0
  173. /package/{.antigravitycli → .enderun}/knowledge/responsive_design_standards.md +0 -0
  174. /package/{.antigravitycli → .enderun}/knowledge/security_scanning.md +0 -0
  175. /package/{.antigravitycli → .enderun}/knowledge/testing_standards.md +0 -0
  176. /package/{.antigravitycli → .enderun}/knowledge/troubleshooting_guide.md +0 -0
  177. /package/{.antigravitycli → .enderun}/knowledge/zero_ui_library_policy.md +0 -0
@@ -0,0 +1 @@
1
+ { "agent": "@mobile", "version": "1.0.0", "lastUpdated": "2026-05-25T17:00:00Z", "sessionHistory": [], "knownContracts": [], "recentDecisions": [], "watchedFiles": [], "pendingTasks": [], "notes": "Context initialized." }
@@ -0,0 +1 @@
1
+ { "agent": "@native", "version": "1.0.0", "lastUpdated": "2026-05-25T17:00:00Z", "sessionHistory": [], "knownContracts": [], "recentDecisions": [], "watchedFiles": [], "pendingTasks": [], "notes": "Context initialized." }
@@ -0,0 +1 @@
1
+ { "agent": "@orchestrator", "version": "1.0.0", "lastUpdated": "2026-05-25T17:00:00Z", "sessionHistory": [], "knownContracts": [], "recentDecisions": [], "watchedFiles": [], "pendingTasks": [], "notes": "Context initialized." }
@@ -0,0 +1 @@
1
+ { "agent": "@qa", "version": "1.0.0", "lastUpdated": "2026-05-25T17:00:00Z", "sessionHistory": [], "knownContracts": [], "recentDecisions": [], "watchedFiles": [], "pendingTasks": [], "notes": "Context initialized." }
@@ -0,0 +1 @@
1
+ { "agent": "@security", "version": "1.0.0", "lastUpdated": "2026-05-25T17:00:00Z", "sessionHistory": [], "knownContracts": [], "recentDecisions": [], "watchedFiles": [], "pendingTasks": [], "notes": "Context initialized." }
@@ -0,0 +1,26 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "description": "Agent Enderun Army Memory Graph. Tracks all agent interactions, delegations, and communication edges across the entire army.",
4
+ "generatedAt": "2026-05-25T17:00:00Z",
5
+ "updatedAt": "2026-05-25T17:00:00Z",
6
+ "nodes": [
7
+ { "id": "@manager", "state": "IDLE", "lastAction": "Framework initialized", "activeTrace": null, "healthScore": 9.5, "totalActionsThisSession": 0 },
8
+ { "id": "@orchestrator", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.8, "totalActionsThisSession": 0 },
9
+ { "id": "@backend", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.2, "totalActionsThisSession": 0 },
10
+ { "id": "@frontend", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.0, "totalActionsThisSession": 0 },
11
+ { "id": "@security", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.3, "totalActionsThisSession": 0 },
12
+ { "id": "@qa", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.1, "totalActionsThisSession": 0 },
13
+ { "id": "@devops", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.0, "totalActionsThisSession": 0 },
14
+ { "id": "@analyst", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.6, "totalActionsThisSession": 0 },
15
+ { "id": "@explorer", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.4, "totalActionsThisSession": 0 },
16
+ { "id": "@git", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 9.1, "totalActionsThisSession": 0 },
17
+ { "id": "@mobile", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 8.8, "totalActionsThisSession": 0 },
18
+ { "id": "@native", "state": "IDLE", "lastAction": null, "activeTrace": null, "healthScore": 8.9, "totalActionsThisSession": 0 }
19
+ ],
20
+ "edges": [],
21
+ "schema": {
22
+ "nodeFields": ["id", "state", "lastAction", "activeTrace", "healthScore", "totalActionsThisSession"],
23
+ "edgeFields": ["id", "from", "to", "type", "traceId", "timestamp", "metadata"],
24
+ "edgeTypes": ["DELEGATED", "ESCALATED", "BLOCKED_BY", "UNBLOCKED_BY", "BROADCAST", "COLLABORATED", "REVIEWED"]
25
+ }
26
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "description": "Shared facts available to ALL agents in the Enderun Army. This is the single source of truth for project-wide knowledge that every agent must know.",
4
+ "updatedAt": "2026-05-25T17:00:00Z",
5
+ "updatedBy": "@manager",
6
+ "techStack": {
7
+ "backend": "Node.js 20+ + Fastify (RCSR Architecture)",
8
+ "frontend": "React 19 + Vite + Panda CSS",
9
+ "mobile": "React Native CLI",
10
+ "database": "PostgreSQL (Multi-Tenant RLS + PostGIS)",
11
+ "orm": "Kysely",
12
+ "testing": "Vitest",
13
+ "typeSystem": "TypeScript 5 (strict mode, no any, branded types)",
14
+ "monorepo": "npm workspaces",
15
+ "cicd": "GitHub Actions (to be configured by @devops)"
16
+ },
17
+ "criticalDecisions": [
18
+ { "date": "2026-05-21", "decision": "No Docker Support", "rationale": "Direct system execution for performance", "decidedBy": "@manager" },
19
+ { "date": "2026-05-21", "decision": "Zero Mock Policy", "rationale": "All analytical and management UIs connected to real APIs", "decidedBy": "@manager" },
20
+ { "date": "2026-05-23", "decision": "PostgreSQL Unlogged Table Cache instead of Redis", "rationale": "Minimize external infrastructure dependencies", "decidedBy": "@manager" }
21
+ ],
22
+ "activePolicies": [
23
+ "Zero Mock Policy — no fake data anywhere in the codebase",
24
+ "Branded Types Law — all IDs must use branded types",
25
+ "Shared Component First — no UI elements defined in page files",
26
+ "Contract-First — @backend defines types before @frontend starts",
27
+ "No any Type — TypeScript strict mode enforced across all packages",
28
+ "No console.log in production code",
29
+ "Audit Log Mandatory — every agent action must be logged"
30
+ ],
31
+ "activeContracts": {
32
+ "contractVersionFile": "apps/backend/contract.version.json",
33
+ "currentVersion": "latest — check file",
34
+ "sharedTypesLocation": "apps/backend/src/types/"
35
+ },
36
+ "agentCapabilityRoster": [
37
+ { "agent": "@manager", "capability": 9.5, "primaryDomain": "governance" },
38
+ { "agent": "@orchestrator", "capability": 9.8, "primaryDomain": "orchestration" },
39
+ { "agent": "@analyst", "capability": 9.6, "primaryDomain": "analysis" },
40
+ { "agent": "@explorer", "capability": 9.4, "primaryDomain": "exploration" },
41
+ { "agent": "@security", "capability": 9.3, "primaryDomain": "security" },
42
+ { "agent": "@backend", "capability": 9.2, "primaryDomain": "backend" },
43
+ { "agent": "@git", "capability": 9.1, "primaryDomain": "git" },
44
+ { "agent": "@qa", "capability": 9.1, "primaryDomain": "qa" },
45
+ { "agent": "@frontend", "capability": 9.0, "primaryDomain": "frontend" },
46
+ { "agent": "@devops", "capability": 9.0, "primaryDomain": "devops" },
47
+ { "agent": "@native", "capability": 8.9, "primaryDomain": "native" },
48
+ { "agent": "@mobile", "capability": 8.8, "primaryDomain": "mobile" }
49
+ ],
50
+ "frameworkVersion": "1.0.0-alpha",
51
+ "constitutionFile": "ENDERUN.md"
52
+ }
File without changes
@@ -0,0 +1,36 @@
1
+ # .enderun/queue — Agent Görev Kuyruğu
2
+
3
+ Bu dizin, Agent Enderun Army'nin file-based asenkron görev kuyruğunu içerir.
4
+
5
+ ## Alt Dizinler
6
+
7
+ | Dizin | İçerik |
8
+ |---|---|
9
+ | `pending/` | Atanmış ama henüz başlatılmamış görevler (`{traceId}.json`) |
10
+ | `processing/` | Aktif olarak yürütülen görevler |
11
+ | `completed/` | Başarıyla tamamlanan görevler (arşiv) |
12
+ | `failed/` | Başarısız görevler (retry logic ile yönetilir) |
13
+ | `pipelines/` | `create_execution_pipeline` MCP tool tarafından oluşturulan pipeline JSON dosyaları |
14
+
15
+ ## Görev Dosyası Formatı
16
+
17
+ ```json
18
+ {
19
+ "id": "T001",
20
+ "traceId": "ENR-ARMY-001",
21
+ "assignedAgent": "@backend",
22
+ "priority": "HIGH",
23
+ "briefing": "...",
24
+ "createdAt": "ISO-8601",
25
+ "deadline": "ISO-8601",
26
+ "retryCount": 0,
27
+ "maxRetries": 3,
28
+ "status": "PENDING | RUNNING | COMPLETED | FAILED"
29
+ }
30
+ ```
31
+
32
+ ## Kilitleme Protokolü
33
+
34
+ Bir dosyaya yazmadan önce `.lock` dosyasını kontrol et.
35
+ Varsa 500ms bekle, max 3 retry.
36
+ 3 retry sonrası stale lock sayılır ve @manager'a bildirilir.
package/ENDERUN.md CHANGED
@@ -1,4 +1,4 @@
1
- # Agent Enderun (v0.6.6)
1
+ # Agent Enderun (v0.7.5)
2
2
  # Place in project root. This file is the single source of truth for Base Project AI Extensions.
3
3
 
4
4
  ## 🎖️ AGENT CHECKLIST (MANDATORY BEFORE RESPONSE)
@@ -52,7 +52,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
52
52
  3. **Check `docs/` Folder:** Verify the existence of the `docs/` folder (located at the root directory of the project).
53
53
  4. **Absorb Context:** Read `docs/README.md` and `docs/getting-started.md`. If they are missing, check if the architecture folder exists.
54
54
  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.
55
- 6. **Respect Boundaries:** Always distinguish between the user's project code and the Agent Enderun framework internals. Read `.antigravitycli/knowledge/framework_vs_user_project_boundary.md` if unsure. Never mix the two.
55
+ 6. **Respect Boundaries:** Always distinguish between the user's project code and the Agent Enderun framework internals. Read `{{FRAMEWORK_DIR}}/knowledge/framework_vs_user_project_boundary.md` if unsure. Never mix the two.
56
56
  6. **Automatic @manager Mode:** You are ALWAYS operating as `@manager` (Team-Lead). 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.
57
57
 
58
58
  **NEVER SKIP THIS STEP.** Do not assume context; read first, then act as @manager.
@@ -89,9 +89,9 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
89
89
 
90
90
  - **Documentation Ownership Rule (Enterprise Standard — Zero Tolerance):**
91
91
  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**.
92
- These documents must **never** be written into `.antigravitycli/knowledge/`, `{{FRAMEWORK_DIR}}/agents/`, or any framework folder.
92
+ These documents must **never** be written into `{{FRAMEWORK_DIR}}/knowledge/`, `{{FRAMEWORK_DIR}}/agents/`, or any framework folder.
93
93
  Violation is considered a serious rule breach and is corrected by @manager.
94
- The detailed and binding rule is defined in `.antigravitycli/knowledge/documentation_ownership.md`.
94
+ The detailed and binding rule is defined in `{{FRAMEWORK_DIR}}/knowledge/documentation_ownership.md`.
95
95
 
96
96
  ---
97
97
 
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # 🏛️ Agent Enderun (v0.7.0) — The Supreme AI Governance & Orchestration Framework
1
+ # 🏛️ Agent Enderun (v0.7.5) — The Supreme AI Governance & Orchestration Framework
2
2
 
3
3
  **The Supreme AI Governance & Orchestration Framework for Enterprise Development**
4
4
 
5
- **Author:** Yusuf BEKAR
6
- **Version:** 0.7.0
7
- **License:** MIT
5
+ **Author:** Yusuf BEKAR
6
+ **Version:** 0.7.5
7
+ **License:** MIT
8
8
 
9
9
  [English](#english) | [Türkçe](#türkçe)
10
10
 
@@ -20,27 +20,39 @@ Most AI coding tools optimize for speed and generation volume. Agent Enderun opt
20
20
 
21
21
  > [!NOTE]
22
22
  > **v0.7.0 Strategic Consolidation:**
23
- > This release completely standardizes the workspace on the `.antigravitycli/` folder as the active framework engine. All specialist agent configurations are migrated into a futuristic, strongly-typed JSON structure (`agent.json`) under `.agents/agents/{agent_name}/agent.json` (or `.antigravitycli/agents/` during framework staging) for absolute machine-readability. Duplicate structures (like `.enderun/` or `.antigravitycli/docs/`) have been completely retired.
23
+ > The active runtime folder in user projects is `.gemini/`. The framework ships its templates from `.enderun/`. All specialist agent configurations live as strongly-typed `agent.json` under `.gemini/agents/{agent_name}/agent.json`. Duplicate or staging structures have been retired.
24
24
 
25
25
  ---
26
26
 
27
- ## 🎯 Core Philosophy
27
+ ## 🎯 Core Philosophy & Key Concepts
28
28
 
29
- Agent Enderun is built on four non-negotiable principles:
29
+ Agent Enderun is built on a set of non-negotiable principles enforced by its core components.
30
30
 
31
- 1. **Single Point of Authority** — In enterprise projects, `@manager` is the only authorized entry point. No specialist agent may act without a formal briefing.
32
- 2. **Risk-First Mindset** Every significant action is preceded by risk assessment. High-risk operations require explicit approval and full audit trails.
33
- 3. **Continuous Agent Improvement** All agents have maturity targets (minimum 8.0/10). “Good enough” is not accepted in critical areas.
34
- 4. **Zero Tolerance for Bypass** Any attempt to circumvent governance (Hermes protocol, briefings, memory discipline, high-risk controls) is treated as a serious process violation.
31
+ ### 1. The Constitution (`ENDERUN.md`)
32
+ This is the supreme law of the framework, dictating mandatory rules and protocols for all agents. Key principles include:
33
+ - **Single Point of Authority:** In enterprise projects, `@manager` is the only authorized entry point. No specialist agent may act without a formal briefing.
34
+ - **Contract-First Development:** The `@backend` agent MUST define and document API contracts and types before the `@frontend` agent begins implementation.
35
+ - **Zero UI Library & Zero Mock Policy:** The `@frontend` agent MUST build components from scratch using the project's design system (Panda CSS) and MUST NOT use mock data. This ensures originality and quality.
36
+ - **Procedural Continuity:** All agents MUST adhere to the existing architectural and stylistic patterns of the project.
37
+
38
+ ### 2. Project Memory (`PROJECT_MEMORY.md`)
39
+ This file, located in `.gemini/`, is the **Single Source of Truth (SSOT)** for the project's state. It is a human-readable Markdown file that all agents read at the start of a session and update at the end. Its key sections are:
40
+ - **`CURRENT STATUS`:** Tracks the active phase, Trace ID, and any blockers.
41
+ - **`CRITICAL DECISIONS`:** A log of important architectural choices to ensure consistency.
42
+ - **`ACTIVE TASKS`:** A table of all ongoing tasks, their status, priority, and assigned agent.
43
+ - **`HISTORY`:** A persistent log of all actions taken by agents.
44
+
45
+ ### 3. Traceability (Trace ID)
46
+ Every task or logical unit of work is assigned a unique **Trace ID** (a 26-character ULID). This ID is used in commit messages, logs, and task tables, providing an unbroken chain of traceability from the initial request to the final code.
35
47
 
36
48
  ---
37
49
 
38
- ## 🤖 JSON-First Agent Army & Maturity Program
50
+ ## 🤖 The Agent Army
39
51
 
40
- Each agent in the Enderun Army is governed by a strongly-typed `agent.json` definition that defines their precise rules, permitted directories, Hermes communication channels, and capability ratings.
52
+ Each agent in the Enderun Army is governed by a strongly-typed `agent.json` definition that defines their precise rules, permitted directories, and capability ratings.
41
53
 
42
54
  ### Workspace Agent Path:
43
- 👉 `[project-root]/.agents/agents/{agent_name}/agent.json`
55
+ 👉 `[project-root]/.gemini/agents/{agent_name}/agent.json`
44
56
 
45
57
  ### Agent Army Overview:
46
58
 
@@ -57,77 +69,73 @@ Each agent in the Enderun Army is governed by a strongly-typed `agent.json` defi
57
69
 
58
70
  ---
59
71
 
60
- ## 🏗️ Architecture Overview
72
+ ## Quick Start & Workflow
61
73
 
62
- Agent Enderun cleanly separates the framework's own engine from the user's project codebase:
74
+ ### 1. Installation
63
75
 
64
- ```
65
- agent-enderun/
66
- ├── .agents/ <-- Antigravity CLI Agent configurations (Exclusive)
67
- │ ├── agent_army_schema.json
68
- │ └── agents/
69
- │ ├── analyst/agent.json
70
- │ ├── backend/agent.json
71
- │ └── ... (others)
72
- ├── .antigravitycli/ <-- Unified Framework Engines & Memories
73
- │ ├── assets/
74
- │ │ └── manager.png <-- Majestic Headmaster Avatar
75
- │ ├── cli-commands.json
76
- │ ├── config.json
77
- │ ├── PROJECT_MEMORY.md
78
- │ └── STATUS.md
79
- ├── docs/ <-- Central Project Documentation Portal (Exclusive)
80
- │ ├── architecture/
81
- │ ├── backend/
82
- │ ├── frontend/
83
- │ └── README.md
84
- ├── bin/ <-- CLI Engines & Validators
85
- │ ├── cli.js
86
- │ └── validate-agent-army.js
87
- ├── framework-mcp/ <-- Core MCP Server Source
88
- ├── apps/ <-- Project Workspaces
76
+ Install the package and initialize the framework inside your project folder:
77
+
78
+ ```bash
79
+ # 1. Initialize the framework for Gemini CLI
80
+ npx agent-enderun init gemini
81
+
82
+ # 2. Install dependencies (as prompted)
83
+ npm install
84
+
85
+ # 3. Build the framework's internal tools (as prompted)
86
+ npm run enderun:build
87
+
88
+ # 4. Verify installation and project health
89
+ npx agent-enderun check
89
90
  ```
90
91
 
91
- ---
92
+ ### 2. Example Workflow: Adding a New Feature
92
93
 
93
- ## Quick Start
94
+ Here’s how to use Agent Enderun to develop a new feature:
94
95
 
95
- ### 1. Installation & Initialization
96
+ **Step 1: Define the Task**
97
+ Create a new file in your project's `docs/` folder (e.g., `docs/new-feature-request.md`) describing the feature you want.
96
98
 
97
- Install the package globally or initialize it inside your project folder:
99
+ **Step 2: Create a New Trace**
100
+ Use the CLI to create a new task in `PROJECT_MEMORY.md`. This generates a unique Trace ID.
98
101
 
99
102
  ```bash
100
- # 1. Initialize the framework (creates .antigravitycli/ and .agents/ structures)
101
- npx agent-enderun init
103
+ npx agent-enderun trace:new "Implement user profile page based on docs/new-feature-request.md" @manager P1
104
+ ```
102
105
 
103
- # 2. Install dependencies
104
- npm install
106
+ **Step 3: Agent Orchestration (Automatic)**
107
+ The `@manager` agent (the default AI persona) will:
108
+ 1. Read `PROJECT_MEMORY.md` and see the new task.
109
+ 2. Analyze the request from `docs/new-feature-request.md`.
110
+ 3. Create a plan and issue formal "briefings" to specialist agents like `@explorer`, `@backend`, and `@frontend`.
105
111
 
106
- # 3. Build the framework
107
- npm run enderun:build
112
+ **Step 4: Development & Verification (Automatic)**
113
+ - The specialist agents execute their tasks according to the constitutional rules (e.g., `@backend` creates the API and types, then `@frontend` builds the UI).
114
+ - `@analyst` automatically verifies the work against project standards.
115
+ - `@git` creates atomic commits tagged with the Trace ID.
108
116
 
109
- # 4. Verify installation & health
110
- npx agent-enderun check
111
- ```
117
+ **Step 5: Monitor Progress**
118
+ You can check the progress at any time with the `status` command:
112
119
 
113
- ### 2. Startup Step (Mandatory for Agents)
114
- At the start of every session, the active agent must:
115
- 1. **Read `.antigravitycli/PROJECT_MEMORY.md`** immediately to restore project context, trace ID, and active tasks.
116
- 2. **Read `.agents/agents/manager/agent.json`** to load specialist behavioral rules and checklists.
120
+ ```bash
121
+ npx agent-enderun status
122
+ ```
123
+ This will show the active phase, blockers, and the status of all active tasks.
117
124
 
118
125
  ---
119
126
 
120
- ## 🧠 Current Status & Next Milestones
127
+ ## 🛠️ CLI Commands
121
128
 
122
- ### Strong Areas:
123
- - **Flawless Constitutional Governance:** Constitutional checks and mandatory checklists prevent bad practices.
124
- - **Bilingual Documentation:** Pristine documentation structure under `/docs/`.
125
- - **JSON-First Precision:** Machine-readable agent configurations with detailed governance settings.
126
- - **Robust Linter and Build Pipelines:** Build and lint pipelines compile cleanly.
129
+ Agent Enderun comes with a powerful set of CLI tools for managing the project.
127
130
 
128
- ### Next Major Milestones:
129
- 1. Produce a complete reference application proving Kurumsal CRUD + `managerApproval` + Hermes in live multi-agent flows.
130
- 2. Perform a live Hermes multi-agent simulation test suite.
131
+ | Command | Description |
132
+ | :--- | :--- |
133
+ | `npx agent-enderun init [adapter]` | Initializes the framework in the current project. `gemini` is the default and recommended adapter. |
134
+ | `npx agent-enderun check` | Runs a health check on the project to ensure all required files and configurations are present. |
135
+ | `npx agent-enderun status` | Displays the current project status, active tasks, and blockers from `PROJECT_MEMORY.md`. |
136
+ | `npx agent-enderun trace:new "<desc>" [agent] [priority]` | Creates a new task with a unique Trace ID and adds it to the `PROJECT_MEMORY.md`. |
137
+ | `npx agent-enderun create-app "<desc>"` | (Aliases: `new`, `start`) Scaffolds a new full-stack application (backend + web) from a natural language description. |
138
+ | `npx agent-enderun verify-contract` | Verifies the integrity of the shared backend types by comparing the current code against the stored hash in `contract.version.json`. |
131
139
 
132
140
  ---
133
141
 
@@ -141,27 +149,39 @@ At the start of every session, the active agent must:
141
149
 
142
150
  > [!NOTE]
143
151
  > **v0.7.0 Stratejik Konsolidasyon:**
144
- > Bu sürüm, çalışma alanını tamamen `.antigravitycli/` klasörü üzerinde standartlaştırır. Tüm uzman ajan yapılandırmaları, mutlak makine okunabilirliği için fütüristik, güçlü tipli bir JSON yapısına (`agent.json`) dönüştürülmüş ve `.agents/agents/{agent_name}/agent.json` altına taşınmıştır. Eski veya mükerrer yapılar (örneğin `.enderun/` veya `.antigravitycli/docs/`) tamamen kaldırılmıştır.
152
+ > Çalışma zamanı klasörü kullanıcı projelerinde `.gemini/` olarak oluşturulur. Ajan yapılandırmaları `.gemini/agents/{agent_name}/agent.json` altında yer alır. Eski veya mükerrer yapılar tamamen kaldırılmıştır.
145
153
 
146
154
  ---
147
155
 
148
- ## 🎯 Temel Felsefe
156
+ ## 🎯 Temel Felsefe ve Anahtar Kavramlar
149
157
 
150
- Agent Enderun, dört tavizsiz ilke üzerine inşa edilmiştir:
158
+ Agent Enderun, temel bileşenleri tarafından uygulanan, tavizsiz ilkeler üzerine kurulmuştur.
151
159
 
152
- 1. **Tek Yetki Noktası** — Kurumsal projelerde `@manager` tek yetkili giriş noktasıdır. Hiçbir uzman ajan, resmi bir brifing almadan kendi başına işlem yapamaz.
153
- 2. **Risk Öncelikli Yaklaşım** Her önemli işlem öncesinde risk değerlendirmesi yapılması zorunludur. Yüksek riskli işlemler açık onay ve eksiksiz denetim geçmişi gerektirir.
154
- 3. **Sürekli Ajan Gelişimi** Tüm ajanların olgunluk hedefleri (minimum 8.0/10) vardır. Kritik alanlarda "yeterince iyi" kabul edilmez.
155
- 4. **Bypass Toleranssızlığı** — Yönetişimi (Hermes protokolü, brifingler, bellek disiplini, yüksek risk kontrolleri) atlatmaya yönelik her girişim ciddi süreç ihlali olarak kabul edilir.
160
+ ### 1. Anayasa (`ENDERUN.md`)
161
+ Bu, tüm ajanlar için zorunlu kuralları ve protokolleri dikte eden, çerçevenin en üst yasasıdır. Temel ilkeler şunları içerir:
162
+ - **Tek Yetki Noktası:** Kurumsal projelerde `@manager` tek yetkili giriş noktasıdır. Hiçbir uzman ajan, resmi bir brifing almadan kendi başına işlem yapamaz.
163
+ - **Önce Sözleşme (Contract-First) ile Geliştirme:** `@backend` ajanı, `@frontend` ajanı uygulamaya başlamadan ÖNCE API sözleşmelerini ve tiplerini tanımlamak ve belgelemek ZORUNDADIR.
164
+ - **Sıfır UI Kütüphanesi ve Sıfır Mock Veri Politikası:** `@frontend` ajanı, bileşenleri projenin tasarım sistemini (Panda CSS) kullanarak sıfırdan oluşturmalı ve mock (sahte) veri KULLANMAMALIDIR. Bu, özgünlüğü ve kaliteyi garanti eder.
165
+ - **Prosedürel Devamlılık:** Tüm ajanlar, projenin mevcut mimari ve stilistik kalıplarına uymak ZORUNDADIR.
166
+
167
+ ### 2. Proje Hafızası (`PROJECT_MEMORY.md`)
168
+ `.gemini/` içinde bulunan bu dosya, projenin durumu için **Tek Doğruluk Kaynağıdır (SSOT)**. Tüm ajanların bir oturumun başında okuduğu ve sonunda güncellediği, insan tarafından okunabilir bir Markdown dosyasıdır. Ana bölümleri şunlardır:
169
+ - **`CURRENT STATUS`:** Aktif aşamayı, Trace ID'yi ve varsa engelleyicileri izler.
170
+ - **`CRITICAL DECISIONS`:** Tutarlılığı sağlamak için önemli mimari seçimlerin bir kaydı.
171
+ - **`ACTIVE TASKS`:** Devam eden tüm görevlerin, durumlarının, önceliklerinin ve atanan ajanın bir tablosu.
172
+ - **`HISTORY`:** Ajanlar tarafından gerçekleştirilen tüm eylemlerin kalıcı bir kaydı.
173
+
174
+ ### 3. İzlenebilirlik (Trace ID)
175
+ Her göreve veya mantıksal iş birimine benzersiz bir **Trace ID** (26 karakterlik bir ULID) atanır. Bu kimlik, commit mesajlarında, loglarda ve görev tablolarında kullanılarak ilk talepten nihai koda kadar kesintisiz bir izlenebilirlik zinciri sağlar.
156
176
 
157
177
  ---
158
178
 
159
- ## 🤖 JSON-First Ajan Ordusu ve Olgunluk Programı
179
+ ## 🤖 Ajan Ordusu
160
180
 
161
- Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinleri, Hermes iletişim kanallarını ve yetenek derecelendirmelerini tanımlayan güçlü tipli bir `agent.json` dosyası tarafından yönetilir.
181
+ Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinleri ve yetenek derecelendirmelerini tanımlayan güçlü tipli bir `agent.json` dosyası tarafından yönetilir.
162
182
 
163
183
  ### Çalışma Alanı Ajan Yolu:
164
- 👉 `[proje-kök-dizini]/.agents/agents/{agent_name}/agent.json`
184
+ 👉 `[proje-kök-dizini]/.gemini/agents/{agent_name}/agent.json`
165
185
 
166
186
  ### Ajan Ordusuna Genel Bakış:
167
187
 
@@ -178,31 +198,73 @@ Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinler
178
198
 
179
199
  ---
180
200
 
181
- ## ⚡ Hızlı Başlangıç
201
+ ## ⚡ Hızlı Başlangıç ve İş Akışı
182
202
 
183
- ### 1. Kurulum ve Başlatma
203
+ ### 1. Kurulum
184
204
 
185
- Framework'ü projenizde başlatmak için aşağıdaki adımları takip edin:
205
+ Framework'ü projenize kurmak ve başlatmak için aşağıdaki adımları takip edin:
186
206
 
187
207
  ```bash
188
- # 1. Framework'ü başlatın (.antigravitycli ve .agents yapılarını kurar)
189
- npx agent-enderun init
208
+ # 1. Framework'ü Gemini CLI için başlatın
209
+ npx agent-enderun init gemini
190
210
 
191
- # 2. Bağımlılıkları yükleyin
211
+ # 2. Bağımlılıkları yükleyin (istendiği gibi)
192
212
  npm install
193
213
 
194
- # 3. Çekirdek MCP sunucusunu derleyin
214
+ # 3. Framework'ün dahili araçlarını derleyin (istendiği gibi)
195
215
  npm run enderun:build
196
216
 
197
- # 4. Kurulumu ve sağlığı doğrulayın
217
+ # 4. Kurulumu ve proje sağlığını doğrulayın
198
218
  npx agent-enderun check
199
219
  ```
200
220
 
201
- ### 2. Ajanlar İçin Başlangıç Adımı (Zorunlu)
202
- Her oturumun başında, aktif ajan mutlaka:
203
- 1. Proje bağlamını, izleme kimliğini (trace ID) ve aktif görevleri geri yüklemek için **derhal `.antigravitycli/PROJECT_MEMORY.md`** dosyasını okumalıdır.
204
- 2. Rolüne özgü davranış kurallarını ve kontrol listelerini yüklemek için **derhal `.agents/agents/manager/agent.json`** dosyasını okumalıdır.
221
+ ### 2. Örnek İş Akışı: Yeni Bir Özellik Ekleme
222
+
223
+ Agent Enderun'u yeni bir özellik geliştirmek için nasıl kullanacağınız aşağıda açıklanmıştır:
224
+
225
+ **Adım 1: Görevi Tanımlayın**
226
+ Projenizin `docs/` klasöründe yeni bir dosya oluşturun (örn. `docs/yeni-ozellik-isteği.md`) ve istediğiniz özelliği tanımlayın.
227
+
228
+ **Adım 2: Yeni Bir İz (Trace) Oluşturun**
229
+ `PROJECT_MEMORY.md`'de yeni bir görev oluşturmak için CLI'yi kullanın. Bu, benzersiz bir Trace ID oluşturur.
230
+
231
+ ```bash
232
+ npx agent-enderun trace:new "docs/yeni-ozellik-isteği.md'ye göre kullanıcı profili sayfasını uygula" @manager P1
233
+ ```
234
+
235
+ **Adım 3: Ajan Orkestrasyonu (Otomatik)**
236
+ `@manager` ajanı (varsayılan AI kişiliği) şunları yapacaktır:
237
+ 1. `PROJECT_MEMORY.md`'yi okuyacak ve yeni görevi görecektir.
238
+ 2. `docs/yeni-ozellik-isteği.md`'deki talebi analiz edecektir.
239
+ 3. Bir plan oluşturacak ve `@explorer`, `@backend` ve `@frontend` gibi uzman ajanlara resmi "brifingler" verecektir.
240
+
241
+ **Adım 4: Geliştirme ve Doğrulama (Otomatik)**
242
+ - Uzman ajanlar, anayasal kurallara göre görevlerini yerine getirir (örneğin, `@backend` API'yi ve tipleri oluşturur, ardından `@frontend` kullanıcı arayüzünü oluşturur).
243
+ - `@analyst`, yapılan işi proje standartlarına göre otomatik olarak doğrular.
244
+ - `@git`, Trace ID ile etiketlenmiş atomik `commit`'ler oluşturur.
245
+
246
+ **Adım 5: İlerlemeyi İzleyin**
247
+ `status` komutuyla ilerlemeyi istediğiniz zaman kontrol edebilirsiniz:
248
+
249
+ ```bash
250
+ npx agent-enderun status
251
+ ```
252
+ Bu, aktif aşamayı, engelleri ve tüm aktif görevlerin durumunu gösterecektir.
253
+
254
+ ---
255
+
256
+ ## 🛠️ CLI Komutları
257
+
258
+ Agent Enderun, projeyi yönetmek için güçlü bir komut satırı araç seti ile birlikte gelir.
205
259
 
260
+ | Komut | Açıklama |
261
+ | :--- | :--- |
262
+ | `npx agent-enderun init [adapter]` | Framework'ü mevcut projede başlatır. `gemini` varsayılan ve önerilen adaptördür. |
263
+ | `npx agent-enderun check` | Gerekli tüm dosyaların ve yapılandırmaların mevcut olduğundan emin olmak için projede bir sağlık kontrolü çalıştırır. |
264
+ | `npx agent-enderun status` | `PROJECT_MEMORY.md`'den mevcut proje durumunu, aktif görevleri ve engelleri gösterir. |
265
+ | `npx agent-enderun trace:new "<açıklama>" [ajan] [öncelik]` | Benzersiz bir Trace ID ile yeni bir görev oluşturur ve bunu `PROJECT_MEMORY.md`'ye ekler. |
266
+ | `npx agent-enderun create-app "<açıklama>"` | (Takma adlar: `new`, `start`) Doğal dil tanımından yeni bir tam yığın uygulama (backend + web) oluşturur. |
267
+ | `npx agent-enderun verify-contract` | `contract.version.json`'da saklanan `hash` ile mevcut kodu karşılaştırarak paylaşılan backend tiplerinin bütünlüğünü doğrular. |
206
268
  ---
207
269
 
208
270
  **Agent Enderun is not just a tool. It is a complete operating system for professional, risk-aware, AI-assisted software development.**