import { a as UserTool, n as ComposedStep, t as ApiConnectorDef } from "../../user-tool-service-QjL2mMWW.mjs"; //#region extensions/crypto/src/services/sandbox-runtime.d.ts interface SandboxContext { /** The user tool being executed. */ tool: UserTool; /** Who triggered the execution. */ userId: string; /** Budget remaining (USD). Decremented by sub-calls. */ budgetRemainingUsd: number; /** Number of sub-tool calls made. */ callCount: number; /** Max sub-tool calls allowed. */ maxCalls: number; /** Execution start time. */ startedAt: number; /** Max execution time (ms). */ timeoutMs: number; /** Audit log of actions taken. */ auditLog: SandboxAuditEntry[]; } interface SandboxAuditEntry { timestamp: number; action: string; detail: string; costUsd?: number; } interface ToolDispatcher { /** Call a built-in tool by name. Returns the tool result. */ call(toolName: string, args: Record): Promise; } /** * Execute an API connector tool in the sandbox. */ declare function executeApiConnector(def: ApiConnectorDef, args: Record, ctx: SandboxContext): Promise; /** * Execute a composed tool in the sandbox. */ declare function executeComposedTool(steps: ComposedStep[], args: Record, ctx: SandboxContext, dispatcher: ToolDispatcher): Promise; /** * Create a sandbox context for tool execution. */ declare function createSandboxContext(tool: UserTool, userId: string): SandboxContext; //#endregion export { SandboxAuditEntry, SandboxContext, ToolDispatcher, createSandboxContext, executeApiConnector, executeComposedTool }; //# sourceMappingURL=sandbox-runtime.d.mts.map