@ue-shed/protocol 0.1.0-rc.1

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 (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/contracts/asset-audits/v1/texture-preview.schema.json +74 -0
  4. package/contracts/authoring/README.md +25 -0
  5. package/contracts/authoring/v1/apply-request.schema.json +568 -0
  6. package/contracts/authoring/v1/apply-result.schema.json +1165 -0
  7. package/contracts/authoring/v1/save-request.schema.json +53 -0
  8. package/contracts/authoring/v1/save-result.schema.json +77 -0
  9. package/contracts/authoring/v1/table-list.schema.json +48 -0
  10. package/contracts/authoring/v1/table-snapshot.schema.json +497 -0
  11. package/contracts/authoring/v2/table-snapshot.schema.json +950 -0
  12. package/contracts/cameras/review/v1/README.md +39 -0
  13. package/contracts/cameras/review/v1/capture-request.schema.json +92 -0
  14. package/contracts/cameras/review/v1/capture-response.schema.json +158 -0
  15. package/contracts/cameras/review/v1/fixtures/capture-failure.json +13 -0
  16. package/contracts/cameras/review/v1/fixtures/capture-legacy.json +17 -0
  17. package/contracts/cameras/review/v1/fixtures/capture-projected.json +33 -0
  18. package/contracts/cameras/review/v1/fixtures/capture-request-valid.json +21 -0
  19. package/contracts/cameras/review/v1/fixtures/capture-unprojectable.json +22 -0
  20. package/contracts/cameras/review/v1/fixtures/invalid-capture-request-bad-fov.json +21 -0
  21. package/contracts/cameras/review/v1/fixtures/invalid-capture-response-projected-without-margins.json +27 -0
  22. package/contracts/cameras/review/v1/fixtures/invalid-selection-unknown-code.json +11 -0
  23. package/contracts/cameras/review/v1/fixtures/selection-selected.json +15 -0
  24. package/contracts/cameras/review/v1/fixtures/selection-subject-not-found.json +11 -0
  25. package/contracts/cameras/review/v1/selection-response.schema.json +103 -0
  26. package/contracts/cameras/v1/README.md +33 -0
  27. package/contracts/editor-session/v1/README.md +11 -0
  28. package/contracts/editor-session/v1/command-response.schema.json +44 -0
  29. package/contracts/editor-session/v1/fixtures/command-accepted.json +6 -0
  30. package/contracts/editor-session/v1/fixtures/command-already-satisfied.json +6 -0
  31. package/contracts/editor-session/v1/fixtures/command-rejected.json +9 -0
  32. package/contracts/editor-session/v1/fixtures/state-paused.json +4 -0
  33. package/contracts/editor-session/v1/fixtures/state-running.json +4 -0
  34. package/contracts/editor-session/v1/fixtures/state-starting.json +4 -0
  35. package/contracts/editor-session/v1/fixtures/state-stopped.json +4 -0
  36. package/contracts/editor-session/v1/fixtures/state-stopping.json +4 -0
  37. package/contracts/editor-session/v1/state-response.schema.json +64 -0
  38. package/contracts/observatory/v1/README.md +78 -0
  39. package/contracts/observatory/v1/fixtures/bad-magic-then-valid.bin +0 -0
  40. package/contracts/observatory/v1/fixtures/fragmented-concat.bin +0 -0
  41. package/contracts/observatory/v1/fixtures/heartbeat.bin +0 -0
  42. package/contracts/observatory/v1/fixtures/mismatched-payload-length.bin +0 -0
  43. package/contracts/observatory/v1/fixtures/oversized-record-count.bin +0 -0
  44. package/contracts/observatory/v1/fixtures/reset.bin +0 -0
  45. package/contracts/observatory/v1/fixtures/truncated.bin +0 -0
  46. package/contracts/observatory/v1/fixtures/two-records.bin +0 -0
  47. package/contracts/observatory/v1/fixtures/unsupported-version.bin +0 -0
  48. package/dist/authoring-review.d.ts +679 -0
  49. package/dist/authoring-review.d.ts.map +1 -0
  50. package/dist/authoring-review.js +90 -0
  51. package/dist/authoring-review.js.map +1 -0
  52. package/dist/authoring.d.ts +889 -0
  53. package/dist/authoring.d.ts.map +1 -0
  54. package/dist/authoring.js +350 -0
  55. package/dist/authoring.js.map +1 -0
  56. package/dist/cameras.d.ts +184 -0
  57. package/dist/cameras.d.ts.map +1 -0
  58. package/dist/cameras.js +72 -0
  59. package/dist/cameras.js.map +1 -0
  60. package/dist/companion.d.ts +33 -0
  61. package/dist/companion.d.ts.map +1 -0
  62. package/dist/companion.js +18 -0
  63. package/dist/companion.js.map +1 -0
  64. package/dist/editor-play-session.d.ts +278 -0
  65. package/dist/editor-play-session.d.ts.map +1 -0
  66. package/dist/editor-play-session.js +56 -0
  67. package/dist/editor-play-session.js.map +1 -0
  68. package/dist/index.d.ts +146 -0
  69. package/dist/index.d.ts.map +1 -0
  70. package/dist/index.js +106 -0
  71. package/dist/index.js.map +1 -0
  72. package/package.json +45 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 UE Shed contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # `@ue-shed/protocol`
2
+
3
+ Runtime schemas, branded identifiers, compatibility values, and versioned wire contracts shared by
4
+ UE Shed clients and Unreal companion plugins.
5
+
6
+ ```sh
7
+ npm install @ue-shed/protocol@0.1.0-rc.1 effect@4.0.0-beta.98
8
+ ```
9
+
10
+ The package supports Node.js 22.14 or newer and exposes one stable JavaScript entry point:
11
+
12
+ ```ts
13
+ import {
14
+ CURRENT_PROTOCOL_VERSION,
15
+ CapabilityManifest,
16
+ decodeCapabilityManifest
17
+ } from "@ue-shed/protocol";
18
+ ```
19
+
20
+ The root entry point includes the core capability and connection schemas plus the authoring, camera,
21
+ companion, and editor play-session contracts. Internal source modules are not public subpaths.
22
+
23
+ The `contracts/` directory in the package contains the language-neutral JSON Schema authorities and
24
+ conformance fixtures. These files are shipped for protocol implementors, but JavaScript consumers
25
+ should use the runtime schemas exported from the package root.
26
+
27
+ The current core protocol version is `0.1`. Individual domain contracts carry their own versions;
28
+ consumers must validate untrusted wire input instead of casting it to an exported TypeScript type.
29
+
30
+ This package does not connect to Unreal Engine, launch processes, or depend on the UE Shed Workbench.
31
+
32
+ ## License
33
+
34
+ MIT. Unreal Engine is a trademark of Epic Games, Inc. This project is not affiliated with or
35
+ endorsed by Epic Games.
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://ue-shed.dev/contracts/asset-audits/v1/texture-preview.schema.json",
4
+ "title": "UE Shed texture preview result",
5
+ "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "required": [
9
+ "contract",
10
+ "status",
11
+ "authority",
12
+ "objectPath",
13
+ "mimeType",
14
+ "width",
15
+ "height",
16
+ "dataBase64"
17
+ ],
18
+ "properties": {
19
+ "contract": { "$ref": "#/$defs/contract" },
20
+ "status": { "const": "available" },
21
+ "authority": { "const": "live_editor" },
22
+ "objectPath": { "type": "string", "minLength": 1 },
23
+ "mimeType": { "const": "image/png" },
24
+ "width": { "type": "integer", "minimum": 1, "maximum": 512 },
25
+ "height": { "type": "integer", "minimum": 1, "maximum": 512 },
26
+ "dataBase64": { "type": "string", "maxLength": 5592408 }
27
+ },
28
+ "additionalProperties": false
29
+ },
30
+ {
31
+ "type": "object",
32
+ "required": ["contract", "status", "objectPath", "reason", "message", "retrySafe"],
33
+ "properties": {
34
+ "contract": { "$ref": "#/$defs/contract" },
35
+ "status": { "const": "unavailable" },
36
+ "objectPath": { "type": "string" },
37
+ "reason": {
38
+ "enum": [
39
+ "invalid_request",
40
+ "texture_not_found",
41
+ "source_unavailable",
42
+ "source_too_large",
43
+ "decode_failed",
44
+ "encode_failed",
45
+ "preview_too_large",
46
+ "editor_data_unavailable"
47
+ ]
48
+ },
49
+ "message": { "type": "string", "minLength": 1 },
50
+ "retrySafe": { "type": "boolean" }
51
+ },
52
+ "additionalProperties": false
53
+ }
54
+ ],
55
+ "$defs": {
56
+ "contract": {
57
+ "type": "object",
58
+ "required": ["name", "version"],
59
+ "properties": {
60
+ "name": { "const": "texture-preview" },
61
+ "version": {
62
+ "type": "object",
63
+ "required": ["major", "minor"],
64
+ "properties": {
65
+ "major": { "const": 1 },
66
+ "minor": { "const": 0 }
67
+ },
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,25 @@
1
+ # Authoring wire contracts
2
+
3
+ The checked-in JSON Schemas in this directory are the language-neutral authority for authoring wire
4
+ data. TypeScript Effect schemas, the Rust saved-package producer, and the Unreal C++ companion must
5
+ remain conformant with them.
6
+
7
+ `v1` remains the mutation contract used by Apply and Save. `v2/table-snapshot.schema.json` adds field
8
+ schema, producer, package, and fingerprint evidence without changing the mutation envelope. Apply
9
+ results allow either versioned snapshot during migration.
10
+
11
+ Snapshot 2.1 and mutation 1.1 add the normalized `row_reference` value for
12
+ `FDataTableRowHandle`. It carries the table object path and row name explicitly; generic structs
13
+ remain structurally encoded.
14
+
15
+ `v1/table-list.schema.json` is the deliberately narrow live discovery boundary. It lists canonical
16
+ object paths; callers retrieve v2 snapshots for descriptor evidence and isolate per-table failures.
17
+
18
+ Change a wire shape in this order:
19
+
20
+ 1. Edit the authoritative JSON Schema and add or update language-neutral conformance fixtures.
21
+ 2. Update the Effect runtime schema until `pnpm --filter @ue-shed/protocol contract:check` passes.
22
+ 3. Update Rust and C++ producers and run their fixture conformance gates.
23
+ 4. Switch consumers only after both producers pass.
24
+
25
+ Do not generate these files from TypeScript. That would reverse the authority established by ADR 0002.