@steipete/summarize 0.16.2 → 0.17.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 (212) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +58 -13
  3. package/dist/esm/cache-keys.js +15 -0
  4. package/dist/esm/cache-keys.js.map +1 -1
  5. package/dist/esm/cache.js +12 -31
  6. package/dist/esm/cache.js.map +1 -1
  7. package/dist/esm/cli.js +1 -1
  8. package/dist/esm/cli.js.map +1 -1
  9. package/dist/esm/config/env.js +2 -0
  10. package/dist/esm/config/env.js.map +1 -1
  11. package/dist/esm/config/parse-helpers.js +3 -1
  12. package/dist/esm/config/parse-helpers.js.map +1 -1
  13. package/dist/esm/config/sections.js +8 -0
  14. package/dist/esm/config/sections.js.map +1 -1
  15. package/dist/esm/config/speakers.js +173 -0
  16. package/dist/esm/config/speakers.js.map +1 -0
  17. package/dist/esm/config.js +5 -0
  18. package/dist/esm/config.js.map +1 -1
  19. package/dist/esm/costs.js.map +1 -1
  20. package/dist/esm/daemon/agent-model.js +44 -8
  21. package/dist/esm/daemon/agent-model.js.map +1 -1
  22. package/dist/esm/daemon/agent.js +6 -0
  23. package/dist/esm/daemon/agent.js.map +1 -1
  24. package/dist/esm/daemon/chat.js +109 -18
  25. package/dist/esm/daemon/chat.js.map +1 -1
  26. package/dist/esm/daemon/env-snapshot.js +5 -0
  27. package/dist/esm/daemon/env-snapshot.js.map +1 -1
  28. package/dist/esm/daemon/flow-context.js +13 -2
  29. package/dist/esm/daemon/flow-context.js.map +1 -1
  30. package/dist/esm/daemon/models.js +26 -0
  31. package/dist/esm/daemon/models.js.map +1 -1
  32. package/dist/esm/daemon/server-admin-routes.js +10 -1
  33. package/dist/esm/daemon/server-admin-routes.js.map +1 -1
  34. package/dist/esm/daemon/server-summarize-request.js +1 -0
  35. package/dist/esm/daemon/server-summarize-request.js.map +1 -1
  36. package/dist/esm/daemon/server.js +72 -8
  37. package/dist/esm/daemon/server.js.map +1 -1
  38. package/dist/esm/daemon/url-fetch-guard.js +36 -11
  39. package/dist/esm/daemon/url-fetch-guard.js.map +1 -1
  40. package/dist/esm/flags.js +7 -0
  41. package/dist/esm/flags.js.map +1 -1
  42. package/dist/esm/llm/cli-provider-output.js +111 -1
  43. package/dist/esm/llm/cli-provider-output.js.map +1 -1
  44. package/dist/esm/llm/cli.js +87 -6
  45. package/dist/esm/llm/cli.js.map +1 -1
  46. package/dist/esm/llm/generate-text-stream.js +40 -22
  47. package/dist/esm/llm/generate-text-stream.js.map +1 -1
  48. package/dist/esm/llm/generate-text.js +31 -2
  49. package/dist/esm/llm/generate-text.js.map +1 -1
  50. package/dist/esm/llm/model-id.js +2 -1
  51. package/dist/esm/llm/model-id.js.map +1 -1
  52. package/dist/esm/llm/model-options.js +22 -0
  53. package/dist/esm/llm/model-options.js.map +1 -1
  54. package/dist/esm/llm/provider-profile.js +30 -4
  55. package/dist/esm/llm/provider-profile.js.map +1 -1
  56. package/dist/esm/llm/providers/anthropic.js +41 -3
  57. package/dist/esm/llm/providers/anthropic.js.map +1 -1
  58. package/dist/esm/llm/providers/minimax.js +6 -0
  59. package/dist/esm/llm/providers/minimax.js.map +1 -0
  60. package/dist/esm/llm/providers/models.js +30 -1
  61. package/dist/esm/llm/providers/models.js.map +1 -1
  62. package/dist/esm/llm/providers/openai.js +40 -10
  63. package/dist/esm/llm/providers/openai.js.map +1 -1
  64. package/dist/esm/model-auto-cli.js +5 -1
  65. package/dist/esm/model-auto-cli.js.map +1 -1
  66. package/dist/esm/model-spec.js +26 -2
  67. package/dist/esm/model-spec.js.map +1 -1
  68. package/dist/esm/run/cli-fallback-state.js +3 -1
  69. package/dist/esm/run/cli-fallback-state.js.map +1 -1
  70. package/dist/esm/run/env.js +8 -2
  71. package/dist/esm/run/env.js.map +1 -1
  72. package/dist/esm/run/flows/asset/summary-attempts.js +12 -6
  73. package/dist/esm/run/flows/asset/summary-attempts.js.map +1 -1
  74. package/dist/esm/run/flows/asset/summary.js +6 -3
  75. package/dist/esm/run/flows/asset/summary.js.map +1 -1
  76. package/dist/esm/run/flows/url/extraction-session.js +65 -3
  77. package/dist/esm/run/flows/url/extraction-session.js.map +1 -1
  78. package/dist/esm/run/flows/url/fetch-options.js +1 -0
  79. package/dist/esm/run/flows/url/fetch-options.js.map +1 -1
  80. package/dist/esm/run/flows/url/flow.js +1 -1
  81. package/dist/esm/run/flows/url/flow.js.map +1 -1
  82. package/dist/esm/run/flows/url/markdown.js +38 -7
  83. package/dist/esm/run/flows/url/markdown.js.map +1 -1
  84. package/dist/esm/run/flows/url/slides-text-markdown.js +57 -9
  85. package/dist/esm/run/flows/url/slides-text-markdown.js.map +1 -1
  86. package/dist/esm/run/flows/url/summary-resolution.js +13 -7
  87. package/dist/esm/run/flows/url/summary-resolution.js.map +1 -1
  88. package/dist/esm/run/flows/url/types.js.map +1 -1
  89. package/dist/esm/run/help.js +17 -2
  90. package/dist/esm/run/help.js.map +1 -1
  91. package/dist/esm/run/run-config.js +8 -5
  92. package/dist/esm/run/run-config.js.map +1 -1
  93. package/dist/esm/run/run-env.js +14 -1
  94. package/dist/esm/run/run-env.js.map +1 -1
  95. package/dist/esm/run/run-metrics.js +25 -2
  96. package/dist/esm/run/run-metrics.js.map +1 -1
  97. package/dist/esm/run/run-models.js +4 -0
  98. package/dist/esm/run/run-models.js.map +1 -1
  99. package/dist/esm/run/run-settings-parse.js +4 -0
  100. package/dist/esm/run/run-settings-parse.js.map +1 -1
  101. package/dist/esm/run/run-settings.js +3 -2
  102. package/dist/esm/run/run-settings.js.map +1 -1
  103. package/dist/esm/run/runner-contexts.js +2 -0
  104. package/dist/esm/run/runner-contexts.js.map +1 -1
  105. package/dist/esm/run/runner-flags.js +27 -1
  106. package/dist/esm/run/runner-flags.js.map +1 -1
  107. package/dist/esm/run/runner-plan.js +29 -3
  108. package/dist/esm/run/runner-plan.js.map +1 -1
  109. package/dist/esm/run/runner-setup.js +9 -1
  110. package/dist/esm/run/runner-setup.js.map +1 -1
  111. package/dist/esm/run/streaming.js +1 -0
  112. package/dist/esm/run/streaming.js.map +1 -1
  113. package/dist/esm/run/summary-engine.js +40 -5
  114. package/dist/esm/run/summary-engine.js.map +1 -1
  115. package/dist/esm/shared/cache-store.js +68 -0
  116. package/dist/esm/shared/cache-store.js.map +1 -0
  117. package/dist/esm/shared/dns-pinned-fetch.js +93 -0
  118. package/dist/esm/shared/dns-pinned-fetch.js.map +1 -0
  119. package/dist/esm/shared/fetch-capabilities.js +37 -0
  120. package/dist/esm/shared/fetch-capabilities.js.map +1 -0
  121. package/dist/esm/shared/slides-presentation.js +3 -2
  122. package/dist/esm/shared/slides-presentation.js.map +1 -1
  123. package/dist/esm/shared/sse-events.js.map +1 -1
  124. package/dist/esm/shared/transcript-diarization-cache-scope.js +71 -0
  125. package/dist/esm/shared/transcript-diarization-cache-scope.js.map +1 -0
  126. package/dist/esm/slides/extract.js +11 -3
  127. package/dist/esm/slides/extract.js.map +1 -1
  128. package/dist/esm/slides/frame-extraction.js.map +1 -1
  129. package/dist/esm/slides/process.js +14 -3
  130. package/dist/esm/slides/process.js.map +1 -1
  131. package/dist/esm/slides/scene-detection.js +1 -1
  132. package/dist/esm/slides/scene-detection.js.map +1 -1
  133. package/dist/esm/speaker-identification/identify.js +274 -0
  134. package/dist/esm/speaker-identification/identify.js.map +1 -0
  135. package/dist/esm/speaker-identification/index.js +5 -0
  136. package/dist/esm/speaker-identification/index.js.map +1 -0
  137. package/dist/esm/speaker-identification/openai.js +110 -0
  138. package/dist/esm/speaker-identification/openai.js.map +1 -0
  139. package/dist/esm/speaker-identification/remember.js +181 -0
  140. package/dist/esm/speaker-identification/remember.js.map +1 -0
  141. package/dist/esm/speaker-identification/settings.js +110 -0
  142. package/dist/esm/speaker-identification/settings.js.map +1 -0
  143. package/dist/esm/speaker-identification/types.js +2 -0
  144. package/dist/esm/speaker-identification/types.js.map +1 -0
  145. package/dist/esm/tokenizer.js +25 -0
  146. package/dist/esm/tokenizer.js.map +1 -0
  147. package/dist/esm/version.js +1 -1
  148. package/dist/types/cache-keys.d.ts +8 -0
  149. package/dist/types/cache.d.ts +3 -11
  150. package/dist/types/config/speakers.d.ts +2 -0
  151. package/dist/types/config/types.d.ts +43 -1
  152. package/dist/types/config.d.ts +1 -1
  153. package/dist/types/costs.d.ts +2 -2
  154. package/dist/types/daemon/agent-model.d.ts +1 -0
  155. package/dist/types/daemon/env-snapshot.d.ts +1 -1
  156. package/dist/types/daemon/models.d.ts +3 -0
  157. package/dist/types/daemon/url-fetch-guard.d.ts +2 -1
  158. package/dist/types/flags.d.ts +2 -0
  159. package/dist/types/llm/cli-provider-output.d.ts +6 -1
  160. package/dist/types/llm/cli.d.ts +2 -1
  161. package/dist/types/llm/model-id.d.ts +1 -1
  162. package/dist/types/llm/model-options.d.ts +20 -0
  163. package/dist/types/llm/provider-profile.d.ts +4 -3
  164. package/dist/types/llm/providers/anthropic.d.ts +29 -2
  165. package/dist/types/llm/providers/minimax.d.ts +1 -0
  166. package/dist/types/llm/providers/models.d.ts +5 -0
  167. package/dist/types/llm/providers/openai.d.ts +6 -1
  168. package/dist/types/model-spec.d.ts +2 -2
  169. package/dist/types/run/flows/asset/summary.d.ts +2 -0
  170. package/dist/types/run/flows/url/fetch-options.d.ts +1 -0
  171. package/dist/types/run/flows/url/markdown.d.ts +1 -1
  172. package/dist/types/run/flows/url/slides-text-markdown.d.ts +2 -1
  173. package/dist/types/run/flows/url/types.d.ts +9 -2
  174. package/dist/types/run/run-config.d.ts +3 -2
  175. package/dist/types/run/run-context.d.ts +5 -1
  176. package/dist/types/run/run-env.d.ts +3 -0
  177. package/dist/types/run/run-settings.d.ts +4 -2
  178. package/dist/types/run/runner-flags.d.ts +6 -1
  179. package/dist/types/run/runner-setup.d.ts +1 -0
  180. package/dist/types/run/summary-engine.d.ts +9 -4
  181. package/dist/types/run/types.d.ts +1 -1
  182. package/dist/types/shared/cache-store.d.ts +34 -0
  183. package/dist/types/shared/dns-pinned-fetch.d.ts +1 -0
  184. package/dist/types/shared/fetch-capabilities.d.ts +10 -0
  185. package/dist/types/shared/slides-presentation.d.ts +2 -1
  186. package/dist/types/shared/sse-events.d.ts +1 -0
  187. package/dist/types/shared/transcript-diarization-cache-scope.d.ts +11 -0
  188. package/dist/types/slides/frame-extraction.d.ts +4 -3
  189. package/dist/types/slides/process.d.ts +8 -3
  190. package/dist/types/slides/scene-detection.d.ts +4 -3
  191. package/dist/types/speaker-identification/identify.d.ts +40 -0
  192. package/dist/types/speaker-identification/index.d.ts +5 -0
  193. package/dist/types/speaker-identification/openai.d.ts +27 -0
  194. package/dist/types/speaker-identification/remember.d.ts +7 -0
  195. package/dist/types/speaker-identification/settings.d.ts +6 -0
  196. package/dist/types/speaker-identification/types.d.ts +38 -0
  197. package/dist/types/tokenizer.d.ts +1 -0
  198. package/dist/types/version.d.ts +1 -1
  199. package/docs/README.md +1 -1
  200. package/docs/cache.md +1 -1
  201. package/docs/chrome-extension.md +6 -4
  202. package/docs/cli.md +30 -3
  203. package/docs/commands/slides.md +3 -3
  204. package/docs/commands/summarize.md +22 -2
  205. package/docs/config.md +40 -2
  206. package/docs/index.md +1 -1
  207. package/docs/install.md +11 -9
  208. package/docs/llm.md +15 -2
  209. package/docs/media.md +2 -1
  210. package/docs/transcript-provider-flow.md +10 -0
  211. package/docs/youtube.md +45 -1
  212. package/package.json +16 -16
@@ -12,12 +12,13 @@ Goal: Chrome **Side Panel** (“real sidebar”) summarizes **what you see** on
12
12
 
13
13
  Quickstart:
14
14
 
15
- - Install summarize (choose one):
15
+ - Build/load extension: `apps/chrome-extension/README.md`
16
+ - Chrome Browser mode works immediately without a daemon for page summaries and fetchable video slides.
17
+ - Optional: install summarize for daemon-backed media support:
16
18
  - `npm i -g @steipete/summarize`
17
19
  - `brew install summarize` (macOS, Linux)
18
- - Build/load extension: `apps/chrome-extension/README.md`
19
20
  - Firefox sidebar build: `pnpm -C apps/chrome-extension build:firefox` (load via `about:debugging` → temporary add-on)
20
- - Open side panel → copy token install command → run:
21
+ - Open side panel → copy token install command → run for daemon mode:
21
22
  - `summarize daemon install --token <TOKEN>` (macOS: LaunchAgent, Linux: systemd user, Windows: Scheduled Task)
22
23
  - Verify:
23
24
  - `summarize daemon status`
@@ -80,6 +81,7 @@ Dev (repo checkout):
80
81
  - **Extension (MV3, WXT)**
81
82
  - Side Panel UI: length + typography controls (font family + size), auto/manual toggle.
82
83
  - Background service worker: tab + navigation tracking, content extraction, starts summarize runs.
84
+ - Chrome offscreen page: runs bundled FFmpeg WebAssembly workers for daemonless video slides.
83
85
  - Content script: extract readable article text from the **rendered DOM** via Readability; also detect SPA URL changes.
84
86
  - Panel page streams SSE directly (MV3 service workers can be flaky for long-lived streams).
85
87
  - **Daemon (local, autostart service)**
@@ -118,7 +120,7 @@ See `docs/media.md` for detection and transcript rules.
118
120
  ## Slides (Side Panel)
119
121
 
120
122
  - The slides toggle lights up on media-friendly URLs (YouTube/watch|shorts, youtu.be, direct media) or when the page reports video/audio. Defaults to Video on those pages.
121
- - Turning slides **on** refreshes the current summary and requests slide extraction (`yt-dlp`, `ffmpeg`). OCR text is opt-in (Advanced setting) and requires `tesseract`. Missing tools surface a footer notice with install instructions; restart the daemon after installing.
123
+ - Turning slides **on** refreshes the current summary and requests slide extraction. Chrome Browser mode uses bundled FFmpeg WebAssembly for fetchable videos up to 128 MB and falls back to visible-tab capture. Daemon mode adds `yt-dlp`, native ffmpeg, and optional `tesseract` OCR.
122
124
  - Active slide mode is slide-first:
123
125
  - vertical image/text cards
124
126
  - transcript-first text; OCR fallback
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, and GitHub Copilot."
4
+ summary: "CLI model providers and config for Claude, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, GitHub Copilot, Antigravity, and pi."
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) as local model backends.
11
+ Summarize can use installed CLIs (Claude, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, GitHub Copilot, Antigravity, pi) as local model backends.
12
12
 
13
13
  ## Model ids
14
14
 
