storage:importCursor
storage:importCursor
Section titled “storage:importCursor”| Field | Value |
|---|---|
| Prefix | storage:importCursor |
| Namespace constant | ImportCursorStorageNamespace |
| Subjects constant | ImportCursorStorageSubjects |
| Kind | storage |
| Schema record | <inline> |
| Tier | framework |
| Package | @makaio/ai-adapters-core |
| Defined in | adapters/core/src/log-importer/cursor-storage.ts |
Subjects
Section titled “Subjects”| Key | Wire | Type | Schema |
|---|---|---|---|
delete | storage:importCursor.delete | rpc | — |
get | storage:importCursor.get | rpc | — |
set | storage:importCursor.set | rpc | — |
Subject Details
Section titled “Subject Details”storage:importCursor.delete (rpc)
Section titled “storage:importCursor.delete (rpc)”Delete the cursor for a log file.
Subject: storage:importCursor.delete
Type: Request (RPC)
Request:
| Field | Type | Required |
|---|---|---|
filePath | string | yes |
Response:
| Field | Type | Required |
|---|---|---|
success | boolean | yes |
storage:importCursor.get (rpc)
Section titled “storage:importCursor.get (rpc)”Get the cursor position for a log file.
Subject: storage:importCursor.get
Type: Request (RPC)
Request:
| Field | Type | Required |
|---|---|---|
filePath | string | yes |
Response:
| Field | Type | Required |
|---|---|---|
cursor | { filePath: string; bytesRead: number; lastModified: string; sessionContext?: ({ model: string | null; cwd: string | null; } & { adapterSessionId: string; sessionEvent: NormalizedEvent; startedEvent: NormalizedEvent; state: JsonObject; }) | undefined; } | null | yes |
storage:importCursor.set (rpc)
Section titled “storage:importCursor.set (rpc)”Set or update the cursor position for a log file.
Subject: storage:importCursor.set
Type: Request (RPC)
Request:
| Field | Type | Required |
|---|---|---|
bytesRead | number | yes |
filePath | string | yes |
lastModified | string | yes |
sessionContext | ({ model: string | null; cwd: string | null; } & { adapterSessionId: string; sessionEvent: NormalizedEvent; startedEvent: NormalizedEvent; state: JsonObject; }) | undefined | no |
Response:
| Field | Type | Required |
|---|---|---|
success | boolean | yes |
Auto-generated by yarn docs:bus. Do not edit manually.