@xgent-ai/skills 0.1.0 → 0.4.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 (1043) hide show
  1. package/README.md +124 -4
  2. package/bin/xgent-skills.js +561 -4
  3. package/package.json +7 -3
  4. package/skills/agi-mode/SKILL.md +225 -0
  5. package/skills/agi-mode/evals/baseline-coverage.md +96 -0
  6. package/skills/agi-mode/evals/scenarios.md +331 -0
  7. package/skills/agi-mode/evals/test_check_evidence.py +141 -0
  8. package/skills/agi-mode/playbooks/arena.md +47 -0
  9. package/skills/agi-mode/playbooks/authoring-a-skill.md +26 -0
  10. package/skills/agi-mode/playbooks/autonomous-run.md +39 -0
  11. package/skills/agi-mode/playbooks/bug-fix.md +27 -0
  12. package/skills/agi-mode/playbooks/design-prototype.md +41 -0
  13. package/skills/agi-mode/playbooks/eval.md +72 -0
  14. package/skills/agi-mode/playbooks/feature.md +26 -0
  15. package/skills/agi-mode/playbooks/forensics.md +31 -0
  16. package/skills/agi-mode/playbooks/hillclimb.md +73 -0
  17. package/skills/agi-mode/playbooks/investigation.md +29 -0
  18. package/skills/agi-mode/playbooks/migration-refactoring.md +27 -0
  19. package/skills/agi-mode/playbooks/optimization.md +27 -0
  20. package/skills/agi-mode/playbooks/pr-lifecycle.md +38 -0
  21. package/skills/agi-mode/playbooks/program.md +57 -0
  22. package/skills/agi-mode/playbooks/reflection.md +41 -0
  23. package/skills/agi-mode/playbooks/resource-cleanup.md +24 -0
  24. package/skills/agi-mode/playbooks/review.md +27 -0
  25. package/skills/agi-mode/playbooks/session-handoff.md +37 -0
  26. package/skills/agi-mode/playbooks/shipping.md +35 -0
  27. package/skills/agi-mode/playbooks/ui-delivery.md +34 -0
  28. package/skills/agi-mode/playbooks/unblock.md +54 -0
  29. package/skills/agi-mode/principles/autonomous-decisions.md +21 -0
  30. package/skills/agi-mode/principles/behavioral-tests.md +21 -0
  31. package/skills/agi-mode/principles/boundary-discipline.md +21 -0
  32. package/skills/agi-mode/principles/bounded-convergence.md +21 -0
  33. package/skills/agi-mode/principles/build-leverage.md +21 -0
  34. package/skills/agi-mode/principles/challenge-premises.md +21 -0
  35. package/skills/agi-mode/principles/complete-migrations.md +21 -0
  36. package/skills/agi-mode/principles/context-as-state.md +21 -0
  37. package/skills/agi-mode/principles/critical-path-throughput.md +21 -0
  38. package/skills/agi-mode/principles/domain-models-and-types.md +23 -0
  39. package/skills/agi-mode/principles/evidence-lifetime.md +21 -0
  40. package/skills/agi-mode/principles/experience-first.md +21 -0
  41. package/skills/agi-mode/principles/explore-alternatives.md +21 -0
  42. package/skills/agi-mode/principles/falsifiable-verification.md +21 -0
  43. package/skills/agi-mode/principles/foundations-first.md +21 -0
  44. package/skills/agi-mode/principles/idempotent-effects.md +21 -0
  45. package/skills/agi-mode/principles/information-first.md +21 -0
  46. package/skills/agi-mode/principles/minimize-complexity.md +21 -0
  47. package/skills/agi-mode/principles/outcome-ownership.md +21 -0
  48. package/skills/agi-mode/principles/prove-real-outcomes.md +21 -0
  49. package/skills/agi-mode/principles/redesign-from-constraints.md +21 -0
  50. package/skills/agi-mode/principles/root-cause.md +21 -0
  51. package/skills/agi-mode/principles/state-ownership.md +21 -0
  52. package/skills/agi-mode/principles/structural-learning.md +21 -0
  53. package/skills/agi-mode/principles/verifiable-units.md +21 -0
  54. package/skills/agi-mode/references/continuity.md +75 -0
  55. package/skills/agi-mode/references/eval-protocol.md +71 -0
  56. package/skills/agi-mode/references/evidence-contract.md +57 -0
  57. package/skills/agi-mode/references/evolution-evidence.md +71 -0
  58. package/skills/agi-mode/references/experiments.md +82 -0
  59. package/skills/agi-mode/references/reflection/divergent-reviewer.md +45 -0
  60. package/skills/agi-mode/references/reflection/judgment-reviewer.md +44 -0
  61. package/skills/agi-mode/references/reflection/synthesizer.md +39 -0
  62. package/skills/agi-mode/references/reflection/tooling-reviewer.md +57 -0
  63. package/skills/agi-mode/references/skill-evolution.md +50 -0
  64. package/skills/agi-mode/scripts/check_evidence.py +147 -0
  65. package/skills/apply-code-review/SKILL.md +53 -0
  66. package/skills/apply-code-review/agents/openai.yaml +4 -0
  67. package/skills/apply-code-review/references/record-contract.md +77 -0
  68. package/skills/apply-doc-review/SKILL.md +79 -0
  69. package/skills/apply-doc-review/agents/openai.yaml +4 -0
  70. package/skills/apply-doc-review/references/disposition-contract.md +57 -0
  71. package/skills/archify/LICENSE +22 -0
  72. package/skills/archify/SKILL.md +137 -0
  73. package/skills/archify/THIRD_PARTY_NOTICES.md +69 -0
  74. package/skills/archify/assets/JetBrainsMono-OFL.txt +93 -0
  75. package/skills/archify/assets/template.html +14937 -0
  76. package/skills/archify/bin/archify.mjs +2139 -0
  77. package/skills/archify/bin/open-artifact.mjs +86 -0
  78. package/skills/archify/bin/preview.mjs +653 -0
  79. package/skills/archify/bin/visual-check.mjs +829 -0
  80. package/skills/archify/brand-marks/README.md +31 -0
  81. package/skills/archify/brand-marks/catalog.json +131 -0
  82. package/skills/archify/delta/architecture-delta.mjs +1232 -0
  83. package/skills/archify/examples/agent-run.lifecycle.json +60 -0
  84. package/skills/archify/examples/agent-tool-call.workflow.json +94 -0
  85. package/skills/archify/examples/async-job-roundtrip.sequence.json +61 -0
  86. package/skills/archify/examples/brand-aware-delivery.architecture.json +47 -0
  87. package/skills/archify/examples/cache-miss-request.sequence.json +82 -0
  88. package/skills/archify/examples/checkout-platform.base.architecture.json +31 -0
  89. package/skills/archify/examples/checkout-platform.head.architecture.json +31 -0
  90. package/skills/archify/examples/dataflow-product-analytics.html +15048 -0
  91. package/skills/archify/examples/deployment-release.lifecycle.json +49 -0
  92. package/skills/archify/examples/event-stream.dataflow.json +57 -0
  93. package/skills/archify/examples/incident-response.workflow.json +64 -0
  94. package/skills/archify/examples/lifecycle-agent-run.html +14983 -0
  95. package/skills/archify/examples/product-analytics.dataflow.json +76 -0
  96. package/skills/archify/examples/production-deployment.architecture.json +71 -0
  97. package/skills/archify/examples/release-delivery.workflow.json +62 -0
  98. package/skills/archify/examples/sequence-cache-miss-request.html +15063 -0
  99. package/skills/archify/examples/web-app-rendered.html +15012 -0
  100. package/skills/archify/examples/web-app.architecture.json +46 -0
  101. package/skills/archify/examples/workflow-agent-tool-call-rendered.html +15054 -0
  102. package/skills/archify/migrations/workflow-v2.mjs +279 -0
  103. package/skills/archify/package-lock.json +149 -0
  104. package/skills/archify/package.json +39 -0
  105. package/skills/archify/recipes/scenarios.mjs +391 -0
  106. package/skills/archify/references/authoring-contract.md +247 -0
  107. package/skills/archify/references/brand-marks.md +65 -0
  108. package/skills/archify/references/delivery-contract.md +138 -0
  109. package/skills/archify/references/viewer-runtime.md +45 -0
  110. package/skills/archify/renderers/architecture/grid.mjs +62 -0
  111. package/skills/archify/renderers/architecture/render-architecture.mjs +1078 -0
  112. package/skills/archify/renderers/dataflow/README.md +104 -0
  113. package/skills/archify/renderers/dataflow/render-dataflow.mjs +483 -0
  114. package/skills/archify/renderers/lifecycle/README.md +115 -0
  115. package/skills/archify/renderers/lifecycle/render-lifecycle.mjs +561 -0
  116. package/skills/archify/renderers/sequence/README.md +114 -0
  117. package/skills/archify/renderers/sequence/render-sequence.mjs +464 -0
  118. package/skills/archify/renderers/shared/brand-marks.mjs +563 -0
  119. package/skills/archify/renderers/shared/cli.mjs +218 -0
  120. package/skills/archify/renderers/shared/desktop-readability.mjs +26 -0
  121. package/skills/archify/renderers/shared/diagnostics.mjs +160 -0
  122. package/skills/archify/renderers/shared/engineering-profiles.mjs +157 -0
  123. package/skills/archify/renderers/shared/generated-brand-marks.mjs +2003 -0
  124. package/skills/archify/renderers/shared/generated-validators.mjs +13 -0
  125. package/skills/archify/renderers/shared/geometry.mjs +1423 -0
  126. package/skills/archify/renderers/shared/i18n.mjs +595 -0
  127. package/skills/archify/renderers/shared/layout-report.mjs +40 -0
  128. package/skills/archify/renderers/shared/legend.mjs +217 -0
  129. package/skills/archify/renderers/shared/output-path.mjs +340 -0
  130. package/skills/archify/renderers/shared/repository-evidence.mjs +239 -0
  131. package/skills/archify/renderers/shared/repository-location.mjs +58 -0
  132. package/skills/archify/renderers/shared/text-fit.mjs +49 -0
  133. package/skills/archify/renderers/shared/utils.mjs +232 -0
  134. package/skills/archify/renderers/shared/validator.mjs +86 -0
  135. package/skills/archify/renderers/workflow/README.md +223 -0
  136. package/skills/archify/renderers/workflow/render-workflow.mjs +35 -0
  137. package/skills/archify/renderers/workflow/workflow-compiler.mjs +4400 -0
  138. package/skills/archify/renderers/workflow/workflow-migration-geometry.mjs +144 -0
  139. package/skills/archify/schemas/README.md +211 -0
  140. package/skills/archify/schemas/architecture.schema.json +178 -0
  141. package/skills/archify/schemas/common.schema.json +115 -0
  142. package/skills/archify/schemas/dataflow.schema.json +243 -0
  143. package/skills/archify/schemas/lifecycle.schema.json +266 -0
  144. package/skills/archify/schemas/sequence.schema.json +223 -0
  145. package/skills/archify/schemas/workflow.schema.json +428 -0
  146. package/skills/archify/scripts/check-render-output.mjs +916 -0
  147. package/skills/archify/scripts/check-update.mjs +1667 -0
  148. package/skills/archify/scripts/generate-brand-marks.mjs +141 -0
  149. package/skills/archify/scripts/generate-validators.mjs +66 -0
  150. package/skills/archify/scripts/render-examples.mjs +26 -0
  151. package/skills/archify/scripts/update-contract.mjs +182 -0
  152. package/skills/archify/skill-release.json +10 -0
  153. package/skills/archify/test/adaptive-reader-layout.test.mjs +86 -0
  154. package/skills/archify/test/animation.test.mjs +179 -0
  155. package/skills/archify/test/architecture-compare-recovery.test.mjs +157 -0
  156. package/skills/archify/test/architecture-delta-markers.test.mjs +137 -0
  157. package/skills/archify/test/architecture-delta.test.mjs +705 -0
  158. package/skills/archify/test/artifact-receipt-flush.test.mjs +126 -0
  159. package/skills/archify/test/authored-reachability.test.mjs +95 -0
  160. package/skills/archify/test/authoring-safety-contract.test.mjs +54 -0
  161. package/skills/archify/test/automatic-port-spread.test.mjs +376 -0
  162. package/skills/archify/test/base-input-compatibility.test.mjs +42 -0
  163. package/skills/archify/test/brand-marks.test.mjs +678 -0
  164. package/skills/archify/test/chapter-delta-preview.test.mjs +157 -0
  165. package/skills/archify/test/chapter-handoff.test.mjs +97 -0
  166. package/skills/archify/test/chapter-rail.test.mjs +86 -0
  167. package/skills/archify/test/checkout-line-endings.test.mjs +72 -0
  168. package/skills/archify/test/ci-scope.test.mjs +59 -0
  169. package/skills/archify/test/clean-skill-staging.test.mjs +440 -0
  170. package/skills/archify/test/cli-output-types.test.mjs +201 -0
  171. package/skills/archify/test/cli.test.mjs +986 -0
  172. package/skills/archify/test/community-proof-intake.test.mjs +125 -0
  173. package/skills/archify/test/cursor-onboarding.test.mjs +74 -0
  174. package/skills/archify/test/degraded.test.mjs +161 -0
  175. package/skills/archify/test/delivery-contract.test.mjs +52 -0
  176. package/skills/archify/test/desktop-reader-browser.test.mjs +80 -0
  177. package/skills/archify/test/diagram-guide.test.mjs +92 -0
  178. package/skills/archify/test/engineering-profile.test.mjs +209 -0
  179. package/skills/archify/test/export-browser.test.mjs +305 -0
  180. package/skills/archify/test/export-cleanup-browser.test.mjs +294 -0
  181. package/skills/archify/test/finder-browser.test.mjs +274 -0
  182. package/skills/archify/test/finder.test.mjs +104 -0
  183. package/skills/archify/test/fixtures/automatic-routing-node-border-clearance.workflow.json +40 -0
  184. package/skills/archify/test/fixtures/fail-migration-cleanup.mjs +17 -0
  185. package/skills/archify/test/fixtures/issue-126/custom-widths.workflow.json +18 -0
  186. package/skills/archify/test/fixtures/issue-126/explicit-route.workflow.json +28 -0
  187. package/skills/archify/test/fixtures/issue-126/explicit-viewbox.workflow.json +19 -0
  188. package/skills/archify/test/fixtures/issue-126/labels.workflow.json +18 -0
  189. package/skills/archify/test/fixtures/v1-baseline/agent-run.lifecycle.json +64 -0
  190. package/skills/archify/test/fixtures/v1-baseline/agent-tool-call.workflow.json +88 -0
  191. package/skills/archify/test/fixtures/v1-baseline/cache-miss-request.sequence.json +75 -0
  192. package/skills/archify/test/fixtures/v1-baseline/event-stream.dataflow.json +57 -0
  193. package/skills/archify/test/fixtures/v1-baseline/product-analytics.dataflow.json +70 -0
  194. package/skills/archify/test/fixtures/v1-baseline/production-deployment.architecture.json +71 -0
  195. package/skills/archify/test/fixtures/v1-baseline/web-app.architecture.json +41 -0
  196. package/skills/archify/test/fixtures/v1-workflow-700x400.workflow.json +22 -0
  197. package/skills/archify/test/fixtures/v1-workflow-explicit-coordinates.workflow.json +47 -0
  198. package/skills/archify/test/focus-browser.test.mjs +226 -0
  199. package/skills/archify/test/gallery.test.mjs +130 -0
  200. package/skills/archify/test/generate-validators.test.mjs +59 -0
  201. package/skills/archify/test/generate-viewer.test.mjs +165 -0
  202. package/skills/archify/test/generated-artifact-xml.test.mjs +88 -0
  203. package/skills/archify/test/geometry.test.mjs +739 -0
  204. package/skills/archify/test/golden.mjs +207 -0
  205. package/skills/archify/test/grid.test.mjs +47 -0
  206. package/skills/archify/test/guide-page.test.mjs +85 -0
  207. package/skills/archify/test/guide.test.mjs +81 -0
  208. package/skills/archify/test/guided-views-browser.test.mjs +460 -0
  209. package/skills/archify/test/guided-views.test.mjs +144 -0
  210. package/skills/archify/test/helpers/desktop-browser.mjs +48 -0
  211. package/skills/archify/test/helpers/offline-fonts.mjs +76 -0
  212. package/skills/archify/test/helpers/viewer-click.mjs +72 -0
  213. package/skills/archify/test/helpers/xml.mjs +37 -0
  214. package/skills/archify/test/i18n.test.mjs +422 -0
  215. package/skills/archify/test/intent-trace-browser.test.mjs +284 -0
  216. package/skills/archify/test/intent-trace.test.mjs +111 -0
  217. package/skills/archify/test/landing.test.mjs +97 -0
  218. package/skills/archify/test/layout-rules.test.mjs +1498 -0
  219. package/skills/archify/test/legend-contract.test.mjs +404 -0
  220. package/skills/archify/test/motion-governor-browser.test.mjs +342 -0
  221. package/skills/archify/test/motion-governor.test.mjs +111 -0
  222. package/skills/archify/test/offline-font-browser.test.mjs +210 -0
  223. package/skills/archify/test/offline-self-containment.test.mjs +80 -0
  224. package/skills/archify/test/open-artifact.test.mjs +118 -0
  225. package/skills/archify/test/ordinary-model-floor.test.mjs +1052 -0
  226. package/skills/archify/test/output-path.test.mjs +587 -0
  227. package/skills/archify/test/presentation.test.mjs +71 -0
  228. package/skills/archify/test/preset-tryon.test.mjs +113 -0
  229. package/skills/archify/test/preview-contract.test.mjs +40 -0
  230. package/skills/archify/test/preview.test.mjs +530 -0
  231. package/skills/archify/test/proof-aperture.test.mjs +78 -0
  232. package/skills/archify/test/reach-share-card.test.mjs +149 -0
  233. package/skills/archify/test/reader-layout-browser.test.mjs +320 -0
  234. package/skills/archify/test/readme-showcase.test.mjs +319 -0
  235. package/skills/archify/test/real-repository-proof.test.mjs +209 -0
  236. package/skills/archify/test/relationship-direct-explorer.test.mjs +115 -0
  237. package/skills/archify/test/relationship-lens.test.mjs +128 -0
  238. package/skills/archify/test/relationship-permalink.test.mjs +130 -0
  239. package/skills/archify/test/relationship-pulse.test.mjs +122 -0
  240. package/skills/archify/test/release-identity.test.mjs +476 -0
  241. package/skills/archify/test/release-package-gates.test.mjs +750 -0
  242. package/skills/archify/test/render-output-checks.test.mjs +588 -0
  243. package/skills/archify/test/renderer-diagnostic-boundary.test.mjs +107 -0
  244. package/skills/archify/test/repair-receipt.test.mjs +181 -0
  245. package/skills/archify/test/repository-evidence-replacement.test.mjs +136 -0
  246. package/skills/archify/test/repository-evidence.test.mjs +605 -0
  247. package/skills/archify/test/repository-language-metadata.test.mjs +67 -0
  248. package/skills/archify/test/route-journey.test.mjs +125 -0
  249. package/skills/archify/test/route-probe-browser.test.mjs +363 -0
  250. package/skills/archify/test/route-probe.test.mjs +114 -0
  251. package/skills/archify/test/route-share-card.test.mjs +163 -0
  252. package/skills/archify/test/semantic-camera.test.mjs +88 -0
  253. package/skills/archify/test/semantic-flow.test.mjs +90 -0
  254. package/skills/archify/test/semantic-legend-gateway.test.mjs +156 -0
  255. package/skills/archify/test/semantic-lens-browser.test.mjs +372 -0
  256. package/skills/archify/test/semantic-lens.test.mjs +103 -0
  257. package/skills/archify/test/semantic-passport.test.mjs +99 -0
  258. package/skills/archify/test/semantic-radar.test.mjs +735 -0
  259. package/skills/archify/test/semantic-zoom.test.mjs +86 -0
  260. package/skills/archify/test/sequence-column-fit.test.mjs +137 -0
  261. package/skills/archify/test/settled-flow.test.mjs +97 -0
  262. package/skills/archify/test/share-card-export.test.mjs +132 -0
  263. package/skills/archify/test/site-language-continuity.test.mjs +569 -0
  264. package/skills/archify/test/site-language-integration.mjs +9 -0
  265. package/skills/archify/test/skill-metadata.test.mjs +84 -0
  266. package/skills/archify/test/stable-update-manifest.test.mjs +167 -0
  267. package/skills/archify/test/start-page.test.mjs +312 -0
  268. package/skills/archify/test/story-beat-navigator.test.mjs +103 -0
  269. package/skills/archify/test/story-carrier.test.mjs +90 -0
  270. package/skills/archify/test/story-director-strip.test.mjs +91 -0
  271. package/skills/archify/test/story-follow-camera.test.mjs +103 -0
  272. package/skills/archify/test/story-horizon.test.mjs +91 -0
  273. package/skills/archify/test/story-moment-link.test.mjs +93 -0
  274. package/skills/archify/test/story-shelf.test.mjs +84 -0
  275. package/skills/archify/test/story-trail.test.mjs +81 -0
  276. package/skills/archify/test/toolbar-polish.test.mjs +57 -0
  277. package/skills/archify/test/update-contract.test.mjs +133 -0
  278. package/skills/archify/test/update-notifier.test.mjs +3317 -0
  279. package/skills/archify/test/v1-compatibility.test.mjs +329 -0
  280. package/skills/archify/test/vertical-edge.test.mjs +68 -0
  281. package/skills/archify/test/viewer-camera-browser.test.mjs +395 -0
  282. package/skills/archify/test/viewer-chrome-layout.test.mjs +1104 -0
  283. package/skills/archify/test/viewer-identifiers-browser.test.mjs +135 -0
  284. package/skills/archify/test/visual-check.test.mjs +400 -0
  285. package/skills/archify/test/webm-artifact.smoke.mjs +1855 -0
  286. package/skills/archify/test/workflow-compiler-hard-contract.test.mjs +2136 -0
  287. package/skills/archify/test/workflow-compiler.test.mjs +1163 -0
  288. package/skills/archify/test/workflow-migration.test.mjs +620 -0
  289. package/skills/archify/test/workflow-semantic-contract.test.mjs +131 -0
  290. package/skills/architect/SKILL.md +83 -0
  291. package/skills/architect/references/design-red-flags.md +33 -0
  292. package/skills/architect/references/rationale-template.md +35 -0
  293. package/skills/architect/references/runner-prompt.md +20 -0
  294. package/skills/arena/SKILL.md +13 -0
  295. package/skills/automate-me/SKILL.md +104 -0
  296. package/skills/autoresearch/SKILL.md +14 -0
  297. package/skills/debugging/SKILL.md +279 -0
  298. package/skills/dev-plan/SKILL.md +117 -92
  299. package/skills/dev-plan/references/architecture-quality.md +141 -0
  300. package/skills/dev-plan/references/execution-workflow.md +25 -0
  301. package/skills/dev-plan/references/plan-skeleton.md +252 -77
  302. package/skills/dev-plan/scripts/check_progress.sh +162 -0
  303. package/skills/documentation-writer/SKILL.md +204 -0
  304. package/skills/documentation-writer/assets/templates/ARCHITECTURE.md +49 -0
  305. package/skills/documentation-writer/assets/templates/CONCERNS.md +56 -0
  306. package/skills/documentation-writer/assets/templates/CONVENTIONS.md +52 -0
  307. package/skills/documentation-writer/assets/templates/FEATURES.md +43 -0
  308. package/skills/documentation-writer/assets/templates/INTEGRATIONS.md +48 -0
  309. package/skills/documentation-writer/assets/templates/STACK.md +56 -0
  310. package/skills/documentation-writer/assets/templates/STRUCTURE.md +44 -0
  311. package/skills/documentation-writer/assets/templates/TESTING.md +57 -0
  312. package/skills/documentation-writer/references/api-docs.md +185 -0
  313. package/skills/documentation-writer/references/architecture.md +134 -0
  314. package/skills/documentation-writer/references/codebase-map.md +113 -0
  315. package/skills/documentation-writer/references/inquiry-checkpoints.md +78 -0
  316. package/skills/documentation-writer/references/readme.md +89 -0
  317. package/skills/documentation-writer/references/stack-detection.md +134 -0
  318. package/skills/documentation-writer/references/user-manual.md +103 -0
  319. package/skills/documentation-writer/references/writing-style.md +220 -0
  320. package/skills/documentation-writer/scripts/check_doc.py +273 -0
  321. package/skills/documentation-writer/scripts/scan.py +712 -0
  322. package/skills/elintp/SKILL.md +155 -0
  323. package/skills/figure-it-out/SKILL.md +53 -0
  324. package/skills/gdpr-compliant/SKILL.md +283 -0
  325. package/skills/gdpr-compliant/references/Security.md +266 -0
  326. package/skills/gdpr-compliant/references/data-rights.md +177 -0
  327. package/skills/how/SKILL.md +58 -0
  328. package/skills/how/references/explainer-prompt.md +55 -0
  329. package/skills/how/references/explorer-prompt.md +52 -0
  330. package/skills/humanize-writing/SKILL.md +417 -0
  331. package/skills/humanize-writing/references/ai-tells.md +291 -0
  332. package/skills/kpi-dashboard-design/SKILL.md +103 -0
  333. package/skills/landing-page-conversion-audit/SKILL.md +122 -0
  334. package/skills/meeting-minutes/SKILL.md +235 -0
  335. package/skills/pardon/SKILL.md +30 -0
  336. package/skills/portal-app-exchange/SKILL.md +97 -0
  337. package/skills/portal-dev-setup/SKILL.md +610 -0
  338. package/skills/portal-dev-setup/puller.env.example +75 -0
  339. package/skills/portal-dev-setup/references/kafka.md +140 -0
  340. package/skills/portal-dev-setup/references/troubleshooting.md +163 -0
  341. package/skills/portal-dev-setup/scripts/onebox.sh +1420 -0
  342. package/skills/portal-external-app/SKILL.md +309 -0
  343. package/skills/portal-external-app/references/contract-doc-template.md +96 -0
  344. package/skills/portal-external-app/references/health-contract.md +80 -0
  345. package/skills/portal-external-app/references/integration-contract.md +130 -0
  346. package/skills/portal-external-app/references/public-entrypoints.md +100 -0
  347. package/skills/portal-external-app/references/quota-and-seats.md +194 -0
  348. package/skills/portal-external-app/references/registration-and-onebox.md +315 -0
  349. package/skills/portal-external-app/scripts/health-verdict.ts +22 -0
  350. package/skills/portal-external-app/scripts/verify-health.ts +27 -0
  351. package/skills/portal-logging/SKILL.md +139 -0
  352. package/skills/portal-logging/references/collectors.md +285 -0
  353. package/skills/portal-logging/references/contract.md +95 -0
  354. package/skills/portal-logging/scripts/smoke-ingest.sh +72 -0
  355. package/skills/portal-micro-app/SKILL.md +73 -0
  356. package/skills/portal-micro-app/references/manifest-and-acl.md +97 -0
  357. package/skills/portal-micro-app/references/open-api-and-extensions.md +86 -0
  358. package/skills/portal-micro-app/references/sdk-reference.md +208 -0
  359. package/skills/prd/SKILL.md +230 -0
  360. package/skills/prd/references/prd-skeleton.md +282 -0
  361. package/skills/prd/references/product-quality.md +89 -0
  362. package/skills/prd/references/spms-mapping.md +150 -0
  363. package/skills/react/SKILL.md +125 -0
  364. package/skills/react/references/actions.md +251 -0
  365. package/skills/react/references/component-patterns.md +275 -0
  366. package/skills/react/references/data-fetching.md +279 -0
  367. package/skills/react/references/effect-patterns.md +407 -0
  368. package/skills/react/references/js-performance.md +432 -0
  369. package/skills/react/references/react19-migration.md +407 -0
  370. package/skills/react/references/rendering-performance.md +351 -0
  371. package/skills/react/references/rerender-optimization.md +578 -0
  372. package/skills/reflect/SKILL.md +13 -0
  373. package/skills/review-code/SKILL.md +63 -0
  374. package/skills/review-code/agents/openai.yaml +4 -0
  375. package/skills/review-code/references/git-scopes.md +38 -0
  376. package/skills/review-code/references/report-contract.md +56 -0
  377. package/skills/review-code/references/review-lenses.md +33 -0
  378. package/skills/review-dev-plan/SKILL.md +88 -0
  379. package/skills/review-dev-plan/agents/openai.yaml +4 -0
  380. package/skills/review-dev-plan/references/report-contract.md +59 -0
  381. package/skills/review-dev-plan/references/review-lenses.md +82 -0
  382. package/skills/review-prd/SKILL.md +84 -0
  383. package/skills/review-prd/agents/openai.yaml +4 -0
  384. package/skills/review-prd/references/report-contract.md +64 -0
  385. package/skills/review-prd/references/review-lenses.md +82 -0
  386. package/skills/review-prd-dev-gaps/SKILL.md +84 -0
  387. package/skills/review-prd-dev-gaps/agents/openai.yaml +4 -0
  388. package/skills/review-prd-dev-gaps/references/report-contract.md +72 -0
  389. package/skills/rust/SKILL.md +103 -0
  390. package/skills/rust/references/chapter_01.md +564 -0
  391. package/skills/rust/references/chapter_02.md +117 -0
  392. package/skills/rust/references/chapter_03.md +209 -0
  393. package/skills/rust/references/chapter_04.md +183 -0
  394. package/skills/rust/references/chapter_05.md +390 -0
  395. package/skills/rust/references/chapter_06.md +142 -0
  396. package/skills/rust/references/chapter_07.md +226 -0
  397. package/skills/rust/references/chapter_08.md +257 -0
  398. package/skills/rust/references/chapter_09.md +261 -0
  399. package/skills/rust/references/chapter_10.md +554 -0
  400. package/skills/security-audit/SKILL.md +191 -0
  401. package/skills/security-audit/references/language-patterns.md +221 -0
  402. package/skills/security-audit/references/report-format.md +194 -0
  403. package/skills/security-audit/references/secret-patterns.md +178 -0
  404. package/skills/security-audit/references/vuln-categories.md +288 -0
  405. package/skills/security-audit/references/vulnerable-packages.md +111 -0
  406. package/skills/sql-optimization/SKILL.md +296 -0
  407. package/skills/story-points/SKILL.md +219 -0
  408. package/skills/story-points/references/factors.md +367 -0
  409. package/skills/summarize/SKILL.md +80 -0
  410. package/skills/swarm/SKILL.md +263 -0
  411. package/skills/swarm/evals/evals.json +55 -0
  412. package/skills/swarm/references/agent-types.md +260 -0
  413. package/skills/swarm/references/teams/code-audit.md +81 -0
  414. package/skills/swarm/references/teams/debug-race.md +70 -0
  415. package/skills/swarm/references/teams/feature-dev.md +71 -0
  416. package/skills/swarm/references/teams/product.md +114 -0
  417. package/skills/swarm/references/teams/refactor-migration.md +73 -0
  418. package/skills/swarm/references/teams/research-debate.md +73 -0
  419. package/skills/tdd/SKILL.md +42 -0
  420. package/skills/teach/SKILL.md +21 -0
  421. package/skills/test-plan/SKILL.md +137 -0
  422. package/skills/test-plan/references/case-taxonomy.md +142 -0
  423. package/skills/why/SKILL.md +158 -0
  424. package/skills/why/references/epistemics.md +144 -0
  425. package/skills/why/references/investigator-prompt.md +103 -0
  426. package/skills/why/references/source-playbook.md +17 -0
  427. package/skills/why/references/sources/code-archaeology.md +88 -0
  428. package/skills/why/references/sources/databricks.md +70 -0
  429. package/skills/why/references/sources/datadog.md +99 -0
  430. package/skills/why/references/sources/incident-postmortem.md +15 -0
  431. package/skills/why/references/sources/linear.md +48 -0
  432. package/skills/why/references/sources/notion.md +55 -0
  433. package/skills/why/references/sources/sentry.md +100 -0
  434. package/skills/why/references/sources/slack.md +54 -0
  435. package/skills/why/references/synthesizer-prompt.md +135 -0
  436. package/skills/working-with-mbx/SKILL.md +343 -0
  437. package/skills/working-with-mbx/references/acknowledgements.md +37 -0
  438. package/skills/working-with-mbx/references/benchmarks.md +140 -0
  439. package/skills/working-with-mbx/references/cache-results.md +153 -0
  440. package/skills/working-with-mbx/references/cache-server.md +151 -0
  441. package/skills/working-with-mbx/references/cli/adopt.md +29 -0
  442. package/skills/working-with-mbx/references/cli/cache/dir.md +24 -0
  443. package/skills/working-with-mbx/references/cli/cache/export.md +31 -0
  444. package/skills/working-with-mbx/references/cli/cache/import.md +27 -0
  445. package/skills/working-with-mbx/references/cli/cache/largest.md +26 -0
  446. package/skills/working-with-mbx/references/cli/cache/projects.md +23 -0
  447. package/skills/working-with-mbx/references/cli/cache/remove.md +30 -0
  448. package/skills/working-with-mbx/references/cli/cache/stats.md +24 -0
  449. package/skills/working-with-mbx/references/cli/cache/trace.md +27 -0
  450. package/skills/working-with-mbx/references/cli/cache/verify.md +23 -0
  451. package/skills/working-with-mbx/references/cli/cache.md +35 -0
  452. package/skills/working-with-mbx/references/cli/clean.md +27 -0
  453. package/skills/working-with-mbx/references/cli/completion.md +27 -0
  454. package/skills/working-with-mbx/references/cli/doctor.md +24 -0
  455. package/skills/working-with-mbx/references/cli/exec.md +28 -0
  456. package/skills/working-with-mbx/references/cli/explain.md +29 -0
  457. package/skills/working-with-mbx/references/cli/gc.md +28 -0
  458. package/skills/working-with-mbx/references/cli/prefetch.md +27 -0
  459. package/skills/working-with-mbx/references/cli/setup.md +28 -0
  460. package/skills/working-with-mbx/references/cli/stats.md +24 -0
  461. package/skills/working-with-mbx/references/cli/tui.md +24 -0
  462. package/skills/working-with-mbx/references/cli.md +58 -0
  463. package/skills/working-with-mbx/references/compared.md +67 -0
  464. package/skills/working-with-mbx/references/configuration.md +724 -0
  465. package/skills/working-with-mbx/references/cookbook/fork-prs.md +82 -0
  466. package/skills/working-with-mbx/references/cookbook/local-development.md +127 -0
  467. package/skills/working-with-mbx/references/cookbook/migrate.md +67 -0
  468. package/skills/working-with-mbx/references/dashboard.md +89 -0
  469. package/skills/working-with-mbx/references/faq.md +75 -0
  470. package/skills/working-with-mbx/references/getting-started.md +147 -0
  471. package/skills/working-with-mbx/references/github-action.md +254 -0
  472. package/skills/working-with-mbx/references/guide.md +59 -0
  473. package/skills/working-with-mbx/references/how-it-works.md +86 -0
  474. package/skills/working-with-mbx/references/incremental.md +78 -0
  475. package/skills/working-with-mbx/references/index.md +57 -0
  476. package/skills/working-with-mbx/references/installation.md +101 -0
  477. package/skills/working-with-mbx/references/limits.md +182 -0
  478. package/skills/working-with-mbx/references/linkers.md +75 -0
  479. package/skills/working-with-mbx/references/managed-targets.md +197 -0
  480. package/skills/working-with-mbx/references/protocol-compatibility.md +103 -0
  481. package/skills/working-with-mbx/references/remote-cache.md +190 -0
  482. package/skills/working-with-mbx/references/scheduling.md +65 -0
  483. package/skills/working-with-mbx/references/setup.md +157 -0
  484. package/skills/working-with-mbx/references/stability.md +43 -0
  485. package/skills/working-with-mbx/references/standalone-builds.md +102 -0
  486. package/skills/working-with-mbx/references/stats.md +49 -0
  487. package/skills/working-with-mbx/references/troubleshooting.md +136 -0
  488. package/skills/working-with-mbx/references/tui.md +163 -0
  489. package/skills/working-with-mbx/update-docs.sh +49 -0
  490. package/skills/working-with-mise/SKILL.md +297 -0
  491. package/skills/working-with-mise/references/cli/activate-html.md +90 -0
  492. package/skills/working-with-mise/references/cli/alias-html.md +30 -0
  493. package/skills/working-with-mise/references/cli/backends-html.md +40 -0
  494. package/skills/working-with-mise/references/cli/bin-paths-html.md +37 -0
  495. package/skills/working-with-mise/references/cli/bootstrap-html.md +109 -0
  496. package/skills/working-with-mise/references/cli/cache-html.md +40 -0
  497. package/skills/working-with-mise/references/cli/completion-html.md +76 -0
  498. package/skills/working-with-mise/references/cli/config-html.md +44 -0
  499. package/skills/working-with-mise/references/cli/daemons-html.md +48 -0
  500. package/skills/working-with-mise/references/cli/deactivate-html.md +47 -0
  501. package/skills/working-with-mise/references/cli/deps-html.md +89 -0
  502. package/skills/working-with-mise/references/cli/doctor-html.md +46 -0
  503. package/skills/working-with-mise/references/cli/dotfiles-html.md +57 -0
  504. package/skills/working-with-mise/references/cli/edit-html.md +48 -0
  505. package/skills/working-with-mise/references/cli/en-html.md +62 -0
  506. package/skills/working-with-mise/references/cli/env-html.md +57 -0
  507. package/skills/working-with-mise/references/cli/exec-html.md +79 -0
  508. package/skills/working-with-mise/references/cli/exec.md +79 -0
  509. package/skills/working-with-mise/references/cli/fmt-html.md +44 -0
  510. package/skills/working-with-mise/references/cli/generate-html.md +43 -0
  511. package/skills/working-with-mise/references/cli/implode-html.md +35 -0
  512. package/skills/working-with-mise/references/cli/install-html.md +83 -0
  513. package/skills/working-with-mise/references/cli/install-into-html.md +47 -0
  514. package/skills/working-with-mise/references/cli/latest-html.md +62 -0
  515. package/skills/working-with-mise/references/cli/link-html.md +57 -0
  516. package/skills/working-with-mise/references/cli/lock-html.md +114 -0
  517. package/skills/working-with-mise/references/cli/ls-html.md +95 -0
  518. package/skills/working-with-mise/references/cli/ls-remote-html.md +61 -0
  519. package/skills/working-with-mise/references/cli/mcp-html.md +57 -0
  520. package/skills/working-with-mise/references/cli/oci-html.md +41 -0
  521. package/skills/working-with-mise/references/cli/outdated-html.md +79 -0
  522. package/skills/working-with-mise/references/cli/packslip-html.md +38 -0
  523. package/skills/working-with-mise/references/cli/patrons-html.md +45 -0
  524. package/skills/working-with-mise/references/cli/plugins-html.md +46 -0
  525. package/skills/working-with-mise/references/cli/prune-html.md +56 -0
  526. package/skills/working-with-mise/references/cli/registry-html.md +59 -0
  527. package/skills/working-with-mise/references/cli/reshim-html.md +46 -0
  528. package/skills/working-with-mise/references/cli/run-html.md +152 -0
  529. package/skills/working-with-mise/references/cli/search-html.md +69 -0
  530. package/skills/working-with-mise/references/cli/self-update-html.md +42 -0
  531. package/skills/working-with-mise/references/cli/set-html.md +116 -0
  532. package/skills/working-with-mise/references/cli/settings-html.md +78 -0
  533. package/skills/working-with-mise/references/cli/shell-alias-html.md +39 -0
  534. package/skills/working-with-mise/references/cli/shell-html.md +53 -0
  535. package/skills/working-with-mise/references/cli/skills-html.md +39 -0
  536. package/skills/working-with-mise/references/cli/sponsors-html.md +31 -0
  537. package/skills/working-with-mise/references/cli/ssh-html.md +45 -0
  538. package/skills/working-with-mise/references/cli/sync-html.md +37 -0
  539. package/skills/working-with-mise/references/cli/tasks-html.md +61 -0
  540. package/skills/working-with-mise/references/cli/test-tool-html.md +49 -0
  541. package/skills/working-with-mise/references/cli/token-html.md +37 -0
  542. package/skills/working-with-mise/references/cli/tool-alias-html.md +41 -0
  543. package/skills/working-with-mise/references/cli/tool-html.md +55 -0
  544. package/skills/working-with-mise/references/cli/tool-stub-html.md +60 -0
  545. package/skills/working-with-mise/references/cli/trust-html.md +63 -0
  546. package/skills/working-with-mise/references/cli/uninstall-html.md +62 -0
  547. package/skills/working-with-mise/references/cli/unset-html.md +59 -0
  548. package/skills/working-with-mise/references/cli/untrust-html.md +35 -0
  549. package/skills/working-with-mise/references/cli/unuse-html.md +74 -0
  550. package/skills/working-with-mise/references/cli/upgrade-html.md +133 -0
  551. package/skills/working-with-mise/references/cli/use-html.md +130 -0
  552. package/skills/working-with-mise/references/cli/use.md +130 -0
  553. package/skills/working-with-mise/references/cli/version-html.md +46 -0
  554. package/skills/working-with-mise/references/cli/watch-html.md +465 -0
  555. package/skills/working-with-mise/references/cli/where-html.md +53 -0
  556. package/skills/working-with-mise/references/cli/which-html.md +55 -0
  557. package/skills/working-with-mise/references/configuration/environments-html.md +171 -0
  558. package/skills/working-with-mise/references/configuration/project-diagnostics-html.md +93 -0
  559. package/skills/working-with-mise/references/configuration/settings-html.md +3062 -0
  560. package/skills/working-with-mise/references/configuration/vars-html.md +167 -0
  561. package/skills/working-with-mise/references/dev-tools/aliases-html.md +97 -0
  562. package/skills/working-with-mise/references/dev-tools/backend_architecture-html.md +198 -0
  563. package/skills/working-with-mise/references/dev-tools/backends/aqua-html.md +274 -0
  564. package/skills/working-with-mise/references/dev-tools/backends/aqua.md +274 -0
  565. package/skills/working-with-mise/references/dev-tools/backends/asdf-html.md +98 -0
  566. package/skills/working-with-mise/references/dev-tools/backends/asdf.md +98 -0
  567. package/skills/working-with-mise/references/dev-tools/backends/cargo-html.md +240 -0
  568. package/skills/working-with-mise/references/dev-tools/backends/cargo.md +240 -0
  569. package/skills/working-with-mise/references/dev-tools/backends/conda-html.md +125 -0
  570. package/skills/working-with-mise/references/dev-tools/backends/dotnet-html.md +142 -0
  571. package/skills/working-with-mise/references/dev-tools/backends/forgejo-html.md +533 -0
  572. package/skills/working-with-mise/references/dev-tools/backends/gem-html.md +77 -0
  573. package/skills/working-with-mise/references/dev-tools/backends/gem.md +77 -0
  574. package/skills/working-with-mise/references/dev-tools/backends/github-html.md +622 -0
  575. package/skills/working-with-mise/references/dev-tools/backends/github.md +622 -0
  576. package/skills/working-with-mise/references/dev-tools/backends/gitlab-html.md +546 -0
  577. package/skills/working-with-mise/references/dev-tools/backends/go-html.md +115 -0
  578. package/skills/working-with-mise/references/dev-tools/backends/go.md +115 -0
  579. package/skills/working-with-mise/references/dev-tools/backends/http-html.md +644 -0
  580. package/skills/working-with-mise/references/dev-tools/backends/http.md +644 -0
  581. package/skills/working-with-mise/references/dev-tools/backends/npm-html.md +436 -0
  582. package/skills/working-with-mise/references/dev-tools/backends/npm.md +436 -0
  583. package/skills/working-with-mise/references/dev-tools/backends/packslip-html.md +310 -0
  584. package/skills/working-with-mise/references/dev-tools/backends/pipx-html.md +329 -0
  585. package/skills/working-with-mise/references/dev-tools/backends/pipx.md +329 -0
  586. package/skills/working-with-mise/references/dev-tools/backends/pkgx-html.md +73 -0
  587. package/skills/working-with-mise/references/dev-tools/backends/pypi-html.md +331 -0
  588. package/skills/working-with-mise/references/dev-tools/backends/s3-html.md +346 -0
  589. package/skills/working-with-mise/references/dev-tools/backends/spm-html.md +201 -0
  590. package/skills/working-with-mise/references/dev-tools/backends/ubi-html.md +232 -0
  591. package/skills/working-with-mise/references/dev-tools/backends/vfox-html.md +173 -0
  592. package/skills/working-with-mise/references/dev-tools/backends/vfox.md +173 -0
  593. package/skills/working-with-mise/references/dev-tools/backends.md +32 -0
  594. package/skills/working-with-mise/references/dev-tools/comparison-to-asdf-html.md +112 -0
  595. package/skills/working-with-mise/references/dev-tools/deps-html.md +390 -0
  596. package/skills/working-with-mise/references/dev-tools/github-tokens-html.md +390 -0
  597. package/skills/working-with-mise/references/dev-tools/index-html.md +420 -0
  598. package/skills/working-with-mise/references/dev-tools/mise-lock-html.md +660 -0
  599. package/skills/working-with-mise/references/dev-tools/mise-oci-html.md +418 -0
  600. package/skills/working-with-mise/references/dev-tools/packslip-resources-html.md +203 -0
  601. package/skills/working-with-mise/references/dev-tools/packslip-verification-html.md +178 -0
  602. package/skills/working-with-mise/references/dev-tools/shims-html.md +397 -0
  603. package/skills/working-with-mise/references/dev-tools/tool-stubs-html.md +416 -0
  604. package/skills/working-with-mise/references/guides/getting-started.md +268 -0
  605. package/skills/working-with-mise/references/index.md +37 -0
  606. package/skills/working-with-mise/update-docs.sh +111 -0
  607. package/skills/xgent-app-release/SKILL.md +507 -0
  608. package/skills/xgent-app-release/references/build-and-package.md +70 -0
  609. package/skills/xgent-app-release/references/embed-csp.mjs +126 -0
  610. package/skills/xgent-app-release/references/frontend-archive.md +67 -0
  611. package/skills/xgent-app-release/references/public-delivery.md +75 -0
  612. package/skills/xgent-app-release/references/publish-api.md +321 -0
  613. package/skills/xgent-app-release/references/troubleshooting.md +124 -0
  614. package/skills/xgent-app-release/references/verify-preflight.mjs +50 -0
  615. package/skills/xgent-app-release/scripts/npm-token.mjs +99 -0
  616. package/skills/xgent-app-release/scripts/preflight.mjs +351 -0
  617. package/skills/xgent-app-release/scripts/registry-config.mjs +88 -0
  618. package/skills/xgent-image-push/SKILL.md +239 -0
  619. package/skills/xgent-image-push/registry.env.example +51 -0
  620. package/skills/xgent-image-push/scripts/push-image.sh +576 -0
  621. package/skills/xgent-init/SKILL.md +37 -0
  622. package/skills/xgent-init/references/external-app-AGENTS.template.md +149 -0
  623. package/skills/xgent-init/references/external-app-DESIGN.template.md +317 -0
  624. package/skills/xgent-init/references/external-app-PRODUCT.template.md +87 -0
  625. package/skills/xgent-init/references/fill-guide.md +66 -0
  626. package/skills/xgent-init/scripts/check-docs.mjs +232 -0
  627. package/vendor/impeccable/LICENSE +191 -0
  628. package/vendor/impeccable/NOTICE.md +11 -0
  629. package/vendor/impeccable/VERSION.json +22 -0
  630. package/vendor/impeccable/bundle/blobs/00c067253d37cd20a41dbe9c806d6a72cbff983ad1418b3c3e447998f577b9c2 +152 -0
  631. package/vendor/impeccable/bundle/blobs/00d167d9183c8d0c6c0682055107382e6672bacf7a712de0abc8f157c2cb2210 +86 -0
  632. package/vendor/impeccable/bundle/blobs/00f053b877a92a9847d69eec2403e40c757152f30a5ca807c5033c58d7c297f1 +33 -0
  633. package/vendor/impeccable/bundle/blobs/012f548547fae48ebdd22a3c3af8a01032641fddd530e3783bd73b7358ab2c49 +80 -0
  634. package/vendor/impeccable/bundle/blobs/016c082dcd2aa8f3c080a757c8ed335c6070a904bd2f39668bb9d3e6f95929c1 +24 -0
  635. package/vendor/impeccable/bundle/blobs/0221a193d111a9de33a785706a603e55dd974a115f549dbdf74e0f9ec72bde7d +101 -0
  636. package/vendor/impeccable/bundle/blobs/03b30331c176a248a3b3bd17abdff1a1fd658f09ffb2a412b36ae9627dd3f33b +105 -0
  637. package/vendor/impeccable/bundle/blobs/055c571f2960b8f929d6a8d3806a4d32dfcb9750b3ef8b60adc8930fff34b559 +101 -0
  638. package/vendor/impeccable/bundle/blobs/058f81f256134841875fd3183e06b37a023de0c877fd2b9eecd97011640791fe +46 -0
  639. package/vendor/impeccable/bundle/blobs/05aa836a190f4ff62e5d4619738bdb891d83d85e35d81c2e6e322d1dc084d802 +80 -0
  640. package/vendor/impeccable/bundle/blobs/05e86f37d7fa381c5e8a04b6212490a27904d3be3e9384862a0764d3daba6d78 +54 -0
  641. package/vendor/impeccable/bundle/blobs/0605c8729dc638a46798e90ab12486fe3ae3372a869757cfb387a08e23b3c84a +152 -0
  642. package/vendor/impeccable/bundle/blobs/0617b37a905f0486c1ab4e91a287c8ef8292e253095c340f452d591206272f73 +104 -0
  643. package/vendor/impeccable/bundle/blobs/0648e4e06d01cabc91fa7dc19256ceedeeeea213b9265e9d36b0918370e16fb2 +318 -0
  644. package/vendor/impeccable/bundle/blobs/06b20bd42e5682a42c5d6fbfaad4c55e66ff9b9d99a604bd31d3545af120fc2d +101 -0
  645. package/vendor/impeccable/bundle/blobs/076a31941acbaa81013c8c511e146ed4138128eb5e9895dae3e9a27a25ac4f04 +13 -0
  646. package/vendor/impeccable/bundle/blobs/08346755b13f1a3f7c6fb4e512387884b80467aaeff109fd41f5521d2a95635a +113 -0
  647. package/vendor/impeccable/bundle/blobs/08398fa2d8e2b06b849f1c0f032e1e93b832e9294aed35c1c7f62b938d62ee80 +43 -0
  648. package/vendor/impeccable/bundle/blobs/087f6715114e901c2ce00b438e75b82fd48978c020a782f3dc361d39eb7198a6 +26 -0
  649. package/vendor/impeccable/bundle/blobs/08812a8618de7bd2f63a51298e9c2558031237e8efba280062ccb636101e25e1 +80 -0
  650. package/vendor/impeccable/bundle/blobs/08a2980eae0bfea1f00229899defc28ec92c7ecb875bf5fb02e4ba80dad6c394 +806 -0
  651. package/vendor/impeccable/bundle/blobs/08d78eb31c561256f83baa0afa742a660f1467aa2c81be2f60c2b7f9c770d66e +54 -0
  652. package/vendor/impeccable/bundle/blobs/09310582ed23393b171eb99ad4a288cc422ac53c26d76311586ce54c6df77b22 +113 -0
  653. package/vendor/impeccable/bundle/blobs/098a891028ce59c212b747d3c70468dd750aff7053a703d1336045ed31e0da7c +70 -0
  654. package/vendor/impeccable/bundle/blobs/0a151a54959a15eb32fa338890d5d64ac48a9d54d2d5442c3c7708a4c27c1858 +104 -0
  655. package/vendor/impeccable/bundle/blobs/0bb4085f6dda702846e0e56bd4f797aa1b046ab48eca02644448e368f3820f88 +104 -0
  656. package/vendor/impeccable/bundle/blobs/0bc2bc36ca6e74f9f610392f1a4fb8f57b2676238ba1f9c65cd8714f5d27e8a2 +42 -0
  657. package/vendor/impeccable/bundle/blobs/0bc7d7971b3edf2acd0580e847458dc6d84129d90715b452799ace3bed815c7c +84 -0
  658. package/vendor/impeccable/bundle/blobs/0bf6f08bf34d24cd88a78d544add9e4d71478bcf939926cde32f4e164882c775 +105 -0
  659. package/vendor/impeccable/bundle/blobs/0c064c9975f25f6eb5cf7911c2eeafd3e695d729f8c86a49a24ff2d76cb3cd94 +63 -0
  660. package/vendor/impeccable/bundle/blobs/0ccf57f758eb0d53bc32c5c77156f016e528d20fe2c2740662bf19964dfbb00b +152 -0
  661. package/vendor/impeccable/bundle/blobs/0dd1e6ccf053cb80e057caf7bf2fef30fd0197a41d907a1a8d2d2d02f6978674 +63 -0
  662. package/vendor/impeccable/bundle/blobs/0e081d496eba4bd77aca81723d59120c10177a71c9551a60ab923c356fb3cf38 +104 -0
  663. package/vendor/impeccable/bundle/blobs/0e18ac33b7e6a247b658fcaf926d9eac028399597dbaba366f1d2f2b884a383b +325 -0
  664. package/vendor/impeccable/bundle/blobs/0ed5986d1503399f48c11104df5e523a63be2d6558770ebfbbeb2323ca3f2ad3 +46 -0
  665. package/vendor/impeccable/bundle/blobs/11f75834c26ecd8a5b0afdf696e838953b235dc4835b7293bbc6b1bc27dd3106 +84 -0
  666. package/vendor/impeccable/bundle/blobs/14c9c9a7816026dd77494d06b8d1777c8d64785126b0c9ac8db5ebd996dfd6b6 +101 -0
  667. package/vendor/impeccable/bundle/blobs/14ef0ab84c10331f8af6b4124387a3f80b493175a04a3f89200719b4b5aea221 +152 -0
  668. package/vendor/impeccable/bundle/blobs/1547005438784032de3254cb35bff393e8187d7a459d0c20a693d9bfb0b5c1a4 +42 -0
  669. package/vendor/impeccable/bundle/blobs/162b814ddd1133923b9584bb95f85959e64844c94341d6bf10a81c06ab7cc02c +101 -0
  670. package/vendor/impeccable/bundle/blobs/1640c70b984a43e729d72d046109f87243ae84ecd64d2600a007d140558123cc +80 -0
  671. package/vendor/impeccable/bundle/blobs/16498466a97a5b19a593d5b3f245468c71784bea069d7fc8aa9690db5ac1d968 +29 -0
  672. package/vendor/impeccable/bundle/blobs/1652d639d91889a08bda7f351456c43ee30e5677aa4866a90f375e1e4be15deb +80 -0
  673. package/vendor/impeccable/bundle/blobs/16ba7fca1973c5faf53dd2ca523559129c0fe9e5f8d50b645f527afa78186cd2 +345 -0
  674. package/vendor/impeccable/bundle/blobs/16d99e9fe8e75d69042bc4fda12e93daa7e10f9fa6c00b12b0f0580b119a4cfd +105 -0
  675. package/vendor/impeccable/bundle/blobs/171777f8a8596d2ffdb43f4b935a7c6c12859ace233967f868a566390a59708e +325 -0
  676. package/vendor/impeccable/bundle/blobs/1725ca4aa546a34770f29191b58bf8dc14957d4258fb9e7d02f7b1c59c412ea4 +63 -0
  677. package/vendor/impeccable/bundle/blobs/173dd66abe65633910dcb04a51f40d6ff2a793f87088f022a02fc4cad24dd133 +94 -0
  678. package/vendor/impeccable/bundle/blobs/17c583cf8ad41266ea1e787b666b9d91fe13469d3d0f6af57c08e0146f9b17ac +58 -0
  679. package/vendor/impeccable/bundle/blobs/1898529e994bf0a31ee9ff3f87c343caea3d8a7e0986f404e129fbf89078ade0 +90 -0
  680. package/vendor/impeccable/bundle/blobs/190a4e642ca362d7499f3c3ab123e21f18f75457d11f072b545a183f296e6495 +99 -0
  681. package/vendor/impeccable/bundle/blobs/1971edc3784273bd8da7b1980779c6159471e857992faa6637178109cb130503 +806 -0
  682. package/vendor/impeccable/bundle/blobs/199d5d3db1197e053a2eb9c3cb927d44cbaaaeb57745c1ada3fd775ba50d9291 +104 -0
  683. package/vendor/impeccable/bundle/blobs/19b439d7d16e139357459d3874f739ea94dbdffeb2a0e201df1620ed1e40574d +24 -0
  684. package/vendor/impeccable/bundle/blobs/19c5bfce570a0e2bddd4d9c788936ff9070c90299363c4853ba77bfd37306e20 +416 -0
  685. package/vendor/impeccable/bundle/blobs/1b289c8c09de9d4442109ada91b1fa3a190e113a310cab7aa26a3633c5df0bb0 +24 -0
  686. package/vendor/impeccable/bundle/blobs/1bb3bdce54386e96e21b5956713a80583e6b3b9d1170f3bb8dec3819fa341bc3 +46 -0
  687. package/vendor/impeccable/bundle/blobs/1c11cb8ea42536c7a51e197f1aa32198960bb89262da2eaf32e0feb03c70792c +152 -0
  688. package/vendor/impeccable/bundle/blobs/1c6258015ed02c522948f8f1a3b6457395a8f7954497b87c1cd83f1791f9f819 +24 -0
  689. package/vendor/impeccable/bundle/blobs/1d7145fd5bf65282b2e05cf42faf41766d68e83e2b75f460b3b62d81ada5e5d7 +152 -0
  690. package/vendor/impeccable/bundle/blobs/1d72b494f46a60e6c9c06e89bab79789dd85e11f62fb4286a03abf26d352dc1f +80 -0
  691. package/vendor/impeccable/bundle/blobs/1e2f696760ee55fb154bdcc302c7d7b0fbb807e0308130594bd892dae14dc9ea +42 -0
  692. package/vendor/impeccable/bundle/blobs/1f6c3a1d7344f44eaa88b6f38334ad7d7b60201709589039a58cee73de486f5d +24 -0
  693. package/vendor/impeccable/bundle/blobs/207d443cabe4e6fe1351f91785748957f757bf1e7aeca405433c0329dad46a15 +63 -0
  694. package/vendor/impeccable/bundle/blobs/20e2111b3e065e8e8054f715ea3902e64b77886b30d2bddee723558f22942620 +90 -0
  695. package/vendor/impeccable/bundle/blobs/21e78c8a77badb3f83290cd4577ed3b24bd4dd3b57136d7da75733d4f3ee9ac0 +19 -0
  696. package/vendor/impeccable/bundle/blobs/223f08673b267f81d7586f686afe05d7cd7529a8e11ac37d979f95c2ceaae8ce +24 -0
  697. package/vendor/impeccable/bundle/blobs/238e1967d933ca5739db708f7ad9f72ca8b34bc4c9b9e1c07b0a06dcf9d00681 +806 -0
  698. package/vendor/impeccable/bundle/blobs/244e5b7bca6d22a51b4e22104a52a36e477056b03d257b56d1d4e319cd6167a8 +80 -0
  699. package/vendor/impeccable/bundle/blobs/2499b18f26639694344ca95682f47c65494f730cfff88aa9bd2aa83a22e5926d +101 -0
  700. package/vendor/impeccable/bundle/blobs/26cd88d10f8a14ed0ddb6e6b21e5e2c981f410eac93afa179202c354d7d1c0d5 +113 -0
  701. package/vendor/impeccable/bundle/blobs/275dd1b6e63bbd30d2713227c4f79b880a8bc4e01cc48d392068bb86939d3afa +38 -0
  702. package/vendor/impeccable/bundle/blobs/28f65b42c1ce9aaea35dc37a51257d7c703bb7f6553ebe3b8ca238a1007251e0 +113 -0
  703. package/vendor/impeccable/bundle/blobs/29f741b71e75fd39c65ca6df4b01b5f6c4f3c4c7adf23b47a3220ce2c0251f24 +104 -0
  704. package/vendor/impeccable/bundle/blobs/2ac1624b1253f3b6fcf2da54d54293624176539b2e9609a49245e7e46c65ca5f +42 -0
  705. package/vendor/impeccable/bundle/blobs/2b58041cd82d819d12762b10becb95f8253c661bf6a9de40f61fc01c1204b743 +806 -0
  706. package/vendor/impeccable/bundle/blobs/2b5b2fbf5f658f34ea1997fb1aeebe01604d05187f75c6a4f1f55a5bc78520a4 +104 -0
  707. package/vendor/impeccable/bundle/blobs/2b9379cdb329890eebe2384fbaa23f771745f30d8cfc43e180ebd092e69bcd2f +87 -0
  708. package/vendor/impeccable/bundle/blobs/2bc5d62463cc83d6417df7b8f4a02b4135e2b1bb654aa7727890662496f86e3d +42 -0
  709. package/vendor/impeccable/bundle/blobs/2c2ed6286bd74adef4f24ef442e2e1bc0780d44bc060aa2a4c03a03988dbafd5 +325 -0
  710. package/vendor/impeccable/bundle/blobs/2ce1722bd1a9f366182d9357d629796b1448f7a0126a854df507eb044d891cab +26 -0
  711. package/vendor/impeccable/bundle/blobs/2e4846117a2fcdc1e4bc9570a5333da839649cb8ccdac6a30a87591ca05b4bb0 +54 -0
  712. package/vendor/impeccable/bundle/blobs/2f02f96f889e0c8e0e90806af1ef17e0c162a6cc402068f434d3f7608d9deda3 +54 -0
  713. package/vendor/impeccable/bundle/blobs/2feb3768125ba6469c92a50d516727e6d42f44579165ddfd33409948e2a3803d +27 -0
  714. package/vendor/impeccable/bundle/blobs/3149a87bbed84bffe3558d5eaf1dc596b2e84d3c1be290fc7b1c13e481ae0803 +90 -0
  715. package/vendor/impeccable/bundle/blobs/31b90048c0b540daec46762a10c2b6b6434737a89af005054d8b848d829d003b +69 -0
  716. package/vendor/impeccable/bundle/blobs/3253eab02b62efa80abc74a5c85da08f3e2c6c20dff8dec38f4d236cbbfa0f3c +63 -0
  717. package/vendor/impeccable/bundle/blobs/3565d038a2eeab88a8b18ff52e6630008ab30f867f9df922a38ce8980440b2e3 +80 -0
  718. package/vendor/impeccable/bundle/blobs/3673248740bcdd1122ccc610093ba2fe52f3943a61ce0b7170b74dc49e5b6098 +416 -0
  719. package/vendor/impeccable/bundle/blobs/3753448bca49da76dd8b12d5a8b4264414673f26e49028d37616faa8beb210b7 +127 -0
  720. package/vendor/impeccable/bundle/blobs/37565671b09d983ea1ad83a9e9190bc37255d93c68445958c6facecc7e0f7c4f +33 -0
  721. package/vendor/impeccable/bundle/blobs/37680abf9a8e446619fcd33862718f483d197bf2652f966adca8dc54d2909b9d +85 -0
  722. package/vendor/impeccable/bundle/blobs/37aeddc0f2031fa89d72519ae2e7542c267872f81786fb8288fca0a49118be11 +27 -0
  723. package/vendor/impeccable/bundle/blobs/37c9a2122efa64dc8789eb47d196150b0bc635e0ba95042fd381ff157002ed50 +111 -0
  724. package/vendor/impeccable/bundle/blobs/385a0efe833bd4afe4a257e7159590de0cf1b7fd8f7b213b732f1e537c62dab7 +21 -0
  725. package/vendor/impeccable/bundle/blobs/3898bd9b56a042e860a0db4fb4dd81ac81126fa218b604702e2ac0c2287ae09b +345 -0
  726. package/vendor/impeccable/bundle/blobs/3970c8e24615610b0246585e49146f6762d5082b3c8fddc08a00940d6e72d394 +80 -0
  727. package/vendor/impeccable/bundle/blobs/39ac044f2e45a9e7eed8eb68fe91d32938160eb7f8fa93d2afc42fc80a0c3c10 +54 -0
  728. package/vendor/impeccable/bundle/blobs/39d9600489073e227e4f4d55c451ce4252a6632ed7ae37923efbbcbc91f16d07 +206 -0
  729. package/vendor/impeccable/bundle/blobs/3af7c46309f748ff3845f16455a431ec0e9e807e5e3a965e96e9ee75a1198eb8 +95 -0
  730. package/vendor/impeccable/bundle/blobs/3b2b60f23fa8ed9d73e721e17142c3933dc5318fa9a251742a76fee890ac81a8 +26 -0
  731. package/vendor/impeccable/bundle/blobs/3bcf81b938a0f0309e9ed6616f4bd18d82f07e2801411ee4cce51220d417eb95 +80 -0
  732. package/vendor/impeccable/bundle/blobs/3bd55b35c253f7841ca4e6e1a855a4b477d59aa2daf6e61e93fd685caaaff131 +63 -0
  733. package/vendor/impeccable/bundle/blobs/3bed76a0d528e2d73da8acae4dc63702bdb5baca5ab11600d70e75fc9f2ba90b +42 -0
  734. package/vendor/impeccable/bundle/blobs/3e3b6fdc6afbc2c2a734d08d6a18b393b7139c56f28f91f82e13e5555b98018a +84 -0
  735. package/vendor/impeccable/bundle/blobs/3ef9a43006bc68d83bc958fc8401e59f9beb6379048f5ced047747fdad05b895 +46 -0
  736. package/vendor/impeccable/bundle/blobs/3f2c351303b74e217907006fb9c55ada2ef596e9710c13d631e20506d17b9ee8 +325 -0
  737. package/vendor/impeccable/bundle/blobs/400419aaa20f710e1a7e5ca1fce9e8bc995c4db84053f40cf778d987619e0210 +24 -0
  738. package/vendor/impeccable/bundle/blobs/402373ef95962ecb81dd3d7cf70ecb3bd3e22a2bd2aabb4c0d76f7f4f9447870 +105 -0
  739. package/vendor/impeccable/bundle/blobs/40c87038b5f75147a5952a96237acf312a327bf70c1bcd8e0a5f064625ae9668 +51 -0
  740. package/vendor/impeccable/bundle/blobs/40cd6024312a1339aa66801df533afa543e60c36e708f0f9659dd8d558f83dce +63 -0
  741. package/vendor/impeccable/bundle/blobs/412dd9a5238aee223397591fe49b3bd27b6b53d649a0e67ed8570f3e199cebb9 +24 -0
  742. package/vendor/impeccable/bundle/blobs/41ef23c048ab739f48afdce26a2678d36ee40bcced34ef4b969d1d8ffafca64c +113 -0
  743. package/vendor/impeccable/bundle/blobs/420d82fe41884b7aa8c28750520146d8160c91396ac332a96b2d82a90b017fb2 +80 -0
  744. package/vendor/impeccable/bundle/blobs/424ff273e7ab283d6695d127bb502675627193f5b752d7b43b7524bcfc42f43f +84 -0
  745. package/vendor/impeccable/bundle/blobs/42831c3cd874346d8e7f120808d91e6ed3cda5c3eca6eefd76b126659536bc87 +148 -0
  746. package/vendor/impeccable/bundle/blobs/42a71df98075f66e6eb396b69ef3d6b1c3db46d1c1d24b4edc9d15f53d193ecb +111 -0
  747. package/vendor/impeccable/bundle/blobs/43dbfcb7c2e54c9cca9fce66024f17c06a2f2be645547b718b75c8828a463de2 +24 -0
  748. package/vendor/impeccable/bundle/blobs/442749aed338f51c1a3ccfb182c6ade9b74b90590b67984062ac94a5b100e914 +80 -0
  749. package/vendor/impeccable/bundle/blobs/4435529820c3fc2eceae8b1ee35c906a34c7612fb860117e896152b45aee0770 +26 -0
  750. package/vendor/impeccable/bundle/blobs/44a60aedcc350c2d7d501d0f830a31a586a6511a9ff9b4e361cb328bb747339d +101 -0
  751. package/vendor/impeccable/bundle/blobs/45dcea8da47cc21f447041daa942cf5d92cddde9a5a02c196cedbd159c829304 +47 -0
  752. package/vendor/impeccable/bundle/blobs/464c0c2b33d278375aec66caf95518f5e7ccd0aad1bea3f9dd553ed47815daa1 +325 -0
  753. package/vendor/impeccable/bundle/blobs/4700adf4542874f204c680ebad8317a97bf7169dbc04147082618ab59ce70c7d +85 -0
  754. package/vendor/impeccable/bundle/blobs/4777bbeaff2efcd6a2a66b07aacaaf57cd32f3fab1c1da5a0513937fafb48bd1 +63 -0
  755. package/vendor/impeccable/bundle/blobs/47b3461f6f76db80fdc49fc7542552d65fed24edc8d30d903cb76aefbad0ed05 +84 -0
  756. package/vendor/impeccable/bundle/blobs/47edbdfaf27073c47033d1ac7dfee881be49e2dcbda7671d1157300481dde6da +1 -0
  757. package/vendor/impeccable/bundle/blobs/484ea165f6d49ecc15b7a5c5623e377f2e203f4dad366df23eae99255ecf4572 +152 -0
  758. package/vendor/impeccable/bundle/blobs/485774d58dfd5796956024cdd9c12f05e692a3703f70b12a02ab43918885c3fd +101 -0
  759. package/vendor/impeccable/bundle/blobs/4879f38b23d0a251a63cbb0327e660296194cd2e71eb4da3236c6ebfe5807746 +33 -0
  760. package/vendor/impeccable/bundle/blobs/488da2e7406c6b4b5c92d7bc8cbd370cdaafc82a5f3ab5adbcffb21d1d1c4df4 +113 -0
  761. package/vendor/impeccable/bundle/blobs/48bb7c3b738f57fa4f3f714d7e3e919879036f3e751135a9acc1c5ede1850ea6 +54 -0
  762. package/vendor/impeccable/bundle/blobs/492a8030d11e2f4908d934bd817bd6d16a3164056c74a7172f60e2cec5ff3055 +42 -0
  763. package/vendor/impeccable/bundle/blobs/494d6fcb4701c437597c2ed16a9595af92f3d9ad53c944c96a2fb563bd766af5 +99 -0
  764. package/vendor/impeccable/bundle/blobs/4972f28d96897c8dec891f0de7a0d9d51f36030ff780ed9d960241c75413da2b +46 -0
  765. package/vendor/impeccable/bundle/blobs/49a7b37b98fb6e3ef68154174677ff4b9f1715efcffdbf6b30c3535b3e4e302c +54 -0
  766. package/vendor/impeccable/bundle/blobs/4a6f0386bff78bb42efa285df2919e75209ec336672cf5fff91ba66ffb352eaa +63 -0
  767. package/vendor/impeccable/bundle/blobs/4a8a45a46b79948a64b484edf389aa0b00fc80de855470cbabe3c7c71268f345 +828 -0
  768. package/vendor/impeccable/bundle/blobs/4ad7c5d5821f85c2311ff91746d9b9cf272dbe0a9a5b61687f77681f5a13f812 +69 -0
  769. package/vendor/impeccable/bundle/blobs/4b0e2eea17f297daa06b17578131775be099ef43addf91007f4b7e295454f64f +105 -0
  770. package/vendor/impeccable/bundle/blobs/4bceaf3346b6f5100b5a54deaae49a38b975dd134df2836675848f06ff1e7e11 +806 -0
  771. package/vendor/impeccable/bundle/blobs/4df48b7a86d525ad12e7889a1fd16b06ed4b25a9470c359c7193a6d82649262f +54 -0
  772. package/vendor/impeccable/bundle/blobs/4e3cc4d0e229ca96dd2e28fb2da0478a7f0bb64e447d07a652c425d8fbc57573 +113 -0
  773. package/vendor/impeccable/bundle/blobs/4ea8e05d0f88d24f182ad554da84317f90b9730e29fad262143ddf423a1f8645 +26 -0
  774. package/vendor/impeccable/bundle/blobs/4fb6d2fcc8afaf827a7377ddd604725264fd83be871e2d35062e9d1939144404 +25 -0
  775. package/vendor/impeccable/bundle/blobs/50d4b14134fc06daeac0aab6960800f171ef85250d3bcce6f246cf81e824463f +88 -0
  776. package/vendor/impeccable/bundle/blobs/50f3b5714ca3e2c1bcf070003733407935ee050609d3123c2c065489fbc9950b +43 -0
  777. package/vendor/impeccable/bundle/blobs/51032bb883137007127d30189b44b516d0e6140271bf5881da7eca76f8bd282c +113 -0
  778. package/vendor/impeccable/bundle/blobs/511ecde67e6bd976c9bdfa8d92f0dba359621344f8135c2a5ce5a66b385a4cb5 +42 -0
  779. package/vendor/impeccable/bundle/blobs/514a27fc9830455828d337cfc2fa95fa86be8e5464501bbabb9aca09a66b40ad +63 -0
  780. package/vendor/impeccable/bundle/blobs/521391d55814fdef6cd648ed62154a14d77b324004a0fc2d06c0a4e97857eab2 +806 -0
  781. package/vendor/impeccable/bundle/blobs/529cb2ace696ec11a86f4b010c9b137acf282072e483932181be1871df2aa690 +152 -0
  782. package/vendor/impeccable/bundle/blobs/52e861ac390a62c4473ae0cf87ff18dd6d721afa6557910492dd8ed28bd9970d +84 -0
  783. package/vendor/impeccable/bundle/blobs/532d6387db6f5da1a59dc7d29ce4d8ba6ca044626c367dc16e1cb8b981eb2d9a +104 -0
  784. package/vendor/impeccable/bundle/blobs/53628d05b7eff0d4f48b95e48fad40266452fe1b42f398bd88dd9328353e0dd8 +101 -0
  785. package/vendor/impeccable/bundle/blobs/53de37260c4f1c37e467557e9b038faa0f285b056bb2b95f435e0a7d1b69b0de +89 -0
  786. package/vendor/impeccable/bundle/blobs/5415103ca4422ea1422e23bfe9f9bae181f5d6d6407442f7fba31856ada58d12 +113 -0
  787. package/vendor/impeccable/bundle/blobs/54e71283cbd5646021fcd8eaa28d85852ec5288109c306aca9db9e2e4832338e +69 -0
  788. package/vendor/impeccable/bundle/blobs/5515d5210fbe2ef64e611ef2827a7204b7cea2f9df059f3ea499931f45065d93 +104 -0
  789. package/vendor/impeccable/bundle/blobs/56285b28b0ffe471761c2ad062d3f933ed2346ca1b617f1323a30fed99a1a852 +24 -0
  790. package/vendor/impeccable/bundle/blobs/56500b1f9d2fcec8324d7f448d813048b5831a46d3feeb1055bd3eb17ec3660f +70 -0
  791. package/vendor/impeccable/bundle/blobs/56cc1bba51e6805de370160ce4a9399fef3740571204f13c3c751725870305e5 +113 -0
  792. package/vendor/impeccable/bundle/blobs/571526fd5c60a586ff65bdb3f8333f26c36ae227f5f5ece826f4a43b4d4aee0f +325 -0
  793. package/vendor/impeccable/bundle/blobs/571f5c3bcf01c9b1bd02ab853a54db3f88375c4b8f39dd67d53e983a33e08bb7 +26 -0
  794. package/vendor/impeccable/bundle/blobs/57e28934208e3eac653ab59c5c6a5e4eace44906d8ac86472988242d777ca5a1 +54 -0
  795. package/vendor/impeccable/bundle/blobs/5855d7595b0212bb8d521e0265378d437df8d2343d5f8a30408c3edde0a14d96 +85 -0
  796. package/vendor/impeccable/bundle/blobs/599afc25c1d6d083e4d4e60e1617ab05f6c5ecd52be75473f3788063219aa174 +31 -0
  797. package/vendor/impeccable/bundle/blobs/5a07d4769a741cd00fdf8c95b943ef072eb12cd0c9e2c2d2622d5fe0a4fa3894 +46 -0
  798. package/vendor/impeccable/bundle/blobs/5a9626fb8c1e9051155c68626fe7c765a55be325113245d44b4991fc3d3b014e +44 -0
  799. package/vendor/impeccable/bundle/blobs/5b5dcf7029376ee6fbcf13e5975eb828dd1dbf41736c1bd5017dcda8173b1ebc +325 -0
  800. package/vendor/impeccable/bundle/blobs/5be952da521a2d5fb799c834d14ce5388284374bc23c5efcec737a05aa65d878 +84 -0
  801. package/vendor/impeccable/bundle/blobs/5c036648951d555e73be63161e5c9edcba146d8e9f64b1604ffdea765cde5d9d +131 -0
  802. package/vendor/impeccable/bundle/blobs/5c4cd151c97dae824a039211d7ccfba4c572b76d8f079c6186ba1dd5dae7732b +54 -0
  803. package/vendor/impeccable/bundle/blobs/5ce0631eacaae6d9fbb23ade26a774a20142cb40d3a8d5608a3fb9dbc4116b60 +806 -0
  804. package/vendor/impeccable/bundle/blobs/5db17cd013c10dca0012bc18aee7276280941579aa50757682e9ce60c4f7a006 +104 -0
  805. package/vendor/impeccable/bundle/blobs/5e354ae11913d5846faa3681a9ed98b68d1881fbbb1ecebf0769e3010bb0a426 +42 -0
  806. package/vendor/impeccable/bundle/blobs/5e6eea05456108b8766cf354dda998e90b6a5ecca7f15d807e28659ee78c306f +42 -0
  807. package/vendor/impeccable/bundle/blobs/5fae7f8a2fc3ddd49ad0a413446dc44daedef5b6b7de5eb935bd2fbfad646d58 +92 -0
  808. package/vendor/impeccable/bundle/blobs/634257e766b1fecacd25e27dbfc7e21ef3b440b01e94e92b8b17711018d8a661 +152 -0
  809. package/vendor/impeccable/bundle/blobs/6428239079f98fd6500e9fd032dd289b52052da7a4364ff357b0a5341b6444db +63 -0
  810. package/vendor/impeccable/bundle/blobs/647bab2f5cf6279d58d808f4df05d1ac63c1c86c6df9d13406ae776458653995 +42 -0
  811. package/vendor/impeccable/bundle/blobs/64802d14087fc96b38ef3881fef8098b36068d07f3b942031637b18eef3dd2af +84 -0
  812. package/vendor/impeccable/bundle/blobs/64807d8f43267f4ed879e997834bbf793bd4605ba1dc65f4b545324b660a7063 +80 -0
  813. package/vendor/impeccable/bundle/blobs/6528f2aebe4a425b724de293c8f6dc8a42ca80c7f1ed3039b8b9a813b004956a +87 -0
  814. package/vendor/impeccable/bundle/blobs/6575a657642ccdab42d0743ceaee06621c77811b4dc4f21c616e28aabf5e28ef +42 -0
  815. package/vendor/impeccable/bundle/blobs/66d60356172ccafdd334fca9bf33243c8409216a733dcde0d66a24fd70ee8132 +1 -0
  816. package/vendor/impeccable/bundle/blobs/68c5636a7858dd0b5137a9229c15e25fdc2ee40a0f8a4e9d809f78e809256262 +327 -0
  817. package/vendor/impeccable/bundle/blobs/696c15f96d49a03091b71a408151a3297521f7a8231b98ca9b1103667a0b5f89 +80 -0
  818. package/vendor/impeccable/bundle/blobs/69be9bb887f4d8ba4ead24928f9b97d122c796e731652fc0c08f195ab8ec2815 +105 -0
  819. package/vendor/impeccable/bundle/blobs/69cad1ae7355825ef320ac9638a1c9675ba9fda01c9a0fa12244cc4a1973e550 +214 -0
  820. package/vendor/impeccable/bundle/blobs/6acc0bf221a4ddc6e5c6438348920b2ca2393b29c4314dbde2cdc23f2b1a9639 +58 -0
  821. package/vendor/impeccable/bundle/blobs/6bc62a59f6fef0b749927c8d10e9849ab2411199d86d70772a86f8e83ac309f5 +29 -0
  822. package/vendor/impeccable/bundle/blobs/6c382f8283756e8a693d832b750f7e4cbff1ca5bdcc3825b2b4ef4da9f21876a +94 -0
  823. package/vendor/impeccable/bundle/blobs/6c9ce3e27ec4520ead001da3aad2a2ebba481c4e5cd22873db8890259ee579fe +95 -0
  824. package/vendor/impeccable/bundle/blobs/6d21d8e2729effaecc5b6239dadbcffb1ec8d51e8bdadeb47a39827266a61c5e +26 -0
  825. package/vendor/impeccable/bundle/blobs/6d368b679a0ed1815812815de65863b5840d419589dfbda06224c01149240287 +258 -0
  826. package/vendor/impeccable/bundle/blobs/6d9258a49c0b0583ec255eeb1092554298d5eea676fb9391f5a5a1377c3fd770 +87 -0
  827. package/vendor/impeccable/bundle/blobs/6e7e3b7c4cf331cdb43f4546c164acd6c45a267ce3289dcfa87e13202d98c747 +104 -0
  828. package/vendor/impeccable/bundle/blobs/6f4dfe968f47302ea64dca0e02f8c6d81497d93e4f436d09236e305456cbcc02 +87 -0
  829. package/vendor/impeccable/bundle/blobs/6f7f1639a933ed88e116aa8ab0cfb951096930d14f413349ae22ed04e28d2358 +46 -0
  830. package/vendor/impeccable/bundle/blobs/706c68612a7c6b899a0abf0b407eca7cabcd371deae60f830aa38aa86947694e +84 -0
  831. package/vendor/impeccable/bundle/blobs/713a942482531ef8ef103adf48d9decd7327697450e444289aa0479458e4ee1f +101 -0
  832. package/vendor/impeccable/bundle/blobs/713cac92a71ef45e8b700180d881f830096cfe2b0615e79b276ccc4a12c051e0 +80 -0
  833. package/vendor/impeccable/bundle/blobs/7212014fb2477d1d54aedaa79cdb861071a58afb2ae6d4dc5a495fa4810c6f8a +46 -0
  834. package/vendor/impeccable/bundle/blobs/73549b5536699c915156339976192fb38534bb43158cf9262ff5b89090388c64 +806 -0
  835. package/vendor/impeccable/bundle/blobs/73bd60faec1d8360753595f1ee9e970b44933448202767d7b0e87c275d399396 +6 -0
  836. package/vendor/impeccable/bundle/blobs/73f8bdec7d9a97476fd7d7e0b4114b5c3e9c7b84c22cbb876cd18c3e64a9b8c5 +42 -0
  837. package/vendor/impeccable/bundle/blobs/745b1f74877f6b3445da48af65dc45c66c3daa7738cb9a928aaa900889c2a204 +104 -0
  838. package/vendor/impeccable/bundle/blobs/74e20b26c29242bbebf79760315f7f0788e001566695618cfc70805484c6f92a +111 -0
  839. package/vendor/impeccable/bundle/blobs/754e9f0aa2101245a83cb17d8cc5bc49cf87997b29a83dedbfff283dbd0a8c4f +44 -0
  840. package/vendor/impeccable/bundle/blobs/765d3e890cd7f58ca94b6834181052166e9c4f9ef06278dc241da4d64da2d595 +113 -0
  841. package/vendor/impeccable/bundle/blobs/778cedc9199b407d3e23fa1041e38d548b00b1101a33517aa2a2eb299f9d0edc +26 -0
  842. package/vendor/impeccable/bundle/blobs/77ae09542fbc10aa4e8b119d6fd19359908a47c13c30068d6a150bfdb50e3e10 +24 -0
  843. package/vendor/impeccable/bundle/blobs/7848f40e224cf520bd8554943c9816a1ff8c97b1db57af0844e3b1ebb223d91f +416 -0
  844. package/vendor/impeccable/bundle/blobs/78c236dadb7e70337dc9dfa67e65fc15b7abed137ad320c16410ddfa7aec34f9 +131 -0
  845. package/vendor/impeccable/bundle/blobs/79114c6bf78b5a1838fe19bf033f3be85b232560eebf190ff8586aaec34ea170 +105 -0
  846. package/vendor/impeccable/bundle/blobs/796bbd8231413fcbf22eb7e6f40c402842aa4b10b1894545a7b05d9201ca7c4a +152 -0
  847. package/vendor/impeccable/bundle/blobs/79f85e381d1d6fdc8d39f54e1c8753fccf19b4ba3abb9827b6a7cc61eb376d1f +416 -0
  848. package/vendor/impeccable/bundle/blobs/7ad26830c7399a118cdbd4465a5426bc1919015aba99fd15959dc6deb8edc8d6 +80 -0
  849. package/vendor/impeccable/bundle/blobs/7af7fcc09c6b14f26ba78734460a2f9dddd2dcd2e2fa0c47c682f539e2f4cad5 +24 -0
  850. package/vendor/impeccable/bundle/blobs/7b1a4cc5ce94837c8309962a204c47361927e442b7a1c3cc472f90276eca8b8c +63 -0
  851. package/vendor/impeccable/bundle/blobs/7c417abe75f0ce4341b6f5acbadcafbbeabcc32cdb13c930aecc5cabda9f9242 +26 -0
  852. package/vendor/impeccable/bundle/blobs/7e36403ed58e0e82c0e42bf2fbea1c066b8e63276978647a6f1e44bf1edb23fb +63 -0
  853. package/vendor/impeccable/bundle/blobs/7fd1617d5a86b7a1a0bf9d6e291b334ac41a3efce31031eeaef11de7cd7e75b4 +325 -0
  854. package/vendor/impeccable/bundle/blobs/80191b3580a996a2045105976f728e0f46de22c412fc7640741add9767b2d8f4 +101 -0
  855. package/vendor/impeccable/bundle/blobs/808291e15746c9a64d9ede3ad3f06664b0a72970aa95052e064a96f1bfbed361 +54 -0
  856. package/vendor/impeccable/bundle/blobs/814610dee1081abc4213476ff0c4ae3e8f457909550d250ea0f89953687c85c6 +63 -0
  857. package/vendor/impeccable/bundle/blobs/8157b5a376e46980117f1ad6d08b24ee7be966f5de64b041bd213d486ea8c077 +26 -0
  858. package/vendor/impeccable/bundle/blobs/81666fc7f783b4e3514db6554e713dc0479bd9cdedb06e93d15f8b579aae869a +105 -0
  859. package/vendor/impeccable/bundle/blobs/835f19a0a3812f3652dd6979a2ce5597f654fd01f26e1b420b92d5f42b997ce4 +121 -0
  860. package/vendor/impeccable/bundle/blobs/8373668da1aa37c39888809ed9e834a7edfcb884af12f74934c270d004fba626 +85 -0
  861. package/vendor/impeccable/bundle/blobs/83d614fec61078175383012a088f49a9c0bb08b9ebd2b651c77cb94a323474ab +42 -0
  862. package/vendor/impeccable/bundle/blobs/8449781319a33d4a10a7fab9bfa4812241c303b95f33703b300b097dba51089a +152 -0
  863. package/vendor/impeccable/bundle/blobs/84a06415956986cb215139b3efda7b3c7a5bb6f502a3b3d9300f0744a970e620 +99 -0
  864. package/vendor/impeccable/bundle/blobs/857c4a0db5859f1fa91152db684528299dfc552525f50f416d1625a270e12671 +46 -0
  865. package/vendor/impeccable/bundle/blobs/86d10faab62da852aa1f4304157871545c853da708b6fe61c80aefb552c1f300 +84 -0
  866. package/vendor/impeccable/bundle/blobs/871a8e4d749b807c693ebabd83defbd6c76e1bd2a0f53a28a460cb1308ba8634 +318 -0
  867. package/vendor/impeccable/bundle/blobs/87b3db688c7963898bda8096f7868fed05ec5a0a80d14298e8b906b70cdf9c42 +416 -0
  868. package/vendor/impeccable/bundle/blobs/881a58aadf300bcc8f4947243e82192ae8dd7f14822a70fabc84fc74a5f9199c +46 -0
  869. package/vendor/impeccable/bundle/blobs/88549c11ea55d5dfc9f551db9a9c270d7362a9d42aa83db7747c9a7f020e1255 +46 -0
  870. package/vendor/impeccable/bundle/blobs/88749ebbe9bc87250765a07c2b959508262bd0e276ad60baa53e6e48c3579143 +806 -0
  871. package/vendor/impeccable/bundle/blobs/8a2d316593a631579bbb2f3fcb90d4488f85e97f69698dd2dd4fb50766f537d3 +325 -0
  872. package/vendor/impeccable/bundle/blobs/8c06daf096984cf71cf4133ea284dd6eaf503208da828816836ea41dfb69a234 +80 -0
  873. package/vendor/impeccable/bundle/blobs/8c34f78d71ac02c99303c7e0ca9ef30341aa9ecdeb75804dcba7e36a127914c1 +84 -0
  874. package/vendor/impeccable/bundle/blobs/8eb39a13e3d3650d4261f8fb06e91d6c0b888ca12ddbd3a5610cd8f0b05ad176 +69 -0
  875. package/vendor/impeccable/bundle/blobs/8ff60b8b5369d364f732f8de10479a39294e65341b3e0b6497b21de5c8e34b2d +806 -0
  876. package/vendor/impeccable/bundle/blobs/904859c8160b02330b04db23a8eeeb4ef55bcaa10f5208b8d73a1718334633e7 +84 -0
  877. package/vendor/impeccable/bundle/blobs/9205e222bc6565b37fb504ceec93233c2d2a456802b69d16e6b1c44723907c4c +5 -0
  878. package/vendor/impeccable/bundle/blobs/9287af96048c58ed0e72493cf7eb90c3957d4ba8b19e70ecf5d1f54264e9e597 +101 -0
  879. package/vendor/impeccable/bundle/blobs/92b7ab84c828fa888f4882c417c3d7f8fde2e5445b40f96f4fc8181a3e058afc +101 -0
  880. package/vendor/impeccable/bundle/blobs/93c53421c3376f695fe9dad5c82102f74bb5dd15e4ced81bb4ad50a71e5f1027 +24 -0
  881. package/vendor/impeccable/bundle/blobs/93eda27117930692a20f668f1cb0a80b7e14ab865998faba567cd721116081d4 +84 -0
  882. package/vendor/impeccable/bundle/blobs/94b4ce6299fea93d9f256b2d25705961a76bc5ea940c56db4145686ebc99df1b +89 -0
  883. package/vendor/impeccable/bundle/blobs/95b07450ad1ea0b7adc369587b06e52404945bbaa5d87f7491fac7ffd0e6e2ae +11 -0
  884. package/vendor/impeccable/bundle/blobs/95f0c7935a6d0375e09ae67ae0066c0ce7b583bf1d445d268cc4d2f4f900b1bb +113 -0
  885. package/vendor/impeccable/bundle/blobs/960cb922bc934adbf9192e9428ff6bec1f382038166f02a785939c93b7391067 +139 -0
  886. package/vendor/impeccable/bundle/blobs/96e2e6bd4fcf9a2c6da65fb029f96d9176308fae2efd9d8653d3b8d838960e07 +44 -0
  887. package/vendor/impeccable/bundle/blobs/96e508039c719c0815701c36b8418b18baee1967f915fa29b23b84861ae8ea94 +127 -0
  888. package/vendor/impeccable/bundle/blobs/98384b78af087855dbb526ec1e870a676ecd87f57237643dfea815317dad8a07 +26 -0
  889. package/vendor/impeccable/bundle/blobs/98afc4c6da252e90c6b783079b6f157bf94a13dd4351392e881edd2a100edf6a +105 -0
  890. package/vendor/impeccable/bundle/blobs/99e4a6facdb07986aa721bda8a4e35466b30091f32e38d7a71d9fcbe3591f65a +45 -0
  891. package/vendor/impeccable/bundle/blobs/9a2c08ee2516d2ee87129e7ebe6a0895f9990c9852d1f6fa7e70be9a6a88a659 +234 -0
  892. package/vendor/impeccable/bundle/blobs/9a4aa0d4903eabee987fdc92053466ff7f6eb0604797aee0efe67d67999b3eae +46 -0
  893. package/vendor/impeccable/bundle/blobs/9d45e5f6c082de6df4a2cfff11deb969715c49b5d9891d100dd1b2252c5bdcdd +152 -0
  894. package/vendor/impeccable/bundle/blobs/9db3c0857f4c2c8877b1fe24a47a229fee0de76ec9057bd8ee95f0677fb58d74 +26 -0
  895. package/vendor/impeccable/bundle/blobs/9e161532dc6731581d7a5f35bda5a2865e5248df7aff90e6dfc9221409893e35 +54 -0
  896. package/vendor/impeccable/bundle/blobs/9e82126a2e08aa365f9c430d383cf6e1921e04d1e0a1b5777716ff97828cfad8 +46 -0
  897. package/vendor/impeccable/bundle/blobs/9eb03b319ce7a2b281bc85ed1b0a437eb05ab2f765fc267354f9f9e6cbfadc25 +806 -0
  898. package/vendor/impeccable/bundle/blobs/9f1151faffbaadba0ddf5c09a4b2a82c9a12c900a2c1a9dac9863ba9ba0f420e +54 -0
  899. package/vendor/impeccable/bundle/blobs/9f2993499adadfdef4065a9a7fb69c75f888d892d4ee6bdbe62619bc772f495c +24 -0
  900. package/vendor/impeccable/bundle/blobs/a1a56df5fd51be403ca85a2f8054bb6f2bfeee443556c7798c2482e412fb6a09 +54 -0
  901. package/vendor/impeccable/bundle/blobs/a1af8b8a97665a3692eb39872c235796684a387a0b83785872f81aebd9dab046 +152 -0
  902. package/vendor/impeccable/bundle/blobs/a27399e3056c77a28ddd310fb5b4dee6e8e440dfa1737f7e38815097bec4c3a9 +46 -0
  903. package/vendor/impeccable/bundle/blobs/a423108e7e31a54564e2e0794186394f842625fd9f7d7ce6e6615362511503a2 +93 -0
  904. package/vendor/impeccable/bundle/blobs/a4cfd2330c8cca94b62986679b3f9e3bb9ada0cb30c2c63c5d19c6039f5a45ae +104 -0
  905. package/vendor/impeccable/bundle/blobs/a55f016c046cb6a27c55bd7f346375aeb506a755c4fbca19a5f92dbd42309c23 +59 -0
  906. package/vendor/impeccable/bundle/blobs/a569989e6a3d6453b4c45e9474e162a15cc54e11732ac6baa7990a6e7cccc0b5 +21 -0
  907. package/vendor/impeccable/bundle/blobs/a7045711a1f0dd2cd5bd98e57ff615f638d7e29738bdd618cf15e83fea5993b9 +325 -0
  908. package/vendor/impeccable/bundle/blobs/a75b892696469e3ccd2af33c9eef793e635efc3c5ac45336b0c1373d90c856b0 +63 -0
  909. package/vendor/impeccable/bundle/blobs/a7e8e60df83c6f47590467094ab2a13f1fe28ce45959a4e69dd89575a4208646 +47 -0
  910. package/vendor/impeccable/bundle/blobs/a7f036f4217933db8a96cf2f0ba251b15f388839d62bcf95720ce0b7152dd185 +806 -0
  911. package/vendor/impeccable/bundle/blobs/a892e337eee548d53252abb72ba5aa85cbcf556ffd8dc74e05534652c010d574 +24 -0
  912. package/vendor/impeccable/bundle/blobs/a93397adc906e245c69b42d4b25931fc92dc75baa60ca9a3749ba23b52ba01a0 +88 -0
  913. package/vendor/impeccable/bundle/blobs/a9856cb40da6519b1334bcfc75a4fbe83bef39ca86ee6f3effcb2a96794c627c +127 -0
  914. package/vendor/impeccable/bundle/blobs/a98b397cedeeaa1da57f3395b3d9b6c1fc477f4247fb9dc13e4da3da588283ff +54 -0
  915. package/vendor/impeccable/bundle/blobs/a9d2203acd45ca33a13d5c68b02b23ed512425ac15f0e8438318ed124b43729d +61 -0
  916. package/vendor/impeccable/bundle/blobs/a9e63b2df611805e845e0bb1cca1a0c27e83640a78185c9fd9de90d53a539cdc +42 -0
  917. package/vendor/impeccable/bundle/blobs/ab80e6a971baa66342548a846ce3fb69824ef9ef4e0f26c6f02685f225d00bbd +26 -0
  918. package/vendor/impeccable/bundle/blobs/ac695dd89d5f1261004cfa966526f5d5e913c92fa0640d4d71cb42493effad08 +131 -0
  919. package/vendor/impeccable/bundle/blobs/add1bee76f897f989166a5b9ad1b38d9173248e29d668d5c885ae9a0eff73861 +105 -0
  920. package/vendor/impeccable/bundle/blobs/af35b5fb6e45acb6483a5fbb864c3eaa9c57bacc43857f48183c836041c670ae +101 -0
  921. package/vendor/impeccable/bundle/blobs/af5842c4844b692b817319d5375611d4211dc7f459fb12da358baefc3a6cd373 +63 -0
  922. package/vendor/impeccable/bundle/blobs/b0e1a0721a1e47675a8750cfb608138743dd9fa9c047146e5cc8f82b9041be7a +806 -0
  923. package/vendor/impeccable/bundle/blobs/b14dc725606717be881a058bb691c0af1860cc8ad98d48e5a4789fe1a7de5458 +806 -0
  924. package/vendor/impeccable/bundle/blobs/b2732083f8f1d1924d38f84f179491430aebda8e0fd1f1d0785e3f883bcf3a40 +63 -0
  925. package/vendor/impeccable/bundle/blobs/b29e10f4506af2277739ad2373bc91c9fff41dbe76c9907f45152b4178cc6b6c +105 -0
  926. package/vendor/impeccable/bundle/blobs/b2d71ff0df7ed49e06dfc4acfce3d3f7eb48afa68be04763ee8c08354df50a07 +97 -0
  927. package/vendor/impeccable/bundle/blobs/b2f60e0154bf0e687badc46d8c8420e2118a9a6e21162050722be779dc02cb6d +111 -0
  928. package/vendor/impeccable/bundle/blobs/b314a0c5bd844f6471ea3031aeb9299674d972fbdd1615d99d16478de437d26d +84 -0
  929. package/vendor/impeccable/bundle/blobs/b3b1d5a4c80ce279d88896601deee9ccfeacdae0d0cd433600985a5f7ac93c72 +26 -0
  930. package/vendor/impeccable/bundle/blobs/b4be5499f404a926cdd2c55d8fb7409ba74a56b3d0c7d865594cc0254d3e499a +42 -0
  931. package/vendor/impeccable/bundle/blobs/b4def5b57733b6ba233570bd5691a536901f8b15479fc0111a2cde56224d0e1a +325 -0
  932. package/vendor/impeccable/bundle/blobs/b5f4fbb4a044c3f5ec14adc847222488f00fccabbf79ecd0b21084c8d319d616 +105 -0
  933. package/vendor/impeccable/bundle/blobs/b626e0677288a1660e9ce80c4f0454b527010239681f6b8dcc0f36b4a4d6bcb2 +113 -0
  934. package/vendor/impeccable/bundle/blobs/b6a2ef031313d3848ab2928875298550836f0f9ff7bdf5772e918c5c610ea448 +806 -0
  935. package/vendor/impeccable/bundle/blobs/b6dfd3df9a371e7d179d365cc1d72c11d4ed91b6507c0e1dbec0843419542f66 +84 -0
  936. package/vendor/impeccable/bundle/blobs/b719be9c5d4ced5d649ec6c0c90630196e7ee513d0da482aef13c705fdc23ab6 +113 -0
  937. package/vendor/impeccable/bundle/blobs/b7fcd2b03539d1029c8774fa806e6f4c677448e9e97e15f69b066022536c5491 +80 -0
  938. package/vendor/impeccable/bundle/blobs/b824bb76a657d3edd65e89807dcb21a3679eab39292423066e11368b35afba79 +325 -0
  939. package/vendor/impeccable/bundle/blobs/b8938fea3399aa639b4c873248035c219658069eef7be62672254e2f72c056f4 +42 -0
  940. package/vendor/impeccable/bundle/blobs/b8d49a3cab3428d9f351502e9c2c5802cef187e0d2af626ef3e1cd1837fd06bf +105 -0
  941. package/vendor/impeccable/bundle/blobs/ba0d96d88ab40fad1cb522e60b11affc568cfe9d340110ac5e71f834ac3d0f4a +42 -0
  942. package/vendor/impeccable/bundle/blobs/bb069b43c09109d7031b0374e31955749fec657b252d39782f11e8985aca2b51 +131 -0
  943. package/vendor/impeccable/bundle/blobs/bb36665889124a0b6e15f16045265737449c3bdcf2712cdb08af3cfa01563e2b +14 -0
  944. package/vendor/impeccable/bundle/blobs/bb59a1f78f3d2aa78e4b024fe203117155f50946a9e4bbe65c1b3b3abdcee356 +104 -0
  945. package/vendor/impeccable/bundle/blobs/bb9d4bb369216e892eea25adeaefc5a3e09bb4abd31e3475b79e47b3aee2a6af +806 -0
  946. package/vendor/impeccable/bundle/blobs/bc48bca63dff44e1f0205bafb64e16b2d6fb294ace405dbc9ae06a3bc6107154 +113 -0
  947. package/vendor/impeccable/bundle/blobs/bc5f71f1129d0f2c310d913d07c8dc609a1d25644121bd78c308f42d52a0b9e9 +86 -0
  948. package/vendor/impeccable/bundle/blobs/bcc05ea92faebb5c74037a9d4263a5ce9a56f5ab07c8ab3c59ee704d8cade745 +24 -0
  949. package/vendor/impeccable/bundle/blobs/bdd676c8f29295addfdbceaab285bb1184ec3ef7ff60501908b97ea8269580c4 +85 -0
  950. package/vendor/impeccable/bundle/blobs/bdf9a59beea111ac6f98f5624854feb5a5a1d60b1989edbbfabf3dc6f357a7e6 +105 -0
  951. package/vendor/impeccable/bundle/blobs/bdfd2a879ca65e437481eac5309f2283da225121630935d89ed902cfdf470c8e +105 -0
  952. package/vendor/impeccable/bundle/blobs/bea6ebfda78c51b9cf372097a1d77431d0f6bcd96eadec13a2ac95afbb87fb6d +104 -0
  953. package/vendor/impeccable/bundle/blobs/bf3b8883f8550744e08754af82a78939ab8b1237e5fad6f38d819e2f17e8a389 +104 -0
  954. package/vendor/impeccable/bundle/blobs/bf92a4a51b29de9661c5fa82f3d79244718a67d385ef661990f0c4a5b367e843 +104 -0
  955. package/vendor/impeccable/bundle/blobs/bfc51972fbf387566dc9e29c8b1af479a66ab401fdbce659fae9e6a5a9d85316 +69 -0
  956. package/vendor/impeccable/bundle/blobs/c06effcdc60859157208d3b7ee23d56160f2386f6a2dfa2514ba82fe21828ae0 +24 -0
  957. package/vendor/impeccable/bundle/blobs/c100b67a4ae248ad564182b181acb1ee2fe64c00049aeef62d4e7a3213726f37 +26 -0
  958. package/vendor/impeccable/bundle/blobs/c1cb6877ca99a0c1b38ba0c7d59f32702d3022f6821d8045f7133f7c40b6362f +242 -0
  959. package/vendor/impeccable/bundle/blobs/c1f3766091019b6f9183bc1d11b1e0fe03d44c168dc05a682c55df32f904dcfd +33 -0
  960. package/vendor/impeccable/bundle/blobs/c2dfc965319745c403b99e00e9e97de15f1300ea721bd3f708f0ac47aadc537b +101 -0
  961. package/vendor/impeccable/bundle/blobs/c327bf17f2af186f87164dee5fb5468746a9b137f0b604365d531ac9387f3712 +325 -0
  962. package/vendor/impeccable/bundle/blobs/c6b3bc811eb23d90ff9add1e0e5b40999a0bbbab364f5e6d08061f36d30429a5 +39 -0
  963. package/vendor/impeccable/bundle/blobs/c6f15d20d8d8748c4c475ff70cdb0ee426f2e6c9e7eab6169311f4dffd279ea1 +54 -0
  964. package/vendor/impeccable/bundle/blobs/c83d6a13fdfb58835c845f61aed3fc6dca17b5569d33387ced840bc13424f354 +84 -0
  965. package/vendor/impeccable/bundle/blobs/c9284892cb1f21aaeaf93fdf2e9e7a679d05e0baa8ddf309a79a9790d262ad38 +806 -0
  966. package/vendor/impeccable/bundle/blobs/cb8caddbb3919e5bf7f252143b519fb16db28a244642d937b186cb89962d9201 +828 -0
  967. package/vendor/impeccable/bundle/blobs/cbd8bd68fa00935dd0f179adb169252629cf7ee443ea9dc7db77e7ef2cf77446 +4 -0
  968. package/vendor/impeccable/bundle/blobs/cdf8a88b9865599c58fe285041d2d46eea7d9bd2d4075d82de358191742b20ad +46 -0
  969. package/vendor/impeccable/bundle/blobs/cf3d3a296890ac1ee363fee930f252e20d0935cd575367ad017b3cdc2dc5a50d +26 -0
  970. package/vendor/impeccable/bundle/blobs/d1366aa4802b364893c2a14b16fe95c3b7fab79f9f69eb272fd1538f7cb1ce2c +105 -0
  971. package/vendor/impeccable/bundle/blobs/d1fbd55074abb2251bdaa03749d34acc42c38e46e47549f18f5848df57d43c42 +86 -0
  972. package/vendor/impeccable/bundle/blobs/d2455359baf5f9e75360c7094e28a16937c8674619e07d58f30d2b5abfd31e53 +105 -0
  973. package/vendor/impeccable/bundle/blobs/d2e16da9bb6b33c931378d1bf57dcfff5dc426a71434bc352cec6aece715a66f +152 -0
  974. package/vendor/impeccable/bundle/blobs/d4a9e18a879bbb92aa0a56e16b45481090dffa4470efdecf52fb0da8c900be5d +46 -0
  975. package/vendor/impeccable/bundle/blobs/d57c3e0453f601ad688911fca4471057c7b46b561fcd42a1e12a581101c5186c +41 -0
  976. package/vendor/impeccable/bundle/blobs/d5f83912eda93d42f93522bb74aeff0ea04d9c559577ec52fcccc130dd03166d +137 -0
  977. package/vendor/impeccable/bundle/blobs/d6489d7f3e607ce3f8514a7a7d3a0eb5e8f1ac55859eaf7d5c31b53de8fab9f3 +152 -0
  978. package/vendor/impeccable/bundle/blobs/d658c48ffbe0031e8e3b318996cad6ceafe29e40aa50d5bb25e4bf1d6839dc7c +89 -0
  979. package/vendor/impeccable/bundle/blobs/d6a1fa1689642a6db9027493747d7ed54f9e0cae660472022c0a0a8dfdead3f4 +54 -0
  980. package/vendor/impeccable/bundle/blobs/d6a51f4df6d76f16b95ab81268a689f4c5936d505c5bb25c80ad7423f927bbc6 +47 -0
  981. package/vendor/impeccable/bundle/blobs/d7211a816aa8ca1111701930f7cdab82b4c8caa94c9a37522c1d7945209b01c2 +84 -0
  982. package/vendor/impeccable/bundle/blobs/d7b99a57652cb8741d57a15ba7e06de4707fac02a97e5e001179da007272f2b8 +113 -0
  983. package/vendor/impeccable/bundle/blobs/d87879329982d608866e4babd31c61438ec34c68483e529761fbf420203eeebd +104 -0
  984. package/vendor/impeccable/bundle/blobs/d9963fd73bf6129fe0c8ec25c5148f50617ec85683b8eeae7e411c9a42e2db33 +137 -0
  985. package/vendor/impeccable/bundle/blobs/da3b2399814db89d67959268c646601957d3e8c641b09a5bdbce84217c1c2cfe +46 -0
  986. package/vendor/impeccable/bundle/blobs/dc3aeccbea3e997704ce8b170f56b0eaf343a14ad4fedb22a6dbee0f205aa37f +47 -0
  987. package/vendor/impeccable/bundle/blobs/dcc1572e739cdabcbf084f276b447cb686aa18459896e6d8fe29f4d7d807bd1d +46 -0
  988. package/vendor/impeccable/bundle/blobs/dcf7340da023e64144af5768b8bf44ecf45b1bfdec12d3b1c9e6618f17f8c60a +131 -0
  989. package/vendor/impeccable/bundle/blobs/dd66761b291c7dbca6e9efd22023e38f8c53ad310f3a6cdab5dc7ecd7ae8f31f +84 -0
  990. package/vendor/impeccable/bundle/blobs/dd953992625c240fd1842aaf533a865aabd09487cbc16fa01fe8bb4b4365b843 +101 -0
  991. package/vendor/impeccable/bundle/blobs/de1b7404f4cdfd7b515196afb17b74b1980f0bc88cb8681ae93a76ca48ec7bdb +167 -0
  992. package/vendor/impeccable/bundle/blobs/de70398719140e4951aa111e9625de5ed916ad1ef0877e4ab6f6b4a7e3cc5f8f +154 -0
  993. package/vendor/impeccable/bundle/blobs/deaaa533475b6a9f7dd52e01a1f1997aa3af146694334981650f8c846f939559 +113 -0
  994. package/vendor/impeccable/bundle/blobs/df23e9ee5b689a05ed88f42e9a36aaffa2e6e28b1d56e2832acaa1d3603fd363 +105 -0
  995. package/vendor/impeccable/bundle/blobs/dfd6f341b156bc604e7556b27cba437d5870fbc82d4c673d0127cf18151b2226 +99 -0
  996. package/vendor/impeccable/bundle/blobs/e02ba7f4417e84b3bd5ec65287c4a14cf163ca3ac6f8ee37d8f709d0c8b0b6d2 +84 -0
  997. package/vendor/impeccable/bundle/blobs/e07176229b8a330970ca3c9c5e3dd68c2aaeb726285e30f471e91053d7f8e798 +24 -0
  998. package/vendor/impeccable/bundle/blobs/e1075ea5b34ac9c60f7c5bda97356eeaf1b683b599592d324fd3704f0852ad7a +152 -0
  999. package/vendor/impeccable/bundle/blobs/e26ddd48211aae08fe6debf2a7a4308aa081ed224668cde528e451888db0e3e3 +325 -0
  1000. package/vendor/impeccable/bundle/blobs/e2e275495354eeccb7e59af7d74e2ff1f371839bd6aaec1266428760995fb24c +104 -0
  1001. package/vendor/impeccable/bundle/blobs/e3af212117e0c552b0976687200fe8f95846a01725a482e8e4dbfd75e40dbfa6 +26 -0
  1002. package/vendor/impeccable/bundle/blobs/e3c2031978cd670d7150ff3140f12cf8b6882ef638ea9a9985caffa9a80c8713 +63 -0
  1003. package/vendor/impeccable/bundle/blobs/e44ca51f24c4736f9aee6024182b0409aa12ec94812b7ec94745e0999ed06a70 +29 -0
  1004. package/vendor/impeccable/bundle/blobs/e68467ba99684d8c975a8a2725145d29db41d70659c7544ea54cc6632660cea3 +127 -0
  1005. package/vendor/impeccable/bundle/blobs/e6e18e7c23cfe82961d90b9714cb466c20bd83f222ac63e9339b6b2c304e1787 +26 -0
  1006. package/vendor/impeccable/bundle/blobs/e71524578eb2bda3b8d2da3d8b8371239a2179c5fa866f9f7e48bcac45a8cd6f +84 -0
  1007. package/vendor/impeccable/bundle/blobs/e7af7ad18b307a3171fcf49421df2a557f93289d27af2430f10ee74e2a2fc2d3 +101 -0
  1008. package/vendor/impeccable/bundle/blobs/e7dd10af2c3c18c60dc20734d55ff870c323a10dadd337600f7bb980fc6b53c8 +327 -0
  1009. package/vendor/impeccable/bundle/blobs/e802e4f7bdc89050a9c0f2ca506e1d493a2316e6e810c0336c57aa073717ef3e +50 -0
  1010. package/vendor/impeccable/bundle/blobs/e85da3098368807689009184eca2bb09a91bdb6cb1be3e7a61f91f1ae31cd69b +152 -0
  1011. package/vendor/impeccable/bundle/blobs/e8720f3aa41135211cc58cc299a39eeda86c75651f4279cc1ede8db10dcc0584 +98 -0
  1012. package/vendor/impeccable/bundle/blobs/e8ee6c08e94b80324173d89d6f4cdc5b4829ea6858b3a11fc186588a490cada4 +46 -0
  1013. package/vendor/impeccable/bundle/blobs/e9861052457cc1ddc42c687bb8c33a877834ced94fed74af2a4f00f6bae50795 +101 -0
  1014. package/vendor/impeccable/bundle/blobs/ea8432c90c30ecb0426662a681ead5c0941113079704e1a766cda09e85b15b4f +111 -0
  1015. package/vendor/impeccable/bundle/blobs/eaa50e8cd95e00a94a257db2bff4eafd820696ba75a08a384a00517c3402924e +325 -0
  1016. package/vendor/impeccable/bundle/blobs/eb3e86876c20f1cfc443dcbe48d8f41fea6e815082a304610be432272429a06d +42 -0
  1017. package/vendor/impeccable/bundle/blobs/eba472f6190541c28e2e647ed019f43564ba5b92d629963f34c899175b25b31e +46 -0
  1018. package/vendor/impeccable/bundle/blobs/eba609589a5a051643a7bae60b7cceef7cfe44d0f8bd9229e61473ac75910fb3 +24 -0
  1019. package/vendor/impeccable/bundle/blobs/ec6338b20047099601e4bac8b2efcd597f800d5e437259f6c15d23090400621b +325 -0
  1020. package/vendor/impeccable/bundle/blobs/ec81b008d2641402e3352b09b1a90562ef7a24598d7c5aded475038cce63aca0 +24 -0
  1021. package/vendor/impeccable/bundle/blobs/ec86b8633fbeb14ef2272f220fdd98089972b03b99da83e49eeb6a8b73b00617 +113 -0
  1022. package/vendor/impeccable/bundle/blobs/ee6d6d127c1c2ab3526d529a8e3698be2185b5e346ac617f37501de2c0698b97 +99 -0
  1023. package/vendor/impeccable/bundle/blobs/ef2dde00030580ed2765cbf7be9b2ea4a6f64cb915b804fd6f6abcf38051c7b9 +234 -0
  1024. package/vendor/impeccable/bundle/blobs/ef2e97cd690baf6fe5c895dd2d8844aff9fcc4a8bc04973402678a739c81d712 +90 -0
  1025. package/vendor/impeccable/bundle/blobs/f0fbe529f63961a027bada2e6a3cbe86f4af0dba4b8e1010da22b007f9002f66 +63 -0
  1026. package/vendor/impeccable/bundle/blobs/f1601095679d7d8cf6fef6845598c70d8734190709c1404fa0026e28fef2faaa +325 -0
  1027. package/vendor/impeccable/bundle/blobs/f254d59ff973e907cacdc2c34b8b4de075437d292de31dac30e10a9d7035086c +85 -0
  1028. package/vendor/impeccable/bundle/blobs/f5efb1b1dd4cd18e1d4789d7c8e0188f4342b25fffd53af6088ba8b67774fb99 +26 -0
  1029. package/vendor/impeccable/bundle/blobs/f672ef8251a3ed4051a053d30819664951b17540b2899acd27d20e500c234abc +258 -0
  1030. package/vendor/impeccable/bundle/blobs/f68a3d68ac92606e91aa8878e003d9432ddd09aa97ca01c6b3ce46c937dca316 +13510 -0
  1031. package/vendor/impeccable/bundle/blobs/f7a9e3f30fe07b0d98351730e9895d50bba96dd42fe91c0d9b9a76ef62e53322 +80 -0
  1032. package/vendor/impeccable/bundle/blobs/f7b854effc55c8f07e40a415e0d6b5c333f4042fbc849fac73d52619c8d053a1 +54 -0
  1033. package/vendor/impeccable/bundle/blobs/f84b653ede0804d21e6210c6d21fd5352023914fedceae6ff14e20f1e93b06e7 +46 -0
  1034. package/vendor/impeccable/bundle/blobs/f964506c0fae87b3c2c1db7016ddc9be9ef970bbcf5548d684b997b5d5991586 +33 -0
  1035. package/vendor/impeccable/bundle/blobs/f9cbbad0cc08fb9bd69d4d3046067c6cf820b89cdaf7af8c81c671fb0a62b6ae +54 -0
  1036. package/vendor/impeccable/bundle/blobs/fb32d99751c5fc24493ff4460be1767bd5236dc820fd337775067c0620d1a7a6 +113 -0
  1037. package/vendor/impeccable/bundle/blobs/fb5fec24adafa48df43eece6907c1c986a4772cbdc64142c881f00c3b312e9ca +152 -0
  1038. package/vendor/impeccable/bundle/blobs/fc149b5bc7a8d0cc9b9bf86e5013793f3857c1c302212e9aaf101cb95427386b +101 -0
  1039. package/vendor/impeccable/bundle/blobs/fce6688138d2ceb1e3d2cde5231f54b1d8dc8748b4c95a7919aa83b6f924cf96 +127 -0
  1040. package/vendor/impeccable/bundle/blobs/fe91fcf28638f95577af481a50edaf339d6c9a3ad3b9fa477bc81c116b8bc392 +139 -0
  1041. package/vendor/impeccable/bundle/blobs/ff0ab1361f52d70d3ff0d23090d78794a75afdfa2f8c1cee5491dee69215faaa +105 -0
  1042. package/vendor/impeccable/bundle/manifest.json +1254 -0
  1043. package/skills/dev-plan/evals/evals.json +0 -72
