@kumwe/studio-testkit 0.1.0-alpha.7 → 0.1.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 (128) hide show
  1. package/README.md +50 -11
  2. package/corpus-manifest.json +381 -35
  3. package/dist/host-testbed.d.ts +22 -2
  4. package/dist/host-testbed.d.ts.map +1 -1
  5. package/dist/host-testbed.js +230 -35
  6. package/dist/host-testbed.js.map +1 -1
  7. package/dist/index.d.ts +40 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +36 -2
  10. package/dist/index.js.map +1 -1
  11. package/fixtures/host-capabilities.example.json +2 -2
  12. package/fixtures/preview.render.example.json +1 -0
  13. package/fixtures/studio-config.example.json +3 -3
  14. package/invalid/host-capabilities.invalid-protocol-version.json +1 -1
  15. package/invalid/host-sequence.pending-expectation.json +52 -0
  16. package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
  17. package/invalid/preview-message.activated-unknown-interaction.json +1 -1
  18. package/invalid/preview-message.duplicate-marker.json +24 -0
  19. package/invalid/preview-message.invalid-digest.json +1 -0
  20. package/invalid/preview-message.invalid-marker-grammar.json +19 -0
  21. package/invalid/preview-message.missing-marker-map.json +20 -0
  22. package/invalid/preview-message.missing-render-request-id.json +18 -0
  23. package/invalid/preview-message.unknown-type.json +13 -0
  24. package/invalid/preview-message.viewport-height-too-small.json +13 -0
  25. package/invalid/preview-message.viewport-unsafe-role.json +13 -0
  26. package/package.json +3 -3
  27. package/vectors/host/artifact.dependencies.result.json +2 -2
  28. package/vectors/host/artifact.load.stored.json +2 -2
  29. package/vectors/host/artifact.load.unknown.error.json +2 -2
  30. package/vectors/host/artifact.publish.accepted.json +2 -2
  31. package/vectors/host/artifact.publish.forbidden.error.json +1 -1
  32. package/vectors/host/artifact.publish.stale.error.json +2 -2
  33. package/vectors/host/artifact.save.accepted.json +2 -2
  34. package/vectors/host/artifact.save.forbidden.error.json +1 -1
  35. package/vectors/host/artifact.save.stale.error.json +2 -2
  36. package/vectors/host/artifact.unpublish.stale.error.json +2 -2
  37. package/vectors/host/envelope.malformed-context.error.json +2 -2
  38. package/vectors/host/envelope.protocol-version.error.json +1 -1
  39. package/vectors/host/envelope.stale-generation.error.json +2 -2
  40. package/vectors/host/localization.messages.unknown-locale.error.json +2 -2
  41. package/vectors/host/media.abort-upload.unknown.error.json +1 -1
  42. package/vectors/host/media.authorize-upload.granted.json +1 -1
  43. package/vectors/host/media.authorize-upload.path-filename.error.json +1 -1
  44. package/vectors/host/media.authorize-upload.too-large.error.json +1 -1
  45. package/vectors/host/media.complete-upload.unknown.error.json +1 -1
  46. package/vectors/host/media.get.unknown.json +2 -2
  47. package/vectors/host/media.import-external.private-host.error.json +1 -1
  48. package/vectors/host/media.list.cursor.error.json +2 -2
  49. package/vectors/host/media.list.limit.error.json +2 -2
  50. package/vectors/host/media.upload-status.unknown.error.json +1 -1
  51. package/vectors/host/permission.explain.withheld.json +2 -2
  52. package/vectors/host/permission.refresh.snapshot.json +2 -2
  53. package/vectors/host/recovery.load.absent.json +2 -2
  54. package/vectors/host/telemetry.emit.accepted.json +2 -2
  55. package/vectors/host/telemetry.emit.non-primitive.error.json +2 -2
  56. package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
  57. package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
  58. package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
  59. package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
  60. package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
  61. package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
  62. package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
  63. package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
  64. package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
  65. package/vectors/preview/canonical-preorder.json +102 -0
  66. package/vectors/preview/empty-draft.json +36 -0
  67. package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
  68. package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
  69. package/vectors/schema-profile/array-composition.accepted.json +35 -0
  70. package/vectors/schema-profile/byte-limit.accepted.json +30 -0
  71. package/vectors/schema-profile/byte-limit.rejected.json +26 -0
  72. package/vectors/schema-profile/closed-object.accepted.json +38 -0
  73. package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
  74. package/vectors/schema-profile/depth-limit.accepted.json +90 -0
  75. package/vectors/schema-profile/depth-limit.rejected.json +88 -0
  76. package/vectors/schema-profile/description-limit.accepted.json +29 -0
  77. package/vectors/schema-profile/description-limit.rejected.json +25 -0
  78. package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
  79. package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
  80. package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
  81. package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
  82. package/vectors/schema-profile/empty-enum.rejected.json +17 -0
  83. package/vectors/schema-profile/enum-limit.accepted.json +89 -0
  84. package/vectors/schema-profile/enum-limit.rejected.json +84 -0
  85. package/vectors/schema-profile/examples-limit.accepted.json +35 -0
  86. package/vectors/schema-profile/examples-limit.rejected.json +31 -0
  87. package/vectors/schema-profile/format-keyword.rejected.json +17 -0
  88. package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
  89. package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
  90. package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
  91. package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
  92. package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
  93. package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
  94. package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
  95. package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
  96. package/vectors/schema-profile/local-reference.accepted.json +28 -0
  97. package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
  98. package/vectors/schema-profile/node-limit.accepted.json +1097 -0
  99. package/vectors/schema-profile/node-limit.rejected.json +1094 -0
  100. package/vectors/schema-profile/non-object-root.rejected.json +9 -0
  101. package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
  102. package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
  103. package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
  104. package/vectors/schema-profile/open-root.rejected.json +13 -0
  105. package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
  106. package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
  107. package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
  108. package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
  109. package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
  110. package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
  111. package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
  112. package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
  113. package/vectors/schema-profile/reference-limit.accepted.json +416 -0
  114. package/vectors/schema-profile/reference-limit.rejected.json +415 -0
  115. package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
  116. package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
  117. package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
  118. package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
  119. package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
  120. package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
  121. package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
  122. package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
  123. package/vectors/schema-profile/title-limit.accepted.json +29 -0
  124. package/vectors/schema-profile/title-limit.rejected.json +25 -0
  125. package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
  126. package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
  127. package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
  128. package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,+BAA+B,EAC/B,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,gCAAgC,EACrC,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,qBAAqB,EACrB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iCAAiC;IAChD,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,YAAY,CAAC,EAAE,U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EAAE;QAAE,SAAS,CAAC,EAAE,2BAA2B,EAAE,CAAA;KAAE,CAAA;CAAE,GAC3F,4BAA4B,CAyB9B;AAED,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,iBAAiB,CAiB/F;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CA6B1E;AAED,wBAAgB,gCAAgC,CAC9C,OAAO,GAAE,iCAAsC,GAC9C,mBAAmB,CAqErB;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,SAAS,eAAe,EAAE,GACtC,IAAI,CAKN;AAED,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,SAAgB,WAAW,EAAE,gBAAgB,EAAE,CAAC;gBAE7B,WAAW,EAAE,gBAAgB,EAAE;CASnD"}
