@steipete/summarize 0.16.3 → 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.
- package/CHANGELOG.md +27 -1
- package/README.md +58 -13
- package/dist/esm/cache-keys.js +15 -0
- package/dist/esm/cache-keys.js.map +1 -1
- package/dist/esm/cache.js +12 -31
- package/dist/esm/cache.js.map +1 -1
- package/dist/esm/cli.js +1 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/config/env.js +2 -0
- package/dist/esm/config/env.js.map +1 -1
- package/dist/esm/config/parse-helpers.js +3 -1
- package/dist/esm/config/parse-helpers.js.map +1 -1
- package/dist/esm/config/sections.js +8 -0
- package/dist/esm/config/sections.js.map +1 -1
- package/dist/esm/config/speakers.js +173 -0
- package/dist/esm/config/speakers.js.map +1 -0
- package/dist/esm/config.js +5 -0
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/costs.js.map +1 -1
- package/dist/esm/daemon/agent-model.js +44 -8
- package/dist/esm/daemon/agent-model.js.map +1 -1
- package/dist/esm/daemon/agent.js +6 -0
- package/dist/esm/daemon/agent.js.map +1 -1
- package/dist/esm/daemon/chat.js +109 -18
- package/dist/esm/daemon/chat.js.map +1 -1
- package/dist/esm/daemon/env-snapshot.js +5 -0
- package/dist/esm/daemon/env-snapshot.js.map +1 -1
- package/dist/esm/daemon/flow-context.js +13 -2
- package/dist/esm/daemon/flow-context.js.map +1 -1
- package/dist/esm/daemon/models.js +26 -0
- package/dist/esm/daemon/models.js.map +1 -1
- package/dist/esm/daemon/server-admin-routes.js +10 -1
- package/dist/esm/daemon/server-admin-routes.js.map +1 -1
- package/dist/esm/daemon/server-summarize-request.js +1 -0
- package/dist/esm/daemon/server-summarize-request.js.map +1 -1
- package/dist/esm/daemon/url-fetch-guard.js +36 -11
- package/dist/esm/daemon/url-fetch-guard.js.map +1 -1
- package/dist/esm/flags.js +7 -0
- package/dist/esm/flags.js.map +1 -1
- package/dist/esm/llm/cli-provider-output.js +111 -1
- package/dist/esm/llm/cli-provider-output.js.map +1 -1
- package/dist/esm/llm/cli.js +87 -6
- package/dist/esm/llm/cli.js.map +1 -1
- package/dist/esm/llm/generate-text-stream.js +40 -22
- package/dist/esm/llm/generate-text-stream.js.map +1 -1
- package/dist/esm/llm/generate-text.js +31 -2
- package/dist/esm/llm/generate-text.js.map +1 -1
- package/dist/esm/llm/model-id.js +2 -1
- package/dist/esm/llm/model-id.js.map +1 -1
- package/dist/esm/llm/model-options.js +22 -0
- package/dist/esm/llm/model-options.js.map +1 -1
- package/dist/esm/llm/provider-profile.js +30 -4
- package/dist/esm/llm/provider-profile.js.map +1 -1
- package/dist/esm/llm/providers/anthropic.js +41 -3
- package/dist/esm/llm/providers/anthropic.js.map +1 -1
- package/dist/esm/llm/providers/minimax.js +6 -0
- package/dist/esm/llm/providers/minimax.js.map +1 -0
- package/dist/esm/llm/providers/models.js +30 -1
- package/dist/esm/llm/providers/models.js.map +1 -1
- package/dist/esm/llm/providers/openai.js +40 -10
- package/dist/esm/llm/providers/openai.js.map +1 -1
- package/dist/esm/model-auto-cli.js +5 -1
- package/dist/esm/model-auto-cli.js.map +1 -1
- package/dist/esm/model-spec.js +26 -2
- package/dist/esm/model-spec.js.map +1 -1
- package/dist/esm/run/cli-fallback-state.js +3 -1
- package/dist/esm/run/cli-fallback-state.js.map +1 -1
- package/dist/esm/run/env.js +8 -2
- package/dist/esm/run/env.js.map +1 -1
- package/dist/esm/run/flows/asset/summary-attempts.js +12 -6
- package/dist/esm/run/flows/asset/summary-attempts.js.map +1 -1
- package/dist/esm/run/flows/asset/summary.js +6 -3
- package/dist/esm/run/flows/asset/summary.js.map +1 -1
- package/dist/esm/run/flows/url/extraction-session.js +65 -3
- package/dist/esm/run/flows/url/extraction-session.js.map +1 -1
- package/dist/esm/run/flows/url/fetch-options.js +1 -0
- package/dist/esm/run/flows/url/fetch-options.js.map +1 -1
- package/dist/esm/run/flows/url/flow.js +1 -1
- package/dist/esm/run/flows/url/flow.js.map +1 -1
- package/dist/esm/run/flows/url/markdown.js +38 -7
- package/dist/esm/run/flows/url/markdown.js.map +1 -1
- package/dist/esm/run/flows/url/slides-text-markdown.js +57 -9
- package/dist/esm/run/flows/url/slides-text-markdown.js.map +1 -1
- package/dist/esm/run/flows/url/summary-resolution.js +13 -7
- package/dist/esm/run/flows/url/summary-resolution.js.map +1 -1
- package/dist/esm/run/flows/url/types.js.map +1 -1
- package/dist/esm/run/help.js +17 -2
- package/dist/esm/run/help.js.map +1 -1
- package/dist/esm/run/run-config.js +8 -5
- package/dist/esm/run/run-config.js.map +1 -1
- package/dist/esm/run/run-env.js +14 -1
- package/dist/esm/run/run-env.js.map +1 -1
- package/dist/esm/run/run-metrics.js +25 -2
- package/dist/esm/run/run-metrics.js.map +1 -1
- package/dist/esm/run/run-models.js +4 -0
- package/dist/esm/run/run-models.js.map +1 -1
- package/dist/esm/run/run-settings-parse.js +4 -0
- package/dist/esm/run/run-settings-parse.js.map +1 -1
- package/dist/esm/run/run-settings.js +3 -2
- package/dist/esm/run/run-settings.js.map +1 -1
- package/dist/esm/run/runner-contexts.js +2 -0
- package/dist/esm/run/runner-contexts.js.map +1 -1
- package/dist/esm/run/runner-flags.js +27 -1
- package/dist/esm/run/runner-flags.js.map +1 -1
- package/dist/esm/run/runner-plan.js +29 -3
- package/dist/esm/run/runner-plan.js.map +1 -1
- package/dist/esm/run/runner-setup.js +9 -1
- package/dist/esm/run/runner-setup.js.map +1 -1
- package/dist/esm/run/streaming.js +1 -0
- package/dist/esm/run/streaming.js.map +1 -1
- package/dist/esm/run/summary-engine.js +40 -5
- package/dist/esm/run/summary-engine.js.map +1 -1
- package/dist/esm/shared/cache-store.js +68 -0
- package/dist/esm/shared/cache-store.js.map +1 -0
- package/dist/esm/shared/dns-pinned-fetch.js +93 -0
- package/dist/esm/shared/dns-pinned-fetch.js.map +1 -0
- package/dist/esm/shared/fetch-capabilities.js +37 -0
- package/dist/esm/shared/fetch-capabilities.js.map +1 -0
- package/dist/esm/shared/slides-presentation.js +3 -2
- package/dist/esm/shared/slides-presentation.js.map +1 -1
- package/dist/esm/shared/sse-events.js.map +1 -1
- package/dist/esm/shared/transcript-diarization-cache-scope.js +71 -0
- package/dist/esm/shared/transcript-diarization-cache-scope.js.map +1 -0
- package/dist/esm/slides/extract.js +11 -3
- package/dist/esm/slides/extract.js.map +1 -1
- package/dist/esm/slides/frame-extraction.js.map +1 -1
- package/dist/esm/slides/process.js +14 -3
- package/dist/esm/slides/process.js.map +1 -1
- package/dist/esm/slides/scene-detection.js +1 -1
- package/dist/esm/slides/scene-detection.js.map +1 -1
- package/dist/esm/speaker-identification/identify.js +274 -0
- package/dist/esm/speaker-identification/identify.js.map +1 -0
- package/dist/esm/speaker-identification/index.js +5 -0
- package/dist/esm/speaker-identification/index.js.map +1 -0
- package/dist/esm/speaker-identification/openai.js +110 -0
- package/dist/esm/speaker-identification/openai.js.map +1 -0
- package/dist/esm/speaker-identification/remember.js +181 -0
- package/dist/esm/speaker-identification/remember.js.map +1 -0
- package/dist/esm/speaker-identification/settings.js +110 -0
- package/dist/esm/speaker-identification/settings.js.map +1 -0
- package/dist/esm/speaker-identification/types.js +2 -0
- package/dist/esm/speaker-identification/types.js.map +1 -0
- package/dist/esm/tokenizer.js +25 -0
- package/dist/esm/tokenizer.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/cache-keys.d.ts +8 -0
- package/dist/types/cache.d.ts +3 -11
- package/dist/types/config/speakers.d.ts +2 -0
- package/dist/types/config/types.d.ts +43 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/costs.d.ts +2 -2
- package/dist/types/daemon/agent-model.d.ts +1 -0
- package/dist/types/daemon/env-snapshot.d.ts +1 -1
- package/dist/types/daemon/models.d.ts +3 -0
- package/dist/types/daemon/url-fetch-guard.d.ts +2 -1
- package/dist/types/flags.d.ts +2 -0
- package/dist/types/llm/cli-provider-output.d.ts +6 -1
- package/dist/types/llm/cli.d.ts +2 -1
- package/dist/types/llm/model-id.d.ts +1 -1
- package/dist/types/llm/model-options.d.ts +20 -0
- package/dist/types/llm/provider-profile.d.ts +4 -3
- package/dist/types/llm/providers/anthropic.d.ts +29 -2
- package/dist/types/llm/providers/minimax.d.ts +1 -0
- package/dist/types/llm/providers/models.d.ts +5 -0
- package/dist/types/llm/providers/openai.d.ts +6 -1
- package/dist/types/model-spec.d.ts +2 -2
- package/dist/types/run/flows/asset/summary.d.ts +2 -0
- package/dist/types/run/flows/url/fetch-options.d.ts +1 -0
- package/dist/types/run/flows/url/markdown.d.ts +1 -1
- package/dist/types/run/flows/url/slides-text-markdown.d.ts +2 -1
- package/dist/types/run/flows/url/types.d.ts +9 -2
- package/dist/types/run/run-config.d.ts +3 -2
- package/dist/types/run/run-context.d.ts +5 -1
- package/dist/types/run/run-env.d.ts +3 -0
- package/dist/types/run/run-settings.d.ts +4 -2
- package/dist/types/run/runner-flags.d.ts +6 -1
- package/dist/types/run/runner-setup.d.ts +1 -0
- package/dist/types/run/summary-engine.d.ts +9 -4
- package/dist/types/run/types.d.ts +1 -1
- package/dist/types/shared/cache-store.d.ts +34 -0
- package/dist/types/shared/dns-pinned-fetch.d.ts +1 -0
- package/dist/types/shared/fetch-capabilities.d.ts +10 -0
- package/dist/types/shared/slides-presentation.d.ts +2 -1
- package/dist/types/shared/sse-events.d.ts +1 -0
- package/dist/types/shared/transcript-diarization-cache-scope.d.ts +11 -0
- package/dist/types/slides/frame-extraction.d.ts +4 -3
- package/dist/types/slides/process.d.ts +8 -3
- package/dist/types/slides/scene-detection.d.ts +4 -3
- package/dist/types/speaker-identification/identify.d.ts +40 -0
- package/dist/types/speaker-identification/index.d.ts +5 -0
- package/dist/types/speaker-identification/openai.d.ts +27 -0
- package/dist/types/speaker-identification/remember.d.ts +7 -0
- package/dist/types/speaker-identification/settings.d.ts +6 -0
- package/dist/types/speaker-identification/types.d.ts +38 -0
- package/dist/types/tokenizer.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/docs/README.md +1 -1
- package/docs/cache.md +1 -1
- package/docs/chrome-extension.md +6 -4
- package/docs/cli.md +30 -3
- package/docs/commands/slides.md +3 -3
- package/docs/commands/summarize.md +22 -2
- package/docs/config.md +40 -2
- package/docs/index.md +1 -1
- package/docs/install.md +11 -9
- package/docs/llm.md +15 -2
- package/docs/media.md +2 -1
- package/docs/transcript-provider-flow.md +10 -0
- package/docs/youtube.md +45 -1
- package/package.json +16 -16
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
|
|
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 (
|
|
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.
|
|
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.
|
|
36
|
-
"
|
|
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.
|
|
47
|
-
"@steipete/summarize-core": "0.
|
|
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/
|
|
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.
|
|
55
|
-
"@vitest/coverage-v8": "^4.1.
|
|
53
|
+
"@typescript/native-preview": "7.0.0-dev.20260609.1",
|
|
54
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
56
55
|
"esbuild": "^0.28.0",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
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.
|
|
61
|
+
"tsx": "^4.22.4",
|
|
62
62
|
"typescript": "^6.0.3",
|
|
63
|
-
"vitest": "^4.1.
|
|
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",
|