ActivityLog
View as MarkdownDefined 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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ActivityLog( home, siteId, onError?): ActivityLog;Defined in: agent/src/activity.ts:40
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
home |
string |
siteId |
string |
onError? |
(err) => void |
Returns
Section titled “Returns”ActivityLog
Properties
Section titled “Properties”readonly path: string;Defined in: agent/src/activity.ts:38
Methods
Section titled “Methods”append()
Section titled “append()”append(e): Promise<void>;Defined in: agent/src/activity.ts:48
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
e |
Omit<ActivityEntry, "at" | "site"> |
Returns
Section titled “Returns”Promise<void>
flush()
Section titled “flush()”flush(): Promise<void>;Defined in: agent/src/activity.ts:65
Resolves once every append so far is on disk.
Returns
Section titled “Returns”Promise<void>