@konitif/workbench 0.284.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +54 -0
  3. package/dist/application/boot/applicationBoot.d.ts +48 -0
  4. package/dist/application/boot/applicationBoot.js +174 -0
  5. package/dist/application/experiment/ControlledExperimentCampaign.d.ts +12 -0
  6. package/dist/application/experiment/ControlledExperimentCampaign.js +159 -0
  7. package/dist/application/experiment/ControlledExperimentRecorder.d.ts +17 -0
  8. package/dist/application/experiment/ControlledExperimentRecorder.js +215 -0
  9. package/dist/application/i18n/WorkbenchTranslationRegistry.d.ts +19 -0
  10. package/dist/application/i18n/WorkbenchTranslationRegistry.js +179 -0
  11. package/dist/application/layout/surfaceCommandRouter.d.ts +18 -0
  12. package/dist/application/layout/surfaceCommandRouter.js +247 -0
  13. package/dist/application/physics/NoopPhysicsBackend.d.ts +2 -0
  14. package/dist/application/physics/NoopPhysicsBackend.js +2 -0
  15. package/dist/application/physics/PhysicsService.d.ts +2 -0
  16. package/dist/application/physics/PhysicsService.js +2 -0
  17. package/dist/application/project/ProjectManifest.d.ts +15 -0
  18. package/dist/application/project/ProjectManifest.js +107 -0
  19. package/dist/application/repository/RepositoryPreflightEngine.d.ts +6 -0
  20. package/dist/application/repository/RepositoryPreflightEngine.js +301 -0
  21. package/dist/application/runtime/RuntimeBackendConnection.d.ts +9 -0
  22. package/dist/application/runtime/RuntimeBackendConnection.js +34 -0
  23. package/dist/application/runtime/RuntimeBackendSubscription.d.ts +8 -0
  24. package/dist/application/runtime/RuntimeBackendSubscription.js +52 -0
  25. package/dist/application/runtime/RuntimeCheckpointStore.d.ts +20 -0
  26. package/dist/application/runtime/RuntimeCheckpointStore.js +65 -0
  27. package/dist/application/runtime/RuntimeLaunchProgress.d.ts +3 -0
  28. package/dist/application/runtime/RuntimeLaunchProgress.js +38 -0
  29. package/dist/application/runtime/RuntimeLaunchStateSnapshot.d.ts +48 -0
  30. package/dist/application/runtime/RuntimeLaunchStateSnapshot.js +73 -0
  31. package/dist/application/runtime/RuntimeObservabilityHub.d.ts +28 -0
  32. package/dist/application/runtime/RuntimeObservabilityHub.js +262 -0
  33. package/dist/application/runtime/RuntimeObservationEvents.d.ts +15 -0
  34. package/dist/application/runtime/RuntimeObservationEvents.js +18 -0
  35. package/dist/application/runtime/RuntimeOffloadManager.d.ts +24 -0
  36. package/dist/application/runtime/RuntimeOffloadManager.js +96 -0
  37. package/dist/application/runtime/RuntimePlanEngine.d.ts +11 -0
  38. package/dist/application/runtime/RuntimePlanEngine.js +67 -0
  39. package/dist/application/runtime/RuntimeProjectionCatalog.d.ts +5 -0
  40. package/dist/application/runtime/RuntimeProjectionCatalog.js +48 -0
  41. package/dist/application/runtime/RuntimeProjectionSession.d.ts +5 -0
  42. package/dist/application/runtime/RuntimeProjectionSession.js +4 -0
  43. package/dist/application/runtime/RuntimeProjectionSessionKeys.d.ts +5 -0
  44. package/dist/application/runtime/RuntimeProjectionSessionKeys.js +10 -0
  45. package/dist/application/runtime/RuntimeProjectionSessionReducers.d.ts +7 -0
  46. package/dist/application/runtime/RuntimeProjectionSessionReducers.js +101 -0
  47. package/dist/application/runtime/RuntimeProjectionSessionSerialization.d.ts +5 -0
  48. package/dist/application/runtime/RuntimeProjectionSessionSerialization.js +89 -0
  49. package/dist/application/runtime/RuntimeProjectionSessionSharedState.d.ts +3 -0
  50. package/dist/application/runtime/RuntimeProjectionSessionSharedState.js +53 -0
  51. package/dist/application/runtime/RuntimeProjectionSessionTypes.d.ts +38 -0
  52. package/dist/application/runtime/RuntimeProjectionSessionTypes.js +1 -0
  53. package/dist/application/runtime/RuntimeProjectionViewerSessionSync.d.ts +29 -0
  54. package/dist/application/runtime/RuntimeProjectionViewerSessionSync.js +39 -0
  55. package/dist/application/runtime/RuntimeProjectionViewerSessionUpdates.d.ts +27 -0
  56. package/dist/application/runtime/RuntimeProjectionViewerSessionUpdates.js +38 -0
  57. package/dist/application/runtime/RuntimeRegistryOwner.d.ts +20 -0
  58. package/dist/application/runtime/RuntimeRegistryOwner.js +71 -0
  59. package/dist/application/runtime/RuntimeRegistrySnapshots.d.ts +6 -0
  60. package/dist/application/runtime/RuntimeRegistrySnapshots.js +51 -0
  61. package/dist/application/runtime/RuntimeRegistryTypes.d.ts +29 -0
  62. package/dist/application/runtime/RuntimeRegistryTypes.js +1 -0
  63. package/dist/application/runtime/RuntimeSharedState.d.ts +6 -0
  64. package/dist/application/runtime/RuntimeSharedState.js +47 -0
  65. package/dist/application/runtime/WorkbenchRuntimeCore.d.ts +82 -0
  66. package/dist/application/runtime/WorkbenchRuntimeCore.js +463 -0
  67. package/dist/application/runtime/WorkbenchRuntimeSanitizers.d.ts +9 -0
  68. package/dist/application/runtime/WorkbenchRuntimeSanitizers.js +62 -0
  69. package/dist/application/shell/state.d.ts +22 -0
  70. package/dist/application/shell/state.js +308 -0
  71. package/dist/application/widgets/createWorkbenchWidgetAdapter.d.ts +9 -0
  72. package/dist/application/widgets/createWorkbenchWidgetAdapter.js +30 -0
  73. package/dist/application/workspace/canonicalizeLayout.d.ts +2 -0
  74. package/dist/application/workspace/canonicalizeLayout.js +91 -0
  75. package/dist/application/workspace/closePanel.d.ts +6 -0
  76. package/dist/application/workspace/closePanel.js +43 -0
  77. package/dist/application/workspace/collapseSplit.d.ts +7 -0
  78. package/dist/application/workspace/collapseSplit.js +45 -0
  79. package/dist/application/workspace/collapseSplitBoundary.d.ts +8 -0
  80. package/dist/application/workspace/collapseSplitBoundary.js +106 -0
  81. package/dist/application/workspace/commands.d.ts +71 -0
  82. package/dist/application/workspace/commands.js +216 -0
  83. package/dist/application/workspace/createPeripheralBands.d.ts +14 -0
  84. package/dist/application/workspace/createPeripheralBands.js +62 -0
  85. package/dist/application/workspace/createWorkspace.d.ts +7 -0
  86. package/dist/application/workspace/createWorkspace.js +12 -0
  87. package/dist/application/workspace/detachPanelToWindow.d.ts +12 -0
  88. package/dist/application/workspace/detachPanelToWindow.js +57 -0
  89. package/dist/application/workspace/dockPanel.d.ts +10 -0
  90. package/dist/application/workspace/dockPanel.js +399 -0
  91. package/dist/application/workspace/finalizeWorkspace.d.ts +4 -0
  92. package/dist/application/workspace/finalizeWorkspace.js +23 -0
  93. package/dist/application/workspace/focusPanel.d.ts +2 -0
  94. package/dist/application/workspace/focusPanel.js +19 -0
  95. package/dist/application/workspace/joinPanelArea.d.ts +13 -0
  96. package/dist/application/workspace/joinPanelArea.js +281 -0
  97. package/dist/application/workspace/layoutInteraction.d.ts +176 -0
  98. package/dist/application/workspace/layoutInteraction.js +852 -0
  99. package/dist/application/workspace/layoutTree.d.ts +34 -0
  100. package/dist/application/workspace/layoutTree.js +135 -0
  101. package/dist/application/workspace/openTool.d.ts +15 -0
  102. package/dist/application/workspace/openTool.js +89 -0
  103. package/dist/application/workspace/presetArtifacts.d.ts +60 -0
  104. package/dist/application/workspace/presetArtifacts.js +231 -0
  105. package/dist/application/workspace/presets.d.ts +5 -0
  106. package/dist/application/workspace/presets.js +12 -0
  107. package/dist/application/workspace/reattachWorkspaceWindow.d.ts +7 -0
  108. package/dist/application/workspace/reattachWorkspaceWindow.js +24 -0
  109. package/dist/application/workspace/resizeSplit.d.ts +7 -0
  110. package/dist/application/workspace/resizeSplit.js +12 -0
  111. package/dist/application/workspace/resizeSplitBoundary.d.ts +10 -0
  112. package/dist/application/workspace/resizeSplitBoundary.js +115 -0
  113. package/dist/application/workspace/runToolShellCommand.d.ts +11 -0
  114. package/dist/application/workspace/runToolShellCommand.js +133 -0
  115. package/dist/application/workspace/session.d.ts +9 -0
  116. package/dist/application/workspace/session.js +36 -0
  117. package/dist/application/workspace/setActiveStackChild.d.ts +7 -0
  118. package/dist/application/workspace/setActiveStackChild.js +12 -0
  119. package/dist/application/workspace/setDesignSystemThemeSession.d.ts +3 -0
  120. package/dist/application/workspace/setDesignSystemThemeSession.js +12 -0
  121. package/dist/application/workspace/setPanelFullscreenToggleVisibility.d.ts +7 -0
  122. package/dist/application/workspace/setPanelFullscreenToggleVisibility.js +7 -0
  123. package/dist/application/workspace/setStackHeaderVisibility.d.ts +7 -0
  124. package/dist/application/workspace/setStackHeaderVisibility.js +7 -0
  125. package/dist/application/workspace/setToolPanelTitleOverride.d.ts +9 -0
  126. package/dist/application/workspace/setToolPanelTitleOverride.js +33 -0
  127. package/dist/application/workspace/setToolShellStatus.d.ts +8 -0
  128. package/dist/application/workspace/setToolShellStatus.js +32 -0
  129. package/dist/application/workspace/setWorkspaceFullscreenPanel.d.ts +3 -0
  130. package/dist/application/workspace/setWorkspaceFullscreenPanel.js +26 -0
  131. package/dist/application/workspace/snapshots.d.ts +10 -0
  132. package/dist/application/workspace/snapshots.js +34 -0
  133. package/dist/application/workspace/splitPanel.d.ts +10 -0
  134. package/dist/application/workspace/splitPanel.js +21 -0
  135. package/dist/application/workspace/subdividePanel.d.ts +39 -0
  136. package/dist/application/workspace/subdividePanel.js +128 -0
  137. package/dist/application/workspace/swapPanelArea.d.ts +11 -0
  138. package/dist/application/workspace/swapPanelArea.js +163 -0
  139. package/dist/application/workspace/targetWindow.d.ts +4 -0
  140. package/dist/application/workspace/targetWindow.js +22 -0
  141. package/dist/application/workspace/toolCapabilities.d.ts +11 -0
  142. package/dist/application/workspace/toolCapabilities.js +59 -0
  143. package/dist/application/workspace/toolRuntime.d.ts +32 -0
  144. package/dist/application/workspace/toolRuntime.js +65 -0
  145. package/dist/application/workspace/updateToolState.d.ts +8 -0
  146. package/dist/application/workspace/updateToolState.js +20 -0
  147. package/dist/boot/applicationBoot.d.ts +1 -0
  148. package/dist/boot/applicationBoot.js +2 -0
  149. package/dist/boot/events.d.ts +43 -0
  150. package/dist/boot/events.js +16 -0
  151. package/dist/boot/executor.d.ts +13 -0
  152. package/dist/boot/executor.js +210 -0
  153. package/dist/boot/graph.d.ts +16 -0
  154. package/dist/boot/graph.js +126 -0
  155. package/dist/boot/index.d.ts +2 -0
  156. package/dist/boot/index.js +3 -0
  157. package/dist/boot/mechanism.d.ts +5 -0
  158. package/dist/boot/mechanism.js +6 -0
  159. package/dist/boot/projection.d.ts +72 -0
  160. package/dist/boot/projection.js +398 -0
  161. package/dist/boot/types.d.ts +80 -0
  162. package/dist/boot/types.js +46 -0
  163. package/dist/domain/composition/dockArrangement.d.ts +57 -0
  164. package/dist/domain/composition/dockArrangement.js +304 -0
  165. package/dist/domain/composition/docking.d.ts +68 -0
  166. package/dist/domain/composition/docking.js +187 -0
  167. package/dist/domain/design-system/themeSession.d.ts +12 -0
  168. package/dist/domain/design-system/themeSession.js +42 -0
  169. package/dist/domain/experiment/model.d.ts +149 -0
  170. package/dist/domain/experiment/model.js +1 -0
  171. package/dist/domain/i18n/languageRegistry.d.ts +57 -0
  172. package/dist/domain/i18n/languageRegistry.js +1 -0
  173. package/dist/domain/i18n/model.d.ts +31 -0
  174. package/dist/domain/i18n/model.js +1 -0
  175. package/dist/domain/icon/model.d.ts +8 -0
  176. package/dist/domain/icon/model.js +1 -0
  177. package/dist/domain/input/interactionBindings.d.ts +2 -0
  178. package/dist/domain/input/interactionBindings.js +2 -0
  179. package/dist/domain/launch/model.d.ts +58 -0
  180. package/dist/domain/launch/model.js +109 -0
  181. package/dist/domain/layout/interaction.d.ts +90 -0
  182. package/dist/domain/layout/interaction.js +1 -0
  183. package/dist/domain/layout/model.d.ts +28 -0
  184. package/dist/domain/layout/model.js +1 -0
  185. package/dist/domain/layout/selectors.d.ts +12 -0
  186. package/dist/domain/layout/selectors.js +84 -0
  187. package/dist/domain/layout/surfaceProjection.d.ts +56 -0
  188. package/dist/domain/layout/surfaceProjection.js +249 -0
  189. package/dist/domain/layout/validation.d.ts +9 -0
  190. package/dist/domain/layout/validation.js +71 -0
  191. package/dist/domain/panel/model.d.ts +9 -0
  192. package/dist/domain/panel/model.js +1 -0
  193. package/dist/domain/physics/colliderGeometry.d.ts +2 -0
  194. package/dist/domain/physics/colliderGeometry.js +1 -0
  195. package/dist/domain/physics/contracts.d.ts +2 -0
  196. package/dist/domain/physics/contracts.js +1 -0
  197. package/dist/domain/physics/kinematicBinding.d.ts +22 -0
  198. package/dist/domain/physics/kinematicBinding.js +1 -0
  199. package/dist/domain/physics/model.d.ts +4 -0
  200. package/dist/domain/physics/model.js +1 -0
  201. package/dist/domain/physics/mujoco.d.ts +5 -0
  202. package/dist/domain/physics/mujoco.js +1 -0
  203. package/dist/domain/physics/observationProfile.d.ts +2 -0
  204. package/dist/domain/physics/observationProfile.js +1 -0
  205. package/dist/domain/physics/presentationBinding.d.ts +6 -0
  206. package/dist/domain/physics/presentationBinding.js +1 -0
  207. package/dist/domain/physics/simulationProfile.d.ts +2 -0
  208. package/dist/domain/physics/simulationProfile.js +1 -0
  209. package/dist/domain/physics/visualAlignment.d.ts +17 -0
  210. package/dist/domain/physics/visualAlignment.js +1 -0
  211. package/dist/domain/presentation/readingLevel.d.ts +12 -0
  212. package/dist/domain/presentation/readingLevel.js +29 -0
  213. package/dist/domain/project/model.d.ts +55 -0
  214. package/dist/domain/project/model.js +1 -0
  215. package/dist/domain/repo-quality/model.d.ts +111 -0
  216. package/dist/domain/repo-quality/model.js +1 -0
  217. package/dist/domain/repository/model.d.ts +110 -0
  218. package/dist/domain/repository/model.js +1 -0
  219. package/dist/domain/runtime/checkpoint.d.ts +37 -0
  220. package/dist/domain/runtime/checkpoint.js +87 -0
  221. package/dist/domain/runtime/hydration.d.ts +26 -0
  222. package/dist/domain/runtime/hydration.js +92 -0
  223. package/dist/domain/runtime/initialization.d.ts +25 -0
  224. package/dist/domain/runtime/initialization.js +87 -0
  225. package/dist/domain/runtime/lifecycle.d.ts +51 -0
  226. package/dist/domain/runtime/lifecycle.js +118 -0
  227. package/dist/domain/runtime/model.d.ts +252 -0
  228. package/dist/domain/runtime/model.js +13 -0
  229. package/dist/domain/runtime/observability.d.ts +142 -0
  230. package/dist/domain/runtime/observability.js +1 -0
  231. package/dist/domain/runtime/offload.d.ts +56 -0
  232. package/dist/domain/runtime/offload.js +129 -0
  233. package/dist/domain/runtime/plan.d.ts +26 -0
  234. package/dist/domain/runtime/plan.js +1 -0
  235. package/dist/domain/runtime/qualityPolicy.d.ts +28 -0
  236. package/dist/domain/runtime/qualityPolicy.js +97 -0
  237. package/dist/domain/runtime/recovery.d.ts +61 -0
  238. package/dist/domain/runtime/recovery.js +129 -0
  239. package/dist/domain/runtime/suspension.d.ts +32 -0
  240. package/dist/domain/runtime/suspension.js +107 -0
  241. package/dist/domain/runtime/teardown.d.ts +33 -0
  242. package/dist/domain/runtime/teardown.js +109 -0
  243. package/dist/domain/shared/id.d.ts +1 -0
  244. package/dist/domain/shared/id.js +5 -0
  245. package/dist/domain/shared/json.d.ts +9 -0
  246. package/dist/domain/shared/json.js +24 -0
  247. package/dist/domain/shell/model.d.ts +40 -0
  248. package/dist/domain/shell/model.js +1 -0
  249. package/dist/domain/shell/runtime.d.ts +76 -0
  250. package/dist/domain/shell/runtime.js +40 -0
  251. package/dist/domain/surface/model.d.ts +97 -0
  252. package/dist/domain/surface/model.js +71 -0
  253. package/dist/domain/temporal/model.d.ts +95 -0
  254. package/dist/domain/temporal/model.js +45 -0
  255. package/dist/domain/tool/internalTab.d.ts +11 -0
  256. package/dist/domain/tool/internalTab.js +20 -0
  257. package/dist/domain/tool/model.d.ts +207 -0
  258. package/dist/domain/tool/model.js +1 -0
  259. package/dist/domain/tool/runtime.d.ts +122 -0
  260. package/dist/domain/tool/runtime.js +2 -0
  261. package/dist/domain/tool/shell.d.ts +38 -0
  262. package/dist/domain/tool/shell.js +175 -0
  263. package/dist/domain/widget/composition.d.ts +79 -0
  264. package/dist/domain/widget/composition.js +250 -0
  265. package/dist/domain/widget/model.d.ts +35 -0
  266. package/dist/domain/widget/model.js +8 -0
  267. package/dist/domain/widget/toolDock.d.ts +30 -0
  268. package/dist/domain/widget/toolDock.js +52 -0
  269. package/dist/domain/workbench/model.d.ts +35 -0
  270. package/dist/domain/workbench/model.js +1 -0
  271. package/dist/domain/workbench/routing.d.ts +17 -0
  272. package/dist/domain/workbench/routing.js +72 -0
  273. package/dist/domain/workspace/factories.d.ts +9 -0
  274. package/dist/domain/workspace/factories.js +47 -0
  275. package/dist/domain/workspace/model.d.ts +23 -0
  276. package/dist/domain/workspace/model.js +1 -0
  277. package/dist/domain/workspace/persistence.d.ts +5 -0
  278. package/dist/domain/workspace/persistence.js +1 -0
  279. package/dist/domain/workspace/selectors.d.ts +19 -0
  280. package/dist/domain/workspace/selectors.js +90 -0
  281. package/dist/domain/workspace/session.d.ts +9 -0
  282. package/dist/domain/workspace/session.js +1 -0
  283. package/dist/domain/workspace/validation.d.ts +10 -0
  284. package/dist/domain/workspace/validation.js +231 -0
  285. package/dist/hosting.d.ts +15 -0
  286. package/dist/hosting.js +12 -0
  287. package/dist/index.d.ts +111 -0
  288. package/dist/index.js +111 -0
  289. package/dist/infrastructure/audio/WorkbenchAudioManager.d.ts +36 -0
  290. package/dist/infrastructure/audio/WorkbenchAudioManager.js +100 -0
  291. package/dist/infrastructure/backend/HttpWorkbenchBackendClient.d.ts +30 -0
  292. package/dist/infrastructure/backend/HttpWorkbenchBackendClient.js +314 -0
  293. package/dist/infrastructure/persistence/LocalWorkspacePersistence.d.ts +8 -0
  294. package/dist/infrastructure/persistence/LocalWorkspacePersistence.js +29 -0
  295. package/dist/infrastructure/surfaces/InMemorySurfaceViewerRegistry.d.ts +58 -0
  296. package/dist/infrastructure/surfaces/InMemorySurfaceViewerRegistry.js +121 -0
  297. package/dist/infrastructure/temporal/InMemoryTemporalDialectRegistry.d.ts +8 -0
  298. package/dist/infrastructure/temporal/InMemoryTemporalDialectRegistry.js +38 -0
  299. package/dist/infrastructure/tools/InMemoryToolRegistry.d.ts +46 -0
  300. package/dist/infrastructure/tools/InMemoryToolRegistry.js +82 -0
  301. package/dist/infrastructure/widgets/InMemoryShellWidgetRegistry.d.ts +42 -0
  302. package/dist/infrastructure/widgets/InMemoryShellWidgetRegistry.js +66 -0
  303. package/dist/infrastructure/widgets/InMemoryWorkbenchWidgetRegistry.d.ts +20 -0
  304. package/dist/infrastructure/widgets/InMemoryWorkbenchWidgetRegistry.js +35 -0
  305. package/dist/infrastructure/workbenches/InMemoryWorkbenchRegistry.d.ts +7 -0
  306. package/dist/infrastructure/workbenches/InMemoryWorkbenchRegistry.js +28 -0
  307. package/dist/physics-runtime.d.ts +4 -0
  308. package/dist/physics-runtime.js +2 -0
  309. package/dist/stage/easing.d.ts +5 -0
  310. package/dist/stage/easing.js +15 -0
  311. package/dist/stage/index.d.ts +6 -0
  312. package/dist/stage/index.js +6 -0
  313. package/dist/stage/projection.d.ts +4 -0
  314. package/dist/stage/projection.js +74 -0
  315. package/dist/stage/stageRuntime.d.ts +2 -0
  316. package/dist/stage/stageRuntime.js +32 -0
  317. package/dist/stage/timeline.d.ts +3 -0
  318. package/dist/stage/timeline.js +69 -0
  319. package/dist/stage/tween.d.ts +3 -0
  320. package/dist/stage/tween.js +104 -0
  321. package/dist/stage/types.d.ts +104 -0
  322. package/dist/stage/types.js +30 -0
  323. package/dist/temporal/clock/audioClock.d.ts +1 -0
  324. package/dist/temporal/clock/audioClock.js +1 -0
  325. package/dist/temporal/clock/clockGraph.d.ts +1 -0
  326. package/dist/temporal/clock/clockGraph.js +1 -0
  327. package/dist/temporal/clock/clockTypes.d.ts +1 -0
  328. package/dist/temporal/clock/clockTypes.js +1 -0
  329. package/dist/temporal/clock/fixedStepClock.d.ts +1 -0
  330. package/dist/temporal/clock/fixedStepClock.js +1 -0
  331. package/dist/temporal/clock/musicalClock.d.ts +7 -0
  332. package/dist/temporal/clock/musicalClock.js +35 -0
  333. package/dist/temporal/clock/rootClock.d.ts +1 -0
  334. package/dist/temporal/clock/rootClock.js +1 -0
  335. package/dist/temporal/clock/videoClock.d.ts +1 -0
  336. package/dist/temporal/clock/videoClock.js +1 -0
  337. package/dist/temporal/easing/easingFunctions.d.ts +2 -0
  338. package/dist/temporal/easing/easingFunctions.js +19 -0
  339. package/dist/temporal/easing/easingRegistry.d.ts +10 -0
  340. package/dist/temporal/easing/easingRegistry.js +32 -0
  341. package/dist/temporal/easing/easingShaderSource.d.ts +2 -0
  342. package/dist/temporal/easing/easingShaderSource.js +16 -0
  343. package/dist/temporal/easing/easingTypes.d.ts +9 -0
  344. package/dist/temporal/easing/easingTypes.js +1 -0
  345. package/dist/temporal/history/runtimeHistory.d.ts +77 -0
  346. package/dist/temporal/history/runtimeHistory.js +5 -0
  347. package/dist/temporal/history/temporalHistoryCore.d.ts +1 -0
  348. package/dist/temporal/history/temporalHistoryCore.js +1 -0
  349. package/dist/temporal/index.d.ts +20 -0
  350. package/dist/temporal/index.js +20 -0
  351. package/dist/temporal/invalidation/invalidationController.d.ts +1 -0
  352. package/dist/temporal/invalidation/invalidationController.js +1 -0
  353. package/dist/temporal/scheduler/browserSchedulerHost.d.ts +3 -0
  354. package/dist/temporal/scheduler/browserSchedulerHost.js +19 -0
  355. package/dist/temporal/scheduler/frameBudget.d.ts +1 -0
  356. package/dist/temporal/scheduler/frameBudget.js +1 -0
  357. package/dist/temporal/scheduler/temporalScheduler.d.ts +4 -0
  358. package/dist/temporal/scheduler/temporalScheduler.js +6 -0
  359. package/dist/temporal/scheduler/temporalSchedulerCore.d.ts +1 -0
  360. package/dist/temporal/scheduler/temporalSchedulerCore.js +1 -0
  361. package/dist/temporal/scheduler/visibilityPolicy.d.ts +2 -0
  362. package/dist/temporal/scheduler/visibilityPolicy.js +1 -0
  363. package/dist/temporal/transport/temporalTransport.d.ts +1 -0
  364. package/dist/temporal/transport/temporalTransport.js +1 -0
  365. package/dist/temporal/transport/transportScope.d.ts +7 -0
  366. package/dist/temporal/transport/transportScope.js +3 -0
  367. package/dist/temporal/transport/transportTimeline.d.ts +22 -0
  368. package/dist/temporal/transport/transportTimeline.js +36 -0
  369. package/dist/temporal/transport/transportTypes.d.ts +1 -0
  370. package/dist/temporal/transport/transportTypes.js +1 -0
  371. package/dist/workspace-contracts.d.ts +36 -0
  372. package/dist/workspace-contracts.js +28 -0
  373. package/package.json +57 -0
