Update the `@azure-tools/openai-typespec` package that supplies OpenAI TypeSpec definitions and views used by this repo. WHEN: "update OpenAI TypeSpec definitions", "bump openai-typespec", "refresh OpenAI TypeSpec models/views", "upgrade @azure-tools/openai-typespec". DO NOT USE FOR: general `.tsp` authoring, changing service APIs, or SDK generation. ALWAYS keep an exact pin in the root pnpm-workspace.yaml catalog, retain catalog: in package.json, and run pnpm install from the repository root. WARN the user if the resolved catalog version spec contains a caret (`^`).
Use this skill when the task is specifically about updating the
@azure-tools/openai-typespec dependency that provides imported OpenAI
models and views consumed from tspconfig.yaml files in this repo.
package.json references the dependency with catalog:.
Its exact version is managed in the default catalog in the root
pnpm-workspace.yaml.tspconfig.yaml files,
such as:
@azure-tools/openai-typespec/models/...@azure-tools/openai-typespec/views/client-emitters/...Always set the catalog entry to an exact version. Keep the root package.json
dependency value as catalog:, then run from the repository root:
pnpm installDo not use a caret range. Exact pins prevent accidental drift in the
OpenAI definition package. catalog: itself is not a version range; inspect
the value it resolves to before deciding whether the package is pinned.
Update the catalog entry rather than replacing the manifest's catalog:
reference with a literal version.
package.json
catalog: reference to catalog["@azure-tools/openai-typespec"] in
pnpm-workspace.yaml.pnpm view @azure-tools/openai-typespec version.catalog: in package.json, and run pnpm install from the repository root.
Report installation or release-age errors explicitly without disabling
workspace policies.^); ensure it is an exact version and that the lockfile resolves the
requested version.pnpm-workspace.yaml and the
pnpm-generated pnpm-lock.yaml together. An existing catalog: reference
should not need a manifest change. Do not hand-edit the lockfile.tspconfig.yaml files when
the package update is meant to refresh models or views used by Azure
AI Foundry specs.@azure-tools/openai-typespec and make sure it is pinned
exactly."@azure-tools/openai-typespec dependency uses a
caret."^<version>, explicitly warn the user that
caret ranges are not allowed for this package update flow..tsp API shapes rather than update the
package dependency, use the azure-typespec-author skill instead.Azure/azure-rest-api-specs
3b64c3a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.