Skip to content

fix(scripts): restore changeset creation in the model-metadata sync#887

Open
tombeckenham wants to merge 1 commit into
mainfrom
fix/sync-models-changeset-detection
Open

fix(scripts): restore changeset creation in the model-metadata sync#887
tombeckenham wants to merge 1 commit into
mainfrom
fix/sync-models-changeset-detection

Conversation

@tombeckenham

@tombeckenham tombeckenham commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🎯 Changes

The daily model-metadata sync stopped creating changesets for packages whose meta is regenerated by convert-openrouter-models.ts. The safety net, detectChangedPackages() in scripts/sync-provider-models.ts, still matched the pre-#643 packages/typescript/<pkg>/ layout — the #643 monorepo flatten updated every metaFile path in the script (and even the comment above the regex) but missed the regex itself, so since May 26 it has always returned an empty set.

Consequences:

This PR:

  1. Fixes the regex (packages/typescript/([\w-]+)/packages/([\w-]+)/).
  2. Adds the missed .changeset/sync-models.md patching @tanstack/ai-openrouter, covering the unreleased meta changes from chore: sync model metadata from OpenRouter #772 and chore: sync model metadata from OpenRouter #883 (Claude Sonnet 5, Claude Fable 5, DeepSeek V3.2, GLM-5.2, and other additions/removals/pricing updates). The file reuses the sync-models name so the next daily sync merges into it instead of duplicating.

Audited all sync commits since the flatten: ai-anthropic / ai-gemini changes from #772 were released via #873, so @tanstack/ai-openrouter is the only package with unreleased sync changes.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Refreshed the available model catalog with newly supported models and updated capability/pricing details.
  • Bug Fixes
    • Removed retired models from the list so the available options better match current provider offerings.

… monorepo flatten

detectChangedPackages() still matched the pre-#643 packages/typescript/
layout, so it never matched anything and the daily model-metadata sync
stopped creating changesets for packages changed by
convert-openrouter-models.ts. As a result the OpenRouter meta
regenerations in #772 and #883 (including Claude Sonnet 5 and Fable 5)
never triggered an @tanstack/ai-openrouter release.

Fix the regex and add the missed changeset so the pending meta changes
ship with the next Version Packages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tombeckenham tombeckenham requested a review from a team as a code owner July 3, 2026 02:43
@nx-cloud

nx-cloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit f970d1a

Command Status Duration Result
nx run-many --targets=build --exclude=examples/... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-07-03 02:44:16 UTC

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

4 package(s) bumped directly, 20 bumped as dependents.

🟨 Minor bumps

Package Version Reason
@tanstack/ai-anthropic 0.15.13 → 0.16.0 Changeset

🟩 Patch bumps

Package Version Reason
@tanstack/ai 0.39.0 → 0.39.1 Changeset
@tanstack/ai-ollama 0.8.12 → 0.8.13 Changeset
@tanstack/ai-openrouter 0.15.6 → 0.15.7 Changeset
@tanstack/ai-angular 0.2.1 → 0.2.2 Dependent
@tanstack/ai-bedrock 0.1.0 → 0.1.1 Dependent
@tanstack/ai-client 0.19.1 → 0.19.2 Dependent
@tanstack/ai-code-mode 0.3.4 → 0.3.5 Dependent
@tanstack/ai-code-mode-skills 0.3.7 → 0.3.8 Dependent
@tanstack/ai-devtools-core 0.4.20 → 0.4.21 Dependent
@tanstack/ai-fal 0.9.8 → 0.9.9 Dependent
@tanstack/ai-isolate-cloudflare 0.2.34 → 0.2.35 Dependent
@tanstack/ai-isolate-node 0.1.43 → 0.1.44 Dependent
@tanstack/ai-isolate-quickjs 0.1.43 → 0.1.44 Dependent
@tanstack/ai-mcp 0.2.1 → 0.2.2 Dependent
@tanstack/ai-preact 0.10.1 → 0.10.2 Dependent
@tanstack/ai-react 0.16.2 → 0.16.3 Dependent
@tanstack/ai-solid 0.14.1 → 0.14.2 Dependent
@tanstack/ai-svelte 0.14.1 → 0.14.2 Dependent
@tanstack/ai-vue 0.14.1 → 0.14.2 Dependent
@tanstack/ai-vue-ui 0.2.29 → 0.2.30 Dependent
@tanstack/preact-ai-devtools 0.1.63 → 0.1.64 Dependent
@tanstack/react-ai-devtools 0.2.63 → 0.2.64 Dependent
@tanstack/solid-ai-devtools 0.2.63 → 0.2.64 Dependent

@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@tanstack/ai

npm i https://pkg.pr.new/@tanstack/ai@887

@tanstack/ai-acp

npm i https://pkg.pr.new/@tanstack/ai-acp@887

@tanstack/ai-angular

npm i https://pkg.pr.new/@tanstack/ai-angular@887

@tanstack/ai-anthropic

npm i https://pkg.pr.new/@tanstack/ai-anthropic@887

@tanstack/ai-bedrock

npm i https://pkg.pr.new/@tanstack/ai-bedrock@887

@tanstack/ai-claude-code

npm i https://pkg.pr.new/@tanstack/ai-claude-code@887

@tanstack/ai-client

npm i https://pkg.pr.new/@tanstack/ai-client@887

@tanstack/ai-code-mode

npm i https://pkg.pr.new/@tanstack/ai-code-mode@887

@tanstack/ai-code-mode-skills

npm i https://pkg.pr.new/@tanstack/ai-code-mode-skills@887

