@steipete/summarize 0.13.0 → 0.13.1

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 (39) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/esm/daemon/chat.js +12 -3
  4. package/dist/esm/daemon/chat.js.map +1 -1
  5. package/dist/esm/daemon/flow-context.js +3 -2
  6. package/dist/esm/daemon/flow-context.js.map +1 -1
  7. package/dist/esm/daemon/schtasks.js +167 -94
  8. package/dist/esm/daemon/schtasks.js.map +1 -1
  9. package/dist/esm/llm/cli.js +9 -2
  10. package/dist/esm/llm/cli.js.map +1 -1
  11. package/dist/esm/llm/provider-profile.js +2 -2
  12. package/dist/esm/llm/provider-profile.js.map +1 -1
  13. package/dist/esm/model-spec.js +1 -9
  14. package/dist/esm/model-spec.js.map +1 -1
  15. package/dist/esm/run/bird/parse.js +20 -0
  16. package/dist/esm/run/bird/parse.js.map +1 -1
  17. package/dist/esm/run/flows/asset/summary.js.map +1 -1
  18. package/dist/esm/run/flows/url/extraction-session.js +3 -2
  19. package/dist/esm/run/flows/url/extraction-session.js.map +1 -1
  20. package/dist/esm/run/run-env.js +2 -2
  21. package/dist/esm/run/run-env.js.map +1 -1
  22. package/dist/esm/run/runner-contexts.js +1 -0
  23. package/dist/esm/run/runner-contexts.js.map +1 -1
  24. package/dist/esm/run/runner-execution.js.map +1 -1
  25. package/dist/esm/run/runner-plan.js +4 -3
  26. package/dist/esm/run/runner-plan.js.map +1 -1
  27. package/dist/esm/tty/progress/transcript-state.js +6 -6
  28. package/dist/esm/tty/progress/transcript-state.js.map +1 -1
  29. package/dist/esm/version.js +1 -1
  30. package/dist/types/run/flows/asset/summary.d.ts +1 -0
  31. package/dist/types/run/flows/url/types.d.ts +1 -1
  32. package/dist/types/run/run-context.d.ts +1 -1
  33. package/dist/types/run/run-env.d.ts +1 -1
  34. package/dist/types/run/runner-execution.d.ts +1 -0
  35. package/dist/types/version.d.ts +1 -1
  36. package/docs/chrome-extension.md +3 -0
  37. package/docs/cli.md +5 -5
  38. package/docs/llm.md +2 -2
  39. package/package.json +11 -11
@@ -86,6 +86,7 @@ export type AssetSummaryContext = {
86
86
  zaiBaseUrl: string;
87
87
  nvidiaBaseUrl: string;
88
88
  assemblyaiApiKey: string | null;
89
+ openaiApiKey: string | null;
89
90
  };
90
91
  };
