// src/verify/fs-not-exists.ts — 验证文件不存在 import { existsSync } from "node:fs"; import { join } from "node:path"; import type { ProbeOutcome } from "../schema.js"; export async function fsNotExists( cwd: string, params: Record ): Promise { const path = params.path; if (!path) return { outcome: "INCONCLUSIVE", message: "缺少参数: path" }; const exists = existsSync(join(cwd, path)); return { outcome: !exists ? "COMPLETED" : "DEVIATED", message: !exists ? `已删除: ${path}` : `仍存在: ${path}`, }; }