@apmantza/greedysearch-pi 1.8.1 → 1.8.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/CHANGELOG.md +10 -0
- package/README.md +17 -1
- package/bin/launch.mjs +366 -288
- package/bin/search.mjs +148 -20
- package/extractors/common.mjs +291 -279
- package/extractors/gemini.mjs +146 -145
- package/extractors/google-ai.mjs +125 -124
- package/extractors/perplexity.mjs +145 -141
- package/extractors/selectors.mjs +54 -52
- package/index.ts +179 -35
- package/package.json +53 -46
- package/src/github.mjs +237 -237
- package/src/search/chrome.mjs +222 -222
- package/src/search/constants.mjs +37 -37
- package/src/search/defaults.mjs +14 -14
- package/src/search/engines.mjs +6 -2
- package/src/search/fetch-source.mjs +229 -229
- package/src/search/output.mjs +58 -58
- package/src/search/sources.mjs +445 -445
- package/src/search/synthesis-runner.mjs +63 -63
- package/src/search/synthesis.mjs +51 -40
- package/src/tools/deep-research-handler.ts +36 -36
- package/src/tools/greedy-search-handler.ts +57 -57
- package/src/tools/shared.ts +130 -130
- package/src/types.ts +103 -103
- package/test.mjs +377 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.8.2 (2026-04-20)
|
|
4
|
+
|
|
5
|
+
### Cross-Platform Testing
|
|
6
|
+
- **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.
|
|
7
|
+
- **Updated npm scripts** — `npm test` now runs the Node.js test runner (was bash-only). Original bash tests available via `npm run test:bash`.
|
|
8
|
+
|
|
9
|
+
### Project Metadata
|
|
10
|
+
- **Added `engines` field** — Package now specifies `node: ">=20.11.0"` requirement for `import.meta.dirname` support.
|
|
11
|
+
- **Updated README** — Added Testing section documenting both Node.js and bash test runners, clarified Node.js 20.11.0+ requirement.
|
|
12
|
+
|
|
3
13
|
## v1.8.0 (2026-04-16)
|
|
4
14
|
|
|
5
15
|
### Fixes
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ node ~/.pi/agent/git/GreedySearch-pi/bin/launch.mjs --kill
|
|
|
55
55
|
## Requirements
|
|
56
56
|
|
|
57
57
|
- Chrome
|
|
58
|
-
- Node.js 22+
|
|
58
|
+
- Node.js 20.11.0+ (22+ recommended)
|
|
59
59
|
|
|
60
60
|
## Project layout
|
|
61
61
|
|
|
@@ -64,6 +64,22 @@ node ~/.pi/agent/git/GreedySearch-pi/bin/launch.mjs --kill
|
|
|
64
64
|
- `src/` - ranking/fetching/formatting internals
|
|
65
65
|
- `skills/` - Pi skill metadata
|
|
66
66
|
|
|
67
|
+
## Testing
|
|
68
|
+
|
|
69
|
+
Cross-platform test runner (Windows + Unix):
|
|
70
|
+
```bash
|
|
71
|
+
npm test # run all tests
|
|
72
|
+
npm run test:quick # skip slow tests
|
|
73
|
+
npm run test:smoke # basic health check
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Full bash test suite (Unix only):
|
|
77
|
+
```bash
|
|
78
|
+
npm run test:bash # comprehensive tests
|
|
79
|
+
./test.sh parallel # race condition tests
|
|
80
|
+
./test.sh flags # flag/option tests
|
|
81
|
+
```
|
|
82
|
+
|
|
67
83
|
## Changelog
|
|
68
84
|
|
|
69
85
|
See `CHANGELOG.md`.
|