export type * from './types.js'; // matbot's typed errors are duck-typed: factory `xError()` builders + `isXError()` brand guards are // runtime values (re-exported here, since the `export type *` above would strip their value meaning), // while the `XError` shapes are types (re-exported below). StoreQueryError is still a class value. // Every branded error, uniformly: a partial list meant a consumer importing from core got some guards and // silently missed others (readOnlyError/isReadOnlyError were absent, though the pump depends on the guard). export { missingSecretError, isMissingSecretError, incompatibleRuntimeError, isIncompatibleRuntimeError, notAPluginError, isNotAPluginError, promptCancelledError, isPromptCancelledError, readOnlyError, isReadOnlyError, mediaRejectedError, isMediaRejectedError, invalidSecretNameError, isInvalidSecretNameError, failureOf, withFailure, failureForStatus, FAILURE_STATUS, StoreQueryError, } from '@matatbread/matbot-plugin-api'; export type { MissingSecretError, IncompatibleRuntimeError, NotAPluginError, PromptCancelledError, ReadOnlyError, MediaRejectedError, InvalidSecretNameError, MatbotErrorKind, FailureClass, } from '@matatbread/matbot-plugin-api'; export { applyResolve, applyCreateSecret, assertStorableKey, unreferenceableKey, REFERENCEABLE_KEY_RULE } from '@matatbread/matbot-plugin-api'; // The `provider update` patch policy, alongside the vault's: written once in plugin-api so the hosts // that apply one cannot differ on what a patch MEANS, and re-exported here so an app needs no direct // plugin-api dependency to get it. export { applyProviderPatch, credentialKeyName, movedCredentialKeys, movedCredentialNote, patchedFields, checkProviderModel, confirmUnlistedModel, modelListed, closestIds, isProviderAlias, aliasProblem, removalProblem, aliasesOf, describeProvider, describeProviders, providerRows } from '@matatbread/matbot-plugin-api'; export { isTruncatedToolResult, notifyingStore, ItemChangeKind, RegistryChangeKind, SessionAppendKind, FUNCTION_TIMEOUT, permitted, refused, refusalMessage, HTTP_TOOL_SESSION, FORM_AXIS_SEPARATOR } from '@matatbread/matbot-plugin-api'; // The canonical `type: 'confirm'` answers. Same reason as the patch policy above: an app implementing a // PromptFn (or a test standing one in) has to speak them, and must not hard-code the rendered label. export { CONFIRM_YES, CONFIRM_NO } from '@matatbread/matbot-plugin-api'; // A select option's value vs its label. Frontends render the label and return the value; a caller that // branches on the answer compares values, never prose (see FormOption). export { optionValue, optionLabel } from '@matatbread/matbot-plugin-api'; // Binds `ctx.gate` for a hand-assembled ToolContext — anything standing a tool-invocation door up // outside the runner (frontend-web's `POST /tools/:name`) needs it, and gets it through core. export { bindGate, bindPluginOps } from '@matatbread/matbot-plugin-api'; // Calling a tool from outside any turn — an embedding application's own request handler, as a frontend's // `POST /tools/:name` does — through every door's validation and gate, with no plugin-api dependency. export { invokeTool, toolResult, toolText } from '@matatbread/matbot-plugin-api'; // Ambient security principal: the interface is a type (carried by `export type *`); these are the values. export { currentPrincipal, tryCurrentPrincipal, runAs, lastActivityAt, isRequest, isRoboSubmit, withSenderShown, ROBO_SUBMIT } from '@matatbread/matbot-plugin-api'; // Host boot assembly, from plugin-api's `/host` subpath. An embedding app gets these through core and // needs no direct dependency on plugin-api; a *plugin* has no business with any of them, which is why // they are not on the plugin-api root. Re-exported here (not `export type *`ed) so their value meaning // survives. export { unifyServices, forwardingProxy, makeSwappable, singleTurnRequest, createMountTable, createBroadcaster, subscribable, createNotifier, scopedNotifier, installPrincipalCarrier, enterPrincipal, createConstantPrincipalCarrier, contextSwitch, machineBusy, quiesced, onContextQuiesce, scheduleAtEdge, installUsageCarrier, createSerialUsageCarrier, recordUsage, recordSpan, currentUsageSink, currentUsageScope, currentUsageSite, withUsageScope, withUsageSite, scopeIterator, scopeIterable, } from '@matatbread/matbot-plugin-api/host'; export type { Subscribable, Broadcaster, Routed, RoutedFilter, SwapFn, MountTable, PrincipalCarrier, UsageCarrier, UsageScope, Quiescer, ScopeFn, } from '@matatbread/matbot-plugin-api/host'; export * from './session.js'; export * from './usage.js'; export * from './hooks.js'; export * from './runner.js'; export * from './session-runner.js'; export * from './session-append.js'; export * from './ephemeral-turn.js'; export * from './plugin.js'; export * from './registry.js'; export * from './plugin-report.js'; export * from './settings.js'; export * from './loader.js'; export * from './tool-registry.js'; export * from './provider-registry.js'; export * from './system-context.js'; export * from './single-turn.js'; export * from './media.js'; export * from './about.js'; export * from './security/index.js'; export * from './knowledge/index.js'; export * from './assemble.js'; // The default permission policy: what `assembleMachine` seeds when a host passes no `gate`, exported for a // policy that composes over it (`createDefaultGate(settings, previous)`) and for tests. export { defaultGate, createDefaultGate, createGateTools, makeGateActionTool, denyKey, toStandingAnswer, toScopedAnswers, DEFAULT_GATE_SETTINGS_NS, EVERYWHERE, SESSION_STORE_KEY } from './default-gate/index.js'; export type { StandingAnswer, ScopedAnswers, GateAnswer, GateEntry, SessionStore, SessionStoreReport } from './default-gate/index.js';