@jeger-ai/opengantry 2.0.0 → 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 (474) hide show
  1. package/README.md +20 -11
  2. package/dist/cli/commands/context-request.d.ts +11 -0
  3. package/dist/cli/commands/context-request.d.ts.map +1 -0
  4. package/dist/cli/commands/context-request.js +74 -0
  5. package/dist/cli/commands/context-request.js.map +1 -0
  6. package/dist/cli/commands/doctor.d.ts +1 -1
  7. package/dist/cli/commands/doctor.d.ts.map +1 -1
  8. package/dist/cli/commands/doctor.js +1 -2
  9. package/dist/cli/commands/doctor.js.map +1 -1
  10. package/dist/cli/commands/init.d.ts.map +1 -1
  11. package/dist/cli/commands/init.js +6 -2
  12. package/dist/cli/commands/init.js.map +1 -1
  13. package/dist/cli/commands/legislate.d.ts +1 -1
  14. package/dist/cli/commands/legislate.d.ts.map +1 -1
  15. package/dist/cli/commands/legislate.js +1 -1
  16. package/dist/cli/commands/legislate.js.map +1 -1
  17. package/dist/cli/commands/mission.js +3 -3
  18. package/dist/cli/commands/mission.js.map +1 -1
  19. package/dist/cli/commands/onboarding.d.ts.map +1 -1
  20. package/dist/cli/commands/onboarding.js +4 -6
  21. package/dist/cli/commands/onboarding.js.map +1 -1
  22. package/dist/cli/commands/perimeter.js +1 -1
  23. package/dist/cli/commands/perimeter.js.map +1 -1
  24. package/dist/cli/commands/runtime.js +1 -1
  25. package/dist/cli/commands/runtime.js.map +1 -1
  26. package/dist/cli/commands/scan.js +1 -1
  27. package/dist/cli/commands/scan.js.map +1 -1
  28. package/dist/cli/commands/tmvc-guard.d.ts +7 -0
  29. package/dist/cli/commands/tmvc-guard.d.ts.map +1 -0
  30. package/dist/cli/commands/tmvc-guard.js +63 -0
  31. package/dist/cli/commands/tmvc-guard.js.map +1 -0
  32. package/dist/cli/commands/triage.js +2 -2
  33. package/dist/cli/commands/triage.js.map +1 -1
  34. package/dist/cli/commands/upgrade.js +1 -1
  35. package/dist/cli/commands/upgrade.js.map +1 -1
  36. package/dist/cli/commands/verify.d.ts +2 -2
  37. package/dist/cli/commands/verify.d.ts.map +1 -1
  38. package/dist/cli/commands/verify.js +7 -7
  39. package/dist/cli/commands/verify.js.map +1 -1
  40. package/dist/cli/index.js +1 -1
  41. package/dist/cli/index.js.map +1 -1
  42. package/dist/cli/lib/architecture-pointer.d.ts +33 -5
  43. package/dist/cli/lib/architecture-pointer.d.ts.map +1 -1
  44. package/dist/cli/lib/architecture-pointer.js +304 -5
  45. package/dist/cli/lib/architecture-pointer.js.map +1 -1
  46. package/dist/cli/lib/ast-discovery.d.ts.map +1 -1
  47. package/dist/cli/lib/ast-discovery.js +7 -16
  48. package/dist/cli/lib/ast-discovery.js.map +1 -1
  49. package/dist/cli/lib/banned-import-violation.d.ts +8 -0
  50. package/dist/cli/lib/banned-import-violation.d.ts.map +1 -0
  51. package/dist/cli/lib/banned-import-violation.js +15 -0
  52. package/dist/cli/lib/banned-import-violation.js.map +1 -0
  53. package/dist/cli/lib/break-glass.d.ts +17 -0
  54. package/dist/cli/lib/break-glass.d.ts.map +1 -1
  55. package/dist/cli/lib/break-glass.js +28 -1
  56. package/dist/cli/lib/break-glass.js.map +1 -1
  57. package/dist/cli/lib/cli-io.d.ts +8 -0
  58. package/dist/cli/lib/cli-io.d.ts.map +1 -1
  59. package/dist/cli/lib/cli-io.js +16 -0
  60. package/dist/cli/lib/cli-io.js.map +1 -1
  61. package/dist/cli/lib/command-reporter.d.ts +3 -3
  62. package/dist/cli/lib/command-reporter.d.ts.map +1 -1
  63. package/dist/cli/lib/constants.d.ts +2 -0
  64. package/dist/cli/lib/constants.d.ts.map +1 -1
  65. package/dist/cli/lib/constants.js +2 -0
  66. package/dist/cli/lib/constants.js.map +1 -1
  67. package/dist/cli/lib/context-request.d.ts +22 -0
  68. package/dist/cli/lib/context-request.d.ts.map +1 -0
  69. package/dist/cli/lib/context-request.js +45 -0
  70. package/dist/cli/lib/context-request.js.map +1 -0
  71. package/dist/cli/lib/dirty-missions.js +1 -1
  72. package/dist/cli/lib/dirty-missions.js.map +1 -1
  73. package/dist/cli/lib/doctor.d.ts +31 -0
  74. package/dist/cli/lib/doctor.d.ts.map +1 -0
  75. package/dist/cli/lib/doctor.js +282 -0
  76. package/dist/cli/lib/doctor.js.map +1 -0
  77. package/dist/cli/lib/draft-token.js +1 -1
  78. package/dist/cli/lib/draft-token.js.map +1 -1
  79. package/dist/cli/lib/{user-error.d.ts → errors.d.ts} +20 -1
  80. package/dist/cli/lib/errors.d.ts.map +1 -0
  81. package/dist/cli/lib/{agent-error.js → errors.js} +64 -1
  82. package/dist/cli/lib/errors.js.map +1 -0
  83. package/dist/cli/lib/fix-hints.d.ts +1 -1
  84. package/dist/cli/lib/fix-hints.d.ts.map +1 -1
  85. package/dist/cli/lib/gate-work-dir.d.ts +6 -0
  86. package/dist/cli/lib/gate-work-dir.d.ts.map +1 -0
  87. package/dist/cli/lib/gate-work-dir.js +6 -0
  88. package/dist/cli/lib/gate-work-dir.js.map +1 -0
  89. package/dist/cli/lib/git-metrics.d.ts +34 -0
  90. package/dist/cli/lib/git-metrics.d.ts.map +1 -1
  91. package/dist/cli/lib/git-metrics.js +199 -3
  92. package/dist/cli/lib/git-metrics.js.map +1 -1
  93. package/dist/cli/lib/git-proof.d.ts +4 -0
  94. package/dist/cli/lib/git-proof.d.ts.map +1 -1
  95. package/dist/cli/lib/git-proof.js +22 -8
  96. package/dist/cli/lib/git-proof.js.map +1 -1
  97. package/dist/cli/lib/git-staged.d.ts +20 -0
  98. package/dist/cli/lib/git-staged.d.ts.map +1 -0
  99. package/dist/cli/lib/git-staged.js +37 -0
  100. package/dist/cli/lib/git-staged.js.map +1 -0
  101. package/dist/cli/lib/git.d.ts +25 -0
  102. package/dist/cli/lib/git.d.ts.map +1 -1
  103. package/dist/cli/lib/git.js +52 -0
  104. package/dist/cli/lib/git.js.map +1 -1
  105. package/dist/cli/lib/gxt-error-codes.d.ts +4 -0
  106. package/dist/cli/lib/gxt-error-codes.d.ts.map +1 -1
  107. package/dist/cli/lib/gxt-error-codes.js +4 -0
  108. package/dist/cli/lib/gxt-error-codes.js.map +1 -1
  109. package/dist/cli/lib/import-scanner.d.ts +14 -0
  110. package/dist/cli/lib/import-scanner.d.ts.map +1 -0
  111. package/dist/cli/lib/import-scanner.js +67 -0
  112. package/dist/cli/lib/import-scanner.js.map +1 -0
  113. package/dist/cli/lib/{init-compose-arch-pointer.d.ts → init-compose.d.ts} +4 -1
  114. package/dist/cli/lib/init-compose.d.ts.map +1 -0
  115. package/dist/cli/lib/{init-compose-arch-pointer.js → init-compose.js} +37 -1
  116. package/dist/cli/lib/init-compose.js.map +1 -0
  117. package/dist/cli/lib/init-interactive.js +2 -2
  118. package/dist/cli/lib/init-interactive.js.map +1 -1
  119. package/dist/cli/lib/init-tutorial.d.ts.map +1 -1
  120. package/dist/cli/lib/init-tutorial.js +10 -10
  121. package/dist/cli/lib/init-tutorial.js.map +1 -1
  122. package/dist/cli/lib/kpi-engine.d.ts +34 -0
  123. package/dist/cli/lib/kpi-engine.d.ts.map +1 -0
  124. package/dist/cli/lib/kpi-engine.js +281 -0
  125. package/dist/cli/lib/kpi-engine.js.map +1 -0
  126. package/dist/cli/lib/kpi-report-stale.js +2 -2
  127. package/dist/cli/lib/kpi-report-stale.js.map +1 -1
  128. package/dist/cli/lib/kpi-scan.d.ts +2 -0
  129. package/dist/cli/lib/kpi-scan.d.ts.map +1 -1
  130. package/dist/cli/lib/kpi-scan.js +8 -4
  131. package/dist/cli/lib/kpi-scan.js.map +1 -1
  132. package/dist/cli/lib/legislate.d.ts +39 -0
  133. package/dist/cli/lib/legislate.d.ts.map +1 -0
  134. package/dist/cli/lib/{legislate-core.js → legislate.js} +31 -6
  135. package/dist/cli/lib/legislate.js.map +1 -0
  136. package/dist/cli/lib/mcp-governance.d.ts +124 -0
  137. package/dist/cli/lib/mcp-governance.d.ts.map +1 -0
  138. package/dist/cli/lib/mcp-governance.js +231 -0
  139. package/dist/cli/lib/mcp-governance.js.map +1 -0
  140. package/dist/cli/lib/mcp-runtime.d.ts +4 -4
  141. package/dist/cli/lib/mcp-runtime.d.ts.map +1 -1
  142. package/dist/cli/lib/mcp-runtime.js +3 -3
  143. package/dist/cli/lib/mcp-runtime.js.map +1 -1
  144. package/dist/cli/lib/mcp-tools-register.js +1 -2
  145. package/dist/cli/lib/mcp-tools-register.js.map +1 -1
  146. package/dist/cli/lib/mcp-upgrade.d.ts +11 -2
  147. package/dist/cli/lib/mcp-upgrade.d.ts.map +1 -1
  148. package/dist/cli/lib/mcp-upgrade.js +1 -1
  149. package/dist/cli/lib/mcp-upgrade.js.map +1 -1
  150. package/dist/cli/lib/missions/formatter.d.ts +17 -0
  151. package/dist/cli/lib/missions/formatter.d.ts.map +1 -0
  152. package/dist/cli/lib/{mission-markdown.js → missions/formatter.js} +57 -2
  153. package/dist/cli/lib/missions/formatter.js.map +1 -0
  154. package/dist/cli/lib/missions/parser.d.ts +45 -0
  155. package/dist/cli/lib/missions/parser.d.ts.map +1 -0
  156. package/dist/cli/lib/missions/parser.js +270 -0
  157. package/dist/cli/lib/missions/parser.js.map +1 -0
  158. package/dist/cli/lib/{mission-schema-validate.d.ts → missions/validator.d.ts} +1 -1
  159. package/dist/cli/lib/missions/validator.d.ts.map +1 -0
  160. package/dist/cli/lib/{mission-schema-validate.js → missions/validator.js} +4 -3
  161. package/dist/cli/lib/missions/validator.js.map +1 -0
  162. package/dist/cli/lib/msn-allocate.js +3 -3
  163. package/dist/cli/lib/msn-allocate.js.map +1 -1
  164. package/dist/cli/lib/perimeter.d.ts +19 -1
  165. package/dist/cli/lib/perimeter.d.ts.map +1 -1
  166. package/dist/cli/lib/perimeter.js +139 -51
  167. package/dist/cli/lib/perimeter.js.map +1 -1
  168. package/dist/cli/lib/register-proposals.d.ts +1 -1
  169. package/dist/cli/lib/register-proposals.d.ts.map +1 -1
  170. package/dist/cli/lib/register-proposals.js +5 -1
  171. package/dist/cli/lib/register-proposals.js.map +1 -1
  172. package/dist/cli/lib/runtime-env.js +2 -2
  173. package/dist/cli/lib/runtime-env.js.map +1 -1
  174. package/dist/cli/lib/runtime-exec.d.ts +48 -4
  175. package/dist/cli/lib/runtime-exec.d.ts.map +1 -1
  176. package/dist/cli/lib/runtime-exec.js +218 -4
  177. package/dist/cli/lib/runtime-exec.js.map +1 -1
  178. package/dist/cli/lib/staged-tmvc-guard.d.ts +26 -0
  179. package/dist/cli/lib/staged-tmvc-guard.d.ts.map +1 -0
  180. package/dist/cli/lib/staged-tmvc-guard.js +58 -0
  181. package/dist/cli/lib/staged-tmvc-guard.js.map +1 -0
  182. package/dist/cli/lib/start-orchestration.d.ts +11 -1
  183. package/dist/cli/lib/start-orchestration.d.ts.map +1 -1
  184. package/dist/cli/lib/start-orchestration.js +105 -42
  185. package/dist/cli/lib/start-orchestration.js.map +1 -1
  186. package/dist/cli/lib/status-report.d.ts +1 -1
  187. package/dist/cli/lib/status-report.d.ts.map +1 -1
  188. package/dist/cli/lib/status-report.js +2 -2
  189. package/dist/cli/lib/status-report.js.map +1 -1
  190. package/dist/cli/lib/surgeon.d.ts +23 -0
  191. package/dist/cli/lib/surgeon.d.ts.map +1 -0
  192. package/dist/cli/lib/surgeon.js +63 -0
  193. package/dist/cli/lib/surgeon.js.map +1 -0
  194. package/dist/cli/lib/surgeons/banned-import.d.ts +4 -0
  195. package/dist/cli/lib/surgeons/banned-import.d.ts.map +1 -0
  196. package/dist/cli/lib/surgeons/banned-import.js +37 -0
  197. package/dist/cli/lib/surgeons/banned-import.js.map +1 -0
  198. package/dist/cli/lib/surgeons/import-layer.d.ts +3 -0
  199. package/dist/cli/lib/surgeons/import-layer.d.ts.map +1 -0
  200. package/dist/cli/lib/surgeons/import-layer.js +74 -0
  201. package/dist/cli/lib/surgeons/import-layer.js.map +1 -0
  202. package/dist/cli/lib/surgeons/quarantine-import.d.ts +24 -0
  203. package/dist/cli/lib/surgeons/quarantine-import.d.ts.map +1 -0
  204. package/dist/cli/lib/surgeons/quarantine-import.js +128 -0
  205. package/dist/cli/lib/surgeons/quarantine-import.js.map +1 -0
  206. package/dist/cli/lib/surgeons/registry.d.ts +22 -0
  207. package/dist/cli/lib/surgeons/registry.d.ts.map +1 -0
  208. package/dist/cli/lib/surgeons/registry.js +27 -0
  209. package/dist/cli/lib/surgeons/registry.js.map +1 -0
  210. package/dist/cli/lib/surgeons/typescript-workspace.d.ts +7 -0
  211. package/dist/cli/lib/surgeons/typescript-workspace.d.ts.map +1 -0
  212. package/dist/cli/lib/surgeons/typescript-workspace.js +41 -0
  213. package/dist/cli/lib/surgeons/typescript-workspace.js.map +1 -0
  214. package/dist/cli/lib/teacher-identity.js +1 -1
  215. package/dist/cli/lib/teacher-identity.js.map +1 -1
  216. package/dist/cli/lib/tmvc-path.d.ts +12 -0
  217. package/dist/cli/lib/tmvc-path.d.ts.map +1 -0
  218. package/dist/cli/lib/tmvc-path.js +47 -0
  219. package/dist/cli/lib/tmvc-path.js.map +1 -0
  220. package/dist/cli/lib/trace-evidence.js +1 -1
  221. package/dist/cli/lib/trace-evidence.js.map +1 -1
  222. package/dist/cli/lib/trace.d.ts +28 -1
  223. package/dist/cli/lib/trace.d.ts.map +1 -1
  224. package/dist/cli/lib/trace.js +158 -3
  225. package/dist/cli/lib/trace.js.map +1 -1
  226. package/dist/cli/lib/types.d.ts +1 -1
  227. package/dist/cli/lib/types.d.ts.map +1 -1
  228. package/dist/cli/lib/upgrade-apply.d.ts.map +1 -1
  229. package/dist/cli/lib/upgrade-apply.js +6 -2
  230. package/dist/cli/lib/upgrade-apply.js.map +1 -1
  231. package/dist/cli/lib/upgrade-plan.d.ts +19 -1
  232. package/dist/cli/lib/upgrade-plan.d.ts.map +1 -1
  233. package/dist/cli/lib/upgrade-plan.js +78 -6
  234. package/dist/cli/lib/upgrade-plan.js.map +1 -1
  235. package/dist/cli/lib/verify-changed-missions.js +1 -1
  236. package/dist/cli/lib/verify-changed-missions.js.map +1 -1
  237. package/dist/cli/lib/verify-engine.d.ts +36 -6
  238. package/dist/cli/lib/verify-engine.d.ts.map +1 -1
  239. package/dist/cli/lib/verify-engine.js +35 -12
  240. package/dist/cli/lib/verify-engine.js.map +1 -1
  241. package/dist/cli/lib/{verify-result-payload.d.ts → verify-payload.d.ts} +2 -7
  242. package/dist/cli/lib/verify-payload.d.ts.map +1 -0
  243. package/dist/cli/lib/{verify-result-payload.js → verify-payload.js} +7 -11
  244. package/dist/cli/lib/verify-payload.js.map +1 -0
  245. package/dist/cli/lib/verify-present.d.ts +9 -5
  246. package/dist/cli/lib/verify-present.d.ts.map +1 -1
  247. package/dist/cli/lib/verify-present.js +101 -8
  248. package/dist/cli/lib/verify-present.js.map +1 -1
  249. package/dist/cli/lib/verify-presentation.d.ts +7 -0
  250. package/dist/cli/lib/verify-presentation.d.ts.map +1 -0
  251. package/dist/cli/lib/verify-presentation.js +4 -0
  252. package/dist/cli/lib/verify-presentation.js.map +1 -0
  253. package/dist/cli/lib/verify-remediation.d.ts +29 -3
  254. package/dist/cli/lib/verify-remediation.d.ts.map +1 -1
  255. package/dist/cli/lib/verify-remediation.js +78 -1
  256. package/dist/cli/lib/verify-remediation.js.map +1 -1
  257. package/dist/cli/lib/version.gen.d.ts +1 -1
  258. package/dist/cli/lib/version.gen.js +1 -1
  259. package/dist/cli/program-core.d.ts.map +1 -1
  260. package/dist/cli/program-core.js +9 -26
  261. package/dist/cli/program-core.js.map +1 -1
  262. package/dist/cli/program-mission.d.ts.map +1 -1
  263. package/dist/cli/program-mission.js +38 -1
  264. package/dist/cli/program-mission.js.map +1 -1
  265. package/dist/cli/program-workflow.d.ts.map +1 -1
  266. package/dist/cli/program-workflow.js +30 -20
  267. package/dist/cli/program-workflow.js.map +1 -1
  268. package/package.json +3 -2
  269. package/templates/.cursor/rules/opengantry-gxt-substrate.mdc +1 -0
  270. package/templates/.gitagent/teacher/WORKER_LOG.template.md +1 -0
  271. package/templates/.githooks/pre-commit +26 -0
  272. package/templates/.github/workflows/gxt-validate.yml +5 -0
  273. package/templates/AGENTS.md +4 -0
  274. package/templates/integrations/asset-catalog.json +29 -28
  275. package/templates/integrations/compatibility.json +1 -1
  276. package/templates/integrations/recipes/_footer.md +4 -0
  277. package/dist/cli/lib/agent-error.d.ts +0 -20
  278. package/dist/cli/lib/agent-error.d.ts.map +0 -1
  279. package/dist/cli/lib/agent-error.js.map +0 -1
  280. package/dist/cli/lib/architecture-pointer-discovery.d.ts +0 -7
  281. package/dist/cli/lib/architecture-pointer-discovery.d.ts.map +0 -1
  282. package/dist/cli/lib/architecture-pointer-discovery.js +0 -60
  283. package/dist/cli/lib/architecture-pointer-discovery.js.map +0 -1
  284. package/dist/cli/lib/architecture-pointer-doctor.d.ts +0 -3
  285. package/dist/cli/lib/architecture-pointer-doctor.d.ts.map +0 -1
  286. package/dist/cli/lib/architecture-pointer-doctor.js +0 -115
  287. package/dist/cli/lib/architecture-pointer-doctor.js.map +0 -1
  288. package/dist/cli/lib/architecture-pointer-schema.d.ts +0 -5
  289. package/dist/cli/lib/architecture-pointer-schema.d.ts.map +0 -1
  290. package/dist/cli/lib/architecture-pointer-schema.js +0 -138
  291. package/dist/cli/lib/architecture-pointer-schema.js.map +0 -1
  292. package/dist/cli/lib/architecture-pointer-types.d.ts +0 -24
  293. package/dist/cli/lib/architecture-pointer-types.d.ts.map +0 -1
  294. package/dist/cli/lib/architecture-pointer-types.js +0 -7
  295. package/dist/cli/lib/architecture-pointer-types.js.map +0 -1
  296. package/dist/cli/lib/break-glass-flow.d.ts +0 -18
  297. package/dist/cli/lib/break-glass-flow.d.ts.map +0 -1
  298. package/dist/cli/lib/break-glass-flow.js +0 -29
  299. package/dist/cli/lib/break-glass-flow.js.map +0 -1
  300. package/dist/cli/lib/cli-timeout.d.ts +0 -9
  301. package/dist/cli/lib/cli-timeout.d.ts.map +0 -1
  302. package/dist/cli/lib/cli-timeout.js +0 -17
  303. package/dist/cli/lib/cli-timeout.js.map +0 -1
  304. package/dist/cli/lib/doctor-checks.d.ts +0 -16
  305. package/dist/cli/lib/doctor-checks.d.ts.map +0 -1
  306. package/dist/cli/lib/doctor-checks.js +0 -138
  307. package/dist/cli/lib/doctor-checks.js.map +0 -1
  308. package/dist/cli/lib/doctor-integration-checks.d.ts +0 -5
  309. package/dist/cli/lib/doctor-integration-checks.d.ts.map +0 -1
  310. package/dist/cli/lib/doctor-integration-checks.js +0 -89
  311. package/dist/cli/lib/doctor-integration-checks.js.map +0 -1
  312. package/dist/cli/lib/doctor-orchestration.d.ts +0 -10
  313. package/dist/cli/lib/doctor-orchestration.d.ts.map +0 -1
  314. package/dist/cli/lib/doctor-orchestration.js +0 -32
  315. package/dist/cli/lib/doctor-orchestration.js.map +0 -1
  316. package/dist/cli/lib/doctor-substrate-drift.d.ts +0 -7
  317. package/dist/cli/lib/doctor-substrate-drift.d.ts.map +0 -1
  318. package/dist/cli/lib/doctor-substrate-drift.js +0 -35
  319. package/dist/cli/lib/doctor-substrate-drift.js.map +0 -1
  320. package/dist/cli/lib/git-metrics-missions.d.ts +0 -3
  321. package/dist/cli/lib/git-metrics-missions.d.ts.map +0 -1
  322. package/dist/cli/lib/git-metrics-missions.js +0 -51
  323. package/dist/cli/lib/git-metrics-missions.js.map +0 -1
  324. package/dist/cli/lib/git-metrics-stream.d.ts +0 -24
  325. package/dist/cli/lib/git-metrics-stream.d.ts.map +0 -1
  326. package/dist/cli/lib/git-metrics-stream.js +0 -137
  327. package/dist/cli/lib/git-metrics-stream.js.map +0 -1
  328. package/dist/cli/lib/git-repo.d.ts +0 -26
  329. package/dist/cli/lib/git-repo.d.ts.map +0 -1
  330. package/dist/cli/lib/git-repo.js +0 -53
  331. package/dist/cli/lib/git-repo.js.map +0 -1
  332. package/dist/cli/lib/init-compose-arch-pointer.d.ts.map +0 -1
  333. package/dist/cli/lib/init-compose-arch-pointer.js.map +0 -1
  334. package/dist/cli/lib/init-compose-doc.d.ts +0 -5
  335. package/dist/cli/lib/init-compose-doc.d.ts.map +0 -1
  336. package/dist/cli/lib/init-compose-doc.js +0 -37
  337. package/dist/cli/lib/init-compose-doc.js.map +0 -1
  338. package/dist/cli/lib/kpi-phase.d.ts +0 -7
  339. package/dist/cli/lib/kpi-phase.d.ts.map +0 -1
  340. package/dist/cli/lib/kpi-phase.js +0 -80
  341. package/dist/cli/lib/kpi-phase.js.map +0 -1
  342. package/dist/cli/lib/kpi-report.d.ts +0 -13
  343. package/dist/cli/lib/kpi-report.d.ts.map +0 -1
  344. package/dist/cli/lib/kpi-report.js +0 -115
  345. package/dist/cli/lib/kpi-report.js.map +0 -1
  346. package/dist/cli/lib/legislate-core.d.ts +0 -21
  347. package/dist/cli/lib/legislate-core.d.ts.map +0 -1
  348. package/dist/cli/lib/legislate-core.js.map +0 -1
  349. package/dist/cli/lib/legislate-skill.d.ts +0 -20
  350. package/dist/cli/lib/legislate-skill.d.ts.map +0 -1
  351. package/dist/cli/lib/legislate-skill.js +0 -30
  352. package/dist/cli/lib/legislate-skill.js.map +0 -1
  353. package/dist/cli/lib/mcp-legislation-draft.d.ts +0 -6
  354. package/dist/cli/lib/mcp-legislation-draft.d.ts.map +0 -1
  355. package/dist/cli/lib/mcp-legislation-draft.js +0 -62
  356. package/dist/cli/lib/mcp-legislation-draft.js.map +0 -1
  357. package/dist/cli/lib/mcp-legislation-execute.d.ts +0 -6
  358. package/dist/cli/lib/mcp-legislation-execute.d.ts.map +0 -1
  359. package/dist/cli/lib/mcp-legislation-execute.js +0 -43
  360. package/dist/cli/lib/mcp-legislation-execute.js.map +0 -1
  361. package/dist/cli/lib/mcp-legislation-mission.d.ts +0 -12
  362. package/dist/cli/lib/mcp-legislation-mission.d.ts.map +0 -1
  363. package/dist/cli/lib/mcp-legislation-mission.js +0 -82
  364. package/dist/cli/lib/mcp-legislation-mission.js.map +0 -1
  365. package/dist/cli/lib/mcp-legislation-types.d.ts +0 -69
  366. package/dist/cli/lib/mcp-legislation-types.d.ts.map +0 -1
  367. package/dist/cli/lib/mcp-legislation-types.js +0 -4
  368. package/dist/cli/lib/mcp-legislation-types.js.map +0 -1
  369. package/dist/cli/lib/mcp-legislation.d.ts +0 -5
  370. package/dist/cli/lib/mcp-legislation.d.ts.map +0 -1
  371. package/dist/cli/lib/mcp-legislation.js +0 -4
  372. package/dist/cli/lib/mcp-legislation.js.map +0 -1
  373. package/dist/cli/lib/mcp-orchestration-types.d.ts +0 -28
  374. package/dist/cli/lib/mcp-orchestration-types.d.ts.map +0 -1
  375. package/dist/cli/lib/mcp-orchestration-types.js +0 -2
  376. package/dist/cli/lib/mcp-orchestration-types.js.map +0 -1
  377. package/dist/cli/lib/mcp-orchestration.d.ts +0 -14
  378. package/dist/cli/lib/mcp-orchestration.d.ts.map +0 -1
  379. package/dist/cli/lib/mcp-orchestration.js +0 -54
  380. package/dist/cli/lib/mcp-orchestration.js.map +0 -1
  381. package/dist/cli/lib/mcp-upgrade-types.d.ts +0 -12
  382. package/dist/cli/lib/mcp-upgrade-types.d.ts.map +0 -1
  383. package/dist/cli/lib/mcp-upgrade-types.js +0 -2
  384. package/dist/cli/lib/mcp-upgrade-types.js.map +0 -1
  385. package/dist/cli/lib/mission-emit.d.ts +0 -7
  386. package/dist/cli/lib/mission-emit.d.ts.map +0 -1
  387. package/dist/cli/lib/mission-emit.js +0 -23
  388. package/dist/cli/lib/mission-emit.js.map +0 -1
  389. package/dist/cli/lib/mission-legislative-stub.d.ts +0 -9
  390. package/dist/cli/lib/mission-legislative-stub.d.ts.map +0 -1
  391. package/dist/cli/lib/mission-legislative-stub.js +0 -37
  392. package/dist/cli/lib/mission-legislative-stub.js.map +0 -1
  393. package/dist/cli/lib/mission-markdown.d.ts +0 -6
  394. package/dist/cli/lib/mission-markdown.d.ts.map +0 -1
  395. package/dist/cli/lib/mission-markdown.js.map +0 -1
  396. package/dist/cli/lib/mission-msn.d.ts +0 -9
  397. package/dist/cli/lib/mission-msn.d.ts.map +0 -1
  398. package/dist/cli/lib/mission-msn.js +0 -86
  399. package/dist/cli/lib/mission-msn.js.map +0 -1
  400. package/dist/cli/lib/mission-parser.d.ts +0 -6
  401. package/dist/cli/lib/mission-parser.d.ts.map +0 -1
  402. package/dist/cli/lib/mission-parser.js +0 -29
  403. package/dist/cli/lib/mission-parser.js.map +0 -1
  404. package/dist/cli/lib/mission-path.d.ts +0 -4
  405. package/dist/cli/lib/mission-path.d.ts.map +0 -1
  406. package/dist/cli/lib/mission-path.js +0 -28
  407. package/dist/cli/lib/mission-path.js.map +0 -1
  408. package/dist/cli/lib/mission-resolution.d.ts +0 -14
  409. package/dist/cli/lib/mission-resolution.d.ts.map +0 -1
  410. package/dist/cli/lib/mission-resolution.js +0 -60
  411. package/dist/cli/lib/mission-resolution.js.map +0 -1
  412. package/dist/cli/lib/mission-schema-validate.d.ts.map +0 -1
  413. package/dist/cli/lib/mission-schema-validate.js.map +0 -1
  414. package/dist/cli/lib/mission-yaml.d.ts +0 -18
  415. package/dist/cli/lib/mission-yaml.d.ts.map +0 -1
  416. package/dist/cli/lib/mission-yaml.js +0 -228
  417. package/dist/cli/lib/mission-yaml.js.map +0 -1
  418. package/dist/cli/lib/register-proposals-format.d.ts +0 -2
  419. package/dist/cli/lib/register-proposals-format.d.ts.map +0 -1
  420. package/dist/cli/lib/register-proposals-format.js +0 -6
  421. package/dist/cli/lib/register-proposals-format.js.map +0 -1
  422. package/dist/cli/lib/runtime-exec-orchestrator.d.ts +0 -14
  423. package/dist/cli/lib/runtime-exec-orchestrator.d.ts.map +0 -1
  424. package/dist/cli/lib/runtime-exec-orchestrator.js +0 -132
  425. package/dist/cli/lib/runtime-exec-orchestrator.js.map +0 -1
  426. package/dist/cli/lib/runtime-exec-result.d.ts +0 -21
  427. package/dist/cli/lib/runtime-exec-result.d.ts.map +0 -1
  428. package/dist/cli/lib/runtime-exec-result.js +0 -42
  429. package/dist/cli/lib/runtime-exec-result.js.map +0 -1
  430. package/dist/cli/lib/runtime-exec-worker.d.ts +0 -18
  431. package/dist/cli/lib/runtime-exec-worker.d.ts.map +0 -1
  432. package/dist/cli/lib/runtime-exec-worker.js +0 -49
  433. package/dist/cli/lib/runtime-exec-worker.js.map +0 -1
  434. package/dist/cli/lib/start-state.d.ts +0 -12
  435. package/dist/cli/lib/start-state.d.ts.map +0 -1
  436. package/dist/cli/lib/start-state.js +0 -86
  437. package/dist/cli/lib/start-state.js.map +0 -1
  438. package/dist/cli/lib/trace-failure-kind.d.ts +0 -4
  439. package/dist/cli/lib/trace-failure-kind.d.ts.map +0 -1
  440. package/dist/cli/lib/trace-failure-kind.js +0 -25
  441. package/dist/cli/lib/trace-failure-kind.js.map +0 -1
  442. package/dist/cli/lib/trace-status.d.ts +0 -7
  443. package/dist/cli/lib/trace-status.d.ts.map +0 -1
  444. package/dist/cli/lib/trace-status.js +0 -20
  445. package/dist/cli/lib/trace-status.js.map +0 -1
  446. package/dist/cli/lib/upgrade-eligible-assets.d.ts +0 -5
  447. package/dist/cli/lib/upgrade-eligible-assets.d.ts.map +0 -1
  448. package/dist/cli/lib/upgrade-eligible-assets.js +0 -9
  449. package/dist/cli/lib/upgrade-eligible-assets.js.map +0 -1
  450. package/dist/cli/lib/upgrade-plan-preview.d.ts +0 -13
  451. package/dist/cli/lib/upgrade-plan-preview.d.ts.map +0 -1
  452. package/dist/cli/lib/upgrade-plan-preview.js +0 -51
  453. package/dist/cli/lib/upgrade-plan-preview.js.map +0 -1
  454. package/dist/cli/lib/upgrade-profile.d.ts +0 -4
  455. package/dist/cli/lib/upgrade-profile.d.ts.map +0 -1
  456. package/dist/cli/lib/upgrade-profile.js +0 -27
  457. package/dist/cli/lib/upgrade-profile.js.map +0 -1
  458. package/dist/cli/lib/user-error.d.ts.map +0 -1
  459. package/dist/cli/lib/user-error.js +0 -64
  460. package/dist/cli/lib/user-error.js.map +0 -1
  461. package/dist/cli/lib/verify-failure-presentation.d.ts +0 -30
  462. package/dist/cli/lib/verify-failure-presentation.d.ts.map +0 -1
  463. package/dist/cli/lib/verify-failure-presentation.js +0 -68
  464. package/dist/cli/lib/verify-failure-presentation.js.map +0 -1
  465. package/dist/cli/lib/verify-result-payload.d.ts.map +0 -1
  466. package/dist/cli/lib/verify-result-payload.js.map +0 -1
  467. package/dist/cli/lib/verify-run.d.ts +0 -10
  468. package/dist/cli/lib/verify-run.d.ts.map +0 -1
  469. package/dist/cli/lib/verify-run.js +0 -55
  470. package/dist/cli/lib/verify-run.js.map +0 -1
  471. package/dist/cli/lib/verify-types.d.ts +0 -31
  472. package/dist/cli/lib/verify-types.d.ts.map +0 -1
  473. package/dist/cli/lib/verify-types.js +0 -2
  474. package/dist/cli/lib/verify-types.js.map +0 -1
