@mnstry/atelier 0.2.0-alpha.5 → 0.2.0-alpha.8

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 (383) hide show
  1. package/CHANGELOG.md +191 -0
  2. package/README.md +86 -25
  3. package/SECURITY.md +6 -1
  4. package/contracts/atelier-adoption-policy.v1.schema.json +49 -0
  5. package/contracts/atelier-coauthor.v1.schema.json +163 -0
  6. package/contracts/atelier-decision-request.v1.schema.json +476 -0
  7. package/contracts/atelier-decision-result.v1.schema.json +500 -0
  8. package/contracts/atelier-guide.v1.schema.json +227 -0
  9. package/contracts/atelier-intake.v1.schema.json +151 -0
  10. package/contracts/atelier-migration.v2.schema.json +61 -0
  11. package/contracts/atelier-obsidian-acceptance-receipt.v1.schema.json +211 -0
  12. package/contracts/atelier-obsidian-apply-policy.v1.schema.json +298 -0
  13. package/contracts/atelier-obsidian-corpus-profile.v1.schema.json +98 -0
  14. package/contracts/atelier-obsidian-edit-operation.v1.schema.json +138 -0
  15. package/contracts/atelier-obsidian-ext-settings.v1.schema.json +287 -0
  16. package/contracts/atelier-obsidian-generation-manifest.v1.schema.json +353 -0
  17. package/contracts/atelier-obsidian-proposal-receipt.v1.schema.json +110 -0
  18. package/contracts/atelier-obsidian-publication-journal.v1.schema.json +167 -0
  19. package/contracts/atelier-obsidian-scope.v1.schema.json +264 -0
  20. package/contracts/atelier-obsidian-service-state.v1.schema.json +149 -0
  21. package/contracts/atelier-obsidian-source-snapshot.v1.schema.json +179 -0
  22. package/contracts/atelier-pane-presentation.v1.schema.json +76 -0
  23. package/contracts/atelier-presentation.v1.schema.json +1293 -0
  24. package/contracts/atelier-repository-observation.v1.schema.json +163 -0
  25. package/contracts/atelier-review.v1.schema.json +1601 -0
  26. package/contracts/atelier-skill-steward.v1.schema.json +692 -0
  27. package/contracts/atelier-upgrade-plan.v2.schema.json +398 -0
  28. package/contracts/atelier-upgrade-receipt.v1.schema.json +99 -0
  29. package/contracts/atelier-vault-publication.v1.schema.json +58 -0
  30. package/docs/assurance-controls.md +12 -2
  31. package/docs/atelier-runtime.md +13 -2
  32. package/docs/atelier-sync.md +172 -0
  33. package/docs/blocks/claims.md +28 -18
  34. package/docs/blocks/will-not-do.md +12 -3
  35. package/docs/coauthor-session.md +57 -0
  36. package/docs/connected-composition.md +75 -0
  37. package/docs/decisions.md +167 -0
  38. package/docs/exact-upgrades.md +159 -0
  39. package/docs/extension-pack-lifecycle.md +33 -0
  40. package/docs/guided-upgrades.md +99 -0
  41. package/docs/install.md +65 -9
  42. package/docs/intake-and-guides.md +65 -0
  43. package/docs/integration-and-review-plan.md +409 -0
  44. package/docs/integration-contract-decisions.md +22 -0
  45. package/docs/local-review.md +84 -0
  46. package/docs/local-services.md +227 -0
  47. package/docs/local-state.md +107 -0
  48. package/docs/obsidian-contract.md +687 -0
  49. package/docs/obsidian.md +387 -0
  50. package/docs/portable-presentation.md +328 -0
  51. package/docs/presentation-consumer-boundaries.md +75 -0
  52. package/docs/presentation-review-disposition.md +47 -0
  53. package/docs/project-command-inventory.md +38 -0
  54. package/docs/project-options.md +53 -0
  55. package/docs/release-engineering.md +99 -2
  56. package/docs/review-portability.md +55 -0
  57. package/docs/skill-steward.md +156 -0
  58. package/docs/upgrade.md +70 -2
  59. package/docs/vault-service.md +292 -0
  60. package/fixtures/atelier-coauthor/invalid/authority.v1.json +5 -0
  61. package/fixtures/atelier-coauthor/valid/config.v1.json +12 -0
  62. package/fixtures/atelier-guide/invalid/authority.v1.json +11 -0
  63. package/fixtures/atelier-guide/valid/capability.v1.json +10 -0
  64. package/fixtures/atelier-guide/valid/consent.v1.json +11 -0
  65. package/fixtures/atelier-guide/valid/engagement.v1.json +7 -0
  66. package/fixtures/atelier-guide/valid/offer.v1.json +10 -0
  67. package/fixtures/atelier-intake/invalid/authority.v1.json +9 -0
  68. package/fixtures/atelier-intake/valid/attempt.v1.json +8 -0
  69. package/fixtures/atelier-intake/valid/completion.v1.json +9 -0
  70. package/fixtures/atelier-intake/valid/source.v1.json +7 -0
  71. package/fixtures/atelier-repository-observation/invalid/complete-with-blocker.v1.json +18 -0
  72. package/fixtures/atelier-repository-observation/valid/complete-local.v1.json +48 -0
  73. package/fixtures/atelier-review/invalid/authenticated-identity.v1.json +22 -0
  74. package/fixtures/atelier-review/valid/bound.v1.json +229 -0
  75. package/fixtures/atelier-review/valid/bundle.v1.json +267 -0
  76. package/fixtures/atelier-review/valid/contribution.v1.json +22 -0
  77. package/fixtures/atelier-review/valid/lifecycle.v1.json +14 -0
  78. package/fixtures/atelier-skill-steward/audit/invalid/source-mutation.v1.json +26 -0
  79. package/fixtures/atelier-skill-steward/audit/valid/clean.v1.json +26 -0
  80. package/fixtures/atelier-skill-steward/candidates/invalid/workflow-key.v1.json +37 -0
  81. package/fixtures/atelier-skill-steward/candidates/valid/create.v1.json +37 -0
  82. package/fixtures/atelier-skill-steward/lock/invalid/bad-digest.v1.json +18 -0
  83. package/fixtures/atelier-skill-steward/lock/valid/installed.v1.json +23 -0
  84. package/fixtures/atelier-skill-steward/plan/invalid/delete-action.v1.json +33 -0
  85. package/fixtures/atelier-skill-steward/plan/valid/add.v1.json +33 -0
  86. package/fixtures/atelier-upgrade-transaction/adoption-policy/invalid/example.json +12 -0
  87. package/fixtures/atelier-upgrade-transaction/adoption-policy/valid/example.json +11 -0
  88. package/fixtures/atelier-upgrade-transaction/migration/invalid/example.json +20 -0
  89. package/fixtures/atelier-upgrade-transaction/migration/valid/example.json +19 -0
  90. package/fixtures/atelier-upgrade-transaction/upgrade-plan/invalid/example.json +58 -0
  91. package/fixtures/atelier-upgrade-transaction/upgrade-plan/valid/example.json +57 -0
  92. package/fixtures/atelier-upgrade-transaction/upgrade-receipt/invalid/example.json +15 -0
  93. package/fixtures/atelier-upgrade-transaction/upgrade-receipt/valid/example.json +14 -0
  94. package/fixtures/atelier-vault-publication/invalid/publication.json +5 -0
  95. package/fixtures/atelier-vault-publication/valid/publication.json +11 -0
  96. package/fixtures/decisions/request/invalid/unknown-authority.v1.json +61 -0
  97. package/fixtures/decisions/request/valid/triage.v1.json +60 -0
  98. package/fixtures/decisions/result/invalid/execution-authority.v1.json +50 -0
  99. package/fixtures/decisions/result/valid/abstained.v1.json +23 -0
  100. package/fixtures/decisions/result/valid/assessed.v1.json +50 -0
  101. package/fixtures/obsidian/acceptance/ap05-extra-notes.json +14 -0
  102. package/fixtures/obsidian/acceptance/receipts/G07.valid.v1.json +63 -0
  103. package/fixtures/obsidian/acceptance/receipts/G13.valid.v1.json +69 -0
  104. package/fixtures/obsidian/acceptance/receipts/G14.valid.v1.json +62 -0
  105. package/fixtures/obsidian/acceptance/receipts/G15.valid.v1.json +56 -0
  106. package/fixtures/obsidian/acceptance/receipts/G16.valid.v1.json +73 -0
  107. package/fixtures/obsidian/acceptance/receipts/G17.valid.v1.json +75 -0
  108. package/fixtures/obsidian/acceptance/receipts/G18.valid.v1.json +64 -0
  109. package/fixtures/obsidian/acceptance/service-sentinels.json +10 -0
  110. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/duplicate-evidence-name.v1.json +39 -0
  111. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/evidence-by-absolute-path.v1.json +34 -0
  112. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/missing-candidate-tree.v1.json +33 -0
  113. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/no-evidence.v1.json +28 -0
  114. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-outcome.v1.json +34 -0
  115. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-top-level-field.v1.json +35 -0
  116. package/fixtures/obsidian/contracts/acceptance-receipt/valid/node-gate.v1.json +34 -0
  117. package/fixtures/obsidian/contracts/apply-policy/invalid/automatic-without-edit-class.v1.json +27 -0
  118. package/fixtures/obsidian/contracts/apply-policy/invalid/conflict-overwrite.v1.json +29 -0
  119. package/fixtures/obsidian/contracts/apply-policy/invalid/missing-policy-digest.v1.json +28 -0
  120. package/fixtures/obsidian/contracts/apply-policy/invalid/unbounded-batch.v1.json +29 -0
  121. package/fixtures/obsidian/contracts/apply-policy/invalid/unimplemented-edit-class.v1.json +30 -0
  122. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-mode.v1.json +29 -0
  123. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-selector-operator.v1.json +22 -0
  124. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-top-level-field.v1.json +30 -0
  125. package/fixtures/obsidian/contracts/apply-policy/valid/automatic-scoped.v1.json +29 -0
  126. package/fixtures/obsidian/contracts/apply-policy/valid/manual-default.v1.json +20 -0
  127. package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-path-in-ext.v1.json +30 -0
  128. package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-repository-root.v1.json +27 -0
  129. package/fixtures/obsidian/contracts/corpus-profile/invalid/duplicate-repository-id.v1.json +27 -0
  130. package/fixtures/obsidian/contracts/corpus-profile/invalid/overlapping-managed-roots.v1.json +27 -0
  131. package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-enrollment.v1.json +27 -0
  132. package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-top-level-field.v1.json +28 -0
  133. package/fixtures/obsidian/contracts/corpus-profile/valid/three-repositories.v1.json +27 -0
  134. package/fixtures/obsidian/contracts/edit-operation/invalid/absolute-recovery-ref.v1.json +21 -0
  135. package/fixtures/obsidian/contracts/edit-operation/invalid/inline-observed-bytes.v1.json +22 -0
  136. package/fixtures/obsidian/contracts/edit-operation/invalid/missing-base-digest.v1.json +20 -0
  137. package/fixtures/obsidian/contracts/edit-operation/invalid/short-idempotency-key.v1.json +21 -0
  138. package/fixtures/obsidian/contracts/edit-operation/invalid/unknown-kind.v1.json +21 -0
  139. package/fixtures/obsidian/contracts/edit-operation/valid/pending-body-replacement.v1.json +21 -0
  140. package/fixtures/obsidian/contracts/ext-settings/invalid/absolute-path-prefix.v1.json +28 -0
  141. package/fixtures/obsidian/contracts/ext-settings/invalid/apply-policy-in-portable-settings.v1.json +30 -0
  142. package/fixtures/obsidian/contracts/ext-settings/invalid/duplicate-scope-id.v1.json +27 -0
  143. package/fixtures/obsidian/contracts/ext-settings/invalid/machine-local-vault-path.v1.json +28 -0
  144. package/fixtures/obsidian/contracts/ext-settings/invalid/service-port-in-portable-settings.v1.json +28 -0
  145. package/fixtures/obsidian/contracts/ext-settings/invalid/unknown-default-scope.v1.json +27 -0
  146. package/fixtures/obsidian/contracts/ext-settings/valid/disabled.v1.json +5 -0
  147. package/fixtures/obsidian/contracts/ext-settings/valid/enabled-with-scopes.v1.json +27 -0
  148. package/fixtures/obsidian/contracts/generation-manifest/invalid/absolute-note-path.v1.json +114 -0
  149. package/fixtures/obsidian/contracts/generation-manifest/invalid/complete-with-unwritten-notes.v1.json +114 -0
  150. package/fixtures/obsidian/contracts/generation-manifest/invalid/derived-link-claimed-declared.v1.json +114 -0
  151. package/fixtures/obsidian/contracts/generation-manifest/invalid/duplicate-note-identity.v1.json +114 -0
  152. package/fixtures/obsidian/contracts/generation-manifest/invalid/in-scope-endpoint-missing.v1.json +114 -0
  153. package/fixtures/obsidian/contracts/generation-manifest/invalid/title-only-note-path.v1.json +114 -0
  154. package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-note-field.v1.json +115 -0
  155. package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-relation-type.v1.json +114 -0
  156. package/fixtures/obsidian/contracts/generation-manifest/invalid/withheld-endpoint.v1.json +114 -0
  157. package/fixtures/obsidian/contracts/generation-manifest/valid/two-notes.v1.json +114 -0
  158. package/fixtures/obsidian/contracts/oracles/scope-cases.json +412 -0
  159. package/fixtures/obsidian/contracts/proposal-receipt/invalid/accepted-without-proposal-id.v1.json +12 -0
  160. package/fixtures/obsidian/contracts/proposal-receipt/invalid/missing-adapter-operation-id.v1.json +11 -0
  161. package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-backpressure-outcome.v1.json +12 -0
  162. package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-top-level-field.v1.json +13 -0
  163. package/fixtures/obsidian/contracts/proposal-receipt/valid/accepted-new.v1.json +12 -0
  164. package/fixtures/obsidian/contracts/proposal-receipt/valid/deferred.v1.json +12 -0
  165. package/fixtures/obsidian/contracts/publication-journal/invalid/absolute-recovery-ref.v1.json +47 -0
  166. package/fixtures/obsidian/contracts/publication-journal/invalid/duplicate-sequence.v1.json +47 -0
  167. package/fixtures/obsidian/contracts/publication-journal/invalid/empty-protocol-id.v1.json +47 -0
  168. package/fixtures/obsidian/contracts/publication-journal/invalid/missing-protocol-id.v1.json +46 -0
  169. package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-entry-field.v1.json +48 -0
  170. package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-state.v1.json +47 -0
  171. package/fixtures/obsidian/contracts/publication-journal/valid/committed.v1.json +47 -0
  172. package/fixtures/obsidian/contracts/publication-journal/valid/updating-after-restart.v1.json +22 -0
  173. package/fixtures/obsidian/contracts/scope/invalid/absolute-path-prefix.v1.json +15 -0
  174. package/fixtures/obsidian/contracts/scope/invalid/duplicate-ids.v1.json +18 -0
  175. package/fixtures/obsidian/contracts/scope/invalid/expansion-without-node-budget.v1.json +40 -0
  176. package/fixtures/obsidian/contracts/scope/invalid/full-mode-with-subset.v1.json +8 -0
  177. package/fixtures/obsidian/contracts/scope/invalid/unknown-mode.v1.json +41 -0
  178. package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-key.v1.json +15 -0
  179. package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-operator.v1.json +14 -0
  180. package/fixtures/obsidian/contracts/scope/invalid/unknown-top-level-field.v1.json +42 -0
  181. package/fixtures/obsidian/contracts/scope/valid/explicit-empty.v1.json +8 -0
  182. package/fixtures/obsidian/contracts/scope/valid/focus.v1.json +11 -0
  183. package/fixtures/obsidian/contracts/scope/valid/full.v1.json +8 -0
  184. package/fixtures/obsidian/contracts/scope/valid/scoped-set-expression.v1.json +41 -0
  185. package/fixtures/obsidian/contracts/service-state/invalid/hostname-instead-of-literal-loopback.v1.json +23 -0
  186. package/fixtures/obsidian/contracts/service-state/invalid/missing-consent.v1.json +18 -0
  187. package/fixtures/obsidian/contracts/service-state/invalid/privileged-port.v1.json +23 -0
  188. package/fixtures/obsidian/contracts/service-state/invalid/unknown-top-level-field.v1.json +24 -0
  189. package/fixtures/obsidian/contracts/service-state/invalid/wildcard-bind.v1.json +23 -0
  190. package/fixtures/obsidian/contracts/service-state/valid/healthy.v1.json +23 -0
  191. package/fixtures/obsidian/contracts/source-snapshot/invalid/absolute-file-path.v1.json +48 -0
  192. package/fixtures/obsidian/contracts/source-snapshot/invalid/duplicate-repository-id.v1.json +48 -0
  193. package/fixtures/obsidian/contracts/source-snapshot/invalid/mixed-read.v1.json +48 -0
  194. package/fixtures/obsidian/contracts/source-snapshot/invalid/parent-traversal-path.v1.json +48 -0
  195. package/fixtures/obsidian/contracts/source-snapshot/invalid/unknown-file-field.v1.json +49 -0
  196. package/fixtures/obsidian/contracts/source-snapshot/valid/two-repositories.v1.json +48 -0
  197. package/fixtures/obsidian/edits/workspace.json +65 -0
  198. package/fixtures/obsidian/materialization/expected-full.json +99 -0
  199. package/fixtures/obsidian/materialization/expected-scoped.json +39 -0
  200. package/fixtures/obsidian/materialization/workspace.json +54 -0
  201. package/fixtures/obsidian/proposals/expected-shapes.json +11 -0
  202. package/fixtures/ui/presentation/pane.v1.json +7 -0
  203. package/fixtures/ui/presentation/reference.v1.json +293 -0
  204. package/package.json +61 -6
  205. package/skills/claude/atelier-guided-coauthor/SKILL.md +49 -0
  206. package/skills/claude/atelier-guided-upgrade/SKILL.md +97 -0
  207. package/skills/claude/atelier-open/SKILL.md +5 -0
  208. package/skills/claude/atelier-skill-steward/SKILL.md +62 -0
  209. package/skills/claude/mnstry-readiness/SKILL.md +5 -0
  210. package/skills/codex/atelier-guided-coauthor/SKILL.md +49 -0
  211. package/skills/codex/atelier-guided-upgrade/SKILL.md +97 -0
  212. package/skills/codex/atelier-open/SKILL.md +5 -0
  213. package/skills/codex/atelier-skill-steward/SKILL.md +62 -0
  214. package/skills/codex/mnstry-readiness/SKILL.md +5 -0
  215. package/src/access/preview-enforcer.mjs +84 -0
  216. package/src/boundary/content-rules.mjs +9 -4
  217. package/src/boundary/policy.mjs +74 -42
  218. package/src/cli/project-options.mjs +58 -0
  219. package/src/cli/run.mjs +61 -3
  220. package/src/coauthor/session.mjs +161 -0
  221. package/src/coauthor/store.mjs +173 -0
  222. package/src/collaboration/event-ledger.mjs +16 -33
  223. package/src/collaboration/inspection-bundle.mjs +223 -0
  224. package/src/collaboration/review-contracts.mjs +25 -0
  225. package/src/collaboration/review-store.mjs +305 -0
  226. package/src/commands/coauthor.mjs +26 -0
  227. package/src/commands/config.mjs +6 -1
  228. package/src/commands/extension-pack.mjs +15 -8
  229. package/src/commands/init.mjs +44 -5
  230. package/src/commands/obsidian.mjs +368 -0
  231. package/src/commands/review.mjs +147 -0
  232. package/src/commands/setup.mjs +51 -14
  233. package/src/commands/skills.mjs +199 -0
  234. package/src/commands/sync.mjs +107 -0
  235. package/src/composition/registry.mjs +27 -0
  236. package/src/composition/wire.mjs +122 -0
  237. package/src/contracts/corpus.mjs +35 -0
  238. package/src/decisions/contracts.d.mts +96 -0
  239. package/src/decisions/contracts.mjs +321 -0
  240. package/src/disclosure/content-scan.mjs +13 -0
  241. package/src/export/atelier-export-contract.mjs +16 -1
  242. package/src/extension-packs/lifecycle.mjs +154 -0
  243. package/src/graph/graph.mjs +64 -2
  244. package/src/graph/knowledge-graph.mjs +548 -24
  245. package/src/guides/contracts.mjs +54 -0
  246. package/src/index.mjs +29 -0
  247. package/src/intake/store.mjs +119 -0
  248. package/src/preview/channel.mjs +89 -0
  249. package/src/project/config.mjs +50 -49
  250. package/src/project/durable-state.mjs +161 -0
  251. package/src/project/file-class.mjs +166 -0
  252. package/src/project/private-state.mjs +11 -1
  253. package/src/projection/obsidian/contracts.mjs +571 -0
  254. package/src/projection/obsidian/edits/align.mjs +169 -0
  255. package/src/projection/obsidian/edits/apply.mjs +889 -0
  256. package/src/projection/obsidian/edits/arbitrate.mjs +414 -0
  257. package/src/projection/obsidian/edits/contribution.mjs +108 -0
  258. package/src/projection/obsidian/edits/index.mjs +19 -0
  259. package/src/projection/obsidian/edits/object-identity.mjs +61 -0
  260. package/src/projection/obsidian/edits/object-store.mjs +517 -0
  261. package/src/projection/obsidian/edits/observe.mjs +123 -0
  262. package/src/projection/obsidian/edits/policy.mjs +123 -0
  263. package/src/projection/obsidian/edits/regions.mjs +648 -0
  264. package/src/projection/obsidian/materialize/byte-lens.mjs +98 -0
  265. package/src/projection/obsidian/materialize/index.mjs +7 -0
  266. package/src/projection/obsidian/materialize/path-registry.mjs +105 -0
  267. package/src/projection/obsidian/materialize/prepare-view.mjs +746 -0
  268. package/src/projection/obsidian/materialize/settings.mjs +57 -0
  269. package/src/projection/obsidian/materialize/stage.mjs +27 -0
  270. package/src/projection/obsidian/proposals/adapter.mjs +572 -0
  271. package/src/projection/obsidian/proposals/backpressure.mjs +113 -0
  272. package/src/projection/obsidian/proposals/contribution.mjs +55 -0
  273. package/src/projection/obsidian/proposals/index.mjs +23 -0
  274. package/src/projection/obsidian/proposals/observation.mjs +216 -0
  275. package/src/projection/obsidian/proposals/queue.mjs +277 -0
  276. package/src/projection/obsidian/proposals/router.mjs +168 -0
  277. package/src/projection/obsidian/publication/bridge-script.mjs +266 -0
  278. package/src/projection/obsidian/publication/exchange.mjs +117 -0
  279. package/src/projection/obsidian/publication/index.mjs +5 -0
  280. package/src/projection/obsidian/publication/publisher.mjs +588 -0
  281. package/src/projection/obsidian/publication/test-seam.mjs +16 -0
  282. package/src/projection/obsidian/publication/transport.mjs +139 -0
  283. package/src/projection/obsidian/recovery/index.mjs +6 -0
  284. package/src/projection/obsidian/recovery/journal.mjs +134 -0
  285. package/src/projection/obsidian/recovery/late-writer.mjs +46 -0
  286. package/src/projection/obsidian/recovery/restart.mjs +316 -0
  287. package/src/projection/obsidian/recovery/store.mjs +234 -0
  288. package/src/projection/obsidian/selection-ui/conflict-view.mjs +91 -0
  289. package/src/projection/obsidian/selection-ui/contribution.mjs +141 -0
  290. package/src/projection/obsidian/selection-ui/focus.mjs +82 -0
  291. package/src/projection/obsidian/selection-ui/index.mjs +12 -0
  292. package/src/projection/obsidian/selection-ui/policy-setup.mjs +107 -0
  293. package/src/projection/obsidian/selection-ui/receipt.mjs +173 -0
  294. package/src/projection/obsidian/selection-ui/selection-state.mjs +122 -0
  295. package/src/projection/obsidian/selection-ui/selection.mjs +109 -0
  296. package/src/projection/project.mjs +28 -19
  297. package/src/readiness-protocols/evidence.mjs +282 -0
  298. package/src/readiness-protocols/runtime.mjs +4 -3
  299. package/src/readiness-protocols/source-read.mjs +39 -0
  300. package/src/runtime/git-adapter.mjs +189 -0
  301. package/src/runtime/local-state.mjs +439 -0
  302. package/src/runtime/obsidian/app-capability.mjs +110 -0
  303. package/src/runtime/obsidian/app-production-seams.mjs +96 -0
  304. package/src/runtime/obsidian/contributions/proposal-adapter.mjs +4 -0
  305. package/src/runtime/obsidian/contributions/selection-ui.mjs +4 -0
  306. package/src/runtime/obsidian/contributions/source-apply.mjs +4 -0
  307. package/src/runtime/obsidian/contributions.mjs +27 -0
  308. package/src/runtime/obsidian/documents.mjs +37 -0
  309. package/src/runtime/obsidian/enablement.mjs +53 -0
  310. package/src/runtime/obsidian/engine.mjs +532 -0
  311. package/src/runtime/obsidian/errors.mjs +14 -0
  312. package/src/runtime/obsidian/extension-points.mjs +103 -0
  313. package/src/runtime/obsidian/index.mjs +34 -0
  314. package/src/runtime/obsidian/lifecycle.mjs +258 -0
  315. package/src/runtime/obsidian/machine-settings.mjs +260 -0
  316. package/src/runtime/obsidian/observation.mjs +158 -0
  317. package/src/runtime/obsidian/opening.mjs +243 -0
  318. package/src/runtime/obsidian/pending-edits.mjs +141 -0
  319. package/src/runtime/obsidian/pipeline.mjs +122 -0
  320. package/src/runtime/obsidian/private-lock.mjs +156 -0
  321. package/src/runtime/obsidian/process-identity.mjs +58 -0
  322. package/src/runtime/obsidian/service-client.mjs +66 -0
  323. package/src/runtime/obsidian/service-main.mjs +89 -0
  324. package/src/runtime/obsidian/service-record.mjs +169 -0
  325. package/src/runtime/obsidian/service-server.mjs +121 -0
  326. package/src/runtime/obsidian/service.mjs +216 -0
  327. package/src/runtime/obsidian/startup-adapters.mjs +87 -0
  328. package/src/runtime/obsidian/state-store.mjs +180 -0
  329. package/src/runtime/obsidian/sync-notice.mjs +33 -0
  330. package/src/runtime/obsidian/tick-loop.mjs +84 -0
  331. package/src/runtime/obsidian/watchers.mjs +36 -0
  332. package/src/runtime/repository-observation.mjs +491 -0
  333. package/src/runtime/supervisor.mjs +803 -0
  334. package/src/server/local-sidecar.mjs +44 -0
  335. package/src/server/server.mjs +1 -0
  336. package/src/skills/steward.mjs +780 -0
  337. package/src/ui/presentation/browser.mjs +278 -0
  338. package/src/ui/presentation/contract.mjs +116 -0
  339. package/src/ui/presentation/index.mjs +7 -0
  340. package/src/ui/presentation/native.mjs +153 -0
  341. package/src/ui/presentation/proof.mjs +57 -0
  342. package/src/ui/presentation/schema-check.mjs +30 -0
  343. package/src/ui/presentation/schema.generated.mjs +1371 -0
  344. package/src/ui/presentation/state.mjs +43 -0
  345. package/src/ui/presentation/styles.mjs +67 -0
  346. package/src/ui/presentation/tokens.mjs +74 -0
  347. package/src/ui/presentation/web.mjs +85 -0
  348. package/src/ui/review-page.mjs +32 -0
  349. package/src/upgrade/explanation.mjs +33 -0
  350. package/src/upgrade/provenance.mjs +338 -0
  351. package/src/upgrade/transaction-files.mjs +103 -0
  352. package/src/upgrade/transaction.mjs +475 -0
  353. package/src/upgrade/upgrade.mjs +63 -28
  354. package/src/vault/hosts.mjs +21 -0
  355. package/src/vault/identity.mjs +19 -0
  356. package/src/vault/index.mjs +7 -0
  357. package/src/vault/interface.mjs +11 -0
  358. package/src/vault/metadata.mjs +31 -0
  359. package/src/vault/privacy.mjs +148 -0
  360. package/src/vault/probe.mjs +89 -0
  361. package/src/vault/service.mjs +131 -0
  362. package/src/vault/source.mjs +45 -0
  363. package/src/vault/storage.mjs +23 -0
  364. package/templates/distribution-workspace/.claude/launch.json +6 -2
  365. package/templates/distribution-workspace/gitignore +1 -0
  366. package/templates/distribution-workspace/project/README.md +2 -2
  367. package/templates/external-project-workspace/README.md +45 -0
  368. package/templates/external-project-workspace/answers.example.json +4 -0
  369. package/templates/external-project-workspace/atelier.project.json +40 -0
  370. package/templates/external-project-workspace/boundary-policy.v1.json +60 -0
  371. package/templates/external-project-workspace/gitignore +8 -0
  372. package/templates/external-project-workspace/pack-lifecycle.json +14 -0
  373. package/templates/external-project-workspace/packs/protocols/contract-gate.v1.json +109 -0
  374. package/templates/external-project-workspace/packs/sample-pack.v1.json +48 -0
  375. package/templates/external-project-workspace/repo-access.v1.json +9 -0
  376. package/templates/external-project-workspace/source/README.md +11 -0
  377. package/templates/launch.json +6 -2
  378. package/templates/private-domain-workspace/.claude/launch.json +6 -2
  379. package/templates/private-domain-workspace/domain/README.md +2 -2
  380. package/templates/private-domain-workspace/gitignore +1 -0
  381. package/templates/shared-project-workspace/.claude/launch.json +6 -2
  382. package/templates/shared-project-workspace/gitignore +1 -0
  383. package/templates/shared-project-workspace/project/README.md +2 -2
