MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / firstText

Function firstText

apps/vis/web/src/lib/analysis.ts:188–196  ·  view source on GitHub ↗
(input: readonly unknown[] | undefined)

Source from the content-addressed store, hash-verified

186}
187
188function firstText(input: readonly unknown[] | undefined): string {
189 if (!input) return '';
190 for (const part of input) {
191 if (part && typeof part === 'object' && (part as { type?: string }).type === 'text') {
192 return (part as { text?: string }).text ?? '';
193 }
194 }
195 return '';
196}
197
198function outputSize(output: unknown): number {
199 if (typeof output === 'string') return output.length;

Callers 1

analyzeWireFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected