MCPcopy Create free account
hub / github.com/anomalyco/opencode / num

Function num

packages/opencode/src/cli/cmd/run/subagent-data.ts:134–140  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

132}
133
134function num(value: unknown): number | undefined {
135 if (typeof value === "number" && Number.isFinite(value)) {
136 return value
137 }
138
139 return undefined
140}
141
142function inputLabel(input: Record<string, unknown>): string | undefined {
143 const description = text(input.description)

Callers 1

taskTabFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected