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

Function text

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

Source from the content-addressed store, hash-verified

123}
124
125function text(value: unknown): string | undefined {
126 if (typeof value !== "string") {
127 return undefined
128 }
129
130 const next = value.trim()
131 return next || undefined
132}
133
134function num(value: unknown): number | undefined {
135 if (typeof value === "number" && Number.isFinite(value)) {

Callers 6

inputLabelFunction · 0.70
stateTitleFunction · 0.70
taskStatusFunction · 0.70
taskTabFunction · 0.70
taskSessionIDFunction · 0.70
ensureBlockerTabFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected