π― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes getClaudeCodeUserAgent β mainly functions, hooks, or classes.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
User-Agent string helpers. Kept dependency-free so SDK-bundled code (bridge, cli/transports) can import without pulling in auth.ts and its transitive dependency tree.
π€ Exports (heuristic)
getClaudeCodeUserAgent
π₯οΈ Source preview
/**
* User-Agent string helpers.
*
* Kept dependency-free so SDK-bundled code (bridge, cli/transports) can
* import without pulling in auth.ts and its transitive dependency tree.
*/
export function getClaudeCodeUserAgent(): string {
return `claude-code/${MACRO.VERSION}`
}