@@ -0,0 +1,118 @@
1
+ export const RUNTIME_LIFECYCLE_ALLOWED_TRANSITIONS = {
2
+ BOOT: ['LAUNCH_GATE', 'SAFE_MODE'],
3
+ LAUNCH_GATE: ['CONTEXT_RESOLVED', 'PREFLIGHT', 'SAFE_MODE'],
4
+ CONTEXT_RESOLVED: ['LAUNCH_GATE', 'PREFLIGHT', 'SAFE_MODE'],
5
+ PREFLIGHT: ['CONTEXT_RESOLVED', 'LAUNCH_GATE', 'PLANNED', 'SAFE_MODE'],
6
+ PLANNED: ['INITIALIZING', 'RECOVERY', 'SAFE_MODE'],
7
+ INITIALIZING: ['HYDRATING', 'RECOVERY', 'SAFE_MODE'],
8
+ HYDRATING: ['RUNNING', 'RECOVERY', 'SAFE_MODE'],
9
+ RUNNING: ['SUSPENDING', 'TEARDOWN', 'RECOVERY'],
10
+ SUSPENDING: ['SUSPENDED', 'TEARDOWN', 'RECOVERY'],
11
+ SUSPENDED: ['RESUMING', 'TEARDOWN', 'SAFE_MODE'],
12
+ RESUMING: ['RUNNING', 'RECOVERY', 'SAFE_MODE'],
13
+ TEARDOWN: ['LAUNCH_GATE', 'INITIALIZING', 'SAFE_MODE'],
14
+ RECOVERY: ['LAUNCH_GATE', 'PREFLIGHT', 'INITIALIZING', 'SAFE_MODE'],
15
+ SAFE_MODE: ['LAUNCH_GATE', 'PREFLIGHT', 'INITIALIZING']
16
+ };
17
+ export const RUNTIME_LIFECYCLE_MACRO_PHASES = {
18
+ BOOT: 'boot',
19
+ LAUNCH_GATE: 'launch',
20
+ CONTEXT_RESOLVED: 'launch',
21
+ PREFLIGHT: 'planning',
22
+ PLANNED: 'planning',
23
+ INITIALIZING: 'initialization',
24
+ HYDRATING: 'hydration',
25
+ RUNNING: 'running',
26
+ SUSPENDING: 'suspension',
27
+ SUSPENDED: 'suspension',
28
+ RESUMING: 'suspension',
29
+ TEARDOWN: 'teardown',
30
+ RECOVERY: 'recovery',
31
+ SAFE_MODE: 'recovery'
32
+ };
33
+ export function createRuntimeLifecycleSnapshot(state = 'LAUNCH_GATE', timestamp = new Date().toISOString()) {
34
+ return {
35
+ state,
36
+ previousState: null,
37
+ transitions: [],
38
+ errors: [],
39
+ updatedAt: timestamp
40
+ };
41
+ }
42
+ export function canTransitionRuntimeLifecycle(from, to) {
43
+ if (!from || from === to) {
44
+ return true;
45
+ }
46
+ return RUNTIME_LIFECYCLE_ALLOWED_TRANSITIONS[from]?.includes(to) ?? false;
47
+ }
48
+ export function transitionRuntimeLifecycleSnapshot(snapshot, to, input) {
49
+ const from = snapshot.state;
50
+ const accepted = canTransitionRuntimeLifecycle(from, to);
51
+ const transition = {
52
+ id: input.id,
53
+ from,
54
+ to,
55
+ accepted,
56
+ timestamp: input.timestamp,
57
+ message: input.message ?? (accepted ? `Runtime lifecycle moved to ${to}` : `Runtime lifecycle rejected ${from} -> ${to}`)
58
+ };
59
+ const maxTransitions = input.maxTransitions ?? 50;
60
+ const maxErrors = input.maxErrors ?? 20;
61
+ if (!accepted) {
62
+ const error = {
63
+ id: input.id,
64
+ from,
65
+ to,
66
+ timestamp: input.timestamp,
67
+ message: transition.message
68
+ };
69
+ return {
70
+ ...snapshot,
71
+ transitions: [transition, ...snapshot.transitions].slice(0, maxTransitions),
72
+ errors: [error, ...snapshot.errors].slice(0, maxErrors),
73
+ updatedAt: input.timestamp
74
+ };
75
+ }
76
+ return {
77
+ state: to,
78
+ previousState: from,
79
+ transitions: [transition, ...snapshot.transitions].slice(0, maxTransitions),
80
+ errors: snapshot.errors.slice(0, maxErrors),
81
+ updatedAt: input.timestamp
82
+ };
83
+ }
84
+ export function resolveRuntimeLifecycleMacroPhase(state) {
85
+ return RUNTIME_LIFECYCLE_MACRO_PHASES[state] ?? 'launch';
86
+ }
87
+ export function resolveRuntimeLifecycleHealth(snapshot) {
88
+ if (snapshot.errors.length > 0 && snapshot.state !== 'RECOVERY' && snapshot.state !== 'SAFE_MODE') {
89
+ return 'blocked';
90
+ }
91
+ switch (snapshot.state) {
92
+ case 'BOOT':
93
+ case 'LAUNCH_GATE':
94
+ case 'CONTEXT_RESOLVED':
95
+ return 'idle';
96
+ case 'RUNNING':
97
+ return 'healthy';
98
+ case 'RECOVERY':
99
+ return 'recovering';
100
+ case 'SAFE_MODE':
101
+ return 'safe-mode';
102
+ default:
103
+ return 'progressing';
104
+ }
105
+ }
106
+ export function createRuntimeLifecycleSummary(snapshot) {
107
+ const latestTransition = snapshot.transitions[0] ?? null;
108
+ return {
109
+ state: snapshot.state,
110
+ previousState: snapshot.previousState,
111
+ macroPhase: resolveRuntimeLifecycleMacroPhase(snapshot.state),
112
+ health: resolveRuntimeLifecycleHealth(snapshot),
113
+ acceptedTransitions: snapshot.transitions.filter((transition) => transition.accepted).length,
114
+ rejectedTransitions: snapshot.transitions.filter((transition) => !transition.accepted).length,
115
+ latestTransitionAt: latestTransition?.timestamp ?? null,
116
+ updatedAt: snapshot.updatedAt
117
+ };
118
+ }
@@ -0,0 +1,252 @@
1
+ import type { JsonValue } from "../shared/json.js";
2
+ import type { LaunchPhase, LaunchPreflightSummary, LaunchState, LaunchTarget } from "../launch/model.js";
3
+ import type { RepositoryCoverageSnapshot, RepositoryInspectionInput } from "../repository/model.js";
4
+ import type { RuntimeLifecycleSnapshot } from "./lifecycle.js";
5
+ import type { RuntimeObservabilitySnapshot } from "./observability.js";
6
+ export type WorkbenchRuntimeConnectionStatus = 'idle' | 'connecting' | 'online' | 'offline' | 'error';
7
+ export type WorkbenchRuntimeProjectionCacheStatus = 'hit' | 'miss' | 'refreshed' | 'bypass' | 'local';
8
+ export type WorkbenchRuntimeDiagnosticSeverity = 'info' | 'warning' | 'error';
9
+ export type WorkbenchRuntimeProjectionSessionStatus = 'opening' | 'open' | 'refreshing' | 'stale' | 'error';
10
+ export type RuntimeProjectionMode = 'self' | 'repository';
11
+ export type RuntimeInspectableStatus = 'active' | 'idle' | 'degraded' | 'error' | 'unknown';
12
+ export type RuntimeDebugEventLevel = 'debug' | 'info' | 'warning' | 'error';
13
+ export type WorkbenchRuntimeEventType = 'runtime.ready' | 'runtime.heartbeat' | 'source.changed' | 'source.watch-error' | 'workspace.project-loaded' | 'projection.catalog' | 'projection.loaded' | 'projection.invalidated' | 'projection.error' | 'shared-state.updated' | 'message';
14
+ export declare const WORKBENCH_RUNTIME_EVENT_TYPES: WorkbenchRuntimeEventType[];
15
+ export interface WorkbenchRuntimeBackendHealth {
16
+ status: 'ok' | 'degraded' | 'error';
17
+ service: string;
18
+ mode: string;
19
+ }
20
+ export interface WorkbenchRuntimeWorkspaceDescriptor {
21
+ name: string;
22
+ mode: string;
23
+ workspaceRoot: string;
24
+ project?: WorkbenchRuntimeProjectDescriptor | null;
25
+ repositoryInspection?: RepositoryInspectionInput | null;
26
+ repositoryCoverage?: RepositoryCoverageSnapshot | null;
27
+ capabilities: string[];
28
+ projections: Record<string, string[]>;
29
+ }
30
+ export interface WorkbenchRuntimeAppPreviewDescriptor {
31
+ status: 'ready';
32
+ origin: string;
33
+ url: string;
34
+ proxyUrl?: string;
35
+ generatedAt: string;
36
+ logs?: WorkbenchRuntimeAppPreviewLogEntry[];
37
+ project: {
38
+ id: string;
39
+ label: string;
40
+ root: string;
41
+ };
42
+ }
43
+ export interface WorkbenchRuntimeAppPreviewLogEntry {
44
+ id: string;
45
+ level: 'debug' | 'info' | 'warning' | 'error';
46
+ message: string;
47
+ timestamp: string;
48
+ }
49
+ export interface WorkbenchRuntimeProjectDescriptor {
50
+ id: string;
51
+ label: string;
52
+ root: string;
53
+ workspaceRoot: string;
54
+ isWorkspaceProject: boolean;
55
+ faviconDataUrl?: string | null;
56
+ primaryLocale?: string | null;
57
+ locales?: string[];
58
+ i18n?: {
59
+ primaryLocale?: string | null;
60
+ locales?: string[];
61
+ } | null;
62
+ componentSources: string[];
63
+ componentSourceCount: number;
64
+ }
65
+ export interface WorkbenchRuntimeDiagnostic {
66
+ id: string;
67
+ severity: WorkbenchRuntimeDiagnosticSeverity;
68
+ title: string;
69
+ message: string;
70
+ sourceFile?: string;
71
+ recommendation?: string;
72
+ }
73
+ export interface WorkbenchRuntimeProjectionEnvelope<TPayload = unknown> {
74
+ projectionKind: string;
75
+ sourceFile: string;
76
+ version: string;
77
+ generatedAt: string;
78
+ cacheStatus: WorkbenchRuntimeProjectionCacheStatus;
79
+ diagnostics: WorkbenchRuntimeDiagnostic[];
80
+ payload: TPayload;
81
+ }
82
+ export interface WorkbenchRuntimeProjectionTarget {
83
+ projectionKind: string;
84
+ sourceFile: string;
85
+ }
86
+ export interface WorkbenchRuntimeProjectionSessionPatch {
87
+ target: WorkbenchRuntimeProjectionTarget;
88
+ status?: WorkbenchRuntimeProjectionSessionStatus;
89
+ selectedEntityId?: string | null;
90
+ focusedEntityId?: string | null;
91
+ lastError?: string | null;
92
+ }
93
+ export interface WorkbenchRuntimeProjectionCatalogEntry {
94
+ projectionKind: string;
95
+ version: string;
96
+ sources: string[];
97
+ }
98
+ export interface RuntimeProjectionMetadata {
99
+ mode: RuntimeProjectionMode;
100
+ generatedAt: string;
101
+ source: string;
102
+ version: string;
103
+ repo?: {
104
+ label: string;
105
+ root: string;
106
+ branch?: string | null;
107
+ commit?: string | null;
108
+ } | null;
109
+ build?: {
110
+ version?: string | null;
111
+ environment?: string | null;
112
+ generatedAt?: string | null;
113
+ } | null;
114
+ }
115
+ export interface RuntimeStoreSnapshot {
116
+ id: string;
117
+ label: string;
118
+ scope: string;
119
+ status: RuntimeInspectableStatus;
120
+ value: JsonValue;
121
+ updatedAt: string;
122
+ metadata: JsonValue;
123
+ }
124
+ export interface RuntimeServiceSnapshot {
125
+ id: string;
126
+ label: string;
127
+ status: RuntimeInspectableStatus;
128
+ capabilities: string[];
129
+ endpoint?: string | null;
130
+ lastError?: string | null;
131
+ updatedAt: string;
132
+ metadata: JsonValue;
133
+ }
134
+ export interface RuntimeManagerSnapshot {
135
+ id: string;
136
+ label: string;
137
+ status: RuntimeInspectableStatus;
138
+ responsibilities: string[];
139
+ lastError?: string | null;
140
+ updatedAt: string;
141
+ metadata: JsonValue;
142
+ }
143
+ export interface RuntimeDebugEvent {
144
+ id: string;
145
+ level: RuntimeDebugEventLevel;
146
+ type: string;
147
+ message: string;
148
+ scope?: string | null;
149
+ timestamp: string;
150
+ payload?: JsonValue;
151
+ }
152
+ export interface RuntimeStackTrace {
153
+ id: string;
154
+ message: string;
155
+ scope?: string | null;
156
+ timestamp: string;
157
+ frames: string[];
158
+ cause?: string | null;
159
+ }
160
+ export interface RuntimeLaunchTransition {
161
+ id: string;
162
+ phase: LaunchPhase;
163
+ previousPhase?: LaunchPhase | null;
164
+ target: LaunchTarget | null;
165
+ timestamp: string;
166
+ message: string;
167
+ }
168
+ export interface RuntimeLaunchProgressSnapshot {
169
+ phase: LaunchPhase;
170
+ status: string;
171
+ progress: number;
172
+ activeStepId: string | null;
173
+ completedSteps: number;
174
+ totalSteps: number;
175
+ readyChecks: number;
176
+ warningChecks: number;
177
+ blockedChecks: number;
178
+ }
179
+ export interface RuntimeLaunchSnapshot {
180
+ phase: LaunchPhase;
181
+ target: LaunchTarget | null;
182
+ preflight: LaunchPreflightSummary | null;
183
+ plan: LaunchState['plan'];
184
+ initialization: LaunchState['initialization'];
185
+ hydration: LaunchState['hydration'];
186
+ progress: RuntimeLaunchProgressSnapshot;
187
+ state: LaunchState;
188
+ transitions: RuntimeLaunchTransition[];
189
+ updatedAt: string;
190
+ }
191
+ export interface WorkbenchRuntimeProjectionInvalidationResult {
192
+ projectionKind: string;
193
+ sourceFile: string;
194
+ invalidated: boolean;
195
+ requestedAt: string;
196
+ }
197
+ export type WorkbenchRuntimeSharedStateScope = 'product' | 'session' | 'gesture';
198
+ export interface WorkbenchRuntimeSharedStateEntry {
199
+ key: string;
200
+ scope: WorkbenchRuntimeSharedStateScope;
201
+ value: JsonValue;
202
+ version: number;
203
+ revision: string;
204
+ updatedAt: string;
205
+ originClientId: string | null;
206
+ }
207
+ export interface WorkbenchRuntimeSharedStatePatch {
208
+ scope?: WorkbenchRuntimeSharedStateScope;
209
+ value: JsonValue;
210
+ expectedVersion?: number;
211
+ originClientId?: string | null;
212
+ }
213
+ export interface WorkbenchRuntimeObservationEvent {
214
+ type: WorkbenchRuntimeEventType;
215
+ payload: unknown;
216
+ receivedAt: string;
217
+ }
218
+ export interface WorkbenchRuntimeSnapshot {
219
+ status: WorkbenchRuntimeConnectionStatus;
220
+ backendUrl: string;
221
+ projectionMode?: RuntimeProjectionMode;
222
+ metadata?: RuntimeProjectionMetadata;
223
+ health: WorkbenchRuntimeBackendHealth | null;
224
+ workspace: WorkbenchRuntimeWorkspaceDescriptor | null;
225
+ projectionCatalog: WorkbenchRuntimeProjectionCatalogEntry[];
226
+ stores?: RuntimeStoreSnapshot[];
227
+ services?: RuntimeServiceSnapshot[];
228
+ managers?: RuntimeManagerSnapshot[];
229
+ debugEvents?: RuntimeDebugEvent[];
230
+ stackTraces?: RuntimeStackTrace[];
231
+ launch?: RuntimeLaunchSnapshot | null;
232
+ lifecycle?: RuntimeLifecycleSnapshot | null;
233
+ observability?: RuntimeObservabilitySnapshot | null;
234
+ sharedState: WorkbenchRuntimeSharedStateEntry[];
235
+ events: WorkbenchRuntimeObservationEvent[];
236
+ lastError: string | null;
237
+ }
238
+ export interface WorkbenchRuntimeSubscription {
239
+ dispose(): void;
240
+ }
241
+ export interface WorkbenchRuntimeBackendPort {
242
+ readonly baseUrl: string;
243
+ getHealth(): Promise<WorkbenchRuntimeBackendHealth>;
244
+ getWorkspace(): Promise<WorkbenchRuntimeWorkspaceDescriptor>;
245
+ getProjection<TProjection = unknown>(kind: string, params?: Record<string, string>): Promise<TProjection>;
246
+ invalidateProjection(kind: string, params?: Record<string, string>): Promise<WorkbenchRuntimeProjectionInvalidationResult>;
247
+ loadProject?(root: string): Promise<WorkbenchRuntimeWorkspaceDescriptor>;
248
+ startAppPreview?(root?: string): Promise<WorkbenchRuntimeAppPreviewDescriptor>;
249
+ listSharedState?(): Promise<WorkbenchRuntimeSharedStateEntry[]>;
250
+ patchSharedState?(key: string, patch: WorkbenchRuntimeSharedStatePatch): Promise<WorkbenchRuntimeSharedStateEntry>;
251
+ subscribeToEvents(onEvent: (event: WorkbenchRuntimeObservationEvent) => void, onError: (error: Error) => void): WorkbenchRuntimeSubscription;
252
+ }
@@ -0,0 +1,13 @@
1
+ export const WORKBENCH_RUNTIME_EVENT_TYPES = [
2
+ 'runtime.ready',
3
+ 'runtime.heartbeat',
4
+ 'source.changed',
5
+ 'source.watch-error',
6
+ 'workspace.project-loaded',
7
+ 'projection.catalog',
8
+ 'projection.loaded',
9
+ 'projection.invalidated',
10
+ 'projection.error',
11
+ 'shared-state.updated',
12
+ 'message'
13
+ ];
@@ -0,0 +1,142 @@
1
+ import type { JsonValue } from "../shared/json.js";
2
+ import type { RuntimeDebugEvent, RuntimeInspectableStatus, RuntimeStackTrace } from "./model.js";
3
+ export type RuntimeTelemetryLevel = 'debug' | 'info' | 'warning' | 'error';
4
+ export type RuntimeTelemetryTraceType = 'debug-event' | 'stack-trace' | 'performance-marker' | 'health-check' | 'lifecycle' | 'store-mutation' | 'crash';
5
+ export type RuntimeObservedEntityType = 'runtime' | 'backend' | 'store' | 'service' | 'manager' | 'tool';
6
+ export type RuntimeStoreMutationKind = 'register' | 'snapshot' | 'update' | 'dispose';
7
+ export type RuntimeEntityLifecycleKind = 'register' | 'start' | 'ready' | 'degraded' | 'error' | 'dispose';
8
+ export interface RuntimeTelemetryTrace {
9
+ id: string;
10
+ type: RuntimeTelemetryTraceType;
11
+ level: RuntimeTelemetryLevel;
12
+ scope: string | null;
13
+ label: string;
14
+ message: string;
15
+ timestamp: string;
16
+ payload?: JsonValue;
17
+ }
18
+ export interface RuntimeStructuredLog {
19
+ id: string;
20
+ level: RuntimeTelemetryLevel;
21
+ scope: string | null;
22
+ message: string;
23
+ timestamp: string;
24
+ payload?: JsonValue;
25
+ }
26
+ export interface RuntimePerformanceMarker {
27
+ id: string;
28
+ label: string;
29
+ scope: string | null;
30
+ startTime: number;
31
+ durationMs: number | null;
32
+ timestamp: string;
33
+ payload?: JsonValue;
34
+ }
35
+ export interface RuntimeHealthCheck {
36
+ id: string;
37
+ targetId: string;
38
+ targetType: RuntimeObservedEntityType;
39
+ status: RuntimeInspectableStatus;
40
+ checkedAt: string;
41
+ latencyMs: number | null;
42
+ message: string | null;
43
+ payload?: JsonValue;
44
+ }
45
+ export interface RuntimeStoreMutationEntry {
46
+ id: string;
47
+ storeId: string;
48
+ kind: RuntimeStoreMutationKind;
49
+ timestamp: string;
50
+ value?: JsonValue;
51
+ }
52
+ export interface RuntimeEntityLifecycleEntry {
53
+ id: string;
54
+ entityId: string;
55
+ entityType: Exclude<RuntimeObservedEntityType, 'store' | 'backend'>;
56
+ kind: RuntimeEntityLifecycleKind;
57
+ status: RuntimeInspectableStatus;
58
+ timestamp: string;
59
+ message: string | null;
60
+ payload?: JsonValue;
61
+ }
62
+ export interface RuntimeCrashReport {
63
+ id: string;
64
+ message: string;
65
+ scope: string | null;
66
+ timestamp: string;
67
+ stackFrames: string[];
68
+ cause: string | null;
69
+ payload?: JsonValue;
70
+ }
71
+ export interface RuntimeObservabilitySnapshot {
72
+ generatedAt: string;
73
+ traces: RuntimeTelemetryTrace[];
74
+ logs: RuntimeStructuredLog[];
75
+ performanceMarkers: RuntimePerformanceMarker[];
76
+ healthChecks: RuntimeHealthCheck[];
77
+ storeMutations: RuntimeStoreMutationEntry[];
78
+ lifecycleEntries: RuntimeEntityLifecycleEntry[];
79
+ crashReports: RuntimeCrashReport[];
80
+ }
81
+ export interface RuntimeTelemetryTraceInput {
82
+ id?: string;
83
+ type: RuntimeTelemetryTraceType;
84
+ level?: RuntimeTelemetryLevel;
85
+ scope?: string | null;
86
+ label?: string;
87
+ message?: string;
88
+ timestamp?: string;
89
+ payload?: unknown;
90
+ }
91
+ export interface RuntimeStructuredLogInput {
92
+ id?: string;
93
+ level?: RuntimeTelemetryLevel;
94
+ scope?: string | null;
95
+ message: string;
96
+ timestamp?: string;
97
+ payload?: unknown;
98
+ }
99
+ export interface RuntimePerformanceMarkerInput {
100
+ id?: string;
101
+ label: string;
102
+ scope?: string | null;
103
+ startTime?: number;
104
+ durationMs?: number | null;
105
+ timestamp?: string;
106
+ payload?: unknown;
107
+ }
108
+ export interface RuntimeHealthCheckInput {
109
+ id?: string;
110
+ targetId: string;
111
+ targetType: RuntimeObservedEntityType;
112
+ status: RuntimeInspectableStatus;
113
+ checkedAt?: string;
114
+ latencyMs?: number | null;
115
+ message?: string | null;
116
+ payload?: unknown;
117
+ }
118
+ export interface RuntimeStoreMutationInput {
119
+ id?: string;
120
+ storeId: string;
121
+ kind: RuntimeStoreMutationKind;
122
+ timestamp?: string;
123
+ value?: unknown;
124
+ }
125
+ export interface RuntimeEntityLifecycleInput {
126
+ id?: string;
127
+ entityId: string;
128
+ entityType: Exclude<RuntimeObservedEntityType, 'store' | 'backend'>;
129
+ kind: RuntimeEntityLifecycleKind;
130
+ status?: RuntimeInspectableStatus;
131
+ timestamp?: string;
132
+ message?: string | null;
133
+ payload?: unknown;
134
+ }
135
+ export interface RuntimeCrashReportInput {
136
+ id?: string;
137
+ message?: string;
138
+ scope?: string | null;
139
+ timestamp?: string;
140
+ payload?: unknown;
141
+ }
142
+ export type RuntimeDebugTraceInput = RuntimeDebugEvent | RuntimeStackTrace;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,56 @@
1
+ import type { JsonValue } from "../shared/json.js";
2
+ export type RuntimeOffloadTaskKind = 'repo-indexing' | 'static-analysis' | 'embeddings' | 'preview-generation' | 'custom';
3
+ export type RuntimeOffloadTaskPriority = 'low' | 'normal' | 'high' | 'urgent';
4
+ export type RuntimeOffloadTaskStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
5
+ export interface RuntimeOffloadTaskInput {
6
+ id?: string;
7
+ kind: RuntimeOffloadTaskKind;
8
+ label: string;
9
+ priority?: RuntimeOffloadTaskPriority;
10
+ cancellable?: boolean;
11
+ payload?: unknown;
12
+ }
13
+ export interface RuntimeOffloadTask {
14
+ id: string;
15
+ kind: RuntimeOffloadTaskKind;
16
+ label: string;
17
+ priority: RuntimeOffloadTaskPriority;
18
+ status: RuntimeOffloadTaskStatus;
19
+ progress: number;
20
+ cancellable: boolean;
21
+ createdAt: string;
22
+ startedAt: string | null;
23
+ completedAt: string | null;
24
+ error: string | null;
25
+ payload?: JsonValue;
26
+ result?: JsonValue;
27
+ }
28
+ export interface RuntimeOffloadEvent {
29
+ id: string;
30
+ taskId: string;
31
+ kind: 'queued' | 'started' | 'progress' | 'completed' | 'failed' | 'cancelled';
32
+ timestamp: string;
33
+ message: string;
34
+ progress: number;
35
+ }
36
+ export interface RuntimeOffloadSnapshot {
37
+ generatedAt: string;
38
+ activeTaskIds: string[];
39
+ queue: string[];
40
+ tasks: RuntimeOffloadTask[];
41
+ totals: {
42
+ queued: number;
43
+ running: number;
44
+ completed: number;
45
+ failed: number;
46
+ cancelled: number;
47
+ };
48
+ }
49
+ export declare function createRuntimeOffloadTask(input: RuntimeOffloadTaskInput, timestamp?: string): RuntimeOffloadTask;
50
+ export declare function startRuntimeOffloadTask(task: RuntimeOffloadTask, timestamp?: string): RuntimeOffloadTask;
51
+ export declare function updateRuntimeOffloadTaskProgress(task: RuntimeOffloadTask, progress: number, _timestamp?: string): RuntimeOffloadTask;
52
+ export declare function completeRuntimeOffloadTask(task: RuntimeOffloadTask, result?: unknown, timestamp?: string): RuntimeOffloadTask;
53
+ export declare function failRuntimeOffloadTask(task: RuntimeOffloadTask, error: string, timestamp?: string): RuntimeOffloadTask;
54
+ export declare function cancelRuntimeOffloadTask(task: RuntimeOffloadTask, timestamp?: string): RuntimeOffloadTask;
55
+ export declare function createRuntimeOffloadSnapshot(tasks: RuntimeOffloadTask[], timestamp?: string): RuntimeOffloadSnapshot;
56
+ export declare function compareRuntimeOffloadTasks(a: RuntimeOffloadTask, b: RuntimeOffloadTask): number;