MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / write

Method write

packages/agent-core/src/session/index.ts:691–694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

689 writeMetadata() {
690 const text = JSON.stringify(this.metadata, null, 2);
691 const write = async () => {
692 await this.persistenceKaos.mkdir(this.options.homedir, { parents: true, existOk: true });
693 await this.persistenceKaos.writeText(this.metadataPath, text);
694 };
695 this.writeMetadataPromise = this.writeMetadataPromise.then(write, write);
696 return this.writeMetadataPromise;
697 }

Callers

nothing calls this directly

Calls 2

mkdirMethod · 0.65
writeTextMethod · 0.65

Tested by

no test coverage detected