@@ -22,8 +22,12 @@ Summarize can use installed CLIs (Claude, Codex, Gemini, Cursor Agent, OpenClaw,
22
22
  - `cli/opencode` (use the OpenCode runtime default model)
23
23
  - `cli/copilot/<model>` (e.g. `cli/copilot/gpt-5.2`)
24
24
  - `cli/copilot` (use the Copilot CLI runtime default model)
25
+ - `cli/agy` (use the Antigravity CLI active session model)
26
+ - `cli/pi/<model>` (e.g. `cli/pi/sonnet`)
27
+ - `cli/pi` (use pi's configured default model)
25
28
 
26
29
  Use `--cli [provider]` (case-insensitive) for the provider default, or `--model cli/<provider>/<model>` to pin a model.
30
+ 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`.
27
31
  If `--cli` is provided without a provider, auto selection is used with CLI enabled.
28
32
 
29
33
  Codex GPT Fast:
@@ -42,6 +46,7 @@ Auto mode can prepend CLI attempts in two ways:
42
46
  - Applies only to **implicit** auto (when no model is set via flag/env/config).
43
47
  - Default behavior: only when no API key is configured.
44
48
  - Default order: `claude, gemini, codex, agent, openclaw, opencode, copilot`.
49
+ - Antigravity and pi are opt-in unless added to `cli.autoFallback.order`.
45
50
  - Remembers + prioritizes the last successful CLI provider (`~/.summarize/cli-state.json`).
46
51
 
47
52
  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).
@@ -100,13 +105,25 @@ path-based prompt and enables the required tool flags:
100
105
  - Agent: uses built-in file tools in `agent --print` mode (no extra flags)
101
106
  - OpenCode: `opencode run --format json ... --file <path>` when a file/image path is required
102
107
  - Copilot: `copilot -p <prompt>`; passes `--model <model>` when one is configured
108
+ - Antigravity: `agy --print`; does not auto-approve tools for attachment prompts
109
+ - pi: `pi --print --mode json`; passes `--system-prompt`, sends prompt over stdin, and uses `--no-tools` for isolated summaries
103
110
 
104
111
  ## Config
105
112
 
106
113
  ```json
107
114
  {
108
115
  "cli": {
109
- "enabled": ["claude", "gemini", "codex", "agent", "openclaw", "opencode", "copilot"],
116
+ "enabled": [
117
+ "claude",
118
+ "gemini",
119
+ "codex",
120
+ "agent",
121
+ "openclaw",
122
+ "opencode",
123
+ "copilot",
124
+ "agy",
125
+ "pi"
126
+ ],
110
127
  "autoFallback": {
111
128
  "enabled": true,
112
129
  "onlyWhenNoApiKeys": true,
@@ -132,6 +149,12 @@ path-based prompt and enables the required tool flags:
132
149
  },
133
150
  "copilot": {
134
151
  "binary": "/usr/local/bin/copilot"
152
+ },
153
+ "agy": {
154
+ "binary": "/usr/local/bin/agy"
155
+ },
156
+ "pi": {
157
+ "binary": "/usr/local/bin/pi"
135
158
  }
136
159
  }
137
160
  }
@@ -142,6 +165,9 @@ Notes:
142
165
  - CLI output is treated as text only (no token accounting).
143
166
  - If a CLI call fails, auto mode falls back to the next candidate.
144
167
  - Cursor Agent CLI uses the `agent` binary and relies on Cursor CLI auth (login or `CURSOR_API_KEY`).
168
+ - Antigravity CLI uses the active agy session model; `cli.agy.model` is ignored by runtime selection.
169
+ - Antigravity normal text summaries run `agy --print` with no prompt argument in a temporary cwd with `--sandbox`, streaming the prompt over stdin so extracted content is not exposed in argv. Attachment prompts keep the caller cwd so agy can inspect the requested path but do not auto-approve tools.
170
+ - 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.
145
171
  - 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.
146
172
  - Gemini CLI is invoked in headless mode with `--prompt` for compatibility with current Gemini CLI releases.
147
173
  - 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.
@@ -162,6 +188,7 @@ summarize --cli agent --plain --timeout 2m /tmp/summarize-cli-smoke.txt
162
188
  summarize --cli openclaw --plain --timeout 2m /tmp/summarize-cli-smoke.txt
163
189
  summarize --cli opencode --plain --timeout 2m /tmp/summarize-cli-smoke.txt
164
190
  summarize --cli copilot --plain --timeout 2m /tmp/summarize-cli-smoke.txt
191
+ summarize --cli pi --plain --timeout 2m /tmp/summarize-cli-smoke.txt
165
192
  ```
166
193
 
167
194
  If Agent fails with auth, run `agent login` (interactive) or set `CURSOR_API_KEY`.
@@ -11,7 +11,7 @@ summary: "Extract scene-change keyframes from a video URL into PNG files."
11
11
  summarize slides <url> [flags]
12
12
  ```
13
13
 
14
- Extracts slide-shaped keyframes from a YouTube or direct video URL using `ffmpeg` scene detection. Output is a directory of PNGs (and optional OCR text). This is the standalone form of the `--slides` flag on the main command — useful when you only want the slides without a summary.
14
+ Extracts slide-shaped keyframes from a YouTube or direct video URL using FFmpeg scene detection. Native ffmpeg is preferred; bundled FFmpeg WebAssembly is used when native `ffmpeg`/`ffprobe` are unavailable. Output is a directory of PNGs (and optional OCR text). This is the standalone form of the `--slides` flag on the main command — useful when you only want the slides without a summary.
15
15
 
16
16
  ## Synopsis
17
17
 
@@ -24,11 +24,11 @@ summarize slides "https://example.com/lecture.mp4" --slides-max 12
24
24
 
25
25
  ## Requirements
26
26
 
27
- - `ffmpeg` on PATH (scene detection + frame extraction).
27
+ - Bundled FFmpeg WebAssembly, or native `ffmpeg` on PATH for faster extraction and broader codec support.
28
28
  - `yt-dlp` on PATH for YouTube URLs.
29
29
  - `tesseract` on PATH for `--slides-ocr`.
30
30
 
31
- If a tool is missing, summarize prints a clear warning and exits non-zero.
31
+ If a required tool is missing, summarize prints a clear warning and exits non-zero.
32
32
 
33
33
  ## Flags
34
34
 
@@ -69,6 +69,21 @@ If `[input]` is omitted, summarize prints concise help and exits.
69
69
  `--timestamps`
70
70
  : Include timestamps in transcripts when available.
71
71
 
72
+ `--diarize [provider]`
73
+ : Force speaker-labelled YouTube audio transcription. Provider: `auto`, `elevenlabs`, or `openai`.
74
+
75
+ `--identify-speakers` / `--no-identify-speakers`
76
+ : Resolve generic diarization labels to names, or disable configured resolution for one run. Uses authoritative anchors and OpenAI GPT-5.5 context inference.
77
+
78
+ `--speaker-profile <name>`
79
+ : Select a reusable profile from `speakers.profiles` in the config file.
80
+
81
+ `--speaker-at <timestamp=name>`
82
+ : Name the speaker active at a timestamp. Repeat the flag for multiple speakers.
83
+
84
+ `--remember-speakers`
85
+ : Atomically persist resolved names, anchors, and a transcript-hash-guarded source mapping under the selected profile.
86
+
72
87
  ### Slides
73
88
 
74
89
  `--slides [value]`
@@ -109,10 +124,10 @@ If `[input]` is omitted, summarize prints concise help and exits.
109
124
  ### Models
110
125
 
111
126
  `--model <model>`
112
- : Model id. `auto`, `<config-preset>`, `cli/<provider>/<model>`, `xai/...`, `openai/...`, `nvidia/...`, `google/...`, `anthropic/...`, `zai/...`, `github-copilot/...`, or `openrouter/<author>/<slug>`. Default `auto`. See [LLM overview](../llm.md).
127
+ : Model id. `auto`, `<config-preset>`, `cli/<provider>/<model>`, `xai/...`, `openai/...`, `nvidia/...`, `minimax/...`, `google/...`, `anthropic/...`, `zai/...`, `github-copilot/...`, or `openrouter/<author>/<slug>`. Default `auto`. See [LLM overview](../llm.md).
113
128
 
114
129
  `--cli [provider]`
115
- : Use a logged-in CLI provider: `claude`, `gemini`, `codex`, `agent`, `openclaw`, `opencode`, `copilot`. Equivalent to `--model cli/<provider>`. Without a value: enable CLI providers in auto-selection.
130
+ : Use a logged-in CLI provider: `claude`, `gemini`, `codex`, `agent`, `openclaw`, `opencode`, `copilot`, `agy`, `pi`. Equivalent to `--model cli/<provider>`. Without a value: enable CLI providers in auto-selection.
116
131
 
117
132
  `--thinking <effort>`
118
133
  : OpenAI reasoning effort. `none`, `low`, `medium`, `high`, `xhigh`. Aliases: `off`, `min`, `mid`. Only affects reasoning-capable OpenAI models.
@@ -195,6 +210,11 @@ summarize "https://example.com" --extract --format md
195
210
  summarize "https://www.youtube.com/watch?v=..." \
196
211
  --extract --format md --markdown-mode llm
197
212
 
213
+ # ElevenLabs diarization with verified speaker names.
214
+ summarize "https://www.youtube.com/watch?v=..." --extract \
215
+ --diarize elevenlabs --identify-speakers \
216
+ --speaker-profile my-podcast --speaker-at "0:12=Host Name" --remember-speakers
217
+
198
218
  # Inline slides + summary.
199
219
  summarize "https://www.youtube.com/watch?v=..." --slides
200
220
 
package/docs/config.md CHANGED
@@ -138,6 +138,7 @@ Legacy shortcut (still supported):
138
138
  "openai": "sk-...",
139
139
  "groq": "gsk-...",
140
140
  "assemblyai": "...",
141
+ "elevenlabs": "...",
141
142
  "anthropic": "sk-ant-...",
142
143
  "google": "...",
143
144
  "openrouter": "sk-or-...",
@@ -205,6 +206,36 @@ Enable slides by default and tune extraction parameters:
205
206
  }
206
207
  ```
207
208
 
209
+ ## Speaker identification
210
+
211
+ Define reusable names and context for diarized YouTube transcripts:
212
+
213
+ ```json
214
+ {
215
+ "speakers": {
216
+ "defaultProfile": "modern-wisdom",
217
+ "autoIdentify": true,
218
+ "model": "openai/gpt-5.5",
219
+ "minimumConfidence": 0.85,
220
+ "profiles": {
221
+ "modern-wisdom": {
222
+ "host": "Chris Williamson",
223
+ "knownSpeakers": ["Chris Williamson"],
224
+ "context": "Modern Wisdom podcast. Chris Williamson is the host."
225
+ }
226
+ }
227
+ }
228
+ }
229
+ ```
230
+
231
+ Run with `--diarize`, then use `--speaker-profile`, repeatable `--speaker-at <timestamp=name>`, and
232
+ `--remember-speakers` to verify and persist a video's label mapping. `autoIdentify` enables identity
233
+ resolution whenever diarization is requested. `--no-identify-speakers` disables it for one run.
234
+
235
+ Remembered mappings live under `speakers.sources["youtube:<video-id>"]`. They include a transcript hash
236
+ and are ignored if provider output changes. Profile-level `model`, `minimumConfidence`, and `autoIdentify`
237
+ override the corresponding top-level speaker settings.
238
+
208
239
  ## Logging (daemon)
209
240
 
210
241
  Enable JSON log files for the daemon:
@@ -361,7 +392,7 @@ Examples:
361
392
  ```json
362
393
  {
363
394
  "cli": {
364
- "enabled": ["gemini", "agent", "openclaw", "opencode", "copilot"],
395
+ "enabled": ["gemini", "agent", "openclaw", "opencode", "copilot", "agy", "pi"],
365
396
  "autoFallback": {
366
397
  "enabled": true,
367
398
  "onlyWhenNoApiKeys": true,
@@ -372,7 +403,9 @@ Examples:
372
403
  "agent": { "binary": "/usr/local/bin/agent", "model": "gpt-5.2" },
373
404
  "openclaw": { "binary": "/usr/local/bin/openclaw", "model": "main" },
374
405
  "opencode": { "binary": "/usr/local/bin/opencode", "model": "openai/gpt-5.4" },
375
- "copilot": { "binary": "/usr/local/bin/copilot", "model": "gpt-5.2" }
406
+ "copilot": { "binary": "/usr/local/bin/copilot", "model": "gpt-5.2" },
407
+ "agy": { "binary": "/usr/local/bin/agy" },
408
+ "pi": { "binary": "/usr/local/bin/pi" }
376
409
  }
377
410
  }
378
411
  ```
@@ -382,9 +415,12 @@ Notes:
382
415
  - `cli.enabled` is an allowlist (and order) for auto + explicit CLI model ids.
383
416
  - `cli.autoFallback` controls implicit-auto CLI fallback when `cli.enabled` is not set.
384
417
  - Default auto fallback order: `claude, gemini, codex, agent, openclaw, opencode, copilot`.
418
+ - Antigravity and pi are opt-in unless added to `cli.autoFallback.order`.
385
419
  - Auto fallback stores the last successful provider in `~/.summarize/cli-state.json` and prioritizes it on the next run.
386
420
  - `cli.<provider>.binary` overrides CLI binary discovery.
387
421
  - `cli.<provider>.extraArgs` appends extra CLI args.
422
+ - Antigravity CLI uses the active agy session model; `cli.agy.model` is ignored by runtime selection.
423
+ - pi CLI runs `pi --print --mode json`, passes extracted content over stdin, and accepts configured or per-call models; use `PI_PATH` to override binary.
388
424
  - `cli.codex.isolated` defaults to `true` for normal summaries, adding Codex ephemeral/no-user-config/no-rules flags, a temporary cwd, and a sanitized temporary `CODEX_HOME` that carries auth only. Set it to `false` only when local Codex config/rules are intentional.
389
425
 
390
426
  ## OpenAI config
@@ -416,6 +452,7 @@ Override API endpoints for any provider to use proxies, gateways, or compatible
416
452
  "google": { "baseUrl": "https://my-google-proxy.example.com" },
417
453
  "xai": { "baseUrl": "https://my-xai-proxy.example.com" },
418
454
  "zai": { "baseUrl": "https://api.zhipuai.cn/paas/v4" },
455
+ "minimax": { "baseUrl": "https://api.minimax.io/v1" },
419
456
  "ollama": { "baseUrl": "http://localhost:11434/v1" }
420
457
  }
421
458
  ```
@@ -430,4 +467,5 @@ Or via environment variables (which take precedence over config):
430
467
  | Google | `GOOGLE_BASE_URL` (alias: `GEMINI_BASE_URL`) |
431
468
  | xAI | `XAI_BASE_URL` |
432
469
  | Z.AI | `Z_AI_BASE_URL` (alias: `ZAI_BASE_URL`) |
470
+ | MiniMax | `MINIMAX_BASE_URL` |
433
471
  | Ollama | `OLLAMA_BASE_URL` |
package/docs/index.md CHANGED
@@ -48,7 +48,7 @@ summarize "https://example.com" --json --metrics detailed
48
48
 
49
49
  - **Real extraction.** Readability for articles, `markitdown` for files, Firecrawl as a fallback when sites fight back.
50
50
  - **Media-aware.** YouTube and podcast pages prefer published transcripts, then `yt-dlp` + Whisper, then optional ONNX models (Parakeet/Canary).
51
- - **Provider-agnostic models.** xAI, OpenAI, Google, Anthropic, NVIDIA, Z.AI, OpenRouter, GitHub Copilot, Ollama (local) — plus local CLI providers (Claude Code, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, Copilot CLI).
51
+ - **Provider-agnostic models.** xAI, OpenAI, Google, Anthropic, NVIDIA, Z.AI, OpenRouter, GitHub Copilot, Ollama (local) — plus local CLI providers (Claude Code, Codex, Gemini, Cursor Agent, OpenClaw, OpenCode, Copilot CLI, Antigravity, pi).
52
52
  - **Shaped output.** Streamed ANSI Markdown for terminals, plain text for pipes, JSON envelope for scripts, ANSI-stripped under `--no-color`.
53
53
  - **Slides for video.** `--slides` extracts scene-change keyframes and renders them inline (Kitty / iTerm) or saves them to disk.
54
54
  - **Stays local.** Optional daemon + Chrome Side Panel pair the CLI with the active tab. The daemon binds to `127.0.0.1` only and uses a shared bearer token.
package/docs/install.md CHANGED
@@ -6,13 +6,13 @@ summary: "Install the summarize CLI and optional media dependencies."
6
6
 
7
7
  # Install
8
8
 
9
- `summarize` ships as a single npm package and a Homebrew formula. The CLI works on its own; the Chrome Side Panel needs the local daemon (covered in [Chrome extension](chrome-extension.md)).
9
+ `summarize` ships as a single npm package and a Homebrew formula. The CLI works on its own. Chrome Browser mode also works without the local daemon; the daemon adds faster and broader media support.
10
10
 
11
11
  ## Requirements
12
12
 
13
13
  - Node **24 or newer**.
14
14
  - macOS, Linux, or Windows. Containers work too — see [Notes](#notes-windows-containers) below.
15
- - Optional: `ffmpeg`, `yt-dlp`, `tesseract` for media-heavy features.
15
+ - Optional: native `ffmpeg`, `yt-dlp`, `tesseract` for expanded media support.
16
16
 
17
17
  ## CLI
18
18
 
@@ -54,12 +54,12 @@ import { createLinkPreviewClient } from "@steipete/summarize-core/content";
54
54
 
55
55
  These unlock media features but are not required for plain web pages.
56
56
 
57
- | Tool | Required for |
58
- | ------------------------------ | ------------------------------------------------------------------------ |
59
- | `ffmpeg` | `--slides` extraction; many local media + transcription flows |
60
- | `yt-dlp` | YouTube slide extraction and some remote media flows |
61
- | `tesseract` | OCR text on extracted slides via `--slides-ocr` |
62
- | `whisper.cpp` (binary on PATH) | Local audio transcription fallback (preferred over cloud when available) |
57
+ | Tool | Required for |
58
+ | ------------------------------ | ------------------------------------------------------------------------- |
59
+ | `ffmpeg` | Faster extraction/transcoding and broader codecs than bundled WebAssembly |
60
+ | `yt-dlp` | YouTube slide extraction and some remote media flows |
61
+ | `tesseract` | OCR text on extracted slides via `--slides-ocr` |
62
+ | `whisper.cpp` (binary on PATH) | Local audio transcription fallback (preferred over cloud when available) |
63
63
 
64
64
  ### macOS
65
65
 
@@ -88,7 +88,9 @@ export OPENAI_API_KEY=...
88
88
  export FAL_KEY=...
89
89
  ```
90
90
 
91
- If `--slides` is enabled and `ffmpeg`/`yt-dlp` are missing, summarize logs a warning and continues without slides — it never fails the run.
91
+ If native `ffmpeg`/`ffprobe` are missing, summarize falls back to its bundled LGPL FFmpeg WebAssembly build. Native ffmpeg remains recommended for speed and broader codec/filter support. YouTube downloads still require `yt-dlp`.
92
+
93
+ Set `SUMMARIZE_DISABLE_FFMPEG_WASM=1` to disable the bundled fallback.
92
94
 
93
95
  ## Provider keys
94
96
 
package/docs/llm.md CHANGED
@@ -28,6 +28,8 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
28
28
  - `OPENAI_USE_CHAT_COMPLETIONS` (optional; force OpenAI chat completions)
29
29
  - `NVIDIA_API_KEY` (required for `nvidia/...` models; alias: `NGC_API_KEY`)
30
30
  - `NVIDIA_BASE_URL` (optional; override NVIDIA OpenAI-compatible API endpoint; default: `https://integrate.api.nvidia.com/v1`)
31
+ - `MINIMAX_API_KEY` (required for `minimax/...` models)
32
+ - `MINIMAX_BASE_URL` (optional; override MiniMax OpenAI-compatible API endpoint; default: `https://api.minimax.io/v1`)
31
33
  - `OPENROUTER_API_KEY` (optional; required for `openrouter/...` models; also used when `OPENAI_BASE_URL` points to OpenRouter)
32
34
  - `GITHUB_TOKEN` / `GH_TOKEN` (required for `github-copilot/...` models via GitHub Models)
33
35
  - `Z_AI_API_KEY` (required for `zai/...` models; supports `ZAI_API_KEY` alias)
@@ -38,7 +40,7 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
38
40
  - `ANTHROPIC_API_KEY` (required for `anthropic/...` models)
39
41
  - `ANTHROPIC_BASE_URL` (optional; override Anthropic API endpoint)
40
42
  - `SUMMARIZE_MODEL` (optional; overrides default model selection)
41
- - `CLAUDE_PATH` / `CODEX_PATH` / `GEMINI_PATH` / `AGENT_PATH` / `OPENCLAW_PATH` / `OPENCODE_PATH` / `COPILOT_PATH` (optional; override CLI binary paths)
43
+ - `CLAUDE_PATH` / `CODEX_PATH` / `GEMINI_PATH` / `AGENT_PATH` / `OPENCLAW_PATH` / `OPENCODE_PATH` / `COPILOT_PATH` / `AGY_PATH` / `PI_PATH` (optional; override CLI binary paths)
42
44
 
43
45
  ## Flags
44
46
 
@@ -53,6 +55,8 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
53
55
  - `cli/openclaw/main`
54
56
  - `cli/opencode/openai/gpt-5.4`
55
57
  - `cli/copilot/gpt-5.2`
58
+ - `cli/agy`
59
+ - `cli/pi/openai/gpt-5.4`
56
60
  - `openai/gpt-5.4`
57
61
  - `openai/gpt-5.4-mini`
58
62
  - `openai/gpt-5.4-nano`
@@ -61,6 +65,7 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
61
65
  - `openai/gpt-5-nano`
62
66
  - `github-copilot/gpt-5.4`
63
67
  - `nvidia/z-ai/glm5`
68
+ - `minimax/MiniMax-M3`
64
69
  - `zai/glm-4.7`
65
70
  - `ollama/qwen3:14b`
66
71
  - `ollama/llama3.1:8b`
@@ -69,7 +74,7 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
69
74
  - `anthropic/claude-sonnet-4-5`
70
75
  - `openrouter/meta-llama/llama-3.3-70b-instruct:free` (force OpenRouter)
71
76
  - `--cli [provider]`
72
- - Examples: `--cli claude`, `--cli Gemini`, `--cli codex`, `--cli agent`, `--cli openclaw`, `--cli opencode`, `--cli copilot` (equivalent to `--model cli/<provider>`); `--cli` alone uses auto selection with CLI enabled.
77
+ - Examples: `--cli claude`, `--cli Gemini`, `--cli codex`, `--cli agent`, `--cli openclaw`, `--cli opencode`, `--cli copilot`, `--cli agy`, `--cli pi` (equivalent to `--model cli/<provider>`); `--cli` alone uses auto selection with CLI enabled.
73
78
  - `--model auto`
74
79
  - See `docs/model-auto.md`
75
80
  - `--model <preset>`
@@ -122,6 +127,14 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
122
127
 
123
128
  Use `--model zai/<model>` (e.g. `zai/glm-4.7`). Defaults to Z.AI’s base URL and uses chat completions.
124
129
 
130
+ ## MiniMax
131
+
132
+ Use `--model minimax/<model>` (e.g. `minimax/MiniMax-M3`). Requires `MINIMAX_API_KEY`. Defaults to
133
+ MiniMax’s OpenAI-compatible base URL (`https://api.minimax.io/v1`) and uses chat completions.
134
+ Override the endpoint with `MINIMAX_BASE_URL` or `minimax.baseUrl` in config (e.g. the China
135
+ endpoint). The model id is passed through verbatim, so use MiniMax’s exact casing (e.g. `MiniMax-M3`).
136
+ Reasoning is requested through MiniMax’s separated response fields and omitted from summary text.
137
+
125
138
  ## Ollama
126
139
 
127
140
  Use `--model ollama/<model>` (e.g. `ollama/qwen3:14b`, `ollama/gemma3:12b`) to talk to a local
package/docs/media.md CHANGED
@@ -26,7 +26,8 @@ read_when:
26
26
  - YouTube still uses the YouTube transcript pipeline (captions → yt-dlp fallback).
27
27
  - X/Twitter status URLs with detected video auto-switch to transcript-first (yt-dlp), even in auto mode.
28
28
  - X broadcasts (`/i/broadcasts/...`) are treated as media-only and go transcript-first by default.
29
- - Local media files are capped at 2 GB; remote media URLs are best-effort via yt-dlp (no explicit size limit).
29
+ - Local media files are capped at 2 GB. Remote podcast/media transcription downloads are capped at 512 MB by default and fail closed with `Remote media too large` even when the server omits or under-reports `Content-Length`; other remote media URLs are best-effort via yt-dlp.
30
+ - Operators who accept the disk/DoS tradeoff for larger remote podcast/media files can opt in with `SUMMARIZE_REMOTE_MEDIA_MAX_BYTES=<positive integer byte limit>`. The override must be a finite positive integer byte count; fractional, sub-byte, or otherwise invalid values are ignored and the default 512 MB cap remains in effect.
30
31
  - Remote transcription providers: `ASSEMBLYAI_API_KEY`, `GEMINI_API_KEY` / `GOOGLE_GENERATIVE_AI_API_KEY` / `GOOGLE_API_KEY`, `OPENAI_API_KEY`, `FAL_KEY` (plus `GROQ_API_KEY` before local/remote fallback).
31
32
  - Gemini uses the Files API automatically for larger uploads.
32
33
 
@@ -53,6 +53,13 @@ Goal: keep provider entrypoints thin; keep provider policy explicit.
53
53
  Order loop only.
54
54
  Fallback notes.
55
55
  OpenAI chunk/delegate policy.
56
+ - `packages/core/src/transcription/whisper/diarization.ts`
57
+ Explicit speaker-label requests only.
58
+ ElevenLabs Scribe v2 first in auto mode, then OpenAI `gpt-4o-transcribe-diarize`.
59
+ - `src/speaker-identification/`
60
+ Optional post-processing for generic diarization labels.
61
+ Timestamp anchors first, exact-transcript remembered mappings second, OpenAI GPT-5.5 context inference last.
62
+ Named extracts have identity-aware cache keys; raw transcript cache entries remain provider-generic.
56
63
 
57
64
  ## Current order
58
65
 
@@ -62,6 +69,9 @@ Goal: keep provider entrypoints thin; keep provider policy explicit.
62
69
  - Gemini
63
70
  - OpenAI
64
71
  - FAL
72
+ - speaker diarization (`--diarize`):
73
+ - ElevenLabs
74
+ - OpenAI
65
75
 
66
76
  ## Rules
67
77
 
package/docs/youtube.md CHANGED
@@ -45,9 +45,53 @@ YouTube URLs use transcript-first extraction.
45
45
  pnpm summarize -- --extract "https://www.youtube.com/watch?v=I845O57ZSy4&t=11s"
46
46
  ```
47
47
 
48
+ ## Speaker labels
49
+
50
+ `--diarize [auto|elevenlabs|openai]` forces audio transcription so the output can identify speaker changes:
51
+
52
+ ```bash
53
+ summarize "https://www.youtube.com/watch?v=..." --extract --diarize
54
+ summarize "https://www.youtube.com/watch?v=..." --extract --diarize openai --timestamps
55
+ ```
56
+
57
+ - `auto`: ElevenLabs Scribe v2 first, then OpenAI `gpt-4o-transcribe-diarize`.
58
+ - `elevenlabs`: requires `ELEVENLABS_API_KEY`.
59
+ - `openai`: requires `OPENAI_API_KEY`.
60
+ - All modes require `yt-dlp`; OpenAI uses `ffmpeg` to compress uploads above its size limit when available.
61
+
62
+ ## Speaker identification
63
+
64
+ Diarization detects speaker changes but providers return generic labels. Add `--identify-speakers` to
65
+ resolve those labels to names:
66
+
67
+ ```bash
68
+ summarize "https://www.youtube.com/watch?v=..." --extract \
69
+ --diarize elevenlabs --identify-speakers \
70
+ --speaker-profile modern-wisdom \
71
+ --speaker-at "0:12=Chris Williamson" \
72
+ --speaker-at "1:42=Guest Name" \
73
+ --remember-speakers
74
+ ```
75
+
76
+ Resolution order:
77
+
78
+ 1. Repeatable `--speaker-at <timestamp=name>` anchors and source anchors from config.
79
+ 2. Remembered provider-label mappings, but only when the full diarized transcript SHA-256 still matches.
80
+ 3. OpenAI GPT-5.5 context inference using video metadata, profile context, known names, and representative transcript excerpts.
81
+
82
+ Only mappings at or above `minimumConfidence` are applied. Uncertain speakers keep their generic labels.
83
+ Anchors are authoritative. `--remember-speakers` atomically updates `~/.summarize/config.json` with the
84
+ selected profile, anchors, names, transcript hash, and mapping. Raw provider transcript cache entries stay
85
+ generic, so names from one run cannot contaminate another source.
86
+
87
+ Use `--no-identify-speakers` to disable configured identification for one run. ElevenLabs diarization needs
88
+ `ELEVENLABS_API_KEY`; GPT-5.5 identity inference for unresolved labels needs `OPENAI_API_KEY`.
89
+
90
+ See [Config](config.md#speaker-identification) for reusable profiles.
91
+
48
92
  ## Slides
49
93
 
50
- Use `--slides` to extract slide screenshots for YouTube videos (requires `ffmpeg` and `yt-dlp`).
94
+ Use `--slides` to extract slide screenshots for YouTube videos (`yt-dlp` required; native ffmpeg preferred, bundled WebAssembly fallback included).
51
95
  Scene detection auto-tunes the threshold using sampled frame hashes:
52
96
 
53
97
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steipete/summarize",
3
- "version": "0.16.2",
3
+ "version": "0.17.0",
4
4
  "description": "Link → clean text → summary.",
5
5
  "bin": {
6
6
  "summarize": "./dist/cli.js",
@@ -32,10 +32,10 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@earendil-works/pi-ai": "^0.75.3",
36
- "commander": "^14.0.3",
35
+ "@earendil-works/pi-ai": "^0.79.1",
36
+ "bpe-lite": "^0.5.2",
37
+ "commander": "^15.0.0",
37
38
  "file-type": "^22.0.1",
38
- "gpt-tokenizer": "^3.4.0",
39
39
  "json5": "^2.2.3",
40
40
  "markdansi": "^0.2.1",
41
41
  "mime": "^4.1.0",
@@ -43,32 +43,32 @@
43
43
  "osc-progress": "^0.3.0",
44
44
  "tokentally": "^0.1.1",
45
45
  "tslog": "^4.10.2",
46
- "undici": "8.3.0",
47
- "@steipete/summarize-core": "0.16.2"
46
+ "undici": "8.4.1",
47
+ "@steipete/summarize-core": "0.17.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@fal-ai/client": "^1.10.1",
51
- "@types/jsdom": "^28.0.3",
52
- "@types/node": "^24.12.4",
51
+ "@types/node": "^24.13.1",
53
52
  "@types/sanitize-html": "^2.16.1",
54
- "@typescript/native-preview": "7.0.0-dev.20260519.1",
55
- "@vitest/coverage-v8": "^4.1.6",
53
+ "@typescript/native-preview": "7.0.0-dev.20260609.1",
54
+ "@vitest/coverage-v8": "^4.1.8",
56
55
  "esbuild": "^0.28.0",
57
- "oxfmt": "0.51.0",
58
- "oxlint": "^1.64.0",
56
+ "happy-dom": "^20.10.1",
57
+ "oxfmt": "0.54.0",
58
+ "oxlint": "^1.69.0",
59
59
  "oxlint-tsgolint": "^0.23.0",
60
60
  "rimraf": "^6.1.3",
61
- "tsx": "^4.22.0",
61
+ "tsx": "^4.22.4",
62
62
  "typescript": "^6.0.3",
63
- "vitest": "^4.1.6"
63
+ "vitest": "^4.1.8"
64
64
  },
65
65
  "engines": {
66
66
  "node": ">=24"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "pnpm clean && pnpm -C packages/core build && pnpm build:lib && pnpm build:cli",
70
- "build:bun": "bun scripts/build-bun.js",
71
- "build:bun:test": "bun scripts/build-bun.js --test",
70
+ "build:bun": "pnpm -C packages/core build && bun scripts/build-bun.js",
71
+ "build:bun:test": "pnpm -C packages/core build && bun scripts/build-bun.js --test",
72
72
  "build:cli": "node scripts/build-cli.mjs",
73
73
  "build:lib": "tsgo -p tsconfig.build.json",
74
74
  "check": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm test:coverage",