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

Function parseStringArray

packages/oauth/src/managed-kimi-code.ts:437–441  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

435}
436
437export function parseStringArray(value: unknown): readonly string[] | undefined {
438 if (!Array.isArray(value)) return undefined;
439 const out = value.filter((v): v is string => typeof v === 'string' && v.length > 0);
440 return out.length > 0 ? out : undefined;
441}
442
443// Unknown or missing values resolve to undefined so callers fall back to the
444// legacy supports_reasoning boolean instead of guessing.

Callers 1

parseThinkEffortsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected