@kumwe/studio-testkit 0.1.0-alpha.10

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 (304) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -0
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
  5. package/conformance/renderer-web/blob-default-deny.json +47 -0
  6. package/conformance/renderer-web/chart-fallback.json +39 -0
  7. package/conformance/renderer-web/complete-catalog.json +634 -0
  8. package/conformance/renderer-web/escaped-heading.json +28 -0
  9. package/conformance/renderer-web/interactive-behaviors.json +226 -0
  10. package/conformance/renderer-web/presentation-capabilities.json +76 -0
  11. package/conformance/renderer-web/responsive-grid.json +33 -0
  12. package/conformance/renderer-web/security-fallbacks.json +169 -0
  13. package/conformance/rich-text/advanced.first-party.json +67 -0
  14. package/conformance/rich-text/blocks.structural.json +57 -0
  15. package/conformance/rich-text/document.multi-block.json +74 -0
  16. package/conformance/rich-text/embed.hard-break.json +24 -0
  17. package/conformance/rich-text/marks.nested.json +29 -0
  18. package/conformance/rich-text/offsets.astral.json +24 -0
  19. package/conformance/rich-text/paragraph.plain.json +20 -0
  20. package/conformance/rich-text/spans.adjacent.json +27 -0
  21. package/corpus-manifest.json +1212 -0
  22. package/dist/host-testbed.d.ts +71 -0
  23. package/dist/host-testbed.d.ts.map +1 -0
  24. package/dist/host-testbed.js +782 -0
  25. package/dist/host-testbed.js.map +1 -0
  26. package/dist/http-host-adapter.d.ts +74 -0
  27. package/dist/http-host-adapter.d.ts.map +1 -0
  28. package/dist/http-host-adapter.js +264 -0
  29. package/dist/http-host-adapter.js.map +1 -0
  30. package/dist/index.d.ts +112 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +211 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/web-conformance.d.ts +105 -0
  35. package/dist/web-conformance.d.ts.map +1 -0
  36. package/dist/web-conformance.js +72 -0
  37. package/dist/web-conformance.js.map +1 -0
  38. package/fixtures/authoring-message-catalog.en.json +649 -0
  39. package/fixtures/block.grid.example.json +76 -0
  40. package/fixtures/block.price.example.json +69 -0
  41. package/fixtures/blueprint.product.example.json +92 -0
  42. package/fixtures/command.move-node.example.json +18 -0
  43. package/fixtures/content-model.product.example.json +141 -0
  44. package/fixtures/design-vocabulary.example.json +85 -0
  45. package/fixtures/entry.product.example.json +55 -0
  46. package/fixtures/field-adapter.example.json +27 -0
  47. package/fixtures/host-capabilities.example.json +42 -0
  48. package/fixtures/host-error.conflict.example.json +23 -0
  49. package/fixtures/host-operations.example.json +270 -0
  50. package/fixtures/inspector.example.json +17 -0
  51. package/fixtures/media-asset.example.json +29 -0
  52. package/fixtures/media-asset.processing.example.json +15 -0
  53. package/fixtures/media-reference.example.json +26 -0
  54. package/fixtures/media-upload-grant.example.json +14 -0
  55. package/fixtures/media-upload-session.transferring.example.json +22 -0
  56. package/fixtures/migration.example.json +22 -0
  57. package/fixtures/pattern.example.json +49 -0
  58. package/fixtures/plugin.example.json +49 -0
  59. package/fixtures/preview.render.example.json +15 -0
  60. package/fixtures/provenance.example.json +38 -0
  61. package/fixtures/rich-text.example.json +48 -0
  62. package/fixtures/studio-config.example.json +139 -0
  63. package/fixtures/theme.example.json +123 -0
  64. package/fixtures/unresolved-contribution.example.json +23 -0
  65. package/invalid/binding-projection-vector.unknown-status.json +85 -0
  66. package/invalid/blueprint.control-character-member.json +59 -0
  67. package/invalid/blueprint.forbidden-property-member.json +61 -0
  68. package/invalid/blueprint.invalid-node-id.json +57 -0
  69. package/invalid/blueprint.invalid-slot-name.json +59 -0
  70. package/invalid/blueprint.published-empty-roots.json +45 -0
  71. package/invalid/blueprint.revoking-slot-marker.json +57 -0
  72. package/invalid/blueprint.unknown-member.json +58 -0
  73. package/invalid/command-vector.unknown-error-code.json +103 -0
  74. package/invalid/command.empty-batch.json +17 -0
  75. package/invalid/command.forbidden-id-map-member.json +20 -0
  76. package/invalid/command.malformed-size-role.json +18 -0
  77. package/invalid/command.negative-position.json +20 -0
  78. package/invalid/command.nested-batch.json +24 -0
  79. package/invalid/command.pattern-in-batch.json +40 -0
  80. package/invalid/command.reset-inherited-property-in-batch.json +24 -0
  81. package/invalid/command.unknown-member.json +23 -0
  82. package/invalid/command.wrong-contract-version.json +22 -0
  83. package/invalid/content-model.published-empty.json +22 -0
  84. package/invalid/design-vocabulary.unknown-control-kind.json +38 -0
  85. package/invalid/entry.forbidden-value-member.json +23 -0
  86. package/invalid/entry.invalid-locale.json +59 -0
  87. package/invalid/host-capabilities.invalid-protocol-version.json +40 -0
  88. package/invalid/host-sequence.pending-expectation.json +52 -0
  89. package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
  90. package/invalid/inspector.empty-block-types.json +20 -0
  91. package/invalid/media-reference.missing-accessibility.json +25 -0
  92. package/invalid/media-upload-grant.insecure-url.json +14 -0
  93. package/invalid/media-upload-session.complete-without-asset.json +20 -0
  94. package/invalid/migration.empty-artifact-kinds.json +22 -0
  95. package/invalid/preview-message.activated-unknown-interaction.json +16 -0
  96. package/invalid/preview-message.duplicate-marker.json +24 -0
  97. package/invalid/preview-message.invalid-digest.json +19 -0
  98. package/invalid/preview-message.invalid-marker-grammar.json +19 -0
  99. package/invalid/preview-message.missing-marker-map.json +20 -0
  100. package/invalid/preview-message.missing-render-request-id.json +18 -0
  101. package/invalid/preview-message.unknown-type.json +13 -0
  102. package/invalid/preview-message.viewport-height-too-small.json +13 -0
  103. package/invalid/preview-message.viewport-role-and-size.json +16 -0
  104. package/invalid/preview-message.viewport-unsafe-role.json +13 -0
  105. package/invalid/rich-text.embedded-html.json +13 -0
  106. package/invalid/rich-text.unknown-mark.json +19 -0
  107. package/invalid/studio-chart.script-config.json +10 -0
  108. package/invalid/studio-drawing.svg-payload.json +10 -0
  109. package/invalid/studio-money.float.json +8 -0
  110. package/invalid/studio-presentation.css-injection.json +8 -0
  111. package/invalid/studio-table.html-cell.json +8 -0
  112. package/invalid/theme.unknown-member.json +128 -0
  113. package/package.json +54 -0
  114. package/studio-release.json +18 -0
  115. package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
  116. package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
  117. package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
  118. package/vectors/canonical/array-order.json +13 -0
  119. package/vectors/canonical/control-characters.json +13 -0
  120. package/vectors/canonical/depth-exceeded.json +21 -0
  121. package/vectors/canonical/empty-containers.json +14 -0
  122. package/vectors/canonical/forbidden-member.json +14 -0
  123. package/vectors/canonical/member-order.json +16 -0
  124. package/vectors/canonical/negative-zero.json +13 -0
  125. package/vectors/canonical/nested-order.json +19 -0
  126. package/vectors/canonical/non-ascii.json +13 -0
  127. package/vectors/canonical/numbers.json +16 -0
  128. package/vectors/canonical/string-escapes.json +13 -0
  129. package/vectors/canonical/surrogate-pair.json +13 -0
  130. package/vectors/command/apply-pattern.colliding-id.error.json +97 -0
  131. package/vectors/command/apply-pattern.incomplete-id-map.error.json +111 -0
  132. package/vectors/command/apply-pattern.two-roots.json +259 -0
  133. package/vectors/command/batch.atomic-failure.error.json +100 -0
  134. package/vectors/command/batch.insert-and-configure.json +197 -0
  135. package/vectors/command/batch.size-roles.json +180 -0
  136. package/vectors/command/duplicate-node.existing-id.error.json +88 -0
  137. package/vectors/command/duplicate-node.explicit-destination.json +183 -0
  138. package/vectors/command/duplicate-node.incomplete-id-map.error.json +91 -0
  139. package/vectors/command/duplicate-node.subtree.json +201 -0
  140. package/vectors/command/insert-node.duplicate-id.error.json +87 -0
  141. package/vectors/command/insert-node.inner-duplicate-id.error.json +115 -0
  142. package/vectors/command/insert-node.invalid-index.error.json +87 -0
  143. package/vectors/command/insert-node.root.json +162 -0
  144. package/vectors/command/insert-node.slot.json +167 -0
  145. package/vectors/command/mode.blueprint.set-field-value.error.json +76 -0
  146. package/vectors/command/mode.blueprint.set-property.json +131 -0
  147. package/vectors/command/mode.content.insert-node.error.json +88 -0
  148. package/vectors/command/mode.hybrid.batch-atomic.error.json +158 -0
  149. package/vectors/command/mode.hybrid.insert-allowed.json +263 -0
  150. package/vectors/command/mode.hybrid.insert-designer-slot.error.json +145 -0
  151. package/vectors/command/mode.hybrid.insert-disallowed-type.error.json +145 -0
  152. package/vectors/command/mode.hybrid.insert-roots.error.json +143 -0
  153. package/vectors/command/mode.hybrid.remove-locked.error.json +130 -0
  154. package/vectors/command/mode.hybrid.reorder-with-locked.json +239 -0
  155. package/vectors/command/mode.hybrid.set-property.error.json +132 -0
  156. package/vectors/command/mode.hybrid.slot-marker-disallowed.error.json +125 -0
  157. package/vectors/command/mode.hybrid.slot-marker-insert.json +223 -0
  158. package/vectors/command/mode.hybrid.slot-marker-other-slot.error.json +125 -0
  159. package/vectors/command/mode.model.remove-node.error.json +75 -0
  160. package/vectors/command/mode.read-only.set-property.error.json +77 -0
  161. package/vectors/command/move-node.into-self.error.json +95 -0
  162. package/vectors/command/move-node.reparent.json +196 -0
  163. package/vectors/command/move-node.within-roots.json +188 -0
  164. package/vectors/command/remove-binding.base.json +159 -0
  165. package/vectors/command/remove-binding.missing.error.json +75 -0
  166. package/vectors/command/remove-node.empties-slot.json +167 -0
  167. package/vectors/command/remove-node.missing.error.json +74 -0
  168. package/vectors/command/remove-node.nested.json +192 -0
  169. package/vectors/command/reorder-children.not-permutation.error.json +85 -0
  170. package/vectors/command/reorder-children.roots.json +182 -0
  171. package/vectors/command/reorder-children.slot.json +192 -0
  172. package/vectors/command/reset-inherited-property.missing.error.json +82 -0
  173. package/vectors/command/reset-inherited-property.single-viewport.json +151 -0
  174. package/vectors/command/reset-inherited-property.two-viewports.json +168 -0
  175. package/vectors/command/restore-node.inner-duplicate-id.error.json +115 -0
  176. package/vectors/command/restore-node.subtree-into-slot.json +195 -0
  177. package/vectors/command/set-binding.add.json +159 -0
  178. package/vectors/command/set-binding.replace.json +178 -0
  179. package/vectors/command/set-property.add.json +143 -0
  180. package/vectors/command/set-property.replace.json +146 -0
  181. package/vectors/command/set-property.viewport-add.json +148 -0
  182. package/vectors/command/set-size-role.base.json +144 -0
  183. package/vectors/command/set-size-role.duplicate.json +148 -0
  184. package/vectors/command/set-size-role.viewport-add.json +154 -0
  185. package/vectors/command/unset-property.base.json +143 -0
  186. package/vectors/command/unset-property.missing.error.json +75 -0
  187. package/vectors/command/unset-property.viewport.json +154 -0
  188. package/vectors/command/unset-size-role.missing.error.json +78 -0
  189. package/vectors/command/unset-size-role.viewport.json +154 -0
  190. package/vectors/host/artifact.dependencies.result.json +35 -0
  191. package/vectors/host/artifact.load.stored.json +36 -0
  192. package/vectors/host/artifact.load.unknown.error.json +37 -0
  193. package/vectors/host/artifact.publish.accepted.json +37 -0
  194. package/vectors/host/artifact.publish.forbidden.error.json +37 -0
  195. package/vectors/host/artifact.publish.stale.error.json +38 -0
  196. package/vectors/host/artifact.save.accepted.json +38 -0
  197. package/vectors/host/artifact.save.forbidden.error.json +38 -0
  198. package/vectors/host/artifact.save.stale.error.json +39 -0
  199. package/vectors/host/artifact.unpublish.stale.error.json +38 -0
  200. package/vectors/host/envelope.malformed-context.error.json +36 -0
  201. package/vectors/host/envelope.protocol-version.error.json +36 -0
  202. package/vectors/host/envelope.stale-generation.error.json +36 -0
  203. package/vectors/host/localization.messages.unknown-locale.error.json +36 -0
  204. package/vectors/host/media.abort-upload.unknown.error.json +35 -0
  205. package/vectors/host/media.authorize-upload.granted.json +37 -0
  206. package/vectors/host/media.authorize-upload.path-filename.error.json +39 -0
  207. package/vectors/host/media.authorize-upload.too-large.error.json +38 -0
  208. package/vectors/host/media.complete-upload.unknown.error.json +36 -0
  209. package/vectors/host/media.get.unknown.json +34 -0
  210. package/vectors/host/media.import-external.private-host.error.json +36 -0
  211. package/vectors/host/media.list.cursor.error.json +36 -0
  212. package/vectors/host/media.list.limit.error.json +35 -0
  213. package/vectors/host/media.upload-status.unknown.error.json +35 -0
  214. package/vectors/host/model.get.stored.json +37 -0
  215. package/vectors/host/model.list.authorized.json +31 -0
  216. package/vectors/host/permission.explain.withheld.json +34 -0
  217. package/vectors/host/permission.refresh.snapshot.json +31 -0
  218. package/vectors/host/recovery.load.absent.json +31 -0
  219. package/vectors/host/telemetry.emit.accepted.json +37 -0
  220. package/vectors/host/telemetry.emit.non-primitive.error.json +40 -0
  221. package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
  222. package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
  223. package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
  224. package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
  225. package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
  226. package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
  227. package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
  228. package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
  229. package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
  230. package/vectors/media/accept.plan-deterministic.json +26 -0
  231. package/vectors/media/accept.size-at-boundary.json +26 -0
  232. package/vectors/media/cancel.complete-noop.json +30 -0
  233. package/vectors/media/cancel.requested.json +30 -0
  234. package/vectors/media/cancel.transferring.json +30 -0
  235. package/vectors/media/cancel.verifying.json +30 -0
  236. package/vectors/media/reject.disallowed-kind.json +23 -0
  237. package/vectors/media/reject.filename-empty.json +22 -0
  238. package/vectors/media/reject.filename-path.json +23 -0
  239. package/vectors/media/reject.size-one-byte-over.json +23 -0
  240. package/vectors/media/retry.fresh-session.json +26 -0
  241. package/vectors/preview/canonical-preorder.json +102 -0
  242. package/vectors/preview/empty-draft.json +36 -0
  243. package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
  244. package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
  245. package/vectors/schema-profile/array-composition.accepted.json +35 -0
  246. package/vectors/schema-profile/byte-limit.accepted.json +30 -0
  247. package/vectors/schema-profile/byte-limit.rejected.json +26 -0
  248. package/vectors/schema-profile/closed-object.accepted.json +38 -0
  249. package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
  250. package/vectors/schema-profile/depth-limit.accepted.json +90 -0
  251. package/vectors/schema-profile/depth-limit.rejected.json +88 -0
  252. package/vectors/schema-profile/description-limit.accepted.json +29 -0
  253. package/vectors/schema-profile/description-limit.rejected.json +25 -0
  254. package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
  255. package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
  256. package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
  257. package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
  258. package/vectors/schema-profile/empty-enum.rejected.json +17 -0
  259. package/vectors/schema-profile/enum-limit.accepted.json +89 -0
  260. package/vectors/schema-profile/enum-limit.rejected.json +84 -0
  261. package/vectors/schema-profile/examples-limit.accepted.json +35 -0
  262. package/vectors/schema-profile/examples-limit.rejected.json +31 -0
  263. package/vectors/schema-profile/format-keyword.rejected.json +17 -0
  264. package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
  265. package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
  266. package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
  267. package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
  268. package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
  269. package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
  270. package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
  271. package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
  272. package/vectors/schema-profile/local-reference.accepted.json +28 -0
  273. package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
  274. package/vectors/schema-profile/node-limit.accepted.json +1097 -0
  275. package/vectors/schema-profile/node-limit.rejected.json +1094 -0
  276. package/vectors/schema-profile/non-object-root.rejected.json +9 -0
  277. package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
  278. package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
  279. package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
  280. package/vectors/schema-profile/open-root.rejected.json +13 -0
  281. package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
  282. package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
  283. package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
  284. package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
  285. package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
  286. package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
  287. package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
  288. package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
  289. package/vectors/schema-profile/reference-limit.accepted.json +416 -0
  290. package/vectors/schema-profile/reference-limit.rejected.json +415 -0
  291. package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
  292. package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
  293. package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
  294. package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
  295. package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
  296. package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
  297. package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
  298. package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
  299. package/vectors/schema-profile/title-limit.accepted.json +29 -0
  300. package/vectors/schema-profile/title-limit.rejected.json +25 -0
  301. package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
  302. package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
  303. package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
  304. package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@kumwe/studio-testkit",
