@steipete/summarize 0.25.2 → 0.26.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 +36 -1
- package/dist/esm/agy-model.js +7 -0
- package/dist/esm/agy-model.js.map +1 -0
- package/dist/esm/application/model-selection.js +1 -1
- package/dist/esm/application/model-selection.js.map +1 -1
- package/dist/esm/cli-main.js +5 -0
- package/dist/esm/cli-main.js.map +1 -1
- package/dist/esm/config/sections.js +6 -1
- package/dist/esm/config/sections.js.map +1 -1
- package/dist/esm/daemon/server-session-routes.js +16 -6
- package/dist/esm/daemon/server-session-routes.js.map +1 -1
- package/dist/esm/llm/cli-exec.js +19 -4
- package/dist/esm/llm/cli-exec.js.map +1 -1
- package/dist/esm/llm/cli-runners/plain.js +7 -0
- package/dist/esm/llm/cli-runners/plain.js.map +1 -1
- package/dist/esm/llm/generate-text-stream.js +2 -1
- package/dist/esm/llm/generate-text-stream.js.map +1 -1
- package/dist/esm/llm/providers/openai/chat-completions.js +27 -5
- package/dist/esm/llm/providers/openai/chat-completions.js.map +1 -1
- package/dist/esm/llm/providers/openai/transport.js +18 -2
- package/dist/esm/llm/providers/openai/transport.js.map +1 -1
- package/dist/esm/llm/providers/openai.js +8 -19
- package/dist/esm/llm/providers/openai.js.map +1 -1
- package/dist/esm/model-auto-cli.js +1 -2
- package/dist/esm/model-auto-cli.js.map +1 -1
- package/dist/esm/model-spec.js +4 -4
- package/dist/esm/model-spec.js.map +1 -1
- package/dist/esm/run/status-cli.js +0 -2
- package/dist/esm/run/status-cli.js.map +1 -1
- package/dist/esm/slides/extract.js +11 -3
- package/dist/esm/slides/extract.js.map +1 -1
- package/dist/esm/slides/process.js +2 -2
- package/dist/esm/slides/process.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/agy-model.d.ts +1 -0
- package/dist/types/llm/cli-exec.d.ts +2 -1
- package/dist/types/llm/providers/openai/transport.d.ts +2 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/chrome-extension.md +3 -0
- package/docs/cli.md +7 -3
- package/docs/config.md +5 -2
- package/docs/llm.md +3 -2
- package/docs/media.md +2 -1
- package/docs/timestamps.md +2 -2
- package/package.json +16 -16
package/docs/media.md
CHANGED
|
@@ -24,7 +24,7 @@ read_when:
|
|
|
24
24
|
- RSS and Atom feed URLs use the podcast/content pipeline rather than raw XML file handling. Published feed transcripts take precedence over media transcription; ordinary XML documents remain file inputs.
|
|
25
25
|
- Podcast episode title matching preserves non-Latin letters and combining marks while ignoring case, punctuation, and Latin accents. Explicit titles without letters or numbers do not select an arbitrary RSS episode; feed requests without an episode title still use the first available transcript.
|
|
26
26
|
- `--video-mode transcript` prefers transcript-first media handling even when a page has text.
|
|
27
|
-
- Direct media URLs (mp4/webm/m4a/etc) skip HTML and transcribe.
|
|
27
|
+
- Direct media URLs (mp4/webm/m4a/etc) skip HTML and transcribe. Unknown codec metadata is allowed as a final download fallback; formats explicitly marked as having no audio are excluded.
|
|
28
28
|
- Local audio/video files are routed through the same transcript-first pipeline.
|
|
29
29
|
- `--diarize [auto|elevenlabs|openai]` adds speaker labels to local files and direct media URLs; `--identify-speakers`, anchors, profiles, and remembered mappings use the same naming pass as YouTube. Local files do not require `yt-dlp`. Local video is converted once to mono 16 kHz MP3 before upload, then reused if diarization falls back between providers.
|
|
30
30
|
- YouTube diarization selects audio-only media. Combined `--slides --diarize` downloads separate video-only and audio-only streams in one yt-dlp run, then shares the video with slide extraction.
|
|
@@ -36,6 +36,7 @@ read_when:
|
|
|
36
36
|
- 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.
|
|
37
37
|
- Remote transcription providers: `ASSEMBLYAI_API_KEY`, `GEMINI_API_KEY` / `GOOGLE_GENERATIVE_AI_API_KEY` / `GOOGLE_API_KEY`, `OPENAI_API_KEY`, `FAL_KEY`, `DEEPGRAM_API_KEY` (plus `GROQ_API_KEY` before local/remote fallback). Gemini defaults to `gemini-2.5-flash`; override with `SUMMARIZE_GEMINI_TRANSCRIPTION_MODEL`. Deepgram defaults to `nova-3`; override with `SUMMARIZE_DEEPGRAM_TRANSCRIPTION_MODEL`. Diarization uses `ELEVENLABS_API_KEY` or `OPENAI_API_KEY`.
|
|
38
38
|
- Gemini uses the Files API automatically for larger uploads.
|
|
39
|
+
- FAL uploads and each AssemblyAI upload/submission have a ten-minute deadline that also covers reading response bodies. Their existing ten-minute processing allowance starts after upload (FAL) or submission (AssemblyAI), so uploading does not shorten transcription time.
|
|
39
40
|
|
|
40
41
|
## Shared helpers
|
|
41
42
|
|
package/docs/timestamps.md
CHANGED
|
@@ -14,7 +14,7 @@ Short scope
|
|
|
14
14
|
- Preserve existing plain transcript text; add structured segments + timed text.
|
|
15
15
|
- Chat mode: include timed transcript + prompt for `[mm:ss]` references.
|
|
16
16
|
- Sidepanel: click timestamp → seek media (video or audio), keep play state.
|
|
17
|
-
- Coverage: YouTube, podcasts, embedded captions, generic media; whisper.cpp
|
|
17
|
+
- Coverage: YouTube, podcasts, embedded captions, generic media; whisper.cpp decodes timestamp tokens to preserve speech at window boundaries, but currently returns plain text without exposed segments.
|
|
18
18
|
|
|
19
19
|
## 1) API / data model
|
|
20
20
|
|
|
@@ -122,5 +122,5 @@ Chrome extension
|
|
|
122
122
|
|
|
123
123
|
## 9) Notes / open
|
|
124
124
|
|
|
125
|
-
- “VisPoR” = whisper.cpp: no
|
|
125
|
+
- “VisPoR” = whisper.cpp: no exposed timestamp segments until a structured output path is added.
|
|
126
126
|
- Decide exact format of `transcriptTimedText` (recommend `[mm:ss] text` per line).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steipete/summarize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Link → clean text → summary.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,29 +37,29 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@earendil-works/pi-ai": "^
|
|
41
|
-
"@steipete/summarize-core": "0.
|
|
40
|
+
"@earendil-works/pi-ai": "^1.3.0",
|
|
41
|
+
"@steipete/summarize-core": "0.26.0",
|
|
42
42
|
"bpe-lite": "^0.5.2",
|
|
43
43
|
"commander": "^15.0.0",
|
|
44
|
-
"file-type": "^22.
|
|
44
|
+
"file-type": "^22.2.0",
|
|
45
45
|
"json5": "^2.2.3",
|
|
46
|
-
"markdansi": "^0.3.
|
|
47
|
-
"mime": "^4.1.
|
|
46
|
+
"markdansi": "^0.3.5",
|
|
47
|
+
"mime": "^4.1.1",
|
|
48
48
|
"osc-progress": "^0.3.4",
|
|
49
49
|
"tokentally": "^0.1.7",
|
|
50
|
-
"undici": "8.
|
|
50
|
+
"undici": "8.12.3"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/node": "^24.19.
|
|
54
|
-
"@types/sanitize-html": "^2.16.
|
|
55
|
-
"@vitest/coverage-v8": "^5.0.
|
|
56
|
-
"happy-dom": "^
|
|
57
|
-
"oxc-parser": "^0.
|
|
58
|
-
"oxfmt": "0.
|
|
59
|
-
"oxlint": "^1.
|
|
60
|
-
"oxlint-tsgolint": "^7.0.
|
|
53
|
+
"@types/node": "^24.19.2",
|
|
54
|
+
"@types/sanitize-html": "^2.16.2",
|
|
55
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
56
|
+
"happy-dom": "^21.0.4",
|
|
57
|
+
"oxc-parser": "^0.156.0",
|
|
58
|
+
"oxfmt": "0.75.0",
|
|
59
|
+
"oxlint": "^1.89.0",
|
|
60
|
+
"oxlint-tsgolint": "^7.0.2004",
|
|
61
61
|
"typescript": "^7.0.2",
|
|
62
|
-
"vitest": "^5.0.
|
|
62
|
+
"vitest": "^5.0.5"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=24"
|