@@ -0,0 +1,1371 @@
1
+ // Generated from contracts. Run node scripts/generate-presentation-schema.mjs.
2
+ export const presentationSchema = {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "$comment": "contract revision 1.0.0; presentation only, no business or execution authority.",
5
+ "$id": "https://mnstry.ai/schemas/atelier/atelier-presentation.v1.schema.json",
6
+ "title": "Portable presentation model",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schema",
11
+ "version",
12
+ "id",
13
+ "title",
14
+ "lang",
15
+ "direction",
16
+ "theme",
17
+ "density",
18
+ "navigation",
19
+ "panes",
20
+ "nodes"
21
+ ],
22
+ "properties": {
23
+ "schema": {
24
+ "const": "atelier.presentation/v1"
25
+ },
26
+ "version": {
27
+ "const": "1.0.0"
28
+ },
29
+ "id": {
30
+ "type": "string",
31
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
32
+ },
33
+ "title": {
34
+ "type": "string",
35
+ "minLength": 1,
36
+ "maxLength": 4096
37
+ },
38
+ "lang": {
39
+ "type": "string",
40
+ "pattern": "^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$"
41
+ },
42
+ "direction": {
43
+ "enum": [
44
+ "ltr",
45
+ "rtl"
46
+ ]
47
+ },
48
+ "theme": {
49
+ "enum": [
50
+ "light",
51
+ "dark"
52
+ ]
53
+ },
54
+ "density": {
55
+ "enum": [
56
+ "comfortable",
57
+ "compact"
58
+ ]
59
+ },
60
+ "navigation": {
61
+ "type": "array",
62
+ "maxItems": 16,
63
+ "items": {
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": [
67
+ "id",
68
+ "label",
69
+ "target"
70
+ ],
71
+ "properties": {
72
+ "id": {
73
+ "type": "string",
74
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
75
+ },
76
+ "label": {
77
+ "type": "string",
78
+ "minLength": 1,
79
+ "maxLength": 4096
80
+ },
81
+ "target": {
82
+ "type": "string",
83
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
84
+ },
85
+ "ext": {
86
+ "type": "object"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "panes": {
92
+ "type": "array",
93
+ "maxItems": 8,
94
+ "items": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": [
98
+ "id",
99
+ "label",
100
+ "role",
101
+ "blocks"
102
+ ],
103
+ "properties": {
104
+ "id": {
105
+ "type": "string",
106
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
107
+ },
108
+ "label": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "maxLength": 4096
112
+ },
113
+ "role": {
114
+ "enum": [
115
+ "primary",
116
+ "context",
117
+ "utility"
118
+ ]
119
+ },
120
+ "width": {
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "required": [
124
+ "min",
125
+ "max",
126
+ "value"
127
+ ],
128
+ "properties": {
129
+ "min": {
130
+ "type": "number",
131
+ "minimum": 10,
132
+ "maximum": 90
133
+ },
134
+ "max": {
135
+ "type": "number",
136
+ "minimum": 10,
137
+ "maximum": 90
138
+ },
139
+ "value": {
140
+ "type": "number",
141
+ "minimum": 10,
142
+ "maximum": 90
143
+ },
144
+ "ext": {
145
+ "type": "object"
146
+ }
147
+ }
148
+ },
149
+ "blocks": {
150
+ "type": "array",
151
+ "maxItems": 128,
152
+ "items": {
153
+ "type": "string",
154
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
155
+ }
156
+ },
157
+ "contractVersion": {
158
+ "type": "string",
159
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
160
+ },
161
+ "ext": {
162
+ "type": "object"
163
+ }
164
+ }
165
+ },
166
+ "minItems": 1
167
+ },
168
+ "nodes": {
169
+ "type": "array",
170
+ "maxItems": 256,
171
+ "items": {
172
+ "oneOf": [
173
+ {
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "required": [
177
+ "id",
178
+ "type",
179
+ "label",
180
+ "text"
181
+ ],
182
+ "properties": {
183
+ "id": {
184
+ "type": "string",
185
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
186
+ },
187
+ "type": {
188
+ "const": "text"
189
+ },
190
+ "label": {
191
+ "type": "string",
192
+ "minLength": 1,
193
+ "maxLength": 4096
194
+ },
195
+ "text": {
196
+ "type": "string",
197
+ "maxLength": 32768
198
+ },
199
+ "ext": {
200
+ "type": "object"
201
+ }
202
+ }
203
+ },
204
+ {
205
+ "type": "object",
206
+ "additionalProperties": false,
207
+ "required": [
208
+ "id",
209
+ "type",
210
+ "label",
211
+ "actionRef",
212
+ "disabled"
213
+ ],
214
+ "properties": {
215
+ "id": {
216
+ "type": "string",
217
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
218
+ },
219
+ "type": {
220
+ "const": "action"
221
+ },
222
+ "label": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 4096
226
+ },
227
+ "actionRef": {
228
+ "type": "string",
229
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
230
+ },
231
+ "disabled": {
232
+ "type": "boolean"
233
+ },
234
+ "reason": {
235
+ "type": "string",
236
+ "minLength": 1,
237
+ "maxLength": 4096
238
+ },
239
+ "confirmation": {
240
+ "type": "object",
241
+ "additionalProperties": false,
242
+ "required": [
243
+ "title",
244
+ "description",
245
+ "confirmLabel",
246
+ "cancelLabel"
247
+ ],
248
+ "properties": {
249
+ "title": {
250
+ "type": "string",
251
+ "minLength": 1,
252
+ "maxLength": 4096
253
+ },
254
+ "description": {
255
+ "type": "string",
256
+ "minLength": 1,
257
+ "maxLength": 4096
258
+ },
259
+ "confirmLabel": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "maxLength": 4096
263
+ },
264
+ "cancelLabel": {
265
+ "type": "string",
266
+ "minLength": 1,
267
+ "maxLength": 4096
268
+ },
269
+ "ext": {
270
+ "type": "object"
271
+ }
272
+ }
273
+ },
274
+ "shortcut": {
275
+ "type": "object",
276
+ "additionalProperties": false,
277
+ "required": [
278
+ "display",
279
+ "aria"
280
+ ],
281
+ "properties": {
282
+ "display": {
283
+ "type": "string",
284
+ "minLength": 1,
285
+ "maxLength": 4096
286
+ },
287
+ "aria": {
288
+ "type": "string",
289
+ "minLength": 1,
290
+ "maxLength": 4096
291
+ },
292
+ "ext": {
293
+ "type": "object"
294
+ }
295
+ }
296
+ },
297
+ "ext": {
298
+ "type": "object"
299
+ }
300
+ }
301
+ },
302
+ {
303
+ "type": "object",
304
+ "additionalProperties": false,
305
+ "required": [
306
+ "id",
307
+ "type",
308
+ "label",
309
+ "items"
310
+ ],
311
+ "properties": {
312
+ "id": {
313
+ "type": "string",
314
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
315
+ },
316
+ "type": {
317
+ "const": "collection"
318
+ },
319
+ "label": {
320
+ "type": "string",
321
+ "minLength": 1,
322
+ "maxLength": 4096
323
+ },
324
+ "items": {
325
+ "type": "array",
326
+ "maxItems": 128,
327
+ "items": {
328
+ "type": "object",
329
+ "additionalProperties": false,
330
+ "required": [
331
+ "id",
332
+ "label"
333
+ ],
334
+ "properties": {
335
+ "id": {
336
+ "type": "string",
337
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
338
+ },
339
+ "label": {
340
+ "type": "string",
341
+ "minLength": 1,
342
+ "maxLength": 4096
343
+ },
344
+ "detail": {
345
+ "type": "string",
346
+ "maxLength": 32768
347
+ },
348
+ "href": {
349
+ "type": "string",
350
+ "minLength": 1,
351
+ "maxLength": 4096
352
+ },
353
+ "selected": {
354
+ "type": "boolean"
355
+ },
356
+ "ext": {
357
+ "type": "object"
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "ext": {
363
+ "type": "object"
364
+ }
365
+ }
366
+ },
367
+ {
368
+ "type": "object",
369
+ "additionalProperties": false,
370
+ "required": [
371
+ "id",
372
+ "type",
373
+ "label",
374
+ "items"
375
+ ],
376
+ "properties": {
377
+ "id": {
378
+ "type": "string",
379
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
380
+ },
381
+ "type": {
382
+ "const": "sequence"
383
+ },
384
+ "reorderable": {
385
+ "type": "boolean"
386
+ },
387
+ "label": {
388
+ "type": "string",
389
+ "minLength": 1,
390
+ "maxLength": 4096
391
+ },
392
+ "items": {
393
+ "type": "array",
394
+ "maxItems": 128,
395
+ "items": {
396
+ "type": "object",
397
+ "additionalProperties": false,
398
+ "required": [
399
+ "id",
400
+ "label"
401
+ ],
402
+ "properties": {
403
+ "id": {
404
+ "type": "string",
405
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
406
+ },
407
+ "label": {
408
+ "type": "string",
409
+ "minLength": 1,
410
+ "maxLength": 4096
411
+ },
412
+ "detail": {
413
+ "type": "string",
414
+ "maxLength": 32768
415
+ },
416
+ "href": {
417
+ "type": "string",
418
+ "minLength": 1,
419
+ "maxLength": 4096
420
+ },
421
+ "selected": {
422
+ "type": "boolean"
423
+ },
424
+ "ext": {
425
+ "type": "object"
426
+ }
427
+ }
428
+ }
429
+ },
430
+ "ext": {
431
+ "type": "object"
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "type": "object",
437
+ "additionalProperties": false,
438
+ "required": [
439
+ "id",
440
+ "type",
441
+ "label",
442
+ "items",
443
+ "edges"
444
+ ],
445
+ "properties": {
446
+ "id": {
447
+ "type": "string",
448
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
449
+ },
450
+ "type": {
451
+ "const": "graph"
452
+ },
453
+ "label": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 4096
457
+ },
458
+ "items": {
459
+ "type": "array",
460
+ "maxItems": 128,
461
+ "items": {
462
+ "type": "object",
463
+ "additionalProperties": false,
464
+ "required": [
465
+ "id",
466
+ "label"
467
+ ],
468
+ "properties": {
469
+ "id": {
470
+ "type": "string",
471
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
472
+ },
473
+ "label": {
474
+ "type": "string",
475
+ "minLength": 1,
476
+ "maxLength": 4096
477
+ },
478
+ "detail": {
479
+ "type": "string",
480
+ "maxLength": 32768
481
+ },
482
+ "href": {
483
+ "type": "string",
484
+ "minLength": 1,
485
+ "maxLength": 4096
486
+ },
487
+ "selected": {
488
+ "type": "boolean"
489
+ },
490
+ "ext": {
491
+ "type": "object"
492
+ }
493
+ }
494
+ }
495
+ },
496
+ "edges": {
497
+ "type": "array",
498
+ "maxItems": 512,
499
+ "items": {
500
+ "type": "object",
501
+ "additionalProperties": false,
502
+ "required": [
503
+ "from",
504
+ "to",
505
+ "label"
506
+ ],
507
+ "properties": {
508
+ "from": {
509
+ "type": "string",
510
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
511
+ },
512
+ "to": {
513
+ "type": "string",
514
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
515
+ },
516
+ "label": {
517
+ "type": "string",
518
+ "minLength": 1,
519
+ "maxLength": 4096
520
+ },
521
+ "ext": {
522
+ "type": "object"
523
+ }
524
+ }
525
+ }
526
+ },
527
+ "ext": {
528
+ "type": "object"
529
+ }
530
+ }
531
+ },
532
+ {
533
+ "type": "object",
534
+ "additionalProperties": false,
535
+ "required": [
536
+ "id",
537
+ "type",
538
+ "label",
539
+ "src",
540
+ "alt"
541
+ ],
542
+ "properties": {
543
+ "id": {
544
+ "type": "string",
545
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
546
+ },
547
+ "type": {
548
+ "const": "media"
549
+ },
550
+ "label": {
551
+ "type": "string",
552
+ "minLength": 1,
553
+ "maxLength": 4096
554
+ },
555
+ "src": {
556
+ "type": "string",
557
+ "minLength": 1,
558
+ "maxLength": 4096
559
+ },
560
+ "alt": {
561
+ "type": "string",
562
+ "minLength": 1,
563
+ "maxLength": 4096
564
+ },
565
+ "caption": {
566
+ "type": "string",
567
+ "maxLength": 32768
568
+ },
569
+ "ext": {
570
+ "type": "object"
571
+ }
572
+ }
573
+ },
574
+ {
575
+ "type": "object",
576
+ "additionalProperties": false,
577
+ "required": [
578
+ "id",
579
+ "type",
580
+ "label",
581
+ "text",
582
+ "tone",
583
+ "details",
584
+ "actions"
585
+ ],
586
+ "properties": {
587
+ "id": {
588
+ "type": "string",
589
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
590
+ },
591
+ "type": {
592
+ "const": "status"
593
+ },
594
+ "label": {
595
+ "type": "string",
596
+ "minLength": 1,
597
+ "maxLength": 4096
598
+ },
599
+ "text": {
600
+ "type": "string",
601
+ "maxLength": 32768
602
+ },
603
+ "tone": {
604
+ "enum": [
605
+ "neutral",
606
+ "info",
607
+ "success",
608
+ "warning",
609
+ "danger"
610
+ ]
611
+ },
612
+ "details": {
613
+ "type": "array",
614
+ "maxItems": 128,
615
+ "items": {
616
+ "type": "object",
617
+ "additionalProperties": false,
618
+ "required": [
619
+ "label",
620
+ "value"
621
+ ],
622
+ "properties": {
623
+ "label": {
624
+ "type": "string",
625
+ "minLength": 1,
626
+ "maxLength": 4096
627
+ },
628
+ "value": {
629
+ "type": "string",
630
+ "maxLength": 32768
631
+ },
632
+ "ext": {
633
+ "type": "object"
634
+ }
635
+ }
636
+ }
637
+ },
638
+ "actions": {
639
+ "type": "array",
640
+ "maxItems": 16,
641
+ "items": {
642
+ "type": "string",
643
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
644
+ }
645
+ },
646
+ "ext": {
647
+ "type": "object"
648
+ }
649
+ }
650
+ },
651
+ {
652
+ "type": "object",
653
+ "additionalProperties": false,
654
+ "required": [
655
+ "id",
656
+ "type",
657
+ "label",
658
+ "text",
659
+ "tone",
660
+ "details",
661
+ "actions"
662
+ ],
663
+ "properties": {
664
+ "id": {
665
+ "type": "string",
666
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
667
+ },
668
+ "type": {
669
+ "const": "refusal"
670
+ },
671
+ "label": {
672
+ "type": "string",
673
+ "minLength": 1,
674
+ "maxLength": 4096
675
+ },
676
+ "text": {
677
+ "type": "string",
678
+ "maxLength": 32768
679
+ },
680
+ "tone": {
681
+ "enum": [
682
+ "neutral",
683
+ "info",
684
+ "success",
685
+ "warning",
686
+ "danger"
687
+ ]
688
+ },
689
+ "details": {
690
+ "type": "array",
691
+ "maxItems": 128,
692
+ "items": {
693
+ "type": "object",
694
+ "additionalProperties": false,
695
+ "required": [
696
+ "label",
697
+ "value"
698
+ ],
699
+ "properties": {
700
+ "label": {
701
+ "type": "string",
702
+ "minLength": 1,
703
+ "maxLength": 4096
704
+ },
705
+ "value": {
706
+ "type": "string",
707
+ "maxLength": 32768
708
+ },
709
+ "ext": {
710
+ "type": "object"
711
+ }
712
+ }
713
+ }
714
+ },
715
+ "actions": {
716
+ "type": "array",
717
+ "maxItems": 16,
718
+ "items": {
719
+ "type": "string",
720
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
721
+ }
722
+ },
723
+ "ext": {
724
+ "type": "object"
725
+ }
726
+ }
727
+ },
728
+ {
729
+ "type": "object",
730
+ "additionalProperties": false,
731
+ "required": [
732
+ "id",
733
+ "type",
734
+ "label",
735
+ "text",
736
+ "tone",
737
+ "details",
738
+ "actions"
739
+ ],
740
+ "properties": {
741
+ "id": {
742
+ "type": "string",
743
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
744
+ },
745
+ "type": {
746
+ "const": "decision"
747
+ },
748
+ "label": {
749
+ "type": "string",
750
+ "minLength": 1,
751
+ "maxLength": 4096
752
+ },
753
+ "text": {
754
+ "type": "string",
755
+ "maxLength": 32768
756
+ },
757
+ "tone": {
758
+ "enum": [
759
+ "neutral",
760
+ "info",
761
+ "success",
762
+ "warning",
763
+ "danger"
764
+ ]
765
+ },
766
+ "details": {
767
+ "type": "array",
768
+ "maxItems": 128,
769
+ "items": {
770
+ "type": "object",
771
+ "additionalProperties": false,
772
+ "required": [
773
+ "label",
774
+ "value"
775
+ ],
776
+ "properties": {
777
+ "label": {
778
+ "type": "string",
779
+ "minLength": 1,
780
+ "maxLength": 4096
781
+ },
782
+ "value": {
783
+ "type": "string",
784
+ "maxLength": 32768
785
+ },
786
+ "ext": {
787
+ "type": "object"
788
+ }
789
+ }
790
+ }
791
+ },
792
+ "actions": {
793
+ "type": "array",
794
+ "maxItems": 16,
795
+ "items": {
796
+ "type": "string",
797
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
798
+ }
799
+ },
800
+ "ext": {
801
+ "type": "object"
802
+ }
803
+ }
804
+ },
805
+ {
806
+ "type": "object",
807
+ "additionalProperties": false,
808
+ "required": [
809
+ "id",
810
+ "type",
811
+ "label",
812
+ "text",
813
+ "tone",
814
+ "details",
815
+ "actions"
816
+ ],
817
+ "properties": {
818
+ "id": {
819
+ "type": "string",
820
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
821
+ },
822
+ "type": {
823
+ "const": "receipt"
824
+ },
825
+ "label": {
826
+ "type": "string",
827
+ "minLength": 1,
828
+ "maxLength": 4096
829
+ },
830
+ "text": {
831
+ "type": "string",
832
+ "maxLength": 32768
833
+ },
834
+ "tone": {
835
+ "enum": [
836
+ "neutral",
837
+ "info",
838
+ "success",
839
+ "warning",
840
+ "danger"
841
+ ]
842
+ },
843
+ "details": {
844
+ "type": "array",
845
+ "maxItems": 128,
846
+ "items": {
847
+ "type": "object",
848
+ "additionalProperties": false,
849
+ "required": [
850
+ "label",
851
+ "value"
852
+ ],
853
+ "properties": {
854
+ "label": {
855
+ "type": "string",
856
+ "minLength": 1,
857
+ "maxLength": 4096
858
+ },
859
+ "value": {
860
+ "type": "string",
861
+ "maxLength": 32768
862
+ },
863
+ "ext": {
864
+ "type": "object"
865
+ }
866
+ }
867
+ }
868
+ },
869
+ "actions": {
870
+ "type": "array",
871
+ "maxItems": 16,
872
+ "items": {
873
+ "type": "string",
874
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
875
+ }
876
+ },
877
+ "ext": {
878
+ "type": "object"
879
+ }
880
+ }
881
+ },
882
+ {
883
+ "type": "object",
884
+ "additionalProperties": false,
885
+ "required": [
886
+ "id",
887
+ "type",
888
+ "label",
889
+ "text",
890
+ "tone",
891
+ "details",
892
+ "actions"
893
+ ],
894
+ "properties": {
895
+ "id": {
896
+ "type": "string",
897
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
898
+ },
899
+ "type": {
900
+ "const": "offer"
901
+ },
902
+ "label": {
903
+ "type": "string",
904
+ "minLength": 1,
905
+ "maxLength": 4096
906
+ },
907
+ "text": {
908
+ "type": "string",
909
+ "maxLength": 32768
910
+ },
911
+ "tone": {
912
+ "enum": [
913
+ "neutral",
914
+ "info",
915
+ "success",
916
+ "warning",
917
+ "danger"
918
+ ]
919
+ },
920
+ "details": {
921
+ "type": "array",
922
+ "maxItems": 128,
923
+ "items": {
924
+ "type": "object",
925
+ "additionalProperties": false,
926
+ "required": [
927
+ "label",
928
+ "value"
929
+ ],
930
+ "properties": {
931
+ "label": {
932
+ "type": "string",
933
+ "minLength": 1,
934
+ "maxLength": 4096
935
+ },
936
+ "value": {
937
+ "type": "string",
938
+ "maxLength": 32768
939
+ },
940
+ "ext": {
941
+ "type": "object"
942
+ }
943
+ }
944
+ }
945
+ },
946
+ "actions": {
947
+ "type": "array",
948
+ "maxItems": 16,
949
+ "items": {
950
+ "type": "string",
951
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
952
+ }
953
+ },
954
+ "ext": {
955
+ "type": "object"
956
+ }
957
+ }
958
+ },
959
+ {
960
+ "type": "object",
961
+ "additionalProperties": false,
962
+ "required": [
963
+ "id",
964
+ "type",
965
+ "label",
966
+ "text",
967
+ "tone",
968
+ "details",
969
+ "actions"
970
+ ],
971
+ "properties": {
972
+ "id": {
973
+ "type": "string",
974
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
975
+ },
976
+ "type": {
977
+ "const": "review"
978
+ },
979
+ "label": {
980
+ "type": "string",
981
+ "minLength": 1,
982
+ "maxLength": 4096
983
+ },
984
+ "text": {
985
+ "type": "string",
986
+ "maxLength": 32768
987
+ },
988
+ "tone": {
989
+ "enum": [
990
+ "neutral",
991
+ "info",
992
+ "success",
993
+ "warning",
994
+ "danger"
995
+ ]
996
+ },
997
+ "details": {
998
+ "type": "array",
999
+ "maxItems": 128,
1000
+ "items": {
1001
+ "type": "object",
1002
+ "additionalProperties": false,
1003
+ "required": [
1004
+ "label",
1005
+ "value"
1006
+ ],
1007
+ "properties": {
1008
+ "label": {
1009
+ "type": "string",
1010
+ "minLength": 1,
1011
+ "maxLength": 4096
1012
+ },
1013
+ "value": {
1014
+ "type": "string",
1015
+ "maxLength": 32768
1016
+ },
1017
+ "ext": {
1018
+ "type": "object"
1019
+ }
1020
+ }
1021
+ }
1022
+ },
1023
+ "actions": {
1024
+ "type": "array",
1025
+ "maxItems": 16,
1026
+ "items": {
1027
+ "type": "string",
1028
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1029
+ }
1030
+ },
1031
+ "ext": {
1032
+ "type": "object"
1033
+ }
1034
+ }
1035
+ },
1036
+ {
1037
+ "type": "object",
1038
+ "additionalProperties": false,
1039
+ "required": [
1040
+ "id",
1041
+ "type",
1042
+ "label",
1043
+ "text",
1044
+ "tone",
1045
+ "details",
1046
+ "actions"
1047
+ ],
1048
+ "properties": {
1049
+ "id": {
1050
+ "type": "string",
1051
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1052
+ },
1053
+ "type": {
1054
+ "const": "publication"
1055
+ },
1056
+ "label": {
1057
+ "type": "string",
1058
+ "minLength": 1,
1059
+ "maxLength": 4096
1060
+ },
1061
+ "text": {
1062
+ "type": "string",
1063
+ "maxLength": 32768
1064
+ },
1065
+ "tone": {
1066
+ "enum": [
1067
+ "neutral",
1068
+ "info",
1069
+ "success",
1070
+ "warning",
1071
+ "danger"
1072
+ ]
1073
+ },
1074
+ "details": {
1075
+ "type": "array",
1076
+ "maxItems": 128,
1077
+ "items": {
1078
+ "type": "object",
1079
+ "additionalProperties": false,
1080
+ "required": [
1081
+ "label",
1082
+ "value"
1083
+ ],
1084
+ "properties": {
1085
+ "label": {
1086
+ "type": "string",
1087
+ "minLength": 1,
1088
+ "maxLength": 4096
1089
+ },
1090
+ "value": {
1091
+ "type": "string",
1092
+ "maxLength": 32768
1093
+ },
1094
+ "ext": {
1095
+ "type": "object"
1096
+ }
1097
+ }
1098
+ }
1099
+ },
1100
+ "actions": {
1101
+ "type": "array",
1102
+ "maxItems": 16,
1103
+ "items": {
1104
+ "type": "string",
1105
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1106
+ }
1107
+ },
1108
+ "ext": {
1109
+ "type": "object"
1110
+ }
1111
+ }
1112
+ },
1113
+ {
1114
+ "type": "object",
1115
+ "additionalProperties": false,
1116
+ "required": [
1117
+ "id",
1118
+ "type",
1119
+ "label",
1120
+ "value",
1121
+ "input",
1122
+ "required",
1123
+ "disabled"
1124
+ ],
1125
+ "properties": {
1126
+ "id": {
1127
+ "type": "string",
1128
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1129
+ },
1130
+ "type": {
1131
+ "const": "field"
1132
+ },
1133
+ "label": {
1134
+ "type": "string",
1135
+ "minLength": 1,
1136
+ "maxLength": 4096
1137
+ },
1138
+ "value": {
1139
+ "type": "string",
1140
+ "maxLength": 32768
1141
+ },
1142
+ "input": {
1143
+ "enum": [
1144
+ "text",
1145
+ "email",
1146
+ "search",
1147
+ "number"
1148
+ ]
1149
+ },
1150
+ "required": {
1151
+ "type": "boolean"
1152
+ },
1153
+ "disabled": {
1154
+ "type": "boolean"
1155
+ },
1156
+ "error": {
1157
+ "type": "string",
1158
+ "maxLength": 32768
1159
+ },
1160
+ "ext": {
1161
+ "type": "object"
1162
+ }
1163
+ }
1164
+ },
1165
+ {
1166
+ "type": "object",
1167
+ "additionalProperties": false,
1168
+ "required": [
1169
+ "id",
1170
+ "type",
1171
+ "label",
1172
+ "value",
1173
+ "disabled"
1174
+ ],
1175
+ "properties": {
1176
+ "id": {
1177
+ "type": "string",
1178
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1179
+ },
1180
+ "type": {
1181
+ "const": "editor"
1182
+ },
1183
+ "label": {
1184
+ "type": "string",
1185
+ "minLength": 1,
1186
+ "maxLength": 4096
1187
+ },
1188
+ "value": {
1189
+ "type": "string",
1190
+ "maxLength": 32768
1191
+ },
1192
+ "disabled": {
1193
+ "type": "boolean"
1194
+ },
1195
+ "error": {
1196
+ "type": "string",
1197
+ "maxLength": 32768
1198
+ },
1199
+ "ext": {
1200
+ "type": "object"
1201
+ }
1202
+ }
1203
+ },
1204
+ {
1205
+ "type": "object",
1206
+ "additionalProperties": false,
1207
+ "required": [
1208
+ "id",
1209
+ "type",
1210
+ "label",
1211
+ "text"
1212
+ ],
1213
+ "properties": {
1214
+ "id": {
1215
+ "type": "string",
1216
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1217
+ },
1218
+ "type": {
1219
+ "const": "preview"
1220
+ },
1221
+ "label": {
1222
+ "type": "string",
1223
+ "minLength": 1,
1224
+ "maxLength": 4096
1225
+ },
1226
+ "text": {
1227
+ "type": "string",
1228
+ "maxLength": 32768
1229
+ },
1230
+ "ext": {
1231
+ "type": "object"
1232
+ }
1233
+ }
1234
+ },
1235
+ {
1236
+ "type": "object",
1237
+ "additionalProperties": false,
1238
+ "required": [
1239
+ "id",
1240
+ "type",
1241
+ "label",
1242
+ "before",
1243
+ "after",
1244
+ "beforeLabel",
1245
+ "afterLabel"
1246
+ ],
1247
+ "properties": {
1248
+ "id": {
1249
+ "type": "string",
1250
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1251
+ },
1252
+ "type": {
1253
+ "const": "diff"
1254
+ },
1255
+ "label": {
1256
+ "type": "string",
1257
+ "minLength": 1,
1258
+ "maxLength": 4096
1259
+ },
1260
+ "before": {
1261
+ "type": "string",
1262
+ "maxLength": 32768
1263
+ },
1264
+ "after": {
1265
+ "type": "string",
1266
+ "maxLength": 32768
1267
+ },
1268
+ "beforeLabel": {
1269
+ "type": "string",
1270
+ "minLength": 1,
1271
+ "maxLength": 4096
1272
+ },
1273
+ "afterLabel": {
1274
+ "type": "string",
1275
+ "minLength": 1,
1276
+ "maxLength": 4096
1277
+ },
1278
+ "ext": {
1279
+ "type": "object"
1280
+ }
1281
+ }
1282
+ }
1283
+ ]
1284
+ }
1285
+ },
1286
+ "contractVersion": {
1287
+ "type": "string",
1288
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1289
+ },
1290
+ "ext": {
1291
+ "type": "object"
1292
+ }
1293
+ }
1294
+ }
1295
+
1296
+ export const paneSchema = {
1297
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1298
+ "$comment": "contract revision 1.0.0; pane presentation only, no workspace allocation authority.",
1299
+ "$id": "https://mnstry.ai/schemas/atelier/atelier-pane-presentation.v1.schema.json",
1300
+ "title": "Portable pane presentation",
1301
+ "type": "object",
1302
+ "additionalProperties": false,
1303
+ "required": [
1304
+ "id",
1305
+ "label",
1306
+ "role",
1307
+ "blocks"
1308
+ ],
1309
+ "properties": {
1310
+ "id": {
1311
+ "type": "string",
1312
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1313
+ },
1314
+ "label": {
1315
+ "type": "string",
1316
+ "minLength": 1,
1317
+ "maxLength": 4096
1318
+ },
1319
+ "role": {
1320
+ "enum": [
1321
+ "primary",
1322
+ "context",
1323
+ "utility"
1324
+ ]
1325
+ },
1326
+ "width": {
1327
+ "type": "object",
1328
+ "additionalProperties": false,
1329
+ "required": [
1330
+ "min",
1331
+ "max",
1332
+ "value"
1333
+ ],
1334
+ "properties": {
1335
+ "min": {
1336
+ "type": "number",
1337
+ "minimum": 10,
1338
+ "maximum": 90
1339
+ },
1340
+ "max": {
1341
+ "type": "number",
1342
+ "minimum": 10,
1343
+ "maximum": 90
1344
+ },
1345
+ "value": {
1346
+ "type": "number",
1347
+ "minimum": 10,
1348
+ "maximum": 90
1349
+ },
1350
+ "ext": {
1351
+ "type": "object"
1352
+ }
1353
+ }
1354
+ },
1355
+ "blocks": {
1356
+ "type": "array",
1357
+ "maxItems": 128,
1358
+ "items": {
1359
+ "type": "string",
1360
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
1361
+ }
1362
+ },
1363
+ "contractVersion": {
1364
+ "type": "string",
1365
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1366
+ },
1367
+ "ext": {
1368
+ "type": "object"
1369
+ }
1370
+ }
1371
+ }