Skip to content

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

1.3 KB
Raw Blame
export const FILE_CONTENT_TYPES: Readonly<Record<string, string>>;
/** The kind of a local file a person would open (image, video, document, deck, spreadsheet, page), or null for code and data. */
export function fileKind(path: string): string | null;
/** A work-state field that names work product: work_product(s), deliverable(s), or any *_url field. */
export function isWorkProductField(field: string): boolean;
/** True for an absolute path on this platform with no `..` part. */
export function isLocalPath(value: unknown): boolean;
/** Stable opaque identity for an origin's recorded local file, independent of local paths. */
export function localProductId(ref: { kind: string; device: string; row: string | number; index?: number }): string | null;
/** Resolves native or positively same-origin records only. Imported paths never address this device's disk. */
export function recordedFile(read: (sql: string, params: unknown[]) => any[], kind: string, id: number, index: number, localDeviceId?: string): string | null;
/** The bucket copy a `deliverables` row records, as a work product that opens through /api/deliverables/:id/:filename. */
export function productsFromDeliverable(row: {
  id: number; title?: string | null; kind?: string | null; bucket_path: string; source_path?: string | null; created_at_epoch?: number | null;
}): Array<Record<string, unknown>>;