agent-enderun 0.1.10 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/.enderun/BRAIN_DASHBOARD.md +43 -0
  2. package/.enderun/ENDERUN.md +203 -0
  3. package/.enderun/PROJECT_MEMORY.md +137 -36
  4. package/.enderun/agents/analyst.md +21 -10
  5. package/.enderun/agents/backend.md +12 -11
  6. package/.enderun/agents/explorer.md +10 -7
  7. package/.enderun/agents/frontend.md +9 -20
  8. package/.enderun/agents/git.md +16 -12
  9. package/.enderun/agents/manager.md +14 -15
  10. package/.enderun/agents/mobile.md +5 -5
  11. package/.enderun/agents/native.md +5 -5
  12. package/.enderun/benchmarks/.gitkeep +0 -0
  13. package/.enderun/cli-commands.json +13 -1
  14. package/.enderun/config.json +1 -1
  15. package/.enderun/docs/api/README.md +10 -9
  16. package/.enderun/docs/api/auth.md +11 -0
  17. package/.enderun/docs/api/errors.md +7 -0
  18. package/.enderun/docs/error-handling.md +12 -0
  19. package/.enderun/docs/privacy.md +3 -0
  20. package/.enderun/docs/security.md +12 -0
  21. package/.enderun/docs/tech-stack.md +1 -0
  22. package/.enderun/docs/troubleshooting.md +7 -0
  23. package/.enderun/knowledge/api_design_rules.md +6 -0
  24. package/.enderun/knowledge/async_error_handling.md +18 -0
  25. package/.enderun/knowledge/branded_types_pattern.md +1 -0
  26. package/.enderun/knowledge/code_review_checklist.md +7 -0
  27. package/.enderun/knowledge/contract_versioning.md +7 -0
  28. package/.enderun/knowledge/database_migration.md +6 -0
  29. package/.enderun/knowledge/deployment_checklist.md +7 -0
  30. package/.enderun/knowledge/git_commit_strategy.md +10 -0
  31. package/.enderun/knowledge/legacy_onboarding.md +7 -0
  32. package/.enderun/knowledge/monitoring_setup.md +5 -0
  33. package/.enderun/knowledge/performance_guidelines.md +11 -0
  34. package/.enderun/knowledge/repository_patterns.md +9 -0
  35. package/.enderun/knowledge/security_scanning.md +6 -0
  36. package/.enderun/knowledge/testing_standards.md +7 -0
  37. package/.enderun/knowledge/troubleshooting_guide.md +5 -0
  38. package/.enderun/knowledge/zero_ui_library_policy.md +1 -0
  39. package/.enderun/logs/analyst.json +1 -0
  40. package/.enderun/logs/backend.json +1 -0
  41. package/.enderun/logs/explorer.json +1 -0
  42. package/.enderun/logs/frontend.json +1 -0
  43. package/.enderun/logs/git.json +1 -0
  44. package/.enderun/logs/manager.json +363 -0
  45. package/.enderun/logs/mobile.json +1 -0
  46. package/.enderun/logs/native.json +1 -0
  47. package/.enderun/monitoring/.gitkeep +0 -0
  48. package/ENDERUN.md +8 -8
  49. package/LICENSE +21 -0
  50. package/README.md +595 -195
  51. package/bin/cli.js +292 -79
  52. package/package.json +42 -2
  53. package/packages/framework-mcp/README.md +47 -81
  54. package/packages/framework-mcp/dist/index.js +13 -971
  55. package/packages/framework-mcp/dist/schemas.js +84 -0
  56. package/packages/framework-mcp/dist/tools/academy.js +184 -0
  57. package/packages/framework-mcp/dist/tools/codebase.js +294 -0
  58. package/packages/framework-mcp/dist/tools/contract.js +95 -0
  59. package/packages/framework-mcp/dist/tools/database.js +52 -0
  60. package/packages/framework-mcp/dist/tools/framework.js +161 -0
  61. package/packages/framework-mcp/dist/tools/git.js +53 -0
  62. package/packages/framework-mcp/dist/tools/index.js +42 -0
  63. package/packages/framework-mcp/dist/tools/knowledge.js +69 -0
  64. package/packages/framework-mcp/dist/tools/memory.js +94 -0
  65. package/packages/framework-mcp/dist/tools/messages.js +71 -0
  66. package/packages/framework-mcp/dist/tools/repository.js +76 -0
  67. package/packages/framework-mcp/dist/tools/security.js +122 -0
  68. package/packages/framework-mcp/dist/utils.js +82 -0
  69. package/packages/framework-mcp/package.json +1 -1
  70. package/packages/framework-mcp/src/index.ts +20 -970
  71. package/packages/framework-mcp/src/schemas.ts +106 -0
  72. package/packages/framework-mcp/src/tools/academy.ts +178 -0
  73. package/packages/framework-mcp/src/tools/codebase.ts +284 -0
  74. package/packages/framework-mcp/src/tools/contract.ts +91 -0
  75. package/packages/framework-mcp/src/tools/database.ts +49 -0
  76. package/packages/framework-mcp/src/tools/framework.ts +157 -0
  77. package/packages/framework-mcp/src/tools/git.ts +43 -0
  78. package/packages/framework-mcp/src/tools/index.ts +45 -0
  79. package/packages/framework-mcp/src/tools/knowledge.ts +68 -0
  80. package/packages/framework-mcp/src/tools/memory.ts +88 -0
  81. package/packages/framework-mcp/src/tools/messages.ts +70 -0
  82. package/packages/framework-mcp/src/tools/repository.ts +76 -0
  83. package/packages/framework-mcp/src/tools/security.ts +122 -0
  84. package/packages/framework-mcp/src/utils.ts +90 -0
  85. package/packages/shared-types/README.md +28 -51
  86. package/packages/shared-types/dist/index.d.ts +80 -48
  87. package/packages/shared-types/dist/index.d.ts.map +1 -1
  88. package/packages/shared-types/dist/index.js +5 -8
  89. package/packages/shared-types/dist/index.js.map +1 -1
  90. package/packages/shared-types/package.json +1 -1
  91. package/packages/shared-types/src/index.ts +79 -51
  92. package/CHANGELOG.md +0 -97
  93. package/CLAUDE.md +0 -7
  94. package/CODEX.md +0 -7
  95. package/CURSOR.md +0 -7
  96. package/GEMINI.md +0 -7
  97. package/docs/tech-stack.md +0 -10
  98. package/gemini-extension.json +0 -5
  99. package/packages/framework-mcp/tsconfig.json +0 -15
  100. package/packages/shared-types/contract.version.json +0 -9
  101. package/packages/shared-types/tsconfig.json +0 -17
  102. package/panda.config.ts +0 -20
  103. /package/{docs → .enderun/docs}/project-docs.md +0 -0
