@apmantza/greedysearch-pi 1.9.1 → 1.9.2

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/index.ts CHANGED
@@ -13,9 +13,10 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
13
13
  import { homedir } from "node:os";
14
14
  import { dirname, join } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
16
- import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
17
16
 
18
17
  import { registerGreedySearchTool } from "./src/tools/greedy-search-handler.js";
18
+
19
+ type ExtensionAPI = any;
19
20
  import { cdpAvailable } from "./src/tools/shared.js";
20
21
 
21
22
  const __dir = dirname(fileURLToPath(import.meta.url));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apmantza/greedysearch-pi",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Headless multi-engine AI search (Perplexity, Bing Copilot, Google AI) via browser automation -- NO API KEYS needed. Extracts answers with sources, optional synthesis. Grounded AI answers from real browser interactions.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -45,12 +45,16 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@mozilla/readability": "^0.6.0",
48
+ "@sinclair/typebox": "^0.34.48",
48
49
  "jsdom": "^24.0.0",
49
50
  "turndown": "^7.1.2"
50
51
  },
51
52
  "peerDependencies": {
52
- "@earendil-works/pi-coding-agent": "*",
53
- "@earendil-works/pi-tui": "*",
54
- "@sinclair/typebox": "*"
53
+ "@earendil-works/pi-coding-agent": "*"
54
+ },
55
+ "peerDependenciesMeta": {
56
+ "@earendil-works/pi-coding-agent": {
57
+ "optional": true
58
+ }
55
59
  }
56
60
  }
@@ -1,21 +1,12 @@
1
1
  ---
2
2
  name: greedy-search
3
- description: Live web search via Perplexity, Bing, Google AI, and Gemini. Use for current docs, recent errors/framework changes, dependency choices, or stale-knowledge questions. NOT for codebase search.
3
+ description: Web search via Perplexity, Bing, Google AI & Gemini. Current docs, recent changes, dependency choices. NOT codebase search.
4
4
  ---
5
5
 
6
- Use `greedy_search` for live web answers.
6
+ `greedy_search({ query, engine: "all"|"perplexity"|"bing"|"google"|"gemini", depth: "fast"|"standard"|"deep"|"research", breadth: 1-5, iterations: 1-3, maxSources: 3-12, visible: bool })`
7
7
 
8
- ```js
9
- greedy_search({ query: "React 19 changes", depth: "standard" });
10
- ```
8
+ **Depth:** `fast`(15-30s, no synthesis) · `standard`(30-90s, all+synthesis+sources) · `deep`(60-180s, stronger grounding) · `research`(slowest, iterative planning+follow-ups+learning extraction; uses breadth/iterations/maxSources)
11
9
 
12
- **Params:** `query` (required), `engine`: `all`|`perplexity`|`bing`|`google`|`gemini`, `depth`: `fast`|`standard`|`deep`
10
+ **Auto-recovery:** Headless default. Bing/Perplexity auto-retry visible on CF block. Manual CAPTCHA → visible stays open; solve then rerun.
13
11
 
14
- **Depths:**
15
- - `fast`: ~15-30s, single engine, no synthesis
16
- - `standard`: ~30-90s, all engines + Gemini synthesis + sources
17
- - `deep`: ~60-180s, stronger grounding + confidence metadata
18
-
19
- **Blocks:** Headless by default; auto-retries in visible mode. If human verification is needed, visible Chrome stays open — tell the user to solve it and rerun.
20
-
21
- **CDP safety:** Never call raw `bin/cdp.mjs`. Use `bin/cdp-greedy.mjs`, `bin/cdp-visible.mjs`, or `bin/cdp-headless.mjs`.
12
+ **CDP safety:** Use `bin/cdp-greedy.mjs` only. Never raw `bin/cdp.mjs`.