mirror of
https://github.com/moeru-ai/airi.git
synced 2026-05-19 08:10:45 +00:00
1 KiB
1 KiB
Vishot Runtime
Shared runtime contracts and Vue bindings for Vishot scene capture.
Purpose
This package owns the browser-side runtime surface used by scene packages. It provides:
- readiness helpers via
markScenarioReady()andresetScenarioReady() - the shared
ScenarioCaptureRootPropstype - framework-specific bindings through subpath exports such as
@proj-airi/vishot-runtime/vue- Vue bindings include
ScenarioCanvas,ScenarioCaptureRoot,useSceneReady() - Vue bindings also export screen-specific components/composables (router, navigator, markup, and navigation helpers)
- Vue bindings include
Usage
import { markScenarioReady, resetScenarioReady } from '@proj-airi/vishot-runtime'
import {
ScenarioCanvas,
ScenarioCaptureRoot,
ScreenNavigator,
ScreenRouterProvider,
useSceneNavigation,
} from '@proj-airi/vishot-runtime/vue'
Keep framework-agnostic contracts at the package root and import Vue SFC bindings from ./vue.
import {
markScenarioReady,
resetScenarioReady,
} from '@proj-airi/vishot-runtime'