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

Method addAdditionalDir

packages/node-sdk/src/session.ts:159–176  ·  view source on GitHub ↗
(
    path: string,
    options?: AddAdditionalDirOptions,
  )

Source from the content-addressed store, hash-verified

157 }
158
159 async addAdditionalDir(
160 path: string,
161 options?: AddAdditionalDirOptions,
162 ): Promise<AddAdditionalDirResult> {
163 this.ensureOpen();
164 const normalized = normalizeRequiredString(
165 path,
166 'Additional directory cannot be empty',
167 ErrorCodes.REQUEST_INVALID,
168 );
169 const result = await this.rpc.addAdditionalDir({
170 id: this.id,
171 path: normalized,
172 persist: options?.persist ?? true,
173 });
174 this.summary = { ...this.requireSummary(), additionalDirs: result.additionalDirs };
175 return result;
176 }
177
178 async startBtw(): Promise<string> {
179 this.ensureOpen();

Callers 2

addAdditionalDirFunction · 0.45
handleAddDirChoiceFunction · 0.45

Calls 3

ensureOpenMethod · 0.95
requireSummaryMethod · 0.95
normalizeRequiredStringFunction · 0.85

Tested by

no test coverage detected