读取本地文件
packages/agent-pain-plugin/src/storage.ts:11
return JSON.parse(await readFile(path, 'utf8')) as T读取本地文件
packages/agent-pain-plugin/src/storage.ts:19
return (await readdir(path)).sort()读取本地文件
packages/agent-test-plugin/src/assertions.ts:174
document = JSON.parse(await readFile(path, 'utf8'))读取本地文件
packages/agent-test-plugin/src/definition.ts:306
const entries = (await readdir(directory, { withFileTypes: true }))读取本地文件
packages/agent-test-plugin/src/definition.ts:312
const suite = parseSuite(await readFile(path, 'utf8'), path)读取本地文件
packages/agent-test-plugin/src/host.ts:255
await readFile(presetPath, 'utf8')读取本地文件
packages/agent-test-plugin/src/host.ts:285
for (const entry of await readdir(runsRoot, { withFileTypes: true })) {写入本地文件
packages/agent-test-plugin/src/host.ts:304
await mkdir(join(this.artifactsRoot, 'runs'), { recursive: true })写入本地文件
packages/agent-test-plugin/src/host.ts:305
await mkdir(dirname(runRoot), { recursive: true })写入本地文件
packages/agent-test-plugin/src/host.ts:306
await mkdir(runRoot)读取本地文件
packages/agent-test-plugin/src/host.ts:404
const root = await realpath(view.runRoot)读取本地文件
packages/agent-test-plugin/src/host.ts:408
...await Promise.all(view.humanReview.items.flatMap(item => item.artifacts.map(async artifact => relative(root, await realpath(artifact.path).catch(()读取本地文件
packages/agent-test-plugin/src/host.ts:410
return { runId: id, path: absolute, ...artifactPage(await readFile(absolute), position) }读取本地文件
packages/agent-test-plugin/src/host.ts:420
if (protectedPath(relative(await realpath(view.runRoot), absolute))) throw new Error('protected artifact')写入本地文件
packages/agent-test-plugin/src/host.ts:450
await writeFile(join(view.runRoot, 'report.md'), reportMarkdown(view.result))写入本地文件
packages/agent-test-plugin/src/host.ts:478
await mkdir(active.runRoot, { recursive: true })写入本地文件
packages/agent-test-plugin/src/host.ts:530
await writeFile(join(runRoot, 'report.md'), reportMarkdown(result))读取本地文件
packages/agent-test-plugin/src/runner.ts:87
const info = await lstat(path)读取本地文件
packages/agent-test-plugin/src/runner.ts:90
const entries = (await readdir(path, { withFileTypes: true })).sort((left, right) => left.name.localeCompare(right.name))读取本地文件
packages/agent-test-plugin/src/runner.ts:96
hash.update(await readFile(path))读取本地文件
packages/agent-test-plugin/src/runner.ts:122
const entries = (await readdir(packagesRoot, { withFileTypes: true })).sort((left, right) => left.name.localeCompare(right.name))读取本地文件
packages/agent-test-plugin/src/runner.ts:128
const manifest = JSON.parse(await readFile(manifestPath, 'utf8')) as { name?: unknown }读取本地文件
packages/agent-test-plugin/src/runner.ts:140
const manifest = JSON.parse(await readFile(join(root, 'package.json'), 'utf8').catch((error: NodeJS.ErrnoException) => { if (error.code !== 'ENOENT') 写入本地文件
packages/agent-test-plugin/src/runner.ts:188
await writeFile(temporary, `${JSON.stringify(value, null, 2)}\n`)写入本地文件
packages/agent-test-plugin/src/runner.ts:189
await rename(temporary, path)写入本地文件
packages/agent-test-plugin/src/runner.ts:223
await writeFile(projectPatch, `${await readFile(basePatch, 'utf8')}\n${await readFile(projectPatch, 'utf8')}`)写入本地文件
packages/agent-test-plugin/src/runner.ts:243
await writeFile(evaluationPatch, `- id: agent-test-host写入本地文件
packages/agent-test-plugin/src/runner.ts:265
const stdout = createWriteStream(join(request.runRoot, 'dsh.stdout.log'), { flags: 'a' })写入本地文件
packages/agent-test-plugin/src/runner.ts:266
const stderr = createWriteStream(join(request.runRoot, 'dsh.stderr.log'), { flags: 'a' })执行外部命令来自配置/变量
packages/agent-test-plugin/src/runner.ts:273
const child = spawn(process.execPath, args, {发起网络请求
packages/agent-test-plugin/src/session-client.ts:28
const response = await fetch(url, { redirect: 'manual', signal: this.deadline(signal) })发起网络请求
packages/agent-test-plugin/src/session-client.ts:35
fetch(path: string, init?: RequestInit): Promise<Response> {发起网络请求
packages/agent-test-plugin/src/session-client.ts:40
return fetch(url, { ...init, headers, signal: this.deadline(init?.signal ?? undefined) })发起网络请求
packages/agent-test-plugin/src/session-client.ts:88
const response = await this.fetch(`/api/${endpoint}`, {读取本地文件
packages/agent-test-plugin/src/workcopy.ts:47
if (await lstat(join(directory, 'package.json')).catch(() => undefined)) return realpath(directory)读取本地文件
packages/agent-test-plugin/src/workcopy.ts:47
if (await lstat(join(directory, 'package.json')).catch(() => undefined)) return realpath(directory)读取本地文件
packages/agent-test-plugin/src/workcopy.ts:54
source = await realpath(source)写入本地文件
packages/agent-test-plugin/src/workcopy.ts:56
await mkdir(destination, { recursive: true })读取本地文件
packages/agent-test-plugin/src/workcopy.ts:60
return !(await lstat(path)).isSymbolicLink()读取本地文件
packages/agent-test-plugin/src/workcopy.ts:64
for (const entry of await readdir(source)) {读取本地文件
packages/agent-test-plugin/src/workcopy.ts:81
const manifest = JSON.parse(await readFile(join(root, 'package.json'), 'utf8').catch((error: NodeJS.ErrnoException) => { if (error.code !== 'ENOENT') 写入本地文件
packages/agent-test-plugin/src/workcopy.ts:100
await mkdir(to, { recursive: true })写入本地文件
packages/agent-test-plugin/src/workcopy.ts:128
await mkdir(dirname(link), { recursive: true })写入本地文件
packages/human-request-plugin/src/host.ts:31
await mkdir(dirname(path), { recursive: true })写入本地文件
packages/human-request-plugin/src/host.ts:33
await writeFile(temporary, JSON.stringify(value, null, 2) + '\n')写入本地文件
packages/human-request-plugin/src/host.ts:34
await rename(temporary, path)读取本地文件
packages/human-request-plugin/src/host.ts:92
async read(id: string): Promise<HumanRequest> { return JSON.parse(await readFile(join(this.root, safeId(id) + '.json'), 'utf8')) as HumanRequest }读取本地文件
packages/human-request-plugin/src/host.ts:94
const names = await readdir(this.root).catch((e: NodeJS.ErrnoException) => { if (e.code !== 'ENOENT') throw e; return [] })读取本地文件
packages/review-agent/src/plugin.ts:23
const persona = readFileSync(new URL('../prompts/reviewer-prompt.md', import.meta.url), 'utf8')读取本地文件
packages/runtime/src/index.ts:34
const configured = JSON.parse(await readFile(join(options.projectRoot, 'config/runtime.json'), 'utf8').catch((error: NodeJS.ErrnoException) => { if (e删除本地文件递归
packages/runtime/src/index.ts:38
await rm(target, { recursive: true, force: true })读取本地文件
packages/runtime/src/index.ts:47
let standard = await readFile(standardFile, 'utf8')写入本地文件
packages/runtime/src/index.ts:52
await writeFile(standardFile, standard)读取本地文件
packages/runtime/src/index.ts:56
for (const entry of await readdir(directory, { withFileTypes: true })) {读取本地文件
packages/runtime/src/index.ts:60
let content = await readFile(path, 'utf8')写入本地文件
packages/runtime/src/index.ts:63
await writeFile(path, content)写入本地文件
packages/runtime/src/index.ts:69
await mkdir(dirname(link), { recursive: true }); await rm(link, { recursive: true, force: true })删除本地文件递归
packages/runtime/src/index.ts:69
await mkdir(dirname(link), { recursive: true }); await rm(link, { recursive: true, force: true })读取本地文件
packages/session-insights-plugin/src/host.ts:90
const index = JSON.parse(await readFile(join(this.directory(id), revision, 'index.json'), 'utf8')) as SessionIndex读取本地文件
packages/session-insights-plugin/src/host.ts:121
const latest = JSON.parse(await readFile(join(directory, 'latest.json'), 'utf8')) as SessionReference写入本地文件
packages/session-insights-plugin/src/host.ts:180
await mkdir(temporary, { recursive: true })写入本地文件
packages/session-insights-plugin/src/host.ts:207
await rename(temporary, destination)删除本地文件递归
packages/session-insights-plugin/src/host.ts:210
} finally { await rm(temporary, { recursive: true, force: true }) }读取本地文件
packages/session-insights-plugin/src/host.ts:220
const stream = createReadStream(join(this.directory(input.session_id), input.revision, 'raw.jsonl'))读取本地文件
packages/session-insights-plugin/src/inspection.ts:20
const base = await realpath(root)读取本地文件
packages/session-insights-plugin/src/inspection.ts:32
const actual = await realpath(ancestor)写入本地文件
packages/session-insights-plugin/src/store.ts:18
await mkdir(dirname(path), { recursive: true })写入本地文件
packages/session-insights-plugin/src/store.ts:20
try { await writeFile(temporary, JSON.stringify(value), { mode: 0o600 }); await rename(temporary, path) }写入本地文件
packages/session-insights-plugin/src/store.ts:20
try { await writeFile(temporary, JSON.stringify(value), { mode: 0o600 }); await rename(temporary, path) }删除本地文件
packages/session-insights-plugin/src/store.ts:21
finally { await rm(temporary, { force: true }) }读取本地文件
packages/session-insights-plugin/src/store.ts:26
async get(id: string): Promise<T> { return JSON.parse(await readFile(this.path(id), 'utf8')) as T }读取本地文件
packages/session-insights-plugin/src/store.ts:33
try { files = await readdir(this.root) } catch (error) { if ((error as NodeJS.ErrnoException).code === 'ENOENT') return []; throw error }读取本地文件
packages/session-insights-plugin/src/store.ts:34
return Promise.all(files.filter(x => x.endsWith('.json')).sort().map(async file => JSON.parse(await readFile(join(this.root, file), 'utf8')) as T))写入本地文件
packages/sleep-loop-plugin/src/engine.ts:81
await mkdir(join(this.root, 'discovery'), { recursive: true, mode: 0o700 })读取本地文件
packages/sleep-loop-plugin/src/engine.ts:82
const previouslyInitialized = existsSync(join(this.root, 'discovery', 'discovery.sqlite'))读取本地文件
packages/sleep-loop-plugin/src/engine.ts:90
const directories = (await readdir(this.root)).filter(n => /^sleep-loop-\d+-[a-f0-9-]+$/u.test(n)).sort((a,b) => Number(a.split('-')[2])-Number(b.spli写入本地文件
packages/sleep-loop-plugin/src/storage.ts:16
await mkdir(dirname(path), { recursive: true })写入本地文件
packages/sleep-loop-plugin/src/storage.ts:21
await rename(temp, path)删除本地文件
packages/sleep-loop-plugin/src/storage.ts:24
} finally { await rm(temp, { force: true }) }读取本地文件
packages/sleep-loop-plugin/src/storage.ts:27
try { return JSON.parse(await readFile(path, 'utf8')) as T } catch (error) { if ((error as NodeJS.ErrnoException).code === 'ENOENT') return undefined;读取本地文件
packages/trainer-agent/src/host.ts:74
return readFile(join(this.directory(id), 'plan.json'), 'utf8')读取本地文件
packages/trainer-agent/src/host.ts:104
const text = await readFile(join(this.projectRoot, '.gitmodules'), 'utf8').catch((error: NodeJS.ErrnoException) => { if (error.code !== 'ENOENT') thro读取本地文件
packages/trainer-agent/src/host.ts:155
if (!await readFile(join(root, 'pnpm-lock.yaml'), 'utf8').catch(() => undefined)) continue读取本地文件
packages/trainer-agent/src/host.ts:176
const text = (await readFile(join(root, 'package.json'), 'utf8').catch(() => '')) + (await readFile(join(root, 'pnpm-workspace.yaml'), 'utf8').catch((读取本地文件
packages/trainer-agent/src/host.ts:196
const actual = await realpath(workspace).catch(() => workspace)读取本地文件
packages/trainer-agent/src/host.ts:208
const lock = (root: string) => readFile(join(root, 'pnpm-lock.yaml'), 'utf8').catch((e: NodeJS.ErrnoException) => { if (e.code !== 'ENOENT') throw e; 写入本地文件
packages/trainer-agent/src/host.ts:211
await mkdir(join(this.directory(id), 'proposals'), { recursive: true })写入本地文件
packages/trainer-agent/src/host.ts:212
await mkdir(join(this.directory(id), 'evaluations'), { recursive: true })删除本地文件
packages/trainer-agent/src/host.ts:472
} finally { await rm(index, { force: true }) }读取本地文件
packages/trainer-agent/src/plugin.ts:23
const prompt = readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), '../prompts/trainer-prompt.md'), 'utf8')执行外部命令来自配置/变量
src/start.ts:11
const child = spawn(process.execPath, [join(dirname(require.resolve('@deepseek-ai/dsh/package.json')), 'lib/bin.js'), '--profile', 'web', '--patch', h