agent-enderun 0.5.0 → 0.5.2

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 (84) hide show
  1. package/.enderun/BRAIN_DASHBOARD.md +0 -0
  2. package/.enderun/PROJECT_MEMORY.md +40 -1
  3. package/.enderun/STATUS.md +2 -0
  4. package/.enderun/agents/analyst.md +8 -8
  5. package/.enderun/agents/backend.md +11 -11
  6. package/.enderun/agents/explorer.md +4 -4
  7. package/.enderun/agents/frontend.md +7 -7
  8. package/.enderun/agents/git.md +5 -5
  9. package/.enderun/agents/manager.md +12 -12
  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 +0 -0
  14. package/.enderun/config.json +0 -0
  15. package/.enderun/docs/api/README.md +0 -0
  16. package/.enderun/docs/api/auth.md +0 -0
  17. package/.enderun/docs/api/errors.md +0 -0
  18. package/.enderun/docs/error-handling.md +0 -0
  19. package/.enderun/docs/privacy.md +0 -0
  20. package/.enderun/docs/project-docs.md +0 -0
  21. package/.enderun/docs/security.md +0 -0
  22. package/.enderun/docs/tech-stack.md +38 -10
  23. package/.enderun/docs/troubleshooting.md +0 -0
  24. package/.enderun/knowledge/api_design_rules.md +0 -0
  25. package/.enderun/knowledge/async_error_handling.md +0 -0
  26. package/.enderun/knowledge/branded_types_pattern.md +7 -0
  27. package/.enderun/knowledge/code_review_checklist.md +0 -0
  28. package/.enderun/knowledge/contract_versioning.md +0 -0
  29. package/.enderun/knowledge/database_migration.md +0 -0
  30. package/.enderun/knowledge/deployment_checklist.md +0 -0
  31. package/.enderun/knowledge/git_commit_strategy.md +0 -0
  32. package/.enderun/knowledge/hermes_protocol.md +59 -0
  33. package/.enderun/knowledge/legacy_onboarding.md +0 -0
  34. package/.enderun/knowledge/monitoring_setup.md +0 -0
  35. package/.enderun/knowledge/performance_guidelines.md +0 -0
  36. package/.enderun/knowledge/repository_patterns.md +0 -0
  37. package/.enderun/knowledge/responsive_design_standards.md +0 -0
  38. package/.enderun/knowledge/security_scanning.md +0 -0
  39. package/.enderun/knowledge/testing_standards.md +1 -1
  40. package/.enderun/knowledge/troubleshooting_guide.md +0 -0
  41. package/.enderun/knowledge/zero_ui_library_policy.md +8 -4
  42. package/.enderun/logs/.gitkeep +0 -0
  43. package/.enderun/messages/.gitkeep +0 -0
  44. package/.enderun/monitoring/.gitkeep +0 -0
  45. package/.env.example +0 -0
  46. package/ENDERUN.md +10 -5
  47. package/LICENSE +0 -0
  48. package/README.md +93 -45
  49. package/bin/cli.js +633 -3
  50. package/bin/update-contract.js +63 -0
  51. package/claude.md +2 -2
  52. package/codex.md +2 -2
  53. package/cursor.md +2 -2
  54. package/docs/README.md +23 -0
  55. package/gemini-extension.json +8 -2
  56. package/gemini.md +2 -2
  57. package/mcp.json +0 -0
  58. package/package.json +4 -3
  59. package/packages/framework-mcp/dist/index.js +0 -0
  60. package/packages/framework-mcp/dist/schemas.js +16 -0
  61. package/packages/framework-mcp/dist/tools/contract.js +13 -7
  62. package/packages/framework-mcp/dist/tools/framework.js +25 -0
  63. package/packages/framework-mcp/dist/tools/knowledge.js +75 -11
  64. package/packages/framework-mcp/dist/tools/messages.js +73 -11
  65. package/packages/framework-mcp/dist/tools/repository.js +24 -3
  66. package/packages/framework-mcp/dist/utils.js +2 -2
  67. package/packages/framework-mcp/package.json +2 -2
  68. package/packages/framework-mcp/src/schemas.ts +20 -0
  69. package/packages/framework-mcp/src/tools/contract.ts +14 -7
  70. package/packages/framework-mcp/src/tools/framework.ts +24 -0
  71. package/packages/framework-mcp/src/tools/knowledge.ts +86 -12
  72. package/packages/framework-mcp/src/tools/messages.ts +80 -11
  73. package/packages/framework-mcp/src/tools/repository.ts +24 -3
  74. package/packages/framework-mcp/src/utils.ts +2 -2
  75. package/packages/shared-types/README.md +0 -0
  76. package/packages/shared-types/contract.version.json +6 -3
  77. package/packages/shared-types/package.json +4 -4
  78. package/packages/shared-types/src/index.ts +0 -0
  79. package/packages/shared-types/tsconfig.json +0 -0
  80. package/panda.config.ts +5 -1
  81. package/tsconfig.json +0 -0
  82. package/.enderun/ENDERUN.md +0 -205
  83. package/packages/framework-mcp/dist/index.d.ts +0 -1
  84. package/packages/shared-types/dist/index.d.ts.map +0 -1
@@ -0,0 +1,59 @@
1
+ # 📡 Hermes Messaging Protocol
2
+
3
+ The Hermes protocol defines the standardized way for Agent Enderun specialized agents to communicate, delegate tasks, and share state updates.
4
+
5
+ ---
6
+
7
+ ## 🏗️ Message Structure
8
+
9
+ Every message sent via `send_agent_message` must follow this conceptual structure (enforced by the MCP tool):
10
+
11
+ ```json
12
+ {
13
+ "timestamp": "ISO-8601",
14
+ "from": "@agent_name",
15
+ "to": "@agent_name",
16
+ "category": "ACTION | DELEGATION | INFO | ALERT",
17
+ "priority": "LOW | MEDIUM | HIGH | URGENT",
18
+ "traceId": "ULID",
19
+ "content": "Message content",
20
+ "status": "PENDING | READ | ACKNOWLEDGED | COMPLETED"
21
+ }
22
+ ```
23
+
24
+ ---
25
+
26
+ ## 📂 Message Categories
27
+
28
+ | Category | Usage | Expectation |
29
+ | :--- | :--- | :--- |
30
+ | **ACTION** | Requesting a specific action (e.g., "Run security scan"). | Must be acknowledged and logged in `STATUS.md`. |
31
+ | **DELEGATION** | Handing off a sub-task (e.g., "@backend, create the schema"). | Becomes the primary task for the recipient. |
32
+ | **INFO** | Sharing architectural decisions or updates. | No direct action required, but must be read. |
33
+ | **ALERT** | Critical blockers or security violations. | Immediate attention required by `@manager`. |
34
+
35
+ ---
36
+
37
+ ## 🚦 Priority Levels
38
+
39
+ - **URGENT:** Must be handled in the current turn.
40
+ - **HIGH:** Top of the queue for the next turn.
41
+ - **MEDIUM:** Standard task priority (Default).
42
+ - **LOW:** Non-critical background updates.
43
+
44
+ ---
45
+
46
+ ## 🔄 Lifecycle Protocol
47
+
48
+ 1. **Dispatch:** Agent calls `send_agent_message`. Message is saved in `{{FRAMEWORK_DIR}}/messages/recipient.json`.
49
+ 2. **Notification:** The recipient agent checks their inbox during their turn via `read_agent_messages`.
50
+ 3. **Acknowledgment:** For `ACTION` or `DELEGATION`, the recipient should send an `INFO` message back once started or completed.
51
+ 4. **Logging:** All critical communications must be summarized in the agent's log file (`{{FRAMEWORK_DIR}}/logs/agent.json`).
52
+
53
+ ---
54
+
55
+ ## 🛡️ Hermes Safety Rules
56
+
57
+ - **No circular delegation:** Agent A cannot delegate X to Agent B if B delegated Y (a dependency of X) to A.
58
+ - **Trace ID Integrity:** Every message MUST include a valid `traceId` from `PROJECT_MEMORY.md`.
59
+ - **Atomic Content:** One message per specific intent. Avoid monolithic "do everything" messages.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,6 +2,6 @@
2
2
 
3
3
  ## Rules
4
4
  1. **Unit Tests**: Mandatory for business logic in services and utils.
5
- 2. **Integration Tests**: Required for API endpoints using real DB (testcontainers).
5
+ 2. **Integration Tests**: Required for API endpoints using a real DB or service-compatible test backend.
6
6
  3. **Naming**: Files must end in `.test.ts`.
7
7
  4. **Coverage**: Aim for >80% coverage in core packages.
File without changes
@@ -1,9 +1,13 @@
1
- # Zero UI Library Policy
1
+ ---
2
+ title: Zero UI Library Policy
3
+ tags: [design, security, compliance]
4
+ related: [responsive_design_standards]
5
+ last_updated: 2026-05-15
6
+ ---
2
7
 
3
- Do not use Shadcn, MUI, or any other UI library. Build components from scratch using **Panda CSS** tokens defined in `panda.config.ts`.
8
+ The project strictly follows the Zero UI Library Policy. Importing external UI frameworks like shadcn/ui, MUI, or Chakra UI is forbidden. All styling must be implemented using Panda CSS to ensure zero-runtime overhead and complete control over the design system.
4
9
 
5
10
  ## Rationale
6
11
  - **Performance:** Zero-runtime CSS extraction.
7
12
  - **Type Safety:** Type-safe styles and tokens.
8
- - **Originality:** Unique and premium aesthetics without "library look".
9
- - **Control:** Full control over responsiveness and accessibility.
13
+ - **Originality:** Unique and premium aesthetics without "library look".
File without changes
File without changes
File without changes
package/.env.example CHANGED
File without changes
package/ENDERUN.md CHANGED
@@ -1,4 +1,4 @@
1
- # Agent Enderun (v0.5.0)
1
+ # Agent Enderun (v0.5.2)
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)
@@ -22,7 +22,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
22
22
  2. **Check `{{FRAMEWORK_DIR}}/docs/` Folder:** Verify the existence of the `{{FRAMEWORK_DIR}}/docs/` folder (located within the framework directory).
23
23
  3. **Absorb Context:** Read `{{FRAMEWORK_DIR}}/docs/tech-stack.md`. If it is empty, ask the user to fill it before proceeding.
24
24
  4. **Demand Context:** If the `{{FRAMEWORK_DIR}}/docs/` folder does not exist, ask the user for project context and target audience information before writing any code.
25
- 5. **Mandatory @manager Activation:** You MUST act as `@manager` for the initial response to any new user request.
25
+ 5. **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.
26
26
 
27
27
  **NEVER SKIP THIS STEP.** Do not assume context; read first, then act as @manager.
28
28
 
@@ -30,12 +30,17 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
30
30
 
31
31
  ## CORE PRINCIPLES
32
32
 
33
+ - **Permanent @manager Identity:** The AI assistant is ALWAYS the `@manager` (Team-Lead) 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`) overrides this and activates that specialist directly.
33
34
  - **Team-Lead MANDATORY Orchestration:** Every user request MUST first be handled by the `@manager` (Team-Lead) agent. The `@manager` is responsible for analyzing intent, updating `PROJECT_MEMORY.md`, and delegating tasks to specialists. Agents are FORBIDDEN from acting on a general request without `@manager` delegation.
34
- - **Contract-First Approach:** Communication between Backend and Frontend must always be defined via schemas first. The `packages/shared-types/contract.version.json` file must be kept in MAJOR.MINOR format and updated with every change. The `@backend-architect` is responsible for updating this file.
35
+ - **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.
36
+ - **Immediate Memory Sync:** Every state change, decision, or improved capability must be reflected in the memory files immediately.
37
+ - **Contract-First Agent Evolution:** Tools and SOPs used by agents must be defined via schemas and contracts first.
35
38
  - **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).
36
39
  - **Branded Types Law:** All IDs (UserID, ProjectID, etc.) must be in the "Branded Types" format defined under `packages/shared-types`. Using plain strings or numbers is forbidden.
37
40
  - **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.
38
41
  - **Audit Logging Necessity:** Every critical action must be logged traceably under the `{{FRAMEWORK_DIR}}/logs/` folder.
42
+ - **Design Continuity & Response Policy:** All UI changes MUST be responsive (Mobile-First + Fluid) and surgical. Unnecessary overhauls of existing layouts are strictly forbidden.
43
+ - **Shared Component First Policy:** Defining common UI elements (Button, Input, Card, etc.) inside page files is FORBIDDEN. All atomic UI components must be created in a shared directory (e.g., `apps/web/src/components/ui/`) and reused across the project.
39
44
  - **File Ownership Rule:** Each file is the responsibility of a single agent.
40
45
  - **CLI Command Mapping:** All CLI commands in the project must be defined in the `{{FRAMEWORK_DIR}}/cli-commands.json` file and assigned to the relevant agent.
41
46
  - **Exit Code Standard:** Standard exit codes (e.g., 64: User Error, 70: Internal Error) must be used in error situations.
@@ -59,7 +64,7 @@ Before writing any code or design, check `{{FRAMEWORK_DIR}}/docs/tech-stack.md`:
59
64
  | Environment (prototype / production) | Ask — do not proceed |
60
65
  | Auth required? | Ask — do not proceed |
61
66
  | Monorepo or separate repos? | Ask — do not proceed |
62
- | Deploy target (Vercel / Docker / Bare metal)? | Ask — do not proceed |
67
+ | Deploy target (Vercel / Bare metal / Managed platform)? | Ask — do not proceed |
63
68
  | i18n (multi-language) required? | Ask — do not proceed |
64
69
  | API versioning strategy? | Ask — do not proceed |
65
70
  | Accessibility level (WCAG AA / AAA)? | Default AA — ask if different |
@@ -198,4 +203,4 @@ All APIs are versioned via the URL path (`/api/v1/...`). The `packages/shared-ty
198
203
  - Delete `.lock` and the message file immediately after processing.
199
204
  7. **Phase Rollback Protocol:** If contracts are insufficient, return to Phase 1. All agents become `WAITING` and write `CONTRACT_CHANGED` to their log.
200
205
  8. **Next.js Ownership Rule:** `apps/web/api/` and `server/actions/` -> @backend-architect. `apps/web/(routes)/` and `components/` -> @frontend-specialist.
201
- 9. **Zero Mock Test Policy:** Real database usage via Docker (TestContainers) is mandatory for integration tests.
206
+ 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.
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # 🏛️ Agent Enderun v0.5.0
1
+ # 🏛️ Agent Enderun (v0.5.2) — The Supreme AI Governance Framework
2
2
 
3
3
  **The Supreme AI Governance & Orchestration Framework for Enterprise Development**
4
4
 
@@ -10,6 +10,22 @@
10
10
 
11
11
  ## Executive Summary
12
12
 
13
+ Agent Enderun, yazılım ekipleri için tasarlanmış, **Anayasal Yönetişim (Constitutional Governance)** ve **Çoklu Ajan Orkestrasyonu (Multi-Agent Orchestration)** sağlayan kurumsal düzeyde bir framework'tür.
14
+
15
+ ### 🚀 v0.5.2: Zero-Config & Auto-Wiring
16
+ - **Auto-Wiring:** CLI automatically configures `gemini-extension.json` for MCP.
17
+ - **Automated Build:** Framework now compiles itself during initialization.
18
+ - **Smart Directory Logic:** Enhanced separation between framework and project docs.
19
+
20
+ ### 🚀 v0.5.1: The Academy & Hermes Upgrade
21
+
22
+ Bu sürümle birlikte Agent Enderun, basit bir yönetişim aracından otonom bir **Ajan Akademisi**'ne dönüşmüştür:
23
+
24
+ - **📡 Hermes Messaging Protocol:** Ajanlar arası kategorize edilmiş (Action/Delegation/Info) ve önceliklendirilmiş iletişim bus'ı.
25
+ - **📚 Obsidian-Style LLM Wiki:** YAML metadata destekli, ilişkisel ve graf tabanlı teknik bilgi bankası yönetimi.
26
+ - **🛡️ Contract-First Automation:** API ve tip kontratlarının SHA-256 ile otomatik doğrulanması.
27
+ - **🤖 MCP Intelligence:** Bilgi grafiği üretme, inbox istatistikleri ve anlık sistem sağlığı denetimi sağlayan gelişmiş MCP araçları.
28
+
13
29
  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:
14
30
 
15
31
  - **Agent-Led Orchestration**: 8 specialized AI agent roles with defined responsibilities
@@ -37,7 +53,7 @@ git clone https://github.com/ybekar/agent-enderun.git
37
53
  cd agent-enderun
38
54
 
39
55
  # Option B: Or use as npm package (when published)
40
- npx agent-enderun init gemini
56
+ npx agent{{FRAMEWORK_DIR}} init gemini
41
57
  ```
42
58
 
43
59
  #### Step 2: Install Dependencies
@@ -52,7 +68,7 @@ npm run enderun:build
52
68
 
53
69
  #### Step 4: Verify Setup
54
70
  ```bash
