singularity-forge/packages/ai/src
Mikael Hugo 7ea41b89ae feat(ai,coding-agent): wireModelId — provider deployment alias
Adds an optional wireModelId field to the Model interface and a
resolveWireModelId helper. Forge's canonical model.id stays stable for
selection, capability scoring, policy, and history; providers now send
model.wireModelId on the wire when set, model.id otherwise.

Use cases: Azure deployment names, vendor model slugs that differ
from Forge's canonical identity, A/B routing where the operator wants
canonical history but a specific deployment.

Wired through every provider in @singularity-forge/ai (anthropic,
amazon-bedrock, azure-openai-responses, google, google-vertex,
google-gemini-cli, mistral, openai-codex-responses, openai-completions,
openai-responses) plus @singularity-forge/coding-agent's
ModelRegistry (model definitions + per-model overrides).

Tests: openai-completions wireModelId payload coverage +
model-registry-auth-mode coverage for the override + definition fields.
Full pi-ai + coding-agent suite: 956/956 ✓ (7 unrelated skipped).

This realizes the model-registry contract drafted in 1d753af6b.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 09:25:21 +02:00
..
providers feat(ai,coding-agent): wireModelId — provider deployment alias 2026-05-14 09:25:21 +02:00
utils feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
api-registry.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
bedrock-provider.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
cli.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
env-api-keys.test.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
env-api-keys.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
index.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
model-identity.ts feat(ai,coding-agent): wireModelId — provider deployment alias 2026-05-14 09:25:21 +02:00
models.custom.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
models.generated.test.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
models.generated.ts fix(ai): backfill MiniMax M2/M2.1 cacheRead pricing 2026-05-14 04:55:46 +02:00
models.test.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
models.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
oauth.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
stream.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
types.ts feat(ai,coding-agent): wireModelId — provider deployment alias 2026-05-14 09:25:21 +02:00
web-runtime-env-api-keys.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00
web-runtime-oauth.ts feat(web): add error boundaries, expand test coverage, add README 2026-05-10 11:24:40 +02:00