import type { FakeScript } from "../../src"; export const RUN_ID = "run-crash-1"; export const crashScript: FakeScript = { match: "Dune", steps: [ { text: "先查库存。", toolCalls: [{ capability: "inventory.query", input: { title: "Dune" } }] }, { text: "库里没有,提交下载。", toolCalls: [{ capability: "download.submit", input: { title: "Dune", quality: "1080p" } }], }, ], finalText: (results) => { const last = results.at(-1); return last?.isError ? `下载提交结果未知,需要核对:${last.text.slice(0, 40)}` : "已提交(未入库)"; }, };