atabey 0.0.6 → 0.0.7

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 (387) hide show
  1. package/ATABEY.md +4 -4
  2. package/README.md +35 -33
  3. package/bin/cli.js +2 -2
  4. package/bin/validate-agent-army.js +6 -6
  5. package/dist/framework-mcp/src/constants.js +1 -1
  6. package/dist/framework-mcp/src/constants.js.map +1 -1
  7. package/dist/framework-mcp/src/index.js +29 -5
  8. package/dist/framework-mcp/src/index.js.map +1 -1
  9. package/dist/framework-mcp/src/resources/index.d.ts +10 -0
  10. package/dist/framework-mcp/src/resources/index.js +59 -0
  11. package/dist/framework-mcp/src/resources/index.js.map +1 -0
  12. package/dist/framework-mcp/src/tools/control_plane/locking.js +3 -3
  13. package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -1
  14. package/dist/framework-mcp/src/tools/control_plane/registry.js +3 -2
  15. package/dist/framework-mcp/src/tools/control_plane/registry.js.map +1 -1
  16. package/dist/framework-mcp/src/tools/definitions.js +33 -1
  17. package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
  18. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.d.ts +1 -1
  19. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +8 -3
  20. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -1
  21. package/dist/framework-mcp/src/tools/file_system/patch_file.d.ts +1 -1
  22. package/dist/framework-mcp/src/tools/file_system/patch_file.js +8 -3
  23. package/dist/framework-mcp/src/tools/file_system/patch_file.js.map +1 -1
  24. package/dist/framework-mcp/src/tools/file_system/read_file.js +3 -3
  25. package/dist/framework-mcp/src/tools/file_system/read_file.js.map +1 -1
  26. package/dist/framework-mcp/src/tools/file_system/replace_text.d.ts +1 -1
  27. package/dist/framework-mcp/src/tools/file_system/replace_text.js +8 -3
  28. package/dist/framework-mcp/src/tools/file_system/replace_text.js.map +1 -1
  29. package/dist/framework-mcp/src/tools/file_system/write_file.d.ts +1 -1
  30. package/dist/framework-mcp/src/tools/file_system/write_file.js +10 -5
  31. package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
  32. package/dist/framework-mcp/src/tools/framework/audit_deps.js +2 -2
  33. package/dist/framework-mcp/src/tools/framework/audit_deps.js.map +1 -1
  34. package/dist/framework-mcp/src/tools/framework/run_tests.js +2 -2
  35. package/dist/framework-mcp/src/tools/framework/run_tests.js.map +1 -1
  36. package/dist/framework-mcp/src/tools/framework/submit_plan.d.ts +10 -0
  37. package/dist/framework-mcp/src/tools/framework/submit_plan.js +14 -0
  38. package/dist/framework-mcp/src/tools/framework/submit_plan.js.map +1 -0
  39. package/dist/framework-mcp/src/tools/framework/update_memory.js +1 -1
  40. package/dist/framework-mcp/src/tools/framework/update_memory.js.map +1 -1
  41. package/dist/framework-mcp/src/tools/index.js +2 -0
  42. package/dist/framework-mcp/src/tools/index.js.map +1 -1
  43. package/dist/framework-mcp/src/tools/memory/get_insights.js +1 -1
  44. package/dist/framework-mcp/src/tools/memory/get_insights.js.map +1 -1
  45. package/dist/framework-mcp/src/tools/messaging/log_action.js +1 -1
  46. package/dist/framework-mcp/src/tools/messaging/log_action.js.map +1 -1
  47. package/dist/framework-mcp/src/tools/messaging/send_message.js +5 -5
  48. package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -1
  49. package/dist/framework-mcp/src/tools/observability/check_ports.js +1 -1
  50. package/dist/framework-mcp/src/tools/observability/check_ports.js.map +1 -1
  51. package/dist/framework-mcp/src/tools/quality/check_lint.js +2 -2
  52. package/dist/framework-mcp/src/tools/quality/check_lint.js.map +1 -1
  53. package/dist/framework-mcp/src/tools/search/get_gaps.js +1 -1
  54. package/dist/framework-mcp/src/tools/search/get_gaps.js.map +1 -1
  55. package/dist/framework-mcp/src/tools/search/grep_search.js +3 -3
  56. package/dist/framework-mcp/src/tools/search/grep_search.js.map +1 -1
  57. package/dist/framework-mcp/src/tools/types.d.ts +1 -0
  58. package/dist/framework-mcp/src/utils/compliance.d.ts +6 -0
  59. package/dist/framework-mcp/src/utils/compliance.js +158 -5
  60. package/dist/framework-mcp/src/utils/compliance.js.map +1 -1
  61. package/dist/framework-mcp/src/utils/permissions.d.ts +12 -0
  62. package/dist/framework-mcp/src/utils/permissions.js +72 -0
  63. package/dist/framework-mcp/src/utils/permissions.js.map +1 -0
  64. package/dist/framework-mcp/tests/tools/file_system/compliance-risk.test.js +84 -0
  65. package/dist/framework-mcp/tests/tools/file_system/compliance-risk.test.js.map +1 -0
  66. package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js +31 -31
  67. package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js.map +1 -1
  68. package/dist/framework-mcp/tests/tools/file_system/permissions.test.d.ts +1 -0
  69. package/dist/framework-mcp/tests/tools/file_system/permissions.test.js +92 -0
  70. package/dist/framework-mcp/tests/tools/file_system/permissions.test.js.map +1 -0
  71. package/dist/framework-mcp/tests/tools/messaging/send_message.test.js +5 -5
  72. package/dist/framework-mcp/tests/tools/messaging/send_message.test.js.map +1 -1
  73. package/dist/src/cli/adapters/core.js +1 -1
  74. package/dist/src/cli/adapters/core.js.map +1 -1
  75. package/dist/src/cli/adapters/scaffold.js +2 -2
  76. package/dist/src/cli/adapters/scaffold.js.map +1 -1
  77. package/dist/src/cli/commands/check.js +5 -3
  78. package/dist/src/cli/commands/check.js.map +1 -1
  79. package/dist/src/cli/commands/compliance.js +2 -2
  80. package/dist/src/cli/commands/compliance.js.map +1 -1
  81. package/dist/src/cli/commands/contract.js +2 -2
  82. package/dist/src/cli/commands/contract.js.map +1 -1
  83. package/dist/src/cli/commands/dashboard.d.ts +5 -0
  84. package/dist/src/cli/commands/dashboard.js +124 -0
  85. package/dist/src/cli/commands/dashboard.js.map +1 -0
  86. package/dist/src/cli/commands/explorer.js +3 -3
  87. package/dist/src/cli/commands/explorer.js.map +1 -1
  88. package/dist/src/cli/commands/git.js +3 -3
  89. package/dist/src/cli/commands/git.js.map +1 -1
  90. package/dist/src/cli/commands/init/create-agent.d.ts +4 -0
  91. package/dist/src/cli/commands/init/create-agent.js +59 -0
  92. package/dist/src/cli/commands/init/create-agent.js.map +1 -0
  93. package/dist/src/cli/commands/init/scaffold-core.d.ts +1 -0
  94. package/dist/src/cli/commands/init/scaffold-core.js +11 -7
  95. package/dist/src/cli/commands/init/scaffold-core.js.map +1 -1
  96. package/dist/src/cli/commands/init/scaffold-docs.d.ts +1 -0
  97. package/dist/src/cli/commands/init/scaffold-docs.js +4 -6
  98. package/dist/src/cli/commands/init/scaffold-docs.js.map +1 -1
  99. package/dist/src/cli/commands/init/scaffold-ops.js +4 -4
  100. package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -1
  101. package/dist/src/cli/commands/init/scaffold-standards.js +10 -8
  102. package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -1
  103. package/dist/src/cli/commands/init.js +26 -10
  104. package/dist/src/cli/commands/init.js.map +1 -1
  105. package/dist/src/cli/commands/knowledge.js +3 -3
  106. package/dist/src/cli/commands/knowledge.js.map +1 -1
  107. package/dist/src/cli/commands/lint.js +2 -2
  108. package/dist/src/cli/commands/lint.js.map +1 -1
  109. package/dist/src/cli/commands/log.js +6 -28
  110. package/dist/src/cli/commands/log.js.map +1 -1
  111. package/dist/src/cli/commands/orchestrate.d.ts +10 -17
  112. package/dist/src/cli/commands/orchestrate.js +92 -341
  113. package/dist/src/cli/commands/orchestrate.js.map +1 -1
  114. package/dist/src/cli/commands/plan.d.ts +5 -0
  115. package/dist/src/cli/commands/plan.js +80 -59
  116. package/dist/src/cli/commands/plan.js.map +1 -1
  117. package/dist/src/cli/commands/script.js +3 -3
  118. package/dist/src/cli/commands/script.js.map +1 -1
  119. package/dist/src/cli/commands/security.js +2 -2
  120. package/dist/src/cli/commands/security.js.map +1 -1
  121. package/dist/src/cli/commands/status.js +65 -8
  122. package/dist/src/cli/commands/status.js.map +1 -1
  123. package/dist/src/cli/commands/trace.d.ts +4 -0
  124. package/dist/src/cli/commands/trace.js +83 -2
  125. package/dist/src/cli/commands/trace.js.map +1 -1
  126. package/dist/src/cli/index.js +68 -18
  127. package/dist/src/cli/index.js.map +1 -1
  128. package/dist/src/cli/shims.js +14 -14
  129. package/dist/src/cli/utils/claude.js +1 -1
  130. package/dist/src/cli/utils/claude.js.map +1 -1
  131. package/dist/src/cli/utils/compliance.js +7 -1
  132. package/dist/src/cli/utils/compliance.js.map +1 -1
  133. package/dist/src/cli/utils/fs.js +1 -1
  134. package/dist/src/cli/utils/fs.js.map +1 -1
  135. package/dist/src/cli/utils/i18n.d.ts +1 -0
  136. package/dist/src/cli/utils/i18n.js +2 -0
  137. package/dist/src/cli/utils/i18n.js.map +1 -1
  138. package/dist/src/cli/utils/memory.d.ts +12 -3
  139. package/dist/src/cli/utils/memory.js +39 -31
  140. package/dist/src/cli/utils/memory.js.map +1 -1
  141. package/dist/src/cli/utils/pkg.js +2 -2
  142. package/dist/src/cli/utils/pkg.js.map +1 -1
  143. package/dist/src/cli/utils/schemas.d.ts +8 -8
  144. package/dist/src/cli/utils/ui.js +4 -4
  145. package/dist/src/cli/utils/ui.js.map +1 -1
  146. package/dist/src/contracts/tasks.d.ts +2 -2
  147. package/dist/src/dashboard/vite.config.d.ts +2 -0
  148. package/dist/src/dashboard/vite.config.js +16 -0
  149. package/dist/src/dashboard/vite.config.js.map +1 -0
  150. package/dist/src/modules/adapters/definitions.js +10 -10
  151. package/dist/src/modules/adapters/definitions.js.map +1 -1
  152. package/dist/src/modules/adapters/shared.js +4 -4
  153. package/dist/src/modules/adapters/shared.js.map +1 -1
  154. package/dist/src/modules/agents/definitions.d.ts +19 -0
  155. package/dist/src/modules/agents/definitions.js +74 -21
  156. package/dist/src/modules/agents/definitions.js.map +1 -1
  157. package/dist/src/modules/agents/registry/backend.js +8 -0
  158. package/dist/src/modules/agents/registry/backend.js.map +1 -1
  159. package/dist/src/modules/agents/registry/database.js +7 -0
  160. package/dist/src/modules/agents/registry/database.js.map +1 -1
  161. package/dist/src/modules/agents/registry/devops.js +6 -0
  162. package/dist/src/modules/agents/registry/devops.js.map +1 -1
  163. package/dist/src/modules/agents/registry/frontend.js +8 -0
  164. package/dist/src/modules/agents/registry/frontend.js.map +1 -1
  165. package/dist/src/modules/agents/registry/security.js +6 -0
  166. package/dist/src/modules/agents/registry/security.js.map +1 -1
  167. package/dist/src/modules/agents/types.d.ts +2 -0
  168. package/dist/src/modules/engines/evaluation-engine.d.ts +11 -0
  169. package/dist/src/modules/engines/evaluation-engine.js +103 -0
  170. package/dist/src/modules/engines/evaluation-engine.js.map +1 -0
  171. package/dist/src/modules/engines/health-engine.d.ts +16 -0
  172. package/dist/src/modules/engines/health-engine.js +50 -0
  173. package/dist/src/modules/engines/health-engine.js.map +1 -0
  174. package/dist/src/modules/engines/planning-engine.d.ts +25 -0
  175. package/dist/src/modules/engines/planning-engine.js +79 -0
  176. package/dist/src/modules/engines/planning-engine.js.map +1 -0
  177. package/dist/src/modules/engines/risk-engine.d.ts +18 -0
  178. package/dist/src/modules/engines/risk-engine.js +106 -0
  179. package/dist/src/modules/engines/risk-engine.js.map +1 -0
  180. package/dist/src/modules/engines/routing-engine.d.ts +11 -0
  181. package/dist/src/modules/engines/routing-engine.js +74 -0
  182. package/dist/src/modules/engines/routing-engine.js.map +1 -0
  183. package/dist/src/modules/engines/types.d.ts +47 -0
  184. package/dist/src/modules/engines/types.js +2 -0
  185. package/dist/src/modules/engines/types.js.map +1 -0
  186. package/dist/src/shared/constants.d.ts +5 -2
  187. package/dist/src/shared/constants.js +4 -1
  188. package/dist/src/shared/constants.js.map +1 -1
  189. package/dist/src/shared/fs.d.ts +1 -0
  190. package/dist/src/shared/fs.js +4 -0
  191. package/dist/src/shared/fs.js.map +1 -1
  192. package/dist/src/shared/storage.d.ts +60 -0
  193. package/dist/src/shared/storage.js +208 -0
  194. package/dist/src/shared/storage.js.map +1 -0
  195. package/dist/tests/agent-memory-v2.test.d.ts +1 -0
  196. package/dist/tests/agent-memory-v2.test.js +68 -0
  197. package/dist/tests/agent-memory-v2.test.js.map +1 -0
  198. package/dist/tests/agents-definitions.test.js +42 -0
  199. package/dist/tests/agents-definitions.test.js.map +1 -1
  200. package/dist/tests/integration/hermes_locking.test.js +7 -10
  201. package/dist/tests/integration/hermes_locking.test.js.map +1 -1
  202. package/dist/tests/orchestrate.test.js +5 -1
  203. package/dist/tests/orchestrate.test.js.map +1 -1
  204. package/dist/tests/orchestrator-dependencies.test.d.ts +1 -0
  205. package/dist/tests/orchestrator-dependencies.test.js +52 -0
  206. package/dist/tests/orchestrator-dependencies.test.js.map +1 -0
  207. package/dist/tests/plan.test.d.ts +1 -0
  208. package/dist/tests/plan.test.js +63 -0
  209. package/dist/tests/plan.test.js.map +1 -0
  210. package/dist/tests/planning-engine.test.d.ts +1 -0
  211. package/dist/tests/planning-engine.test.js +50 -0
  212. package/dist/tests/planning-engine.test.js.map +1 -0
  213. package/dist/tests/status-cost.test.d.ts +1 -0
  214. package/dist/tests/status-cost.test.js +54 -0
  215. package/dist/tests/status-cost.test.js.map +1 -0
  216. package/dist/tests/status.test.js +8 -7
  217. package/dist/tests/status.test.js.map +1 -1
  218. package/dist/tests/trace-replay.test.d.ts +1 -0
  219. package/dist/tests/trace-replay.test.js +65 -0
  220. package/dist/tests/trace-replay.test.js.map +1 -0
  221. package/dist/tests/trace.test.js +14 -7
  222. package/dist/tests/trace.test.js.map +1 -1
  223. package/dist/ui/assets/index-Bkt7APzu.css +1 -0
  224. package/dist/ui/assets/index-CeX-06mI.js +49 -0
  225. package/dist/ui/index.html +14 -0
  226. package/package.json +5 -4
  227. package/templates/prompts/contract-design-recipe.md +1 -1
  228. package/templates/prompts/db-management-recipe.md +3 -3
  229. package/templates/prompts/deployment-recipe.md +3 -3
  230. package/templates/prompts/performance-optimization-recipe.md +3 -3
  231. package/templates/prompts/pull-request-template.md +2 -2
  232. package/templates/prompts/security-audit-recipe.md +3 -3
  233. package/templates/standards/crud-governance.md +1 -1
  234. package/templates/standards/deployment-standards.md +1 -1
  235. package/templates/standards/governance-standards.md +1 -1
  236. package/templates/standards/llm-governance.md +1 -1
  237. package/templates/standards/nextjs-standards.md +13 -0
  238. package/templates/standards/observability-standards.md +1 -1
  239. package/templates/standards/security-audit-standards.md +1 -1
  240. package/templates/standards/security-standards.md +1 -1
  241. package/templates/standards/testing-standards.md +1 -1
  242. package/templates/standards/vite-standards.md +13 -0
  243. package/framework-mcp/dist/constants.js +0 -64
  244. package/framework-mcp/dist/index.js +0 -120
  245. package/framework-mcp/dist/tools/control_plane/locking.js +0 -82
  246. package/framework-mcp/dist/tools/control_plane/registry.js +0 -34
  247. package/framework-mcp/dist/tools/definitions.js +0 -290
  248. package/framework-mcp/dist/tools/file_system/batch_surgical_edit.js +0 -59
  249. package/framework-mcp/dist/tools/file_system/patch_file.js +0 -29
  250. package/framework-mcp/dist/tools/file_system/read_file.js +0 -51
  251. package/framework-mcp/dist/tools/file_system/replace_text.js +0 -45
  252. package/framework-mcp/dist/tools/file_system/write_file.js +0 -38
  253. package/framework-mcp/dist/tools/framework/audit_deps.js +0 -41
  254. package/framework-mcp/dist/tools/framework/get_status.js +0 -5
  255. package/framework-mcp/dist/tools/framework/orchestrate.js +0 -5
  256. package/framework-mcp/dist/tools/framework/run_tests.js +0 -27
  257. package/framework-mcp/dist/tools/framework/update_contract_hash.js +0 -5
  258. package/framework-mcp/dist/tools/framework/update_memory.js +0 -8
  259. package/framework-mcp/dist/tools/index.js +0 -60
  260. package/framework-mcp/dist/tools/memory/get_insights.js +0 -34
  261. package/framework-mcp/dist/tools/memory/read_memory.js +0 -28
  262. package/framework-mcp/dist/tools/messaging/log_action.js +0 -22
  263. package/framework-mcp/dist/tools/messaging/send_message.js +0 -94
  264. package/framework-mcp/dist/tools/observability/check_ports.js +0 -26
  265. package/framework-mcp/dist/tools/observability/get_health.js +0 -19
  266. package/framework-mcp/dist/tools/quality/check_lint.js +0 -30
  267. package/framework-mcp/dist/tools/search/get_gaps.js +0 -48
  268. package/framework-mcp/dist/tools/search/get_map.js +0 -43
  269. package/framework-mcp/dist/tools/search/grep_search.js +0 -75
  270. package/framework-mcp/dist/tools/search/list_dir.js +0 -28
  271. package/framework-mcp/dist/tools/shell/run_command.js +0 -56
  272. package/framework-mcp/dist/utils/cli.js +0 -59
  273. package/framework-mcp/dist/utils/compliance.js +0 -78
  274. package/framework-mcp/dist/utils/fs.js +0 -44
  275. package/framework-mcp/dist/utils/metrics.js +0 -56
  276. package/framework-mcp/dist/utils/security.js +0 -60
  277. package/framework-mcp/package-lock.json +0 -1191
  278. package/framework-mcp/package.json +0 -29
  279. package/framework-mcp/src/constants.ts +0 -78
  280. package/framework-mcp/src/declarations.d.ts +0 -17
  281. package/framework-mcp/src/index.ts +0 -145
  282. package/framework-mcp/src/tools/control_plane/locking.ts +0 -89
  283. package/framework-mcp/src/tools/control_plane/registry.ts +0 -38
  284. package/framework-mcp/src/tools/definitions.ts +0 -292
  285. package/framework-mcp/src/tools/file_system/batch_surgical_edit.ts +0 -79
  286. package/framework-mcp/src/tools/file_system/patch_file.ts +0 -39
  287. package/framework-mcp/src/tools/file_system/read_file.ts +0 -58
  288. package/framework-mcp/src/tools/file_system/replace_text.ts +0 -54
  289. package/framework-mcp/src/tools/file_system/write_file.ts +0 -45
  290. package/framework-mcp/src/tools/framework/audit_deps.ts +0 -49
  291. package/framework-mcp/src/tools/framework/get_status.ts +0 -7
  292. package/framework-mcp/src/tools/framework/orchestrate.ts +0 -7
  293. package/framework-mcp/src/tools/framework/run_tests.ts +0 -30
  294. package/framework-mcp/src/tools/framework/update_contract_hash.ts +0 -7
  295. package/framework-mcp/src/tools/framework/update_memory.ts +0 -10
  296. package/framework-mcp/src/tools/index.ts +0 -64
  297. package/framework-mcp/src/tools/memory/get_insights.ts +0 -41
  298. package/framework-mcp/src/tools/memory/read_memory.ts +0 -31
  299. package/framework-mcp/src/tools/messaging/log_action.ts +0 -28
  300. package/framework-mcp/src/tools/messaging/send_message.ts +0 -97
  301. package/framework-mcp/src/tools/observability/check_ports.ts +0 -30
  302. package/framework-mcp/src/tools/observability/get_health.ts +0 -24
  303. package/framework-mcp/src/tools/quality/check_lint.ts +0 -36
  304. package/framework-mcp/src/tools/search/get_gaps.ts +0 -54
  305. package/framework-mcp/src/tools/search/get_map.ts +0 -48
  306. package/framework-mcp/src/tools/search/grep_search.ts +0 -75
  307. package/framework-mcp/src/tools/search/list_dir.ts +0 -34
  308. package/framework-mcp/src/tools/shell/run_command.ts +0 -66
  309. package/framework-mcp/src/tools/types.ts +0 -89
  310. package/framework-mcp/src/utils/cli.ts +0 -53
  311. package/framework-mcp/src/utils/compliance.ts +0 -95
  312. package/framework-mcp/src/utils/fs.ts +0 -45
  313. package/framework-mcp/src/utils/metrics.ts +0 -73
  314. package/framework-mcp/src/utils/security.ts +0 -66
  315. package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +0 -212
  316. package/framework-mcp/tests/tools/messaging/send_message.test.ts +0 -136
  317. package/framework-mcp/tests/tools/quality/check_lint.test.ts +0 -46
  318. package/framework-mcp/tests/tools/shell/run_command.test.ts +0 -55
  319. package/framework-mcp/tsconfig.json +0 -14
  320. package/src/cli/adapters/core.ts +0 -91
  321. package/src/cli/adapters/index.ts +0 -5
  322. package/src/cli/adapters/paths.ts +0 -135
  323. package/src/cli/adapters/scaffold.ts +0 -95
  324. package/src/cli/adapters/utils.ts +0 -87
  325. package/src/cli/commands/approve.ts +0 -73
  326. package/src/cli/commands/check.ts +0 -188
  327. package/src/cli/commands/compliance.ts +0 -55
  328. package/src/cli/commands/contract.ts +0 -68
  329. package/src/cli/commands/explorer.ts +0 -45
  330. package/src/cli/commands/git.ts +0 -39
  331. package/src/cli/commands/init/scaffold-core.ts +0 -136
  332. package/src/cli/commands/init/scaffold-docs.ts +0 -44
  333. package/src/cli/commands/init/scaffold-ops.ts +0 -83
  334. package/src/cli/commands/init/scaffold-standards.ts +0 -67
  335. package/src/cli/commands/init.ts +0 -193
  336. package/src/cli/commands/knowledge.ts +0 -44
  337. package/src/cli/commands/lint.ts +0 -23
  338. package/src/cli/commands/log.ts +0 -37
  339. package/src/cli/commands/memory.ts +0 -6
  340. package/src/cli/commands/orchestrate.ts +0 -450
  341. package/src/cli/commands/plan.ts +0 -113
  342. package/src/cli/commands/script.ts +0 -20
  343. package/src/cli/commands/security.ts +0 -38
  344. package/src/cli/commands/status.ts +0 -44
  345. package/src/cli/commands/trace.ts +0 -31
  346. package/src/cli/index.ts +0 -322
  347. package/src/cli/shims.ts +0 -66
  348. package/src/cli/utils/claude.ts +0 -63
  349. package/src/cli/utils/compliance.ts +0 -191
  350. package/src/cli/utils/config-schema.ts +0 -48
  351. package/src/cli/utils/fs.ts +0 -170
  352. package/src/cli/utils/i18n.ts +0 -44
  353. package/src/cli/utils/memory.ts +0 -303
  354. package/src/cli/utils/pkg.ts +0 -317
  355. package/src/cli/utils/schemas.ts +0 -22
  356. package/src/cli/utils/string.ts +0 -55
  357. package/src/cli/utils/time.ts +0 -27
  358. package/src/cli/utils/ui.ts +0 -66
  359. package/src/contracts/index.ts +0 -1
  360. package/src/contracts/tasks.ts +0 -26
  361. package/src/modules/adapters/definitions.ts +0 -171
  362. package/src/modules/adapters/registry.ts +0 -27
  363. package/src/modules/adapters/shared.ts +0 -120
  364. package/src/modules/adapters/types.ts +0 -16
  365. package/src/modules/agents/definitions.ts +0 -460
  366. package/src/modules/agents/registry/analyst.ts +0 -44
  367. package/src/modules/agents/registry/architect.ts +0 -47
  368. package/src/modules/agents/registry/backend.ts +0 -46
  369. package/src/modules/agents/registry/database.ts +0 -43
  370. package/src/modules/agents/registry/devops.ts +0 -44
  371. package/src/modules/agents/registry/explorer.ts +0 -41
  372. package/src/modules/agents/registry/frontend.ts +0 -48
  373. package/src/modules/agents/registry/git.ts +0 -41
  374. package/src/modules/agents/registry/manager.ts +0 -58
  375. package/src/modules/agents/registry/mobile.ts +0 -44
  376. package/src/modules/agents/registry/native.ts +0 -44
  377. package/src/modules/agents/registry/quality.ts +0 -46
  378. package/src/modules/agents/registry/security.ts +0 -42
  379. package/src/modules/agents/types.ts +0 -37
  380. package/src/modules/skills/definitions.ts +0 -71
  381. package/src/schema/agent-lifecycle-schema.json +0 -59
  382. package/src/shared/constants.ts +0 -218
  383. package/src/shared/errors.ts +0 -75
  384. package/src/shared/fs.ts +0 -50
  385. package/src/shared/logger.ts +0 -139
  386. package/src/shared/types.ts +0 -20
  387. /package/{framework-mcp/dist/tools/types.js → dist/framework-mcp/tests/tools/file_system/compliance-risk.test.d.ts} +0 -0
