/** * vapor-chamber - Vue Vapor integration * * What `tryAutoCleanup()` relies on from Vue: the PUBLIC `getCurrentScope()` / * `onScopeDispose()` pair, and Vue stopping a scope it owns - a component * created but never mounted (a sibling's render threw) has its scope stopped * on unmount, so a `useCommand().on()` listener does not * outlive `app.unmount()` (tests/never-mounted-disposal-fixture.test.ts). * `warnUnwired()` is the one production warning, for a Vue app whose * composables came from the root with nothing wired. The history is in * CHANGELOG.md. */ import { DEV } from './dev'; import { _report } from './report'; import { disposeAll, _pastSeal, _isAsyncBus, _mayReject, _errResult, _scoped, type ScopeOptions, type BaseBus, type CommandBus,type Command, type CommandResult, type CommandMap, type TargetOf, type PayloadOf, type ResultOf, type Handler, type PluginParts, type RegisterOptions, type Listener } from './command-bus'; import { configureSignal, signal } from './signal'; import { createLedger, recordOn } from './ledger'; import { countOption } from './bounds'; import { commandState, type CommandState, type CommandStateOptions } from './command-state'; import { getCommandBus, resetCommandBus, resolveBus, setCommandBus, type BusOption, type ResultOn } from './shared-bus'; import { _paceOf, pace, type PaceOption, type PacedOn } from './pace'; /** * Build-time flag injected by `scripts/build.mjs` via Vite `define`: `true` in * the three IIFE (