agent-enderun 1.1.10 → 1.10.0

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 (254) hide show
  1. package/README.md +294 -19
  2. package/bin/cli.js +7 -0
  3. package/bin/enderun-dashboard.js +16 -857
  4. package/bin/validate-agent-army.js +12 -12
  5. package/dist/framework-mcp/src/index.js +14 -2
  6. package/dist/framework-mcp/src/index.js.map +1 -1
  7. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +2 -1
  8. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -1
  9. package/dist/framework-mcp/src/tools/file_system/replace_text.js +2 -1
  10. package/dist/framework-mcp/src/tools/file_system/replace_text.js.map +1 -1
  11. package/dist/framework-mcp/src/tools/file_system/write_file.js +3 -3
  12. package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
  13. package/dist/framework-mcp/src/utils/fs.d.ts +16 -0
  14. package/dist/framework-mcp/src/utils/fs.js +45 -0
  15. package/dist/framework-mcp/src/utils/fs.js.map +1 -0
  16. package/dist/framework-mcp/src/utils/metrics.js.map +1 -1
  17. package/dist/src/cli/adapters/core.js.map +1 -1
  18. package/dist/src/cli/adapters/scaffold.js +4 -3
  19. package/dist/src/cli/adapters/scaffold.js.map +1 -1
  20. package/dist/src/cli/commands/app.js +20 -5
  21. package/dist/src/cli/commands/app.js.map +1 -1
  22. package/dist/src/cli/commands/approve.d.ts +1 -1
  23. package/dist/src/cli/commands/approve.js +7 -7
  24. package/dist/src/cli/commands/approve.js.map +1 -1
  25. package/dist/src/cli/commands/check.d.ts +1 -1
  26. package/dist/src/cli/commands/check.js +35 -4
  27. package/dist/src/cli/commands/check.js.map +1 -1
  28. package/dist/src/cli/commands/compliance.d.ts +1 -1
  29. package/dist/src/cli/commands/compliance.js +1 -1
  30. package/dist/src/cli/commands/compliance.js.map +1 -1
  31. package/dist/src/cli/commands/contract.d.ts +2 -2
  32. package/dist/src/cli/commands/contract.js +8 -14
  33. package/dist/src/cli/commands/contract.js.map +1 -1
  34. package/dist/src/cli/commands/dashboard/data-service.d.ts +33 -0
  35. package/dist/src/cli/commands/dashboard/data-service.js +120 -0
  36. package/dist/src/cli/commands/dashboard/data-service.js.map +1 -0
  37. package/dist/src/cli/commands/dashboard/html-template.d.ts +4 -0
  38. package/dist/src/cli/commands/dashboard/html-template.js +697 -0
  39. package/dist/src/cli/commands/dashboard/html-template.js.map +1 -0
  40. package/dist/src/cli/commands/dashboard/server.d.ts +2 -0
  41. package/dist/src/cli/commands/dashboard/server.js +38 -0
  42. package/dist/src/cli/commands/dashboard/server.js.map +1 -0
  43. package/dist/src/cli/commands/dashboard.d.ts +4 -0
  44. package/dist/src/cli/commands/dashboard.js +10 -0
  45. package/dist/src/cli/commands/dashboard.js.map +1 -0
  46. package/dist/src/cli/commands/explorer.d.ts +2 -2
  47. package/dist/src/cli/commands/explorer.js +2 -2
  48. package/dist/src/cli/commands/explorer.js.map +1 -1
  49. package/dist/src/cli/commands/git.d.ts +2 -2
  50. package/dist/src/cli/commands/git.js +2 -2
  51. package/dist/src/cli/commands/git.js.map +1 -1
  52. package/dist/src/cli/commands/init/scaffold-core.d.ts +4 -0
  53. package/dist/src/cli/commands/init/scaffold-core.js +65 -0
  54. package/dist/src/cli/commands/init/scaffold-core.js.map +1 -0
  55. package/dist/src/cli/commands/init/scaffold-ops.d.ts +1 -0
  56. package/dist/src/cli/commands/init/scaffold-ops.js +83 -0
  57. package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -0
  58. package/dist/src/cli/commands/init/scaffold-standards.d.ts +2 -0
  59. package/dist/src/cli/commands/init/scaffold-standards.js +58 -0
  60. package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -0
  61. package/dist/src/cli/commands/init.js +14 -275
  62. package/dist/src/cli/commands/init.js.map +1 -1
  63. package/dist/src/cli/commands/knowledge.d.ts +2 -2
  64. package/dist/src/cli/commands/knowledge.js +4 -3
  65. package/dist/src/cli/commands/knowledge.js.map +1 -1
  66. package/dist/src/cli/commands/lint.d.ts +1 -1
  67. package/dist/src/cli/commands/lint.js +2 -3
  68. package/dist/src/cli/commands/lint.js.map +1 -1
  69. package/dist/src/cli/commands/log.d.ts +1 -1
  70. package/dist/src/cli/commands/log.js +3 -2
  71. package/dist/src/cli/commands/log.js.map +1 -1
  72. package/dist/src/cli/commands/memory.d.ts +1 -1
  73. package/dist/src/cli/commands/memory.js +1 -1
  74. package/dist/src/cli/commands/memory.js.map +1 -1
  75. package/dist/src/cli/commands/orchestrate.js +169 -140
  76. package/dist/src/cli/commands/orchestrate.js.map +1 -1
  77. package/dist/src/cli/commands/plan.d.ts +1 -1
  78. package/dist/src/cli/commands/plan.js +1 -1
  79. package/dist/src/cli/commands/plan.js.map +1 -1
  80. package/dist/src/cli/commands/script.d.ts +1 -1
  81. package/dist/src/cli/commands/script.js +1 -1
  82. package/dist/src/cli/commands/script.js.map +1 -1
  83. package/dist/src/cli/commands/security.d.ts +1 -1
  84. package/dist/src/cli/commands/security.js +1 -1
  85. package/dist/src/cli/commands/security.js.map +1 -1
  86. package/dist/src/cli/commands/status.d.ts +1 -1
  87. package/dist/src/cli/commands/status.js +1 -1
  88. package/dist/src/cli/commands/status.js.map +1 -1
  89. package/dist/src/cli/commands/trace.d.ts +1 -1
  90. package/dist/src/cli/commands/trace.js +1 -1
  91. package/dist/src/cli/commands/trace.js.map +1 -1
  92. package/dist/src/cli/index.js +36 -21
  93. package/dist/src/cli/index.js.map +1 -1
  94. package/dist/src/cli/shims.js +6 -6
  95. package/dist/src/cli/utils/app-backend.js +7 -0
  96. package/dist/src/cli/utils/app-backend.js.map +1 -1
  97. package/dist/src/cli/utils/app-docs.js +23 -5
  98. package/dist/src/cli/utils/app-docs.js.map +1 -1
  99. package/dist/src/cli/utils/app-frontend.js +5 -0
  100. package/dist/src/cli/utils/app-frontend.js.map +1 -1
  101. package/dist/src/cli/utils/app-inferrer.d.ts +1 -0
  102. package/dist/src/cli/utils/app-inferrer.js +12 -1
  103. package/dist/src/cli/utils/app-inferrer.js.map +1 -1
  104. package/dist/src/cli/utils/app-mobile.d.ts +2 -0
  105. package/dist/src/cli/utils/app-mobile.js +106 -0
  106. package/dist/src/cli/utils/app-mobile.js.map +1 -0
  107. package/dist/src/cli/utils/app-types.js +8 -4
  108. package/dist/src/cli/utils/app-types.js.map +1 -1
  109. package/dist/src/cli/utils/app.d.ts +1 -0
  110. package/dist/src/cli/utils/app.js +1 -0
  111. package/dist/src/cli/utils/app.js.map +1 -1
  112. package/dist/src/cli/utils/claude.js +2 -1
  113. package/dist/src/cli/utils/claude.js.map +1 -1
  114. package/dist/src/cli/utils/compliance.js +37 -6
  115. package/dist/src/cli/utils/compliance.js.map +1 -1
  116. package/dist/src/cli/utils/config-schema.d.ts +3 -3
  117. package/dist/src/cli/utils/config-schema.js +3 -3
  118. package/dist/src/cli/utils/config-schema.js.map +1 -1
  119. package/dist/src/cli/utils/fs.d.ts +2 -2
  120. package/dist/src/cli/utils/fs.js +9 -13
  121. package/dist/src/cli/utils/fs.js.map +1 -1
  122. package/dist/src/cli/utils/memory.d.ts +9 -2
  123. package/dist/src/cli/utils/memory.js +87 -16
  124. package/dist/src/cli/utils/memory.js.map +1 -1
  125. package/dist/src/cli/utils/pkg.js +14 -13
  126. package/dist/src/cli/utils/pkg.js.map +1 -1
  127. package/dist/src/cli/utils/string.js +1 -1
  128. package/dist/src/cli/utils/string.js.map +1 -1
  129. package/dist/src/cli/utils/ui.d.ts +1 -1
  130. package/dist/src/cli/utils/ui.js +1 -1
  131. package/dist/src/modules/adapters/shared.js +7 -7
  132. package/dist/src/modules/adapters/shared.js.map +1 -1
  133. package/dist/src/modules/agents/definitions.d.ts +3 -34
  134. package/dist/src/modules/agents/definitions.js +35 -511
  135. package/dist/src/modules/agents/definitions.js.map +1 -1
  136. package/dist/src/modules/agents/registry/analyst.d.ts +2 -0
  137. package/dist/src/modules/agents/registry/analyst.js +36 -0
  138. package/dist/src/modules/agents/registry/analyst.js.map +1 -0
  139. package/dist/src/modules/agents/registry/architect.d.ts +2 -0
  140. package/dist/src/modules/agents/registry/architect.js +42 -0
  141. package/dist/src/modules/agents/registry/architect.js.map +1 -0
  142. package/dist/src/modules/agents/registry/backend.d.ts +2 -0
  143. package/dist/src/modules/agents/registry/backend.js +43 -0
  144. package/dist/src/modules/agents/registry/backend.js.map +1 -0
  145. package/dist/src/modules/agents/registry/database.d.ts +2 -0
  146. package/dist/src/modules/agents/registry/database.js +38 -0
  147. package/dist/src/modules/agents/registry/database.js.map +1 -0
  148. package/dist/src/modules/agents/registry/devops.d.ts +2 -0
  149. package/dist/src/modules/agents/registry/devops.js +38 -0
  150. package/dist/src/modules/agents/registry/devops.js.map +1 -0
  151. package/dist/src/modules/agents/registry/explorer.d.ts +2 -0
  152. package/dist/src/modules/agents/registry/explorer.js +36 -0
  153. package/dist/src/modules/agents/registry/explorer.js.map +1 -0
  154. package/dist/src/modules/agents/registry/frontend.d.ts +2 -0
  155. package/dist/src/modules/agents/registry/frontend.js +44 -0
  156. package/dist/src/modules/agents/registry/frontend.js.map +1 -0
  157. package/dist/src/modules/agents/registry/git.d.ts +2 -0
  158. package/dist/src/modules/agents/registry/git.js +35 -0
  159. package/dist/src/modules/agents/registry/git.js.map +1 -0
  160. package/dist/src/modules/agents/registry/manager.d.ts +2 -0
  161. package/dist/src/modules/agents/registry/manager.js +49 -0
  162. package/dist/src/modules/agents/registry/manager.js.map +1 -0
  163. package/dist/src/modules/agents/registry/mobile.d.ts +2 -0
  164. package/dist/src/modules/agents/registry/mobile.js +40 -0
  165. package/dist/src/modules/agents/registry/mobile.js.map +1 -0
  166. package/dist/src/modules/agents/registry/native.d.ts +2 -0
  167. package/dist/src/modules/agents/registry/native.js +36 -0
  168. package/dist/src/modules/agents/registry/native.js.map +1 -0
  169. package/dist/src/modules/agents/registry/quality.d.ts +2 -0
  170. package/dist/src/modules/agents/registry/quality.js +41 -0
  171. package/dist/src/modules/agents/registry/quality.js.map +1 -0
  172. package/dist/src/modules/agents/registry/security.d.ts +2 -0
  173. package/dist/src/modules/agents/registry/security.js +37 -0
  174. package/dist/src/modules/agents/registry/security.js.map +1 -0
  175. package/dist/src/modules/agents/types.d.ts +31 -0
  176. package/dist/src/modules/agents/types.js +2 -0
  177. package/dist/src/modules/agents/types.js.map +1 -0
  178. package/dist/src/modules/skills/definitions.d.ts +1 -1
  179. package/dist/src/modules/skills/definitions.js +1 -1
  180. package/dist/src/shared/errors.d.ts +8 -6
  181. package/dist/src/shared/errors.js +13 -10
  182. package/dist/src/shared/errors.js.map +1 -1
  183. package/dist/src/shared/fs.d.ts +4 -0
  184. package/dist/src/shared/fs.js +17 -2
  185. package/dist/src/shared/fs.js.map +1 -1
  186. package/dist/src/shared/types.d.ts +19 -0
  187. package/dist/src/shared/types.js +13 -0
  188. package/dist/src/shared/types.js.map +1 -0
  189. package/package.json +3 -5
  190. package/src/cli/adapters/core.ts +0 -1
  191. package/src/cli/adapters/scaffold.ts +4 -3
  192. package/src/cli/commands/app.ts +23 -5
  193. package/src/cli/commands/approve.ts +15 -7
  194. package/src/cli/commands/check.ts +38 -5
  195. package/src/cli/commands/compliance.ts +1 -1
  196. package/src/cli/commands/contract.ts +20 -14
  197. package/src/cli/commands/dashboard/data-service.ts +119 -0
  198. package/src/cli/commands/dashboard/html-template.ts +696 -0
  199. package/src/cli/commands/dashboard/server.ts +43 -0
  200. package/src/cli/commands/dashboard.ts +11 -0
  201. package/src/cli/commands/explorer.ts +2 -2
  202. package/src/cli/commands/git.ts +2 -2
  203. package/src/cli/commands/init/scaffold-core.ts +71 -0
  204. package/src/cli/commands/init/scaffold-ops.ts +86 -0
  205. package/src/cli/commands/init/scaffold-standards.ts +59 -0
  206. package/src/cli/commands/init.ts +21 -292
  207. package/src/cli/commands/knowledge.ts +5 -3
  208. package/src/cli/commands/lint.ts +2 -4
  209. package/src/cli/commands/log.ts +4 -2
  210. package/src/cli/commands/memory.ts +1 -1
  211. package/src/cli/commands/orchestrate.ts +177 -142
  212. package/src/cli/commands/plan.ts +1 -1
  213. package/src/cli/commands/script.ts +1 -1
  214. package/src/cli/commands/security.ts +1 -1
  215. package/src/cli/commands/status.ts +1 -1
  216. package/src/cli/commands/trace.ts +1 -1
  217. package/src/cli/index.ts +37 -21
  218. package/src/cli/shims.ts +6 -6
  219. package/src/cli/utils/app-backend.ts +8 -0
  220. package/src/cli/utils/app-docs.ts +23 -5
  221. package/src/cli/utils/app-frontend.ts +6 -0
  222. package/src/cli/utils/app-inferrer.ts +11 -1
  223. package/src/cli/utils/app-mobile.ts +113 -0
  224. package/src/cli/utils/app-types.ts +9 -4
  225. package/src/cli/utils/app.ts +1 -0
  226. package/src/cli/utils/claude.ts +2 -1
  227. package/src/cli/utils/compliance.ts +38 -7
  228. package/src/cli/utils/config-schema.ts +4 -4
  229. package/src/cli/utils/fs.ts +9 -14
  230. package/src/cli/utils/memory.ts +103 -20
  231. package/src/cli/utils/pkg.ts +14 -13
  232. package/src/cli/utils/string.ts +1 -1
  233. package/src/cli/utils/ui.ts +1 -1
  234. package/src/modules/adapters/shared.ts +7 -7
  235. package/src/modules/agents/definitions.ts +39 -598
  236. package/src/modules/agents/registry/analyst.ts +40 -0
  237. package/src/modules/agents/registry/architect.ts +46 -0
  238. package/src/modules/agents/registry/backend.ts +47 -0
  239. package/src/modules/agents/registry/database.ts +42 -0
  240. package/src/modules/agents/registry/devops.ts +42 -0
  241. package/src/modules/agents/registry/explorer.ts +40 -0
  242. package/src/modules/agents/registry/frontend.ts +48 -0
  243. package/src/modules/agents/registry/git.ts +39 -0
  244. package/src/modules/agents/registry/manager.ts +53 -0
  245. package/src/modules/agents/registry/mobile.ts +44 -0
  246. package/src/modules/agents/registry/native.ts +40 -0
  247. package/src/modules/agents/registry/quality.ts +45 -0
  248. package/src/modules/agents/registry/security.ts +41 -0
  249. package/src/modules/agents/types.ts +37 -0
  250. package/src/modules/skills/definitions.ts +1 -1
  251. package/src/shared/errors.ts +13 -10
  252. package/src/shared/fs.ts +17 -2
  253. package/src/shared/types.ts +20 -0
  254. package/bin/utils/docgen.ts +0 -24
