MCPcopy
hub / github.com/codeaashu/claude-code / inputPreview

Function inputPreview

src/bridge/sessionRunner.ts:237–246  ·  view source on GitHub ↗

Build a short preview of tool input for debug logging.

(input: Record<string, unknown>)

Source from the content-addressed store, hash-verified

235
236/** Build a short preview of tool input for debug logging. */
237function inputPreview(input: Record<string, unknown>): string {
238 const parts: string[] = []
239 for (const [key, val] of Object.entries(input)) {
240 if (typeof val === 'string') {
241 parts.push(`${key}="${val.slice(0, 100)}"`)
242 }
243 if (parts.length >= 3) break
244 }
245 return parts.join(' ')
246}
247
248export function createSessionSpawner(deps: SessionSpawnerDeps): SessionSpawner {
249 return {

Callers 1

extractActivitiesFunction · 0.85

Calls 2

entriesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected