@apmantza/greedysearch-pi 1.7.4 → 1.7.6

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.7.6 (2026-04-11)
4
+
5
+ ### Fixes
6
+ - **Close Gemini synthesis tab** — after synthesis completes, the Gemini tab is now closed instead of merely activated, preventing stale tabs from accumulating across searches.
7
+
8
+ ## v1.7.5 (2026-04-10)
9
+
10
+ ### Plugin
11
+ - **Claude Code plugin** — added `.claude-plugin/plugin.json` and `marketplace.json` so GreedySearch can be installed directly as a Claude Code plugin via `claude plugin install`.
12
+ - **Auto-mirror GH Action** — every push to `GreedySearch-pi/master` automatically syncs to `GreedySearch-claude/main`, keeping the Claude plugin up to date.
13
+ - **Tightened `skill.md`** — removed verbose guidance sections; kept parameters, depth table, and coding_task reference. -72 lines.
14
+
3
15
  ## v1.7.4 (2026-04-10)
4
16
 
5
17
  ### Refactor
package/bin/search.mjs CHANGED
@@ -1467,11 +1467,11 @@ async function main() {
1467
1467
  grounded: depth === "deep",
1468
1468
  tabPrefix: geminiTab,
1469
1469
  });
1470
- await activateTab(geminiTab);
1471
1470
  out._synthesis = {
1472
1471
  ...synthesis,
1473
1472
  synthesized: true,
1474
1473
  };
1474
+ await closeTab(geminiTab);
1475
1475
  process.stderr.write("PROGRESS:synthesis:done\n");