@@ -1,171 +0,0 @@
1
- import path from "path";
2
- import type { AdapterConfig, AdapterId } from "./types.js";
3
- import { addMcpServerToClaude, findClaudeConfigPath } from "../../cli/utils/claude.js";
4
- import { writeJsonFile } from "../../shared/fs.js";
5
- import { registerGlobalAntigravityPlugins } from "./shared.js";
6
- import { registry } from "./registry.js";
7
- import { UI } from "../../cli/utils/ui.js";
8
-
9
- // ─── Register Core Adapters ──────────────────────────────────────────────────
10
-
11
- // ♊ Gemini
12
- registry.register(
13
- {
14
- id: "gemini",
15
- frameworkDir: ".gemini",
16
- shimFile: "GEMINI.md",
17
- shimTemplate: "src/cli/shims/gemini.md",
18
- role: "commander",
19
- templateDir: ".atabey",
20
- nestedDirs: ["agents", "rules"],
21
- agentsDir: ".gemini/agents",
22
- agentsExt: ".md"
23
- },
24
- (projectRoot, mcpBlock) => {
25
- const frameworkDir = ".gemini";
26
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp.json"), mcpBlock);
27
- UI.success(`Gemini MCP registered → ${frameworkDir}/mcp.json`);
28
- registerGlobalAntigravityPlugins(mcpBlock);
29
- }
30
- );
31
-
32
- // 🚀 Claude
33
- registry.register(
34
- {
35
- id: "claude",
36
- frameworkDir: ".claude",
37
- shimFile: "CLAUDE.md",
38
- shimTemplate: "src/cli/shims/claude.md",
39
- role: "architect",
40
- templateDir: ".atabey",
41
- nestedDirs: ["agents", "rules"],
42
- agentsDir: ".claude/agents",
43
- agentsExt: ".md"
44
- },
45
- (projectRoot, mcpBlock) => {
46
- const configPath = findClaudeConfigPath();
47
- if (configPath) {
48
- const block = mcpBlock as { mcpServers: Record<string, unknown> };
49
- const mcpEntry = block.mcpServers["atabey"] as Record<string, unknown>;
50
- const ok = addMcpServerToClaude(configPath, "atabey", mcpEntry);
51
- if (ok) UI.success(`Claude MCP registered → ${configPath}`);
52
- }
53
- const frameworkDir = ".claude";
54
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
55
- writeJsonFile(path.join(projectRoot, ".mcp.json"), mcpBlock);
56
- UI.success("Claude Code Project MCP → .mcp.json");
57
- }
58
- );
59
-
60
- // 🤖 Grok
61
- registry.register(
62
- {
63
- id: "grok",
64
- frameworkDir: ".grok",
65
- shimFile: "GROK.md",
66
- shimTemplate: "src/cli/shims/grok.md",
67
- role: "researcher",
68
- templateDir: ".atabey",
69
- nestedDirs: ["agents", "rules"],
70
- agentsDir: ".grok/agents",
71
- agentsExt: ".md"
72
- },
73
- (projectRoot, mcpBlock) => {
74
- const frameworkDir = ".grok";
75
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
76
- UI.success(`Grok MCP → ${frameworkDir}/mcp_config.json`);
77
- }
78
- );
79
-
80
- // ✍️ Cursor
81
- registry.register(
82
- {
83
- id: "cursor",
84
- frameworkDir: ".cursor",
85
- shimFile: "CURSOR.md",
86
- shimTemplate: "src/cli/shims/cursor.mdc",
87
- role: "implementer",
88
- templateDir: ".atabey",
89
- nestedDirs: ["rules"],
90
- agentsDir: ".cursor/rules",
91
- agentsExt: ".mdc"
92
- },
93
- (projectRoot, mcpBlock) => {
94
- const frameworkDir = ".cursor";
95
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp.json"), mcpBlock);
96
- UI.success(`Cursor IDE Project MCP → ${frameworkDir}/mcp.json`);
97
- }
98
- );
99
-
100
- // 💡 Codex (Copilot)
101
- registry.register(
102
- {
103
- id: "codex",
104
- frameworkDir: ".agents",
105
- shimFile: "copilot-instructions.md",
106
- shimTemplate: "src/cli/shims/codex.md",
107
- role: "implementer",
108
- templateDir: ".atabey",
109
- nestedDirs: ["skills", "rules", "instructions"],
110
- agentsDir: ".agents/instructions",
111
- agentsExt: ".md"
112
- },
113
- (projectRoot, mcpBlock) => {
114
- const frameworkDir = ".agents";
115
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
116
- writeJsonFile(path.join(projectRoot, ".vscode/mcp.json"), mcpBlock);
117
- writeJsonFile(path.join(projectRoot, ".mcp.json"), mcpBlock);
118
- UI.success("GitHub Copilot Project MCP → .vscode/mcp.json & .mcp.json");
119
- }
120
- );
121
-
122
- // 🏠 Local LLM (Ollama / Private AI)
123
- registry.register(
124
- {
125
- id: "local",
126
- frameworkDir: ".atabey",
127
- shimFile: "LOCAL_AI.md",
128
- shimTemplate: "src/cli/shims/local.md",
129
- role: "commander",
130
- templateDir: ".atabey",
131
- nestedDirs: ["agents", "rules"],
132
- agentsDir: ".atabey/agents",
133
- agentsExt: ".md"
134
- },
135
- (projectRoot, mcpBlock) => {
136
- const frameworkDir = ".atabey";
137
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
138
- UI.success(`Local LLM MCP (Ollama/Private AI) registered → ${frameworkDir}/mcp_config.json`);
139
- }
140
- );
141
-
142
- // 🛸 Antigravity
143
- registry.register(
144
- {
145
- id: "antigravity-cli",
146
- frameworkDir: ".antigravity",
147
- shimFile: "AGENTS.md",
148
- shimTemplate: "src/cli/shims/antigravity-cli.md",
149
- role: "general",
150
- templateDir: ".atabey",
151
- nestedDirs: ["agents", "plugins", "rules"],
152
- agentsDir: ".antigravity/agents",
153
- agentsExt: ".md"
154
- },
155
- (projectRoot, mcpBlock) => {
156
- const frameworkDir = ".antigravity";
157
- writeJsonFile(path.join(projectRoot, frameworkDir, "mcp_config.json"), mcpBlock);
158
- UI.success(`Antigravity CLI MCP → ${frameworkDir}/mcp_config.json`);
159
- registerGlobalAntigravityPlugins(mcpBlock);
160
- }
161
- );
162
-
163
- /**
164
- * Mapped Adapter Configurations
165
- */
166
- export const ADAPTER_CONFIGS: Record<AdapterId, AdapterConfig> = registry.getConfigs();
167
-
168
- /**
169
- * Post-Initialization Handlers for specific adapters
170
- */
171
- export const POST_INIT_HANDLERS: Record<AdapterId, (projectRoot: string, mcpBlock: unknown) => void> = registry.getHandlers();
@@ -1,27 +0,0 @@
1
- import { AdapterId, AdapterConfig } from "./types.js";
2
-
3
- type PostInitHandler = (projectRoot: string, mcpBlock: unknown) => void;
4
-
5
- class AdapterRegistry {
6
- private configs: Map<string, AdapterConfig> = new Map();
7
- private handlers: Map<string, PostInitHandler> = new Map();
8
-
9
- register(config: AdapterConfig, handler: PostInitHandler) {
10
- this.configs.set(config.id, config);
11
- this.handlers.set(config.id, handler);
12
- }
13
-
14
- getConfigs(): Record<string, AdapterConfig> {
15
- return Object.fromEntries(this.configs);
16
- }
17
-
18
- getHandlers(): Record<string, PostInitHandler> {
19
- return Object.fromEntries(this.handlers);
20
- }
21
-
22
- getIds(): AdapterId[] {
23
- return Array.from(this.configs.keys()) as AdapterId[];
24
- }
25
- }
26
-
27
- export const registry = new AdapterRegistry();
@@ -1,120 +0,0 @@
1
- import path from "path";
2
- import fs from "fs";
3
- import os from "os";
4
- import { execSync } from "child_process";
5
- import { writeJsonFile, writeTextFile } from "../../shared/fs.js";
6
- import { ALL_AGENTS, toAntigravityJson } from "../agents/definitions.js";
7
- import { CORE_SKILLS } from "../skills/definitions.js";
8
- import { getPackageRoot } from "../../cli/utils/pkg.js";
9
- import { logger } from "../../shared/logger.js";
10
-
11
- export function registerGlobalAntigravityPlugins(mcpBlock: unknown): void {
12
- // Allow overriding via env var for different OS/Gemini CLI versions
13
- const defaultGlobalDir = path.join(os.homedir(), ".gemini/antigravity-cli");
14
- const customDir = process.env["ANTIGRAVITY_GLOBAL_DIR"];
15
- const targets = [customDir ?? defaultGlobalDir];
16
- const baseKnowledgeDir = path.join(getPackageRoot(), "templates/standards");
17
-
18
- for (const globalDir of targets) {
19
- try {
20
- // Write directly under directory
21
- fs.mkdirSync(globalDir, { recursive: true });
22
- writeJsonFile(path.join(globalDir, "mcp.json"), mcpBlock);
23
- writeJsonFile(path.join(globalDir, "mcp_config.json"), mcpBlock);
24
- logger.info(`Antigravity MCP registered → ${globalDir}/`);
25
-
26
- // Global Plugin configuration under plugins/atabey/
27
- const globalPluginDir = path.join(globalDir, "plugins/atabey");
28
- fs.mkdirSync(globalPluginDir, { recursive: true });
29
-
30
- // plugin.json marker
31
- writeJsonFile(path.join(globalPluginDir, "plugin.json"), {
32
- name: "atabey",
33
- version: "1.0.0",
34
- description: "Agent Atabey AI Orchestration framework"
35
- });
36
-
37
- // MCP Server configs inside the plugin
38
- writeJsonFile(path.join(globalPluginDir, "mcp.json"), mcpBlock);
39
- writeJsonFile(path.join(globalPluginDir, "mcp_config.json"), mcpBlock);
40
-
41
- // Scaffold 13 agents
42
- const agentsBaseDir = path.join(globalPluginDir, "agents");
43
- fs.mkdirSync(agentsBaseDir, { recursive: true });
44
-
45
- // Also write directly to ~/.gemini/antigravity-cli/agents/ so the CLI's
46
- // workspace/global agent discovery finds them without the plugins/ prefix.
47
- const globalAgentsDir = path.join(globalDir, "agents");
48
- fs.mkdirSync(globalAgentsDir, { recursive: true });
49
-
50
- for (const ag of ALL_AGENTS) {
51
- const agentJson = toAntigravityJson(ag, baseKnowledgeDir);
52
-
53
- // 1. Nested format inside plugin: plugins/atabey/agents/{name}/agent.json
54
- const nestedAgentDir = path.join(agentsBaseDir, ag.name);
55
- fs.mkdirSync(nestedAgentDir, { recursive: true });
56
- writeTextFile(path.join(nestedAgentDir, "agent.json"), agentJson);
57
-
58
- // 2. Flat format inside plugin: plugins/atabey/agents/{name}.json
59
- writeTextFile(path.join(agentsBaseDir, `${ag.name}.json`), agentJson);
60
-
61
- // 3. Direct global agents root — THIS is what Antigravity CLI reads:
62
- // ~/.gemini/antigravity-cli/agents/{name}/agent.json
63
- const globalNestedDir = path.join(globalAgentsDir, ag.name);
64
- fs.mkdirSync(globalNestedDir, { recursive: true });
65
- writeTextFile(path.join(globalNestedDir, "agent.json"), agentJson);
66
-
67
- // 4. Flat global format as fallback
68
- writeTextFile(path.join(globalAgentsDir, `${ag.name}.json`), agentJson);
69
- }
70
-
71
- // Scaffold skills
72
- const skillsDir = path.join(globalPluginDir, "skills");
73
- fs.mkdirSync(skillsDir, { recursive: true });
74
- for (const [key, skill] of Object.entries(CORE_SKILLS)) {
75
- const skillContent = `# 🛠️ Skill — ${skill.name}\n\n${skill.mandates.join("\n")}\n`;
76
- writeTextFile(path.join(skillsDir, `${key.toLowerCase()}.md`), skillContent);
77
- }
78
-
79
- // Scaffold rules
80
- const rulesDir = path.join(globalPluginDir, "rules");
81
- fs.mkdirSync(rulesDir, { recursive: true });
82
- for (const ag of ALL_AGENTS) {
83
- const ruleContent = `# 🎖️ Agent Atabey — @${ag.name} (${ag.displayName})
84
-
85
- You are the **${ag.displayName}** of the Agent Atabey Army.
86
-
87
- ## 🤖 Specialist Directive (Role: @${ag.name})
88
- ${ag.instructions.identity}
89
-
90
- ### 🎯 Mission
91
- ${ag.instructions.mission}
92
-
93
- ### 📜 Discipline Rules
94
- ${ag.instructions.rules.map(r => `- ${r}`).join("\n")}
95
-
96
- ## 🛡️ Core Mandates
97
- - **Surgical Precision:** Enforce replace_text / replace_file_content for all code modifications.
98
- - **Traceability:** Inherit and pass the active Trace ID across all delegations.
99
- - **Approval Signature:** High-risk actions require manager approval signature.
100
- `;
101
- writeTextFile(path.join(rulesDir, `${ag.name}.md`), ruleContent);
102
- }
103
-
104
- // Scaffold optional empty hooks.json
105
- writeJsonFile(path.join(globalPluginDir, "hooks.json"), {});
106
-
107
- logger.info(`Antigravity Plugin registered → ${globalPluginDir}/`);
108
-
109
- try {
110
- execSync(`agy plugin install "${globalPluginDir}"`, { stdio: "ignore" });
111
- logger.info("Antigravity Plugin installed in CLI.");
112
- } catch {
113
- // Ignore if agy is not in PATH or fails
114
- }
115
-
116
- } catch (e) {
117
- logger.warn(`Failed to register plugin/MCP in ${globalDir}`, e);
118
- }
119
- }
120
- }
@@ -1,16 +0,0 @@
1
- export const ADAPTER_IDS = ["gemini", "claude", "grok", "cursor", "codex", "local", "antigravity-cli"] as const;
2
- export type AdapterId = (typeof ADAPTER_IDS)[number];
3
-
4
- export type AdapterRole = "commander" | "architect" | "researcher" | "implementer" | "general";
5
-
6
- export interface AdapterConfig {
7
- id: AdapterId;
8
- frameworkDir: string;
9
- shimFile: string;
10
- shimTemplate: string;
11
- role: AdapterRole;
12
- templateDir: ".atabey";
13
- nestedDirs?: string[];
14
- agentsDir?: string; // Directory to write individual agents/rules, relative to projectRoot
15
- agentsExt?: string; // Extensions for agent files (.md or .mdc)
16
- }