@meego-harness/memory
v0.9.0
Published
Typed memory kernel models for meego-harness
Downloads
185
Readme
@meego-harness/memory
Typed memory models and workspace memory stores for Meego Harness.
The package models four memory families used by the SDK and manager-agent:
- project memory
- template memory
- owner memory
- HITL sync configuration memory
Install
pnpm add @meego-harness/memoryStores
import {
InMemoryMemoryStore,
SqliteMemoryStore,
} from '@meego-harness/memory'
const memory = new InMemoryMemoryStore()
memory.upsertProjectMemory({
projectId: 123,
summary: 'Example project summary',
goals: ['Ship the integration'],
constraints: [],
openQuestions: [],
nextActions: ['Review current node state'],
references: [],
updatedAt: Date.now(),
updatedBy: 'system',
version: 1,
})
const sqliteMemory = new SqliteMemoryStore({
file: './memory.sqlite',
})InMemoryMemoryStore is useful for tests and short-lived runtimes. SqliteMemoryStore persists the same document shapes to sqlite tables and creates parent directories for the configured file.
Boundaries
- This package only owns typed memory documents and store implementations.
- It does not decide when memory should be updated.
- It does not render prompts or manager decisions.
- It does not store worker task history; task state belongs to
@meego-harness/worker-sdkand harness state belongs to@meego-harness/sdk.
