@steipete/summarize 0.27.0 → 0.28.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 +11 -1
- package/README.md +2 -0
- package/dist/esm/application/asset-execution.js +1 -4
- package/dist/esm/application/asset-execution.js.map +1 -1
- package/dist/esm/application/execution-input.js +1 -9
- package/dist/esm/application/execution-input.js.map +1 -1
- package/dist/esm/application/metrics.js +12 -9
- package/dist/esm/application/metrics.js.map +1 -1
- package/dist/esm/application/model-catalog.js +1 -1
- package/dist/esm/application/model-catalog.js.map +1 -1
- package/dist/esm/config/model.js +1 -1
- package/dist/esm/daemon/agent.js +1 -1
- package/dist/esm/daemon/models.js +9 -0
- package/dist/esm/daemon/models.js.map +1 -1
- package/dist/esm/llm/anthropic-catalog.js +26 -0
- package/dist/esm/llm/anthropic-catalog.js.map +1 -0
- package/dist/esm/llm/openai-catalog.js +5 -1
- package/dist/esm/llm/openai-catalog.js.map +1 -1
- package/dist/esm/llm/providers/anthropic.js +7 -24
- package/dist/esm/llm/providers/anthropic.js.map +1 -1
- package/dist/esm/llm/providers/openai/request-options.js +1 -1
- package/dist/esm/llm/providers/openai/request-options.js.map +1 -1
- package/dist/esm/llm/providers/shared.js +6 -1
- package/dist/esm/llm/providers/shared.js.map +1 -1
- package/dist/esm/localization/de.json +1 -1
- package/dist/esm/localization/en.json +1 -1
- package/dist/esm/localization/es.json +1 -1
- package/dist/esm/localization/fr.json +1 -1
- package/dist/esm/localization/it.json +1 -1
- package/dist/esm/localization/ja.json +1 -1
- package/dist/esm/localization/ko.json +1 -1
- package/dist/esm/localization/nl.json +1 -1
- package/dist/esm/localization/pl.json +1 -1
- package/dist/esm/localization/pt-BR.json +1 -1
- package/dist/esm/localization/ru.json +1 -1
- package/dist/esm/localization/tr.json +1 -1
- package/dist/esm/localization/zh-Hans.json +1 -1
- package/dist/esm/localization/zh-Hant.json +1 -1
- package/dist/esm/markitdown.js +1 -1
- package/dist/esm/model-auto-rules.js +6 -6
- package/dist/esm/model-auto.js +1 -1
- package/dist/esm/model-auto.js.map +1 -1
- package/dist/esm/model-spec.js +5 -1
- package/dist/esm/model-spec.js.map +1 -1
- package/dist/esm/pricing/litellm.js +16 -5
- package/dist/esm/pricing/litellm.js.map +1 -1
- package/dist/esm/run/cli-summarize-execution.js +13 -3
- package/dist/esm/run/cli-summarize-execution.js.map +1 -1
- package/dist/esm/run/flows/asset/media.js +4 -1
- package/dist/esm/run/flows/asset/media.js.map +1 -1
- package/dist/esm/run/flows/asset/output.js +8 -3
- package/dist/esm/run/flows/asset/output.js.map +1 -1
- package/dist/esm/run/flows/asset/summary.js +2 -0
- package/dist/esm/run/flows/asset/summary.js.map +1 -1
- package/dist/esm/run/flows/url/markdown.js +1 -1
- package/dist/esm/run/help.js +3 -3
- package/dist/esm/run/help.js.map +1 -1
- package/dist/esm/speaker-identification/settings.js +1 -1
- package/dist/esm/speaker-identification/settings.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/application/model-catalog.d.ts +1 -1
- package/dist/types/config/types.d.ts +1 -1
- package/dist/types/llm/anthropic-catalog.d.ts +2 -0
- package/dist/types/llm/openai-catalog.d.ts +36 -0
- package/dist/types/llm/providers/anthropic.d.ts +2 -1
- package/dist/types/locale.d.ts +2 -4
- package/dist/types/pricing/litellm.d.ts +1 -1
- package/dist/types/run/cli-summarize-execution.d.ts +1 -1
- package/dist/types/run/flows/asset/output.d.ts +2 -2
- package/dist/types/run/flows/asset/summary.d.ts +21 -0
- package/dist/types/run/flows/asset/types.d.ts +2 -1
- package/dist/types/speaker-identification/settings.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/docs/cli.md +7 -5
- package/docs/commands/summarize.md +6 -6
- package/docs/config.md +8 -8
- package/docs/extract-only.md +5 -2
- package/docs/llm.md +14 -7
- package/docs/model-auto.md +3 -3
- package/docs/openai.md +11 -27
- package/package.json +2 -2
package/docs/llm.md
CHANGED
|
@@ -20,6 +20,10 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
|
|
|
20
20
|
|
|
21
21
|
Anthropic defaults use Claude Sonnet 5.5. Its requests omit unsupported sampling controls and use `between_tools` thinking when no reasoning effort is requested, preserving summaries without up-front thinking. Explicit model selections remain unchanged.
|
|
22
22
|
|
|
23
|
+
Current Claude models share a 1M context window and 128K output ceiling. Fable 5.2 and Opus 5.5 always use adaptive thinking (`--thinking none` is rejected); Sonnet 5.5 uses `between_tools` without explicit reasoning, and Haiku 5.5 can disable thinking. All four support low, medium, high, xhigh, and max effort. Their standard input/output prices per million tokens are $8/$40, $4/$20, $2/$10, and $0.10/$0.50 respectively. Haiku prompts over 100,000 tokens cost $0.50/$2.50. See [Claude models](https://platform.claude.com/docs/en/models/overview).
|
|
24
|
+
|
|
25
|
+
The model picker omits retired Claude models, including Sonnet 4.5 (retired November 30, 2026). Older models still served by the provider remain selectable; explicit configs keep their original IDs. See [Claude deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations).
|
|
26
|
+
|
|
23
27
|
## Env
|
|
24
28
|
|
|
25
29
|
- `.env` (optional): when running the CLI, `summarize` also reads `.env` in the current working directory and merges it into the environment (real env vars win).
|
|
@@ -48,15 +52,15 @@ Anthropic defaults use Claude Sonnet 5.5. Its requests omit unsupported sampling
|
|
|
48
52
|
|
|
49
53
|
- `--model <model>`
|
|
50
54
|
- Examples:
|
|
51
|
-
- `cli/codex
|
|
52
|
-
- `openai/gpt-
|
|
55
|
+
- `cli/codex`
|
|
56
|
+
- `openai/gpt-6.2-sol`
|
|
53
57
|
- `codex-fast` (explicit Codex CLI GPT Fast preset)
|
|
54
58
|
- `cli/claude/sonnet`
|
|
55
59
|
- `cli/gemini/flash`
|
|
56
60
|
- `cli/agent/auto`
|
|
57
61
|
- `cli/openclaw/main`
|
|
58
|
-
- `cli/opencode
|
|
59
|
-
- `cli/copilot
|
|
62
|
+
- `cli/opencode`
|
|
63
|
+
- `cli/copilot`
|
|
60
64
|
- `cli/agy` / `cli/agy/gemini-3.8-flash-high`
|
|
61
65
|
- `cli/pi/openai/gpt-5.4`
|
|
62
66
|
- `cli/devin/swe-2-max`
|
|
@@ -65,8 +69,8 @@ Anthropic defaults use Claude Sonnet 5.5. Its requests omit unsupported sampling
|
|
|
65
69
|
- `openai/gpt-5.4-mini`
|
|
66
70
|
- `openai/gpt-5.4-nano`
|
|
67
71
|
- `google/gemini-3-flash`
|
|
68
|
-
- `openai/gpt-
|
|
69
|
-
- `openai/gpt-
|
|
72
|
+
- `openai/gpt-6-luna`
|
|
73
|
+
- `openai/gpt-6.1-terra`
|
|
70
74
|
- `nvidia/z-ai/glm5`
|
|
71
75
|
- `minimax/MiniMax-M3`
|
|
72
76
|
- `zai/glm-4.7`
|
|
@@ -75,6 +79,9 @@ Anthropic defaults use Claude Sonnet 5.5. Its requests omit unsupported sampling
|
|
|
75
79
|
- `xai/grok-4-fast-non-reasoning`
|
|
76
80
|
- `google/gemini-2.0-flash`
|
|
77
81
|
- `anthropic/claude-sonnet-5-5`
|
|
82
|
+
- `anthropic/claude-haiku-5-5`
|
|
83
|
+
- `anthropic/claude-opus-5-5`
|
|
84
|
+
- `anthropic/claude-fable-5-2`
|
|
78
85
|
- `openrouter/meta-llama/llama-3.3-70b-instruct:free` (force OpenRouter)
|
|
79
86
|
- `--cli [provider]`
|
|
80
87
|
- Examples: `--cli claude`, `--cli Gemini`, `--cli codex`, `--cli agent`, `--cli openclaw`, `--cli opencode`, `--cli copilot`, `--cli agy`, `--cli pi`, `--cli devin`, `--cli grok` (equivalent to `--model cli/<provider>`); `--cli` alone uses auto selection with CLI enabled.
|
|
@@ -187,5 +194,5 @@ for full setup, model recommendations, and limitations.
|
|
|
187
194
|
|
|
188
195
|
- For PDF inputs, `--preprocess auto` will send the PDF directly to Anthropic/OpenAI/Gemini when a fixed model supports documents; otherwise we fall back to markitdown.
|
|
189
196
|
- `--preprocess always` forces markitdown (no direct attachments).
|
|
190
|
-
- When markitdown returns only page headers for an image-only PDF, summarize can retry with OpenAI vision OCR if `OPENAI_API_KEY` is available. The OCR model defaults to `gpt-
|
|
197
|
+
- When markitdown returns only page headers for an image-only PDF, summarize can retry with OpenAI vision OCR if `OPENAI_API_KEY` is available. The OCR model defaults to `gpt-6-luna`; set `MARKITDOWN_OCR_MODEL` to override it, or `MARKITDOWN_OCR_DPI` to tune rendered page size. This sends rendered PDF pages to the OpenAI API and may incur per-page vision costs.
|
|
191
198
|
- Streaming is disabled for document attachments.
|
package/docs/model-auto.md
CHANGED
|
@@ -26,7 +26,7 @@ This is also the built-in default when you don’t specify a model.
|
|
|
26
26
|
|
|
27
27
|
Model ids:
|
|
28
28
|
|
|
29
|
-
- Native: `<provider>/<model>` (e.g. `openai/gpt-
|
|
29
|
+
- Native: `<provider>/<model>` (e.g. `openai/gpt-6-luna`, `google/gemini-3-flash`)
|
|
30
30
|
- Forced OpenRouter: `openrouter/<author>/<slug>` (e.g. `openrouter/meta-llama/llama-3.3-70b-instruct:free`)
|
|
31
31
|
|
|
32
32
|
Behavior:
|
|
@@ -79,7 +79,7 @@ Example:
|
|
|
79
79
|
"bands": [
|
|
80
80
|
{
|
|
81
81
|
"token": { "max": 8000 },
|
|
82
|
-
"candidates": ["openai/gpt-
|
|
82
|
+
"candidates": ["openai/gpt-6-luna"]
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"candidates": ["xai/grok-4-fast-non-reasoning"]
|
|
@@ -87,7 +87,7 @@ Example:
|
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
"candidates": ["openai/gpt-
|
|
90
|
+
"candidates": ["openai/gpt-6-luna", "openrouter/openai/gpt-6-luna"]
|
|
91
91
|
}
|
|
92
92
|
]
|
|
93
93
|
},
|
package/docs/openai.md
CHANGED
|
@@ -12,42 +12,26 @@ Use OpenAI directly by choosing an `openai/...` model id.
|
|
|
12
12
|
|
|
13
13
|
For the full model/provider matrix, see `docs/llm.md`.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Current models
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
Summarize uses the Responses API by default for direct OpenAI text and image requests, including streaming, and for PDF inputs. `OPENAI_USE_CHAT_COMPLETIONS=1` still selects Chat Completions for text and images.
|
|
19
|
-
Reasoning requests omit `temperature`, which GPT-6 rejects. GPT-6 Sol and Luna preserve temperature when explicitly using `--thinking none`; Astra and GPT-6.1 Sol require reasoning.
|
|
17
|
+
As verified against the official catalog and Models API on December 5, 2026, the latest general-purpose models are GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, and GPT-6 Luna. Auto summaries and direct browser requests use `openai/gpt-6-luna` for the OpenAI budget slot; `fast` and `gpt-fast` use `openai/gpt-6.2-sol` with medium reasoning and the fast service tier.
|
|
20
18
|
|
|
21
19
|
```sh
|
|
22
|
-
summarize
|
|
23
|
-
summarize
|
|
24
|
-
summarize
|
|
25
|
-
summarize
|
|
20
|
+
summarize URL --model openai/gpt-6-luna --thinking low
|
|
21
|
+
summarize URL --model openai/gpt-6.1-terra --thinking medium
|
|
22
|
+
summarize URL --model openai/gpt-6.2-sol --thinking medium --fast
|
|
23
|
+
summarize URL --model openai/gpt-6.2-astra --thinking max
|
|
26
24
|
```
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
The model picker and built-in pricing catalog include all four models. Standard input/output
|
|
30
|
-
prices per million tokens are $10/$50 for Astra, $2/$10 for Sol and GPT-6.1 Sol, and $0.10/$0.50 for Luna.
|
|
31
|
-
Cost estimates use these standard rates; they do not include cache discounts, cache writes,
|
|
32
|
-
fast/flex service tiers, or long-context premiums. See [OpenAI pricing](https://developers.openai.com/api/docs/pricing).
|
|
33
|
-
All four GPT-6 models support `low`, `medium`, `high`, `xhigh`, and `max`. Summarize accepts `max` only for these documented model ids.
|
|
34
|
-
An unsupported `--thinking none` request for Astra or GPT-6.1 Sol fails locally before sending an API request.
|
|
35
|
-
See OpenAI's [GPT-6 guide](https://developers.openai.com/api/docs/guides/latest-model) and model pages for [Astra](https://developers.openai.com/api/docs/models/gpt-6-astra), [Sol](https://developers.openai.com/api/docs/models/gpt-6-sol), [Luna](https://developers.openai.com/api/docs/models/gpt-6-luna), and [GPT-6.1 Sol](https://developers.openai.com/api/docs/models/gpt-6.1-sol).
|
|
26
|
+
All four accept text and images and support 1,050,000 context tokens, at most 922,000 input tokens, and 128,000 output tokens. Their standard input/output prices per million tokens are $0.10/$0.50 (Luna), $1/$5 (Terra), $2/$10 (Sol), and $8/$40 (Astra). Cost estimates exclude caching, service-tier adjustments, and long-context premiums. See [OpenAI pricing](https://developers.openai.com/api/docs/pricing).
|
|
36
27
|
|
|
37
|
-
|
|
28
|
+
All cataloged GPT-6 models support `low`, `medium`, `high`, `xhigh`, and `max`. Luna, GPT-6 Sol, and GPT-6.1 Terra also support `none`. Astra, GPT-6.1 Sol, and both GPT-6.2 models require reasoning; unsupported `none` fails locally before a request. Summarize omits sampling controls when reasoning is enabled.
|
|
38
29
|
|
|
39
|
-
|
|
30
|
+
Direct OpenAI requests use Responses, including browser tool calls. `OPENAI_USE_CHAT_COMPLETIONS=1` still selects Chat Completions for CLI text/image summaries. Older served models, including GPT-6 and GPT-6.1 Sol, remain selectable. GPT-5, mini, nano, pro, o3, and o3-pro retire December 11, 2026; GPT-4o and GPT-4.1 families retire January 14, 2027. Explicit settings are not silently rewritten. See the official [catalog](https://developers.openai.com/api/docs/models) and [deprecations](https://developers.openai.com/api/docs/deprecations).
|
|
40
31
|
|
|
41
|
-
|
|
42
|
-
summarize URL --model openai/gpt-5.5 --fast --thinking medium
|
|
43
|
-
summarize URL --model openai/gpt-5.4 --service-tier fast --thinking low
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Compatibility aliases:
|
|
32
|
+
## Fast mode
|
|
47
33
|
|
|
48
|
-
|
|
49
|
-
- `--model openai/gpt-5.5-fast` or `--model openai/gpt-5.4-mini-fast`: strip the `-fast` suffix for the API model id and use fast service tier.
|
|
50
|
-
- `--model codex-fast`: explicit Codex CLI fast preset.
|
|
34
|
+
Fast mode is a service tier. `--fast` and `--service-tier fast` request it on the selected model. The `fast` / `gpt-fast` presets select GPT-6.2 Sol; the explicit `codex-fast` preset uses the installed Codex CLI's supported default. A `-fast` suffix on cataloged GPT-6 IDs or older GPT-5.4/5.5 IDs selects the original model and fast tier, so existing explicit aliases retain their targets.
|
|
51
35
|
|
|
52
36
|
## Env
|
|
53
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steipete/summarize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Link → clean text → summary.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@earendil-works/pi-ai": "^1.5.2",
|
|
41
|
-
"@steipete/summarize-core": "0.
|
|
41
|
+
"@steipete/summarize-core": "0.28.0",
|
|
42
42
|
"bpe-lite": "^0.5.2",
|
|
43
43
|
"commander": "^15.1.0",
|
|
44
44
|
"file-type": "^22.3.0",
|