查看命中位置(32)
執行指令 · 第79 行plugin/hooks/register.tsxconst match = /__(init|run|log)_experiment$/.exec(tool)
環境變數 · 第149 行plugin/hooks/register.tsxtmpDir: async () => ((await $.env.get('TMPDIR')) ?? '/tmp').replace(/\/+$/, '') || '/tmp',
環境變數 · 第150 行plugin/hooks/register.tsxparentPid: () => $.env.get('CLAUDE_PID'),
讀取檔案 · 第161 行plugin/hooks/register.tsxsize = (await $.fs.stat(path)).size
讀取檔案 · 第165 行plugin/hooks/register.tsxif (size < FS_LIMIT_BYTES) return $.fs.read(path)
執行指令 · 第167 行plugin/hooks/register.tsxfor await (const chunk of $.process.spawn({ argv: ['cat', '--', path] })) {
寫入檔案 · 第172 行plugin/hooks/register.tsxwriteText: (path, text) => $.fs.write(path, text),
執行指令 · 第174 行plugin/hooks/register.tsxconst result = await $.process.run(
讀取檔案 · 第183 行plugin/hooks/register.tsxconst { kind } = await $.fs.stat(path)
讀取檔案 · 第191 行plugin/hooks/register.tsxreturn (await $.fs.stat(path, { resolve: true })).realPath ?? null
執行指令 · 第196 行plugin/hooks/register.tsxisExecutable: async path => (await $.process.run(['test', '-x', path])).exitCode === 0,
執行指令 · 第198 行plugin/hooks/register.tsxconst result = await $.process.run(['rm', '-f', '--', path])
執行指令 · 第202 行plugin/hooks/register.tsxrun: (argv, init) => $.process.run(argv, init),
執行指令 · 第204 行plugin/hooks/register.tsxconst stream = $.process.spawn({ argv, cwd: init.cwd, env: init.env })
提交提示詞 · 第240 行plugin/hooks/register.tsxvoid $.prompt.submit({ text }).catch(error => {
註冊工具 · 第245 行plugin/hooks/register.tsxregisterTool: async spec => (await $.tool.register(spec)).tool,
連網 · 第286 行plugin/hooks/register.tsxpost: async (url, body) => ({ status: (await $.http.fetch(url, { method: 'POST', body })).status }),
執行指令 · 第288 行plugin/hooks/register.tsxconst opened = await $.process.run(['open', url]).catch(() => null)
執行指令 · 第290 行plugin/hooks/register.tsxawait $.process.run(['xdg-open', url])
攔截工具呼叫 · 第406 行plugin/hooks/register.tsxon('tool.call', { tool: OUR_TOOLS }, async ($, e, next) => {
執行指令 · 第30 行plugin/hooks/app/index.tsconst match = /^mcp__[\w-]*autoresearch[\w-]*__(init|run|log)_experiment$/.exec(served);
執行指令 · 第119 行plugin/hooks/app/index.tsif (name === "init_experiment") answer = await executeInit(ctx, input as unknown as InitParams);
執行指令 · 第120 行plugin/hooks/app/index.tselse if (name === "run_experiment") answer = await executeRun(ctx, input as unknown as RunParams, toolUseId, signal);
執行指令 · 第121 行plugin/hooks/app/index.tselse answer = await executeLog(ctx, input as unknown as LogParams);
執行指令 · 第79 行plugin/hooks/upstream/experiment-core.tswhile ((match = regex.exec(output)) !== null) {
執行指令 · 第73 行plugin/hooks/app/export.tsconst child = host.spawn(
執行指令 · 第24 行plugin/hooks/app/tools/init.tsexport async function executeInit(ctx: Ctx, params: InitParams): Promise<ToolAnswer> {
執行指令 · 第87 行plugin/hooks/app/tools/run.tsexport async function executeRun(
執行指令 · 第193 行plugin/hooks/app/tools/run.tsconst child = host.spawn(wrapperArgv(host, timeout / 1000, timeoutMarker, fullLogPath, params.command), {
執行指令 · 第334 行plugin/hooks/app/tools/run.tsconst child = host.spawn(
執行指令 · 第54 行plugin/hooks/app/tools/log.tsexport async function executeLog(ctx: Ctx, params: LogParams): Promise<ToolAnswer> {
執行指令 · 第83 行plugin/hooks/ui/styled.tsconst marker = /^38;2;1;2;(\d+)$/.exec(params);