/** * vapor-chamber — Lightweight command bus for Vue Vapor * * Architecture: * CORE (zero dependencies, framework-agnostic): * command-bus — dispatch, register, plugins, hooks, wildcard, request/respond * testing — createTestBus, snapshot, time-travel * * OPTIONAL (tree-shaken when unused): * plugins — logger, validator, history, debounce, throttle, authGuard, optimistic * plugins-io — retry, persist, sync * chamber — Vue composables: useCommand, useCommandBus, useCommandGroup, … * chamber-vapor — Vue 3.6+ Vapor-specific API (requires Vue 3.6) * http — postCommand, createHttpClient, CSRF token reading * transports — createHttpBridge, createBatchingHttpBridge, createWsBridge, createSseBridge * form — createFormBus, reactive form state * schema — LLM tool-use layer, synthesize, toTools * devtools — @vue/devtools-api integration (requires @vue/devtools-api) * transitions — hook → bus dispatch bridge * ssr — SSR dehydrate/rehydrate plugin * directives — v-command Vue directive (requires Vue) * vite — HMR plugin (requires Vite, see 'vapor-chamber/vite') * iife — UMD/IIFE bundle (see 'vapor-chamber/iife') * * Sub-path exports that avoid pulling in optional code: * 'vapor-chamber/transports' — HTTP + WS + SSE bridges * 'vapor-chamber/transitions' — hook → bus dispatch * 'vapor-chamber/ssr' — SSR dehydrate/rehydrate * 'vapor-chamber/directives' — v-command directive * 'vapor-chamber/vite' — Vite HMR plugin * 'vapor-chamber/fast-lane' — minimal-allocation dispatcher for hot loops * 'vapor-chamber/observable' — Symbol.observable interop (RxJS / xstream / callbag) * 'vapor-chamber/standard-schema' — Standard Schema v1 validator plugin (Zod / Valibot / ArkType) * 'vapor-chamber/alien-signals' — alien-signals as the reactive primitive (non-Vue) * 'vapor-chamber/reactive' — opt-in deep reactivity (deepSignal + useDeepCommandState) * 'vapor-chamber/outbox' — offline outbox (durable queue + Idempotency-Key replay) * 'vapor-chamber/mcp' — MCP server from a schema bus (agent surface) * 'vapor-chamber/stream-parser' — incremental JSON parser for streamed fetch/SSE bodies * 'vapor-chamber/iife' — IIFE bundle (full) * 'vapor-chamber/iife-core' — IIFE bundle (no Vapor custom-element, no Suspense paths) * 'vapor-chamber/iife-elements' — IIFE bundle (core + Vapor custom-element) * * Changelog: * v0.3.0 — Naming convention, wildcard listeners, request/response, authGuard, optimistic * v0.4.0 — Vue 3.6 Vapor alignment, defineVaporCommand, onScopeDispose * v0.4.1 — useCommandGroup, useCommandError * v0.4.2 — Transport layer, retry/persist/sync plugins * v0.4.3 — createTestBus snapshot/time-travel * v0.5.0 — camelCase naming, HTTP client, CDCC splits, createFormBus, schema/LLM layer * v0.6.0 — onBefore, once, offAll, BaseBus, commandKey; BatchResult successCount/failCount; * form async validation (isValidating, isBusy); HttpError.code; noRetry; * WS maxQueueSize; LlmAdapter; 419≠401 fix; CSRF refresh error propagation; * WS queue expiry on reconnect; async request dedup; directive dispatch timeout; * signal detection sync probe (globalThis.__VUE__); waitForVueDetection(); * passthroughHandlers fix in TestBus; Vue >=3.6.0-beta.1 peer dep; * useVaporCommand() composable; Vapor directive compat warning; * tryAutoCleanup dev warning; Vite HMR .vapor.vue support; * FormBus reactive:false headless mode; HttpBridge scopeController; * WsBridge reactive connected signal * v1.1.0 — Vue 3.6.0-beta.10 alignment: defineVaporCustomElement, defineVaporComponent, * defineVaporAsyncComponent wrappers; useVaporAsyncCommand for Suspense-aware * async dispatch; createTransitionBridge + useTransitionCommand; persist validate * option; improved Vapor/VDOM interop awareness; HMR vapor↔vdom switch * v1.2.0 — Vue 3.6.0-beta.11 alignment: peerDep bumped; defineVaporComponent * JSDoc documents generics (#14770) + emits-vs-attrs split; build * pipeline migrated from custom esbuild script to Vite programmatic * API (scripts/build.mjs); IIFE split into three sized variants * (full / core / elements) mirroring Vue's tree-shake axes; tsc * now emits types only (`emitDeclarationOnly`) * v1.0.0 — bus.query() CQRS read-only dispatch; bus.emit() domain events; * Command.meta auto-stamped metadata (ts, id, correlationId, causationId); * bus.registeredActions() introspection; TestBus.onBefore fires for real; * TestBus.query/emit/registeredActions parity */ export { createCommandBus, createAsyncCommandBus, commandKey, configureUid, createCommandPool, unsealBus, inspectBus, buildRunner, matchesPattern, BusError, RETRYABLE_CODES, type CommandPool, type BusInspection, type BusErrorCode, type BusSeverity, type BusEmitter, type BaseBus, type Command, type CommandResult, type CommandMeta, type CommandBus, type AsyncCommandBus, type Handler, type AsyncHandler, type Plugin, type AsyncPlugin, type Hook, type AsyncHook, type BeforeHook, type AsyncBeforeHook, type PluginOptions, type BatchCommand, type BatchOptions, type BatchResult, type DeadLetterMode, type CommandBusOptions, type NamingConvention, type RegisterOptions, type Listener, type CommandMap, type TargetOf, type PayloadOf, type ResultOf, } from './command-bus'; export { createTestBus, type TestBus, type RecordedDispatch } from './testing'; export { createChamber, createWorkflow, createReaction, type Chamber, type ChamberHandlers, type ChamberOptions, type WorkflowStep, type WorkflowResult, type Workflow, type ReactionOptions, type Reaction, } from './utilities'; export { cache, circuitBreaker, rateLimit, metrics, serialize, idempotent, supersede, type CacheOptions, type CircuitBreakerOptions, type RateLimitOptions, type MetricsEntry, type MetricsOptions, type SerializeOptions, type IdempotentOptions, type SupersedeOptions, } from './plugins-extra'; export { logger, validator, history, debounce, throttle, authGuard, optimistic, optimisticUndo, retry, persist, sync, type HistoryState, type OptimisticUndoOptions, type RetryOptions, type PersistOptions, type SyncOptions, } from './plugins'; export { signal, configureSignal, type Signal, type CreateSignal, getCommandBus, setCommandBus, resetCommandBus, useCommandBus, useCommand, type GlobalCommands, type SharedCommandMap, useSharedCommandState, type UseSharedCommandStateOptions, useCommandState, type UseCommandStateOptions, useCommandHistory, useCommandGroup, useCommandError, useCommandQuery, isVaporAvailable, waitForVueDetection, } from './chamber'; export { createVaporChamberApp, getVaporInteropPlugin, defineVaporCommand, defineVaporCustomElement, defineVaporComponent, defineVaporAsyncComponent, useVaporAsyncCommand, } from './chamber-vapor'; export { readCsrfToken, invalidateCsrfCache, postCommand, createHttpClient, type HttpConfig, type HttpResponse, type HttpError, type HttpRequestConfig, type HttpClient, type HttpMethod, type ResponseType, type SafeResult, type DownloadResult, type InterceptorManager, } from './http'; export { createHttpBridge, createBatchingHttpBridge, createWsBridge, createSseBridge, createEchoBridge, type HttpBridgeOptions, type BatchingHttpBridgeOptions, type WsBridgeOptions, type SseBridgeOptions, type EchoBridgeOptions, type EchoSubscription, type EchoChannelType, type CommandEnvelope, type BackendResponse, } from './transports'; export { createTransitionBridge, useTransitionCommand, type TransitionPhase, type TransitionBridgeOptions, type TransitionHooks, type TransitionBridge, } from './transitions'; export { createSSRPlugin, rehydrate, type DehydratedCommand, type SSRPluginOptions, type SSRPlugin, type RehydrateOptions, } from './ssr'; export { createDirectivePlugin } from './directives'; export { createFormBus, type FormBusOptions, type FormBus, type FormRules, } from './form'; export { createSchemaCommandBus, createAsyncSchemaCommandBus, schemaLogger, toTools, toAnthropicTools, toOpenAITools, synthesize, type BusSchema, type ActionSchema, type FieldMap, type FieldType, type InferMap, defineSchema, type CommandsOf, type SchemaCommandBus, type AsyncSchemaCommandBus, type SchemaCommandBusOptions, type SynthesizeOptions, type LlmAdapter, type AnthropicTool, type OpenAITool, type ToolCallInput, schemaValidator, describeSchema, ERROR_CODE_REGISTRY, getErrorEntry, describeErrorCodes, busApiSchema, type ErrorCodeEntry, isRetryableCode, } from './schema'; //# sourceMappingURL=index.d.ts.map