/** Library surface, for TypeScript consumers that embed the agent instead of spawning the CLI. */ export { TOOL_NAMES, type ActResult, type ContextPolicy, type Element, type GuiToolSpec, type Snapshot, type SnapshotCapture, type Strategy, type TargetInfo, type ToolResult, type VerbSpec, type Verdict, } from "./platform/types.ts"; export { GuiDriver } from "./platform/driver.ts"; export { createGuiTools } from "./platform/tools/index.ts"; export { resolveProfile, type Profile } from "./agent/session.ts"; export { runGuiTask, type GuiAgentEvent, type GuiAgentOptions, type GuiRunResult } from "./agent/runner.ts"; export { BrowserDriver } from "./platform/browser/driver.ts"; export { AndroidDriver } from "./platform/android/driver.ts"; export type { EmulatorProvider, EmulatorStartOptions, RunningEmulator } from "./platform/android/emulator/provider.ts"; export { GoogleEmulatorProvider } from "./platform/android/emulator/google.ts"; export { clampMaxSteps, currentStep, durationMs, frameCost, liveTurns, mergeUsage, newExecSink, newSessionFrame, newTimestamps, runtimeType, type Action, type ClosureCheck, type EnvironmentSpec, type ExecHooks, type ExecOptions, type ExecResult, type ExecSink, type Executor, type ModelUsage, type OperateTrace, type Part, type Persona, type PersonaEpisode, type PersonaMemory, type PersonaProfile, type PersonaSkill, type PhaseTiming, type Scenario, type ScenarioClosure, type ScenarioEnv, type ScenarioGoal, type ScenarioKind, type SessionFrame, type SessionStatus, type SimRuntime, type SpanDict, type StepDebug, type StepOrigin, type StepRecord, type SubStep, type Timestamps, type TriggerRequest, type UsageMetadata, type Use, type UseCall, type World, type WorldClosure, type WorldSnapshot, } from "./sim/models.ts"; export { BROKEN_REACT_STREAK_LIMIT, DONE_PERSIST_ACCEPT, ERROR_STREAK_LIMIT, STUCK_ABANDON_LIMIT, STUCK_NUDGE_AT, UserSimulatorAgent, brokenReactStreak, errorStreak, noProgressStreak, parseCheck, type OnStep, type SimAgentOptions, } from "./sim/agent.ts"; export { decide, defaultSimModel, type DecideOptions } from "./sim/inference.ts"; export { systemPrompt, toolSpecs, userText, situatedRecall, retrieveEpisodes, retrieveSkills } from "./sim/prompt.ts"; export { endRuntime, rebuildThread, seedFromHistory, shapeRuntime } from "./sim/operate.ts"; export { PiGuiExecutor, execTaskText, type PiGuiExecutorOptions } from "./sim/executor.ts"; export { runSimTask, type SimEvent, type SimRunOptions, type SimRunResult } from "./sim/runner.ts"; export { frameMetrics, reportCard, stepMetrics, tokenSummary, traceTime, groundingCost, type ReportCard } from "./sim/metrics.ts"; export { collecting, graft, llmAttrs, span, TraceCollector } from "./sim/trace.ts"; export { Environment, FileSystemEnvironment, InMemoryEnvironment, IsolatedEnvironment, PlatformEnvironment, SharedEndEnvironment, buildEnvironment, } from "./sim/world/environment.ts"; export { WorldRunner, actorId, type AgentRetireFn, type AgentsOpenedFn, type StepProgressFn, type WorldRunnerOptions, } from "./sim/world/runner.ts"; export { GangScheduler, cohortNeed, type AcquireFn, type Cohort, type GangSchedulerOptions, type ReleaseFn } from "./sim/world/gang.ts";