/**
 * Resolves the model ID for a given task type using the router config.
 *
 * Fallback chain: `router[taskType]` -> `router.default` -> `primaryModel`
 */
export function resolveTaskModel(taskType, router, primaryModel) {
    if (!router)
        return primaryModel;
    const specific = router[taskType];
    if (specific)
        return specific;
    if (taskType !== 'default') {
        const fallback = router.default;
        if (fallback)
            return fallback;
    }
    return primaryModel;
}
//# sourceMappingURL=task-router.js.map