スキャンは未完了です。インポートを解決できません ../types; インポートを解決できません ../../types; 依存先のインポートがスキャン上限を超えました
検出箇所を見る(68)
ファイル読み取り ・行172 行claude-code/hud/hooks/register.tsxstat: path => $.fs.stat(path, { resolve: true }),
ファイル読み取り ・行173 行claude-code/hud/hooks/register.tsxread: path => $.fs.read(path),
ファイル読み取り ・行174 行claude-code/hud/hooks/register.tsxlist: path => $.fs.list(path),
ファイル書き込み ・行175 行claude-code/hud/hooks/register.tsxwrite: (path, text) => $.fs.write(path, text),
コマンド実行 ・行176 行claude-code/hud/hooks/register.tsxrun: (argv, init) => $.process.run(argv, init),
ツール登録 ・行302 行claude-code/hud/hooks/register.tsxawait $.tool.register({
ツール呼び出しの介入 ・行437 行claude-code/hud/hooks/register.tsxon('tool.call', { tool: /^mcp__hud__hud_debug$/ }, async () => {
ツール呼び出しの介入 ・行447 行claude-code/hud/hooks/register.tsxon('tool.call', async ($, e, next) => {
コマンド実行 ・行166 行claude-code/hud/hooks/extras.tsconst ab = /^# branch\.ab \+(\d+) -\d+/.exec(record)
コマンド実行 ・行21 行claude-code/hud/hooks/hud/render/ansi.tsconst match = ESCAPE_AT.exec(str);
コマンド実行 ・行143 行claude-code/hud/hooks/hud/render/ansi.tsconst url = /^\x1b\]8;;([^\x07\x1b]*)/.exec(token.text)?.[1];
環境変数 ・行375 行claude-code/hud/hooks/hud/config.ts.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (match, name: string) => process.env[name] ?? match)
ファイル読み取り ・行500 行claude-code/hud/hooks/hud/config.tsconst content = fs.readFileSync(fd, 'utf-8');
ファイル読み取り ・行90 行claude-code/hud/hooks/shims/fs.tsexport function statSync(p: PathLike, options?: { throwIfNoEntry?: boolean }): Stats {
ファイル読み取り ・行105 行claude-code/hud/hooks/shims/fs.tsreturn statSync(fd)
ファイル読み取り ・行120 行claude-code/hud/hooks/shims/fs.tsexport function readFileSync(p: PathLike, _options?: unknown): string {
ファイル読み取り ・行124 行claude-code/hud/hooks/shims/fs.tsexport function readdirSync(p: string, options?: { withFileTypes?: boolean }): any[] {
ファイル書き込み ・行150 行claude-code/hud/hooks/shims/fs.tsexport function writeFileSync(p: PathLike, data: unknown, _options?: unknown): void {
ファイル書き込み ・行180 行claude-code/hud/hooks/shims/fs.tsexport function unlinkSync(p: string): void {
ファイル書き込み ・行188 行claude-code/hud/hooks/shims/fs.tsexport function mkdirSync(_p: string, _options?: unknown): void {}
環境変数 ・行14 行claude-code/hud/hooks/hud/claude-config-dir.tsconst envConfigDir = process.env.CLAUDE_CONFIG_DIR?.trim();
環境変数 ・行22 行claude-code/hud/hooks/hud/claude-config-dir.tsconst envConfigDir = process.env.CLAUDE_CONFIG_DIR?.trim();
環境変数 ・行2 行claude-code/hud/hooks/hud/debug.tsconst enabled = process.env.DEBUG?.includes('claude-hud') || process.env.DEBUG === '*';
環境変数 ・行12 行claude-code/hud/hooks/hud/utils/terminal.tsreturn columns(process.env.COLUMNS) ?? columns(process.stdout?.columns) ?? columns(process.stderr?.columns);
コマンド実行 ・行136 行claude-code/hud/hooks/hud/git.tsconst sha = /^detached:([0-9a-f]+)$/.exec(ref)?.[1];
コマンド実行 ・行171 行claude-code/hud/hooks/hud/git.tsconst match = /^\+(\d+) -(\d+)$/.exec(record.slice('# branch.ab '.length));
環境変数 ・行10 行claude-code/hud/hooks/hud/git-runner.tsexport function createGitEnvironment(base: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv {
コマンド実行 ・行17 行claude-code/hud/hooks/hud/git-runner.tsexecFile('git', [...args], {
コマンド実行 ・行73 行claude-code/hud/hooks/shims/child_process.tsexport function execFile(
コマンド実行 ・行90 行claude-code/hud/hooks/shims/child_process.tsexport function exec(command: string, options?: ExecOptions | Callback, callback?: Callback): void {
コマンド実行 ・行102 行claude-code/hud/hooks/shims/child_process.tsexport function execFileSync(file: string, ...rest: unknown[]): string {
コマンド実行 ・行111 行claude-code/hud/hooks/shims/child_process.tsexport function spawn(): never {
コマンド実行 ・行58 行claude-code/hud/hooks/hud/auth.tsconst match = /_(\d+x)$/i.exec(rateLimitTier);
環境変数 ・行66 行claude-code/hud/hooks/hud/auth.tsexport function deriveAuthInfo(claudeJson: unknown, env: NodeJS.ProcessEnv = process.env): AuthInfo {
環境変数 ・行109 行claude-code/hud/hooks/hud/auth.tsif (hasApiKey(process.env)) {
ファイル読み取り ・行113 行claude-code/hud/hooks/hud/auth.tsreturn deriveAuthInfo(JSON.parse(fs.readFileSync(getClaudeConfigJsonPath(os.homedir()), 'utf8')));
ファイル読み取り ・行66 行claude-code/hud/hooks/hud/daily-cost.tsconst value: unknown = JSON.parse(fs.readFileSync(ledgerPath, 'utf8'));
ファイル読み取り ・行93 行claude-code/hud/hooks/hud/daily-cost.tsreturn now - fs.statSync(ledgerPath).mtimeMs <= DAILY_COST_WRITE_THROTTLE_MS;
ファイル書き込み ・行102 行claude-code/hud/hooks/hud/daily-cost.tsfs.mkdirSync(path.dirname(ledgerPath), { recursive: true, mode: 0o700 });
ファイル書き込み ・行103 行claude-code/hud/hooks/hud/daily-cost.tsfs.writeFileSync(tmpPath, `${JSON.stringify(ledger, null, 2)}\n`, { mode: 0o600, flag: 'wx' });
環境変数 ・行151 行claude-code/hud/hooks/hud/stdin.tsexport function getProviderLabel(stdin: StdinData, env: NodeJS.ProcessEnv = process.env): string | null {
コマンド実行 ・行70 行claude-code/hud/hooks/hud/transcript.tsconst mcpServer = (toolName: string): string | undefined => name(MCP_TOOL.exec(toolName)?.[1]);
コマンド実行 ・行158 行claude-code/hud/hooks/hud/transcript.tsconst effort = EFFORT_COMMAND.exec(entry.message.content);
コマンド実行 ・行172 行claude-code/hud/hooks/hud/transcript.tsconst toolUseId = /<tool-use-id>([^<]+)<\/tool-use-id>/.exec(entry.content)?.[1];
ファイル読み取り ・行366 行claude-code/hud/hooks/hud/transcript.tsif (!transcriptPath || !fs.statSync(transcriptPath).isFile()) return emptyTranscript();
コマンド実行 ・行45 行claude-code/hud/hooks/stdin.tsconst match = /claude-(opus|sonnet|haiku|fable)-(\d+)(?:-(\d{1,2}))?(?:-\d{8})?$/i.exec(bare)
コマンド実行 ・行46 行claude-code/hud/hooks/stdin.ts?? /claude-(\d+)(?:-(\d+))?-(opus|sonnet|haiku)/i.exec(bare)
コマンド実行 ・行92 行claude-code/hud/hooks/stdin.tsconst match = /^(?:[a-z+]+:\/\/)?(?:[^@/]+@)?([^/:]+)[:/](?:\d+\/)?([^/]+)\/([^/]+?)(?:\.git)?\/?$/i.exec(remote.trim())
環境変数 ・行23 行claude-code/hud/hooks/hud/index.tsexport function isHudDisabled(env: NodeJS.ProcessEnv = process.env): boolean {
コマンド実行 ・行15 行claude-code/hud/hooks/hud/memory.tsconst pageSize = /page size of (\d+) bytes/.exec(output)?.[1];
コマンド実行 ・行16 行claude-code/hud/hooks/hud/memory.tsconst active = /Pages active:\s+(\d+)/.exec(output)?.[1];
コマンド実行 ・行17 行claude-code/hud/hooks/hud/memory.tsconst wired = /Pages wired down:\s+(\d+)/.exec(output)?.[1];
コマンド実行 ・行24 行claude-code/hud/hooks/hud/memory.tsconst total = /^MemTotal:\s+(\d+)\s+kB/m.exec(output)?.[1];
コマンド実行 ・行25 行claude-code/hud/hooks/hud/memory.tsconst available = /^MemAvailable:\s+(\d+)\s+kB/m.exec(output)?.[1];
コマンド実行 ・行33 行claude-code/hud/hooks/hud/memory.tsexecFile('/usr/bin/vm_stat', { encoding: 'utf8', timeout: VM_STAT_TIMEOUT_MS }, (error, stdout) => {
ファイル読み取り ・行44 行claude-code/hud/hooks/hud/memory.tsreturn parseLinuxMeminfo(await readFile('/proc/meminfo', 'utf8')) ?? systemMemory();
ファイル読み取り ・行4 行claude-code/hud/hooks/shims/fs_promises.tsexport async function readFile(path: string, _options?: unknown): Promise<string> {
ファイル読み取り ・行80 行claude-code/hud/hooks/hud/render/vcs.tsreturn resolved ? fs.statSync(resolved).mtimeMs : 0;
ファイル読み取り ・行21 行claude-code/hud/hooks/hud/config-reader.tsconst value: unknown = JSON.parse(fs.readFileSync(filePath, 'utf8'));
ファイル読み取り ・行56 行claude-code/hud/hooks/hud/config-reader.tsfor (const entry of fs.readdirSync(root)) {
ファイル読み取り ・行60 行claude-code/hud/hooks/hud/config-reader.tsconst stat = fs.statSync(target);
コマンド実行 ・行28 行claude-code/hud/hooks/hud/jj.tsexecFile(file, [...args], options, (error, stdout) => (error ? reject(error) : resolve({ stdout })));
環境変数 ・行11 行claude-code/hud/hooks/hud/extra-cmd.tsexport function isExtraCmdAllowed(env: NodeJS.ProcessEnv = process.env): boolean {
環境変数 ・行15 行claude-code/hud/hooks/hud/extra-cmd.tsexport function parseExtraCmdArg(argv: string[] = process.argv, env: NodeJS.ProcessEnv = process.env): string | null {
コマンド実行 ・行42 行claude-code/hud/hooks/hud/extra-cmd.tsexec(cmd, { timeout, maxBuffer: MAX_OUTPUT_BYTES, windowsHide: true }, (error, stdout) => {
ファイル読み取り ・行25 行claude-code/hud/hooks/hud/speed.tsconst state = JSON.parse(fs.readFileSync(file, 'utf8')) as Partial<SpeedState>;
ファイル書き込み ・行37 行claude-code/hud/hooks/hud/speed.tsfs.mkdirSync(path.dirname(file), { recursive: true, mode: 0o700 });
ファイル書き込み ・行39 行claude-code/hud/hooks/hud/speed.tsfs.writeFileSync(tmp, JSON.stringify(state), { mode: 0o600 });