pi-plus-sdk 0.1.24 → 0.1.25
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 +1 -0
- package/README.md +2 -2
- package/api.js +37 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
+
- The web search extension (`pi-plus-web-search`, shared core `packages/plus/src/extensions/web-search/`) joins `plusSdkExtensionFactories`: SDK sessions get the `WebSearch` (provider chain over `WEB_SEARCH_PROVIDER`/`*_API_KEY` env vars, keyless DuckDuckGo fallback last) and `WebFetch` (URL → text) tools, registered exactly as the CLI wrapper registers them.
|
|
7
8
|
- Session recap failures are re-exported from the SDK surface (`packages/plus/src/extensions/recap/events.ts`): `subscribeToRecapFailures(listener)` — fires with a `{ sessionId, reason: "timeout" | "error", message }` `RecapFailure` after every failed auto-title call (the one-off recap LLM call after the first prompt or a compaction hitting its 30s timeout, or a provider error), returning an unsubscribe function — plus the `RecapFailure`/`RecapFailureReason` types. A host (e.g. the pi-plus desktop) can show its own "session name not set" indicator or trigger a retry without polling. In-process only. Hosts that wire `PlusUIDialogHandlers.notify` via `createPlusUIContext` also receive the failure as a transcript warning through the notify bridge, since the TUI warning that replaced the old stderr dump routes through the same `ui.notify`.
|
|
8
9
|
- `/plan <prompt>` in the plan extension (shared core): any argument other than the `show` / `edit` subcommands turns plan mode on (when off) and forwards the text to the model as a user message (queued as steering while the agent is streaming).
|
|
9
10
|
- The plan review dialog renders the plan as markdown instead of raw text (shared core, `packages/plus/src/extensions/plan/component.ts`): `ExitPlanMode` presents the plan file in a scrollable rendered-markdown view with the three Claude Code choices — Approve and proceed / Stay in plan mode / Edit plan — driven by ↑↓/j/k + enter, digit keys 1-3, or esc to stay (a plain-text `ui.select` remains the fallback for RPC / headless hosts). `/plan show` reuses the same view read-only, replacing the raw `ui.notify` dump.
|
package/README.md
CHANGED
|
@@ -25,9 +25,9 @@ await session.prompt("Review this repository");
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
- The full pi-plus layer is included: the compaction/context/reasoning overrides are
|
|
28
|
-
baked into `api.js` by the shared bundle-time redirect plugin, and the
|
|
28
|
+
baked into `api.js` by the shared bundle-time redirect plugin, and the eleven
|
|
29
29
|
non-TUI pi-plus extensions (subagent, tasks, memory, plan, ask-user, hooks,
|
|
30
|
-
context-guard, recap, `/cd`, `/init
|
|
30
|
+
context-guard, recap, `/cd`, `/init`, web-search) are registered exactly as the CLI wrapper registers them. No CLI
|
|
31
31
|
logic ships in this artifact: no hub command dispatch (`pipi profile ...`), no
|
|
32
32
|
completion, no pipi help text, no banner/vim/tab-title/plain-tools.
|
|
33
33
|
- Profile management ships as a library: the curated `@earendil-works/pi-hub`
|