查看命中位置(76)
讀取檔案 · 第444 行plugin/hooks/register.tsxconst stat = await $.fs.stat(dir, { resolve: true })
寫入檔案 · 第688 行plugin/hooks/register.tsxawait $.fs.write(`${await debugDirOf($)}/${name}.json`, `${JSON.stringify(state, null, 2)}\n`)
攔截工具呼叫 · 第898 行plugin/hooks/register.tsxconst ran = await $.tool.call({ tool: call.tool, ...call.input } as unknown as Parameters<EngineInterface['tool']['call']>[0])
提交提示詞 · 第1063 行plugin/hooks/register.tsxvoid $.prompt.submit({ text: said, asUser: true }).then(
執行指令 · 第1176 行plugin/hooks/register.tsxconst first = /^.*?[.!?](?=\s|$)/.exec(said)?.[0] ?? said
提交提示詞 · 第1234 行plugin/hooks/register.tsxvoid $.prompt.submit({ text: prompt, asUser: true }).then(
讀取檔案 · 第1602 行plugin/hooks/register.tsxconst stat = await $.fs.stat(path)
讀取檔案 · 第1604 行plugin/hooks/register.tsxreturn $.fs.read(path)
讀取檔案 · 第1867 行plugin/hooks/register.tsxkeep(await $.fs.read(path))
讀取檔案 · 第1915 行plugin/hooks/register.tsxconst text = await $.fs.read(`${root}/web/fixtures/state.v2.json`)
環境變數 · 第1974 行plugin/hooks/register.tsxoverride: await read(() => $.env.get('APIARIUS_SESSIONS')),
環境變數 · 第1975 行plugin/hooks/register.tsxapiariusHome: await read(() => $.env.get('APIARIUS_HOME')),
環境變數 · 第1976 行plugin/hooks/register.tsxconfigDir: await read(() => $.env.get('CLAUDE_CONFIG_DIR')),
環境變數 · 第1977 行plugin/hooks/register.tsxhome: (await read(() => $.env.get('USERPROFILE'))) ?? (await read(() => $.env.get('HOME'))),
環境變數 · 第1978 行plugin/hooks/register.tsxwtSession: await read(() => $.env.get('WT_SESSION')),
環境變數 · 第1979 行plugin/hooks/register.tsxtermProgram: await read(() => $.env.get('TERM_PROGRAM')),
寫入檔案 · 第1983 行plugin/hooks/register.tsxwrite: (path, text) => $.fs.write(path, text),
讀取檔案 · 第1984 行plugin/hooks/register.tsxlist: path => $.fs.list(path),
讀取檔案 · 第1985 行plugin/hooks/register.tsxstat: path => $.fs.stat(path),
執行指令 · 第1988 行plugin/hooks/register.tsxnode: args => $.process.run(['node', ...args], { timeoutMs: 10_000, ...(nodeCwd() ? { cwd: nodeCwd() } : {}) }),
攔截工具呼叫 · 第2612 行plugin/hooks/register.tsxon('tool.call', async ($, e, next) => {
讀取檔案 · 第2764 行plugin/hooks/register.tsxif (plan.trim() === '' && typeof record?.filePath === 'string' && record.filePath !== '') plan = await $.fs.read(record.filePath)
執行指令 · 第589 行plugin/hooks/background.tsconst lead = CHDIR.exec(rest) ?? PS_ASSIGN.exec(rest) ?? ASSIGN.exec(rest) ?? JOIN.exec(rest)
執行指令 · 第397 行plugin/hooks/model.tsconst suffix = / \d+$/.exec(label)?.[0] ?? ''
執行指令 · 第407 行plugin/hooks/model.tsconst found = /^([^:]{1,18}?)\s*(?::\s+|\s[-–—]\s+)(\S.*)$/.exec(oneLine(description))
執行指令 · 第1343 行plugin/hooks/model.tsconst named = /permission to use (.+)$/i.exec(message.trim())?.[1]?.trim().toLowerCase()
執行指令 · 第1460 行plugin/hooks/model.tsconst said = new RegExp(`<${name}>([\\s\\S]*?)</${name}>`).exec(body)?.[1]?.trim()
執行指令 · 第2119 行plugin/hooks/model.tsfor (let found = stops.exec(line); found; found = stops.exec(line)) {
執行指令 · 第2507 行plugin/hooks/model.tsfor (let start = PASTE_START.exec(rest); start; start = PASTE_START.exec(rest)) {
執行指令 · 第2511 行plugin/hooks/model.tsconst next = ownAt >= 0 ? null : PASTE_END.exec(body)
執行指令 · 第2574 行plugin/hooks/model.tsconst name = ECHO_NAME.exec(text)?.[1]
執行指令 · 第2575 行plugin/hooks/model.tsreturn name ? commandOf({ name, args: ECHO_ARGS.exec(text)?.[1] ?? '' }) : ''
執行指令 · 第3057 行plugin/hooks/model.tsconst head = /^\s{0,3}(#{1,6})\s+(.*?)\s*#*\s*$/.exec(raw)
執行指令 · 第3062 行plugin/hooks/model.tsconst numbered = /^(\s*)\d+[.)]\s+(.*)$/.exec(raw)
執行指令 · 第3067 行plugin/hooks/model.tsconst bullet = /^(\s*)[-*+]\s+(?:\[[ xX]\]\s+)?(.*)$/.exec(raw)
執行指令 · 第3174 行plugin/hooks/model.tsconst found = /^[\w$.+-]+/.exec(s.slice(i, i + 256))?.[0]
執行指令 · 第3248 行plugin/hooks/model.tsconst found = /\bmeta\s*=\s*\{/.exec(script)
執行指令 · 第3701 行plugin/hooks/model.tsconst tool = isPermission ? /permission to use (.+)$/i.exec(needs.text.trim())?.[1]?.trim() : undefined
執行指令 · 第3882 行plugin/hooks/model.tsconst found = /<([a-z][\w-]*-message)\b([^>]*)>([\s\S]*?)<\/\1>/i.exec(text)
執行指令 · 第3885 行plugin/hooks/model.tsconst from = /\b(?:from|sender|teammate_id|teammate)\s*=\s*"([^"]*)"/i.exec(found[2] ?? '')?.[1]?.trim()
執行指令 · 第280 行plugin/hooks/web.tsconst family = /^([a-z]+)-(\d+)-(\d+)$/.exec(name)
執行指令 · 第282 行plugin/hooks/web.tsconst old = /^(\d+)-(\d+)-([a-z]+)$/.exec(name)
執行指令 · 第284 行plugin/hooks/web.tsconst major = /^(\d+)-([a-z]+)$/.exec(name)
執行指令 · 第1797 行plugin/hooks/web.tsconst at = /^@(\S+)\s*([\s\S]*)$/.exec(said)
執行指令 · 第2025 行plugin/hooks/web.tsreturn /^[pf]-([0-9a-f]{16})(?:-[0-9a-f]{8})?-[0-9a-f]{32}$/.exec(ticket)?.[1] ?? ''
執行指令 · 第694 行plugin/hooks/inspect.tsconst home = /^(?:[A-Za-z]:)?\/(?:Users|home)\/[^/]+(\/.*)$/i.exec(slashed)
環境變數 · 第101 行plugin/hooks/webServer.tsoverride: await read(() => $.env.get('APIARIUS_SESSIONS')),
環境變數 · 第102 行plugin/hooks/webServer.tsapiariusHome: await read(() => $.env.get('APIARIUS_HOME')),
環境變數 · 第103 行plugin/hooks/webServer.tsconfigDir: await read(() => $.env.get('CLAUDE_CONFIG_DIR')),
環境變數 · 第104 行plugin/hooks/webServer.tshome: (await read(() => $.env.get('USERPROFILE'))) ?? (await read(() => $.env.get('HOME'))),
執行指令 · 第116 行plugin/hooks/webServer.tsconst ran = await $.process.run(W.homeArgvOf(`${$.plugin.root.replace(/[\\/]+$/, '')}/web/home.js`, request), { timeoutMs: 10_000, ...(nodeCwd() ? { cwd: nodeCwd() } : {}) })
寫入檔案 · 第359 行plugin/hooks/webServer.tsawait $.fs.write(path, text)
執行指令 · 第426 行plugin/hooks/webServer.tsconst ran = await $.process.run(['node', '-p', 'process.ppid'], { timeoutMs: 10_000, ...(nodeCwd() ? { cwd: nodeCwd() } : {}) })
執行指令 · 第515 行plugin/hooks/webServer.tslet ran = await spawnWeb($, W.serverArgvOf(script, web.dir, web.pid, web.port, SR.registryDir()))
執行指令 · 第518 行plugin/hooks/webServer.tsran = await spawnWeb($, W.serverArgvOf(script, web.dir, web.pid, 0, SR.registryDir()))
執行指令 · 第561 行plugin/hooks/webServer.tsasync function spawnWeb($: EngineInterface, argv: readonly string[]): Promise<WebRun> {
執行指令 · 第570 行plugin/hooks/webServer.tsconst child = $.process.spawn({ argv, input: `${web.secret}\n`, ...(nodeCwd() ? { cwd: nodeCwd() } : {}) })
攔截工具呼叫 · 第815 行plugin/hooks/webServer.tsconst called = await $.tool.call({ tool: 'mcp__Claude_Browser__preview_start', url } as unknown as Parameters<EngineInterface['tool']['call']>[0])
執行指令 · 第961 行plugin/hooks/webServer.tsconst ran = await $.process.run(['node', `${$.plugin.root.replace(/[\\/]+$/, '')}/web/open.js`], { stdin: `${W.webUrlOf(web.port, ticket)}\n`, timeoutMs: 10_000, ...(nodeCwd() ? { cwd: nodeCwd() } : {
讀取檔案 · 第124 行plugin/hooks/gitRunner.tsreturn { place, stat: await $.fs.stat(joinPath(root, place)) }
讀取檔案 · 第146 行plugin/hooks/gitRunner.tstexts.push(await $.fs.read(one.abs))
環境變數 · 第181 行plugin/hooks/gitRunner.tsif (userHome === null) userHome = ((await $.env.get('USERPROFILE').catch(() => undefined)) ?? (await $.env.get('HOME').catch(() => undefined)) ?? '').trim()
執行指令 · 第228 行plugin/hooks/gitRunner.tsconst ran = await $.process.run(argv, { env: G.GIT_ENV, timeoutMs: ms })
讀取檔案 · 第294 行plugin/hooks/gitRunner.tsnames = R.childDirsOf(await $.fs.list(dir))
讀取檔案 · 第303 行plugin/hooks/gitRunner.tsconst stat = await $.fs.stat(R.childOf(R.childOf(dir, name), '.git'))
讀取檔案 · 第393 行plugin/hooks/gitRunner.tsconst stat = await $.fs.stat(root, { resolve: true })
讀取檔案 · 第422 行plugin/hooks/gitRunner.tsconst stat = await $.fs.stat(abs, { resolve: true })
執行指令 · 第463 行plugin/hooks/gitRunner.tsconst ran = await $.process.run(FB.filesArgvOf(script), { stdin: FB.requestTextOf({ root, paths, most, textMost }), timeoutMs: 15_000, ...(nodeCwd() ? { cwd: nodeCwd() } : {}) })
執行指令 · 第31 行plugin/hooks/diff.tsconst header = HEADER.exec(line)
執行指令 · 第183 行plugin/hooks/diff.tsconst match = /^diff --git a\/(.*) b\/(.*)$/.exec(line)
執行指令 · 第265 行plugin/hooks/git.tsconst match = /^filter\.(.+)\.([^.]+)$/i.exec(key)
執行指令 · 第457 行plugin/hooks/git.tsconst match = /^(-|\d+)\t(-|\d+)\t([\s\S]*)$/.exec(part)
執行指令 · 第514 行plugin/hooks/git.tsconst files = /(\d+) files? changed/.exec(text)
執行指令 · 第515 行plugin/hooks/git.tsconst added = /(\d+) insertions?\(\+\)/.exec(text)
執行指令 · 第516 行plugin/hooks/git.tsconst removed = /(\d+) deletions?\(-\)/.exec(text)
執行指令 · 第91 行plugin/hooks/ui/v2/fit.tsconst share = typeof width === 'string' ? /^(\d+(?:\.\d+)?)%$/.exec(width) : null