import type { KdHarnessMode } from "./types.ts"; export function inferHarnessMode(goal: string | undefined): KdHarnessMode { const text = goal ?? ""; if (/文档|说明|README|CHANGELOG|提示词|规则|只读|审查|review|分析|排查|诊断|整理/i.test(text) && !/插件|代码|实现|开发|接口|字段|单据|表单|SQL/i.test(text)) { return "quick"; } return "normal"; }