@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.
Files changed (81) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +2 -0
  3. package/dist/esm/application/asset-execution.js +1 -4
  4. package/dist/esm/application/asset-execution.js.map +1 -1
  5. package/dist/esm/application/execution-input.js +1 -9
  6. package/dist/esm/application/execution-input.js.map +1 -1
  7. package/dist/esm/application/metrics.js +12 -9
  8. package/dist/esm/application/metrics.js.map +1 -1
  9. package/dist/esm/application/model-catalog.js +1 -1
  10. package/dist/esm/application/model-catalog.js.map +1 -1
  11. package/dist/esm/config/model.js +1 -1
  12. package/dist/esm/daemon/agent.js +1 -1
  13. package/dist/esm/daemon/models.js +9 -0
  14. package/dist/esm/daemon/models.js.map +1 -1
  15. package/dist/esm/llm/anthropic-catalog.js +26 -0
  16. package/dist/esm/llm/anthropic-catalog.js.map +1 -0
  17. package/dist/esm/llm/openai-catalog.js +5 -1
  18. package/dist/esm/llm/openai-catalog.js.map +1 -1
  19. package/dist/esm/llm/providers/anthropic.js +7 -24
  20. package/dist/esm/llm/providers/anthropic.js.map +1 -1
  21. package/dist/esm/llm/providers/openai/request-options.js +1 -1
  22. package/dist/esm/llm/providers/openai/request-options.js.map +1 -1
  23. package/dist/esm/llm/providers/shared.js +6 -1
  24. package/dist/esm/llm/providers/shared.js.map +1 -1
  25. package/dist/esm/localization/de.json +1 -1
  26. package/dist/esm/localization/en.json +1 -1
  27. package/dist/esm/localization/es.json +1 -1
  28. package/dist/esm/localization/fr.json +1 -1
  29. package/dist/esm/localization/it.json +1 -1
  30. package/dist/esm/localization/ja.json +1 -1
  31. package/dist/esm/localization/ko.json +1 -1
  32. package/dist/esm/localization/nl.json +1 -1
  33. package/dist/esm/localization/pl.json +1 -1
  34. package/dist/esm/localization/pt-BR.json +1 -1
  35. package/dist/esm/localization/ru.json +1 -1
  36. package/dist/esm/localization/tr.json +1 -1
  37. package/dist/esm/localization/zh-Hans.json +1 -1
  38. package/dist/esm/localization/zh-Hant.json +1 -1
  39. package/dist/esm/markitdown.js +1 -1
  40. package/dist/esm/model-auto-rules.js +6 -6
  41. package/dist/esm/model-auto.js +1 -1
  42. package/dist/esm/model-auto.js.map +1 -1
  43. package/dist/esm/model-spec.js +5 -1
  44. package/dist/esm/model-spec.js.map +1 -1
  45. package/dist/esm/pricing/litellm.js +16 -5
  46. package/dist/esm/pricing/litellm.js.map +1 -1
  47. package/dist/esm/run/cli-summarize-execution.js +13 -3
  48. package/dist/esm/run/cli-summarize-execution.js.map +1 -1
  49. package/dist/esm/run/flows/asset/media.js +4 -1
  50. package/dist/esm/run/flows/asset/media.js.map +1 -1
  51. package/dist/esm/run/flows/asset/output.js +8 -3
  52. package/dist/esm/run/flows/asset/output.js.map +1 -1
  53. package/dist/esm/run/flows/asset/summary.js +2 -0
  54. package/dist/esm/run/flows/asset/summary.js.map +1 -1
  55. package/dist/esm/run/flows/url/markdown.js +1 -1
  56. package/dist/esm/run/help.js +3 -3
  57. package/dist/esm/run/help.js.map +1 -1
  58. package/dist/esm/speaker-identification/settings.js +1 -1
  59. package/dist/esm/speaker-identification/settings.js.map +1 -1
  60. package/dist/esm/version.js +1 -1
  61. package/dist/types/application/model-catalog.d.ts +1 -1
  62. package/dist/types/config/types.d.ts +1 -1
  63. package/dist/types/llm/anthropic-catalog.d.ts +2 -0
  64. package/dist/types/llm/openai-catalog.d.ts +36 -0
  65. package/dist/types/llm/providers/anthropic.d.ts +2 -1
  66. package/dist/types/locale.d.ts +2 -4
  67. package/dist/types/pricing/litellm.d.ts +1 -1
  68. package/dist/types/run/cli-summarize-execution.d.ts +1 -1
  69. package/dist/types/run/flows/asset/output.d.ts +2 -2
  70. package/dist/types/run/flows/asset/summary.d.ts +21 -0
  71. package/dist/types/run/flows/asset/types.d.ts +2 -1
  72. package/dist/types/speaker-identification/settings.d.ts +1 -1
  73. package/dist/types/version.d.ts +1 -1
  74. package/docs/cli.md +7 -5
  75. package/docs/commands/summarize.md +6 -6
  76. package/docs/config.md +8 -8
  77. package/docs/extract-only.md +5 -2
  78. package/docs/llm.md +14 -7
  79. package/docs/model-auto.md +3 -3
  80. package/docs/openai.md +11 -27
  81. 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/gpt-5.5`
52
- - `openai/gpt-5.5`
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/openai/gpt-5.4`
59
- - `cli/copilot/gpt-5.2`
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-5-mini`
69
- - `openai/gpt-5-nano`
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-4o-mini`; 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.
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.
@@ -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-5-mini`, `google/gemini-3-flash`)
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-5-mini"]
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-5-mini", "openrouter/openai/gpt-5-mini"]
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
- ## GPT-6
15
+ ## Current models
16
16
 
17
- Use the documented model ids: `openai/gpt-6-astra`, `openai/gpt-6-sol`, `openai/gpt-6-luna`, or `openai/gpt-6.1-sol`.
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 https://summarize.sh/ --model openai/gpt-6-astra --thinking medium --fast
23
- summarize https://summarize.sh/ --model openai/gpt-6-sol --thinking medium
24
- summarize https://summarize.sh/ --model openai/gpt-6-luna --thinking low
25
- summarize https://summarize.sh/ --model openai/gpt-6.1-sol --thinking max
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
- These explicit model ids do not change the default model or existing presets.
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
- ## Fast mode
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
- Fast mode is a service tier, not a model id. Prefer flags:
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
- ```sh
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
- - `--model gpt-fast` / `--model fast`: `openai/gpt-5.5` with fast service tier and medium thinking.
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.27.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.27.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",