@steipete/summarize 0.23.1 → 0.25.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 (140) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +2 -2
  3. package/completions/summarize.fish +3 -3
  4. package/dist/esm/application/cli-fallback-state.js +3 -1
  5. package/dist/esm/application/cli-fallback-state.js.map +1 -1
  6. package/dist/esm/application/environment.js +2 -0
  7. package/dist/esm/application/environment.js.map +1 -1
  8. package/dist/esm/application/metrics.js +3 -9
  9. package/dist/esm/application/metrics.js.map +1 -1
  10. package/dist/esm/application/model-selection.js +4 -0
  11. package/dist/esm/application/model-selection.js.map +1 -1
  12. package/dist/esm/application/provider-runtime.js +0 -2
  13. package/dist/esm/application/provider-runtime.js.map +1 -1
  14. package/dist/esm/daemon/agent-model.js +5 -10
  15. package/dist/esm/daemon/agent-model.js.map +1 -1
  16. package/dist/esm/daemon/agent.js +19 -54
  17. package/dist/esm/daemon/agent.js.map +1 -1
  18. package/dist/esm/daemon/env-snapshot.js +8 -0
  19. package/dist/esm/daemon/env-snapshot.js.map +1 -1
  20. package/dist/esm/daemon/models.js +10 -0
  21. package/dist/esm/daemon/models.js.map +1 -1
  22. package/dist/esm/engine/cli-model-id.js +3 -1
  23. package/dist/esm/engine/cli-model-id.js.map +1 -1
  24. package/dist/esm/engine/streaming.js +0 -1
  25. package/dist/esm/engine/streaming.js.map +1 -1
  26. package/dist/esm/llm/cli-exec.js +10 -4
  27. package/dist/esm/llm/cli-exec.js.map +1 -1
  28. package/dist/esm/llm/cli-provider-output/devin.js +61 -0
  29. package/dist/esm/llm/cli-provider-output/devin.js.map +1 -0
  30. package/dist/esm/llm/cli-provider-output/grok.js +94 -0
  31. package/dist/esm/llm/cli-provider-output/grok.js.map +1 -0
  32. package/dist/esm/llm/cli-provider-output.js +3 -1
  33. package/dist/esm/llm/cli-provider-output.js.map +1 -1
  34. package/dist/esm/llm/cli-runners/devin.js +272 -0
  35. package/dist/esm/llm/cli-runners/devin.js.map +1 -0
  36. package/dist/esm/llm/cli-runners/grok.js +160 -0
  37. package/dist/esm/llm/cli-runners/grok.js.map +1 -0
  38. package/dist/esm/llm/cli-runners/pi.js +4 -3
  39. package/dist/esm/llm/cli-runners/pi.js.map +1 -1
  40. package/dist/esm/llm/cli.js +10 -0
  41. package/dist/esm/llm/cli.js.map +1 -1
  42. package/dist/esm/llm/generate-text-shared.js +9 -3
  43. package/dist/esm/llm/generate-text-shared.js.map +1 -1
  44. package/dist/esm/llm/generate-text-stream.js +9 -2
  45. package/dist/esm/llm/generate-text-stream.js.map +1 -1
  46. package/dist/esm/llm/generate-text.js +3 -0
  47. package/dist/esm/llm/generate-text.js.map +1 -1
  48. package/dist/esm/llm/model-id.js +1 -6
  49. package/dist/esm/llm/model-id.js.map +1 -1
  50. package/dist/esm/llm/openai-catalog.js +34 -0
  51. package/dist/esm/llm/openai-catalog.js.map +1 -0
  52. package/dist/esm/llm/provider-profile.js +2 -10
  53. package/dist/esm/llm/provider-profile.js.map +1 -1
  54. package/dist/esm/llm/provider-registry.js +16 -10
  55. package/dist/esm/llm/provider-registry.js.map +1 -1
  56. package/dist/esm/llm/providers/openai/chat-completions.js +14 -3
  57. package/dist/esm/llm/providers/openai/chat-completions.js.map +1 -1
  58. package/dist/esm/llm/providers/openai/request-options.js +17 -1
  59. package/dist/esm/llm/providers/openai/request-options.js.map +1 -1
  60. package/dist/esm/llm/providers/openai/responses.js +5 -3
  61. package/dist/esm/llm/providers/openai/responses.js.map +1 -1
  62. package/dist/esm/llm/providers/openai/sse.js +7 -1
  63. package/dist/esm/llm/providers/openai/sse.js.map +1 -1
  64. package/dist/esm/llm/providers/openai/transport.js +2 -22
  65. package/dist/esm/llm/providers/openai/transport.js.map +1 -1
  66. package/dist/esm/llm/providers/openai.js +5 -17
  67. package/dist/esm/llm/providers/openai.js.map +1 -1
  68. package/dist/esm/llm/providers/shared.js +4 -0
  69. package/dist/esm/llm/providers/shared.js.map +1 -1
  70. package/dist/esm/llm/usage.js +4 -6
  71. package/dist/esm/llm/usage.js.map +1 -1
  72. package/dist/esm/localization/de.json +4 -4
  73. package/dist/esm/localization/en.json +4 -4
  74. package/dist/esm/localization/es.json +4 -4
  75. package/dist/esm/localization/fr.json +4 -4
  76. package/dist/esm/localization/it.json +4 -4
  77. package/dist/esm/localization/ja.json +4 -4
  78. package/dist/esm/localization/ko.json +4 -4
  79. package/dist/esm/localization/nl.json +4 -4
  80. package/dist/esm/localization/pl.json +4 -4
  81. package/dist/esm/localization/pt-BR.json +4 -4
  82. package/dist/esm/localization/ru.json +4 -4
  83. package/dist/esm/localization/tr.json +4 -4
  84. package/dist/esm/localization/zh-Hans.json +4 -4
  85. package/dist/esm/localization/zh-Hant.json +4 -4
  86. package/dist/esm/pricing/litellm.js +12 -0
  87. package/dist/esm/pricing/litellm.js.map +1 -1
  88. package/dist/esm/run/env.js +3 -1
  89. package/dist/esm/run/env.js.map +1 -1
  90. package/dist/esm/run/flows/url/markdown.js +2 -4
  91. package/dist/esm/run/flows/url/markdown.js.map +1 -1
  92. package/dist/esm/run/help.js +1 -2
  93. package/dist/esm/run/help.js.map +1 -1
  94. package/dist/esm/run/run-settings-parse.js +4 -0
  95. package/dist/esm/run/run-settings-parse.js.map +1 -1
  96. package/dist/esm/run/status-cli.js +2 -6
  97. package/dist/esm/run/status-cli.js.map +1 -1
  98. package/dist/esm/version.js +1 -1
  99. package/dist/types/daemon/agent-model.d.ts +2 -3
  100. package/dist/types/daemon/env-snapshot.d.ts +1 -1
  101. package/dist/types/daemon/models.d.ts +2 -0
  102. package/dist/types/engine/model-meta.d.ts +1 -1
  103. package/dist/types/engine/types.d.ts +1 -1
  104. package/dist/types/llm/cli-exec.d.ts +2 -1
  105. package/dist/types/llm/cli-provider-output/devin.d.ts +14 -0
  106. package/dist/types/llm/cli-provider-output/grok.d.ts +7 -0
  107. package/dist/types/llm/cli-provider-output.d.ts +3 -1
  108. package/dist/types/llm/cli-runners/devin.d.ts +2 -0
  109. package/dist/types/llm/cli-runners/grok.d.ts +2 -0
  110. package/dist/types/llm/generate-text-shared.d.ts +3 -1
  111. package/dist/types/llm/openai-catalog.d.ts +52 -0
  112. package/dist/types/llm/provider-profile.d.ts +1 -1
  113. package/dist/types/llm/provider-registry.d.ts +14 -10
  114. package/dist/types/llm/providers/openai/request-options.d.ts +3 -0
  115. package/dist/types/llm/providers/openai/sse.d.ts +2 -1
  116. package/dist/types/llm/providers/openai/transport.d.ts +1 -2
  117. package/dist/types/locale.d.ts +3 -3
  118. package/dist/types/run/flows/asset/summary-attempts.d.ts +1 -1
  119. package/dist/types/run/flows/url/markdown.d.ts +1 -1
  120. package/dist/types/version.d.ts +1 -1
  121. package/docs/README.md +1 -1
  122. package/docs/chrome-extension.md +1 -1
  123. package/docs/cli.md +31 -6
  124. package/docs/commands/daemon.md +4 -4
  125. package/docs/commands/index.md +20 -19
  126. package/docs/commands/refresh-free.md +4 -4
  127. package/docs/commands/summarize.md +10 -10
  128. package/docs/config.md +11 -3
  129. package/docs/index.md +1 -1
  130. package/docs/install.md +0 -1
  131. package/docs/llm.md +5 -22
  132. package/docs/openai.md +23 -0
  133. package/docs/releasing.md +3 -0
  134. package/package.json +9 -9
  135. package/dist/esm/llm/github-models.js +0 -68
  136. package/dist/esm/llm/github-models.js.map +0 -1
  137. package/dist/esm/llm/providers/openai/github-models.js +0 -18
  138. package/dist/esm/llm/providers/openai/github-models.js.map +0 -1
  139. package/dist/types/llm/github-models.d.ts +0 -7
  140. package/dist/types/llm/providers/openai/github-models.d.ts +0 -2
@@ -0,0 +1,14 @@
1
+ import type { LlmTokenUsage } from "../generate-text.js";
2
+ /**
3
+ * Parse a Devin CLI `--export` ATIF transcript.
4
+ *
5
+ * Devin print mode writes plain text to stdout, but a fresh-state run can
6
+ * prefix onboarding noise, so the transcript is the reliable output channel:
7
+ * the final agent step carries the response text and `final_metrics` carries
8
+ * cumulative token usage. Devin does not report a USD cost.
9
+ */
10
+ export declare function parseDevinOutputFromAtif(raw: string): {
11
+ text: string;
12
+ usage: LlmTokenUsage | null;
13
+ costUsd: number | null;
14
+ };
@@ -0,0 +1,7 @@
1
+ import type { LlmTokenUsage } from "../generate-text.js";
2
+ export declare function extractGrokError(output: string): string | null;
3
+ export declare function parseGrokOutput(stdout: string): {
4
+ text: string;
5
+ usage: LlmTokenUsage | null;
6
+ costUsd: number | null;
7
+ };
@@ -1,9 +1,11 @@
1
1
  import type { CliProvider } from "../config.js";
2
2
  import type { LlmTokenUsage } from "./generate-text.js";
3
3
  export { parseCodexOutputFromJsonl, parseCodexUsageFromJsonl, } from "./cli-provider-output/codex.js";
