查看命中位置(85)
环境变量 · 第38 行plugin/hooks/register.tsxconst program = await $.env.get('TERM_PROGRAM')
环境变量 · 第39 行plugin/hooks/register.tsxconst term = await $.env.get('TERM')
环境变量 · 第40 行plugin/hooks/register.tsxif ((await $.env.get('KITTY_WINDOW_ID')) || term === 'xterm-kitty') return 'kitty'
环境变量 · 第47 行plugin/hooks/register.tsxif (term === 'alacritty' || (await $.env.get('ALACRITTY_WINDOW_ID'))) return 'alacritty'
环境变量 · 第48 行plugin/hooks/register.tsxif (await $.env.get('WT_SESSION')) return 'windows-terminal'
环境变量 · 第49 行plugin/hooks/register.tsxif (await $.env.get('VTE_VERSION')) return 'gnome'
环境变量 · 第50 行plugin/hooks/register.tsxif (await $.env.get('KONSOLE_VERSION')) return 'konsole'
环境变量 · 第167 行plugin/hooks/register.tsxif (await $.env.get('CLAUDE_CODE_FORCE_TERMINAL_IMAGES')) return true
环境变量 · 第168 行plugin/hooks/register.tsxif (await $.env.get('TMUX')) return false
执行命令 · 第179 行plugin/hooks/register.tsxconst { stdout } = await $.process.run(
读文件 · 第201 行plugin/hooks/register.tsxconst stat = await $.fs.stat(path).catch(() => null)
读文件 · 第203 行plugin/hooks/register.tsxconst png = await $.fs.read(path, { as: 'bytes' }).then(r => r.base64, () => '')
环境变量 · 第220 行plugin/hooks/register.tsxconst tmp = (await $.env.get('TMPDIR')) ?? (await $.env.get('TEMP')) ?? '/tmp'
读文件 · 第293 行plugin/hooks/register.tsxconst stat = 'path' in file ? await $.fs.stat(file.path).catch(() => null) : null
读文件 · 第295 行plugin/hooks/register.tsxconst png = 'png' in file ? file.png : await $.fs.read(file.path, { as: 'bytes' }).then(r => r.base64, () => '')
环境变量 · 第329 行plugin/hooks/register.tsxstyle.home ||= (await $.env.get('HOME').catch(() => undefined)) ?? (await $.env.get('USERPROFILE').catch(() => undefined)) ?? ''
环境变量 · 第333 行plugin/hooks/register.tsxif (await $.env.get('SSH_CONNECTION') || await $.env.get('SSH_TTY')) return null
环境变量 · 第334 行plugin/hooks/register.tsxif (await $.env.get('OS') === 'Windows_NT') return 'windows'
读文件 · 第335 行plugin/hooks/register.tsxconst helper = await $.fs.stat('/usr/bin/osascript').catch(() => null)
环境变量 · 第337 行plugin/hooks/register.tsxreturn await $.env.get('WAYLAND_DISPLAY') || await $.env.get('DISPLAY') ? 'linux' : null
环境变量 · 第345 行plugin/hooks/register.tsxFORCE_HYPERLINK: await $.env.get('FORCE_HYPERLINK'),
环境变量 · 第346 行plugin/hooks/register.tsxTERM_PROGRAM: await $.env.get('TERM_PROGRAM'),
环境变量 · 第347 行plugin/hooks/register.tsxTERM_PROGRAM_VERSION: await $.env.get('TERM_PROGRAM_VERSION'),
环境变量 · 第348 行plugin/hooks/register.tsxTERM: await $.env.get('TERM'),
环境变量 · 第349 行plugin/hooks/register.tsxWT_SESSION: await $.env.get('WT_SESSION'),
环境变量 · 第350 行plugin/hooks/register.tsxLC_TERMINAL: await $.env.get('LC_TERMINAL'),
环境变量 · 第351 行plugin/hooks/register.tsxVTE_VERSION: await $.env.get('VTE_VERSION'),
环境变量 · 第352 行plugin/hooks/register.tsxTERMINAL_EMULATOR: await $.env.get('TERMINAL_EMULATOR'),
环境变量 · 第355 行plugin/hooks/register.tsxconst overSsh = async ($: EngineInterface): Promise<boolean> => Boolean(await $.env.get('SSH_CONNECTION') || await $.env.get('SSH_TTY'))
环境变量 · 第358 行plugin/hooks/register.tsxconst distro = await $.env.get('WSL_DISTRO_NAME')
环境变量 · 第359 行plugin/hooks/register.tsxconst linuxTerminal = distro !== undefined && Boolean(await $.env.get('VTE_VERSION') || await $.env.get('KONSOLE_VERSION') || await $.env.get('KITTY_WINDOW_ID'))
读文件 · 第397 行plugin/hooks/register.tsxconst kinds = await Promise.all(paths.map(path => $.fs.stat(path).then(stat => stat.kind, () => 'other')))
环境变量 · 第438 行plugin/hooks/register.tsxconst multiplexed = async ($: EngineInterface): Promise<boolean> => Boolean(await $.env.get('TMUX') || await $.env.get('STY') || await $.env.get('ZELLIJ'))
环境变量 · 第453 行plugin/hooks/register.tsxconst systemRoot = backend === 'windows' ? await $.env.get('SystemRoot') : undefined
执行命令 · 第456 行plugin/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)
环境变量 · 第781 行plugin/hooks/register.tsxconst localeOf = async ($: EngineInterface, asked?: string): Promise<string> => asked ?? (await $.env.get('LC_ALL').catch(() => undefined)) ?? (await $.env.get('LANG').catch(() => undefined)) ?? ''
工具拦截 · 第866 行plugin/hooks/register.tsxon('tool.call', async ($, e, next) => {
执行命令 · 第32 行plugin/hooks/latex.tsconst rgb = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i.exec(c)
执行命令 · 第34 行plugin/hooks/latex.tsconst ansi = /^ansi256\((\d+)\)$/i.exec(c)
执行命令 · 第36 行plugin/hooks/latex.tsconst name = /^(black|red|green|yellow|blue|magenta|cyan|white|gray|grey)(bright)?$/i.exec(c)
执行命令 · 第137 行plugin/hooks/latex.tsconst data = /^data:image\/png;base64,([A-Za-z0-9+/]{32,}=*)$/i.exec(src)
执行命令 · 第194 行plugin/hooks/markdown.tsconst m = /^[A-Za-z]+/.exec(tex.slice(i))
执行命令 · 第377 行plugin/hooks/markdown.tsconst run = FENCE.exec(line)?.[1]
执行命令 · 第381 行plugin/hooks/markdown.tsconst def = fenced ? null : NOTE_DEF.exec(line)
执行命令 · 第414 行plugin/hooks/markdown.tsconst fence = FENCE.exec(at(i))
执行命令 · 第447 行plugin/hooks/markdown.tsconst heading = /^(#{1,6})\s+(.*?)(?:\s+#+)?\s*$/.exec(line)
执行命令 · 第468 行plugin/hooks/markdown.tsconst fence = FENCE.exec(line)
执行命令 · 第526 行plugin/hooks/markdown.tsconst alert = ALERT.exec(body[0] ?? '')
执行命令 · 第536 行plugin/hooks/markdown.tsconst item = LIST_ITEM.exec(line)
执行命令 · 第545 行plugin/hooks/markdown.tsconst it = LIST_ITEM.exec(at(i))
执行命令 · 第549 行plugin/hooks/markdown.tsconst task = /^\[([ xX])\]\s+(.*)$/.exec(it[3] ?? '')
执行命令 · 第142 行plugin/hooks/charts.tsconst named = /^title\s+(.*)$/i.exec(line)
执行命令 · 第146 行plugin/hooks/charts.tsconst slice = /^"([^"]*)"\s*:\s*([\d.]+)$/.exec(line)
执行命令 · 第157 行plugin/hooks/charts.tsconst head = /^pie\b(\s+showData)?(?:\s+title\s+(.*))?$/i.exec(first)
执行命令 · 第176 行plugin/hooks/charts.tsconst m = exact.exec(text)
执行命令 · 第202 行plugin/hooks/charts.tsconst format = /^dateFormat\s+(.+)$/im.exec(rest.join('\n'))?.[1]?.trim() ?? 'YYYY-MM-DD'
执行命令 · 第210 行plugin/hooks/charts.tsconst named = /^title\s+(.*)$/i.exec(line)
执行命令 · 第211 行plugin/hooks/charts.tsconst section = /^section\s+(.*)$/i.exec(line)
执行命令 · 第222 行plugin/hooks/charts.tsconst after = /^after\s+(.+)$/i.exec(from ?? '')
执行命令 · 第225 行plugin/hooks/charts.tsconst duration = /^(\d+(?:\.\d+)?)(ms|s|m|h|d|w)$/.exec(to ?? '')
执行命令 · 第226 行plugin/hooks/charts.tsconst until = /^until\s+(\S+)$/i.exec(to ?? '')
执行命令 · 第61 行plugin/hooks/rtl.tsconst [, body = n.text, dot = ''] = /^(.*\w)(\.)$/.exec(n.text) ?? []
执行命令 · 第313 行plugin/hooks/rtl.tsconst m = COMMENT.exec(line)
执行命令 · 第143 行plugin/hooks/figure.tsxconst rgb = RGB.exec(value)
执行命令 · 第50 行plugin/hooks/render.tsxconst m = /^(\d+)\.(\d+)\.(\d+)/.exec(base ?? '')
执行命令 · 第72 行plugin/hooks/render.tsxconst short = /^(\d{1,2})(\d{2})$/.exec(value)
执行命令 · 第112 行plugin/hooks/render.tsxconst extensionOf = (name: string): string => /\.([^.]*)$/.exec(name.replace(/[. ]+$/, ''))?.[1] ?? ''
执行命令 · 第122 行plugin/hooks/render.tsx...(/\?([^#]*)/.exec(href)?.[1] ?? '').split('&').filter(pair => /^(file|path)=/i.test(unescaped(pair))).map(pair => pair.slice(pair.indexOf('=') + 1).replaceAll('?', '%3F')),
执行命令 · 第164 行plugin/hooks/render.tsxconst local = /^file:(?:\/\/(?:localhost)?)?(\/(?![a-z]:|\/)[^?#]*)(.*)$/i.exec(href)
执行命令 · 第238 行plugin/hooks/render.tsxconst hostOf = (href: string): string | undefined => /^[a-z][\w+.-]*:\/\/(?:[^@/?#]*@)?([^/?#:]+)/i.exec(href)?.[1]?.toLowerCase().replace(/^www\./, '')
执行命令 · 第244 行plugin/hooks/render.tsxconst m = /^([a-z][\w+.-]*:\/\/)?((?:www\.)?[\p{L}\p{N}-]+(?:\.[\p{L}\p{N}-]+)+)(?::\d+)?(?:[/?#]\S*)?$/iu.exec(shownHost(label))
执行命令 · 第2634 行plugin/hooks/render.tsxconst harmless = ch === '>' && /^(&\d|\s*\/dev\/null)/.exec(command.slice(i + 1))
执行命令 · 第18 行plugin/hooks/bench-table.tsxconst m = SIZE.exec(inlineText(cell).trim())
执行命令 · 第23 行plugin/hooks/bench-table.tsxconst sign = DELTA.exec(inlineText(cell).trim())?.[1]
执行命令 · 第22 行plugin/hooks/test-report.tsxfor (let word = RUN.exec(text); word; word = RUN.exec(text)) {
执行命令 · 第40 行plugin/hooks/vendor/prism.jsvar m = lang.exec(element.className);
执行命令 · 第56 行plugin/hooks/vendor/prism.jsvar src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1];
执行命令 · 第179 行plugin/hooks/vendor/prism.jsvar match = pattern.exec(text);
执行命令 · 第637 行plugin/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
执行命令 · 第639 行plugin/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] } } };
执行命令 · 第22 行plugin/hooks/mermaid.tsxconst labels = (/^\s*x-axis\b[^[\n]*\[([^\]\n]*)\]/m.exec(source)?.[1] ?? '').split(',').map(s => s.trim().replace(/^"|"$/g, ''))
执行命令 · 第37 行plugin/hooks/mermaid.tsxconst values = /^\s*bar\b[^[\n]*\[([^\]\n]*)\]/m.exec(source)?.[1]?.split(',').map(v => v.trim())
执行命令 · 第40 行plugin/hooks/mermaid.tsxconst gutter = (r: number) => /^\s*(-?[\d.]+)[┤┼]/.exec(grid[r]?.join('') ?? '')?.[1]
执行命令 · 第328 行plugin/hooks/mermaid.tsxconst exact = (color: string) => /^(#|rgb\()/i.test(color.trim()) || Number(/^ansi256\((\d+)\)$/i.exec(color.trim())?.[1]) >= 16
执行命令 · 第331 行plugin/hooks/mermaid.tsxconst hex = exact(color) ? /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(ratexColor(color))?.[1] : undefined