@steipete/summarize 0.23.0 → 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.
Files changed (103) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/completions/summarize.fish +14 -4
  3. package/dist/esm/application/metrics.js +3 -9
  4. package/dist/esm/application/metrics.js.map +1 -1
  5. package/dist/esm/application/provider-runtime.js +0 -2
  6. package/dist/esm/application/provider-runtime.js.map +1 -1
  7. package/dist/esm/daemon/agent-model.js +5 -10
  8. package/dist/esm/daemon/agent-model.js.map +1 -1
  9. package/dist/esm/daemon/agent.js +19 -54
  10. package/dist/esm/daemon/agent.js.map +1 -1
  11. package/dist/esm/daemon/models.js +6 -0
  12. package/dist/esm/daemon/models.js.map +1 -1
  13. package/dist/esm/daemon/server-summarize-request.js +17 -8
  14. package/dist/esm/daemon/server-summarize-request.js.map +1 -1
  15. package/dist/esm/engine/streaming.js +0 -1
  16. package/dist/esm/engine/streaming.js.map +1 -1
  17. package/dist/esm/llm/generate-text-shared.js +10 -3
  18. package/dist/esm/llm/generate-text-shared.js.map +1 -1
  19. package/dist/esm/llm/generate-text-stream.js +9 -2
  20. package/dist/esm/llm/generate-text-stream.js.map +1 -1
  21. package/dist/esm/llm/generate-text.js +3 -0
  22. package/dist/esm/llm/generate-text.js.map +1 -1
  23. package/dist/esm/llm/model-id.js +1 -6
  24. package/dist/esm/llm/model-id.js.map +1 -1
  25. package/dist/esm/llm/openai-catalog.js +29 -0
  26. package/dist/esm/llm/openai-catalog.js.map +1 -0
  27. package/dist/esm/llm/provider-profile.js +2 -10
  28. package/dist/esm/llm/provider-profile.js.map +1 -1
  29. package/dist/esm/llm/provider-registry.js +0 -10
  30. package/dist/esm/llm/provider-registry.js.map +1 -1
  31. package/dist/esm/llm/providers/openai/chat-completions.js +14 -3
  32. package/dist/esm/llm/providers/openai/chat-completions.js.map +1 -1
  33. package/dist/esm/llm/providers/openai/request-options.js +12 -1
  34. package/dist/esm/llm/providers/openai/request-options.js.map +1 -1
  35. package/dist/esm/llm/providers/openai/responses.js +5 -3
  36. package/dist/esm/llm/providers/openai/responses.js.map +1 -1
  37. package/dist/esm/llm/providers/openai/sse.js +7 -1
  38. package/dist/esm/llm/providers/openai/sse.js.map +1 -1
  39. package/dist/esm/llm/providers/openai/transport.js +2 -22
  40. package/dist/esm/llm/providers/openai/transport.js.map +1 -1
  41. package/dist/esm/llm/providers/openai.js +5 -17
  42. package/dist/esm/llm/providers/openai.js.map +1 -1
  43. package/dist/esm/llm/providers/shared.js +4 -0
  44. package/dist/esm/llm/providers/shared.js.map +1 -1
  45. package/dist/esm/llm/usage.js +4 -6
  46. package/dist/esm/llm/usage.js.map +1 -1
  47. package/dist/esm/localization/de.json +3 -3
  48. package/dist/esm/localization/en.json +3 -3
  49. package/dist/esm/localization/es.json +3 -3
  50. package/dist/esm/localization/fr.json +3 -3
  51. package/dist/esm/localization/it.json +3 -3
  52. package/dist/esm/localization/ja.json +3 -3
  53. package/dist/esm/localization/ko.json +3 -3
  54. package/dist/esm/localization/nl.json +3 -3
  55. package/dist/esm/localization/pl.json +3 -3
  56. package/dist/esm/localization/pt-BR.json +3 -3
  57. package/dist/esm/localization/ru.json +3 -3
  58. package/dist/esm/localization/tr.json +3 -3
  59. package/dist/esm/localization/zh-Hans.json +3 -3
  60. package/dist/esm/localization/zh-Hant.json +3 -3
  61. package/dist/esm/pricing/litellm.js +12 -0
  62. package/dist/esm/pricing/litellm.js.map +1 -1
  63. package/dist/esm/run/flows/url/markdown.js +2 -4
  64. package/dist/esm/run/flows/url/markdown.js.map +1 -1
  65. package/dist/esm/run/help.js +1 -2
  66. package/dist/esm/run/help.js.map +1 -1
  67. package/dist/esm/run/runner-setup.js +5 -6
  68. package/dist/esm/run/runner-setup.js.map +1 -1
  69. package/dist/esm/run/status-cli.js +0 -6
  70. package/dist/esm/run/status-cli.js.map +1 -1
  71. package/dist/esm/slides/settings.js +21 -19
  72. package/dist/esm/slides/settings.js.map +1 -1
  73. package/dist/esm/version.js +1 -1
  74. package/dist/types/daemon/agent-model.d.ts +1 -2
  75. package/dist/types/engine/model-meta.d.ts +1 -1
  76. package/dist/types/engine/types.d.ts +1 -1
  77. package/dist/types/llm/generate-text-shared.d.ts +3 -1
  78. package/dist/types/llm/openai-catalog.d.ts +18 -0
  79. package/dist/types/llm/provider-profile.d.ts +1 -1
  80. package/dist/types/llm/provider-registry.d.ts +0 -10
  81. package/dist/types/llm/providers/openai/request-options.d.ts +2 -0
  82. package/dist/types/llm/providers/openai/sse.d.ts +2 -1
  83. package/dist/types/llm/providers/openai/transport.d.ts +1 -2
  84. package/dist/types/locale.d.ts +2 -2
  85. package/dist/types/run/flows/url/markdown.d.ts +1 -1
  86. package/dist/types/run/runner-setup.d.ts +1 -1
  87. package/dist/types/version.d.ts +1 -1
  88. package/docs/chrome-extension.md +1 -1
  89. package/docs/commands/daemon.md +4 -4
  90. package/docs/commands/index.md +21 -18
  91. package/docs/commands/refresh-free.md +4 -4
  92. package/docs/commands/summarize.md +15 -12
  93. package/docs/config.md +2 -0
  94. package/docs/install.md +0 -1
  95. package/docs/llm.md +1 -20
  96. package/docs/openai.md +22 -0
  97. package/package.json +6 -6
  98. package/dist/esm/llm/github-models.js +0 -68
  99. package/dist/esm/llm/github-models.js.map +0 -1
  100. package/dist/esm/llm/providers/openai/github-models.js +0 -18
  101. package/dist/esm/llm/providers/openai/github-models.js.map +0 -1
  102. package/dist/types/llm/github-models.d.ts +0 -7
  103. package/dist/types/llm/providers/openai/github-models.d.ts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"status-cli.js","sourceRoot":"","sources":["../../../src/run/status-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAChG,OAAO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SECONDS = 2;
6
6
  const DECIMAL_INT_PATTERN = /^\d+$/;
7
7
  const DECIMAL_NUMBER_PATTERN = /^\d+(?:\.\d+)?$/;
8
- const parseBoolean = (raw) => {
8
+ const parseBoolean = (raw, label) => {
9
+ if (raw == null)
10
+ return null;
9
11
  if (typeof raw === "boolean")
10
12
  return raw;
11
- if (typeof raw !== "string")
12
- return null;
13
- const normalized = raw.trim().toLowerCase();
14
- if (!normalized)
15
- return null;
16
- if (["1", "true", "yes", "on"].includes(normalized))
17
- return true;
18
- if (["0", "false", "no", "off"].includes(normalized))
19
- return false;
20
- return null;
13
+ if (typeof raw === "string") {
14
+ const normalized = raw.trim().toLowerCase();
15
+ if (["1", "true", "yes", "on"].includes(normalized))
16
+ return true;
17
+ if (["0", "false", "no", "off"].includes(normalized))
18
+ return false;
19
+ }
20
+ throw new Error(`Unsupported ${label}: ${String(raw)}`);
21
21
  };
22
22
  const parsePositiveInt = (raw, label, min = 1) => {
23
23
  if (raw == null)
24
24
  return null;
25
25
  const value = typeof raw === "string" ? raw.trim() : raw;
26
- if (typeof value === "string" && !DECIMAL_INT_PATTERN.test(value)) {
26
+ if (typeof value !== "number" &&
27
+ (typeof value !== "string" || !DECIMAL_INT_PATTERN.test(value))) {
27
28
  throw new Error(`Unsupported ${label}: ${String(raw)}`);
28
29
  }
29
30
  const numeric = typeof value === "number" ? value : Number(value);
@@ -39,7 +40,8 @@ const parseNumberInRange = (raw, label, { min, max }) => {
39
40
  if (raw == null)
40
41
  return null;
41
42
  const value = typeof raw === "string" ? raw.trim() : raw;
42
- if (typeof value === "string" && !DECIMAL_NUMBER_PATTERN.test(value)) {
43
+ if (typeof value !== "number" &&
44
+ (typeof value !== "string" || !DECIMAL_NUMBER_PATTERN.test(value))) {
43
45
  throw new Error(`Unsupported ${label}: ${String(raw)}`);
44
46
  }
45
47
  const numeric = typeof value === "number" ? value : Number(value);
@@ -52,13 +54,9 @@ const parseNumberInRange = (raw, label, { min, max }) => {
52
54
  return numeric;
53
55
  };
54
56
  export function resolveSlideSettings(input) {
55
- const slidesFlag = parseBoolean(input.slides);
56
- const ocrFlag = parseBoolean(input.slidesOcr);
57
+ const slidesFlag = parseBoolean(input.slides, "--slides");
58
+ const ocrFlag = parseBoolean(input.slidesOcr, "--slides-ocr");
57
59
  const enabled = Boolean((slidesFlag ?? false) || (ocrFlag ?? false));
58
- if (!enabled)
59
- return null;
60
- const dirRaw = typeof input.slidesDir === "string" ? input.slidesDir.trim() : DEFAULT_OUTPUT_DIR;
61
- const outputDir = path.resolve(input.cwd, dirRaw || DEFAULT_OUTPUT_DIR);
62
60
  const sceneThreshold = parseNumberInRange(input.slidesSceneThreshold, "--slides-scene-threshold", {
63
61
  min: 0.1,
64
62
  max: 1,
@@ -68,6 +66,10 @@ export function resolveSlideSettings(input) {
68
66
  min: 0,
69
67
  max: 86_400,
70
68
  }) ?? DEFAULT_MIN_DURATION_SECONDS;
69
+ if (!enabled)
70
+ return null;
71
+ const dirRaw = typeof input.slidesDir === "string" ? input.slidesDir.trim() : DEFAULT_OUTPUT_DIR;
72
+ const outputDir = path.resolve(input.cwd, dirRaw || DEFAULT_OUTPUT_DIR);
71
73
  return {
72
74
  enabled,
73
75
  ocr: Boolean(ocrFlag ?? false),
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/slides/settings.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAuB7B,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AACpC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,4BAA4B,GAAG,CAAC,CAAC;AACvC,MAAM,mBAAmB,GAAG,OAAO,CAAC;AACpC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAEjD,MAAM,YAAY,GAAG,CAAC,GAAY,EAAkB,EAAE;IACpD,IAAI,OAAO,GAAG,KAAK,SAAS;QAAE,OAAO,GAAG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AAkB,CAAC,KAAK,CAAC,iBAAiB,EAAE,uBAAuB,EAAE;QACnE,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,MAAM;KACZ,CAAC,IAAI,4BAA4B,CAAC;IACrC,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE1B,MAAM,MAAM,GAAG,OAAO,KAAK,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC;IACjG,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,IAAI,kBAAkB,CAAC,CAAC;IACxE,OAAO;QACL,OAAO;QACP,GAAG,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC;QAC9B,SAAS;QACT,cAAc;QACd,iBAAiB,EAAE,CAAC,KAAK,CAAC,4BAA4B;QACtD,SAAS;QACT,kBAAkB;KACnB,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- export const FALLBACK_VERSION = "0.23.0";
4
+ export const FALLBACK_VERSION = "0.24.0";
5
5
  export function resolvePackageVersion(importMetaUrl) {
6
6
  const injected = typeof process !== "undefined" && typeof process.env.SUMMARIZE_VERSION === "string"
7
7
  ? process.env.SUMMARIZE_VERSION.trim()
@@ -8,7 +8,6 @@ type AgentApiKeys = {
8
8
  zaiApiKey: string | null;
9
9
  nvidiaApiKey: string | null;
10
10
  minimaxApiKey: string | null;
11
- githubApiKey: string | null;
12
11
  };
13
12
  export declare function resolveApiKeyForModel({ provider, apiKeys, }: {
14
13
  provider: string;
@@ -39,7 +38,7 @@ export declare function resolveAgentModel({ env, pageContent, modelOverride, }:
39
38
  maxOutputTokens: number;
40
39
  apiKeys: AgentApiKeys;
41
40
  } | {
42
- provider: "anthropic" | "github-copilot" | "google" | "nvidia" | "ollama" | "openai" | "openrouter" | "xai" | "zai";
41
+ provider: "anthropic" | "google" | "nvidia" | "ollama" | "openai" | "openrouter" | "xai" | "zai";
43
42
  model: Model<Api>;
44
43
  transport?: undefined;
45
44
  cliProvider?: undefined;
@@ -3,6 +3,6 @@ export declare function buildModelMetaFromAttempt(attempt: ModelAttempt): {
3
3
  provider: "cli";
4
4
  canonical: string;
5
5
  } | {
6
- provider: "anthropic" | "github-copilot" | "google" | "minimax" | "nvidia" | "ollama" | "openai" | "xai" | "zai";
6
+ provider: "anthropic" | "google" | "minimax" | "nvidia" | "ollama" | "openai" | "xai" | "zai";
7
7
  canonical: string;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import type { CliProvider } from "../config.js";
2
2
  import type { LlmProvider } from "../llm/model-id.js";
3
3
  import type { ModelRequestOptions } from "../llm/model-options.js";
4
- export type ModelAttemptRequiredEnv = "XAI_API_KEY" | "OPENAI_API_KEY" | "NVIDIA_API_KEY" | "GEMINI_API_KEY" | "ANTHROPIC_API_KEY" | "OPENROUTER_API_KEY" | "Z_AI_API_KEY" | "MINIMAX_API_KEY" | "GITHUB_TOKEN" | "OLLAMA_BASE_URL" | "CLI_CLAUDE" | "CLI_CODEX" | "CLI_GEMINI" | "CLI_AGENT" | "CLI_OPENCLAW" | "CLI_OPENCODE" | "CLI_COPILOT" | "CLI_AGY" | "CLI_PI";
4
+ export type ModelAttemptRequiredEnv = "XAI_API_KEY" | "OPENAI_API_KEY" | "NVIDIA_API_KEY" | "GEMINI_API_KEY" | "ANTHROPIC_API_KEY" | "OPENROUTER_API_KEY" | "Z_AI_API_KEY" | "MINIMAX_API_KEY" | "OLLAMA_BASE_URL" | "CLI_CLAUDE" | "CLI_CODEX" | "CLI_GEMINI" | "CLI_AGENT" | "CLI_OPENCLAW" | "CLI_OPENCODE" | "CLI_COPILOT" | "CLI_AGY" | "CLI_PI";
5
5
  export type ModelAttempt = {
6
6
  transport: "native" | "openrouter" | "cli";
7
7
  userModelId: string;
@@ -1,4 +1,5 @@
1
1
  import type { Context } from "@earendil-works/pi-ai";
2
+ import type { OpenAiReasoningEffort } from "./model-options.js";
2
3
  import type { Prompt } from "./prompt.js";
3
4
  import type { LlmTokenUsage } from "./types.js";
4
5
  export declare function formatLlmRetryNotice(modelId: string, notice: {
@@ -24,10 +25,11 @@ export declare function streamUsageWithTimeout({ result, timeoutMs, }: {
24
25
  timeoutMs: number;
25
26
  }): Promise<LlmTokenUsage | null>;
26
27
  export declare function isOpenAiGpt5Model(provider: string, model: string): boolean;
27
- export declare function resolveEffectiveTemperature({ provider, model, temperature, }: {
28
+ export declare function resolveEffectiveTemperature({ provider, model, temperature, reasoningEffort, }: {
28
29
  provider: string;
29
30
  model: string;
30
31
  temperature?: number;
32
+ reasoningEffort?: OpenAiReasoningEffort;
31
33
  }): number | undefined;
32
34
  export declare function shouldRetryGpt5WithoutTokenCap({ provider, model, maxOutputTokens, error, }: {
33
35
  provider: string;
@@ -0,0 +1,18 @@
1
+ import type { Api, Model } from "@earendil-works/pi-ai";
2
+ export declare const OPENAI_GPT6_MODELS: readonly [{
3
+ readonly id: "gpt-6-astra";
4
+ readonly name: "GPT-6 Astra";
5
+ readonly input: 10;
6
+ readonly output: 50;
7
+ }, {
8
+ readonly id: "gpt-6-sol";
9
+ readonly name: "GPT-6 Sol";
10
+ readonly input: 2;
11
+ readonly output: 10;
12
+ }, {
13
+ readonly id: "gpt-6-luna";
14
+ readonly name: "GPT-6 Luna";
15
+ readonly input: 0.1;
16
+ readonly output: 0.5;
17
+ }];
18
+ export declare function getOpenAiGpt6Model(modelId: string): Model<Api> | null;
@@ -32,7 +32,7 @@ export declare function envHasRequiredKey(env: Record<string, string | undefined
32
32
  export declare function resolveRequiredEnvForModelId(modelId: string): RequiredModelEnv;
33
33
  export declare function isVideoUnderstandingCapableModelId(modelId: string): boolean;
34
34
  export declare function resolveOpenAiCompatibleClientConfigForProvider({ provider, openaiApiKey, openrouterApiKey, forceOpenRouter, openaiBaseUrlOverride, forceChatCompletions, requestOptions, }: {
35
- provider: "openai" | "zai" | "nvidia" | "minimax" | "github-copilot" | "ollama";
35
+ provider: "openai" | "zai" | "nvidia" | "minimax" | "ollama";
36
36
  openaiApiKey: string | null;
37
37
  openrouterApiKey: string | null;
38
38
  forceOpenRouter?: boolean;
@@ -1,4 +1,3 @@
1
- export declare const GITHUB_MODELS_BASE_URL = "https://models.github.ai/inference";
2
1
  export type ProviderExecution = "simple" | "google" | "anthropic" | "openai-http" | "openai-compatible";
3
2
  export type GatewayProviderProfile = {
4
3
  requiredEnv: GatewayRequiredModelEnv;
@@ -67,15 +66,6 @@ export declare const GATEWAY_PROVIDER_PROFILES: {
67
66
  readonly defaultBaseUrl: "https://api.minimax.io/v1";
68
67
  readonly forceChatCompletions: true;
69
68
  };
70
- readonly "github-copilot": {
71
- readonly requiredEnv: "GITHUB_TOKEN";
72
- readonly execution: "openai-http";
73
- readonly supportsDocuments: false;
74
- readonly supportsStreaming: true;
75
- readonly supportsVideoUnderstanding: false;
76
- readonly defaultBaseUrl: "https://models.github.ai/inference";
77
- readonly forceChatCompletions: true;
78
- };
79
69
  readonly ollama: {
80
70
  readonly requiredEnv: "OLLAMA_BASE_URL";
81
71
  readonly execution: "openai-compatible";
@@ -1,5 +1,7 @@
1
1
  import { type ModelRequestOptions } from "../../model-options.js";
2
2
  import type { OpenAiStructuredOutput } from "./types.js";
3
+ export declare function isOpenAiGpt6ModelId(modelId: string): boolean;
4
+ export declare function validateOpenAiReasoningEffort(provider: string, modelId: string, options: ModelRequestOptions | undefined): void;
3
5
  export declare function isOpenAiResponsesTextModelId(modelId: string): boolean;
4
6
  export declare function buildOpenAiResponsesRequestOptions(requestOptions: ModelRequestOptions | undefined, structuredOutput?: OpenAiStructuredOutput): Record<string, unknown>;
5
7
  export declare function buildOpenAiChatRequestOptions(requestOptions: ModelRequestOptions | undefined): Record<string, unknown>;
@@ -3,6 +3,7 @@ import type { OpenAiTextStreamResult } from "./types.js";
3
3
  export declare function createOpenAiTextStream(response: Response, modelId: string, readEvent: (event: Record<string, unknown>) => {
4
4
  text?: string;
5
5
  usage?: LlmTokenUsage | null;
6
- } | null): OpenAiTextStreamResult;
6
+ terminal?: boolean;
7
+ } | null, missingTerminalError: string): OpenAiTextStreamResult;
7
8
  export declare function parseOpenAiSseJsonStream(body: ReadableStream<Uint8Array>): AsyncGenerator<Record<string, unknown>>;
8
9
  export declare function createOpenAiSseError(event: Record<string, unknown>): Error;
@@ -3,7 +3,6 @@ import type { OpenAiClientConfig } from "../types.js";
3
3
  import type { OpenAiTextCompletionResult, OpenAiTextRequest } from "./types.js";
4
4
  export declare function postOpenAiJson({ openaiConfig, fetchImpl, signal, }: Pick<OpenAiTextRequest, "openaiConfig" | "fetchImpl" | "signal">, url: URL, payload: Record<string, unknown>, headers?: Record<string, string>): Promise<Response>;
5
5
  export declare function readOpenAiCompletion<Payload>(response: Response, modelId: string, extractText: (payload: Payload) => string): Promise<OpenAiTextCompletionResult>;
6
- export declare function isGitHubModelsBaseUrl(baseUrl: string | undefined): boolean;
7
6
  export declare function isApiOpenAiBaseUrl(baseUrl: string | undefined): boolean;
8
7
  export declare function resolveOpenAiResponsesUrl(baseUrl: string): URL;
9
8
  export declare function resolveOpenAiChatCompletionsUrl(baseUrl: string): URL;
@@ -32,7 +31,7 @@ export declare function contextToResponsesInput(context: Context): Array<{
32
31
  }>;
33
32
  }>;
34
33
  export declare function buildOpenAiRequestHeaders(openaiConfig: OpenAiClientConfig): Record<string, string>;
35
- export declare function createOpenAiHttpError({ baseUrl, status, bodyText, }: {
34
+ export declare function createOpenAiHttpError({ status, bodyText, }: {
36
35
  baseUrl: string;
37
36
  status: number;
38
37
  bodyText: string;
@@ -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" | "github-copilot" | "ollama";
12
+ markdownProvider: "none" | "xai" | "openai" | "google" | "anthropic" | "zai" | "nvidia" | "minimax" | "ollama";
13
13
  markdownModel: MarkdownModel | null;
14
14
  convertHtmlToMarkdown: ((args: {
15
15
  url: string;
@@ -6,7 +6,7 @@ export declare function prepareRunEnvironment(argv: string[], inputEnv: Record<s
6
6
  };
7
7
  export declare function argvBeforeSeparator(argv: readonly string[]): string[];
8
8
  export declare function stripCliLocaleArgs(argv: readonly string[], locale?: CliLocale): string[];
9
- export declare function normalizeDiarizeArgv(argv: string[]): string[];
9
+ export declare function normalizeMediaInputArgv(argv: string[]): string[];
10
10
  export declare function handleVersionFlag({ versionRequested, stdout, importMetaUrl, }: {
11
11
  versionRequested: boolean;
12
12
  stdout: NodeJS.WritableStream;
@@ -1,4 +1,4 @@
1
- export declare const FALLBACK_VERSION = "0.23.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;
@@ -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/...`, `github-copilot/...`). Explicit Gemini Nano summaries stay on-device in either connection mode.
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).
@@ -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`. Stored in `~/.summarize/daemon.json` (mode `0600`).
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/execute` — start a run. Bearer-auth required. Streams progress + final summary.
89
- - `GET /session/{id}/status` — poll an in-progress run.
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
- : Token, port, paired browser fingerprints. Mode `0600`.
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.
@@ -12,10 +12,12 @@ summary: "Every summarize subcommand and flag, with examples."
12
12
  ## Subcommands
13
13
 
14
14
  - [`summarize`](summarize.md) — main command. Takes a URL, file, or stdin and produces a summary or extracted content.
15
+ - [`summarize status`](../cli.md#cli-discovery) — print the selected model, enabled providers, and runtime status.
15
16
  - [`summarize slides`](slides.md) — extract scene-change keyframes from a YouTube URL, direct video URL, or local video file into PNGs (and optional OCR text). Standalone version of the `--slides` flag.
16
17
  - [`summarize transcriber`](transcriber.md) — set up local ONNX transcription (Parakeet, Canary). Prints the env vars you need.
17
18
  - [`summarize daemon`](daemon.md) — manage the local HTTP daemon that the Chrome Side Panel talks to. Subcommands: `install`, `restart`, `status`, `uninstall`, `run`.
18
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`).
19
21
 
20
22
  ## Output discipline
21
23
 
@@ -28,26 +30,27 @@ All subcommands keep the same output discipline — straight from gogcli's playb
28
30
 
29
31
  ## Global behavior
30
32
 
31
- These flags apply to almost every subcommand:
33
+ Only two flags apply to every subcommand; the rest are per-command:
32
34
 
33
- | Flag | Purpose |
34
- | ----------------------------- | -------------------------------------------------------------- |
35
- | `--json` | Stable JSON envelope on stdout. Disables streaming. |
36
- | `--no-color` | Strip ANSI escapes from output. |
37
- | `--theme <name>` | Pick a CLI theme (`SUMMARIZE_THEME` env var also works). |
38
- | `--verbose` / `--debug` | Detailed progress on stderr. |
39
- | `--metrics off\|on\|detailed` | Token + timing metrics line. Default `on`. |
40
- | `--timeout <duration>` | Cap fetching + LLM calls. Accepts `30`, `30s`, `2m`, `5000ms`. |
41
- | `-V`, `--version` | Print version and exit. |
42
- | `--help` | Print rich help with examples. |
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`. |
43
46
 
44
47
  ## Exit codes
45
48
 
46
- | Code | Meaning |
47
- | ----- | ------------------------------------------------------ |
48
- | `0` | Success. |
49
- | `1` | Generic failure (extraction, model, network, parsing). |
50
- | `2` | Usage error (bad flag, bad input). |
51
- | `124` | Timeout. |
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. |
52
55
 
53
- `summarize daemon` and `summarize transcriber` may surface platform-specific exit codes from the underlying service install (launchd, systemd, schtasks); check `--verbose` output for the raw error.
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. Runs each candidate `--runs` times against a sanity prompt; ranks by `--smart` heuristics (latency, completion length, refusal rate).
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
- : How many times to probe each candidate. Default `2`.
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