πŸ“„ File detail

utils/userAgent.ts

🧩 .tsπŸ“ 11 linesπŸ’Ύ 281 bytesπŸ“ text
← Back to All Files

🎯 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}`
}