-
fix(llm-model-catalog): stop generated files showing as modified (#4170)
发布于
2026-07-07 07:35:06 +00:00 | 524 次提交 在此版本后已推送到 mainSummary
Running
pnpm run db:migratelocally leftdefaultPrices.tsand
modelCatalog.tsinllm-model-catalogshowing as modified every time,
a ~10k-line diff that only ever changed formatting. This stops the
churn.Root cause
The root
db:migratescript ends in&& turbo run generate, which runs
thegeneratescript in every package that has one, including this one.
The generator writes its output withJSON.stringify(quoted keys, no
trailing commas), but the checked-in copies had been reformatted by
oxfmt (unquoted keys, trailing commas). So the generator output never
matched what was committed, even though the parsed data was identical.Fix
Add the two generated files to
.oxfmtrc.json's ignore list and commit
the raw generator output, matching how other codegen files in the repo
are already handled (e.g. the tsql grammar). Generation is
deterministic, sogenerateandformatare both no-ops on a clean
tree now.No changeset: internal package, dev tooling only, no runtime or public
API change.下载附件