55
- agent-enderun check
71
+ agent{{FRAMEWORK_DIR}} check
56
72
  ```
57
73
 
58
74
  Expected output:
@@ -66,42 +82,58 @@ Expected output:
66
82
 
67
83
  ---
68
84
 
85
+ ## 🤖 Adapter Automation Levels
86
+
87
+ Choose your AI adapter when running `init`. Each has a different automation level:
88
+
89
+ | Adapter | Command | Automation | Notes |
90
+ | :--- | :--- | :---: | :--- |
91
+ | **Gemini** | `init gemini` | ✅ Full | MCP auto-wired into `gemini-extension.json`. One command, done. |
92
+ | **Cursor** | `init cursor` | ✅ Full | `cursor.md` auto-synced to `.cursorrules`. One command, done. |
93
+ | **Codex** | `init codex` | ✅ Full | Framework files placed in `.enderun/`. One command, done. |
94
+ | **Claude** | `init claude` | ⚠️ Semi | After init, run one extra command shown in the terminal to register MCP tools. |
95
+
96
+ > **Claude Note:** Claude Code requires explicit user approval for MCP tools due to its security model.
97
+ > After `init claude`, copy and run the `claude config add ...` command shown in the terminal output.
98
+
99
+ ---
100
+
69
101
  ## 🎯 What You Can Do Right Now
70
102
 
71
103
  ### Initialize Your Project
72
104
  ```bash
73
- # Creates .enderun/ directory with governance files
74
- npx agent-enderun init gemini
105
+ # Creates {{FRAMEWORK_DIR}}/ directory with governance files
106
+ npx agent{{FRAMEWORK_DIR}} init gemini
75
107
  ```
76
108
 
77
109
  ### Check Project Health
78
110
  ```bash
79
111
  # Runs security audit, compliance check, and dependency analysis
80
- agent-enderun check
112
+ agent{{FRAMEWORK_DIR}} check
81
113
 
82
114
  # Just security
83
- agent-enderun check:security
115
+ agent{{FRAMEWORK_DIR}} check:security
84
116
 
85
117
  # Just compliance
86
- agent-enderun check:compliance
118
+ agent{{FRAMEWORK_DIR}} check:compliance
87
119
  ```
88
120
 
89
121
  ### View Project Status
90
122
  ```bash
91
123
  # Shows current phase, active agents, and blockers
92
- agent-enderun status
124
+ agent{{FRAMEWORK_DIR}} status
93
125
  ```
94
126
 
95
127
  ### Create a New Task
96
128
  ```bash
97
129
  # Creates a ULID-based trace for a new feature
98
- agent-enderun trace:new "Implement User Authentication" backend P1
130
+ agent{{FRAMEWORK_DIR}} trace:new "Implement User Authentication" backend P1
99
131
  ```
100
132
 
101
133
  ### Verify API Contracts
102
134
  ```bash
103
135
  # Ensures shared-types and API docs are synchronized
104
- agent-enderun verify-contract
136
+ agent{{FRAMEWORK_DIR}} verify-contract
105
137
  ```
106
138
 
107
139
  ---
@@ -112,7 +144,7 @@ Agent Enderun consists of **4 integrated layers**:
112
144
 
113
145
  ### Layer 1: Governance ({{FRAMEWORK_DIR}}/)
114
146
  ```
115
- .enderun/
147
+ {{FRAMEWORK_DIR}}/
116
148
  ├── ENDERUN.md ← The "Supreme Law" (read this first!)
117
149
  ├── PROJECT_MEMORY.md ← Single source of truth for state
118
150
  ├── STATUS.md ← Agent status dashboard
@@ -237,8 +269,8 @@ Agents use the `search_knowledge_base` tool to find answers to common questions.
237
269
  - [ ] **npm 9+** installed (`npm --version`)
238
270
  - [ ] **Git** initialized (`git init`)
239
271
  - [ ] **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`)
272
+ - [ ] **Health check passed** (`agent{{FRAMEWORK_DIR}} check` shows ✅)
273
+ - [ ] **First task created** (`agent{{FRAMEWORK_DIR}} trace:new "Your task" backend P1`)
242
274
  - [ ] **Docs created** (add files to `docs/` for agents to read)
243
275
  - [ ] **MCP connected** (agents can now use tools)
244
276
 
@@ -259,7 +291,7 @@ Implement JWT-based authentication with refresh tokens.
259
291
  " > docs/requirements.md
260
292
 
261
293
  # Step 2: Create a task
262
- agent-enderun trace:new "Implement Auth Module" backend P1
294
+ agent{{FRAMEWORK_DIR}} trace:new "Implement Auth Module" backend P1
263
295
 
264
296
  # Step 3: Agents read requirements and build
265
297
  # (They will automatically read docs/requirements.md)
@@ -270,7 +302,7 @@ agent-enderun trace:new "Implement Auth Module" backend P1
270
302
  ## 📁 Project Structure
271
303
 
272
304
  ```
273
- agent-enderun/
305
+ agent{{FRAMEWORK_DIR}}/
274
306
  ├── README.md ← This file
