Files
SupplierSystem/server/src/prompts
Ubuntu 14d7afe8e2
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
fix(提示词): 补 picking.batch.production_date 缺失的 variablesSchema(服务端 tsc 归零)
## 问题
`PromptDefaultDef.variablesSchema` 是必填字段,而 `picking.batch.production_date`(分拣·包装生产日期读取)
这条提示词定义漏写了它 ⇒ `tsc` 长期报:
`src/prompts/defaults.ts(465,3): error TS2741: Property 'variablesSchema' is missing …`
(是加入这条提示词时漏的,非本会话改动;影响:`tsc`/`npm run build` 退出码 2、并掩盖将来真正的新类型错误;
不影响运行 —— tsc 仍产出 JS,所以构建与线上一直正常。)

## 修法
该提示词**没有模板变量** ⇒ 补 `variablesSchema: []`(与同文件其它无变量提示词的写法一致:
`inspection.queued.photo`、`weigh.recognize.open` 等也是 `[]`)。

## 验证
- `cd server && npx tsc --noEmit` ⇒ **EXIT=0,错误数 0**(服务端归零)
- 根目录 `npx tsc --noEmit` ⇒ EXIT=0
- 设计门禁快档:8 通过 / `check-ai-cost` 既有红(不许调绿)
- 该改动**只是类型补全**,运行期语义不变(缺字段时消费方本就是可选访问),故未重新构建/部署产物。
2026-10-17 10:00:56 +08:00
..