Files
suaveplan/packages/api-stack/api/api-sandbox-wasm-host-bridge/src/index.ts
2026-05-27 23:29:53 +01:00

57 lines
1.5 KiB
TypeScript

export {
marshalRequest,
unmarshalResponse,
unmarshalRoutes,
} from "./abi-direct/marshal/index.js";
export {
allocBuffer,
classifyTrap,
freeBuffer,
readBytes,
type TrapKind,
unpackPointerLength,
writeBytes,
} from "./abi-direct/memory/index.js";
export {
REQUIRED_WASM_ABI_SYMBOLS,
type RequiredWasmAbiSymbol,
validateWasmAbi,
type WasmAbiExports,
} from "./abi-direct/wasm-abi/index.js";
export type { WasmAbiVariant } from "./bridge/index.js";
export {
type CreateSandboxedWasmPluginModuleOptions,
createSandboxedWasmPluginModule,
type SandboxedWasmPluginInstall,
type SandboxedWasmPluginModule,
} from "./bridge/index.js";
export {
SAND_WASM_BRIDGE_CODES,
SAND_WASM_BRIDGE_ERROR_NAME,
type SandboxWasmBridgeCode,
SandboxWasmBridgeError,
} from "./error-codes/index.js";
export {
createSandboxWasmBridgeInstruments,
SAND_WASM_BRIDGE_COUNTER_NAMES,
SAND_WASM_BRIDGE_HISTOGRAM_NAMES,
type SandboxWasmBridgeCounterName,
type SandboxWasmBridgeHistogramName,
type SandboxWasmBridgeInstruments,
type SandboxWasmBridgeInstrumentsConfig,
} from "./instruments/index.js";
export {
createIdempotentLifecycle,
type IdempotentLifecycle,
type IdempotentLifecycleDeps,
type LifecyclePhase,
} from "./lifecycle/index.js";
export { discoverRoutes } from "./route-discovery/index.js";
export {
decodeWasiStdioFrame,
encodeWasiStdioFrame,
MAX_WASI_STDIO_FRAME_BYTES,
PluginEnvelopeInSchema,
PluginEnvelopeOutSchema,
} from "./wasi-stdio/index.js";