package/README.md CHANGED
@@ -1,51 +1,326 @@
1
- # 🏛️ Agent Enderun — Enterprise AI Governance & Autonomous Orchestration Framework
1
+ # 🏛️ Agent Enderun — The Supreme AI Governance & Autonomous Orchestration Framework
2
2
 
3
- > **Stable Release:** v1.1.10 (JSON-Native Architecture) — Build Compile: Clean | Type-Safety: 100% Verified | Compliance: 100% Passed
3
+ > **Stable Release:** v1.10.0 (Enterprise Orchestration Ready) — Build Compile: Clean | Type-Safety: 100% Verified | AL Compliance: 13/13 Agents
4
4
 
5
5
  > **Author:** Yusuf BEKAR
6
+ > **Trace ID:** `01HGT8J5E2N0W0W0W0W0W0W0W5`
6
7
  > **System Status:** 🟢 All Systems Operational | Build Compile: Clean | Type-Safety: 100% Verified
7
8
 
8
9
  ---
9
10
 
10
11
  ## 🇹🇷 TÜRKÇE — Proje Tanıtımı & Detaylı Kullanım Kılavuzu
11
12
 
12
- **Agent Enderun**, 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
+ **Agent Enderun**, Kurumsal Gelişim için En Üstün Yapay Zeka Yönetişimi ve Otonom Orkestrasyon Çerçevesidir. Kurumsal Yapay Zeka Yönetim Asistanı olarak görev yapar. 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
14
 
