MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hydrateValue

Function hydrateValue

src/services/vcr.ts:338–347  ·  view source on GitHub ↗
(s: unknown)

Source from the content-addressed store, hash-verified

336}
337
338function hydrateValue(s: unknown): unknown {
339 if (typeof s !== 'string') {
340 return s
341 }
342 return s
343 .replaceAll('[NUM]', '1')
344 .replaceAll('[DURATION]', '100')
345 .replaceAll('[CONFIG_HOME]', getClaudeConfigHomeDir())
346 .replaceAll('[CWD]', getCwd())
347}
348
349export async function* withStreamingVCR(
350 messages: Message[],

Callers

nothing calls this directly

Calls 1

getCwdFunction · 0.85

Tested by

no test coverage detected