mirror of
https://github.com/Narcooo/inkos.git
synced 2026-08-30 17:22:02 +08:00
ac72fbfe08
- Add "play" to HASH_PAGES in use-hash-route.ts so nav.toPlay() updates window.location.hash, making #/play/:id shareable and reload-safe. - Add subpath exports for interactive-film/evaluator and interactive-film/graph-schema in core/package.json so StoryPlayer can import runtime functions without touching the barrel (which re-exports PlayDB → node:module). - Update StoryPlayer.tsx to import visibleChoices/applyEffects/initVarState from the new subpath; import StoryGraph and Choice as type-only from graph-schema subpath. - Revert the node:* externalization from packages/studio/vite.config.ts — the browser bundle no longer reaches node-only code, so the workaround is unnecessary and unsafe.