@jeger-ai/opengantry 1.1.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/README.md +24 -9
  2. package/dist/cli/commands/check-imports.d.ts +7 -0
  3. package/dist/cli/commands/check-imports.d.ts.map +1 -0
  4. package/dist/cli/commands/check-imports.js +33 -0
  5. package/dist/cli/commands/check-imports.js.map +1 -0
  6. package/dist/cli/commands/context-request.d.ts +11 -0
  7. package/dist/cli/commands/context-request.d.ts.map +1 -0
  8. package/dist/cli/commands/context-request.js +74 -0
  9. package/dist/cli/commands/context-request.js.map +1 -0
  10. package/dist/cli/commands/doctor.d.ts +1 -1
  11. package/dist/cli/commands/doctor.d.ts.map +1 -1
  12. package/dist/cli/commands/doctor.js +1 -2
  13. package/dist/cli/commands/doctor.js.map +1 -1
  14. package/dist/cli/commands/init.d.ts.map +1 -1
  15. package/dist/cli/commands/init.js +7 -3
  16. package/dist/cli/commands/init.js.map +1 -1
  17. package/dist/cli/commands/legislate.d.ts +1 -1
  18. package/dist/cli/commands/legislate.d.ts.map +1 -1
  19. package/dist/cli/commands/legislate.js +1 -1
  20. package/dist/cli/commands/legislate.js.map +1 -1
  21. package/dist/cli/commands/mission.js +3 -3
  22. package/dist/cli/commands/mission.js.map +1 -1
  23. package/dist/cli/commands/onboarding.d.ts +4 -1
  24. package/dist/cli/commands/onboarding.d.ts.map +1 -1
  25. package/dist/cli/commands/onboarding.js +73 -45
  26. package/dist/cli/commands/onboarding.js.map +1 -1
  27. package/dist/cli/commands/perimeter.d.ts +7 -0
  28. package/dist/cli/commands/perimeter.d.ts.map +1 -0
  29. package/dist/cli/commands/perimeter.js +50 -0
  30. package/dist/cli/commands/perimeter.js.map +1 -0
  31. package/dist/cli/commands/register.d.ts +7 -0
  32. package/dist/cli/commands/register.d.ts.map +1 -0
  33. package/dist/cli/commands/register.js +22 -0
  34. package/dist/cli/commands/register.js.map +1 -0
  35. package/dist/cli/commands/runtime.js +1 -1
  36. package/dist/cli/commands/runtime.js.map +1 -1
  37. package/dist/cli/commands/scan.d.ts +7 -0
  38. package/dist/cli/commands/scan.d.ts.map +1 -0
  39. package/dist/cli/commands/scan.js +27 -0
  40. package/dist/cli/commands/scan.js.map +1 -0
  41. package/dist/cli/commands/tmvc-guard.d.ts +7 -0
  42. package/dist/cli/commands/tmvc-guard.d.ts.map +1 -0
  43. package/dist/cli/commands/tmvc-guard.js +63 -0
  44. package/dist/cli/commands/tmvc-guard.js.map +1 -0
  45. package/dist/cli/commands/triage.d.ts +1 -1
  46. package/dist/cli/commands/triage.d.ts.map +1 -1
  47. package/dist/cli/commands/triage.js +3 -15
  48. package/dist/cli/commands/triage.js.map +1 -1
  49. package/dist/cli/commands/upgrade.js +1 -1
  50. package/dist/cli/commands/upgrade.js.map +1 -1
  51. package/dist/cli/commands/verify.d.ts +2 -2
  52. package/dist/cli/commands/verify.d.ts.map +1 -1
  53. package/dist/cli/commands/verify.js +63 -6
  54. package/dist/cli/commands/verify.js.map +1 -1
  55. package/dist/cli/index.js +1 -1
  56. package/dist/cli/index.js.map +1 -1
  57. package/dist/cli/lib/architecture-pointer.d.ts +33 -5
  58. package/dist/cli/lib/architecture-pointer.d.ts.map +1 -1
  59. package/dist/cli/lib/architecture-pointer.js +304 -5
  60. package/dist/cli/lib/architecture-pointer.js.map +1 -1
  61. package/dist/cli/lib/ast-discovery.d.ts +16 -0
  62. package/dist/cli/lib/ast-discovery.d.ts.map +1 -0
  63. package/dist/cli/lib/ast-discovery.js +88 -0
  64. package/dist/cli/lib/ast-discovery.js.map +1 -0
  65. package/dist/cli/lib/banned-import-violation.d.ts +8 -0
  66. package/dist/cli/lib/banned-import-violation.d.ts.map +1 -0
  67. package/dist/cli/lib/banned-import-violation.js +15 -0
  68. package/dist/cli/lib/banned-import-violation.js.map +1 -0
  69. package/dist/cli/lib/break-glass.d.ts +17 -0
  70. package/dist/cli/lib/break-glass.d.ts.map +1 -1
  71. package/dist/cli/lib/break-glass.js +28 -1
  72. package/dist/cli/lib/break-glass.js.map +1 -1
  73. package/dist/cli/lib/cli-io.d.ts +8 -0
  74. package/dist/cli/lib/cli-io.d.ts.map +1 -1
  75. package/dist/cli/lib/cli-io.js +16 -0
  76. package/dist/cli/lib/cli-io.js.map +1 -1
  77. package/dist/cli/lib/command-reporter.d.ts +3 -3
  78. package/dist/cli/lib/command-reporter.d.ts.map +1 -1
  79. package/dist/cli/lib/command-reporter.js +5 -0
  80. package/dist/cli/lib/command-reporter.js.map +1 -1
  81. package/dist/cli/lib/constants.d.ts +4 -0
  82. package/dist/cli/lib/constants.d.ts.map +1 -1
  83. package/dist/cli/lib/constants.js +4 -0
  84. package/dist/cli/lib/constants.js.map +1 -1
  85. package/dist/cli/lib/context-request.d.ts +22 -0
  86. package/dist/cli/lib/context-request.d.ts.map +1 -0
  87. package/dist/cli/lib/context-request.js +45 -0
  88. package/dist/cli/lib/context-request.js.map +1 -0
  89. package/dist/cli/lib/dirty-missions.js +1 -1
  90. package/dist/cli/lib/dirty-missions.js.map +1 -1
  91. package/dist/cli/lib/doctor.d.ts +31 -0
  92. package/dist/cli/lib/doctor.d.ts.map +1 -0
  93. package/dist/cli/lib/doctor.js +282 -0
  94. package/dist/cli/lib/doctor.js.map +1 -0
  95. package/dist/cli/lib/draft-token.js +1 -1
  96. package/dist/cli/lib/draft-token.js.map +1 -1
  97. package/dist/cli/lib/{user-error.d.ts → errors.d.ts} +20 -1
  98. package/dist/cli/lib/errors.d.ts.map +1 -0
  99. package/dist/cli/lib/{agent-error.js → errors.js} +64 -1
  100. package/dist/cli/lib/errors.js.map +1 -0
  101. package/dist/cli/lib/fix-hints.d.ts +1 -1
  102. package/dist/cli/lib/fix-hints.d.ts.map +1 -1
  103. package/dist/cli/lib/gate-work-dir.d.ts +6 -0
  104. package/dist/cli/lib/gate-work-dir.d.ts.map +1 -0
  105. package/dist/cli/lib/gate-work-dir.js +6 -0
  106. package/dist/cli/lib/gate-work-dir.js.map +1 -0
  107. package/dist/cli/lib/git-metrics.d.ts +34 -0
  108. package/dist/cli/lib/git-metrics.d.ts.map +1 -1
  109. package/dist/cli/lib/git-metrics.js +199 -3
  110. package/dist/cli/lib/git-metrics.js.map +1 -1
  111. package/dist/cli/lib/git-proof.d.ts +4 -0
  112. package/dist/cli/lib/git-proof.d.ts.map +1 -1
  113. package/dist/cli/lib/git-proof.js +26 -8
  114. package/dist/cli/lib/git-proof.js.map +1 -1
  115. package/dist/cli/lib/git-staged.d.ts +20 -0
  116. package/dist/cli/lib/git-staged.d.ts.map +1 -0
  117. package/dist/cli/lib/git-staged.js +37 -0
  118. package/dist/cli/lib/git-staged.js.map +1 -0
  119. package/dist/cli/lib/git.d.ts +25 -0
  120. package/dist/cli/lib/git.d.ts.map +1 -1
  121. package/dist/cli/lib/git.js +52 -0
  122. package/dist/cli/lib/git.js.map +1 -1
  123. package/dist/cli/lib/gxt-error-codes.d.ts +9 -0
  124. package/dist/cli/lib/gxt-error-codes.d.ts.map +1 -1
  125. package/dist/cli/lib/gxt-error-codes.js +9 -0
  126. package/dist/cli/lib/gxt-error-codes.js.map +1 -1
  127. package/dist/cli/lib/import-scanner.d.ts +14 -0
  128. package/dist/cli/lib/import-scanner.d.ts.map +1 -0
  129. package/dist/cli/lib/import-scanner.js +67 -0
  130. package/dist/cli/lib/import-scanner.js.map +1 -0
  131. package/dist/cli/lib/init-asset-catalog.d.ts +10 -5
  132. package/dist/cli/lib/init-asset-catalog.d.ts.map +1 -1
  133. package/dist/cli/lib/init-asset-catalog.js +26 -139
  134. package/dist/cli/lib/init-asset-catalog.js.map +1 -1
  135. package/dist/cli/lib/{init-compose-arch-pointer.d.ts → init-compose.d.ts} +4 -1
  136. package/dist/cli/lib/init-compose.d.ts.map +1 -0
  137. package/dist/cli/lib/{init-compose-arch-pointer.js → init-compose.js} +37 -1
  138. package/dist/cli/lib/init-compose.js.map +1 -0
  139. package/dist/cli/lib/init-interactive.js +2 -2
  140. package/dist/cli/lib/init-interactive.js.map +1 -1
  141. package/dist/cli/lib/init-plan.d.ts +1 -1
  142. package/dist/cli/lib/init-plan.d.ts.map +1 -1
  143. package/dist/cli/lib/init-tutorial.d.ts.map +1 -1
  144. package/dist/cli/lib/init-tutorial.js +10 -10
  145. package/dist/cli/lib/init-tutorial.js.map +1 -1
  146. package/dist/cli/lib/integration-compat.d.ts +2 -0
  147. package/dist/cli/lib/integration-compat.d.ts.map +1 -1
  148. package/dist/cli/lib/integration-compat.js.map +1 -1
  149. package/dist/cli/lib/kpi-engine.d.ts +34 -0
  150. package/dist/cli/lib/kpi-engine.d.ts.map +1 -0
  151. package/dist/cli/lib/kpi-engine.js +281 -0
  152. package/dist/cli/lib/kpi-engine.js.map +1 -0
  153. package/dist/cli/lib/kpi-report-stale.d.ts +18 -0
  154. package/dist/cli/lib/kpi-report-stale.d.ts.map +1 -0
  155. package/dist/cli/lib/kpi-report-stale.js +91 -0
  156. package/dist/cli/lib/kpi-report-stale.js.map +1 -0
  157. package/dist/cli/lib/kpi-scan.d.ts +18 -0
  158. package/dist/cli/lib/kpi-scan.d.ts.map +1 -0
  159. package/dist/cli/lib/kpi-scan.js +126 -0
  160. package/dist/cli/lib/kpi-scan.js.map +1 -0
  161. package/dist/cli/lib/legislate.d.ts +39 -0
  162. package/dist/cli/lib/legislate.d.ts.map +1 -0
  163. package/dist/cli/lib/{legislate-core.js → legislate.js} +31 -6
  164. package/dist/cli/lib/legislate.js.map +1 -0
  165. package/dist/cli/lib/manifest.d.ts.map +1 -1
  166. package/dist/cli/lib/manifest.js +30 -15
  167. package/dist/cli/lib/manifest.js.map +1 -1
  168. package/dist/cli/lib/mcp-governance.d.ts +124 -0
  169. package/dist/cli/lib/mcp-governance.d.ts.map +1 -0
  170. package/dist/cli/lib/mcp-governance.js +231 -0
  171. package/dist/cli/lib/mcp-governance.js.map +1 -0
  172. package/dist/cli/lib/mcp-runtime.d.ts +16 -6
  173. package/dist/cli/lib/mcp-runtime.d.ts.map +1 -1
  174. package/dist/cli/lib/mcp-runtime.js +24 -3
  175. package/dist/cli/lib/mcp-runtime.js.map +1 -1
  176. package/dist/cli/lib/mcp-tools-register.d.ts.map +1 -1
  177. package/dist/cli/lib/mcp-tools-register.js +8 -4
  178. package/dist/cli/lib/mcp-tools-register.js.map +1 -1
  179. package/dist/cli/lib/mcp-upgrade.d.ts +13 -2
  180. package/dist/cli/lib/mcp-upgrade.d.ts.map +1 -1
  181. package/dist/cli/lib/mcp-upgrade.js +24 -18
  182. package/dist/cli/lib/mcp-upgrade.js.map +1 -1
  183. package/dist/cli/lib/missions/formatter.d.ts +17 -0
  184. package/dist/cli/lib/missions/formatter.d.ts.map +1 -0
  185. package/dist/cli/lib/{mission-markdown.js → missions/formatter.js} +60 -2
  186. package/dist/cli/lib/missions/formatter.js.map +1 -0
  187. package/dist/cli/lib/missions/parser.d.ts +45 -0
  188. package/dist/cli/lib/missions/parser.d.ts.map +1 -0
  189. package/dist/cli/lib/missions/parser.js +270 -0
  190. package/dist/cli/lib/missions/parser.js.map +1 -0
  191. package/dist/cli/lib/missions/validator.d.ts +3 -0
  192. package/dist/cli/lib/missions/validator.d.ts.map +1 -0
  193. package/dist/cli/lib/missions/validator.js +41 -0
  194. package/dist/cli/lib/missions/validator.js.map +1 -0
  195. package/dist/cli/lib/msn-allocate.js +3 -3
  196. package/dist/cli/lib/msn-allocate.js.map +1 -1
  197. package/dist/cli/lib/perimeter.d.ts +44 -0
  198. package/dist/cli/lib/perimeter.d.ts.map +1 -0
  199. package/dist/cli/lib/perimeter.js +244 -0
  200. package/dist/cli/lib/perimeter.js.map +1 -0
  201. package/dist/cli/lib/program-stdin.d.ts +3 -0
  202. package/dist/cli/lib/program-stdin.d.ts.map +1 -0
  203. package/dist/cli/lib/program-stdin.js +15 -0
  204. package/dist/cli/lib/program-stdin.js.map +1 -0
  205. package/dist/cli/lib/register-proposals.d.ts +13 -0
  206. package/dist/cli/lib/register-proposals.d.ts.map +1 -0
  207. package/dist/cli/lib/register-proposals.js +38 -0
  208. package/dist/cli/lib/register-proposals.js.map +1 -0
  209. package/dist/cli/lib/runtime-env.js +2 -2
  210. package/dist/cli/lib/runtime-env.js.map +1 -1
  211. package/dist/cli/lib/runtime-exec.d.ts +48 -4
  212. package/dist/cli/lib/runtime-exec.d.ts.map +1 -1
  213. package/dist/cli/lib/runtime-exec.js +218 -4
  214. package/dist/cli/lib/runtime-exec.js.map +1 -1
  215. package/dist/cli/lib/staged-tmvc-guard.d.ts +26 -0
  216. package/dist/cli/lib/staged-tmvc-guard.d.ts.map +1 -0
  217. package/dist/cli/lib/staged-tmvc-guard.js +58 -0
  218. package/dist/cli/lib/staged-tmvc-guard.js.map +1 -0
  219. package/dist/cli/lib/start-orchestration.d.ts +11 -1
  220. package/dist/cli/lib/start-orchestration.d.ts.map +1 -1
  221. package/dist/cli/lib/start-orchestration.js +105 -42
  222. package/dist/cli/lib/start-orchestration.js.map +1 -1
  223. package/dist/cli/lib/status-report.d.ts +1 -1
  224. package/dist/cli/lib/status-report.d.ts.map +1 -1
  225. package/dist/cli/lib/status-report.js +2 -2
  226. package/dist/cli/lib/status-report.js.map +1 -1
  227. package/dist/cli/lib/surgeon.d.ts +23 -0
  228. package/dist/cli/lib/surgeon.d.ts.map +1 -0
  229. package/dist/cli/lib/surgeon.js +63 -0
  230. package/dist/cli/lib/surgeon.js.map +1 -0
  231. package/dist/cli/lib/surgeons/banned-import.d.ts +4 -0
  232. package/dist/cli/lib/surgeons/banned-import.d.ts.map +1 -0
  233. package/dist/cli/lib/surgeons/banned-import.js +37 -0
  234. package/dist/cli/lib/surgeons/banned-import.js.map +1 -0
  235. package/dist/cli/lib/surgeons/import-layer.d.ts +3 -0
  236. package/dist/cli/lib/surgeons/import-layer.d.ts.map +1 -0
  237. package/dist/cli/lib/surgeons/import-layer.js +74 -0
  238. package/dist/cli/lib/surgeons/import-layer.js.map +1 -0
  239. package/dist/cli/lib/surgeons/quarantine-import.d.ts +24 -0
  240. package/dist/cli/lib/surgeons/quarantine-import.d.ts.map +1 -0
  241. package/dist/cli/lib/surgeons/quarantine-import.js +128 -0
  242. package/dist/cli/lib/surgeons/quarantine-import.js.map +1 -0
  243. package/dist/cli/lib/surgeons/registry.d.ts +22 -0
  244. package/dist/cli/lib/surgeons/registry.d.ts.map +1 -0
  245. package/dist/cli/lib/surgeons/registry.js +27 -0
  246. package/dist/cli/lib/surgeons/registry.js.map +1 -0
  247. package/dist/cli/lib/surgeons/typescript-workspace.d.ts +7 -0
  248. package/dist/cli/lib/surgeons/typescript-workspace.d.ts.map +1 -0
  249. package/dist/cli/lib/surgeons/typescript-workspace.js +41 -0
  250. package/dist/cli/lib/surgeons/typescript-workspace.js.map +1 -0
  251. package/dist/cli/lib/teacher-identity.js +1 -1
  252. package/dist/cli/lib/teacher-identity.js.map +1 -1
  253. package/dist/cli/lib/tmvc-path.d.ts +12 -0
  254. package/dist/cli/lib/tmvc-path.d.ts.map +1 -0
  255. package/dist/cli/lib/tmvc-path.js +47 -0
  256. package/dist/cli/lib/tmvc-path.js.map +1 -0
  257. package/dist/cli/lib/trace-evidence.js +1 -1
  258. package/dist/cli/lib/trace-evidence.js.map +1 -1
  259. package/dist/cli/lib/trace.d.ts +28 -1
  260. package/dist/cli/lib/trace.d.ts.map +1 -1
  261. package/dist/cli/lib/trace.js +158 -3
  262. package/dist/cli/lib/trace.js.map +1 -1
  263. package/dist/cli/lib/triage-logic.d.ts.map +1 -1
  264. package/dist/cli/lib/triage-logic.js +23 -6
  265. package/dist/cli/lib/triage-logic.js.map +1 -1
  266. package/dist/cli/lib/types.d.ts +64 -1
  267. package/dist/cli/lib/types.d.ts.map +1 -1
  268. package/dist/cli/lib/upgrade-apply.d.ts.map +1 -1
  269. package/dist/cli/lib/upgrade-apply.js +6 -2
  270. package/dist/cli/lib/upgrade-apply.js.map +1 -1
  271. package/dist/cli/lib/upgrade-plan.d.ts +21 -0
  272. package/dist/cli/lib/upgrade-plan.d.ts.map +1 -1
  273. package/dist/cli/lib/upgrade-plan.js +92 -7
  274. package/dist/cli/lib/upgrade-plan.js.map +1 -1
  275. package/dist/cli/lib/verify-changed-missions.d.ts +3 -0
  276. package/dist/cli/lib/verify-changed-missions.d.ts.map +1 -0
  277. package/dist/cli/lib/verify-changed-missions.js +30 -0
  278. package/dist/cli/lib/verify-changed-missions.js.map +1 -0
  279. package/dist/cli/lib/verify-engine.d.ts +45 -6
  280. package/dist/cli/lib/verify-engine.d.ts.map +1 -1
  281. package/dist/cli/lib/verify-engine.js +46 -11
  282. package/dist/cli/lib/verify-engine.js.map +1 -1
  283. package/dist/cli/lib/{verify-result-payload.d.ts → verify-payload.d.ts} +3 -7
  284. package/dist/cli/lib/verify-payload.d.ts.map +1 -0
  285. package/dist/cli/lib/{verify-result-payload.js → verify-payload.js} +19 -11
  286. package/dist/cli/lib/verify-payload.js.map +1 -0
  287. package/dist/cli/lib/verify-present.d.ts +9 -5
  288. package/dist/cli/lib/verify-present.d.ts.map +1 -1
  289. package/dist/cli/lib/verify-present.js +101 -8
  290. package/dist/cli/lib/verify-present.js.map +1 -1
  291. package/dist/cli/lib/verify-presentation.d.ts +7 -0
  292. package/dist/cli/lib/verify-presentation.d.ts.map +1 -0
  293. package/dist/cli/lib/verify-presentation.js +4 -0
  294. package/dist/cli/lib/verify-presentation.js.map +1 -0
  295. package/dist/cli/lib/verify-remediation.d.ts +30 -3
  296. package/dist/cli/lib/verify-remediation.d.ts.map +1 -1
  297. package/dist/cli/lib/verify-remediation.js +106 -1
  298. package/dist/cli/lib/verify-remediation.js.map +1 -1
  299. package/dist/cli/lib/version.gen.d.ts +1 -1
  300. package/dist/cli/lib/version.gen.js +1 -1
  301. package/dist/cli/program-core.d.ts.map +1 -1
  302. package/dist/cli/program-core.js +15 -44
  303. package/dist/cli/program-core.js.map +1 -1
  304. package/dist/cli/program-mission.d.ts.map +1 -1
  305. package/dist/cli/program-mission.js +38 -1
  306. package/dist/cli/program-mission.js.map +1 -1
  307. package/dist/cli/program-workflow.d.ts.map +1 -1
  308. package/dist/cli/program-workflow.js +75 -32
  309. package/dist/cli/program-workflow.js.map +1 -1
  310. package/package.json +5 -2
  311. package/templates/.cursor/rules/opengantry-gxt-substrate.mdc +1 -0
  312. package/templates/.gitagent/foreman/MANIFEST.json +6 -1
  313. package/templates/.gitagent/teacher/KPI-REPORT.schema.yaml +48 -0
  314. package/templates/.gitagent/teacher/MISSION.schema.yaml +70 -0
  315. package/templates/.gitagent/teacher/WORKER_LOG.template.md +1 -0
  316. package/templates/.githooks/pre-commit +26 -0
  317. package/templates/.githooks/pre-push +5 -0
  318. package/templates/.github/workflows/gxt-validate.yml +11 -0
  319. package/templates/AGENTS.md +4 -0
  320. package/templates/integrations/asset-catalog.json +46 -0
  321. package/templates/integrations/compatibility.json +11 -10
  322. package/templates/integrations/recipes/_footer.md +4 -0
  323. package/dist/cli/lib/agent-error.d.ts +0 -20
  324. package/dist/cli/lib/agent-error.d.ts.map +0 -1
  325. package/dist/cli/lib/agent-error.js.map +0 -1
  326. package/dist/cli/lib/architecture-pointer-discovery.d.ts +0 -7
  327. package/dist/cli/lib/architecture-pointer-discovery.d.ts.map +0 -1
  328. package/dist/cli/lib/architecture-pointer-discovery.js +0 -60
  329. package/dist/cli/lib/architecture-pointer-discovery.js.map +0 -1
  330. package/dist/cli/lib/architecture-pointer-doctor.d.ts +0 -3
  331. package/dist/cli/lib/architecture-pointer-doctor.d.ts.map +0 -1
  332. package/dist/cli/lib/architecture-pointer-doctor.js +0 -115
  333. package/dist/cli/lib/architecture-pointer-doctor.js.map +0 -1
  334. package/dist/cli/lib/architecture-pointer-schema.d.ts +0 -5
  335. package/dist/cli/lib/architecture-pointer-schema.d.ts.map +0 -1
  336. package/dist/cli/lib/architecture-pointer-schema.js +0 -138
  337. package/dist/cli/lib/architecture-pointer-schema.js.map +0 -1
  338. package/dist/cli/lib/architecture-pointer-types.d.ts +0 -24
  339. package/dist/cli/lib/architecture-pointer-types.d.ts.map +0 -1
  340. package/dist/cli/lib/architecture-pointer-types.js +0 -7
  341. package/dist/cli/lib/architecture-pointer-types.js.map +0 -1
  342. package/dist/cli/lib/break-glass-flow.d.ts +0 -18
  343. package/dist/cli/lib/break-glass-flow.d.ts.map +0 -1
  344. package/dist/cli/lib/break-glass-flow.js +0 -29
  345. package/dist/cli/lib/break-glass-flow.js.map +0 -1
  346. package/dist/cli/lib/cli-timeout.d.ts +0 -9
  347. package/dist/cli/lib/cli-timeout.d.ts.map +0 -1
  348. package/dist/cli/lib/cli-timeout.js +0 -17
  349. package/dist/cli/lib/cli-timeout.js.map +0 -1
  350. package/dist/cli/lib/doctor-checks.d.ts +0 -16
  351. package/dist/cli/lib/doctor-checks.d.ts.map +0 -1
  352. package/dist/cli/lib/doctor-checks.js +0 -138
  353. package/dist/cli/lib/doctor-checks.js.map +0 -1
  354. package/dist/cli/lib/doctor-integration-checks.d.ts +0 -5
  355. package/dist/cli/lib/doctor-integration-checks.d.ts.map +0 -1
  356. package/dist/cli/lib/doctor-integration-checks.js +0 -89
  357. package/dist/cli/lib/doctor-integration-checks.js.map +0 -1
  358. package/dist/cli/lib/doctor-orchestration.d.ts +0 -10
  359. package/dist/cli/lib/doctor-orchestration.d.ts.map +0 -1
  360. package/dist/cli/lib/doctor-orchestration.js +0 -32
  361. package/dist/cli/lib/doctor-orchestration.js.map +0 -1
  362. package/dist/cli/lib/doctor-substrate-drift.d.ts +0 -7
  363. package/dist/cli/lib/doctor-substrate-drift.d.ts.map +0 -1
  364. package/dist/cli/lib/doctor-substrate-drift.js +0 -35
  365. package/dist/cli/lib/doctor-substrate-drift.js.map +0 -1
  366. package/dist/cli/lib/git-metrics-missions.d.ts +0 -3
  367. package/dist/cli/lib/git-metrics-missions.d.ts.map +0 -1
  368. package/dist/cli/lib/git-metrics-missions.js +0 -51
  369. package/dist/cli/lib/git-metrics-missions.js.map +0 -1
  370. package/dist/cli/lib/git-metrics-stream.d.ts +0 -24
  371. package/dist/cli/lib/git-metrics-stream.d.ts.map +0 -1
  372. package/dist/cli/lib/git-metrics-stream.js +0 -137
  373. package/dist/cli/lib/git-metrics-stream.js.map +0 -1
  374. package/dist/cli/lib/git-proof-errors.d.ts +0 -3
  375. package/dist/cli/lib/git-proof-errors.d.ts.map +0 -1
  376. package/dist/cli/lib/git-proof-errors.js +0 -7
  377. package/dist/cli/lib/git-proof-errors.js.map +0 -1
  378. package/dist/cli/lib/git-repo.d.ts +0 -26
  379. package/dist/cli/lib/git-repo.d.ts.map +0 -1
  380. package/dist/cli/lib/git-repo.js +0 -53
  381. package/dist/cli/lib/git-repo.js.map +0 -1
  382. package/dist/cli/lib/init-assets.d.ts +0 -8
  383. package/dist/cli/lib/init-assets.d.ts.map +0 -1
  384. package/dist/cli/lib/init-assets.js +0 -3
  385. package/dist/cli/lib/init-assets.js.map +0 -1
  386. package/dist/cli/lib/init-compose-arch-pointer.d.ts.map +0 -1
  387. package/dist/cli/lib/init-compose-arch-pointer.js.map +0 -1
  388. package/dist/cli/lib/init-compose-doc.d.ts +0 -5
  389. package/dist/cli/lib/init-compose-doc.d.ts.map +0 -1
  390. package/dist/cli/lib/init-compose-doc.js +0 -37
  391. package/dist/cli/lib/init-compose-doc.js.map +0 -1
  392. package/dist/cli/lib/legislate-core.d.ts +0 -21
  393. package/dist/cli/lib/legislate-core.d.ts.map +0 -1
  394. package/dist/cli/lib/legislate-core.js.map +0 -1
  395. package/dist/cli/lib/legislate-skill.d.ts +0 -20
  396. package/dist/cli/lib/legislate-skill.d.ts.map +0 -1
  397. package/dist/cli/lib/legislate-skill.js +0 -30
  398. package/dist/cli/lib/legislate-skill.js.map +0 -1
  399. package/dist/cli/lib/mcp-legislation-draft.d.ts +0 -6
  400. package/dist/cli/lib/mcp-legislation-draft.d.ts.map +0 -1
  401. package/dist/cli/lib/mcp-legislation-draft.js +0 -62
  402. package/dist/cli/lib/mcp-legislation-draft.js.map +0 -1
  403. package/dist/cli/lib/mcp-legislation-execute.d.ts +0 -6
  404. package/dist/cli/lib/mcp-legislation-execute.d.ts.map +0 -1
  405. package/dist/cli/lib/mcp-legislation-execute.js +0 -43
  406. package/dist/cli/lib/mcp-legislation-execute.js.map +0 -1
  407. package/dist/cli/lib/mcp-legislation-mission.d.ts +0 -12
  408. package/dist/cli/lib/mcp-legislation-mission.d.ts.map +0 -1
  409. package/dist/cli/lib/mcp-legislation-mission.js +0 -82
  410. package/dist/cli/lib/mcp-legislation-mission.js.map +0 -1
  411. package/dist/cli/lib/mcp-legislation-types.d.ts +0 -68
  412. package/dist/cli/lib/mcp-legislation-types.d.ts.map +0 -1
  413. package/dist/cli/lib/mcp-legislation-types.js +0 -4
  414. package/dist/cli/lib/mcp-legislation-types.js.map +0 -1
  415. package/dist/cli/lib/mcp-legislation.d.ts +0 -5
  416. package/dist/cli/lib/mcp-legislation.d.ts.map +0 -1
  417. package/dist/cli/lib/mcp-legislation.js +0 -4
  418. package/dist/cli/lib/mcp-legislation.js.map +0 -1
  419. package/dist/cli/lib/mcp-orchestration.d.ts +0 -12
  420. package/dist/cli/lib/mcp-orchestration.d.ts.map +0 -1
  421. package/dist/cli/lib/mcp-orchestration.js +0 -54
  422. package/dist/cli/lib/mcp-orchestration.js.map +0 -1
  423. package/dist/cli/lib/mission-emit.d.ts +0 -7
  424. package/dist/cli/lib/mission-emit.d.ts.map +0 -1
  425. package/dist/cli/lib/mission-emit.js +0 -23
  426. package/dist/cli/lib/mission-emit.js.map +0 -1
  427. package/dist/cli/lib/mission-legislative-stub.d.ts +0 -9
  428. package/dist/cli/lib/mission-legislative-stub.d.ts.map +0 -1
  429. package/dist/cli/lib/mission-legislative-stub.js +0 -37
  430. package/dist/cli/lib/mission-legislative-stub.js.map +0 -1
  431. package/dist/cli/lib/mission-markdown.d.ts +0 -6
  432. package/dist/cli/lib/mission-markdown.d.ts.map +0 -1
  433. package/dist/cli/lib/mission-markdown.js.map +0 -1
  434. package/dist/cli/lib/mission-msn.d.ts +0 -10
  435. package/dist/cli/lib/mission-msn.d.ts.map +0 -1
  436. package/dist/cli/lib/mission-msn.js +0 -85
  437. package/dist/cli/lib/mission-msn.js.map +0 -1
  438. package/dist/cli/lib/mission-parser.d.ts +0 -6
  439. package/dist/cli/lib/mission-parser.d.ts.map +0 -1
  440. package/dist/cli/lib/mission-parser.js +0 -29
  441. package/dist/cli/lib/mission-parser.js.map +0 -1
  442. package/dist/cli/lib/mission-path.d.ts +0 -4
  443. package/dist/cli/lib/mission-path.d.ts.map +0 -1
  444. package/dist/cli/lib/mission-path.js +0 -28
  445. package/dist/cli/lib/mission-path.js.map +0 -1
  446. package/dist/cli/lib/mission-resolution.d.ts +0 -14
  447. package/dist/cli/lib/mission-resolution.d.ts.map +0 -1
  448. package/dist/cli/lib/mission-resolution.js +0 -60
  449. package/dist/cli/lib/mission-resolution.js.map +0 -1
  450. package/dist/cli/lib/mission-yaml.d.ts +0 -18
  451. package/dist/cli/lib/mission-yaml.d.ts.map +0 -1
  452. package/dist/cli/lib/mission-yaml.js +0 -101
  453. package/dist/cli/lib/mission-yaml.js.map +0 -1
  454. package/dist/cli/lib/msn.d.ts +0 -2
  455. package/dist/cli/lib/msn.d.ts.map +0 -1
  456. package/dist/cli/lib/msn.js +0 -5
  457. package/dist/cli/lib/msn.js.map +0 -1
  458. package/dist/cli/lib/runtime-exec-orchestrator.d.ts +0 -14
  459. package/dist/cli/lib/runtime-exec-orchestrator.d.ts.map +0 -1
  460. package/dist/cli/lib/runtime-exec-orchestrator.js +0 -132
  461. package/dist/cli/lib/runtime-exec-orchestrator.js.map +0 -1
  462. package/dist/cli/lib/runtime-exec-result.d.ts +0 -21
  463. package/dist/cli/lib/runtime-exec-result.d.ts.map +0 -1
  464. package/dist/cli/lib/runtime-exec-result.js +0 -42
  465. package/dist/cli/lib/runtime-exec-result.js.map +0 -1
  466. package/dist/cli/lib/runtime-exec-worker.d.ts +0 -18
  467. package/dist/cli/lib/runtime-exec-worker.d.ts.map +0 -1
  468. package/dist/cli/lib/runtime-exec-worker.js +0 -49
  469. package/dist/cli/lib/runtime-exec-worker.js.map +0 -1
  470. package/dist/cli/lib/start-state.d.ts +0 -12
  471. package/dist/cli/lib/start-state.d.ts.map +0 -1
  472. package/dist/cli/lib/start-state.js +0 -86
  473. package/dist/cli/lib/start-state.js.map +0 -1
  474. package/dist/cli/lib/trace-failure-kind.d.ts +0 -4
  475. package/dist/cli/lib/trace-failure-kind.d.ts.map +0 -1
  476. package/dist/cli/lib/trace-failure-kind.js +0 -25
  477. package/dist/cli/lib/trace-failure-kind.js.map +0 -1
  478. package/dist/cli/lib/trace-status.d.ts +0 -7
  479. package/dist/cli/lib/trace-status.d.ts.map +0 -1
  480. package/dist/cli/lib/trace-status.js +0 -20
  481. package/dist/cli/lib/trace-status.js.map +0 -1
  482. package/dist/cli/lib/upgrade-eligible-assets.d.ts +0 -5
  483. package/dist/cli/lib/upgrade-eligible-assets.d.ts.map +0 -1
  484. package/dist/cli/lib/upgrade-eligible-assets.js +0 -9
  485. package/dist/cli/lib/upgrade-eligible-assets.js.map +0 -1
  486. package/dist/cli/lib/upgrade-profile.d.ts +0 -4
  487. package/dist/cli/lib/upgrade-profile.d.ts.map +0 -1
  488. package/dist/cli/lib/upgrade-profile.js +0 -27
  489. package/dist/cli/lib/upgrade-profile.js.map +0 -1
  490. package/dist/cli/lib/user-error.d.ts.map +0 -1
  491. package/dist/cli/lib/user-error.js +0 -64
  492. package/dist/cli/lib/user-error.js.map +0 -1
  493. package/dist/cli/lib/verify-failure-presentation.d.ts +0 -30
  494. package/dist/cli/lib/verify-failure-presentation.d.ts.map +0 -1
  495. package/dist/cli/lib/verify-failure-presentation.js +0 -56
  496. package/dist/cli/lib/verify-failure-presentation.js.map +0 -1
  497. package/dist/cli/lib/verify-result-payload.d.ts.map +0 -1
  498. package/dist/cli/lib/verify-result-payload.js.map +0 -1
  499. package/dist/cli/lib/verify-run.d.ts +0 -10
  500. package/dist/cli/lib/verify-run.d.ts.map +0 -1
  501. package/dist/cli/lib/verify-run.js +0 -52
  502. package/dist/cli/lib/verify-run.js.map +0 -1
  503. package/dist/cli/lib/verify-types.d.ts +0 -25
  504. package/dist/cli/lib/verify-types.d.ts.map +0 -1
  505. package/dist/cli/lib/verify-types.js +0 -2
  506. package/dist/cli/lib/verify-types.js.map +0 -1
