openplanr 3.2.0 → 3.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 (411) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/dist/cli/commands/artifact-design-share.d.ts +9 -0
  3. package/dist/cli/commands/artifact-design-share.d.ts.map +1 -0
  4. package/dist/cli/commands/artifact-design-share.js +200 -0
  5. package/dist/cli/commands/artifact-design-share.js.map +1 -0
  6. package/dist/cli/commands/artifact.d.ts.map +1 -1
  7. package/dist/cli/commands/artifact.js +5 -18
  8. package/dist/cli/commands/artifact.js.map +1 -1
  9. package/dist/cli/commands/ship.d.ts.map +1 -1
  10. package/dist/cli/commands/ship.js +2 -0
  11. package/dist/cli/commands/ship.js.map +1 -1
  12. package/dist/cli/commands/spec.d.ts +2 -1
  13. package/dist/cli/commands/spec.d.ts.map +1 -1
  14. package/dist/cli/commands/spec.js +45 -5
  15. package/dist/cli/commands/spec.js.map +1 -1
  16. package/dist/dashboard/.vite/manifest.json +2 -2
  17. package/dist/dashboard/assets/index-Cv4Vwhuw.css +2 -0
  18. package/dist/dashboard/assets/index-CvQAlBy3.js +75 -0
  19. package/dist/dashboard/assets/index-CvQAlBy3.js.map +1 -0
  20. package/dist/dashboard/dashboard-manifest.json +14 -14
  21. package/dist/dashboard/index.html +2 -2
  22. package/dist/services/claude-plugin-service.d.ts +5 -0
  23. package/dist/services/claude-plugin-service.d.ts.map +1 -1
  24. package/dist/services/claude-plugin-service.js +18 -2
  25. package/dist/services/claude-plugin-service.js.map +1 -1
  26. package/dist/services/codex-plugin-service.d.ts.map +1 -1
  27. package/dist/services/codex-plugin-service.js +11 -3
  28. package/dist/services/codex-plugin-service.js.map +1 -1
  29. package/dist/services/design-artifact-service.d.ts +20 -1
  30. package/dist/services/design-artifact-service.d.ts.map +1 -1
  31. package/dist/services/design-artifact-service.js +137 -18
  32. package/dist/services/design-artifact-service.js.map +1 -1
  33. package/dist/services/runtime-manager/codex-discovery.d.ts +1 -3
  34. package/dist/services/runtime-manager/codex-discovery.d.ts.map +1 -1
  35. package/dist/services/runtime-manager/codex-discovery.js +3 -16
  36. package/dist/services/runtime-manager/codex-discovery.js.map +1 -1
  37. package/dist/services/runtime-manager/doctor.d.ts +25 -0
  38. package/dist/services/runtime-manager/doctor.d.ts.map +1 -1
  39. package/dist/services/runtime-manager/doctor.js +480 -0
  40. package/dist/services/runtime-manager/doctor.js.map +1 -1
  41. package/dist/services/runtime-manager/errors.d.ts +12 -0
  42. package/dist/services/runtime-manager/errors.d.ts.map +1 -0
  43. package/dist/services/runtime-manager/errors.js +14 -0
  44. package/dist/services/runtime-manager/errors.js.map +1 -0
  45. package/dist/services/runtime-manager/global-state.d.ts +7 -0
  46. package/dist/services/runtime-manager/global-state.d.ts.map +1 -1
  47. package/dist/services/runtime-manager/global-state.js +116 -0
  48. package/dist/services/runtime-manager/global-state.js.map +1 -1
  49. package/dist/services/runtime-manager/host-version-probe.d.ts +8 -0
  50. package/dist/services/runtime-manager/host-version-probe.d.ts.map +1 -0
  51. package/dist/services/runtime-manager/host-version-probe.js +14 -0
  52. package/dist/services/runtime-manager/host-version-probe.js.map +1 -0
  53. package/dist/services/runtime-manager/install-plan.d.ts +25 -0
  54. package/dist/services/runtime-manager/install-plan.d.ts.map +1 -1
  55. package/dist/services/runtime-manager/install-plan.js +305 -0
  56. package/dist/services/runtime-manager/install-plan.js.map +1 -1
  57. package/dist/services/runtime-manager/inventory.d.ts +6 -0
  58. package/dist/services/runtime-manager/inventory.d.ts.map +1 -1
  59. package/dist/services/runtime-manager/inventory.js +16 -1
  60. package/dist/services/runtime-manager/inventory.js.map +1 -1
  61. package/dist/services/runtime-manager/legacy-adapters.d.ts +9 -0
  62. package/dist/services/runtime-manager/legacy-adapters.d.ts.map +1 -0
  63. package/dist/services/runtime-manager/legacy-adapters.js +187 -0
  64. package/dist/services/runtime-manager/legacy-adapters.js.map +1 -0
  65. package/dist/services/runtime-manager/paths.d.ts +18 -0
  66. package/dist/services/runtime-manager/paths.d.ts.map +1 -0
  67. package/dist/services/runtime-manager/paths.js +83 -0
  68. package/dist/services/runtime-manager/paths.js.map +1 -0
  69. package/dist/services/runtime-manager/runtime-package.d.ts +21 -0
  70. package/dist/services/runtime-manager/runtime-package.d.ts.map +1 -1
  71. package/dist/services/runtime-manager/runtime-package.js +77 -0
  72. package/dist/services/runtime-manager/runtime-package.js.map +1 -1
  73. package/dist/services/runtime-manager/storage.d.ts +47 -0
  74. package/dist/services/runtime-manager/storage.d.ts.map +1 -0
  75. package/dist/services/runtime-manager/storage.js +604 -0
  76. package/dist/services/runtime-manager/storage.js.map +1 -0
  77. package/dist/services/runtime-manager-service.d.ts +7 -17
  78. package/dist/services/runtime-manager-service.d.ts.map +1 -1
  79. package/dist/services/runtime-manager-service.js +32 -1695
  80. package/dist/services/runtime-manager-service.js.map +1 -1
  81. package/dist/services/ship-checks/contract.d.ts +15 -1
  82. package/dist/services/ship-checks/contract.d.ts.map +1 -1
  83. package/dist/services/ship-checks/contract.js +1 -1
  84. package/dist/services/ship-checks/contract.js.map +1 -1
  85. package/dist/services/ship-checks/coverage.d.ts +4 -0
  86. package/dist/services/ship-checks/coverage.d.ts.map +1 -0
  87. package/dist/services/ship-checks/coverage.js +113 -0
  88. package/dist/services/ship-checks/coverage.js.map +1 -0
  89. package/dist/services/ship-checks/discover.d.ts.map +1 -1
  90. package/dist/services/ship-checks/discover.js +5 -1
  91. package/dist/services/ship-checks/discover.js.map +1 -1
  92. package/dist/services/ship-checks/package-contents.d.ts +4 -0
  93. package/dist/services/ship-checks/package-contents.d.ts.map +1 -0
  94. package/dist/services/ship-checks/package-contents.js +91 -0
  95. package/dist/services/ship-checks/package-contents.js.map +1 -0
  96. package/dist/services/ship-checks/packages.d.ts +2 -0
  97. package/dist/services/ship-checks/packages.d.ts.map +1 -1
  98. package/dist/services/ship-checks/packages.js +4 -0
  99. package/dist/services/ship-checks/packages.js.map +1 -1
  100. package/dist/services/ship-checks/scope.js +2 -1
  101. package/dist/services/ship-checks/scope.js.map +1 -1
  102. package/dist/services/spec-service.d.ts +18 -0
  103. package/dist/services/spec-service.d.ts.map +1 -1
  104. package/dist/services/spec-service.js +174 -9
  105. package/dist/services/spec-service.js.map +1 -1
  106. package/dist/templates/spec/spec-shaped.md.hbs +1 -1
  107. package/dist/templates/spec/spec.md.hbs +2 -2
  108. package/dist/utils/splice-managed-block.js +1 -1
  109. package/dist/utils/splice-managed-block.js.map +1 -1
  110. package/docs/CLI.md +86 -2
  111. package/lib/host-packages/adapter-registry.json +5 -5
  112. package/lib/host-packages/capability-map.json +3 -3
  113. package/lib/host-packages/claude/.claude-plugin/marketplace.json +3 -3
  114. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +6 -6
  115. package/lib/host-packages/claude/openplanr/.openplanr-content.json +94 -146
  116. package/lib/host-packages/claude/openplanr/README.md +12 -12
  117. package/lib/host-packages/claude/openplanr/agents/planr-qa.md +5 -3
  118. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/task-context-resolution.md +4 -4
  119. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +2 -4
  120. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +110 -25
  121. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +851 -57
  122. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review-state-store.mjs +45 -0
  123. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +65 -74
  124. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -1
  125. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +321 -0
  126. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +1652 -0
  127. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs → claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs} +537 -5
  128. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +137 -0
  129. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +374 -61
  130. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +32 -59
  131. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +138 -133
  132. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +1 -5608
  133. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +2568 -0
  134. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +10 -74
  135. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -4
  136. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +8 -2
  137. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +2 -2
  138. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +5 -5
  139. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +72 -2
  140. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +14 -7
  141. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +71 -34
  142. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +28 -14
  143. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +12 -12
  144. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +6 -2
  145. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0 → claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0}/design-document.schema.json +131 -4
  146. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +822 -0
  147. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +616 -4775
  148. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +219 -424
  149. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +6 -2
  150. package/lib/host-packages/claude/openplanr/skills/delegate/SKILL.md +2 -1
  151. package/lib/host-packages/claude/openplanr/skills/delegate/references/integration-review.md +26 -20
  152. package/lib/host-packages/claude/openplanr/skills/delegate/references/operator-guide.md +25 -1
  153. package/lib/host-packages/claude/openplanr/skills/delegate/references/run-handoff.md +2 -2
  154. package/lib/host-packages/claude/openplanr/skills/delegate/references/worktree-custody.md +17 -9
  155. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/claude.mjs +15 -3
  156. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/codex.mjs +38 -2
  157. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/native.mjs +5 -0
  158. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/custody.mjs +217 -10
  159. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/handoff.mjs +1080 -0
  160. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integrate.mjs +96 -201
  161. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integration-files.mjs +3 -382
  162. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/presentation.mjs +29 -12
  163. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-contract.mjs +11 -0
  164. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-execution.mjs +1 -1
  165. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-lifecycle.mjs +14 -10
  166. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-preparation.mjs +4 -0
  167. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-record.mjs +2 -2
  168. package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +17 -2
  169. package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +60 -2
  170. package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +23 -7
  171. package/lib/host-packages/claude/openplanr/skills/design/schemas/design-document.schema.json +131 -4
  172. package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +17 -2
  173. package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +60 -2
  174. package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +23 -7
  175. package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-document.schema.json +131 -4
  176. package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +17 -2
  177. package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +60 -2
  178. package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +23 -7
  179. package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-document.schema.json +131 -4
  180. package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +2 -1
  181. package/lib/host-packages/claude/openplanr/skills/investigate/references/fail-first.md +40 -0
  182. package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +21 -11
  183. package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-document.schema.json +131 -4
  184. package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +51 -18
  185. package/lib/host-packages/claude/openplanr/skills/ship/references/fail-first.md +40 -0
  186. package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +7 -3
  187. package/lib/host-packages/claude/openplanr/skills/spec/SKILL.md +6 -0
  188. package/lib/host-packages/claude/openplanr/skills/spec/references/specification-contract.md +3 -1
  189. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +91 -143
  190. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  191. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/integration-review.md +26 -20
  192. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/operator-guide.md +25 -1
  193. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/run-handoff.md +2 -2
  194. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/worktree-custody.md +17 -9
  195. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/claude.mjs +15 -3
  196. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/codex.mjs +38 -2
  197. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/native.mjs +5 -0
  198. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/custody.mjs +217 -10
  199. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/handoff.mjs +1080 -0
  200. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integrate.mjs +96 -201
  201. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integration-files.mjs +3 -382
  202. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/presentation.mjs +29 -12
  203. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-contract.mjs +11 -0
  204. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-execution.mjs +1 -1
  205. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-lifecycle.mjs +14 -10
  206. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-preparation.mjs +4 -0
  207. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-record.mjs +2 -2
  208. package/lib/host-packages/cursor/openplanr/rules/planr-delegate.mdc +2 -1
  209. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +17 -2
  210. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +60 -2
  211. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +23 -7
  212. package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-document.schema.json +131 -4
  213. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +17 -2
  214. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +60 -2
  215. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +23 -7
  216. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-document.schema.json +131 -4
  217. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +17 -2
  218. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +60 -2
  219. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +23 -7
  220. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-document.schema.json +131 -4
  221. package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/fail-first.md +40 -0
  222. package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +2 -1
  223. package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-document.schema.json +131 -4
  224. package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +21 -11
  225. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/fail-first.md +40 -0
  226. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +7 -3
  227. package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +51 -18
  228. package/lib/host-packages/cursor/openplanr/rules/planr-spec/references/specification-contract.md +3 -1
  229. package/lib/host-packages/cursor/openplanr/rules/planr-spec.mdc +6 -0
  230. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +2 -4
  231. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +110 -25
  232. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +851 -57
  233. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review-state-store.mjs +45 -0
  234. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +65 -74
  235. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -1
  236. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +321 -0
  237. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +1652 -0
  238. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs → design-shared-artifact-support-protocol-contracts-9f6918b0.mjs} +537 -5
  239. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +137 -0
  240. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +374 -61
  241. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +32 -59
  242. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +138 -133
  243. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +1 -5608
  244. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +2568 -0
  245. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +10 -74
  246. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -4
  247. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +8 -2
  248. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +2 -2
  249. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +5 -5
  250. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +72 -2
  251. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +14 -7
  252. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +71 -34
  253. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +28 -14
  254. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +12 -12
  255. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +6 -2
  256. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/{v1.20.0 → v1.22.0}/design-document.schema.json +131 -4
  257. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +822 -0
  258. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +616 -4775
  259. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +219 -424
  260. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +6 -2
  261. package/lib/host-packages/openai/.claude-plugin/marketplace.json +3 -3
  262. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +2 -2
  263. package/lib/host-packages/openai/openplanr/.openplanr-content.json +98 -150
  264. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +2 -4
  265. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +110 -25
  266. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +851 -57
  267. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review-state-store.mjs +45 -0
  268. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +65 -74
  269. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -1
  270. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +321 -0
  271. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +1652 -0
  272. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs} +537 -5
  273. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +137 -0
  274. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +374 -61
  275. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +32 -59
  276. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +138 -133
  277. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +1 -5608
  278. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +2568 -0
  279. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +10 -74
  280. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -4
  281. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +8 -2
  282. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +2 -2
  283. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +5 -5
  284. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +72 -2
  285. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +14 -7
  286. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +71 -34
  287. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +28 -14
  288. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +12 -12
  289. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +6 -2
  290. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0 → openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0}/design-document.schema.json +131 -4
  291. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +822 -0
  292. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +616 -4775
  293. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +219 -424
  294. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +6 -2
  295. package/lib/host-packages/openai/openplanr/skills/delegate/SKILL.md +2 -1
  296. package/lib/host-packages/openai/openplanr/skills/delegate/openplanr.skill.json +1 -1
  297. package/lib/host-packages/openai/openplanr/skills/delegate/references/integration-review.md +26 -20
  298. package/lib/host-packages/openai/openplanr/skills/delegate/references/operator-guide.md +25 -1
  299. package/lib/host-packages/openai/openplanr/skills/delegate/references/run-handoff.md +2 -2
  300. package/lib/host-packages/openai/openplanr/skills/delegate/references/worktree-custody.md +17 -9
  301. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/claude.mjs +15 -3
  302. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/codex.mjs +38 -2
  303. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/native.mjs +5 -0
  304. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/custody.mjs +217 -10
  305. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/handoff.mjs +1080 -0
  306. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integrate.mjs +96 -201
  307. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integration-files.mjs +3 -382
  308. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/presentation.mjs +29 -12
  309. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-contract.mjs +11 -0
  310. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-execution.mjs +1 -1
  311. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-lifecycle.mjs +14 -10
  312. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-preparation.mjs +4 -0
  313. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-record.mjs +2 -2
  314. package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +17 -2
  315. package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +60 -2
  316. package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +23 -7
  317. package/lib/host-packages/openai/openplanr/skills/design/schemas/design-document.schema.json +131 -4
  318. package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +17 -2
  319. package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +60 -2
  320. package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +23 -7
  321. package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-document.schema.json +131 -4
  322. package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +17 -2
  323. package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +60 -2
  324. package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +23 -7
  325. package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-document.schema.json +131 -4
  326. package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +2 -1
  327. package/lib/host-packages/openai/openplanr/skills/investigate/agents/openai.yaml +1 -1
  328. package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +12 -1
  329. package/lib/host-packages/openai/openplanr/skills/investigate/references/fail-first.md +40 -0
  330. package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +21 -11
  331. package/lib/host-packages/openai/openplanr/skills/plan/openplanr.skill.json +1 -1
  332. package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-document.schema.json +131 -4
  333. package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +51 -18
  334. package/lib/host-packages/openai/openplanr/skills/ship/agents/openai.yaml +1 -1
  335. package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +12 -1
  336. package/lib/host-packages/openai/openplanr/skills/ship/references/fail-first.md +40 -0
  337. package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +7 -3
  338. package/lib/host-packages/openai/openplanr/skills/spec/SKILL.md +6 -0
  339. package/lib/host-packages/openai/openplanr/skills/spec/openplanr.skill.json +1 -1
  340. package/lib/host-packages/openai/openplanr/skills/spec/references/specification-contract.md +3 -1
  341. package/lib/json-schema.mjs +4 -0
  342. package/package.json +16 -16
  343. package/dist/dashboard/assets/index-BU5fzjyz.css +0 -1
  344. package/dist/dashboard/assets/index-L8qtwqv6.js +0 -572
  345. package/dist/dashboard/assets/index-L8qtwqv6.js.map +0 -1
  346. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
  347. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
  348. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
  349. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
  350. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
  351. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs +0 -24
  352. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
  353. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +0 -1020
  354. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
  355. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5778
  356. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
  357. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
  358. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
  359. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
  360. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
  361. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
  362. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
  363. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
  364. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
  365. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
  366. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
  367. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integration-transaction.mjs +0 -958
  368. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integration-transaction.mjs +0 -958
  369. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
  370. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
  371. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
  372. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
  373. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
  374. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs +0 -24
  375. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
  376. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +0 -1020
  377. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
  378. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5778
  379. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
  380. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
  381. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
  382. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
  383. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
  384. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
  385. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
  386. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
  387. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
  388. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
  389. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
  390. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
  391. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
  392. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
  393. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
  394. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
  395. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs +0 -24
  396. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
  397. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +0 -1020
  398. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
  399. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5778
  400. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
  401. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
  402. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
  403. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
  404. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
  405. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
  406. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
  407. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
  408. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
  409. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
  410. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
  411. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integration-transaction.mjs +0 -958
@@ -1,18 +1,8 @@
1
1
  import { execFile as execFileCallback } from 'node:child_process';
2
- import { createHash, randomUUID } from 'node:crypto';
3
- import {
4
- linkSync,
5
- lstatSync,
6
- readFileSync,
7
- readlinkSync,
8
- renameSync,
9
- symlinkSync,
10
- unlinkSync,
11
- } from 'node:fs';
12
- import { chmod, lstat, mkdir, readFile, rename, rm, symlink, writeFile } from 'node:fs/promises';
13
- import { basename, dirname, isAbsolute, relative, resolve, sep } from 'node:path';
2
+ import { lstat } from 'node:fs/promises';
3
+ import { dirname, isAbsolute, resolve, sep } from 'node:path';
14
4
  import { promisify } from 'node:util';
15
- import { captureFileState, gitFileState, headFileState } from './custody.mjs';
5
+ import { captureFileState, headFileState } from './custody.mjs';
16
6
 
17
7
  const execFile = promisify(execFileCallback);
18
8
  const gitOptions = { encoding: 'buffer', maxBuffer: 32 * 1024 * 1024 };
@@ -81,303 +71,6 @@ export async function safeDestination(root, path) {
81
71
  return full;
82
72
  }
83
73
 
84
- export async function putState(root, path, state, suffix, createdDirectories = []) {
85
- const target = await safeDestination(root, path);
86
- if (state.kind === 'absent') {
87
- await rm(target, { force: true });
88
- return;
89
- }
90
- const missing = [];
91
- let directory = dirname(target);
92
- while (directory !== resolve(root)) {
93
- try {
94
- await lstat(directory);
95
- break;
96
- } catch (error) {
97
- if (error.code !== 'ENOENT') throw error;
98
- missing.push(directory);
99
- directory = dirname(directory);
100
- }
101
- }
102
- for (const created of missing.reverse()) {
103
- await mkdir(created);
104
- createdDirectories.push(created);
105
- }
106
- const temporary = `${target}.planr-delegate-${suffix}`;
107
- try {
108
- if (state.kind === 'file') {
109
- await writeFile(temporary, Buffer.from(state.contentBase64, 'base64'), {
110
- mode: 0o600,
111
- flag: 'wx',
112
- });
113
- await chmod(temporary, state.mode);
114
- } else if (state.kind === 'symlink') {
115
- if (
116
- isAbsolute(state.target) ||
117
- !resolve(dirname(target), state.target).startsWith(`${resolve(root)}${sep}`)
118
- )
119
- throw new IntegrationError('E_INTEGRATION_LINK', 'Delegate symlink target is unsafe.', {
120
- path,
121
- });
122
- await symlink(state.target, temporary);
123
- } else throw new IntegrationError('E_INTEGRATION_STATE', 'Unsupported file state.', { path });
124
- await rename(temporary, target);
125
- } finally {
126
- await rm(temporary, { force: true });
127
- }
128
- }
129
-
130
- export function retainedEntryState(file) {
131
- try {
132
- const info = lstatSync(file);
133
- if (info.isSymbolicLink())
134
- return { kind: 'symlink', mode: info.mode & 0o777, target: readlinkSync(file) };
135
- if (!info.isFile())
136
- throw new IntegrationError('E_INTEGRATION_STATE', 'Destination is not a file.', {
137
- path: file,
138
- });
139
- return {
140
- kind: 'file',
141
- mode: info.mode & 0o777,
142
- contentBase64: readFileSync(file).toString('base64'),
143
- };
144
- } catch (error) {
145
- if (error.code === 'ENOENT') return { kind: 'absent' };
146
- throw error;
147
- }
148
- }
149
-
150
- const LOCAL_CUSTODY = '.planr-delegate-write-custody';
151
-
152
- async function privateDirectory(path, create = true) {
153
- if (create)
154
- await mkdir(path, { mode: 0o700 }).catch((error) => {
155
- if (error.code !== 'EEXIST') throw error;
156
- });
157
- const info = await lstat(path);
158
- if (
159
- !info.isDirectory() ||
160
- info.isSymbolicLink() ||
161
- (info.mode & 0o077) !== 0 ||
162
- (process.getuid && info.uid !== process.getuid())
163
- )
164
- throw new IntegrationError(
165
- 'E_INTEGRATION_CUSTODY',
166
- 'Write custody is not a private directory.',
167
- );
168
- }
169
-
170
- // Git metadata can be on another volume. Keep claims and staging beside the
171
- // destination in that case, and save the location before the first source write.
172
- async function writeCustody(root, target, suffix, create = true) {
173
- if (basename(safePath(suffix)) !== suffix)
174
- throw new IntegrationError('E_INTEGRATION_CUSTODY', 'Invalid write custody identifier.');
175
- const gitDirectory = (await git(root, 'rev-parse', '--absolute-git-dir')).toString('utf8').trim();
176
- const base = resolve(gitDirectory, 'planr-delegate-write-custody');
177
- const metadata = resolve(base, suffix);
178
- for (const directory of [base, metadata]) {
179
- try {
180
- await privateDirectory(directory, false);
181
- } catch (error) {
182
- if (error.code !== 'ENOENT') throw error;
183
- }
184
- }
185
- const reference = resolve(metadata, 'location.json');
186
- let location;
187
- try {
188
- location = JSON.parse(await readFile(reference, 'utf8'));
189
- } catch (error) {
190
- if (error.code !== 'ENOENT') throw error;
191
- }
192
- if (location) {
193
- const directory = await safeDestination(root, location.path);
194
- const anchor = dirname(dirname(directory));
195
- if (
196
- basename(directory) !== suffix ||
197
- basename(dirname(directory)) !== LOCAL_CUSTODY ||
198
- !target.startsWith(`${anchor}${sep}`)
199
- )
200
- throw new IntegrationError('E_INTEGRATION_CUSTODY', 'Write custody location changed.');
201
- await privateDirectory(dirname(directory), false);
202
- await privateDirectory(directory, false);
203
- return directory;
204
- }
205
- if (!create) return metadata;
206
- await privateDirectory(base);
207
- await privateDirectory(metadata);
208
- let anchor = dirname(target);
209
- let info;
210
- for (;;) {
211
- try {
212
- info = await lstat(anchor);
213
- break;
214
- } catch (error) {
215
- if (error.code !== 'ENOENT') throw error;
216
- anchor = dirname(anchor);
217
- }
218
- }
219
- if (info.dev === (await lstat(gitDirectory)).dev) return metadata;
220
- const local = resolve(anchor, LOCAL_CUSTODY);
221
- await privateDirectory(local);
222
- const ignore = resolve(local, '.gitignore');
223
- try {
224
- await writeFile(ignore, '*\n', { flag: 'wx', mode: 0o600 });
225
- } catch (error) {
226
- if (error.code !== 'EEXIST' || (await readFile(ignore, 'utf8')) !== '*\n') throw error;
227
- }
228
- const directory = resolve(local, suffix);
229
- await privateDirectory(directory);
230
- await writeFile(reference, JSON.stringify({ path: relative(root, directory) }), {
231
- flag: 'wx',
232
- mode: 0o600,
233
- });
234
- return directory;
235
- }
236
-
237
- function parentEntries(root, target) {
238
- const entries = [];
239
- for (let path = dirname(target); ; path = dirname(path)) {
240
- const info = lstatSync(path);
241
- if (!info.isDirectory() || info.isSymbolicLink())
242
- throw new IntegrationError(
243
- 'E_INTEGRATION_PATH',
244
- 'Destination parent is not a real directory.',
245
- );
246
- entries.push({ path, dev: info.dev, ino: info.ino });
247
- if (path === resolve(root)) return entries;
248
- }
249
- }
250
-
251
- function assertParentEntries(entries) {
252
- for (const entry of entries) {
253
- const info = lstatSync(entry.path);
254
- if (
255
- !info.isDirectory() ||
256
- info.isSymbolicLink() ||
257
- info.dev !== entry.dev ||
258
- info.ino !== entry.ino
259
- )
260
- throw new IntegrationError(
261
- 'E_INTEGRATION_SOURCE_DRIFT',
262
- 'Destination parent changed during integration.',
263
- { path: entry.path },
264
- );
265
- }
266
- }
267
-
268
- // Claim the current directory entry, inspect the claimed bytes, then publish with
269
- // exclusive link creation. A concurrent replacement is never overwritten. Claimed
270
- // entries remain private for crash recovery and for writers holding the old inode.
271
- export async function putStateGuarded(
272
- root,
273
- path,
274
- state,
275
- expected,
276
- suffix,
277
- createdDirectories = [],
278
- ) {
279
- const target = await safeDestination(root, path);
280
- const custody = await writeCustody(root, target, suffix);
281
- const key = createHash('sha256').update(path).digest('hex');
282
- const claimed = resolve(custody, `${key}.before`);
283
- const staged = `${key}.after-${randomUUID()}`;
284
- await assertSafeChanges(root, [{ path, after: state }]);
285
- if (state.kind === 'file') {
286
- await writeFile(resolve(custody, staged), Buffer.from(state.contentBase64, 'base64'), {
287
- flag: 'wx',
288
- mode: 0o600,
289
- });
290
- await chmod(resolve(custody, staged), state.mode);
291
- } else if (state.kind === 'symlink') await symlink(state.target, resolve(custody, staged));
292
- const missing = [];
293
- let directory = dirname(target);
294
- while (directory !== resolve(root)) {
295
- try {
296
- await lstat(directory);
297
- break;
298
- } catch (error) {
299
- if (error.code !== 'ENOENT') throw error;
300
- missing.push(directory);
301
- directory = dirname(directory);
302
- }
303
- }
304
- for (const created of missing.reverse()) {
305
- await mkdir(created);
306
- createdDirectories.push(created);
307
- }
308
- const parents = parentEntries(root, target);
309
- let moved = false;
310
- let published = false;
311
- try {
312
- if (expected.kind !== 'absent') {
313
- try {
314
- if (retainedEntryState(claimed).kind === 'absent') renameSync(target, claimed);
315
- moved = true;
316
- } catch (error) {
317
- if (error.code !== 'ENOENT') throw error;
318
- }
319
- if (!moved || !sameState(retainedEntryState(claimed), expected))
320
- throw new IntegrationError(
321
- 'E_INTEGRATION_SOURCE_DRIFT',
322
- 'Destination changed before its write was claimed.',
323
- { path, retainedPath: moved ? claimed : null },
324
- );
325
- }
326
- assertParentEntries(parents);
327
- // link is atomic and fails if an editor created a replacement during the claim.
328
- if (state.kind !== 'absent') {
329
- if (state.kind === 'symlink') symlinkSync(state.target, target);
330
- else linkSync(resolve(custody, staged), target);
331
- published = true;
332
- } else if (retainedEntryState(target).kind !== 'absent')
333
- throw new IntegrationError(
334
- 'E_INTEGRATION_SOURCE_DRIFT',
335
- 'A concurrent replacement blocks deletion.',
336
- { path, retainedPath: claimed },
337
- );
338
- assertParentEntries(parents);
339
- if (moved && !sameState(retainedEntryState(claimed), expected))
340
- throw new IntegrationError(
341
- 'E_INTEGRATION_SOURCE_DRIFT',
342
- 'A writer changed the claimed original; retained for recovery.',
343
- { path, retainedPath: claimed },
344
- );
345
- return moved ? claimed : null;
346
- } catch (error) {
347
- if (published)
348
- error.details = { ...error.details, published: true, path, retainedPath: claimed };
349
- if (moved) {
350
- // Restore exclusively: an owner's replacement always takes precedence.
351
- try {
352
- assertParentEntries(parents);
353
- const original = retainedEntryState(claimed);
354
- if (original.kind === 'symlink') symlinkSync(original.target, target);
355
- else linkSync(claimed, target);
356
- } catch (restoreError) {
357
- if (restoreError.code !== 'EEXIST')
358
- error.details = { ...error.details, restoreCode: restoreError.code };
359
- }
360
- }
361
- if (error.code === 'EEXIST')
362
- throw new IntegrationError(
363
- 'E_INTEGRATION_SOURCE_DRIFT',
364
- 'A concurrent destination was preserved.',
365
- { path, retainedPath: moved ? claimed : null },
366
- );
367
- throw error;
368
- } finally {
369
- if (state.kind !== 'absent') {
370
- try {
371
- unlinkSync(resolve(custody, staged));
372
- } catch (error) {
373
- // Staging is private and recoverable; cleanup failure must not replace a write conflict.
374
- if (error.code !== 'ENOENT')
375
- process.emitWarning(`Private write staging cleanup failed: ${error.code}`);
376
- }
377
- }
378
- }
379
- }
380
-
381
74
  export async function workingPaths(root) {
382
75
  const [tracked, untracked] = await Promise.all([
383
76
  git(root, 'diff', '--name-only', '-z', 'HEAD'),
@@ -426,75 +119,3 @@ export async function assertSafeChanges(root, changes) {
426
119
  });
427
120
  }
428
121
  }
