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

Function parseCommandArgs

packages/codex-native-api/src/default_provider.ts:443–449  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

441}
442
443function parseCommandArgs(value: unknown): string[] {
444 const normalized = normalizeOptionalString(value);
445 if (!normalized) {
446 return [];
447 }
448 return normalized.split(/\s+/u).filter(Boolean);
449}
450
451function normalizeCodexPersonality(value: unknown): 'friendly' | 'pragmatic' | 'none' | null {
452 const normalized = typeof value === 'string' ? value.trim().toLowerCase() : '';

Callers 1

Calls 1

normalizeOptionalStringFunction · 0.85

Tested by

no test coverage detected