@steipete/summarize 0.20.0 → 0.20.2

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 (80) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +7 -5
  3. package/completions/summarize.fish +1 -1
  4. package/dist/esm/content/asset.js +11 -1
  5. package/dist/esm/content/asset.js.map +1 -1
  6. package/dist/esm/daemon/agent-model.js +1 -1
  7. package/dist/esm/daemon/agent-model.js.map +1 -1
  8. package/dist/esm/daemon/agent.js +1 -1
  9. package/dist/esm/daemon/agent.js.map +1 -1
  10. package/dist/esm/daemon/cli-service.js +4 -4
  11. package/dist/esm/daemon/cli-service.js.map +1 -1
  12. package/dist/esm/daemon/cli.js +40 -1
  13. package/dist/esm/daemon/cli.js.map +1 -1
  14. package/dist/esm/daemon/constants.js +3 -0
  15. package/dist/esm/daemon/constants.js.map +1 -1
  16. package/dist/esm/daemon/models.js +1 -1
  17. package/dist/esm/daemon/models.js.map +1 -1
  18. package/dist/esm/daemon/native-messaging-install.js +98 -0
  19. package/dist/esm/daemon/native-messaging-install.js.map +1 -0
  20. package/dist/esm/daemon/native-messaging.js +163 -0
  21. package/dist/esm/daemon/native-messaging.js.map +1 -0
  22. package/dist/esm/daemon/schtasks.js +7 -2
  23. package/dist/esm/daemon/schtasks.js.map +1 -1
  24. package/dist/esm/engine/model-executor.js +76 -17
  25. package/dist/esm/engine/model-executor.js.map +1 -1
  26. package/dist/esm/llm/generate-text-shared.js +127 -9
  27. package/dist/esm/llm/generate-text-shared.js.map +1 -1
  28. package/dist/esm/llm/generate-text-stream.js +6 -4
  29. package/dist/esm/llm/generate-text-stream.js.map +1 -1
  30. package/dist/esm/llm/generate-text.js +83 -42
  31. package/dist/esm/llm/generate-text.js.map +1 -1
  32. package/dist/esm/llm/providers/anthropic.js +38 -15
  33. package/dist/esm/llm/providers/anthropic.js.map +1 -1
  34. package/dist/esm/llm/providers/google.js +52 -8
  35. package/dist/esm/llm/providers/google.js.map +1 -1
  36. package/dist/esm/llm/providers/models.js +23 -17
  37. package/dist/esm/llm/providers/models.js.map +1 -1
  38. package/dist/esm/llm/providers/openai/chat-completions.js +2 -8
  39. package/dist/esm/llm/providers/openai/chat-completions.js.map +1 -1
  40. package/dist/esm/llm/providers/openai/responses.js +2 -8
  41. package/dist/esm/llm/providers/openai/responses.js.map +1 -1
  42. package/dist/esm/llm/providers/openai/sse.js +17 -0
  43. package/dist/esm/llm/providers/openai/sse.js.map +1 -1
  44. package/dist/esm/llm/providers/openai.js +3 -1
  45. package/dist/esm/llm/providers/openai.js.map +1 -1
  46. package/dist/esm/llm/providers/shared.js +10 -1
  47. package/dist/esm/llm/providers/shared.js.map +1 -1
  48. package/dist/esm/model-auto.js +1 -1
  49. package/dist/esm/model-auto.js.map +1 -1
  50. package/dist/esm/run/help.js +10 -8
  51. package/dist/esm/run/help.js.map +1 -1
  52. package/dist/esm/slides/frame-extraction.js +5 -1
  53. package/dist/esm/slides/frame-extraction.js.map +1 -1
  54. package/dist/esm/slides/scene-detection.js +19 -3
  55. package/dist/esm/slides/scene-detection.js.map +1 -1
  56. package/dist/esm/version.js +1 -1
  57. package/dist/types/content/asset.d.ts +3 -0
  58. package/dist/types/daemon/cli-service.d.ts +2 -1
  59. package/dist/types/daemon/constants.d.ts +3 -0
  60. package/dist/types/daemon/native-messaging-install.d.ts +33 -0
  61. package/dist/types/daemon/native-messaging.d.ts +39 -0
  62. package/dist/types/llm/generate-text-shared.d.ts +2 -1
  63. package/dist/types/llm/providers/anthropic.d.ts +15 -8
  64. package/dist/types/llm/providers/models.d.ts +4 -1
  65. package/dist/types/llm/providers/openai/sse.d.ts +1 -0
  66. package/dist/types/llm/providers/shared.d.ts +1 -0
  67. package/dist/types/slides/scene-detection.d.ts +7 -1
  68. package/dist/types/version.d.ts +1 -1
  69. package/docs/chrome-enterprise.md +150 -0
  70. package/docs/chrome-extension.md +18 -14
  71. package/docs/commands/daemon.md +13 -9
  72. package/docs/commands/index.md +1 -1
  73. package/docs/commands/slides.md +4 -3
  74. package/docs/commands/summarize.md +5 -4
  75. package/docs/extract-only.md +2 -1
  76. package/docs/install.md +1 -1
  77. package/docs/llm.md +1 -1
  78. package/docs/quickstart.md +11 -0
  79. package/docs/slides.md +3 -3
  80. package/package.json +11 -11
@@ -23,6 +23,10 @@ Quickstart:
23
23
  - Open side panel → copy token install command → run for daemon mode:
24
24
  - `summarize daemon install --token <TOKEN> --port 8787` (macOS: LaunchAgent, Linux: systemd user, Windows: Scheduled Task)
25
25
  - Non-default port: replace `8787`, then set the same value in **Options → Runtime → Daemon → Port**.
26
+ - Chrome asks for optional Native Messaging access only when the user explicitly enables a Daemon
27
+ runtime. Retained loopback host access serves configured Direct local providers only, not daemon
28
+ traffic. Managed deployments can browser-disable both boundaries; see
29
+ [Chrome enterprise policy](chrome-enterprise.md).
26
30
  - Verify:
27
31
  - `summarize daemon status`
28
32
  - Restart (if needed): `summarize daemon restart`
@@ -35,7 +39,7 @@ Firefox notes:
35
39
 
36
40
  Dev (repo checkout):
37
41
 
38
- - Use: `pnpm summarize daemon install --token <TOKEN> --dev` (autostart service runs `src/cli.ts` via Node's native TypeScript support; no `dist/` build required).
42
+ - Use: `pnpm summarize daemon install --token <TOKEN> --dev --extension-id <UNPACKED_ID>` (copy the ID from `chrome://extensions`; autostart runs `src/cli.ts` with no `dist/` build required).
39
43
  - E2E (Playwright): `pnpm -C apps/chrome-extension test:e2e`
40
44
  - First run: `pnpm -C apps/chrome-extension exec playwright install chromium`
41
45
  - Chromium runs headless by default.
@@ -45,6 +49,7 @@ Dev (repo checkout):
45
49
 
46
50
  - “Daemon not reachable”:
47
51
  - `summarize daemon status`
52
+ - Confirm the native host is reported as installed and Chrome granted the optional companion permission.
48
53
  - If the daemon uses a non-default port, confirm **Options → Runtime → Daemon → Port** matches the daemon configuration.
49
54
  - Logs: `~/.summarize/logs/daemon.err.log`
50
55
  - Windows install:
@@ -56,10 +61,7 @@ Dev (repo checkout):
56
61
  - Re-run: `summarize daemon install --token <TOKEN>`.
57
62
  - Windows containers:
58
63
  - `summarize daemon install --token <TOKEN>` starts the daemon for the current container session but does not create a Scheduled Task.
59
- - Run that command manually each time the container starts, or add it to your container startup. Also publish the configured daemon port in `docker-compose.yml` (default `8787`):
60
- `ports: ['8787:8787']`
61
- `command: ['cmd', '/c', 'summarize daemon install --token <TOKEN>']`
62
- - Then restart the container and verify `http://127.0.0.1:8787/health`.
64
+ - Chrome Daemon mode also needs the pending packaged Windows native-host executable. Do not expose the daemon port as a substitute; use Direct and Browser modes.
63
65
  - “Need extension-side traces”:
64
66
  - Options → Logs → `extension.log` (panel/background events).
65
67
  - Enable “Extended logging” in Advanced settings for full pipeline traces.
@@ -78,11 +80,10 @@ Dev (repo checkout):
78
80
  - “Could not establish connection / Receiving end does not exist”:
79
81
  - The content script wasn’t injected (yet), or Chrome blocked site access.
80
82
  - Chrome → extension details → “Site access” → “On all sites” (or allow the domain), then reload the tab.
81
- - “<site> wants to look for and connect to any device on your local network”:
82
- - Trigger: content scripts (page context) hitting the configured daemon origin (default `http://127.0.0.1:8787`) can cause Chrome to attribute the request to the current origin and prompt per-site.
83
- - Fix: hover summaries must proxy daemon calls via the extension background service worker (reload the extension after updating).
84
- - Verify daemon: `summarize daemon status` (or `curl http://127.0.0.1:8787/health`).
85
- - Repro/dev: `pnpm -C apps/chrome-extension dev` then enable “Hover summaries” and hover a link.
83
+ - “Native messaging host not found”:
84
+ - Re-run `summarize daemon install --token <TOKEN>` so the Chrome host manifest and launcher are refreshed.
85
+ - Verify `summarize daemon status` reports `Chrome native messaging host: installed`.
86
+ - The host is bound to Web Store ID `cejgnmmhbbpdmjnfppjdfkocebngehfg`; a normal unpacked build has a different ID unless a development host manifest explicitly allows it.
86
87
 
87
88
  ## Architecture
88
89
 
@@ -92,12 +93,13 @@ Dev (repo checkout):
92
93
  - Chrome offscreen page: runs MediaBunny with native WebCodecs for ranged video slides and chunked local media transcription, plus an idle-evictable Whisper runtime.
93
94
  - Content script: extract readable article text from the **rendered DOM** via Readability; also detect SPA URL changes.
94
95
  - Direct provider adapters: OpenAI-compatible SSE, Anthropic Messages SSE, and Gemini SSE, normalized to the same summary/chat/tool-call contracts.
95
- - Panel page streams SSE directly (MV3 service workers can be flaky for long-lived streams).
96
+ - Panel page reconstructs daemon SSE streams carried through the service worker's native bridge.
96
97
  - **Daemon (local, autostart service)**
97
98
  - HTTP server on `127.0.0.1` (default port `8787`).
98
99
  - Token-authenticated API.
99
100
  - Runs the existing summarize pipeline (env/config-based) and streams tokens to client via SSE.
100
- - Port is configurable: set **Options → Runtime → Daemon → Port** to match a daemon started with `summarize daemon install --port <n>` (e.g. when `8787` is taken by another service). The extension talks to `127.0.0.1:<port>` for every daemon call.
101
+ - Native host `com.steipete.summarize` proxies only `/health` and `/v1/*` to the configured daemon port and preserves SSE and binary responses.
102
+ - Port is configurable: set **Options → Runtime → Daemon → Port** to match a daemon started with `summarize daemon install --port <n>`.
101
103
 
102
104
  ## Data Flow
103
105
 
@@ -106,7 +108,7 @@ Dev (repo checkout):
106
108
  3. On nav/tab change (and auto enabled): background asks the content script to extract `{ url, title, text }` (best-effort).
107
109
  4. In Chrome Browser mode, fetchable audio is decoded in bounded chunks through MediaBunny/WebCodecs and transcribed locally. YouTube prefers active-player/watch-page direct audio, then Android VR, buffered direct audio, and captured SABR.
108
110
  5. In Direct mode, background uses Gemini Nano for Auto without provider credentials, or calls the selected provider and returns the normalized summary/chat result to the panel.
109
- 6. In Daemon mode, background `POST`s payload to `/v1/summarize` with `Authorization: Bearer <token>`; the panel streams `/v1/summarize/<id>/events`.
111
+ 6. In Daemon mode, extension contexts send request metadata through the service worker, which checks managed policy and optional permission before connecting to the native host. The host proxies the authenticated `/v1/*` API and streams response chunks back to the caller.
110
112
 
111
113
  ## Auto Mode (URL + Page Text)
112
114
 
@@ -199,7 +201,9 @@ Problem: daemon must be secured; extension must discover and pair with it.
199
201
  - “Copy command” button.
200
202
  - Daemon stores paired tokens in `~/.summarize/daemon.json`.
201
203
  - Extension stores token in `chrome.storage.local`.
202
- - The manifest permits HTTP to `127.0.0.1` on any port; bearer tokens are attached only for the exact configured daemon origin.
204
+ - Chrome declares `nativeMessaging` as an optional named permission. It is requested only when the
205
+ user enables the local companion. The registered host is bound to the exact Web Store extension
206
+ ID, accepts only daemon API paths, and rejects a port that does not match `daemon.json`.
203
207
  - If daemon unreachable or 401: show Setup state + troubleshooting.
204
208
 
205
209
  ## Daemon Endpoints
@@ -2,7 +2,7 @@
2
2
  title: summarize daemon
3
3
  permalink: /docs/commands/daemon.html
4
4
  kicker: command
5
- summary: "Manage the local HTTP daemon used by the Chrome Side Panel."
5
+ summary: "Manage the local daemon and Chrome Native Messaging bridge used by the Side Panel."
6
6
  ---
7
7
 
8
8
  # `summarize daemon`
@@ -11,7 +11,7 @@ summary: "Manage the local HTTP daemon used by the Chrome Side Panel."
11
11
  summarize daemon <subcommand> [options]
12
12
  ```
13
13
 
14
- Manages the local HTTP daemon that the Chrome / Firefox Side Panel talks to. The daemon binds to `127.0.0.1` only and requires a shared bearer token. It autostarts via the right service manager for your platform.
14
+ Manages the local HTTP daemon and its browser integration. The daemon binds to `127.0.0.1` only and requires a shared bearer token. Chrome reaches it through an optional exact-ID Native Messaging host; Firefox retains its existing loopback integration. The daemon autostarts via the right service manager for your platform.
15
15
 
16
16
  | Platform | Service |
17
17
  | -------- | --------------------- |
@@ -25,15 +25,15 @@ If you only use the CLI, you don't need any of this.
25
25
 
26
26
  ### `install`
27
27
 
28
- Install or upgrade the autostart service and write `~/.summarize/daemon.json`.
28
+ Install or upgrade the autostart service, write `~/.summarize/daemon.json`, and register Chrome native host `com.steipete.summarize` on macOS/Linux.
29
29
 
30
30
  ```bash
31
31
  summarize daemon install --token <TOKEN>
32
32
  summarize daemon install --token <TOKEN> --port 8787
33
- summarize daemon install --token <TOKEN> --dev # repo dev mode
33
+ summarize daemon install --token <TOKEN> --dev --extension-id <UNPACKED_ID>
34
34
  ```
35
35
 
36
- `--token <token>` is **required** on first install; the extension prints one after pairing. Re-running `install` with a new token adds another paired browser instead of invalidating the old one.
36
+ `--token <token>` is **required** on first install; the extension prints one after pairing. Re-running `install` with a new token adds another paired browser instead of invalidating the old one. The native host manifest allows only Chrome Web Store extension ID `cejgnmmhbbpdmjnfppjdfkocebngehfg`.
37
37
 
38
38
  ### `restart`
39
39
 
@@ -45,7 +45,7 @@ summarize daemon restart
45
45
 
46
46
  ### `status`
47
47
 
48
- Probe the autostart service and the running daemon's health endpoint.
48
+ Probe the autostart service, Chrome native-host registration, and the running daemon's health endpoint.
49
49
 
50
50
  ```bash
51
51
  summarize daemon status
@@ -53,7 +53,7 @@ summarize daemon status
53
53
 
54
54
  ### `uninstall`
55
55
 
56
- Unload the autostart service. On macOS the plist is moved to Trash so you can undo.
56
+ Unload the autostart service and remove the user-level Chrome native host. On macOS the daemon plist is moved to Trash so you can undo.
57
57
 
58
58
  ```bash
59
59
  summarize daemon uninstall
@@ -70,7 +70,7 @@ summarize daemon run --port 8787
70
70
  ## Options
71
71
 
72
72
  `--port <n>`
73
- : TCP port. Default `8787`. For a non-default port, set the same value in the extension under **Options → Runtime → Daemon → Port**; browser extensions cannot read `~/.summarize/daemon.json`.
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
76
  : Bearer token. Required for `install`. Stored in `~/.summarize/daemon.json` (mode `0600`).
@@ -78,6 +78,9 @@ summarize daemon run --port 8787
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.
80
80
 
81
+ `--extension-id <id>`
82
+ : With `--dev`, bind the native host to an unpacked Chrome extension ID. Production installs always use the exact Web Store ID.
83
+
81
84
  ## HTTP endpoints
82
85
 
83
86
  The daemon is documented in detail in [Chrome extension](../chrome-extension.md) and [Agent / daemon](../agent.md). At a glance:
@@ -96,9 +99,10 @@ The daemon is documented in detail in [Chrome extension](../chrome-extension.md)
96
99
 
97
100
  ## Notes
98
101
 
99
- - **Containers** — `install` starts the daemon for the current container session but does not register a Scheduled Task / unit. Run `summarize daemon run` from your entrypoint instead, publish the configured port (default `8787`), and set the same port in the extension.
102
+ - **Containers** — `install` starts the daemon for the current container session but does not register a Scheduled Task / unit. Run `summarize daemon run` from your entrypoint. Do not expose the port as a Chrome Native Messaging substitute.
100
103
  - **Token rotation** — running `install --token <NEW>` adds a new paired browser; old browsers keep working. Edit `daemon.json` by hand to revoke.
101
104
  - **Multiple installs** — only one daemon per user. Reinstall to upgrade; omitting `--port` preserves the configured port.
105
+ - **Windows** — the npm-installed CLI still needs a packaged native-host `.exe`; do not route daemon traffic through the Direct-provider loopback grants as a workaround. Direct and Browser modes continue to work.
102
106
 
103
107
  ## See also
104
108
 
@@ -12,7 +12,7 @@ summary: "Every summarize subcommand and flag, with examples."
12
12
  ## Subcommands
13
13
 
14
14
  - [`summarize`](summarize.md) — main command. Takes a URL, file, or stdin and produces a summary or extracted content.
15
- - [`summarize slides`](slides.md) — extract scene-change keyframes from a video URL into PNGs (and optional OCR text). Standalone version of the `--slides` flag.
15
+ - [`summarize slides`](slides.md) — extract scene-change keyframes from a YouTube URL, direct video URL, or local video file into PNGs (and optional OCR text). Standalone version of the `--slides` flag.
16
16
  - [`summarize transcriber`](transcriber.md) — set up local ONNX transcription (Parakeet, Canary). Prints the env vars you need.
17
17
  - [`summarize daemon`](daemon.md) — manage the local HTTP daemon that the Chrome Side Panel talks to. Subcommands: `install`, `restart`, `status`, `uninstall`, `run`.
18
18
  - [`summarize refresh-free`](refresh-free.md) — scan OpenRouter `:free` models, write working candidates to `~/.summarize/config.json`.
@@ -2,16 +2,16 @@
2
2
  title: summarize slides
3
3
  permalink: /docs/commands/slides.html
4
4
  kicker: command
5
- summary: "Extract scene-change keyframes from a video URL into PNG files."
5
+ summary: "Extract scene-change keyframes from a video source into PNG files."
6
6
  ---
7
7
 
8
8
  # `summarize slides`
9
9
 
10
10
  ```text
11
- summarize slides <url> [flags]
11
+ summarize slides <source> [flags]
12
12
  ```
13
13
 
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.
14
+ Extracts slide-shaped keyframes from a YouTube URL, direct video URL, or local video file 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
 
@@ -20,6 +20,7 @@ summarize slides "https://youtu.be/..."
20
20
  summarize slides "https://youtu.be/..." --render auto
21
21
  summarize slides "https://youtu.be/..." --slides-ocr -o ./out
22
22
  summarize slides "https://example.com/lecture.mp4" --slides-max 12
23
+ summarize slides ./lecture.mp4 --slides-max 12
23
24
  ```
24
25
 
25
26
  ## Requirements
@@ -11,7 +11,7 @@ summary: "Main command. URL, file, or stdin → clean text → summary."
11
11
  summarize [input] [flags]
12
12
  ```
13
13
 
14
- Takes a URL, local file path, or `-` for stdin and produces a summary. With `--extract`, prints cleaned content instead of summarizing.
14
+ Takes a URL, local file path, or `-` for stdin and produces a summary. With `--extract`, prints cleaned content instead of summarizing; stdin is not supported in extract mode.
15
15
 
16
16
  ## Synopsis
17
17
 
@@ -37,7 +37,8 @@ If `[input]` is omitted, summarize prints concise help and exits.
37
37
  ### Extraction
38
38
 
39
39
  `--extract`
40
- : Print extracted content and exit. No LLM call. The `--extract-only` alias is hidden but still works.
40
+ : Print extracted content and exit. No LLM call. Supports URLs, YouTube/direct media, local audio/video, and local PDFs; `-` stdin is not supported. The `--extract-only` alias is hidden but still works.
41
+ : Extraction can still use configured remote transcription, OCR, or Markdown providers for media/PDF inputs.
41
42
 
42
43
  `--format <format>`
43
44
  : `md` or `text`. Controls website extraction format and whether files are preprocessed to Markdown for model compatibility. Default: `text`. Default in `--extract` mode for URLs: `md`.
@@ -87,7 +88,7 @@ If `[input]` is omitted, summarize prints concise help and exits.
87
88
  ### Slides
88
89
 
89
90
  `--slides [value]`
90
- : Extract slides from a video URL and render inline alongside the summary. Combine with `--extract` to interleave slides in the full transcript. See [Slides mode](../slides.md).
91
+ : Extract slides from a YouTube URL, direct video URL, or local video file and render inline alongside the summary. Combine with `--extract` to interleave slides in the full transcript. See [Slides mode](../slides.md).
91
92
 
92
93
  `--slides-ocr`
93
94
  : Run OCR on extracted slides. Requires `tesseract`.
@@ -142,7 +143,7 @@ If `[input]` is omitted, summarize prints concise help and exits.
142
143
  : Hard cap for LLM output tokens. Accepts `2000`, `2k`. Overrides provider defaults.
143
144
 
144
145
  `--retries <count>`
145
- : LLM retry attempts on timeout. Default `1`.
146
+ : LLM retry attempts after timeouts or transient API failures. Default `1`.
146
147
 
147
148
  ### Output
148
149
 
@@ -15,7 +15,8 @@ Deprecated alias: `--extract-only`.
15
15
  ## Notes
16
16
 
17
17
  - No summarization LLM call happens in this mode.
18
- - Input must be a URL (`-` stdin is not supported with `--extract`).
18
+ - Supported inputs are URLs, YouTube/direct media, local audio/video, and local PDF files (`-` stdin is not supported with `--extract`).
19
+ - Extraction can still use configured remote transcription, OCR, or Markdown providers for media/PDF inputs. For sensitive files, use local transcription/provider settings for media and `--preprocess off` when you need to block PDF/Markdown preprocessing.
19
20
  - No extraction cap is applied. Use `--max-extract-characters <count>` to cap output if needed.
20
21
  - `--format md` may still convert HTML to Markdown (depending on `--markdown-mode` and available tools).
21
22
  - `--length` is intended for summarization guidance; extraction prints full content.
package/docs/install.md CHANGED
@@ -129,7 +129,7 @@ Use `PORT=4001 ./scripts/docs-serve.sh` to pick another port.
129
129
  ## Notes (Windows / containers)
130
130
 
131
131
  - **Windows native:** `summarize` runs under Node 24. The daemon registers a Scheduled Task on first install.
132
- - **Windows containers:** `summarize daemon install` starts the daemon for the current container session but does not register a Scheduled Task. Run the install on each startup or add it to the container entrypoint, publish the configured port (default `8787`), and set the same port under **Options → Runtime → Daemon → Port**.
132
+ - **Windows containers:** `summarize daemon install` starts the daemon for the current container session but does not register a Scheduled Task. Chrome Daemon mode also needs the pending packaged Windows native-host executable; Direct and Browser modes remain available.
133
133
  - **WSL2:** treat as Linux. The daemon installs as a systemd user service if `systemd` is available; otherwise run `summarize daemon run` in a long-lived shell.
134
134
 
135
135
  Next: head to [Quickstart](quickstart.md).
package/docs/llm.md CHANGED
@@ -112,7 +112,7 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
112
112
  - `--service-tier default|fast|priority|flex`
113
113
  - OpenAI service tier override. `fast` is the summarize-facing alias for OpenAI `priority`; `default` sends no service tier.
114
114
  - `--retries <count>`
115
- - LLM retry attempts on timeout (default: 1).
115
+ - LLM retry attempts after timeouts or transient API failures (default: 1).
116
116
  - `--json` (includes prompt + summary in one JSON object)
117
117
 
118
118
  ## Prompt rules
@@ -58,6 +58,17 @@ summarize "https://youtu.be/..." --slides
58
58
  summarize "https://youtu.be/..." --slides --slides-ocr
59
59
  ```
60
60
 
61
+ ### Larger collections via an agent
62
+
63
+ For a conference track, course, or video archive, let an agent orchestrate the collection while
64
+ `summarize` handles each item. With the [canonical Summarize skill](https://github.com/steipete/summarize/blob/main/.agents/skills/summarize/SKILL.md), the prompt can stay focused on the outcome:
65
+
66
+ > Download all videos from the AI Engineer conference and use summarize to transcribe them.
67
+
68
+ Ask for any additional deliverables you want: timestamped diarized transcripts, per-talk takeaways, a
69
+ browsable index, or a best-of list tailored to your interests. The agent can handle discovery,
70
+ downloads, retries, output naming, and verification before building collection-level analysis.
71
+
61
72
  ## 4. Files and stdin
62
73
 
63
74
  ```bash
package/docs/slides.md CHANGED
@@ -57,13 +57,13 @@ read_when:
57
57
 
58
58
  ## CLI
59
59
 
60
- - `summarize <url> --slides` streams a short intro paragraph and then a continuous narrative with slide images inserted inline where `[slide:N]` markers appear.
60
+ - `summarize <source> --slides` streams a short intro paragraph and then a continuous narrative with slide images inserted inline where `[slide:N]` markers appear. The source can be a YouTube URL, direct video URL, or local video file.
61
61
  - The model is responsible for inserting every slide marker in order; text length is still governed by `--length`.
62
62
  - If inline images are unsupported, the CLI prints text-only output and notes how to export slides to disk.
63
63
  - Timestamp links use OSC-8 when supported (YouTube/Vimeo/Loom/Dropbox).
64
64
  - Progress line reports slide extraction steps (includes slide counts when available).
65
- - `summarize <url> --slides --extract` prints the full timed transcript and inserts slide images inline at matching timestamps.
66
- - `summarize slides <url>` extracts slides without summarizing (use `--render auto|kitty|iterm` for inline thumbnails).
65
+ - `summarize <source> --slides --extract` prints the full timed transcript and inserts slide images inline at matching timestamps.
66
+ - `summarize slides <source>` extracts slides without summarizing (use `--render auto|kitty|iterm` for inline thumbnails).
67
67
  - Defaults to writing images under `./slides/<sourceId>/` (override via `--slides-dir` / `--output`).
68
68
 
69
69
  ## Implementation notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steipete/summarize",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Link → clean text → summary.",
5
5
  "bin": {
6
6
  "summarize": "./dist/cli.js",
@@ -33,30 +33,30 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@earendil-works/pi-ai": "^0.79.1",
36
+ "@earendil-works/pi-ai": "^0.80.2",
37
37
  "bpe-lite": "^0.5.2",
38
38
  "commander": "^15.0.0",
39
39
  "file-type": "^22.0.1",
40
40
  "json5": "^2.2.3",
41
41
  "markdansi": "^0.3.1",
42
42
  "mime": "^4.1.0",
43
- "osc-progress": "^0.3.0",
43
+ "osc-progress": "^0.3.1",
44
44
  "tokentally": "^0.1.1",
45
- "undici": "8.4.1",
46
- "@steipete/summarize-core": "0.20.0"
45
+ "undici": "8.5.0",
46
+ "@steipete/summarize-core": "0.20.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^24.13.1",
50
50
  "@types/sanitize-html": "^2.16.1",
51
- "@typescript/native-preview": "7.0.0-dev.20260609.1",
52
- "@vitest/coverage-v8": "^4.1.8",
53
- "happy-dom": "^20.10.1",
54
- "oxfmt": "0.54.0",
55
- "oxlint": "^1.69.0",
51
+ "@typescript/native-preview": "7.0.0-dev.20260624.1",
52
+ "@vitest/coverage-v8": "^4.1.9",
53
+ "happy-dom": "^20.10.6",
54
+ "oxfmt": "0.56.0",
55
+ "oxlint": "^1.71.0",
56
56
  "oxlint-tsgolint": "^0.23.0",
57
57
  "rimraf": "^6.1.3",
58
58
  "typescript": "^6.0.3",
59
- "vitest": "^4.1.8"
59
+ "vitest": "^4.1.9"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=24"