Automatically scanned data. Review the source before installing. Levels describe capabilities, not a safety certification.
View matches (32)
Execute commands · line277 linehooks/register.tsxconst made = await $.process.run(['mkdir', '-p', dir])
Execute commands · line281 linehooks/register.tsxconst { exitCode } = await $.process.run(['ln', '-sfn', source, `${dir}/${markHex(id)}`])
Execute commands · line289 linehooks/register.tsxif (dir && (await $.fs.exists(dir))) await $.process.run(['find', dir, '-type', 'l', '-mmin', '+1440', '-delete'])
Environment variables · line293 linehooks/register.tsxconst home = await $.env.get('HOME')
Read files · line299 linehooks/register.tsxconst { size } = await $.fs.stat(file)
Read files · line302 linehooks/register.tsxconst bytes = fromBase64((await $.fs.read(file, { as: 'bytes' })).base64)
Write files · line308 linehooks/register.tsxawait $.fs.write(out, '')
Execute commands · line312 linehooks/register.tsxconst { exitCode } = await $.process.run(argv)
Read files · line316 linehooks/register.tsxconst bytes = fromBase64((await $.fs.read(out, { as: 'bytes' })).base64)
Read files · line351 linehooks/register.tsxconst entry = (await $.fs.list(dir)).find(item => item.kind === 'file' && Number(IMAGE_FILE.exec(item.name)?.[1]) === n)
Execute commands · line351 linehooks/register.tsxconst entry = (await $.fs.list(dir)).find(item => item.kind === 'file' && Number(IMAGE_FILE.exec(item.name)?.[1]) === n)
Environment variables · line377 linehooks/register.tsxconst override = await $.env.get('CLAUDE_CODE_TMPDIR')
Environment variables · line378 linehooks/register.tsxconst parents = [override, '/tmp', '/private/tmp', await $.env.get('TMPDIR'), await $.env.get('TEMP')]
Read files · line394 linehooks/register.tsxreturn (await $.fs.list(path)).filter(item => item.kind === 'dir').map(item => item.name)
Environment variables · line417 linehooks/register.tsxconst port = await $.env.get('CLAUDE_CODE_SSE_PORT')
Environment variables · line420 linehooks/register.tsxif (!port || !PORT.test(port) || !dir || (await $.env.get('OS')) !== 'Windows_NT') return false
Execute commands · line426 linehooks/register.tsxconst { exitCode } = await $.process.run(ideCommand(port, lock, file), { timeoutMs: IDE_TIMEOUT_MS })
Environment variables · line436 linehooks/register.tsxconst isWindows = (await $.env.get('OS')) === 'Windows_NT'
Execute commands · line440 linehooks/register.tsxconst { exitCode } = await $.process.run(argv, { timeoutMs: VIEWER_TIMEOUT_MS })
Environment variables · line455 linehooks/register.tsxconst configured = await $.env.get('CLAUDE_CONFIG_DIR')
Environment variables · line459 linehooks/register.tsxconst home = (await $.env.get('USERPROFILE')) ?? (await $.env.get('HOME'))
Write files · line476 linehooks/register.tsxawait $.fs.write(spec, lines.length > 0 ? `${lines.join('\n')}\n` : '')
Execute commands · line507 linehooks/register.tsxconst child = $.process.spawn({ argv })
Environment variables · line525 linehooks/register.tsxif (renderer === 'window') return (await $.env.get('OS')) === 'Windows_NT' ? 'window' : 'blocks'
Environment variables · line533 linehooks/register.tsxconst isTmux = Boolean(await $.env.get('TMUX'))
Environment variables · line535 linehooks/register.tsxif (isTmux && !(await $.env.get('CLAUDE_CODE_TMUX_TRUECOLOR'))) return false
Environment variables · line536 linehooks/register.tsxif ((await $.env.get('CLAUDE_MODS_IMAGE_OVERLAY')) === '1') return true
Execute commands · line540 linehooks/register.tsxconst { exitCode, stdout } = await $.process.run(['tmux', 'show-environment', '-g', 'CLAUDE_MODS_IMAGE_OVERLAY'])
Environment variables · line549 linehooks/register.tsxif ((await $.env.get('TMUX')) || (await $.env.get('STY')) || (await $.env.get('SSH_CONNECTION'))) return false
Environment variables · line551 linehooks/register.tsxconst term = await $.env.get('TERM')
Environment variables · line552 linehooks/register.tsxconst program = await $.env.get('TERM_PROGRAM')
Environment variables · line554 linehooks/register.tsxreturn term === 'xterm-kitty' || term === 'xterm-ghostty' || program === 'ghostty' || Boolean(await $.env.get('KITTY_WINDOW_ID'))