@@ -1,3 +0,0 @@
1
- import { type GitProofHintContext } from "./fix-hints.js";
2
- export declare function throwGitProofError(code: string, detail: string, ctx?: GitProofHintContext): never;
3
- //# sourceMappingURL=git-proof-errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-proof-errors.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/git-proof-errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,GAAG,GAAE,mBAAwB,GAC5B,KAAK,CAMP"}
@@ -1,7 +0,0 @@
1
- import { CLI_NAME } from "./constants.js";
2
- import { hintGitProof } from "./fix-hints.js";
3
- import { GapmanUserError } from "./user-error.js";
4
- export function throwGitProofError(code, detail, ctx = {}) {
5
- throw new GapmanUserError(code, `${CLI_NAME} verify: git-proof: ${code} — ${detail}`, hintGitProof(code, ctx));
6
- }
7
- //# sourceMappingURL=git-proof-errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-proof-errors.js","sourceRoot":"","sources":["../../../src/cli/lib/git-proof-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAA4B,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,UAAU,kBAAkB,CAChC,IAAY,EACZ,MAAc,EACd,MAA2B,EAAE;IAE7B,MAAM,IAAI,eAAe,CACvB,IAAI,EACJ,GAAG,QAAQ,uBAAuB,IAAI,MAAM,MAAM,EAAE,EACpD,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CACxB,CAAC;AACJ,CAAC"}
@@ -1,26 +0,0 @@
1
- export interface GitRunResult {
2
- ok: boolean;
3
- stdout: string;
4
- stderr: string;
5
- status: number | null;
6
- }
7
- /** Run git in repository root (`git -C root ...args`). */
8
- export declare function gitRun(repoRoot: string, args: string[], maxBuffer?: number): GitRunResult;
9
- export declare function gitRunOk(repoRoot: string, args: string[], maxBuffer?: number): {
10
- ok: boolean;
11
- stdout: string;
12
- };
13
- export declare function gitRevParse(repoRoot: string, ref: string): string | null;
14
- export declare function gitHead(repoRoot: string): string | null;
15
- export declare function gitLogSubjects(repoRoot: string, grep: string, limit: number): string[];
16
- export declare function gitConfigGet(repoRoot: string, key: string): string | null;
17
- export type GitDiffSinceCommitResult = {
18
- ok: true;
19
- paths: string[];
20
- } | {
21
- ok: false;
22
- stderr: string;
23
- };
24
- /** Paths under tmvcRoots that differ between ref and the working tree; empty paths = fresh. */
25
- export declare function gitDiffNameOnlySinceCommit(repoRoot: string, commit: string, tmvcRoots: readonly string[]): GitDiffSinceCommitResult;
26
- //# sourceMappingURL=git-repo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-repo.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/git-repo.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,0DAA0D;AAC1D,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,SAAmB,GAAG,YAAY,CAWnG;AAED,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EAAE,EACd,SAAS,SAAmB,GAC3B;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAGjC;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGxE;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGvD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAItF;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIzE;AAED,MAAM,MAAM,wBAAwB,GAChC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,GAC7B;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAElC,+FAA+F;AAC/F,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,MAAM,EAAE,GAC3B,wBAAwB,CAW1B"}
@@ -1,53 +0,0 @@
1
- import { spawnSync } from "node:child_process";
2
- /** Run git in repository root (`git -C root ...args`). */
3
- export function gitRun(repoRoot, args, maxBuffer = 32 * 1024 * 1024) {
4
- const r = spawnSync("git", ["-C", repoRoot, ...args], {
5
- encoding: "utf8",
6
- maxBuffer,
7
- });
8
- return {
9
- ok: r.status === 0,
10
- stdout: typeof r.stdout === "string" ? r.stdout : "",
11
- stderr: typeof r.stderr === "string" ? r.stderr : "",
12
- status: r.status,
13
- };
14
- }
15
- export function gitRunOk(repoRoot, args, maxBuffer = 32 * 1024 * 1024) {
16
- const r = gitRun(repoRoot, args, maxBuffer);
17
- return { ok: r.ok, stdout: r.stdout };
18
- }
19
- export function gitRevParse(repoRoot, ref) {
20
- const r = gitRunOk(repoRoot, ["rev-parse", "--verify", `${ref}^{commit}`]);
21
- return r.ok && r.stdout.trim() ? r.stdout.trim() : null;
22
- }
23
- export function gitHead(repoRoot) {
24
- const r = gitRunOk(repoRoot, ["rev-parse", "HEAD"]);
25
- return r.ok && r.stdout.trim() ? r.stdout.trim() : null;
26
- }
27
- export function gitLogSubjects(repoRoot, grep, limit) {
28
- const r = gitRunOk(repoRoot, ["log", `--grep=${grep}`, `-${limit}`, "--format=%s"]);
29
- if (!r.ok || !r.stdout.trim())
30
- return [];
31
- return r.stdout.split("\n").filter(Boolean);
32
- }
33
- export function gitConfigGet(repoRoot, key) {
34
- const r = gitRunOk(repoRoot, ["config", "--get", key]);
35
- if (!r.ok || !r.stdout.trim())
36
- return null;
37
- return r.stdout.trim();
38
- }
39
- /** Paths under tmvcRoots that differ between ref and the working tree; empty paths = fresh. */
40
- export function gitDiffNameOnlySinceCommit(repoRoot, commit, tmvcRoots) {
41
- const roots = tmvcRoots.map((r) => r.trim()).filter((r) => r.length > 0);
42
- if (roots.length === 0)
43
- return { ok: true, paths: [] };
44
- const r = gitRun(repoRoot, ["diff", "--name-only", commit, "--", ...roots]);
45
- if (!r.ok)
46
- return { ok: false, stderr: r.stderr.trim() || "git diff failed" };
47
- const paths = r.stdout
48
- .split(/\r?\n/)
49
- .map((line) => line.trim())
50
- .filter(Boolean);
51
- return { ok: true, paths };
52
- }
53
- //# sourceMappingURL=git-repo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-repo.js","sourceRoot":"","sources":["../../../src/cli/lib/git-repo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAS/C,0DAA0D;AAC1D,MAAM,UAAU,MAAM,CAAC,QAAgB,EAAE,IAAc,EAAE,SAAS,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI;IACnF,MAAM,CAAC,GAAG,SAAS,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,C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,EAAE,CAAC;IAEvD,MAAM,CAAC,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5E,IAAI,CAAC,CAAC,CAAC,EAAE;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,iBAAiB,EAAE,CAAC;IAC9E,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM;SACnB,KAAK,CAAC,OAAO,CAAC;SACd,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC"}
@@ -1,8 +0,0 @@
1
- export type InitAssetMode = "scaffold_only" | "managed_strict";
2
- export interface InitAsset {
3
- targetPath: string;
4
- mode: InitAssetMode;
5
- executable?: boolean;
6
- }
7
- /** @deprecated Use INIT_ASSET_CATALOG via resolveAssetsFromProfile — types only retained for catalog specs. */
8
- //# sourceMappingURL=init-assets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-assets.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/init-assets.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,+GAA+G"}
@@ -1,3 +0,0 @@
1
- export {};
2
- /** @deprecated Use INIT_ASSET_CATALOG via resolveAssetsFromProfile — types only retained for catalog specs. */
3
- //# sourceMappingURL=init-assets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-assets.js","sourceRoot":"","sources":["../../../src/cli/lib/init-assets.ts"],"names":[],"mappings":";AAQA,+GAA+G"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-compose-arch-pointer.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/init-compose-arch-pointer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAK7E,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,sBAAsB,GAAG,MAAM,CAWhF;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,CAoDpF;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAEjF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-compose-arch-pointer.js","sourceRoot":"","sources":["../../../src/cli/lib/init-compose-arch-pointer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,gBAAgB,CAAC;AAGlE,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AACrD,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AAEvD,MAAM,UAAU,2BAA2B,CAAC,IAA4B;IACtE,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,OAAO,qBAAqB,CAAC;QAC/B,KAAK,WAAW;YACd,OAAO,0BAA0B,CAAC;QACpC,KAAK,UAAU;YACb,OAAO,kCAAkC,CAAC;QAC5C;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAAoB;IAC7D,MAAM,IAAI,GAAG,OAAO,CAAC,kBAAkB,CAAC;IACxC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,oBAAoB,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAE5F,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;QACrB,OAAO;YACL,cAAc,EAAE,OAAO;YACvB,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,EAAE;YACZ,SAAS,EACP,mOAAmO;YACrO,SAAS,EAAE,EAAE,KAAK,EAAE,gCAAgC,EAAE;SACvD,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO;YACL,cAAc,EAAE,OAAO;YACvB,IAAI,EAAE,MAAM;YACZ,QAAQ;YACR,SAAS,EACP,2KAA2K;YAC7K,SAAS,EAAE,EAAE,KAAK,EAAE,gCAAgC,EAAE;SACvD,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,KAAK,WAAW,EAAE,CAAC;QACzB,OAAO;YACL,cAAc,EAAE,OAAO;YACvB,IAAI,EAAE,WAAW;YACjB,QAAQ;YACR,SAAS,EACP,qJAAqJ;YACvJ,SAAS,EAAE,EAAE,KAAK,EAAE,gCAAgC,EAAE;SACvD,CAAC;IACJ,CAAC;IAED,OAAO;QACL,cAAc,EAAE,OAAO;QACvB,IAAI,EAAE,UAAU;QAChB,QAAQ;QACR,SAAS,EACP,6LAA6L;QAC/L,SAAS,EAAE,EAAE,KAAK,EAAE,gCAAgC,EAAE;QACtD,MAAM,EAAE,OAAO,CAAC,0BAA0B;YACxC,CAAC,CAAC;gBACE,QAAQ,EAAE,IAAI;gBACd,eAAe,EAAE,OAAO,CAAC,0BAA0B;gBACnD,SAAS,EAAE,OAAO,CAAC,oBAAoB;aACxC;YACH,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,OAA4B;IACvE,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;AACjD,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type IntegrationCompatManifest } from "./integration-compat.js";
2
- import type { InitProfile } from "./init-profile.js";
3
- export declare function composeIntegrationsDoc(profile: InitProfile, templatesRoot: string, compat?: IntegrationCompatManifest): string;
4
- export declare function recipeFilesExist(templatesRoot: string, compat?: IntegrationCompatManifest): void;
5
- //# sourceMappingURL=init-compose-doc.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-compose-doc.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/init-compose-doc.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQrD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,WAAW,EACpB,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,yBAAyB,GACjC,MAAM,CAaR;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAWhG"}
@@ -1,37 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { INTEGRATION_IDE_KEYS, loadIntegrationCompat, } from "./integration-compat.js";
4
- function readRecipe(templatesRoot, recipeFile) {
5
- const p = path.join(templatesRoot, "integrations/recipes", recipeFile);
6
- if (!fs.existsSync(p))
7
- throw new Error(`init compose: missing recipe ${recipeFile}`);
8
- return fs.readFileSync(p, "utf8").trimEnd();
9
- }
10
- export function composeIntegrationsDoc(profile, templatesRoot, compat) {
11
- const manifest = compat ?? loadIntegrationCompat(templatesRoot);
12
- const parts = [];
13
- parts.push(readRecipe(templatesRoot, "_preamble.md"));
14
- for (const key of INTEGRATION_IDE_KEYS) {
15
- if (!profile.ides.includes(key))
16
- continue;
17
- const entry = manifest.integrations[key];
18
- parts.push(readRecipe(templatesRoot, entry.recipe_file));
19
- }
20
- parts.push(readRecipe(templatesRoot, "_footer.md"));
21
- return `${parts.join("\n\n")}\n`;
22
- }
23
- export function recipeFilesExist(templatesRoot, compat) {
24
- const manifest = compat ?? loadIntegrationCompat(templatesRoot);
25
- for (const key of INTEGRATION_IDE_KEYS) {
26
- const recipe = manifest.integrations[key].recipe_file;
27
- const p = path.join(templatesRoot, "integrations/recipes", recipe);
28
- if (!fs.existsSync(p))
29
- throw new Error(`init compose: missing recipe file for ${key}: ${recipe}`);
30
- }
31
- for (const fixed of ["_preamble.md", "_footer.md"]) {
32
- const p = path.join(templatesRoot, "integrations/recipes", fixed);
33
- if (!fs.existsSync(p))
34
- throw new Error(`init compose: missing ${fixed}`);
35
- }
36
- }
37
- //# sourceMappingURL=init-compose-doc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init-compose-doc.js","sourceRoot":"","sources":["../../../src/cli/lib/init-compose-doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,yBAAyB,CAAC;AAGjC,SAAS,UAAU,CAAC,aAAqB,EAAE,UAAkB;IAC3D,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,sBAAsB,EAAE,UAAU,CAAC,CAAC;IACvE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,UAAU,EAAE,CAAC,CAAC;IACrF,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,OAAoB,EACpB,aAAqB,EACrB,MAAkC;IAElC,MAAM,QAAQ,GAAG,MAAM,IAAI,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAChE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IAEtD,KAAK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AC"}
@@ -1,21 +0,0 @@
1
- export interface LegislateOptions {
2
- intent: string;
3
- msn?: string;
4
- skillKey?: string;
5
- out?: string;
6
- allowDuplicate?: boolean;
7
- gateCommand?: string;
8
- gateSuccessSubstring?: string;
9
- /** When true, skip stdout info messages (MCP / structured JSON callers). */
10
- silent?: boolean;
11
- }
12
- export type LegislateResult = {
13
- ok: true;
14
- missionAbs: string;
15
- missionRel: string;
16
- } | {
17
- ok: false;
18
- exitCode: 2;
19
- };
20
- export declare function runLegislate(options: LegislateOptions): LegislateResult;
21
- //# sourceMappingURL=legislate-core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legislate-core.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/legislate-core.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,eAAe,GACvB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,CAAC,CAAA;CAAE,CAAC;AAwI/B,wBAAgB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAsCvE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"legislate-core.js","sourceRoot":"","sources":["../../../src/cli/lib/legislate-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI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AE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AACxD,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { Manifest } from "./types.js";
2
- import type { TriageResult } from "./types.js";
3
- export declare function isTriageEscalated(triage: TriageResult): boolean;
4
- export type ResolveSkillKeyResult = {
5
- ok: true;
6
- skillKey: string;
7
- triage: TriageResult;
8
- } | {
9
- ok: false;
10
- triage: TriageResult;
11
- reason: string;
12
- kind: "unknown_skill" | "escalated";
13
- };
14
- export declare function resolveSkillKeyForLegislation(opts: {
15
- root: string;
16
- manifest: Manifest;
17
- intent: string;
18
- skillKey?: string;
19
- }): ResolveSkillKeyResult;
20
- //# sourceMappingURL=legislate-skill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legislate-skill.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/legislate-skill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAE/D;AAED,MAAM,MAAM,qBAAqB,GAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,GACpD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,eAAe,GAAG,WAAW,CAAA;CAAE,CAAC;AAE7F,wBAAgB,6BAA6B,CAAC,IAAI,EAAE;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,qBAAqB,CAyBxB"}
@@ -1,30 +0,0 @@
1
- import { triageIntent } from "./triage-logic.js";
2
- export function isTriageEscalated(triage) {
3
- return triage.action !== "DIRECT_EXECUTION" || triage.skill_key === "NONE";
4
- }
5
- export function resolveSkillKeyForLegislation(opts) {
6
- const explicit = opts.skillKey?.trim();
7
- if (explicit) {
8
- if (!opts.manifest.skills[explicit]) {
9
- return {
10
- ok: false,
11
- triage: triageIntent(opts.root, opts.intent, opts.manifest),
12
- reason: `unknown skill_key "${explicit}" (manifest skills: ${Object.keys(opts.manifest.skills).join(", ")})`,
13
- kind: "unknown_skill",
14
- };
15
- }
16
- const triage = triageIntent(opts.root, opts.intent, opts.manifest);
17
- return { ok: true, skillKey: explicit, triage };
18
- }
19
- const triage = triageIntent(opts.root, opts.intent, opts.manifest);
20
- if (isTriageEscalated(triage)) {
21
- return {
22
- ok: false,
23
- triage,
24
- reason: `triage escalation — ${triage.reason}. Pass --skill-key <manifest skill> after Teacher assigns scope.`,
25
- kind: "escalated",
26
- };
27
- }
28
- return { ok: true, skillKey: triage.skill_key, triage };
29
- }
30
- //# sourceMappingURL=legislate-skill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legislate-skill.js","sourceRoot":"","sources":["../../../src/cli/lib/legislate-skill.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,UAAU,iBAAiB,CAAC,MAAoB;IACpD,OAAO,MAAM,CAAC,MAAM,KAAK,kBAAkB,IAAI,MAAM,CAAC,SAAS,KAAK,MAAM,CAAC;AAC7E,CAAC;AAMD,MAAM,UAAU,6BAA6B,CAAC,IAK7C;IACC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACpC,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;gBAC3D,MAAM,EAAE,sBAAsB,QAAQ,uBAAuB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;gBAC5G,IAAI,EAAE,eAAe;aACtB,CAAC;QACJ,CAAC;QACD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAClD,CAAC;IAED,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnE,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9B,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM;YACN,MAAM,EAAE,uBAAuB,MAAM,CAAC,MAAM,kEAAkE;YAC9G,IAAI,EAAE,WAAW;SAClB,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;AAC1D,CAAC"}
@@ -1,6 +0,0 @@
1
- import { type DraftLegislationInput, type DraftLegislationResult, type McpErrorBody } from "./mcp-legislation-types.js";
2
- export declare function handleDraftLegislation(input: DraftLegislationInput): DraftLegislationResult | {
3
- status: "error";
4
- error: McpErrorBody;
5
- };
6
- //# sourceMappingURL=mcp-legislation-draft.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-draft.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-draft.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAElB,MAAM,4BAA4B,CAAC;AA2CpC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,qBAAqB,GAC3B,sBAAsB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CA6BnE"}
@@ -1,62 +0,0 @@
1
- import { MSN_ID_PATTERN } from "./constants.js";
2
- import { createDraftToken } from "./draft-token.js";
3
- import { mcpError, } from "./mcp-legislation-types.js";
4
- import { loadWorkspace } from "./workspace.js";
5
- function buildDraftChatMessage(input, manifestSkillDesc) {
6
- const lines = [
7
- "## Proposed GXT mission (draft — not yet written)",
8
- "",
9
- `- **Title:** ${input.title}`,
10
- `- **MSN:** ${input.msn_id}`,
11
- `- **Skill:** ${input.skill_key}`,
12
- `- **Gate:** \`${input.gate_command}\``,
13
- ];
14
- if (input.gate_success_substring?.trim()) {
15
- lines.push(`- **Gate success substring:** \`${input.gate_success_substring.trim()}\``);
16
- }
17
- if (manifestSkillDesc) {
18
- lines.push(`- **Skill scope:** ${manifestSkillDesc}`);
19
- }
20
- lines.push("", "Reply with clear approval (e.g. **yes**, **approve**, **looks good**) to execute legislation, or **deny** / **no** to cancel.", "", "_No mission file will be written until you approve._");
21
- return lines.join("\n");
22
- }
23
- function validateDraftInput(input) {
24
- if (!input.title?.trim()) {
25
- return { code: "VALIDATION_ERROR", message: "title is required", retryable: true };
26
- }
27
- if (!MSN_ID_PATTERN.test(input.msn_id?.trim() ?? "")) {
28
- return { code: "VALIDATION_ERROR", message: 'msn_id must match "MSN-0007"', retryable: true };
29
- }
30
- if (!input.skill_key?.trim()) {
31
- return { code: "VALIDATION_ERROR", message: "skill_key is required", retryable: true };
32
- }
33
- if (!input.gate_command?.trim()) {
34
- return { code: "VALIDATION_ERROR", message: "gate_command is required", retryable: true };
35
- }
36
- return null;
37
- }
38
- export function handleDraftLegislation(input) {
39
- const validation = validateDraftInput(input);
40
- if (validation)
41
- return mcpError(validation.code, validation.message, validation.retryable);
42
- const { root, manifest } = loadWorkspace();
43
- const skillKey = input.skill_key.trim();
44
- if (!manifest.skills[skillKey]) {
45
- return mcpError("UNKNOWN_SKILL", `unknown skill_key "${skillKey}" (manifest skills: ${Object.keys(manifest.skills).join(", ")})`, true);
46
- }
47
- const token = createDraftToken(root, {
48
- title: input.title,
49
- msn_id: input.msn_id.trim(),
50
- skill_key: skillKey,
51
- gate_command: input.gate_command,
52
- gate_success_substring: input.gate_success_substring,
53
- });
54
- return {
55
- status: "awaiting_human_approval",
56
- draft_token: token.draft_token,
57
- chat_message_to_user: buildDraftChatMessage(input, manifest.skills[skillKey]?.desc),
58
- expires_at: token.expires_at,
59
- requires_teacher_commit: true,
60
- };
61
- }
62
- //# sourceMappingURL=mcp-legislation-draft.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-draft.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-draft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAIL,QAAQ,GACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,SAAS,qBAAqB,CAAC,KAA4B,EAAE,iBAA0B;IACrF,MAAM,KAAK,GAAG;QACZ,mDAAmD;QACnD,EAAE;QACF,gBAAgB,KAAK,CAAC,KAAK,EAAE;QAC7B,cAAc,KAAK,CAAC,MAAM,EAAE;QAC5B,gBAAgB,KAAK,CAAC,SAAS,EAAE;QACjC,iBAAiB,KAAK,CAAC,YAAY,IAAI;KACxC,CAAC;IACF,IAAI,KAAK,CAAC,sBAAsB,EAAE,IAAI,EAAE,EAAE,CAAC;QACzC,KAAK,CAAC,IAAI,CAAC,mCAAmC,KAAK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CAAC,CAAC;IAC7C,IAAI,UAAU;QAAE,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAE3F,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACxC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,OAAO,QAAQ,CACb,eAAe,EACf,sBAAsB,QAAQ,uBAAuB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAC/F,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,EAAE;QACnC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE;QAC3B,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;KACrD,CAAC,CAAC;IAEH,OAAO;QACL,MAAM,EAAE,yBAAyB;QACjC,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,oBAAoB,EAAE,qBAAqB,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;QACnF,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,uBAAuB,EAAE,IAAI;KAC9B,CAAC;AACJ,CAAC"}
@@ -1,6 +0,0 @@
1
- import { type ExecuteLegislationResult, type McpErrorBody } from "./mcp-legislation-types.js";
2
- export declare function handleExecuteLegislation(draftToken: string): ExecuteLegislationResult | {
3
- status: "error";
4
- error: McpErrorBody;
5
- };
6
- //# sourceMappingURL=mcp-legislation-execute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-execute.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-execute.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAElB,MAAM,4BAA4B,CAAC;AAGpC,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,wBAAwB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAwCrE"}
@@ -1,43 +0,0 @@
1
- import { formatRepoRelative } from "./cli-io.js";
2
- import { DraftTokenError, verifyDraftToken } from "./draft-token.js";
3
- import { runLegislate } from "./legislate-core.js";
4
- import { mcpError, } from "./mcp-legislation-types.js";
5
- import { loadWorkspace } from "./workspace.js";
6
- export function handleExecuteLegislation(draftToken) {
7
- const { root } = loadWorkspace();
8
- let payload;
9
- try {
10
- payload = verifyDraftToken(root, draftToken, { consume: true });
11
- }
12
- catch (err) {
13
- if (err instanceof DraftTokenError) {
14
- return mcpError(err.code, err.message, err.retryable);
15
- }
16
- throw err;
17
- }
18
- const legislateOpts = {
19
- intent: payload.title,
20
- msn: payload.msn_id,
21
- skillKey: payload.skill_key,
22
- gateCommand: payload.gate_command,
23
- gateSuccessSubstring: payload.gate_success_substring,
24
- };
25
- const result = runLegislate(legislateOpts);
26
- if (!result.ok) {
27
- return mcpError("LEGISLATE_FAILED", "gapman legislate failed; check skill_key, msn, or output path", true);
28
- }
29
- const missionRel = formatRepoRelative(root, result.missionAbs);
30
- const commitMessage = `[${payload.msn_id}] Legislate ${payload.title.replace(/"/g, '\\"')}`;
31
- const suggestedHumanAction = `git add ${missionRel} && git commit -m "${commitMessage}"`;
32
- return {
33
- status: "pending_signature",
34
- msn_id: payload.msn_id,
35
- mission_file_path: missionRel,
36
- suggested_human_action: suggestedHumanAction,
37
- commit_message: commitMessage,
38
- commit_target: missionRel,
39
- requires_teacher_commit: true,
40
- next_tool: "gxt_check_signature",
41
- };
42
- }
43
- //# sourceMappingURL=mcp-legislation-execute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-execute.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-execute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAyB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAGL,QAAQ,GACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;IAEjC,IAAI,OAAO,CAAC;IACZ,IAAI,CAAC;QACH,OAAO,GAAG,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,YAAY,eAAe,EAAE,CAAC;YACnC,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;QACxD,CAAC;QACD,MAAM,GAAG,CAAC;IACZ,CAAC;IAED,MAAM,aAAa,GAAqB;QACtC,MAAM,EAAE,OAAO,CAAC,KAAK;QACrB,GAAG,EAAE,OAAO,CAAC,MAAM;QACnB,QAAQ,EAAE,OAAO,CAAC,SAAS;QAC3B,WAAW,EAAE,OAAO,CAAC,YAAY;QACjC,oBAAoB,EAAE,OAAO,CAAC,sBAAsB;KACrD,CAAC;IAEF,MAAM,MAAM,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;IAC3C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,QAAQ,CAAC,kBAAkB,EAAE,+DAA+D,EAAE,IAAI,CAAC,CAAC;IAC7G,CAAC;IAED,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,IAAI,OAAO,CAAC,MAAM,eAAe,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5F,MAAM,oBAAoB,GAAG,WAAW,UAAU,sBAAsB,aAAa,GAAG,CAAC;IAEzF,OAAO;QACL,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,iBAAiB,EAAE,UAAU;QAC7B,sBAAsB,EAAE,oBAAoB;QAC5C,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;QACzB,uBAAuB,EAAE,IAAI;QAC7B,SAAS,EAAE,qBAAqB;KACjC,CAAC;AACJ,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type CheckSignatureResult, type LastErrorResult, type McpErrorBody, type PinMissionResult, type ResolveMissionResult } from "./mcp-legislation-types.js";
2
- export declare function handleCheckSignature(missionFilePath: string): CheckSignatureResult | {
3
- status: "error";
4
- error: McpErrorBody;
5
- };
6
- export declare function handlePinMission(missionFilePath: string): PinMissionResult | {
7
- status: "error";
8
- error: McpErrorBody;
9
- };
10
- export declare function handleResolveMission(explicit?: string): ResolveMissionResult;
11
- export declare function handleLastError(): LastErrorResult;
12
- //# sourceMappingURL=mcp-legislation-mission.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-mission.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-mission.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAE1B,MAAM,4BAA4B,CAAC;AAGpC,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,MAAM,GACtB,oBAAoB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CA8BjE;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,gBAAgB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAcrH;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAgB5E;AAED,wBAAgB,eAAe,IAAI,eAAe,CAYjD"}
@@ -1,82 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { formatRepoRelative } from "./cli-io.js";
4
- import { assertTeacherMissionProof } from "./git-proof.js";
5
- import { pinMissionFile, resolveMissionFilePath, } from "./mission-path.js";
6
- import { resolvePinnedMission } from "./mission-resolution.js";
7
- import { GapmanUserError } from "./user-error.js";
8
- import { mcpError, } from "./mcp-legislation-types.js";
9
- import { loadWorkspace } from "./workspace.js";
10
- export function handleCheckSignature(missionFilePath) {
11
- const { root } = loadWorkspace();
12
- const missionAbs = resolveMissionFilePath(root, missionFilePath);
13
- if (!fs.existsSync(missionAbs)) {
14
- return mcpError("MISSION_NOT_FOUND", `mission file not found: ${missionFilePath}`, true);
15
- }
16
- try {
17
- const msnId = assertTeacherMissionProof(root, missionAbs);
18
- const rel = formatRepoRelative(root, missionAbs);
19
- return {
20
- status: "signature_valid",
21
- msn_id: msnId,
22
- mission_file_path: rel,
23
- message: `Teacher signature valid for ${msnId}. You may pin the mission and begin worker execution.`,
24
- next_tools: ["gxt_pin_mission", "gxt_runtime_env"],
25
- };
26
- }
27
- catch (err) {
28
- if (err instanceof GapmanUserError) {
29
- return {
30
- status: "signature_missing",
31
- msn_id: "unknown",
32
- mission_file_path: formatRepoRelative(root, missionAbs),
33
- message: err.message,
34
- next_tools: [],
35
- };
36
- }
37
- throw err;
38
- }
39
- }
40
- export function handlePinMission(missionFilePath) {
41
- const { root } = loadWorkspace();
42
- const missionAbs = resolveMissionFilePath(root, missionFilePath);
43
- if (!fs.existsSync(missionAbs)) {
44
- return mcpError("MISSION_NOT_FOUND", `mission file not found: ${missionFilePath}`, true);
45
- }
46
- const rel = pinMissionFile(root, missionAbs);
47
- return {
48
- status: "pinned",
49
- mission_file_path: rel,
50
- message: `Pinned active mission: ${rel}`,
51
- };
52
- }
53
- export function handleResolveMission(explicit) {
54
- const { root } = loadWorkspace();
55
- const resolved = resolvePinnedMission(root, {
56
- explicit,
57
- profile: "full",
58
- });
59
- if (resolved) {
60
- return { status: "resolved", mission_file_path: resolved };
61
- }
62
- return {
63
- status: "unpinned",
64
- mission_file_path: null,
65
- message: "No active mission pinned. Run Mission Architect / gxt_draft_legislation first.",
66
- };
67
- }
68
- export function handleLastError() {
69
- const { root } = loadWorkspace();
70
- const errPath = path.join(root, ".gitagent", "history", ".ignored-last-error.json");
71
- if (!fs.existsSync(errPath)) {
72
- return { status: "empty", message: "No last error recorded." };
73
- }
74
- try {
75
- const payload = JSON.parse(fs.readFileSync(errPath, "utf8"));
76
- return { status: "found", payload };
77
- }
78
- catch {
79
- return { status: "error", message: "Failed to parse last error file." };
80
- }
81
- }
82
- //# sourceMappingURL=mcp-legislation-mission.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-mission.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-mission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,cAAc,EACd,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB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D,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAA4B,CAAC;QACxF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC1E,CAAC;AACH,CAAC"}
@@ -1,68 +0,0 @@
1
- export type McpToolStatus = "awaiting_human_approval" | "pending_signature" | "signature_valid" | "signature_missing" | "error";
2
- export interface McpErrorBody {
3
- code: string;
4
- message: string;
5
- retryable: boolean;
6
- }
7
- export interface DraftLegislationInput {
8
- title: string;
9
- msn_id: string;
10
- skill_key: string;
11
- gate_command: string;
12
- gate_success_substring?: string;
13
- }
14
- export interface DraftLegislationResult {
15
- status: "awaiting_human_approval";
16
- draft_token: string;
17
- chat_message_to_user: string;
18
- expires_at: string;
19
- requires_teacher_commit: true;
20
- }
21
- export interface ExecuteLegislationResult {
22
- status: "pending_signature";
23
- msn_id: string;
24
- mission_file_path: string;
25
- suggested_human_action: string;
26
- commit_message: string;
27
- commit_target: string;
28
- requires_teacher_commit: true;
29
- next_tool: "gxt_check_signature";
30
- }
31
- export interface CheckSignatureResult {
32
- status: "signature_valid" | "signature_missing";
33
- msn_id: string;
34
- mission_file_path: string;
35
- message: string;
36
- next_tools?: string[];
37
- }
38
- export type PinMissionResult = {
39
- status: "pinned";
40
- mission_file_path: string;
41
- message: string;
42
- } | {
43
- status: "error";
44
- error: McpErrorBody;
45
- };
46
- export type ResolveMissionResult = {
47
- status: "resolved";
48
- mission_file_path: string;
49
- } | {
50
- status: "unpinned";
51
- mission_file_path: null;
52
- message: string;
53
- };
54
- export type LastErrorResult = {
55
- status: "empty";
56
- message: string;
57
- } | {
58
- status: "found";
59
- payload: Record<string, unknown>;
60
- } | {
61
- status: "error";
62
- message: string;
63
- };
64
- export declare function mcpError(code: string, message: string, retryable: boolean): {
65
- status: "error";
66
- error: McpErrorBody;
67
- };
68
- //# sourceMappingURL=mcp-legislation-types.d.ts.map