@tanstack/ai-codex

npm i https://pkg.pr.new/@tanstack/ai-codex@887

@tanstack/ai-devtools-core

npm i https://pkg.pr.new/@tanstack/ai-devtools-core@887

@tanstack/ai-elevenlabs

npm i https://pkg.pr.new/@tanstack/ai-elevenlabs@887

@tanstack/ai-event-client

npm i https://pkg.pr.new/@tanstack/ai-event-client@887

@tanstack/ai-fal

npm i https://pkg.pr.new/@tanstack/ai-fal@887

@tanstack/ai-gemini

npm i https://pkg.pr.new/@tanstack/ai-gemini@887

@tanstack/ai-grok

npm i https://pkg.pr.new/@tanstack/ai-grok@887

@tanstack/ai-grok-build

npm i https://pkg.pr.new/@tanstack/ai-grok-build@887

@tanstack/ai-groq

npm i https://pkg.pr.new/@tanstack/ai-groq@887

@tanstack/ai-isolate-cloudflare

npm i https://pkg.pr.new/@tanstack/ai-isolate-cloudflare@887

@tanstack/ai-isolate-node

npm i https://pkg.pr.new/@tanstack/ai-isolate-node@887

@tanstack/ai-isolate-quickjs

npm i https://pkg.pr.new/@tanstack/ai-isolate-quickjs@887

@tanstack/ai-mcp

npm i https://pkg.pr.new/@tanstack/ai-mcp@887

@tanstack/ai-mistral

npm i https://pkg.pr.new/@tanstack/ai-mistral@887

@tanstack/ai-ollama

npm i https://pkg.pr.new/@tanstack/ai-ollama@887

@tanstack/ai-openai

npm i https://pkg.pr.new/@tanstack/ai-openai@887

@tanstack/ai-opencode

npm i https://pkg.pr.new/@tanstack/ai-opencode@887

@tanstack/ai-openrouter

npm i https://pkg.pr.new/@tanstack/ai-openrouter@887

@tanstack/ai-preact

npm i https://pkg.pr.new/@tanstack/ai-preact@887

@tanstack/ai-react

npm i https://pkg.pr.new/@tanstack/ai-react@887

@tanstack/ai-react-ui

npm i https://pkg.pr.new/@tanstack/ai-react-ui@887

@tanstack/ai-sandbox

npm i https://pkg.pr.new/@tanstack/ai-sandbox@887

@tanstack/ai-sandbox-cloudflare

npm i https://pkg.pr.new/@tanstack/ai-sandbox-cloudflare@887

@tanstack/ai-sandbox-daytona

npm i https://pkg.pr.new/@tanstack/ai-sandbox-daytona@887

@tanstack/ai-sandbox-docker

npm i https://pkg.pr.new/@tanstack/ai-sandbox-docker@887

@tanstack/ai-sandbox-local-process

npm i https://pkg.pr.new/@tanstack/ai-sandbox-local-process@887

@tanstack/ai-sandbox-sprites

npm i https://pkg.pr.new/@tanstack/ai-sandbox-sprites@887

@tanstack/ai-sandbox-vercel

npm i https://pkg.pr.new/@tanstack/ai-sandbox-vercel@887

@tanstack/ai-solid

npm i https://pkg.pr.new/@tanstack/ai-solid@887

@tanstack/ai-solid-ui

npm i https://pkg.pr.new/@tanstack/ai-solid-ui@887

@tanstack/ai-svelte

npm i https://pkg.pr.new/@tanstack/ai-svelte@887

@tanstack/ai-utils

npm i https://pkg.pr.new/@tanstack/ai-utils@887

@tanstack/ai-vue

npm i https://pkg.pr.new/@tanstack/ai-vue@887

@tanstack/ai-vue-ui

npm i https://pkg.pr.new/@tanstack/ai-vue-ui@887

@tanstack/openai-base

npm i https://pkg.pr.new/@tanstack/openai-base@887

@tanstack/preact-ai-devtools

npm i https://pkg.pr.new/@tanstack/preact-ai-devtools@887

@tanstack/react-ai-devtools

npm i https://pkg.pr.new/@tanstack/react-ai-devtools@887

@tanstack/solid-ai-devtools

npm i https://pkg.pr.new/@tanstack/solid-ai-devtools@887

commit: f970d1a

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ae03ab07-dd54-409c-adaa-00542a0b5945

📥 Commits

Reviewing files that changed from the base of the PR and between fe5d788 and f970d1a.

📒 Files selected for processing (2)
  • .changeset/sync-models.md
  • scripts/sync-provider-models.ts

📝 Walkthrough

Walkthrough

This PR updates the package-path detection regex in the sync-provider-models script from a packages/typescript/<pkg>/... pattern to packages/<pkg>/..., and adds a changeset documenting OpenRouter model metadata updates including new models, pricing refreshes, and removed retired model IDs.

Changes

Sync Script and Changeset

Layer / File(s) Summary
Package detection regex fix
scripts/sync-provider-models.ts
detectChangedPackages now matches packages/<name>/... instead of packages/typescript/<name>/..., changing which packages are included in generated changesets.
OpenRouter model sync changeset
.changeset/sync-models.md
Adds a patch changeset for @tanstack/ai-openrouter documenting new models, pricing/capability refreshes, and removed retired model IDs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: AlemTuzlak

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main fix: restoring changeset creation in the model-metadata sync.
Description check ✅ Passed The description follows the required template and includes the changes, checklist, and release impact sections with relevant details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/sync-models-changeset-detection

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant