Skip to content

ActivityLog

View as Markdown

Defined in: agent/src/activity.ts:35

Append-only local record of everything a website asked this machine to do. Content is redacted with the same allowlist as uncage doctor --export-events (ids, states and codes stay readable; prompts, file contents and tool args become length placeholders). Writes are serialized.

new ActivityLog(
home,
siteId,
onError?
): ActivityLog;

Defined in: agent/src/activity.ts:40

Parameter Type
home string
siteId string
onError? (err) => void

ActivityLog

readonly path: string;

Defined in: agent/src/activity.ts:38

append(e): Promise<void>;

Defined in: agent/src/activity.ts:48

Parameter Type
e Omit<ActivityEntry, "at" | "site">

Promise<void>


flush(): Promise<void>;

Defined in: agent/src/activity.ts:65

Resolves once every append so far is on disk.

Promise<void>