429
-
430
- export async function rollbackWritten(root, changes, suffix) {
431
- const errors = [];
432
- for (const change of [...changes].reverse()) {
433
- try {
434
- const current = await captureFileState(root, change.path);
435
- if (sameState(current, change.sourceBefore)) continue;
436
- let claimed;
437
- if (change.writeId) {
438
- const target = await safeDestination(root, change.path);
439
- const directory = await writeCustody(root, target, change.writeId, false);
440
- const file = `${createHash('sha256').update(change.path).digest('hex')}.before`;
441
- claimed = retainedEntryState(resolve(directory, file));
442
- if (claimed.kind !== 'absent' && !sameState(claimed, change.sourceBefore)) {
443
- errors.push({
444
- path: change.path,
445
- retainedPath: resolve(directory, file),
446
- code: 'E_INTEGRATION_ROLLBACK_CONFLICT',
447
- });
448
- continue;
449
- }
450
- }
451
- if (
452
- current.kind === 'absent' &&
453
- claimed?.kind !== 'absent' &&
454
- claimed &&
455
- sameState(claimed, change.sourceBefore)
456
- ) {
457
- await putStateGuarded(
458
- root,
459
- change.path,
460
- change.sourceBefore,
461
- current,
462
- `${suffix}-interrupted`,
463
- );
464
- continue;
465
- }
466
- if (!sameState(current, change.after)) {
467
- errors.push({ path: change.path, code: 'E_INTEGRATION_ROLLBACK_CONFLICT' });
468
- continue;
469
- }
470
- await putStateGuarded(
471
- root,
472
- change.path,
473
- change.sourceBefore,
474
- change.after,
475
- change.writeId ? `${change.writeId}-rollback` : `${suffix}-rollback`,
476
- );
477
- } catch (error) {
478
- errors.push({ path: change.path, code: error.code ?? 'E_INTEGRATION_ROLLBACK' });
479
- }
480
- }
481
- return errors;
482
- }
483
-
484
- export async function treeIdentity(root, overrides = new Map()) {
485
- const paths = new Set(
486
- (await git(root, 'ls-files', '-z', '--cached', '--others', '--exclude-standard'))
487
- .toString('utf8')
488
- .split('\0')
489
- .filter(Boolean),
490
- );
491
- for (const path of overrides.keys()) paths.add(path);
492
- const hash = createHash('sha256');
493
- for (const path of [...paths].sort()) {
494
- const state = overrides.get(path) ?? (await captureFileState(root, safePath(path)));
495
- const logical = await gitFileState(root, path, state);
496
- if (logical.kind !== 'absent')
497
- hash.update(path).update('\0').update(JSON.stringify(logical)).update('\0');
498
- }
499
- return hash.digest('hex');
500
- }
@@ -94,6 +94,16 @@ export function handoffPresentation(outcome) {
94
94
  };