91
92
  export type AssetSummaryContextInput = {
@@ -105,7 +105,7 @@ export type UrlFlowModel = {
105
105
  falApiKey: string | null;
106
106
  groqApiKey: string | null;
107
107
  assemblyaiApiKey: string | null;
108
- openaiTranscriptionKey: string | null;
108
+ openaiApiKey: string | null;
109
109
  };
110
110
  summaryEngine: ReturnType<typeof createSummaryEngine>;
111
111
  getLiteLlmCatalog: () => Promise<Awaited<ReturnType<typeof import("../../../pricing/litellm.js").loadLiteLlmCatalog>>["catalog"]>;
@@ -13,7 +13,7 @@ export declare function resolveRunContextState({ env, envForRun, programOpts, la
13
13
  openrouterConfigured: boolean;
14
14
  groqApiKey: string | null;
15
15
  assemblyaiApiKey: string | null;
16
- openaiTranscriptionKey: string | null;
16
+ openaiApiKey: string | null;
17
17
  xaiApiKey: string | null;
18
18
  googleApiKey: string | null;
19
19
  anthropicApiKey: string | null;
@@ -5,7 +5,7 @@ export type EnvState = {
5
5
  openrouterConfigured: boolean;
6
6
  groqApiKey: string | null;
7
7
  assemblyaiApiKey: string | null;
8
- openaiTranscriptionKey: string | null;
8
+ openaiApiKey: string | null;
9
9
  xaiApiKey: string | null;
10
10
  googleApiKey: string | null;
11
11
  anthropicApiKey: string | null;
@@ -51,6 +51,7 @@ export declare function executeRunnerInput(options: {
51
51
  firecrawlConfigured: boolean;
52
52
  googleConfigured: boolean;
53
53
  anthropicConfigured: boolean;
54
+ openaiApiKey: string | null;
54
55
  };
55
56
  };
56
57
  summarizeAsset: (args: SummarizeAssetArgs) => Promise<void>;
@@ -1,4 +1,4 @@
1
- export declare const FALLBACK_VERSION = "0.13.0";
1
+ export declare const FALLBACK_VERSION = "0.13.1";
2
2
  export declare function resolvePackageVersion(importMetaUrl?: string): string;
3
3
  export declare function resolveGitSha(importMetaUrl?: string): string | null;
4
4
  export declare function formatVersionLine(importMetaUrl?: string): string;
@@ -40,6 +40,9 @@ Dev (repo checkout):
40
40
  - “Daemon not reachable”:
41
41
  - `summarize daemon status`
42
42
  - Logs: `~/.summarize/logs/daemon.err.log`
43
+ - Windows install:
44
+ - `summarize daemon install` registers a Scheduled Task via `schtasks /Create /XML`, which requires an **elevated** shell. Run it from an Administrator PowerShell/cmd; otherwise you'll see `schtasks create failed: ERROR: Access is denied.`
45
+ - The task launches `wscript.exe //B //Nologo %USERPROFILE%\.summarize\daemon-launch.vbs`. If install completes but `/health` is unreachable, run `cscript //nologo %USERPROFILE%\.summarize\daemon-launch.vbs` to surface launcher errors, then `schtasks /Query /TN "Summarize Daemon" /V /FO LIST` to inspect the task state.
43
46
  - macOS `launchctl bootstrap` errors (`Input/output error`, `Domain does not support specified action`):
44
47
  - `summarize daemon install` now tries both launchd domains (`gui/<uid>` then `user/<uid>`).
45
48
  - Install as your normal user (not root) so HOME + launchd domain match.
package/docs/cli.md CHANGED
@@ -12,8 +12,8 @@ Summarize can use installed CLIs (Claude, Codex, Gemini, Cursor Agent, OpenClaw,
12
12
 
13
13
  - `cli/claude/<model>` (e.g. `cli/claude/sonnet`)
14
14
  - `cli/codex/<model>` (e.g. `cli/codex/gpt-5.2`)
15
- - `cli/gemini/<model>` (e.g. `cli/gemini/gemini-3-flash`)
16
- - `cli/agent/<model>` (e.g. `cli/agent/gpt-5.2`)
15
+ - `cli/gemini/<model>` (e.g. `cli/gemini/flash`)
16
+ - `cli/agent/<model>` (e.g. `cli/agent/auto`)
17
17
  - `cli/openclaw/<model>` (e.g. `cli/openclaw/main`)
18
18
  - `openclaw/<model>` (alias for the same OpenClaw CLI path)
19
19
  - `cli/opencode/<model>` (e.g. `cli/opencode/openai/gpt-5.4`)
@@ -102,14 +102,14 @@ path-based prompt and enables the required tool flags:
102
102
  "order": ["claude", "gemini", "codex", "agent", "openclaw", "opencode"]
103
103
  },
104
104
  "codex": { "model": "gpt-5.2" },
105
- "gemini": { "model": "gemini-3-flash", "extraArgs": ["--verbose"] },
105
+ "gemini": { "model": "flash", "extraArgs": ["--verbose"] },
106
106
  "claude": {
107
107
  "model": "sonnet",
108
108
  "binary": "/usr/local/bin/claude",
109
109
  "extraArgs": ["--verbose"]
110
110
  },
111
111
  "agent": {
112
- "model": "gpt-5.2",
112
+ "model": "auto",
113
113
  "binary": "/usr/local/bin/agent"
114
114
  },
115
115
  "openclaw": {
@@ -129,7 +129,7 @@ Notes:
129
129
  - If a CLI call fails, auto mode falls back to the next candidate.
130
130
  - Cursor Agent CLI uses the `agent` binary and relies on Cursor CLI auth (login or `CURSOR_API_KEY`).
131
131
  - Gemini CLI is invoked in headless mode with `--prompt` for compatibility with current Gemini CLI releases.
132
- - OpenClaw uses the `openclaw agent --agent <model> - --json` path, streams the prompt over stdin, and expects local OpenClaw auth/config to already be set up.
132
+ - OpenClaw uses `openclaw agent --agent <model> --message <prompt> --json` because current OpenClaw requires `-m/--message`; very large extracted inputs are rejected before launch to avoid argv limits.
133
133
  - OpenCode uses `opencode run --format json`, streams prompt text over stdin, and uses the runtime default model when none is configured.
134
134
 
135
135
  ## Quick smoke test (all CLI providers)
package/docs/llm.md CHANGED
@@ -43,8 +43,8 @@ installed, auto mode can use local CLI models via `cli.enabled` or implicit auto
43
43
  - Examples:
44
44
  - `cli/codex/gpt-5.2`
45
45
  - `cli/claude/sonnet`
46
- - `cli/gemini/gemini-3-flash`
47
- - `cli/agent/gpt-5.2`
46
+ - `cli/gemini/flash`
47
+ - `cli/agent/auto`
48
48
  - `cli/openclaw/main`
49
49
  - `cli/opencode/openai/gpt-5.4`
50
50
  - `openai/gpt-5.4`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steipete/summarize",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Link → clean text → summary.",
5
5
  "bin": {
6
6
  "summarize": "./dist/cli.js",
@@ -32,9 +32,9 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@mariozechner/pi-ai": "^0.65.2",
35
+ "@mariozechner/pi-ai": "^0.68.1",
36
36
  "commander": "^14.0.3",
37
- "file-type": "^22.0.0",
37
+ "file-type": "^22.0.1",
38
38
  "gpt-tokenizer": "^3.4.0",
39
39
  "json5": "^2.2.3",
40
40
  "markdansi": "^0.2.1",
@@ -43,22 +43,22 @@
43
43
  "osc-progress": "^0.3.0",
44
44
  "tokentally": "^0.1.1",
45
45
  "tslog": "^4.10.2",
46
- "@steipete/summarize-core": "0.13.0"
46
+ "@steipete/summarize-core": "0.13.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@fal-ai/client": "^1.9.5",
50
50
  "@types/jsdom": "^28.0.1",
51
- "@types/node": "^25.5.2",
51
+ "@types/node": "^25.6.0",
52
52
  "@types/sanitize-html": "^2.16.1",
53
- "@vitest/coverage-v8": "^4.1.2",
53
+ "@vitest/coverage-v8": "^4.1.5",
54
54
  "esbuild": "^0.28.0",
55
- "oxfmt": "0.44.0",
56
- "oxlint": "^1.59.0",
57
- "oxlint-tsgolint": "^0.20.0",
55
+ "oxfmt": "0.46.0",
56
+ "oxlint": "^1.61.0",
57
+ "oxlint-tsgolint": "^0.21.1",
58
58
  "rimraf": "^6.1.3",
59
59
  "tsx": "^4.21.0",
60
- "typescript": "^6.0.2",
61
- "vitest": "^4.1.2"
60
+ "typescript": "^6.0.3",
61
+ "vitest": "^4.1.5"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22"