@world-engines/scenario-review-snapshot 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,112 @@
1
+ export type JsonPrimitive = string | number | boolean | null;
2
+ export type JsonValue = JsonPrimitive | JsonValue[] | {
3
+ readonly [key: string]: JsonValue;
4
+ };
5
+ export type ReviewRecordKind = "meta" | "node" | "attr" | "edge" | "trigger" | "view";
6
+ export type ReviewSection = "metadata" | "world" | "triggers" | "view_mobile" | "view_pc";
7
+ export interface ScenarioReviewSupplementalRecordInput {
8
+ readonly record_kind: ReviewRecordKind;
9
+ readonly section: ReviewSection;
10
+ readonly record_id: string;
11
+ readonly json_pointer: string;
12
+ readonly payload: JsonValue;
13
+ }
14
+ export interface ScenarioReviewSnapshotInput {
15
+ readonly ticket_id: string;
16
+ readonly scenario_id: string;
17
+ readonly created_at: number;
18
+ readonly canonical_artifact_digest: string;
19
+ readonly metadata: JsonValue;
20
+ readonly nodes: readonly JsonValue[];
21
+ readonly edges: readonly JsonValue[];
22
+ readonly triggers: readonly JsonValue[];
23
+ /** Optional v1 extension: legacy callers may omit it without changing their input contract. */
24
+ readonly supplemental_records?: readonly ScenarioReviewSupplementalRecordInput[];
25
+ readonly view_publish_mobile: string;
26
+ readonly view_publish_pc: string;
27
+ }
28
+ export interface ScenarioReviewRecord {
29
+ readonly record_kind: ReviewRecordKind;
30
+ readonly section: ReviewSection;
31
+ readonly record_id: string;
32
+ readonly json_pointer: string;
33
+ readonly payload: JsonValue;
34
+ readonly canonical_payload_hash: string;
35
+ }
36
+ export type ReviewFragmentValueKind = "json" | "container" | "string_segment";
37
+ export interface ScenarioReviewFragment {
38
+ readonly fragment_id: string;
39
+ readonly record_id: string;
40
+ readonly record_kind: ReviewRecordKind;
41
+ readonly section: ReviewSection;
42
+ readonly record_pointer: string;
43
+ readonly value_pointer: string;
44
+ readonly value_kind: ReviewFragmentValueKind;
45
+ readonly payload?: JsonValue;
46
+ readonly container_kind?: "object" | "array";
47
+ readonly string_segment?: string;
48
+ readonly string_offset_bytes?: number;
49
+ readonly string_total_bytes?: number;
50
+ }
51
+ export interface ScenarioReviewChunk {
52
+ readonly chunk_index: number;
53
+ readonly primary_fragment_ids: readonly string[];
54
+ readonly overlap_fragment_ids: readonly string[];
55
+ readonly content: string;
56
+ readonly byte_length: number;
57
+ readonly chunk_hash: string;
58
+ }
59
+ export interface CoverageRecordEntry {
60
+ readonly record_id: string;
61
+ readonly record_kind: ReviewRecordKind;
62
+ readonly section: ReviewSection;
63
+ readonly json_pointer: string;
64
+ readonly record_hash: string;
65
+ readonly fragment_ids: readonly string[];
66
+ readonly primary_chunk_indexes: readonly number[];
67
+ }
68
+ export interface CoverageSectionEntry {
69
+ readonly section: ReviewSection;
70
+ readonly record_count: number;
71
+ readonly fragment_count: number;
72
+ readonly canonical_stream_hash: string;
73
+ readonly first_chunk_index: number | null;
74
+ readonly last_chunk_index: number | null;
75
+ }
76
+ export interface CoverageManifestCore {
77
+ readonly records: readonly CoverageRecordEntry[];
78
+ readonly sections: readonly CoverageSectionEntry[];
79
+ readonly canonical_record_count: number;
80
+ readonly canonical_fragment_count: number;
81
+ readonly primary_coverage_count: number;
82
+ readonly overlap_reference_count: number;
83
+ readonly missing_primary_count: number;
84
+ readonly duplicate_primary_count: number;
85
+ readonly chunk_count: number;
86
+ }
87
+ export interface CoverageManifest extends CoverageManifestCore {
88
+ readonly coverage_hash: string;
89
+ }
90
+ export interface ScenarioReviewSnapshotCore {
91
+ readonly snapshot_schema_version: 1;
92
+ readonly ticket_id: string;
93
+ readonly scenario_id: string;
94
+ readonly created_at: number;
95
+ readonly canonical_artifact_digest: string;
96
+ readonly records: readonly ScenarioReviewRecord[];
97
+ readonly fragments: readonly ScenarioReviewFragment[];
98
+ readonly chunks: readonly ScenarioReviewChunk[];
99
+ readonly coverage: CoverageManifest;
100
+ }
101
+ export interface ScenarioReviewSnapshot extends ScenarioReviewSnapshotCore {
102
+ readonly snapshot_hash: string;
103
+ }
104
+ export interface ScenarioReviewSnapshotLimits {
105
+ readonly max_chunk_bytes: number;
106
+ readonly max_overlap_bytes: number;
107
+ readonly max_snapshot_bytes: number;
108
+ readonly max_records: number;
109
+ readonly max_fragments: number;
110
+ readonly max_chunks: number;
111
+ readonly max_value_depth: number;
112
+ }
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@world-engines/scenario-review-snapshot",
3
+ "private": false,
4
+ "version": "0.0.0",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./server-bound-view-compiler": {
13
+ "types": "./dist/server-bound-view-compiler.d.ts",
14
+ "import": "./dist/server-bound-view-compiler.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "dependencies": {
21
+ "@world-engines/chatplay-vite-plugin": "0.1.2",
22
+ "@world-engines/ladybug-bridge": "0.1.0-alpha.0",
23
+ "@world-engines/scenario-author-source": "0.1.0-alpha.0",
24
+ "@world-engines/tmw": "0.1.0-alpha.0",
25
+ "@world-engines/spatial-authoring": "0.1.0-alpha.0"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "worldengine_source_sha256": "70ac18f83f0649eda09eab09587b3beebb57e33e7bce41671c5d0999dab50889",
31
+ "worldengine_release_metadata_provenance": {
32
+ "schema": "worldengine-release-metadata-v1",
33
+ "base_archive_sha256": "6d5b5ca126ef54413e14e5fee2fedcf387e2b49f85f76961964355b09953f9f4",
34
+ "change": "dependency:@world-engines/chatplay-vite-plugin@0.1.2",
35
+ "source_recompiled": false,
36
+ "source_sha256_retained": "24356e7f59725c442f49d4aa10687282096eda58d02f33b60aac1afc61d795a2"
37
+ },
38
+ "worldengine_source_identity_provenance": {
39
+ "schema": "worldengine-public-namespace-projection/v1",
40
+ "kind": "composite-source-identity; namespace projection; not-full-source-recompile",
41
+ "original_name": "@chat/scenario-review-snapshot",
42
+ "original_archive_sha256": "3f3dd75f6f9c02a8053e14e3d80c63cda5047496e915950bd196c9d15dcdadaf",
43
+ "original_source_sha256": "24356e7f59725c442f49d4aa10687282096eda58d02f33b60aac1afc61d795a2",
44
+ "projected_name": "@world-engines/scenario-review-snapshot",
45
+ "package_name_mapping": {
46
+ "@chat/blocks-editor": "@world-engines/blocks-editor",
47
+ "@chat/ladybug-bridge": "@world-engines/ladybug-bridge",
48
+ "@chat/monaco-host": "@world-engines/monaco-host",
49
+ "@chat/protocol-ts": "@world-engines/protocol-ts",
50
+ "@chat/scenario-author-source": "@world-engines/scenario-author-source",
51
+ "@chat/scenario-review-snapshot": "@world-engines/scenario-review-snapshot",
52
+ "@chat/tmw": "@world-engines/tmw",
53
+ "@chat/view-exposure": "@world-engines/view-exposure",
54
+ "@world-engines/chatplay-vite-plugin": "@world-engines/chatplay-vite-plugin",
55
+ "@worldengine/agent-kit": "@world-engines/agent-kit",
56
+ "@worldengine/authoring-bridge": "@world-engines/authoring-bridge",
57
+ "@worldengine/authoring-ui": "@world-engines/authoring-ui",
58
+ "@worldengine/create-project": "@world-engines/create-project",
59
+ "@worldengine/project-format": "@world-engines/project-format",
60
+ "@worldengine/project-host": "@world-engines/project-host",
61
+ "@worldengine/project-setup": "@world-engines/project-setup",
62
+ "@worldengine/spatial-authoring": "@world-engines/spatial-authoring",
63
+ "@worldengine/view-sdk": "@world-engines/view-sdk"
64
+ }
65
+ }
66
+ }