4
+ export { extractGrokError, parseGrokOutput } from "./cli-provider-output/grok.js";
4
5
  export { parseOpenCodeOutputFromJsonl } from "./cli-provider-output/opencode.js";
5
6
  export { parsePiOutputFromJsonl } from "./cli-provider-output/pi.js";
6
- export type JsonCliProvider = Exclude<CliProvider, "codex" | "openclaw" | "opencode" | "copilot" | "agy" | "pi">;
7
+ export { parseDevinOutputFromAtif } from "./cli-provider-output/devin.js";
8
+ export type JsonCliProvider = Exclude<CliProvider, "codex" | "openclaw" | "opencode" | "copilot" | "agy" | "pi" | "devin" | "grok">;
7
9
  export declare function isJsonCliProvider(provider: CliProvider): provider is JsonCliProvider;
8
10
  export declare function parseJsonProviderOutput(args: {
9
11
  provider: JsonCliProvider;
@@ -0,0 +1,2 @@
1
+ import type { CliRunResult, ResolvedCliRunOptions } from "./types.js";
2
+ export declare function runDevinCli(options: ResolvedCliRunOptions): Promise<CliRunResult>;
@@ -0,0 +1,2 @@
1
+ import type { CliRunResult, ResolvedCliRunOptions } from "./types.js";
2
+ export declare function runGrokCli(options: ResolvedCliRunOptions): Promise<CliRunResult>;
@@ -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,52 @@
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
+ readonly requiresReasoning: true;
8
+ }, {
9
+ readonly id: "gpt-6-sol";
10
+ readonly name: "GPT-6 Sol";
11
+ readonly input: 2;
12
+ readonly output: 10;
13
+ readonly requiresReasoning: false;
14
+ }, {
15
+ readonly id: "gpt-6-luna";
16
+ readonly name: "GPT-6 Luna";
17
+ readonly input: 0.1;
18
+ readonly output: 0.5;
19
+ readonly requiresReasoning: false;
20
+ }, {
21
+ readonly id: "gpt-6.1-sol";
22
+ readonly name: "GPT-6.1 Sol";
23
+ readonly input: 2;
24
+ readonly output: 10;
25
+ readonly requiresReasoning: true;
26
+ }];
27
+ export declare function findOpenAiGpt6Entry(modelId: string): {
28
+ readonly id: "gpt-6-astra";
29
+ readonly name: "GPT-6 Astra";
30
+ readonly input: 10;
31
+ readonly output: 50;
32
+ readonly requiresReasoning: true;
33
+ } | {
34
+ readonly id: "gpt-6-sol";
35
+ readonly name: "GPT-6 Sol";
36
+ readonly input: 2;
37
+ readonly output: 10;
38
+ readonly requiresReasoning: false;
39
+ } | {
40
+ readonly id: "gpt-6-luna";
41
+ readonly name: "GPT-6 Luna";
42
+ readonly input: 0.1;
43
+ readonly output: 0.5;
44
+ readonly requiresReasoning: false;
45
+ } | {
46
+ readonly id: "gpt-6.1-sol";
47
+ readonly name: "GPT-6.1 Sol";
48
+ readonly input: 2;
49
+ readonly output: 10;
50
+ readonly requiresReasoning: true;
51
+ } | undefined;
52
+ 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";
@@ -157,6 +147,20 @@ export declare const CLI_PROVIDER_PROFILES: {
157
147
  readonly installLabel: "pi";
158
148
  readonly pathEnv: "PI_PATH";
159
149
  };
