@steipete/summarize 0.23.1 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/completions/summarize.fish +2 -2
- package/dist/esm/application/metrics.js +3 -9
- package/dist/esm/application/metrics.js.map +1 -1
- package/dist/esm/application/provider-runtime.js +0 -2
- package/dist/esm/application/provider-runtime.js.map +1 -1
- package/dist/esm/daemon/agent-model.js +5 -10
- package/dist/esm/daemon/agent-model.js.map +1 -1
- package/dist/esm/daemon/agent.js +19 -54
- package/dist/esm/daemon/agent.js.map +1 -1
- package/dist/esm/daemon/models.js +6 -0
- package/dist/esm/daemon/models.js.map +1 -1
- package/dist/esm/engine/streaming.js +0 -1
- package/dist/esm/engine/streaming.js.map +1 -1
- package/dist/esm/llm/generate-text-shared.js +10 -3
- package/dist/esm/llm/generate-text-shared.js.map +1 -1
- package/dist/esm/llm/generate-text-stream.js +9 -2
- package/dist/esm/llm/generate-text-stream.js.map +1 -1
- package/dist/esm/llm/generate-text.js +3 -0
- package/dist/esm/llm/generate-text.js.map +1 -1
- package/dist/esm/llm/model-id.js +1 -6
- package/dist/esm/llm/model-id.js.map +1 -1
- package/dist/esm/llm/openai-catalog.js +29 -0
- package/dist/esm/llm/openai-catalog.js.map +1 -0
- package/dist/esm/llm/provider-profile.js +2 -10
- package/dist/esm/llm/provider-profile.js.map +1 -1
- package/dist/esm/llm/provider-registry.js +0 -10
- package/dist/esm/llm/provider-registry.js.map +1 -1
- package/dist/esm/llm/providers/openai/chat-completions.js +14 -3
- package/dist/esm/llm/providers/openai/chat-completions.js.map +1 -1
- package/dist/esm/llm/providers/openai/request-options.js +12 -1
- package/dist/esm/llm/providers/openai/request-options.js.map +1 -1
- package/dist/esm/llm/providers/openai/responses.js +5 -3
- package/dist/esm/llm/providers/openai/responses.js.map +1 -1
- package/dist/esm/llm/providers/openai/sse.js +7 -1
- package/dist/esm/llm/providers/openai/sse.js.map +1 -1
- package/dist/esm/llm/providers/openai/transport.js +2 -22
- package/dist/esm/llm/providers/openai/transport.js.map +1 -1
- package/dist/esm/llm/providers/openai.js +5 -17
- package/dist/esm/llm/providers/openai.js.map +1 -1
- package/dist/esm/llm/providers/shared.js +4 -0
- package/dist/esm/llm/providers/shared.js.map +1 -1
- package/dist/esm/llm/usage.js +4 -6
- package/dist/esm/llm/usage.js.map +1 -1
- package/dist/esm/localization/de.json +3 -3
- package/dist/esm/localization/en.json +3 -3
- package/dist/esm/localization/es.json +3 -3
- package/dist/esm/localization/fr.json +3 -3
- package/dist/esm/localization/it.json +3 -3
- package/dist/esm/localization/ja.json +3 -3
- package/dist/esm/localization/ko.json +3 -3
- package/dist/esm/localization/nl.json +3 -3
- package/dist/esm/localization/pl.json +3 -3
- package/dist/esm/localization/pt-BR.json +3 -3
- package/dist/esm/localization/ru.json +3 -3
- package/dist/esm/localization/tr.json +3 -3
- package/dist/esm/localization/zh-Hans.json +3 -3
- package/dist/esm/localization/zh-Hant.json +3 -3
- package/dist/esm/pricing/litellm.js +12 -0
- package/dist/esm/pricing/litellm.js.map +1 -1
- package/dist/esm/run/flows/url/markdown.js +2 -4
- package/dist/esm/run/flows/url/markdown.js.map +1 -1
- package/dist/esm/run/help.js +0 -1
- package/dist/esm/run/help.js.map +1 -1
- package/dist/esm/run/status-cli.js +0 -6
- package/dist/esm/run/status-cli.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/daemon/agent-model.d.ts +1 -2
- package/dist/types/engine/model-meta.d.ts +1 -1
- package/dist/types/engine/types.d.ts +1 -1
- package/dist/types/llm/generate-text-shared.d.ts +3 -1
- package/dist/types/llm/openai-catalog.d.ts +18 -0
- package/dist/types/llm/provider-profile.d.ts +1 -1
- package/dist/types/llm/provider-registry.d.ts +0 -10
- package/dist/types/llm/providers/openai/request-options.d.ts +2 -0
- package/dist/types/llm/providers/openai/sse.d.ts +2 -1
- package/dist/types/llm/providers/openai/transport.d.ts +1 -2
- package/dist/types/locale.d.ts +2 -2
- package/dist/types/run/flows/url/markdown.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/chrome-extension.md +1 -1
- package/docs/commands/daemon.md +4 -4
- package/docs/commands/index.md +20 -19
- package/docs/commands/refresh-free.md +4 -4
- package/docs/commands/summarize.md +9 -9
- package/docs/config.md +2 -0
- package/docs/install.md +0 -1
- package/docs/llm.md +1 -20
- package/docs/openai.md +22 -0
- package/package.json +2 -2
- package/dist/esm/llm/github-models.js +0 -68
- package/dist/esm/llm/github-models.js.map +0 -1
- package/dist/esm/llm/providers/openai/github-models.js +0 -18
- package/dist/esm/llm/providers/openai/github-models.js.map +0 -1
- package/dist/types/llm/github-models.d.ts +0 -7
- package/dist/types/llm/providers/openai/github-models.d.ts +0 -2
package/dist/types/locale.d.ts
CHANGED
|
@@ -257,7 +257,6 @@ declare const english: {
|
|
|
257
257
|
"openai.reasoning.effort.none.low.medium.high.xhigh.aliases.off.min.mid": string;
|
|
258
258
|
"diarize.a.local.recording": string;
|
|
259
259
|
"configure.local.onnx.transcription.parakeet.canary": string;
|
|
260
|
-
"github.models.via.github.token": string;
|
|
261
260
|
"config.preset": string;
|
|
262
261
|
"summarize.clipboard.content": string;
|
|
263
262
|
"scan.update.working.openrouter.free.models": string;
|
|
@@ -443,9 +442,10 @@ declare const english: {
|
|
|
443
442
|
"service.cliEntrypointMissing": string;
|
|
444
443
|
"service.cliBuildMissing": string;
|
|
445
444
|
"service.healthUnreachable": string;
|
|
445
|
+
"error.githubModelsRetired": string;
|
|
446
446
|
};
|
|
447
447
|
export type CliMessageKey = keyof typeof english;
|
|
448
|
-
export declare function createCliTranslator(locale: CliLocale, styles?: MessageStyles): (key: "add.speaker.labels.to.youtube.or.direct.audio.video.auto.elevenlabs.then.openai.elevenlabs.openai" | "alias.for.slides.dir" | "alias.for.verbose" | "alias.for.verbose.and.defaults.metrics.to.detailed" | "base.output.dir.for.slides.default.slides" | "bypass.slide.cache.force.re.extract" | "bypass.summary.cache.llm.media.transcript.caches.stay.enabled" | "cache.cleared" | "cache.entries" | "cache.is.empty" | "cache.path" | "cache.size" | "cache.stats.must.be.used.alone" | "clear.cache.must.be.used.alone" | "cli.interface.language.auto.en.or.tr.turkish.default.en.also.summarize.locale" | "commands" | "config.preset" | "configure.local.onnx.transcription.parakeet.canary" | "configures.local.onnx.transcription.by.printing.the.required.env.vars" | "daemon.auth" | "daemon.command" | "daemon.configMissing" | "daemon.configPath" | "daemon.containerReady" | "daemon.cwd" | "daemon.foregroundToken" | "daemon.health" | "daemon.installHint" | "daemon.manualAutostart" | "daemon.nativePath" | "daemon.nativeStatus" | "daemon.nativeUnavailable" | "daemon.notInstalled" | "daemon.ready" | "daemon.restarted" | "daemon.service" | "daemon.serviceMissing" | "daemon.starting" | "daemon.uninstalled" | "daemon.windowsDetected" | "daemon.windowsInstallHint" | "daemon.windowsManual" | "daemon.windowsNativeHint" | "daemon.windowsNoAutostart" | "daemon.windowsRestart" | "daemon.windowsUninstalled" | "delete.the.cache.database.and.exit" | "diarize.a.local.recording" | "disable.ansi.colors.in.output" | "disable.configured.slide.extraction.for.this.run" | "disable.configured.slide.ocr.for.this.run" | "disable.media.download.cache.yt.dlp" | "embedded.youtube.handling.auto.off.prefer.transcript.or.combine.article.transcript" | "env.vars" | "error.archiveUnsupported" | "error.assetPromptMissing" | "error.assetResourcesMissing" | "error.attachBinary" | "error.attachUnsupported" | "error.attachmentMissingBytes" | "error.binaryMissingBytes" | "error.birdEmpty" | "error.birdJson" | "error.birdPayload" | "error.cause" | "error.cliOrder" | "error.cliOrderProvider" | "error.configBlockComment" | "error.configField" | "error.configLineComment" | "error.configModelsObject" | "error.configObject" | "error.daemonAuth" | "error.daemonPort" | "error.daemonToken" | "error.daemonUnconfigured" | "error.diarizationInput" | "error.diarizationKey" | "error.documentMissingBytes" | "error.elevenlabsKey" | "error.emptyMedia" | "error.executionState" | "error.extensionDevOnly" | "error.extensionId" | "error.extractBinary" | "error.extractLocalFiles" | "error.extractMissingBytes" | "error.extractStdin" | "error.extractUnsupported" | "error.extractUrlRequired" | "error.fastServiceTierConflict" | "error.invalidMaxAge" | "error.invalidMinParams" | "error.invalidRuns" | "error.invalidSmart" | "error.localeRequired" | "error.markdownConflict" | "error.markdownConverter" | "error.markdownConverterSetup" | "error.markdownFileMode" | "error.markdownFixedModel" | "error.markdownFormat" | "error.markdownInput" | "error.markdownKey" | "error.markdownModel" | "error.maxOutputTokens" | "error.mediaAccess" | "error.mediaTooLarge" | "error.missingHome" | "error.missingOverride" | "error.modelAndCli" | "error.modelAttachment" | "error.modelIdMissing" | "error.modelProvider" | "error.namedModelInvalid" | "error.namedModelUnknown" | "error.noExtractableText" | "error.noFreeModels" | "error.noModel" | "error.noRecentFreeModels" | "error.noTwitterCli" | "error.noWorkingFreeModels" | "error.openaiDiarizationKey" | "error.openrouterKey" | "error.openrouterModels" | "error.optionMinimum" | "error.optionRange" | "error.pdfTooLarge" | "error.preprocessFailed" | "error.preprocessMissing" | "error.preprocessMissingBytes" | "error.preprocessMissingContent" | "error.promptEmpty" | "error.promptRead" | "error.remoteCliAttachment" | "error.renderMode" | "error.retries" | "error.sequence" | "error.slidesFailedDefault" | "error.stdinChunkType" | "error.stdinEmpty" | "error.stdinStreamMissing" | "error.stdinTooLarge" | "error.textTooLarge" | "error.timeout" | "error.transcriber" | "error.transcriberCommand" | "error.transcriberModel" | "error.transcriptionChecks" | "error.transcriptionFailed" | "error.transcriptionSetup" | "error.tweetClient" | "error.tweetRead" | "error.unknown" | "error.unsupportedOption" | "error.withTwitterTip" | "error.withUvxTip" | "error.xurlApi" | "error.xurlEmpty" | "error.xurlInput" | "error.xurlJson" | "error.xurlPayload" | "error.xurlTopLevel" | "examples" | "extract.slide.screenshots.from.a.youtube.url.direct.video.url.or.local.video.file" | "extract.slides.for.youtube.direct.video.urls.or.local.video.files.and.render.them.inline.inside.the.summary.narrative.when.supported.combine.with.extract.to.interleave.slides.in.the.full.transcript" | "extracted.markdown.prefers.firecrawl.when.configured" | "extracted.markdown.via.llm" | "extracted.plain.text" | "fetching.website" | "finish.cached" | "finish.calls" | "finish.compactTranscript" | "finish.extracted" | "finish.inputLength" | "finish.lengths" | "finish.services" | "finish.summary" | "finish.transcriptLength" | "finish.unknown" | "firecrawl.usage.off.auto.fallback.always.try.firecrawl.first" | "footer.markdown" | "footer.outcome" | "footer.slides" | "footer.transcript" | "footer.video" | "force.llm.summary.even.when.extracted.content.is.shorter.than.the.requested.length" | "full.transcript.inline.slides" | "github.models.via.github.token" | "hard.cap.for.llm.output.tokens.e.g.2000.2k.overrides.provider.defaults" | "help.annotation.choices" | "help.annotation.default" | "help.annotation.description" | "help.annotation.env" | "help.annotation.preset" | "help.chrome.native.host.macos.and.linux.windows.executable.packaging.pending" | "help.custom.ports.must.also.be.set.in.extension.options.runtime.daemon.port" | "help.dev.install.service.that.runs.src.cli.ts.via.node.repo.dev.mode" | "help.display" | "help.environment" | "help.examples" | "help.extension.id.dev.only.unpacked.chrome.extension.id.requires.dev" | "help.heading.arguments" | "help.heading.commands" | "help.heading.globalOptions" | "help.heading.options" | "help.heading.usage" | "help.install.install.upgrade.daemon.autostart.config.and.the.chrome.native.messaging.host" | "help.intro" | "help.json.output.structured.json" | "help.linux.systemd.user.service" | "help.macos.launchagent.launchd" | "help.model.name.parakeet.default.or.canary" | "help.option.deprecated.alias.for.extract" | "help.option.deprecated.alias.for.markdown.mode.use.extract.format.md.markdown.mode" | "help.port.n.default.8787" | "help.probe.probe.supported.model.list.endpoints.without.running.inference" | "help.restart.restart.the.daemon.autostart.service" | "help.run.run.the.daemon.in.the.foreground.used.by.autostart" | "help.status.check.daemon.service.native.host.and.daemon.health" | "help.support" | "help.theme" | "help.token.token.required.for.install" | "help.transcriberOrder" | "help.uninstall.remove.daemon.autostart.and.the.chrome.native.messaging.host" | "help.usage.summarize.daemon.command.options" | "help.usage.summarize.input.flags" | "help.usage.summarize.refresh.free.runs.2.smart.3.min.params.27b.max.age.days.180.set.default.verbose" | "help.usage.summarize.status.json.probe.verbose" | "help.usage.summarize.transcriber.setup.model.parakeet.canary.theme.name" | "help.verbose.include.executable.paths.endpoint.hosts.config.sources.and.preset.candidates" | "help.windows.scheduled.task" | "hint" | "identify.the.speaker.active.at.a.timestamp.repeat.for.multiple.speakers" | "include.timestamps.in.transcripts.when.available" | "inline.render.mode.auto.kitty.iterm.none" | "input.summary" | "install.ffmpeg.yt.dlp.for.slides.and.tesseract.for.slides.ocr" | "install.sherpa.onnx.from.upstream.binaries.or.build.homebrew.may.not.have.a.formula" | "keep.generic.diarization.labels.even.when.speaker.identification.is.configured" | "keep.raw.text.markdown.output.no.ansi.osc.rendering" | "llm.model.id.auto.name.cli.provider.model.xai.openai.nvidia.minimax.google.anthropic.zai.or.openrouter.author.slug.default.auto" | "llm.retry.attempts.after.timeouts.or.transient.api.failures.default.1" | "local.transcription.stage.auto.default.whisper.parakeet.canary.groq.still.runs.first.when.keyed" | "markdown.conversion.off.auto.llm.force.llm.readability.for.websites.converts.html.markdown.for.youtube.transcripts.llm.mode.formats.raw.transcripts.into.clean.markdown.with.headings.and.paragraphs" | "maximum.characters.to.print.in.extract.default.unlimited" | "maximum.slides.to.extract.default.6" | "metrics.cost" | "metrics.elapsed" | "metrics.output.off.on.detailed" | "metrics.tokens" | "minimum.seconds.between.slides.default.2" | "missing.providers.are.omitted.secrets.are.never.printed" | "model.auto" | "model.cli" | "model.codexFast" | "model.discovered" | "model.fast" | "model.free" | "next" | "notes" | "openai.reasoning.effort.none.low.medium.high.xhigh.aliases.off.min.mid" | "openai.service.tier.default.fast.priority.flex" | "options" | "output.json.payload.no.inline.rendering" | "output.language.auto.match.source.en.de.english.german.default.auto.configurable.in.summarize.config.json.via.output.language" | "output.structured.json.includes.prompt.metrics" | "override.terminal.width.for.markdown.rendering.default.auto.detect.max.120" | "override.the.summary.prompt.instruction.prefix.context.content.still.appended" | "persist.resolved.mappings.and.anchors.under.the.selected.speaker.profile" | "preprocess.inputs.for.model.compatibility.off.auto.fallback.always" | "presets" | "print.cache.stats.and.exit" | "print.detailed.progress.info.to.stderr" | "print.extracted.content.and.exit.urls.media.and.local.pdfs.stdin.is.unsupported" | "print.version.and.exit" | "progress.downloadVideo" | "progress.extractSlides" | "progress.extractionActive" | "progress.failedFallback" | "progress.fetchConnecting" | "progress.fetchStart" | "progress.fetchTransfer" | "progress.fetching" | "progress.fetchingPage" | "progress.firecrawlDone" | "progress.firecrawlStart" | "progress.input" | "progress.inputLabel" | "progress.mediaDownload" | "progress.mediaDownloadLabel" | "progress.mediaStage" | "progress.noContentFallback" | "progress.primaryFallback" | "progress.providers" | "progress.received" | "progress.scraping" | "progress.slides" | "progress.slidesCached" | "progress.slidesDone" | "progress.slidesExtracting" | "progress.slidesQueued" | "progress.summarizeVideo" | "progress.summaryActive" | "progress.transcribed" | "progress.transcribing" | "progress.transcript" | "progress.transcriptHint" | "progress.transcriptMarkdown" | "progress.transcriptUnavailable" | "progress.transcription" | "progress.tweet.reading" | "progress.tweetExtract" | "progress.tweetResult" | "progress.urlExtracted" | "progress.urlSummary" | "progress.videoTranscript" | "prompt.must.not.be.empty" | "providers" | "read.the.prompt.override.from.a.file" | "refresh.begin" | "refresh.candidate" | "refresh.cooldown" | "refresh.dayLimit" | "refresh.failure" | "refresh.fetching" | "refresh.filteredOld" | "refresh.filteredSmall" | "refresh.free.model.candidates.into.summarize.config.json" | "refresh.minuteLimit" | "refresh.progress" | "refresh.refinementFailure" | "refresh.refining" | "refresh.results" | "refresh.selected" | "refresh.selectedHeading" | "refresh.skip" | "refresh.starting" | "refresh.success" | "refresh.wroteConfig" | "render.is.not.supported.with.json.output" | "render.requires.a.tty.stdout" | "resolve.diarization.labels.to.real.names.using.timestamp.anchors.and.openai.context" | "run.ocr.on.extracted.slides.requires.tesseract" | "run.summarize.help.for.full.options" | "scan.update.working.openrouter.free.models" | "scene.detection.threshold.for.slide.changes.0.1.1.0" | "service.cliBuildMissing" | "service.cliEntrypointMissing" | "service.commandError" | "service.devRepoRequired" | "service.healthUnreachable" | "service.launchDomain" | "service.launchInstalled" | "service.launchMissing" | "service.launchRemains" | "service.launchRestarted" | "service.launchTrashed" | "service.logs" | "service.repoRootMissing" | "service.systemdInstalled" | "service.systemdMissing" | "service.systemdRemoved" | "service.systemdRequired" | "service.systemdRestarted" | "service.taskInstalled" | "service.taskMissing" | "service.taskPath" | "service.taskRemoved" | "service.taskRestarted" | "service.unsupportedPlatform" | "service.usernameMissing" | "show.configured.and.usable.model.providers" | "show.local.onnx.setup.and.transcription.fallback.order" | "show.slide.image.paths.instead.of.rendering.inline.images" | "shows.the.effective.model.configured.presets.and.configured.or.usable.providers" | "slides" | "slides.are.disabled.enable.slides.ocr.or.check.arguments" | "slides.are.only.supported.for.youtube.direct.video.urls.or.local.video.files" | "slides.directory" | "slides.exportCommand" | "slides.extractedCount" | "slides.image" | "slides.imageUnavailable" | "slides.inlineUnsupported" | "slides.missingFile" | "slides.missingPath" | "slides.ocr.extraction" | "slides.only.mode.with.inline.thumbnails" | "slides.position" | "slides.rendered" | "source.youtubeViews" | "speaker.labelled.transcript" | "speaker.profile.from.summarize.config.json.implies.identify.speakers" | "status.compatibleApi" | "status.config" | "status.deepgram" | "status.model" | "status.provider" | "status.unknownOption" | "stream.llm.output.auto.tty.only.on.off.note.streaming.is.disabled.in.json.mode" | "summarize.clipboard.content" | "summarize.slides.requires.a.url.or.local.video.file" | "summarize.web.pages.and.youtube.links.uses.direct.provider.api.keys" | "summarizing" | "summary.inline.slides" | "summary.length.short.medium.long.xl.xxl.or.s.m.l.or.a.character.limit.like.20000.20k.default.long.configurable.via.summarize.config.json.output.length" | "support.alternate" | "timeout.for.content.fetching.and.llm.request.30.seconds.30s.2m.5000ms" | "timeout.for.video.download.extraction.default.2m" | "tip.twitter" | "tip.uvx" | "to.enable.onnx.locally" | "transcriber.artifacts" | "transcriber.cache" | "transcriber.mode" | "transcriber.onnx" | "transcriber.order" | "transcriber.placeholders" | "transcriber.setup" | "transcriber.whisperBinary" | "transcriber.whisperModel" | "transcribing" | "transcript.as.formatted.markdown" | "unable.to.resolve.cache.path.missing.home" | "url.local.file.path.or.for.stdin.text.or.binary.to.summarize" | "use.a.cli.provider.claude.gemini.codex.agent.openclaw.opencode.copilot.agy.pi.equivalent.to.model.cli.provider.if.omitted.use.auto.selection.with.cli.enabled" | "use.either.prompt.or.prompt.file.not.both" | "use.the.openai.fast.service.tier.for.openai.models.sends.service.tier.priority" | "video.handling.auto.prefer.video.understanding.if.supported.transcript.understand" | "warning.detail" | "warning.lengthIgnored" | "warning.slidesFailed" | "website.file.content.format.md.text.for.websites.controls.the.extraction.format.for.files.controls.whether.we.try.to.preprocess.to.markdown.for.model.compatibility.default.text.default.in.extract.mode.for.urls.md" | "width.must.be.a.number.20" | "with.set.default.also.sets.model.to.free" | "writes.summarize.config.json.models.free.with.working.openrouter.free.candidates" | "x.fetching.via.syndication.api" | "x.syndication.failed.fallback" | "youtube.transcript.source.auto.web.no.auto.skip.auto.generated.captions.yt.dlp.apify" | "youtube.url.direct.video.url.or.local.video.file", values?: import("@steipete/summarize-core/localization").MessageValues) => string;
|
|
448
|
+
export declare function createCliTranslator(locale: CliLocale, styles?: MessageStyles): (key: "add.speaker.labels.to.youtube.or.direct.audio.video.auto.elevenlabs.then.openai.elevenlabs.openai" | "alias.for.slides.dir" | "alias.for.verbose" | "alias.for.verbose.and.defaults.metrics.to.detailed" | "base.output.dir.for.slides.default.slides" | "bypass.slide.cache.force.re.extract" | "bypass.summary.cache.llm.media.transcript.caches.stay.enabled" | "cache.cleared" | "cache.entries" | "cache.is.empty" | "cache.path" | "cache.size" | "cache.stats.must.be.used.alone" | "clear.cache.must.be.used.alone" | "cli.interface.language.auto.en.or.tr.turkish.default.en.also.summarize.locale" | "commands" | "config.preset" | "configure.local.onnx.transcription.parakeet.canary" | "configures.local.onnx.transcription.by.printing.the.required.env.vars" | "daemon.auth" | "daemon.command" | "daemon.configMissing" | "daemon.configPath" | "daemon.containerReady" | "daemon.cwd" | "daemon.foregroundToken" | "daemon.health" | "daemon.installHint" | "daemon.manualAutostart" | "daemon.nativePath" | "daemon.nativeStatus" | "daemon.nativeUnavailable" | "daemon.notInstalled" | "daemon.ready" | "daemon.restarted" | "daemon.service" | "daemon.serviceMissing" | "daemon.starting" | "daemon.uninstalled" | "daemon.windowsDetected" | "daemon.windowsInstallHint" | "daemon.windowsManual" | "daemon.windowsNativeHint" | "daemon.windowsNoAutostart" | "daemon.windowsRestart" | "daemon.windowsUninstalled" | "delete.the.cache.database.and.exit" | "diarize.a.local.recording" | "disable.ansi.colors.in.output" | "disable.configured.slide.extraction.for.this.run" | "disable.configured.slide.ocr.for.this.run" | "disable.media.download.cache.yt.dlp" | "embedded.youtube.handling.auto.off.prefer.transcript.or.combine.article.transcript" | "env.vars" | "error.archiveUnsupported" | "error.assetPromptMissing" | "error.assetResourcesMissing" | "error.attachBinary" | "error.attachUnsupported" | "error.attachmentMissingBytes" | "error.binaryMissingBytes" | "error.birdEmpty" | "error.birdJson" | "error.birdPayload" | "error.cause" | "error.cliOrder" | "error.cliOrderProvider" | "error.configBlockComment" | "error.configField" | "error.configLineComment" | "error.configModelsObject" | "error.configObject" | "error.daemonAuth" | "error.daemonPort" | "error.daemonToken" | "error.daemonUnconfigured" | "error.diarizationInput" | "error.diarizationKey" | "error.documentMissingBytes" | "error.elevenlabsKey" | "error.emptyMedia" | "error.executionState" | "error.extensionDevOnly" | "error.extensionId" | "error.extractBinary" | "error.extractLocalFiles" | "error.extractMissingBytes" | "error.extractStdin" | "error.extractUnsupported" | "error.extractUrlRequired" | "error.fastServiceTierConflict" | "error.githubModelsRetired" | "error.invalidMaxAge" | "error.invalidMinParams" | "error.invalidRuns" | "error.invalidSmart" | "error.localeRequired" | "error.markdownConflict" | "error.markdownConverter" | "error.markdownConverterSetup" | "error.markdownFileMode" | "error.markdownFixedModel" | "error.markdownFormat" | "error.markdownInput" | "error.markdownKey" | "error.markdownModel" | "error.maxOutputTokens" | "error.mediaAccess" | "error.mediaTooLarge" | "error.missingHome" | "error.missingOverride" | "error.modelAndCli" | "error.modelAttachment" | "error.modelIdMissing" | "error.modelProvider" | "error.namedModelInvalid" | "error.namedModelUnknown" | "error.noExtractableText" | "error.noFreeModels" | "error.noModel" | "error.noRecentFreeModels" | "error.noTwitterCli" | "error.noWorkingFreeModels" | "error.openaiDiarizationKey" | "error.openrouterKey" | "error.openrouterModels" | "error.optionMinimum" | "error.optionRange" | "error.pdfTooLarge" | "error.preprocessFailed" | "error.preprocessMissing" | "error.preprocessMissingBytes" | "error.preprocessMissingContent" | "error.promptEmpty" | "error.promptRead" | "error.remoteCliAttachment" | "error.renderMode" | "error.retries" | "error.sequence" | "error.slidesFailedDefault" | "error.stdinChunkType" | "error.stdinEmpty" | "error.stdinStreamMissing" | "error.stdinTooLarge" | "error.textTooLarge" | "error.timeout" | "error.transcriber" | "error.transcriberCommand" | "error.transcriberModel" | "error.transcriptionChecks" | "error.transcriptionFailed" | "error.transcriptionSetup" | "error.tweetClient" | "error.tweetRead" | "error.unknown" | "error.unsupportedOption" | "error.withTwitterTip" | "error.withUvxTip" | "error.xurlApi" | "error.xurlEmpty" | "error.xurlInput" | "error.xurlJson" | "error.xurlPayload" | "error.xurlTopLevel" | "examples" | "extract.slide.screenshots.from.a.youtube.url.direct.video.url.or.local.video.file" | "extract.slides.for.youtube.direct.video.urls.or.local.video.files.and.render.them.inline.inside.the.summary.narrative.when.supported.combine.with.extract.to.interleave.slides.in.the.full.transcript" | "extracted.markdown.prefers.firecrawl.when.configured" | "extracted.markdown.via.llm" | "extracted.plain.text" | "fetching.website" | "finish.cached" | "finish.calls" | "finish.compactTranscript" | "finish.extracted" | "finish.inputLength" | "finish.lengths" | "finish.services" | "finish.summary" | "finish.transcriptLength" | "finish.unknown" | "firecrawl.usage.off.auto.fallback.always.try.firecrawl.first" | "footer.markdown" | "footer.outcome" | "footer.slides" | "footer.transcript" | "footer.video" | "force.llm.summary.even.when.extracted.content.is.shorter.than.the.requested.length" | "full.transcript.inline.slides" | "hard.cap.for.llm.output.tokens.e.g.2000.2k.overrides.provider.defaults" | "help.annotation.choices" | "help.annotation.default" | "help.annotation.description" | "help.annotation.env" | "help.annotation.preset" | "help.chrome.native.host.macos.and.linux.windows.executable.packaging.pending" | "help.custom.ports.must.also.be.set.in.extension.options.runtime.daemon.port" | "help.dev.install.service.that.runs.src.cli.ts.via.node.repo.dev.mode" | "help.display" | "help.environment" | "help.examples" | "help.extension.id.dev.only.unpacked.chrome.extension.id.requires.dev" | "help.heading.arguments" | "help.heading.commands" | "help.heading.globalOptions" | "help.heading.options" | "help.heading.usage" | "help.install.install.upgrade.daemon.autostart.config.and.the.chrome.native.messaging.host" | "help.intro" | "help.json.output.structured.json" | "help.linux.systemd.user.service" | "help.macos.launchagent.launchd" | "help.model.name.parakeet.default.or.canary" | "help.option.deprecated.alias.for.extract" | "help.option.deprecated.alias.for.markdown.mode.use.extract.format.md.markdown.mode" | "help.port.n.default.8787" | "help.probe.probe.supported.model.list.endpoints.without.running.inference" | "help.restart.restart.the.daemon.autostart.service" | "help.run.run.the.daemon.in.the.foreground.used.by.autostart" | "help.status.check.daemon.service.native.host.and.daemon.health" | "help.support" | "help.theme" | "help.token.token.required.for.install" | "help.transcriberOrder" | "help.uninstall.remove.daemon.autostart.and.the.chrome.native.messaging.host" | "help.usage.summarize.daemon.command.options" | "help.usage.summarize.input.flags" | "help.usage.summarize.refresh.free.runs.2.smart.3.min.params.27b.max.age.days.180.set.default.verbose" | "help.usage.summarize.status.json.probe.verbose" | "help.usage.summarize.transcriber.setup.model.parakeet.canary.theme.name" | "help.verbose.include.executable.paths.endpoint.hosts.config.sources.and.preset.candidates" | "help.windows.scheduled.task" | "hint" | "identify.the.speaker.active.at.a.timestamp.repeat.for.multiple.speakers" | "include.timestamps.in.transcripts.when.available" | "inline.render.mode.auto.kitty.iterm.none" | "input.summary" | "install.ffmpeg.yt.dlp.for.slides.and.tesseract.for.slides.ocr" | "install.sherpa.onnx.from.upstream.binaries.or.build.homebrew.may.not.have.a.formula" | "keep.generic.diarization.labels.even.when.speaker.identification.is.configured" | "keep.raw.text.markdown.output.no.ansi.osc.rendering" | "llm.model.id.auto.name.cli.provider.model.xai.openai.nvidia.minimax.google.anthropic.zai.or.openrouter.author.slug.default.auto" | "llm.retry.attempts.after.timeouts.or.transient.api.failures.default.1" | "local.transcription.stage.auto.default.whisper.parakeet.canary.groq.still.runs.first.when.keyed" | "markdown.conversion.off.auto.llm.force.llm.readability.for.websites.converts.html.markdown.for.youtube.transcripts.llm.mode.formats.raw.transcripts.into.clean.markdown.with.headings.and.paragraphs" | "maximum.characters.to.print.in.extract.default.unlimited" | "maximum.slides.to.extract.default.6" | "metrics.cost" | "metrics.elapsed" | "metrics.output.off.on.detailed" | "metrics.tokens" | "minimum.seconds.between.slides.default.2" | "missing.providers.are.omitted.secrets.are.never.printed" | "model.auto" | "model.cli" | "model.codexFast" | "model.discovered" | "model.fast" | "model.free" | "next" | "notes" | "openai.reasoning.effort.none.low.medium.high.xhigh.aliases.off.min.mid" | "openai.service.tier.default.fast.priority.flex" | "options" | "output.json.payload.no.inline.rendering" | "output.language.auto.match.source.en.de.english.german.default.auto.configurable.in.summarize.config.json.via.output.language" | "output.structured.json.includes.prompt.metrics" | "override.terminal.width.for.markdown.rendering.default.auto.detect.max.120" | "override.the.summary.prompt.instruction.prefix.context.content.still.appended" | "persist.resolved.mappings.and.anchors.under.the.selected.speaker.profile" | "preprocess.inputs.for.model.compatibility.off.auto.fallback.always" | "presets" | "print.cache.stats.and.exit" | "print.detailed.progress.info.to.stderr" | "print.extracted.content.and.exit.urls.media.and.local.pdfs.stdin.is.unsupported" | "print.version.and.exit" | "progress.downloadVideo" | "progress.extractSlides" | "progress.extractionActive" | "progress.failedFallback" | "progress.fetchConnecting" | "progress.fetchStart" | "progress.fetchTransfer" | "progress.fetching" | "progress.fetchingPage" | "progress.firecrawlDone" | "progress.firecrawlStart" | "progress.input" | "progress.inputLabel" | "progress.mediaDownload" | "progress.mediaDownloadLabel" | "progress.mediaStage" | "progress.noContentFallback" | "progress.primaryFallback" | "progress.providers" | "progress.received" | "progress.scraping" | "progress.slides" | "progress.slidesCached" | "progress.slidesDone" | "progress.slidesExtracting" | "progress.slidesQueued" | "progress.summarizeVideo" | "progress.summaryActive" | "progress.transcribed" | "progress.transcribing" | "progress.transcript" | "progress.transcriptHint" | "progress.transcriptMarkdown" | "progress.transcriptUnavailable" | "progress.transcription" | "progress.tweet.reading" | "progress.tweetExtract" | "progress.tweetResult" | "progress.urlExtracted" | "progress.urlSummary" | "progress.videoTranscript" | "prompt.must.not.be.empty" | "providers" | "read.the.prompt.override.from.a.file" | "refresh.begin" | "refresh.candidate" | "refresh.cooldown" | "refresh.dayLimit" | "refresh.failure" | "refresh.fetching" | "refresh.filteredOld" | "refresh.filteredSmall" | "refresh.free.model.candidates.into.summarize.config.json" | "refresh.minuteLimit" | "refresh.progress" | "refresh.refinementFailure" | "refresh.refining" | "refresh.results" | "refresh.selected" | "refresh.selectedHeading" | "refresh.skip" | "refresh.starting" | "refresh.success" | "refresh.wroteConfig" | "render.is.not.supported.with.json.output" | "render.requires.a.tty.stdout" | "resolve.diarization.labels.to.real.names.using.timestamp.anchors.and.openai.context" | "run.ocr.on.extracted.slides.requires.tesseract" | "run.summarize.help.for.full.options" | "scan.update.working.openrouter.free.models" | "scene.detection.threshold.for.slide.changes.0.1.1.0" | "service.cliBuildMissing" | "service.cliEntrypointMissing" | "service.commandError" | "service.devRepoRequired" | "service.healthUnreachable" | "service.launchDomain" | "service.launchInstalled" | "service.launchMissing" | "service.launchRemains" | "service.launchRestarted" | "service.launchTrashed" | "service.logs" | "service.repoRootMissing" | "service.systemdInstalled" | "service.systemdMissing" | "service.systemdRemoved" | "service.systemdRequired" | "service.systemdRestarted" | "service.taskInstalled" | "service.taskMissing" | "service.taskPath" | "service.taskRemoved" | "service.taskRestarted" | "service.unsupportedPlatform" | "service.usernameMissing" | "show.configured.and.usable.model.providers" | "show.local.onnx.setup.and.transcription.fallback.order" | "show.slide.image.paths.instead.of.rendering.inline.images" | "shows.the.effective.model.configured.presets.and.configured.or.usable.providers" | "slides" | "slides.are.disabled.enable.slides.ocr.or.check.arguments" | "slides.are.only.supported.for.youtube.direct.video.urls.or.local.video.files" | "slides.directory" | "slides.exportCommand" | "slides.extractedCount" | "slides.image" | "slides.imageUnavailable" | "slides.inlineUnsupported" | "slides.missingFile" | "slides.missingPath" | "slides.ocr.extraction" | "slides.only.mode.with.inline.thumbnails" | "slides.position" | "slides.rendered" | "source.youtubeViews" | "speaker.labelled.transcript" | "speaker.profile.from.summarize.config.json.implies.identify.speakers" | "status.compatibleApi" | "status.config" | "status.deepgram" | "status.model" | "status.provider" | "status.unknownOption" | "stream.llm.output.auto.tty.only.on.off.note.streaming.is.disabled.in.json.mode" | "summarize.clipboard.content" | "summarize.slides.requires.a.url.or.local.video.file" | "summarize.web.pages.and.youtube.links.uses.direct.provider.api.keys" | "summarizing" | "summary.inline.slides" | "summary.length.short.medium.long.xl.xxl.or.s.m.l.or.a.character.limit.like.20000.20k.default.long.configurable.via.summarize.config.json.output.length" | "support.alternate" | "timeout.for.content.fetching.and.llm.request.30.seconds.30s.2m.5000ms" | "timeout.for.video.download.extraction.default.2m" | "tip.twitter" | "tip.uvx" | "to.enable.onnx.locally" | "transcriber.artifacts" | "transcriber.cache" | "transcriber.mode" | "transcriber.onnx" | "transcriber.order" | "transcriber.placeholders" | "transcriber.setup" | "transcriber.whisperBinary" | "transcriber.whisperModel" | "transcribing" | "transcript.as.formatted.markdown" | "unable.to.resolve.cache.path.missing.home" | "url.local.file.path.or.for.stdin.text.or.binary.to.summarize" | "use.a.cli.provider.claude.gemini.codex.agent.openclaw.opencode.copilot.agy.pi.equivalent.to.model.cli.provider.if.omitted.use.auto.selection.with.cli.enabled" | "use.either.prompt.or.prompt.file.not.both" | "use.the.openai.fast.service.tier.for.openai.models.sends.service.tier.priority" | "video.handling.auto.prefer.video.understanding.if.supported.transcript.understand" | "warning.detail" | "warning.lengthIgnored" | "warning.slidesFailed" | "website.file.content.format.md.text.for.websites.controls.the.extraction.format.for.files.controls.whether.we.try.to.preprocess.to.markdown.for.model.compatibility.default.text.default.in.extract.mode.for.urls.md" | "width.must.be.a.number.20" | "with.set.default.also.sets.model.to.free" | "writes.summarize.config.json.models.free.with.working.openrouter.free.candidates" | "x.fetching.via.syndication.api" | "x.syndication.failed.fallback" | "youtube.transcript.source.auto.web.no.auto.skip.auto.generated.captions.yt.dlp.apify" | "youtube.url.direct.video.url.or.local.video.file", values?: import("@steipete/summarize-core/localization").MessageValues) => string;
|
|
449
449
|
export declare function resolveCliLocale(raw: string | null | undefined): CliLocale;
|
|
450
450
|
export declare function resolveCliLocaleFromEnv(env: Record<string, string | undefined>, explicit?: string | null): CliLocale;
|
|
451
451
|
export declare function resolveCliLocaleFromArgs(argv: readonly string[], env: Record<string, string | undefined>): CliLocale;
|
|
@@ -9,7 +9,7 @@ export type MarkdownConverters = {
|
|
|
9
9
|
markdownRequested: boolean;
|
|
10
10
|
transcriptMarkdownRequested: boolean;
|
|
11
11
|
effectiveMarkdownMode: "off" | "auto" | "llm" | "readability";
|
|
12
|
-
markdownProvider: "none" | "xai" | "openai" | "google" | "anthropic" | "zai" | "nvidia" | "minimax" | "
|
|
12
|
+
markdownProvider: "none" | "xai" | "openai" | "google" | "anthropic" | "zai" | "nvidia" | "minimax" | "ollama";
|
|
13
13
|
markdownModel: MarkdownModel | null;
|
|
14
14
|
convertHtmlToMarkdown: ((args: {
|
|
15
15
|
url: string;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FALLBACK_VERSION = "0.
|
|
1
|
+
export declare const FALLBACK_VERSION = "0.24.0";
|
|
2
2
|
export declare function resolvePackageVersion(importMetaUrl?: string): string;
|
|
3
3
|
export declare function resolveGitSha(importMetaUrl?: string): string | null;
|
|
4
4
|
export declare function formatVersionLine(importMetaUrl?: string): string;
|
package/docs/chrome-extension.md
CHANGED
|
@@ -174,7 +174,7 @@ See `docs/media.md` for detection and transcript rules.
|
|
|
174
174
|
- Direct provider and credential/base URL (Options → Runtime). `auto` uses the configured provider, otherwise Gemini Nano; an explicit provider prefix overrides the selection.
|
|
175
175
|
- Media/slide runtime (Options → Runtime): Browser | Daemon.
|
|
176
176
|
- Daemon port (Options → Runtime; default `8787`): must match the installed daemon port.
|
|
177
|
-
- Model preset: `auto` | Gemini Nano | `free` | custom string (e.g. `openai/gpt-5-mini`, `openrouter
|
|
177
|
+
- Model preset: `auto` | Gemini Nano | `free` | custom string (e.g. `openai/gpt-5-mini`, `openrouter/...`). Explicit Gemini Nano summaries stay on-device in either connection mode.
|
|
178
178
|
- Length: `short|medium|long|xl|xxl` (or a character target like `20k`). Tooltips show target ranges + paragraph guidance (from `packages/core/src/prompts/summary-lengths.ts`).
|
|
179
179
|
- Language: `auto` (match source) or a tag like `en`, `de`, `pt-BR` (or free-form like “German”).
|
|
180
180
|
- Prompt override (advanced): custom instruction prefix (context + content still appended).
|
package/docs/commands/daemon.md
CHANGED
|
@@ -73,7 +73,7 @@ summarize daemon run --port 8787
|
|
|
73
73
|
: TCP port. Default `8787`. For a non-default port, set the same value in the extension under **Options → Runtime → Daemon → Port**. The native host reads `daemon.json` and rejects mismatched requests.
|
|
74
74
|
|
|
75
75
|
`--token <token>`
|
|
76
|
-
: Bearer token. Required for `install
|
|
76
|
+
: Bearer token. Required for `install`; also accepted by `run`, which adds it alongside the stored tokens for that run (required when no `daemon.json` exists). Stored in `~/.summarize/daemon.json` (mode `0600`).
|
|
77
77
|
|
|
78
78
|
`--dev`
|
|
79
79
|
: Install a service that runs `src/cli.ts` via Node's native TypeScript support from the current repo. Useful while hacking on the daemon — don't ship it to users.
|
|
@@ -85,14 +85,14 @@ summarize daemon run --port 8787
|
|
|
85
85
|
|
|
86
86
|
The daemon is documented in detail in [Chrome extension](../chrome-extension.md) and [Agent / daemon](../agent.md). At a glance:
|
|
87
87
|
|
|
88
|
-
- `POST /summarize
|
|
89
|
-
- `GET /
|
|
88
|
+
- `POST /v1/summarize` — start a run. Bearer-auth required. Returns `{ ok, id }` JSON (`coalesced: true` when it joins an in-flight run for the same request).
|
|
89
|
+
- `GET /v1/summarize/{id}/events` — SSE stream of progress events and the final result for a run.
|
|
90
90
|
- `GET /health` — health probe (used by `status`).
|
|
91
91
|
|
|
92
92
|
## Files
|
|
93
93
|
|
|
94
94
|
`~/.summarize/daemon.json`
|
|
95
|
-
:
|
|
95
|
+
: Bearer token(s), port, and an env snapshot captured at install (includes provider API keys). Mode `0600`.
|
|
96
96
|
|
|
97
97
|
`~/.summarize/daemon.log`
|
|
98
98
|
: Rolling log written by the autostart service.
|
package/docs/commands/index.md
CHANGED
|
@@ -17,6 +17,7 @@ summary: "Every summarize subcommand and flag, with examples."
|
|
|
17
17
|
- [`summarize transcriber`](transcriber.md) — set up local ONNX transcription (Parakeet, Canary). Prints the env vars you need.
|
|
18
18
|
- [`summarize daemon`](daemon.md) — manage the local HTTP daemon that the Chrome Side Panel talks to. Subcommands: `install`, `restart`, `status`, `uninstall`, `run`.
|
|
19
19
|
- [`summarize refresh-free`](refresh-free.md) — scan OpenRouter `:free` models, write working candidates to `~/.summarize/config.json`.
|
|
20
|
+
- `summarize help [topic]` — print help for the CLI or a subcommand (`slides`, `status`, `daemon`, `transcriber`, `refresh-free`).
|
|
20
21
|
|
|
21
22
|
## Output discipline
|
|
22
23
|
|
|
@@ -29,27 +30,27 @@ All subcommands keep the same output discipline — straight from gogcli's playb
|
|
|
29
30
|
|
|
30
31
|
## Global behavior
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
Only two flags apply to every subcommand; the rest are per-command:
|
|
33
34
|
|
|
34
|
-
| Flag |
|
|
35
|
-
| ----------------------------- |
|
|
36
|
-
| `--
|
|
37
|
-
| `--
|
|
38
|
-
| `--
|
|
39
|
-
| `--
|
|
40
|
-
| `--
|
|
41
|
-
| `--
|
|
42
|
-
| `--
|
|
43
|
-
|
|
|
44
|
-
| `--
|
|
35
|
+
| Flag | Where it works |
|
|
36
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
37
|
+
| `--locale <locale>` | Everywhere. Interface language: `auto` plus the shipped UI locales (`SUMMARIZE_LOCALE` too). |
|
|
38
|
+
| `--help` | Everywhere (`summarize help <topic>` prints topic help). |
|
|
39
|
+
| `-V`, `--version` | `summarize`, `summarize slides`. |
|
|
40
|
+
| `--json` | `summarize`, `summarize slides`, `summarize status`. |
|
|
41
|
+
| `--no-color` | `summarize`, `summarize status`, `summarize refresh-free`, `summarize transcriber`. |
|
|
42
|
+
| `--theme <name>` | `summarize`, `summarize slides`, `summarize transcriber` (`SUMMARIZE_THEME` env var also works). |
|
|
43
|
+
| `--verbose` / `--debug` | `summarize`, `summarize slides`, `summarize refresh-free`, `summarize daemon`, `summarize transcriber`. `status` accepts `--verbose` only. |
|
|
44
|
+
| `--metrics off\|on\|detailed` | `summarize` only. |
|
|
45
|
+
| `--timeout <duration>` | `summarize`, `summarize slides`. |
|
|
45
46
|
|
|
46
47
|
## Exit codes
|
|
47
48
|
|
|
48
|
-
| Code | Meaning
|
|
49
|
-
| ----- |
|
|
50
|
-
| `0` | Success.
|
|
51
|
-
| `1` |
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
49
|
+
| Code | Meaning |
|
|
50
|
+
| ----- | --------------------------------------------------------------------------- |
|
|
51
|
+
| `0` | Success. |
|
|
52
|
+
| `1` | Any failure — usage errors, extraction, model, network, and timeouts alike. |
|
|
53
|
+
| `130` | Interrupted by SIGINT (Ctrl+C). |
|
|
54
|
+
| `143` | Terminated by SIGTERM. |
|
|
54
55
|
|
|
55
|
-
`summarize daemon` and `summarize transcriber`
|
|
56
|
+
`summarize daemon` and `summarize transcriber` still exit `1` when the underlying service install (launchd, systemd, schtasks) fails; the platform's own error text is included in the message — check `--verbose` output for the raw error.
|
|
@@ -20,7 +20,7 @@ Needs `OPENROUTER_API_KEY` in the environment.
|
|
|
20
20
|
|
|
21
21
|
1. Pulls the OpenRouter model catalog.
|
|
22
22
|
2. Filters to models tagged `:free` that meet `--min-params` and `--max-age-days`.
|
|
23
|
-
3.
|
|
23
|
+
3. Benchmarks every candidate once against a sanity prompt, then probes the shortlisted candidates `--runs` more times; ranks by `--smart` heuristics (latency, completion length, refusal rate).
|
|
24
24
|
4. Writes the survivors to `models.free` in `~/.summarize/config.json`.
|
|
25
25
|
5. With `--set-default`, also sets top-level `model` to `free`.
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ After the run, `summarize "https://example.com" --model free` rotates through th
|
|
|
29
29
|
## Flags
|
|
30
30
|
|
|
31
31
|
`--runs <n>`
|
|
32
|
-
:
|
|
32
|
+
: Extra refinement probes per shortlisted candidate after the initial benchmark run (`1 + --runs` total). `0` skips refinement. Default `2`.
|
|
33
33
|
|
|
34
34
|
`--smart <n>`
|
|
35
35
|
: How many top candidates to keep. Default `3`.
|
|
@@ -43,7 +43,7 @@ After the run, `summarize "https://example.com" --model free` rotates through th
|
|
|
43
43
|
`--set-default`
|
|
44
44
|
: Also set `model: "free"` at the top level of `~/.summarize/config.json`.
|
|
45
45
|
|
|
46
|
-
`--verbose`
|
|
46
|
+
`--verbose` / `--debug`
|
|
47
47
|
: Per-candidate progress, timings, and rejection reasons on stderr.
|
|
48
48
|
|
|
49
49
|
## Examples
|
|
@@ -74,7 +74,7 @@ summarize refresh-free --runs 3 --smart 5 --verbose
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
A short summary of survivors and rejected candidates is printed on stdout.
|
|
77
|
+
A short summary of survivors and rejected candidates is printed on stderr. The only stdout line is the localized config-write confirmation, e.g. `Wrote /Users/you/.summarize/config.json (models.free)` — a sentence containing the path, not a bare path value.
|
|
78
78
|
|
|
79
79
|
Color follows the rest of the CLI: `FORCE_COLOR=0` disables it, while a nonzero `FORCE_COLOR` takes precedence over `NO_COLOR`. Without an override, color requires a capable terminal.
|
|
80
80
|
|
|
@@ -41,7 +41,7 @@ If `[input]` is omitted, summarize prints concise help and exits.
|
|
|
41
41
|
: Extraction can still use configured remote transcription, OCR, or Markdown providers for media/PDF inputs.
|
|
42
42
|
|
|
43
43
|
`--format <format>`
|
|
44
|
-
: `md` or `text`. Controls website extraction format and whether files are preprocessed to Markdown for model compatibility. Default: `text`. Default in `--extract` mode for URLs: `md`.
|
|
44
|
+
: `md`/`markdown` or `text`/`txt`/`plain`. Controls website extraction format and whether files are preprocessed to Markdown for model compatibility. Default: `text`. Default in `--extract` mode for URLs: `md`.
|
|
45
45
|
|
|
46
46
|
`--firecrawl <mode>`
|
|
47
47
|
: `off`, `auto`, `always`. `auto` falls back to Firecrawl when local extraction looks blocked or thin. Needs `FIRECRAWL_API_KEY`.
|
|
@@ -51,7 +51,7 @@ If `[input]` is omitted, summarize prints concise help and exits.
|
|
|
51
51
|
: Image-only PDFs can retry through OpenAI vision OCR when `OPENAI_API_KEY` is set. Set `MARKITDOWN_OCR_MODEL` to choose the OCR model, or `MARKITDOWN_OCR_DPI` to tune rendered page size.
|
|
52
52
|
|
|
53
53
|
`--markdown-mode <mode>`
|
|
54
|
-
: `off`, `auto`, `llm`, `readability`. For websites: HTML → Markdown strategy. For YouTube/transcripts: `llm` formats raw transcripts into clean Markdown with headings.
|
|
54
|
+
: `off`, `auto`, `llm`, `readability`. For websites: HTML → Markdown strategy. For YouTube/transcripts: `llm` formats raw transcripts into clean Markdown with headings. The `--markdown` alias is hidden and deprecated.
|
|
55
55
|
|
|
56
56
|
`--max-extract-characters <count>`
|
|
57
57
|
: Cap printed characters in `--extract` mode. Default: unlimited.
|
|
@@ -67,6 +67,9 @@ If `[input]` is omitted, summarize prints concise help and exits.
|
|
|
67
67
|
`--video-mode <mode>`
|
|
68
68
|
: `auto`, `transcript`, `understand`. `understand` prefers vision/video understanding when supported.
|
|
69
69
|
|
|
70
|
+
`--embedded-video <mode>`
|
|
71
|
+
: `auto`, `off`, `prefer`, `both`. Controls embedded YouTube handling on regular web pages: `off` keeps the article text only, `prefer` favors the video transcript, `both` combines labeled article + transcript sections. Default `auto` — uses only high-confidence primary embeds. See [Website mode](../website.md).
|
|
72
|
+
|
|
70
73
|
`--timestamps`
|
|
71
74
|
: Include timestamps in transcripts when available.
|
|
72
75
|
|
|
@@ -130,13 +133,13 @@ If `[input]` is omitted, summarize prints concise help and exits.
|
|
|
130
133
|
### Models
|
|
131
134
|
|
|
132
135
|
`--model <model>`
|
|
133
|
-
: Model id. `auto`, `<config-preset>`, `cli/<provider>/<model>`, `xai/...`, `openai/...`, `nvidia/...`, `minimax/...`, `google/...`, `anthropic/...`, `zai/...`, `
|
|
136
|
+
: Model id. `auto`, `<config-preset>`, `cli/<provider>/<model>`, `xai/...`, `openai/...`, `nvidia/...`, `minimax/...`, `google/...`, `anthropic/...`, `zai/...`, `ollama/<model>` (local Ollama), `openclaw/<model>` (shorthand for `cli/openclaw/<model>`), or `openrouter/<author>/<slug>`. Default `auto`. See [LLM overview](../llm.md).
|
|
134
137
|
|
|
135
138
|
`--cli [provider]`
|
|
136
139
|
: Use a logged-in CLI provider: `claude`, `gemini`, `codex`, `agent`, `openclaw`, `opencode`, `copilot`, `agy`, `pi`. Equivalent to `--model cli/<provider>`. Without a value: enable CLI providers in auto-selection.
|
|
137
140
|
|
|
138
141
|
`--thinking <effort>`
|
|
139
|
-
:
|
|
142
|
+
: Reasoning effort. `none`, `low`, `medium`, `high`, `xhigh`. Aliases: `off`, `min`, `med`, `mid`, `x-high`, `extra-high`. Affects reasoning-capable models on the dispatched provider (OpenAI, Anthropic Claude 4+, pi CLI).
|
|
140
143
|
|
|
141
144
|
`--service-tier <tier>`
|
|
142
145
|
: OpenAI service tier. `default`, `fast`, `priority`, `flex`. Maps to `service_tier` on the request.
|
|
@@ -148,7 +151,7 @@ If `[input]` is omitted, summarize prints concise help and exits.
|
|
|
148
151
|
: Hard cap for LLM output tokens. Accepts `2000`, `2k`. Overrides provider defaults.
|
|
149
152
|
|
|
150
153
|
`--retries <count>`
|
|
151
|
-
: LLM retry attempts after timeouts or transient API failures. Default `1`.
|
|
154
|
+
: LLM retry attempts after timeouts or transient API failures. `0`–`5`. Default `1`.
|
|
152
155
|
|
|
153
156
|
### Output
|
|
154
157
|
|
|
@@ -198,7 +201,7 @@ See [Cache internals](../cache.md) for what's cached and where.
|
|
|
198
201
|
: `off`, `on`, `detailed`. Default `on`. Adds a compact second-line breakdown on stderr when `detailed`.
|
|
199
202
|
|
|
200
203
|
`--timeout <duration>`
|
|
201
|
-
:
|
|
204
|
+
: Per-operation timeout for content fetching and LLM requests (not an overall wall-clock deadline). `30`, `30s`, `2m`, `5000ms`. Default `2m`.
|
|
202
205
|
|
|
203
206
|
`-V`, `--version`
|
|
204
207
|
: Print version and exit.
|
|
@@ -236,9 +239,6 @@ summarize "https://example.com" \
|
|
|
236
239
|
summarize "https://example.com" \
|
|
237
240
|
--model openai/gpt-5.5 --fast --thinking medium
|
|
238
241
|
|
|
239
|
-
# GitHub Models via GITHUB_TOKEN.
|
|
240
|
-
summarize "https://example.com" --model github-copilot/gpt-5.4
|
|
241
|
-
|
|
242
242
|
# Config preset (alias defined in ~/.summarize/config.json).
|
|
243
243
|
summarize "https://example.com" --model mymodel
|
|
244
244
|
|
package/docs/config.md
CHANGED
package/docs/install.md
CHANGED
|
@@ -109,7 +109,6 @@ export XAI_API_KEY=xai-...
|
|
|
109
109
|
export NVIDIA_API_KEY=nvapi-...
|
|
110
110
|
export OPENROUTER_API_KEY=or-...
|
|
111
111
|
export Z_AI_API_KEY=...
|
|
112
|
-
export GITHUB_TOKEN=ghp-... # for github-copilot/* models
|
|
113
112
|
```
|
|
114
113
|
|
|
115
114
|
Full list and routing details: [LLM overview](llm.md). For free OpenRouter models, run `summarize refresh-free` once after setting `OPENROUTER_API_KEY`.
|
package/docs/llm.md
CHANGED
|
@@ -32,7 +32,6 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
|
|
|
32
32
|
- `MINIMAX_API_KEY` (required for `minimax/...` models)
|
|
33
33
|
- `MINIMAX_BASE_URL` (optional; override MiniMax OpenAI-compatible API endpoint; default: `https://api.minimax.io/v1`)
|
|
34
34
|
- `OPENROUTER_API_KEY` (optional; required for `openrouter/...` models; also used when `OPENAI_BASE_URL` points to OpenRouter)
|
|
35
|
-
- `GITHUB_TOKEN` / `GH_TOKEN` (required for `github-copilot/...` models via GitHub Models)
|
|
36
35
|
- `Z_AI_API_KEY` (required for `zai/...` models; supports `ZAI_API_KEY` alias)
|
|
37
36
|
- `Z_AI_BASE_URL` (optional; override default Z.AI base URL)
|
|
38
37
|
- `OLLAMA_BASE_URL` (optional; override default Ollama OpenAI-compatible base URL — default `http://localhost:11434/v1`. Set this to enable Ollama auto-discovery in the extension model picker.)
|
|
@@ -64,7 +63,6 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
|
|
|
64
63
|
- `google/gemini-3-flash`
|
|
65
64
|
- `openai/gpt-5-mini`
|
|
66
65
|
- `openai/gpt-5-nano`
|
|
67
|
-
- `github-copilot/gpt-5.4`
|
|
68
66
|
- `nvidia/z-ai/glm5`
|
|
69
67
|
- `minimax/MiniMax-M3`
|
|
70
68
|
- `zai/glm-4.7`
|
|
@@ -94,7 +92,7 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
|
|
|
94
92
|
- Only relevant for video inputs / video-only pages.
|
|
95
93
|
- `--length short|medium|long|xl|xxl|<chars>`
|
|
96
94
|
- This is _soft guidance_ to the model (no hard truncation).
|
|
97
|
-
- Minimum numeric value:
|
|
95
|
+
- Minimum numeric value: 10 chars.
|
|
98
96
|
- Built-in default: `long`.
|
|
99
97
|
- Config default: `output.length` in `~/.summarize/config.json`.
|
|
100
98
|
- Output format is Markdown. Default URL summaries separate paragraphs, headings, and lists with blank lines; multi-point material uses descriptive headings or short bullets when they improve scanability.
|
|
@@ -144,23 +142,6 @@ Use `--model ollama/<model>` (e.g. `ollama/qwen3:14b`, `ollama/gemma3:12b`) to t
|
|
|
144
142
|
[Ollama](https://ollama.com) instance over its OpenAI-compatible endpoint. See `docs/ollama.md`
|
|
145
143
|
for full setup, model recommendations, and limitations.
|
|
146
144
|
|
|
147
|
-
## GitHub Copilot / GitHub Models
|
|
148
|
-
|
|
149
|
-
Use `--model github-copilot/<model>` for explicit GitHub-hosted model calls.
|
|
150
|
-
|
|
151
|
-
- Examples:
|
|
152
|
-
- `github-copilot/gpt-5.4`
|
|
153
|
-
- `github-copilot/gpt-5.4-mini`
|
|
154
|
-
- `github-copilot/gpt-5.4-nano`
|
|
155
|
-
- `github-copilot/gpt-5-mini`
|
|
156
|
-
- `github-copilot/gpt-5-nano`
|
|
157
|
-
- `github-copilot/anthropic/claude-haiku-4.5`
|
|
158
|
-
- Auth: `GITHUB_TOKEN` or `GH_TOKEN`
|
|
159
|
-
- Transport: GitHub Models chat completions (`https://models.github.ai/inference`)
|
|
160
|
-
- Notes:
|
|
161
|
-
- bare shorthand like `github-copilot/gpt-5.4` or `github-copilot/claude-opus-4.6` auto-expands to the provider-qualified backend id
|
|
162
|
-
- document attachments stay unsupported in this mode
|
|
163
|
-
|
|
164
145
|
## Input limits
|
|
165
146
|
|
|
166
147
|
- Text prompts are checked against the model’s max input tokens (LiteLLM catalog) using a GPT tokenizer.
|
package/docs/openai.md
CHANGED
|
@@ -12,6 +12,28 @@ Use OpenAI directly by choosing an `openai/...` model id.
|
|
|
12
12
|
|
|
13
13
|
For the full model/provider matrix, see `docs/llm.md`.
|
|
14
14
|
|
|
15
|
+
## GPT-6
|
|
16
|
+
|
|
17
|
+
Use the documented model ids: `openai/gpt-6-astra`, `openai/gpt-6-sol`, or `openai/gpt-6-luna`.
|
|
18
|
+
Summarize uses the Responses API by default for direct OpenAI text and image requests, including streaming, and for PDF inputs. `OPENAI_USE_CHAT_COMPLETIONS=1` still selects Chat Completions for text and images.
|
|
19
|
+
Reasoning requests omit `temperature`, which GPT-6 rejects. Sol and Luna preserve temperature when explicitly using `--thinking none`; Astra requires reasoning.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
summarize https://summarize.sh/ --model openai/gpt-6-astra --thinking medium --fast
|
|
23
|
+
summarize https://summarize.sh/ --model openai/gpt-6-sol --thinking medium
|
|
24
|
+
summarize https://summarize.sh/ --model openai/gpt-6-luna --thinking low
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
These explicit model ids do not change the default model or existing presets.
|
|
28
|
+
The model picker and built-in pricing catalog include all three models. Standard input/output
|
|
29
|
+
prices per million tokens are $10/$50 for Astra, $2/$10 for Sol, and $0.10/$0.50 for Luna.
|
|
30
|
+
Cost estimates use these standard rates; they do not include cache discounts, cache writes,
|
|
31
|
+
fast/flex service tiers, or long-context premiums. See [OpenAI pricing](https://developers.openai.com/api/docs/pricing).
|
|
32
|
+
An unsupported `--thinking none` request for Astra fails locally before sending an API request.
|
|
33
|
+
See OpenAI's [GPT-6 guide](https://developers.openai.com/api/docs/guides/latest-model) and model pages for [Astra](https://developers.openai.com/api/docs/models/gpt-6-astra), [Sol](https://developers.openai.com/api/docs/models/gpt-6-sol), and [Luna](https://developers.openai.com/api/docs/models/gpt-6-luna).
|
|
34
|
+
|
|
35
|
+
## Fast mode
|
|
36
|
+
|
|
15
37
|
Fast mode is a service tier, not a model id. Prefer flags:
|
|
16
38
|
|
|
17
39
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steipete/summarize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Link → clean text → summary.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"summarize": "./dist/cli.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@earendil-works/pi-ai": "^0.85.1",
|
|
37
|
-
"@steipete/summarize-core": "0.
|
|
37
|
+
"@steipete/summarize-core": "0.24.0",
|
|
38
38
|
"bpe-lite": "^0.5.2",
|
|
39
39
|
"commander": "^15.0.0",
|
|
40
40
|
"file-type": "^22.1.1",
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { GITHUB_MODELS_BASE_URL } from "./provider-registry.js";
|
|
2
|
-
export const GITHUB_MODELS_API_VERSION = "2026-03-10";
|
|
3
|
-
const GITHUB_COPILOT_PROVIDER_PATTERNS = {
|
|
4
|
-
openai: [/^gpt-/i, /^chatgpt-/i, /^o\d(?=$|[-.])/i],
|
|
5
|
-
anthropic: [/^claude-/i, /^(opus|sonnet|haiku)-/i],
|
|
6
|
-
google: [/^gemini-/i],
|
|
7
|
-
xai: [/^grok-/i],
|
|
8
|
-
};
|
|
9
|
-
export function resolveGitHubModelsApiKey(env) {
|
|
10
|
-
const githubToken = env.GITHUB_TOKEN?.trim();
|
|
11
|
-
if (githubToken)
|
|
12
|
-
return githubToken;
|
|
13
|
-
const ghToken = env.GH_TOKEN?.trim();
|
|
14
|
-
return ghToken || null;
|
|
15
|
-
}
|
|
16
|
-
function inferGitHubCopilotProvider(model) {
|
|
17
|
-
for (const [provider, patterns] of Object.entries(GITHUB_COPILOT_PROVIDER_PATTERNS)) {
|
|
18
|
-
if (patterns.some((pattern) => pattern.test(model))) {
|
|
19
|
-
return provider;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
export function resolveGitHubCopilotBackendModelId(model) {
|
|
25
|
-
const trimmed = model.trim();
|
|
26
|
-
if (!trimmed)
|
|
27
|
-
return trimmed;
|
|
28
|
-
if (trimmed.includes("/"))
|
|
29
|
-
return trimmed;
|
|
30
|
-
const provider = inferGitHubCopilotProvider(trimmed);
|
|
31
|
-
if (provider === "anthropic" && /^(opus|sonnet|haiku)-/i.test(trimmed)) {
|
|
32
|
-
return `anthropic/claude-${trimmed}`;
|
|
33
|
-
}
|
|
34
|
-
if (provider)
|
|
35
|
-
return `${provider}/${trimmed}`;
|
|
36
|
-
return trimmed;
|
|
37
|
-
}
|
|
38
|
-
export function buildGitHubModelsHeaders(existing) {
|
|
39
|
-
return {
|
|
40
|
-
...(existing ?? {}),
|
|
41
|
-
Accept: "application/vnd.github+json",
|
|
42
|
-
"X-GitHub-Api-Version": GITHUB_MODELS_API_VERSION,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export function resolveGitHubModelsCompatFallbackModelId(modelId) {
|
|
46
|
-
const normalized = modelId.trim().toLowerCase();
|
|
47
|
-
if (!normalized.startsWith("openai/gpt-5") || normalized === "openai/gpt-5-chat") {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return "openai/gpt-5-chat";
|
|
51
|
-
}
|
|
52
|
-
export function shouldRetryGitHubModelsCompat(error) {
|
|
53
|
-
const statusCode = typeof error?.statusCode === "number"
|
|
54
|
-
? Number(error.statusCode)
|
|
55
|
-
: null;
|
|
56
|
-
if (statusCode === 400 || statusCode === 404 || statusCode === 500 || statusCode === 502) {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
const message = error instanceof Error
|
|
60
|
-
? error.message
|
|
61
|
-
: typeof error?.errorMessage === "string"
|
|
62
|
-
? String(error.errorMessage)
|
|
63
|
-
: typeof error === "string"
|
|
64
|
-
? error
|
|
65
|
-
: "";
|
|
66
|
-
return /\b(?:400|404|500|502)\b/u.test(message);
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=github-models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-models.js","sourceRoot":"","sources":["../../../src/llm/github-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAG,YAAY,CAAC;AAEtD,MAAM,gCAAgC,GAAG;IACvC,MAAM,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,iBAAiB,CAAC;IACnD,SAAS,EAAE,CAAC,WAAW,EAAE,wBAAwB,CAAC;IAClD,MAAM,EAAE,CAAC,WAAW,CAAC;IACrB,GAAG,EAAE,CAAC,SAAS,CAAC;CACR,CAAC;AAEX,MAAM,UAAU,yBAAyB,CAAC,GAAuC;IAC/E,MAAM,WAAW,GAAG,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAI,WAAW;QAAE,OAAO,WAAW,CAAC;IACpC,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrC,OAAO,OAAO,IAAI,IAAI,CAAC;AACzB,CAAC;AAED,SAAS,0BAA0B,CACjC,KAAa;IAEb,KAAK,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gCAAgC,CAAC,EAAE,CAAC;QACpF,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YACpD,OAAO,QAAqD,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,KAAa;IAC9D,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO;QAAE,OAAO,OAAO,CAAC;IAC7B,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC;IAC1C,MAAM,QAAQ,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACrD,IAAI,QAAQ,KAAK,WAAW,IAAI,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACvE,OAAO,oBAAoB,OAAO,EAAE,CAAC;IACvC,CAAC;IACD,IAAI,QAAQ;QAAE,OAAO,GAAG,QAAQ,IAAI,OAAO,EAAE,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,QAAiC;IAEjC,OAAO;QACL,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;QACnB,MAAM,EAAE,6BAA6B;QACrC,sBAAsB,EAAE,yBAAyB;KAClD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,OAAe;IACtE,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAChD,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,UAAU,KAAK,mBAAmB,EAAE,CAAC;QACjF,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAAc;IAC1D,MAAM,UAAU,GACd,OAAQ,KAAkC,EAAE,UAAU,KAAK,QAAQ;QACjE,CAAC,CAAC,MAAM,CAAE,KAAkC,CAAC,UAAU,CAAC;QACxD,CAAC,CAAC,IAAI,CAAC;IACX,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,GAAG,EAAE,CAAC;QACzF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,OAAO,GACX,KAAK,YAAY,KAAK;QACpB,CAAC,CAAC,KAAK,CAAC,OAAO;QACf,CAAC,CAAC,OAAQ,KAAoC,EAAE,YAAY,KAAK,QAAQ;YACvE,CAAC,CAAC,MAAM,CAAE,KAAkC,CAAC,YAAY,CAAC;YAC1D,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ;gBACzB,CAAC,CAAC,KAAK;gBACP,CAAC,CAAC,EAAE,CAAC;IACb,OAAO,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { resolveGitHubModelsCompatFallbackModelId, shouldRetryGitHubModelsCompat, } from "../../github-models.js";
|
|
2
|
-
import { completeOpenAiChatText } from "./chat-completions.js";
|
|
3
|
-
export async function completeGitHubModelsText(request) {
|
|
4
|
-
try {
|
|
5
|
-
return await completeOpenAiChatText(request);
|
|
6
|
-
}
|
|
7
|
-
catch (error) {
|
|
8
|
-
const fallbackModelId = resolveGitHubModelsCompatFallbackModelId(request.modelId);
|
|
9
|
-
if (!fallbackModelId || !shouldRetryGitHubModelsCompat(error)) {
|
|
10
|
-
throw error;
|
|
11
|
-
}
|
|
12
|
-
return completeOpenAiChatText({
|
|
13
|
-
...request,
|
|
14
|
-
modelId: fallbackModelId,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=github-models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-models.js","sourceRoot":"","sources":["../../../../../src/llm/providers/openai/github-models.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wCAAwC,EACxC,6BAA6B,GAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,OAA0B;IAE1B,IAAI,CAAC;QACH,OAAO,MAAM,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,eAAe,GAAG,wCAAwC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAClF,IAAI,CAAC,eAAe,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9D,MAAM,KAAK,CAAC;QACd,CAAC;QACD,OAAO,sBAAsB,CAAC;YAC5B,GAAG,OAAO;YACV,OAAO,EAAE,eAAe;SACzB,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { GITHUB_MODELS_BASE_URL } from "./provider-registry.js";
|
|
2
|
-
export declare const GITHUB_MODELS_API_VERSION = "2026-03-10";
|
|
3
|
-
export declare function resolveGitHubModelsApiKey(env: Record<string, string | undefined>): string | null;
|
|
4
|
-
export declare function resolveGitHubCopilotBackendModelId(model: string): string;
|
|
5
|
-
export declare function buildGitHubModelsHeaders(existing?: Record<string, string>): Record<string, string>;
|
|
6
|
-
export declare function resolveGitHubModelsCompatFallbackModelId(modelId: string): string | null;
|
|
7
|
-
export declare function shouldRetryGitHubModelsCompat(error: unknown): boolean;
|