@steipete/summarize 0.20.1 → 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.
- package/CHANGELOG.md +15 -0
- package/README.md +6 -4
- package/dist/esm/daemon/cli-service.js +4 -4
- package/dist/esm/daemon/cli-service.js.map +1 -1
- package/dist/esm/daemon/cli.js +40 -1
- package/dist/esm/daemon/cli.js.map +1 -1
- package/dist/esm/daemon/constants.js +3 -0
- package/dist/esm/daemon/constants.js.map +1 -1
- package/dist/esm/daemon/native-messaging-install.js +98 -0
- package/dist/esm/daemon/native-messaging-install.js.map +1 -0
- package/dist/esm/daemon/native-messaging.js +163 -0
- package/dist/esm/daemon/native-messaging.js.map +1 -0
- package/dist/esm/llm/providers/anthropic.js +6 -1
- package/dist/esm/llm/providers/anthropic.js.map +1 -1
- package/dist/esm/run/help.js +9 -7
- package/dist/esm/run/help.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/daemon/cli-service.d.ts +2 -1
- package/dist/types/daemon/constants.d.ts +3 -0
- package/dist/types/daemon/native-messaging-install.d.ts +33 -0
- package/dist/types/daemon/native-messaging.d.ts +39 -0
- package/dist/types/version.d.ts +1 -1
- package/docs/chrome-enterprise.md +150 -0
- package/docs/chrome-extension.md +18 -14
- package/docs/commands/daemon.md +13 -9
- package/docs/commands/index.md +1 -1
- package/docs/commands/slides.md +4 -3
- package/docs/commands/summarize.md +4 -3
- package/docs/extract-only.md +2 -1
- package/docs/install.md +1 -1
- package/docs/quickstart.md +11 -0
- package/docs/slides.md +3 -3
- package/package.json +6 -6
|
@@ -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`.
|
package/docs/extract-only.md
CHANGED
|
@@ -15,7 +15,8 @@ Deprecated alias: `--extract-only`.
|
|
|
15
15
|
## Notes
|
|
16
16
|
|
|
17
17
|
- No summarization LLM call happens in this mode.
|
|
18
|
-
-
|
|
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.
|
|
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/quickstart.md
CHANGED
|
@@ -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 <
|
|
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 <
|
|
66
|
-
- `summarize slides <
|
|
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.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"description": "Link → clean text → summary.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"summarize": "./dist/cli.js",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"osc-progress": "^0.3.1",
|
|
44
44
|
"tokentally": "^0.1.1",
|
|
45
45
|
"undici": "8.5.0",
|
|
46
|
-
"@steipete/summarize-core": "0.20.
|
|
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.
|
|
51
|
+
"@typescript/native-preview": "7.0.0-dev.20260624.1",
|
|
52
52
|
"@vitest/coverage-v8": "^4.1.9",
|
|
53
|
-
"happy-dom": "^20.10.
|
|
54
|
-
"oxfmt": "0.
|
|
55
|
-
"oxlint": "^1.
|
|
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",
|