package/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Agent Enderun (v0.1.10)
1
+ # 🏛️ Agent Enderun v0.2.1
2
+
3
+ **The Supreme AI Governance & Orchestration Framework for Enterprise Development**
2
4
 
3
5
  [English](#english) | [Türkçe](#türkçe)
4
6
 
@@ -6,288 +8,686 @@
6
8
 
7
9
  # English
8
10
 
9
- Agent Enderun is a purpose-built, enterprise-grade AI orchestration framework for software teams who want to use AI inside a repository without losing engineering discipline. It turns AI assistants into specialized collaborators by enforcing rules, preserving context, and coordinating multi-agent workflows.
11
+ ## Executive Summary
10
12
 
11
- ## Why Agent Enderun exists
13
+ Agent Enderun is a **production-grade AI governance framework** designed for engineering teams that must maintain control, traceability, and discipline when using AI assistants for code generation. It transforms chaotic AI output into structured, auditable, enterprise-ready deliverables through:
12
14
 
13
- Most AI assistants are powerful but inconsistent in code repositories. Agent Enderun solves this by making the repository itself the source of truth:
15
+ - **Agent-Led Orchestration**: 8 specialized AI agent roles with defined responsibilities
16
+ - **Contract-First Development**: Shared TypeScript types as the single source of truth
17
+ - **Phase-Based Execution**: Strict workflow progression (PHASE_0 → PHASE_4)
18
+ - **Enterprise Auditability**: Every decision, action, and commit is logged and traceable
19
+ - **Modular MCP Intelligence**: 40+ tools across 12 categories for code analysis, security, and automation
14
20
 
15
- - Enforce a single architecture and style guide.
16
- - Keep every decision recorded in persistent project memory.
17
- - Separate AI guidance from production code with hidden adapter directories.
18
- - Prevent backend/frontend contract drift using shared types and API documentation.
19
- - Enable engineers to work with AI without giving up traceability, auditability, or quality.
21
+ ---
20
22
 
21
- ## Core Concepts
23
+ ## 5-Minute Quick Start
22
24
 
23
- ### Constitution — `ENDERUN.md`
24
- A built-in lawbook for your AI helpers. Every agent must read it first and follow its rules, including phase gates, code style policies, and forbidden actions.
25
+ ### Prerequisites
26
+ - **Node.js**: 20+ (LTS recommended)
27
+ - **npm**: 9+
28
+ - **Git**: Initialized in your project root
29
+ - **Any AI Adapter**: Gemini, Claude, Cursor, or Codex (optional but recommended)
25
30
 
26
- ### Project Memory — `PROJECT_MEMORY.md`
27
- A persistent project brain that records active phase, trace IDs, decisions, and history. It keeps the project state machine coherent across sessions and agents.
31
+ ### Installation Steps
28
32
 
29
- ### Agent Academy
30
- A team of specialized agents, each with a strict SOP and a unique domain:
33
+ #### Step 1: Clone or Initialize
34
+ ```bash
35
+ # Option A: Clone this framework repository
36
+ git clone https://github.com/ybekar/agent-enderun.git
37
+ cd agent-enderun
31
38
 
32
- - `@manager`: orchestration, phase gating, trace IDs
33
- - `@analyst`: QA, documentation, memory auditing
34
- - `@backend`: backend architecture, contracts, security
35
- - `@frontend`: UI/UX, Panda CSS, frontend continuity
36
- - `@explorer`: codebase research, dependency mapping
37
- - `@mobile`: mobile strategy and performance
38
- - `@native`: desktop integration and OS constraints
39
- - `@git`: git hygiene, atomic commits, traceable history
39
+ # Option B: Or use as npm package (when published)
40
+ npx agent-enderun init gemini
41
+ ```
40
42
 
41
- ### Clean Root Policy
42
- All AI-specific logic, agent instructions, and memory live in adapter directories such as `.gemini/`, `.claude/`, `.cursor/`, or `.codex/`. Your repository root stays clean for production assets, docs, and source code.
43
+ #### Step 2: Install Dependencies
44
+ ```bash
45
+ npm install
46
+ ```
43
47
 
44
- ### Contract-First Architecture
45
- Backend and frontend communicate through `packages/shared-types` and documented API contracts in `{{FRAMEWORK_DIR}}/docs/api/`. This prevents mismatched expectations and ensures both sides implement the same contract.
48
+ #### Step 3: Build Framework
49
+ ```bash
50
+ npm run enderun:build
51
+ ```
46
52
 
47
- ### Zero UI Library Policy
48
- The frontend must use Panda CSS and no third-party UI kits. This gives you original visuals, better performance, and zero runtime UI dependencies.
53
+ #### Step 4: Verify Setup
54
+ ```bash
55
+ agent-enderun check
56
+ ```
49
57
 
50
- ## What makes Agent Enderun different
58
+ Expected output:
59
+ ```
60
+ ✅ Framework active (v0.2.0)
61
+ ✅ MCP Server ready
62
+ ✅ Shared types compiled
63
+ ✅ Agent logs initialized
64
+ ✅ PROJECT_MEMORY.md found
65
+ ```
51
66
 
52
- - Persistent, audited project memory for every decision.
53
- - Multi-agent orchestration instead of a single general-purpose assistant.
54
- - Strict phase transitions from discovery to delivery.
55
- - Built-in contract verification and shared typed APIs.
56
- - Hidden adapter directories to keep CI-friendly repository roots.
57
- - Explicit package manager intelligence in the CLI.
67
+ ---
58
68
 
59
- ## Project structure
69
+ ## 🎯 What You Can Do Right Now
60
70
 
61
- ```
62
- /README.md
63
- /CHANGELOG.md
64
- /.enderun/
65
- /.gemini/ or /.claude/
66
- /apps/backend/
67
- /apps/web/
68
- /packages/framework-mcp/
69
- /packages/shared-types/
70
- /docs/
71
+ ### Initialize Your Project
72
+ ```bash
73
+ # Creates .enderun/ directory with governance files
74
+ npx agent-enderun init gemini
71
75
  ```
72
76
 
73
- ### Key folders
77
+ ### Check Project Health
78
+ ```bash
79
+ # Runs security audit, compliance check, and dependency analysis
80
+ agent-enderun check
74
81
 
75
- - `apps/backend/` — server implementation and business logic.
76
- - `apps/web/` — frontend interface and Panda CSS UI.
77
- - `packages/shared-types/` — shared contract types for all agents.
78
- - `packages/framework-mcp/` — MCP server tools for AI-assisted workflows.
79
- - `.enderun/` — framework rules, memory, agent SOPs, and hidden configuration.
82
+ # Just security
83
+ agent-enderun check:security
80
84
 
81
- ## Installation and setup
85
+ # Just compliance
86
+ agent-enderun check:compliance
87
+ ```
82
88
 
83
- Agent Enderun detects the package manager automatically, but you can also force it using an environment variable:
89
+ ### View Project Status
90
+ ```bash
91
+ # Shows current phase, active agents, and blockers
92
+ agent-enderun status
93
+ ```
94
+
95
+ ### Create a New Task
96
+ ```bash
97
+ # Creates a ULID-based trace for a new feature
98
+ agent-enderun trace:new "Implement User Authentication" backend P1
99
+ ```
84
100
 
101
+ ### Verify API Contracts
85
102
  ```bash
86
- AGENT_ENDERUN_PACKAGE_MANAGER=npm npx agent-enderun init gemini
87
- AGENT_ENDERUN_PACKAGE_MANAGER=yarn npx agent-enderun init gemini
88
- AGENT_ENDERUN_PACKAGE_MANAGER=pnpm npx agent-enderun init gemini
103
+ # Ensures shared-types and API docs are synchronized
104
+ agent-enderun verify-contract
89
105
  ```
90
106
 
91
- > Legacy environment variables `AI_ENDERUN_PACKAGE_MANAGER` and `AGENT_ENDERUN_PM` are still accepted for compatibility.
107
+ ---
92
108
 
93
- ### Recommended install flow
109
+ ## 🏗️ Core Architecture
94
110
 
95
- ```bash
96
- npx agent-enderun init gemini
97
- npm install && npm run enderun:build
98
- agent-enderun check
111
+ Agent Enderun consists of **4 integrated layers**:
112
+
113
+ ### Layer 1: Governance (.enderun/)
114
+ ```
115
+ .enderun/
116
+ ├── ENDERUN.md ← The "Supreme Law" (read this first!)
117
+ ├── PROJECT_MEMORY.md ← Single source of truth for state
118
+ ├── STATUS.md ← Agent status dashboard
119
+ ├── cli-commands.json ← CLI ownership mapping
120
+ ├── agents/ ← 8 agent role definitions
121
+ ├── logs/ ← Audit trail (agent.json files)
122
+ ├── knowledge/ ← 16+ technical knowledge articles
123
+ └── docs/api/ ← API contract specifications
99
124
  ```
100
125
 
101
- > Agent Enderun is built and optimized for npm. If you prefer yarn, you can explicitly set `AGENT_ENDERUN_PACKAGE_MANAGER=yarn`.
126
+ ### Layer 2: Framework Core (bin/ + packages/)
127
+ ```
128
+ bin/cli.js ← CLI bootstrapper
129
+ packages/
130
+ ├── framework-mcp/ ← 40+ MCP tools (12 categories)
131
+ └── shared-types/ ← Branded types (single source of truth)
132
+ ```
133
+
134
+ ### Layer 3: Documentation (docs/)
135
+ ```
136
+ docs/
137
+ ├── tech-stack.md ← Approved technology stack
138
+ ├── project-docs.md ← Product requirements (template)
139
+ └── [your project files] ← Your documents (agents will read these)
140
+ ```
102
141
 
103
- ## CLI Quick Reference
142
+ ### Layer 4: Application (apps/) — YOURS
143
+ ```
144
+ apps/
145
+ ├── backend/ ← Your backend app (create this)
146
+ ├── web/ ← Your frontend app (create this)
147
+ └── [other apps]/ ← Mobile, desktop, etc.
148
+ ```
104
149
 
105
- | Command | Purpose |
106
- | --- | --- |
107
- | `npx agent-enderun init <adapter>` | Scaffold the framework and hidden adapter files |
108
- | `agent-enderun check` | Validate framework health, memory, contracts and build artifacts |
109
- | `agent-enderun trace:new "desc"` | Create a new task Trace ID |
110
- | `agent-enderun verify-contract` | Verify shared type contract hash |
111
- | `npm run enderun:build` | Build shared-types and framework-mcp packages |
150
+ ---
112
151
 
113
- ## Typical workflow
152
+ ## 🎓 The Agent Academy — 8 Specialized Roles
114
153
 
115
- 1. Initialize with `npx agent-enderun init gemini`.
116
- 2. Add project requirements in `docs/project-docs.md`.
117
- 3. Confirm stack and architecture in `docs/tech-stack.md`.
118
- 4. Ask the `@manager` agent to start a new task (the agent will run `agent-enderun trace:new` automatically).
119
- 5. Let the manager agent delegate work to specialized agents using trace IDs.
120
- 6. Keep every change logged in `.enderun/PROJECT_MEMORY.md`.
154
+ Each agent has a defined **Standard Operating Procedure (SOP)** and reads the constitution before every action.
121
155
 
122
- ## Onboarding new engineers
156
+ | Agent | Specialty | What They Do |
157
+ |---|---|---|
158
+ | **@manager** | Orchestration | Runs the phase machine, creates trace IDs, delegates tasks, updates PROJECT_MEMORY |
159
+ | **@analyst** | Quality Control | Security audits, compliance checks, documentation debt, code review |
160
+ | **@backend** | Data Architecture | Database schema, API contracts, shared-types integrity, Kysely standards |
161
+ | **@frontend** | UI Development | React components, Panda CSS styling, Zero-UI Library enforcement, responsive design |
162
+ | **@explorer** | Code Intelligence | Dependency graphs, complexity analysis, dead code detection, legacy code mapping |
163
+ | **@git** | Repository Master | Semantic commits, branch management, conflict resolution, merge strategies |
164
+ | **@mobile** | Mobile Apps | React Native, Expo, iOS/Android specifics, performance optimization |
165
+ | **@native** | Native Apps | Tauri, Electron, native performance, IPC protocols, system integration |
123
166
 
124
- Share these project truths:
167
+ ---
125
168
 
126
- - Always read `ENDERUN.md` before editing.
127
- - Every task belongs to a trace ID.
128
- - Use `shared-types` instead of hand-writing API types.
129
- - No third-party UI libraries in the frontend.
130
- - Keep AI adapter config hidden under `.gemini/`, `.claude/`, `.cursor/`, or `.codex/`.
169
+ ## 🛠️ MCP Tools Reference
131
170
 
132
- ## Troubleshooting
171
+ The framework provides **40+ tools** organized in 12 categories. Agents use these automatically.
133
172
 
134
- - If `agent-enderun init` fails during install, rerun with the correct package manager override.
135
- - If `agent-enderun check` reports missing build artifacts, run `npm run enderun:build`.
136
- - If contract hashes drift, run `npm run verify-contract` and update `packages/shared-types/contract.version.json`.
173
+ ### Framework Tools
174
+ - `get_framework_status` Check framework health
175
+ - `get_project_gaps` Identify missing files/structure
176
+ - `get_memory_insights` — Analyze PROJECT_MEMORY
177
+ - `bootstrap_legacy_memory` — Auto-detect existing projects
137
178
 
138
- ## Contribution and extension
179
+ ### Codebase Tools
180
+ - `search_codebase` — Find code patterns
181
+ - `analyze_dependencies` — Map imports/exports
182
+ - `analyze_codebase_intelligence` — Find complexity & dead code
183
+ - `generate_dependency_graph` — Mermaid diagrams
139
184
 
140
- Agent Enderun is designed to be extended through:
185
+ ### Security & Compliance
186
+ - `security_audit_scan` — Check for secrets, SQL injection, console.log
187
+ - `analyze_constitution_compliance` — Enforce ENDERUN.md rules
141
188
 
142
- - new adapter directories (`.gemini/`, `.claude/`, `.cursor/`, `.codex/`)
143
- - additional agent SOPs under `.enderun/agents`
144
- - new project-specific API contracts in `.enderun/docs/api/`
145
- - shared type expansions in `packages/shared-types/src`
189
+ ### Contract Management
190
+ - `verify_api_contract` Hash verification
191
+ - `verify_contract_integrity` Type synchronization
192
+ - `update_contract_hash` Sync shared-types
146
193
 
147
- If you add a new capability, document it in `CHANGELOG.md` and preserve the existing version header.
194
+ ### Git & Commits
195
+ - `generate_semantic_commit_message` — Auto-generate commit messages
196
+
197
+ ### Academy Intelligence
198
+ - `get_academy_performance` — Agent success rates
199
+ - `generate_strategic_briefing` — High-level reports
200
+ - `log_agent_action` — Structured logging
201
+
202
+ ### Repository Health
203
+ - `validate_repository_health` — Run lint/test/build
204
+ - `analyze_documentation_debt` — Find missing JSDoc/READMEs
205
+
206
+ ### Agent Collaboration
207
+ - `send_agent_message` — Inter-agent communication
208
+ - `read_agent_messages` — Check agent inbox
209
+
210
+ ### Database & Knowledge
211
+ - `analyze_database_schema` — Extract ER diagrams
212
+ - `search_knowledge_base` — Find technical guides
213
+ - `update_knowledge_base` — Add knowledge entries
148
214
 
149
215
  ---
150
216
 
151
- # Türkçe
217
+ ## 📖 How Agents Read Your Project
152
218
 
153
- Agent Enderun, kod deposunda AI kullanırken mühendislik disiplini ve izlenebilirliği korumak isteyen ekipler için tasarlanmış bir AI orkestrasyon çerçevesidir. Yapay zeka yardımcılarını, profesyonel bir mühendis ekibinin parçası gibi çalışacak şekilde yapılandırır.
219
+ When you add documentation to `docs/`, agents automatically discover and use it:
154
220
 
155
- ## Neden Agent Enderun?
221
+ ```
222
+ docs/
223
+ ├── project-docs.md ← Agents read here for requirements
224
+ ├── tech-stack.md ← Technology decisions
225
+ ├── design-system.md ← (optional) UI patterns
226
+ ├── api-guide.md ← (optional) API examples
227
+ └── architecture.md ← (optional) System design
228
+ ```
156
229
 
157
- Çoğu AI asistanı güçlü olsa da kod tabanlarında tutarlı davranmayabilir. Agent Enderun bu sorunu şu şekilde çözer:
230
+ Agents use the `search_knowledge_base` tool to find answers to common questions.
158
231
 
159
- - Tek mimari ve stil rehberi uygular.
160
- - Her kararı kalıcı proje hafızasına kaydeder.
161
- - AI talimatlarını üretim kodundan gizli dizinlerde tutar.
162
- - Backend ve frontend sözleşmelerinin uyumunu `shared-types` ile sağlar.
163
- - AI ile çalışırken izlenebilirlik ve kalite kaybını engeller.
232
+ ---
164
233
 
165
- ## Temel Kavramlar
234
+ ## Complete Installation Checklist
166
235
 
167
- ### Anayasa `ENDERUN.md`
168
- Tüm AI ajanlarının okumak ve uymak zorunda olduğu kural kitabı. Faz geçişleri, kod politikaları ve yasaklı hareketler burada tanımlanır.
236
+ - [ ] **Node.js 20+** installed (`node --version`)
237
+ - [ ] **npm 9+** installed (`npm --version`)
238
+ - [ ] **Git** initialized (`git init`)
239
+ - [ ] **Framework installed** (`npm install && npm run enderun:build`)
240
+ - [ ] **Health check passed** (`agent-enderun check` shows ✅)
241
+ - [ ] **First task created** (`agent-enderun trace:new "Your task" backend P1`)
242
+ - [ ] **Docs created** (add files to `docs/` for agents to read)
243
+ - [ ] **MCP connected** (agents can now use tools)
169
244
 
170
- ### Proje Hafızası — `PROJECT_MEMORY.md`
171
- Aktif fazı, trace ID'leri, kararları ve tarihsel kayıtları saklayan kalıcı beyin.
245
+ ---
172
246
 
173
- ### Ajan Akademisi
174
- Her biri kendi uzmanlık alanı ve SOP'u olan bir ajan takımı:
247
+ ## 🚀 First Real Task
175
248
 
176
- - `@manager`: orkestrasyon, faz kapıları, trace ID yönetimi
177
- - `@analyst`: kalite, dokümantasyon, hafıza denetimi
178
- - `@backend`: backend mimarisi, sözleşmeler, güvenlik
179
- - `@frontend`: UI/UX, Panda CSS, frontend sürekliliği
180
- - `@explorer`: kod tabanı araştırması, bağımlılık haritalama
181
- - `@mobile`: mobil strateji ve performans
182
- - `@native`: masaüstü entegrasyonu ve işletim sistemi kısıtları
183
- - `@git`: git hijyeni, atomik commit'ler, izlenebilir tarihçe
249
+ Once everything is installed, try this:
184
250
 
185
- ### Temiz Kök Politikası
186
- Tüm AI spesifik yapı `.gemini/`, `.claude/`, `.cursor/` veya `.codex/` gibi gizli dizinlerde saklanır. Depo kökü sadece üretim kodu, doküman ve yapılandırma için temiz kalır.
251
+ ```bash
252
+ # Step 1: Create a real project requirement
253
+ echo "# User Authentication
187
254
 
188
- ### Sözleşme Öncelikli Mimari
189
- Backend ve frontend, `packages/shared-types` ve `{{FRAMEWORK_DIR}}/docs/api/` belgeleri üzerinden eşleşir. Bu, taraflar arasında yanlış anlaşılma ihtimalini azaltır.
255
+ Implement JWT-based authentication with refresh tokens.
256
+ - Email/password login
257
+ - Logout endpoint
258
+ - Token refresh mechanism
259
+ " > docs/requirements.md
190
260
 
191
- ### Sıfır UI Kütüphanesi Politikası
192
- Frontend, Panda CSS kullanmalı ve üçüncü taraf UI kitleri yasaklanmalıdır. Böylece performans, özgünlük ve sıfır runtime bağımlılığı sağlanır.
261
+ # Step 2: Create a task
262
+ agent-enderun trace:new "Implement Auth Module" backend P1
193
263
 
194
- ## Agent Enderun’u Öne Çıkaranlar
264
+ # Step 3: Agents read requirements and build
265
+ # (They will automatically read docs/requirements.md)
266
+ ```
195
267
 
196
- - Kalıcı, denetlenebilir proje hafızası.
197
- - Tek bir genel asistan yerine uzman ajan orkestrasyonu.
198
- - Keşiften teslimata kadar sıkı faz geçişleri.
199
- - Paylaşılan tipler ve API sözleşme doğrulaması.
200
- - Gizli adaptör dizinleriyle temiz depo kökü.
201
- - CLI içinde paket yöneticisi akıllılığı.
268
+ ---
202
269
 
203
- ## Proje Yapısı
270
+ ## 📁 Project Structure
204
271
 
205
272
  ```
206
- /README.md
207
- /CHANGELOG.md
208
- /.enderun/
209
- /.gemini/ veya /.claude/
210
- /apps/backend/
211
- /apps/web/
212
- /packages/framework-mcp/
213
- /packages/shared-types/
214
- /docs/
273
+ agent-enderun/
274
+ ├── README.md ← This file
275
+ ├── package.json ← Root npm config
276
+ ├── bin/
277
+ │ └── cli.js ← CLI entry point
278
+ ├── docs/ ← Your project docs (agents read these)
279
+ │ ├── tech-stack.md
280
+ │ └── project-docs.md
281
+ ├── packages/
282
+ │ ├── shared-types/ ← Branded types (contract)
283
+ │ │ ├── src/index.ts
284
+ │ │ └── contract.version.json ← SHA-256 integrity hash
285
+ │ └── framework-mcp/ ← MCP server (40+ tools)
286
+ │ └── src/tools/
287
+ │ ├── academy.ts
288
+ │ ├── codebase.ts
289
+ │ ├── security.ts
290
+ │ ├── contract.ts
291
+ │ ├── git.ts
292
+ │ ├── knowledge.ts
293
+ │ ├── database.ts
294
+ │ ├── memory.ts
295
+ │ ├── messages.ts
296
+ │ ├── repository.ts
297
+ │ └── framework.ts
298
+ ├── apps/ ← Your applications (start here)
299
+ │ ├── backend/ ← (you create this)
300
+ │ └── web/ ← (you create this)
301
+ └── .enderun/ ← Framework governance
302
+ ├── ENDERUN.md ← Constitution (MANDATORY READ)
303
+ ├── PROJECT_MEMORY.md ← State machine
304
+ ├── STATUS.md ← Agent dashboard
305
+ ├── cli-commands.json ← Command ownership
306
+ ├── config.json ← Configuration
307
+ ├── agents/ ← 8 agent role docs
308
+ │ ├── manager.md
309
+ │ ├── analyst.md
310
+ │ ├── backend.md
311
+ │ ├── frontend.md
312
+ │ ├── explorer.md
313
+ │ ├── git.md
314
+ │ ├── mobile.md
315
+ │ └── native.md
316
+ ├── logs/ ← Audit trail
317
+ │ ├── manager.json
318
+ │ ├── backend.json
319
+ │ ├── frontend.json
320
+ │ ├── analyst.json
321
+ │ ├── explorer.json
322
+ │ ├── git.json
323
+ │ ├── mobile.json
324
+ │ └── native.json
325
+ ├── knowledge/ ← 16+ technical guides
326
+ │ ├── branded_types_pattern.md
327
+ │ ├── async_error_handling.md
328
+ │ ├── security_scanning.md
329
+ │ ├── contract_versioning.md
330
+ │ ├── git_commit_strategy.md
331
+ │ ├── testing_standards.md
332
+ │ └── [12 more...]
333
+ ├── messages/ ← Inter-agent communication
334
+ └── docs/
335
+ ├── api/ ← API contracts
336
+ │ ├── auth.md
337
+ │ ├── errors.md
338
+ │ └── README.md
339
+ └── [other docs]
215
340
  ```
216
341
 
217
- ### Ana klasörler
342
+ ---
343
+
344
+ ## 💡 Frequently Asked Questions
345
+
346
+ ### Q: What does "contract-first" mean?
347
+ **A:** All API shapes and domain models are defined in `packages/shared-types/src/index.ts` **before** any code is written. Frontend and backend must both use these types, ensuring perfect alignment.
348
+
349
+ ### Q: Do agents actually understand all this?
350
+ **A:** Yes. Before every action, agents read:
351
+ 1. `ENDERUN.md` (the constitution)
352
+ 2. `.enderun/PROJECT_MEMORY.md` (project state)
353
+ 3. `docs/` files (your requirements)
354
+ 4. `.enderun/knowledge/` (technical guidelines)
355
+
356
+ ### Q: What if I don't use an AI adapter?
357
+ **A:** The framework still works as a **collaborative development platform**. You and your team use it to enforce:
358
+ - Phase progression
359
+ - Audit logging
360
+ - Shared type discipline
361
+ - API contract verification
362
+
363
+ ### Q: Can I extend the MCP tools?
364
+ **A:** Yes. Add new tool files in `packages/framework-mcp/src/tools/`, define the schema, and export the handler. The CLI will automatically discover them.
365
+
366
+ ### Q: How do I add my own agents?
367
+ **A:** Create a markdown file in `.enderun/agents/your-agent.md`, define the SOP, and add a CLI mapping in `.enderun/cli-commands.json`.
368
+
369
+ ### Q: Is this production-ready?
370
+ **A:** The **framework** is production-ready. Individual features (like `apps/`) depend on what you build. Start with `apps/backend` or `apps/web`.
371
+
372
+ ---
373
+
374
+ ## 🔗 Key Files to Read First
375
+
376
+ 1. **`.enderun/ENDERUN.md`** — The constitution (rules all agents must follow)
377
+ 2. **`.enderun/PROJECT_MEMORY.md`** — Current project state and history
378
+ 3. **`docs/tech-stack.md`** — Technology decisions
379
+ 4. **`packages/shared-types/src/index.ts`** — The contract (types)
380
+ 5. **`README.md`** (this file) — How to use the framework
381
+
382
+ ---
383
+
384
+ ## 📞 Support & Contribution
385
+
386
+ ### Report Issues
387
+ File issues with clear reproduction steps and framework version.
388
+
389
+ ### Contribute
390
+ 1. Read `.enderun/ENDERUN.md`
391
+ 2. Follow the agent role guidelines
392
+ 3. Submit PRs with semantic commit messages
393
+ 4. Ensure tests pass: `npm run enderun:build`
394
+
395
+ ### License
396
+ MIT © 2026 Yusuf BEKAR
397
+
398
+ ---
399
+
400
+ # Türkçe
401
+
402
+ ## Genel Özet
403
+
404
+ Agent Enderun, **kurumsal-grade bir yapay zeka yönetim çerçevesidir** ve yapay zeka asistanlarını kontrol altında tutmanız, izlenebilir olmasını sağlamanız ve disiplinli kod üretimini garantilamanız için tasarlanmıştır.
405
+
406
+ - **Ajan Orkestrasyonu**: 8 uzmanlaşmış yapay zeka rolü
407
+ - **Sözleşme-İlk Geliştirme**: Paylaşılan TypeScript türleri
408
+ - **Faz Tabanlı Yürütme**: Sıkı iş akışı (PHASE_0 → PHASE_4)
409
+ - **Kurumsal Denetim**: Her karar, işlem ve commit kaydedilir
410
+ - **Modüler MCP Zekası**: 40+ araç, 12 kategori
411
+
412
+ ---
413
+
414
+ ## ⚡ 5 Dakikalık Hızlı Başlangıç
218
415
 
219
- - `apps/backend/` — sunucu uygulaması ve iş mantığı.
220
- - `apps/web/` frontend UI ve Panda CSS bileşenleri.
221
- - `packages/shared-types/` — ortak sözleşme tipleri.
222
- - `packages/framework-mcp/` AI destekli MCP sunucu araçları.
223
- - `.enderun/` çerçeve kuralları, hafıza, ajan SOP'ları ve gizli yapılandırma.
416
+ ### Gereksinimler
417
+ - **Node.js**: 20+ (LTS önerilir)
418
+ - **npm**: 9+
419
+ - **Git**: Proje kökünde başlatılmış
420
+ - **AI Adaptörü** (opsiyonel): Gemini, Claude, Cursor veya Codex
224
421
 
225
- ## Kurulum ve Hazırlık
422
+ ### Kurulum Adımları
226
423
 
227
- Agent Enderun, paket yöneticisini otomatik algılar; ancak aşağıdaki değişken ile zorlayabilirsiniz:
424
+ #### Adım 1: Clone veya İnit
425
+ ```bash
426
+ # Seçenek A: Framework repository'sini klonla
427
+ git clone https://github.com/ybekar/agent-enderun.git
428
+ cd agent-enderun
429
+
430
+ # Seçenek B: veya npm paketi olarak kullan
431
+ npx agent-enderun init gemini
432
+ ```
228
433
 
434
+ #### Adım 2: Bağımlılıkları Yükle
229
435
  ```bash
230
- AGENT_ENDERUN_PACKAGE_MANAGER=npm npx agent-enderun init gemini
231
- AGENT_ENDERUN_PACKAGE_MANAGER=yarn npx agent-enderun init gemini
232
- AGENT_ENDERUN_PACKAGE_MANAGER=pnpm npx agent-enderun init gemini
436
+ npm install
233
437
  ```
234
438
 
235
- ### Önerilen kurulum akışı
439
+ #### Adım 3: Framework'ü Derle
440
+ ```bash
441
+ npm run enderun:build
442
+ ```
236
443
 
444
+ #### Adım 4: Kurulumu Doğrula
237
445
  ```bash
238
- npx agent-enderun init gemini
239
- npm install && npm run enderun:build
240
446
  agent-enderun check
241
447
  ```
242
448
 
243
- ## CLI Hızlı Referans
449
+ Beklenen çıktı:
450
+ ```
451
+ ✅ Framework aktif (v0.2.0)
452
+ ✅ MCP Sunucu hazır
453
+ ✅ Paylaşılan türler derlenmiş
454
+ ✅ Agent logları başlatılmış
455
+ ✅ PROJECT_MEMORY.md bulundu
456
+ ```
244
457
 
245
- | Komut | Amaç |
246
- | --- | --- |
247
- | `npx agent-enderun init <adapter>` | Çerçeveyi ve gizli adaptör dosyalarını kurar |
248
- | `agent-enderun check` | Çerçeve sağlığını, hafızayı, kontratları ve build çıktısını doğrular |
249
- | `agent-enderun trace:new "desc"` | Yeni bir görev Trace ID'si oluşturur |
250
- | `agent-enderun verify-contract` | paylaşılan tip hash'ini doğrular |
251
- | `npm run enderun:build` | shared-types ve framework-mcp paketlerini derler |
458
+ ---
252
459
 
253
- ## Tipik akışı
460
+ ## 🎯 Şu Anda Yapabileceğiniz İşler
254
461
 
255
- 1. `npx agent-enderun init gemini` ile başlatın.
256
- 2. `docs/project-docs.md` içinde gereksinimleri yazın.
257
- 3. `docs/tech-stack.md` içinde teknoloji ve mimariyi doğrulayın.
258
- 4. `@manager` ajandan yeni bir görev başlatmasını isteyin (ajan `agent-enderun trace:new` komutunu otomatik çalıştıracaktır).
259
- 5. `manager` ajanın işleri Trace ID kullanarak ilgili uzman ajanlara yönlendirmesini bekleyin.
260
- 6. Her değişikliği `.enderun/PROJECT_MEMORY.md` içinde kaydedin.
462
+ ### Projeyi Başlat
463
+ ```bash
464
+ npx agent-enderun init gemini
465
+ ```
261
466
 
262
- ## Yeni gelenler için
467
+ ### Sağlık Durumunu Kontrol Et
468
+ ```bash
469
+ agent-enderun check # Tam kontrol
470
+ agent-enderun check:security # Sadece güvenlik
471
+ agent-enderun check:compliance # Sadece uyum
472
+ ```
263
473
 
264
- Her yazılımcıya şunu iletin:
474
+ ### Proje Durumunu Görüntüle
475
+ ```bash
476
+ agent-enderun status
477
+ ```
265
478
 
266
- - Önce `ENDERUN.md` okuyun.
267
- - Her görev bir Trace ID gerektirir.
268
- - API veri tiplerini elle yazmayın; `shared-types` kullanın.
269
- - Frontend’de üçüncü taraf UI kütüphaneleri kullanmayın.
270
- - AI adaptör yapılandırmaları gizli dizinlerde tutulur.
479
+ ### Yeni Görev Oluştur
480
+ ```bash
481
+ agent-enderun trace:new "Kullanıcı Doğrulama Uygulaması" backend P1
482
+ ```
271
483
 
272
- ## Sorun giderme
484
+ ### API Kontratlarını Doğrula
485
+ ```bash
486
+ agent-enderun verify-contract
487
+ ```
273
488
 
274
- - `agent-enderun init` kurulum sırasında hata veriyorsa doğru paket yöneticisi ile yeniden çalıştırın.
275
- - `agent-enderun check` build artefaktları eksik diyorsa `npm run enderun:build` çalıştırın.
276
- - Kontrat hash'leri uyuşmuyorsa `npm run verify-contract` çalıştırın ve `packages/shared-types/contract.version.json` güncelleyin.
489
+ ---
490
+
491
+ ## 🏗️ Temel Mimari
492
+
493
+ Agent Enderun **4 entegre katmandan** oluşur:
494
+
495
+ ### Katman 1: Yönetişim (.enderun/)
496
+ - `ENDERUN.md` — Anayasa (bunu ilk oku!)
497
+ - `PROJECT_MEMORY.md` — Proje durumu
498
+ - `agents/` — 8 ajan rolü tanımları
499
+ - `logs/` — Denetim kaydı
500
+ - `knowledge/` — 16+ teknik rehberi
501
+ - `docs/api/` — API sözleşmeleri
502
+
503
+ ### Katman 2: Framework Çekirdeği
504
+ - `packages/framework-mcp/` — 40+ MCP aracı
505
+ - `packages/shared-types/` — Paylaşılan türler (sözleşme)
506
+ - `bin/cli.js` — CLI başlatıcısı
507
+
508
+ ### Katman 3: Dokümantasyon
509
+ - `docs/tech-stack.md` — Teknoloji kararları
510
+ - `docs/project-docs.md` — Ürün gereksinimleri
511
+ - Ajanlar bu dosyaları okurlar
512
+
513
+ ### Katman 4: Uygulamalarınız
514
+ - `apps/backend/` — Backend uygulaması (siz oluşturun)
515
+ - `apps/web/` — Frontend uyguması (siz oluşturun)
516
+
517
+ ---
518
+
519
+ ## 🎓 Ajan Akademisi — 8 Uzman Rol
277
520
 
278
- ## Katkıda bulunma ve genişletme
521
+ | Ajan | Uzmanlık | Görev |
522
+ |---|---|---|
523
+ | **@manager** | Orkestrasyoun | Faz yönetimi, trace ID, görev delegasyonu |
524
+ | **@analyst** | Kalite Kontrol | Güvenlik denetimi, uyum kontrolü, kod incelemesi |
525
+ | **@backend** | Veri Mimarisi | Veritabanı, API kontratları, Kysely standartları |
526
+ | **@frontend** | UI Geliştirme | React, Panda CSS, bileşen tasarımı |
527
+ | **@explorer** | Kod Zekası | Bağımlılıklar, karmaşıklık, ölü kod |
528
+ | **@git** | Repository Ustası | Semantik commit'ler, branch yönetimi |
529
+ | **@mobile** | Mobil Uygulamalar | React Native, Expo, iOS/Android |
530
+ | **@native** | Yerel Uygulamalar | Tauri, Electron, sistem entegrasyonu |
279
531
 
280
- Agent Enderun şu yollarla genişletilebilir:
532
+ ---
281
533
 
282
- - yeni adaptör dizinleri ekleyerek (`.gemini/`, `.claude/`, `.cursor/`, `.codex/`)
283
- - `.enderun/agents` altına yeni ajan SOP'ları ekleyerek
284
- - `.enderun/docs/api/` altına yeni API sözleşmeleri ekleyerek
285
- - `packages/shared-types/src` içindeki paylaşılan tipleri genişleterek
534
+ ## Komple Kurulum Kontrol Listesi
286
535
 
287
- Yeni bir özellik ekliyorsanız, bunu `CHANGELOG.md` içinde belgeleyin ve mevcut sürüm başlığını koruyun.
536
+ - [ ] **Node.js 20+** yüklü (`node --version`)
537
+ - [ ] **npm 9+** yüklü (`npm --version`)
538
+ - [ ] **Git** başlatılmış (`git init`)
539
+ - [ ] **Framework yüklü** (`npm install && npm run enderun:build`)
540
+ - [ ] **Sağlık kontrolü geçti** (`agent-enderun check` ✅ gösteriyor)
541
+ - [ ] **İlk görev oluşturuldu** (`agent-enderun trace:new "Görev" backend P1`)
542
+ - [ ] **Doklar oluşturuldu** (`docs/` klasörüne dosya ekledim)
543
+ - [ ] **MCP bağlandı** (ajanlar araçları kullanabiliyor)
288
544
 
289
545
  ---
290
546
 
291
- ## License
547
+ ## 🚀 İlk Gerçek Görev
548
+
549
+ Kurulum tamamlandıktan sonra bunu deneyin:
550
+
551
+ ```bash
552
+ # Adım 1: Gerçek gereksinim yazın
553
+ echo "# Kullanıcı Doğrulaması
554
+
555
+ JWT tabanlı kimlik doğrulama sistemi kurun.
556
+ - Email/şifre girişi
557
+ - Oturumu kapat endpoint'i
558
+ - Token yenileme mekanizması
559
+ " > docs/requirements.md
560
+
561
+ # Adım 2: Görev oluşturun
562
+ agent-enderun trace:new "Auth Modülü Uygula" backend P1
563
+
564
+ # Adım 3: Ajanlar sizin için çalışır
565
+ # (Otomatik olarak docs/requirements.md okurlar)
566
+ ```
567
+
568
+ ---
569
+
570
+ ## 📁 Proje Yapısı
571
+
572
+ ```
573
+ agent-enderun/
574
+ ├── docs/ ← Ajanların okuyacağı dokümantasyon
575
+ ├── packages/
576
+ │ ├── shared-types/ ← Paylaşılan türler (sözleşme)
577
+ │ └── framework-mcp/ ← MCP sunucusu (40+ araç)
578
+ ├── apps/ ← Uygulamalarınız (siz oluşturun)
579
+ ├── .enderun/ ← Yönetişim dosyaları
580
+ │ ├── ENDERUN.md ← Anayasa (OKUNMALI)
581
+ │ ├── PROJECT_MEMORY.md ← Proje durumu
582
+ │ ├── agents/ ← 8 ajan tanımı
583
+ │ ├── logs/ ← Denetim kaydı
584
+ │ ├── knowledge/ ← 16+ rehber
585
+ │ └── docs/api/ ← API sözleşmeleri
586
+ └── bin/
587
+ └── cli.js ← CLI giriş noktası
588
+ ```
589
+
590
+ ---
591
+
592
+ ## 💡 Sıkça Sorulan Sorular
593
+
594
+ ### S: "Sözleşme-ilk" ne demek?
595
+ **C:** Tüm API şekilleri ve alan modelleri `packages/shared-types` içinde **kod yazılmadan önce** tanımlanır. Frontend ve backend aynı türleri kullanır.
596
+
597
+ ### S: Ajanlar bütün bunları anlıyor mu?
598
+ **C:** Evet. Her işlem öncesi şunları okurlar:
599
+ 1. `ENDERUN.md` (anayasa)
600
+ 2. `.enderun/PROJECT_MEMORY.md` (proje durumu)
601
+ 3. `docs/` dosyaları (gereksinimler)
602
+ 4. `.enderun/knowledge/` (teknik rehberler)
603
+
604
+ ### S: AI adaptörü kullanmak zorunlu mu?
605
+ **C:** Hayır. Framework, AI'sız da işlev görür. Faz ilerleme, denetim kaydı ve tür disiplini zorunludur.
606
+
607
+ ### S: MCP araçlarını genişletebilir miyim?
608
+ **C:** Evet. `packages/framework-mcp/src/tools/` klasörüne yeni dosya ekleyin.
609
+
610
+ ### S: Kendi ajanlarımı ekleyebilir miyim?
611
+ **C:** Evet. `.enderun/agents/` klasörüne `.md` dosyası oluşturun ve CLI mapping'ini güncelleyin.
612
+
613
+ ### S: Üretim için hazır mı?
614
+ **C:** Framework hazır. `apps/` klasörü tamamen sizin.
615
+
616
+ ---
617
+
618
+ ## 🔗 Önce Okumanız Gereken Dosyalar
619
+
620
+ 1. **`.enderun/ENDERUN.md`** — Anayasa
621
+ 2. **`.enderun/PROJECT_MEMORY.md`** — Proje durumu
622
+ 3. **`docs/tech-stack.md`** — Teknoloji kararları
623
+ 4. **`packages/shared-types/src/index.ts`** — Sözleşme (türler)
624
+ 5. **`README.md`** — Bu dosya
625
+
626
+ ---
627
+
628
+ ## 📞 Destek & Katkı
629
+
630
+ ### Sorun Bildir
631
+ Net adımlarla ve versiyon numarası ile sorun bildir.
632
+
633
+ ### Katkıda Bulun
634
+ 1. `.enderun/ENDERUN.md` oku
635
+ 2. Agent rolü yönergelerine uyun
636
+ 3. Semantik commit'ler gönder
637
+ 4. Testleri geç: `npm run enderun:build`
638
+
639
+ ### Lisans
640
+ MIT © 2026 Yusuf BEKAR
641
+ ```bash
642
+ agent-enderun status
643
+ ```
644
+
645
+ ### 4. Advanced Intelligence Commands
646
+ ```bash
647
+ # Run Security Audit
648
+ agent-enderun check:security
649
+
650
+ # Generate Dependency Graph
651
+ agent-enderun explorer:graph
652
+
653
+ # Get Commit Suggestion
654
+ agent-enderun git:commit [TRACE-ID]
655
+ ```
656
+
657
+ ---
658
+
659
+ ## 📂 Consolidated Framework Structure (`.enderun/`)
660
+
661
+ All governance and engineering assets are consolidated under the framework directory for a clean project root.
662
+
663
+ ```text
664
+ .
665
+ ├── .enderun/
666
+ │ ├── ENDERUN.md # Supreme Law (Constitution)
667
+ │ ├── PROJECT_MEMORY.md # Working Memory & History
668
+ │ ├── BRAIN_DASHBOARD.md # Intelligence & Performance Stats
669
+ │ ├── cli-commands.json # Agent-to-CLI Mapping
670
+ │ ├── agents/ # 8 Specialized Agent SOPs
671
+ │ ├── knowledge/ # 17+ Enterprise Knowledge Articles
672
+ │ ├── docs/ # API Contracts, Security, Privacy, Strategy
673
+ │ ├── logs/ # Traceable structured JSON logs
674
+ │ ├── benchmarks/ # Performance metrics
675
+ │ └── monitoring/ # System health hooks
676
+ ├── bin/ # CLI Entry Point
677
+ ├── packages/ # Shared Types & MCP Engine
678
+ └── apps/ # Production Modules (Backend, Web, Mobile)
679
+ ```
680
+
681
+ ---
682
+
683
+ ## 🛡️ Engineering Standards
684
+
685
+ - **Zero Mock Policy:** Placeholders are forbidden. Every line of code must be functional.
686
+ - **Branded Types:** IDs must be type-safe (e.g., `UserID` vs `string`).
687
+ - **Panda CSS Only:** Zero-runtime CSS-in-JS for high-performance UI.
688
+ - **Contract-First:** Schemas are defined in `shared-types` BEFORE implementation.
689
+
690
+ ---
292
691
 
293
- MIT - (c) 2026 Yusuf BEKAR
692
+ ## 📜 License
693
+ MIT © 2026 Yusuf BEKAR — **Agent Enderun: The Future of AI Governance.**