import { formatOutputLanguageForJson } from "../../../language.js";
export function buildUrlJsonInput(options) {
    const { flags, url, effectiveMarkdownMode, modelLabel } = options;
    return {
        kind: "url",
        url,
        timeoutMs: flags.timeoutMs,
        youtube: flags.youtubeMode,
        videoMode: flags.videoMode,
        embeddedVideo: flags.embeddedVideoMode,
        firecrawl: flags.firecrawlMode,
        format: flags.format,
        markdown: effectiveMarkdownMode,
        timestamps: flags.transcriptTimestamps,
        length: flags.lengthArg.kind === "preset"
            ? { kind: "preset", preset: flags.lengthArg.preset }
            : { kind: "chars", maxCharacters: flags.lengthArg.maxCharacters },
        maxOutputTokens: flags.maxOutputTokensArg,
        model: modelLabel,
        language: formatOutputLanguageForJson(flags.outputLanguage),
    };
}
//# sourceMappingURL=summary-json.js.map