import { getSeaworkModels } from "../seawork-models.js";
export async function getClaudeModels() {
    return getSeaworkModels("claude");
}
/**
 * Normalize a runtime model string (from SDK init message) to a known model ID.
 * Handles the `[1m]` suffix that the SDK appends for 1M context sessions.
 */
export function normalizeClaudeRuntimeModelId(value) {
    const trimmed = typeof value === "string" ? value.trim() : "";
    if (!trimmed) {
        return null;
    }
    if (trimmed.toLowerCase().startsWith("gemini-")) {
        return trimmed;
    }
    // Match: claude-{family}-{major}-{minor}[1m]? possibly followed by a date suffix
    const runtimeMatch = trimmed.match(/(?:claude-)?(opus|sonnet|haiku)[-_ ]+(\d+)[-.](\d+)(\[1m\])?/i);
    if (!runtimeMatch) {
        return null;
    }
    const family = runtimeMatch[1].toLowerCase();
    const major = runtimeMatch[2];
    const minor = runtimeMatch[3];
    const suffix = runtimeMatch[4] ?? "";
    return `claude-${family}-${major}-${minor}${suffix}`;
}
//# sourceMappingURL=claude-models.js.map