mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 08:03:46 +00:00
Add memory monitoring instrumentation, investigation findings, and SQLite VFS pool design spec for addressing WASM SQLite memory spikes. - Add /debug/memory endpoint and periodic memory logging (dev only) - Add mem-monitor.sh script for continuous memory profiling with automatic heap snapshot capture on spike detection - Add configureRunnerPool to registry setup for engine driver support - Document memory investigation findings (per-actor cost, spike behavior) - Write SQLite VFS pool spec for bin-packing actors onto shared WASM instances - Add foundry-mem-monitor and foundry-dev-engine justfile recipes - Add compose.dev.yaml engine driver and platform support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
1.7 KiB
TypeScript
37 lines
1.7 KiB
TypeScript
import type {
|
|
TaskWorkspaceAddSessionResponse,
|
|
TaskWorkspaceChangeModelInput,
|
|
TaskWorkspaceChangeOwnerInput,
|
|
TaskWorkspaceCreateTaskInput,
|
|
TaskWorkspaceCreateTaskResponse,
|
|
TaskWorkspaceDiffInput,
|
|
TaskWorkspaceRenameInput,
|
|
TaskWorkspaceRenameSessionInput,
|
|
TaskWorkspaceSelectInput,
|
|
TaskWorkspaceSetSessionUnreadInput,
|
|
TaskWorkspaceSendMessageInput,
|
|
TaskWorkspaceSnapshot,
|
|
TaskWorkspaceSessionInput,
|
|
TaskWorkspaceUpdateDraftInput,
|
|
} from "@sandbox-agent/foundry-shared";
|
|
|
|
export interface TaskWorkspaceClient {
|
|
getSnapshot(): TaskWorkspaceSnapshot;
|
|
subscribe(listener: () => void): () => void;
|
|
createTask(input: TaskWorkspaceCreateTaskInput): Promise<TaskWorkspaceCreateTaskResponse>;
|
|
markTaskUnread(input: TaskWorkspaceSelectInput): Promise<void>;
|
|
renameTask(input: TaskWorkspaceRenameInput): Promise<void>;
|
|
archiveTask(input: TaskWorkspaceSelectInput): Promise<void>;
|
|
publishPr(input: TaskWorkspaceSelectInput): Promise<void>;
|
|
revertFile(input: TaskWorkspaceDiffInput): Promise<void>;
|
|
updateDraft(input: TaskWorkspaceUpdateDraftInput): Promise<void>;
|
|
sendMessage(input: TaskWorkspaceSendMessageInput): Promise<void>;
|
|
stopAgent(input: TaskWorkspaceSessionInput): Promise<void>;
|
|
selectSession(input: TaskWorkspaceSessionInput): Promise<void>;
|
|
setSessionUnread(input: TaskWorkspaceSetSessionUnreadInput): Promise<void>;
|
|
renameSession(input: TaskWorkspaceRenameSessionInput): Promise<void>;
|
|
closeSession(input: TaskWorkspaceSessionInput): Promise<void>;
|
|
addSession(input: TaskWorkspaceSelectInput): Promise<TaskWorkspaceAddSessionResponse>;
|
|
changeModel(input: TaskWorkspaceChangeModelInput): Promise<void>;
|
|
changeOwner(input: TaskWorkspaceChangeOwnerInput): Promise<void>;
|
|
}
|