agent-enderun 1.1.2 → 1.1.3

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 (759) hide show
  1. package/{.enderun/ENDERUN.md → ENDERUN.md} +25 -25
  2. package/README.md +6 -6
  3. package/bin/compile.js +13 -14
  4. package/bin/enderun-dashboard.js +866 -0
  5. package/bin/generate-cursor-rules.js +78 -0
  6. package/bin/test-init-run.js +37 -26
  7. package/bin/validate-agent-army.js +65 -67
  8. package/bin/watch-memory.js +54 -0
  9. package/dist/framework-mcp/src/index.js +1 -1
  10. package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +15 -0
  11. package/dist/framework-mcp/src/tools/control_plane/locking.js +65 -0
  12. package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -0
  13. package/dist/framework-mcp/src/tools/control_plane/registry.d.ts +12 -0
  14. package/dist/framework-mcp/src/tools/control_plane/registry.js +35 -0
  15. package/dist/framework-mcp/src/tools/control_plane/registry.js.map +1 -0
  16. package/dist/framework-mcp/src/tools/definitions.js +46 -7
  17. package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
  18. package/dist/framework-mcp/src/tools/file_system/write_file.js +16 -2
  19. package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
  20. package/dist/framework-mcp/src/tools/index.d.ts +1 -1
  21. package/dist/framework-mcp/src/tools/index.js +5 -0
  22. package/dist/framework-mcp/src/tools/index.js.map +1 -1
  23. package/dist/framework-mcp/src/tools/messaging/send_message.d.ts +1 -1
  24. package/dist/framework-mcp/src/tools/messaging/send_message.js +2 -4
  25. package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -1
  26. package/dist/framework-mcp/src/utils/metrics.d.ts +10 -0
  27. package/dist/framework-mcp/src/utils/metrics.js +39 -0
  28. package/dist/framework-mcp/src/utils/metrics.js.map +1 -0
  29. package/dist/framework-mcp/src/utils/security.js +7 -3
  30. package/dist/framework-mcp/src/utils/security.js.map +1 -1
  31. package/dist/init-adapters/antigravity-cli/.agents/BRAIN_DASHBOARD.md +11 -0
  32. package/dist/init-adapters/antigravity-cli/.agents/STATUS.md +3 -0
  33. package/dist/init-adapters/antigravity-cli/.agents/agents/analyst/agent.json +28 -0
  34. package/dist/init-adapters/antigravity-cli/.agents/agents/architect/agent.json +30 -0
  35. package/dist/init-adapters/antigravity-cli/.agents/agents/backend/agent.json +30 -0
  36. package/dist/init-adapters/antigravity-cli/.agents/agents/database/agent.json +29 -0
  37. package/dist/init-adapters/antigravity-cli/.agents/agents/devops/agent.json +28 -0
  38. package/dist/init-adapters/antigravity-cli/.agents/agents/explorer/agent.json +29 -0
  39. package/dist/init-adapters/antigravity-cli/.agents/agents/frontend/agent.json +29 -0
  40. package/dist/init-adapters/antigravity-cli/.agents/agents/git/agent.json +28 -0
  41. package/dist/init-adapters/antigravity-cli/.agents/agents/manager/agent.json +30 -0
  42. package/dist/init-adapters/antigravity-cli/.agents/agents/mobile/agent.json +29 -0
  43. package/dist/init-adapters/antigravity-cli/.agents/agents/native/agent.json +29 -0
  44. package/dist/init-adapters/antigravity-cli/.agents/agents/quality/agent.json +29 -0
  45. package/dist/init-adapters/antigravity-cli/.agents/agents/security/agent.json +29 -0
  46. package/dist/init-adapters/antigravity-cli/.agents/cli-commands.json +32 -0
  47. package/dist/init-adapters/antigravity-cli/.agents/config.json +12 -0
  48. package/dist/init-adapters/antigravity-cli/.agents/mcp_config.json +13 -0
  49. package/dist/init-adapters/antigravity-cli/.agents/memory/PROJECT_MEMORY.md +8 -0
  50. package/dist/init-adapters/antigravity-cli/.agents/skills/discovery.md +3 -0
  51. package/dist/init-adapters/antigravity-cli/.agents/skills/editing.md +3 -0
  52. package/dist/init-adapters/antigravity-cli/.agents/skills/execution.md +4 -0
  53. package/dist/init-adapters/antigravity-cli/.agents/skills/file_system.md +4 -0
  54. package/dist/init-adapters/antigravity-cli/.agents/skills/orchestration.md +3 -0
  55. package/dist/init-adapters/antigravity-cli/AGENTS.md +1 -0
  56. package/dist/init-adapters/antigravity-cli/ENDERUN.md +263 -0
  57. package/dist/init-adapters/antigravity-cli/mcp.json +13 -0
  58. package/dist/init-adapters/antigravity-cli/package.json +5 -0
  59. package/dist/init-adapters/antigravity-cli/panda.config.ts +2 -0
  60. package/dist/init-adapters/claude/.claude/BRAIN_DASHBOARD.md +11 -0
  61. package/dist/init-adapters/claude/.claude/STATUS.md +3 -0
  62. package/dist/init-adapters/claude/.claude/agents/analyst.md +15 -0
  63. package/dist/init-adapters/claude/.claude/agents/architect.md +15 -0
  64. package/dist/init-adapters/claude/.claude/agents/backend.md +15 -0
  65. package/dist/init-adapters/claude/.claude/agents/database.md +15 -0
  66. package/dist/init-adapters/claude/.claude/agents/devops.md +15 -0
  67. package/dist/init-adapters/claude/.claude/agents/explorer.md +15 -0
  68. package/dist/init-adapters/claude/.claude/agents/frontend.md +15 -0
  69. package/dist/init-adapters/claude/.claude/agents/git.md +15 -0
  70. package/dist/init-adapters/claude/.claude/agents/manager.md +15 -0
  71. package/dist/init-adapters/claude/.claude/agents/mobile.md +15 -0
  72. package/dist/init-adapters/claude/.claude/agents/native.md +15 -0
  73. package/dist/init-adapters/claude/.claude/agents/quality.md +15 -0
  74. package/dist/init-adapters/claude/.claude/agents/security.md +15 -0
  75. package/dist/init-adapters/claude/.claude/cli-commands.json +32 -0
  76. package/dist/init-adapters/claude/.claude/config.json +12 -0
  77. package/dist/init-adapters/claude/.claude/mcp_config.json +13 -0
  78. package/dist/init-adapters/claude/.claude/memory/PROJECT_MEMORY.md +8 -0
  79. package/dist/init-adapters/claude/.claude/skills/discovery.md +3 -0
  80. package/dist/init-adapters/claude/.claude/skills/editing.md +3 -0
  81. package/dist/init-adapters/claude/.claude/skills/execution.md +4 -0
  82. package/dist/init-adapters/claude/.claude/skills/file_system.md +4 -0
  83. package/dist/init-adapters/claude/.claude/skills/orchestration.md +3 -0
  84. package/dist/init-adapters/claude/.mcp.json +13 -0
  85. package/dist/init-adapters/claude/CLAUDE.md +1 -0
  86. package/dist/init-adapters/claude/ENDERUN.md +263 -0
  87. package/dist/init-adapters/claude/mcp.json +13 -0
  88. package/dist/init-adapters/claude/package.json +5 -0
  89. package/dist/init-adapters/claude/panda.config.ts +2 -0
  90. package/dist/init-adapters/codex/.github/BRAIN_DASHBOARD.md +11 -0
  91. package/dist/init-adapters/codex/.github/STATUS.md +3 -0
  92. package/dist/init-adapters/codex/.github/agents/analyst.md +15 -0
  93. package/dist/init-adapters/codex/.github/agents/architect.md +15 -0
  94. package/dist/init-adapters/codex/.github/agents/backend.md +15 -0
  95. package/dist/init-adapters/codex/.github/agents/database.md +15 -0
  96. package/dist/init-adapters/codex/.github/agents/devops.md +15 -0
  97. package/dist/init-adapters/codex/.github/agents/explorer.md +15 -0
  98. package/dist/init-adapters/codex/.github/agents/frontend.md +15 -0
  99. package/dist/init-adapters/codex/.github/agents/git.md +15 -0
  100. package/dist/init-adapters/codex/.github/agents/manager.md +15 -0
  101. package/dist/init-adapters/codex/.github/agents/mobile.md +15 -0
  102. package/dist/init-adapters/codex/.github/agents/native.md +15 -0
  103. package/dist/init-adapters/codex/.github/agents/quality.md +15 -0
  104. package/dist/init-adapters/codex/.github/agents/security.md +15 -0
  105. package/dist/init-adapters/codex/.github/cli-commands.json +32 -0
  106. package/dist/init-adapters/codex/.github/config.json +12 -0
  107. package/dist/init-adapters/codex/.github/mcp_config.json +13 -0
  108. package/dist/init-adapters/codex/.github/memory/PROJECT_MEMORY.md +8 -0
  109. package/dist/init-adapters/codex/.github/skills/discovery.md +3 -0
  110. package/dist/init-adapters/codex/.github/skills/editing.md +3 -0
  111. package/dist/init-adapters/codex/.github/skills/execution.md +4 -0
  112. package/dist/init-adapters/codex/.github/skills/file_system.md +4 -0
  113. package/dist/init-adapters/codex/.github/skills/orchestration.md +3 -0
  114. package/dist/init-adapters/codex/.mcp.json +13 -0
  115. package/dist/init-adapters/codex/.vscode/mcp.json +13 -0
  116. package/dist/init-adapters/codex/ENDERUN.md +263 -0
  117. package/dist/init-adapters/codex/copilot-instructions.md +1 -0
  118. package/dist/init-adapters/codex/mcp.json +13 -0
  119. package/dist/init-adapters/codex/package.json +5 -0
  120. package/dist/init-adapters/codex/panda.config.ts +2 -0
  121. package/dist/init-adapters/cursor/.cursor/BRAIN_DASHBOARD.md +11 -0
  122. package/dist/init-adapters/cursor/.cursor/STATUS.md +3 -0
  123. package/dist/init-adapters/cursor/.cursor/agents/analyst.md +15 -0
  124. package/dist/init-adapters/cursor/.cursor/agents/architect.md +15 -0
  125. package/dist/init-adapters/cursor/.cursor/agents/backend.md +15 -0
  126. package/dist/init-adapters/cursor/.cursor/agents/database.md +15 -0
  127. package/dist/init-adapters/cursor/.cursor/agents/devops.md +15 -0
  128. package/dist/init-adapters/cursor/.cursor/agents/explorer.md +15 -0
  129. package/dist/init-adapters/cursor/.cursor/agents/frontend.md +15 -0
  130. package/dist/init-adapters/cursor/.cursor/agents/git.md +15 -0
  131. package/dist/init-adapters/cursor/.cursor/agents/manager.md +15 -0
  132. package/dist/init-adapters/cursor/.cursor/agents/mobile.md +15 -0
  133. package/dist/init-adapters/cursor/.cursor/agents/native.md +15 -0
  134. package/dist/init-adapters/cursor/.cursor/agents/quality.md +15 -0
  135. package/dist/init-adapters/cursor/.cursor/agents/security.md +15 -0
  136. package/dist/init-adapters/cursor/.cursor/cli-commands.json +32 -0
  137. package/dist/init-adapters/cursor/.cursor/config.json +12 -0
  138. package/dist/init-adapters/cursor/.cursor/mcp.json +13 -0
  139. package/dist/init-adapters/cursor/.cursor/memory/PROJECT_MEMORY.md +8 -0
  140. package/dist/init-adapters/cursor/.cursor/skills/discovery.md +3 -0
  141. package/dist/init-adapters/cursor/.cursor/skills/editing.md +3 -0
  142. package/dist/init-adapters/cursor/.cursor/skills/execution.md +4 -0
  143. package/dist/init-adapters/cursor/.cursor/skills/file_system.md +4 -0
  144. package/dist/init-adapters/cursor/.cursor/skills/orchestration.md +3 -0
  145. package/dist/init-adapters/cursor/CURSOR.md +1 -0
  146. package/dist/init-adapters/cursor/ENDERUN.md +263 -0
  147. package/dist/init-adapters/cursor/mcp.json +13 -0
  148. package/dist/init-adapters/cursor/package.json +5 -0
  149. package/dist/init-adapters/cursor/panda.config.ts +2 -0
  150. package/dist/init-adapters/gemini/.gemini/BRAIN_DASHBOARD.md +11 -0
  151. package/dist/init-adapters/gemini/.gemini/STATUS.md +3 -0
  152. package/dist/init-adapters/gemini/.gemini/agents/analyst.md +15 -0
  153. package/dist/init-adapters/gemini/.gemini/agents/architect.md +15 -0
  154. package/dist/init-adapters/gemini/.gemini/agents/backend.md +15 -0
  155. package/dist/init-adapters/gemini/.gemini/agents/database.md +15 -0
  156. package/dist/init-adapters/gemini/.gemini/agents/devops.md +15 -0
  157. package/dist/init-adapters/gemini/.gemini/agents/explorer.md +15 -0
  158. package/dist/init-adapters/gemini/.gemini/agents/frontend.md +15 -0
  159. package/dist/init-adapters/gemini/.gemini/agents/git.md +15 -0
  160. package/dist/init-adapters/gemini/.gemini/agents/manager.md +15 -0
  161. package/dist/init-adapters/gemini/.gemini/agents/mobile.md +15 -0
  162. package/dist/init-adapters/gemini/.gemini/agents/native.md +15 -0
  163. package/dist/init-adapters/gemini/.gemini/agents/quality.md +15 -0
  164. package/dist/init-adapters/gemini/.gemini/agents/security.md +15 -0
  165. package/dist/init-adapters/gemini/.gemini/cli-commands.json +32 -0
  166. package/dist/init-adapters/gemini/.gemini/config.json +12 -0
  167. package/dist/init-adapters/gemini/.gemini/mcp.json +13 -0
  168. package/dist/init-adapters/gemini/.gemini/memory/PROJECT_MEMORY.md +8 -0
  169. package/dist/init-adapters/gemini/.gemini/skills/discovery.md +3 -0
  170. package/dist/init-adapters/gemini/.gemini/skills/editing.md +3 -0
  171. package/dist/init-adapters/gemini/.gemini/skills/execution.md +4 -0
  172. package/dist/init-adapters/gemini/.gemini/skills/file_system.md +4 -0
  173. package/dist/init-adapters/gemini/.gemini/skills/orchestration.md +3 -0
  174. package/dist/init-adapters/gemini/ENDERUN.md +263 -0
  175. package/dist/init-adapters/gemini/GEMINI.md +1 -0
  176. package/dist/init-adapters/gemini/mcp.json +13 -0
  177. package/dist/init-adapters/gemini/package.json +5 -0
  178. package/dist/init-adapters/gemini/panda.config.ts +2 -0
  179. package/dist/init-adapters/grok/.grok/BRAIN_DASHBOARD.md +11 -0
  180. package/dist/init-adapters/grok/.grok/STATUS.md +3 -0
  181. package/dist/init-adapters/grok/.grok/agents/analyst.md +15 -0
  182. package/dist/init-adapters/grok/.grok/agents/architect.md +15 -0
  183. package/dist/init-adapters/grok/.grok/agents/backend.md +15 -0
  184. package/dist/init-adapters/grok/.grok/agents/database.md +15 -0
  185. package/dist/init-adapters/grok/.grok/agents/devops.md +15 -0
  186. package/dist/init-adapters/grok/.grok/agents/explorer.md +15 -0
  187. package/dist/init-adapters/grok/.grok/agents/frontend.md +15 -0
  188. package/dist/init-adapters/grok/.grok/agents/git.md +15 -0
  189. package/dist/init-adapters/grok/.grok/agents/manager.md +15 -0
  190. package/dist/init-adapters/grok/.grok/agents/mobile.md +15 -0
  191. package/dist/init-adapters/grok/.grok/agents/native.md +15 -0
  192. package/dist/init-adapters/grok/.grok/agents/quality.md +15 -0
  193. package/dist/init-adapters/grok/.grok/agents/security.md +15 -0
  194. package/dist/init-adapters/grok/.grok/cli-commands.json +32 -0
  195. package/dist/init-adapters/grok/.grok/config.json +12 -0
  196. package/{.enderun → dist/init-adapters/grok/.grok}/mcp_config.json +4 -2
  197. package/dist/init-adapters/grok/.grok/memory/PROJECT_MEMORY.md +8 -0
  198. package/dist/init-adapters/grok/.grok/skills/discovery.md +3 -0
  199. package/dist/init-adapters/grok/.grok/skills/editing.md +3 -0
  200. package/dist/init-adapters/grok/.grok/skills/execution.md +4 -0
  201. package/dist/init-adapters/grok/.grok/skills/file_system.md +4 -0
  202. package/dist/init-adapters/grok/.grok/skills/orchestration.md +3 -0
  203. package/dist/init-adapters/grok/ENDERUN.md +263 -0
  204. package/dist/init-adapters/grok/GROK.md +1 -0
  205. package/{mcp.json → dist/init-adapters/grok/mcp.json} +4 -2
  206. package/dist/init-adapters/grok/package.json +5 -0
  207. package/dist/init-adapters/grok/panda.config.ts +2 -0
  208. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp.json +13 -0
  209. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/mcp_config.json +13 -0
  210. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst/agent.json +28 -0
  211. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/analyst.json +28 -0
  212. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect/agent.json +30 -0
  213. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/architect.json +30 -0
  214. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend/agent.json +30 -0
  215. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/backend.json +30 -0
  216. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database/agent.json +29 -0
  217. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/database.json +29 -0
  218. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops/agent.json +28 -0
  219. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/devops.json +28 -0
  220. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer/agent.json +29 -0
  221. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/explorer.json +29 -0
  222. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend/agent.json +29 -0
  223. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/frontend.json +29 -0
  224. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git/agent.json +28 -0
  225. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/git.json +28 -0
  226. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager/agent.json +30 -0
  227. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/manager.json +30 -0
  228. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile/agent.json +29 -0
  229. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/mobile.json +29 -0
  230. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native/agent.json +29 -0
  231. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/native.json +29 -0
  232. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality/agent.json +29 -0
  233. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/quality.json +29 -0
  234. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security/agent.json +29 -0
  235. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/agents/security.json +29 -0
  236. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/hooks.json +4 -0
  237. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp.json +13 -0
  238. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/mcp_config.json +13 -0
  239. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/plugin.json +5 -0
  240. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/analyst.md +11 -0
  241. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/architect.md +11 -0
  242. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/backend.md +11 -0
  243. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/database.md +11 -0
  244. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/devops.md +11 -0
  245. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/explorer.md +11 -0
  246. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/frontend.md +11 -0
  247. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/git.md +11 -0
  248. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/manager.md +11 -0
  249. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/mobile.md +11 -0
  250. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/native.md +11 -0
  251. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/quality.md +11 -0
  252. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/rules/security.md +11 -0
  253. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/discovery.md +3 -0
  254. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/editing.md +3 -0
  255. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/execution.md +4 -0
  256. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/file_system.md +4 -0
  257. package/dist/init-adapters/mock-home/.gemini/antigravity-cli/plugins/agent-enderun/skills/orchestration.md +3 -0
  258. package/dist/init-adapters/mock-home/Library/Application Support/Claude/claude_desktop_config.json +13 -0
  259. package/dist/src/cli/adapters/types.d.ts +14 -0
  260. package/dist/src/cli/adapters/types.js +2 -0
  261. package/dist/src/cli/adapters/types.js.map +1 -0
  262. package/dist/src/cli/adapters.d.ts +4 -22
  263. package/dist/src/cli/adapters.js +123 -141
  264. package/dist/src/cli/adapters.js.map +1 -1
  265. package/dist/src/cli/commands/check.d.ts +0 -5
  266. package/dist/src/cli/commands/check.js +64 -76
  267. package/dist/src/cli/commands/check.js.map +1 -1
  268. package/dist/src/cli/commands/init.d.ts +1 -1
  269. package/dist/src/cli/commands/init.js +154 -319
  270. package/dist/src/cli/commands/init.js.map +1 -1
  271. package/dist/src/cli/commands/log.d.ts +1 -0
  272. package/dist/src/cli/commands/log.js.map +1 -1
  273. package/dist/src/cli/commands/memory.js +2 -69
  274. package/dist/src/cli/commands/memory.js.map +1 -1
  275. package/dist/src/cli/commands/orchestrate.d.ts +19 -9
  276. package/dist/src/cli/commands/orchestrate.js +56 -77
  277. package/dist/src/cli/commands/orchestrate.js.map +1 -1
  278. package/dist/src/cli/index.js +112 -30
  279. package/dist/src/cli/index.js.map +1 -1
  280. package/dist/src/cli/utils/app.d.ts +1 -2
  281. package/dist/src/cli/utils/app.js +2 -2
  282. package/dist/src/cli/utils/app.js.map +1 -1
  283. package/dist/src/cli/utils/config-schema.d.ts +139 -0
  284. package/dist/src/cli/utils/config-schema.js +43 -0
  285. package/dist/src/cli/utils/config-schema.js.map +1 -0
  286. package/dist/src/cli/utils/fs.d.ts +2 -4
  287. package/dist/src/cli/utils/fs.js +9 -26
  288. package/dist/src/cli/utils/fs.js.map +1 -1
  289. package/dist/src/cli/utils/memory.d.ts +4 -3
  290. package/dist/src/cli/utils/memory.js +135 -116
  291. package/dist/src/cli/utils/memory.js.map +1 -1
  292. package/dist/src/cli/utils/pkg.js +4 -4
  293. package/dist/src/cli/utils/pkg.js.map +1 -1
  294. package/dist/src/cli/utils/ui.d.ts +30 -0
  295. package/dist/src/cli/utils/ui.js +56 -0
  296. package/dist/src/cli/utils/ui.js.map +1 -0
  297. package/dist/src/modules/adapters/antigravity-cli.d.ts +3 -0
  298. package/dist/src/modules/adapters/antigravity-cli.js +21 -0
  299. package/dist/src/modules/adapters/antigravity-cli.js.map +1 -0
  300. package/dist/src/modules/adapters/claude.d.ts +3 -0
  301. package/dist/src/modules/adapters/claude.js +36 -0
  302. package/dist/src/modules/adapters/claude.js.map +1 -0
  303. package/dist/src/modules/adapters/codex.d.ts +3 -0
  304. package/dist/src/modules/adapters/codex.js +20 -0
  305. package/dist/src/modules/adapters/codex.js.map +1 -0
  306. package/dist/src/modules/adapters/cursor.d.ts +3 -0
  307. package/dist/src/modules/adapters/cursor.js +20 -0
  308. package/dist/src/modules/adapters/cursor.js.map +1 -0
  309. package/dist/src/modules/adapters/gemini.d.ts +3 -0
  310. package/dist/src/modules/adapters/gemini.js +23 -0
  311. package/dist/src/modules/adapters/gemini.js.map +1 -0
  312. package/dist/src/modules/adapters/grok.d.ts +3 -0
  313. package/dist/src/modules/adapters/grok.js +18 -0
  314. package/dist/src/modules/adapters/grok.js.map +1 -0
  315. package/dist/src/modules/adapters/shared.d.ts +1 -0
  316. package/dist/src/modules/adapters/shared.js +79 -0
  317. package/dist/src/modules/adapters/shared.js.map +1 -0
  318. package/dist/src/modules/adapters/types.d.ts +14 -0
  319. package/dist/src/modules/adapters/types.js +2 -0
  320. package/dist/src/modules/adapters/types.js.map +1 -0
  321. package/dist/src/modules/agents/definitions.d.ts +13 -0
  322. package/dist/src/modules/agents/definitions.js +169 -0
  323. package/dist/src/modules/agents/definitions.js.map +1 -0
  324. package/dist/src/modules/skills/definitions.d.ts +31 -0
  325. package/dist/src/modules/skills/definitions.js +32 -0
  326. package/dist/src/modules/skills/definitions.js.map +1 -0
  327. package/dist/src/shared/fs.d.ts +3 -0
  328. package/dist/src/shared/fs.js +24 -0
  329. package/dist/src/shared/fs.js.map +1 -0
  330. package/eslint.config.js +1 -0
  331. package/framework-mcp/dist/src/index.js +1 -1
  332. package/framework-mcp/dist/src/tools/control_plane/locking.js +64 -0
  333. package/framework-mcp/dist/src/tools/control_plane/registry.js +34 -0
  334. package/framework-mcp/dist/src/tools/definitions.js +46 -7
  335. package/framework-mcp/dist/src/tools/file_system/write_file.js +16 -2
  336. package/framework-mcp/dist/src/tools/index.js +5 -0
  337. package/framework-mcp/dist/src/tools/messaging/send_message.js +2 -4
  338. package/framework-mcp/dist/src/utils/metrics.js +38 -0
  339. package/framework-mcp/dist/src/utils/security.js +7 -3
  340. package/framework-mcp/dist/tests/tools/file_system/file_system_tools.test.js +147 -0
  341. package/framework-mcp/package.json +1 -1
  342. package/framework-mcp/src/index.ts +1 -1
  343. package/framework-mcp/src/tools/control_plane/locking.ts +77 -0
  344. package/framework-mcp/src/tools/control_plane/registry.ts +44 -0
  345. package/framework-mcp/src/tools/definitions.ts +46 -7
  346. package/framework-mcp/src/tools/file_system/write_file.ts +19 -2
  347. package/framework-mcp/src/tools/index.ts +6 -1
  348. package/framework-mcp/src/tools/messaging/send_message.ts +2 -3
  349. package/framework-mcp/src/utils/metrics.ts +53 -0
  350. package/framework-mcp/src/utils/security.ts +8 -3
  351. package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +164 -0
  352. package/framework-mcp/tsconfig.json +2 -1
  353. package/package.json +12 -11
  354. package/src/cli/adapters/types.ts +16 -0
  355. package/src/cli/adapters.ts +130 -156
  356. package/src/cli/commands/check.ts +61 -77
  357. package/src/cli/commands/init.ts +163 -312
  358. package/src/cli/commands/log.ts +1 -1
  359. package/src/cli/commands/memory.ts +3 -80
  360. package/src/cli/commands/orchestrate.ts +76 -90
  361. package/src/cli/index.ts +121 -29
  362. package/src/cli/utils/app.ts +3 -3
  363. package/src/cli/utils/config-schema.ts +48 -0
  364. package/src/cli/utils/fs.ts +10 -27
  365. package/src/cli/utils/memory.ts +143 -112
  366. package/src/cli/utils/pkg.ts +4 -4
  367. package/src/cli/utils/ui.ts +63 -0
  368. package/src/modules/adapters/antigravity-cli.ts +25 -0
  369. package/src/modules/adapters/claude.ts +36 -0
  370. package/src/modules/adapters/codex.ts +22 -0
  371. package/src/modules/adapters/cursor.ts +22 -0
  372. package/src/modules/adapters/gemini.ts +27 -0
  373. package/src/modules/adapters/grok.ts +20 -0
  374. package/src/modules/adapters/shared.ts +90 -0
  375. package/src/modules/adapters/types.ts +16 -0
  376. package/src/modules/agents/definitions.ts +182 -0
  377. package/src/modules/skills/definitions.ts +32 -0
  378. package/src/shared/fs.ts +25 -0
  379. package/.enderun/BRAIN_DASHBOARD.md +0 -46
  380. package/.enderun/STATUS.md +0 -61
  381. package/.enderun/agents/agent_army_schema.json +0 -101
  382. package/.enderun/agents/analyst.json +0 -32
  383. package/.enderun/agents/backend.json +0 -32
  384. package/.enderun/agents/database.json +0 -32
  385. package/.enderun/agents/devops.json +0 -32
  386. package/.enderun/agents/explorer.json +0 -32
  387. package/.enderun/agents/frontend.json +0 -32
  388. package/.enderun/agents/git.json +0 -32
  389. package/.enderun/agents/manager.json +0 -32
  390. package/.enderun/agents/mobile.json +0 -32
  391. package/.enderun/agents/native.json +0 -32
  392. package/.enderun/agents/quality.json +0 -32
  393. package/.enderun/agents/schema/agent-lifecycle-schema.json +0 -41
  394. package/.enderun/agents/security.json +0 -32
  395. package/.enderun/benchmarks/.gitkeep +0 -0
  396. package/.enderun/cli-commands.json +0 -76
  397. package/.enderun/config.json +0 -13
  398. package/.enderun/knowledge/ARCHITECTURE.md +0 -1
  399. package/.enderun/knowledge/SECURITY.md +0 -1
  400. package/.enderun/knowledge/SHIM_TEMPLATE.md +0 -36
  401. package/.enderun/knowledge/analyst_reference_guide.md +0 -31
  402. package/.enderun/knowledge/async_error_handling.md +0 -27
  403. package/.enderun/knowledge/backend_reference_guide.md +0 -165
  404. package/.enderun/knowledge/blueprint_driven_construction.md +0 -22
  405. package/.enderun/knowledge/context_boundary_rules.md +0 -57
  406. package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +0 -92
  407. package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +0 -59
  408. package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +0 -125
  409. package/.enderun/knowledge/corporate-governance/branded-types-law.md +0 -77
  410. package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +0 -92
  411. package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +0 -89
  412. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +0 -56
  413. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +0 -144
  414. package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +0 -103
  415. package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +0 -75
  416. package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +0 -211
  417. package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +0 -54
  418. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +0 -167
  419. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow.md +0 -29
  420. package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +0 -76
  421. package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +0 -49
  422. package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +0 -112
  423. package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +0 -79
  424. package/.enderun/knowledge/database_reference_guide.md +0 -38
  425. package/.enderun/knowledge/devops_reference_guide.md +0 -43
  426. package/.enderun/knowledge/documentation_ownership.md +0 -53
  427. package/.enderun/knowledge/eslint-standards.md +0 -63
  428. package/.enderun/knowledge/evaluation_engine.md +0 -26
  429. package/.enderun/knowledge/explorer_reference_guide.md +0 -34
  430. package/.enderun/knowledge/framework_vs_user_project_boundary.md +0 -52
  431. package/.enderun/knowledge/frontend_professionalization_guidelines.md +0 -108
  432. package/.enderun/knowledge/frontend_reference_guide.md +0 -64
  433. package/.enderun/knowledge/git_reference_guide.md +0 -51
  434. package/.enderun/knowledge/hermes_live_test_guidelines.md +0 -90
  435. package/.enderun/knowledge/hermes_protocol.md +0 -59
  436. package/.enderun/knowledge/legacy_onboarding.md +0 -18
  437. package/.enderun/knowledge/lessons-learned.md +0 -14
  438. package/.enderun/knowledge/manager_authority_audit_enforcement.md +0 -104
  439. package/.enderun/knowledge/manager_reference_guide.md +0 -55
  440. package/.enderun/knowledge/mobile_reference_guide.md +0 -35
  441. package/.enderun/knowledge/native_reference_guide.md +0 -34
  442. package/.enderun/knowledge/project_scaffold_guidelines.md +0 -110
  443. package/.enderun/knowledge/quality_reference_guide.md +0 -42
  444. package/.enderun/knowledge/reference_application_guidelines.md +0 -101
  445. package/.enderun/knowledge/responsive_design_standards.md +0 -27
  446. package/.enderun/knowledge/router_logic.md +0 -29
  447. package/.enderun/knowledge/security_reference_guide.md +0 -35
  448. package/.enderun/knowledge/token_economy_and_memory.md +0 -129
  449. package/.enderun/knowledge/zero_ui_library_policy.md +0 -13
  450. package/.enderun/logs/manager.json +0 -52
  451. package/.enderun/memory/BUSINESS_CONTEXT.md +0 -17
  452. package/.enderun/memory/DECISIONS.md +0 -24
  453. package/.enderun/memory/LESSONS_LEARNED.md +0 -12
  454. package/.enderun/memory/PATTERNS.md +0 -17
  455. package/.enderun/memory/PROJECT_MEMORY.md +0 -69
  456. package/.enderun/memory-graph/agent-contexts/analyst.json +0 -1
  457. package/.enderun/memory-graph/agent-contexts/backend.json +0 -1
  458. package/.enderun/memory-graph/agent-contexts/devops.json +0 -1
  459. package/.enderun/memory-graph/agent-contexts/explorer.json +0 -1
  460. package/.enderun/memory-graph/agent-contexts/frontend.json +0 -1
  461. package/.enderun/memory-graph/agent-contexts/git.json +0 -1
  462. package/.enderun/memory-graph/agent-contexts/manager.json +0 -1
  463. package/.enderun/memory-graph/agent-contexts/mobile.json +0 -1
  464. package/.enderun/memory-graph/agent-contexts/native.json +0 -1
  465. package/.enderun/memory-graph/agent-contexts/quality.json +0 -1
  466. package/.enderun/memory-graph/agent-contexts/security.json +0 -1
  467. package/.enderun/memory-graph/graph.json +0 -133
  468. package/.enderun/memory-graph/shared-facts.json +0 -46
  469. package/.enderun/monitoring/.gitkeep +0 -0
  470. package/.enderun/observability/AUDIT_LOG.md +0 -9
  471. package/.enderun/observability/METRICS.md +0 -10
  472. package/.enderun/observability/README.md +0 -19
  473. package/.enderun/observability/TRACE_LOG.md +0 -10
  474. package/.enderun/queue/README.md +0 -36
  475. package/.enderun/registry/agents.yaml +0 -69
  476. package/.enderun/skills/agent_handshake.md +0 -37
  477. package/.enderun/skills/multi_agent_coordination.md +0 -64
  478. package/.enderun/skills/subagent_lifecycle.md +0 -48
  479. package/CLAUDE.md +0 -21
  480. package/GEMINI.md +0 -24
  481. package/GROK.md +0 -20
  482. package/agent.md +0 -25
  483. package/dist/.keep +0 -1
  484. package/dist/tests/adapter.test.d.ts +0 -1
  485. package/dist/tests/adapter.test.js +0 -82
  486. package/dist/tests/adapter.test.js.map +0 -1
  487. package/dist/tests/gemini.test.d.ts +0 -1
  488. package/dist/tests/gemini.test.js +0 -39
  489. package/dist/tests/gemini.test.js.map +0 -1
  490. package/dist/tests/initial.test.d.ts +0 -1
  491. package/dist/tests/initial.test.js +0 -7
  492. package/dist/tests/initial.test.js.map +0 -1
  493. package/docs/project_analysis_report.md +0 -69
  494. package/framework-mcp/dist/index.js +0 -70
  495. package/framework-mcp/dist/tests/tools/file_system/replace_text.test.js +0 -68
  496. package/framework-mcp/dist/tools/definitions.js +0 -110
  497. package/framework-mcp/dist/tools/file_system/patch_file.js +0 -18
  498. package/framework-mcp/dist/tools/file_system/read_file.js +0 -7
  499. package/framework-mcp/dist/tools/file_system/replace_text.js +0 -31
  500. package/framework-mcp/dist/tools/file_system/write_file.js +0 -9
  501. package/framework-mcp/dist/tools/framework/get_status.js +0 -5
  502. package/framework-mcp/dist/tools/framework/orchestrate.js +0 -5
  503. package/framework-mcp/dist/tools/framework/update_contract_hash.js +0 -5
  504. package/framework-mcp/dist/tools/framework/update_memory.js +0 -8
  505. package/framework-mcp/dist/tools/index.js +0 -25
  506. package/framework-mcp/dist/tools/messaging/log_action.js +0 -22
  507. package/framework-mcp/dist/tools/messaging/send_message.js +0 -23
  508. package/framework-mcp/dist/tools/types.js +0 -1
  509. package/framework-mcp/dist/utils/cli.js +0 -20
  510. package/framework-mcp/dist/utils/security.js +0 -53
  511. package/framework-mcp/node_modules/@types/node/LICENSE +0 -21
  512. package/framework-mcp/node_modules/@types/node/README.md +0 -15
  513. package/framework-mcp/node_modules/@types/node/assert/strict.d.ts +0 -111
  514. package/framework-mcp/node_modules/@types/node/assert.d.ts +0 -1078
  515. package/framework-mcp/node_modules/@types/node/async_hooks.d.ts +0 -603
  516. package/framework-mcp/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  517. package/framework-mcp/node_modules/@types/node/buffer.d.ts +0 -1934
  518. package/framework-mcp/node_modules/@types/node/child_process.d.ts +0 -1476
  519. package/framework-mcp/node_modules/@types/node/cluster.d.ts +0 -578
  520. package/framework-mcp/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  521. package/framework-mcp/node_modules/@types/node/compatibility/index.d.ts +0 -9
  522. package/framework-mcp/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  523. package/framework-mcp/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  524. package/framework-mcp/node_modules/@types/node/console.d.ts +0 -452
  525. package/framework-mcp/node_modules/@types/node/constants.d.ts +0 -21
  526. package/framework-mcp/node_modules/@types/node/crypto.d.ts +0 -4545
  527. package/framework-mcp/node_modules/@types/node/dgram.d.ts +0 -600
  528. package/framework-mcp/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  529. package/framework-mcp/node_modules/@types/node/dns/promises.d.ts +0 -503
  530. package/framework-mcp/node_modules/@types/node/dns.d.ts +0 -923
  531. package/framework-mcp/node_modules/@types/node/domain.d.ts +0 -170
  532. package/framework-mcp/node_modules/@types/node/events.d.ts +0 -976
  533. package/framework-mcp/node_modules/@types/node/fs/promises.d.ts +0 -1295
  534. package/framework-mcp/node_modules/@types/node/fs.d.ts +0 -4461
  535. package/framework-mcp/node_modules/@types/node/globals.d.ts +0 -172
  536. package/framework-mcp/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  537. package/framework-mcp/node_modules/@types/node/http.d.ts +0 -2089
  538. package/framework-mcp/node_modules/@types/node/http2.d.ts +0 -2721
  539. package/framework-mcp/node_modules/@types/node/https.d.ts +0 -579
  540. package/framework-mcp/node_modules/@types/node/index.d.ts +0 -97
  541. package/framework-mcp/node_modules/@types/node/inspector.d.ts +0 -253
  542. package/framework-mcp/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  543. package/framework-mcp/node_modules/@types/node/module.d.ts +0 -891
  544. package/framework-mcp/node_modules/@types/node/net.d.ts +0 -1076
  545. package/framework-mcp/node_modules/@types/node/os.d.ts +0 -506
  546. package/framework-mcp/node_modules/@types/node/package.json +0 -145
  547. package/framework-mcp/node_modules/@types/node/path.d.ts +0 -200
  548. package/framework-mcp/node_modules/@types/node/perf_hooks.d.ts +0 -968
  549. package/framework-mcp/node_modules/@types/node/process.d.ts +0 -2084
  550. package/framework-mcp/node_modules/@types/node/punycode.d.ts +0 -117
  551. package/framework-mcp/node_modules/@types/node/querystring.d.ts +0 -152
  552. package/framework-mcp/node_modules/@types/node/readline/promises.d.ts +0 -161
  553. package/framework-mcp/node_modules/@types/node/readline.d.ts +0 -594
  554. package/framework-mcp/node_modules/@types/node/repl.d.ts +0 -428
  555. package/framework-mcp/node_modules/@types/node/sea.d.ts +0 -153
  556. package/framework-mcp/node_modules/@types/node/sqlite.d.ts +0 -721
  557. package/framework-mcp/node_modules/@types/node/stream/consumers.d.ts +0 -38
  558. package/framework-mcp/node_modules/@types/node/stream/promises.d.ts +0 -90
  559. package/framework-mcp/node_modules/@types/node/stream/web.d.ts +0 -622
  560. package/framework-mcp/node_modules/@types/node/stream.d.ts +0 -1687
  561. package/framework-mcp/node_modules/@types/node/string_decoder.d.ts +0 -67
  562. package/framework-mcp/node_modules/@types/node/test.d.ts +0 -2163
  563. package/framework-mcp/node_modules/@types/node/timers/promises.d.ts +0 -108
  564. package/framework-mcp/node_modules/@types/node/timers.d.ts +0 -287
  565. package/framework-mcp/node_modules/@types/node/tls.d.ts +0 -1319
  566. package/framework-mcp/node_modules/@types/node/trace_events.d.ts +0 -197
  567. package/framework-mcp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  568. package/framework-mcp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  569. package/framework-mcp/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  570. package/framework-mcp/node_modules/@types/node/tty.d.ts +0 -208
  571. package/framework-mcp/node_modules/@types/node/url.d.ts +0 -984
  572. package/framework-mcp/node_modules/@types/node/util.d.ts +0 -2606
  573. package/framework-mcp/node_modules/@types/node/v8.d.ts +0 -920
  574. package/framework-mcp/node_modules/@types/node/vm.d.ts +0 -1000
  575. package/framework-mcp/node_modules/@types/node/wasi.d.ts +0 -181
  576. package/framework-mcp/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  577. package/framework-mcp/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  578. package/framework-mcp/node_modules/@types/node/web-globals/events.d.ts +0 -97
  579. package/framework-mcp/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  580. package/framework-mcp/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  581. package/framework-mcp/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  582. package/framework-mcp/node_modules/@types/node/worker_threads.d.ts +0 -784
  583. package/framework-mcp/node_modules/@types/node/zlib.d.ts +0 -747
  584. package/framework-mcp/node_modules/typescript/LICENSE.txt +0 -55
  585. package/framework-mcp/node_modules/typescript/README.md +0 -50
  586. package/framework-mcp/node_modules/typescript/SECURITY.md +0 -41
  587. package/framework-mcp/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  588. package/framework-mcp/node_modules/typescript/bin/tsc +0 -2
  589. package/framework-mcp/node_modules/typescript/bin/tsserver +0 -2
  590. package/framework-mcp/node_modules/typescript/lib/_tsc.js +0 -133818
  591. package/framework-mcp/node_modules/typescript/lib/_tsserver.js +0 -659
  592. package/framework-mcp/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  593. package/framework-mcp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  594. package/framework-mcp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  595. package/framework-mcp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  596. package/framework-mcp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  597. package/framework-mcp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  598. package/framework-mcp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  599. package/framework-mcp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  600. package/framework-mcp/node_modules/typescript/lib/lib.d.ts +0 -22
  601. package/framework-mcp/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  602. package/framework-mcp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  603. package/framework-mcp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  604. package/framework-mcp/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  605. package/framework-mcp/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  606. package/framework-mcp/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  607. package/framework-mcp/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  608. package/framework-mcp/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  609. package/framework-mcp/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  610. package/framework-mcp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  611. package/framework-mcp/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  612. package/framework-mcp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  613. package/framework-mcp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  614. package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  615. package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  616. package/framework-mcp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  617. package/framework-mcp/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  618. package/framework-mcp/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  619. package/framework-mcp/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  620. package/framework-mcp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  621. package/framework-mcp/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  622. package/framework-mcp/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  623. package/framework-mcp/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  624. package/framework-mcp/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  625. package/framework-mcp/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  626. package/framework-mcp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  627. package/framework-mcp/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  628. package/framework-mcp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  629. package/framework-mcp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  630. package/framework-mcp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  631. package/framework-mcp/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  632. package/framework-mcp/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  633. package/framework-mcp/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  634. package/framework-mcp/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  635. package/framework-mcp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  636. package/framework-mcp/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  637. package/framework-mcp/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  638. package/framework-mcp/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  639. package/framework-mcp/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  640. package/framework-mcp/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  641. package/framework-mcp/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  642. package/framework-mcp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  643. package/framework-mcp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  644. package/framework-mcp/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  645. package/framework-mcp/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  646. package/framework-mcp/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  647. package/framework-mcp/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  648. package/framework-mcp/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  649. package/framework-mcp/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  650. package/framework-mcp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  651. package/framework-mcp/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  652. package/framework-mcp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  653. package/framework-mcp/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  654. package/framework-mcp/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  655. package/framework-mcp/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  656. package/framework-mcp/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  657. package/framework-mcp/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  658. package/framework-mcp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  659. package/framework-mcp/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  660. package/framework-mcp/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  661. package/framework-mcp/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  662. package/framework-mcp/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  663. package/framework-mcp/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  664. package/framework-mcp/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  665. package/framework-mcp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  666. package/framework-mcp/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  667. package/framework-mcp/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  668. package/framework-mcp/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  669. package/framework-mcp/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  670. package/framework-mcp/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  671. package/framework-mcp/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  672. package/framework-mcp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  673. package/framework-mcp/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  674. package/framework-mcp/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  675. package/framework-mcp/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  676. package/framework-mcp/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  677. package/framework-mcp/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  678. package/framework-mcp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  679. package/framework-mcp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  680. package/framework-mcp/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  681. package/framework-mcp/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  682. package/framework-mcp/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  683. package/framework-mcp/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  684. package/framework-mcp/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  685. package/framework-mcp/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  686. package/framework-mcp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  687. package/framework-mcp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  688. package/framework-mcp/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  689. package/framework-mcp/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  690. package/framework-mcp/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  691. package/framework-mcp/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  692. package/framework-mcp/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  693. package/framework-mcp/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  694. package/framework-mcp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  695. package/framework-mcp/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  696. package/framework-mcp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  697. package/framework-mcp/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  698. package/framework-mcp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  699. package/framework-mcp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  700. package/framework-mcp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  701. package/framework-mcp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  702. package/framework-mcp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  703. package/framework-mcp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  704. package/framework-mcp/node_modules/typescript/lib/tsc.js +0 -8
  705. package/framework-mcp/node_modules/typescript/lib/tsserver.js +0 -8
  706. package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  707. package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  708. package/framework-mcp/node_modules/typescript/lib/typesMap.json +0 -497
  709. package/framework-mcp/node_modules/typescript/lib/typescript.d.ts +0 -11437
  710. package/framework-mcp/node_modules/typescript/lib/typescript.js +0 -200276
  711. package/framework-mcp/node_modules/typescript/lib/typingsInstaller.js +0 -8
  712. package/framework-mcp/node_modules/typescript/lib/watchGuard.js +0 -53
  713. package/framework-mcp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  714. package/framework-mcp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  715. package/framework-mcp/node_modules/typescript/package.json +0 -120
  716. package/framework-mcp/node_modules/undici-types/LICENSE +0 -21
  717. package/framework-mcp/node_modules/undici-types/README.md +0 -6
  718. package/framework-mcp/node_modules/undici-types/agent.d.ts +0 -31
  719. package/framework-mcp/node_modules/undici-types/api.d.ts +0 -43
  720. package/framework-mcp/node_modules/undici-types/balanced-pool.d.ts +0 -29
  721. package/framework-mcp/node_modules/undici-types/cache.d.ts +0 -36
  722. package/framework-mcp/node_modules/undici-types/client.d.ts +0 -108
  723. package/framework-mcp/node_modules/undici-types/connector.d.ts +0 -34
  724. package/framework-mcp/node_modules/undici-types/content-type.d.ts +0 -21
  725. package/framework-mcp/node_modules/undici-types/cookies.d.ts +0 -28
  726. package/framework-mcp/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  727. package/framework-mcp/node_modules/undici-types/dispatcher.d.ts +0 -256
  728. package/framework-mcp/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  729. package/framework-mcp/node_modules/undici-types/errors.d.ts +0 -149
  730. package/framework-mcp/node_modules/undici-types/eventsource.d.ts +0 -61
  731. package/framework-mcp/node_modules/undici-types/fetch.d.ts +0 -209
  732. package/framework-mcp/node_modules/undici-types/file.d.ts +0 -39
  733. package/framework-mcp/node_modules/undici-types/filereader.d.ts +0 -54
  734. package/framework-mcp/node_modules/undici-types/formdata.d.ts +0 -108
  735. package/framework-mcp/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  736. package/framework-mcp/node_modules/undici-types/global-origin.d.ts +0 -7
  737. package/framework-mcp/node_modules/undici-types/handlers.d.ts +0 -15
  738. package/framework-mcp/node_modules/undici-types/header.d.ts +0 -4
  739. package/framework-mcp/node_modules/undici-types/index.d.ts +0 -71
  740. package/framework-mcp/node_modules/undici-types/interceptors.d.ts +0 -17
  741. package/framework-mcp/node_modules/undici-types/mock-agent.d.ts +0 -50
  742. package/framework-mcp/node_modules/undici-types/mock-client.d.ts +0 -25
  743. package/framework-mcp/node_modules/undici-types/mock-errors.d.ts +0 -12
  744. package/framework-mcp/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  745. package/framework-mcp/node_modules/undici-types/mock-pool.d.ts +0 -25
  746. package/framework-mcp/node_modules/undici-types/package.json +0 -55
  747. package/framework-mcp/node_modules/undici-types/patch.d.ts +0 -33
  748. package/framework-mcp/node_modules/undici-types/pool-stats.d.ts +0 -19
  749. package/framework-mcp/node_modules/undici-types/pool.d.ts +0 -39
  750. package/framework-mcp/node_modules/undici-types/proxy-agent.d.ts +0 -28
  751. package/framework-mcp/node_modules/undici-types/readable.d.ts +0 -65
  752. package/framework-mcp/node_modules/undici-types/retry-agent.d.ts +0 -8
  753. package/framework-mcp/node_modules/undici-types/retry-handler.d.ts +0 -116
  754. package/framework-mcp/node_modules/undici-types/util.d.ts +0 -18
  755. package/framework-mcp/node_modules/undici-types/webidl.d.ts +0 -228
  756. package/framework-mcp/node_modules/undici-types/websocket.d.ts +0 -150
  757. package/framework-mcp/tests/tools/file_system/replace_text.test.js +0 -68
  758. package/framework-mcp/tests/tools/file_system/replace_text.test.ts +0 -77
  759. package/panda.config.ts +0 -100
