singularity-forge/packages
Mikael Hugo 7c487bb60e port(pi-mono): normalize Bedrock model names for inference profiles (refs ed4bc7308)
Pi-mono Tier 0 #5 — first sf-driven port. sf-from-source dispatched the
task in print mode and produced this fix autonomously.

Adds getModelMatchCandidates(modelId, modelName?) helper that normalizes
both inputs to lowercase and dash-separated form
(s.replace(/[\s_.:]+/g, "-")). Inference profile ARNs don't embed the
model name; the helper lets capability checks match against either the
inference profile ARN or the underlying model name.

Updated:
- supportsAdaptiveThinking — uses the helper; consolidates the
  opus-4.6/opus-4-6 dot-vs-dash variants.
- mapThinkingLevelToEffort — same pattern.
- supportsPromptCaching — same pattern (also from pi-mono PR #3527).
- streamSimpleBedrock and buildAdditionalModelRequestFields — pass
  model.name through to capability checks.

Type-check passes (cd packages/pi-ai && npx tsc --noEmit).

Co-Authored-By: sf v2.75.1 (session 911dd2de)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 14:14:17 +02:00
..
daemon release: v2.75.0 2026-04-17 17:26:59 +00:00
mcp-server feat(providers): add xiaomi direct API (token-plan-{ams,sgp,cn}) — additive 2026-04-29 13:54:43 +02:00
native sf snapshot: uncommitted changes after 248m inactivity 2026-04-28 21:10:17 +02:00
pi-agent-core Cherry-pick 4 critical recovery fixes from pi-mono upstream 2026-04-18 14:28:15 +02:00
pi-ai port(pi-mono): normalize Bedrock model names for inference profiles (refs ed4bc7308) 2026-04-29 14:14:17 +02:00
pi-coding-agent fix(schema): auto-coerce string → [string] for sf_* list fields + provider_model_allow tests 2026-04-28 12:30:55 +02:00
pi-tui release: v2.75.0 2026-04-17 17:26:59 +00:00
rpc-client release: v2.75.0 2026-04-17 17:26:59 +00:00