import type { IdentityDefinition } from "../identity/index.js"; import type { MemoryDefinition } from "../memory/index.js"; import type { SandboxDefinition } from "../sandbox.js"; import type { Channel } from "./channel.js"; import type { Connector } from "./connector.js"; /** * Any object that carries a per-run LangGraph `configurable` map. The shared base * for the run config and the runtime the seam augments, so the `configurable` * carrier shape is declared once. */ export interface ConfigurableCarrier { configurable?: Record; [key: string]: unknown; } /** * The LangGraph runnable config passed to a graph factory at invocation time. * * Kept loose for v0; the managed runtime reads LangGraph metadata/configurable * values from here to scope the managed sandbox. */ export interface ManagedRunConfig extends ConfigurableCarrier { metadata?: Record; } /** * Managed values the CLI injects into the generated entry module. * * Local build/dev entries pass `contextRoot` (`.mda/__contexthub__`). Deploy * entries pass `contextRepo` so the runtime can read deployed instructions, * skills, and memories from the Hub repo. */ export interface ManagedAgentOptions { /** * Absolute path to a local Context Hub filesystem mock (`.mda/__contexthub__`). * Used by `mda build` / `mda dev` instead of a remote Hub repo. */ contextRoot?: string; /** * Embedded system prompt for eval entries (Harbor trials). Local/deploy prefer * Context Hub `instructions.md` via `contextRoot` / `contextRepo`. */ systemPrompt?: string; /** Context Hub repo handle for deployed runtime context. */ contextRepo?: string; /** Whether the synced Context Hub repo contains deploy-owned skills. */ hasSkills?: boolean; /** The `sandbox/index.ts` declaration, if the project configures a sandbox. */ sandbox?: SandboxDefinition; /** * The connectors discovered under `connectors/`, already validated by * `collectConnectors`. Each connector's `tools` hook (if any) contributes * tools appended to the agent's authored tools. */ connectors?: Connector[]; /** * The channels discovered under `channels/`, already validated by * `collectChannels`. Reserved on the agent options bag so the generated * entry can pass the same object shape; Events/messaging mount on the * managed HTTP app, not the agent graph. */ channels?: Channel[]; /** * The root `identity.ts` declaration, if the project opts into managed * identity. Resolution + thread scoping run in the generated custom-auth * handler (`buildManagedAuth`); this seam reserves the declaration for the * frozen `runtime.identity` envelope and memory namespacing. */ identity?: IdentityDefinition; /** * The root `memory.ts` declaration, if the project opts into durable memory. * It is the only source of mounted slices — absent means no memory, whatever * identity says — and it is deliberately independent of identity so a project * can keep durable knowledge without declaring callers at all. */ memory?: MemoryDefinition; /** * Harbor eval trial workspace root (usually `/app`). When set, the managed * runtime installs a disk `FilesystemBackend` so verifier-visible writes land * on the trial filesystem instead of StateBackend virtual state. */ trialRootDir?: string; } //# sourceMappingURL=types.d.ts.map