@@ -1,36 +0,0 @@
1
- # .enderun/queue — Agent Task Queue
2
-
3
- This directory contains the file-based asynchronous task queue for the Agent Enderun Army.
4
-
5
- ## Alt Directoryler
6
-
7
- | Directory | Content |
8
- |---|---|
9
- | `pending/` | Assigned but not yet started tasks (`{traceId}.json`) |
10
- | `processing/` | Tasks currently being executed |
11
- | `completed/` | Successfully completed tasks (archive) |
12
- | `failed/` | Failed tasks (managed by retry logic) |
13
- | `pipelines/` | `create_execution_pipeline` MCP tool pipeline JSON files generated by |
14
-
15
- ## Task File Format
16
-
17
- ```json
18
- {
19
- "id": "T001",
20
- "traceId": "ENR-ARMY-001",
21
- "assignedAgent": "@backend",
22
- "priority": "HIGH",
23
- "briefing": "...",
24
- "createdAt": "ISO-8601",
25
- "deadline": "ISO-8601",
26
- "retryCount": 0,
27
- "maxRetries": 3,
28
- "status": "PENDING | RUNNING | COMPLETED | FAILED"
29
- }
30
- ```
31
-
32
- ## Locking Protocol
33
-
34
- Before writing to a file `.lock` check the
35
- Varsa 500ms bekle, max 3 retry.
36
- After 3 retries, it is considered a stale lock and reported to @manager.
@@ -1,69 +0,0 @@
1
- # 🗂️ Agent Registry (Enterprise 2.1)
2
-
3
- This file is the central catalog of all authorized agents and their permission boundaries.
4
-
5
- agents:
6
- - name: manager
7
- role: "Commander & Router"
8
- permissions: ["*"]
9
- risk_level: "High"
10
-
11
- - name: architect
12
- role: "Lead Architect & Reviewer"
13
- permissions: ["read", "review", "refactor"]
14
- risk_level: "Medium"
15
-
16
- - name: analyst
17
- role: "Contract Verification"
18
- permissions: ["read_file", "search_codebase"]
19
- risk_level: "Low"
20
-
21
- - name: backend
22
- role: "Domain Logic Specialist"
23
- permissions: ["read_file", "replace_text", "write_file", "search_codebase", "run_tests"]
24
- risk_level: "Low"
25
-
26
- - name: database
27
- role: "Database Specialist"
28
- permissions: ["read_file", "write_file", "run_migration"]
29
- risk_level: "Medium"
30
-
31
- - name: devops
32
- role: "CI/CD Specialist"
33
- permissions: ["read_file", "write_file", "run_pipeline", "deploy_staging"]
34
- risk_level: "High"
35
-
36
- - name: explorer
37
- role: "Codebase Discovery"
38
- permissions: ["read_file", "search_codebase"]
39
- risk_level: "Low"
40
-
41
- - name: frontend
42
- role: "UI Specialist"
43
- permissions: ["read_file", "write_file", "replace_text"]
44
- risk_level: "Low"
45
-
46
- - name: git
47
- role: "Version Control"
48
- permissions: ["read_file", "run_git"]
49
- risk_level: "Low"
50
-
51
- - name: mobile
52
- role: "Mobile Specialist"
53
- permissions: ["read_file", "write_file"]
54
- risk_level: "Low"
55
-
56
- - name: native
57
- role: "Native Specialist"
58
- permissions: ["read_file", "write_file"]
59
- risk_level: "Low"
60
-
61
- - name: quality
62
- role: "Quality Gatekeeper"
63
- permissions: ["read_file", "run_tests", "approve_gate"]
64
- risk_level: "Medium"
65
-
66
- - name: security
67
- role: "Security Auditor"
68
- permissions: ["read_file", "search_codebase", "run_security_audit"]
69
- risk_level: "Low"
@@ -1,37 +0,0 @@
1
- ---
2
- name: agent_handshake
3
- type: skill
4
- version: 1.0.0
5
- description: "Locking, state synchronization, and permission handshakes for collaborative agents"
6
- ---
7
-
8
- # 🤝 Agent Handshake & Scope Synchronization Protocol
9
-
10
- This skill controls locking, state changes, and workspace access rights to prevent multi-agent collisions and verify transaction-level consistency.
11
-
12
- ---
13
-
14
- ## 🔒 1. Scope and File-Level Locking
15
-
16
- To prevent two agents from modifying the same files concurrently:
17
- - **Lock Acquisition:** An agent must write `.lock` inside `{{FRAMEWORK_DIR}}/messages/` before executing high-risk file writes.
18
- - **Queue Check:** Check if another active task in `PROJECT_MEMORY.md` overlaps with the requested `apps/backend/src/` or `apps/web/src/` paths.
19
- - **Unlock Release:** Delete `.lock` immediately upon writing the message or finishing the transaction.
20
-
21
- ---
22
-
23
- ## 🚀 2. State Transition Checklist
24
-
25
- Before an agent changes its lifecycle state from `IDLE` to `EXECUTING` or `EXECUTING` to `DONE`:
26
- - Validate that all dependencies in the task DAG are marked as `DONE`.
27
- - Confirm that the `contract_hash` in `apps/backend/contract.version.json` matches the hash stored in `shared-facts.json`.
28
- - Log the state transition in the agent's private JSON file.
29
-
30
- ---
31
-
32
- ## 🛑 3. Deadlock Resolution
33
-
34
- If a lock persists for more than 3 Retries (1500ms):
35
- 1. **Identify Owner:** Read `PROJECT_MEMORY.md` to see which agent owns the active task.
36
- 2. **Ping Agent:** Send a direct Hermes `ALERT` to the owning agent.
37
- 3. **Escalate to Manager:** If no response, delete the stale lock file, write a `STALE_LOCK_RESOLVED` warning in the log, and notify `@manager`.
@@ -1,64 +0,0 @@
1
- ---
2
- name: multi_agent_coordination
3
- type: skill
4
- version: 1.0.0
5
- description: "Universal multi-agent coordination protocol for Antigravity, Claude Code, and Gemini CLI"
6
- ---
7
-
8
- # 🤝 Universal Multi-Agent Coordination Protocol
9
-
10
- This skill enables seamless coordination, role delegation, and communication among multiple agents across **Antigravity CLI/IDE**, **Claude Code**, and **Gemini CLI** environments.
11
-
12
- ---
13
-
14
- ## 📯 1. The Hermes Event-Driven Handoff
15
-
16
- Agents must use the Hermes message broker format to delegate sub-tasks and notify peers about execution milestones.
17
-
18
- ### Message File Format (`{{FRAMEWORK_DIR}}/messages/{ULID}.json`)
19
- When delegating a task or sending an update, write a JSON file with the following schema:
20
-
21
- ```json
22
- {
23
- "id": "ULID",
24
- "traceId": "ACTIVE_TRACE_ID",
25
- "from": "@sender_agent",
26
- "to": "@receiver_agent",
27
- "category": "ACTION | DELEGATION | INFO | ALERT",
28
- "timestamp": "ISO-8601-TIMESTAMP",
29
- "content": "Detailed briefing or execution summary",
30
- "status": "PENDING | IN_PROGRESS | SUCCESS | FAILED"
31
- }
32
- ```
33
-
34
- ### Handoff Protocol Flow:
35
- 1. **Lock Check:** Before writing, verify `{{FRAMEWORK_DIR}}/messages/.lock` does not exist. If locked, retry 3 times with 500ms intervals.
36
- 2. **Write Message:** Write the payload into the `messages/` folder.
37
- 3. **Trigger Loop:** Trigger the orchestration loop via `orchestrate_loop` (MCP) or `npx agent-enderun orchestrate`. Note: Due to kernel sandboxing and security policies in modern AI CLI tools (e.g. Claude Code, Gemini CLI), the CLI does not autonomously spawn background AI processes. Instead, the orchestrator updates `STATUS.md`, writes the briefing payload, and guides the user or the host's native `invoke_subagent` tool to run the next agent session with the correct context.
38
-
39
- ---
40
-
41
- ## 👥 2. Subagent Lifecycle Management
42
-
43
- Specialist agents can spawn subagents to perform parallel tasks (e.g. `@backend` delegating database seeding to a subagent).
44
-
45
- ```mermaid
46
- graph TD
47
- Parent[@manager / Parent] -->|Briefs & Spawns| Sub[Subagent]
48
- Sub -->|Reads Context| SubMem[Private Memory]
49
- Sub -->|Executes Task| Target[Codebase/API]
50
- Sub -->|Reports Back| Parent
51
- ```
52
-
53
- ### Rules for Subagent Lifecycle:
54
- 1. **Briefing Mandate:** Every subagent must receive a clearly defined role, limited file scope, and the parent's active `Trace ID`.
55
- 2. **Memory Isolation:** Subagents write logs to `{{FRAMEWORK_DIR}}/logs/subagent_{ULID}.json` and maintain state in `{{FRAMEWORK_DIR}}/memory-graph/agent-contexts/subagent_{ULID}.json`.
56
- 3. **Merge and Exit:** Once the subagent achieves its goal, it must write a completion report to the parent via Hermes and delete its active lock files.
57
-
58
- ---
59
-
60
- ## 🔒 3. Safe Parallel Execution
61
-
62
- To avoid race conditions where two agents write to the same files:
63
- - **Scope Locking:** Before writing code, check the `CRITICAL DECISIONS` and `ACTIVE TASKS` in `PROJECT_MEMORY.md` to ensure no other agent has an active lock on your target workspace scope (`apps/backend` vs `apps/web`).
64
- - **Conflict Resolution:** If a collision occurs, the agent must immediately pause, switch to `WAITING` status, and send an `ALERT` to `@manager` for resolution.
@@ -1,48 +0,0 @@
1
- ---
2
- name: subagent_lifecycle
3
- type: skill
4
- version: 1.0.0
5
- description: "Rules for spawning, tracking, and merging autonomous subagents"
6
- ---
7
-
8
- # 🌀 Subagent Lifecycle & Dynamic Delegation Protocol
9
-
10
- This skill outlines the strict workflow for launching and merging subagents in high-concurrency development environments. It ensures complete traceability, isolated execution, and error-free merging.
11
-
12
- ---
13
-
14
- ## 🚀 1. The Briefing and Spawning Phase
15
-
16
- When a parent agent (e.g. `@manager` or `@backend`) determines a task is large or highly parallelizable, it delegates it by spawning a subagent. (Note: Depending on host support, spawning is executed either using the host's native `invoke_subagent` tool, or by printing a structured briefing for user-mediated context handoff).
17
-
18
- ### Spawning Checklist:
19
- 1. **Assign Trace ID:** The parent passes its active Trace ID (ULID) to the subagent.
20
- 2. **Context Restriction:** Limit the subagent's allowed workspaces and file paths (e.g., only `apps/backend/src/database`).
21
- 3. **Declare Role & Goal:** The briefing must specify a distinct capability (e.g. `@database-seed-expert`) and a binary success criterion.
22
-
23
- ---
24
-
25
- ## 📊 2. Tracking Execution State
26
-
27
- Subagents report their current state at regular intervals or upon completing major milestones.
28
-
29
- ```
30
- [Parent Agent] (Monitors) ──► Reads STATUS.md ◄── [Subagent] (Updates State)
31
- ```
32
-
33
- - **Execution State Map:**
34
- - `BRIEFED`: Subagent received context and is preparing the environment.
35
- - `EXECUTING`: Subagent is actively modifying code or writing tests.
36
- - `DONE`: Task completed; awaiting quality gate validation.
37
- - `FAILED`: Encountered a blocker; halted execution and escalated to parent.
38
-
39
- - **Status Logging:** The subagent must log atomic changes to `{{FRAMEWORK_DIR}}/logs/subagent_{ULID}.json` at every step.
40
-
41
- ---
42
-
43
- ## 🤝 3. Merging and Handoff
44
-
45
- Once the subagent completes its task:
46
- 1. **Local Type-Safety Verification:** Run `verify-contract` or typecheck the modified scope locally.
47
- 2. **Handoff Briefing:** Write a Hermes message to the parent with a summary of changes, list of edited files, and test results.
48
- 3. **Graceful Exit:** Clean up temporary workspace structures, remove files under `queue/processing`, and self-terminate.
package/CLAUDE.md DELETED
@@ -1,21 +0,0 @@
1
- # 🎖️ Agent Enderun — THE ARCHITECT (Claude Code / Desktop)
2
-
3
- You are the **Architect** of the Agent Enderun Army. While the **Commander** (@manager) orchestrates, you focus on structural integrity and code excellence.
4
-
5
- ### 🏛️ Hierarchy of Authority
6
- 1. **Supreme Law:** [.claude/ENDERUN.md](.claude/ENDERUN.md)
7
- 2. **Global Rules:** [ARCHITECTURE.md](.claude/knowledge/ARCHITECTURE.md), [SECURITY.md](.claude/knowledge/SECURITY.md)
8
- 3. **Project Memory:** [.claude/memory/](.claude/memory/) (Decisions, Lessons, Status)
9
-
10
- ### 🤖 Architect Directive (Role: QUALITY & REFACTOR)
11
- 1. **Manager Coordination:** Receive your briefings from @manager. You are part of a coordinated army.
12
- 2. **Enforce Surgical Precision:** All code changes must use `replace_text` or `patch_file`. No full file rewrites.
13
- 3. **Contract & Type Integrity:** Verify that backend contracts and branded types are respected.
14
- 4. **Dynamic Identity Adjustment:** If you are executing a delegated task for a specialist role (e.g. backend, frontend, database, qa) as per the active tasks in `.claude/memory/PROJECT_MEMORY.md`, temporarily adopt that identity by loading its specific rules from `.claude/agents/{agent}.json` and follow them strictly.
15
- 5. **Maintain State:** Update `.claude/memory/PROJECT_MEMORY.md` and log actions at the end of EVERY turn.
16
-
17
- ### 🛡️ Core Mandates (Enterprise 1.0)
18
- - **Zero UI Library Policy:** Enforce hand-crafted components with Panda CSS.
19
- - **Zero Mock Policy:** Only real contracts and services.
20
- - **Traceability:** Inherit and pass the active Trace ID.
21
- - **Approval:** High-risk refactors require @manager briefing.
package/GEMINI.md DELETED
@@ -1,24 +0,0 @@
1
- # 🎖️ Agent Enderun — THE COMMANDER (Gemini CLI)
2
-
3
- You are the **Commander** (@manager), the Supreme Orchestrator of the Agent Enderun Army. Your primary role is strategic orchestration, intent analysis, and final approval.
4
-
5
- ### 🏛️ Hierarchy of Authority
6
- 1. **Supreme Law:** [.gemini/ENDERUN.md](.gemini/ENDERUN.md)
7
- 2. **Global Rules:** [ARCHITECTURE.md](.gemini/knowledge/ARCHITECTURE.md), [SECURITY.md](.gemini/knowledge/SECURITY.md)
8
- 3. **Project Memory:** [.gemini/memory/](.gemini/memory/) (Decisions, Lessons, Status)
9
-
10
- ### 🤖 Commander Directive (Role: @manager)
11
- 1. **Analyze Intent:** Act as the **Router**. Every request must be processed by you first. Break down user requests into a task DAG.
12
- 2. **Orchestrate:** Delegate complex tasks to specialized agents (Architect, Implementer, Researcher).
13
- - **How to Delegate:** Use the `send_agent_message` tool to assign tasks to other agents (e.g., `@backend`, `@frontend`).
14
- - **How to Sync:** Use the `orchestrate_loop` tool after delegating to update the system state and `STATUS.md`.
15
- 3. **Verify:** Review all specialist outputs against the **Architectural Decisions (DECISIONS.md)**.
16
- 4. **Dynamic Identity Adjustment:** If you are executing a delegated task for a specialist role (e.g. backend, frontend, database) as per the active tasks in `.gemini/memory/PROJECT_MEMORY.md`, temporarily adopt that identity by loading its specific rules from `.gemini/agents/{agent}.json` and follow them strictly.
17
- 5. **Maintain State:** Update `.gemini/memory/PROJECT_MEMORY.md` and log actions at the end of EVERY turn.
18
-
19
- ### 🛡️ Core Mandates (Enterprise 1.0)
20
- - **Role-Based:** You are not just a model; you are the **Commander**.
21
- - **Surgical Precision:** Enforce `replace_text` for all code modifications.
22
- - **Traceability:** Inherit and pass the active Trace ID across all delegations.
23
- - **Approval Makamı:** No specialist can perform high-risk actions without your explicit briefing.
24
- - **CLI Delegation:** The user can also delegate via CLI using `agent-enderun @agent "task"`.
package/GROK.md DELETED
@@ -1,20 +0,0 @@
1
- # 🔎 Agent Enderun — THE RESEARCHER (Grok AI)
2
-
3
- You are the **Researcher** and **Intelligence Specialist** of the Agent Enderun Army. Your primary role is technology scouting, trend analysis, and deep analysis.
4
-
5
- ### 🏛️ Hierarchy of Authority
6
- 1. **Supreme Law:** [.grok/ENDERUN.md](.grok/ENDERUN.md)
7
- 2. **Lessons Learned:** [.grok/memory/LESSONS_LEARNED.md](.grok/memory/LESSONS_LEARNED.md)
8
- 3. **Business Context:** [.grok/memory/BUSINESS_CONTEXT.md](.grok/memory/BUSINESS_CONTEXT.md)
9
-
10
- ### 🤖 Researcher Directive (Role: ANALYTICAL)
11
- 1. **Trend Analysis:** Identify modern alternatives for libraries and patterns.
12
- 2. **Conflict Detection:** Analyze the codebase for potential logic clashes or anti-patterns.
13
- 3. **Market Intelligence:** Provide insights into enterprise standards (WCAG, Security, Performance).
14
- 4. **Documentation:** Write research findings exclusively to the `docs/` folder.
15
-
16
- ### 🛡️ Core Mandates (Enterprise 1.0)
17
- - **Read-Only Focus:** You are primarily a discovery role. Do not perform large-scale code changes without @manager approval.
18
- - **Search-First:** Always use `search_codebase` before drawing conclusions.
19
- - **Constraint Aware:** Respect the **Zero UI Library Policy** in all recommendations.
20
- - **No Blind Coding:** Your goal is to provide context and evidence, not just raw code.
package/agent.md DELETED
@@ -1,25 +0,0 @@
1
- # Agent Enderun — Antigravity Adapter
2
-
3
- This is the primary entry point when using Agent Enderun within the Antigravity (IDE & CLI) ecosystem.
4
-
5
- The framework operates under a unified governance structure located in the .agent/ directory.
6
-
7
- ### Primary Constitution
8
- All governance rules, agent checklists, and project memory live here:
9
-
10
- 👉 **[.agent/ENDERUN.md](.agent/ENDERUN.md)**
11
-
12
- ### 🤖 Agent Directive
13
- You are operating under the Agent Enderun governance framework.
14
-
15
- At the **start of every session**, before any work:
16
- 1. **Restore Memory:** Read `.agent/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
- 2. **Load Identity:** Read the relevant agent definition under `.agent/skills/{agent}.json` (default to `@manager`).
18
- 3. **Internalize Knowledge:** Reference the `.agent/rules/` base for architectural and coding standards.
19
-
20
- ### 🛡️ Core Mandates
21
- - **Surgical Edits:** Use `replace_text` or `patch_file` via MCP for precise changes.
22
- - **Traceability:** Every action must inherit the active Trace ID from memory.
23
- - **Contract First:** No implementation without verified types.
24
-
25
- All paths and references inside the project must comply with the Supreme Constitution located at `.agent/ENDERUN.md`.
package/dist/.keep DELETED
@@ -1 +0,0 @@
1
- // keep
@@ -1 +0,0 @@
1
- export {};
@@ -1,82 +0,0 @@
1
- import { describe, it, expect } from "vitest";
2
- import { resolveAdapter, isAdapterShimFile, remapFrameworkContent, buildMcpServerEntry } from "../src/cli/adapters.js";
3
- describe("Agent Enderun — Adapter & CLI Engine Integration Tests", () => {
4
- describe("Adapter Resolution", () => {
5
- it("should successfully resolve the gemini adapter config", () => {
6
- const config = resolveAdapter("gemini");
7
- expect(config.id).toBe("gemini");
8
- expect(config.frameworkDir).toBe(".enderun");
9
- expect(config.shimFile).toBe("GEMINI.md");
10
- expect(config.nestedDirs).toContain("agents");
11
- expect(config.nestedDirs).toContain("skills");
12
- expect(config.nestedDirs).toContain("knowledge");
13
- });
14
- it("should successfully resolve the antigravity adapter config", () => {
15
- const config = resolveAdapter("antigravity");
16
- expect(config.id).toBe("antigravity");
17
- expect(config.frameworkDir).toBe(".enderun");
18
- expect(config.shimFile).toBe("agent.md");
19
- expect(config.nestedDirs).toContain("skills");
20
- expect(config.nestedDirs).toContain("agents");
21
- expect(config.nestedDirs).toContain("knowledge");
22
- });
23
- it("should successfully resolve the antigravity-cli adapter config", () => {
24
- const config = resolveAdapter("antigravity-cli");
25
- expect(config.id).toBe("antigravity-cli");
26
- expect(config.frameworkDir).toBe(".enderun");
27
- expect(config.shimFile).toBe("agent.md");
28
- expect(config.nestedDirs).toContain("agents");
29
- expect(config.nestedDirs).toContain("skills");
30
- expect(config.nestedDirs).toContain("knowledge");
31
- });
32
- it("should fallback gracefully to gemini on unknown adapter ID", () => {
33
- const config = resolveAdapter("unknown-adapter");
34
- expect(config.id).toBe("gemini");
35
- expect(config.frameworkDir).toBe(".enderun");
36
- });
37
- });
38
- describe("Adapter File Helper Checks", () => {
39
- it("should identify valid adapter shim entrypoints", () => {
40
- expect(isAdapterShimFile("GEMINI.md")).toBe(true);
41
- expect(isAdapterShimFile("CLAUDE.md")).toBe(true);
42
- expect(isAdapterShimFile("agent.md")).toBe(true);
43
- expect(isAdapterShimFile("GROK.md")).toBe(true);
44
- expect(isAdapterShimFile(".cursor/rules/global.mdc")).toBe(true);
45
- expect(isAdapterShimFile(".github/copilot-instructions.md")).toBe(true);
46
- });
47
- it("should identify invalid files as non-shims", () => {
48
- expect(isAdapterShimFile("invalid.md")).toBe(false);
49
- expect(isAdapterShimFile("README.md")).toBe(false);
50
- });
51
- });
52
- describe("Dynamic Framework Content Remapping", () => {
53
- it("should replace primary adapter and framework placeholder tokens", () => {
54
- const template = "Welcome to {{ADAPTER}} running on {{FRAMEWORK_DIR}}!";
55
- const output = remapFrameworkContent(template, ".gemini", "gemini");
56
- expect(output).toBe("Welcome to gemini running on .gemini!");
57
- });
58
- it("should surgically remap directories for standard adapter layouts", () => {
59
- const template = "Constitutions: .enderun/agents/ & .enderun/knowledge/ rules.";
60
- const output = remapFrameworkContent(template, ".gemini", "gemini");
61
- expect(output).toBe("Constitutions: .gemini/agents/ & .gemini/knowledge/ rules.");
62
- });
63
- it("should surgically remap directories to skills/rules for Antigravity IDE layout", () => {
64
- const template = "Constitutions: .enderun/agents/ & .enderun/knowledge/ rules.";
65
- const output = remapFrameworkContent(template, ".agent", "antigravity");
66
- expect(output).toBe("Constitutions: .agent/skills/ & .agent/rules/ rules.");
67
- });
68
- it("should fall back gracefully on general .enderun/ references", () => {
69
- const template = "Settings exist inside .enderun/config.json file.";
70
- const output = remapFrameworkContent(template, ".gemini", "gemini");
71
- expect(output).toBe("Settings exist inside .gemini/config.json file.");
72
- });
73
- });
74
- describe("MCP Server Entry Construction", () => {
75
- it("should build correct command arguments pointing to build artifacts", () => {
76
- const entry = buildMcpServerEntry("/User/project");
77
- expect(entry.command).toBe("node");
78
- expect(entry.args[0]).toContain("framework-mcp/dist/index.js");
79
- });
80
- });
81
- });
82
- //# sourceMappingURL=adapter.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adapter.test.js","sourceRoot":"","sources":["../../tests/adapter.test.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,39 +0,0 @@
1
- import { describe, it, expect } from "vitest";
2
- import { resolveAdapter, isAdapterShimFile, remapFrameworkContent } from "../src/cli/adapters.js";
3
- describe("Agent Enderun — Gemini CLI Engine Integration Tests", () => {
4
- describe("Gemini Adapter Configuration & Directories", () => {
5
- it("should successfully resolve the gemini adapter with the unified .enderun directory name", () => {
6
- const config = resolveAdapter("gemini");
7
- expect(config.id).toBe("gemini");
8
- expect(config.frameworkDir).toBe(".enderun");
9
- expect(config.shimFile).toBe("GEMINI.md");
10
- expect(config.nestedDirs).toContain("agents");
11
- expect(config.nestedDirs).toContain("skills");
12
- expect(config.nestedDirs).toContain("knowledge");
13
- });
14
- it("should verify that Gemini frameworkDir maps to the unified .enderun path", () => {
15
- const geminiConfig = resolveAdapter("gemini");
16
- const cliConfig = resolveAdapter("antigravity-cli");
17
- expect(geminiConfig.frameworkDir).toBe(".enderun");
18
- expect(cliConfig.frameworkDir).toBe(".enderun");
19
- });
20
- });
21
- describe("Gemini Shim Helpers", () => {
22
- it("should validate GEMINI.md as a valid shim file", () => {
23
- expect(isAdapterShimFile("GEMINI.md")).toBe(true);
24
- });
25
- });
26
- describe("Gemini Path Remapping", () => {
27
- it("should replace primary adapter and framework placeholder tokens for gemini", () => {
28
- const template = "Welcome to {{ADAPTER}} running on {{FRAMEWORK_DIR}}!";
29
- const output = remapFrameworkContent(template, ".gemini", "gemini");
30
- expect(output).toBe("Welcome to gemini running on .gemini!");
31
- });
32
- it("should surgically remap directories to .gemini subfolders", () => {
33
- const template = "Constitutions: .enderun/agents/ & .enderun/knowledge/ rules.";
34
- const output = remapFrameworkContent(template, ".gemini", "gemini");
35
- expect(output).toBe("Constitutions: .gemini/agents/ & .gemini/knowledge/ rules.");
36
- });
37
- });
38
- });
39
- //# sourceMappingURL=gemini.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gemini.test.js","sourceRoot":"","sources":["../../tests/gemini.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,wBAAwB,CAAC;AAEhC,QAAQ,CAAC,qDAAqD,EAAE,GAAG,EAAE;IAEjE,QAAQ,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACxD,EAAE,CAAC,yFAAyF,EAAE,GAAG,EAAE;YAC/F,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;YACxC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACjC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC9C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC9C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,0EAA0E,EAAE,GAAG,EAAE;YAChF,MAAM,YAAY,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;YACpD,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACnD,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;QACjC,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACtD,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;QACnC,EAAE,CAAC,4EAA4E,EAAE,GAAG,EAAE;YAClF,MAAM,QAAQ,GAAG,sDAAsD,CAAC;YACxE,MAAM,MAAM,GAAG,qBAAqB,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;YACjE,MAAM,QAAQ,GAAG,8DAA8D,CAAC;YAChF,MAAM,MAAM,GAAG,qBAAqB,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,4DAA4D,CAAC,CAAC;QACtF,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { describe, it, expect } from "vitest";
2
- describe("Initial Setup", () => {
3
- it("should verify the testing environment is active", () => {
4
- expect(true).toBe(true);
5
- });
6
- });
7
- //# sourceMappingURL=initial.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initial.test.js","sourceRoot":"","sources":["../../tests/initial.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACvD,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,69 +0,0 @@
1
- # Agent Enderun — Framework Analizi ve Proje Raporu
2
-
3
- Bu rapor, **Agent Enderun Enterprise v1 (v1.1.2)** altyapısının genel mimari yapısını, orkestrasyon mekanizmasını, MCP araçlarını ve kurumsal proje geliştirme standartlarını incelemek amacıyla hazırlanmıştır.
4
-
5
- Projenin `apps/` dizini kasıtlı olarak boş bırakılmıştır. Bu yapı, geliştiricilerin kendi yeteneklerini, hafıza haritalarını ve kurumsal iş mantıklarını sıfırdan ve temiz bir alanda inşa edebilmesi için tasarlanmış bir **"kurumsal proje geliştirme motoru" (development engine)** niteliğindedir.
6
-
7
- ---
8
-
9
- ## 🏛️ Mimari Yapı ve Temel Bileşenler
10
-
11
- Agent Enderun, AI ajanlarının otonom olarak çalışabileceği ancak insan yapımı kurallarla (Anayasa) sıkı bir şekilde sınırlandırıldığı bir **AI Yönetişim Altyapısıdır (AI Governance Framework)**.
12
-
13
- ```mermaid
14
- graph TD
15
- CLI[CLI: agent-enderun] -->|Komutlar & NL İstekleri| Manager[@manager - Commander]
16
- Manager -->|Hermes Protokolü| MsgQueue[Mesaj Kuyruğu: .enderun/messages/]
17
- MsgQueue -->|Durum Makinesi / AL| Agents[Ajan Ordusu: 12 Uzman Ajan]
18
- Agents -->|MCP Araçları| Workspace[Proje Çalışma Alanı: apps/]
19
- Agents -->|Loglama & Hafıza| Mem[Proje Hafızası: PROJECT_MEMORY.md]
20
- ```
21
-
22
- ### 1. Supreme Constitution (Üstün Yasa)
23
- Tüm sistemin ve ajanların uymak zorunda olduğu kurallar bütününü içerir:
24
- * **Ana Anayasa (`.enderun/ENDERUN.md`):** Ajanların operasyonel sınırlarını çizer. `replace_text` kullanımı zorunluluğu, `any` tipinin ve `console.log` kullanımının yasak olması, Zero Mock (Sahte Veri Yasağı) ve branded types standartları burada mühürlenmiştir.
25
- * **Güvenlik Protokolleri (`docs/architecture/approval-flows.md`):** Yüksek riskli işlemler (toplu veri silme, veritabanı şema değişimi, credential rotasyonu) için `@manager` onayını ve insan-in-the-loop (`approve` komutu) imzasını zorunlu kılar.
26
-
27
- ### 2. Ajan Ordusu (Agent Army - AL Compliant)
28
- `.enderun/agents/` altında JSON şemalarıyla tanımlanmış 12 adet uzman ajan bulunur. Ajanların durumları **Agent Lifecycle (AL)** durum makinesine (`IDLE` ➔ `BRIEFED` ➔ `EXECUTING` ➔ `DONE`/`BLOCKED`) göre yönetilir:
29
- * `@manager`: Supreme Orchestrator ve Team-Lead rolündedir. Her talebi analiz eder ve iş paketlerini delege eder.
30
- * `@backend` & `@frontend`: Sunucu mantığı, Panda CSS tabanlı sıfır-kütüphane arayüz standartlarını yönetir.
31
- * `@database` & `@devops`: Kysely tabanlı veri katmanını ve CI/CD süreçlerini yürütür.
32
- * `@quality`: Kod standartlarını (ESLint) ve test kapsamını (%80 üzeri) denetleyen son onay kapısıdır.
33
- * `@explorer`, `@git`, `@mobile`, `@native`, `@security`, `@analyst`: Diğer uzmanlık alanlarındaki görevleri icra eder.
34
-
35
- ### 3. Hermes Mesajlaşma Kanalı
36
- Ajanlar arası ve kullanıcı ile ajanlar arasındaki iletişim asenkron ve JSON formatında Hermes protokolü ile sağlanır:
37
- * **İletişim Kanalı:** `.enderun/messages/` klasöründe yer alan JSON dosyalarıdır.
38
- * **Kilit Mekanizması:** Çakışmaları önlemek için `.lock` dosyası ile Hermes kilit protokolü uygulanır (LLM zaman aşımları için 5 saniyelik stale lock kontrolü mevcuttur).
39
- * **Trace ID:** Her işlem zinciri `trace:new` ile oluşturulan benzersiz bir Trace ID'yi miras alır ve tüm loglarda taşınır.
40
-
41
- ---
42
-
43
- ## 🛠️ CLI ve Geliştirici Komutları
44
-
45
- Çalışma alanı kök dizinindeki `bin/cli.js` üzerinden `src/cli/` altındaki komutlar tetiklenir:
46
- 1. `init [adapter]`: Altyapıyı hedef ortama (`gemini`, `claude`, `grok` vb.) göre uyarlar, kurallar ve yetenek şablonlarını oluşturur.
47
- 2. `check`: Sistem sağlık taramasını gerçekleştirir ve ajan ordusunun şema uyumluluğunu doğrular.
48
- 3. `status`: Aktif fazı, güncel Trace ID'yi ve ajanların anlık durumlarını gösterir.
49
- 4. `trace:new`: Yeni bir iş zinciri başlatır.
50
- 5. `orchestrate`: Bekleyen Hermes görevlerini sırasıyla ajanlara delege eder ve durumlarını günceller.
51
- 6. `verify-contract` & `update-contract`: API veri tiplerinin ve kontratların frontend-backend arasında uyumlu olmasını güvence altına alır.
52
-
53
- ---
54
-
55
- ## 📡 Model Context Protocol (MCP) Server
56
-
57
- `framework-mcp/` dizini altında bağımsız bir paket olarak geliştirilmiştir:
58
- * **SDK Entegrasyonu:** `@modelcontextprotocol/sdk` kullanılarak tasarlanmıştır.
59
- * **Dosya Yönetim Araçları:** Ajanların kod üzerinde cerrahi operasyon yapmasını sağlayan `replace_text`, `patch_file`, `write_file` ve `read_file` araçları sunulur.
60
- * **Yönetim ve Mesajlaşma Araçları:** Proje hafızasını güncellemek için `update_project_memory`, mesaj göndermek için `send_agent_message` ve eylemleri kaydetmek için `log_agent_action` araçlarını içerir.
61
-
62
- ---
63
-
64
- ## 📈 Sonuç ve Öneriler
65
-
66
- Proje, kurumsal seviyede çoklu ajan yönetimi ve kod kalitesi yönetişimi için mükemmel bir temel hazırlamıştır. `apps/` dizininin boş bırakılmış olması, geliştirilmek istenen özel kurumsal projeler için temiz bir sayfa sunar. Geliştirme sürecinde şunlara dikkat edilmelidir:
67
- 1. **Hafıza Senkronizasyonu:** Her aşamada `.enderun/memory/PROJECT_MEMORY.md` ve `.enderun/logs/` güncellenmelidir.
68
- 2. **Surgical Kodlama:** Dosyaları komple değiştirmek yerine MCP araçları ile nokta atışı (`replace_text`) düzenleme alışkanlığı sürdürülmelidir.
69
- 3. **AL Uyumluluğu:** Ajan tanımlarında yapılan değişikliklerden sonra mutlaka `agent-enderun validate` komutu ile doğrulama yapılmalıdır.