@escapeaihq/client-core 0.12.0 → 0.42.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.
- package/README.md +31 -6
- package/dist/adapters/capabilities.d.ts +10 -0
- package/dist/adapters/capabilities.d.ts.map +1 -0
- package/dist/adapters/capabilities.js +2 -0
- package/dist/adapters/capabilities.js.map +1 -0
- package/dist/adapters/chatAdapter.d.ts +38 -0
- package/dist/adapters/chatAdapter.d.ts.map +1 -0
- package/dist/adapters/chatAdapter.js +88 -0
- package/dist/adapters/chatAdapter.js.map +1 -0
- package/dist/adapters/directorAdapter.d.ts +62 -0
- package/dist/adapters/directorAdapter.d.ts.map +1 -0
- package/dist/adapters/directorAdapter.js +71 -0
- package/dist/adapters/directorAdapter.js.map +1 -0
- package/dist/adapters/imageAdapter.d.ts +44 -0
- package/dist/adapters/imageAdapter.d.ts.map +1 -0
- package/dist/adapters/imageAdapter.js +73 -0
- package/dist/adapters/imageAdapter.js.map +1 -0
- package/dist/adapters/index.d.ts +47 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +41 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/registry.d.ts +98 -0
- package/dist/adapters/registry.d.ts.map +1 -0
- package/dist/adapters/registry.js +106 -0
- package/dist/adapters/registry.js.map +1 -0
- package/dist/adapters/worldAdapter.d.ts +142 -0
- package/dist/adapters/worldAdapter.d.ts.map +1 -0
- package/dist/adapters/worldAdapter.js +164 -0
- package/dist/adapters/worldAdapter.js.map +1 -0
- package/dist/admin.d.ts +200 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +124 -0
- package/dist/admin.js.map +1 -0
- package/dist/api.d.ts +1185 -3
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +624 -51
- package/dist/api.js.map +1 -1
- package/dist/audio.d.ts +33 -1
- package/dist/audio.d.ts.map +1 -1
- package/dist/audio.js +4 -1
- package/dist/audio.js.map +1 -1
- package/dist/castProjection.d.ts +35 -0
- package/dist/castProjection.d.ts.map +1 -0
- package/dist/castProjection.js +80 -0
- package/dist/castProjection.js.map +1 -0
- package/dist/conversation/binding.d.ts +62 -0
- package/dist/conversation/binding.d.ts.map +1 -0
- package/dist/conversation/binding.js +51 -0
- package/dist/conversation/binding.js.map +1 -0
- package/dist/conversation/controller.d.ts +209 -0
- package/dist/conversation/controller.d.ts.map +1 -0
- package/dist/conversation/controller.js +342 -0
- package/dist/conversation/controller.js.map +1 -0
- package/dist/conversation/effectiveModel.d.ts +62 -0
- package/dist/conversation/effectiveModel.d.ts.map +1 -0
- package/dist/conversation/effectiveModel.js +73 -0
- package/dist/conversation/effectiveModel.js.map +1 -0
- package/dist/conversation/index.d.ts +27 -0
- package/dist/conversation/index.d.ts.map +1 -0
- package/dist/conversation/index.js +27 -0
- package/dist/conversation/index.js.map +1 -0
- package/dist/conversation/participant.d.ts +66 -0
- package/dist/conversation/participant.d.ts.map +1 -0
- package/dist/conversation/participant.js +36 -0
- package/dist/conversation/participant.js.map +1 -0
- package/dist/conversation/presence.d.ts +56 -0
- package/dist/conversation/presence.d.ts.map +1 -0
- package/dist/conversation/presence.js +34 -0
- package/dist/conversation/presence.js.map +1 -0
- package/dist/conversation/presenceBus.d.ts +42 -0
- package/dist/conversation/presenceBus.d.ts.map +1 -0
- package/dist/conversation/presenceBus.js +81 -0
- package/dist/conversation/presenceBus.js.map +1 -0
- package/dist/conversation/presenceRegistry.d.ts +49 -0
- package/dist/conversation/presenceRegistry.d.ts.map +1 -0
- package/dist/conversation/presenceRegistry.js +59 -0
- package/dist/conversation/presenceRegistry.js.map +1 -0
- package/dist/conversation/roster.d.ts +72 -0
- package/dist/conversation/roster.d.ts.map +1 -0
- package/dist/conversation/roster.js +69 -0
- package/dist/conversation/roster.js.map +1 -0
- package/dist/conversation/rosterProjection.d.ts +52 -0
- package/dist/conversation/rosterProjection.d.ts.map +1 -0
- package/dist/conversation/rosterProjection.js +74 -0
- package/dist/conversation/rosterProjection.js.map +1 -0
- package/dist/conversation/router.d.ts +74 -0
- package/dist/conversation/router.d.ts.map +1 -0
- package/dist/conversation/router.js +58 -0
- package/dist/conversation/router.js.map +1 -0
- package/dist/conversation/runtime.d.ts +64 -0
- package/dist/conversation/runtime.d.ts.map +1 -0
- package/dist/conversation/runtime.js +172 -0
- package/dist/conversation/runtime.js.map +1 -0
- package/dist/conversation/types.d.ts +99 -0
- package/dist/conversation/types.d.ts.map +1 -0
- package/dist/conversation/types.js +13 -0
- package/dist/conversation/types.js.map +1 -0
- package/dist/conversation/voice.d.ts +185 -0
- package/dist/conversation/voice.d.ts.map +1 -0
- package/dist/conversation/voice.js +307 -0
- package/dist/conversation/voice.js.map +1 -0
- package/dist/graphSchema.d.ts +201 -13
- package/dist/graphSchema.d.ts.map +1 -1
- package/dist/graphSchema.js +258 -9
- package/dist/graphSchema.js.map +1 -1
- package/dist/http.d.ts +20 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +57 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/platformAssistant.d.ts +155 -0
- package/dist/platformAssistant.d.ts.map +1 -0
- package/dist/platformAssistant.js +256 -0
- package/dist/platformAssistant.js.map +1 -0
- package/dist/reactor/chunkDistribution.d.ts +43 -0
- package/dist/reactor/chunkDistribution.d.ts.map +1 -0
- package/dist/reactor/chunkDistribution.js +85 -0
- package/dist/reactor/chunkDistribution.js.map +1 -0
- package/dist/reactor/index.d.ts +2 -0
- package/dist/reactor/index.d.ts.map +1 -1
- package/dist/reactor/index.js +5 -0
- package/dist/reactor/index.js.map +1 -1
- package/dist/reactor/longLiveCommandDispatcher.d.ts +103 -0
- package/dist/reactor/longLiveCommandDispatcher.d.ts.map +1 -0
- package/dist/reactor/longLiveCommandDispatcher.js +87 -0
- package/dist/reactor/longLiveCommandDispatcher.js.map +1 -0
- package/dist/reactor/scenesFromEnrichment.d.ts.map +1 -1
- package/dist/reactor/scenesFromEnrichment.js +2 -66
- package/dist/reactor/scenesFromEnrichment.js.map +1 -1
- package/dist/reactor/seedImageOrchestrator.d.ts +6 -9
- package/dist/reactor/seedImageOrchestrator.d.ts.map +1 -1
- package/dist/reactor/seedImageOrchestrator.js +12 -13
- package/dist/reactor/seedImageOrchestrator.js.map +1 -1
- package/dist/reactor/storyTimeline.d.ts +44 -0
- package/dist/reactor/storyTimeline.d.ts.map +1 -0
- package/dist/reactor/storyTimeline.js +95 -0
- package/dist/reactor/storyTimeline.js.map +1 -0
- package/dist/storyGraph.d.ts +70 -0
- package/dist/storyGraph.d.ts.map +1 -0
- package/dist/storyGraph.js +178 -0
- package/dist/storyGraph.js.map +1 -0
- package/dist/vision/VisionSourceController.d.ts +127 -0
- package/dist/vision/VisionSourceController.d.ts.map +1 -0
- package/dist/vision/VisionSourceController.js +284 -0
- package/dist/vision/VisionSourceController.js.map +1 -0
- package/dist/vision/index.d.ts +4 -0
- package/dist/vision/index.d.ts.map +1 -1
- package/dist/vision/index.js +2 -0
- package/dist/vision/index.js.map +1 -1
- package/dist/vision/sourceKinds.d.ts +65 -0
- package/dist/vision/sourceKinds.d.ts.map +1 -0
- package/dist/vision/sourceKinds.js +26 -0
- package/dist/vision/sourceKinds.js.map +1 -0
- package/dist/websocket.d.ts +73 -0
- package/dist/websocket.d.ts.map +1 -1
- package/dist/websocket.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/adapters-capabilities.test.ts +46 -0
- package/src/__tests__/adapters-chat.test.ts +172 -0
- package/src/__tests__/adapters-director.test.ts +95 -0
- package/src/__tests__/adapters-image.test.ts +133 -0
- package/src/__tests__/adapters-platform.test.ts +95 -0
- package/src/__tests__/adapters-registry.test.ts +189 -0
- package/src/__tests__/adapters-world.test.ts +296 -0
- package/src/__tests__/admin.test.ts +312 -0
- package/src/__tests__/adventures-party.test.ts +219 -0
- package/src/__tests__/adventures.test.ts +282 -0
- package/src/__tests__/api-pollers.test.ts +4 -0
- package/src/__tests__/api.clip-lookup.test.ts +64 -0
- package/src/__tests__/api.list-images-filters.test.ts +103 -0
- package/src/__tests__/api.test.ts +470 -0
- package/src/__tests__/audio.test.ts +65 -0
- package/src/__tests__/cast.test.ts +95 -0
- package/src/__tests__/castProjection.test.ts +167 -0
- package/src/__tests__/conversation/controller.test.ts +697 -0
- package/src/__tests__/conversation/effectiveModel.test.ts +169 -0
- package/src/__tests__/conversation/headlessRenderer.ts +46 -0
- package/src/__tests__/conversation/presenceBus.test.ts +236 -0
- package/src/__tests__/conversation/presenceRegistry.test.ts +73 -0
- package/src/__tests__/conversation/roster.test.ts +100 -0
- package/src/__tests__/conversation/rosterProjection.test.ts +142 -0
- package/src/__tests__/conversation/router.test.ts +81 -0
- package/src/__tests__/conversation/runtime.test.ts +206 -0
- package/src/__tests__/conversation/voice.test.ts +440 -0
- package/src/__tests__/documents.test.ts +360 -0
- package/src/__tests__/graphSchema.test.ts +218 -9
- package/src/__tests__/longLiveCommandDispatcher.test.ts +185 -0
- package/src/__tests__/platformAssistant.test.ts +484 -0
- package/src/__tests__/reactor/storyTimeline.test.ts +186 -0
- package/src/__tests__/regeneration.test.ts +486 -0
- package/src/__tests__/stories.test.ts +171 -0
- package/src/__tests__/storyGraph.test.ts +134 -0
- package/src/__tests__/tools-wrappers.test.ts +272 -0
- package/src/__tests__/videoGraph.test.ts +94 -0
- package/src/__tests__/websocket.test.ts +213 -0
- package/src/adapters/capabilities.ts +24 -0
- package/src/adapters/chatAdapter.ts +114 -0
- package/src/adapters/directorAdapter.ts +126 -0
- package/src/adapters/imageAdapter.ts +100 -0
- package/src/adapters/index.ts +67 -0
- package/src/adapters/registry.ts +159 -0
- package/src/adapters/worldAdapter.ts +272 -0
- package/src/admin.ts +310 -0
- package/src/api.ts +1731 -116
- package/src/audio.ts +35 -0
- package/src/castProjection.ts +95 -0
- package/src/conversation/binding.ts +81 -0
- package/src/conversation/controller.ts +439 -0
- package/src/conversation/effectiveModel.ts +111 -0
- package/src/conversation/index.ts +27 -0
- package/src/conversation/participant.ts +71 -0
- package/src/conversation/presence.ts +60 -0
- package/src/conversation/presenceBus.ts +109 -0
- package/src/conversation/presenceRegistry.ts +83 -0
- package/src/conversation/roster.ts +111 -0
- package/src/conversation/rosterProjection.ts +98 -0
- package/src/conversation/router.ts +96 -0
- package/src/conversation/runtime.ts +188 -0
- package/src/conversation/types.ts +100 -0
- package/src/conversation/voice.ts +402 -0
- package/src/graphSchema.ts +396 -13
- package/src/http.ts +72 -0
- package/src/index.ts +9 -0
- package/src/platformAssistant.ts +347 -0
- package/src/reactor/chunkDistribution.ts +98 -0
- package/src/reactor/index.ts +5 -0
- package/src/reactor/longLiveCommandDispatcher.ts +156 -0
- package/src/reactor/scenesFromEnrichment.ts +11 -76
- package/src/reactor/seedImageOrchestrator.ts +12 -13
- package/src/reactor/storyTimeline.ts +127 -0
- package/src/storyGraph.ts +298 -0
- package/src/vision/VisionSourceController.ts +354 -0
- package/src/vision/__tests__/VisionSourceController.test.ts +719 -0
- package/src/vision/index.ts +13 -0
- package/src/vision/sourceKinds.ts +75 -0
- package/src/websocket.ts +75 -3
package/src/graphSchema.ts
CHANGED
|
@@ -8,31 +8,96 @@
|
|
|
8
8
|
* against the same vocabulary the backend validates against.
|
|
9
9
|
*
|
|
10
10
|
* Scope discipline (mirrors the backend "no god-module" rule): this file
|
|
11
|
-
* describes the **graph schema only** — node labels, relationship types,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* describes the **graph schema only** — node labels, relationship types, the
|
|
12
|
+
* user-creation whitelists (M7 P3a: {@link userCreatableLabels} /
|
|
13
|
+
* {@link userCreatableEdges} / {@link allowedPairs}), and the two provenance
|
|
14
|
+
* vocabularies. It must NOT grow tool/MCP schemas or request/response DTOs.
|
|
14
15
|
*
|
|
15
16
|
* Keep this in lockstep with the Python module. The Python `NARRATIVE_NODE_LABELS`
|
|
16
|
-
* static extension point (for Story-Engine narrative nodes like `Act`
|
|
17
|
-
*
|
|
18
|
-
* unions in the same change.
|
|
17
|
+
* static extension point (for Story-Engine narrative nodes like `Act` /
|
|
18
|
+
* `Scene` / `PlotBeat` / `CharacterArc`) has no runtime equivalent here — a
|
|
19
|
+
* phase that adds a narrative label widens these unions in the same change.
|
|
20
|
+
* M7 P3a added `Scene` / `PlotBeat` / `CharacterArc` to the node vocabulary and
|
|
21
|
+
* the six story edges to the relationship vocabulary.
|
|
22
|
+
*
|
|
23
|
+
* Read-surface vs create-surface (mirrors the backend split): the `GRAPH_*`
|
|
24
|
+
* unions/tuples are the READ-SURFACE — the full vocabulary a viewer can
|
|
25
|
+
* encounter (every node label, every edge type on `getVideoGraph` edges). The
|
|
26
|
+
* `userCreatable*` exports are the strict CREATE-SURFACE subset authorized by
|
|
27
|
+
* `POST /graph/{nodes,edges}`. Widening the read-surface is additive — the
|
|
28
|
+
* public exports are pinned by the sibling Vue Web-App and must never shrink.
|
|
19
29
|
*/
|
|
20
30
|
|
|
21
31
|
// ---------------------------------------------------------------------------
|
|
22
32
|
// Node + relationship vocabulary (the graph that exists today)
|
|
23
33
|
// ---------------------------------------------------------------------------
|
|
24
34
|
|
|
25
|
-
/**
|
|
26
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Every node label in the video + story graph. The first five exist in the
|
|
37
|
+
* pipeline-produced video graph; `Scene` / `PlotBeat` / `CharacterArc` are the
|
|
38
|
+
* Story-Engine narrative labels added in M7 Phase 3a (creatable via
|
|
39
|
+
* `POST /graph/nodes` — see {@link userCreatableLabels}).
|
|
40
|
+
*/
|
|
41
|
+
export type GraphNodeLabel =
|
|
42
|
+
| 'Video'
|
|
43
|
+
| 'Shot'
|
|
44
|
+
| 'Entity'
|
|
45
|
+
| 'Event'
|
|
46
|
+
| 'DialogLine'
|
|
47
|
+
// M7 Phase 1b: pipeline-written narrative Act node (read/validate-able +
|
|
48
|
+
// regeneratable; not user-creatable).
|
|
49
|
+
| 'Act'
|
|
50
|
+
| 'Scene'
|
|
51
|
+
| 'PlotBeat'
|
|
52
|
+
| 'CharacterArc'
|
|
53
|
+
// M7 Phase 4: pipeline-written SourceDoc node (document ingestion). Only its
|
|
54
|
+
// `title` is editable; processor-owned provenance fields are immutable.
|
|
55
|
+
| 'SourceDoc'
|
|
56
|
+
// M7 Phase 5: pipeline-only Persona node (persona <-> character binding).
|
|
57
|
+
// Read/validate-able vocabulary only; never user-creatable.
|
|
58
|
+
| 'Persona';
|
|
27
59
|
|
|
28
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* READ-SURFACE: every relationship type a viewer can encounter on edges
|
|
62
|
+
* returned by `getVideoGraph`. This is the full graph vocabulary — the original
|
|
63
|
+
* pipeline edges (`HAS_SHOT` / `MENTIONS` / `HAS_EVENT` / `HAS_DIALOG` /
|
|
64
|
+
* `SPOKEN_BY` / `NEXT`), the M7 narrative-structural edges (`HAS_ACT` /
|
|
65
|
+
* `IN_ACT` / `CONTAINS` / `INCLUDES`), and the six M7 P3a user-creatable story
|
|
66
|
+
* edges (`RELATES_TO` / `CAUSES` / `SET_IN` / `FEATURES` / `ON_ARC` /
|
|
67
|
+
* `LEADS_TO`).
|
|
68
|
+
*
|
|
69
|
+
* This is a SUPERSET of the original pipeline union (additive, no removal — the
|
|
70
|
+
* frozen public contract pinned by the sibling Vue Web-App stays valid).
|
|
71
|
+
*
|
|
72
|
+
* The CREATE-SURFACE is the strict subset {@link userCreatableEdges} (the six
|
|
73
|
+
* story edges only); `POST /graph/edges` rejects everything else (422). Mirror
|
|
74
|
+
* of the backend split: `shared/graph_schema.py` widens the `RelationshipType`
|
|
75
|
+
* read vocabulary while `VALID_RELATIONSHIP_TYPES` / `user_creatable_edges`
|
|
76
|
+
* stay the six.
|
|
77
|
+
*/
|
|
29
78
|
export type GraphRelationshipType =
|
|
30
79
|
| 'HAS_SHOT'
|
|
31
80
|
| 'MENTIONS'
|
|
32
81
|
| 'HAS_EVENT'
|
|
33
82
|
| 'HAS_DIALOG'
|
|
34
83
|
| 'SPOKEN_BY'
|
|
35
|
-
| 'NEXT'
|
|
84
|
+
| 'NEXT'
|
|
85
|
+
| 'HAS_ACT'
|
|
86
|
+
| 'IN_ACT'
|
|
87
|
+
| 'CONTAINS'
|
|
88
|
+
| 'INCLUDES'
|
|
89
|
+
| 'RELATES_TO'
|
|
90
|
+
| 'CAUSES'
|
|
91
|
+
| 'SET_IN'
|
|
92
|
+
| 'FEATURES'
|
|
93
|
+
| 'ON_ARC'
|
|
94
|
+
| 'LEADS_TO'
|
|
95
|
+
// M7 Phase 4: pipeline-written SourceDoc-[:ANNOTATES]->(Entity|Scene) edge
|
|
96
|
+
// (document ingestion). Read-surface only; NOT in the create-surface subset.
|
|
97
|
+
| 'ANNOTATES'
|
|
98
|
+
// M7 Phase 5: pipeline-only Persona-[:PORTRAYS]->Entity binding edge.
|
|
99
|
+
// Read/validate-able vocabulary only; NOT in the create-surface subset.
|
|
100
|
+
| 'PORTRAYS';
|
|
36
101
|
|
|
37
102
|
/** Runtime tuple of all node labels (mirrors `VALID_NODE_LABELS`). */
|
|
38
103
|
export const GRAPH_NODE_LABELS: readonly GraphNodeLabel[] = [
|
|
@@ -41,9 +106,19 @@ export const GRAPH_NODE_LABELS: readonly GraphNodeLabel[] = [
|
|
|
41
106
|
'Entity',
|
|
42
107
|
'Event',
|
|
43
108
|
'DialogLine',
|
|
109
|
+
'Act',
|
|
110
|
+
'Scene',
|
|
111
|
+
'PlotBeat',
|
|
112
|
+
'CharacterArc',
|
|
113
|
+
'SourceDoc',
|
|
114
|
+
'Persona',
|
|
44
115
|
] as const;
|
|
45
116
|
|
|
46
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Runtime tuple of the READ-SURFACE relationship vocabulary — every edge type a
|
|
119
|
+
* viewer can encounter on `getVideoGraph` edges. SUPERSET of the original
|
|
120
|
+
* pipeline edges (additive). The create-surface subset is {@link userCreatableEdges}.
|
|
121
|
+
*/
|
|
47
122
|
export const GRAPH_RELATIONSHIP_TYPES: readonly GraphRelationshipType[] = [
|
|
48
123
|
'HAS_SHOT',
|
|
49
124
|
'MENTIONS',
|
|
@@ -51,6 +126,22 @@ export const GRAPH_RELATIONSHIP_TYPES: readonly GraphRelationshipType[] = [
|
|
|
51
126
|
'HAS_DIALOG',
|
|
52
127
|
'SPOKEN_BY',
|
|
53
128
|
'NEXT',
|
|
129
|
+
'HAS_ACT',
|
|
130
|
+
'IN_ACT',
|
|
131
|
+
'CONTAINS',
|
|
132
|
+
'INCLUDES',
|
|
133
|
+
'RELATES_TO',
|
|
134
|
+
'CAUSES',
|
|
135
|
+
'SET_IN',
|
|
136
|
+
'FEATURES',
|
|
137
|
+
'ON_ARC',
|
|
138
|
+
'LEADS_TO',
|
|
139
|
+
// M7 Phase 4: pipeline-written SourceDoc-[:ANNOTATES]->(Entity|Scene) edge
|
|
140
|
+
// (read-surface only; NOT in the user-creatable subset).
|
|
141
|
+
'ANNOTATES',
|
|
142
|
+
// M7 Phase 5: pipeline-only Persona-[:PORTRAYS]->Entity edge (read-surface
|
|
143
|
+
// only; NOT in the user-creatable subset).
|
|
144
|
+
'PORTRAYS',
|
|
54
145
|
] as const;
|
|
55
146
|
|
|
56
147
|
/**
|
|
@@ -67,17 +158,134 @@ export const GRAPH_PRIMARY_KEY: Readonly<Record<GraphNodeLabel, string>> = {
|
|
|
67
158
|
Entity: 'entityId',
|
|
68
159
|
Event: 'eventId',
|
|
69
160
|
DialogLine: 'dialogId',
|
|
161
|
+
Act: 'actId',
|
|
162
|
+
Scene: 'sceneId',
|
|
163
|
+
PlotBeat: 'beatId',
|
|
164
|
+
CharacterArc: 'arcId',
|
|
165
|
+
SourceDoc: 'docId',
|
|
166
|
+
Persona: 'personaId',
|
|
167
|
+
} as const;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Story Engine Phase 5 — the node label for graph entities. Single source for
|
|
171
|
+
* the ``'Entity'`` label string so call sites (e.g. the persona↔character
|
|
172
|
+
* binding affordance) don't hardcode it. Mirrors
|
|
173
|
+
* ``shared/neo4j_queries.py:LABEL_ENTITY``.
|
|
174
|
+
*/
|
|
175
|
+
export const GRAPH_ENTITY_LABEL: GraphNodeLabel = 'Entity';
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Story Engine Phase 5 — the ``Entity.type`` property value identifying a
|
|
179
|
+
* character (vs. location / object / organization). Mirrors backend
|
|
180
|
+
* ``shared/models.py:EntityType.CHARACTER``. Used to gate character-only UI
|
|
181
|
+
* without hardcoding the literal at call sites.
|
|
182
|
+
*/
|
|
183
|
+
export const ENTITY_TYPE_CHARACTER = 'character' as const;
|
|
184
|
+
|
|
185
|
+
// ---------------------------------------------------------------------------
|
|
186
|
+
// Studio read-surface vocabulary — the node-label, edge-type, and node-property
|
|
187
|
+
// string constants the pure `storyGraph` projection (and the studio Scene
|
|
188
|
+
// inspector / Cast grid) match against when filtering a `get_video_graph`
|
|
189
|
+
// payload. Lifted into client-core (Platform Restructure R8.1) so the
|
|
190
|
+
// framework-agnostic `storyGraph` projection — now consumed by BOTH Studio
|
|
191
|
+
// (`web/app/components/studio/`) and the Director timeline mapper — has a single
|
|
192
|
+
// source for this vocabulary. The web `graphVocabulary.ts` module re-exports
|
|
193
|
+
// these (keeping its web-only `GRAPH_DETAIL_QUERY_PARAM` URL concern local).
|
|
194
|
+
//
|
|
195
|
+
// These mirror the backend (`shared/neo4j_queries.py`, `shared/graph_schema.py`)
|
|
196
|
+
// and the graph editor. `ACT`/`SHOT`/`CHARACTER_ARC` are read-only at runtime —
|
|
197
|
+
// `Act` is intentionally absent from the {@link GraphNodeLabel} create-surface
|
|
198
|
+
// union but DOES appear at read time, so these are plain string literals (the
|
|
199
|
+
// read-surface is wider than the typed create-surface union).
|
|
200
|
+
// ---------------------------------------------------------------------------
|
|
201
|
+
|
|
202
|
+
/** Node labels the studio read-surface (and `storyGraph`) match. */
|
|
203
|
+
export const STUDIO_NODE_LABELS = {
|
|
204
|
+
/** 'Act' — read-only at runtime; not in the create-surface union. */
|
|
205
|
+
ACT: 'Act',
|
|
206
|
+
SCENE: 'Scene',
|
|
207
|
+
SHOT: 'Shot',
|
|
208
|
+
ENTITY: GRAPH_ENTITY_LABEL,
|
|
209
|
+
CHARACTER_ARC: 'CharacterArc',
|
|
70
210
|
} as const;
|
|
71
211
|
|
|
72
|
-
/**
|
|
212
|
+
/** Edge (relationship) types the studio read-surface (and `storyGraph`) traverse. */
|
|
213
|
+
export const STUDIO_EDGE_TYPES = {
|
|
214
|
+
/** Structural containment: Act→Scene and Scene→Shot. */
|
|
215
|
+
CONTAINS: 'CONTAINS',
|
|
216
|
+
/** Alternate structural containment used by some pipeline writers. */
|
|
217
|
+
INCLUDES: 'INCLUDES',
|
|
218
|
+
/** Scene⇄character feature edge. */
|
|
219
|
+
FEATURES: 'FEATURES',
|
|
220
|
+
/** Scene→location edge (the location an entity is set in). */
|
|
221
|
+
SET_IN: 'SET_IN',
|
|
222
|
+
/** Character→CharacterArc edge. */
|
|
223
|
+
ON_ARC: 'ON_ARC',
|
|
224
|
+
/** Character⇄character relationship edge. */
|
|
225
|
+
RELATES_TO: 'RELATES_TO',
|
|
226
|
+
} as const;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Node `properties` keys as they appear in the `get_video_graph` payload's
|
|
230
|
+
* `properties` map (mirrors the backend MERGE_* SET clauses).
|
|
231
|
+
*/
|
|
232
|
+
export const STUDIO_NODE_PROPERTIES = {
|
|
233
|
+
TITLE: 'title',
|
|
234
|
+
INDEX: 'index',
|
|
235
|
+
SUMMARY: 'summary',
|
|
236
|
+
DESCRIPTION: 'description',
|
|
237
|
+
/** Scene/Shot time bounds (numeric seconds) — MERGE_SCENE / MERGE_SHOT. */
|
|
238
|
+
START_TIME: 'startTime',
|
|
239
|
+
END_TIME: 'endTime',
|
|
240
|
+
/** Act time bounds (numeric seconds) — MERGE_ACT uses t0/t1, not start/endTime. */
|
|
241
|
+
T0: 't0',
|
|
242
|
+
T1: 't1',
|
|
243
|
+
NAME: 'name',
|
|
244
|
+
ENTITY_TYPE: 'type',
|
|
245
|
+
ALIASES: 'aliases',
|
|
246
|
+
ENTITY_ID: 'entityId',
|
|
247
|
+
SCENE_ID: 'sceneId',
|
|
248
|
+
SHOT_ID: 'shotId',
|
|
249
|
+
ARC_ID: 'arcId',
|
|
250
|
+
CAPTION: 'caption',
|
|
251
|
+
} as const;
|
|
252
|
+
|
|
253
|
+
/** The `Entity.type` value identifying a character (single source). */
|
|
254
|
+
export const STUDIO_CHARACTER_TYPE = ENTITY_TYPE_CHARACTER;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* User-editable properties per node label (mirrors `EDITABLE_NODE_PROPERTIES`).
|
|
258
|
+
*
|
|
259
|
+
* RUNTIME SOURCE OF TRUTH: the graph editor's live editable-property /
|
|
260
|
+
* primary-key whitelists now come from the fetched `GET /graph/schema` payload
|
|
261
|
+
* (see {@link fetchGraphSchema} and `web/app/jobs/[videoId]/graph/page.tsx`), so
|
|
262
|
+
* a backend whitelist change auto-propagates with no TS edit. These static
|
|
263
|
+
* `GRAPH_*` constants remain as the COMPILE-TIME typed vocabulary and a
|
|
264
|
+
* back-compat fallback (used while the schema is in flight, and imported by the
|
|
265
|
+
* sibling Vue Web-App). Keep them mirrored with the backend; do not treat them
|
|
266
|
+
* as the runtime authority for the editor.
|
|
267
|
+
*/
|
|
73
268
|
export const GRAPH_EDITABLE_NODE_PROPERTIES: Readonly<
|
|
74
269
|
Record<GraphNodeLabel, readonly string[]>
|
|
75
270
|
> = {
|
|
76
|
-
Video
|
|
271
|
+
// M7 Phase 1b added `themes` to the editable Video narrative props.
|
|
272
|
+
Video: ['fileName', 'episodeTitle', 'themes'],
|
|
77
273
|
Shot: ['caption'],
|
|
78
274
|
Entity: ['name', 'type'],
|
|
79
275
|
Event: ['label', 'category'],
|
|
80
276
|
DialogLine: ['text', 'speaker'],
|
|
277
|
+
// M7 Phase 1b: Act title/summary are creator-editable (the narrative is
|
|
278
|
+
// regeneratable, so only the human-authored fields are exposed).
|
|
279
|
+
Act: ['title', 'summary'],
|
|
280
|
+
Scene: ['title', 'summary'],
|
|
281
|
+
PlotBeat: ['label', 'summary'],
|
|
282
|
+
CharacterArc: ['label', 'summary'],
|
|
283
|
+
// M7 Phase 4: only the human-readable SourceDoc title is editable; the
|
|
284
|
+
// processor-owned provenance (kind/s3Key/contentHash/pageCount) is immutable.
|
|
285
|
+
SourceDoc: ['title'],
|
|
286
|
+
// M7 Phase 5: Persona is pipeline-only (graph_sync writer manages it) and is
|
|
287
|
+
// never editable through the graph editor — so it has no editable props.
|
|
288
|
+
Persona: [],
|
|
81
289
|
} as const;
|
|
82
290
|
|
|
83
291
|
/**
|
|
@@ -89,6 +297,116 @@ export const GRAPH_EDITABLE_RELATIONSHIP_PROPERTIES: readonly string[] = [
|
|
|
89
297
|
'confidence',
|
|
90
298
|
] as const;
|
|
91
299
|
|
|
300
|
+
// ---------------------------------------------------------------------------
|
|
301
|
+
// User-creatable vocabulary — M7 Phase 3a (POST /graph/nodes + /graph/edges)
|
|
302
|
+
// ---------------------------------------------------------------------------
|
|
303
|
+
//
|
|
304
|
+
// COMPILE-TIME MIRROR of the backend `shared/graph_schema.py` creation
|
|
305
|
+
// whitelists: `user_creatable_labels`, `user_creatable_edges`, and
|
|
306
|
+
// `_VALID_EDGE_PAIRS`. Unlike the editable-property whitelist (which the
|
|
307
|
+
// frontend reads live from `GET /graph/schema` — see {@link fetchGraphSchema}),
|
|
308
|
+
// the `GET /graph/schema` payload does NOT yet serialize these creation sets
|
|
309
|
+
// (`GraphSchemaResponse` carries only `labels`/`edges`). So — exactly as the
|
|
310
|
+
// `GRAPH_*` constants above mirror the read whitelists — these are authored
|
|
311
|
+
// here as the compile-time mirror for the Phase-3b creation UI. Keep them in
|
|
312
|
+
// lockstep with the Python source; if a later phase extends the wire payload
|
|
313
|
+
// with creation sets, switch the UI to the fetched copy and demote these to a
|
|
314
|
+
// fallback (same pattern as the editable-property migration).
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Node labels a creator may instantiate via `POST /graph/nodes`
|
|
318
|
+
* (mirrors `user_creatable_labels`). `Act` is pipeline-only (creators edit but
|
|
319
|
+
* do not create it); `Video`/`Shot`/`Entity`/`Event`/`DialogLine` are never
|
|
320
|
+
* user-creatable.
|
|
321
|
+
*/
|
|
322
|
+
export const userCreatableLabels: readonly GraphNodeLabel[] = [
|
|
323
|
+
'Scene',
|
|
324
|
+
'PlotBeat',
|
|
325
|
+
'CharacterArc',
|
|
326
|
+
] as const;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* CREATE-SURFACE relationship type — the strict subset of
|
|
330
|
+
* {@link GraphRelationshipType} a creator may instantiate via
|
|
331
|
+
* `POST /graph/edges`. Mirrors the backend `VALID_RELATIONSHIP_TYPES` /
|
|
332
|
+
* `user_creatable_edges`. The read-only pipeline / narrative-structural edges
|
|
333
|
+
* (`MENTIONS` / `HAS_*` / `CONTAINS` / `INCLUDES`, etc.) are part of the
|
|
334
|
+
* read-surface but NOT this create-surface.
|
|
335
|
+
*/
|
|
336
|
+
export type UserCreatableEdge =
|
|
337
|
+
| 'RELATES_TO'
|
|
338
|
+
| 'CAUSES'
|
|
339
|
+
| 'SET_IN'
|
|
340
|
+
| 'FEATURES'
|
|
341
|
+
| 'ON_ARC'
|
|
342
|
+
| 'LEADS_TO';
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* CREATE-SURFACE: relationship types a creator may instantiate via
|
|
346
|
+
* `POST /graph/edges` (mirrors `user_creatable_edges`, identical to the
|
|
347
|
+
* backend's `VALID_RELATIONSHIP_TYPES`). A strict subset of the read-surface
|
|
348
|
+
* {@link GRAPH_RELATIONSHIP_TYPES}: the read-only pipeline / narrative-structural
|
|
349
|
+
* edges (`MENTIONS` / `HAS_*` / `CONTAINS` / `INCLUDES`, etc.) are encounterable
|
|
350
|
+
* on `getVideoGraph` but NOT creatable — the backend 422s them.
|
|
351
|
+
*/
|
|
352
|
+
export const userCreatableEdges: readonly UserCreatableEdge[] = [
|
|
353
|
+
'RELATES_TO',
|
|
354
|
+
'CAUSES',
|
|
355
|
+
'SET_IN',
|
|
356
|
+
'FEATURES',
|
|
357
|
+
'ON_ARC',
|
|
358
|
+
'LEADS_TO',
|
|
359
|
+
] as const;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Allowed `(sourceLabel, targetLabel)` endpoint pairs per user-creatable edge
|
|
363
|
+
* type (mirrors `_VALID_EDGE_PAIRS`). The backend rejects any edge whose
|
|
364
|
+
* endpoint labels are not listed here (422); for `SET_IN` / `FEATURES` the
|
|
365
|
+
* target `Entity.type` (location / character) is validated separately by a
|
|
366
|
+
* server-side read. Keyed by {@link UserCreatableEdge} (the create-surface only,
|
|
367
|
+
* not the full read-surface), valued by readonly `[GraphNodeLabel, GraphNodeLabel]`
|
|
368
|
+
* pairs.
|
|
369
|
+
*/
|
|
370
|
+
export const allowedPairs: Readonly<
|
|
371
|
+
Record<UserCreatableEdge, readonly (readonly [GraphNodeLabel, GraphNodeLabel])[]>
|
|
372
|
+
> = {
|
|
373
|
+
RELATES_TO: [['Entity', 'Entity']],
|
|
374
|
+
CAUSES: [['Event', 'Event']],
|
|
375
|
+
SET_IN: [['Scene', 'Entity']],
|
|
376
|
+
FEATURES: [['Scene', 'Entity']],
|
|
377
|
+
ON_ARC: [['PlotBeat', 'CharacterArc']],
|
|
378
|
+
LEADS_TO: [['PlotBeat', 'PlotBeat']],
|
|
379
|
+
} as const;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Allowed `kind` values for a user-created `RELATES_TO` edge — mirrors the
|
|
383
|
+
* backend single source of truth (`shared/models.py:RelationshipKind`
|
|
384
|
+
* StrEnum: `ally|rival|family|romantic|mentor|custom`). Exposed so the M7 P3b
|
|
385
|
+
* CreateEdgePopover `kind` dropdown does not hand-roll the string list (DRY):
|
|
386
|
+
* the create-surface UI imports this rather than re-declaring it.
|
|
387
|
+
*
|
|
388
|
+
* Additive (M7 P3b): widens the create-surface mirror only; no existing export
|
|
389
|
+
* is removed or renamed, so the frozen public contract (pinned by the sibling
|
|
390
|
+
* Vue Web-App) stays valid.
|
|
391
|
+
*/
|
|
392
|
+
export type RelationshipKindValue =
|
|
393
|
+
| 'ally'
|
|
394
|
+
| 'rival'
|
|
395
|
+
| 'family'
|
|
396
|
+
| 'romantic'
|
|
397
|
+
| 'mentor'
|
|
398
|
+
| 'custom';
|
|
399
|
+
|
|
400
|
+
/** Runtime tuple of {@link RelationshipKindValue} (mirrors `RelationshipKind`). */
|
|
401
|
+
export const RELATIONSHIP_KIND_VALUES: readonly RelationshipKindValue[] = [
|
|
402
|
+
'ally',
|
|
403
|
+
'rival',
|
|
404
|
+
'family',
|
|
405
|
+
'romantic',
|
|
406
|
+
'mentor',
|
|
407
|
+
'custom',
|
|
408
|
+
] as const;
|
|
409
|
+
|
|
92
410
|
// ---------------------------------------------------------------------------
|
|
93
411
|
// Provenance — TWO SEPARATE unions (mirrors shared/provenance.py)
|
|
94
412
|
// ---------------------------------------------------------------------------
|
|
@@ -147,3 +465,68 @@ export function isStoryGraphProvenance(value: string): value is StoryGraphProven
|
|
|
147
465
|
export function isMemoryFactProvenance(value: string): value is MemoryFactProvenance {
|
|
148
466
|
return (MEMORY_FACT_PROVENANCE_VALUES as readonly string[]).includes(value);
|
|
149
467
|
}
|
|
468
|
+
|
|
469
|
+
// ---------------------------------------------------------------------------
|
|
470
|
+
// Live schema fetch — session-scoped memoization
|
|
471
|
+
// ---------------------------------------------------------------------------
|
|
472
|
+
//
|
|
473
|
+
// The static unions/constants above are the COMPILE-TIME vocabulary
|
|
474
|
+
// (PropertyPanel types against them, ../Web-App may import them). The runtime
|
|
475
|
+
// editable-property whitelist that drives the editor UI comes from the LIVE
|
|
476
|
+
// backend payload below, so the frontend never re-declares the whitelist and
|
|
477
|
+
// the #45 drift the PR closes cannot creep back. The static lists stay as
|
|
478
|
+
// types only; the fetched payload is the single runtime source of truth.
|
|
479
|
+
|
|
480
|
+
import type { GraphSchemaResponse } from './api';
|
|
481
|
+
|
|
482
|
+
/** Re-export the wire type so consumers import it from one module. */
|
|
483
|
+
export type { GraphSchemaResponse } from './api';
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Minimal client surface `fetchGraphSchema` depends on. Keeps this module
|
|
487
|
+
* framework-agnostic and decoupled from the concrete `ApiClient` class — any
|
|
488
|
+
* object exposing `getGraphSchema()` works (real client or a test fake).
|
|
489
|
+
*/
|
|
490
|
+
export interface GraphSchemaClient {
|
|
491
|
+
getGraphSchema(): Promise<GraphSchemaResponse>;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Module-scoped memoization slot. Holds the in-flight OR resolved promise so
|
|
496
|
+
* concurrent callers and re-renders share one network round-trip per session.
|
|
497
|
+
* Reset to `null` on rejection so a failed fetch can be retried.
|
|
498
|
+
*/
|
|
499
|
+
let _graphSchemaPromise: Promise<GraphSchemaResponse> | null = null;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Session-scoped memoized fetch of `GET /graph/schema`. The first call kicks
|
|
503
|
+
* off the request; every subsequent call (concurrent or later) awaits the same
|
|
504
|
+
* cached promise — so `client.getGraphSchema()` runs exactly once per session.
|
|
505
|
+
*
|
|
506
|
+
* On rejection the cache is cleared so the next call retries rather than
|
|
507
|
+
* permanently surfacing a stale error (a transient network blip must not brick
|
|
508
|
+
* the editor for the rest of the session).
|
|
509
|
+
*
|
|
510
|
+
* Call `__resetGraphSchemaCache()` in tests (or on logout) to drop the cache.
|
|
511
|
+
*/
|
|
512
|
+
export function fetchGraphSchema(
|
|
513
|
+
client: GraphSchemaClient,
|
|
514
|
+
): Promise<GraphSchemaResponse> {
|
|
515
|
+
if (_graphSchemaPromise === null) {
|
|
516
|
+
_graphSchemaPromise = client.getGraphSchema().catch((err) => {
|
|
517
|
+
// Clear the slot so a subsequent call refetches instead of replaying the
|
|
518
|
+
// rejection forever. Re-throw so the awaiting caller still sees the error.
|
|
519
|
+
_graphSchemaPromise = null;
|
|
520
|
+
throw err;
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
return _graphSchemaPromise;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Test hook: drop the memoized schema promise so the next `fetchGraphSchema`
|
|
528
|
+
* starts fresh. Also usable on logout / session reset.
|
|
529
|
+
*/
|
|
530
|
+
export function __resetGraphSchemaCache(): void {
|
|
531
|
+
_graphSchemaPromise = null;
|
|
532
|
+
}
|
package/src/http.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared JSON fetch helper for the Seer API clients.
|
|
3
|
+
*
|
|
4
|
+
* Single source for the bearer-auth + FastAPI-error-shaping fetch wrapper used
|
|
5
|
+
* by both `ApiClient` (which delegates `makeRequest` here) and the additive
|
|
6
|
+
* `AdminClient`. Kept internal (not re-exported from `index.ts`) so the public
|
|
7
|
+
* package surface is unchanged — it is an implementation detail shared across
|
|
8
|
+
* the client classes, not a new export.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** FastAPI error body: `detail` is a string, or an array of validation errors. */
|
|
12
|
+
interface ApiErrorBody {
|
|
13
|
+
detail?: string | Array<{ msg?: string; loc?: string[] }>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Issue a JSON request, injecting the bearer token and shaping FastAPI errors.
|
|
18
|
+
*
|
|
19
|
+
* - Adds `Authorization: Bearer <token>` when `sessionToken` is set (anonymous
|
|
20
|
+
* otherwise, for land-dark endpoints).
|
|
21
|
+
* - On a non-2xx response, throws an `Error` whose message is the FastAPI
|
|
22
|
+
* `detail` (validation arrays are flattened to `loc: msg; …`).
|
|
23
|
+
* - A `204 No Content` resolves to `undefined`.
|
|
24
|
+
*/
|
|
25
|
+
export async function requestJson<T>(
|
|
26
|
+
baseUrl: string,
|
|
27
|
+
endpoint: string,
|
|
28
|
+
sessionToken: string | undefined,
|
|
29
|
+
options: RequestInit = {},
|
|
30
|
+
): Promise<T> {
|
|
31
|
+
const url = `${baseUrl}${endpoint}`;
|
|
32
|
+
|
|
33
|
+
const headers: Record<string, string> = {
|
|
34
|
+
'Content-Type': 'application/json',
|
|
35
|
+
...(options.headers as Record<string, string>),
|
|
36
|
+
};
|
|
37
|
+
if (sessionToken) {
|
|
38
|
+
headers['Authorization'] = `Bearer ${sessionToken}`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
const response = await fetch(url, { ...options, headers });
|
|
43
|
+
|
|
44
|
+
if (!response.ok) {
|
|
45
|
+
const error: ApiErrorBody = await response.json().catch(() => ({
|
|
46
|
+
detail: `HTTP ${response.status}: ${response.statusText}`,
|
|
47
|
+
}));
|
|
48
|
+
const detail = error.detail;
|
|
49
|
+
let message: string;
|
|
50
|
+
if (Array.isArray(detail)) {
|
|
51
|
+
message = detail
|
|
52
|
+
.map((e) =>
|
|
53
|
+
e.msg ? `${(e.loc || []).slice(-1).join('.')}: ${e.msg}` : String(e),
|
|
54
|
+
)
|
|
55
|
+
.join('; ');
|
|
56
|
+
} else {
|
|
57
|
+
message = detail || `Request failed: ${response.status}`;
|
|
58
|
+
}
|
|
59
|
+
throw new Error(message);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// 204 No Content returns no body.
|
|
63
|
+
if (response.status === 204) {
|
|
64
|
+
return undefined as T;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return (await response.json()) as T;
|
|
68
|
+
} catch (error) {
|
|
69
|
+
console.error('API request failed:', error);
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -26,8 +26,17 @@ export * from './visemeScheduler';
|
|
|
26
26
|
export * from './visemeGeometry';
|
|
27
27
|
export * from './websocket';
|
|
28
28
|
export * from './api';
|
|
29
|
+
export * from './castProjection';
|
|
30
|
+
export * from './admin';
|
|
29
31
|
export * from './reactor';
|
|
30
32
|
export * from './timeFormat';
|
|
31
33
|
export * from './toolSchemas';
|
|
32
34
|
export * from './vision';
|
|
33
35
|
export * from './graphSchema';
|
|
36
|
+
// R8.1 — pure story-graph projections (deriveScenes/deriveCast + SceneView/
|
|
37
|
+
// CharacterView). Grepped src/ for these names first per the collision warning
|
|
38
|
+
// above: no existing export owns them. The web studio module re-exports these.
|
|
39
|
+
export * from './storyGraph';
|
|
40
|
+
export * from './adapters';
|
|
41
|
+
export * from './conversation';
|
|
42
|
+
export * from './platformAssistant';
|