Packages
@loop-engine/adapter-memory
@loop-engine/adapter-memory stores loop state and transition history in process memory.
Install
1npm install @loop-engine/adapter-memoryStore API
1class MemoryStore implements LoopStore {2 getInstance(aggregateId: AggregateId): Promise<LoopInstance | null>3 saveInstance(instance: LoopInstance): Promise<void>4 getTransitionHistory(aggregateId: AggregateId): Promise<TransitionRecord[]>5 saveTransitionRecord(record: TransitionRecord): Promise<void>6 listOpenInstances(loopId: LoopId, orgId: string): Promise<LoopInstance[]>7}8 9memoryStore(): LoopStoreSDK wiring
1import { memoryStore } from "@loop-engine/adapter-memory"2import { createLoopSystem } from "@loop-engine/sdk"3 4const { engine } = await createLoopSystem({5 loops: [definition],6 store: memoryStore()7})Runtime limits
State resets when the process restarts. Use this adapter for development, test suites, and ephemeral demos.