Class: WikiCompiler
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/WikiCompiler.ts:54
Constructors
Constructor
new WikiCompiler(
opts):WikiCompiler
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/WikiCompiler.ts:55
Parameters
opts
Returns
WikiCompiler
Methods
compile()
compile(
input):Promise<WikiCompileResult>
Defined in: packages/agentos/src/cognition/substrate/memory/wiki/WikiCompiler.ts:66
Fold traces into the pages the cluster step assigns them to. An assignment whose page id the wiki
refuses (see isWikiPageId) is not read, merged or written: it is reported in conflicts, with the
reason as its note, and the other assignments go on. An assignment whose page the file system refuses
for its path, such as a name too long or a file where a folder must be, is reported there too: writing
it would fail the same way on every compile. Its traces are not counted as consumed. Any other failed
write, such as a full disk or a missing permission, rejects the compile, so a caller that keeps a
watermark compiles the same traces again.
Parameters
input
reason
"explicit" | "consolidation" | "session-end"
traces
TraceLike[]
Returns
Promise<WikiCompileResult>