@@ -0,0 +1,2139 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawnSync } from 'node:child_process';
4
+ import { createHash } from 'node:crypto';
5
+ import fs from 'node:fs';
6
+ import os from 'node:os';
7
+ import path from 'node:path';
8
+ import { fileURLToPath, pathToFileURL } from 'node:url';
9
+
10
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
11
+ const skillRoot = path.resolve(__dirname, '..');
12
+
13
+ const TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);
14
+
15
+ function usage() {
16
+ return `Usage:
17
+ archify render <type> <input.json> [output.html] [--quality standard|showcase] [--repo-root path (architecture only)]
18
+ archify compare architecture <base.json> <head.json> [output.html] [--receipt path] [--json] [--quality standard|showcase] [--repo-root path]
19
+ archify deliver <type> <input.json> [output.html] [--json] [--open] [--quality standard|showcase] [--repo-root path (architecture only)]
20
+ archify preview <type> <input.json> [output.html] [--no-open] [--quality standard|showcase] [--repo-root path (architecture only)]
21
+ archify validate <type> <input.json> [--json] [--layout-json] [--quality standard|showcase] [--repo-root path (architecture only)]
22
+ archify migrate workflow <old.json> <new.json> --to-schema 2 [--json]
23
+ archify inspect <type> <input.json>
24
+ archify check <output.html>
25
+ archify visual-check <output.html> [--json]
26
+ archify guide [scenario or question] [--json] [--lang en|zh]
27
+ archify brands [name, alias, domain, or category] [--json]
28
+ archify brands capture <url> [--json]
29
+ archify examples
30
+ archify doctor
31
+ archify demo [output-directory]
32
+
33
+ Types:
34
+ architecture, workflow, sequence, dataflow, lifecycle
35
+ `;
36
+ }
37
+
38
+ function fail(message, code = 2) {
39
+ console.error(message);
40
+ process.exit(code);
41
+ }
42
+
43
+ function rejectCliArgument(message, details = {}) {
44
+ const error = new Error(message);
45
+ error.archifyArgument = {
46
+ code: details.code || 'cli/invalid-arguments',
47
+ subject: details.subject || {},
48
+ evidence: details.evidence || {},
49
+ supportedFixes: details.supportedFixes || ['correct the command arguments and retry'],
50
+ };
51
+ throw error;
52
+ }
53
+
54
+ function rendererPath(type) {
55
+ if (!TYPES.has(type)) {
56
+ rejectCliArgument(`Unknown diagram type "${type}". Expected one of: ${[...TYPES].join(', ')}`, {
57
+ code: 'cli/unknown-diagram-type',
58
+ subject: { type },
59
+ evidence: { supportedTypes: [...TYPES] },
60
+ supportedFixes: [`use one of: ${[...TYPES].join(', ')}`],
61
+ });
62
+ }
63
+ return path.join(skillRoot, 'renderers', type, `render-${type}.mjs`);
64
+ }
65
+
66
+ function runNode(args, options = {}) {
67
+ return spawnSync(process.execPath, args, {
68
+ cwd: options.cwd || process.cwd(),
69
+ encoding: 'utf8',
70
+ stdio: options.stdio || 'inherit',
71
+ env: options.env ? { ...process.env, ...options.env } : process.env,
72
+ });
73
+ }
74
+
75
+ function extractQualityArgs(args) {
76
+ const rest = [];
77
+ let quality;
78
+ for (let index = 0; index < args.length; index += 1) {
79
+ const arg = args[index];
80
+ if (arg === '--quality') {
81
+ quality = args[index + 1];
82
+ if (!quality || quality.startsWith('--')) rejectCliArgument('--quality requires standard or showcase.', {
83
+ code: 'cli/missing-option-value',
84
+ subject: { option: '--quality' },
85
+ supportedFixes: ['provide --quality standard or --quality showcase'],
86
+ });
87
+ index += 1;
88
+ continue;
89
+ }
90
+ if (arg.startsWith('--quality=')) {
91
+ quality = arg.slice('--quality='.length);
92
+ if (!quality) rejectCliArgument('--quality requires standard or showcase.', {
93
+ code: 'cli/missing-option-value',
94
+ subject: { option: '--quality' },
95
+ supportedFixes: ['provide --quality standard or --quality showcase'],
96
+ });
97
+ continue;
98
+ }
99
+ rest.push(arg);
100
+ }
101
+ if (quality !== undefined && !['standard', 'showcase'].includes(quality)) {
102
+ rejectCliArgument(`Unknown quality profile "${quality}". Expected standard or showcase.`, {
103
+ code: 'cli/invalid-option-value',
104
+ subject: { option: '--quality' },
105
+ evidence: { value: quality, supportedValues: ['standard', 'showcase'] },
106
+ supportedFixes: ['use --quality standard or --quality showcase'],
107
+ });
108
+ }
109
+ return { rest, quality };
110
+ }
111
+
112
+ function extractRepoRootArgs(args) {
113
+ const rest = [];
114
+ let repoRoot;
115
+ for (let index = 0; index < args.length; index += 1) {
116
+ const arg = args[index];
117
+ if (arg === '--repo-root') {
118
+ repoRoot = args[index + 1];
119
+ if (!repoRoot || repoRoot.startsWith('--')) rejectCliArgument('--repo-root requires a repository path.', {
120
+ code: 'cli/missing-option-value',
121
+ subject: { option: '--repo-root' },
122
+ supportedFixes: ['provide one repository path after --repo-root'],
123
+ });
124
+ index += 1;
125
+ continue;
126
+ }
127
+ if (arg.startsWith('--repo-root=')) {
128
+ repoRoot = arg.slice('--repo-root='.length);
129
+ if (!repoRoot) rejectCliArgument('--repo-root requires a repository path.', {
130
+ code: 'cli/missing-option-value',
131
+ subject: { option: '--repo-root' },
132
+ supportedFixes: ['provide one repository path after --repo-root'],
133
+ });
134
+ continue;
135
+ }
136
+ rest.push(arg);
137
+ }
138
+ return { rest, repoRoot: repoRoot ? path.resolve(repoRoot) : undefined };
139
+ }
140
+
141
+ function rendererEnv(quality, repoRoot, diagnosticJson = false) {
142
+ return {
143
+ ...(quality ? { ARCHIFY_QUALITY_PROFILE: quality } : {}),
144
+ ...(repoRoot ? { ARCHIFY_REPO_ROOT: repoRoot } : {}),
145
+ ...(diagnosticJson ? { ARCHIFY_DIAGNOSTIC_FORMAT: 'json' } : {}),
146
+ };
147
+ }
148
+
149
+ function diagnostic({ code, message, subject = {}, evidence = {}, supportedFixes = [], severity = 'error' }) {
150
+ return {
151
+ code,
152
+ severity,
153
+ message,
154
+ subject,
155
+ evidence,
156
+ supportedFixes,
157
+ };
158
+ }
159
+
160
+ function inputDiagnostic(error, inputPath) {
161
+ const isSyntax = error instanceof SyntaxError;
162
+ return diagnostic({
163
+ code: isSyntax ? 'input/json-parse' : 'input/read',
164
+ message: isSyntax
165
+ ? `Input JSON could not be parsed: ${error.message}`
166
+ : `Input could not be read: ${error.message}`,
167
+ subject: { input: inputPath },
168
+ evidence: {
169
+ ...(error?.code ? { systemCode: error.code } : {}),
170
+ reason: error.message,
171
+ },
172
+ supportedFixes: [isSyntax
173
+ ? 'repair the JSON syntax and run validation again'
174
+ : 'provide one readable JSON input file'],
175
+ });
176
+ }
177
+
178
+ function rendererFailure(result) {
179
+ if (result.error) {
180
+ return {
181
+ error: 'Renderer process could not start.',
182
+ diagnostics: [diagnostic({
183
+ code: 'internal/renderer-process',
184
+ message: 'Renderer process could not start.',
185
+ evidence: { reason: result.error.message },
186
+ })],
187
+ };
188
+ }
189
+ try {
190
+ const payload = JSON.parse((result.stderr || '').trim());
191
+ if (payload?.ok === false && Array.isArray(payload.diagnostics) && payload.diagnostics.length) {
192
+ return {
193
+ error: payload.error || payload.diagnostics[0].message,
194
+ diagnostics: payload.diagnostics,
195
+ };
196
+ }
197
+ } catch {
198
+ // The diagnostic boundary is intentionally fail-closed. Never copy a raw
199
+ // Node stack into a machine receipt when a renderer exits unexpectedly.
200
+ }
201
+ return {
202
+ error: 'Renderer failed before emitting a structured diagnostic.',
203
+ diagnostics: [diagnostic({
204
+ code: 'internal/unclassified',
205
+ message: 'Renderer failed before emitting a structured diagnostic.',
206
+ evidence: { exitCode: result.status ?? 1 },
207
+ })],
208
+ };
209
+ }
210
+
211
+ const COMPOSITION_CHECKS = new Set([
212
+ 'label_route_clearance',
213
+ 'relationship_crossings',
214
+ 'relationship_corridors',
215
+ 'container_border_runs',
216
+ 'route_rhythm',
217
+ ]);
218
+
219
+ const CHECK_FIXES = {
220
+ single_svg: ['remove additional SVG roots so the artifact contains exactly one diagram SVG'],
221
+ finite_svg: ['replace non-finite coordinates before rendering again'],
222
+ orthogonal_arrows: ['use renderer-supported orthogonal routing controls'],
223
+ legend_clearance: ['move the route or enlarge the viewBox so relationships do not enter the legend'],
224
+ };
225
+
226
+ const COMPOSITION_FIXES = {
227
+ 'composition/proper-crossing': ['adjust route/via or channel coordinates so unrelated relationships use separate corridors'],
228
+ 'composition/ambiguous-corridor': ['adjust route/via or channel coordinates so unrelated relationships do not visually merge'],
229
+ 'composition/container-border-run': ['route across the frame perpendicularly through a clear opening'],
230
+ 'composition/label-route-clearance': ['adjust labelAt, labelDx, labelDy, labelSegment, message y, or the other relationship route'],
231
+ 'composition/desktop-readability': ['reduce the viewBox width, shorten node copy, widen affected nodes, or split the diagram so node context remains at least 6px at a 1440px desktop viewport'],
232
+ 'composition/micro-segment': ['move the route/channel/via point so every visible segment is at least 8px'],
233
+ 'composition/short-interior-segment': ['move the route/channel/via point so every interior turn has at least 16px'],
234
+ };
235
+
236
+ function checkerDiagnostics(checker) {
237
+ const diagnostics = [];
238
+ for (const issue of checker?.composition?.issues || []) {
239
+ if (issue.severity !== 'error') continue;
240
+ const { severity, code, relationship, ...evidence } = issue;
241
+ diagnostics.push(diagnostic({
242
+ code,
243
+ severity,
244
+ message: `Final artifact failed ${code}.`,
245
+ subject: relationship ? { relationship } : { check: 'composition' },
246
+ evidence,
247
+ supportedFixes: COMPOSITION_FIXES[code] || [],
248
+ }));
249
+ }
250
+ for (const check of checker?.checks || []) {
251
+ if (check.ok || COMPOSITION_CHECKS.has(check.name)) continue;
252
+ diagnostics.push(diagnostic({
253
+ code: `artifact/${check.name.replaceAll('_', '-')}`,
254
+ message: (check.details || []).find(Boolean) || `Final artifact failed ${check.name}.`,
255
+ subject: { check: check.name },
256
+ evidence: { details: check.details || [] },
257
+ supportedFixes: CHECK_FIXES[check.name] || [],
258
+ }));
259
+ }
260
+ return diagnostics.length ? diagnostics : [diagnostic({
261
+ code: 'artifact/check-failed',
262
+ message: 'Final artifact check failed without a classified diagnostic.',
263
+ subject: { check: 'unknown' },
264
+ evidence: {},
265
+ })];
266
+ }
267
+
268
+ function formatDiagnostics(error, diagnostics = []) {
269
+ if (!diagnostics.length) return error;
270
+ return [
271
+ error,
272
+ ...diagnostics.map((entry) => {
273
+ const fix = entry.supportedFixes?.length ? ` Fix: ${entry.supportedFixes.join('; ')}.` : '';
274
+ return `[${entry.code}] ${entry.message}${fix}`;
275
+ }),
276
+ ].join('\n');
277
+ }
278
+
279
+ function assertEvidenceType(type, repoRoot) {
280
+ if (repoRoot && type !== 'architecture') {
281
+ rejectCliArgument('--repo-root is currently supported for architecture diagrams only.', {
282
+ code: 'cli/unsupported-option',
283
+ subject: { option: '--repo-root', type },
284
+ supportedFixes: ['remove --repo-root or use an architecture diagram'],
285
+ });
286
+ }
287
+ }
288
+
289
+ function exitFrom(result) {
290
+ if (result.error) fail(result.error.message, 1);
291
+ process.exit(result.status ?? 1);
292
+ }
293
+
294
+ function reportCompareFailure({ json, stage, error, code = 'delta/internal', details = {}, status = 1 }) {
295
+ const receipt = {
296
+ schemaVersion: 1,
297
+ ok: false,
298
+ command: 'compare',
299
+ type: 'architecture',
300
+ stage,
301
+ error,
302
+ diagnostics: [{
303
+ code,
304
+ severity: 'error',
305
+ message: error,
306
+ subject: details.side ? { side: details.side, ...(details.path ? { path: details.path } : {}) } : {},
307
+ evidence: Object.fromEntries(Object.entries(details).filter(([key]) => !['side', 'path', 'supportedFixes'].includes(key))),
308
+ supportedFixes: details.supportedFixes || [],
309
+ }],
310
+ };
311
+ if (json) console.log(JSON.stringify(receipt, null, 2));
312
+ else console.error(formatDiagnostics(error, receipt.diagnostics));
313
+ process.exitCode = status;
314
+ }
315
+
316
+ function extractCompareOptions(args) {
317
+ const positional = [];
318
+ let receipt;
319
+ let json = false;
320
+ for (let index = 0; index < args.length; index += 1) {
321
+ const arg = args[index];
322
+ if (arg === '--json') {
323
+ json = true;
324
+ continue;
325
+ }
326
+ if (arg === '--receipt') {
327
+ receipt = args[index + 1];
328
+ if (!receipt || receipt.startsWith('--')) fail('--receipt requires a JSON output path.');
329
+ index += 1;
330
+ continue;
331
+ }
332
+ if (arg.startsWith('--receipt=')) {
333
+ receipt = arg.slice('--receipt='.length);
334
+ if (!receipt) fail('--receipt requires a JSON output path.');
335
+ continue;
336
+ }
337
+ if (arg.startsWith('--')) fail(`Unknown compare option "${arg}".`);
338
+ positional.push(arg);
339
+ }
340
+ return { positional, receipt, json };
341
+ }
342
+
343
+ function compareReceiptPath(outputPath) {
344
+ const extension = path.extname(outputPath);
345
+ return extension ? `${outputPath.slice(0, -extension.length)}.receipt.json` : `${outputPath}.receipt.json`;
346
+ }
347
+
348
+ function compareCommitError(message, code, details = {}) {
349
+ const error = new Error(message);
350
+ error.compareStage = 'commit';
351
+ error.compareCode = code;
352
+ error.compareDetails = details;
353
+ return error;
354
+ }
355
+
356
+ function commitComparePair({ htmlCandidate, receiptCandidate, outputPath, receiptPath, stagingDirectory }) {
357
+ const targets = [
358
+ { label: 'HTML artifact', target: outputPath, candidate: htmlCandidate, backup: path.join(stagingDirectory, '.previous-output') },
359
+ { label: 'receipt', target: receiptPath, candidate: receiptCandidate, backup: path.join(stagingDirectory, '.previous-receipt') },
360
+ ];
361
+
362
+ // Preflight the whole pair before moving either trusted target. This avoids
363
+ // replacing the HTML and only then discovering that its receipt destination
364
+ // cannot be committed (for example, because it is a directory).
365
+ for (const item of targets) {
366
+ if (!fs.existsSync(item.target)) continue;
367
+ const existing = fs.lstatSync(item.target);
368
+ if (!existing.isFile()) {
369
+ throw compareCommitError(
370
+ `Could not commit Architecture Delta: existing ${item.label} target is not a regular file.`,
371
+ 'delta/commit-target',
372
+ {
373
+ target: path.basename(item.target),
374
+ targetType: existing.isDirectory() ? 'directory' : 'non-file',
375
+ supportedFixes: [`choose a regular-file path for the ${item.label}`],
376
+ },
377
+ );
378
+ }
379
+ }
380
+
381
+ const backedUp = [];
382
+ const committed = [];
383
+ try {
384
+ for (const item of targets) {
385
+ if (!fs.existsSync(item.target)) continue;
386
+ fs.renameSync(item.target, item.backup);
387
+ backedUp.push(item);
388
+ }
389
+ for (const item of targets) {
390
+ fs.renameSync(item.candidate, item.target);
391
+ committed.push(item);
392
+ }
393
+ } catch (cause) {
394
+ const rollbackErrors = [];
395
+ const recoveryFiles = [];
396
+ for (const item of [...committed].reverse()) {
397
+ try {
398
+ fs.rmSync(item.target, { force: true });
399
+ } catch (error) {
400
+ rollbackErrors.push(`${item.label}: remove failed (${error.message})`);
401
+ }
402
+ }
403
+ for (const item of [...backedUp].reverse()) {
404
+ try {
405
+ if (fs.existsSync(item.target)) fs.rmSync(item.target, { force: true });
406
+ fs.renameSync(item.backup, item.target);
407
+ } catch (error) {
408
+ rollbackErrors.push(`${item.label}: restore failed (${error.message})`);
409
+ // Track failed restoration rather than probing existence: a permission
410
+ // error must not make cleanup discard a potentially recoverable backup.
411
+ recoveryFiles.push({ backup: item.backup, target: item.target });
412
+ }
413
+ }
414
+ throw compareCommitError(
415
+ (rollbackErrors.length
416
+ ? 'Architecture Delta pair commit failed and its previous files could not be fully restored.'
417
+ : 'Architecture Delta pair commit failed; the previous files were restored.')
418
+ + (recoveryFiles.length ? ` Recovery directory retained at ${stagingDirectory}.` : ''),
419
+ rollbackErrors.length ? 'delta/commit-rollback-failed' : 'delta/commit-failed',
420
+ {
421
+ reason: cause.message,
422
+ ...(rollbackErrors.length ? { rollbackErrors } : {}),
423
+ ...(recoveryFiles.length ? { recoveryDirectory: stagingDirectory, recoveryFiles } : {}),
424
+ supportedFixes: recoveryFiles.length
425
+ ? [
426
+ ...recoveryFiles.map(({ backup, target }) => `resolve the filesystem error, inspect the current target, then restore ${JSON.stringify(backup)} to ${JSON.stringify(target)} before retrying`),
427
+ 'remove the recovery directory only after the previous files have been recovered and verified',
428
+ ]
429
+ : ['check that both output paths are writable regular files, then retry'],
430
+ },
431
+ );
432
+ }
433
+ }
434
+
435
+ function renderValidatedArchitecture(inputPath, outputPath, quality, repoRoot) {
436
+ const render = runNode([rendererPath('architecture'), inputPath, outputPath], {
437
+ stdio: 'pipe',
438
+ env: rendererEnv(quality, repoRoot, true),
439
+ });
440
+ if (render.status !== 0) {
441
+ const failure = rendererFailure(render);
442
+ const error = new Error(failure.error);
443
+ error.compareStage = 'input';
444
+ error.compareStatus = render.status ?? 1;
445
+ error.diagnostics = failure.diagnostics;
446
+ throw error;
447
+ }
448
+ const check = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), outputPath], { stdio: 'pipe' });
449
+ if (check.status !== 0) {
450
+ const error = new Error('Validated snapshot failed final artifact checks.');
451
+ error.compareStage = 'check';
452
+ error.compareStatus = check.status ?? 1;
453
+ try {
454
+ error.checker = JSON.parse(check.stdout);
455
+ error.diagnostics = checkerDiagnostics(error.checker);
456
+ } catch {
457
+ error.diagnostics = [];
458
+ }
459
+ throw error;
460
+ }
461
+ const artifact = fs.readFileSync(outputPath);
462
+ return {
463
+ artifact,
464
+ html: artifact.toString('utf8'),
465
+ checks: JSON.parse(check.stdout),
466
+ sourceEvidence: sourceEvidenceFromArtifact(artifact),
467
+ };
468
+ }
469
+
470
+ async function commandCompare(args) {
471
+ const { resolveOutputPath } = await import('../renderers/shared/output-path.mjs');
472
+ const qualityArgs = extractQualityArgs(args);
473
+ const repoArgs = extractRepoRootArgs(qualityArgs.rest);
474
+ const options = extractCompareOptions(repoArgs.rest);
475
+ const [type, baseInput, headInput, requestedOutput] = options.positional;
476
+ if (type !== 'architecture' || !baseInput || !headInput || options.positional.length > 4) fail(usage());
477
+ let deltaRuntime;
478
+ try {
479
+ deltaRuntime = await import(pathToFileURL(path.join(skillRoot, 'delta/architecture-delta.mjs')).href);
480
+ } catch (error) {
481
+ reportCompareFailure({ json: options.json, stage: 'prepare', error: 'Architecture compare runtime is unavailable.', code: 'delta/runtime-missing', details: { reason: error.message, supportedFixes: ['install the complete Archify skill package'] } });
482
+ return;
483
+ }
484
+ const {
485
+ ArchitectureDeltaError,
486
+ annotateArchitectureSideSvg,
487
+ buildDeltaSvg,
488
+ canonicalArchitecture,
489
+ canonicalArchitectureJson,
490
+ compareArchitecture,
491
+ extractArchitectureSvg,
492
+ extractArtifactCss,
493
+ renderArchitectureDeltaHtml,
494
+ validateArchitectureDeltaHtml,
495
+ } = deltaRuntime;
496
+
497
+ const basePath = path.resolve(baseInput);
498
+ const headPath = path.resolve(headInput);
499
+ const receiptTarget = options.receipt || compareReceiptPath(path.resolve(requestedOutput || 'architecture-delta.html'));
500
+ let outputPath;
501
+ try {
502
+ ({ outputPath } = resolveOutputPath({
503
+ requestedOutput,
504
+ defaultOutput: 'architecture-delta.html',
505
+ inputPaths: [basePath, headPath],
506
+ otherOutputPaths: [path.resolve(receiptTarget)],
507
+ }));
508
+ } catch (error) {
509
+ const outputDiagnostic = error.archifyDiagnostics?.[0];
510
+ reportCompareFailure({
511
+ json: options.json,
512
+ stage: 'prepare',
513
+ error: error.message,
514
+ code: outputDiagnostic?.code || 'output/path-resolution',
515
+ details: {
516
+ ...(outputDiagnostic?.subject || {}),
517
+ ...(outputDiagnostic?.evidence || {}),
518
+ supportedFixes: outputDiagnostic?.supportedFixes || ['choose a safe output path and retry'],
519
+ },
520
+ });
521
+ return;
522
+ }
523
+ let receiptPath;
524
+ try {
525
+ ({ outputPath: receiptPath } = resolveOutputPath({
526
+ requestedOutput: options.receipt || compareReceiptPath(outputPath),
527
+ defaultOutput: compareReceiptPath(outputPath),
528
+ requiredExtension: '.json',
529
+ inputPaths: [basePath, headPath],
530
+ otherOutputPaths: [outputPath],
531
+ }));
532
+ } catch (error) {
533
+ const outputDiagnostic = error.archifyDiagnostics?.[0];
534
+ reportCompareFailure({
535
+ json: options.json,
536
+ stage: 'prepare',
537
+ error: error.message,
538
+ code: outputDiagnostic?.code || 'output/path-resolution',
539
+ details: {
540
+ ...(outputDiagnostic?.subject || {}),
541
+ ...(outputDiagnostic?.evidence || {}),
542
+ supportedFixes: outputDiagnostic?.supportedFixes || ['choose a safe receipt path and retry'],
543
+ },
544
+ });
545
+ return;
546
+ }
547
+ let baseBuffer;
548
+ let headBuffer;
549
+ let base;
550
+ let head;
551
+ try {
552
+ baseBuffer = fs.readFileSync(basePath);
553
+ base = JSON.parse(baseBuffer.toString('utf8'));
554
+ } catch (error) {
555
+ reportCompareFailure({ json: options.json, stage: 'input', error: `Could not read base input: ${error.message}`, code: 'delta/base-input', details: { side: 'base', reason: error.message } });
556
+ return;
557
+ }
558
+ try {
559
+ headBuffer = fs.readFileSync(headPath);
560
+ head = JSON.parse(headBuffer.toString('utf8'));
561
+ } catch (error) {
562
+ reportCompareFailure({ json: options.json, stage: 'input', error: `Could not read head input: ${error.message}`, code: 'delta/head-input', details: { side: 'head', reason: error.message } });
563
+ return;
564
+ }
565
+
566
+ const outputDirectory = path.dirname(outputPath);
567
+ if (path.dirname(receiptPath) !== outputDirectory) {
568
+ reportCompareFailure({ json: options.json, stage: 'prepare', error: 'The compare receipt must be written beside the HTML artifact.', code: 'delta/receipt-directory', details: { supportedFixes: ['choose a --receipt path in the same directory as output.html'] } });
569
+ return;
570
+ }
571
+ try {
572
+ fs.mkdirSync(outputDirectory, { recursive: true });
573
+ } catch (error) {
574
+ reportCompareFailure({ json: options.json, stage: 'prepare', error: `Could not create compare output directory: ${error.message}`, code: 'delta/output-directory', details: { reason: error.message } });
575
+ return;
576
+ }
577
+
578
+ let stagingDirectory;
579
+ try {
580
+ stagingDirectory = fs.mkdtempSync(path.join(outputDirectory, '.archify-compare-'));
581
+ } catch (error) {
582
+ reportCompareFailure({ json: options.json, stage: 'prepare', error: `Could not create compare candidate: ${error.message}`, code: 'delta/candidate-directory', details: { reason: error.message } });
583
+ return;
584
+ }
585
+
586
+ const baseCandidate = path.join(stagingDirectory, 'base.html');
587
+ const headCandidate = path.join(stagingDirectory, 'head.html');
588
+ const rawBaseCandidate = path.join(stagingDirectory, 'base.raw.html');
589
+ const rawHeadCandidate = path.join(stagingDirectory, 'head.raw.html');
590
+ const rawBaseInput = path.join(stagingDirectory, 'base.snapshot.json');
591
+ const rawHeadInput = path.join(stagingDirectory, 'head.snapshot.json');
592
+ const canonicalBaseInput = path.join(stagingDirectory, 'base.architecture.json');
593
+ const canonicalHeadInput = path.join(stagingDirectory, 'head.architecture.json');
594
+ const htmlCandidate = path.join(stagingDirectory, path.basename(outputPath));
595
+ const receiptCandidate = path.join(stagingDirectory, path.basename(receiptPath));
596
+ let preserveRecoveryDirectory = false;
597
+
598
+ try {
599
+ let baseResult;
600
+ let headResult;
601
+ for (const { side, snapshotPath, buffer } of [
602
+ { side: 'base', snapshotPath: rawBaseInput, buffer: baseBuffer },
603
+ { side: 'head', snapshotPath: rawHeadInput, buffer: headBuffer },
604
+ ]) {
605
+ try {
606
+ fs.writeFileSync(snapshotPath, buffer, { flag: 'wx' });
607
+ } catch (error) {
608
+ const message = `Could not freeze ${side} compare snapshot: ${error.message}`;
609
+ reportCompareFailure({
610
+ json: options.json,
611
+ stage: 'prepare',
612
+ error: message,
613
+ code: 'delta/freeze-snapshot',
614
+ details: {
615
+ side,
616
+ ...(error?.code ? { systemCode: error.code } : {}),
617
+ reason: error.message,
618
+ supportedFixes: ['choose a writable compare output directory on the target filesystem'],
619
+ },
620
+ });
621
+ return;
622
+ }
623
+ }
624
+ try {
625
+ renderValidatedArchitecture(rawBaseInput, rawBaseCandidate, qualityArgs.quality, repoArgs.repoRoot);
626
+ } catch (error) {
627
+ const diagnosticEntry = error.diagnostics?.[0];
628
+ reportCompareFailure({
629
+ json: options.json,
630
+ stage: error.compareStage || 'validate',
631
+ error: `Base snapshot failed validation: ${error.message}`,
632
+ code: diagnosticEntry?.code || 'delta/base-validation',
633
+ details: { side: 'base', ...(diagnosticEntry?.subject?.path ? { path: diagnosticEntry.subject.path } : {}), ...(diagnosticEntry?.evidence || {}), supportedFixes: diagnosticEntry?.supportedFixes || [] },
634
+ status: error.compareStatus || 1,
635
+ });
636
+ return;
637
+ }
638
+ try {
639
+ renderValidatedArchitecture(rawHeadInput, rawHeadCandidate, qualityArgs.quality, repoArgs.repoRoot);
640
+ } catch (error) {
641
+ const diagnosticEntry = error.diagnostics?.[0];
642
+ reportCompareFailure({
643
+ json: options.json,
644
+ stage: error.compareStage || 'validate',
645
+ error: `Head snapshot failed validation: ${error.message}`,
646
+ code: diagnosticEntry?.code || 'delta/head-validation',
647
+ details: { side: 'head', ...(diagnosticEntry?.subject?.path ? { path: diagnosticEntry.subject.path } : {}), ...(diagnosticEntry?.evidence || {}), supportedFixes: diagnosticEntry?.supportedFixes || [] },
648
+ status: error.compareStatus || 1,
649
+ });
650
+ return;
651
+ }
652
+
653
+ // Validation must see the exact authored inputs. Only after both sides
654
+ // pass do we canonicalize their collection order for deterministic SVG
655
+ // geometry and stable artifact bytes.
656
+ fs.writeFileSync(canonicalBaseInput, JSON.stringify(canonicalArchitecture(base)));
657
+ fs.writeFileSync(canonicalHeadInput, JSON.stringify(canonicalArchitecture(head)));
658
+ baseResult = renderValidatedArchitecture(canonicalBaseInput, baseCandidate, qualityArgs.quality, repoArgs.repoRoot);
659
+ headResult = renderValidatedArchitecture(canonicalHeadInput, headCandidate, qualityArgs.quality, repoArgs.repoRoot);
660
+
661
+ const semanticHash = (diagram) => createHash('sha256').update(canonicalArchitectureJson(diagram)).digest('hex');
662
+ let compareIr;
663
+ try {
664
+ compareIr = compareArchitecture(base, head, {
665
+ baseRawSha256: createHash('sha256').update(baseBuffer).digest('hex'),
666
+ headRawSha256: createHash('sha256').update(headBuffer).digest('hex'),
667
+ baseSemanticSha256: semanticHash(base),
668
+ headSemanticSha256: semanticHash(head),
669
+ baseBytes: baseBuffer.byteLength,
670
+ headBytes: headBuffer.byteLength,
671
+ baseVerified: Boolean(baseResult.sourceEvidence),
672
+ headVerified: Boolean(headResult.sourceEvidence),
673
+ });
674
+ } catch (error) {
675
+ if (!(error instanceof ArchitectureDeltaError)) throw error;
676
+ reportCompareFailure({ json: options.json, stage: 'compare', error: error.message, code: error.code, details: error.details });
677
+ return;
678
+ }
679
+
680
+ const baseSourceSvg = extractArchitectureSvg(baseResult.html);
681
+ const headSourceSvg = extractArchitectureSvg(headResult.html);
682
+ const baseSvg = annotateArchitectureSideSvg(baseSourceSvg, compareIr, 'base');
683
+ const headSvg = annotateArchitectureSideSvg(headSourceSvg, compareIr, 'head');
684
+ const deltaSvg = buildDeltaSvg(baseSourceSvg, headSourceSvg, compareIr);
685
+ // Raw input hashes and byte counts belong in the sidecar receipt, not the
686
+ // artifact. Keeping them out makes formatting-only input rewrites produce
687
+ // the exact same canonical review HTML and artifact hash.
688
+ const artifactIr = {
689
+ ...compareIr,
690
+ base: Object.fromEntries(Object.entries(compareIr.base).filter(([key]) => !['rawSha256', 'bytes'].includes(key))),
691
+ head: Object.fromEntries(Object.entries(compareIr.head).filter(([key]) => !['rawSha256', 'bytes'].includes(key))),
692
+ };
693
+ const html = renderArchitectureDeltaHtml({
694
+ receipt: artifactIr,
695
+ baseSvg,
696
+ deltaSvg,
697
+ headSvg,
698
+ baseHtml: baseResult.html,
699
+ headHtml: headResult.html,
700
+ artifactCss: extractArtifactCss(headResult.html),
701
+ });
702
+ const deltaValidation = validateArchitectureDeltaHtml(html, artifactIr);
703
+ fs.writeFileSync(htmlCandidate, html);
704
+ const artifact = fs.readFileSync(htmlCandidate);
705
+ const baseChecks = baseResult.checks.checks.filter((check) => check.ok).length;
706
+ const headChecks = headResult.checks.checks.filter((check) => check.ok).length;
707
+ const finalReceipt = {
708
+ ...compareIr,
709
+ artifact: { sha256: createHash('sha256').update(artifact).digest('hex'), bytes: artifact.byteLength },
710
+ validation: {
711
+ checksPassed: baseChecks + headChecks + deltaValidation.checksPassed,
712
+ checkCount: baseResult.checks.checks.length + headResult.checks.checks.length + deltaValidation.checkCount,
713
+ baseComposition: baseResult.checks.composition.status,
714
+ headComposition: headResult.checks.composition.status,
715
+ },
716
+ };
717
+ fs.writeFileSync(receiptCandidate, `${JSON.stringify(finalReceipt, null, 2)}\n`);
718
+
719
+ try {
720
+ const currentOutput = resolveOutputPath({
721
+ requestedOutput,
722
+ defaultOutput: 'architecture-delta.html',
723
+ inputPaths: [basePath, headPath],
724
+ otherOutputPaths: [receiptPath],
725
+ }).outputPath;
726
+ resolveOutputPath({
727
+ requestedOutput: options.receipt || compareReceiptPath(currentOutput),
728
+ defaultOutput: compareReceiptPath(currentOutput),
729
+ requiredExtension: '.json',
730
+ inputPaths: [basePath, headPath],
731
+ otherOutputPaths: [currentOutput],
732
+ });
733
+ } catch (error) {
734
+ const outputDiagnostic = error.archifyDiagnostics?.[0];
735
+ reportCompareFailure({
736
+ json: options.json,
737
+ stage: 'commit',
738
+ error: error.message,
739
+ code: outputDiagnostic?.code || 'output/path-resolution',
740
+ details: {
741
+ ...(outputDiagnostic?.subject || {}),
742
+ ...(outputDiagnostic?.evidence || {}),
743
+ supportedFixes: outputDiagnostic?.supportedFixes || ['restore safe output paths and retry'],
744
+ },
745
+ });
746
+ return;
747
+ }
748
+
749
+ commitComparePair({ htmlCandidate, receiptCandidate, outputPath, receiptPath, stagingDirectory });
750
+ if (options.json) console.log(JSON.stringify(finalReceipt, null, 2));
751
+ else {
752
+ console.log(`compared architecture ${outputPath}`);
753
+ console.log(`${finalReceipt.validation.checksPassed}/${finalReceipt.validation.checkCount} checks; completeness ${finalReceipt.completeness}; ${finalReceipt.proofLevel}; sha256 ${finalReceipt.artifact.sha256.slice(0, 12)}`);
754
+ console.log(`receipt ${receiptPath}`);
755
+ }
756
+ } catch (error) {
757
+ if (error instanceof ArchitectureDeltaError) {
758
+ reportCompareFailure({ json: options.json, stage: 'artifact', error: error.message, code: error.code, details: error.details });
759
+ } else if (error.compareStage === 'commit') {
760
+ preserveRecoveryDirectory = Boolean(error.compareDetails?.recoveryFiles?.length);
761
+ reportCompareFailure({
762
+ json: options.json,
763
+ stage: error.compareStage,
764
+ error: error.message,
765
+ code: error.compareCode,
766
+ details: error.compareDetails,
767
+ });
768
+ } else {
769
+ reportCompareFailure({ json: options.json, stage: 'internal', error: 'Architecture compare failed before commit.', code: 'delta/internal', details: { reason: error.message } });
770
+ }
771
+ } finally {
772
+ try {
773
+ if (!preserveRecoveryDirectory) fs.rmSync(stagingDirectory, { recursive: true, force: true });
774
+ } catch (error) {
775
+ console.error(`Warning: could not remove compare staging directory: ${error.message}`);
776
+ }
777
+ }
778
+ }
779
+
780
+ function commandRender(args) {
781
+ const qualityArgs = extractQualityArgs(args);
782
+ const repoArgs = extractRepoRootArgs(qualityArgs.rest);
783
+ // render takes no options of its own once --quality and --repo-root are
784
+ // stripped, so anything left starting with -- is a typo. Without this a
785
+ // mistyped flag was taken as the output path: `render architecture spec.json
786
+ // --json out.html` wrote a file literally named `--json` and never wrote
787
+ // out.html, exiting 0. Every sibling subcommand already guards this.
788
+ const unknown = repoArgs.rest.filter((arg) => arg.startsWith('--'));
789
+ if (unknown.length) fail(`Unknown render option "${unknown[0]}".`);
790
+ const [type, input, output] = repoArgs.rest;
791
+ if (!type || !input || repoArgs.rest.length > 3) fail(usage());
792
+ assertEvidenceType(type, repoArgs.repoRoot);
793
+ const result = runNode([rendererPath(type), input, ...(output ? [output] : [])], {
794
+ env: rendererEnv(qualityArgs.quality, repoArgs.repoRoot),
795
+ });
796
+ if (result.status !== 0) exitFrom(result);
797
+ }
798
+
799
+ function reportArtifactFailure({ command, json, stage, type, input, output, error, diagnostics = [], status = 1, checker }) {
800
+ const receipt = {
801
+ schemaVersion: 1,
802
+ ok: false,
803
+ command,
804
+ stage,
805
+ type,
806
+ input,
807
+ ...(output === undefined ? {} : { output }),
808
+ error,
809
+ diagnostics,
810
+ ...(checker ? { checker } : {}),
811
+ };
812
+ if (json) console.log(JSON.stringify(receipt, null, 2));
813
+ else console.error(formatDiagnostics(error, diagnostics));
814
+ process.exitCode = status;
815
+ }
816
+
817
+ function reportDeliveryFailure(options) {
818
+ reportArtifactFailure({ ...options, command: 'deliver' });
819
+ }
820
+
821
+ function reportValidateFailure(options) {
822
+ reportArtifactFailure({ ...options, command: 'validate' });
823
+ }
824
+
825
+ function reportArtifactArgumentFailure(command, error) {
826
+ const details = error.archifyArgument || {};
827
+ reportArtifactFailure({
828
+ command,
829
+ json: true,
830
+ stage: 'arguments',
831
+ error: error.message,
832
+ diagnostics: [diagnostic({
833
+ code: details.code || 'cli/invalid-arguments',
834
+ message: error.message,
835
+ subject: { command, ...(details.subject || {}) },
836
+ evidence: details.evidence || {},
837
+ supportedFixes: details.supportedFixes || ['correct the command arguments and retry'],
838
+ })],
839
+ status: 2,
840
+ });
841
+ }
842
+
843
+ function sourceEvidenceFromArtifact(artifact) {
844
+ const html = artifact.toString('utf8');
845
+ const match = html.match(/<script id="archify-source-evidence-data" type="application\/json">([\s\S]*?)<\/script>/);
846
+ if (!match) return null;
847
+ const evidence = JSON.parse(match[1]);
848
+ if (evidence?.verified !== true || !evidence.repository?.url || !evidence.repository?.revision || !Number.isInteger(evidence.referenceCount)) {
849
+ throw new Error('Rendered source evidence receipt is incomplete.');
850
+ }
851
+ return evidence;
852
+ }
853
+
854
+ function engineeringProfileFromArtifact(artifact) {
855
+ const match = artifact.toString('utf8').match(/<svg[^>]*\sdata-engineering-profile="([^"]+)"/);
856
+ return match ? match[1] : null;
857
+ }
858
+
859
+ async function commandDeliver(args) {
860
+ const qualityArgs = extractQualityArgs(args);
861
+ const repoArgs = extractRepoRootArgs(qualityArgs.rest);
862
+ const json = repoArgs.rest.includes('--json');
863
+ const open = repoArgs.rest.includes('--open');
864
+ const knownOptions = new Set(['--json', '--open']);
865
+ const unknown = repoArgs.rest.filter((arg) => arg.startsWith('--') && !knownOptions.has(arg));
866
+ if (unknown.length) rejectCliArgument(`Unknown deliver option "${unknown[0]}".`, {
867
+ code: 'cli/unknown-option',
868
+ subject: { option: unknown[0] },
869
+ supportedFixes: ['remove the unknown option and retry'],
870
+ });
871
+ const positional = repoArgs.rest.filter((arg) => !knownOptions.has(arg));
872
+ const [type, input, requestedOutput] = positional;
873
+ if (!type || !input || positional.length > 3) rejectCliArgument(usage(), {
874
+ code: 'cli/usage',
875
+ supportedFixes: ['use: archify deliver <type> <input.json> [output.html] [options]'],
876
+ });
877
+ assertEvidenceType(type, repoArgs.repoRoot);
878
+ const renderer = rendererPath(type);
879
+ const { resolveOutputPath } = await import('../renderers/shared/output-path.mjs');
880
+ const inputPath = path.resolve(input);
881
+ let specification;
882
+ let diagram;
883
+ try {
884
+ specification = fs.readFileSync(inputPath);
885
+ diagram = JSON.parse(specification.toString('utf8'));
886
+ } catch (error) {
887
+ const repair = inputDiagnostic(error, inputPath);
888
+ reportDeliveryFailure({
889
+ json,
890
+ stage: 'input',
891
+ type,
892
+ input: inputPath,
893
+ output: path.resolve(requestedOutput || `${type}.html`),
894
+ error: `Could not read delivery input "${inputPath}": ${error.message}`,
895
+ diagnostics: [repair],
896
+ });
897
+ return;
898
+ }
899
+
900
+ const authoredOutput = typeof diagram?.meta?.output === 'string' && diagram.meta.output
901
+ ? diagram.meta.output
902
+ : undefined;
903
+ let outputPath;
904
+ try {
905
+ ({ outputPath } = resolveOutputPath({
906
+ requestedOutput,
907
+ authoredOutput,
908
+ defaultOutput: `${type}.html`,
909
+ inputPaths: [inputPath],
910
+ }));
911
+ } catch (error) {
912
+ const attemptedOutput = path.resolve(requestedOutput || authoredOutput || `${type}.html`);
913
+ reportDeliveryFailure({
914
+ json,
915
+ stage: 'prepare',
916
+ type,
917
+ input: inputPath,
918
+ output: attemptedOutput,
919
+ error: error.message,
920
+ diagnostics: error.archifyDiagnostics || [diagnostic({
921
+ code: 'output/path-resolution',
922
+ message: error.message,
923
+ subject: { output: attemptedOutput },
924
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}) },
925
+ supportedFixes: ['choose a safe output path and retry'],
926
+ })],
927
+ });
928
+ return;
929
+ }
930
+ const outputDirectory = path.dirname(outputPath);
931
+ try {
932
+ fs.mkdirSync(outputDirectory, { recursive: true });
933
+ } catch (error) {
934
+ const message = `Could not create delivery directory "${outputDirectory}": ${error.message}`;
935
+ reportDeliveryFailure({
936
+ json,
937
+ stage: 'prepare',
938
+ type,
939
+ input: inputPath,
940
+ output: outputPath,
941
+ error: message,
942
+ diagnostics: [diagnostic({
943
+ code: 'delivery/prepare-directory',
944
+ message,
945
+ subject: { outputDirectory },
946
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
947
+ supportedFixes: ['choose a writable output directory'],
948
+ })],
949
+ });
950
+ return;
951
+ }
952
+
953
+ // Keep the candidate beside the target so the final rename is one
954
+ // same-filesystem commit. A render or artifact-check failure never touches
955
+ // an existing trusted output.
956
+ let stagingDirectory;
957
+ try {
958
+ stagingDirectory = fs.mkdtempSync(path.join(outputDirectory, '.archify-delivery-'));
959
+ } catch (error) {
960
+ const message = `Could not create a delivery candidate beside "${outputPath}": ${error.message}`;
961
+ reportDeliveryFailure({
962
+ json,
963
+ stage: 'prepare',
964
+ type,
965
+ input: inputPath,
966
+ output: outputPath,
967
+ error: message,
968
+ diagnostics: [diagnostic({
969
+ code: 'delivery/prepare-candidate',
970
+ message,
971
+ subject: { output: outputPath },
972
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
973
+ supportedFixes: ['choose a writable output directory on the target filesystem'],
974
+ })],
975
+ });
976
+ return;
977
+ }
978
+ const candidatePath = path.join(stagingDirectory, path.basename(outputPath));
979
+ const specificationSnapshotPath = path.join(stagingDirectory, 'specification.snapshot.json');
980
+
981
+ try {
982
+ try {
983
+ fs.writeFileSync(specificationSnapshotPath, specification, { flag: 'wx' });
984
+ } catch (error) {
985
+ const message = `Could not freeze the delivery specification: ${error.message}`;
986
+ reportDeliveryFailure({
987
+ json,
988
+ stage: 'prepare',
989
+ type,
990
+ input: inputPath,
991
+ output: outputPath,
992
+ error: message,
993
+ diagnostics: [diagnostic({
994
+ code: 'delivery/freeze-specification',
995
+ message,
996
+ subject: { input: inputPath },
997
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
998
+ supportedFixes: ['choose a writable output directory on the target filesystem'],
999
+ })],
1000
+ });
1001
+ return;
1002
+ }
1003
+
1004
+ const render = runNode([renderer, specificationSnapshotPath, candidatePath], {
1005
+ stdio: 'pipe',
1006
+ env: rendererEnv(qualityArgs.quality, repoArgs.repoRoot, true),
1007
+ });
1008
+ if (render.status !== 0) {
1009
+ const failure = rendererFailure(render);
1010
+ reportDeliveryFailure({
1011
+ json,
1012
+ stage: 'render',
1013
+ type,
1014
+ input: inputPath,
1015
+ output: outputPath,
1016
+ error: failure.error,
1017
+ diagnostics: failure.diagnostics,
1018
+ status: render.status ?? 1,
1019
+ });
1020
+ return;
1021
+ }
1022
+
1023
+ const check = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), candidatePath], {
1024
+ stdio: 'pipe',
1025
+ });
1026
+ if (check.status !== 0) {
1027
+ if (check.stderr) process.stderr.write(check.stderr);
1028
+ let checker;
1029
+ try {
1030
+ checker = JSON.parse(check.stdout);
1031
+ checker.file = outputPath;
1032
+ } catch {
1033
+ checker = { ok: false, file: outputPath, diagnostic: check.stdout.trim() };
1034
+ }
1035
+ reportDeliveryFailure({
1036
+ json,
1037
+ stage: 'check',
1038
+ type,
1039
+ input: inputPath,
1040
+ output: outputPath,
1041
+ error: 'Final artifact check failed; the previous artifact was preserved.',
1042
+ diagnostics: checkerDiagnostics(checker),
1043
+ status: check.status ?? 1,
1044
+ checker,
1045
+ });
1046
+ return;
1047
+ }
1048
+
1049
+ let result;
1050
+ try {
1051
+ result = JSON.parse(check.stdout);
1052
+ } catch (error) {
1053
+ const message = `Could not parse the successful artifact-check receipt: ${error.message}`;
1054
+ reportDeliveryFailure({
1055
+ json,
1056
+ stage: 'receipt',
1057
+ type,
1058
+ input: inputPath,
1059
+ output: outputPath,
1060
+ error: message,
1061
+ diagnostics: [diagnostic({
1062
+ code: 'delivery/receipt-invalid',
1063
+ message,
1064
+ subject: { output: outputPath },
1065
+ evidence: { reason: error.message },
1066
+ })],
1067
+ });
1068
+ return;
1069
+ }
1070
+ let artifact;
1071
+ try {
1072
+ artifact = fs.readFileSync(candidatePath);
1073
+ } catch (error) {
1074
+ const message = `Could not read the verified delivery candidate: ${error.message}`;
1075
+ reportDeliveryFailure({
1076
+ json,
1077
+ stage: 'receipt',
1078
+ type,
1079
+ input: inputPath,
1080
+ output: outputPath,
1081
+ error: message,
1082
+ diagnostics: [diagnostic({
1083
+ code: 'delivery/candidate-unreadable',
1084
+ message,
1085
+ subject: { output: outputPath },
1086
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
1087
+ })],
1088
+ });
1089
+ return;
1090
+ }
1091
+ let sourceEvidence;
1092
+ try {
1093
+ sourceEvidence = sourceEvidenceFromArtifact(artifact);
1094
+ } catch (error) {
1095
+ const message = `Could not read the repository evidence receipt: ${error.message}`;
1096
+ reportDeliveryFailure({
1097
+ json,
1098
+ stage: 'receipt',
1099
+ type,
1100
+ input: inputPath,
1101
+ output: outputPath,
1102
+ error: message,
1103
+ diagnostics: [diagnostic({
1104
+ code: 'delivery/evidence-receipt-invalid',
1105
+ message,
1106
+ subject: { output: outputPath },
1107
+ evidence: { reason: error.message },
1108
+ })],
1109
+ });
1110
+ return;
1111
+ }
1112
+ const engineeringProfile = engineeringProfileFromArtifact(artifact);
1113
+ const receipt = {
1114
+ schemaVersion: 1,
1115
+ ok: true,
1116
+ command: 'deliver',
1117
+ type,
1118
+ input: inputPath,
1119
+ output: outputPath,
1120
+ specification: {
1121
+ sha256: createHash('sha256').update(specification).digest('hex'),
1122
+ bytes: specification.byteLength,
1123
+ },
1124
+ artifact: {
1125
+ sha256: createHash('sha256').update(artifact).digest('hex'),
1126
+ bytes: artifact.byteLength,
1127
+ },
1128
+ validation: {
1129
+ checksPassed: result.checks.filter((checkItem) => checkItem.ok).length,
1130
+ checkCount: result.checks.length,
1131
+ compositionProfile: result.composition.profile,
1132
+ compositionStatus: result.composition.status,
1133
+ ...(engineeringProfile ? { engineeringProfile } : {}),
1134
+ errors: result.composition.summary.errors,
1135
+ warnings: result.composition.summary.warnings,
1136
+ },
1137
+ ...(sourceEvidence ? {
1138
+ evidence: {
1139
+ verified: true,
1140
+ repository: sourceEvidence.repository.url,
1141
+ revision: sourceEvidence.repository.revision,
1142
+ references: sourceEvidence.referenceCount,
1143
+ ...(sourceEvidence.repository.linkMode ? { linkMode: sourceEvidence.repository.linkMode } : {}),
1144
+ },
1145
+ } : {}),
1146
+ };
1147
+
1148
+ try {
1149
+ resolveOutputPath({
1150
+ requestedOutput,
1151
+ authoredOutput,
1152
+ defaultOutput: `${type}.html`,
1153
+ inputPaths: [inputPath],
1154
+ });
1155
+ } catch (error) {
1156
+ reportDeliveryFailure({
1157
+ json,
1158
+ stage: 'commit',
1159
+ type,
1160
+ input: inputPath,
1161
+ output: outputPath,
1162
+ error: error.message,
1163
+ diagnostics: error.archifyDiagnostics || [diagnostic({
1164
+ code: 'output/path-resolution',
1165
+ message: error.message,
1166
+ subject: { output: outputPath },
1167
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}) },
1168
+ supportedFixes: ['restore a safe output path and retry'],
1169
+ })],
1170
+ });
1171
+ return;
1172
+ }
1173
+
1174
+ try {
1175
+ fs.renameSync(candidatePath, outputPath);
1176
+ } catch (error) {
1177
+ const message = `Could not commit verified delivery "${outputPath}": ${error.message}`;
1178
+ reportDeliveryFailure({
1179
+ json,
1180
+ stage: 'commit',
1181
+ type,
1182
+ input: inputPath,
1183
+ output: outputPath,
1184
+ error: message,
1185
+ diagnostics: [diagnostic({
1186
+ code: 'delivery/commit',
1187
+ message,
1188
+ subject: { output: outputPath },
1189
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
1190
+ supportedFixes: ['choose a replaceable file target on the same writable filesystem'],
1191
+ })],
1192
+ });
1193
+ return;
1194
+ }
1195
+
1196
+ if (open) {
1197
+ try {
1198
+ const { openArtifact } = await import('./open-artifact.mjs');
1199
+ receipt.open = openArtifact(outputPath);
1200
+ } catch {
1201
+ receipt.open = {
1202
+ requested: true,
1203
+ status: 'unsupported',
1204
+ target: outputPath,
1205
+ method: null,
1206
+ };
1207
+ }
1208
+ if (receipt.open.status !== 'opened') {
1209
+ console.error(`Could not open the verified artifact (${receipt.open.status}). Open it manually: ${outputPath}`);
1210
+ }
1211
+ }
1212
+
1213
+ if (json) {
1214
+ console.log(JSON.stringify(receipt, null, 2));
1215
+ } else {
1216
+ console.log(`delivered ${type} ${outputPath}`);
1217
+ const engineering = receipt.validation.engineeringProfile
1218
+ ? `; engineering ${receipt.validation.engineeringProfile}: pass`
1219
+ : '';
1220
+ console.log(`${receipt.validation.checksPassed}/${receipt.validation.checkCount} artifact checks; composition ${receipt.validation.compositionProfile}: ${receipt.validation.compositionStatus}${engineering}; sha256 ${receipt.artifact.sha256.slice(0, 12)}`);
1221
+ if (receipt.open?.status === 'opened') console.log(`opened ${outputPath}`);
1222
+ }
1223
+ } finally {
1224
+ try {
1225
+ fs.rmSync(stagingDirectory, { recursive: true, force: true });
1226
+ } catch (error) {
1227
+ console.error(`Warning: could not remove delivery staging directory "${stagingDirectory}": ${error.message}`);
1228
+ }
1229
+ }
1230
+ }
1231
+
1232
+ async function commandPreview(args) {
1233
+ const qualityArgs = extractQualityArgs(args);
1234
+ const repoArgs = extractRepoRootArgs(qualityArgs.rest);
1235
+ const noOpen = repoArgs.rest.includes('--no-open');
1236
+ const knownOptions = new Set(['--no-open']);
1237
+ const unknown = repoArgs.rest.filter((arg) => arg.startsWith('--') && !knownOptions.has(arg));
1238
+ if (unknown.length) fail(`Unknown preview option "${unknown[0]}".`);
1239
+ const positional = repoArgs.rest.filter((arg) => !knownOptions.has(arg));
1240
+ const [type, input, output] = positional;
1241
+ if (!type || !input || positional.length > 3) fail(usage());
1242
+ assertEvidenceType(type, repoArgs.repoRoot);
1243
+ rendererPath(type);
1244
+
1245
+ let runPreview;
1246
+ try {
1247
+ ({ runPreview } = await import('./preview.mjs'));
1248
+ } catch (error) {
1249
+ fail(`Could not load live preview: ${error.message}`, 1);
1250
+ }
1251
+ try {
1252
+ await runPreview({
1253
+ type,
1254
+ input,
1255
+ output,
1256
+ quality: qualityArgs.quality,
1257
+ repoRoot: repoArgs.repoRoot,
1258
+ open: !noOpen,
1259
+ });
1260
+ } catch (error) {
1261
+ fail(`Could not start live preview: ${error.message}`, 1);
1262
+ }
1263
+ }
1264
+
1265
+ function commandCheck(args) {
1266
+ const unknown = args.find((arg) => arg.startsWith('--'));
1267
+ if (unknown) fail(`Unknown check option "${unknown}".`);
1268
+ const [html] = args;
1269
+ if (!html || args.length !== 1) fail(usage());
1270
+ const result = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), html]);
1271
+ if (result.status !== 0) exitFrom(result);
1272
+ }
1273
+
1274
+ async function commandVisualCheck(args) {
1275
+ const json = args.includes('--json');
1276
+ const knownOptions = new Set(['--json']);
1277
+ const unknown = args.filter((arg) => arg.startsWith('--') && !knownOptions.has(arg));
1278
+ if (unknown.length) fail(`Unknown visual-check option "${unknown[0]}".`, 1);
1279
+ const positional = args.filter((arg) => !knownOptions.has(arg));
1280
+ if (positional.length !== 1) fail(usage(), 1);
1281
+
1282
+ let runVisualCheck;
1283
+ try {
1284
+ ({ runVisualCheck } = await import('./visual-check.mjs'));
1285
+ } catch (error) {
1286
+ fail(`Could not load visual-check: ${error.message}`, 1);
1287
+ }
1288
+
1289
+ let result;
1290
+ try {
1291
+ result = await runVisualCheck({ artifactPath: positional[0] });
1292
+ } catch (error) {
1293
+ if (json) {
1294
+ console.log(JSON.stringify({
1295
+ schemaVersion: 1,
1296
+ ok: false,
1297
+ command: 'visual-check',
1298
+ evidenceKind: 'automated-browser',
1299
+ status: 'fail',
1300
+ visualReview: 'pending',
1301
+ artifact: { path: path.resolve(positional[0]) },
1302
+ error: error.message,
1303
+ }, null, 2));
1304
+ } else {
1305
+ console.error(`automated browser evidence failed: ${error.message}`);
1306
+ console.error('perceptual visual review pending');
1307
+ }
1308
+ process.exitCode = 1;
1309
+ return;
1310
+ }
1311
+
1312
+ if (json) {
1313
+ console.log(JSON.stringify(result.receipt, null, 2));
1314
+ } else {
1315
+ console.log(`automated browser evidence ${result.receipt.status}: ${result.receipt.artifact.path}`);
1316
+ console.log(`visual-check containment ${result.receipt.containment.status}; captures ${result.receipt.captures.status}; perceptual visual review pending`);
1317
+ console.log(`receipt ${path.join(path.dirname(result.receipt.artifact.path), result.receipt.sidecars.receipt)}`);
1318
+ if (result.receipt.captures.contactSheet) {
1319
+ console.log(`contact sheet ${path.join(path.dirname(result.receipt.artifact.path), result.receipt.captures.contactSheet)}`);
1320
+ }
1321
+ if (result.receipt.error) console.error(result.receipt.error);
1322
+ }
1323
+ process.exitCode = result.exitCode;
1324
+ }
1325
+
1326
+ function commandExamples(args) {
1327
+ const unknown = args.find((arg) => arg.startsWith('--'));
1328
+ if (unknown) fail(`Unknown examples option "${unknown}".`);
1329
+ if (args.length) fail(usage());
1330
+ const result = runNode([path.join(skillRoot, 'scripts/render-examples.mjs')], { cwd: skillRoot });
1331
+ if (result.status !== 0) exitFrom(result);
1332
+ }
1333
+
1334
+ async function commandDoctor(args) {
1335
+ const unknown = args.find((arg) => arg.startsWith('--'));
1336
+ if (unknown) fail(`Unknown doctor option "${unknown}".`);
1337
+ if (args.length) fail(usage());
1338
+ const checks = [];
1339
+ const nodeMajor = Number.parseInt(process.versions.node.split('.')[0], 10);
1340
+ checks.push({
1341
+ label: `Node.js v${process.versions.node} (requires >=18)`,
1342
+ ok: nodeMajor >= 18,
1343
+ missing: 0,
1344
+ failureLabel: 'unsupported',
1345
+ });
1346
+
1347
+ const template = path.join(skillRoot, 'assets/template.html');
1348
+ checks.push({
1349
+ label: 'Core template',
1350
+ ok: fs.existsSync(template),
1351
+ missing: fs.existsSync(template) ? 0 : 1,
1352
+ });
1353
+
1354
+ const examplesRenderer = path.join(skillRoot, 'scripts/render-examples.mjs');
1355
+ checks.push({
1356
+ label: 'Example renderer',
1357
+ ok: fs.existsSync(examplesRenderer),
1358
+ missing: fs.existsSync(examplesRenderer) ? 0 : 1,
1359
+ });
1360
+
1361
+ const previewRuntime = path.join(skillRoot, 'bin/preview.mjs');
1362
+ checks.push({
1363
+ label: 'Live preview runtime',
1364
+ ok: fs.existsSync(previewRuntime),
1365
+ missing: fs.existsSync(previewRuntime) ? 0 : 1,
1366
+ });
1367
+
1368
+ const visualCheckRuntime = path.join(skillRoot, 'bin/visual-check.mjs');
1369
+ checks.push({
1370
+ label: 'Visual-check runtime',
1371
+ ok: fs.existsSync(visualCheckRuntime),
1372
+ missing: fs.existsSync(visualCheckRuntime) ? 0 : 1,
1373
+ });
1374
+
1375
+ const outputPathRuntime = path.join(skillRoot, 'renderers/shared/output-path.mjs');
1376
+ checks.push({
1377
+ label: 'Output path safety runtime',
1378
+ ok: fs.existsSync(outputPathRuntime),
1379
+ missing: fs.existsSync(outputPathRuntime) ? 0 : 1,
1380
+ });
1381
+
1382
+ const scenarioGuide = path.join(skillRoot, 'recipes/scenarios.mjs');
1383
+ checks.push({
1384
+ label: 'Scenario recipe guide',
1385
+ ok: fs.existsSync(scenarioGuide),
1386
+ missing: fs.existsSync(scenarioGuide) ? 0 : 1,
1387
+ });
1388
+
1389
+ const authoringReferences = [
1390
+ path.join(skillRoot, 'references', 'authoring-contract.md'),
1391
+ path.join(skillRoot, 'references', 'viewer-runtime.md'),
1392
+ path.join(skillRoot, 'references', 'delivery-contract.md'),
1393
+ ];
1394
+ const authoringReferencesMissing = authoringReferences.filter((file) => !fs.existsSync(file)).length;
1395
+ checks.push({
1396
+ label: 'Progressive authoring references',
1397
+ ok: authoringReferencesMissing === 0,
1398
+ missing: authoringReferencesMissing,
1399
+ });
1400
+
1401
+ const compareRuntime = path.join(skillRoot, 'delta/architecture-delta.mjs');
1402
+ const compareFixtures = [
1403
+ path.join(skillRoot, 'examples/checkout-platform.base.architecture.json'),
1404
+ path.join(skillRoot, 'examples/checkout-platform.head.architecture.json'),
1405
+ ];
1406
+ const compareMissing = [compareRuntime, ...compareFixtures].filter((file) => !fs.existsSync(file)).length;
1407
+ checks.push({
1408
+ label: 'Architecture compare runtime and proof fixtures',
1409
+ ok: compareMissing === 0,
1410
+ missing: compareMissing,
1411
+ });
1412
+
1413
+ const validators = path.join(skillRoot, 'renderers/shared/generated-validators.mjs');
1414
+ const validatorsExist = fs.existsSync(validators);
1415
+ let validatorsValid = false;
1416
+ if (validatorsExist) {
1417
+ try {
1418
+ const module = await import(`${pathToFileURL(validators).href}?doctor=${Date.now()}`);
1419
+ validatorsValid = [...TYPES].every((type) => typeof module[type] === 'function');
1420
+ } catch {
1421
+ validatorsValid = false;
1422
+ }
1423
+ }
1424
+ checks.push({
1425
+ label: 'Standalone schema validators',
1426
+ ok: validatorsValid,
1427
+ missing: validatorsExist ? 0 : 1,
1428
+ invalid: validatorsExist && !validatorsValid ? 1 : 0,
1429
+ failureLabel: validatorsExist ? 'invalid' : 'missing',
1430
+ });
1431
+
1432
+ const examples = {
1433
+ architecture: 'web-app.architecture.json',
1434
+ workflow: 'agent-tool-call.workflow.json',
1435
+ sequence: 'cache-miss-request.sequence.json',
1436
+ dataflow: 'product-analytics.dataflow.json',
1437
+ lifecycle: 'agent-run.lifecycle.json',
1438
+ };
1439
+
1440
+ for (const type of TYPES) {
1441
+ const required = [
1442
+ path.join(skillRoot, 'renderers', type, `render-${type}.mjs`),
1443
+ path.join(skillRoot, 'schemas', `${type}.schema.json`),
1444
+ path.join(skillRoot, 'examples', examples[type]),
1445
+ ];
1446
+ const missing = required.filter((file) => !fs.existsSync(file)).length;
1447
+ checks.push({
1448
+ label: `${type} renderer, schema, and example`,
1449
+ ok: missing === 0,
1450
+ missing,
1451
+ });
1452
+ }
1453
+
1454
+ console.log('Archify doctor\n');
1455
+ for (const check of checks) {
1456
+ console.log(`[${check.ok ? 'ok' : (check.failureLabel || 'missing')}] ${check.label}`);
1457
+ }
1458
+
1459
+ const nodeFailed = checks[0].ok ? 0 : 1;
1460
+ const missingFiles = checks.reduce((count, check) => count + check.missing, 0);
1461
+ const invalidRuntime = checks.reduce((count, check) => count + (check.invalid || 0), 0);
1462
+ if (nodeFailed === 0 && missingFiles === 0 && invalidRuntime === 0) {
1463
+ console.log('\nArchify is ready.');
1464
+ return;
1465
+ }
1466
+
1467
+ const problems = [];
1468
+ if (nodeFailed) problems.push('Node.js 18 or newer is required');
1469
+ if (missingFiles) problems.push(`${missingFiles} required file${missingFiles === 1 ? '' : 's'} missing`);
1470
+ if (invalidRuntime) problems.push(`${invalidRuntime} runtime check${invalidRuntime === 1 ? '' : 's'} failed`);
1471
+ console.error(`\nArchify is not ready: ${problems.join('; ')}.`);
1472
+ process.exitCode = 1;
1473
+ }
1474
+
1475
+ async function commandGuide(args) {
1476
+ let lang;
1477
+ let json = false;
1478
+ const queryParts = [];
1479
+
1480
+ for (let index = 0; index < args.length; index += 1) {
1481
+ const arg = args[index];
1482
+ if (arg === '--json') {
1483
+ json = true;
1484
+ } else if (arg === '--lang') {
1485
+ const value = args[index + 1];
1486
+ if (value !== 'en' && value !== 'zh') fail('--lang must be "en" or "zh".');
1487
+ lang = value;
1488
+ index += 1;
1489
+ } else if (arg.startsWith('--lang=')) {
1490
+ const value = arg.slice('--lang='.length);
1491
+ if (value !== 'en' && value !== 'zh') fail('--lang must be "en" or "zh".');
1492
+ lang = value;
1493
+ } else if (arg.startsWith('--')) {
1494
+ fail(`Unknown guide option "${arg}".`);
1495
+ } else {
1496
+ queryParts.push(arg);
1497
+ }
1498
+ }
1499
+
1500
+ const guidePath = path.join(skillRoot, 'recipes/scenarios.mjs');
1501
+ let guide;
1502
+ try {
1503
+ guide = await import(pathToFileURL(guidePath).href);
1504
+ } catch (error) {
1505
+ fail(`Could not load the scenario recipe guide: ${error.message}`, 1);
1506
+ }
1507
+
1508
+ const query = queryParts.join(' ').trim();
1509
+ if (!query) {
1510
+ const selectedLang = lang || 'en';
1511
+ if (json) {
1512
+ console.log(JSON.stringify({
1513
+ ok: true,
1514
+ mode: 'list',
1515
+ lang: selectedLang,
1516
+ recipes: guide.listScenarioRecipes(selectedLang),
1517
+ }, null, 2));
1518
+ } else {
1519
+ console.log(guide.formatScenarioList(selectedLang));
1520
+ }
1521
+ return;
1522
+ }
1523
+
1524
+ const result = guide.recommendScenario(query, lang ? { lang } : {});
1525
+ console.log(json ? JSON.stringify(result, null, 2) : guide.formatScenarioRecommendation(result));
1526
+ }
1527
+
1528
+ async function commandBrands(args) {
1529
+ const json = args.includes('--json');
1530
+ const unknown = args.filter((arg) => arg.startsWith('--') && arg !== '--json');
1531
+ if (unknown.length) fail(`Unknown brands option "${unknown[0]}".`);
1532
+ const positional = args.filter((arg) => arg !== '--json');
1533
+ if (positional[0] === 'capture') {
1534
+ if (positional.length !== 2) fail('Usage: archify brands capture <url> [--json]');
1535
+ const { captureBrandReference } = await import('../renderers/shared/brand-marks.mjs');
1536
+ let capture;
1537
+ try {
1538
+ capture = await captureBrandReference(positional[1]);
1539
+ } catch (error) {
1540
+ fail(error.message);
1541
+ }
1542
+ const result = {
1543
+ schemaVersion: 1,
1544
+ ok: true,
1545
+ command: 'brands capture',
1546
+ brand: capture.brand,
1547
+ evidence: {
1548
+ status: capture.resolved.status,
1549
+ source: capture.resolved.sourceUrl,
1550
+ ...(capture.resolved.sha256 ? { sha256: capture.resolved.sha256 } : {}),
1551
+ ...(capture.resolved.contentType ? { contentType: capture.resolved.contentType } : {}),
1552
+ },
1553
+ };
1554
+ console.log(json ? JSON.stringify(result, null, 2) : JSON.stringify(result.brand));
1555
+ return;
1556
+ }
1557
+ const query = positional.join(' ').trim();
1558
+ const { listBrandMarks } = await import('../renderers/shared/brand-marks.mjs');
1559
+ const marks = listBrandMarks(query);
1560
+ if (json) {
1561
+ console.log(JSON.stringify({
1562
+ schemaVersion: 1,
1563
+ ok: true,
1564
+ command: 'brands',
1565
+ query,
1566
+ count: marks.length,
1567
+ marks,
1568
+ fallback: 'Run "archify brands capture <url> --json", then use the returned digest-pinned brand value.',
1569
+ }, null, 2));
1570
+ return;
1571
+ }
1572
+ if (!marks.length) {
1573
+ console.log(`No built-in brand matched "${query}". Run "archify brands capture <url> --json", then use the returned digest-pinned brand value.`);
1574
+ return;
1575
+ }
1576
+ const grouped = Map.groupBy
1577
+ ? Map.groupBy(marks, (mark) => mark.category)
1578
+ : marks.reduce((map, mark) => map.set(mark.category, [...(map.get(mark.category) || []), mark]), new Map());
1579
+ for (const [category, entries] of grouped) {
1580
+ console.log(`${category}: ${entries.map((mark) => mark.id).join(', ')}`);
1581
+ }
1582
+ }
1583
+
1584
+ function commandDemo(args) {
1585
+ const unknown = args.find((arg) => arg.startsWith('--'));
1586
+ if (unknown) fail(`Unknown demo option "${unknown}".`);
1587
+ if (args.length > 1) fail(usage());
1588
+
1589
+ const outputDirectory = path.resolve(args[0] || process.cwd());
1590
+ const output = path.join(outputDirectory, 'archify-demo.html');
1591
+ const input = path.join(skillRoot, 'examples/web-app.architecture.json');
1592
+
1593
+ try {
1594
+ fs.mkdirSync(outputDirectory, { recursive: true });
1595
+ } catch (error) {
1596
+ fail(`Could not create demo directory "${outputDirectory}": ${error.message}`, 1);
1597
+ }
1598
+
1599
+ const result = runNode([rendererPath('architecture'), input, output]);
1600
+ if (result.status !== 0) exitFrom(result);
1601
+
1602
+ console.log(`\nDemo ready: ${output}`);
1603
+ console.log('Next: open the HTML in your browser, then render your own diagram:');
1604
+ console.log(' archify render architecture <input.json> <output.html>');
1605
+ }
1606
+
1607
+ function migrationPathDiagnostics(error, sourcePath, destinationPath) {
1608
+ if (Array.isArray(error?.archifyDiagnostics) && error.archifyDiagnostics.length) {
1609
+ return error.archifyDiagnostics.map((entry) => ({
1610
+ ...entry,
1611
+ subject: { ...(entry.subject || {}) },
1612
+ evidence: { ...(entry.evidence || {}) },
1613
+ supportedFixes: [...(entry.supportedFixes || [])],
1614
+ }));
1615
+ }
1616
+ return [diagnostic({
1617
+ code: 'migration/path-preflight',
1618
+ message: 'Could not verify that the workflow migration paths are distinct.',
1619
+ subject: { source: sourcePath, destination: destinationPath },
1620
+ evidence: {
1621
+ ...(error?.code ? { systemCode: error.code } : {}),
1622
+ reason: error?.message || String(error),
1623
+ },
1624
+ supportedFixes: ['remove unsafe path aliases or choose a different destination path'],
1625
+ })];
1626
+ }
1627
+
1628
+ function migrationReport({
1629
+ ok,
1630
+ sourcePath,
1631
+ destinationPath,
1632
+ sourceBytes,
1633
+ destinationBytes,
1634
+ fromSchemaVersion,
1635
+ preExistingDiagnostics = [],
1636
+ migrationDiagnostics = [],
1637
+ newSchemaDiagnostics = [],
1638
+ changedCoordinates = [],
1639
+ oldRequiredViewBox = null,
1640
+ newRequiredViewBox = null,
1641
+ }) {
1642
+ const report = {
1643
+ ok,
1644
+ command: 'migrate',
1645
+ type: 'workflow',
1646
+ source: {
1647
+ path: sourcePath,
1648
+ ...(sourceBytes ? {
1649
+ sha256: createHash('sha256').update(sourceBytes).digest('hex'),
1650
+ bytes: sourceBytes.length,
1651
+ } : {}),
1652
+ },
1653
+ destination: {
1654
+ path: destinationPath,
1655
+ ...(destinationBytes ? {
1656
+ sha256: createHash('sha256').update(destinationBytes).digest('hex'),
1657
+ bytes: destinationBytes.length,
1658
+ } : {}),
1659
+ },
1660
+ fromSchemaVersion: fromSchemaVersion ?? null,
1661
+ toSchemaVersion: 2,
1662
+ preExistingDiagnostics,
1663
+ migrationDiagnostics,
1664
+ newSchemaDiagnostics,
1665
+ changedCoordinates,
1666
+ oldRequiredViewBox,
1667
+ newRequiredViewBox,
1668
+ };
1669
+ if (!ok) {
1670
+ report.diagnostics = [
1671
+ ...migrationDiagnostics,
1672
+ ...newSchemaDiagnostics,
1673
+ ...preExistingDiagnostics,
1674
+ ];
1675
+ if (!report.diagnostics.length) {
1676
+ report.diagnostics.push(diagnostic({
1677
+ code: 'migration/internal',
1678
+ message: 'Workflow migration failed without a classified diagnostic.',
1679
+ }));
1680
+ }
1681
+ report.error = report.diagnostics[0].message;
1682
+ }
1683
+ return report;
1684
+ }
1685
+
1686
+ function extractMigrationOptions(args) {
1687
+ const positional = [];
1688
+ let json = false;
1689
+ let toSchema;
1690
+ for (let index = 0; index < args.length; index += 1) {
1691
+ const arg = args[index];
1692
+ if (arg === '--json') {
1693
+ json = true;
1694
+ continue;
1695
+ }
1696
+ if (arg === '--to-schema') {
1697
+ toSchema = args[index + 1];
1698
+ if (!toSchema || toSchema.startsWith('--')) fail('--to-schema requires a schema version.');
1699
+ index += 1;
1700
+ continue;
1701
+ }
1702
+ if (arg.startsWith('--to-schema=')) {
1703
+ toSchema = arg.slice('--to-schema='.length);
1704
+ if (!toSchema) fail('--to-schema requires a schema version.');
1705
+ continue;
1706
+ }
1707
+ if (arg.startsWith('--')) fail(`Unknown migrate option "${arg}".`);
1708
+ positional.push(arg);
1709
+ }
1710
+ return { positional, json, toSchema };
1711
+ }
1712
+
1713
+ async function commandMigrate(args) {
1714
+ const options = extractMigrationOptions(args);
1715
+ const [type, sourceArgument, destinationArgument] = options.positional;
1716
+ if (
1717
+ type !== 'workflow'
1718
+ || !sourceArgument
1719
+ || !destinationArgument
1720
+ || options.positional.length !== 3
1721
+ || options.toSchema !== '2'
1722
+ ) {
1723
+ fail('Usage: archify migrate workflow <old.json> <new.json> --to-schema 2 [--json]');
1724
+ }
1725
+
1726
+ const sourcePath = path.resolve(sourceArgument);
1727
+ const destinationPath = path.resolve(destinationArgument);
1728
+ let sourceBytes;
1729
+ let sourceDocument;
1730
+ const reportMigrationFailure = ({ status = 1, ...details }) => {
1731
+ const report = migrationReport({
1732
+ ...details,
1733
+ ok: false,
1734
+ sourcePath,
1735
+ destinationPath,
1736
+ sourceBytes,
1737
+ fromSchemaVersion: sourceDocument?.schema_version,
1738
+ });
1739
+ if (options.json) console.log(JSON.stringify(report, null, 2));
1740
+ else console.error(formatDiagnostics(report.error, report.diagnostics));
1741
+ process.exitCode = status;
1742
+ };
1743
+ try {
1744
+ sourceBytes = fs.readFileSync(sourcePath);
1745
+ sourceDocument = JSON.parse(sourceBytes.toString('utf8'));
1746
+ } catch (error) {
1747
+ reportMigrationFailure({
1748
+ preExistingDiagnostics: [inputDiagnostic(error, sourcePath)],
1749
+ });
1750
+ return;
1751
+ }
1752
+ // Unlike render/validate, migrate has no --quality override. Pin every stage
1753
+ // to the document's durable policy and scrub any ambient profile from the
1754
+ // staged renderer by passing this value explicitly.
1755
+ const activeQualityProfile = sourceDocument?.meta?.quality_profile || 'standard';
1756
+
1757
+ const { pathsAlias } = await import('../renderers/shared/output-path.mjs');
1758
+ let sourceDestinationAlias;
1759
+ try {
1760
+ sourceDestinationAlias = pathsAlias(sourcePath, destinationPath);
1761
+ } catch (error) {
1762
+ reportMigrationFailure({
1763
+ migrationDiagnostics: migrationPathDiagnostics(error, sourcePath, destinationPath),
1764
+ });
1765
+ return;
1766
+ }
1767
+ if (sourceDestinationAlias) {
1768
+ reportMigrationFailure({
1769
+ migrationDiagnostics: [diagnostic({
1770
+ code: 'migration/source-destination',
1771
+ message: 'Workflow migration source and destination must be different files.',
1772
+ subject: { source: sourcePath, destination: destinationPath },
1773
+ supportedFixes: ['choose a different destination path and keep the source unchanged'],
1774
+ })],
1775
+ });
1776
+ return;
1777
+ }
1778
+
1779
+ const { migrateWorkflowDocument, serializeMigratedWorkflow } = await import('../migrations/workflow-v2.mjs');
1780
+ let migration;
1781
+ try {
1782
+ migration = migrateWorkflowDocument(sourceDocument);
1783
+ } catch (error) {
1784
+ migration = {
1785
+ ok: false,
1786
+ migrationDiagnostics: [diagnostic({
1787
+ code: 'migration/internal',
1788
+ message: 'Workflow migration failed unexpectedly.',
1789
+ evidence: { reason: error.message },
1790
+ supportedFixes: ['report the source workflow and this diagnostic to the Archify maintainers'],
1791
+ })],
1792
+ };
1793
+ }
1794
+
1795
+ if (!migration.ok) {
1796
+ reportMigrationFailure(migration);
1797
+ return;
1798
+ }
1799
+
1800
+ if (fs.existsSync(destinationPath) && !fs.lstatSync(destinationPath).isFile()) {
1801
+ reportMigrationFailure({
1802
+ ...migration,
1803
+ migrationDiagnostics: [...migration.migrationDiagnostics, diagnostic({
1804
+ code: 'migration/destination-type',
1805
+ message: 'Workflow migration destination must be a regular file path.',
1806
+ subject: { destination: destinationPath },
1807
+ supportedFixes: ['choose a destination path that is absent or names a regular file'],
1808
+ })],
1809
+ });
1810
+ return;
1811
+ }
1812
+
1813
+ const destinationDirectory = path.dirname(destinationPath);
1814
+ let stagingDirectory;
1815
+ try {
1816
+ fs.mkdirSync(destinationDirectory, { recursive: true });
1817
+ stagingDirectory = fs.mkdtempSync(path.join(destinationDirectory, '.archify-migration-'));
1818
+ } catch (error) {
1819
+ reportMigrationFailure({
1820
+ ...migration,
1821
+ migrationDiagnostics: [...migration.migrationDiagnostics, diagnostic({
1822
+ code: 'migration/prepare-destination',
1823
+ message: 'Could not prepare the workflow migration destination.',
1824
+ subject: { destination: destinationPath },
1825
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
1826
+ supportedFixes: ['choose a writable destination directory'],
1827
+ })],
1828
+ });
1829
+ return;
1830
+ }
1831
+
1832
+ const candidatePath = path.join(stagingDirectory, 'candidate.workflow.json');
1833
+ const artifactPath = path.join(stagingDirectory, 'migration-check.html');
1834
+ const destinationBytes = Buffer.from(serializeMigratedWorkflow(migration.document));
1835
+ try {
1836
+ fs.writeFileSync(candidatePath, destinationBytes, { flag: 'wx' });
1837
+ const render = runNode([rendererPath('workflow'), candidatePath, artifactPath], {
1838
+ stdio: 'pipe',
1839
+ env: rendererEnv(activeQualityProfile, undefined, true),
1840
+ });
1841
+ if (render.status !== 0) {
1842
+ const failure = rendererFailure(render);
1843
+ reportMigrationFailure({
1844
+ ...migration,
1845
+ newSchemaDiagnostics: [...migration.newSchemaDiagnostics, ...failure.diagnostics],
1846
+ status: render.status ?? 1,
1847
+ });
1848
+ return;
1849
+ }
1850
+
1851
+ const check = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), artifactPath], {
1852
+ stdio: 'pipe',
1853
+ });
1854
+ if (check.status !== 0) {
1855
+ let checker;
1856
+ try {
1857
+ checker = JSON.parse(check.stdout);
1858
+ } catch {
1859
+ checker = null;
1860
+ }
1861
+ reportMigrationFailure({
1862
+ ...migration,
1863
+ newSchemaDiagnostics: [
1864
+ ...migration.newSchemaDiagnostics,
1865
+ ...checkerDiagnostics(checker),
1866
+ ],
1867
+ status: check.status ?? 1,
1868
+ });
1869
+ return;
1870
+ }
1871
+
1872
+ if (pathsAlias(sourcePath, destinationPath)) {
1873
+ reportMigrationFailure({
1874
+ ...migration,
1875
+ migrationDiagnostics: [...migration.migrationDiagnostics, diagnostic({
1876
+ code: 'migration/source-destination',
1877
+ message: 'Workflow migration source and destination resolved to the same file before commit.',
1878
+ subject: { source: sourcePath, destination: destinationPath },
1879
+ supportedFixes: ['choose a different destination path and retry'],
1880
+ })],
1881
+ });
1882
+ return;
1883
+ }
1884
+ const currentSourceBytes = fs.readFileSync(sourcePath);
1885
+ if (!currentSourceBytes.equals(sourceBytes)) {
1886
+ reportMigrationFailure({
1887
+ ...migration,
1888
+ migrationDiagnostics: [...migration.migrationDiagnostics, diagnostic({
1889
+ code: 'migration/source-changed',
1890
+ message: 'Workflow migration source changed while the destination was being verified.',
1891
+ subject: { source: sourcePath },
1892
+ supportedFixes: ['retry the migration from a stable workflow source file'],
1893
+ })],
1894
+ });
1895
+ return;
1896
+ }
1897
+
1898
+ fs.renameSync(candidatePath, destinationPath);
1899
+ const report = migrationReport({
1900
+ ...migration,
1901
+ sourcePath,
1902
+ destinationPath,
1903
+ sourceBytes,
1904
+ destinationBytes,
1905
+ fromSchemaVersion: sourceDocument.schema_version,
1906
+ });
1907
+ if (options.json) console.log(JSON.stringify(report, null, 2));
1908
+ else if (sourceDocument.schema_version === 1) {
1909
+ console.log(`migrated workflow schema v1→v2: ${sourcePath} → ${destinationPath}`);
1910
+ } else {
1911
+ console.log(`verified workflow schema v2 migration: ${sourcePath} → ${destinationPath}`);
1912
+ }
1913
+ } catch (error) {
1914
+ const migrationDiagnostics = Array.isArray(error?.archifyDiagnostics)
1915
+ ? migrationPathDiagnostics(error, sourcePath, destinationPath)
1916
+ : [diagnostic({
1917
+ code: 'migration/commit',
1918
+ message: 'Could not commit the verified workflow migration.',
1919
+ subject: { destination: destinationPath },
1920
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}), reason: error.message },
1921
+ supportedFixes: ['choose a writable regular-file destination and retry'],
1922
+ })];
1923
+ reportMigrationFailure({
1924
+ ...migration,
1925
+ migrationDiagnostics: [...migration.migrationDiagnostics, ...migrationDiagnostics],
1926
+ });
1927
+ } finally {
1928
+ try {
1929
+ fs.rmSync(stagingDirectory, { recursive: true, force: true });
1930
+ } catch (error) {
1931
+ console.error(`Warning: could not remove workflow migration staging directory "${stagingDirectory}": ${error.message}`);
1932
+ }
1933
+ }
1934
+ }
1935
+
1936
+ function commandValidate(args) {
1937
+ const qualityArgs = extractQualityArgs(args);
1938
+ const repoArgs = extractRepoRootArgs(qualityArgs.rest);
1939
+ args = repoArgs.rest;
1940
+ const quality = qualityArgs.quality;
1941
+ const repoRoot = repoArgs.repoRoot;
1942
+ const knownOptions = new Set(['--json', '--layout-json']);
1943
+ const unknown = args.filter((arg) => arg.startsWith('--') && !knownOptions.has(arg));
1944
+ if (unknown.length) rejectCliArgument(`Unknown validate option "${unknown[0]}".`, {
1945
+ code: 'cli/unknown-option',
1946
+ subject: { option: unknown[0] },
1947
+ supportedFixes: ['remove the unknown option and retry'],
1948
+ });
1949
+ const json = args.includes('--json');
1950
+ const layoutJson = args.includes('--layout-json');
1951
+ const rest = args.filter((arg) => !knownOptions.has(arg));
1952
+ const [type, input] = rest;
1953
+ if (!type || !input || rest.length !== 2) rejectCliArgument(usage(), {
1954
+ code: 'cli/usage',
1955
+ supportedFixes: ['use: archify validate <type> <input.json> [options]'],
1956
+ });
1957
+ assertEvidenceType(type, repoRoot);
1958
+ const renderer = rendererPath(type);
1959
+
1960
+ if (layoutJson && !['architecture', 'workflow'].includes(type)) {
1961
+ rejectCliArgument('--layout-json is currently supported for architecture and workflow diagrams only.', {
1962
+ code: 'cli/unsupported-option',
1963
+ subject: { option: '--layout-json', type },
1964
+ supportedFixes: ['remove --layout-json or use an architecture or workflow diagram'],
1965
+ });
1966
+ }
1967
+
1968
+ if (layoutJson) {
1969
+ // Layout mode emits JSON without writing HTML; keep its unused target typed.
1970
+ const layoutOutput = path.join(os.tmpdir(), `archify-layout-${process.pid}-${type}.html`);
1971
+ const result = runNode([renderer, input, layoutOutput, '--layout-json'], {
1972
+ stdio: 'pipe',
1973
+ env: rendererEnv(quality, repoRoot, true),
1974
+ });
1975
+ if (result.status !== 0) {
1976
+ try {
1977
+ const receipt = JSON.parse(result.stdout);
1978
+ if (receipt?.contract && Array.isArray(receipt.diagnostics)) {
1979
+ process.stdout.write(`${JSON.stringify(receipt, null, 2)}\n`);
1980
+ process.exitCode = result.status ?? 1;
1981
+ return;
1982
+ }
1983
+ } catch {
1984
+ // Fall through to the renderer failure contract when no compiler
1985
+ // receipt was produced (for example, input JSON could not be read).
1986
+ }
1987
+ const failure = rendererFailure(result);
1988
+ reportValidateFailure({
1989
+ json,
1990
+ stage: failure.diagnostics.some((entry) => entry.code.startsWith('input/')) ? 'input' : 'render',
1991
+ type,
1992
+ input: path.resolve(input),
1993
+ error: failure.error,
1994
+ diagnostics: failure.diagnostics,
1995
+ status: result.status ?? 1,
1996
+ });
1997
+ return;
1998
+ }
1999
+ process.stdout.write(result.stdout);
2000
+ return;
2001
+ }
2002
+
2003
+ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-validate-'));
2004
+ const out = path.join(tmp, `${type}.html`);
2005
+ let exitCode = 0;
2006
+
2007
+ try {
2008
+ const render = runNode([renderer, input, out], {
2009
+ stdio: 'pipe',
2010
+ env: rendererEnv(quality, repoRoot, true),
2011
+ });
2012
+ if (render.status !== 0) {
2013
+ const failure = rendererFailure(render);
2014
+ reportValidateFailure({
2015
+ json,
2016
+ stage: failure.diagnostics.some((entry) => entry.code.startsWith('input/')) ? 'input' : 'render',
2017
+ type,
2018
+ input: path.resolve(input),
2019
+ error: failure.error,
2020
+ diagnostics: failure.diagnostics,
2021
+ status: render.status ?? 1,
2022
+ });
2023
+ exitCode = render.status ?? 1;
2024
+ } else {
2025
+ const check = runNode([path.join(skillRoot, 'scripts/check-render-output.mjs'), out], { stdio: 'pipe' });
2026
+ if (check.status !== 0) {
2027
+ let checker;
2028
+ try {
2029
+ checker = JSON.parse(check.stdout);
2030
+ checker.file = path.resolve(input);
2031
+ } catch {
2032
+ checker = { ok: false, diagnostic: 'Artifact checker failed without a parseable receipt.' };
2033
+ }
2034
+ reportValidateFailure({
2035
+ json,
2036
+ stage: 'check',
2037
+ type,
2038
+ input: path.resolve(input),
2039
+ error: 'Final artifact check failed.',
2040
+ diagnostics: checkerDiagnostics(checker),
2041
+ checker,
2042
+ status: check.status ?? 1,
2043
+ });
2044
+ exitCode = check.status ?? 1;
2045
+ } else {
2046
+ const result = JSON.parse(check.stdout);
2047
+ const engineeringProfile = engineeringProfileFromArtifact(fs.readFileSync(out));
2048
+ if (json) {
2049
+ console.log(JSON.stringify({
2050
+ schemaVersion: 1,
2051
+ ok: true,
2052
+ command: 'validate',
2053
+ type,
2054
+ input: path.resolve(input),
2055
+ checks: result.checks,
2056
+ composition: result.composition,
2057
+ ...(engineeringProfile ? { engineeringProfile } : {}),
2058
+ }, null, 2));
2059
+ } else {
2060
+ const engineering = engineeringProfile
2061
+ ? `; engineering ${engineeringProfile}: pass`
2062
+ : '';
2063
+ console.log(`ok ${type} ${path.resolve(input)} (${result.checks.length} artifact checks; composition ${result.composition.profile}: ${result.composition.summary.errors} errors, ${result.composition.summary.warnings} warnings${engineering})`);
2064
+ }
2065
+ }
2066
+ }
2067
+ } finally {
2068
+ fs.rmSync(tmp, { recursive: true, force: true });
2069
+ }
2070
+
2071
+ if (exitCode !== 0) process.exitCode = exitCode;
2072
+ }
2073
+
2074
+ const [command, ...args] = process.argv.slice(2);
2075
+
2076
+ try {
2077
+ switch (command) {
2078
+ case undefined:
2079
+ case '-h':
2080
+ case '--help':
2081
+ case 'help':
2082
+ console.log(usage());
2083
+ break;
2084
+ case 'render':
2085
+ commandRender(args);
2086
+ break;
2087
+ case 'compare':
2088
+ await commandCompare(args);
2089
+ break;
2090
+ case 'deliver':
2091
+ await commandDeliver(args);
2092
+ break;
2093
+ case 'preview':
2094
+ await commandPreview(args);
2095
+ break;
2096
+ case 'validate':
2097
+ commandValidate(args);
2098
+ break;
2099
+ case 'migrate':
2100
+ await commandMigrate(args);
2101
+ break;
2102
+ case 'inspect':
2103
+ if (args[0] !== 'architecture') {
2104
+ fail('inspect is currently supported for architecture diagrams only.');
2105
+ }
2106
+ commandValidate([...args, '--layout-json']);
2107
+ break;
2108
+ case 'check':
2109
+ commandCheck(args);
2110
+ break;
2111
+ case 'visual-check':
2112
+ await commandVisualCheck(args);
2113
+ break;
2114
+ case 'guide':
2115
+ await commandGuide(args);
2116
+ break;
2117
+ case 'brands':
2118
+ await commandBrands(args);
2119
+ break;
2120
+ case 'examples':
2121
+ commandExamples(args);
2122
+ break;
2123
+ case 'doctor':
2124
+ await commandDoctor(args);
2125
+ break;
2126
+ case 'demo':
2127
+ commandDemo(args);
2128
+ break;
2129
+ default:
2130
+ fail(`Unknown command "${command}".\n\n${usage()}`);
2131
+ }
2132
+ } catch (error) {
2133
+ if (!error.archifyArgument) throw error;
2134
+ if (['validate', 'deliver'].includes(command) && args.includes('--json')) {
2135
+ reportArtifactArgumentFailure(command, error);
2136
+ } else {
2137
+ fail(error.message);
2138
+ }
2139
+ }