branch:
index.ts
1302 bytesRaw
// ── Workspace (durable SQLite + R2 filesystem) ───────────────────────
export {
  Workspace,
  type WorkspaceHost,
  type LegacyWorkspaceHost,
  type WorkspaceOptions,
  type EntryType,
  type FileInfo,
  type FileStat,
  type WorkspaceChangeEvent,
  type WorkspaceChangeType
} from "./filesystem";

// ── FileSystem interface + InMemoryFs ─────────────────────────────────
export { InMemoryFs } from "./fs/in-memory-fs";
export type { FileSystem, FsStat, InitialFiles } from "./fs/interface";

// ── StateBackend adapter ──────────────────────────────────────────────
export type { StateBackend } from "./backend";
export { StateBatchOperationError } from "./backend";
export {
  FileSystemStateBackend,
  createMemoryStateBackend,
  type FileSystemStateBackendOptions
} from "./memory";
export { createWorkspaceStateBackend } from "./workspace";

// ── LLM prompt helpers ────────────────────────────────────────────────
export { STATE_TYPES, STATE_SYSTEM_PROMPT } from "./prompt";