mirror of
https://github.com/moeru-ai/airi.git
synced 2026-07-09 15:58:27 +00:00
|
Some checks are pending
CI / Lint (push) Waiting to run
CI / Build Test (stage-tamagotchi) (push) Waiting to run
CI / Build Test (stage-tamagotchi-godot) (push) Waiting to run
CI / Build Test (stage-web) (push) Waiting to run
CI / Build Test (ui-loading-screens) (push) Waiting to run
CI / Build Test (ui-transitions) (push) Waiting to run
CI / Unit Test (push) Waiting to run
CI / Type Check (push) Waiting to run
CI / Check Provenance (push) Waiting to run
Cloudflare Pages (Auth UI) / Deploy - ui-server-auth (push) Waiting to run
Cloudflare Workers / Deploy - stage-web (push) Waiting to run
Update Nix pnpmDeps Hash / update (push) Waiting to run
|
||
|---|---|---|
| .. | ||
| 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'