95
95
  }
96
96
 
97
+ function warningText({ refs, omitted }) {
98
+ return `Refs changed outside this run (not blocking): ${refs.join(', ')}${omitted ? ` and ${omitted} more` : ''}`;
99
+ }
100
+
101
+ function violationText({ code, path, ref, change, omitted }) {
102
+ if (omitted) return `${code}: ${omitted} more path(s)`;
103
+ if (!path) return ref ? `${code}: ${ref}` : code;
104
+ return change ? `${code}: ${path} (${change})` : `${code}: ${path}`;
105
+ }
106
+
97
107
  export function reviewPresentation(review) {
98
108
  return {
99
109
  phase: 'review',
@@ -102,7 +112,8 @@ export function reviewPresentation(review) {
102
112
  ? `${review.changedPaths.length} observed file change(s) ready for human review; nothing has been integrated.`
103
113
  : 'Observed changes require attention before integration.',
104
114
  changed: visiblePaths(review.changedPaths),
105
- violations: review.violations.map(({ code, path }) => (path ? `${code}: ${path}` : code)),
115
+ violations: review.violations.map(violationText),
116
+ warnings: (review.warnings ?? []).map(warningText),
106
117
  nextAction: review.ready
107
118
  ? 'Inspect the retained worktree patch and then call apply with the same scope.'
108
119
  : 'Resolve the violations in the retained worktree or source before retrying.',
@@ -121,7 +132,8 @@ export function implementationReport(result, selector) {
121
132
  ...(result.cleanup?.status === 'failed'
122
133
  ? ['Owned worktree cleanup failed; integration remains accepted']
123
134
  : []),
124
- ...(result.violations ?? []).map(({ code, path }) => (path ? `${code}: ${path}` : code)),
135
+ ...(result.violations ?? []).map(violationText),
136
+ ...(result.warnings ?? []).map(warningText),
125
137
  ...(result.code ? [result.code] : []),
126
138
  ...failed.map(({ command, status, exitCode, timeoutMs, classification }) =>
127
139
  status === 'timed-out'
@@ -136,6 +148,10 @@ export function implementationReport(result, selector) {
136
148
  ]
137
149
  : []),
138
150
  ];
151
+ const unselected = result.unselectedDirtyPaths ?? [];
152
+ const unselectedNote = unselected.length
153
+ ? ` Checks did not include ${result.unselectedDirtyCount ?? unselected.length} unselected local change(s): ${visiblePaths(unselected)}.`
154
+ : '';
139
155
  return {
140
156
  Outcome: accepted
141
157
  ? paths.length
@@ -146,16 +162,17 @@ export function implementationReport(result, selector) {
146
162
  Changed: paths.length
147
163
  ? `${paths.length} observed file(s) ${accepted ? 'integrated' : 'not accepted'}: ${visiblePaths(paths)}`
148
164
  : 'No observed file changes.',
149
- Checks: checks.length
150
- ? `${checks.filter(({ status }) => status === 'passed').length}/${checks.length} independent check(s) passed: ${checks
151
- .map(
152
- ({ command, status, durationMs }) =>
153
- `${command} (${status}${
154
- durationMs === undefined ? '' : `, ${(durationMs / 1000).toFixed(1)}s`
155
- })`,
156
- )
157
- .join(', ')}`
158
- : 'No independent checks ran; verification remains unconfirmed.',
165
+ Checks:
166
+ (checks.length
167
+ ? `${checks.filter(({ status }) => status === 'passed').length}/${checks.length} independent check(s) passed: ${checks
168
+ .map(
169
+ ({ command, status, durationMs }) =>
170
+ `${command} (${status}${
171
+ durationMs === undefined ? '' : `, ${(durationMs / 1000).toFixed(1)}s`
172
+ })`,
173
+ )
174
+ .join(', ')}${unselectedNote ? '.' : ''}`
175
+ : 'No independent checks ran; verification remains unconfirmed.') + unselectedNote,
159
176
  Issues: issues.length
160
177
  ? `${issues.join('; ')}.${accepted ? '' : ` ${result.nextAction ?? ''}`}`.trim()
161
178
  : 'None found in this review.',
@@ -55,6 +55,17 @@ export function integrationPaths(paths) {
55
55
  'E_DELEGATE_SCOPE',
56
56
  'Integration paths must be safe repository-relative paths.',
57
57
  );
58
+ // Scope entries are literal prefixes; a glob would only fail later at review.
59
+ const parts = path.split('/');
60
+ const glob = parts.findIndex((part) => /[*?]/u.test(part));
61
+ if (glob !== -1) {
62
+ throw new DelegateRunError(
63
+ 'E_DELEGATE_SCOPE',
64
+ glob > 0
65
+ ? `Integration paths are literal path prefixes, not globs; use "${parts.slice(0, glob).join('/')}" instead of "${path}".`
66
+ : `Integration paths are literal path prefixes, not globs; list the files or directories "${path}" should cover.`,
67
+ );
68
+ }
58
69
  return path;
59
70
  }),
60
71
  ),
@@ -42,7 +42,7 @@ const SAFE_ADAPTER_DIAGNOSTICS = Object.freeze({
42
42
  E_ADAPTER_PROCESS_IDENTITY:
43
43
  'Process identity inspection is unavailable. Restore normal host process inspection before retrying; native permissions were not changed.',
44
44
  E_ADAPTER_PERMISSION:
45
- 'Native permission needs attention. Resolve it in the native configuration, then continue this exact session; permissions are never weakened automatically.',
45
+ 'Native permission needs attention. Resolve it in the native configuration, then continue this exact session; permissions are never bypassed automatically.',
46
46
  E_ADAPTER_RESULT:
47
47
  'Native execution ended without terminal evidence; inspect the exact session and retained worktree.',
48
48
  E_ADAPTER_MODEL_TEMPLATE:
@@ -5,7 +5,7 @@ import { basename, dirname, join } from 'node:path';
5
5
  import { setTimeout as delay } from 'node:timers/promises';
6
6
  import { terminateProcessGroup } from './adapters/generic.mjs';
7
7
  import { captureFileState, cleanupWorktreeCustody, validateWorktreeCustody } from './custody.mjs';
8
- import { git, treeIdentity } from './integration-files.mjs';
8
+ import { git } from './integration-files.mjs';
9
9
  import {
10
10
  implementationReport,
11
11
  liveExecutionTiming,
@@ -118,8 +118,13 @@ async function initialAbandonmentInventory(record, custody) {
118
118
  (record.initialIndex && record.initialIndex !== custody.initialIndex)
119
119
  )
120
120
  throw abandonError(record, 'The initial worktree HEAD, index or protected contents changed.');
121
+ if (
122
+ custody.base &&
123
+ (await git(target, 'rev-parse', 'HEAD')).toString('utf8').trim() !== custody.base
124
+ )
125
+ throw abandonError(record, 'The run branch advanced past its base commit.');
121
126
  const entries = new Map(
122
- (await git(target, 'ls-tree', '-r', '-z', custody.initialHead))
127
+ (await git(target, 'ls-tree', '-r', '-z', custody.base ?? custody.initialHead))
123
128
  .toString('utf8')
124
129
  .split('\0')
125
130
  .filter(Boolean)
@@ -338,6 +343,12 @@ export async function recoverDelegateRun({ runId, runDirectory = defaultRunDirec
338
343
  });
339
344
  }
340
345
 
346
+ async function worktreeAtTip(target, tip) {
347
+ const head = (await git(target, 'rev-parse', 'HEAD')).toString('utf8').trim();
348
+ const status = await git(target, 'status', '--porcelain=v1', '-z', '--untracked-files=all');
349
+ return head === tip && status.length === 0;
350
+ }
351
+
341
352
  export async function cleanupAcceptedWorktree(record, runDirectory) {
342
353
  if (record.cleanup?.status === 'removed') return record.cleanup;
343
354
  const disposition = record.disposition === 'integrated' ? 'accepted' : 'abandoned';
@@ -357,11 +368,7 @@ export async function cleanupAcceptedWorktree(record, runDirectory) {
357
368
  beforeRemove: async (target) => {
358
369
  if (unstarted)
359
370
  await assertUnchangedAbandonment(record, await custodyAt(record, runDirectory));
360
- if (
361
- record.nativeSelection &&
362
- record.integration?.worktreeIdentity &&
363
- (await treeIdentity(target)) !== record.integration.worktreeIdentity
364
- )
371
+ if (record.integration?.tip && !(await worktreeAtTip(target, record.integration.tip)))
365
372
  throw new DelegateRunError(
366
373
  'E_DELEGATE_CLEANUP_DRIFT',
367
374
  'Owned worktree changed after acceptance; retain it for inspection.',
@@ -450,9 +457,6 @@ export async function delegateRunStatus({ runId, runDirectory = defaultRunDirect
450
457
  ? {
451
458
  status: record.integration.status,
452
459
  phase: record.integration.phase,
453
- journalPath: record.integration.journalPath,
454
- cursor: record.integration.cursor,
455
- pendingPath: record.integration.pendingPath,
456
460
  nextAction: `Run node ${record.helper?.integrationPath ?? 'integrate.mjs'} recover with this run ID and resolution rollback (default) or accept after verifying every written path.`,
457
461
  }
458
462
  : null,
@@ -273,6 +273,8 @@ export async function prepareDelegateRun({
273
273
  worktreeParent: custodyParent,
274
274
  runId,
275
275
  native: prepared.profile.kind !== 'generic',
276
+ branch: true,
277
+ runDirectory: privateDirectory,
276
278
  });
277
279
  const custodyPath = join(runPath, 'custody.json');
278
280
  await updateRunRecord(
@@ -282,6 +284,8 @@ export async function prepareDelegateRun({
282
284
  worktreePath: custody.worktreePath,
283
285
  initialHead: custody.initialHead,
284
286
  initialIndex: custody.initialIndex,
287
+ branch: custody.branch,
288
+ base: custody.base,
285
289
  },
286
290
  { directory: privateDirectory },
287
291
  );
@@ -17,7 +17,7 @@ import { promisify } from 'node:util';
17
17
  import { CREDENTIAL_FORMAT } from './credentials.mjs';
18
18
  import { captureFileState } from './custody.mjs';
19
19
 
20
- export const RUN_RECORD_SCHEMA_VERSION = '2.0.0';
20
+ export const RUN_RECORD_SCHEMA_VERSION = '3.0.0';
21
21
  export const MAX_RUN_RECORD_BYTES = 64 * 1024;
22
22
  export const CLOSED_RETENTION_MS = 30 * 24 * 60 * 60 * 1000;
23
23
 
@@ -64,7 +64,7 @@ function encoded(record) {
64
64
  if (
65
65
  !record ||
66
66
  record.kind !== 'openplanr-delegation-run' ||
67
- !['1.0.0', RUN_RECORD_SCHEMA_VERSION].includes(record.schemaVersion) ||
67
+ !['1.0.0', '2.0.0', RUN_RECORD_SCHEMA_VERSION].includes(record.schemaVersion) ||
68
68
  !RUN_ID.test(record.runId ?? '')
69
69
  ) {
70
70
  throw new RunRecordError('E_RUN_FORMAT', 'Invalid delegated run record.');
@@ -54,8 +54,23 @@ while authoring:
54
54
  - at most two families and three weights each; one variable file can cover a
55
55
  family's weights.
56
56
 
57
- Snapshotting needs network access while authoring. When it is unavailable, or a
58
- license is unclear, use the role's system stack and name that fallback in the return:
57
+ Snapshot with the bundled helper, run from the skill directory (see
58
+ [utilities.md](utilities.md)):
59
+
60
+ ```sh
61
+ node scripts/design.mjs fonts fetch --family "Inter:400,600" --family "Source Serif 4:400" --dest <design>/source/assets/fonts
62
+ ```
63
+
64
+ It is the one command to ask approval for. A host that allowlists network access by
65
+ domain needs `raw.githubusercontent.com`, `fonts.googleapis.com` and
66
+ `fonts.gstatic.com`. It enforces the rules above, verifies each
67
+ license from the Google Fonts catalog, writes `fonts.css`, and prints the files and
68
+ total bytes. Start the design stylesheet with `@import "assets/fonts/fonts.css";`
69
+ (relative to that stylesheet), then use the families by name. Nothing is fetched when
70
+ a design opens.
71
+
72
+ When the host denies network access, the command fails, or it refuses a license, use
73
+ the role's system stack and name that fallback in the return:
59
74
 
60
75
  | Role | System stack |
61
76
  | --- | --- |