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

Function trimmed

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

Source from the content-addressed store, hash-verified

30type Env = Readonly<Record<string, string | undefined>>;
31
32function trimmed(value: string | undefined): string | undefined {
33 const t = value?.trim();
34 return t === undefined || t.length === 0 ? undefined : t;
35}
36
37function fail(message: string): never {
38 throw new KimiError(ErrorCodes.CONFIG_INVALID, message);

Callers 2

parseBooleanVarFunction · 0.85
applyEnvModelConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected