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

Function parseCapabilities

packages/agent-core/src/config/env-model.ts:59–66  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

57}
58
59function parseCapabilities(raw: string | undefined): string[] | undefined {
60 if (raw === undefined) return undefined;
61 const caps = raw
62 .split(',')
63 .map((c) => c.trim().toLowerCase())
64 .filter((c) => c.length > 0);
65 return caps.length === 0 ? undefined : caps;
66}
67
68// `parseBooleanEnv` returns undefined for unrecognized input. Treat a non-empty
69// but unparseable value (e.g. a typo like `flase`) as a config error so it

Callers 1

applyEnvModelConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected