agent-enderun 0.9.5 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.enderun/ENDERUN.md +1 -1
- package/.enderun/PROJECT_MEMORY.md +2 -21
- package/.enderun/STATUS.md +11 -7
- package/.enderun/agents/agent_army_schema.json +10 -10
- package/.enderun/agents/analyst.md +26 -0
- package/.enderun/agents/backend.md +34 -370
- package/.enderun/agents/database.md +24 -44
- package/.enderun/agents/devops.md +27 -189
- package/.enderun/agents/explorer.md +20 -123
- package/.enderun/agents/frontend.md +33 -348
- package/.enderun/agents/git.md +26 -112
- package/.enderun/agents/manager.md +29 -300
- package/.enderun/agents/mobile.md +30 -95
- package/.enderun/agents/native.md +29 -100
- package/.enderun/agents/quality.md +28 -118
- package/.enderun/agents/security.md +26 -0
- package/.enderun/config.json +1 -1
- package/.enderun/knowledge/analyst_reference_guide.md +31 -0
- package/.enderun/knowledge/backend_reference_guide.md +165 -0
- package/.enderun/knowledge/database_reference_guide.md +38 -0
- package/.enderun/knowledge/devops_reference_guide.md +43 -0
- package/.enderun/knowledge/explorer_reference_guide.md +34 -0
- package/.enderun/knowledge/frontend_reference_guide.md +64 -0
- package/.enderun/knowledge/git_reference_guide.md +51 -0
- package/.enderun/knowledge/manager_reference_guide.md +55 -0
- package/.enderun/knowledge/mobile_reference_guide.md +35 -0
- package/.enderun/knowledge/native_reference_guide.md +34 -0
- package/.enderun/knowledge/quality_reference_guide.md +42 -0
- package/.enderun/knowledge/security_reference_guide.md +35 -0
- package/.enderun/logs/manager.json +1 -17
- package/.enderun/memory-graph/agent-contexts/analyst.json +1 -0
- package/.enderun/memory-graph/agent-contexts/backend.json +1 -1
- package/.enderun/memory-graph/agent-contexts/devops.json +1 -1
- package/.enderun/memory-graph/agent-contexts/explorer.json +1 -1
- package/.enderun/memory-graph/agent-contexts/frontend.json +1 -1
- package/.enderun/memory-graph/agent-contexts/git.json +1 -1
- package/.enderun/memory-graph/agent-contexts/manager.json +1 -1
- package/.enderun/memory-graph/agent-contexts/mobile.json +1 -1
- package/.enderun/memory-graph/agent-contexts/native.json +1 -1
- package/.enderun/memory-graph/agent-contexts/quality.json +1 -1
- package/.enderun/memory-graph/agent-contexts/security.json +1 -0
- package/.enderun/memory-graph/shared-facts.json +1 -1
- package/README.md +95 -21
- package/agent.md +1 -1
- package/bin/cli.js +2 -1
- package/bin/init-check.js +1 -1
- package/bin/update-contract.js +1 -1
- package/bin/validate-agent-army.js +18 -0
- package/claude.md +1 -1
- package/dist/.keep +1 -0
- package/docs/README.md +11 -1
- package/docs/getting-started.md +1 -1
- package/eslint.config.js +1 -1
- package/framework-mcp/dist/index.js +2 -2
- package/framework-mcp/dist/utils/cli.js +1 -1
- package/framework-mcp/package.json +1 -1
- package/framework-mcp/src/index.ts +3 -3
- package/framework-mcp/src/utils/cli.ts +1 -1
- package/gemini.md +7 -1
- package/grok.md +1 -1
- package/package.json +5 -4
- package/src/cli/adapters.ts +29 -8
- package/src/cli/commands/check.ts +7 -1
- package/src/cli/commands/init.ts +80 -27
- package/src/cli/commands/orchestrate.ts +98 -92
- package/src/cli/index.ts +5 -2
- package/src/cli/utils/app.ts +1 -1
- package/src/cli/utils/fs.ts +47 -13
- package/src/cli/utils/memory.ts +11 -4
- package/src/cli/utils/pkg.ts +5 -4
- package/docs/architecture/README.md +0 -9
- package/docs/user/README.md +0 -35
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @mobile — Cross-Platform Mobile Reference Guide
|
|
2
|
+
|
|
3
|
+
Detailed mobile standards, UX guidelines, and component patterns for React Native/Expo. Reference this file when building screens or complex mobile logic.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📱 Mobile Standards (Golden Rules)
|
|
8
|
+
- **Framework:** React Native + Expo (managed workflow).
|
|
9
|
+
- **Performance:** Target 60 FPS. Avoid unnecessary re-renders.
|
|
10
|
+
- **Styling:** StyleSheet or Panda-inspired CSS-in-JS.
|
|
11
|
+
- **Navigation:** React Navigation (Stack + Tab + Drawer).
|
|
12
|
+
- **Safe Area:** SafeAreaView is mandatory on every screen.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 🏗️ Standard Mobile Patterns
|
|
17
|
+
- **API Calls:** Use custom hooks (`useUsers`, etc.). No direct fetch in components.
|
|
18
|
+
- **State:** Zustand or project standard.
|
|
19
|
+
- **Logic:** Separation of UI (component) and Logic (custom hook).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## ✅ Mobile Checklist (Mandatory)
|
|
24
|
+
- [ ] Smooth transitions (60 FPS)?
|
|
25
|
+
- [ ] Loading, error, and empty states present?
|
|
26
|
+
- [ ] Offline behavior considered?
|
|
27
|
+
- [ ] Accessibility (contrast, font scaling) checked?
|
|
28
|
+
- [ ] Platform-specific (iOS/Android) behaviors handled?
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 📱 Mobile Capability Growth
|
|
33
|
+
- Add at least one UX improvement (haptic, gesture, skeleton) per task.
|
|
34
|
+
- Measure and record FPS and bundle size for major features.
|
|
35
|
+
- Build components as atomic and reusable units.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @native — Native Desktop Reference Guide
|
|
2
|
+
|
|
3
|
+
Detailed native standards, security hardening, and IPC protocols for Tauri/Electron. Reference this file when building native features or bridge logic.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🖥️ Native Standards (Golden Rules)
|
|
8
|
+
- **Tauri (Recommended):** Rust backend + typed IPC (`tauri::command`).
|
|
9
|
+
- **Electron:** Strict CSP and sandbox mandatory.
|
|
10
|
+
- **Security:** No remote code execution. Secure storage (Keychain) mandatory.
|
|
11
|
+
- **Auto Update:** Use Tauri updater or electron-updater.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 🏗️ Native Component & Logic Standards
|
|
16
|
+
- **IPC:** Typed and secure communication contract between frontend and native.
|
|
17
|
+
- **Window Management:** Standardized native menu, tray icon, and window state.
|
|
18
|
+
- **Performance:** Minimal memory footprint is a priority.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## ✅ Native Checklist (Mandatory)
|
|
23
|
+
- [ ] Typed and secure IPC used?
|
|
24
|
+
- [ ] Security (CSP, sandbox) checked?
|
|
25
|
+
- [ ] Auto-update and versioning considered?
|
|
26
|
+
- [ ] Platform-specific (Mac/Win/Linux) behaviors handled?
|
|
27
|
+
- [ ] Error handling at native layer present?
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 🧩 Native Capability Growth
|
|
32
|
+
- Add at least one security hardening or native UX feature per task.
|
|
33
|
+
- Document platform-specific constraints in PROJECT_MEMORY.
|
|
34
|
+
- Measure and record native bridge performance.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @quality — Unified Quality & Security Reference Guide
|
|
2
|
+
|
|
3
|
+
Detailed QA protocols, security auditing standards, and compliance checklists. Reference this file during phase transitions, code reviews, and security audits.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🔍 QA & Audit Protocols
|
|
8
|
+
|
|
9
|
+
### 1. API Contract Audit (Mandatory Gate)
|
|
10
|
+
- Run `verify_contract_integrity` to check for hash mismatches.
|
|
11
|
+
- Verify modular type imports.
|
|
12
|
+
|
|
13
|
+
### 2. Procedural Continuity Audit
|
|
14
|
+
- Use `analyze_procedural_continuity` to enforce Branded Types and Domain Errors.
|
|
15
|
+
|
|
16
|
+
### 3. Security Auditing
|
|
17
|
+
- Run `security_audit_scan` (secrets, raw SQL).
|
|
18
|
+
- Run `analyze_constitution_compliance` (No `any`, Zero Mock).
|
|
19
|
+
- Categorize findings: CRITICAL, HIGH, MEDIUM, LOW.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 📋 Code Review Checklist (Mandatory)
|
|
24
|
+
- [ ] **Constitution:** Does the code follow all mandates?
|
|
25
|
+
- [ ] **Contract:** Are types imported from the app's local types directory?
|
|
26
|
+
- [ ] **DB Integrity:** No Raw SQL usage? (Kysely only).
|
|
27
|
+
- [ ] **Test Integrity:** Are unit/integration tests included?
|
|
28
|
+
- [ ] **UI Standards:** Is it mobile-first with zero native dialogs?
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 🧪 Testing Standards (Mandatory)
|
|
33
|
+
1. **Unit Tests:** Mandatory for all business logic and services.
|
|
34
|
+
2. **Integration Tests:** Required for API endpoints (Zero Mock Policy).
|
|
35
|
+
3. **Coverage Target:** Aim for >80% coverage in core packages.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🛡️ Security Scanning Standards
|
|
40
|
+
1. **No Raw SQL:** Prevent SQL injection via Kysely.
|
|
41
|
+
2. **Secrets:** No hardcoded credentials.
|
|
42
|
+
3. **Audit:** Run `agent-enderun check:security` before finalization.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @security — Security & Cryptography Reference Guide
|
|
2
|
+
|
|
3
|
+
Detailed authentication controls, Row Level Security (RLS) policies, secrets management, and cryptographic requirements. Reference this file during security reviews, API hardening, and credential audits.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🛡️ Security Governance Protocols
|
|
8
|
+
|
|
9
|
+
### 1. Row Level Security (RLS) Enforcements
|
|
10
|
+
- All client-facing database tables must activate RLS.
|
|
11
|
+
- Database access schemas must prevent bypass queries.
|
|
12
|
+
|
|
13
|
+
### 2. Zero Hardcoded Credentials Policy
|
|
14
|
+
- Never store API keys, tokens, client secrets, or private keys in the code.
|
|
15
|
+
- Retrieve all secrets from secure environment variables or a sealed vault.
|
|
16
|
+
|
|
17
|
+
### 3. CSP and CORS Auditing
|
|
18
|
+
- Verify that Content Security Policies (CSP) are strongly locked down.
|
|
19
|
+
- Ensure CORS configurations only whitelist verified origins and reject wildcards (`*`).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 📋 Security Verification Checklist (Mandatory)
|
|
24
|
+
- [ ] **RLS Integrity:** Are RLS rules active on all postgres tables?
|
|
25
|
+
- [ ] **Secrets Leaks:** Did we search for keywords like `key`, `password`, `token` in plain strings?
|
|
26
|
+
- [ ] **Sanitization:** Are all user inputs sanitized to prevent XSS or SQL injection?
|
|
27
|
+
- [ ] **Access Logs:** Do all security-critical operations write audit logs?
|
|
28
|
+
- [ ] **CSP Rules:** Are CSP domains strictly whitelisted?
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 🔒 Cryptography Standards
|
|
33
|
+
1. **Password Hashing:** Always use Argon2id or bcrypt with strong work factors.
|
|
34
|
+
2. **Encryption at Rest:** Ensure database storage and confidential payloads are encrypted.
|
|
35
|
+
3. **Transport Security:** Enforce TLS 1.3 across all communication layers.
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"timestamp": "2026-05-30T13:51:00Z",
|
|
3
|
-
"agent": "@manager",
|
|
4
|
-
"action": "MODIFY",
|
|
5
|
-
"requestId": "01HGT8J5E2N0W0W0W0W0W0W0W5",
|
|
6
|
-
"status": "SUCCESS",
|
|
7
|
-
"summary": "Aligned framework directory definitions and discovery paths with official ecosystem conventions for Gemini, Claude Desktop/Code, Grok, and Antigravity.",
|
|
8
|
-
"files": [
|
|
9
|
-
"src/cli/adapters.ts",
|
|
10
|
-
"src/cli/utils/claude.ts",
|
|
11
|
-
"src/cli/utils/app.ts",
|
|
12
|
-
"bin/init-check.js",
|
|
13
|
-
"bin/validate-agent-army.js",
|
|
14
|
-
"bin/update-contract.js",
|
|
15
|
-
"framework-mcp/src/index.ts"
|
|
16
|
-
]
|
|
17
|
-
}
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"agent": "analyst", "version": "1.0.0", "lastUpdated": "2026-05-31T14:20:00Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "backend", "version": "0.
|
|
1
|
+
{"agent": "backend", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "devops", "version": "0.
|
|
1
|
+
{"agent": "devops", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "explorer", "version": "0.
|
|
1
|
+
{"agent": "explorer", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "frontend", "version": "0.
|
|
1
|
+
{"agent": "frontend", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "git", "version": "0.
|
|
1
|
+
{"agent": "git", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "manager", "version": "0.
|
|
1
|
+
{"agent": "manager", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "mobile", "version": "0.
|
|
1
|
+
{"agent": "mobile", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "native", "version": "0.
|
|
1
|
+
{"agent": "native", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"agent": "quality", "version": "0.
|
|
1
|
+
{"agent": "quality", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Merged from analyst, qa, and security agents."}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"agent": "security", "version": "1.0.0", "lastUpdated": "2026-05-31T14:20:00Z", "sessionHistory": [], "notes": "Initial clean state."}
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 🏛️ Agent Enderun — Enterprise AI Governance & Autonomous Orchestration Framework
|
|
2
2
|
|
|
3
|
-
> **Stable Release:**
|
|
3
|
+
> **Stable Release:** v1.0.0 (Singularity)
|
|
4
4
|
> **Author:** Yusuf BEKAR
|
|
5
5
|
> **Trace ID:** `01HGT8J5E2N0W0W0W0W0W0W0W5`
|
|
6
6
|
> **System Status:** 🟢 All Systems Operational | Build Compile: Clean | Type-Safety: 100% Verified
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
**Agent Enderun**, sıradan bir kod şablon üreteci veya basit bir AI asistanı değildir; karmaşık, ölçeklenebilir ve kurumsal (enterprise) düzeydeki yazılım projeleri için özel olarak tasarlanmış bir **Yapay Zeka Yönetişimi ve Otonom Ordu Komuta Sistemidir**.
|
|
13
13
|
|
|
14
|
-
Sürüm **
|
|
14
|
+
Sürüm **v1.0.0** itibarıyla sistem; kendi hafızasını yönetebilen, monorepo proje yollarını dinamik olarak haritalayan, tüm ajan seanslarını güvenli şekilde günlükleyen, farklı yapay zeka ekosistemlerini anayasal bir disiplin altında birleştiren ve **macOS & Windows çapraz platform standartlarına tam uyum sağlayan** yaşayan bir mühendislik organizmasıdır.
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
@@ -20,10 +20,22 @@ Sürüm **v0.9.4** itibarıyla sistem; kendi hafızasını yönetebilen, monorep
|
|
|
20
20
|
Yapay zeka kodlama yardımcıları (Claude Code, Gemini CLI, Grok Build vb.) geliştikçe, kurumsal projelerde kontrolü kaybetmek çok daha kolay hale gelmiştir. Agent Enderun, aşağıdaki kritik **kurumsal problemleri çözmek** amacıyla doğmuştur:
|
|
21
21
|
|
|
22
22
|
1. **Kontrolsüz ve Hatalı Değişiklikler (Rogue AI):** Ajanların tüm kod dosyasını baştan yazmasını engelleyerek **milyonlarca satırlık kodları cerrahi hassasiyetle (`replace_text` / `patch_file` üzerinden)** değiştirmeye zorlar. Token tüketimini ve hata oranını %90 azaltır.
|
|
23
|
-
2. **Kayıp Hafıza ve Bağlam Drifti:** Ajanlar oturum değiştirdikçe projenin geçmişini ve mimari kararlarını unutur. Enderun,
|
|
23
|
+
2. **Kayıp Hafıza ve Bağlam Drifti:** Ajanlar oturum değiştirdikçe projenin geçmişini ve mimari kararlarını unutur. Enderun, **`.enderun/PROJECT_MEMORY.md`** (veya seçilen adaptöre göre `.gemini/PROJECT_MEMORY.md` vb.) dosyasını projenin değişmez tek doğruluk kaynağı (SSOT) haline getirerek, seanslar arası bağlam kaybını tamamen engeller.
|
|
24
24
|
3. **Frontend-Backend Tip Uyuşmazlığı:** Backend tip tanımlamalarında en ufak bir kayma olduğunda, otonom SHA-256 hash hesaplama ve kontrat denetleme motoru (`update-contract` / `verify-contract`) sayesinde arayüz kodları yazılmadan önce hatalar yakalanır.
|
|
25
|
-
4. **Çoklu Ajan Kaosu:**
|
|
26
|
-
5. **Sandbox ve Güvenlik Sınırlamaları:** Claude Code gibi modern araçların kernel düzeyindeki güvenlik yalıtımlarını (bubblewrap/seatbelt) ihlal etmemek adına, tüm bellek, kuyruk ve günlük mekanizmaları
|
|
25
|
+
4. **Çoklu Ajan Kaosu:** **12** farklı uzman yapay zeka ajanı, olay tabanlı asenkron bir haberleşme protokolü olan **Hermes Message Broker** üzerinden koordine edilir. Ajanlar birbirine rastgele müdahale edemez; tüm görevler bir İş Dağılım Grafiği (DAG) üzerinden komuta edilir.
|
|
26
|
+
5. **Sandbox ve Güvenlik Sınırlamaları:** Claude Code gibi modern araçların kernel düzeyindeki güvenlik yalıtımlarını (bubblewrap/seatbelt) ihlal etmemek adına, tüm bellek, kuyruk ve günlük mekanizmaları proje kök klasöründeki lokal adaptör yollarında (**`.enderun/`**, `.gemini/`, `.claude/`, `.grok/` vb.) saklanır; `/tmp` veya dış dizinleri kullanmayarak sıfır hata ile çalışır.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
### 🚀 Sürüm v1.0.0 İle Gelen Devrimsel Yenilikler
|
|
31
|
+
|
|
32
|
+
1. **⚡ Kurumsal Tip Uyuşmazlığı ve Sözleşme İyileştirmesi:**
|
|
33
|
+
* Backend tip tanımlamalarında `constants.ts` boşluğundan kaynaklanan ve `logs.ts`/`models.ts` dosyalarının derlenmesini engelleyen tip uyuşmazlığı hatası giderildi. `apps/backend/src/types/constants.ts` dosyası kurumsal sabitler (`ProjectPhase`, `ExecutionProfile`, `TaskPriority`, `TaskStatus`, `ActionType`, `ActionStatus`) ile donatıldı.
|
|
34
|
+
2. **🖥️ CLI `sanitizeJson` Tipleme Düzeltmesi:**
|
|
35
|
+
* `src/cli/commands/init.ts` içerisindeki `SanitizeJsonFunction` arayüzü ile uyumlu olması için `src/cli/utils/pkg.ts` altındaki `sanitizeJson` fonksiyonunun parametre tipi `Record<string, unknown>` yerine geniş `unknown` tipine taşınarak derleme hataları tamamen arındırıldı.
|
|
36
|
+
3. **🏁 macOS & Windows Çapraz Platform Uyum Düzeltmeleri:**
|
|
37
|
+
* Windows ortamında Node.js'in `spawn` ile `npx` çalıştırırken `ENOENT` fırlatmasını önlemek için sistem algılama mekanizması eklenerek `process.platform === "win32"` ise `npx.cmd` çalıştırılması sağlandı.
|
|
38
|
+
* Windows'ta Git satır sonlarından kaynaklanan binlerce ESLint hatasını önlemek için `eslint.config.js` altındaki `linebreak-style` kuralı kapatıldı (`linebreak-style: "off"`).
|
|
27
39
|
|
|
28
40
|
---
|
|
29
41
|
|
|
@@ -51,14 +63,14 @@ Agent Enderun, sektörün öncüsü olan yapay zeka ekosistemlerini bir araya ge
|
|
|
51
63
|
|
|
52
64
|
---
|
|
53
65
|
|
|
54
|
-
### 🪖 Konsolide Edilmiş
|
|
66
|
+
### 🪖 Konsolide Edilmiş 12 Ajanlık Ordu Yapısı
|
|
55
67
|
|
|
56
|
-
Tüm operasyonlar, uzmanlık alanlarına göre ayrılmış ve Hermes protokolüyle birbirine bağlanmış
|
|
68
|
+
Tüm operasyonlar, uzmanlık alanlarına göre ayrılmış ve Hermes protokolüyle birbirine bağlanmış 12 aktif ajan tarafından yönetilir:
|
|
57
69
|
|
|
58
70
|
| Ajan | Uzmanlık Rolü | Temel Sorumluluğu |
|
|
59
71
|
| :--- | :--- | :--- |
|
|
60
72
|
| **`@manager`** | Komuta & Strateji | Görev dağılımı (DAG), hafıza yönetimi (`PROJECT_MEMORY.md`), anayasa koruyuculuğu. |
|
|
61
|
-
| **`@quality`** | Kalite
|
|
73
|
+
| **`@quality`** | Kalite & Test Kapısı | AST zafiyet taramaları, anayasal uyum denetimi, kod inceleme checklistleri, test standartları kapısı, CI/CD kapsam denetimi. |
|
|
62
74
|
| **`@database`** | Veritabanı Mimarisi | Veritabanı şemaları, migration kuralları, index optimizasyonları ve veri tohumlama (seeding). |
|
|
63
75
|
| **`@backend`** | İş Mantığı (Domain Logic) | API tasarımı, branded types, katmanlı mimari (Route -> Controller -> Service -> Repository), audit günlüğü kontrolü. |
|
|
64
76
|
| **`@frontend`** | Akıcı Responsive UI | Panda CSS tasarımı, responsive-first arayüzler, custom React kancaları, rollback disiplini yönetimi. |
|
|
@@ -67,10 +79,35 @@ Tüm operasyonlar, uzmanlık alanlarına göre ayrılmış ve Hermes protokolüy
|
|
|
67
79
|
| **`@git`** | Sürüm Kontrolü | Trace ID uyumlu commit yönetimi, sürüm etiketleme ve dal (branch) hijyeni. |
|
|
68
80
|
| **`@mobile`** | Mobil Geliştirme | Expo ve React Native tabanlı mobil arayüz geliştirme otomasyonları. |
|
|
69
81
|
| **`@native`** | Native Masaüstü | Tauri ve Electron tabanlı yerel masaüstü uygulama entegrasyonları. |
|
|
82
|
+
| **`@security`** | Sistem Güvenliği | Kimlik doğrulamaları, CSP kuralları, API anahtarı rotasyonları ve RLS yetkilendirme kapısı. |
|
|
83
|
+
| **`@analyst`** | İş Analizi & Kontrat Sağlığı | Veritabanı kontrat doğrulaması, anayasal uyum denetimi ve bağımsız kalite analizleri. |
|
|
84
|
+
|
|
85
|
+
### 🪙 Token Ekonomisi ve Bellek Mimarisi (Token Economy & Memory Design)
|
|
86
|
+
|
|
87
|
+
Agent Enderun, otonom yazılım geliştirme süreçlerinde **bağlam driftini (context drift) engellemek** ve **API maliyetlerini %90 oranında düşürmek** amacıyla katmanlı bir bellek mimarisi ve token ekonomisi protokolü kullanır.
|
|
88
|
+
|
|
89
|
+
#### A. Katmanlı Bellek Modeli (Tiered Memory Model)
|
|
90
|
+
Sistem, projenin ortak aklını ve ajanların özel seans bağlamlarını 3 farklı katmanda saklar:
|
|
91
|
+
1. **Ortak Proje Hafızası (`.enderun/PROJECT_MEMORY.md`):** Aktif fazı, benzersiz Trace ID'yi, kritik mimari kararları ve ordu çapındaki aktif görevleri (DAG) tutan projenin ortak SSOT (Tek Doğruluk Kaynağı) beynidir.
|
|
92
|
+
2. **Paylaşılan Genel Gerçekler (`memory-graph/shared-facts.json`):** Teknolojik stack tercihleri, aktif kodlama politikaları ve kontrat hash adresleri gibi statik verileri barındırır.
|
|
93
|
+
3. **Özel Ajan Bellekleri (`memory-graph/agent-contexts/{agent}.json`):** Her uzman ajanın kendi geçmiş seans özetlerini, üstlendiği kararları ve üzerinde çalıştığı aktif geliştirme detaylarını tutan yalıtılmış bellek hücreleridir.
|
|
94
|
+
|
|
95
|
+
#### B. Seans İçi Bellek Akışı (Memory & Token Flow)
|
|
96
|
+
Yapay zeka ajanları her oturumda veya görev atamasında şu akışı otonom olarak takip eder:
|
|
97
|
+
* **Oturum Başlangıcı (Startup):** Ajan `read_project_memory` ile ortak faz ve Trace ID bilgisini geri yükler; ardından `get_agent_context` ile kendi özel bellek hücresini okuyarak seans geçmişini hatırlar.
|
|
98
|
+
* **Çalışma Esnası (Work):** Ajan, kod tabanını bütünüyle okumak yerine `search_codebase` veya `get_project_gaps` araçlarıyla milimetrik hedef tespitleri yapar. Yalnızca ilgili kod parçacıkları bağlama eklenir.
|
|
99
|
+
* **Oturum Kapanışı (Handoff):** Ajan eylemi tamamladığında `update_project_memory` ile durumunu kaydeder, `update_agent_context` ile kendi seans özetini günceller ve değişiklikleri günlüğe (`logs/[agent].json`) yazar.
|
|
100
|
+
|
|
101
|
+
#### C. Token Verimliliği ve Aktif Arşivleme
|
|
102
|
+
* **Bağlam Temizliği:** Ajanların sürekli tüm `PROJECT_MEMORY.md` dosyasını okuması yerine, yalnızca son 3-5 kritik kararı aktif bellekte tutan `get_memory_insights` aracı kullanılır.
|
|
103
|
+
* **Otomatik Budama ve Arşivleme:** Paylaşılan proje geçmişi **10 kaydı aştığında**, sistem eski geçmiş girdilerini otonom olarak `.enderun/memory-graph/archive/` dizinine taşır. Böylece prompt boyutu her zaman optimum seviyede kalır.
|
|
70
104
|
|
|
71
105
|
---
|
|
72
106
|
|
|
107
|
+
|
|
73
108
|
### 🛠️ Kurulum & Adaptör Entegrasyon Kılavuzu
|
|
109
|
+
> [!IMPORTANT]
|
|
110
|
+
> **Mimari Hatırlatma:** Model Context Protocol (MCP) araçları, **insan geliştirici (kullanıcı) tarafından manuel olarak çalıştırılmaz.** MCP sunucu araçları; yapay zeka ajanlarının (Claude Code, Gemini, Grok) projeniz üzerinde cerrahi kod yazma, durum sorgulama ve Hermes mesajlaşma gibi eylemleri **otonom olarak çalıştırabilmesi** için arka planda yapay zeka motorlarına bağlanır. İnsan geliştirici ise komuta sürecini CLI (`status`, `trace:new` vb.) üzerinden yönetir.
|
|
74
111
|
|
|
75
112
|
#### 1. Gemini Adaptörü Kurulumu
|
|
76
113
|
Gemini CLI veya Vertex AI entegrasyonu için proje dizininizde aşağıdaki komutu çalıştırın:
|
|
@@ -78,7 +115,7 @@ Gemini CLI veya Vertex AI entegrasyonu için proje dizininizde aşağıdaki komu
|
|
|
78
115
|
npx agent-enderun init gemini
|
|
79
116
|
```
|
|
80
117
|
* **Oluşturulan Yapı:** Proje kökünde `.gemini/` dizini ve `gemini.md` (SSOT şim dosyası) oluşturulur.
|
|
81
|
-
* **Aktivasyon:** Gemini CLI
|
|
118
|
+
* **Aktivasyon:** Yapay zeka ajanlarının (Gemini CLI) araçlarımızı otonom olarak kullanabilmesi için `.gemini/mcp_config.json` yapılandırması otomatik olarak hazır hale gelir.
|
|
82
119
|
|
|
83
120
|
#### 2. Claude Adaptörü Kurulumu (Claude Code & Desktop)
|
|
84
121
|
Claude Desktop uygulamasında ve Claude Code CLI aracında otonom orduyu aktif etmek için:
|
|
@@ -86,7 +123,7 @@ Claude Desktop uygulamasında ve Claude Code CLI aracında otonom orduyu aktif e
|
|
|
86
123
|
npx agent-enderun init claude
|
|
87
124
|
```
|
|
88
125
|
* **Oluşturulan Yapı:** Proje kökünde `.claude/` dizini, `claude.md` ve en önemlisi proje-seviyesinde **`.mcp.json`** dosyası oluşturulur.
|
|
89
|
-
* **Küresel Kayıt:** Komut, sisteminizde kurulu olan Claude Desktop yapılandırmasını (`claude_desktop_config.json`) ve Claude Code küresel yapılandırmasını (`~/.claude.json`) tarayarak MCP sunucusunu otomatik olarak kaydeder.
|
|
126
|
+
* **Küresel Kayıt & Ajan Entegrasyonu:** Komut, sisteminizde kurulu olan Claude Desktop yapılandırmasını (`claude_desktop_config.json`) ve Claude Code küresel yapılandırmasını (`~/.claude.json`) tarayarak MCP sunucusunu otomatik olarak kaydeder. Bu sayede Claude (AI Ajanı) araçlarımızı otonom olarak çağırabilir.
|
|
90
127
|
|
|
91
128
|
#### 3. Grok Adaptörü Kurulumu
|
|
92
129
|
xAI Grok Build veya topluluk CLI araçları için:
|
|
@@ -173,7 +210,7 @@ npx agent-enderun init gemini
|
|
|
173
210
|
|
|
174
211
|
**Agent Enderun** is not a generic boilerplate generator or a simple AI wrapper; it is an elite, state-of-the-art **AI Governance and Autonomous Army Command System** designed for complex, scalable, and highly auditable enterprise software projects.
|
|
175
212
|
|
|
176
|
-
As of **
|
|
213
|
+
As of **v1.0.0**, the system operates as a **"Living Engineering Organism"** capable of managing its own persistent memory, dynamically mapping project directory scopes, secure-logging expert agent activities, and **fully complying with cross-platform (macOS & Windows) scripting and standard setups**.
|
|
177
214
|
|
|
178
215
|
---
|
|
179
216
|
|
|
@@ -182,10 +219,22 @@ As of **v0.9.4**, the system operates as a **"Living Engineering Organism"** cap
|
|
|
182
219
|
As AI coding assistants (Claude Code, Gemini CLI, Grok Build, etc.) become increasingly powerful, software projects are prone to rapid architectural drift and token wastage. Agent Enderun solves these critical **enterprise AI challenges**:
|
|
183
220
|
|
|
184
221
|
1. **Rogue AI Prevention (Surgical Edits):** It strictly prohibits agents from rewriting entire files. Instead, it forces them to execute micro-targeted changes via **`replace_text` / `patch_file` tools**, reducing API token consumption by up to 90%.
|
|
185
|
-
2. **Context Loss Prevention (SSOT Memory):** AI agents naturally lose project history across chats. Enderun seals all project milestones, decisions, and tasks into a self-pruning
|
|
186
|
-
3. **Contract-First Safety (Frontend-Backend Drift):** Before any user interface code is written, API models and branded types are sealed. The
|
|
187
|
-
4. **Symmetric Orchestration (Hermes Protocol):**
|
|
188
|
-
5. **Sandbox & Security Compliance:** Modern CLI agents (like Claude Code) restrict filesystem access. By keeping all configurations, task logs, and queues local (inside `.gemini/`, `.claude/`, `.grok/`, etc.) in the project workspace, Enderun runs with **zero sandbox violations**.
|
|
222
|
+
2. **Context Loss Prevention (SSOT Memory):** AI agents naturally lose project history across chats. Enderun seals all project milestones, decisions, and tasks into a self-pruning **`.enderun/PROJECT_MEMORY.md`** (or `.gemini/PROJECT_MEMORY.md` depending on the adapter) file, ensuring absolute context continuity.
|
|
223
|
+
3. **Contract-First Safety (Frontend-Backend Drift):** Before any user interface code is written, API models and branded types are sealed. The **autonomous** contract verification engine checks SHA-256 type definitions to prevent integration drifts.
|
|
224
|
+
4. **Symmetric Orchestration (Hermes Protocol):** **12** specialized expert agents communicate via an asynchronous, event-driven message broker (**Hermes**), preventing chaotic, uncoordinated AI behavior.
|
|
225
|
+
5. **Sandbox & Security Compliance:** Modern CLI agents (like Claude Code) restrict filesystem access. By keeping all configurations, task logs, and queues local (inside **`.enderun/`**, `.gemini/`, `.claude/`, `.grok/`, etc.) in the project workspace, Enderun runs with **zero sandbox violations**.
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
### 🚀 Key Improvements in Version v1.0.0
|
|
230
|
+
|
|
231
|
+
1. **⚡ Enterprise Type-Safety & Contract Synchronization:**
|
|
232
|
+
* Surgically resolved the type-safety compilation gap where `apps/backend/src/types/constants.ts` was empty but logs and models attempted to import from it. Populated `constants.ts` with all required contract types (`ProjectPhase`, `ExecutionProfile`, `TaskPriority`, `TaskStatus`, `ActionType`, `ActionStatus`).
|
|
233
|
+
2. **🖥️ CLI `sanitizeJson` Type Signature Patch:**
|
|
234
|
+
* Upgraded `sanitizeJson` input parameter in `src/cli/utils/pkg.ts` to `unknown` type to match `SanitizeJsonFunction` contract in `copyDir` and fully resolve CLI compilation warnings.
|
|
235
|
+
3. **🏁 macOS & Windows Cross-Platform Compatibility Patches:**
|
|
236
|
+
* Resolved Windows spawn `ENOENT` crashes by conditionally spawning `npx.cmd` instead of `npx` on Windows (`process.platform === "win32"`).
|
|
237
|
+
* Disabled the strict `linebreak-style` ESLint rule in `eslint.config.js` (`linebreak-style: "off"`) to fully support CRLF line endings on Windows without throwing lint errors.
|
|
189
238
|
|
|
190
239
|
---
|
|
191
240
|
|
|
@@ -213,14 +262,14 @@ Agent Enderun coordinates industry-leading AI environments by assigning each a s
|
|
|
213
262
|
|
|
214
263
|
---
|
|
215
264
|
|
|
216
|
-
### 🪖 The Consolidated
|
|
265
|
+
### 🪖 The Consolidated 12-Agent Army
|
|
217
266
|
|
|
218
|
-
All workspace operations are divided among
|
|
267
|
+
All workspace operations are divided among 12 specialized expert agents connected via the Hermes protocol:
|
|
219
268
|
|
|
220
269
|
| Agent | Specialization Role | Core Responsibility |
|
|
221
270
|
| :--- | :--- | :--- |
|
|
222
271
|
| **`@manager`** | Command & Strategy | Task dependency graphs (DAG), memory pruning (`PROJECT_MEMORY.md`), constitution compliance. |
|
|
223
|
-
| **`@quality`** | Quality
|
|
272
|
+
| **`@quality`** | Quality & Test Gate | AST vulnerability scanning, constitutional audits, code review checklists, test standard gates, CI/CD coverage verification. |
|
|
224
273
|
| **`@database`** | Database Architecture | Database schemas, migration workflows, query optimization, and contract-aware seeding. |
|
|
225
274
|
| **`@backend`** | Domain Logic Specialist | API route design, branded types, layered architecture (Route -> Controller -> Service -> Repository), audit logging scan. |
|
|
226
275
|
| **`@frontend`** | Fluid Responsive UI | Panda CSS design, responsive-first interfaces, customized React hooks, rollback discipline management. |
|
|
@@ -229,17 +278,42 @@ All workspace operations are divided among 10 specialized expert agents connecte
|
|
|
229
278
|
| **`@git`** | Version Control | Semantic Trace-ID-aligned commits, branch hygiene. |
|
|
230
279
|
| **`@mobile`** | Mobile Development | React Native / Expo UI automation and native builds. |
|
|
231
280
|
| **`@native`** | Desktop Engineering | Tauri and Electron desktop app integrations. |
|
|
281
|
+
| **`@security`** | System Security | Security credentials, CSP configurations, API key rotations, and RLS authorization gate. |
|
|
282
|
+
| **`@analyst`** | Requirement Analysis & Contract Health | Database contract verification, constitutional compliance audits, and independent quality analysis. |
|
|
283
|
+
|
|
284
|
+
### 🪙 Token Economy & Memory Architecture
|
|
285
|
+
|
|
286
|
+
Agent Enderun utilizes a strongly-disciplined **Tiered Memory Model** and **Token Economy Protocol** to prevent context drift and reduce LLM prompt API consumption by up to **90%** during autonomous execution loops.
|
|
287
|
+
|
|
288
|
+
#### A. The Tiered Memory Model
|
|
289
|
+
The framework manages shared project knowledge and isolated specialist history across 3 robust layers:
|
|
290
|
+
1. **Shared Project Memory (`.enderun/PROJECT_MEMORY.md`):** The project's shared SSOT (Single Source of Truth) brain containing the active phase, unique Trace ID, critical architectural decisions, and the army's active DAG tasks.
|
|
291
|
+
2. **Shared General Facts (`memory-graph/shared-facts.json`):** Holds static declarations including the active technology stack, core policies, and sealed contract version hashes.
|
|
292
|
+
3. **Private Agent Contexts (`memory-graph/agent-contexts/{agent}.json`):** Sandboxed memory files storing the recent execution state, specific choices, and targeted tasks completed by each specialist.
|
|
293
|
+
|
|
294
|
+
#### B. Dynamic Session Memory Flow
|
|
295
|
+
Enderun specialists autonomously coordinate context loading using the following pipeline:
|
|
296
|
+
* **Startup:** The agent retrieves active phase/trace context via `read_project_memory` and loads its private seans records using `get_agent_context` to instantly restore execution state.
|
|
297
|
+
* **Execution:** Instead of loading full codebase contents, specialists utilize index-based codebase queries (`search_codebase`, `get_project_gaps`) to selectively mount only the impacted files/functions.
|
|
298
|
+
* **Handoff & Shutdown:** Once a task is completed, the agent updates the shared history via `update_project_memory`, seals its private state via `update_agent_context`, and writes semantic action logs.
|
|
299
|
+
|
|
300
|
+
#### C. Token Compaction & Active Archiving
|
|
301
|
+
* **Context Compaction:** Instead of parsing the complete, extensive `PROJECT_MEMORY.md` in every prompt, agents call `get_memory_insights` to extract only the recent release-critical tasks and decisions.
|
|
302
|
+
* **Self-Pruning History:** When the active history list **exceeds 10 entries**, the framework automatically prunes and archives older records into `.enderun/memory-graph/archive/`. This maintains an elite, high-performance prompt size.
|
|
232
303
|
|
|
233
304
|
---
|
|
234
305
|
|
|
306
|
+
|
|
235
307
|
### 🛠️ Adapter Scaffolding & Setup Guide
|
|
308
|
+
> [!IMPORTANT]
|
|
309
|
+
> **Architectural Note:** Model Context Protocol (MCP) tools are **not meant to be executed manually by the human developer (user).** Instead, the MCP server runs in the background, allowing AI Agents (Claude Code, Gemini, Grok) to **autonomously execute** our custom tools (like surgical editing, state reading, or Hermes messaging) on your codebase. The human developer controls and monitors this command loop using standard CLI commands (`status`, `trace:new`, etc.).
|
|
236
310
|
|
|
237
311
|
#### 1. Gemini Adapter
|
|
238
312
|
Initialize the Gemini CLI / Vertex AI environment:
|
|
239
313
|
```bash
|
|
240
314
|
npx agent-enderun init gemini
|
|
241
315
|
```
|
|
242
|
-
* **Created Files:** `.gemini/` runtime folder, `gemini.md` (SSOT entrance), and `.gemini/mcp_config.json
|
|
316
|
+
* **Created Files:** `.gemini/` runtime folder, `gemini.md` (SSOT entrance), and `.gemini/mcp_config.json` (auto-configured for AI agent tool discovery).
|
|
243
317
|
|
|
244
318
|
#### 2. Claude Adapter (Claude Code CLI & Desktop App)
|
|
245
319
|
Bootstrap the framework for Anthropic's Claude:
|
|
@@ -247,7 +321,7 @@ Bootstrap the framework for Anthropic's Claude:
|
|
|
247
321
|
npx agent-enderun init claude
|
|
248
322
|
```
|
|
249
323
|
* **Created Files:** `.claude/` folder, `claude.md` shim, and project-level **`.mcp.json`** for Claude Code.
|
|
250
|
-
* **Global Registration:** Automatically discovers and registers the MCP server in Claude Desktop's `claude_desktop_config.json` and Claude Code's `~/.claude.json
|
|
324
|
+
* **Global Registration & Agent Integration:** Automatically discovers and registers the MCP server in Claude Desktop's `claude_desktop_config.json` and Claude Code's `~/.claude.json`, enabling Claude (AI Agent) to autonomously call and execute our tools.
|
|
251
325
|
|
|
252
326
|
#### 3. Grok Adapter
|
|
253
327
|
Scaffold for xAI Grok Build:
|
|
@@ -304,4 +378,4 @@ npx agent-enderun init gemini
|
|
|
304
378
|
|
|
305
379
|
---
|
|
306
380
|
|
|
307
|
-
Developed with absolute discipline | Developer **Yusuf BEKAR** | Framework Version **
|
|
381
|
+
Developed with absolute discipline | Developer **Yusuf BEKAR** | Framework Version **v1.0.0**
|
package/agent.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This is the primary entry point when using Agent Enderun within the Antigravity (IDE & CLI) ecosystem.
|
|
4
4
|
|
|
5
|
-
The framework operates under a unified governance structure located in the
|
|
5
|
+
The framework operates under a unified governance structure located in the .enderun/ directory.
|
|
6
6
|
|
|
7
7
|
### Primary Constitution
|
|
8
8
|
All governance rules, agent checklists, and project memory live here:
|
package/bin/cli.js
CHANGED
|
@@ -9,7 +9,8 @@ const __dirname = dirname(__filename);
|
|
|
9
9
|
const cliPath = join(__dirname, "../src/cli/index.ts");
|
|
10
10
|
|
|
11
11
|
// use shell: false to prevent argument (quote) corruption
|
|
12
|
-
const
|
|
12
|
+
const cmd = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
13
|
+
const child = spawn(cmd, ["tsx", cliPath, ...process.argv.slice(2)], {
|
|
13
14
|
stdio: "inherit",
|
|
14
15
|
shell: false
|
|
15
16
|
});
|
package/bin/init-check.js
CHANGED
package/bin/update-contract.js
CHANGED
|
@@ -77,6 +77,24 @@ try {
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
+
// Dynamic extraction of capability and role from markdown body if not defined in YAML frontmatter
|
|
81
|
+
if (agent.capability === undefined) {
|
|
82
|
+
const capMatch = content.match(/-\s+\*\*Capability(?:\s+Score)?:\*\*\s*(\d+)/i);
|
|
83
|
+
if (capMatch) {
|
|
84
|
+
agent.capability = Number(capMatch[1]);
|
|
85
|
+
} else {
|
|
86
|
+
agent.capability = 9; // Clean fallback
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (agent.role === undefined) {
|
|
90
|
+
const roleMatch = content.match(/-\s+\*\*Role:\*\*\s*([^\n\r]+)/i);
|
|
91
|
+
if (roleMatch) {
|
|
92
|
+
agent.role = roleMatch[1].trim().replace(/^['"`]|['"`]$/g, "");
|
|
93
|
+
} else {
|
|
94
|
+
agent.role = fileName.replace(".md", ""); // Clean fallback
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
80
98
|
const missing = requiredKeys.filter((k) => agent[k] === undefined);
|
|
81
99
|
|
|
82
100
|
if (missing.length > 0) {
|
package/claude.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This is the primary entry point when using Agent Enderun within the Claude Code (CLI & Desktop) ecosystem.
|
|
4
4
|
|
|
5
|
-
The framework operates under a unified governance structure located in the
|
|
5
|
+
The framework operates under a unified governance structure located in the .enderun/ directory.
|
|
6
6
|
|
|
7
7
|
### Primary Constitution
|
|
8
8
|
All governance rules, agent checklists, and project memory live here:
|
package/dist/.keep
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// keep
|
package/docs/README.md
CHANGED
|
@@ -9,13 +9,23 @@ Unlike ordinary projects, Agent Enderun projects are built on a structure where
|
|
|
9
9
|
### 📋 Documentation Guide
|
|
10
10
|
|
|
11
11
|
#### [1. Architecture & Governance](architecture/)
|
|
12
|
+
* **[Architecture Decision Records (ADRs)](architecture/decisions/)**: Answers to "Why" and "How" questions at critical project milestones.
|
|
12
13
|
* **[Approval & High-Risk Workflows](architecture/approval-flows.md)**: Explains how tokens are generated, audited, and how high-risk actions (e.g., database deletion, privilege escalation) are sealed.
|
|
14
|
+
* **[Notification Strategy](architecture/notification-strategy.md)**: Dynamic and corporate notification patterns that do not disrupt the user experience.
|
|
13
15
|
|
|
14
16
|
#### [2. Frontend Standards](frontend/)
|
|
15
17
|
* **[Component Patterns](frontend/component-patterns.md)**: Zero-UI-Library policy, guide on how all components are hand-crafted and type-safe using Panda CSS.
|
|
18
|
+
* **[Form Validations](frontend/forms.md)**: Zero-error form management systems managed with Zod and React hooks.
|
|
19
|
+
* **[Toaster Configuration](frontend/notifications.md)**: Integration of tools like Sonner with the corporate theme.
|
|
16
20
|
|
|
17
21
|
#### [3. Backend Standards](backend/)
|
|
18
22
|
* **[Error Handling](backend/error-handling.md)**: Professional error management hierarchy that does not leak to the front-end and is traceable in logs.
|
|
23
|
+
* **[Audit Logging](backend/audit-logging.md)**: Contracts for how every operation is permanently processed into the database with a Trace ID.
|
|
24
|
+
|
|
25
|
+
#### [4. User & Planning](user/)
|
|
26
|
+
* **[Getting Started](user/getting-started.md)**: Quick start guide for new developers.
|
|
27
|
+
* **[Action Plan 2026](user/action-plan-2026.md)**: Strategic objectives and operational focus.
|
|
28
|
+
* **[Roadmap](user/roadmap.md)**: The journey towards Singularity and beyond.
|
|
19
29
|
|
|
20
30
|
---
|
|
21
31
|
|
|
@@ -30,5 +40,5 @@ All projects must pass the following 5 phases sequentially and completely:
|
|
|
30
40
|
|
|
31
41
|
> **Agent Directive:** The documents under this folder define the operational boundaries of the agents. An agent cannot deviate from a rule defined here. If a rule needs to be updated, this can only be done with @manager approval and ADR registration.
|
|
32
42
|
|
|
33
|
-
**Version:**
|
|
43
|
+
**Version:** v1.0.0
|
|
34
44
|
**Status:** Active Governance
|
package/docs/getting-started.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This guide is prepared for developers who want to set up Agent Enderun in a new project from scratch.
|
|
4
4
|
|
|
5
|
-
> **As of
|
|
5
|
+
> **As of v1.0.0, the primary initialization command is:** `npx agent-enderun init`
|
|
6
6
|
|
|
7
7
|
### Installation Steps
|
|
8
8
|
- Initialize the framework with `npx agent-enderun init`.
|
package/eslint.config.js
CHANGED
|
@@ -4,8 +4,8 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextpro
|
|
|
4
4
|
import { TOOLS, toolHandlers } from "./tools/index.js";
|
|
5
5
|
// ─── Server Setup ─────────────────────────────────────────────────
|
|
6
6
|
const server = new Server({
|
|
7
|
-
name: "agent-enderun
|
|
8
|
-
version: "0.
|
|
7
|
+
name: "agent-enderun",
|
|
8
|
+
version: "1.0.0",
|
|
9
9
|
}, {
|
|
10
10
|
capabilities: {
|
|
11
11
|
tools: {},
|
|
@@ -15,6 +15,6 @@ export function safeExec(command, args, cwd) {
|
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
const err = error;
|
|
18
|
-
throw new Error(err.stderr || err.message || "Command execution failed");
|
|
18
|
+
throw new Error(err.stderr || err.message || "Command execution failed", { cause: error });
|
|
19
19
|
}
|
|
20
20
|
}
|