16 lines
666 B
TypeScript
16 lines
666 B
TypeScript
import type { RuntimeMemoryImportance, RuntimeMemoryMutationResult, RuntimeMemorySnapshot, RuntimeMemoryTarget } from '../contracts.ts'
|
|
|
|
export interface RuntimePageClient {
|
|
runtimeMemory(): Promise<RuntimeMemorySnapshot>
|
|
pinRuntimeMemory?(request: { target: RuntimeMemoryTarget; content: string; pinned: boolean; matchBranches?: string[] }): Promise<RuntimeMemorySnapshot>
|
|
mutateRuntimeMemory(request: {
|
|
action: 'add' | 'replace' | 'remove'
|
|
target: RuntimeMemoryTarget
|
|
content?: string
|
|
old_text?: string
|
|
importance?: RuntimeMemoryImportance
|
|
matchBranches?: string[]
|
|
branches?: string[]
|
|
}): Promise<RuntimeMemoryMutationResult>
|
|
}
|