MCPcopy Index your code
hub / github.com/anomalyco/opencode / text

Function text

packages/opencode/src/cli/cmd/run/tool.ts:155–157  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

153}
154
155function text(v: unknown): string {
156 return typeof v === "string" ? v : ""
157}
158
159function num(v: unknown): number | undefined {
160 if (typeof v !== "number" || !Number.isFinite(v)) {

Callers 15

toolErrorFunction · 0.70
fallbackInlineFunction · 0.70
runListFunction · 0.70
runWriteFunction · 0.70
runInvalidFunction · 0.70
runBatchFunction · 0.70
runLspFunction · 0.70
runPlanExitFunction · 0.70
snapTaskFunction · 0.70
scrollTaskFinalFunction · 0.70
scrollListStartFunction · 0.70
permListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected