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

Method data

packages/agent-core/src/agent/plan/index.ts:106–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 async data(): Promise<PlanData> {
107 if (!this._planId || !this._planFilePath) return null;
108 let content = '';
109 try {
110 content = await this.agent.kaos.readText(this._planFilePath);
111 } catch (error) {
112 if (!isMissingFileError(error)) throw error;
113 }
114 return {
115 id: this._planId,
116 content,
117 path: this._planFilePath,
118 };
119 }
120
121 private async writeEmptyPlanFile(path: string): Promise<void> {
122 await this.ensurePlanDirectory(path);

Callers 15

runtime.test.tsFile · 0.45
usage.test.tsFile · 0.45
permission.test.tsFile · 0.45
tool.test.tsFile · 0.45
turn.test.tsFile · 0.45
resumeStateSnapshotFunction · 0.45
resumeContextSnapshotFunction · 0.45

Calls 2

isMissingFileErrorFunction · 0.85
readTextMethod · 0.65

Tested by

no test coverage detected