Repository navigation
fix(ci): reuse generate:check in the drift job and cover sdks.md - #1245
Conversation
The generated-file list now lives only in scripts/generate-provider-docs.mjs (GENERATED_FILES + REGIONS_BY_FILE). main() formats its own output with prettier, and the new --check mode snapshot-compares each regenerated page, so an edit inside a generated region of sdks.md (or any other page) now fails the drift check instead of self-healing silently.
|
@infer can you resolve the merge conflict? |
|
🗑️ Preview environment destroyed. |
|
Model: Todos
Pull Request✅ Infer Result: SuccessThe merge conflict on PR #1245 is resolved and the PR is mergeable again ( How the conflict aroseMain moved by four commits after this PR branched, and three of the PR's files overlapped: How it was resolved
Tip content now
Verification (all on the final tree)
Skipped/known limits: no merge commit of my own was used (sandbox denies it; the resolution rides on the merge you pushed), and I did not rerun the deploy/preview workflows locally - they come from main unchanged. Model: Tokens: 4,278,237 in · 47,369 out · 4,325,606 total (59 requests) Tool calls: 78 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action · OSS |
git merge is unavailable in the CI sandbox, so main's versions of the conflicted files were checked out and the PR's restructure re-applied on top, matching the content a clean merge would produce. Brings in the Bun.YAML.parse generator rewrite with its new tests, bun 1.4.4 (.bun-version, bun.lock, package.json engines) and the wrangler devDependency so the frozen install stays consistent on the pull request tip.
The main integration commit brought in main's generator, package.json and AGENTS.md verbatim, dropping the PR's GENERATED_FILES table, --check snapshot compare and generate script wiring. This restores them on top of the resolved merge.
## [0.9.27](0.9.26...0.9.27) (2026-11-17) ### ♻️ Improvements * **scripts:** use Bun.YAML.parse in generate-provider-docs ([#1241](#1241)) ([bdfad7c](bdfad7c)) * **vitepress:** derive Mermaid lazy-chunk regexes from one constant ([#1243](#1243)) ([65de689](65de689)) ### 🐛 Bug Fixes * **ci:** reuse generate:check in the drift job and cover sdks.md ([#1245](#1245)) ([b34ee2d](b34ee2d)) ### 👷 CI * align Dependabot schedule and grouping ([#1231](#1231)) ([40f417f](40f417f)) * set up orchestrators from repos.yaml ([#1246](#1246)) ([6e03863](6e03863)) ### 📚 Documentation * **api:** document messages api and nullable stop_reason ([#1268](#1268)) ([02e10df](02e10df)) * **api:** document nullable and optional stream chunk fields ([#1267](#1267)) ([a0923a4](a0923a4)) * **cli:** cover plan-mode web tools and the WebFetch scratchpad redirect ([#1248](#1248)) ([cdfa57e](cdfa57e)) * **cli:** surface the skills, plugins and hooks runnable examples ([#1258](#1258)) ([78c2686](78c2686)) * document bash path-check text exemptions ([#1234](#1234)) ([395c17c](395c17c)) * document kernel-confined bash writes in CLI sandbox ([#1235](#1235)) ([2a78ac0](2a78ac0)) * document the Video, PreserveSpeech and StartOffsetSeconds inputs on the Go SDK CreateVideo ([#1223](#1223)) ([264018f](264018f)) * dubbing a video with mirelo through the videos api ([#1214](#1214)) ([cf0141c](cf0141c)) * dubvideo tool and the video_to_sfx dub switch ([#1222](#1222)) ([ac93910](ac93910)) * elevenlabs video scoring on the sfx endpoint ([#1215](#1215)) ([8469b96](8469b96)) * go sdk CreateSFX and CreateMusic are shipped ([#1225](#1225)) ([48d348f](48d348f)) * image edits through elevenlabs and avatars with one key ([#1211](#1211)) ([df745fc](df745fc)) * link the CLI media-audio and media-video examples ([#1228](#1228)) ([aee7e9e](aee7e9e)) * link the subagents and ag-ui runnable examples ([#1256](#1256)) ([534af1c](534af1c)) * **observability:** add gateway tracing walkthrough with Jaeger ([#1250](#1250)) ([54951f7](54951f7)) * **operator:** document Gateway server and MCP request timeouts ([#1254](#1254)) ([aff281e](aff281e)) * **operator:** mirelo provider block for spec.audio ([#1209](#1209)) ([c3f03b8](c3f03b8)) * **operator:** wire GPU runtime as openai provider, drop custom ([#1253](#1253)) ([7334cdf](7334cdf)) * repoint example links to domain-first layout ([#1217](#1217)) ([d596bb5](d596bb5)) * resending a prompt and conversation rewind frames ([#1203](#1203)) ([63a42b2](63a42b2)) * scoring a video on the sound-effects endpoint ([#1210](#1210)) ([1d03ef9](1d03ef9)) * **sdks:** bump TypeScript SDK to 0.30.0 and note pin upgrade ([#1265](#1265)) ([bd42f1a](bd42f1a)) * **sdks:** document Go SDK audio modes, keys and examples ([#1266](#1266)) ([98601de](98601de)) * **sdks:** read python stream chunks as plain json ([#1264](#1264)) ([93276e5](93276e5)) * speech through the gateway and spec.audio ([#1201](#1201)) ([979ae1e](979ae1e)) * videotosfx tool and the sfx scoring budget ([#1221](#1221)) ([4e08dc8](4e08dc8)) * wav output for elevenlabs speech ([#1208](#1208)) ([d36e358](d36e358)) ### 🔧 Miscellaneous * **deps-dev:** bump prettier from 3.9.10 to 3.10.1 in the bun group ([#1226](#1226)) ([d82d26e](d82d26e)) * **deps:** bump bun to 1.4.4 ([#1242](#1242)) ([f5cf0fc](f5cf0fc)) * **deps:** bump flox dependencies to latest ([#1229](#1229)) ([c0b5858](c0b5858)) * **deps:** bump flox dependencies to latest ([#1230](#1230)) ([1cf291c](1cf291c)) * **deps:** resolve wrangler via devDependencies instead of pinned bunx literals ([#1244](#1244)) ([35c4c29](35c4c29))
|
🎉 This PR is included in version 0.9.27 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Resolves #1237
Summary
The generated-file list and the drift-check command bodies were defined in three places, and the ci.yml
driftjob's copy omittedsdks.md, so a schema change to the SDKs provider list stayed green in CI whilesdks.mdwent stale. The list now lives in exactly one place - the generator, right where it writes the files - andtask generate,task generate:checkand the CIdriftstep all call the newgenerate/generate:checkscripts inpackage.json. The drift check now snapshot-compares each regenerated page against the working tree, so an edit inside anyGENERATED:*region, includingGENERATED:sdks-provider-listinsdks.md, fails with the kept "runtask generateand commit the result" message.Changes
scripts/generate-provider-docs.mjs:GENERATED_FILESand aREGIONS_BY_FILEtable are now the single source of the five generated paths (supported-providers.md,configuration.md,sdks.md,rust-adk.md,typescript-adk.md);main()iterates the table instead of repeating file names, runsprettier --writeon its own output, and a new--checkmode regenerates and exits 1 listing the stale pages if anything would change.Taskfile.yml:generateandgenerate:checknow delegate tobun run generate/bun run generate:checklike every other task, still passingSCHEMA_REPO/SCHEMA_REFthrough; theGENERATED_FILESvar and the inline prettier andgit diffcommand bodies are gone..github/workflows/ci.yml: thedriftjob's "Fail on schema drift" step is now justbun run generate:check- no file names, no copy-pasted command body.package.json: adds thegenerateandgenerate:checkscripts.AGENTS.md: the offline regeneration steps drop the manualbunx prettier --writepass because the generator now formats its own output.Verification
bun test(12 pass),bun run format:check,bun run lint:mdandbun run buildall pass locally.bun run generate:checkpasses on a clean tree and fails withStale files: sdks.mdafter a hand edit inside theGENERATED:sdks-provider-listregion ofsdks.md. Note that the previous in-placegenerate+git diffflow could not catch an inside-region edit for any file, because the regeneration erased the edit before the diff ran - the snapshot-compare is what makes the requested failure observable, and it also closes the real CI hole where schema changes tosdks.mdwere invisible to the four-file list.