@@ -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":"AAWA,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;AAE7B,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,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAML,QAAQ,GACT,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,UAAU,oBAAoB,CAClC,eAAuB;IAEvB,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;IACjC,MAAM,UAAU,GAAG,sBA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AC;IAC1E,CAAC;AACH,CAAC"}
@@ -1,69 +0,0 @@
1
- import type { AgentErrorPayload } from "./agent-error.js";
2
- export type McpToolStatus = "awaiting_human_approval" | "pending_signature" | "signature_valid" | "signature_missing" | "error";
3
- export interface McpErrorBody {
4
- code: string;
5
- message: string;
6
- retryable: boolean;
7
- }
8
- export interface DraftLegislationInput {
9
- title: string;
10
- msn_id: string;
11
- skill_key: string;
12
- gate_command: string;
13
- gate_success_substring?: string;
14
- }
15
- export interface DraftLegislationResult {
16
- status: "awaiting_human_approval";
17
- draft_token: string;
18
- chat_message_to_user: string;
19
- expires_at: string;
20
- requires_teacher_commit: true;
21
- }
22
- export interface ExecuteLegislationResult {
23
- status: "pending_signature";
24
- msn_id: string;
25
- mission_file_path: string;
26
- suggested_human_action: string;
27
- commit_message: string;
28
- commit_target: string;
29
- requires_teacher_commit: true;
30
- next_tool: "gxt_check_signature";
31
- }
32
- export interface CheckSignatureResult {
33
- status: "signature_valid" | "signature_missing";
34
- msn_id: string;
35
- mission_file_path: string;
36
- message: string;
37
- next_tools?: string[];
38
- }
39
- export type PinMissionResult = {
40
- status: "pinned";
41
- mission_file_path: string;
42
- message: string;
43
- } | {
44
- status: "error";
45
- error: McpErrorBody;
46
- };
47
- export type ResolveMissionResult = {
48
- status: "resolved";
49
- mission_file_path: string;
50
- } | {
51
- status: "unpinned";
52
- mission_file_path: null;
53
- message: string;
54
- };
55
- export type LastErrorResult = {
56
- status: "empty";
57
- message: string;
58
- } | {
59
- status: "found";
60
- payload: AgentErrorPayload;
61
- } | {
62
- status: "error";
63
- message: string;
64
- };
65
- export declare function mcpError(code: string, message: string, retryable: boolean): {
66
- status: "error";
67
- error: McpErrorBody;
68
- };
69
- //# sourceMappingURL=mcp-legislation-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-types.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iB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AC,OAAO,EAAE,MAAM,CAAA;CAAE,GAChE;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAC5B;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GACjD;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,iBAAiB,EAAE,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,eAAe,GACvB;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,GAC/C;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAEpH"}
@@ -1,4 +0,0 @@
1
- export function mcpError(code, message, retryable) {
2
- return { status: "error", error: { code, message, retryable } };
3
- }
4
- //# sourceMappingURL=mcp-legislation-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation-types.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation-types.ts"],"names":[],"mappings":"AAmEA,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,OAAe,EAAE,SAAkB;IACxE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;AAClE,CAAC"}
@@ -1,5 +0,0 @@
1
- export type { McpToolStatus, McpErrorBody, DraftLegislationInput, DraftLegislationResult, ExecuteLegislationResult, CheckSignatureResult, PinMissionResult, ResolveMissionResult, LastErrorResult, } from "./mcp-legislation-types.js";
2
- export { handleDraftLegislation } from "./mcp-legislation-draft.js";
3
- export { handleExecuteLegislation } from "./mcp-legislation-execute.js";
4
- export { handleCheckSignature, handlePinMission, handleResolveMission, handleLastError, } from "./mcp-legislation-mission.js";
5
- //# sourceMappingURL=mcp-legislation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,8BAA8B,CAAC"}
@@ -1,4 +0,0 @@
1
- export { handleDraftLegislation } from "./mcp-legislation-draft.js";
2
- export { handleExecuteLegislation } from "./mcp-legislation-execute.js";
3
- export { handleCheckSignature, handlePinMission, handleResolveMission, handleLastError, } from "./mcp-legislation-mission.js";
4
- //# sourceMappingURL=mcp-legislation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-legislation.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-legislation.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,8BAA8B,CAAC"}
@@ -1,28 +0,0 @@
1
- import type { RuntimeEnvMcpResult } from "./mcp-runtime.js";
2
- import type { ResolveMissionResult } from "./mcp-legislation-types.js";
3
- import type { TriageResult } from "./types.js";
4
- export type StartOrchestrationMcpResult = {
5
- status: "ok";
6
- triage: TriageResult;
7
- triage_action: string;
8
- msn_id: string | null;
9
- mission_file_path: string | null;
10
- skill_key: string;
11
- next_steps: string[];
12
- next_actions: string[];
13
- exit_code: number;
14
- pinned_mission?: string;
15
- runtime_env?: RuntimeEnvMcpResult;
16
- resolve: ResolveMissionResult;
17
- } | {
18
- status: "failed";
19
- triage: TriageResult;
20
- triage_action: string;
21
- skill_key: string;
22
- msn_id: string | null;
23
- mission_file_path: string | null;
24
- next_steps: string[];
25
- next_actions: string[];
26
- exit_code: number;
27
- };
28
- //# sourceMappingURL=mcp-orchestration-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-orchestration-types.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-orchestration-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,2BAA2B,GACnC;IACE,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC;CAC/B,GACD;IACE,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=mcp-orchestration-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-orchestration-types.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-orchestration-types.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { StartOrchestrationMcpResult } from "./mcp-orchestration-types.js";
2
- export type { StartOrchestrationMcpResult } from "./mcp-orchestration-types.js";
3
- export interface StartOrchestrationInput {
4
- intent: string;
5
- msn_id?: string;
6
- skill_key?: string;
7
- gate_command?: string;
8
- gate_success_substring?: string;
9
- pin_if_needed?: boolean;
10
- emit_runtime_env?: boolean;
11
- write_mission?: boolean;
12
- }
13
- export declare function handleStartOrchestration(input: StartOrchestrationInput): StartOrchestrationMcpResult;
14
- //# sourceMappingURL=mcp-orchestration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-orchestration.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-orchestration.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAKhF,YAAY,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAEhF,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,uBAAuB,GAAG,2BAA2B,CAmDpG"}
@@ -1,54 +0,0 @@
1
- import fs from "node:fs";
2
- import { handleResolveMission } from "./mcp-legislation.js";
3
- import { handleRuntimeEnv } from "./mcp-runtime.js";
4
- import { resolveMissionFilePath, pinMissionFile } from "./mission-path.js";
5
- import { runStartOrchestration } from "./start-orchestration.js";
6
- import { loadWorkspace } from "./workspace.js";
7
- export function handleStartOrchestration(input) {
8
- const result = runStartOrchestration({
9
- intent: input.intent,
10
- msn: input.msn_id,
11
- skillKey: input.skill_key,
12
- gateCommand: input.gate_command,
13
- gateSuccessSubstring: input.gate_success_substring,
14
- writeMission: input.write_mission !== false,
15
- silent: true,
16
- });
17
- if (!result.ok) {
18
- return {
19
- status: "failed",
20
- triage: result.triage,
21
- triage_action: result.triage_action,
22
- skill_key: result.skill_key,
23
- msn_id: result.msn_id,
24
- mission_file_path: result.mission_file_path,
25
- next_steps: result.next_steps,
26
- next_actions: result.next_steps,
27
- exit_code: result.exit_code,
28
- };
29
- }
30
- const payload = {
31
- status: "ok",
32
- triage: result.triage,
33
- triage_action: result.triage_action,
34
- msn_id: result.msn_id,
35
- mission_file_path: result.mission_file_path,
36
- skill_key: result.skill_key,
37
- next_steps: result.next_steps,
38
- next_actions: result.next_steps,
39
- exit_code: result.exit_code,
40
- resolve: handleResolveMission(result.mission_file_path ?? undefined),
41
- };
42
- if (input.pin_if_needed === true && result.mission_file_path) {
43
- const { root } = loadWorkspace();
44
- const missionAbs = resolveMissionFilePath(root, result.mission_file_path);
45
- if (fs.existsSync(missionAbs)) {
46
- payload.pinned_mission = pinMissionFile(root, missionAbs);
47
- }
48
- }
49
- if (input.emit_runtime_env === true && result.mission_file_path) {
50
- payload.runtime_env = handleRuntimeEnv(result.mission_file_path);
51
- }
52
- return payload;
53
- }
54
- //# sourceMappingURL=mcp-orchestration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-orchestration.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-orchestration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAe/C,MAAM,UAAU,wBAAwB,CAAC,KAA8B;IACrE,MAAM,MAAM,GAAG,qBAAqB,CAAC;QACnC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,GAAG,EAAE,KAAK,CAAC,MAAM;QACjB,QAAQ,EAAE,KAAK,CAAC,SAAS;QACzB,WAAW,EAAE,KAAK,CAAC,YAAY;QAC/B,oBAAoB,EAAE,KAAK,CAAC,sBAAsB;QAClD,YAAY,EAAE,KAAK,CAAC,aAAa,KAAK,KAAK;QAC3C,MAAM,EAAE,IAAI;KACb,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,YAAY,EAAE,MAAM,CAAC,UAAU;YAC/B,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAgC;QAC3C,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,YAAY,EAAE,MAAM,CAAC,UAAU;QAC/B,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,oBAAoB,CAAC,MAAM,CAAC,iBAAiB,IAAI,SAAS,CAAC;KACrE,CAAC;IAEF,IAAI,KAAK,CAAC,aAAa,KAAK,IAAI,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAC;QACjC,MAAM,UAAU,GAAG,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAC1E,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC9B,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,IAAI,KAAK,CAAC,gBAAgB,KAAK,IAAI,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAChE,OAAO,CAAC,WAAW,GAAG,gBAAgB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { McpErrorBody } from "./mcp-legislation-types.js";
2
- import type { UpgradeApplyResult } from "./upgrade-apply.js";
3
- import type { UpgradePlanResult } from "./upgrade-plan.js";
4
- export type UpgradePlanMcpResult = UpgradePlanResult | {
5
- status: "error";
6
- error: McpErrorBody;
7
- };
8
- export type UpgradeApplyMcpResult = UpgradeApplyResult | {
9
- status: "error";
10
- error: McpErrorBody;
11
- };
12
- //# sourceMappingURL=mcp-upgrade-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-upgrade-types.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mcp-upgrade-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC;AAEhG,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=mcp-upgrade-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-upgrade-types.js","sourceRoot":"","sources":["../../../src/cli/lib/mcp-upgrade-types.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- export interface EmitMissionOptions {
2
- skillKey: string;
3
- msnId: string;
4
- outPath?: string;
5
- }
6
- export declare function emitActiveMissionFromTemplate(repoRoot: string, options: EmitMissionOptions): string;
7
- //# sourceMappingURL=mission-emit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-emit.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mission-emit.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAKD,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAcR"}
@@ -1,23 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { DEFAULT_ACTIVE_MISSION, REL_MISSION_TEMPLATE, } from "./constants.js";
4
- const SKILL_LINE_TEMPLATE_PATTERN = /- \*\*Skill key:\*\* \[e\.g\. `[^`]+` \| `[^`]+`\]/;
5
- export function emitActiveMissionFromTemplate(repoRoot, options) {
6
- const templatePath = path.join(repoRoot, REL_MISSION_TEMPLATE);
7
- if (!fs.existsSync(templatePath)) {
8
- throw new Error(`gapman: missing mission template ${REL_MISSION_TEMPLATE}`);
9
- }
10
- let body = fs.readFileSync(templatePath, "utf8");
11
- body = body.replace(/\[MSN-XXXX\]/g, options.msnId);
12
- body = body.replace(SKILL_LINE_TEMPLATE_PATTERN, `- **Skill key:** \`${options.skillKey}\``);
13
- const outputPath = resolveMissionOutputPath(repoRoot, options.outPath);
14
- fs.mkdirSync(path.dirname(outputPath), { recursive: true });
15
- fs.writeFileSync(outputPath, body, "utf8");
16
- return outputPath;
17
- }
18
- function resolveMissionOutputPath(repoRoot, outPath) {
19
- if (!outPath)
20
- return path.join(repoRoot, DEFAULT_ACTIVE_MISSION);
21
- return path.isAbsolute(outPath) ? outPath : path.join(repoRoot, outPath);
22
- }
23
- //# sourceMappingURL=mission-emit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-emit.js","sourceRoot":"","sources":["../../../src/cli/lib/mission-emit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAQxB,MAAM,2BAA2B,GAC/B,oDAAoD,CAAC;AAEvD,MAAM,UAAU,6BAA6B,CAC3C,QAAgB,EAChB,OAA2B;IAE3B,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;IAC/D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,oCAAoC,oBAAoB,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,IAAI,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IACjD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,2BAA2B,EAAE,sBAAsB,OAAO,CAAC,QAAQ,IAAI,CAAC,CAAC;IAE7F,MAAM,UAAU,GAAG,wBAAwB,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5D,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,wBAAwB,CAAC,QAAgB,EAAE,OAA2B;IAC7E,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;IACjE,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ParsedMission } from "./types.js";
2
- /** Default trace quote emitted by `gapman legislate` before worker execution. */
3
- export declare const LEGISLATE_TRACE_PLACEHOLDER: "REPLACE_WITH_VERBATIM_QUOTE_FROM_WORKER_LOG_AFTER_EXECUTION";
4
- /**
5
- * True when the mission file represents Teacher legislation only — no worker
6
- * execution evidence claimed yet. Pre-push may pass after git-proof alone.
7
- */
8
- export declare function isLegislativeStub(mission: ParsedMission): boolean;
9
- //# sourceMappingURL=mission-legislative-stub.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-legislative-stub.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mission-legislative-stub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,YAAY,CAAC;AAG1D,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,EACtC,6DAAsE,CAAC;AAczE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAyBjE"}
@@ -1,37 +0,0 @@
1
- import { isPassStatus, isPendingStatus } from "./trace-status.js";
2
- /** Default trace quote emitted by `gapman legislate` before worker execution. */
3
- export const LEGISLATE_TRACE_PLACEHOLDER = "REPLACE_WITH_VERBATIM_QUOTE_FROM_WORKER_LOG_AFTER_EXECUTION";
4
- function isPassRow(row) {
5
- return isPassStatus(row.status);
6
- }
7
- function isPendingRow(row) {
8
- return isPendingStatus(row.status);
9
- }
10
- function isPlaceholderQuote(quote) {
11
- return quote.trim() === LEGISLATE_TRACE_PLACEHOLDER;
12
- }
13
- /**
14
- * True when the mission file represents Teacher legislation only — no worker
15
- * execution evidence claimed yet. Pre-push may pass after git-proof alone.
16
- */
17
- export function isLegislativeStub(mission) {
18
- if (mission.traceRows.length === 0)
19
- return true;
20
- const passRows = mission.traceRows.filter(isPassRow);
21
- if (passRows.some((row) => !isPlaceholderQuote(row.traceQuote))) {
22
- return false;
23
- }
24
- const pendingRows = mission.traceRows.filter(isPendingRow);
25
- if (pendingRows.length > 0 &&
26
- pendingRows.every((row) => isPlaceholderQuote(row.traceQuote))) {
27
- return true;
28
- }
29
- if (passRows.length > 0 && passRows.every((row) => isPlaceholderQuote(row.traceQuote))) {
30
- return true;
31
- }
32
- if (passRows.length === 0 && pendingRows.length === 0) {
33
- return true;
34
- }
35
- return false;
36
- }
37
- //# sourceMappingURL=mission-legislative-stub.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-legislative-stub.js","sourceRoot":"","sources":["../../../src/cli/lib/mission-legislative-stub.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE,iFAAiF;AACjF,MAAM,CAAC,MAAM,2BAA2B,GACtC,6DAAsE,CAAC;AAEzE,SAAS,SAAS,CAAC,GAAa;IAC9B,OAAO,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,YAAY,CAAC,GAAa;IACjC,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,KAAK,CAAC,IAAI,EAAE,KAAK,2BAA2B,CAAC;AACtD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACtD,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAEhD,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACrD,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QAChE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3D,IACE,WAAW,CAAC,MAAM,GAAG,CAAC;QACtB,WAAW,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,EAC9D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;QACvF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { ParsedMission } from "./types.js";
2
- /** Parse MISSION.template-style markdown */
3
- export declare function parseMarkdownMission(filePath: string, body: string): ParsedMission;
4
- /** Markdown pipe-table separator: every non-empty cell is only dashes (optional colons for alignment). */
5
- export declare function isMarkdownTableSeparatorRow(line: string): boolean;
6
- //# sourceMappingURL=mission-markdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-markdown.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mission-markdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAY,MAAM,YAAY,CAAC;AAW1D,4CAA4C;AAC5C,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CA2BlF;AAED,0GAA0G;AAC1G,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CASjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-markdown.js","sourceRoot":"","sources":["../../../src/cli/lib/mission-markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGzD,MAAM,oBAAoB,GAAG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IAAI,CAAC,WAAW;YAAE,SAAS;QAC3B,IAAI,2BAA2B,CAAC,IAAI,CAAC;YAAE,SAAS;QAEhD,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACjC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,MAAM;YAC3B,SAAS;QACX,CAAC;QAED,MAAM,KAAK,GAAG,IAAI;aACf,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;aACpB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,SAAS;QAE/B,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;QAClD,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM;YAAE,SAAS;QAC1D,IAAI,KAAK,KAAK,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,SAAS;QACtD,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YAAE,SAAS;QACjC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE,SAAS;QAEzC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACjF,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare function isValidMsnId(id: string): boolean;
2
- /** Parse first YAML frontmatter block (`---` … `---`) when present. */
3
- export declare function tryParseYamlFrontmatter(body: string): Record<string, unknown> | null;
4
- /**
5
- * Parser-owned mission MSN resolution (YAML, frontmatter, markdown template lines).
6
- */
7
- export declare function extractMsnIdFromMissionBody(body: string, extLower: string): string | null;
8
- export declare function extractMsnIdFromMissionPath(missionAbsolutePath: string): string | null;
9
- //# sourceMappingURL=mission-msn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-msn.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mission-msn.ts"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEhD;AAWD,uEAAuE;AACvE,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAoBpF;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA0BzF;AAED,wBAAgB,2BAA2B,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAStF"}
@@ -1,86 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import YAML from "yaml";
4
- import { MSN_ID_PATTERN } from "./constants.js";
5
- export function isValidMsnId(id) {
6
- return MSN_ID_PATTERN.test(id.trim());
7
- }
8
- function pickMsnFromYamlRecord(o) {
9
- const a = o.msn_id;
10
- const b = o.msnId;
11
- for (const v of [a, b]) {
12
- if (typeof v === "string" && MSN_ID_PATTERN.test(v))
13
- return v;
14
- }
15
- return null;
16
- }
17
- /** Parse first YAML frontmatter block (`---` … `---`) when present. */
18
- export function tryParseYamlFrontmatter(body) {
19
- const lines = body.split("\n");
20
- if (lines[0]?.trim() !== "---")
21
- return null;
22
- let end = -1;
23
- for (let i = 1; i < lines.length; i++) {
24
- if (lines[i]?.trim() === "---") {
25
- end = i;
26
- break;
27
- }
28
- }
29
- if (end < 1)
30
- return null;
31
- const block = lines.slice(1, end).join("\n");
32
- if (!block.trim())
33
- return null;
34
- try {
35
- const doc = YAML.parse(block);
36
- if (typeof doc !== "object" || doc === null)
37
- return null;
38
- return doc;
39
- }
40
- catch {
41
- return null;
42
- }
43
- }
44
- /**
45
- * Parser-owned mission MSN resolution (YAML, frontmatter, markdown template lines).
46
- */
47
- export function extractMsnIdFromMissionBody(body, extLower) {
48
- if (extLower === ".yaml" || extLower === ".yml") {
49
- try {
50
- const doc = YAML.parse(body);
51
- if (typeof doc === "object" && doc !== null) {
52
- const fromRoot = pickMsnFromYamlRecord(doc);
53
- if (fromRoot)
54
- return fromRoot;
55
- }
56
- }
57
- catch {
58
- /* fall through to markdown cues */
59
- }
60
- }
61
- const fm = tryParseYamlFrontmatter(body);
62
- if (fm) {
63
- const fromFm = pickMsnFromYamlRecord(fm);
64
- if (fromFm)
65
- return fromFm;
66
- }
67
- const bracket = body.match(/^\[(MSN-\d{4})\]/m);
68
- if (bracket?.[1] && MSN_ID_PATTERN.test(bracket[1]))
69
- return bracket[1];
70
- const missionHeading = body.match(/# Mission:\s*\[?(MSN-\d{4})\]?/i);
71
- if (missionHeading?.[1])
72
- return missionHeading[1];
73
- return null;
74
- }
75
- export function extractMsnIdFromMissionPath(missionAbsolutePath) {
76
- let body;
77
- try {
78
- body = fs.readFileSync(missionAbsolutePath, "utf8");
79
- }
80
- catch {
81
- return null;
82
- }
83
- const ext = path.extname(missionAbsolutePath).toLowerCase();
84
- return extractMsnIdFromMissionBody(body, ext);
85
- }
86
- //# sourceMappingURL=mission-msn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-msn.js","sourceRoot":"","sources":["../../../src/cli/lib/mission-msn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,UAAU,YAAY,CAAC,EAAU;IACrC,OAAO,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AAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,mBAA2B;IACrE,IAAI,IAAY,CAAC;IACjB,IAAI,CAAC;QACH,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5D,OAAO,2BAA2B,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAChD,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { ParsedMission } from "./types.js";
2
- export { parseMarkdownMission, isMarkdownTableSeparatorRow } from "./mission-markdown.js";
3
- export { validateYamlMission, ensureMissionSchemaFileExists } from "./mission-yaml.js";
4
- export declare function parseMissionFile(root: string, filePath: string): ParsedMission;
5
- export declare function assertMissionGatePresent(mission: ParsedMission): void;
6
- //# sourceMappingURL=mission-parser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mission-parser.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/mission-parser.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,CAa9E;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAQrE"}