package/dist/index.js CHANGED
@@ -1,7 +1,41 @@
1
- import { BlockRegistry, validateBlueprint } from '@kumwe/studio-core';
1
+ import { BlockRegistry, compileStudioPropertySchema, StudioSchemaProfileError, validateBlueprint, } from '@kumwe/studio-core';
2
2
  import { STUDIO_CONTRACT_VERSION, STUDIO_WIRE_PROTOCOL_VERSION, } from '@kumwe/studio-protocol';
3
3
  export { createHostRequestContextFixture, createTestbedHost, TestbedHostError, } from './host-testbed.js';
4
4
  export { createHttpHostAdapter, } from './http-host-adapter.js';
5
+ /**
6
+ * Replay a portable `studio.profile/schema-property` vector against the
7
+ * reference implementation. Only each case's input `value` is read from the
8
+ * accepted expectation; expected verdicts and diagnostics are not consulted.
9
+ * Callers compare this independently produced outcome with the published
10
+ * `expect` member.
11
+ */
12
+ export function runSchemaProfileVector(vector) {
13
+ try {
14
+ const validator = compileStudioPropertySchema(vector.schema);
15
+ const instances = (vector.expect.instances ?? []).map((entry) => {
16
+ const valid = validator.validate(entry.value);
17
+ const first = validator.errors?.[0];
18
+ return {
19
+ ...(first === undefined
20
+ ? {}
21
+ : { diagnostic: { instancePath: first.instancePath, keyword: first.keyword } }),
22
+ valid,
23
+ value: entry.value,
24
+ };
25
+ });
26
+ return { instances, outcome: 'accepted' };
27
+ }
28
+ catch (error) {
29
+ if (error instanceof StudioSchemaProfileError) {
30
+ return {
31
+ code: error.code,
32
+ outcome: 'rejected',
33
+ schemaPath: error.schemaPath,
34
+ };
35
+ }
36
+ throw error;
37
+ }
38
+ }
5
39
  export function createBlueprintFixture(options = {}) {
6
40
  return {
7
41
  contractVersion: STUDIO_CONTRACT_VERSION,
@@ -37,7 +71,7 @@ export function defineTestBlock(options) {
37
71
  label: { defaultMessage: label, key: 'studio.test/block-label' },
38
72
  owner: { id: 'studio.test/testkit', version: '0.1.0-alpha.0' },
39
73
  ports: [],
40
- propertySchema: cloneValue(options.propertySchema ?? { type: 'object' }),
74
+ propertySchema: cloneValue(options.propertySchema ?? { additionalProperties: false, type: 'object' }),
41
75
  rendererRequirements: [
42
76
  { capability: 'studio.renderer/test', surface: 'preview', versions: '^0.1.0' },
43
77
  ],
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EACL,uBAAuB,EACvB,4BAA4B,GAU7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,+BAA+B,EAC/B,iBAAiB,EACjB,gBAAgB,GAMjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,qBAAqB,GAMtB,MAAM,wBAAwB,CAAC;AAuBhC,MAAM,UAAU,sBAAsB,CAAC,UAAmC,EAAE;IAC1E,OAAO;QACL,eAAe,EAAE,uBAAuB;QACxC,cAAc,EAAE;YACd,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,CAAC;YAC5C,KAAK,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE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EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,cAAc,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;aACrF,IAAI,CAAC,IAAI,CAAC,CACd,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IAC7C,CAAC;CACF;AAED,SAAS,UAAU,CAAI,KAAQ;IAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAM,CAAC;AAChD,CAAC"}
@@ -2,11 +2,11 @@
2
2
  "contractVersion": "0.1-draft",
3
3
  "kind": "host-capabilities",
4
4
  "host": {
5
- "id": "org.kumwe/cms",
5
+ "id": "org.kumwe/app",
6
6
  "version": "3.0.0-alpha.1",
7
7
  "generation": "runtime-generation-42"
8
8
  },
9
- "protocolVersions": ["0.1.0-draft.1"],
9
+ "protocolVersions": ["0.1.0-draft.2"],
10
10
  "ports": [
11
11
  {
12
12
  "id": "studio.port/artifact",
@@ -9,6 +9,7 @@
9
9
  "artifactId": "org.example.blueprints/product-card",
10
10
  "draftDigest": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
11
11
  "draftRevision": "product-card-r5-local-12",
12
+ "requestId": "renders/product-card-14",
12
13
  "viewport": "expanded"
13
14
  }
14
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "contractVersion": "0.1-draft",
3
- "protocolVersion": "0.1.0-draft.1",
3
+ "protocolVersion": "0.1.0-draft.2",
4
4
  "sessionId": "session-018f",
5
5
  "sessionGeneration": "session-generation-1",
6
6
  "mode": "content",
@@ -89,11 +89,11 @@
89
89
  "contractVersion": "0.1-draft",
90
90
  "kind": "host-capabilities",
91
91
  "host": {
92
- "id": "org.kumwe/cms",
92
+ "id": "org.kumwe/app",
93
93
  "version": "3.0.0-alpha.1",
94
94
  "generation": "runtime-generation-42"
95
95
  },
96
- "protocolVersions": ["0.1.0-draft.1"],
96
+ "protocolVersions": ["0.1.0-draft.2"],
97
97
  "ports": [
98
98
  {
99
99
  "id": "studio.port/artifact",
@@ -5,7 +5,7 @@
5
5
  "contractVersion": "0.1-draft",
6
6
  "kind": "host-capabilities",
7
7
  "host": {
8
- "id": "org.kumwe/cms",
8
+ "id": "org.kumwe/app",
9
9
  "version": "3.0.0-alpha.1",
10
10
  "generation": "runtime-generation-42"
11
11
  },
@@ -0,0 +1,52 @@
1
+ {
2
+ "schema": "host-sequence-vector.schema.json",
3
+ "description": "A pending invocation cannot declare a settled outcome before an explicit settle step.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-sequence-vector",
7
+ "id": "vector.host-sequence.invalid.pending-expectation",
8
+ "description": "Invalid pending sequence step.",
9
+ "profile": "studio.profile/host-baseline-v2",
10
+ "assertions": ["in-flight-preview-cancellation"],
11
+ "idempotencyPolicy": {
12
+ "scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
13
+ "argumentCanonicalization": "canonical-json",
14
+ "intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
15
+ "absentOptionalFields": "omit",
16
+ "numberNormalization": "canonical-json",
17
+ "excludedContextFields": ["requestId", "traceContext"]
18
+ },
19
+ "given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
20
+ "steps": [
21
+ {
22
+ "action": "invoke",
23
+ "id": "render-pending",
24
+ "port": "preview",
25
+ "operation": "render",
26
+ "context": {
27
+ "operationId": "studio.operation/preview.render",
28
+ "protocolVersion": "0.1.0-draft.2",
29
+ "requestId": "requests/preview-render",
30
+ "resourceContextKey": "contexts/vector",
31
+ "sessionGeneration": "session-r1"
32
+ },
33
+ "argument": {
34
+ "artifactId": "vector.blueprint",
35
+ "draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
36
+ "draftRevision": "vector-blueprint-r1",
37
+ "requestId": "renders/pending-invalid-1",
38
+ "viewport": "desktop"
39
+ },
40
+ "completion": "pending",
41
+ "expect": { "outcome": "result", "value": "rendered" }
42
+ },
43
+ {
44
+ "action": "settle",
45
+ "id": "render-settled",
46
+ "invocation": "render-pending",
47
+ "expect": { "outcome": "error", "category": "cancelled", "retryable": false }
48
+ }
49
+ ],
50
+ "expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
51
+ }
52
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "schema": "host-sequence-vector.schema.json",
3
+ "description": "A preview render invocation must carry the complete draft.2 render identity, including its session-unique request identifier.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "host-sequence-vector",
7
+ "id": "vector.host-sequence.invalid.preview-render-missing-request-id",
8
+ "description": "Invalid preview render identity.",
9
+ "profile": "studio.profile/host-baseline-v2",
10
+ "assertions": ["cross-context-cancellation-isolation"],
11
+ "idempotencyPolicy": {
12
+ "scopeFields": ["idempotencyKey", "operationId", "resourceContextKey", "sessionGeneration"],
13
+ "argumentCanonicalization": "canonical-json",
14
+ "intentContextFields": ["expectedRevision", "locale", "protocolVersion"],
15
+ "absentOptionalFields": "omit",
16
+ "numberNormalization": "canonical-json",
17
+ "excludedContextFields": ["requestId", "traceContext"]
18
+ },
19
+ "given": { "artifacts": [], "permissions": [], "sessionGeneration": "session-r1" },
20
+ "steps": [
21
+ {
22
+ "action": "invoke",
23
+ "id": "render-missing-request-id",
24
+ "port": "preview",
25
+ "operation": "render",
26
+ "context": {
27
+ "operationId": "studio.operation/preview.render",
28
+ "protocolVersion": "0.1.0-draft.2",
29
+ "requestId": "requests/preview-render",
30
+ "resourceContextKey": "contexts/vector",
31
+ "sessionGeneration": "session-r1"
32
+ },
33
+ "argument": {
34
+ "artifactId": "vector.blueprint",
35
+ "draftDigest": "b03cc45a784d7cd4d2836e24694d42f9c8e2ee3dde3ceca79b0a147436db47c6",
36
+ "draftRevision": "vector-blueprint-r1",
37
+ "viewport": "desktop"
38
+ },
39
+ "completion": "pending"
40
+ },
41
+ {
42
+ "action": "settle",
43
+ "id": "render-settled",
44
+ "invocation": "render-missing-request-id",
45
+ "expect": { "outcome": "error", "category": "invalid-request", "retryable": false }
46
+ }
47
+ ],
48
+ "expectFinal": { "pendingPreviewRenders": 0, "previewDeliveries": [] }
49
+ }
50
+ }
@@ -10,7 +10,7 @@
10
10
  "type": "studio.preview/activated",
11
11
  "payload": {
12
12
  "interaction": "hover",
13
- "marker": "node-1"
13
+ "marker": "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
14
14
  }
15
15
  }
16
16
  }
@@ -0,0 +1,24 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "A rendered marker inventory contains each canonical marker exactly once.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/rendered",
11
+ "payload": {
12
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
13
+ "markers": [
14
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0",
15
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
16
+ ],
17
+ "markerMap": {
18
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0": "node-1"
19
+ },
20
+ "requestId": "renders/1",
21
+ "diagnostics": []
22
+ }
23
+ }
24
+ }
@@ -12,6 +12,7 @@
12
12
  "artifactId": "org.example.blueprints/product-card",
