/** * Lazy LangSmith sandbox backend used by {@link compileManagedAgent}. * * One class, frozen per-run identity: construct unbound for static mounts, or * call {@link LazyManagedSandboxBackend.forRuntime} so concurrent requests each * keep their own `configurable` (thread id + actor) without sharing mutable state. */ import type { IdentityDefinition } from "../identity/index.js"; import type { SandboxDefinition } from "../sandbox.js"; import type { Connector } from "./connector.js"; import type { ManagedRunConfig } from "./types.js"; type SandboxBackendDeps = { sandbox: SandboxDefinition; runConfig: ManagedRunConfig | undefined; connectors: readonly Connector[] | undefined; identity: IdentityDefinition | undefined; }; /** * Lazy sandbox backend. Identity is frozen at construction — use * {@link forRuntime} for per-request facades that share the same resolve cache. */ export declare class LazyManagedSandboxBackend { private readonly deps; private readonly cache; private readonly boundConfigurable; private constructor(); /** Build the unbound backend used for static mounts / tests. */ static create(deps: SandboxBackendDeps): LazyManagedSandboxBackend; /** * Per-run sibling with this request's `configurable` frozen. Safe under * concurrent Slack/web requests; shares the process resolve cache. */ forRuntime(runtime: unknown): LazyManagedSandboxBackend; get id(): string; ls(path?: string): Promise; read(filePath: string, offset?: number, limit?: number): Promise; readRaw(filePath: string): Promise; grep(pattern: string, path?: string | null, glob?: string | null): Promise; glob(pattern: string, path?: string): Promise; write(filePath: string, content: string): Promise; edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise; delete(filePath: string): Promise; uploadFiles(files: Array<[string, Uint8Array]>): Promise; downloadFiles(paths: string[]): Promise; execute(command: string): Promise; private prefetch; private withRetry; private runConfig; } export {}; //# sourceMappingURL=backend.d.ts.map