/** * module: toolbox —— 唯一出口。只做 re-export,不写逻辑(编码规范 §10.1)。 */ export type { ActionIntent, AuditFinding, CallDisposition, EffectLevel, EvolutionViolation, InvocationTrace, InvokerMode, Preauthorization, RegisterToolInput, RegistrationVerdict, ToolCall, ToolContract, ToolInvoker, ToolResult, ToolboxService, } from './contract.ts'; export { INVOKER_MODES, RegistrationRejectedError, ToolDisabledError, ToolNotAllowedError, ToolNotFoundError, ToolReplayMissError, } from './contract.ts'; export type { Clock, IdGenerator, SchemaValidator, SecretBox, ToolHandoff, ToolHandoffStore, ToolRegistry, ToolReplayStore, ToolRuntime, } from './port.ts'; export type { ToolInvokerDeps } from './internal/usecase/tool-invoker.ts'; export { createToolInvoker, toolReplayKey } from './internal/usecase/tool-invoker.ts'; export type { ToolboxServiceDeps } from './internal/usecase/toolbox-service.ts'; export { createToolboxService } from './internal/usecase/toolbox-service.ts'; export { checkEvolution, dispositionOf, EFFECT_LEVEL_LABEL, EFFECT_LEVELS } from './internal/domain/tool-contract.ts'; export type { BusTool, CatalogEntry, ToolBusInput, ToolBusReport } from './internal/domain/tool-bus.ts'; export { compileToolBus, HUMAN_TOOL, LEDGER_TOOL, LLM_TOOLS } from './internal/domain/tool-bus.ts'; export { auditPassed, staticAudit } from './internal/domain/registration-audit.ts'; export type { HandoffField } from './internal/domain/handoff.ts'; export { callKeyOf, coerceBySchema, handoffFields } from './internal/domain/handoff.ts'; export type { ToolHandler } from './internal/adapter/toolbox-store.ts'; export { createSchemaValidator, createToolRegistry, createToolReplayStore, createToolHandoffStore, createToolRuntime, isAllowed, } from './internal/adapter/toolbox-store.ts'; export { replayToolTable, toolAllowlistTable, toolTable } from './internal/adapter/toolbox-schema.ts';