1476
1476
  } catch (e) {
1477
1477
  process.stderr.write(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apmantza/greedysearch-pi",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Pi extension: multi-engine AI search (Perplexity, Bing Copilot, Google AI) via browser automation -- NO API KEYS needed. Extracts answers with sources, optional Gemini synthesis. Grounded AI answers from real browser interactions.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: greedy-search
3
+ description: Live web search via Perplexity, Bing, and Google AI in parallel. Use for library docs, recent framework changes, error messages, dependency selection, or anything where training data may be stale. NOT for codebase search.
4
+ ---
5
+
6
+ # GreedySearch — Live Web Search
7
+
8
+ Runs Perplexity, Bing Copilot, and Google AI in parallel. Gemini synthesizes results.
9
+
10
+ ## greedy_search
11
+
12
+ ```
13
+ greedy_search({ query: "React 19 changes", depth: "standard" })
14
+ ```
15
+
16
+ | Parameter | Type | Default | Description |
17
+ |-----------|------|---------|-------------|
18
+ | `query` | string | required | Search question |
19
+ | `engine` | string | `"all"` | `all`, `perplexity`, `bing`, `google`, `gemini` |
20
+ | `depth` | string | `"standard"` | `fast`, `standard`, `deep` |
21
+ | `fullAnswer` | boolean | `false` | Full answer vs ~300 char summary |
22
+
23
+ | Depth | Engines | Synthesis | Source Fetch | Time |
24
+ |-------|---------|-----------|--------------|------|
25
+ | `fast` | 1 | — | — | 15-30s |
26
+ | `standard` | 3 | Gemini | — | 30-90s |
27
+ | `deep` | 3 | Gemini | top 5 | 60-180s |
28
+
29
+ **When engines agree** → high confidence. **When they diverge** → note both perspectives.
30
+
31
+ ## coding_task
32
+
33
+ Second opinion from Gemini/Copilot on hard problems.
34
+
35
+ ```
36
+ coding_task({ task: "debug race condition", mode: "debug", engine: "gemini" })
37
+ ```
38
+
39
+ | Parameter | Type | Default | Options |
40
+ |-----------|------|---------|---------|
41
+ | `task` | string | required | — |
42
+ | `engine` | string | `"gemini"` | `gemini`, `copilot`, `all` |
43
+ | `mode` | string | `"code"` | `debug`, `plan`, `review`, `test`, `code` |
44
+ | `context` | string | — | Code snippet |
@@ -1,117 +0,0 @@
1
- ---
2
- name: greedy-search
3
- description: Multi-engine AI **WEB SEARCH** tool — NOT for codebase search. Use greedy_search for high-quality web research where training data may be stale or single-engine results are insufficient. Searches Perplexity, Bing, Google via browser automation. NO API KEYS needed.
4
- ---
5
-
6
- # ⚠️ WEB SEARCH ONLY — NOT CODEBASE SEARCH
7
-
8
- **`greedy_search` searches the live web**, not your local codebase.
9
-
10
- | Tool | Searches |
11
- |------|----------|
12
- | `greedy_search` | **Live web** (Perplexity, Bing, Google) |
13
- | `ast_grep_search` | **Local codebase** — use this for code patterns |
14
- | `bash` with `grep/rg` | **Local codebase** — use this for text search |
15
-
16
- **DO NOT use `greedy_search` for:**
17
- - Finding functions in your codebase
18
- - Searching local files
19
- - Code review of your project
20
- - Understanding project structure
21
-
22
- **DO use `greedy_search` for:**
23
- - Library documentation
24
- - Recent framework changes
25
- - Error message explanations
26
- - Best practices research
27
- - Current events/news
28
-
29
- # GreedySearch Tools
30
-
31
- | Tool | Speed | Use For |
32
- |------|-------|---------|
33
- | `greedy_search` | 15-180s | Multi-engine search with depth levels |
34
- | `coding_task` | 60-180s | Debug, review, plan modes for hard problems |
35
-
36
- ## greedy_search
37
-
38
- Multi-engine AI search (Perplexity, Bing, Google) with three depth levels.
39
-
40
- ```greedy_search({ query: "React 19 changes", depth: "standard" })```
41
-
42
- | Parameter | Type | Default | Description |
43
- |-----------|------|---------|-------------|
44
- | `query` | string | required | Search question |
45
- | `engine` | string | `"all"` | `all`, `perplexity`, `bing`, `google`, `gemini` |
46
- | `depth` | string | `"standard"` | `fast`, `standard`, `deep` — see below |
47
- | `fullAnswer` | boolean | `false` | Complete vs ~300 char summary |
48
-
49
- ### Depth Levels
50
-
51
- | Depth | Engines | Synthesis | Source Fetch | Time | Use When |
52
- |-------|---------|-----------|--------------|------|----------|
53
- | `fast` | 1 | ❌ | ❌ | 15-30s | Quick lookup, single perspective |
54
- | `standard` | 3 | ✅ | ❌ | 30-90s | Default — balanced speed/quality |
55
- | `deep` | 3 | ✅ | ✅ (top 5) | 60-180s | Research that matters — architecture decisions |
56
-
57
- **Standard** (default): Runs 3 engines, deduplicates sources, synthesizes via Gemini.
58
- **Deep**: Same + fetches content from top sources for grounded synthesis + confidence scores.
59
-
60
- ### Engine Selection (for fast mode)
61
-
62
- ```greedy_search({ query: "...", engine: "perplexity", depth: "fast" })```
63
-
64
- - `perplexity`: Technical Q&A, citations
65
- - `bing`: Recent news, Microsoft ecosystem
66
- - `google`: Broad coverage
67
- - `gemini`: Different training data
68
-
69
- ### Examples — Web Research Only
70
-
71
- **✅ GOOD — Web research:**
72
- ```greedy_search({ query: "what changed in React 19", depth: "fast" })```
73
- ```greedy_search({ query: "best auth patterns for SaaS", depth: "deep" })```
74
- ```greedy_search({ query: "Prisma vs Drizzle 2026", depth: "standard", fullAnswer: true })```
75
-
76
- **❌ WRONG — Don't use for codebase search:**
77
- ```javascript
78
- // DON'T: Searching your own codebase
79
- // greedy_search({ query: "find UserService class" }) // ❌ Won't find it!
80
-
81
- // DO: Use these instead for codebase search:
82
- // ast_grep_search({ pattern: "class UserService", lang: "typescript" })
83
- // bash({ command: "rg 'class UserService' --type ts" })
84
- ```
85
-
86
- ### Legacy
87
-
88
- `deep_research` tool still works — aliases to `greedy_search` with `depth: "deep"`.
89
-
90
- ## coding_task
91
-
92
- Browser-based coding assistant via Gemini/Copilot.
93
-
94
- ```coding_task({ task: "debug race condition", mode: "debug", engine: "gemini" })```
95
-
96
- | Parameter | Type | Default | Description |
97
- |-----------|------|---------|-------------|
98
- | `task` | string | required | Coding task/question |
99
- | `engine` | string | `"gemini"` | `gemini`, `copilot`, `all` |
100
- | `mode` | string | `"code"` | `debug`, `plan`, `review`, `test`, `code` |
101
- | `context` | string | — | Code snippet to include |
102
-
103
- **Modes:**
104
- - `debug`: Tricky bugs — fresh eyes catch different failure modes
105
- - `plan`: Big refactor — plays devil's advocate on risks
106
- - `review`: High-stakes code review before merge
107
- - `test`: Edge cases the author missed
108
- - `code`: Simple generation (but you're probably faster)
109
-
110
- **When to use:** Second opinions on hard problems. Skip for simple code.
111
-
112
- ## Result Interpretation
113
-
114
- - **All 3 engines agree** → High confidence, present as fact
115
- - **2 agree, 1 differs** → Likely correct, note dissent
116
- - **Sources [3/3] or [2/3]** → Multiple engines cite, higher confidence
117
- - **Deep research confidence scores** → Structured confidence metadata