@lincoln504/pi-research 1.7.7 → 1.7.9

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 (36) hide show
  1. package/agent-skill/pi-research/README.md +3 -3
  2. package/agent-skill/pi-research/SKILL.md +1 -1
  3. package/dist/cli-bin.mjs +10 -1
  4. package/dist/cli.mjs +692 -387
  5. package/dist/pdf-extract-worker.mjs +12 -3
  6. package/dist/thread-worker.mjs +41 -12
  7. package/docs/AGENT-SKILL.md +3 -3
  8. package/docs/ARCHITECTURE.md +64 -50
  9. package/docs/CHANGELOG.md +31 -0
  10. package/docs/CONFIGURATION.md +2 -2
  11. package/docs/SDK.md +7 -6
  12. package/docs/THIRD-PARTY-NOTICES.md +11 -7
  13. package/package.json +10 -8
  14. package/scripts/camoufox-layout.cjs +455 -0
  15. package/scripts/cleanup.cjs +72 -29
  16. package/scripts/setup.cjs +72 -111
  17. package/src/cli-bin.mjs +10 -1
  18. package/src/cli.ts +27 -15
  19. package/src/healthcheck/index.ts +1 -1
  20. package/src/infrastructure/browser/browser-cleanup.ts +1 -1
  21. package/src/infrastructure/browser/browser-error-utils.ts +5 -4
  22. package/src/infrastructure/browser/camoufox-layout.ts +450 -0
  23. package/src/infrastructure/browser/config.ts +46 -103
  24. package/src/infrastructure/browser/ensure-browser.ts +63 -49
  25. package/src/infrastructure/browser/thread-worker-browser.ts +38 -42
  26. package/src/infrastructure/browser/thread-worker.mjs +41 -12
  27. package/src/infrastructure/knowledge-store-service.ts +6 -6
  28. package/src/knowledge/store.ts +1 -1
  29. package/src/orchestration/researcher-executor.ts +47 -1
  30. package/src/tui/research-health.ts +1 -1
  31. package/src/utils/log-utils.ts +19 -4
  32. package/src/utils/research-export.ts +1 -1
  33. package/src/web-research/browser-search.ts +8 -10
  34. package/src/web-research/pdf-extract-worker.mjs +12 -3
  35. package/src/web-research/scraper-utils.ts +42 -10
  36. package/src/web-research/web-scraper.ts +1 -1
@@ -57,9 +57,9 @@ npm install -g @earendil-works/pi-coding-agent
57
57
  ```
58
58
 
59
59
  On npm ≥11.19 (and npm 12) dependency install scripts are skipped by default — and
60
- none are needed: better-sqlite3 13 ships prebuilt bindings in its own tarball, and
61
- the stealth browser self-provisions on its first use (the first scrape takes a few
62
- minutes). No approval is required.
60
+ none are needed: the only native piece on the launch path is `impit`, which ships
61
+ prebuilt binaries, and the stealth browser self-provisions on its first use (the
62
+ first scrape takes a few minutes). No approval is required.
63
63
 
64
64
  ### Install the skill
65
65
 
@@ -2,7 +2,7 @@
2
2
  name: pi-research
3
3
  description: "Multi-agent web research for any coding agent. Use for anything requiring current information from the internet — news, trends, product/service/company facts, statistics, people, places, events, APIs, library behavior, or 'what is X / how does X work' questions. Also use to search a local knowledge store of previously researched findings before doing live research. Powered by the pi-research engine (search, stealth scraping, security databases, Stack Exchange). Not for reading local files, running project commands, or analyzing this repository's own source."
4
4
  license: MIT
5
- metadata: { "author": "Lincoln Deen", "version": "1.7.7", "package": "@lincoln504/pi-research", "engine": "pi-research-sdk", "openclaw": { "requires": { "bins": ["node"] } } }
5
+ metadata: { "author": "Lincoln Deen", "version": "1.7.9", "package": "@lincoln504/pi-research", "engine": "pi-research-sdk", "openclaw": { "requires": { "bins": ["node"] } } }
6
6
  allowed-tools: Bash(node:*)
7
7
  ---
8
8
 
package/dist/cli-bin.mjs CHANGED
@@ -37,7 +37,16 @@
37
37
  import { existsSync } from 'node:fs';
38
38
  import { fileURLToPath } from 'node:url';
39
39
 
40
- const REQUIRED_PEERS = ['@earendil-works/pi-ai', '@earendil-works/pi-coding-agent'];
40
+ const REQUIRED_PEERS = [
41
+ '@earendil-works/pi-ai',
42
+ '@earendil-works/pi-coding-agent',
43
+ // dist/cli.mjs imports it directly (TUI width helpers), so an install that skips
44
+ // peers can lack it even though pi-coding-agent normally brings it in.
45
+ '@earendil-works/pi-tui',
46
+ // Host-provided too (peerDependency since 1.7.9): dist/cli.mjs imports it for
47
+ // every tool schema, and pi supplies its own copy when it loads the extension.
48
+ 'typebox',
49
+ ];
41
50
 
42
51
  /**
43
52
  * Probe one peer dependency.