@escapeaihq/client-core 0.52.0 → 0.139.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.
Files changed (782) hide show
  1. package/README.md +445 -153
  2. package/dist/adapters/capabilities.d.ts +20 -3
  3. package/dist/adapters/capabilities.d.ts.map +1 -1
  4. package/dist/adapters/directorAdapter.d.ts +5 -4
  5. package/dist/adapters/directorAdapter.d.ts.map +1 -1
  6. package/dist/adapters/directorAdapter.js +5 -4
  7. package/dist/adapters/directorAdapter.js.map +1 -1
  8. package/dist/adapters/experienceModelCatalog.d.ts +382 -0
  9. package/dist/adapters/experienceModelCatalog.d.ts.map +1 -0
  10. package/dist/adapters/experienceModelCatalog.js +401 -0
  11. package/dist/adapters/experienceModelCatalog.js.map +1 -0
  12. package/dist/adapters/extractionAdapter.d.ts +81 -0
  13. package/dist/adapters/extractionAdapter.d.ts.map +1 -0
  14. package/dist/adapters/extractionAdapter.js +98 -0
  15. package/dist/adapters/extractionAdapter.js.map +1 -0
  16. package/dist/adapters/imageAdapter.d.ts +5 -1
  17. package/dist/adapters/imageAdapter.d.ts.map +1 -1
  18. package/dist/adapters/imageAdapter.js +5 -1
  19. package/dist/adapters/imageAdapter.js.map +1 -1
  20. package/dist/adapters/index.d.ts +54 -16
  21. package/dist/adapters/index.d.ts.map +1 -1
  22. package/dist/adapters/index.js +62 -11
  23. package/dist/adapters/index.js.map +1 -1
  24. package/dist/adapters/momentDirective.d.ts +66 -0
  25. package/dist/adapters/momentDirective.d.ts.map +1 -0
  26. package/dist/adapters/momentDirective.js +78 -0
  27. package/dist/adapters/momentDirective.js.map +1 -0
  28. package/dist/adapters/momentPolicy.d.ts +132 -0
  29. package/dist/adapters/momentPolicy.d.ts.map +1 -0
  30. package/dist/adapters/momentPolicy.js +165 -0
  31. package/dist/adapters/momentPolicy.js.map +1 -0
  32. package/dist/adapters/registry.d.ts +1 -1
  33. package/dist/adapters/registry.d.ts.map +1 -1
  34. package/dist/adapters/videoGenAdapter.d.ts +55 -0
  35. package/dist/adapters/videoGenAdapter.d.ts.map +1 -0
  36. package/dist/adapters/videoGenAdapter.js +78 -0
  37. package/dist/adapters/videoGenAdapter.js.map +1 -0
  38. package/dist/adapters/worldAdapter.d.ts +132 -11
  39. package/dist/adapters/worldAdapter.d.ts.map +1 -1
  40. package/dist/adapters/worldAdapter.js +127 -11
  41. package/dist/adapters/worldAdapter.js.map +1 -1
  42. package/dist/adapters/worldModelPreference.d.ts +173 -0
  43. package/dist/adapters/worldModelPreference.d.ts.map +1 -0
  44. package/dist/adapters/worldModelPreference.js +209 -0
  45. package/dist/adapters/worldModelPreference.js.map +1 -0
  46. package/dist/adapters/worldModelTradeoffs.d.ts +120 -0
  47. package/dist/adapters/worldModelTradeoffs.d.ts.map +1 -0
  48. package/dist/adapters/worldModelTradeoffs.js +154 -0
  49. package/dist/adapters/worldModelTradeoffs.js.map +1 -0
  50. package/dist/admin.d.ts +545 -0
  51. package/dist/admin.d.ts.map +1 -1
  52. package/dist/admin.js +230 -16
  53. package/dist/admin.js.map +1 -1
  54. package/dist/api.d.ts +10295 -2216
  55. package/dist/api.d.ts.map +1 -1
  56. package/dist/api.js +4187 -1240
  57. package/dist/api.js.map +1 -1
  58. package/dist/arcBoardJoin.d.ts +38 -0
  59. package/dist/arcBoardJoin.d.ts.map +1 -0
  60. package/dist/arcBoardJoin.js +37 -0
  61. package/dist/arcBoardJoin.js.map +1 -0
  62. package/dist/arcPreview.d.ts +49 -0
  63. package/dist/arcPreview.d.ts.map +1 -0
  64. package/dist/arcPreview.js +65 -0
  65. package/dist/arcPreview.js.map +1 -0
  66. package/dist/audio.d.ts +259 -16
  67. package/dist/audio.d.ts.map +1 -1
  68. package/dist/audio.js +605 -114
  69. package/dist/audio.js.map +1 -1
  70. package/dist/audioDsp.d.ts +45 -0
  71. package/dist/audioDsp.d.ts.map +1 -0
  72. package/dist/audioDsp.js +108 -0
  73. package/dist/audioDsp.js.map +1 -0
  74. package/dist/audioProtocol.d.ts +160 -0
  75. package/dist/audioProtocol.d.ts.map +1 -1
  76. package/dist/audioProtocol.js +99 -0
  77. package/dist/audioProtocol.js.map +1 -1
  78. package/dist/beatTitles.d.ts +33 -0
  79. package/dist/beatTitles.d.ts.map +1 -0
  80. package/dist/beatTitles.js +39 -0
  81. package/dist/beatTitles.js.map +1 -0
  82. package/dist/castProjection.d.ts +204 -1
  83. package/dist/castProjection.d.ts.map +1 -1
  84. package/dist/castProjection.js +202 -0
  85. package/dist/castProjection.js.map +1 -1
  86. package/dist/characterGrounding.d.ts +369 -0
  87. package/dist/characterGrounding.d.ts.map +1 -0
  88. package/dist/characterGrounding.js +408 -0
  89. package/dist/characterGrounding.js.map +1 -0
  90. package/dist/conversation/binding.d.ts +13 -0
  91. package/dist/conversation/binding.d.ts.map +1 -1
  92. package/dist/conversation/binding.js.map +1 -1
  93. package/dist/conversation/chatSessionStore.d.ts +178 -0
  94. package/dist/conversation/chatSessionStore.d.ts.map +1 -0
  95. package/dist/conversation/chatSessionStore.js +196 -0
  96. package/dist/conversation/chatSessionStore.js.map +1 -0
  97. package/dist/conversation/controller.d.ts +44 -0
  98. package/dist/conversation/controller.d.ts.map +1 -1
  99. package/dist/conversation/controller.js +82 -3
  100. package/dist/conversation/controller.js.map +1 -1
  101. package/dist/conversation/index.d.ts +2 -0
  102. package/dist/conversation/index.d.ts.map +1 -1
  103. package/dist/conversation/index.js +2 -0
  104. package/dist/conversation/index.js.map +1 -1
  105. package/dist/conversation/participant.d.ts +16 -0
  106. package/dist/conversation/participant.d.ts.map +1 -1
  107. package/dist/conversation/readSequencer.d.ts +38 -0
  108. package/dist/conversation/readSequencer.d.ts.map +1 -0
  109. package/dist/conversation/readSequencer.js +42 -0
  110. package/dist/conversation/readSequencer.js.map +1 -0
  111. package/dist/conversation/roster.d.ts +5 -1
  112. package/dist/conversation/roster.d.ts.map +1 -1
  113. package/dist/conversation/roster.js.map +1 -1
  114. package/dist/conversation/rosterProjection.d.ts +74 -1
  115. package/dist/conversation/rosterProjection.d.ts.map +1 -1
  116. package/dist/conversation/rosterProjection.js +135 -1
  117. package/dist/conversation/rosterProjection.js.map +1 -1
  118. package/dist/conversation/runtime.d.ts +20 -3
  119. package/dist/conversation/runtime.d.ts.map +1 -1
  120. package/dist/conversation/runtime.js +66 -7
  121. package/dist/conversation/runtime.js.map +1 -1
  122. package/dist/conversation/types.d.ts +43 -4
  123. package/dist/conversation/types.d.ts.map +1 -1
  124. package/dist/conversation/voice.d.ts +290 -13
  125. package/dist/conversation/voice.d.ts.map +1 -1
  126. package/dist/conversation/voice.js +565 -42
  127. package/dist/conversation/voice.js.map +1 -1
  128. package/dist/creatorCuration.d.ts +134 -0
  129. package/dist/creatorCuration.d.ts.map +1 -0
  130. package/dist/creatorCuration.js +228 -0
  131. package/dist/creatorCuration.js.map +1 -0
  132. package/dist/creatorDashboard.d.ts +155 -0
  133. package/dist/creatorDashboard.d.ts.map +1 -0
  134. package/dist/creatorDashboard.js +237 -0
  135. package/dist/creatorDashboard.js.map +1 -0
  136. package/dist/creatorUniverse.d.ts +95 -0
  137. package/dist/creatorUniverse.d.ts.map +1 -0
  138. package/dist/creatorUniverse.js +136 -0
  139. package/dist/creatorUniverse.js.map +1 -0
  140. package/dist/curationWrite.d.ts +76 -0
  141. package/dist/curationWrite.d.ts.map +1 -0
  142. package/dist/curationWrite.js +106 -0
  143. package/dist/curationWrite.js.map +1 -0
  144. package/dist/designTokens.d.ts +64 -0
  145. package/dist/designTokens.d.ts.map +1 -0
  146. package/dist/designTokens.js +117 -0
  147. package/dist/designTokens.js.map +1 -0
  148. package/dist/dialogAttribution.d.ts +79 -0
  149. package/dist/dialogAttribution.d.ts.map +1 -0
  150. package/dist/dialogAttribution.js +144 -0
  151. package/dist/dialogAttribution.js.map +1 -0
  152. package/dist/dmRunWorldReadiness.d.ts +605 -0
  153. package/dist/dmRunWorldReadiness.d.ts.map +1 -0
  154. package/dist/dmRunWorldReadiness.js +775 -0
  155. package/dist/dmRunWorldReadiness.js.map +1 -0
  156. package/dist/domains/access.d.ts +32 -0
  157. package/dist/domains/access.d.ts.map +1 -0
  158. package/dist/domains/access.js +43 -0
  159. package/dist/domains/access.js.map +1 -0
  160. package/dist/domains/adventureDefinitions.d.ts +159 -0
  161. package/dist/domains/adventureDefinitions.d.ts.map +1 -0
  162. package/dist/domains/adventureDefinitions.js +168 -0
  163. package/dist/domains/adventureDefinitions.js.map +1 -0
  164. package/dist/domains/adventures.d.ts +329 -0
  165. package/dist/domains/adventures.d.ts.map +1 -0
  166. package/dist/domains/adventures.js +359 -0
  167. package/dist/domains/adventures.js.map +1 -0
  168. package/dist/domains/arcs.d.ts +146 -0
  169. package/dist/domains/arcs.d.ts.map +1 -0
  170. package/dist/domains/arcs.js +202 -0
  171. package/dist/domains/arcs.js.map +1 -0
  172. package/dist/domains/artifacts.d.ts +259 -0
  173. package/dist/domains/artifacts.d.ts.map +1 -0
  174. package/dist/domains/artifacts.js +125 -0
  175. package/dist/domains/artifacts.js.map +1 -0
  176. package/dist/domains/chat.d.ts +158 -0
  177. package/dist/domains/chat.d.ts.map +1 -0
  178. package/dist/domains/chat.js +224 -0
  179. package/dist/domains/chat.js.map +1 -0
  180. package/dist/domains/decisions.d.ts +31 -0
  181. package/dist/domains/decisions.d.ts.map +1 -0
  182. package/dist/domains/decisions.js +42 -0
  183. package/dist/domains/decisions.js.map +1 -0
  184. package/dist/domains/documents.d.ts +218 -0
  185. package/dist/domains/documents.d.ts.map +1 -0
  186. package/dist/domains/documents.js +252 -0
  187. package/dist/domains/documents.js.map +1 -0
  188. package/dist/domains/enhancements.d.ts +106 -0
  189. package/dist/domains/enhancements.d.ts.map +1 -0
  190. package/dist/domains/enhancements.js +160 -0
  191. package/dist/domains/enhancements.js.map +1 -0
  192. package/dist/domains/graph.d.ts +454 -0
  193. package/dist/domains/graph.d.ts.map +1 -0
  194. package/dist/domains/graph.js +648 -0
  195. package/dist/domains/graph.js.map +1 -0
  196. package/dist/domains/images.d.ts +220 -0
  197. package/dist/domains/images.d.ts.map +1 -0
  198. package/dist/domains/images.js +307 -0
  199. package/dist/domains/images.js.map +1 -0
  200. package/dist/domains/ingestion.d.ts +312 -0
  201. package/dist/domains/ingestion.d.ts.map +1 -0
  202. package/dist/domains/ingestion.js +495 -0
  203. package/dist/domains/ingestion.js.map +1 -0
  204. package/dist/domains/me.d.ts +21 -0
  205. package/dist/domains/me.d.ts.map +1 -0
  206. package/dist/domains/me.js +23 -0
  207. package/dist/domains/me.js.map +1 -0
  208. package/dist/domains/orgs.d.ts +47 -0
  209. package/dist/domains/orgs.d.ts.map +1 -0
  210. package/dist/domains/orgs.js +75 -0
  211. package/dist/domains/orgs.js.map +1 -0
  212. package/dist/domains/personas.d.ts +138 -0
  213. package/dist/domains/personas.d.ts.map +1 -0
  214. package/dist/domains/personas.js +322 -0
  215. package/dist/domains/personas.js.map +1 -0
  216. package/dist/domains/projects.d.ts +53 -0
  217. package/dist/domains/projects.d.ts.map +1 -0
  218. package/dist/domains/projects.js +94 -0
  219. package/dist/domains/projects.js.map +1 -0
  220. package/dist/domains/quests.d.ts +431 -0
  221. package/dist/domains/quests.d.ts.map +1 -0
  222. package/dist/domains/quests.js +61 -0
  223. package/dist/domains/quests.js.map +1 -0
  224. package/dist/domains/reactor.d.ts +98 -0
  225. package/dist/domains/reactor.d.ts.map +1 -0
  226. package/dist/domains/reactor.js +131 -0
  227. package/dist/domains/reactor.js.map +1 -0
  228. package/dist/domains/showcase.d.ts +28 -0
  229. package/dist/domains/showcase.d.ts.map +1 -0
  230. package/dist/domains/showcase.js +28 -0
  231. package/dist/domains/showcase.js.map +1 -0
  232. package/dist/domains/storyboards.d.ts +1253 -0
  233. package/dist/domains/storyboards.d.ts.map +1 -0
  234. package/dist/domains/storyboards.js +781 -0
  235. package/dist/domains/storyboards.js.map +1 -0
  236. package/dist/domains/studioSettings.d.ts +39 -0
  237. package/dist/domains/studioSettings.d.ts.map +1 -0
  238. package/dist/domains/studioSettings.js +80 -0
  239. package/dist/domains/studioSettings.js.map +1 -0
  240. package/dist/domains/universes.d.ts +191 -0
  241. package/dist/domains/universes.d.ts.map +1 -0
  242. package/dist/domains/universes.js +276 -0
  243. package/dist/domains/universes.js.map +1 -0
  244. package/dist/domains/userDefaults.d.ts +18 -0
  245. package/dist/domains/userDefaults.d.ts.map +1 -0
  246. package/dist/domains/userDefaults.js +27 -0
  247. package/dist/domains/userDefaults.js.map +1 -0
  248. package/dist/domains/visemeBundles.d.ts +262 -0
  249. package/dist/domains/visemeBundles.d.ts.map +1 -0
  250. package/dist/domains/visemeBundles.js +373 -0
  251. package/dist/domains/visemeBundles.js.map +1 -0
  252. package/dist/domains/workflows.d.ts +142 -0
  253. package/dist/domains/workflows.d.ts.map +1 -0
  254. package/dist/domains/workflows.js +245 -0
  255. package/dist/domains/workflows.js.map +1 -0
  256. package/dist/enhancementDiff.d.ts +56 -0
  257. package/dist/enhancementDiff.d.ts.map +1 -0
  258. package/dist/enhancementDiff.js +110 -0
  259. package/dist/enhancementDiff.js.map +1 -0
  260. package/dist/generated/contract.d.ts +372 -0
  261. package/dist/generated/contract.d.ts.map +1 -0
  262. package/dist/generated/contract.js +395 -0
  263. package/dist/generated/contract.js.map +1 -0
  264. package/dist/graphSchema.d.ts +36 -5
  265. package/dist/graphSchema.d.ts.map +1 -1
  266. package/dist/graphSchema.js +88 -2
  267. package/dist/graphSchema.js.map +1 -1
  268. package/dist/http.d.ts +70 -1
  269. package/dist/http.d.ts.map +1 -1
  270. package/dist/http.js +263 -11
  271. package/dist/http.js.map +1 -1
  272. package/dist/identity.d.ts +81 -0
  273. package/dist/identity.d.ts.map +1 -0
  274. package/dist/identity.js +65 -0
  275. package/dist/identity.js.map +1 -0
  276. package/dist/index.d.ts +35 -0
  277. package/dist/index.d.ts.map +1 -1
  278. package/dist/index.js +118 -0
  279. package/dist/index.js.map +1 -1
  280. package/dist/messageContent.d.ts +174 -0
  281. package/dist/messageContent.d.ts.map +1 -0
  282. package/dist/messageContent.js +405 -0
  283. package/dist/messageContent.js.map +1 -0
  284. package/dist/mutationEpoch.d.ts +83 -0
  285. package/dist/mutationEpoch.d.ts.map +1 -0
  286. package/dist/mutationEpoch.js +109 -0
  287. package/dist/mutationEpoch.js.map +1 -0
  288. package/dist/obo.d.ts +144 -0
  289. package/dist/obo.d.ts.map +1 -0
  290. package/dist/obo.js +135 -0
  291. package/dist/obo.js.map +1 -0
  292. package/dist/opusTransport.d.ts +113 -0
  293. package/dist/opusTransport.d.ts.map +1 -0
  294. package/dist/opusTransport.js +170 -0
  295. package/dist/opusTransport.js.map +1 -0
  296. package/dist/pagination.d.ts +18 -0
  297. package/dist/pagination.d.ts.map +1 -0
  298. package/dist/pagination.js +26 -0
  299. package/dist/pagination.js.map +1 -0
  300. package/dist/platformAssistant.d.ts +55 -1
  301. package/dist/platformAssistant.d.ts.map +1 -1
  302. package/dist/platformAssistant.js +39 -1
  303. package/dist/platformAssistant.js.map +1 -1
  304. package/dist/pollUtils.d.ts +19 -0
  305. package/dist/pollUtils.d.ts.map +1 -0
  306. package/dist/pollUtils.js +35 -0
  307. package/dist/pollUtils.js.map +1 -0
  308. package/dist/questLog.d.ts +232 -0
  309. package/dist/questLog.d.ts.map +1 -0
  310. package/dist/questLog.js +522 -0
  311. package/dist/questLog.js.map +1 -0
  312. package/dist/reactor/dmDirectiveToExperience.d.ts +300 -0
  313. package/dist/reactor/dmDirectiveToExperience.d.ts.map +1 -0
  314. package/dist/reactor/dmDirectiveToExperience.js +401 -0
  315. package/dist/reactor/dmDirectiveToExperience.js.map +1 -0
  316. package/dist/reactor/dmSceneControlPrompt.d.ts.map +1 -1
  317. package/dist/reactor/dmSceneControlPrompt.js +64 -2
  318. package/dist/reactor/dmSceneControlPrompt.js.map +1 -1
  319. package/dist/reactor/dmWorldEntry.d.ts +1278 -0
  320. package/dist/reactor/dmWorldEntry.d.ts.map +1 -0
  321. package/dist/reactor/dmWorldEntry.js +1396 -0
  322. package/dist/reactor/dmWorldEntry.js.map +1 -0
  323. package/dist/reactor/framePromptCompaction.d.ts +223 -0
  324. package/dist/reactor/framePromptCompaction.d.ts.map +1 -0
  325. package/dist/reactor/framePromptCompaction.js +393 -0
  326. package/dist/reactor/framePromptCompaction.js.map +1 -0
  327. package/dist/reactor/frameWorldBind.d.ts +86 -0
  328. package/dist/reactor/frameWorldBind.d.ts.map +1 -0
  329. package/dist/reactor/frameWorldBind.js +79 -0
  330. package/dist/reactor/frameWorldBind.js.map +1 -0
  331. package/dist/reactor/happyOysterSeed.d.ts +166 -0
  332. package/dist/reactor/happyOysterSeed.d.ts.map +1 -0
  333. package/dist/reactor/happyOysterSeed.js +233 -0
  334. package/dist/reactor/happyOysterSeed.js.map +1 -0
  335. package/dist/reactor/happyOysterWalk.d.ts +274 -0
  336. package/dist/reactor/happyOysterWalk.d.ts.map +1 -0
  337. package/dist/reactor/happyOysterWalk.js +407 -0
  338. package/dist/reactor/happyOysterWalk.js.map +1 -0
  339. package/dist/reactor/happyOysterWorld.d.ts +718 -0
  340. package/dist/reactor/happyOysterWorld.d.ts.map +1 -0
  341. package/dist/reactor/happyOysterWorld.js +826 -0
  342. package/dist/reactor/happyOysterWorld.js.map +1 -0
  343. package/dist/reactor/heliosCommandDispatcher.d.ts.map +1 -1
  344. package/dist/reactor/heliosCommandDispatcher.js +5 -2
  345. package/dist/reactor/heliosCommandDispatcher.js.map +1 -1
  346. package/dist/reactor/hiddenWorldLifecycle.d.ts +101 -0
  347. package/dist/reactor/hiddenWorldLifecycle.d.ts.map +1 -0
  348. package/dist/reactor/hiddenWorldLifecycle.js +119 -0
  349. package/dist/reactor/hiddenWorldLifecycle.js.map +1 -0
  350. package/dist/reactor/imageCanvas.d.ts +15 -0
  351. package/dist/reactor/imageCanvas.d.ts.map +1 -0
  352. package/dist/reactor/imageCanvas.js +33 -0
  353. package/dist/reactor/imageCanvas.js.map +1 -0
  354. package/dist/reactor/index.d.ts +19 -0
  355. package/dist/reactor/index.d.ts.map +1 -1
  356. package/dist/reactor/index.js +78 -0
  357. package/dist/reactor/index.js.map +1 -1
  358. package/dist/reactor/longLiveCommandDispatcher.d.ts +23 -8
  359. package/dist/reactor/longLiveCommandDispatcher.d.ts.map +1 -1
  360. package/dist/reactor/longLiveCommandDispatcher.js +16 -4
  361. package/dist/reactor/longLiveCommandDispatcher.js.map +1 -1
  362. package/dist/reactor/longLiveSceneEntry.d.ts +203 -0
  363. package/dist/reactor/longLiveSceneEntry.d.ts.map +1 -0
  364. package/dist/reactor/longLiveSceneEntry.js +280 -0
  365. package/dist/reactor/longLiveSceneEntry.js.map +1 -0
  366. package/dist/reactor/momentCut.d.ts +153 -0
  367. package/dist/reactor/momentCut.d.ts.map +1 -0
  368. package/dist/reactor/momentCut.js +142 -0
  369. package/dist/reactor/momentCut.js.map +1 -0
  370. package/dist/reactor/promptAddonRegistry.d.ts +39 -3
  371. package/dist/reactor/promptAddonRegistry.d.ts.map +1 -1
  372. package/dist/reactor/promptAddonRegistry.js +42 -3
  373. package/dist/reactor/promptAddonRegistry.js.map +1 -1
  374. package/dist/reactor/promptTemplatePreview.d.ts +97 -0
  375. package/dist/reactor/promptTemplatePreview.d.ts.map +1 -0
  376. package/dist/reactor/promptTemplatePreview.js +185 -0
  377. package/dist/reactor/promptTemplatePreview.js.map +1 -0
  378. package/dist/reactor/reactorAvailability.d.ts +80 -0
  379. package/dist/reactor/reactorAvailability.d.ts.map +1 -0
  380. package/dist/reactor/reactorAvailability.js +121 -0
  381. package/dist/reactor/reactorAvailability.js.map +1 -0
  382. package/dist/reactor/reactorSessionRefusal.d.ts +125 -0
  383. package/dist/reactor/reactorSessionRefusal.d.ts.map +1 -0
  384. package/dist/reactor/reactorSessionRefusal.js +197 -0
  385. package/dist/reactor/reactorSessionRefusal.js.map +1 -0
  386. package/dist/reactor/reactorTokenScope.d.ts +47 -0
  387. package/dist/reactor/reactorTokenScope.d.ts.map +1 -0
  388. package/dist/reactor/reactorTokenScope.js +64 -0
  389. package/dist/reactor/reactorTokenScope.js.map +1 -0
  390. package/dist/reactor/resolveDirectorBeats.d.ts +65 -0
  391. package/dist/reactor/resolveDirectorBeats.d.ts.map +1 -0
  392. package/dist/reactor/resolveDirectorBeats.js +86 -0
  393. package/dist/reactor/resolveDirectorBeats.js.map +1 -0
  394. package/dist/reactor/sanaLiveEdit.d.ts +117 -0
  395. package/dist/reactor/sanaLiveEdit.d.ts.map +1 -0
  396. package/dist/reactor/sanaLiveEdit.js +105 -0
  397. package/dist/reactor/sanaLiveEdit.js.map +1 -0
  398. package/dist/reactor/sceneEntry.d.ts +66 -9
  399. package/dist/reactor/sceneEntry.d.ts.map +1 -1
  400. package/dist/reactor/sceneEntry.js +59 -66
  401. package/dist/reactor/sceneEntry.js.map +1 -1
  402. package/dist/reactor/sceneSeedImage.d.ts +199 -0
  403. package/dist/reactor/sceneSeedImage.d.ts.map +1 -0
  404. package/dist/reactor/sceneSeedImage.js +239 -0
  405. package/dist/reactor/sceneSeedImage.js.map +1 -0
  406. package/dist/reactor/seedImageOrchestrator.d.ts +70 -3
  407. package/dist/reactor/seedImageOrchestrator.d.ts.map +1 -1
  408. package/dist/reactor/seedImageOrchestrator.js +92 -28
  409. package/dist/reactor/seedImageOrchestrator.js.map +1 -1
  410. package/dist/reactor/toolPromptAddon.d.ts.map +1 -1
  411. package/dist/reactor/toolPromptAddon.js +16 -2
  412. package/dist/reactor/toolPromptAddon.js.map +1 -1
  413. package/dist/reactor/worldMintLoop.d.ts +286 -0
  414. package/dist/reactor/worldMintLoop.d.ts.map +1 -0
  415. package/dist/reactor/worldMintLoop.js +381 -0
  416. package/dist/reactor/worldMintLoop.js.map +1 -0
  417. package/dist/reactor/worldSteerOutcome.d.ts +98 -0
  418. package/dist/reactor/worldSteerOutcome.d.ts.map +1 -0
  419. package/dist/reactor/worldSteerOutcome.js +81 -0
  420. package/dist/reactor/worldSteerOutcome.js.map +1 -0
  421. package/dist/retryAfter.d.ts +15 -0
  422. package/dist/retryAfter.d.ts.map +1 -0
  423. package/dist/retryAfter.js +75 -0
  424. package/dist/retryAfter.js.map +1 -0
  425. package/dist/seriesKey.d.ts +31 -0
  426. package/dist/seriesKey.d.ts.map +1 -0
  427. package/dist/seriesKey.js +33 -0
  428. package/dist/seriesKey.js.map +1 -0
  429. package/dist/sessionRefresh.d.ts +135 -0
  430. package/dist/sessionRefresh.d.ts.map +1 -0
  431. package/dist/sessionRefresh.js +215 -0
  432. package/dist/sessionRefresh.js.map +1 -0
  433. package/dist/sharedAudioContext.d.ts +39 -0
  434. package/dist/sharedAudioContext.d.ts.map +1 -0
  435. package/dist/sharedAudioContext.js +63 -0
  436. package/dist/sharedAudioContext.js.map +1 -0
  437. package/dist/singleFlight.d.ts +51 -0
  438. package/dist/singleFlight.d.ts.map +1 -0
  439. package/dist/singleFlight.js +87 -0
  440. package/dist/singleFlight.js.map +1 -0
  441. package/dist/storyGraph.d.ts +83 -0
  442. package/dist/storyGraph.d.ts.map +1 -1
  443. package/dist/storyGraph.js +169 -4
  444. package/dist/storyGraph.js.map +1 -1
  445. package/dist/storyboardMask.d.ts +343 -0
  446. package/dist/storyboardMask.d.ts.map +1 -0
  447. package/dist/storyboardMask.js +505 -0
  448. package/dist/storyboardMask.js.map +1 -0
  449. package/dist/storyboardTimeline.d.ts +93 -0
  450. package/dist/storyboardTimeline.d.ts.map +1 -0
  451. package/dist/storyboardTimeline.js +131 -0
  452. package/dist/storyboardTimeline.js.map +1 -0
  453. package/dist/studioAutomation.d.ts +104 -0
  454. package/dist/studioAutomation.d.ts.map +1 -0
  455. package/dist/studioAutomation.js +178 -0
  456. package/dist/studioAutomation.js.map +1 -0
  457. package/dist/tenantClaim.d.ts +86 -0
  458. package/dist/tenantClaim.d.ts.map +1 -0
  459. package/dist/tenantClaim.js +164 -0
  460. package/dist/tenantClaim.js.map +1 -0
  461. package/dist/timeFormat.d.ts +25 -0
  462. package/dist/timeFormat.d.ts.map +1 -1
  463. package/dist/timeFormat.js +56 -0
  464. package/dist/timeFormat.js.map +1 -1
  465. package/dist/toolSchemas.d.ts +58 -10
  466. package/dist/toolSchemas.d.ts.map +1 -1
  467. package/dist/toolSchemas.js +37 -9
  468. package/dist/toolSchemas.js.map +1 -1
  469. package/dist/transport.d.ts +120 -0
  470. package/dist/transport.d.ts.map +1 -0
  471. package/dist/transport.js +282 -0
  472. package/dist/transport.js.map +1 -0
  473. package/dist/videoGenFacade.d.ts +63 -0
  474. package/dist/videoGenFacade.d.ts.map +1 -0
  475. package/dist/videoGenFacade.js +49 -0
  476. package/dist/videoGenFacade.js.map +1 -0
  477. package/dist/visemeScheduler.d.ts +24 -2
  478. package/dist/visemeScheduler.d.ts.map +1 -1
  479. package/dist/visemeScheduler.js +31 -2
  480. package/dist/visemeScheduler.js.map +1 -1
  481. package/dist/vision/VisionPublisher.d.ts +88 -0
  482. package/dist/vision/VisionPublisher.d.ts.map +1 -1
  483. package/dist/vision/VisionPublisher.js +196 -13
  484. package/dist/vision/VisionPublisher.js.map +1 -1
  485. package/dist/vision/VisionSourceController.d.ts +67 -1
  486. package/dist/vision/VisionSourceController.d.ts.map +1 -1
  487. package/dist/vision/VisionSourceController.js +147 -5
  488. package/dist/vision/VisionSourceController.js.map +1 -1
  489. package/dist/vision/index.d.ts +2 -1
  490. package/dist/vision/index.d.ts.map +1 -1
  491. package/dist/vision/index.js +2 -1
  492. package/dist/vision/index.js.map +1 -1
  493. package/dist/vision/sourceKinds.d.ts +18 -5
  494. package/dist/vision/sourceKinds.d.ts.map +1 -1
  495. package/dist/vision/sourceKinds.js +15 -2
  496. package/dist/vision/sourceKinds.js.map +1 -1
  497. package/dist/vision/types.d.ts +7 -4
  498. package/dist/vision/types.d.ts.map +1 -1
  499. package/dist/vision/visionErrors.d.ts +45 -0
  500. package/dist/vision/visionErrors.d.ts.map +1 -0
  501. package/dist/vision/visionErrors.js +66 -0
  502. package/dist/vision/visionErrors.js.map +1 -0
  503. package/dist/voiceCloneCaption.d.ts +33 -0
  504. package/dist/voiceCloneCaption.d.ts.map +1 -0
  505. package/dist/voiceCloneCaption.js +69 -0
  506. package/dist/voiceCloneCaption.js.map +1 -0
  507. package/dist/websocket.d.ts +273 -10
  508. package/dist/websocket.d.ts.map +1 -1
  509. package/dist/websocket.js +79 -0
  510. package/dist/websocket.js.map +1 -1
  511. package/dist/workflowAuthoring.d.ts +139 -0
  512. package/dist/workflowAuthoring.d.ts.map +1 -0
  513. package/dist/workflowAuthoring.js +557 -0
  514. package/dist/workflowAuthoring.js.map +1 -0
  515. package/package.json +15 -5
  516. package/src/__tests__/adapters-director.test.ts +9 -6
  517. package/src/__tests__/adapters-extraction.test.ts +175 -0
  518. package/src/__tests__/adapters-image.test.ts +66 -0
  519. package/src/__tests__/adapters-momentPolicy.test.ts +218 -0
  520. package/src/__tests__/adapters-platform.test.ts +110 -4
  521. package/src/__tests__/adapters-videogen.test.ts +53 -0
  522. package/src/__tests__/adapters-world.test.ts +117 -7
  523. package/src/__tests__/admin.enhancement-defaults.test.ts +115 -0
  524. package/src/__tests__/admin.test.ts +282 -0
  525. package/src/__tests__/adventures-world-state.test.ts +156 -0
  526. package/src/__tests__/adventures.test.ts +111 -1
  527. package/src/__tests__/api-pollers.test.ts +113 -23
  528. package/src/__tests__/api.adventure-definitions.test.ts +312 -0
  529. package/src/__tests__/api.anchor-beat.test.ts +75 -0
  530. package/src/__tests__/api.arc-approval.test.ts +171 -0
  531. package/src/__tests__/api.arc-beats-floor.test.ts +56 -0
  532. package/src/__tests__/api.arc-generation.test.ts +168 -0
  533. package/src/__tests__/api.arc-templates.test.ts +78 -0
  534. package/src/__tests__/api.assignVideoSeries.test.ts +81 -0
  535. package/src/__tests__/api.cast-frame-choices.test.ts +141 -0
  536. package/src/__tests__/api.cutscene-registry.test.ts +148 -0
  537. package/src/__tests__/api.enhancement-addition-actions.test.ts +137 -0
  538. package/src/__tests__/api.enrichVideo-serialization.test.ts +116 -0
  539. package/src/__tests__/api.extraction-base.test.ts +87 -0
  540. package/src/__tests__/api.generateVideo-cutscene.test.ts +148 -0
  541. package/src/__tests__/api.job-pipeline-stages.test.ts +128 -0
  542. package/src/__tests__/api.list-images-filters.test.ts +6 -3
  543. package/src/__tests__/api.quest-curation.test.ts +169 -0
  544. package/src/__tests__/api.reprocessVideo.test.ts +71 -0
  545. package/src/__tests__/api.scene-split-merge.test.ts +129 -0
  546. package/src/__tests__/api.session-quests.test.ts +184 -0
  547. package/src/__tests__/api.test.ts +122 -0
  548. package/src/__tests__/api.transferSeries.test.ts +114 -0
  549. package/src/__tests__/api.unknown-clusters.test.ts +225 -0
  550. package/src/__tests__/api.uploadVideo-options.test.ts +156 -0
  551. package/src/__tests__/arcPreview.test.ts +71 -0
  552. package/src/__tests__/arcStyleProfile.test.ts +204 -0
  553. package/src/__tests__/artifacts-delete.test.ts +109 -0
  554. package/src/__tests__/audio.test.ts +864 -5
  555. package/src/__tests__/audioDsp.test.ts +196 -0
  556. package/src/__tests__/audioUnavailable.test.ts +43 -0
  557. package/src/__tests__/cast.test.ts +10 -1
  558. package/src/__tests__/castCurationProjection.test.ts +84 -0
  559. package/src/__tests__/castFramePipelinePending.test.ts +171 -0
  560. package/src/__tests__/castProjection.test.ts +497 -5
  561. package/src/__tests__/characterGrounding.test.ts +357 -0
  562. package/src/__tests__/contract.test.ts +97 -0
  563. package/src/__tests__/conversation/chatSessionStore.test.ts +243 -0
  564. package/src/__tests__/conversation/controller.test.ts +211 -0
  565. package/src/__tests__/conversation/readSequencer.test.ts +52 -0
  566. package/src/__tests__/conversation/rosterProjection.test.ts +204 -3
  567. package/src/__tests__/conversation/runtime.test.ts +118 -1
  568. package/src/__tests__/conversation/voice.test.ts +741 -7
  569. package/src/__tests__/creatorCuration.test.ts +256 -0
  570. package/src/__tests__/creatorDashboard.test.ts +444 -0
  571. package/src/__tests__/creatorUniverse.test.ts +138 -0
  572. package/src/__tests__/curationWrite.test.ts +179 -0
  573. package/src/__tests__/decisions.test.ts +89 -0
  574. package/src/__tests__/designTokens.test.ts +72 -0
  575. package/src/__tests__/dialogAttribution.test.ts +187 -0
  576. package/src/__tests__/dmDirectiveToExperience.test.ts +198 -0
  577. package/src/__tests__/dmWorldEntry.test.ts +2102 -0
  578. package/src/__tests__/enhancementDiff.test.ts +132 -0
  579. package/src/__tests__/experienceModelCatalog.test.ts +292 -0
  580. package/src/__tests__/extractionStageState.test.ts +67 -0
  581. package/src/__tests__/getVideo.test.ts +95 -0
  582. package/src/__tests__/graphReadAfterWrite.test.ts +211 -0
  583. package/src/__tests__/graphSchema.test.ts +55 -4
  584. package/src/__tests__/happyOysterSeed.test.ts +208 -0
  585. package/src/__tests__/happyOysterWorld.test.ts +1241 -0
  586. package/src/__tests__/happyOysterWorldRefusal.test.ts +224 -0
  587. package/src/__tests__/hiddenWorldLifecycle.test.ts +203 -0
  588. package/src/__tests__/http.session-refresh.test.ts +424 -0
  589. package/src/__tests__/http.test.ts +316 -0
  590. package/src/__tests__/identity.test.ts +132 -0
  591. package/src/__tests__/loadBundleManifest.test.ts +192 -22
  592. package/src/__tests__/longLiveSceneEntry.test.ts +371 -0
  593. package/src/__tests__/me.test.ts +74 -0
  594. package/src/__tests__/messageContent.test.ts +395 -0
  595. package/src/__tests__/momentCut.test.ts +229 -0
  596. package/src/__tests__/mutationEpoch.test.ts +218 -0
  597. package/src/__tests__/obo.test.ts +159 -0
  598. package/src/__tests__/opusTransport.test.ts +182 -0
  599. package/src/__tests__/opusTransportLibopus.test.ts +125 -0
  600. package/src/__tests__/orgs.test.ts +229 -0
  601. package/src/__tests__/persona-generation.test.ts +208 -1
  602. package/src/__tests__/platformAssistant.test.ts +140 -0
  603. package/src/__tests__/projects.test.ts +338 -0
  604. package/src/__tests__/promptTemplatePreview.test.ts +160 -0
  605. package/src/__tests__/reactor/__fixtures__/realFramePromptText.ts +23 -0
  606. package/src/__tests__/reactor/api-reactor.test.ts +60 -21
  607. package/src/__tests__/reactor/framePromptCompaction.test.ts +300 -0
  608. package/src/__tests__/reactor/promptAddonRegistry.test.ts +79 -0
  609. package/src/__tests__/reactor/reactorTokenScope.test.ts +50 -0
  610. package/src/__tests__/reactor/resolveDirectorBeats.test.ts +156 -0
  611. package/src/__tests__/reactor/sceneEntry.test.ts +3 -0
  612. package/src/__tests__/reactor/sceneSeedImage.test.ts +361 -0
  613. package/src/__tests__/reactor/seedImageOrchestrator.test.ts +43 -5
  614. package/src/__tests__/reactor-happyOysterWalk.test.ts +294 -0
  615. package/src/__tests__/reactorAvailability.test.ts +217 -0
  616. package/src/__tests__/reactorSessionRefusal.test.ts +189 -0
  617. package/src/__tests__/regeneration.test.ts +9 -9
  618. package/src/__tests__/reprocessBlockedReason.test.ts +30 -0
  619. package/src/__tests__/retryAfter.test.ts +65 -0
  620. package/src/__tests__/roleClaim.test.ts +102 -0
  621. package/src/__tests__/sanaLiveEdit.test.ts +84 -0
  622. package/src/__tests__/seriesKey.test.ts +24 -0
  623. package/src/__tests__/settings-set9.test.ts +238 -0
  624. package/src/__tests__/singleFlight.test.ts +348 -0
  625. package/src/__tests__/storyGraph.test.ts +111 -1
  626. package/src/__tests__/storyboardFrameCutscene.test.ts +115 -0
  627. package/src/__tests__/storyboardMask.test.ts +527 -0
  628. package/src/__tests__/storyboardTimeline.test.ts +228 -0
  629. package/src/__tests__/storyboards.test.ts +639 -0
  630. package/src/__tests__/studioAutomation.test.ts +325 -0
  631. package/src/__tests__/toolSchemas.test.ts +11 -18
  632. package/src/__tests__/transport.test.ts +312 -0
  633. package/src/__tests__/videoGenFacade.test.ts +141 -0
  634. package/src/__tests__/videoGraph.test.ts +43 -1
  635. package/src/__tests__/visemeScheduler.test.ts +55 -1
  636. package/src/__tests__/visibility.test.ts +143 -0
  637. package/src/__tests__/voiceCloneCaption.test.ts +80 -0
  638. package/src/__tests__/voiceFallback.test.ts +55 -0
  639. package/src/__tests__/websocket-error-turn-ended.test.ts +49 -0
  640. package/src/__tests__/websocket-vision.test.ts +141 -0
  641. package/src/__tests__/websocket.test.ts +75 -1
  642. package/src/__tests__/workflowAuthoring.test.ts +187 -0
  643. package/src/__tests__/workflows.test.ts +640 -0
  644. package/src/__tests__/worldMintLoop.test.ts +448 -0
  645. package/src/__tests__/worldModelPreference.test.ts +302 -0
  646. package/src/__tests__/worldModelTradeoffs.test.ts +89 -0
  647. package/src/__tests__/worldSteerOutcome.test.ts +62 -0
  648. package/src/adapters/capabilities.ts +39 -3
  649. package/src/adapters/directorAdapter.ts +5 -4
  650. package/src/adapters/experienceModelCatalog.ts +538 -0
  651. package/src/adapters/extractionAdapter.ts +150 -0
  652. package/src/adapters/imageAdapter.ts +5 -1
  653. package/src/adapters/index.ts +104 -17
  654. package/src/adapters/momentDirective.ts +109 -0
  655. package/src/adapters/momentPolicy.ts +209 -0
  656. package/src/adapters/registry.ts +1 -1
  657. package/src/adapters/videoGenAdapter.ts +124 -0
  658. package/src/adapters/worldAdapter.ts +221 -16
  659. package/src/adapters/worldModelPreference.ts +247 -0
  660. package/src/adapters/worldModelTradeoffs.ts +247 -0
  661. package/src/admin.ts +842 -16
  662. package/src/api.ts +12687 -3446
  663. package/src/arcBoardJoin.ts +46 -0
  664. package/src/arcPreview.ts +103 -0
  665. package/src/audio.ts +691 -130
  666. package/src/audioDsp.ts +132 -0
  667. package/src/audioProtocol.ts +235 -0
  668. package/src/beatTitles.ts +51 -0
  669. package/src/castProjection.ts +311 -0
  670. package/src/characterGrounding.ts +491 -0
  671. package/src/conversation/binding.ts +13 -0
  672. package/src/conversation/chatSessionStore.ts +281 -0
  673. package/src/conversation/controller.ts +96 -3
  674. package/src/conversation/index.ts +2 -0
  675. package/src/conversation/participant.ts +16 -0
  676. package/src/conversation/readSequencer.ts +55 -0
  677. package/src/conversation/roster.ts +5 -1
  678. package/src/conversation/rosterProjection.ts +166 -2
  679. package/src/conversation/runtime.ts +66 -7
  680. package/src/conversation/types.ts +43 -4
  681. package/src/conversation/voice.ts +655 -51
  682. package/src/creatorCuration.ts +316 -0
  683. package/src/creatorDashboard.ts +344 -0
  684. package/src/creatorUniverse.ts +222 -0
  685. package/src/curationWrite.ts +108 -0
  686. package/src/designTokens.ts +157 -0
  687. package/src/dialogAttribution.ts +182 -0
  688. package/src/dmRunWorldReadiness.ts +1168 -0
  689. package/src/domains/access.ts +92 -0
  690. package/src/domains/adventureDefinitions.ts +313 -0
  691. package/src/domains/adventures.ts +557 -0
  692. package/src/domains/arcs.ts +350 -0
  693. package/src/domains/artifacts.ts +349 -0
  694. package/src/domains/chat.ts +338 -0
  695. package/src/domains/decisions.ts +62 -0
  696. package/src/domains/documents.ts +389 -0
  697. package/src/domains/enhancements.ts +259 -0
  698. package/src/domains/graph.ts +959 -0
  699. package/src/domains/images.ts +451 -0
  700. package/src/domains/ingestion.ts +695 -0
  701. package/src/domains/me.ts +27 -0
  702. package/src/domains/orgs.ts +168 -0
  703. package/src/domains/personas.ts +440 -0
  704. package/src/domains/projects.ts +177 -0
  705. package/src/domains/quests.ts +587 -0
  706. package/src/domains/reactor.ts +163 -0
  707. package/src/domains/showcase.ts +35 -0
  708. package/src/domains/storyboards.ts +1698 -0
  709. package/src/domains/studioSettings.ts +149 -0
  710. package/src/domains/universes.ts +433 -0
  711. package/src/domains/userDefaults.ts +37 -0
  712. package/src/domains/visemeBundles.ts +541 -0
  713. package/src/domains/workflows.ts +376 -0
  714. package/src/enhancementDiff.ts +171 -0
  715. package/src/generated/contract.ts +1016 -0
  716. package/src/graphSchema.ts +154 -6
  717. package/src/http.ts +295 -11
  718. package/src/identity.ts +123 -0
  719. package/src/index.ts +131 -0
  720. package/src/messageContent.ts +500 -0
  721. package/src/mutationEpoch.ts +107 -0
  722. package/src/obo.ts +201 -0
  723. package/src/opusTransport.ts +268 -0
  724. package/src/pagination.ts +29 -0
  725. package/src/platformAssistant.ts +97 -1
  726. package/src/pollUtils.ts +35 -0
  727. package/src/questLog.ts +704 -0
  728. package/src/reactor/dmDirectiveToExperience.ts +636 -0
  729. package/src/reactor/dmSceneControlPrompt.ts +69 -2
  730. package/src/reactor/dmWorldEntry.ts +2226 -0
  731. package/src/reactor/framePromptCompaction.ts +544 -0
  732. package/src/reactor/frameWorldBind.ts +133 -0
  733. package/src/reactor/happyOysterSeed.ts +329 -0
  734. package/src/reactor/happyOysterWalk.ts +541 -0
  735. package/src/reactor/happyOysterWorld.ts +1270 -0
  736. package/src/reactor/heliosCommandDispatcher.ts +5 -1
  737. package/src/reactor/hiddenWorldLifecycle.ts +182 -0
  738. package/src/reactor/imageCanvas.ts +38 -0
  739. package/src/reactor/index.ts +78 -0
  740. package/src/reactor/longLiveCommandDispatcher.ts +23 -8
  741. package/src/reactor/longLiveSceneEntry.ts +409 -0
  742. package/src/reactor/momentCut.ts +219 -0
  743. package/src/reactor/promptAddonRegistry.ts +81 -3
  744. package/src/reactor/promptTemplatePreview.ts +240 -0
  745. package/src/reactor/reactorAvailability.ts +155 -0
  746. package/src/reactor/reactorSessionRefusal.ts +260 -0
  747. package/src/reactor/reactorTokenScope.ts +69 -0
  748. package/src/reactor/resolveDirectorBeats.ts +140 -0
  749. package/src/reactor/sanaLiveEdit.ts +158 -0
  750. package/src/reactor/sceneEntry.ts +106 -88
  751. package/src/reactor/sceneSeedImage.ts +338 -0
  752. package/src/reactor/seedImageOrchestrator.ts +116 -34
  753. package/src/reactor/toolPromptAddon.ts +16 -2
  754. package/src/reactor/worldMintLoop.ts +545 -0
  755. package/src/reactor/worldSteerOutcome.ts +132 -0
  756. package/src/retryAfter.ts +71 -0
  757. package/src/seriesKey.ts +42 -0
  758. package/src/sessionRefresh.ts +237 -0
  759. package/src/sharedAudioContext.ts +67 -0
  760. package/src/singleFlight.ts +91 -0
  761. package/src/storyGraph.ts +247 -4
  762. package/src/storyboardMask.ts +756 -0
  763. package/src/storyboardTimeline.ts +220 -0
  764. package/src/studioAutomation.ts +208 -0
  765. package/src/tenantClaim.ts +170 -0
  766. package/src/timeFormat.ts +51 -0
  767. package/src/toolSchemas.ts +40 -10
  768. package/src/transport.ts +327 -0
  769. package/src/videoGenFacade.ts +90 -0
  770. package/src/visemeScheduler.ts +36 -3
  771. package/src/vision/VisionPublisher.ts +204 -14
  772. package/src/vision/VisionSourceController.ts +187 -6
  773. package/src/vision/__tests__/VisionPublisher.kvs.test.ts +50 -0
  774. package/src/vision/__tests__/VisionPublisher.test.ts +291 -0
  775. package/src/vision/__tests__/VisionSourceController.test.ts +376 -6
  776. package/src/vision/index.ts +5 -1
  777. package/src/vision/sourceKinds.ts +19 -5
  778. package/src/vision/types.ts +7 -4
  779. package/src/vision/visionErrors.ts +70 -0
  780. package/src/voiceCloneCaption.ts +77 -0
  781. package/src/websocket.ts +361 -12
  782. package/src/workflowAuthoring.ts +664 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"happyOysterWorld.js","sourceRoot":"","sources":["../../src/reactor/happyOysterWorld.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,GAEzB,MAAM,yBAAyB,CAAC;AAejC;kEACkE;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,WAAW;IACX,WAAW;CACZ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAc;IACnD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,sEAAsE,CAAC;IAChF,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,6BAA6B,EAAE,CAAC;QAClD,OAAO,uBAAuB,MAAM,CAAC,MAAM,6BAA6B,6BAA6B,iCAAiC,CAAC;IACzI,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAClD,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AAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,mBAAmB,CAAC;IAC7B;8CAC0C;IAC1C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;kCAE8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;uBAKmB;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uEAAuE;IACvE,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;2CACuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;8CAG0C;IAC1C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C;;;uCAGmC;IACnC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C;;;;;;;iCAO6B;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,aAAa,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,IAAI,CAAC,CAyCf"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { isAbortError } from './abortUtils.js';
17
17
  import { findEntityImageBySeedName } from './entitySearch.js';
18
- import { loadSeedImageFile, sendSeedFileToReactor, } from './seedImageOrchestrator.js';
18
+ import { HELIOS_SET_IMAGE_COMMAND, loadSeedImageFile, sendSeedFileToReactor, } from './seedImageOrchestrator.js';
19
19
  /**
20
20
  * Dispatch a single `HeliosCommand` to the live Reactor session.
21
21
  * Resolves with no value on both success and failure — the caller
@@ -166,7 +166,10 @@ async function handleSwapSeed(entityName, ctx) {
166
166
  });
167
167
  if (ctx.signal?.aborted)
168
168
  return;
169
- await sendSeedFileToReactor(file, ctx.reactor, { transition: 'blend' });
169
+ await sendSeedFileToReactor(file, ctx.reactor, {
170
+ commandName: HELIOS_SET_IMAGE_COMMAND,
171
+ transition: 'blend',
172
+ });
170
173
  // Tell the page so subsequent SET_SCENE upsample calls see the
171
174
  // RIGHT entity's context. Without this, the Helios stream visually
172
175
  // swaps but the model continues grounding prompts on the previous
@@ -1 +1 @@
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,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AA0EjC;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,GAAkB,EAClB,GAAsB;IAEtB,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO;QAAE,OAAO;IAChC,IAAI,CAAC;QACH,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;YACjB,KAAK,WAAW;gBACd,MAAM,cAAc,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBACtC,OAAO;YACT,KAAK,WAAW;gBACd,MAAM,cAAc,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;gBAC1C,OAAO;YACT,KAAK,aAAa;gBAChB,MAAM,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBAC3C,OAAO;YACT,KAAK,cAAc;gBACjB,MAAM,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAC5C,OAAO;YACT,KAAK,aAAa;gBAChB,MAAM,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBAC3C,OAAO;YACT,OAAO,CAAC,CAAC,CAAC;gBACR,+DAA+D;gBAC/D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AA4C,CAC/C,CAAC;QACF,OAAO;IACT,CAAC;IAED,oEAAoE;IACpE,mEAAmE;IACnE,oEAAoE;IACpE,eAAe;IACf,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,SAAS,EAAE;QAClE,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;IACH,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO;QAAE,OAAO;IAChC,MAAM,qBAAqB,CAAC,IAAI,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"}
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,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AA0EjC;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,GAAkB,EAClB,GAAsB;IAEtB,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO;QAAE,OAAO;IAChC,IAAI,CAAC;QACH,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;YACjB,KAAK,WAAW;gBACd,MAAM,cAAc,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBACtC,OAAO;YACT,KAAK,WAAW;gBACd,MAAM,cAAc,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,CA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AC,OAAO,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CAAC,2DAA2D,CAAC,CAAC;QAC1E,OAAO;IACT,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,yBAAyB,CAC3C,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,OAAO,EACX,OAAO,CACR,CAAC;IACF,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CACV,4DAA4D,UAAU,IAAI;YACxE,YAAY,GAAG,CAAC,OAAO,EAAE,CAC5B,CAAC;QACF,GAAG,CAAC,aAAa,EAAE,CACjB,kCAAkC,UAAU,mBAAmB;YAC7D,4CAA4C,CAC/C,CAAC;QACF,OAAO;IACT,CAAC;IAED,oEAAoE;IACpE,mEAAmE;IACnE,oEAAoE;IACpE,eAAe;IACf,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,SAAS,EAAE;QAClE,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;IACH,IAAI,GAAG,CAAC,MAAM,EAAE,OAAO;QAAE,OAAO;IAChC,MAAM,qBAAqB,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE;QAC7C,WAAW,EAAE,wBAAwB;QACrC,UAAU,EAAE,OAAO;KACpB,CAAC,CAAC;IACH,+DAA+D;IAC/D,mEAAmE;IACnE,kEAAkE;IAClE,UAAU;IACV,GAAG,CAAC,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * §Q `MOMENT.2` — STOP PAYING FOR HIDDEN WORLDS.
3
+ *
4
+ * The defect this module exists to end: closing a world on the DM/watch
5
+ * surface only flipped the active experience source — the world pane stays
6
+ * mounted-warm behind `visibility:hidden` (the deliberate warmth invariant),
7
+ * and NOTHING ever sent `pause`, `stop` or `disconnect`. Reactor bills a
8
+ * session's LIFETIME, creation → termination (`sessions.md`), so a player who
9
+ * clicked "Back to the party" left a Helios/LongLive session generating and
10
+ * billing behind a hidden pane, indefinitely.
11
+ *
12
+ * The owner-approved policy (ruling #13, 2026-08-17):
13
+ * - `active=false` on a live world → `pause`. Generation stops; the session
14
+ * stays warm. This is NOT a reversal of mount-once warmth.
15
+ * - {@link HELIOS_IDLE_DISCONNECT_MS} (60 s) with no re-entry → terminate
16
+ * the session (a NON-recoverable disconnect — the recoverable variant
17
+ * keeps billing for its 30 s grace, which is the opposite of the point).
18
+ * Re-entry inside the window is `resume` at chunk latency; outside it is a
19
+ * cold build. That is the honest trade, stated in one number.
20
+ *
21
+ * Framework-agnostic controller (client-core, not `web/lib`): the same seam
22
+ * exists for any host of a Reactor world session, and `../Web-App` pins this
23
+ * package. The React hook that drives it lives beside the pane.
24
+ *
25
+ * HappyOyster is routed through this too since §Q WORLD.21, with its own verb
26
+ * mapping (Adventure mode has no pause verb): `pause` → `endTravelSession()`,
27
+ * `resume` → nothing, idle `disconnect` → `model.disconnect()` (the session
28
+ * returns to `disconnected`; a later entry reconnects via §Q DM.77's ladder).
29
+ */
30
+ /** The owner-approved idle window (ruling #13, 2026-08-17): how long a hidden,
31
+ * paused world session stays warm before it is terminated. */
32
+ export declare const HELIOS_IDLE_DISCONNECT_MS = 60000;
33
+ /** The hidden-world lifecycle phases, published by the pane as a DOM fact
34
+ * (`data-world-lifecycle`) so a harness can grade a hidden session on what
35
+ * the surface actually did with it. */
36
+ export declare const HIDDEN_WORLD_LIFECYCLE: Readonly<{
37
+ /** The world is live and either on stage or not yet acted on. */
38
+ readonly RUNNING: "running";
39
+ /** Hidden → `pause` sent; the session is warm and the idle timer is armed. */
40
+ readonly PAUSED: "paused";
41
+ /** The idle window elapsed → the session was terminated; billing stopped. */
42
+ readonly DISCONNECTED: "disconnected";
43
+ }>;
44
+ export type HiddenWorldLifecyclePhase = (typeof HIDDEN_WORLD_LIFECYCLE)[keyof typeof HIDDEN_WORLD_LIFECYCLE];
45
+ /** The session verbs the controller drives. Rejections are swallowed (and
46
+ * reported to `onError`) — a dead world must never break the surface. */
47
+ export interface HiddenWorldLifecycleHooks {
48
+ /** Stop generation; keep the session warm (Helios/LongLive `pause`). */
49
+ pause(): void | Promise<unknown>;
50
+ /** Resume generation on re-entry inside the idle window. */
51
+ resume(): void | Promise<unknown>;
52
+ /** TERMINATE the billed session (non-recoverable disconnect). */
53
+ disconnect(): void | Promise<unknown>;
54
+ /** The session is gone — the host tears down for a cold rebuild. */
55
+ onSessionEnded?(): void;
56
+ /** A verb rejected; informational only. */
57
+ onError?(verb: 'pause' | 'resume' | 'disconnect', error: unknown): void;
58
+ }
59
+ export interface HiddenWorldLifecycleOptions {
60
+ /** Override the idle window (defaults to {@link HELIOS_IDLE_DISCONNECT_MS}). */
61
+ idleDisconnectMs?: number;
62
+ /** Observe phase transitions (the pane publishes them as the DOM fact). */
63
+ onPhaseChange?(phase: HiddenWorldLifecyclePhase): void;
64
+ }
65
+ /** The state the controller decides from. */
66
+ export interface HiddenWorldLifecycleState {
67
+ /** The world pane is the visible experience source. */
68
+ active: boolean;
69
+ /** A session exists (not necessarily generating). */
70
+ live: boolean;
71
+ /**
72
+ * §Q `MOMENT.11` — THE PLAYER'S OWN PAUSE, which OUTRANKS the auto-resume.
73
+ *
74
+ * The defect: the player hits Pause on the world HUD, steps out to read the
75
+ * chat, and comes back — and this controller, which cannot see the HUD, sends
76
+ * `resume` on re-entry and restarts a world the player deliberately stopped.
77
+ * The HUD's pause is not a lifecycle pause and the lifecycle must not undo it.
78
+ *
79
+ * ⛔ IT MEANS *MANUALLY* PAUSED, and the distinction is load-bearing. It must
80
+ * be fed ONLY from the player's own transport action — never from a vendor
81
+ * `state{paused:true}` echo, which is ALSO what this controller's own
82
+ * hide-pause produces. Feeding the echo back in would make every auto-pause
83
+ * self-sticky: the world would never resume again on its own.
84
+ *
85
+ * Absent ⇒ `false` ⇒ byte-identical to the pre-MOMENT.11 behaviour, so a host
86
+ * that does not surface a manual transport is unaffected.
87
+ */
88
+ manuallyPaused?: boolean;
89
+ }
90
+ export interface HiddenWorldLifecycleController {
91
+ /** Feed the current state; call on every change. */
92
+ update(state: HiddenWorldLifecycleState): void;
93
+ /** Current phase (also delivered via `onPhaseChange`). */
94
+ readonly phase: HiddenWorldLifecyclePhase;
95
+ /** Cancel any armed timer. Call on unmount. */
96
+ dispose(): void;
97
+ }
98
+ /** Build the hidden-world lifecycle controller. One instance per live session
99
+ * host; `update` is idempotent per state (safe to call from a render effect). */
100
+ export declare function createHiddenWorldLifecycle(hooks: HiddenWorldLifecycleHooks, options?: HiddenWorldLifecycleOptions): HiddenWorldLifecycleController;
101
+ //# sourceMappingURL=hiddenWorldLifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hiddenWorldLifecycle.d.ts","sourceRoot":"","sources":["../../src/reactor/hiddenWorldLifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;+DAC+D;AAC/D,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAEhD;;wCAEwC;AACxC,eAAO,MAAM,sBAAsB;IACjC,iEAAiE;;IAEjE,8EAA8E;;IAE9E,6EAA6E;;EAEpE,CAAC;AAEZ,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE;0EAC0E;AAC1E,MAAM,WAAW,yBAAyB;IACxC,wEAAwE;IACxE,KAAK,IAAI,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,4DAA4D;IAC5D,MAAM,IAAI,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,iEAAiE;IACjE,UAAU,IAAI,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,oEAAoE;IACpE,cAAc,CAAC,IAAI,IAAI,CAAC;IACxB,2CAA2C;IAC3C,OAAO,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACzE;AAED,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,aAAa,CAAC,CAAC,KAAK,EAAE,yBAAyB,GAAG,IAAI,CAAC;CACxD;AAED,6CAA6C;AAC7C,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,MAAM,EAAE,OAAO,CAAC;IAChB,qDAAqD;IACrD,IAAI,EAAE,OAAO,CAAC;IACd;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,8BAA8B;IAC7C,oDAAoD;IACpD,MAAM,CAAC,KAAK,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC/C,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC;IAC1C,+CAA+C;IAC/C,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;kFACkF;AAClF,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,yBAAyB,EAChC,OAAO,GAAE,2BAAgC,GACxC,8BAA8B,CAsEhC"}
@@ -0,0 +1,119 @@
1
+ /**
2
+ * §Q `MOMENT.2` — STOP PAYING FOR HIDDEN WORLDS.
3
+ *
4
+ * The defect this module exists to end: closing a world on the DM/watch
5
+ * surface only flipped the active experience source — the world pane stays
6
+ * mounted-warm behind `visibility:hidden` (the deliberate warmth invariant),
7
+ * and NOTHING ever sent `pause`, `stop` or `disconnect`. Reactor bills a
8
+ * session's LIFETIME, creation → termination (`sessions.md`), so a player who
9
+ * clicked "Back to the party" left a Helios/LongLive session generating and
10
+ * billing behind a hidden pane, indefinitely.
11
+ *
12
+ * The owner-approved policy (ruling #13, 2026-08-17):
13
+ * - `active=false` on a live world → `pause`. Generation stops; the session
14
+ * stays warm. This is NOT a reversal of mount-once warmth.
15
+ * - {@link HELIOS_IDLE_DISCONNECT_MS} (60 s) with no re-entry → terminate
16
+ * the session (a NON-recoverable disconnect — the recoverable variant
17
+ * keeps billing for its 30 s grace, which is the opposite of the point).
18
+ * Re-entry inside the window is `resume` at chunk latency; outside it is a
19
+ * cold build. That is the honest trade, stated in one number.
20
+ *
21
+ * Framework-agnostic controller (client-core, not `web/lib`): the same seam
22
+ * exists for any host of a Reactor world session, and `../Web-App` pins this
23
+ * package. The React hook that drives it lives beside the pane.
24
+ *
25
+ * HappyOyster is routed through this too since §Q WORLD.21, with its own verb
26
+ * mapping (Adventure mode has no pause verb): `pause` → `endTravelSession()`,
27
+ * `resume` → nothing, idle `disconnect` → `model.disconnect()` (the session
28
+ * returns to `disconnected`; a later entry reconnects via §Q DM.77's ladder).
29
+ */
30
+ /** The owner-approved idle window (ruling #13, 2026-08-17): how long a hidden,
31
+ * paused world session stays warm before it is terminated. */
32
+ export const HELIOS_IDLE_DISCONNECT_MS = 60_000;
33
+ /** The hidden-world lifecycle phases, published by the pane as a DOM fact
34
+ * (`data-world-lifecycle`) so a harness can grade a hidden session on what
35
+ * the surface actually did with it. */
36
+ export const HIDDEN_WORLD_LIFECYCLE = Object.freeze({
37
+ /** The world is live and either on stage or not yet acted on. */
38
+ RUNNING: 'running',
39
+ /** Hidden → `pause` sent; the session is warm and the idle timer is armed. */
40
+ PAUSED: 'paused',
41
+ /** The idle window elapsed → the session was terminated; billing stopped. */
42
+ DISCONNECTED: 'disconnected',
43
+ });
44
+ /** Build the hidden-world lifecycle controller. One instance per live session
45
+ * host; `update` is idempotent per state (safe to call from a render effect). */
46
+ export function createHiddenWorldLifecycle(hooks, options = {}) {
47
+ const idleMs = options.idleDisconnectMs ?? HELIOS_IDLE_DISCONNECT_MS;
48
+ let phase = HIDDEN_WORLD_LIFECYCLE.RUNNING;
49
+ let timer = null;
50
+ const setPhase = (next) => {
51
+ if (phase === next)
52
+ return;
53
+ phase = next;
54
+ options.onPhaseChange?.(next);
55
+ };
56
+ const clearTimer = () => {
57
+ if (timer !== null) {
58
+ clearTimeout(timer);
59
+ timer = null;
60
+ }
61
+ };
62
+ const run = (verb, act) => {
63
+ try {
64
+ void Promise.resolve(act()).catch((err) => hooks.onError?.(verb, err));
65
+ }
66
+ catch (err) {
67
+ // A synchronously-throwing verb must not break the surface either.
68
+ hooks.onError?.(verb, err);
69
+ }
70
+ };
71
+ return {
72
+ update({ active, live, manuallyPaused = false }) {
73
+ if (!live) {
74
+ // Nothing is generating (the stream ended, or a rebuild is underway):
75
+ // nothing to pause and no idle spend to bound. Reset for the next life.
76
+ clearTimer();
77
+ setPhase(HIDDEN_WORLD_LIFECYCLE.RUNNING);
78
+ return;
79
+ }
80
+ if (!active) {
81
+ if (phase !== HIDDEN_WORLD_LIFECYCLE.RUNNING)
82
+ return;
83
+ // Hidden while generating → pause now, terminate after the window.
84
+ setPhase(HIDDEN_WORLD_LIFECYCLE.PAUSED);
85
+ run('pause', hooks.pause);
86
+ timer = setTimeout(() => {
87
+ timer = null;
88
+ setPhase(HIDDEN_WORLD_LIFECYCLE.DISCONNECTED);
89
+ run('disconnect', hooks.disconnect);
90
+ hooks.onSessionEnded?.();
91
+ }, idleMs);
92
+ return;
93
+ }
94
+ // Back on stage.
95
+ if (phase === HIDDEN_WORLD_LIFECYCLE.PAUSED) {
96
+ clearTimer();
97
+ setPhase(HIDDEN_WORLD_LIFECYCLE.RUNNING);
98
+ // §Q MOMENT.11 — MANUAL PAUSE WINS OVER AUTO-RESUME. The idle spend is
99
+ // no longer bounded by this controller's timer, so the phase honestly
100
+ // leaves `paused`: the session is on stage and this controller has
101
+ // stopped managing it. What is holding generation is the player's own
102
+ // pause, which the HUD publishes as its own DOM fact — a second
103
+ // lifecycle phase for it would say the same thing twice AND break the
104
+ // byte-for-byte pin `web/e2e/__tests__/coherence.test.js` holds between
105
+ // {@link HIDDEN_WORLD_LIFECYCLE} and the harness's mirror.
106
+ if (!manuallyPaused)
107
+ run('resume', hooks.resume);
108
+ }
109
+ // DISCONNECTED + active needs no action here: `onSessionEnded` already
110
+ // began the host's cold rebuild, and the fresh session arrives as a new
111
+ // `live` transition.
112
+ },
113
+ get phase() {
114
+ return phase;
115
+ },
116
+ dispose: clearTimer,
117
+ };
118
+ }
119
+ //# sourceMappingURL=hiddenWorldLifecycle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hiddenWorldLifecycle.js","sourceRoot":"","sources":["../../src/reactor/hiddenWorldLifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;+DAC+D;AAC/D,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAEhD;;wCAEwC;AACxC,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC;IAClD,iEAAiE;IACjE,OAAO,EAAE,SAAS;IAClB,8EAA8E;IAC9E,MAAM,EAAE,QAAQ;IAChB,6EAA6E;IAC7E,YAAY,EAAE,cAAc;CACpB,CAAC,CAAC;AA8DZ;kFACkF;AAClF,MAAM,UAAU,0BAA0B,CACxC,KAAgC,EAChC,UAAuC,EAAE;IAEzC,MAAM,MAAM,GAAG,OAAO,CAAC,gBAAgB,IAAI,yBAAyB,CAAC;IACrE,IAAI,KAAK,GAA8B,sBAAsB,CAAC,OAAO,CAAC;IACtE,IAAI,KAAK,GAAyC,IAAI,CAAC;IAEvD,MAAM,QAAQ,GAAG,CAAC,IAA+B,EAAE,EAAE;QACnD,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO;QAC3B,KAAK,GAAG,IAAI,CAAC;QACb,OAAO,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC,CAAC;IACF,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,KAAK,GAAG,IAAI,CAAC;QACf,CAAC;IACH,CAAC,C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EAAE,CAAC;gBAC5C,UAAU,EAAE,CAAC;gBACb,QAAQ,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;gBACzC,uEAAuE;gBACvE,sEAAsE;gBACtE,mEAAmE;gBACnE,sEAAsE;gBACtE,gEAAgE;gBAChE,sEAAsE;gBACtE,wEAAwE;gBACxE,2DAA2D;gBAC3D,IAAI,CAAC,cAAc;oBAAE,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YACnD,CAAC;YACD,uEAAuE;YACvE,wEAAwE;YACxE,qBAAqB;QACvB,CAAC;QACD,IAAI,KAAK;YACP,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,EAAE,UAAU;KACpB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Browser-canvas primitives shared by the Reactor seed paths.
3
+ *
4
+ * INTERNAL — deliberately NOT re-exported from `./index` (the
5
+ * `chunkDistribution` precedent). These are implementation details of the two
6
+ * seed preparers that need them: `seedImageOrchestrator`'s Helios
7
+ * data-channel downscale and `happyOysterSeed`'s first-frame crop. They live
8
+ * here so "decode a blob" and "encode a canvas" exist ONCE — the two preparers
9
+ * differ in policy (budget, cropping, failure semantics), not in plumbing.
10
+ */
11
+ /** Decode a blob into an `<img>`, revoking the object URL either way. */
12
+ export declare function loadBlobAsImage(blob: Blob): Promise<HTMLImageElement>;
13
+ /** Promise wrapper around the callback-style `canvas.toBlob`. */
14
+ export declare function canvasToBlob(canvas: HTMLCanvasElement, type: string, quality: number): Promise<Blob | null>;
15
+ //# sourceMappingURL=imageCanvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imageCanvas.d.ts","sourceRoot":"","sources":["../../src/reactor/imageCanvas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAcrE;AAED,iEAAiE;AACjE,wBAAgB,YAAY,CAC1B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAItB"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Browser-canvas primitives shared by the Reactor seed paths.
3
+ *
4
+ * INTERNAL — deliberately NOT re-exported from `./index` (the
5
+ * `chunkDistribution` precedent). These are implementation details of the two
6
+ * seed preparers that need them: `seedImageOrchestrator`'s Helios
7
+ * data-channel downscale and `happyOysterSeed`'s first-frame crop. They live
8
+ * here so "decode a blob" and "encode a canvas" exist ONCE — the two preparers
9
+ * differ in policy (budget, cropping, failure semantics), not in plumbing.
10
+ */
11
+ /** Decode a blob into an `<img>`, revoking the object URL either way. */
12
+ export function loadBlobAsImage(blob) {
13
+ return new Promise((resolve, reject) => {
14
+ const url = URL.createObjectURL(blob);
15
+ const img = new Image();
16
+ img.onload = () => {
17
+ URL.revokeObjectURL(url);
18
+ resolve(img);
19
+ };
20
+ img.onerror = () => {
21
+ URL.revokeObjectURL(url);
22
+ reject(new Error('image decode failed'));
23
+ };
24
+ img.src = url;
25
+ });
26
+ }
27
+ /** Promise wrapper around the callback-style `canvas.toBlob`. */
28
+ export function canvasToBlob(canvas, type, quality) {
29
+ return new Promise(resolve => {
30
+ canvas.toBlob(b => resolve(b), type, quality);
31
+ });
32
+ }
33
+ //# sourceMappingURL=imageCanvas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imageCanvas.js","sourceRoot":"","sources":["../../src/reactor/imageCanvas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,yEAAyE;AACzE,MAAM,UAAU,eAAe,CAAC,IAAU;IACxC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;YAChB,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YACzB,OAAO,CAAC,GAAG,CAAC,CAAC;QACf,CAAC,CAAC;QACF,GAAG,CAAC,OAAO,GAAG,GAAG,EAAE;YACjB,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YACzB,MAAM,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC;QACF,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,YAAY,CAC1B,MAAyB,EACzB,IAAY,EACZ,OAAe;IAEf,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -8,6 +8,7 @@ export * from './upsamplePrompt';
8
8
  export * from './entityContext';
9
9
  export * from './scenesFromEnrichment';
10
10
  export * from './storyTimeline';
11
+ export * from './resolveDirectorBeats';
11
12
  export * from './heliosTools';
12
13
  export * from './dmSceneControlPrompt';
13
14
  export * from './toolPromptAddon';
@@ -16,7 +17,25 @@ export * from './heliosCommandDispatcher';
16
17
  export * from './longLiveCommandDispatcher';
17
18
  export * from './seedImageOrchestrator';
18
19
  export * from './promptAddonRegistry';
20
+ export * from './promptTemplatePreview';
21
+ export * from './sceneSeedImage';
19
22
  export * from './sceneEntry';
23
+ export * from './longLiveSceneEntry';
24
+ export * from './sanaLiveEdit';
25
+ export * from './happyOysterWorld';
26
+ export * from './reactorAvailability';
27
+ export * from './reactorTokenScope';
28
+ export * from './reactorSessionRefusal';
29
+ export * from './happyOysterWalk';
30
+ export * from './happyOysterSeed';
31
+ export * from './framePromptCompaction';
32
+ export * from './dmWorldEntry';
33
+ export * from './worldSteerOutcome';
34
+ export * from './hiddenWorldLifecycle';
35
+ export * from './momentCut';
20
36
  export * from './applyScenePrompt';
21
37
  export * from './abortUtils';
38
+ export * from './frameWorldBind';
39
+ export * from './worldMintLoop';
40
+ export * from './dmDirectiveToExperience';
22
41
  //# 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;AAIvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAG9B,cAAc,wBAAwB,CAAC;AACvC,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"}
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;AAIhC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAG9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,yBAAyB,CAAC;AAIxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AAIrC,cAAc,gBAAgB,CAAC;AAK/B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,qBAAqB,CAAC;AAIpC,cAAc,yBAAyB,CAAC;AAKxC,cAAc,mBAAmB,CAAC;AAKlC,cAAc,mBAAmB,CAAC;AAKlC,cAAc,yBAAyB,CAAC;AAMxC,cAAc,gBAAgB,CAAC;AAI/B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAI7B,cAAc,kBAAkB,CAAC;AAMjC,cAAc,iBAAiB,CAAC;AAMhC,cAAc,2BAA2B,CAAC"}
@@ -11,6 +11,10 @@ export * from './scenesFromEnrichment.js';
11
11
  // The shared chunk-distribution helpers in `./chunkDistribution` stay internal
12
12
  // (imported by both mappers); they are deliberately NOT re-exported here.
13
13
  export * from './storyTimeline.js';
14
+ // Beats-centric Director auto-load: the single source-selection policy that
15
+ // combines the story-graph + raw-enrichment beat sources behind one resolver
16
+ // (reuses both mappers; owns only WHICH source wins).
17
+ export * from './resolveDirectorBeats.js';
14
18
  export * from './heliosTools.js';
15
19
  // A-DM2 — canonical [SCENE:...] scene-control vocabulary (single source; the
16
20
  // retired-`[SET_SCENE]`-prose replacement, tech-debt #113).
@@ -21,7 +25,81 @@ export * from './heliosCommandDispatcher.js';
21
25
  export * from './longLiveCommandDispatcher.js';
22
26
  export * from './seedImageOrchestrator.js';
23
27
  export * from './promptAddonRegistry.js';
28
+ // SET.14 — browser-side prompt-template preview mirror of
29
+ // `shared/prompt_assembly.py` (settings g-prompts live preview).
30
+ export * from './promptTemplatePreview.js';
31
+ // §Q WORLD.3 — the ONE decision "which picture is this world conditioned on?",
32
+ // shared by the Helios and LongLive scene-entry orchestrators below (the
33
+ // storyboard frame when the beat has one, the film extract as the fallback).
34
+ export * from './sceneSeedImage.js';
24
35
  export * from './sceneEntry.js';
36
+ // 3b (#506) — the LongLive-v2 text-seed "Step Into Scene" orchestrator (the
37
+ // text-to-video analogue of sceneEntry's Helios image-seed path).
38
+ export * from './longLiveSceneEntry.js';
39
+ // 3c (#501) — the Sana-Streaming LIVE_EDIT orchestrator (the live-edit analogue
40
+ // of sceneEntry / longLiveSceneEntry), relocated here from web/lib/sana so the
41
+ // experienceModelCatalog is the single source. web/lib/sana re-exports it.
42
+ export * from './sanaLiveEdit.js';
43
+ // SB-W.1 — the Reactor HappyOyster world adapter (permanent worlds, the
44
+ // dedicated `@reactor-models/happy-oyster` typed SDK). Owns the prompt cap the
45
+ // SDK does not enforce, the {encryptedWorldId, mode} permanent handle, the
46
+ // failure-reason vocabulary, and the create-or-reopen launch orchestrator.
47
+ export * from './happyOysterWorld.js';
48
+ // §Q WORLD.30 / VIS.11 — whether a Reactor surface may open, from the admin
49
+ // Reactor + Sana switches (default OFF): the one fail-closed gate every surface asks.
50
+ export * from './reactorAvailability.js';
51
+ // §Q WORLD.32 — the Reactor models a browser token may be scoped to, and which
52
+ // admin switch set each is behind (the broker scopes every token to one).
53
+ export * from './reactorTokenScope.js';
54
+ // §Q WORLD.17 — a Reactor session the vendor REFUSED (402 credits_depleted,
55
+ // capacity, any refused session create), read back out of the SDK's error text
56
+ // into a named refusal — the one parse every world pane renders from.
57
+ export * from './reactorSessionRefusal.js';
58
+ // §Q MOMENT.5 — the ADVENTURE session's held-input vocabulary as pure
59
+ // functions: key→axis composition, the hold/release transition, the
60
+ // capability read (what may be RENDERED), the excursion bound read off the
61
+ // `startTravel` session payload, and the travel-leg lifecycle constants.
62
+ export * from './happyOysterWalk.js';
63
+ // SB-W.2 — first-frame (seed) preparation for HappyOyster: the CROP into the
64
+ // vendor's 1.5–2.0 landscape band plus the 2 MB encode. Separate from
65
+ // `seedImageOrchestrator` (Helios' data-channel downscale) because the policy
66
+ // differs, not the plumbing — both share `./imageCanvas` (internal).
67
+ export * from './happyOysterSeed.js';
68
+ // §Q DM.18 — fit a frame's server-compiled `promptText` inside a live target's
69
+ // prompt cap by shedding whole semantic units (reference addressing, arc
70
+ // stakes, themes) in a fixed ceremony-first order, never by truncating. The
71
+ // `Action` line — the beat itself — is never shed.
72
+ export * from './framePromptCompaction.js';
73
+ // §Q DM.1 (client half) — the DM `[SCENE:enter_world]` → HappyOyster world
74
+ // entry seeded from the ratified storyboard frame. Owns the decisions between
75
+ // an LLM-emitted tag and a paid+permanent asset: the deterministic beat→frame
76
+ // join, opt-in auto-fire that creates only at a scene change (steer/reopen
77
+ // otherwise), and bytes-only seeding.
78
+ export * from './dmWorldEntry.js';
79
+ // §Q MOMENT.1 — the named fate of one dispatched world steer: the vocabulary,
80
+ // the reading of HappyOyster's `instruct` ack, and the player copy for a steer
81
+ // that did not land. Ends the `void steerWorld(prompt)` discard.
82
+ export * from './worldSteerOutcome.js';
83
+ // §Q MOMENT.2 — stop paying for hidden worlds: the pause-then-terminate
84
+ // lifecycle for a live Reactor world session hidden behind a warm pane.
85
+ export * from './hiddenWorldLifecycle.js';
86
+ export * from './momentCut.js';
25
87
  export * from './applyScenePrompt.js';
26
88
  export * from './abortUtils.js';
89
+ // The frame-world CAS's client half — the 409 reading both the DM host and the
90
+ // studio mint loop bind through. One implementation, because a second copy is
91
+ // how a conflict gets misread as an outage and a world is minted twice.
92
+ export * from './frameWorldBind.js';
93
+ // §Q MOMENT.15 — the BROWSER MINT LOOP: the spend half of pre-mint. `prepare`
94
+ // authorises a bounded `pending` set and only a browser can spend it, so the
95
+ // rules that decide how many worlds are minted, in what order, and when a run
96
+ // must STOP live here — pure, because every one of them is about permanent,
97
+ // undeletable, billed money.
98
+ export * from './worldMintLoop.js';
99
+ // §Q CORE.4 — the DM scene-control directive → experience-surface translator,
100
+ // lifted out of `web/app/watch/[videoId]/`. Its old blocker was a
101
+ // `process.env`-derived wiring read; the answer is now an INJECTED predicate
102
+ // (`DmDirectiveHost.isSourceWired`), so the CLI, the MCP driver and any future
103
+ // non-React host share the ONE translation of a DM directive.
104
+ export * from './dmDirectiveToExperience.js';
27
105
  //# 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,+EAA+E;AAC/E,+EAA+E;AAC/E,0EAA0E;AAC1E,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,6EAA6E;AAC7E,4DAA4D;AAC5D,cAAc,wBAAwB,CAAC;AACvC,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"}
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,4EAA4E;AAC5E,6EAA6E;AAC7E,sDAAsD;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9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EAAwE;AACxE,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,+EAA+E;AAC/E,8EAA8E;AAC9E,wEAAwE;AACxE,cAAc,kBAAkB,CAAC;AACjC,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,4EAA4E;AAC5E,6BAA6B;AAC7B,cAAc,iBAAiB,CAAC;AAChC,8EAA8E;AAC9E,kEAAkE;AAClE,6EAA6E;AAC7E,+EAA+E;AAC/E,8DAA8D;AAC9D,cAAc,2BAA2B,CAAC"}
@@ -4,14 +4,26 @@
4
4
  * The {@link dispatchHeliosCommand} analogue for the Reactor LongLive-v2
5
5
  * world model. SAME Reactor transport (JWT / `main_video` track) as Helios —
6
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).
7
+ * differs: LongLive STEERS with `set_shot`/`scene_cut`/`schedule_shot`/…
8
+ * (where Helios uses `set_scene`/`set_prompt`) and has a hard `scene_cut` (a
9
+ * memory-purging transition Helios lacks).
10
+ *
11
+ * SCOPE OF THIS DISPATCHER: it handles the in-session STEERING follow-up shots
12
+ * (the composer loop after the world is live), which are TEXT commands — so it
13
+ * needs no image surface. The OPENING image seed (LongLive accepts the
14
+ * frozen-playhead frame on the watch pane, EXACTLY like Helios) is handled by
15
+ * `bootstrapLongLiveSceneInReactor` in `longLiveSceneEntry.ts`, which probes the
16
+ * live session's advertised `Capabilities.commands` and either uploads the
17
+ * frame to an advertised image command (Path A) or sends a vision-grounded
18
+ * `set_shot` (Path B). Whether LongLive accepts a TRUE image command is a
19
+ * per-model server-declared fact read at runtime — NOT the long-assumed
20
+ * "text-only" claim (which was UNVERIFIED, PR-#448).
10
21
  *
11
22
  * Pure framework-agnostic helper: no React imports, no `@reactor-team/js-sdk`
12
23
  * dependency. It reuses the structural {@link HeliosReactorBridge}
13
24
  * `sendCommand` surface via `Pick` (no rename — additive-only) but takes NO
14
- * `uploadFile` (LongLive has no image path).
25
+ * `uploadFile` (the steering follow-ups are text; the opening image seed lives
26
+ * in the bootstrap).
15
27
  *
16
28
  * Failure policy mirrors the Helios dispatcher: every command is wrapped in a
17
29
  * try/catch. A clean abort is silent; any other failure is logged and skipped
@@ -33,8 +45,10 @@ import type { HeliosReactorBridge } from './heliosCommandDispatcher';
33
45
  * - `pause` / `resume` / `reset` — lifecycle.
34
46
  * - `set_seed` — deterministic seed.
35
47
  *
36
- * NOTE: there is deliberately NO `swap_seed` variant — LongLive is
37
- * text-to-video and has no image-conditioning surface.
48
+ * NOTE: there is deliberately NO `swap_seed` variant in THIS steering union —
49
+ * the in-session follow-up shots are text. LongLive's OPENING image seed (the
50
+ * frozen-playhead frame) is conditioned in `bootstrapLongLiveSceneInReactor`
51
+ * (capability-driven Path A / Path B), not here.
38
52
  */
39
53
  export type LongLiveCommand = {
40
54
  type: 'set_shot';
@@ -67,8 +81,9 @@ export type LongLiveCommand = {
67
81
  * `Pick` so client-core takes NO runtime SDK dependency and the same mockable
68
82
  * bridge works for both dispatchers. Deliberately NARROWER than
69
83
  * `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`).
84
+ * `uploadFile` (the steering follow-ups are text; the opening image seed lives
85
+ * in `bootstrapLongLiveSceneInReactor`), no `videoId` / `imageId` /
86
+ * `entityContext`.
72
87
  */
73
88
  export interface LongLiveToolContext {
74
89
  reactor: Pick<HeliosReactorBridge, 'sendCommand'>;
@@ -1 +1 @@
1
- {"version":3,"file":"longLiveCommandDispatcher.d.ts","sourceRoot":"","sources":["../../src/reactor/longLiveCommandDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;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,CAAC;AAErE;;;;;;;;;;;;;;;;;;;GAmBG;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;;;;;;;;;;GAUG;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"}
@@ -4,14 +4,26 @@
4
4
  * The {@link dispatchHeliosCommand} analogue for the Reactor LongLive-v2
5
5
  * world model. SAME Reactor transport (JWT / `main_video` track) as Helios —
6
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).
7
+ * differs: LongLive STEERS with `set_shot`/`scene_cut`/`schedule_shot`/…
8
+ * (where Helios uses `set_scene`/`set_prompt`) and has a hard `scene_cut` (a
9
+ * memory-purging transition Helios lacks).
10
+ *
11
+ * SCOPE OF THIS DISPATCHER: it handles the in-session STEERING follow-up shots
12
+ * (the composer loop after the world is live), which are TEXT commands — so it
13
+ * needs no image surface. The OPENING image seed (LongLive accepts the
14
+ * frozen-playhead frame on the watch pane, EXACTLY like Helios) is handled by
15
+ * `bootstrapLongLiveSceneInReactor` in `longLiveSceneEntry.ts`, which probes the
16
+ * live session's advertised `Capabilities.commands` and either uploads the
17
+ * frame to an advertised image command (Path A) or sends a vision-grounded
18
+ * `set_shot` (Path B). Whether LongLive accepts a TRUE image command is a
19
+ * per-model server-declared fact read at runtime — NOT the long-assumed
20
+ * "text-only" claim (which was UNVERIFIED, PR-#448).
10
21
  *
11
22
  * Pure framework-agnostic helper: no React imports, no `@reactor-team/js-sdk`
12
23
  * dependency. It reuses the structural {@link HeliosReactorBridge}
13
24
  * `sendCommand` surface via `Pick` (no rename — additive-only) but takes NO
14
- * `uploadFile` (LongLive has no image path).
25
+ * `uploadFile` (the steering follow-ups are text; the opening image seed lives
26
+ * in the bootstrap).
15
27
  *
16
28
  * Failure policy mirrors the Helios dispatcher: every command is wrapped in a
17
29
  * try/catch. A clean abort is silent; any other failure is logged and skipped