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

Function asString

src/utils/threadItems.shared.ts:19–21  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

17export const TOOL_OUTPUT_RECENT_ITEMS = 40;
18
19export function asString(value: unknown) {
20 return typeof value === "string" ? value : value ? String(value) : "";
21}
22
23export function asNumber(value: unknown) {
24 if (typeof value === "number" && Number.isFinite(value)) {

Callers 10

extractImageInputValueFunction · 0.90
parseUserInputsFunction · 0.90
buildConversationItemFunction · 0.90
isReviewingFromThreadFunction · 0.90
buildCollabAgentRefFunction · 0.90
buildCollabAgentStatusFunction · 0.90
parseCollabToolCallItemFunction · 0.90
normalizeStringListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected