원클릭으로
update-models
// Sync model types from SAP Notes 3437766. Use when model-types.ts needs updating from the latest SAP AI model availability table.
// Sync model types from SAP Notes 3437766. Use when model-types.ts needs updating from the latest SAP AI model availability table.
| name | update-models |
| description | Sync model types from SAP Notes 3437766. Use when model-types.ts needs updating from the latest SAP AI model availability table. |
| argument-hint | [no arguments needed] |
Syncs packages/core/src/model-types.ts with the current model table on SAP Notes (me.sap.com/notes/3437766).
Navigate to the SAP Notes page using the Playwright MCP tool:
browser_navigate to go to https://me.sap.com/notes/3437766browser_wait_for to wait for Availability of Generative AI ModelsExtract the model table (then close the browser tab when done):
scripts/extract-model-table.js and pass its contents as the function body to browser_evaluate.{ error: '...' } (failure).scripts/sap-models.json: read the existing file first, then update existing entries (matched by model field) and append any new ones.
Do NOT replace the whole file — use the Edit tool to apply targeted changes or add new entries.browser_close to avoid stale session issues on future runs.Patch model-types.ts by running the sync script:
pnpm tsx scripts/sync-model-types.ts
If the output ends with a ⚠ Skipped N model(s) warning, show the user the listed model names and their executableId values and ask whether they want to add a mapping.
If yes, add the appropriate entry to EXECUTABLE_ID_TO_TYPE in scripts/sync-model-types.ts and re-run the script before proceeding.
The script also checks which synced models are available in your landscape using the foundation-models API.
Check for deprecated model usage in the codebase:
scripts/sap-models.json, collect the names of all models where deprecated is "yes" or the retirement date is set.scripts/sap-models.json itself, packages/core/src/model-types.ts, OpenAPI specs and generated files like packages/*/src/client/**/*.ts).Show the diff to the user:
git diff packages/core/src/model-types.ts
If there is no diff, tell the user the file is already up to date and stop.
Ask the user if they want to open a PR with these changes.
If yes, create a branch and open a PR:
git checkout -b model-types-update/$(date +%Y-%m-%d)
git add scripts/sap-models.json packages/core/src/model-types.ts
git commit -m "chore: sync model types from SAP Notes 3437766"
gh pr create --base main --title "chore: Sync model types from SAP Notes" --body "Automated sync of model types from [SAP Notes 3437766](https://me.sap.com/notes/3437766).\n\n## Changes\n\nUpdated LiteralUnion type blocks in \`packages/core/src/model-types.ts\` to reflect current model availability.\n\n## Definition of Done\n- [ ] Model names are correct\n- [ ] Compilation passes\n- [ ] Release notes / Changeset updated if needed"
playwright@claude-plugins-official must be enabled as a Claude Code plugin — install it via /plugin in Claude Codegh CLI must be authenticated: run gh auth login if not already done