var e=[{label:`Codex · GPT-5.6`,provider:`openai-codex`,model:`gpt-5.6`},{label:`Codex · GPT-5.6 Luna`,provider:`openai-codex`,model:`gpt-5.6-luna`},{label:`Codex · GPT-5.6 Sol`,provider:`openai-codex`,model:`gpt-5.6-sol`},{label:`Codex · GPT-5.6 Terra`,provider:`openai-codex`,model:`gpt-5.6-terra`},{label:`Codex · GPT-5.5`,provider:`openai-codex`,model:`gpt-5.5`},{label:`Codex · GPT-5.4`,provider:`openai-codex`,model:`gpt-5.4`},{label:`Codex · GPT-5.4 Mini`,provider:`openai-codex`,model:`gpt-5.4-mini`},{label:`Codex · GPT-5.3 Codex Spark`,provider:`openai-codex`,model:`gpt-5.3-codex-spark`},{label:`Anthropic · Claude Opus 5`,provider:`anthropic`,model:`claude-opus-5`},{label:`Anthropic · Claude Haiku 4.5`,provider:`anthropic`,model:`claude-haiku-4-5`},{label:`Anthropic · Claude Opus 4.6`,provider:`anthropic`,model:`claude-opus-4-6`},{label:`Anthropic · Claude Opus 4.7`,provider:`anthropic`,model:`claude-opus-4-7`},{label:`Anthropic · Claude Opus 4.8`,provider:`anthropic`,model:`claude-opus-4-8`},{label:`Anthropic · Claude Sonnet 4.6`,provider:`anthropic`,model:`claude-sonnet-4-6`},{label:`Anthropic · Claude Sonnet 5`,provider:`anthropic`,model:`claude-sonnet-5`},{label:`Claude · Opus 5`,provider:`claude-bridge`,model:`claude-opus-5`},{label:`Claude · Haiku 4.5`,provider:`claude-bridge`,model:`claude-haiku-4-5`},{label:`Claude · Opus 4.6`,provider:`claude-bridge`,model:`claude-opus-4-6`},{label:`Claude · Opus 4.7`,provider:`claude-bridge`,model:`claude-opus-4-7`},{label:`Claude · Opus 4.8`,provider:`claude-bridge`,model:`claude-opus-4-8`},{label:`Claude · Sonnet 4.6`,provider:`claude-bridge`,model:`claude-sonnet-4-6`},{label:`Claude · Sonnet 5`,provider:`claude-bridge`,model:`claude-sonnet-5`}],t=e[0];function n(t,n){if(!(!t||!n))return e.find(e=>e.provider===t&&e.model===n)}function r(e){let t=e.toLowerCase();return t.startsWith(`gpt-`)?e.replace(/^gpt-/i,`GPT-`).replace(/-codex$/i,` Codex`).replace(/-(luna|sol|terra)$/i,` $1`).replace(/-pro$/i,` Pro`).replace(/\b(luna|sol|terra)\b/gi,e=>e[0].toUpperCase()+e.slice(1).toLowerCase()):t.startsWith(`claude-`)?e.replace(/^claude-/i,`Claude `).replace(/(\d)-(\d)/g,`$1.$2`).replace(/-/g,` `).replace(/\b\w/g,e=>e.toUpperCase()):t.startsWith(`gemini-`)?e.replace(/^gemini-/i,``).replace(/(\d)-(\d)/g,`$1.$2`).replace(/-/g,` `).replace(/\b\w/g,e=>e.toUpperCase()):e}function i(e){switch(e){case`openai-codex`:return`Codex`;case`openai`:return`OpenAI`;case`anthropic`:return`Anthropic`;case`claude-bridge`:return`Claude`;case`google-antigravity`:return`Gemini`;default:return e}}function a(e,t){if(!e||!t)return;let a=n(e,t);if(a)return a;let o=i(e),s=r(t);return o===`Claude`&&s.startsWith(`Claude `)&&(s=s.slice(7)),{provider:e,model:t,label:`${o} · ${s}`}}function o(e,t){return`${e}/${t}`}function s(e){let t=e.provider.trim(),n=e.model.trim();if(!t||!n||/[\s\x00-\x1f]/.test(t)||/[\s\x00-\x1f]/.test(n))throw Error(`Pi model selection requires a canonical provider/model id`);return`\x15/model ${t}/${n}\r`}function c(e){let[t,...n]=e.split(`/`);return{provider:t||`openai-codex`,model:n.join(`/`)||`gpt-5.5`}}export{a,r as i,e as n,o,c as r,s,t};