Automatically scanned data. Review the source before installing. Levels describe capabilities, not a safety certification.
Incomplete scan.External dependency not scanned: AppKit The level shown is a lower bound; parts that could not be resolved may need higher permissions.
View matches (85)
Environment variables · line38 lineplugin/hooks/register.tsxconst program = await $.env.get('TERM_PROGRAM')
Environment variables · line39 lineplugin/hooks/register.tsxconst term = await $.env.get('TERM')
Environment variables · line40 lineplugin/hooks/register.tsxif ((await $.env.get('KITTY_WINDOW_ID')) || term === 'xterm-kitty') return 'kitty'
Environment variables · line47 lineplugin/hooks/register.tsxif (term === 'alacritty' || (await $.env.get('ALACRITTY_WINDOW_ID'))) return 'alacritty'
Environment variables · line48 lineplugin/hooks/register.tsxif (await $.env.get('WT_SESSION')) return 'windows-terminal'
Environment variables · line49 lineplugin/hooks/register.tsxif (await $.env.get('VTE_VERSION')) return 'gnome'
Environment variables · line50 lineplugin/hooks/register.tsxif (await $.env.get('KONSOLE_VERSION')) return 'konsole'
Environment variables · line167 lineplugin/hooks/register.tsxif (await $.env.get('CLAUDE_CODE_FORCE_TERMINAL_IMAGES')) return true
Environment variables · line168 lineplugin/hooks/register.tsxif (await $.env.get('TMUX')) return false
Execute commands · line179 lineplugin/hooks/register.tsxconst { stdout } = await $.process.run(
Read files · line201 lineplugin/hooks/register.tsxconst stat = await $.fs.stat(path).catch(() => null)
Read files · line203 lineplugin/hooks/register.tsxconst png = await $.fs.read(path, { as: 'bytes' }).then(r => r.base64, () => '')
Environment variables · line220 lineplugin/hooks/register.tsxconst tmp = (await $.env.get('TMPDIR')) ?? (await $.env.get('TEMP')) ?? '/tmp'
Read files · line293 lineplugin/hooks/register.tsxconst stat = 'path' in file ? await $.fs.stat(file.path).catch(() => null) : null
Read files · line295 lineplugin/hooks/register.tsxconst png = 'png' in file ? file.png : await $.fs.read(file.path, { as: 'bytes' }).then(r => r.base64, () => '')
Environment variables · line329 lineplugin/hooks/register.tsxstyle.home ||= (await $.env.get('HOME').catch(() => undefined)) ?? (await $.env.get('USERPROFILE').catch(() => undefined)) ?? ''
Environment variables · line333 lineplugin/hooks/register.tsxif (await $.env.get('SSH_CONNECTION') || await $.env.get('SSH_TTY')) return null
Environment variables · line334 lineplugin/hooks/register.tsxif (await $.env.get('OS') === 'Windows_NT') return 'windows'
Read files · line335 lineplugin/hooks/register.tsxconst helper = await $.fs.stat('/usr/bin/osascript').catch(() => null)
Environment variables · line337 lineplugin/hooks/register.tsxreturn await $.env.get('WAYLAND_DISPLAY') || await $.env.get('DISPLAY') ? 'linux' : null
Environment variables · line345 lineplugin/hooks/register.tsxFORCE_HYPERLINK: await $.env.get('FORCE_HYPERLINK'),
Environment variables · line346 lineplugin/hooks/register.tsxTERM_PROGRAM: await $.env.get('TERM_PROGRAM'),
Environment variables · line347 lineplugin/hooks/register.tsxTERM_PROGRAM_VERSION: await $.env.get('TERM_PROGRAM_VERSION'),
Environment variables · line348 lineplugin/hooks/register.tsxTERM: await $.env.get('TERM'),
Environment variables · line349 lineplugin/hooks/register.tsxWT_SESSION: await $.env.get('WT_SESSION'),
Environment variables · line350 lineplugin/hooks/register.tsxLC_TERMINAL: await $.env.get('LC_TERMINAL'),
Environment variables · line351 lineplugin/hooks/register.tsxVTE_VERSION: await $.env.get('VTE_VERSION'),
Environment variables · line352 lineplugin/hooks/register.tsxTERMINAL_EMULATOR: await $.env.get('TERMINAL_EMULATOR'),
Environment variables · line355 lineplugin/hooks/register.tsxconst overSsh = async ($: EngineInterface): Promise<boolean> => Boolean(await $.env.get('SSH_CONNECTION') || await $.env.get('SSH_TTY'))
Environment variables · line358 lineplugin/hooks/register.tsxconst distro = await $.env.get('WSL_DISTRO_NAME')
Environment variables · line359 lineplugin/hooks/register.tsxconst linuxTerminal = distro !== undefined && Boolean(await $.env.get('VTE_VERSION') || await $.env.get('KONSOLE_VERSION') || await $.env.get('KITTY_WINDOW_ID'))
Read files · line397 lineplugin/hooks/register.tsxconst kinds = await Promise.all(paths.map(path => $.fs.stat(path).then(stat => stat.kind, () => 'other')))
Environment variables · line438 lineplugin/hooks/register.tsxconst multiplexed = async ($: EngineInterface): Promise<boolean> => Boolean(await $.env.get('TMUX') || await $.env.get('STY') || await $.env.get('ZELLIJ'))
Environment variables · line453 lineplugin/hooks/register.tsxconst systemRoot = backend === 'windows' ? await $.env.get('SystemRoot') : undefined
Execute commands · line456 lineplugin/hooks/register.tsxconst result = await $.process.run(command.argv, { stdin: command.stdin, timeoutMs: Math.min(30000, (backend === 'windows' ? 15000 : 5000) + Math.ceil(command.stdin.length / 100)) }).catch(() => null)
Environment variables · line781 lineplugin/hooks/register.tsxconst localeOf = async ($: EngineInterface, asked?: string): Promise<string> => asked ?? (await $.env.get('LC_ALL').catch(() => undefined)) ?? (await $.env.get('LANG').catch(() => undefined)) ?? ''
Intercept tool calls · line866 lineplugin/hooks/register.tsxon('tool.call', async ($, e, next) => {
Execute commands · line32 lineplugin/hooks/latex.tsconst rgb = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i.exec(c)
Execute commands · line34 lineplugin/hooks/latex.tsconst ansi = /^ansi256\((\d+)\)$/i.exec(c)
Execute commands · line36 lineplugin/hooks/latex.tsconst name = /^(black|red|green|yellow|blue|magenta|cyan|white|gray|grey)(bright)?$/i.exec(c)
Execute commands · line137 lineplugin/hooks/latex.tsconst data = /^data:image\/png;base64,([A-Za-z0-9+/]{32,}=*)$/i.exec(src)
Execute commands · line194 lineplugin/hooks/markdown.tsconst m = /^[A-Za-z]+/.exec(tex.slice(i))
Execute commands · line377 lineplugin/hooks/markdown.tsconst run = FENCE.exec(line)?.[1]
Execute commands · line381 lineplugin/hooks/markdown.tsconst def = fenced ? null : NOTE_DEF.exec(line)
Execute commands · line414 lineplugin/hooks/markdown.tsconst fence = FENCE.exec(at(i))
Execute commands · line447 lineplugin/hooks/markdown.tsconst heading = /^(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/.exec(line)
Execute commands · line468 lineplugin/hooks/markdown.tsconst fence = FENCE.exec(line)
Execute commands · line526 lineplugin/hooks/markdown.tsconst alert = ALERT.exec(body[0] ?? '')
Execute commands · line536 lineplugin/hooks/markdown.tsconst item = LIST_ITEM.exec(line)
Execute commands · line545 lineplugin/hooks/markdown.tsconst it = LIST_ITEM.exec(at(i))
Execute commands · line549 lineplugin/hooks/markdown.tsconst task = /^\[([ xX])\]\s+(.*)$/.exec(it[3] ?? '')
Execute commands · line142 lineplugin/hooks/charts.tsconst named = /^title\s+(.*)$/i.exec(line)
Execute commands · line146 lineplugin/hooks/charts.tsconst slice = /^"([^"]*)"\s*:\s*([\d.]+)$/.exec(line)
Execute commands · line157 lineplugin/hooks/charts.tsconst head = /^pie\b(\s+showData)?(?:\s+title\s+(.*))?$/i.exec(first)
Execute commands · line176 lineplugin/hooks/charts.tsconst m = exact.exec(text)
Execute commands · line202 lineplugin/hooks/charts.tsconst format = /^dateFormat\s+(.+)$/im.exec(rest.join('\n'))?.[1]?.trim() ?? 'YYYY-MM-DD'
Execute commands · line210 lineplugin/hooks/charts.tsconst named = /^title\s+(.*)$/i.exec(line)
Execute commands · line211 lineplugin/hooks/charts.tsconst section = /^section\s+(.*)$/i.exec(line)
Execute commands · line222 lineplugin/hooks/charts.tsconst after = /^after\s+(.+)$/i.exec(from ?? '')
Execute commands · line225 lineplugin/hooks/charts.tsconst duration = /^(\d+(?:\.\d+)?)(ms|s|m|h|d|w)$/.exec(to ?? '')
Execute commands · line226 lineplugin/hooks/charts.tsconst until = /^until\s+(\S+)$/i.exec(to ?? '')
Execute commands · line61 lineplugin/hooks/rtl.tsconst [, body = n.text, dot = ''] = /^(.*\w)(\.)$/.exec(n.text) ?? []
Execute commands · line313 lineplugin/hooks/rtl.tsconst m = COMMENT.exec(line)
Execute commands · line143 lineplugin/hooks/figure.tsxconst rgb = RGB.exec(value)
Execute commands · line50 lineplugin/hooks/render.tsxconst m = /^(\d+)\.(\d+)\.(\d+)/.exec(base ?? '')
Execute commands · line72 lineplugin/hooks/render.tsxconst short = /^(\d{1,2})(\d{2})$/.exec(value)
Execute commands · line112 lineplugin/hooks/render.tsxconst extensionOf = (name: string): string => /\.([^.]*)$/.exec(name.replace(/[. ]+$/, ''))?.[1] ?? ''
Execute commands · line122 lineplugin/hooks/render.tsx...(/\?([^#]*)/.exec(href)?.[1] ?? '').split('&').filter(pair => /^(file|path)=/i.test(unescaped(pair))).map(pair => pair.slice(pair.indexOf('=') + 1).replaceAll('?', '%3F')),
Execute commands · line164 lineplugin/hooks/render.tsxconst local = /^file:(?:\/\/(?:localhost)?)?(\/(?![a-z]:|\/)[^?#]*)(.*)$/i.exec(href)
Execute commands · line238 lineplugin/hooks/render.tsxconst hostOf = (href: string): string | undefined => /^[a-z][\w+.-]*:\/\/(?:[^@/?#]*@)?([^/?#:]+)/i.exec(href)?.[1]?.toLowerCase().replace(/^www\./, '')
Execute commands · line244 lineplugin/hooks/render.tsxconst m = /^([a-z][\w+.-]*:\/\/)?((?:www\.)?[\p{L}\p{N}-]+(?:\.[\p{L}\p{N}-]+)+)(?::\d+)?(?:[/?#]\S*)?$/iu.exec(shownHost(label))
Execute commands · line2634 lineplugin/hooks/render.tsxconst harmless = ch === '>' && /^(&\d|\s*\/dev\/null)/.exec(command.slice(i + 1))
Execute commands · line18 lineplugin/hooks/bench-table.tsxconst m = SIZE.exec(inlineText(cell).trim())
Execute commands · line23 lineplugin/hooks/bench-table.tsxconst sign = DELTA.exec(inlineText(cell).trim())?.[1]
Execute commands · line22 lineplugin/hooks/test-report.tsxfor (let word = RUN.exec(text); word; word = RUN.exec(text)) {
Execute commands · line40 lineplugin/hooks/vendor/prism.jsvar m = lang.exec(element.className);
Execute commands · line56 lineplugin/hooks/vendor/prism.jsvar src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
Execute commands · line179 lineplugin/hooks/vendor/prism.jsvar match = pattern.exec(text);
Execute commands · line637 lineplugin/hooks/vendor/prism.js/^\w+$/.test(name) || alias.push(/\w+/.exec(name)[0]), name === "diff" && alias.push("bold"), Prism22.languages.diff[name] = { pattern: RegExp("^(?:[" + prefix + `].*(?:\r
Execute commands · line639 lineplugin/hooks/vendor/prism.js|(?![\\s\\S])))+`, "m"), alias, inside: { line: { pattern: /(.)(?=[\s\S]).*(?:\r\n?|\n)?/, lookbehind: !0 }, prefix: { pattern: /[\s\S]/, alias: /\w+/.exec(name)[0] } } };
Execute commands · line22 lineplugin/hooks/mermaid.tsxconst labels = (/^\s*x-axis\b[^[\n]*\[([^\]\n]*)\]/m.exec(source)?.[1] ?? '').split(',').map(s => s.trim().replace(/^"|"$/g, ''))
Execute commands · line37 lineplugin/hooks/mermaid.tsxconst values = /^\s*bar\b[^[\n]*\[([^\]\n]*)\]/m.exec(source)?.[1]?.split(',').map(v => v.trim())
Execute commands · line40 lineplugin/hooks/mermaid.tsxconst gutter = (r: number) => /^\s*(-?[\d.]+)[┤┼]/.exec(grid[r]?.join('') ?? '')?.[1]
Execute commands · line328 lineplugin/hooks/mermaid.tsxconst exact = (color: string) => /^(#|rgb\()/i.test(color.trim()) || Number(/^ansi256\((\d+)\)$/i.exec(color.trim())?.[1]) >= 16
Execute commands · line331 lineplugin/hooks/mermaid.tsxconst hex = exact(color) ? /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(ratexColor(color))?.[1] : undefined