275
307
  ├── package.json ← Root npm config
276
308
  ├── bin/
@@ -298,7 +330,7 @@ agent-enderun/
298
330
  ├── apps/ ← Your applications (start here)
299
331
  │ ├── backend/ ← (you create this)
300
332
  │ └── web/ ← (you create this)
301
- └── .enderun/ ← Framework governance
333
+ └── {{FRAMEWORK_DIR}}/ ← Framework governance
302
334
  ├── ENDERUN.md ← Constitution (MANDATORY READ)
303
335
  ├── PROJECT_MEMORY.md ← State machine
304
336
  ├── STATUS.md ← Agent dashboard
@@ -351,7 +383,7 @@ agent-enderun/
351
383
  1. `ENDERUN.md` (the constitution)
352
384
  2. `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` (project state)
353
385
  3. `docs/` files (your requirements)
354
- 4. `.enderun/knowledge/` (technical guidelines)
386
+ 4. `{{FRAMEWORK_DIR}}/knowledge/` (technical guidelines)
355
387
 
356
388
  ### Q: What if I don't use an AI adapter?
357
389
  **A:** The framework still works as a **collaborative development platform**. You and your team use it to enforce:
@@ -364,7 +396,7 @@ agent-enderun/
364
396
  **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
397
 
366
398
  ### 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`.
399
+ **A:** Create a markdown file in `{{FRAMEWORK_DIR}}/agents/your-agent.md`, define the SOP, and add a CLI mapping in `{{FRAMEWORK_DIR}}/cli-commands.json`.
368
400
 
369
401
  ### Q: Is this production-ready?
370
402
  **A:** The **framework** is production-ready. Individual features (like `apps/`) depend on what you build. Start with `apps/backend` or `apps/web`.
@@ -374,7 +406,7 @@ agent-enderun/
374
406
  ## 🔗 Key Files to Read First
375
407
 
376
408
  1. **`{{FRAMEWORK_DIR}}/ENDERUN.md`** — The constitution (rules all agents must follow)
377
- 2. **`.enderun/PROJECT_MEMORY.md`** — Current project state and history
409
+ 2. **`{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md`** — Current project state and history
378
410
  3. **`docs/tech-stack.md`** — Technology decisions
379
411
  4. **`packages/shared-types/src/index.ts`** — The contract (types)
380
412
  5. **`README.md`** (this file) — How to use the framework
@@ -387,7 +419,7 @@ agent-enderun/
387
419
  File issues with clear reproduction steps and framework version.
388
420
 
389
421
  ### Contribute
390
- 1. Read `.enderun/ENDERUN.md`
422
+ 1. Read `{{FRAMEWORK_DIR}}/ENDERUN.md`
391
423
  2. Follow the agent role guidelines
392
424
  3. Submit PRs with semantic commit messages
393
425
  4. Ensure tests pass: `npm run enderun:build`
@@ -428,7 +460,7 @@ git clone https://github.com/ybekar/agent-enderun.git
428
460
  cd agent-enderun
429
461
 
430
462
  # Seçenek B: veya npm paketi olarak kullan
431
- npx agent-enderun init gemini
463
+ npx agent{{FRAMEWORK_DIR}} init gemini
432
464
  ```
433
465
 
434
466
  #### Adım 2: Bağımlılıkları Yükle
@@ -443,7 +475,7 @@ npm run enderun:build
443
475
 
444
476
  #### Adım 4: Kurulumu Doğrula
445
477
  ```bash
446
- agent-enderun check
478
+ agent{{FRAMEWORK_DIR}} check
447
479
  ```
448
480
 
449
481
  Beklenen çıktı:
@@ -461,33 +493,49 @@ Beklenen çıktı:
461
493
 
462
494
  ### Projeyi Başlat
463
495
  ```bash
464
- npx agent-enderun init gemini
496
+ npx agent{{FRAMEWORK_DIR}} init gemini
465
497
  ```
466
498
 
467
499
  ### Sağlık Durumunu Kontrol Et
468
500
  ```bash
469
- agent-enderun check # Tam kontrol
470
- agent-enderun check:security # Sadece güvenlik
471
- agent-enderun check:compliance # Sadece uyum
501
+ agent{{FRAMEWORK_DIR}} check # Tam kontrol
502
+ agent{{FRAMEWORK_DIR}} check:security # Sadece güvenlik
503
+ agent{{FRAMEWORK_DIR}} check:compliance # Sadece uyum
472
504
  ```
473
505
 
474
506
  ### Proje Durumunu Görüntüle
475
507
  ```bash