14
- Güncel sürüm itibarıyla sistem; **JSON tabanlı DocumentStore mimarisi**, **Hermes protokolü**, **Otomatik Dokümantasyon (DocGen)**, **Compliance Scanner (Nizam Denetleyici)** ve **Contract-First (Sözleşme Odaklı)** geliştirme süreçleriyle güçlendirilmiştir.
15
+ Güncel sürüm itibarıyla sistem; **@-mention delegasyon**, **doğal dil rotalama**, **Kurumsal CRUD Yönetişimi** ve **Hermes Kilit Protokolü** ile güçlendirilmiş; 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, **Agent Lifecycle (AL) tam uyumlu init ve ordu validasyonunu** (npm kurulumu sonrası dahil) otomatikleştiren, **harici IDE entegrasyonlarında (Claude Desktop/Cursor vb.) mutlak proje kök dizini (CWD) uyumluluğu sunan**, **scaffold adımlarında ajan klasörlerini adapter tipine göre dinamik olarak eşleyen** ve **macOS & Windows çapraz platform standartlarına tam uyum sağlayan** yaşayan bir mühendislik organizmasıdır. Karmaşık kurumsal projeler için optimize edilmiştir (corporate-governance SOP'ları ile).
15
16
 
16
17
  ---
17
18
 
18
19
  ### ❓ Neden Agent Enderun?
19
20
 
20
- 1. **JSON-Native Bellek Yönetimi:** Geleneksel Markdown tabanlı hafıza sistemi yerine, tip güvenli ve doğrulanabilir JSON tabanlı bir `DocumentStore` mimarisiyle çalışır.
21
- 2. **Contract-First Geliştirme:** Zod tabanlı kontratlar (`src/contracts/`) sayesinde, ajanlar arası iletişim runtime aşamasında doğrulanır.
22
- 3. **Otomatik Dokümantasyon:** `npm run enderun:docs` komutuyla ajan tanımlarından güncel dokümanlar otomatik üretilir.
23
- 4. **Nizam Denetimi (Compliance):** `npm run enderun:check` ile kodunuzdaki güvenlik ve kalite standartları (No 'any', No 'console.log', No hardcoded secrets) otonom olarak denetlenir.
21
+ 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:
22
+
23
+ 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.
24
+ 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/memory/PROJECT_MEMORY.md`** dosyasını projenin değişmez tek doğruluk kaynağı (SSOT) haline getirerek, seanslar arası bağlam kaybını tamamen engeller.
25
+ 3. **Akıllı Delegasyon ve Doğal Dil:** Artık karmaşık komutlar yerine `agent-enderun "Projemi denetle"` gibi doğal dildeki istekler veya `agent-enderun @backend "Tablo oluştur"` gibi doğrudan delegasyonlar kullanılabilir.
26
+ 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.
27
+ 5. **Güvenli Haberleşme & Entegrasyon (Hermes Lock Protocol):** Ortak bellek dosyalarına veya kuyruklara yazarken olası dosya çakışmalarını işletim sistemi (OS) düzeyinde atomik dosya oluşturma (`flag: 'wx'`) yöntemiyle engeller. Kilit meşgulse otomatik olarak bekleyip (retry) sırayla kuyrukları işler.
28
+ 6. **Kurumsal Yetki ve CRUD Yönetişimi (Corporate CRUD Governance):** Ajanların doğrudan kritik/idari veri mutasyonları (kullanıcı/rol atama, şema değiştirme, veritabanı göçü, toplu silme) yapmasını engeller. Bu işlemler `@manager` ajanı üzerinden onay kuyruğuna alınır ve insan denetçinin `agent-enderun approve` komutunu çalıştırmasıyla aktif hale getirilir.
24
29
 
25
30
  ---
26
31
 
27
32
  ### 📦 Güncel Sürüm / Current Release
28
33
 
29
- **v1.1.10** — JSON Memory Migration & Compliance hardening.
30
- * **TR:** Proje tamamen JSON tabanlı hafıza yapısına (`state.json`, `status.json`) geçirildi. Tüm testler (`101/101`) yeni mimariyle uyumlu hale getirildi. Compliance Scanner güçlendirildi.
31
- * **EN:** Migrated the entire memory system to a robust JSON-based `DocumentStore` architecture. All tests (101/101) passed. Strengthened the Compliance Scanner for enterprise-grade enforcement.
34
+ **v1.10.0** — Kararlı Sürüm (Dinamik Mobil Scaffolding & Performans).
35
+ * **TR:** Mobil (Expo/React Native) uygulama üretme desteği eklendi. Orkestrasyon döngüsü bellek içi önbellekleme (in-memory cache) ile optimize edildi. Nizam denetimi (`check`) ajan dökümantasyonunu kapsayacak şekilde genişletildi.
36
+ * **EN:** Added Mobile (Expo/React Native) scaffolding support. Optimized orchestration loop with in-memory caching. Expanded discipline check (`check`) to audit agent documentation.
37
+
38
+ ---
39
+
40
+ ### 💎 Stratejik Platform Sinerjisi (Dört Büyük Güç)
41
+
42
+ Agent Enderun, sektörün öncüsü olan yapay zeka ekosistemlerini bir araya getirerek her birine stratejik bir rol atar:
43
+ * **🚀 Claude Code (Operasyonel Cerrahi):** **Saha Mühendisi**. Kod tabanındaki otonom ve milimetrik cerrahi düzenlemeleri (Surgical Edits) gerçekleştirir.
44
+ * **♊ Gemini & Vertex AI (Komuta İstihbaratı):** **Stratejik Karar Merkezi**. Proje geçmişini, mimari kararları analiz eder ve yüksek seviyeli stratejik yönlendirmeler yapar.
45
+ * **🛸 Antigravity (İç Disiplin & Akademi):** **Askeri Akademi**. İç standartları, anayasal uyumu korumak amacıyla izole edilmiş, yüksek disiplinli geliştirme ve test ortamı sağlar.
46
+ * **🤖 Grok / X.ai (Otonom Keşif Kanadı):** **Deneysel Keşif**. Gelecek vizyonlu otonom protokolleri test eder ve yapay zeka güdümlü geliştirme sınırlarını zorlar.
47
+
48
+ ---
49
+
50
+ ### 🪖 Konsolide Edilmiş 13 Ajanlık Ordu Yapısı
51
+
52
+ Tüm operasyonlar, uzmanlık alanlarına göre ayrılmış ve Hermes protokolüyle birbirine bağlanmış 13 aktif ajan tarafından yönetilir:
53
+
54
+ | Ajan | Uzmanlık Rolü | Temel Sorumluluğu |
55
+ | :--- | :--- | :--- |
56
+ | **`@manager`** | Orchestration & Governance | Görev dağılımı (DAG), hafıza yönetimi (`PROJECT_MEMORY.md`), anayasa koruyuculuğu. |
57
+ | **`@architect`** | System Design & Architect | Çekirdek mimari, tip kontratları ve kilit yönetimi tasarımı. |
58
+ | **`@quality`** | Automated Testing & Quality | AST zafiyet taramaları, anayasal uyum denetimi, kod inceleme checklistleri, test standartları kapısı. |
59
+ | **`@database`** | Database Migrations & Tuning | Veritabanı şemaları, migration kuralları, index optimizasyonları ve veri tohumlama (seeding). |
60
+ | **`@backend`** | Domain Logic & Databases | API tasarımı, branded types, katmanlı mimari (Route -> Controller -> Service -> Repository). |
61
+ | **`@frontend`** | Fluid Responsive UI | Panda CSS tasarımı, responsive-first arayüzler, custom React kancaları, rollback disiplini yönetimi. |
62
+ | **`@devops`** | Infrastructure & CI/CD | Native Node.js deploymentları, rollback planları, telemetri ve izleme (monitoring) kurulumları. |
63
+ | **`@explorer`** | Codebase Discovery | Kod tabanı analizi, bağımlılık grafikleri, legacy onboarding stratejileri. |
64
+ | **`@git`** | Version Control | Trace ID uyumlu commit yönetimi, sürüm etiketleme ve dal (branch) hijyeni. |
65
+ | **`@mobile`** | Mobile App | Expo ve React Native tabanlı mobil arayüz geliştirme otomasyonları. |
66
+ | **`@native`** | Native OS Integration | Tauri ve Electron tabanlı yerel masaüstü uygulama entegrasyonları. |
67
+ | **`@security`** | Security & Cryptography | Kimlik doğrulamaları, CSP kuralları, API anahtarı rotasyonları ve RLS yetkilendirme kapısı. |
68
+ | **`@analyst`** | Contract Verification | Veritabanı kontrat doğrulaması, anayasal uyum denetimi ve bağımsız kalite analizleri. |
69
+
70
+ ---
71
+
72
+ ### 🪙 Token Ekonomisi ve Bellek Mimarisi (Token Economy & Memory Design)
73
+
74
+ 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.
75
+
76
+ #### A. Katmanlı Bellek Modeli (Tiered Memory Model)
77
+ Sistem, projenin ortak aklını ve ajanların özel seans bağlamlarını 3 farklı katmanda saklar:
78
+ 1. **Ortak Proje Hafızası (`.enderun/memory/PROJECT_MEMORY.md`):** Aktif fazı, benzersiz Trace ID'yi, kritik mimari kararları ve ordu çapındaki aktif görevleri (DAG) tutan projenin ortak SSOT beynidir.
79
+ 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.
80
+ 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.
81
+
82
+ #### B. Seans İçi Bellek Akışı (Memory & Token Flow)
83
+ Yapay zeka ajanları her oturumda veya görev atamasında şu akışı otonom olarak takip eder:
84
+ * **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.
85
+ * **Ç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.
86
+ * **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.
87
+
88
+ #### C. Token Verimliliği ve Aktif Arşivleme
89
+ * **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.
90
+ * **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.
32
91
 
33
92
  ---
34
93
 
35
- ### 🛠️ Kurulum & Adaptör Entegrasyonu
94
+ ### 🛠️ Kurulum & Adaptör Entegrasyon Kılavuzu
95
+ > [!IMPORTANT]
96
+ > **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.
97
+
98
+ #### 1. Gemini Adaptörü Kurulumu
99
+ Gemini CLI veya Vertex AI entegrasyonu için proje dizininizde aşağıdaki komutu çalıştırın:
100
+ ```bash
101
+ npx agent-enderun init gemini
102
+ ```
103
+ * **Birleşik Mimari (Önerilen):** Tüm adaptörleri tek klasörde birleştirip kalabalığı önlemek için `--unified` parametresini kullanın:
104
+ ```bash
105
+ npx agent-enderun init gemini --unified
106
+ ```
107
+
108
+ #### 2. Claude Adaptörü Kurulumu (Claude Code & Desktop)
109
+ Claude Desktop uygulamasında ve Claude Code CLI aracında otonom orduyu aktif etmek için:
110
+ ```bash
111
+ npx agent-enderun init claude
112
+ ```
113
+
114
+ #### 3. Grok Adaptörü Kurulumu
115
+ xAI Grok Build veya topluluk CLI araçları için:
116
+ ```bash
117
+ npx agent-enderun init grok
118
+ ```
36
119
 
120
+ #### 4. Cursor Adaptörü Kurulumu
121
+ Cursor IDE kuralları ve MCP entegrasyonu için:
37
122
  ```bash
38
- # Projeyi başlatın
123
+ npx agent-enderun init cursor
124
+ ```
125
+
126
+ #### 5. Codex (GitHub Copilot) Adaptörü Kurulumu
127
+ VSCode ve GitHub Copilot özel talimatları için:
128
+ ```bash
129
+ npx agent-enderun init codex
130
+ ```
131
+
132
+ #### 6. Antigravity Adaptörü Kurulumu
133
+ Antigravity IDE ve CLI entegrasyonlarını etkinleştirmek için:
134
+ ```bash
135
+ npx agent-enderun init antigravity-cli
136
+ ```
137
+
138
+ ---
139
+
140
+ ### 🧠 Mimari Yapı: Beyin & Hafıza Merkezi (.enderun)
141
+
142
+ Sistem artık tüm zekasını ve persistence verilerini projenin kök dizininde kalabalık yapmadan **`.enderun/`** klasörü altında toplar:
143
+
144
+ * **`.enderun/memory/`**: `state.json`, `status.json` ve aktif görevler (`tasks/`).
145
+ * **`.enderun/knowledge/`**: Kurumsal standartlar ve ESLint kuralları.
146
+ * **`.enderun/ENDERUN.md`**: Proje anayasası ve disiplin kuralları.
147
+
148
+ ### 🕹️ CLI Komut Referansı ve Parametreleri
149
+
150
+ Enderun CLI, `agent-enderun` (veya `npx agent-enderun`) komutu ile yönetilir.
151
+
152
+ * **`init [adapter] [--unified]`**: Seçilen adaptörü kurar. `--unified` kullanılırsa tüm asistan şimleri doğrudan `.enderun` altında birleşir; klasör kalabalığı sıfırlanır. Init sonrası **otomatik AL (Agent Lifecycle) validation** çalıştırılır.
153
+ * **`status`**: Projenin aktif fazını (Phase 0 - 4), aktif Trace ID'sini ve uzman ajanların durumlarını listeler.
154
+ * **`check`**: Anayasal uyumluluk denetimlerini + **otomatik AL Army Validation** (stateMachine + tags) gerçekleştirir.
155
+ * **`validate` / `validate-army` / `check:al`**: Bağımsız Agent Lifecycle (AL) ordu validasyonu çalıştırır (paketli validator script; `node bin/...` yerine bu CLI komutlarını kullanın, npm kurulumunda da çalışır).
156
+ * **`trace:new [description]`**: Belirli bir geliştirme zinciri için yeni bir Trace ID (ULID) tetikler.
157
+ * **`orchestrate` / `loop`**: Hermes Message Broker asenkron event-driven ajanlar arası iletişim döngüsünü canlı olarak başlatır.
158
+ * **`verify-contract`**: Frontend ve backend katmanları arasındaki tip bütünlüğünü denetler.
159
+ * **`update-contract`**: Backend tiplerinde yapılan değişiklikleri tarayarak `contract.version.json` üzerindeki SHA-256 hash imzalarını günceller.
160
+ * **`create-app [idea]`**: Doğal dildeki açıklamalardan; kurumsal standartlarda **Web, Mobil (Expo/React Native) veya Backend** tabanlı kontrat-tabanlı monorepo uygulaması üretir.
161
+ * **`approve [traceId]`**: Ajanlar tarafından gönderilen idari veya yüksek riskli işlemleri (şema değişiklikleri, toplu silme vb.) doğrulamak ve onaylamak için insan denetçi (Human-in-the-Loop) onay komutudur.
162
+
163
+ ---
164
+
165
+ ### 📦 Geliştirici & npm Link Test Altyapısı
166
+
167
+ Paketi npm'de yayınlamadan önce yerelinizde derlemek ve test etmek için:
168
+ ```bash
169
+ # Proje bağımlılıklarını yükleyin
170
+ npm install
171
+
172
+ # framework-mcp (MCP Sunucusu) ve CLI derlemelerini tetikleyin
173
+ npm run enderun:build
174
+
175
+ # Paketi global NPM havuzunuza bağlayın
176
+ npm link
177
+
178
+ # Boş bir test dizini açıp aracı bağlayın
179
+ mkdir enderun-test && cd enderun-test
180
+ npm init -y
181
+ npm link agent-enderun
182
+
183
+ # Herhangi bir adaptör kurulumunu başlatın
39
184
  npx agent-enderun init gemini --unified
40
185
  ```
41
186
 
42
- ### 📦 Geliştirici Komutları
187
+ ---
188
+ ---
189
+
190
+ ## 🇺🇸 ENGLISH — Detailed Product Guide & Documentation
191
+
192
+ **Agent Enderun** is the Supreme AI Governance & Autonomous Orchestration Framework for Enterprise Development. It acts as a Corporate AI Management Assistant. It 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.
193
+
194
+ The framework operates as a **"Living Engineering Organism"** capable of managing its own persistent memory, dynamically mapping project directory scopes, secure-logging expert agent activities, **automatically enforcing Agent Lifecycle (AL) compliance on every init**, **resolving absolute project root paths (CWD) dynamically for external assistant tools (e.g. Claude Desktop/Cursor)**, **enforcing Corporate CRUD & Admin Governance rules**, **providing atomic concurrency safety via Hermes Lock Protocol**, **mapping agent scaffolding subdirectories to adapter-specific folders dynamically during init**, and **fully complying with cross-platform (macOS & Windows) scripting and standard setups**. Low-usage reference materials arranged (knowledge files, demo scripts, observability placeholders marked). Bloat removed. Optimized for complex corporate/enterprise projects via corporate-governance knowledge and SOPs.
195
+
196
+ ---
197
+
198
+ ### ❓ Why Agent Enderun?
199
+
200
+ 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**:
201
+
202
+ 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%.
203
+ 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/memory/PROJECT_MEMORY.md`** file, ensuring absolute context continuity.
204
+ 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.
205
+ 4. **Symmetric Orchestration (Hermes Protocol):** **12** specialized expert agents communicate via an asynchronous, event-driven message broker (**Hermes**), preventing chaotic, uncoordinated AI behavior.
206
+ 5. **Atomic Concurrency Safety (Hermes Lock Protocol):** Prevents concurrent file access and race conditions at the OS level using atomic lock file creation (`flag: 'wx'`). If a lock is active, writing agents wait and retry sequentially.
207
+ 6. **Corporate CRUD & Admin Governance:** Strictly forbids specialist agents from performing critical/admin mutations (user/role creation, schema modifications, database migrations, bulk deletions) autonomously. These are routed as `ALERT` approvals to `@manager` and require human sign-off via the `approve` command.
208
+
209
+ ---
210
+
211
+ ### 📦 Current Release / Güncel Sürüm
212
+
213
+ **v1.10.0** — Stable Release (Dynamic Mobile Scaffolding & Performance).
214
+ * **EN:** Added Mobile (Expo/React Native) scaffolding support. Optimized orchestration loop with in-memory caching. Expanded discipline check (`check`) to audit agent documentation.
215
+ * **TR:** Mobil (Expo/React Native) uygulama üretme desteği eklendi. Orkestrasyon döngüsü bellek içi önbellekleme (in-memory cache) ile optimize edildi. Nizam denetimi (`check`) ajan dökümantasyonunu kapsayacak şekilde genişletildi.
216
+
217
+ ---
218
+
219
+ ### 💎 Strategic Platform Synergy (The Four Powers)
220
+
221
+ Agent Enderun coordinates industry-leading AI environments by assigning each a specific strategic military role:
222
+ * **🚀 Claude Code (Operational Surgery):** The **Field Engineer**. Excels in executing precise, surgical, and autonomous codebase edits.
223
+ * **♊ Gemini & Vertex AI (Command Intelligence):** The **Command Center**. Analyzes project history, memory logs, and executes high-level strategic decisions.
224
+ * **🛸 Antigravity (Internal Discipline):** The **Military Academy**. Provides an isolated, high-discipline sandbox to preserve internal framework coding standards.
225
+ * **🤖 Grok / X.ai (Scouting Wing):** The **Scouting Specialist**. Explores futuristic agent behaviors and tests experimental protocols.
226
+
227
+ ---
228
+
229
+ ### 🪖 The Consolidated 13-Agent Army
230
+
231
+ All workspace operations are divided among 13 specialized expert agents connected via the Hermes protocol:
232
+
233
+ | Agent | Specialization Role | Core Responsibility |
234
+ | :--- | :--- | :--- |
235
+ | **`@manager`** | Orchestration & Governance | Task dependency graphs (DAG), memory pruning (`PROJECT_MEMORY.md`), constitution compliance. |
236
+ | **`@architect`** | System Design & Architect | Core architecture, type contracts, and governance lock design. |
237
+ | **`@quality`** | Automated Testing & Quality | AST vulnerability scanning, constitutional audits, code review checklists, test standard gates. |
238
+ | **`@database`** | Database Migrations & Tuning | Database schemas, migration workflows, query optimization, and contract-aware seeding. |
239
+ | **`@backend`** | Domain Logic & Databases | API route design, branded types, layered architecture (Route -> Controller -> Service -> Repository). |
240
+ | **`@frontend`** | Fluid Responsive UI | Panda CSS design, responsive-first interfaces, customized React hooks, rollback discipline management. |
241
+ | **`@devops`** | Infrastructure & CI/CD | Native Node.js deployments, rollback plans, monitoring & logging setups. |
242
+ | **`@explorer`** | Codebase Intelligence | Project analysis, dependency graph generation, legacy conversion strategies. |
243
+ | **`@git`** | Version Control | Semantic Trace-ID-aligned commits, branch hygiene. |
244
+ | **`@mobile`** | Mobile App | React Native / Expo UI automation and native builds. |
245
+ | **`@native`** | Native OS Integration | Tauri and Electron desktop app integrations. |
246
+ | **`@security`** | Security & Cryptography | Security credentials, CSP configurations, API key rotations, and RLS authorization gate. |
247
+ | **`@analyst`** | Contract Verification | Database contract verification, constitutional compliance audits, and independent quality analysis. |
248
+
249
+ ---
250
+
251
+ ### 🪙 Token Economy & Memory Architecture
252
+
253
+ 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.
254
+
255
+ #### A. The Tiered Memory Model
256
+ The framework manages shared project knowledge and isolated specialist history across 3 robust layers:
257
+ 1. **Shared Project Memory (`.enderun/memory/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.
258
+ 2. **Shared General Facts (`memory-graph/shared-facts.json`):** Holds static declarations including the active technology stack, core policies, and sealed contract version hashes.
259
+ 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.
260
+
261
+ #### B. Dynamic Session Memory Flow
262
+ Enderun specialists autonomously coordinate context loading using the following pipeline:
263
+ * **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.
264
+ * **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.
265
+ * **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.
266
+
267
+ #### C. Token Compaction & Active Archiving
268
+ * **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.
269
+ * **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.
270
+
271
+ ---
272
+
273
+ ### 🛠️ Adapter Scaffolding & Setup Guide
274
+ > [!IMPORTANT]
275
+ > **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.).
276
+
277
+ #### 1. Gemini Adapter
278
+ Initialize the Gemini CLI / Vertex AI environment:
279
+ ```bash
280
+ npx agent-enderun init gemini
281
+ ```
282
+ * **Unified Architecture (Recommended):** Use `--unified` to merge all adapters into a single folder and prevent folder clutter:
283
+ ```bash
284
+ npx agent-enderun init gemini --unified
285
+ ```
286
+
287
+ #### 2. Claude Adapter (Claude Code CLI & Desktop App)
288
+ Bootstrap the framework for Anthropic's Claude:
289
+ ```bash
290
+ npx agent-enderun init claude
291
+ ```
292
+
293
+ #### 3. Grok Adapter
294
+ Scaffold for xAI Grok Build:
295
+ ```bash
296
+ npx agent-enderun init grok
297
+ ```
298
+
299
+ #### 4. Antigravity Adapter
300
+ Bootstrap the high-discipline sandbox for Antigravity IDE and CLI runtimes:
301
+ ```bash
302
+ npx agent-enderun init antigravity
303
+ ```
304
+
305
+ ---
306
+
307
+ ### 🕹️ CLI Command Reference
308
+
309
+ > **AL commands included:** `validate`, `validate-army`, `check:al` for dedicated Agent Lifecycle (AL) validation. `check` and `init` automatically enforce AL compliance (cross-adapter, npm installs supported).
310
+
311
+ Execute commands via `agent-enderun` (or `npx agent-enderun`):
312
+
313
+ * **`init [adapter] [--unified]`**: Scaffold framework directories and register local/global MCP server instances.
314
+ * **`status`**: Output active Phase (0-4), current active Trace ID, and agent capability logs.
315
+ * **`check`**: Run a thorough framework integrity, folder alignment, and constitutional compliance check.
316
+ * **`trace:new [desc] [agent] [priority]`**: Launch a new traceable task chain stamped with a unique ULID.
317
+ * **`orchestrate` / `loop`**: Launch the Hermes live event-driven message-routing loop for asynchronous agent synchronization.
318
+ * **`verify-contract`**: Perform a contract audit to ensure frontend types match backend schemas.
319
+ * **`update-contract`**: Re-calculate type definitions and update `contract.version.json` with a new SHA-256 hash.
320
+ * **`create-app [idea]`**: Autonomously generate a full-stack monorepo, **Web, Mobile (Expo/React Native), or Backend** project starter based on natural language inputs.
321
+ * **`approve [traceId]`**: Human-in-the-Loop command to sign off and approve high-risk/administrative tasks requested by agents.
43
322
 
44
- * **`npm run build`**: TypeScript derlemesini ve MCP paketlerini inşa eder.
45
- * **`npm run enderun:test`**: Tüm birim ve entegrasyon testlerini çalıştırır.
46
- * **`npm run enderun:check`**: Compliance Scanner ile kod disiplinini denetler.
47
- * **`npm run enderun:docs`**: Ajan tanımlarından dokümantasyonu günceller.
48
323
 
49
324
  ---
50
325
 
51
- Developed with absolute discipline | Developer **Yusuf BEKAR** | Framework Version **v1.1.10 (Final Stable)** — Enterprise-ready.
326
+ Developed with absolute discipline | Developer **Yusuf BEKAR** | Framework Version **v1.10.0 (Final Clean)** — Low-usage items arranged as reference-only. Bloat removed. Corporate-ready.
package/bin/cli.js CHANGED
@@ -2,12 +2,19 @@
2
2
  import { spawn } from "node:child_process";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { dirname, join } from "node:path";
5
+ import fs from "node:fs";
5
6
 
6
7
  const __filename = fileURLToPath(import.meta.url);
7
8
  const __dirname = dirname(__filename);
8
9
 
9
10
  const cliPath = join(__dirname, "../dist/src/cli/index.js");
10
11
 
12
+ if (!fs.existsSync(cliPath)) {
13
+ process.stderr.write("\n❌ Error: Compiled CLI not found at 'dist/src/cli/index.js'\n");
14
+ process.stderr.write("💡 Solution Tip: Run 'npm run build' to compile the project first.\n\n");
15
+ process.exit(1);
16
+ }
17
+
11
18
  const cmd = "node";
12
19
  const child = spawn(cmd, [cliPath, ...process.argv.slice(2)], {
13
20
  stdio: "inherit",