3
+ "version": "0.1.0-alpha.10",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/kumwe/studio.git",
7
+ "directory": "packages/testkit"
8
+ },
9
+ "homepage": "https://github.com/kumwe/studio/tree/main/packages/testkit#readme",
10
+ "bugs": "https://github.com/kumwe/studio/issues",
11
+ "description": "Draft canonical fixtures, builders, and the initial Blueprint assertion for Studio.",
12
+ "type": "module",
13
+ "sideEffects": false,
14
+ "files": [
15
+ "LICENSE",
16
+ "THIRD_PARTY_NOTICES.md",
17
+ "third-party-licenses",
18
+ "README.md",
19
+ "conformance",
20
+ "corpus-manifest.json",
21
+ "dist",
22
+ "fixtures",
23
+ "invalid",
24
+ "studio-release.json",
25
+ "vectors"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./conformance/*": "./conformance/*",
33
+ "./corpus-manifest.json": "./corpus-manifest.json",
34
+ "./fixtures/*": "./fixtures/*",
35
+ "./invalid/*": "./invalid/*",
36
+ "./studio-release.json": "./studio-release.json",
37
+ "./vectors/*": "./vectors/*"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc -b"
41
+ },
42
+ "dependencies": {
43
+ "@kumwe/studio-core": "0.1.0-alpha.10",
44
+ "@kumwe/studio-protocol": "0.1.0-alpha.10"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public",
48
+ "provenance": true
49
+ },
50
+ "license": "MIT",
51
+ "engines": {
52
+ "node": ">=24.0.0"
53
+ }
54
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "studio-release",
4
+ "release": "0.1.0-alpha.10",
5
+ "packages": {
6
+ "@kumwe/studio-core": "0.1.0-alpha.10",
7
+ "@kumwe/studio-media": "0.1.0-alpha.10",
8
+ "@kumwe/studio-preview": "0.1.0-alpha.10",
9
+ "@kumwe/studio-protocol": "0.1.0-alpha.10",
10
+ "@kumwe/studio-renderer-web": "0.1.0-alpha.10",
11
+ "@kumwe/studio-rich-text": "0.1.0-alpha.10",
12
+ "@kumwe/studio": "0.1.0-alpha.10",
13
+ "@kumwe/studio-testkit": "0.1.0-alpha.10"
14
+ },
15
+ "protocolVersion": "0.1.0-draft.2",
16
+ "corpusManifestDigest": "sha256-4/ChS3pCA32CoZ+BjvL2tj2RGOFJNdqXwuqO8gWDxTs=",
17
+ "claimedProfiles": []
18
+ }
@@ -0,0 +1,286 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "binding-projection-vector",
4
+ "id": "binding-projection/app-content-fields-resolved",
5
+ "description": "An App-like Content projection exposes compatible visible fields in authoring order, preserves declared controls, and resolves exact entry-field bindings.",
6
+ "profile": "studio.profile/binding-projection-v1",
7
+ "blueprint": {
8
+ "contractVersion": "0.1-draft",
9
+ "kind": "blueprint",
10
+ "id": "blueprints/article-page",
11
+ "version": "1.0.0",
12
+ "revision": "blueprint-r1",
13
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
14
+ "status": "draft",
15
+ "label": { "key": "studio.test/article-page", "defaultMessage": "Article page" },
16
+ "model": {
17
+ "id": "content-model:00000000-0000-4000-8000-000000000001",
18
+ "version": "0.0.4",
19
+ "revision": "content-type-v4"
20
+ },
21
+ "dependencyLock": {
22
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
23
+ "blocks": [{ "type": "studio.test/article-card", "version": "1.0.0", "revision": "block-r1" }]
24
+ },
25
+ "roots": [
26
+ {
27
+ "id": "article-card-1",
28
+ "type": "studio.test/article-card",
29
+ "version": "1.0.0",
30
+ "properties": {},
31
+ "bindings": {
32
+ "headline": {
33
+ "source": { "kind": "entry-field", "fieldPath": ["data_title"] },
34
+ "transforms": [],
35
+ "onNull": "empty",
36
+ "onError": "error"
37
+ },
38
+ "labels": {
39
+ "source": { "kind": "entry-field", "fieldPath": ["data_tags"] },
40
+ "transforms": [],
41
+ "onNull": "empty",
42
+ "onError": "error"
43
+ },
44
+ "manual": {
45
+ "source": { "kind": "static-value", "value": "Fallback" },
46
+ "transforms": [],
47
+ "onNull": "empty",
48
+ "onError": "error"
49
+ }
50
+ },
51
+ "slots": {},
52
+ "authoring": { "mode": "content" }
53
+ }
54
+ ]
55
+ },
56
+ "model": {
57
+ "contractVersion": "0.1-draft",
58
+ "kind": "content-model",
59
+ "id": "content-model:00000000-0000-4000-8000-000000000001",
60
+ "version": "0.0.4",
61
+ "revision": "content-type-v4",
62
+ "owner": { "id": "kumwe.app/content", "version": "2.0.0" },
63
+ "status": "published",
64
+ "label": { "key": "kumwe.app/article", "defaultMessage": "Article" },
65
+ "fields": [
66
+ {
67
+ "id": "data_title",
68
+ "kind": "string",
69
+ "label": { "key": "kumwe.app/title", "defaultMessage": "Title" },
70
+ "required": true,
71
+ "localized": true,
72
+ "cardinality": "one",
73
+ "authoring": { "control": "studio.control/single-line-text", "order": 0 }
74
+ },
75
+ {
76
+ "id": "data_contact",
77
+ "kind": "string",
78
+ "label": { "key": "kumwe.app/contact", "defaultMessage": "Contact" },
79
+ "required": false,
80
+ "localized": true,
81
+ "cardinality": "one",
82
+ "authoring": { "control": "kumwe.app/email", "order": 1 }
83
+ },
84
+ {
85
+ "id": "data_category",
86
+ "kind": "enum",
87
+ "label": { "key": "kumwe.app/category", "defaultMessage": "Category" },
88
+ "required": false,
89
+ "localized": true,
90
+ "cardinality": "one",
91
+ "enumValues": [
92
+ {
93
+ "value": "guide",
94
+ "label": { "key": "kumwe.app/category-guide", "defaultMessage": "Guide" }
95
+ }
96
+ ],
97
+ "authoring": { "control": "studio.control/select", "order": 2 }
98
+ },
99
+ {
100
+ "id": "data_internal",
101
+ "kind": "string",
102
+ "label": { "key": "kumwe.app/internal", "defaultMessage": "Internal" },
103
+ "required": false,
104
+ "localized": false,
105
+ "cardinality": "one",
106
+ "authoring": {
107
+ "control": "studio.control/single-line-text",
108
+ "hidden": true,
109
+ "order": 3
110
+ }
111
+ },
112
+ {
113
+ "id": "data_tags",
114
+ "kind": "collection",
115
+ "itemKind": "string",
116
+ "label": { "key": "kumwe.app/tags", "defaultMessage": "Tags" },
117
+ "required": false,
118
+ "localized": true,
119
+ "cardinality": "many",
120
+ "authoring": { "control": "kumwe.app/schema-group", "order": 4 }
121
+ }
122
+ ],
123
+ "relationships": []
124
+ },
125
+ "blockDefinitions": [
126
+ {
127
+ "contractVersion": "0.1-draft",
128
+ "kind": "block-definition",
129
+ "type": "studio.test/article-card",
130
+ "version": "1.0.0",
131
+ "revision": "block-r1",
132
+ "owner": { "id": "studio.test/blocks", "version": "1.0.0" },
133
+ "label": { "key": "studio.test/article-card", "defaultMessage": "Article card" },
134
+ "category": "studio.category/content",
135
+ "propertySchema": { "type": "object", "additionalProperties": false },
136
+ "slots": [],
137
+ "ports": [
138
+ {
139
+ "id": "headline",
140
+ "label": { "key": "studio.test/headline", "defaultMessage": "Headline" },
141
+ "valueType": "text",
142
+ "required": true,
143
+ "multiple": false
144
+ },
145
+ {
146
+ "id": "labels",
147
+ "label": { "key": "studio.test/labels", "defaultMessage": "Labels" },
148
+ "valueType": "text",
149
+ "required": false,
150
+ "multiple": true
151
+ },
152
+ {
153
+ "id": "featured",
154
+ "label": { "key": "studio.test/featured", "defaultMessage": "Featured" },
155
+ "valueType": "boolean",
156
+ "required": false,
157
+ "multiple": false
158
+ },
159
+ {
160
+ "id": "manual",
161
+ "label": { "key": "studio.test/manual", "defaultMessage": "Manual" },
162
+ "valueType": "text",
163
+ "required": false,
164
+ "multiple": false
165
+ }
166
+ ],
167
+ "editingModes": ["blueprint", "content"],
168
+ "themeControls": [],
169
+ "rendererRequirements": [
170
+ {
171
+ "surface": "preview",
172
+ "capability": "studio.renderer/test",
173
+ "versions": "^1.0.0"
174
+ }
175
+ ],
176
+ "accessibility": {
177
+ "category": "text",
178
+ "accessibleName": "derived",
179
+ "keyboard": {
180
+ "key": "studio.test/article-card-keyboard",
181
+ "defaultMessage": "Use the outline controls."
182
+ },
183
+ "reducedMotion": "not-applicable",
184
+ "outputChecks": ["studio.check/article-card"]
185
+ }
186
+ }
187
+ ],
188
+ "expect": {
189
+ "model": {
190
+ "id": "content-model:00000000-0000-4000-8000-000000000001",
191
+ "version": "0.0.4",
192
+ "revision": "content-type-v4"
193
+ },
194
+ "nodes": [
195
+ {
196
+ "nodeId": "article-card-1",
197
+ "ports": [
198
+ {
199
+ "port": "headline",
200
+ "status": "resolved",
201
+ "bindingSourceKind": "entry-field",
202
+ "boundFieldPath": ["data_title"],
203
+ "candidates": [
204
+ {
205
+ "fieldPath": ["data_title"],
206
+ "kind": "string",
207
+ "cardinality": "one",
208
+ "control": "studio.control/single-line-text"
209
+ },
210
+ {
211
+ "fieldPath": ["data_contact"],
212
+ "kind": "string",
213
+ "cardinality": "one",
214
+ "control": "kumwe.app/email"
215
+ },
216
+ {
217
+ "fieldPath": ["data_category"],
218
+ "kind": "enum",
219
+ "cardinality": "one",
220
+ "control": "studio.control/select"
221
+ }
222
+ ],
223
+ "multiple": false,
224
+ "required": true,
225
+ "valueType": "text"
226
+ },
227
+ {
228
+ "port": "labels",
229
+ "status": "resolved",
230
+ "bindingSourceKind": "entry-field",
231
+ "boundFieldPath": ["data_tags"],
232
+ "candidates": [
233
+ {
234
+ "fieldPath": ["data_tags"],
235
+ "kind": "collection",
236
+ "itemKind": "string",
237
+ "cardinality": "many",
238
+ "control": "kumwe.app/schema-group"
239
+ }
240
+ ],
241
+ "multiple": true,
242
+ "required": false,
243
+ "valueType": "text"
244
+ },
245
+ {
246
+ "port": "featured",
247
+ "status": "unbound",
248
+ "candidates": [],
249
+ "multiple": false,
250
+ "required": false,
251
+ "valueType": "boolean"
252
+ },
253
+ {
254
+ "port": "manual",
255
+ "status": "non-field-source",
256
+ "bindingSourceKind": "static-value",
257
+ "candidates": [
258
+ {
259
+ "fieldPath": ["data_title"],
260
+ "kind": "string",
261
+ "cardinality": "one",
262
+ "control": "studio.control/single-line-text"
263
+ },
264
+ {
265
+ "fieldPath": ["data_contact"],
266
+ "kind": "string",
267
+ "cardinality": "one",
268
+ "control": "kumwe.app/email"
269
+ },
270
+ {
271
+ "fieldPath": ["data_category"],
272
+ "kind": "enum",
273
+ "cardinality": "one",
274
+ "control": "studio.control/select"
275
+ }
276
+ ],
277
+ "multiple": false,
278
+ "required": false,
279
+ "valueType": "text"
280
+ }
281
+ ]
282
+ }
283
+ ],
284
+ "diagnostics": []
285
+ }
286
+ }
@@ -0,0 +1,135 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "binding-projection-vector",
4
+ "id": "binding-projection/field-removed-diagnostic",
5
+ "description": "A binding to a field removed from the exact locked model is preserved and diagnosed instead of silently rewritten.",
6
+ "profile": "studio.profile/binding-projection-v1",
7
+ "blueprint": {
8
+ "contractVersion": "0.1-draft",
9
+ "kind": "blueprint",
10
+ "id": "blueprints/removed-field",
11
+ "version": "1.0.0",
12
+ "revision": "blueprint-r1",
13
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
14
+ "status": "draft",
15
+ "label": { "key": "studio.test/removed-field", "defaultMessage": "Removed field" },
16
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r2" },
17
+ "dependencyLock": {
18
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
19
+ "blocks": [{ "type": "studio.test/text", "version": "1.0.0", "revision": "block-r1" }]
20
+ },
21
+ "roots": [
22
+ {
23
+ "id": "text-1",
24
+ "type": "studio.test/text",
25
+ "version": "1.0.0",
26
+ "properties": {},
27
+ "bindings": {
28
+ "headline": {
29
+ "source": { "kind": "entry-field", "fieldPath": ["title"] },
30
+ "transforms": [],
31
+ "onNull": "empty",
32
+ "onError": "error"
33
+ }
34
+ },
35
+ "slots": {},
36
+ "authoring": { "mode": "content" }
37
+ }
38
+ ]
39
+ },
40
+ "model": {
41
+ "contractVersion": "0.1-draft",
42
+ "kind": "content-model",
43
+ "id": "studio.test/article",
44
+ "version": "1.0.0",
45
+ "revision": "model-r2",
46
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
47
+ "status": "published",
48
+ "label": { "key": "studio.test/article", "defaultMessage": "Article" },
49
+ "fields": [
50
+ {
51
+ "id": "summary",
52
+ "kind": "string",
53
+ "label": { "key": "studio.test/summary", "defaultMessage": "Summary" },
54
+ "required": false,
55
+ "localized": true,
56
+ "cardinality": "one",
57
+ "authoring": { "control": "studio.control/multi-line-text", "order": 0 }
58
+ }
59
+ ],
60
+ "relationships": []
61
+ },
62
+ "blockDefinitions": [
63
+ {
64
+ "contractVersion": "0.1-draft",
65
+ "kind": "block-definition",
66
+ "type": "studio.test/text",
67
+ "version": "1.0.0",
68
+ "revision": "block-r1",
69
+ "owner": { "id": "studio.test/blocks", "version": "1.0.0" },
70
+ "label": { "key": "studio.test/text", "defaultMessage": "Text" },
71
+ "category": "studio.category/content",
72
+ "propertySchema": { "type": "object", "additionalProperties": false },
73
+ "slots": [],
74
+ "ports": [
75
+ {
76
+ "id": "headline",
77
+ "label": { "key": "studio.test/headline", "defaultMessage": "Headline" },
78
+ "valueType": "text",
79
+ "required": true,
80
+ "multiple": false
81
+ }
82
+ ],
83
+ "editingModes": ["blueprint", "content"],
84
+ "themeControls": [],
85
+ "rendererRequirements": [
86
+ { "surface": "preview", "capability": "studio.renderer/test", "versions": "^1.0.0" }
87
+ ],
88
+ "accessibility": {
89
+ "category": "text",
90
+ "accessibleName": "derived",
91
+ "keyboard": { "key": "studio.test/text-keyboard", "defaultMessage": "Use the outline." },
92
+ "reducedMotion": "not-applicable",
93
+ "outputChecks": ["studio.check/text"]
94
+ }
95
+ }
96
+ ],
97
+ "expect": {
98
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r2" },
99
+ "nodes": [
100
+ {
101
+ "nodeId": "text-1",
102
+ "ports": [
103
+ {
104
+ "port": "headline",
105
+ "status": "invalid",
106
+ "bindingSourceKind": "entry-field",
107
+ "boundFieldPath": ["title"],
108
+ "candidates": [
109
+ {
110
+ "fieldPath": ["summary"],
111
+ "kind": "string",
112
+ "cardinality": "one",
113
+ "control": "studio.control/multi-line-text"
114
+ }
115
+ ],
116
+ "multiple": false,
117
+ "required": true,
118
+ "valueType": "text"
119
+ }
120
+ ]
121
+ }
122
+ ],
123
+ "diagnostics": [
124
+ {
125
+ "code": "studio.binding/field-missing",
126
+ "severity": "error",
127
+ "location": {
128
+ "artifactId": "blueprints/removed-field",
129
+ "nodeId": "text-1",
130
+ "fieldPath": ["title"]
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "binding-projection-vector",
4
+ "id": "binding-projection/model-revision-mismatch-diagnostic",
5
+ "description": "A projected model from a different immutable revision fails the entire candidate surface closed with an exact coordinate diagnostic.",
6
+ "profile": "studio.profile/binding-projection-v1",
7
+ "blueprint": {
8
+ "contractVersion": "0.1-draft",
9
+ "kind": "blueprint",
10
+ "id": "blueprints/revision-mismatch",
11
+ "version": "1.0.0",
12
+ "revision": "blueprint-r1",
13
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
14
+ "status": "draft",
15
+ "label": { "key": "studio.test/revision-mismatch", "defaultMessage": "Mismatch" },
16
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r1" },
17
+ "dependencyLock": {
18
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
19
+ "blocks": [{ "type": "studio.test/text", "version": "1.0.0", "revision": "block-r1" }]
20
+ },
21
+ "roots": [
22
+ {
23
+ "id": "text-1",
24
+ "type": "studio.test/text",
25
+ "version": "1.0.0",
26
+ "properties": {},
27
+ "bindings": {
28
+ "headline": {
29
+ "source": { "kind": "entry-field", "fieldPath": ["title"] },
30
+ "transforms": [],
31
+ "onNull": "empty",
32
+ "onError": "error"
33
+ }
34
+ },
35
+ "slots": {},
36
+ "authoring": { "mode": "content" }
37
+ }
38
+ ]
39
+ },
40
+ "model": {
41
+ "contractVersion": "0.1-draft",
42
+ "kind": "content-model",
43
+ "id": "studio.test/article",
44
+ "version": "1.0.0",
45
+ "revision": "model-r2",
46
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
47
+ "status": "published",
48
+ "label": { "key": "studio.test/article", "defaultMessage": "Article" },
49
+ "fields": [
50
+ {
51
+ "id": "title",
52
+ "kind": "string",
53
+ "label": { "key": "studio.test/title", "defaultMessage": "Title" },
54
+ "required": true,
55
+ "localized": true,
56
+ "cardinality": "one",
57
+ "authoring": { "control": "studio.control/single-line-text", "order": 0 }
58
+ }
59
+ ],
60
+ "relationships": []
61
+ },
62
+ "blockDefinitions": [
63
+ {
64
+ "contractVersion": "0.1-draft",
65
+ "kind": "block-definition",
66
+ "type": "studio.test/text",
67
+ "version": "1.0.0",
68
+ "revision": "block-r1",
69
+ "owner": { "id": "studio.test/blocks", "version": "1.0.0" },
70
+ "label": { "key": "studio.test/text", "defaultMessage": "Text" },
71
+ "category": "studio.category/content",
72
+ "propertySchema": { "type": "object", "additionalProperties": false },
73
+ "slots": [],
74
+ "ports": [
75
+ {
76
+ "id": "headline",
77
+ "label": { "key": "studio.test/headline", "defaultMessage": "Headline" },
78
+ "valueType": "text",
79
+ "required": true,
80
+ "multiple": false
81
+ }
82
+ ],
83
+ "editingModes": ["blueprint", "content"],
84
+ "themeControls": [],
85
+ "rendererRequirements": [
86
+ { "surface": "preview", "capability": "studio.renderer/test", "versions": "^1.0.0" }
87
+ ],
88
+ "accessibility": {
89
+ "category": "text",
90
+ "accessibleName": "derived",
91
+ "keyboard": { "key": "studio.test/text-keyboard", "defaultMessage": "Use the outline." },
92
+ "reducedMotion": "not-applicable",
93
+ "outputChecks": ["studio.check/text"]
94
+ }
95
+ }
96
+ ],
97
+ "expect": {
98
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r1" },
99
+ "nodes": [
100
+ {
101
+ "nodeId": "text-1",
102
+ "ports": [
103
+ {
104
+ "port": "headline",
105
+ "status": "invalid",
106
+ "bindingSourceKind": "entry-field",
107
+ "boundFieldPath": ["title"],
108
+ "candidates": [],
109
+ "multiple": false,
110
+ "required": true,
111
+ "valueType": "text"
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ "diagnostics": [
117
+ {
118
+ "code": "studio.binding/model-revision-mismatch",
119
+ "severity": "error",
120
+ "location": { "artifactId": "blueprints/revision-mismatch" }
121
+ }
122
+ ]
123
+ }
124
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "canonical-vector",
4
+ "id": "vector.canonical-vector.array-order",
5
+ "description": "Arrays keep semantic order; only object members are sorted.",
6
+ "value": {
7
+ "items": ["c", "a", "b"]
8
+ },
9
+ "expect": {
10
+ "canonical": "{\"items\":[\"c\",\"a\",\"b\"]}",
11
+ "digest": "sha256-Skzt0qRLwO/5TqmcmghEQQEADtJ5ASbjphmWAaasB7U="
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "canonical-vector",
4
+ "id": "vector.canonical-vector.control-characters",
5
+ "description": "Control characters without a short form are escaped as four hex digits.",
6
+ "value": {
7
+ "value": "bell\u0007 unit\u001f"
8
+ },
9
+ "expect": {
10
+ "canonical": "{\"value\":\"bell\\u0007 unit\\u001f\"}",
11
+ "digest": "sha256-V332co6E4LRxsTuTQ5OLD98jGjDBZAAmzZDCJOFGDNA="
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "canonical-vector",
4
+ "id": "vector.canonical-vector.depth-exceeded",
5
+ "description": "Nesting deeper than the declared bound is refused rather than truncated.",
6
+ "value": {
7
+ "a": {
8
+ "a": {
9
+ "a": {
10
+ "a": {
11
+ "a": 1
12
+ }
13
+ }
14
+ }
15
+ }
16
+ },
17
+ "maximumDepth": 3,
18
+ "expect": {
19
+ "rejected": "depth-exceeded"
20
+ }
21
+ }