476
- agent-enderun status
508
+ agent{{FRAMEWORK_DIR}} status
477
509
  ```
478
510
 
479
511
  ### Yeni Görev Oluştur
480
512
  ```bash
481
- agent-enderun trace:new "Kullanıcı Doğrulama Uygulaması" backend P1
513
+ agent{{FRAMEWORK_DIR}} trace:new "Kullanıcı Doğrulama Uygulaması" backend P1
482
514
  ```
483
515
 
484
516
  ### API Kontratlarını Doğrula
485
517
  ```bash
486
- agent-enderun verify-contract
518
+ agent{{FRAMEWORK_DIR}} verify-contract
487
519
  ```
488
520
 
489
521
  ---
490
522
 
523
+ ## 🤖 Adaptör Otomasyon Seviyeleri
524
+
525
+ `init` komutunu çalıştırırken adaptörünüzü seçin. Her adaptörün otomasyon seviyesi farklıdır:
526
+
527
+ | Adaptör | Komut | Otomasyon | Not |
528
+ | :--- | :--- | :---: | :--- |
529
+ | **Gemini** | `init gemini` | ✅ Tam | MCP `gemini-extension.json`'a otomatik yazılır. Tek komut, bitti. |
530
+ | **Cursor** | `init cursor` | ✅ Tam | `cursor.md` otomatik olarak `.cursorrules`'a kopyalanır. Tek komut, bitti. |
531
+ | **Codex** | `init codex` | ✅ Tam | Framework dosyaları `.enderun/` dizinine yerleştirilir. Tek komut, bitti. |
532
+ | **Claude** | `init claude` | ⚠️ Yarı | Init sonrası terminalde gösterilen `claude config add ...` komutunu çalıştırmanız gerekir. |
533
+
534
+ > **Claude Notu:** Claude Code, güvenlik modeli gereği MCP araçlarının kullanıcı tarafından açıkça onaylanmasını zorunlu kılar.
535
+ > `init claude` sonrası terminal çıktısındaki `claude config add ...` komutunu kopyalayıp çalıştırın.
536
+
537
+ ---
538
+
491
539
  ## 🏗️ Temel Mimari
492
540
 
493
541
  Agent Enderun **4 entegre katmandan** oluşur:
@@ -537,8 +585,8 @@ Agent Enderun **4 entegre katmandan** oluşur:
537
585
  - [ ] **npm 9+** yüklü (`npm --version`)
538
586
  - [ ] **Git** başlatılmış (`git init`)
539
587
  - [ ] **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`)
588
+ - [ ] **Sağlık kontrolü geçti** (`agent{{FRAMEWORK_DIR}} check` ✅ gösteriyor)
589
+ - [ ] **İlk görev oluşturuldu** (`agent{{FRAMEWORK_DIR}} trace:new "Görev" backend P1`)
542
590
  - [ ] **Doklar oluşturuldu** (`docs/` klasörüne dosya ekledim)
543
591
  - [ ] **MCP bağlandı** (ajanlar araçları kullanabiliyor)
544
592
 
@@ -559,7 +607,7 @@ JWT tabanlı kimlik doğrulama sistemi kurun.
559
607
  " > docs/requirements.md
560
608
 
561
609
  # Adım 2: Görev oluşturun
562
- agent-enderun trace:new "Auth Modülü Uygula" backend P1
610
+ agent{{FRAMEWORK_DIR}} trace:new "Auth Modülü Uygula" backend P1
563
611
 
564
612
  # Adım 3: Ajanlar sizin için çalışır
565
613
  # (Otomatik olarak docs/requirements.md okurlar)
@@ -570,13 +618,13 @@ agent-enderun trace:new "Auth Modülü Uygula" backend P1
570
618
  ## 📁 Proje Yapısı
571
619
 
