Function: operatorIndexText()
operatorIndexText(
pages,indexMd):string
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/WikiPageCodec.ts:133
The memory index a prompt is given: the catalog of the operator's pages, after the text migrated from a legacy
MEMORY.md that indexMd holds, without that text's end marker. It is what the wiki store writes into
memory/index.md, rendered from the pages rather than read from the file, so nothing else the file holds reaches
a prompt.
Parameters
pages
WikiPage[]
The pages under memory/; only the operator's are listed.
indexMd
string
The text of memory/index.md, read for its migrated block alone.
Returns
string
The index, trimmed.