MCPcopy
hub / github.com/Dimillian/CodexMonitor / firstNonEmptyString

Function firstNonEmptyString

src/features/threads/utils/threadRpc.ts:12–20  ·  view source on GitHub ↗
(...values: unknown[])

Source from the content-addressed store, hash-verified

10}
11
12function firstNonEmptyString(...values: unknown[]): string | null {
13 for (const value of values) {
14 const normalized = asString(value);
15 if (normalized) {
16 return normalized;
17 }
18 }
19 return null;
20}
21
22function normalizeSubagentKind(value: string): string {
23 const normalized = value

Callers 1

Calls 1

asStringFunction · 0.90

Tested by

no test coverage detected