150
+ readonly devin: {
151
+ readonly requiredEnv: "CLI_DEVIN";
152
+ readonly defaultModel: null;
153
+ readonly missingBinaryLabel: "Devin CLI";
154
+ readonly installLabel: "Devin CLI";
155
+ readonly pathEnv: "DEVIN_PATH";
156
+ };
157
+ readonly grok: {
158
+ readonly requiredEnv: "CLI_GROK";
159
+ readonly defaultModel: null;
160
+ readonly missingBinaryLabel: "Grok CLI";
161
+ readonly installLabel: "Grok CLI";
162
+ readonly pathEnv: "GROK_PATH";
163
+ };
160
164
  };
161
165
  export type GatewayProvider = keyof typeof GATEWAY_PROVIDER_PROFILES;
162
166
  export type CliProvider = keyof typeof CLI_PROVIDER_PROFILES;
@@ -1,5 +1,8 @@
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 openAiGpt6RequiresReasoning(modelId: string): boolean;
5
+ export declare function validateOpenAiReasoningEffort(provider: string, modelId: string, options: ModelRequestOptions | undefined): void;
3
6
  export declare function isOpenAiResponsesTextModelId(modelId: string): boolean;
4
7
  export declare function buildOpenAiResponsesRequestOptions(requestOptions: ModelRequestOptions | undefined, structuredOutput?: OpenAiStructuredOutput): Record<string, unknown>;
5
8
  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;
@@ -239,7 +239,6 @@ declare const english: {
239
239
  "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": string;
240
240
  "llm.model.id.auto.name.cli.provider.model.xai.openai.nvidia.minimax.google.anthropic.zai.or.openrouter.author.slug.default.auto": string;
241
241
  "openai.service.tier.default.fast.priority.flex": string;
242
- "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": string;
243
242
  "print.extracted.content.and.exit.urls.media.and.local.pdfs.stdin.is.unsupported": string;
244
243
  "stream.llm.output.auto.tty.only.on.off.note.streaming.is.disabled.in.json.mode": string;
245
244
  "override.terminal.width.for.markdown.rendering.default.auto.detect.max.120": string;
@@ -257,7 +256,6 @@ declare const english: {
257
256
  "openai.reasoning.effort.none.low.medium.high.xhigh.aliases.off.min.mid": string;
258
257
  "diarize.a.local.recording": string;
259
258
  "configure.local.onnx.transcription.parakeet.canary": string;
260
- "github.models.via.github.token": string;
261
259
  "config.preset": string;
262
260
  "summarize.clipboard.content": string;
263
261
  "scan.update.working.openrouter.free.models": string;
@@ -443,9 +441,11 @@ declare const english: {
443
441
  "service.cliEntrypointMissing": string;
444
442
  "service.cliBuildMissing": string;
445
443
  "service.healthUnreachable": string;
444
+ "error.githubModelsRetired": string;
445
+ "use.a.cli.provider.claude.gemini.codex.agent.openclaw.opencode.copilot.agy.pi.devin.grok.equivalent.to.model.cli.provider.if.omitted.use.auto.selection.with.cli.enabled": 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.devin.grok.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;
@@ -24,5 +24,5 @@ export declare function buildAssetCliContext({ ctx, args, attempts, attachmentsC
24
24
  promptOverride: string;
25
25
  allowTools: boolean;
26
26
  cwd: string | undefined;
27
- extraArgsByProvider: Partial<Record<"agent" | "agy" | "claude" | "codex" | "copilot" | "gemini" | "openclaw" | "opencode" | "pi", string[]>>;
27
+ extraArgsByProvider: Partial<Record<"agent" | "agy" | "claude" | "codex" | "copilot" | "devin" | "gemini" | "grok" | "openclaw" | "opencode" | "pi", string[]>>;
28
28
  } | null>;
@@ -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;
@@ -1,4 +1,4 @@
1
- export declare const FALLBACK_VERSION = "0.23.1";
1
+ export declare const FALLBACK_VERSION = "0.25.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/README.md CHANGED
@@ -6,7 +6,7 @@ summary: "Docs index for summarize behaviors and modes."
6
6
 
7
7
  - `docs/chrome-extension.md` — Chrome side panel extension + daemon setup/troubleshooting
8
8
  - `docs/cache.md` — cache design + config (SQLite)
9
- - `docs/cli.md` — CLI models (Claude/Codex/Gemini/Agent/OpenClaw/OpenCode/Copilot/Antigravity/pi)
9
+ - `docs/cli.md` — CLI models (Claude/Codex/Gemini/Agent/OpenClaw/OpenCode/Copilot/Antigravity/pi/Devin/Grok)
10
10
  - `docs/config.md` — config file location, precedence, and schema
11
11
  - `docs/extract-only.md` — extract mode (no summary LLM call)
12
12
  - `docs/engine.md` — headless execution engine architecture
@@ -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).
package/docs/cli.md CHANGED
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  title: "CLI providers"
3
3
  kicker: "models"
4
- summary: "CLI model providers and config for Claude, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, GitHub Copilot, Antigravity, and pi."
4
+ summary: "CLI model providers and config for Claude, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, GitHub Copilot, Antigravity, pi, Devin, and Grok."
5
5
  read_when:
6
6
  - "When changing CLI model integration."
7
7
  ---
8
8
 
9
9
  # CLI models
10
10
 
11
- Summarize can use installed CLIs (Claude, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, GitHub Copilot, Antigravity, pi) as local model backends.
11
+ Summarize can use installed CLIs (Claude, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, GitHub Copilot, Antigravity, pi, Devin, Grok) as local model backends.
12
12
 
13
13
  ## Model ids
14
14
 
@@ -25,10 +25,14 @@ Summarize can use installed CLIs (Claude, Codex, Gemini, Cursor Agent, OpenClaw,
25
25
  - `cli/agy` (use the Antigravity CLI active session model)
26
26
  - `cli/pi/<model>` (e.g. `cli/pi/sonnet`)
27
27
  - `cli/pi` (use pi's configured default model)
28
+ - `cli/devin/<model>` (e.g. `cli/devin/swe-2-max`)
29
+ - `cli/devin` (use the Devin CLI configured default model)
30
+ - `cli/grok/<model>` (e.g. `cli/grok/grok-4.6`)
31
+ - `cli/grok` (use the Grok CLI default model)
28
32
 
29
33
  Use `--cli [provider]` (case-insensitive) for the provider default, or `--model cli/<provider>/<model>` to pin a model.
30
34
  Bare `cli/codex` defaults to GPT-5.5; set `cli.codex.model` to override it.
31
- Antigravity does not support per-call model selection in print mode, so use `cli/agy` without a model suffix. pi supports `cli/pi/<model>` or a configured `cli.pi.model`.
35
+ Antigravity does not support per-call model selection in print mode, so use `cli/agy` without a model suffix. pi supports `cli/pi/<model>` or a configured `cli.pi.model`. devin supports `cli/devin/<model>` or a configured `cli.devin.model`; run `devin models list` to see the available model families.
32
36
  If `--cli` is provided without a provider, auto selection is used with CLI enabled.
33
37
 
34
38
  Codex GPT Fast:
@@ -47,7 +51,7 @@ Auto mode can prepend CLI attempts in two ways:
47
51
  - Applies only to **implicit** auto (when no model is set via flag/env/config).
48
52
  - Default behavior: only when no API key is configured.
49
53
  - Default order: `claude, gemini, codex, agent, openclaw, opencode, copilot`.
50
- - Antigravity and pi are opt-in unless added to `cli.autoFallback.order`.
54
+ - Antigravity, pi, devin, and Grok are opt-in unless added to `cli.autoFallback.order`.
51
55
  - Remembers + prioritizes the last successful CLI provider (`~/.summarize/cli-state.json`).
52
56
 
53
57
  Gemini CLI performance: summarize sets `GEMINI_CLI_NO_RELAUNCH=true` for Gemini CLI runs to avoid a costly self-relaunch (can be overridden by setting it yourself).
@@ -95,6 +99,8 @@ Binary lookup:
95
99
  - `COPILOT_PATH` (optional override)
96
100
  - `AGY_PATH` (optional override)
97
101
  - `PI_PATH` (optional override)
102
+ - `DEVIN_PATH` (optional override)
103
+ - `GROK_PATH` (optional override)
98
104
  - Otherwise uses `PATH`
99
105
 
100
106
  Run `summarize status` to list enabled CLI providers whose executable is currently available.
@@ -116,6 +122,8 @@ path-based prompt and enables the required tool flags:
116
122
  - Copilot: `copilot -p <prompt>`; passes `--model <model>` when one is configured
117
123
  - Antigravity: `agy --print`; does not auto-approve tools for attachment prompts
118
124
  - pi: `pi --print --mode json`; passes `--system-prompt`, sends prompt over stdin, and uses `--no-tools` for isolated summaries
125
+ - devin: `devin --print --prompt-file <file>`; keeps the caller cwd and real Devin config for attachments, preserves workspace trust checks, and uses `--permission-mode auto` so read-only tools are auto-approved
126
+ - Grok: `grok --prompt-file <file> --output-format json --always-approve` for path-based prompts
119
127
 
120
128
  Remote image and binary-file URLs are limited to native providers and CLI backends that can consume the staged attachment without broad tool approval. Local file inputs keep the existing path-based CLI behavior because they are operator-selected files rather than untrusted remote content.
121
129
 
@@ -133,7 +141,9 @@ Remote image and binary-file URLs are limited to native providers and CLI backen
133
141
  "opencode",
134
142
  "copilot",
135
143
  "agy",
136
- "pi"
144
+ "pi",
145
+ "devin",
146
+ "grok"
137
147
  ],
138
148
  "autoFallback": {
139
149
  "enabled": true,
@@ -166,6 +176,13 @@ Remote image and binary-file URLs are limited to native providers and CLI backen
166
176
  },
167
177
  "pi": {
168
178
  "binary": "/usr/local/bin/pi"
179
+ },
180
+ "devin": {
181
+ "binary": "/usr/local/bin/devin"
182
+ },
183
+ "grok": {
184
+ "binary": "/usr/local/bin/grok",
185
+ "model": "grok-4.6"
169
186
  }
170
187
  }
171
188
  }
@@ -173,12 +190,18 @@ Remote image and binary-file URLs are limited to native providers and CLI backen
173
190
 
174
191
  Notes:
175
192
 
176
- - CLI output is treated as text only (no token accounting).
193
+ - CLI providers that emit structured output report token usage (and USD cost where the CLI exposes it); plain-output providers such as Copilot report none.
177
194
  - If a CLI call fails, auto mode falls back to the next candidate.
178
195
  - Cursor Agent CLI uses the `agent` binary and relies on Cursor CLI auth (login or `CURSOR_API_KEY`).
179
196
  - Antigravity CLI uses the active agy session model; `cli.agy.model` is ignored by runtime selection.
180
197
  - Antigravity normal text summaries run `agy --print <prompt>` in a temporary cwd with `--sandbox`. When the prompt or command length exceeds platform argv limits (e.g. 120 KB on Linux/macOS), the document `<content>` payload is automatically offloaded to a temporary file (`document.txt`) with restricted `0o600` permissions and referenced via `file://` in `--print`, preserving instructions before and after the content block in argv while cleaning up the single temporary directory on success, failure, or timeout. Untagged prompts are offloaded as a complete request. Short text prompts retain best-effort no-tools guidance; offloaded prompts permit reading the supplied document while discouraging file edits, local file links, and work-log narration. This is prompt steering, not a hard capability boundary. Attachment prompts keep the caller cwd so agy can inspect the requested path but do not auto-approve tools.
181
198
  - pi runs in JSON mode (`--print --mode json`) with `--no-tools`, `--no-context-files`, `--no-extensions`, `--no-skills`, `--no-session` for isolated summarization. It receives the summarize system prompt via `--system-prompt`, the summarize prompt over stdin, and reports usage/cost via JSONL events. Use `PI_PATH` to override the binary path.
199
+ - devin runs `devin --print --prompt-file <file> --export <atif>`. Normal text summaries run isolated by default: a temporary cwd plus fabricated `XDG_CONFIG_HOME`/`XDG_DATA_HOME` that carry only `credentials.toml` and a merged `config.json` (user config preserved but tools denied via `permissions.deny`, plugins/subagents/auto-update disabled, and other-agent rule imports suppressed). Token usage is read from the ATIF export; Devin does not report USD cost. Set `cli.devin.isolated` to `false` only when you intentionally need Devin to inherit your real config/sessions. Attachment prompts keep the caller cwd and real Devin home so read-only tools can inspect the requested path. Auth comes from `devin auth login` credentials or `WINDSURF_API_KEY`; use `DEVIN_PATH` to override the binary path.
200
+ - Devin reserves `--export` for a private result file per summary; `cli.devin.extraArgs` cannot override it. This prevents overlapping summaries from reading each other's output.
201
+ - Devin isolated text summaries always use a private empty working directory, even when the caller supplies a directory. Workspace trust is bypassed only there. Attachment runs and `cli.devin.isolated: false` retain the caller's directory and trust check: print mode rejects an untrusted project until you trust it in Devin. This keeps project startup hooks behind the CLI's own trust boundary.
202
+ - Devin isolation requires the system temporary directory to be outside a Git or Jujutsu checkout, because Devin searches parent directories for project configuration. If a custom `TMPDIR` or `TEMP` points inside a checkout, Summarize fails before launching Devin; choose a temporary directory outside the checkout. On Windows, authentication and user configuration come from `%APPDATA%\devin` even when XDG variables are set.
203
+ - Grok CLI runs headless via `grok --prompt-file <file> --output-format json` and reports token usage and cost. Text summaries always use a private cwd and home: only `auth.json` is copied into `GROK_HOME`; other agent configuration, hooks, sessions, and MCP servers are not inherited. Both the system instructions and document go into a mode-0600 prompt file, never argv. Built-in tools are removed, all tool calls and MCP are denied, web search and subagents are disabled, and a generated `--sandbox summarize` profile extending `strict` is mandatory. This generated policy is the only configuration added to the isolated home; no user configuration is copied. If Grok cannot apply strict sandboxing, the summary fails rather than weakening it. Requires Grok 1.0.41 or newer and `grok login` or `XAI_API_KEY`.
204
+ - Grok text isolation cannot be disabled with `cli.grok.isolated: false`. A custom temporary directory must be outside project and agent configuration trees. `cli.grok.extraArgs` accepts only `--reasoning-effort` (or `--effort`) and `--max-turns`; use `GROK_PATH` for the binary and `cli.grok.model` or `cli/grok/<model>` for model selection. Explicit local attachment prompts retain the caller cwd and real Grok configuration with `--always-approve --sandbox off`; untrusted remote attachments cannot use that mode.
182
205
  - Codex CLI normal text summaries run isolated by default: `codex exec --ephemeral --ignore-user-config --ignore-rules -C <temp-dir> ...` with a sanitized temporary `CODEX_HOME` that carries auth only. Set `cli.codex.isolated` to `false` only when you intentionally need Codex to inherit local config/rules.
183
206
  - Gemini CLI is invoked in headless mode with `--prompt` for compatibility with current Gemini CLI releases.
184
207
  - OpenClaw uses `openclaw agent --agent <model> --message <prompt> --json` because current OpenClaw requires `-m/--message`; very large extracted inputs are rejected before launch to avoid argv limits.
@@ -201,6 +224,8 @@ summarize --cli opencode --plain --timeout 2m /tmp/summarize-cli-smoke.txt
201
224
  summarize --cli copilot --plain --timeout 2m /tmp/summarize-cli-smoke.txt
202
225
  summarize --cli agy --plain --timeout 2m /tmp/summarize-cli-smoke.txt
203
226
  summarize --cli pi --plain --timeout 2m /tmp/summarize-cli-smoke.txt
227
+ summarize --cli devin --plain --timeout 2m /tmp/summarize-cli-smoke.txt
228
+ summarize --cli grok --plain --timeout 2m /tmp/summarize-cli-smoke.txt
204
229
  ```
205
230
 
206
231
  If Agent fails with auth, run `agent login` (interactive) or set `CURSOR_API_KEY`.
@@ -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.
@@ -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
- These flags apply to almost every subcommand:
33
+ Only two flags apply to every subcommand; the rest are per-command:
33
34
 
34
- | Flag | Purpose |
35
- | ----------------------------- | ----------------------------------------------------------------------------------------------- |
36
- | `--json` | Stable JSON envelope on stdout. Disables streaming. |
37
- | `--no-color` | Strip ANSI escapes from output. |
38
- | `--theme <name>` | Pick a CLI theme (`SUMMARIZE_THEME` env var also works). |
39
- | `--verbose` / `--debug` | Detailed progress on stderr. |
40
- | `--locale <locale>` | Interface language: `auto` plus the shipped UI locales (`SUMMARIZE_LOCALE` env var also works). |
41
- | `--metrics off\|on\|detailed` | Token + timing metrics line. Default `on`. |
42
- | `--timeout <duration>` | Cap fetching + LLM calls. Accepts `30`, `30s`, `2m`, `5000ms`. |
43
- | `-V`, `--version` | Print version and exit. |
44
- | `--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`. |
45
46
 
46
47
  ## Exit codes
47
48
 
48
- | Code | Meaning |
49
- | ----- | ------------------------------------------------------ |
50
- | `0` | Success. |
51
- | `1` | Generic failure (extraction, model, network, parsing). |
52
- | `2` | Usage error (bad flag, bad input). |
53
- | `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. |
54
55
 
55
- `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.