572
620
  ```
573
- agent-enderun/
621
+ agent{{FRAMEWORK_DIR}}/
574
622
  ├── docs/ ← Ajanların okuyacağı dokümantasyon
575
623
  ├── packages/
576
624
  │ ├── shared-types/ ← Paylaşılan türler (sözleşme)
577
625
  │ └── framework-mcp/ ← MCP sunucusu (40+ araç)
578
626
  ├── apps/ ← Uygulamalarınız (siz oluşturun)
579
- ├── .enderun/ ← Yönetişim dosyaları
627
+ ├── {{FRAMEWORK_DIR}}/ ← Yönetişim dosyaları
580
628
  │ ├── ENDERUN.md ← Anayasa (OKUNMALI)
581
629
  │ ├── PROJECT_MEMORY.md ← Proje durumu
582
630
  │ ├── agents/ ← 8 ajan tanımı
@@ -599,7 +647,7 @@ agent-enderun/
599
647
  1. `ENDERUN.md` (anayasa)
600
648
  2. `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` (proje durumu)
601
649
  3. `docs/` dosyaları (gereksinimler)
602
- 4. `.enderun/knowledge/` (teknik rehberler)
650
+ 4. `{{FRAMEWORK_DIR}}/knowledge/` (teknik rehberler)
603
651
 
604
652
  ### S: AI adaptörü kullanmak zorunlu mu?
605
653
  **C:** Hayır. Framework, AI'sız da işlev görür. Faz ilerleme, denetim kaydı ve tür disiplini zorunludur.
@@ -608,7 +656,7 @@ agent-enderun/
608
656
  **C:** Evet. `packages/framework-mcp/src/tools/` klasörüne yeni dosya ekleyin.
609
657
 
610
658
  ### S: Kendi ajanlarımı ekleyebilir miyim?
611
- **C:** Evet. `.enderun/agents/` klasörüne `.md` dosyası oluşturun ve CLI mapping'ini güncelleyin.
659
+ **C:** Evet. `{{FRAMEWORK_DIR}}/agents/` klasörüne `.md` dosyası oluşturun ve CLI mapping'ini güncelleyin.
612
660
 
613
661
  ### S: Üretim için hazır mı?
614
662
  **C:** Framework hazır. `apps/` klasörü tamamen sizin.
@@ -618,7 +666,7 @@ agent-enderun/
618
666
  ## 🔗 Önce Okumanız Gereken Dosyalar
619
667
 
620
668
  1. **`{{FRAMEWORK_DIR}}/ENDERUN.md`** — Anayasa
621
- 2. **`.enderun/PROJECT_MEMORY.md`** — Proje durumu
669
+ 2. **`{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md`** — Proje durumu
622
670
  3. **`docs/tech-stack.md`** — Teknoloji kararları
623
671
  4. **`packages/shared-types/src/index.ts`** — Sözleşme (türler)
624
672
  5. **`README.md`** — Bu dosya
@@ -631,7 +679,7 @@ agent-enderun/
631
679
  Net adımlarla ve versiyon numarası ile sorun bildir.
632
680
 
633
681
  ### Katkıda Bulun
634
- 1. `.enderun/ENDERUN.md` oku
682
+ 1. `{{FRAMEWORK_DIR}}/ENDERUN.md` oku
635
683
  2. Agent rolü yönergelerine uyun
636
684
  3. Semantik commit'ler gönder
637
685
  4. Testleri geç: `npm run enderun:build`
@@ -639,30 +687,30 @@ Net adımlarla ve versiyon numarası ile sorun bildir.
639
687
  ### Lisans
640
688
  MIT © 2026 Yusuf BEKAR
641
689
  ```bash
642
- agent-enderun status
690
+ agent{{FRAMEWORK_DIR}} status
643
691
  ```
644
692
 
645
693
  ### 4. Advanced Intelligence Commands
646
694
  ```bash
647
695
  # Run Security Audit
648
- agent-enderun check:security
696
+ agent{{FRAMEWORK_DIR}} check:security
649
697
 
650
698
  # Generate Dependency Graph
651
- agent-enderun explorer:graph
699
+ agent{{FRAMEWORK_DIR}} explorer:graph
652
700
 
653
701
  # Get Commit Suggestion
654
- agent-enderun git:commit [TRACE-ID]
702
+ agent{{FRAMEWORK_DIR}} git:commit [TRACE-ID]
655
703
  ```
656
704
 
657
705
  ---
658
706
 
659
- ## 📂 Consolidated Framework Structure (`.enderun/`)
707
+ ## 📂 Consolidated Framework Structure (`{{FRAMEWORK_DIR}}/`)
660
708
 
661
709
  All governance and engineering assets are consolidated under the framework directory for a clean project root.
662
710
 
663
711
  ```text
664
712
  .
665
- ├── .enderun/
713
+ ├── {{FRAMEWORK_DIR}}/
666
714
  │ ├── ENDERUN.md # Supreme Law (Constitution)
667
715
  │ ├── PROJECT_MEMORY.md # Working Memory & History
668
716
  │ ├── BRAIN_DASHBOARD.md # Intelligence & Performance Stats