@apmantza/greedysearch-pi 1.8.4 → 1.8.5

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,188 +1,237 @@
1
- # Changelog
2
-
3
- ## v1.8.4 (2026-04-27)
4
-
5
- ### Fixes
6
- - **Double-escaped enum params (issue #2)** — `pi-coding-agent` v0.70.2 wraps string enum values in extra quotes (e.g. `"all"` → `"\"all\""`) before validation, causing `greedy_search`, `deep_research`, and `coding_task` to reject every call with a validation error. Fixed by switching `engine`, `depth`, and `mode` parameters from strict `Type.Union([Type.Literal(...)])` to `Type.String()` (so the call passes validation), then stripping the extra quotes in each handler via a shared `stripQuotes()` utility.
7
-
8
- ### Tests
9
- - **Unit tests added** — `node test.mjs unit` runs 13 fast, Chrome-free tests covering `stripQuotes` and param normalization for all affected tools. Included in `quick` and `smoke` modes.
10
- - **CI now runs unit tests** — GitHub Actions workflow runs `node test.mjs unit` after install on all three OS targets (ubuntu, windows, macos).
11
-
12
- ## v1.8.3 (2026-04-24)
13
-
14
- ### Fixes
15
- - **Perplexity extraction fixed** — The copy button selector was returning the first matching button ("Copy question") instead of the answer copy button. Changed `.find()` to `.filter().pop()` to get the last matching button, which correctly copies the answer text. Fixes `--full` flag returning only the query text instead of the full answer.
16
-
17
- ### Features
18
- - **Reddit JSON API support** — Reddit post URLs now use Reddit's public `.json` API instead of HTML scraping. Gets structured post data + top comments with nesting. Falls back to HTTP fetch if API fails.
19
-
20
- ## v1.8.2 (2026-04-20)
21
-
22
- ### Cross-Platform Testing
23
- - **Node.js test runner (`test.mjs`)** — Added cross-platform test runner that works on Windows, macOS, and Linux without requiring bash. Runs smoke tests, quick tests, and edge case tests.
24
- - **Updated npm scripts** — `npm test` now runs the Node.js test runner (was bash-only). Original bash tests available via `npm run test:bash`.
25
-
26
- ### Project Metadata
27
- - **Added `engines` field** — Package now specifies `node: ">=20.11.0"` requirement for `import.meta.dirname` support.
28
- - **Updated README** — Added Testing section documenting both Node.js and bash test runners, clarified Node.js 20.11.0+ requirement.
29
-
30
- ## v1.8.0 (2026-04-16)
31
-
32
- ### Fixes
33
- - **`cdpAvailable()` missing `baseDir` argument** — two callsites in `index.ts` (session_start handler and coding_task handler) were calling `cdpAvailable()` without the required `baseDir` parameter, producing an incorrect path (`join(undefined, "bin", "cdp.mjs")`). Both now pass `__dir` so the CDP check resolves against the correct package directory.
34
- - **Duplicated `ENGINES` map removed** — `ENGINES` was defined identically in both `src/search/constants.mjs` and `src/search/engines.mjs`. Now `engines.mjs` imports and re-exports from `constants.mjs`, keeping a single canonical source and eliminating sync drift risk.
35
- - **`ALL_ENGINES` sync comment** — added a `// Keep in sync with src/search/constants.mjs` comment on the `ALL_ENGINES` tuple in `shared.ts` so future maintainers know where the canonical definition lives.
36
-
37
- ## v1.7.7 (2026-04-14)
38
-
39
- ### Fixes
40
- - **`--deep` flag leaking into queries** — `depth: "deep"` was passing `--deep` as a bare flag to `search.mjs`, which didn't recognize it and appended it to the query string. Fixed by passing `--depth deep` instead; also added `--deep` as a recognized flag in `search.mjs` for backward compatibility with the legacy `deep_research` tool.
41
- - **GitHub fetch always failing** — `git clone` was being `await`-ed on a non-Promise `ChildProcess` object (Node `execFile` is callback-based), so the clone never actually completed and content was always empty. Replaced git clone entirely with GitHub REST API calls: repo info + README + file tree fetched via parallel HTTP requests (~2-5s vs 30-60s, no git dependency). Non-existent repos now correctly return `ok: false`.
42
- - **`--inline` test false negative** — smoke test was interpolating multiline JSON stdout into a `node -e` string, always producing `PARSE_ERROR`. Fixed to write stdout to a temp file and parse from file.
43
-
44
- ### Features
45
- - **Rich source metadata** — HTTP-fetched sources now include `publishedTime`, `lastModified`, `byline`, `siteName`, and `lang`. `publishedTime` is extracted from Readability's parser plus a fallback chain of 8 `<meta>` selectors (Open Graph, schema.org, Dublin Core). All fields flow through to the Gemini synthesis prompt. Gemini is instructed to flag sources older than 2 years as potentially stale in caveats.
46
- - **GitHub Fetch Tests** — smoke/edge/quick test modes now include 4 GitHub-specific tests: root repo API fetch (README + tree), blob file via raw URL, blob via HTTP fetcher pipeline, and graceful failure on non-existent repo.
47
-
48
- ## v1.7.6 (2026-04-11)
49
-
50
- ### Fixes
51
- - **Close Gemini synthesis tab** — after synthesis completes, the Gemini tab is now closed instead of merely activated, preventing stale tabs from accumulating across searches.
52
-
53
- ## v1.7.5 (2026-04-10)
54
-
55
- ### Plugin
56
- - **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`.
57
- - **Auto-mirror GH Action** — every push to `GreedySearch-pi/master` automatically syncs to `GreedySearch-claude/main`, keeping the Claude plugin up to date.
58
- - **Tightened `skill.md`** removed verbose guidance sections; kept parameters, depth table, and coding_task reference. -72 lines.
59
-
60
- ## v1.7.4 (2026-04-10)
61
-
62
- ### Refactor
63
- - **Shared `waitForCopyButton()`** — consolidated duplicate copy-button polling loops from `bing-copilot`, `gemini`, and `coding-task` into a single `waitForCopyButton(tab, selector, { timeout, onPoll })` in `common.mjs`. Gemini's scroll-to-bottom logic passed as `onPoll` callback.
64
- - **Shared `TIMING` constants** — replaced 30+ scattered `setTimeout` magic numbers with named constants (`postNav`, `postNavSlow`, `postClick`, `postType`, `inputPoll`, `copyPoll`, `afterVerify`) in `common.mjs`.
65
- - **`waitForStreamComplete` improvements** — added `minLength` option and graceful last-value fallback; `google-ai` now uses the shared implementation instead of its own copy.
66
- - **Removed dead code** — deleted unused `_getOrReuseBlankTab` and `_getOrOpenEngineTab` from `bin/search.mjs`; removed unused `STREAM_POLL_INTERVAL` and `STREAM_STABLE_ROUNDS` from `coding-task`.
67
-
68
- ### Fixes
69
- - **Synthesis tab regression** — `getOrOpenEngineTab("gemini")` call during synthesis was broken by the dead-code removal; replaced with `openNewTab()`.
70
-
71
- ## v1.7.3 (2026-04-10)
72
-
73
- ### Fixes
74
- - **Force English in Google AI results** — Added `hl=en` query parameter to Google AI Mode search URL so responses are always returned in English, regardless of the user's IP-based region (fixes #1).
75
-
76
- ## v1.7.2 (2026-04-08)
77
-
78
- ### Release
79
- - **Patch release** — version bump and npm package verification for the `bin/` runtime layout (`bin/search.mjs`, `bin/launch.mjs`, `bin/cdp.mjs`, `bin/coding-task.mjs`).
80
-
81
- ## v1.7.1 (2026-04-08)
82
-
83
- ### Performance
84
- - **Bounded source-fetch concurrency** — source fetching now uses a small worker pool (default `2`, configurable via `GREEDY_FETCH_CONCURRENCY`) to reduce burstiness while keeping deep-research fast.
85
-
86
- ### Project structure
87
- - **Runtime scripts moved to `bin/`**`search.mjs`, `launch.mjs`, `cdp.mjs`, and `coding-task.mjs` now live under `bin/` for a cleaner repository root.
88
- - **Path references updated** — extension runtime, tests, extractor shared utilities, and docs now point to `bin/*` paths.
89
-
90
- ### Packaging & docs
91
- - **Package file list updated** — npm package now includes `bin/` directly instead of root script entries.
92
- - **README simplified** — rewritten into a shorter, concise format with quick install, usage, and layout guidance.
93
-
94
- ## v1.6.5 (2026-04-04)
95
-
96
- ### Security
97
- - **Private URL blocking** — Added validation to block requests to localhost, RFC1918 private addresses (10.x, 192.168.x), and .local/.internal domains. Prevents accidental exposure of internal services.
98
-
99
- ### Features
100
- - **GitHub URL rewriting** — GitHub blob URLs (`github.com/owner/repo/blob/...`) are automatically rewritten to `raw.githubusercontent.com` for faster, cleaner raw file access.
101
- - **GitHub repo cloning** — Root and tree URLs now trigger `git clone --depth 1` for complete repo access. Agent can explore files locally instead of parsing rendered HTML. Includes README preview and directory tree listing.
102
- - **Head+tail content trimming** — Large documents now use smart truncation: keeps 75% from the beginning (introduction) + 25% from the end (conclusions/examples) with `[...content trimmed...]` marker, instead of simple truncation.
103
- - **Anubis bot detection** — Added detection for the new Anubis proof-of-work anti-bot system (`protected by anubis`, `anubis uses a proof-of-work`).
104
-
105
- ### Fixes
106
- - **Perplexity clipboard retry** — Added single retry with 2s delay when clipboard extraction fails, improving reliability.
107
-
108
- ## v1.6.4 (2026-04-02)
109
-
110
- ### Fixes
111
- - **Gemini scroll-to-bottom** — Changed from small random jitter scrolls to actual bottom-of-page scrolls every ~6 seconds while waiting for the copy button. This ensures lazy-loaded content is triggered and the full answer is captured.
112
- - **Restored missing files** — `.mjs` source files (extractors, search.mjs, launch.mjs, etc.) were incorrectly removed in v1.6.2 cleanup; now properly tracked again.
113
-
114
- ## v1.6.3 (2026-04-02)
115
-
116
- ### Fixes
117
- - **Debug output removed** — Cleaned up stderr passthrough that was causing CDP connection issues in some environments.
118
-
119
- ## v1.6.2 (2026-04-01)
120
-
121
- ### Fixes
122
- - **Anti-bot detection evasion** Gemini synthesis now performs gentle scroll every ~6 seconds while waiting for the copy button. This prevents the button from hanging due to anti-bot "human activity" checks.
123
-
124
- ## v1.6.1 (2026-03-31)
125
-
126
- ### Features
127
- - **Single-engine full answers by default** — when using `engine: "perplexity"`, `engine: "bing"`, `engine: "google"`, or `engine: "gemini"`, the full answer is now returned by default instead of truncated previews. Multi-engine (`engine: "all"`) still uses truncated previews (~300 chars) to save tokens during synthesis. Explicit `fullAnswer: true/false` always overrides.
128
-
129
- ### Code Quality
130
- - **Major refactoring** — extracted 438 lines from `index.ts` (856 → 418 lines) into modular formatters:
131
- - `src/formatters/coding.ts` — coding task formatting
132
- - `src/formatters/results.ts` — search and deep research formatting
133
- - `src/formatters/sources.ts` — source utilities (URL, label, consensus, formatting)
134
- - `src/formatters/synthesis.ts`synthesis rendering
135
- - `src/utils/helpers.ts` — shared formatting utilities
136
- - **Complexity reduced** — cognitive complexity dropped from 360 to ~60, maintainability index improved from 11.2 to ~40+
137
- - **Eliminated code duplication** — removed 6 duplicate blocks, consolidated 4+ single-use helper functions
138
-
139
- ### Documentation
140
- - Clarified `greedy_search` is WEB SEARCH ONLY removed "NOT for codebase search" from tool description (still in skill documentation)
141
-
142
- ## v1.6.0 (2026-03-29)
143
-
144
- ### Breaking Changes (Backward Compatible)
145
- - **Merged deep_research into greedy_search** — new `depth` parameter with three levels:
146
- - `fast`: single engine (~15-30s)
147
- - `standard`: 3 engines + synthesis (~30-90s, default for `engine: "all"`)
148
- - `deep`: 3 engines + source fetching + synthesis + confidence (~60-180s)
149
- - **Simpler mental model** — one tool with clear speed/quality tradeoffs instead of separate tools with overlapping flags
150
- - **Deprecated flags still work** — `--synthesize` maps to `depth: "standard"`, `--deep-research` maps to `depth: "deep"`
151
- - **deep_research tool aliased** — still works, calls `greedy_search` with `depth: "deep"`
152
-
153
- ### Documentation
154
- - Updated README with new `depth` parameter and examples
155
- - Updated skill documentation (SKILL.md) to reflect simplified API
156
-
157
- ## v1.5.1 (2026-03-29)
158
-
159
- - **Fixed npm package** — added `.pi-lens/` and test files to `.npmignore` to reduce package size
160
-
161
- ## v1.5.0 (2026-03-29)
162
-
163
- ### Features
164
- - **Code extraction fixed** — `coding_task` now uses clipboard interception to preserve markdown code blocks (was losing them via DOM scraping)
165
- - **Chrome targeting hardened** — all tools now consistently target the dedicated GreedySearch Chrome via `CDP_PROFILE_DIR`, preventing fallback to user's main Chrome session
166
- - **Shared utilities** — extracted ~220 lines of duplicate code from extractors into `common.mjs` (cdp wrapper, tab management, clipboard interception)
167
- - **Documentation leaner** — skill documentation reduced 61% (180 → 70 lines) while preserving all decision-making info
168
-
169
- ### Notable
170
- - **NO API KEYS** — updated messaging to emphasize this works via browser automation, no API keys needed
171
-
172
- ## v1.4.2 (2026-03-25)
173
-
174
- - **Fresh isolated tabs** — each search now always creates a new `about:blank` tab via `Target.createTarget` and refreshes the CDP page cache immediately after, preventing SPA navigation failures and stale DOM state from prior queries
175
- - **Regex-based citation extraction** — all extractors (Perplexity, Bing, Gemini) now parse sources from clipboard Markdown links (`[title](url)`) instead of DOM selectors that break on UI updates
176
- - **Relaxed verification detection** — `consent.mjs` now uses broad keyword matching (`includes('verify')`, `includes('human')`) instead of anchored regexes, correctly catching button text variants like "Verify you are human" across Cloudflare, Microsoft, and generic modals
177
-
178
- ## v1.4.1
179
-
180
- - **Fixed parallel synthesis** — multiple `greedy_search` calls with `synthesize: true` now run safely in parallel. Each search creates a fresh Gemini tab that gets cleaned up after synthesis, preventing tab conflicts and "Uncaught" errors.
181
-
182
- ## v1.4.0
183
-
184
- - **Grounded synthesis** — Gemini now receives a normalized source registry with stable source IDs, agreement summaries, caveats, and cited claims
185
- - **Real deep research** top sources are fetched before synthesis so deep research answers are grounded in fetched evidence, not just engine summaries
186
- - **Richer source metadata** — source output now includes canonical URLs, domains, source types, per-engine attribution, and confidence metadata
187
- - **Cleaner tab lifecycle** — temporary Perplexity, Bing, and Google tabs are closed after each fan-out search, and synthesis finishes on the Gemini tab
188
- - **Isolated Chrome targeting** — GreedySearch now refuses to fall back to your normal Chrome session, preventing stray remote-debugging prompts
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## v1.8.5 (2026-04-29)
6
+
7
+ ### Security
8
+
9
+ - **CodeQL: Incomplete URL substring sanitization (6 alerts)** — Replaced loose `includes()` / `endsWith()` checks on raw URL strings with proper hostname parsing in `src/github.mjs`, `src/reddit.mjs`, `src/fetcher.mjs`, and `extractors/bing-copilot.mjs`. Prevents bypasses where arbitrary subdomains could spoof trusted domains (e.g. `evilgithub.com`, `reddit.com.evil.com`).
10
+ - **CodeQL: Resource exhaustion (1 alert)** — `cdp loadall` now bounds `intervalMs` to 100–30,000ms to prevent unbounded `setTimeout` durations from untrusted CLI input.
11
+ - **CodeQL: Missing workflow permissions (2 alerts)** — Added explicit `permissions: contents: read` blocks to `.github/workflows/ci.yml` and `.github/workflows/mirror-to-claude.yml`, limiting `GITHUB_TOKEN` scope to the minimum required.
12
+
13
+ ### Dependencies
14
+
15
+ - **Dependabot security updates** — Bumped `basic-ftp`, `yaml`, `brace-expansion`, `protobufjs`, `fast-xml-parser`, and `@mozilla/readability` to latest patched versions.
16
+
17
+ ### Tests
18
+
19
+ - **GitHub fetch test fixes** — Corrected ES module import paths and added `'all'` mode to test block conditions so cross-platform test runs pass cleanly.
20
+
21
+ ## v1.8.4 (2026-04-27)
22
+
23
+ ### Fixes
24
+
25
+ - **Double-escaped enum params (issue #2)** — `pi-coding-agent` v0.70.2 wraps string enum values in extra quotes (e.g. `"all"` → `"\"all\""`) before validation, causing `greedy_search`, `deep_research`, and `coding_task` to reject every call with a validation error. Fixed by switching `engine`, `depth`, and `mode` parameters from strict `Type.Union([Type.Literal(...)])` to `Type.String()` (so the call passes validation), then stripping the extra quotes in each handler via a shared `stripQuotes()` utility.
26
+
27
+ ### Tests
28
+
29
+ - **Unit tests added** — `node test.mjs unit` runs 13 fast, Chrome-free tests covering `stripQuotes` and param normalization for all affected tools. Included in `quick` and `smoke` modes.
30
+ - **CI now runs unit tests** — GitHub Actions workflow runs `node test.mjs unit` after install on all three OS targets (ubuntu, windows, macos).
31
+
32
+ ## v1.8.3 (2026-04-24)
33
+
34
+ ### Fixes
35
+
36
+ - **Perplexity extraction fixed** — The copy button selector was returning the first matching button ("Copy question") instead of the answer copy button. Changed `.find()` to `.filter().pop()` to get the last matching button, which correctly copies the answer text. Fixes `--full` flag returning only the query text instead of the full answer.
37
+
38
+ ### Features
39
+
40
+ - **Reddit JSON API support** — Reddit post URLs now use Reddit's public `.json` API instead of HTML scraping. Gets structured post data + top comments with nesting. Falls back to HTTP fetch if API fails.
41
+
42
+ ## v1.8.2 (2026-04-20)
43
+
44
+ ### Cross-Platform Testing
45
+
46
+ - **Node.js test runner (`test.mjs`)** — Added cross-platform test runner that works on Windows, macOS, and Linux without requiring bash. Runs smoke tests, quick tests, and edge case tests.
47
+ - **Updated npm scripts** — `npm test` now runs the Node.js test runner (was bash-only). Original bash tests available via `npm run test:bash`.
48
+
49
+ ### Project Metadata
50
+
51
+ - **Added `engines` field** — Package now specifies `node: ">=20.11.0"` requirement for `import.meta.dirname` support.
52
+ - **Updated README** — Added Testing section documenting both Node.js and bash test runners, clarified Node.js 20.11.0+ requirement.
53
+
54
+ ## v1.8.0 (2026-04-16)
55
+
56
+ ### Fixes
57
+
58
+ - **`cdpAvailable()` missing `baseDir` argument** — two callsites in `index.ts` (session_start handler and coding_task handler) were calling `cdpAvailable()` without the required `baseDir` parameter, producing an incorrect path (`join(undefined, "bin", "cdp.mjs")`). Both now pass `__dir` so the CDP check resolves against the correct package directory.
59
+ - **Duplicated `ENGINES` map removed** — `ENGINES` was defined identically in both `src/search/constants.mjs` and `src/search/engines.mjs`. Now `engines.mjs` imports and re-exports from `constants.mjs`, keeping a single canonical source and eliminating sync drift risk.
60
+ - **`ALL_ENGINES` sync comment** — added a `// Keep in sync with src/search/constants.mjs` comment on the `ALL_ENGINES` tuple in `shared.ts` so future maintainers know where the canonical definition lives.
61
+
62
+ ## v1.7.7 (2026-04-14)
63
+
64
+ ### Fixes
65
+
66
+ - **`--deep` flag leaking into queries** — `depth: "deep"` was passing `--deep` as a bare flag to `search.mjs`, which didn't recognize it and appended it to the query string. Fixed by passing `--depth deep` instead; also added `--deep` as a recognized flag in `search.mjs` for backward compatibility with the legacy `deep_research` tool.
67
+ - **GitHub fetch always failing** — `git clone` was being `await`-ed on a non-Promise `ChildProcess` object (Node `execFile` is callback-based), so the clone never actually completed and content was always empty. Replaced git clone entirely with GitHub REST API calls: repo info + README + file tree fetched via parallel HTTP requests (~2-5s vs 30-60s, no git dependency). Non-existent repos now correctly return `ok: false`.
68
+ - **`--inline` test false negative** — smoke test was interpolating multiline JSON stdout into a `node -e` string, always producing `PARSE_ERROR`. Fixed to write stdout to a temp file and parse from file.
69
+
70
+ ### Features
71
+
72
+ - **Rich source metadata** — HTTP-fetched sources now include `publishedTime`, `lastModified`, `byline`, `siteName`, and `lang`. `publishedTime` is extracted from Readability's parser plus a fallback chain of 8 `<meta>` selectors (Open Graph, schema.org, Dublin Core). All fields flow through to the Gemini synthesis prompt. Gemini is instructed to flag sources older than 2 years as potentially stale in caveats.
73
+ - **GitHub Fetch Tests** — smoke/edge/quick test modes now include 4 GitHub-specific tests: root repo API fetch (README + tree), blob file via raw URL, blob via HTTP fetcher pipeline, and graceful failure on non-existent repo.
74
+
75
+ ## v1.7.6 (2026-04-11)
76
+
77
+ ### Fixes
78
+
79
+ - **Close Gemini synthesis tab** — after synthesis completes, the Gemini tab is now closed instead of merely activated, preventing stale tabs from accumulating across searches.
80
+
81
+ ## v1.7.5 (2026-04-10)
82
+
83
+ ### Plugin
84
+
85
+ - **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`.
86
+ - **Auto-mirror GH Action** — every push to `GreedySearch-pi/master` automatically syncs to `GreedySearch-claude/main`, keeping the Claude plugin up to date.
87
+ - **Tightened `skill.md`**removed verbose guidance sections; kept parameters, depth table, and coding_task reference. -72 lines.
88
+
89
+ ## v1.7.4 (2026-04-10)
90
+
91
+ ### Refactor
92
+
93
+ - **Shared `waitForCopyButton()`** — consolidated duplicate copy-button polling loops from `bing-copilot`, `gemini`, and `coding-task` into a single `waitForCopyButton(tab, selector, { timeout, onPoll })` in `common.mjs`. Gemini's scroll-to-bottom logic passed as `onPoll` callback.
94
+ - **Shared `TIMING` constants** — replaced 30+ scattered `setTimeout` magic numbers with named constants (`postNav`, `postNavSlow`, `postClick`, `postType`, `inputPoll`, `copyPoll`, `afterVerify`) in `common.mjs`.
95
+ - **`waitForStreamComplete` improvements** — added `minLength` option and graceful last-value fallback; `google-ai` now uses the shared implementation instead of its own copy.
96
+ - **Removed dead code** — deleted unused `_getOrReuseBlankTab` and `_getOrOpenEngineTab` from `bin/search.mjs`; removed unused `STREAM_POLL_INTERVAL` and `STREAM_STABLE_ROUNDS` from `coding-task`.
97
+
98
+ ### Fixes
99
+
100
+ - **Synthesis tab regression** — `getOrOpenEngineTab("gemini")` call during synthesis was broken by the dead-code removal; replaced with `openNewTab()`.
101
+
102
+ ## v1.7.3 (2026-04-10)
103
+
104
+ ### Fixes
105
+
106
+ - **Force English in Google AI results** — Added `hl=en` query parameter to Google AI Mode search URL so responses are always returned in English, regardless of the user's IP-based region (fixes #1).
107
+
108
+ ## v1.7.2 (2026-04-08)
109
+
110
+ ### Release
111
+
112
+ - **Patch release** — version bump and npm package verification for the `bin/` runtime layout (`bin/search.mjs`, `bin/launch.mjs`, `bin/cdp.mjs`, `bin/coding-task.mjs`).
113
+
114
+ ## v1.7.1 (2026-04-08)
115
+
116
+ ### Performance
117
+
118
+ - **Bounded source-fetch concurrency** — source fetching now uses a small worker pool (default `2`, configurable via `GREEDY_FETCH_CONCURRENCY`) to reduce burstiness while keeping deep-research fast.
119
+
120
+ ### Project structure
121
+
122
+ - **Runtime scripts moved to `bin/`** `search.mjs`, `launch.mjs`, `cdp.mjs`, and `coding-task.mjs` now live under `bin/` for a cleaner repository root.
123
+ - **Path references updated** — extension runtime, tests, extractor shared utilities, and docs now point to `bin/*` paths.
124
+
125
+ ### Packaging & docs
126
+
127
+ - **Package file list updated** — npm package now includes `bin/` directly instead of root script entries.
128
+ - **README simplified** — rewritten into a shorter, concise format with quick install, usage, and layout guidance.
129
+
130
+ ## v1.6.5 (2026-04-04)
131
+
132
+ ### Security
133
+
134
+ - **Private URL blocking** Added validation to block requests to localhost, RFC1918 private addresses (10.x, 192.168.x), and .local/.internal domains. Prevents accidental exposure of internal services.
135
+
136
+ ### Features
137
+
138
+ - **GitHub URL rewriting** — GitHub blob URLs (`github.com/owner/repo/blob/...`) are automatically rewritten to `raw.githubusercontent.com` for faster, cleaner raw file access.
139
+ - **GitHub repo cloning** — Root and tree URLs now trigger `git clone --depth 1` for complete repo access. Agent can explore files locally instead of parsing rendered HTML. Includes README preview and directory tree listing.
140
+ - **Head+tail content trimming** Large documents now use smart truncation: keeps 75% from the beginning (introduction) + 25% from the end (conclusions/examples) with `[...content trimmed...]` marker, instead of simple truncation.
141
+ - **Anubis bot detection** — Added detection for the new Anubis proof-of-work anti-bot system (`protected by anubis`, `anubis uses a proof-of-work`).
142
+
143
+ ### Fixes
144
+
145
+ - **Perplexity clipboard retry** — Added single retry with 2s delay when clipboard extraction fails, improving reliability.
146
+
147
+ ## v1.6.4 (2026-04-02)
148
+
149
+ ### Fixes
150
+
151
+ - **Gemini scroll-to-bottom** — Changed from small random jitter scrolls to actual bottom-of-page scrolls every ~6 seconds while waiting for the copy button. This ensures lazy-loaded content is triggered and the full answer is captured.
152
+ - **Restored missing files** — `.mjs` source files (extractors, search.mjs, launch.mjs, etc.) were incorrectly removed in v1.6.2 cleanup; now properly tracked again.
153
+
154
+ ## v1.6.3 (2026-04-02)
155
+
156
+ ### Fixes
157
+
158
+ - **Debug output removed** — Cleaned up stderr passthrough that was causing CDP connection issues in some environments.
159
+
160
+ ## v1.6.2 (2026-04-01)
161
+
162
+ ### Fixes
163
+
164
+ - **Anti-bot detection evasion** — Gemini synthesis now performs gentle scroll every ~6 seconds while waiting for the copy button. This prevents the button from hanging due to anti-bot "human activity" checks.
165
+
166
+ ## v1.6.1 (2026-03-31)
167
+
168
+ ### Features
169
+
170
+ - **Single-engine full answers by default** — when using `engine: "perplexity"`, `engine: "bing"`, `engine: "google"`, or `engine: "gemini"`, the full answer is now returned by default instead of truncated previews. Multi-engine (`engine: "all"`) still uses truncated previews (~300 chars) to save tokens during synthesis. Explicit `fullAnswer: true/false` always overrides.
171
+
172
+ ### Code Quality
173
+
174
+ - **Major refactoring** — extracted 438 lines from `index.ts` (856 418 lines) into modular formatters:
175
+ - `src/formatters/coding.ts` coding task formatting
176
+ - `src/formatters/results.ts` search and deep research formatting
177
+ - `src/formatters/sources.ts` — source utilities (URL, label, consensus, formatting)
178
+ - `src/formatters/synthesis.ts` — synthesis rendering
179
+ - `src/utils/helpers.ts` — shared formatting utilities
180
+ - **Complexity reduced** — cognitive complexity dropped from 360 to ~60, maintainability index improved from 11.2 to ~40+
181
+ - **Eliminated code duplication** — removed 6 duplicate blocks, consolidated 4+ single-use helper functions
182
+
183
+ ### Documentation
184
+
185
+ - Clarified `greedy_search` is WEB SEARCH ONLY removed "NOT for codebase search" from tool description (still in skill documentation)
186
+
187
+ ## v1.6.0 (2026-03-29)
188
+
189
+ ### Breaking Changes (Backward Compatible)
190
+
191
+ - **Merged deep_research into greedy_search** — new `depth` parameter with three levels:
192
+ - `fast`: single engine (~15-30s)
193
+ - `standard`: 3 engines + synthesis (~30-90s, default for `engine: "all"`)
194
+ - `deep`: 3 engines + source fetching + synthesis + confidence (~60-180s)
195
+ - **Simpler mental model** — one tool with clear speed/quality tradeoffs instead of separate tools with overlapping flags
196
+ - **Deprecated flags still work** — `--synthesize` maps to `depth: "standard"`, `--deep-research` maps to `depth: "deep"`
197
+ - **deep_research tool aliased** — still works, calls `greedy_search` with `depth: "deep"`
198
+
199
+ ### Documentation
200
+
201
+ - Updated README with new `depth` parameter and examples
202
+ - Updated skill documentation (SKILL.md) to reflect simplified API
203
+
204
+ ## v1.5.1 (2026-03-29)
205
+
206
+ - **Fixed npm package** — added `.pi-lens/` and test files to `.npmignore` to reduce package size
207
+
208
+ ## v1.5.0 (2026-03-29)
209
+
210
+ ### Features
211
+
212
+ - **Code extraction fixed** — `coding_task` now uses clipboard interception to preserve markdown code blocks (was losing them via DOM scraping)
213
+ - **Chrome targeting hardened** — all tools now consistently target the dedicated GreedySearch Chrome via `CDP_PROFILE_DIR`, preventing fallback to user's main Chrome session
214
+ - **Shared utilities** — extracted ~220 lines of duplicate code from extractors into `common.mjs` (cdp wrapper, tab management, clipboard interception)
215
+ - **Documentation leaner** — skill documentation reduced 61% (180 → 70 lines) while preserving all decision-making info
216
+
217
+ ### Notable
218
+
219
+ - **NO API KEYS** — updated messaging to emphasize this works via browser automation, no API keys needed
220
+
221
+ ## v1.4.2 (2026-03-25)
222
+
223
+ - **Fresh isolated tabs** — each search now always creates a new `about:blank` tab via `Target.createTarget` and refreshes the CDP page cache immediately after, preventing SPA navigation failures and stale DOM state from prior queries
224
+ - **Regex-based citation extraction** — all extractors (Perplexity, Bing, Gemini) now parse sources from clipboard Markdown links (`[title](url)`) instead of DOM selectors that break on UI updates
225
+ - **Relaxed verification detection** — `consent.mjs` now uses broad keyword matching (`includes('verify')`, `includes('human')`) instead of anchored regexes, correctly catching button text variants like "Verify you are human" across Cloudflare, Microsoft, and generic modals
226
+
227
+ ## v1.4.1
228
+
229
+ - **Fixed parallel synthesis** — multiple `greedy_search` calls with `synthesize: true` now run safely in parallel. Each search creates a fresh Gemini tab that gets cleaned up after synthesis, preventing tab conflicts and "Uncaught" errors.
230
+
231
+ ## v1.4.0
232
+
233
+ - **Grounded synthesis** — Gemini now receives a normalized source registry with stable source IDs, agreement summaries, caveats, and cited claims
234
+ - **Real deep research** — top sources are fetched before synthesis so deep research answers are grounded in fetched evidence, not just engine summaries
235
+ - **Richer source metadata** — source output now includes canonical URLs, domains, source types, per-engine attribution, and confidence metadata
236
+ - **Cleaner tab lifecycle** — temporary Perplexity, Bing, and Google tabs are closed after each fan-out search, and synthesis finishes on the Gemini tab
237
+ - **Isolated Chrome targeting** — GreedySearch now refuses to fall back to your normal Chrome session, preventing stray remote-debugging prompts