@escapeaihq/client-core 0.8.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 +48 -4
- 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 +1299 -3
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +683 -95
- 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 +260 -0
- package/dist/graphSchema.d.ts.map +1 -0
- package/dist/graphSchema.js +354 -0
- package/dist/graphSchema.js.map +1 -0
- 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 +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -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/abortUtils.d.ts +16 -0
- package/dist/reactor/abortUtils.d.ts.map +1 -0
- package/dist/reactor/abortUtils.js +26 -0
- package/dist/reactor/abortUtils.js.map +1 -0
- package/dist/reactor/applyScenePrompt.d.ts +75 -0
- package/dist/reactor/applyScenePrompt.d.ts.map +1 -0
- package/dist/reactor/applyScenePrompt.js +60 -0
- package/dist/reactor/applyScenePrompt.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/heliosCommandDispatcher.d.ts.map +1 -1
- package/dist/reactor/heliosCommandDispatcher.js +10 -15
- package/dist/reactor/heliosCommandDispatcher.js.map +1 -1
- package/dist/reactor/index.d.ts +4 -0
- package/dist/reactor/index.d.ts.map +1 -1
- package/dist/reactor/index.js +7 -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/sceneEntry.d.ts +40 -6
- package/dist/reactor/sceneEntry.d.ts.map +1 -1
- package/dist/reactor/sceneEntry.js +63 -24
- package/dist/reactor/sceneEntry.js.map +1 -1
- 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 +42 -2
- package/dist/reactor/seedImageOrchestrator.d.ts.map +1 -1
- package/dist/reactor/seedImageOrchestrator.js +173 -4
- 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/timeFormat.d.ts +10 -0
- package/dist/timeFormat.d.ts.map +1 -1
- package/dist/timeFormat.js +12 -0
- package/dist/timeFormat.js.map +1 -1
- package/dist/toolSchemas.d.ts +370 -0
- package/dist/toolSchemas.d.ts.map +1 -0
- package/dist/toolSchemas.js +182 -0
- package/dist/toolSchemas.js.map +1 -0
- package/dist/vision/VisionPublisher.d.ts +115 -0
- package/dist/vision/VisionPublisher.d.ts.map +1 -0
- package/dist/vision/VisionPublisher.js +475 -0
- package/dist/vision/VisionPublisher.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/credentials.d.ts +22 -0
- package/dist/vision/credentials.d.ts.map +1 -0
- package/dist/vision/credentials.js +34 -0
- package/dist/vision/credentials.js.map +1 -0
- package/dist/vision/index.d.ts +18 -0
- package/dist/vision/index.d.ts.map +1 -0
- package/dist/vision/index.js +13 -0
- package/dist/vision/index.js.map +1 -0
- 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/vision/startVisionPublisher.d.ts +38 -0
- package/dist/vision/startVisionPublisher.d.ts.map +1 -0
- package/dist/vision/startVisionPublisher.js +44 -0
- package/dist/vision/startVisionPublisher.js.map +1 -0
- package/dist/vision/types.d.ts +95 -0
- package/dist/vision/types.d.ts.map +1 -0
- package/dist/vision/types.js +12 -0
- package/dist/vision/types.js.map +1 -0
- package/dist/vision/visionScheduler.d.ts +63 -0
- package/dist/vision/visionScheduler.d.ts.map +1 -0
- package/dist/vision/visionScheduler.js +67 -0
- package/dist/vision/visionScheduler.js.map +1 -0
- package/dist/websocket.d.ts +195 -0
- package/dist/websocket.d.ts.map +1 -1
- package/dist/websocket.js +179 -1
- package/dist/websocket.js.map +1 -1
- package/package.json +11 -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 +104 -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__/chat-auth.test.ts +91 -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 +326 -0
- package/src/__tests__/longLiveCommandDispatcher.test.ts +185 -0
- package/src/__tests__/platformAssistant.test.ts +484 -0
- package/src/__tests__/reactor/applyScenePrompt.test.ts +192 -0
- package/src/__tests__/reactor/heliosCommandDispatcher.test.ts +4 -3
- package/src/__tests__/reactor/sceneEntry.test.ts +134 -10
- package/src/__tests__/reactor/seedImageOrchestrator.test.ts +51 -16
- 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__/timeFormat.test.ts +22 -1
- package/src/__tests__/toolSchemas.test.ts +57 -0
- package/src/__tests__/tools-wrappers.test.ts +272 -0
- package/src/__tests__/videoGraph.test.ts +94 -0
- package/src/__tests__/websocket-vision.test.ts +265 -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 +1890 -162
- 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 +532 -0
- package/src/http.ts +72 -0
- package/src/index.ts +12 -0
- package/src/platformAssistant.ts +347 -0
- package/src/reactor/abortUtils.ts +22 -0
- package/src/reactor/applyScenePrompt.ts +136 -0
- package/src/reactor/chunkDistribution.ts +98 -0
- package/src/reactor/heliosCommandDispatcher.ts +10 -18
- package/src/reactor/index.ts +7 -0
- package/src/reactor/longLiveCommandDispatcher.ts +156 -0
- package/src/reactor/sceneEntry.ts +104 -33
- package/src/reactor/scenesFromEnrichment.ts +11 -76
- package/src/reactor/seedImageOrchestrator.ts +200 -4
- package/src/reactor/storyTimeline.ts +127 -0
- package/src/storyGraph.ts +298 -0
- package/src/timeFormat.ts +13 -0
- package/src/toolSchemas.ts +225 -0
- package/src/vision/VisionPublisher.ts +553 -0
- package/src/vision/VisionSourceController.ts +354 -0
- package/src/vision/__tests__/VisionPublisher.kvs.test.ts +244 -0
- package/src/vision/__tests__/VisionPublisher.test.ts +301 -0
- package/src/vision/__tests__/VisionSourceController.test.ts +719 -0
- package/src/vision/__tests__/startVisionPublisher.test.ts +251 -0
- package/src/vision/__tests__/toVisionRtcCredentials.test.ts +113 -0
- package/src/vision/__tests__/visionScheduler.test.ts +149 -0
- package/src/vision/credentials.ts +39 -0
- package/src/vision/index.ts +44 -0
- package/src/vision/sourceKinds.ts +75 -0
- package/src/vision/startVisionPublisher.ts +64 -0
- package/src/vision/types.ts +101 -0
- package/src/vision/visionScheduler.ts +102 -0
- package/src/websocket.ts +334 -4
|
@@ -13,22 +13,9 @@
|
|
|
13
13
|
* chat session must keep working even if the world stream is
|
|
14
14
|
* unreachable or the entity catalogue doesn't match.
|
|
15
15
|
*/
|
|
16
|
+
import { isAbortError } from './abortUtils.js';
|
|
16
17
|
import { findEntityImageBySeedName } from './entitySearch.js';
|
|
17
18
|
import { loadSeedImageFile, sendSeedFileToReactor, } from './seedImageOrchestrator.js';
|
|
18
|
-
/**
|
|
19
|
-
* Dispatch a single `HeliosCommand` to the live Reactor session.
|
|
20
|
-
* Resolves with no value on both success and failure — the caller
|
|
21
|
-
* just awaits the dispatch and continues to the next command.
|
|
22
|
-
*/
|
|
23
|
-
/** True when `err` is an `AbortError` (or carries that name). Browsers
|
|
24
|
-
* emit `DOMException('AbortError')`; fetch + apiClient already pass
|
|
25
|
-
* this through unchanged. The `code === 'ABORT_ERR'` branch covers
|
|
26
|
-
* custom error classes some libraries use; the `name` check handles
|
|
27
|
-
* every browser DOMException + standard polyfill. */
|
|
28
|
-
function isAbortError(err) {
|
|
29
|
-
return (err instanceof Error &&
|
|
30
|
-
(err.name === 'AbortError' || err.code === 'ABORT_ERR'));
|
|
31
|
-
}
|
|
32
19
|
/**
|
|
33
20
|
* Dispatch a single `HeliosCommand` to the live Reactor session.
|
|
34
21
|
* Resolves with no value on both success and failure — the caller
|
|
@@ -80,13 +67,21 @@ export async function dispatchHeliosCommand(cmd, ctx) {
|
|
|
80
67
|
/**
|
|
81
68
|
* SET_SCENE: knowledge-grounded upsample then a prompt change.
|
|
82
69
|
*
|
|
83
|
-
* Mirrors `InteractiveController.handleSubmit
|
|
70
|
+
* Mirrors `InteractiveController.handleSubmit` and
|
|
71
|
+
* `applyScenePrompt` (the shared helper used by the React controls):
|
|
84
72
|
* - chunk 0 (no frames rendered yet) → `set_prompt`
|
|
85
73
|
* - mid-stream → `schedule_prompt` at `currentChunk + 2`
|
|
86
74
|
*
|
|
87
75
|
* Upsample failure falls back to the raw model-emitted prompt rather
|
|
88
76
|
* than aborting — the model is already doing the Helios prompt-guide
|
|
89
77
|
* shaping; upsample just adds knowledge-graph grounding.
|
|
78
|
+
*
|
|
79
|
+
* Not implemented in terms of `applyScenePrompt` because the chat-tool
|
|
80
|
+
* path has a distinct `hasStarted` guard: when SET_SCENE fires at
|
|
81
|
+
* chunk 0 against an already-running world, we skip the `start`
|
|
82
|
+
* re-emit. `applyScenePrompt`'s UI callers track running via
|
|
83
|
+
* `current_frame > 0` instead, which is authoritative for the
|
|
84
|
+
* operator-driven flow.
|
|
90
85
|
*/
|
|
91
86
|
async function handleSetScene(modelPrompt, ctx) {
|
|
92
87
|
let prompt = modelPrompt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heliosCommandDispatcher.js","sourceRoot":"","sources":["../../src/reactor/heliosCommandDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AA0EjC
|
|
1
|
+
{"version":3,"file":"heliosCommandDispatcher.js","sourceRoot":"","sources":["../../src/reactor/heliosCommandDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,yB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,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IACxE,+DAA+D;IAC/D,mEAAmE;IACnE,kEAAkE;IAClE,UAAU;IACV,GAAG,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC"}
|
package/dist/reactor/index.d.ts
CHANGED
|
@@ -7,11 +7,15 @@ export * from './regenTemplate';
|
|
|
7
7
|
export * from './upsamplePrompt';
|
|
8
8
|
export * from './entityContext';
|
|
9
9
|
export * from './scenesFromEnrichment';
|
|
10
|
+
export * from './storyTimeline';
|
|
10
11
|
export * from './heliosTools';
|
|
11
12
|
export * from './toolPromptAddon';
|
|
12
13
|
export * from './entitySearch';
|
|
13
14
|
export * from './heliosCommandDispatcher';
|
|
15
|
+
export * from './longLiveCommandDispatcher';
|
|
14
16
|
export * from './seedImageOrchestrator';
|
|
15
17
|
export * from './promptAddonRegistry';
|
|
16
18
|
export * from './sceneEntry';
|
|
19
|
+
export * from './applyScenePrompt';
|
|
20
|
+
export * from './abortUtils';
|
|
17
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reactor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reactor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AAIvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
package/dist/reactor/index.js
CHANGED
|
@@ -7,11 +7,18 @@ export * from './regenTemplate.js';
|
|
|
7
7
|
export * from './upsamplePrompt.js';
|
|
8
8
|
export * from './entityContext.js';
|
|
9
9
|
export * from './scenesFromEnrichment.js';
|
|
10
|
+
// R8.1 — story-graph-driven timeline mapper (sibling of scenesFromEnrichment).
|
|
11
|
+
// The shared chunk-distribution helpers in `./chunkDistribution` stay internal
|
|
12
|
+
// (imported by both mappers); they are deliberately NOT re-exported here.
|
|
13
|
+
export * from './storyTimeline.js';
|
|
10
14
|
export * from './heliosTools.js';
|
|
11
15
|
export * from './toolPromptAddon.js';
|
|
12
16
|
export * from './entitySearch.js';
|
|
13
17
|
export * from './heliosCommandDispatcher.js';
|
|
18
|
+
export * from './longLiveCommandDispatcher.js';
|
|
14
19
|
export * from './seedImageOrchestrator.js';
|
|
15
20
|
export * from './promptAddonRegistry.js';
|
|
16
21
|
export * from './sceneEntry.js';
|
|
22
|
+
export * from './applyScenePrompt.js';
|
|
23
|
+
export * from './abortUtils.js';
|
|
17
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reactor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reactor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,+EAA+E;AAC/E,+EAA+E;AAC/E,0EAA0E;AAC1E,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translate parsed LongLive-v2 commands into `reactor.sendCommand` calls.
|
|
3
|
+
*
|
|
4
|
+
* The {@link dispatchHeliosCommand} analogue for the Reactor LongLive-v2
|
|
5
|
+
* world model. SAME Reactor transport (JWT / `main_video` track) as Helios —
|
|
6
|
+
* only the `modelName` string differs on the bridge. The COMMAND VOCABULARY
|
|
7
|
+
* differs: LongLive is text-to-video with a hard `scene_cut` (a
|
|
8
|
+
* memory-purging transition Helios lacks) and NO image conditioning (there is
|
|
9
|
+
* NO `uploadFile` / `set_image` / `swap_seed` equivalent — text-only).
|
|
10
|
+
*
|
|
11
|
+
* Pure framework-agnostic helper: no React imports, no `@reactor-team/js-sdk`
|
|
12
|
+
* dependency. It reuses the structural {@link HeliosReactorBridge}
|
|
13
|
+
* `sendCommand` surface via `Pick` (no rename — additive-only) but takes NO
|
|
14
|
+
* `uploadFile` (LongLive has no image path).
|
|
15
|
+
*
|
|
16
|
+
* Failure policy mirrors the Helios dispatcher: every command is wrapped in a
|
|
17
|
+
* try/catch. A clean abort is silent; any other failure is logged and skipped
|
|
18
|
+
* so the chat session keeps working even when the world stream is unreachable.
|
|
19
|
+
*/
|
|
20
|
+
import type { HeliosReactorBridge } from './heliosCommandDispatcher';
|
|
21
|
+
/**
|
|
22
|
+
* Discriminated union of every LongLive-v2 world-steering action.
|
|
23
|
+
*
|
|
24
|
+
* Wire vocabulary (Reactor `sendCommand`):
|
|
25
|
+
* - `set_shot` — soft transition (also the OPENING shot before `start`).
|
|
26
|
+
* - `scene_cut` — HARD transition: purges memory + resets the per-scene chunk
|
|
27
|
+
* counter (Helios has no equivalent).
|
|
28
|
+
* - `schedule_shot` / `schedule_scene_cut` — schedule at a CUMULATIVE
|
|
29
|
+
* `session_chunk` index (snake_case `at_session_chunk` on the wire).
|
|
30
|
+
* Presumes a STARTED session (the dispatcher only emits `start` from the
|
|
31
|
+
* opening `set_shot`); Step 3's director schedules only after the opening
|
|
32
|
+
* shot, so a schedule before `start` is a caller error, not handled here.
|
|
33
|
+
* - `pause` / `resume` / `reset` — lifecycle.
|
|
34
|
+
* - `set_seed` — deterministic seed.
|
|
35
|
+
*
|
|
36
|
+
* NOTE: there is deliberately NO `swap_seed` variant — LongLive is
|
|
37
|
+
* text-to-video and has no image-conditioning surface.
|
|
38
|
+
*/
|
|
39
|
+
export type LongLiveCommand = {
|
|
40
|
+
type: 'set_shot';
|
|
41
|
+
prompt: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'scene_cut';
|
|
44
|
+
prompt: string;
|
|
45
|
+
} | {
|
|
46
|
+
type: 'schedule_shot';
|
|
47
|
+
prompt: string;
|
|
48
|
+
atSessionChunk: number;
|
|
49
|
+
} | {
|
|
50
|
+
type: 'schedule_scene_cut';
|
|
51
|
+
prompt: string;
|
|
52
|
+
atSessionChunk: number;
|
|
53
|
+
} | {
|
|
54
|
+
type: 'pause';
|
|
55
|
+
} | {
|
|
56
|
+
type: 'resume';
|
|
57
|
+
} | {
|
|
58
|
+
type: 'reset';
|
|
59
|
+
} | {
|
|
60
|
+
type: 'set_seed';
|
|
61
|
+
seed: number;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Inputs the LongLive dispatcher needs beyond the command itself.
|
|
65
|
+
*
|
|
66
|
+
* Reuses the structural {@link HeliosReactorBridge} `sendCommand` slot via
|
|
67
|
+
* `Pick` so client-core takes NO runtime SDK dependency and the same mockable
|
|
68
|
+
* bridge works for both dispatchers. Deliberately NARROWER than
|
|
69
|
+
* `HeliosToolContext`: no `apiClient` (no upsample/entity lookup here), no
|
|
70
|
+
* `uploadFile` (no image path), no `videoId` / `imageId` / `entityContext`
|
|
71
|
+
* (text-to-video, no `swap_seed`).
|
|
72
|
+
*/
|
|
73
|
+
export interface LongLiveToolContext {
|
|
74
|
+
reactor: Pick<HeliosReactorBridge, 'sendCommand'>;
|
|
75
|
+
/** Whether the page has already issued a `start` command in this session.
|
|
76
|
+
* `set_shot` at the opening shot needs to know: if false, fire
|
|
77
|
+
* `set_shot` + `start` (this is the first shot); if true, fire `set_shot`
|
|
78
|
+
* only (re-emitting `start` while running is undocumented Reactor
|
|
79
|
+
* behavior — defensive to skip it). Mirrors the Helios `set_scene`
|
|
80
|
+
* chunk-0 + `hasStarted` guard.
|
|
81
|
+
*
|
|
82
|
+
* CALLER CONTRACT (the dispatcher does NOT mutate `ctx`): the caller MUST
|
|
83
|
+
* set this to `true` after the first `set_shot` dispatches, and clear it to
|
|
84
|
+
* `false` on `reset`. A caller that reuses one context object without
|
|
85
|
+
* updating `hasStarted` will re-fire `start` on every `set_shot`. (Step 3's
|
|
86
|
+
* director tracks this on its session state.) */
|
|
87
|
+
hasStarted?: boolean;
|
|
88
|
+
/** Optional `AbortSignal`: when aborted (before dispatch), the function
|
|
89
|
+
* returns silently without invoking `sendCommand`. Reactor `sendCommand`
|
|
90
|
+
* is NOT itself aborted (the SDK has no signal surface) — but a clean
|
|
91
|
+
* abort thrown from within is routed silently through `isAbortError`. */
|
|
92
|
+
signal?: AbortSignal;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Dispatch a single {@link LongLiveCommand} to the live Reactor session.
|
|
96
|
+
* Resolves with no value on both success and failure — the caller just awaits
|
|
97
|
+
* and continues to the next command (mirrors {@link dispatchHeliosCommand}).
|
|
98
|
+
*
|
|
99
|
+
* When `ctx.signal` is already aborted, returns silently without invoking
|
|
100
|
+
* `sendCommand`. A clean abort thrown mid-dispatch is also silent.
|
|
101
|
+
*/
|
|
102
|
+
export declare function dispatchLongLiveCommand(cmd: LongLiveCommand, ctx: LongLiveToolContext): Promise<void>;
|
|
103
|
+
//# sourceMappingURL=longLiveCommandDispatcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"longLiveCommandDispatcher.d.ts","sourceRoot":"","sources":["../../src/reactor/longLiveCommandDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAC;IAClD;;;;;;;;;;;sDAWkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;8EAG0E;IAC1E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,mBAAmB,GACvB,OAAO,CAAC,IAAI,CAAC,CA6Df"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translate parsed LongLive-v2 commands into `reactor.sendCommand` calls.
|
|
3
|
+
*
|
|
4
|
+
* The {@link dispatchHeliosCommand} analogue for the Reactor LongLive-v2
|
|
5
|
+
* world model. SAME Reactor transport (JWT / `main_video` track) as Helios —
|
|
6
|
+
* only the `modelName` string differs on the bridge. The COMMAND VOCABULARY
|
|
7
|
+
* differs: LongLive is text-to-video with a hard `scene_cut` (a
|
|
8
|
+
* memory-purging transition Helios lacks) and NO image conditioning (there is
|
|
9
|
+
* NO `uploadFile` / `set_image` / `swap_seed` equivalent — text-only).
|
|
10
|
+
*
|
|
11
|
+
* Pure framework-agnostic helper: no React imports, no `@reactor-team/js-sdk`
|
|
12
|
+
* dependency. It reuses the structural {@link HeliosReactorBridge}
|
|
13
|
+
* `sendCommand` surface via `Pick` (no rename — additive-only) but takes NO
|
|
14
|
+
* `uploadFile` (LongLive has no image path).
|
|
15
|
+
*
|
|
16
|
+
* Failure policy mirrors the Helios dispatcher: every command is wrapped in a
|
|
17
|
+
* try/catch. A clean abort is silent; any other failure is logged and skipped
|
|
18
|
+
* so the chat session keeps working even when the world stream is unreachable.
|
|
19
|
+
*/
|
|
20
|
+
import { isAbortError } from './abortUtils.js';
|
|
21
|
+
/**
|
|
22
|
+
* Dispatch a single {@link LongLiveCommand} to the live Reactor session.
|
|
23
|
+
* Resolves with no value on both success and failure — the caller just awaits
|
|
24
|
+
* and continues to the next command (mirrors {@link dispatchHeliosCommand}).
|
|
25
|
+
*
|
|
26
|
+
* When `ctx.signal` is already aborted, returns silently without invoking
|
|
27
|
+
* `sendCommand`. A clean abort thrown mid-dispatch is also silent.
|
|
28
|
+
*/
|
|
29
|
+
export async function dispatchLongLiveCommand(cmd, ctx) {
|
|
30
|
+
if (ctx.signal?.aborted)
|
|
31
|
+
return;
|
|
32
|
+
try {
|
|
33
|
+
switch (cmd.type) {
|
|
34
|
+
case 'set_shot':
|
|
35
|
+
await ctx.reactor.sendCommand('set_shot', { prompt: cmd.prompt });
|
|
36
|
+
// Opening-shot-then-start: only emit `start` when the page hasn't
|
|
37
|
+
// fired it yet (re-emitting `start` while running is undocumented
|
|
38
|
+
// Reactor behavior). Mirrors the Helios set_scene chunk-0 guard.
|
|
39
|
+
if (!ctx.hasStarted) {
|
|
40
|
+
await ctx.reactor.sendCommand('start', {});
|
|
41
|
+
}
|
|
42
|
+
return;
|
|
43
|
+
case 'scene_cut':
|
|
44
|
+
await ctx.reactor.sendCommand('scene_cut', { prompt: cmd.prompt });
|
|
45
|
+
return;
|
|
46
|
+
case 'schedule_shot':
|
|
47
|
+
await ctx.reactor.sendCommand('schedule_shot', {
|
|
48
|
+
prompt: cmd.prompt,
|
|
49
|
+
at_session_chunk: cmd.atSessionChunk,
|
|
50
|
+
});
|
|
51
|
+
return;
|
|
52
|
+
case 'schedule_scene_cut':
|
|
53
|
+
await ctx.reactor.sendCommand('schedule_scene_cut', {
|
|
54
|
+
prompt: cmd.prompt,
|
|
55
|
+
at_session_chunk: cmd.atSessionChunk,
|
|
56
|
+
});
|
|
57
|
+
return;
|
|
58
|
+
case 'pause':
|
|
59
|
+
await ctx.reactor.sendCommand('pause', {});
|
|
60
|
+
return;
|
|
61
|
+
case 'resume':
|
|
62
|
+
await ctx.reactor.sendCommand('resume', {});
|
|
63
|
+
return;
|
|
64
|
+
case 'reset':
|
|
65
|
+
await ctx.reactor.sendCommand('reset', {});
|
|
66
|
+
return;
|
|
67
|
+
case 'set_seed':
|
|
68
|
+
await ctx.reactor.sendCommand('set_seed', { seed: cmd.seed });
|
|
69
|
+
return;
|
|
70
|
+
default: {
|
|
71
|
+
// Exhaustiveness check — TS complains at compile time if a new
|
|
72
|
+
// LongLiveCommand variant is added without updating this switch. The
|
|
73
|
+
// runtime branch is unreachable but keeps the narrowing honest.
|
|
74
|
+
const _exhaustive = cmd;
|
|
75
|
+
console.warn('[longLiveCommandDispatcher] unknown command type', _exhaustive);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (err) {
|
|
81
|
+
// Abort is a clean signal — silent and stop here.
|
|
82
|
+
if (isAbortError(err))
|
|
83
|
+
return;
|
|
84
|
+
console.warn('[longLiveCommandDispatcher] command failed; skipping', cmd, err);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=longLiveCommandDispatcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"longLiveCommandDispatcher.js","sourceRoot":"","sources":["../../src/reactor/longLiveCommandDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA+D5C;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,GAAoB,EACpB,GAAwB;IAExB,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO;QAAE,OAAO;IAChC,IAAI,CAAC;QACH,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;YACjB,KAAK,UAAU;gBACb,MAAM,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,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AE,CAAC,CAAC;gBAC9D,OAAO;YACT,OAAO,CAAC,CAAC,CAAC;gBACR,+DAA+D;gBAC/D,qEAAqE;gBACrE,gEAAgE;gBAChE,MAAM,WAAW,GAAU,GAAG,CAAC;gBAC/B,OAAO,CAAC,IAAI,CACV,kDAAkD,EAClD,WAAW,CACZ,CAAC;gBACF,OAAO;YACT,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,kDAAkD;QAClD,IAAI,YAAY,CAAC,GAAG,CAAC;YAAE,OAAO;QAC9B,OAAO,CAAC,IAAI,CACV,sDAAsD,EACtD,GAAG,EACH,GAAG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -16,21 +16,38 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import type { ApiClient, EnrichmentRecord, PersonaConfig } from '../api';
|
|
18
18
|
import { type SeedImageReactorBridge } from './seedImageOrchestrator';
|
|
19
|
+
import type { EntityContext, PersonaContext } from './types';
|
|
19
20
|
export interface SceneEntryInput {
|
|
20
21
|
/** The Seer video the user is watching. */
|
|
21
22
|
videoId: string;
|
|
22
23
|
/** Playhead position at the moment Step Into Scene was clicked. */
|
|
23
24
|
timestamp: number;
|
|
24
|
-
/** Caption for the bracketing shot, if enrichment is loaded.
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
/** Caption for the bracketing shot, if enrichment is loaded. Only
|
|
26
|
+
* used when `includeCaption: true` — the default image-first path
|
|
27
|
+
* ignores it because Helios already sees the seed frame via
|
|
28
|
+
* `set_image`. */
|
|
28
29
|
shotCaption?: string | null;
|
|
30
|
+
/** When `true`, the upsampler runs with `shotCaption` (or a fallback)
|
|
31
|
+
* as the input prompt and the resulting Helios paragraph is sent as
|
|
32
|
+
* `set_prompt`. Defaults to `false`, in which case the upsample step
|
|
33
|
+
* is bypassed entirely and `IMAGE_FIRST_DIRECTIVE` is sent as
|
|
34
|
+
* `set_prompt` instead — instructing Helios to continue the seed
|
|
35
|
+
* image faithfully with only natural motion. Ignored when
|
|
36
|
+
* `customPrompt` is also provided. */
|
|
37
|
+
includeCaption?: boolean;
|
|
38
|
+
/** Operator-authored prompt that overrides BOTH the IMAGE_FIRST_DIRECTIVE
|
|
39
|
+
* default and the caption-upsample path. When provided, this string is
|
|
40
|
+
* sent verbatim as the initial `set_prompt`. Enables the watch-page
|
|
41
|
+
* prompt-editor surface where the user previews and tweaks the prompt
|
|
42
|
+
* before stepping into a scene. Trim externally — empty / whitespace-only
|
|
43
|
+
* strings fall back to the includeCaption-driven defaults. */
|
|
44
|
+
customPrompt?: string | null;
|
|
29
45
|
/** Most-recent SUCCEEDED Pegasus enrichment for the video, used to
|
|
30
|
-
* derive `sceneContext` inside the entity grounding.
|
|
46
|
+
* derive `sceneContext` inside the entity grounding. Only consulted
|
|
47
|
+
* on the caption-driven path. */
|
|
31
48
|
enrichment: EnrichmentRecord | null;
|
|
32
49
|
/** Active persona on the watch page. `null` means "no persona
|
|
33
|
-
* grounding"
|
|
50
|
+
* grounding". Only consulted on the caption-driven path. */
|
|
34
51
|
persona: PersonaConfig | null;
|
|
35
52
|
apiClient: ApiClient;
|
|
36
53
|
signal?: AbortSignal;
|
|
@@ -47,7 +64,24 @@ export interface SceneEntryPayload {
|
|
|
47
64
|
* (or any consumer) deep-link to `/images/{imageId}` for inspection
|
|
48
65
|
* or wire a "View in gallery" affordance. */
|
|
49
66
|
imageId: string;
|
|
67
|
+
/** Aggregated entity grounding for the extracted frame. Surfaced so
|
|
68
|
+
* in-modal prompt resubmits (via `applyScenePrompt`) ground on the
|
|
69
|
+
* same scene context that the initial upsample used. */
|
|
70
|
+
entityContext: EntityContext;
|
|
71
|
+
/** Persona grounding, when the operator had a persona selected.
|
|
72
|
+
* `null` means "no persona". Mirrors `prepareSceneEntry`'s
|
|
73
|
+
* internal calculation so consumers don't recompute it. */
|
|
74
|
+
personaContext: PersonaContext | null;
|
|
50
75
|
}
|
|
76
|
+
/** Default `set_prompt` for the image-first path. The seed frame is
|
|
77
|
+
* already loaded into Helios via `set_image`, so this prompt only
|
|
78
|
+
* needs to (a) tell the model to continue what it sees and (b)
|
|
79
|
+
* preserve the visual specifics. Written as a Helios-quality dense
|
|
80
|
+
* paragraph (~95 words) so we can send it directly without the
|
|
81
|
+
* upsampler round-trip. Follows the same prompt-guide rules
|
|
82
|
+
* encoded in `upsamplePrompt.ts::BASE_SYSTEM_RULES`: camera framing
|
|
83
|
+
* named explicitly, light by its effect, behavior over emotion. */
|
|
84
|
+
export declare const IMAGE_FIRST_DIRECTIVE: string;
|
|
51
85
|
/**
|
|
52
86
|
* Run the extract + upsample + frame-fetch pipeline. Resolves with a
|
|
53
87
|
* `SceneEntryPayload` ready to feed into `bootstrapSceneInReactor`. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sceneEntry.d.ts","sourceRoot":"","sources":["../../src/reactor/sceneEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAEhB,aAAa,EACd,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"sceneEntry.d.ts","sourceRoot":"","sources":["../../src/reactor/sceneEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAEhB,aAAa,EACd,MAAM,QAAQ,CAAC;AAMhB,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB;;;uBAGmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;2CAMuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;mEAK+D;IAC/D,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;sCAEkC;IAClC,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACpC;iEAC6D;IAC7D,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,8EAA8E;IAC9E,SAAS,EAAE,IAAI,CAAC;IAChB,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB;+BAC2B;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB;;kDAE8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB;;6DAEyD;IACzD,aAAa,EAAE,aAAa,CAAC;IAC7B;;gEAE4D;IAC5D,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC;AAQD;;;;;;;oEAOoE;AACpE,eAAO,MAAM,qBAAqB,QAUO,CAAC;AAQ1C;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,eAAe,GACrB,OAAO,CAAC,iBAAiB,CAAC,CA8E5B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,WAAW,CAAC;CACjB,GACL,OAAO,CAAC,IAAI,CAAC,CAqCf"}
|
|
@@ -14,12 +14,32 @@
|
|
|
14
14
|
* state while the payload is being prepared, *before* the ReactorProvider
|
|
15
15
|
* has connected — the bootstrap call then runs once the SDK reports ready.
|
|
16
16
|
*/
|
|
17
|
+
import { isAbortError } from './abortUtils.js';
|
|
17
18
|
import { aggregateEntityContext, aggregatePersonaContext, } from './entityContext.js';
|
|
18
19
|
import { loadSeedImageFile, sendSeedFileToReactor, } from './seedImageOrchestrator.js';
|
|
19
|
-
/** Fallback shot caption when
|
|
20
|
-
*
|
|
21
|
-
* prompts so the LLM doesn't
|
|
20
|
+
/** Fallback shot caption when `includeCaption: true` is set but
|
|
21
|
+
* enrichment is absent or the playhead is outside any shot. Matches
|
|
22
|
+
* the cadence of the upsample's training prompts so the LLM doesn't
|
|
23
|
+
* reject a one-word input. */
|
|
22
24
|
const FALLBACK_SHOT_CAPTION = 'Step into this moment';
|
|
25
|
+
/** Default `set_prompt` for the image-first path. The seed frame is
|
|
26
|
+
* already loaded into Helios via `set_image`, so this prompt only
|
|
27
|
+
* needs to (a) tell the model to continue what it sees and (b)
|
|
28
|
+
* preserve the visual specifics. Written as a Helios-quality dense
|
|
29
|
+
* paragraph (~95 words) so we can send it directly without the
|
|
30
|
+
* upsampler round-trip. Follows the same prompt-guide rules
|
|
31
|
+
* encoded in `upsamplePrompt.ts::BASE_SYSTEM_RULES`: camera framing
|
|
32
|
+
* named explicitly, light by its effect, behavior over emotion. */
|
|
33
|
+
export const IMAGE_FIRST_DIRECTIVE = 'Static medium shot, matching the seed image exactly. Preserve the ' +
|
|
34
|
+
'subject\'s identity, position, posture, and wardrobe. Preserve the ' +
|
|
35
|
+
'environment, depth, palette, and the way light falls across surfaces — ' +
|
|
36
|
+
'the same shadows, the same highlights, the same atmospheric texture. ' +
|
|
37
|
+
'Hold the original camera framing and lens character; the operator ' +
|
|
38
|
+
'chose this exact moment. Apply only subtle natural motion: gentle ' +
|
|
39
|
+
'breathing, slight weight shifts, ambient air moving fabric or hair, ' +
|
|
40
|
+
'soft eye movement. No new actions, no new objects, no scene cuts, no ' +
|
|
41
|
+
'introduced characters. Let the world settle into the frame the way it ' +
|
|
42
|
+
'was captured and continue from there.';
|
|
23
43
|
/** Sentinel entity name for the `ExtractImageRequest`. The backend
|
|
24
44
|
* endpoint requires this field but uses `timestamp` for the actual
|
|
25
45
|
* frame extraction when both are provided — `entity` survives only as
|
|
@@ -32,7 +52,8 @@ const SCENE_ENTITY_LABEL = 'scene';
|
|
|
32
52
|
* so an unmount mid-pipeline cancels cleanly.
|
|
33
53
|
*/
|
|
34
54
|
export async function prepareSceneEntry(input) {
|
|
35
|
-
const { videoId, timestamp, shotCaption, enrichment, persona, apiClient, signal, } = input;
|
|
55
|
+
const { videoId, timestamp, shotCaption, includeCaption = false, customPrompt, enrichment, persona, apiClient, signal, } = input;
|
|
56
|
+
const customPromptTrimmed = customPrompt?.trim() || null;
|
|
36
57
|
// Step 1 — extract the frame server-side. The endpoint uses ffmpeg
|
|
37
58
|
// against the source video's presigned URL and persists an
|
|
38
59
|
// ImageRecord that shows up in the user's gallery (free bookmark).
|
|
@@ -45,24 +66,32 @@ export async function prepareSceneEntry(input) {
|
|
|
45
66
|
if (!extract.imageId) {
|
|
46
67
|
throw new Error('extract-image did not return an imageId — the ImageRecord write failed and the frame is unreachable from the browser.');
|
|
47
68
|
}
|
|
48
|
-
// Step 2 —
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
// is richer than single-frame visual would be); the blob proxy and
|
|
52
|
-
// upsample are independent so running them serially would add ~1.5s
|
|
53
|
-
// of round-trip latency for no benefit.
|
|
69
|
+
// Step 2 — build entity/persona context (cheap, always run so the
|
|
70
|
+
// returned payload carries them for follow-up prompts via
|
|
71
|
+
// HeliosWorldControls).
|
|
54
72
|
const entityContext = aggregateEntityContext({
|
|
55
73
|
imageRecord: synthesizeImageRecord(videoId, extract),
|
|
56
74
|
enrichment: enrichment ?? undefined,
|
|
57
75
|
});
|
|
58
76
|
const personaContext = persona ? aggregatePersonaContext(persona) : null;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
77
|
+
// Step 3 — fan out the frame-blob fetch alongside the prompt
|
|
78
|
+
// resolution. Three paths, in priority order:
|
|
79
|
+
// 1. customPrompt: operator-authored, sent verbatim. No upsample.
|
|
80
|
+
// 2. includeCaption: legacy caption-upsample (Bedrock round-trip).
|
|
81
|
+
// 3. default image-first: send IMAGE_FIRST_DIRECTIVE verbatim.
|
|
82
|
+
const promptPromise = customPromptTrimmed
|
|
83
|
+
? Promise.resolve(customPromptTrimmed)
|
|
84
|
+
: includeCaption
|
|
85
|
+
? apiClient
|
|
86
|
+
.upsampleReactorPrompt({
|
|
87
|
+
prompt: shotCaption?.trim() || FALLBACK_SHOT_CAPTION,
|
|
88
|
+
entityContext,
|
|
89
|
+
...(personaContext ? { personaContext } : {}),
|
|
90
|
+
}, { signal })
|
|
91
|
+
.then(res => res.upsampledPrompt)
|
|
92
|
+
: Promise.resolve(IMAGE_FIRST_DIRECTIVE);
|
|
93
|
+
const [upsampledPrompt, frameFile] = await Promise.all([
|
|
94
|
+
promptPromise,
|
|
66
95
|
loadSeedImageFile(extract.imageId, apiClient, {
|
|
67
96
|
signal,
|
|
68
97
|
filenameStem: 'scene',
|
|
@@ -70,9 +99,11 @@ export async function prepareSceneEntry(input) {
|
|
|
70
99
|
]);
|
|
71
100
|
return {
|
|
72
101
|
frameFile,
|
|
73
|
-
upsampledPrompt
|
|
102
|
+
upsampledPrompt,
|
|
74
103
|
sourceTimestamp: extract.sourceTimestamp,
|
|
75
104
|
imageId: extract.imageId,
|
|
105
|
+
entityContext,
|
|
106
|
+
personaContext,
|
|
76
107
|
};
|
|
77
108
|
}
|
|
78
109
|
/**
|
|
@@ -103,7 +134,20 @@ export async function bootstrapSceneInReactor(payload, bridge, options = {}) {
|
|
|
103
134
|
try {
|
|
104
135
|
if (options.signal?.aborted)
|
|
105
136
|
return;
|
|
106
|
-
|
|
137
|
+
// Match the docs sample exactly (file-uploads.md:33,
|
|
138
|
+
// image-to-video-player.md:94): uploadFile → set_image →
|
|
139
|
+
// set_prompt → start back-to-back, no wait between commands.
|
|
140
|
+
// Per `scripts/spikes/helios_set_image_spike.py`, Helios emits
|
|
141
|
+
// `image_accepted` AFTER `start` fires (during chunk 0), so any
|
|
142
|
+
// wait between set_image and start deadlocks. Chunk 0 is
|
|
143
|
+
// text-only briefly; chunks 1+ render with the seed.
|
|
144
|
+
// No transition on the first seed of a session — matches the
|
|
145
|
+
// working JS spike (helios_set_image_spike.html) verbatim. The
|
|
146
|
+
// docs (helios-overview.md) say first-call transition is a no-op,
|
|
147
|
+
// and empirically including `'cut'` here correlated with the
|
|
148
|
+
// image never taking effect in the React app even though the
|
|
149
|
+
// spike (no transition) reliably loads the seed.
|
|
150
|
+
await raceWithAbort(sendSeedFileToReactor(payload.frameFile, bridge, {}), options.signal);
|
|
107
151
|
if (options.signal?.aborted)
|
|
108
152
|
return;
|
|
109
153
|
await raceWithAbort(bridge.sendCommand('set_prompt', { prompt: payload.upsampledPrompt }), options.signal);
|
|
@@ -117,11 +161,6 @@ export async function bootstrapSceneInReactor(payload, bridge, options = {}) {
|
|
|
117
161
|
throw err;
|
|
118
162
|
}
|
|
119
163
|
}
|
|
120
|
-
function isAbortError(err) {
|
|
121
|
-
if (err instanceof DOMException && err.name === 'AbortError')
|
|
122
|
-
return true;
|
|
123
|
-
return err instanceof Error && err.name === 'AbortError';
|
|
124
|
-
}
|
|
125
164
|
/**
|
|
126
165
|
* Race a promise against an `AbortSignal`. When the signal fires, the
|
|
127
166
|
* returned promise rejects with `AbortError` even if the underlying
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sceneEntry.js","sourceRoot":"","sources":["../../src/reactor/sceneEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAQH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GAEtB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"sceneEntry.js","sourceRoot":"","sources":["../../src/reactor/sceneEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;A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;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"scenesFromEnrichment.d.ts","sourceRoot":"","sources":["../../src/reactor/scenesFromEnrichment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAS/C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;kEAC8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;qDACiD;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;kEAC8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAyMD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,gBAAgB,EAC5B,IAAI,GAAE,oBAAyB,GAC9B,YAAY,EAAE,CAiDhB"}
|