13
13
  "draftDigest": "not-a-digest",
14
14
  "draftRevision": "product-card-r5-local-12",
15
+ "requestId": "renders/product-card-14",
15
16
  "viewport": "expanded"
16
17
  }
17
18
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "A preview marker binds one canonical draft digest to a bounded zero-based preorder ordinal.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/rendered",
11
+ "payload": {
12
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
13
+ "markers": ["markers/m1"],
14
+ "markerMap": { "markers/m1": "node-1" },
15
+ "requestId": "renders/1",
16
+ "diagnostics": []
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "A rendered response must carry an exact marker-to-node map for its complete marker inventory.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/rendered",
11
+ "payload": {
12
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
13
+ "markers": [
14
+ "studio.preview/node/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/0"
15
+ ],
16
+ "requestId": "renders/1",
17
+ "diagnostics": []
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "Every render attempt has a session-unique request identifier for exact callback correlation.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "studio.preview/render",
11
+ "payload": {
12
+ "artifactId": "blueprints/example",
13
+ "draftDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
14
+ "draftRevision": "blueprint-r1",
15
+ "viewport": "expanded"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "The draft.2 preview vocabulary is closed; unknown message types require a negotiated protocol revision.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 4,
10
+ "type": "org.example.preview/custom",
11
+ "payload": {}
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "Explicit preview viewport width and height are each bounded to at least 240 CSS pixels.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 3,
10
+ "type": "studio.preview/viewport",
11
+ "payload": { "height": 239 }
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "schema": "preview-message.schema.json",
3
+ "description": "Semantic viewport roles use the safe local-name grammar.",
4
+ "value": {
5
+ "contractVersion": "0.1-draft",
6
+ "kind": "preview-message",
7
+ "channelId": "preview-channel-1",
8
+ "sessionGeneration": "session-r1",
9
+ "sequence": 3,
10
+ "type": "studio.preview/viewport",
11
+ "payload": { "viewport": "constructor" }
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumwe/studio-testkit",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/kumwe/studio.git",
@@ -36,8 +36,8 @@
36
36
  "build": "tsc -b"
37
37
  },
38
38
  "dependencies": {
39
- "@kumwe/studio-core": "0.1.0-alpha.7",
40
- "@kumwe/studio-protocol": "0.1.0-alpha.5"
39
+ "@kumwe/studio-core": "0.1.0-alpha.8",
40
+ "@kumwe/studio-protocol": "0.1.0-alpha.6"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.dependencies",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.load",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.load",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.publish",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "context": {
21
21
  "operationId": "studio.operation/artifact.publish",
22
- "protocolVersion": "0.1.0-draft.1",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.publish",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.save",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "context": {
21
21
  "operationId": "studio.operation/artifact.save",
22
- "protocolVersion": "0.1.0-draft.1",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.save",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.unpublish",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.load",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -18,7 +18,7 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
21
+ "operationId": "studio.operation/artifact.load",
22
22
  "protocolVersion": "9.9.9",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/artifact.load",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r0"
@@ -18,8 +18,8 @@
18
18
  "sessionGeneration": "session-r1"
19
19
  },
20
20
  "context": {
21
- "operationId": "studio.host/operation",
22
- "protocolVersion": "0.1.0-draft.1",
21
+ "operationId": "studio.operation/localization.messages",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "context": {
21
21
  "operationId": "studio.operation/media.abort-upload",
22
- "protocolVersion": "0.1.0-draft.1",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "context": {
21
21
  "operationId": "studio.operation/media.authorize-upload",
22
- "protocolVersion": "0.1.0-draft.1",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "context": {
21
21
  "operationId": "studio.operation/media.authorize-upload",
22
- "protocolVersion": "0.1.0-draft.1",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "context": {
21
21
  "operationId": "studio.operation/media.authorize-upload",
22
- "protocolVersion": "0.1.0-draft.1",
22
+ "protocolVersion": "0.1.0-draft.2",
23
23
  "requestId": "requests/vector-1",
24
24
  "resourceContextKey": "contexts/vector",
25
25
  "sessionGeneration": "session-r1"