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): Promise<LoopInstance[]>7}8 9memoryStore(): LoopStoreSDK wiring
1"cmt">// @no-typecheck2import { memoryStore } from "@loop-engine/adapter-memory"3import { createLoopSystem } from "@loop-engine/sdk"4 5const { engine } = await createLoopSystem({6 loops: [definition],7 store: memoryStore()8})Runtime limits
State resets when the process restarts. Use this adapter for development, test suites, and ephemeral demos.