Skip to content

createItemStore

function createItemStore(seed?): ItemStore;

Defined in: item/item.store.ts:16

A ToolItems backed by a plain list, seeded with the caller’s current items. latest/list resolve over seed + emitted; emitted() returns only the new versions written during a call. This is the adapter a transport uses to bridge item context (the server route), and the one tests run against — the agent’s transcript-backed items are the other adapter at the same seam.

Parameter Type Default value
seed { data: unknown; itemType: string; key?: string; }[] []

ItemStore