MCPcopy
hub / github.com/musistudio/claude-code-router / readString

Function readString

src/main/config.ts:2560–2562  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

2558}
2559
2560function readString(value: unknown): string | undefined {
2561 return typeof value === "string" && value.trim() ? value.trim() : undefined;
2562}
2563
2564function formatError(error: unknown): string {
2565 return error instanceof Error ? error.message : String(error);

Callers 15

parseOverviewWidgetFunction · 0.70
parseTrayBalanceProgressFunction · 0.70
parseTrayWindowModulesFunction · 0.70
parseTrayWidgetFunction · 0.70
parseProvidersFunction · 0.70
parseModelDescriptionsFunction · 0.70
parseModelDisplayNamesFunction · 0.70
parseProviderCredentialsFunction · 0.70
parseStringListFunction · 0.70
parseRouterRulesFunction · 0.70
parseRouterRuleConditionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…