MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / parseBoolean

Function parseBoolean

src/providers/codex/config.ts:232–237  ·  view source on GitHub ↗
(value: unknown, fallback: boolean)

Source from the content-addressed store, hash-verified

230}
231
232function parseBoolean(value: unknown, fallback: boolean): boolean {
233 if (value === undefined) {
234 return fallback;
235 }
236 return String(value).trim() !== 'false' && String(value).trim() !== '0';
237}
238
239function buildPresetOpenAICompatibleProfile({
240 presetId,

Calls

no outgoing calls

Tested by

no test coverage detected