mirror of
https://github.com/moeru-ai/airi.git
synced 2026-05-17 04:20:26 +00:00
| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
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'