feat/exa: load keyless web search adapter automatically #9

Merged
BlackHatMagic merged 1 commit from feat/exa into master 2026-11-03 09:48:27 +00:00

Summary

  • Load npm:pi-exa@0.6.1 automatically alongside the private tree-navigation extension for each Obsidian Pi process.
  • Use Pi’s invocation-scoped package installation/cache instead of mutating global/vault package settings or requiring a separate manual install.
  • Document keyless search/fetch, first-launch network requirements, free-tier limits, privacy, existing adapter preferences, and optional paid deep search.
  • Add a real child-process RPC regression covering initial startup, restart, and new chat, including plugin/vault paths with spaces and preserved branch navigation.

Closes #8

Verification

  • bun install --frozen-lockfile
  • bun run check: typecheck plus 42 passing tests, including Chromium regressions
  • bun run build: production bundle passes
  • git diff --check: passes
  • Real Pi CLI smoke check with a fresh temporary agent directory and no stored/environment Exa API key: adapter commands loaded, MCP tools registered, live MCP check succeeded, deep search disabled, and no settings.json created.

Risks / notes

  • First launch downloads the pinned npm adapter and dependencies; Exa requests require network access and are subject to upstream free-tier limits.
  • Existing pi-exa preferences are respected (including explicit disable/paid-MCP settings); no credentials are created or overwritten.
  • Automated session tests use an RPC fixture; live Obsidian itself was not launched.
  • No plugin release/version bump is included.
## Summary - Load `npm:pi-exa@0.6.1` automatically alongside the private tree-navigation extension for each Obsidian Pi process. - Use Pi’s invocation-scoped package installation/cache instead of mutating global/vault package settings or requiring a separate manual install. - Document keyless search/fetch, first-launch network requirements, free-tier limits, privacy, existing adapter preferences, and optional paid deep search. - Add a real child-process RPC regression covering initial startup, restart, and new chat, including plugin/vault paths with spaces and preserved branch navigation. Closes #8 ## Verification - `bun install --frozen-lockfile` - `bun run check`: typecheck plus 42 passing tests, including Chromium regressions - `bun run build`: production bundle passes - `git diff --check`: passes - Real Pi CLI smoke check with a fresh temporary agent directory and no stored/environment Exa API key: adapter commands loaded, MCP tools registered, live MCP check succeeded, deep search disabled, and no settings.json created. ## Risks / notes - First launch downloads the pinned npm adapter and dependencies; Exa requests require network access and are subject to upstream free-tier limits. - Existing pi-exa preferences are respected (including explicit disable/paid-MCP settings); no credentials are created or overwritten. - Automated session tests use an RPC fixture; live Obsidian itself was not launched. - No plugin release/version bump is included.
Load pinned pi-exa through invocation-scoped package support, leaving global and vault settings unchanged. Cover initial launch, restart, and new chat with an RPC child-process regression test.

Closes #8
Code-Reviewer left a comment

Pi code review

0 new actionable findings

No new actionable findings. Previously reported issues, if any, are tracked below.

Reviewed the supplied candidate reviews of the head-to-base changes; none identified an evidence-supported defect. Checks were not run, and external Pi CLI and pi-exa behavior could not be independently verified from the repository.

Change walkthrough
Area Files Changes
Documentation (1) README.md Documents automatic Exa loading, the Pi version requirement, network usage, privacy, limits, and adapter preferences.
Other code (1) src/session.ts Adds the pinned pi-exa package as an invocation-scoped extension alongside the tree-navigation extension.
Tests (2) tests/fixtures/pi-rpc.cjs, tests/session.test.ts Adds a child-process RPC fixture that records launch arguments and supplies startup responses. Adds launch-argument and lifecycle coverage for startup, restart, and new chat with paths containing spaces.

Review effort: 2/5.

Static observations (not validation results)
Observation Detail
Diff size 4 files, +112/-2.
Binary changes No binary changes reported by this diff.
Credential patterns No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit.

Reviewed bd3e673e0b14e8a0952f793b95a2299326d06305 with proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/gpt-6.1-sol → proxy/gpt-6.1-terra. Automated advisory review; no project commands or tests were executed.

<!-- forgejo-pi-review:f1b283fd52e14beea7f7fce9e0f9d1b0f65a3487b6d4075ff95e5bef9d1b4b26 --> ## Pi code review **0 new actionable findings** No new actionable findings. Previously reported issues, if any, are tracked below. Reviewed the supplied candidate reviews of the head-to-base changes; none identified an evidence-supported defect. Checks were not run, and external Pi CLI and pi-exa behavior could not be independently verified from the repository. <details> <summary>Change walkthrough</summary> | Area | Files | Changes | | --- | --- | --- | | Documentation (1) | `README.md` | Documents automatic Exa loading, the Pi version requirement, network usage, privacy, limits, and adapter preferences. | | Other code (1) | `src/session.ts` | Adds the pinned pi-exa package as an invocation-scoped extension alongside the tree-navigation extension. | | Tests (2) | `tests/fixtures/pi-rpc.cjs`, `tests/session.test.ts` | Adds a child-process RPC fixture that records launch arguments and supplies startup responses. Adds launch-argument and lifecycle coverage for startup, restart, and new chat with paths containing spaces. | Review effort: **2/5**. </details> <details> <summary>Static observations (not validation results)</summary> | Observation | Detail | | --- | --- | | Diff size | 4 files, +112/-2. | | Binary changes | No binary changes reported by this diff. | | Credential patterns | No matches after excluding known examples/placeholders. Added-line heuristics only; not a security audit. | </details> --- Reviewed `bd3e673e0b14e8a0952f793b95a2299326d06305` with `proxy/glm-5.3-flash + proxy/deepseek-v4.1-flash + proxy/gpt-6.1-sol → proxy/gpt-6.1-terra`. Automated advisory review; no project commands or tests were executed.
Author
Owner

Review monitoring complete: Code-Reviewer reviewed current head bd3e673e0b with 0 actionable findings. Local typecheck, all 42 tests, production build, and diff checks pass. A real Pi CLI smoke check with a fresh agent directory and no Exa key registered MCP tools and passed the live MCP check without creating settings.json. No remote commit statuses are reported. Squash-merging as requested.

Review monitoring complete: Code-Reviewer reviewed current head bd3e673e0b14e8a0952f793b95a2299326d06305 with 0 actionable findings. Local typecheck, all 42 tests, production build, and diff checks pass. A real Pi CLI smoke check with a fresh agent directory and no Exa key registered MCP tools and passed the live MCP check without creating settings.json. No remote commit statuses are reported. Squash-merging as requested.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
BlackHatMagic/Pi-Obsidian!9
No description provided.