pi-plus 0.1.34 → 0.1.36
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/package.json +1 -1
- package/pipi.js +41 -8
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/`) is registered in the `pipi` CLI: `WebSearch` searches the web through the provider chain selected by `WEB_SEARCH_PROVIDER`/`*_API_KEY` env vars (keyless DuckDuckGo fallback last) and `WebFetch` reads a URL as text, both returning citation-ready results.
|
|
7
8
|
- The `/init` command (shared core, `packages/plus/src/extensions/init/`): analyzes the codebase and creates `AGENTS.md` at the cwd root, or suggests improvements when it already exists; pi loads `AGENTS.md` automatically.
|
|
8
9
|
- `pipi profile add <name> -p <provider>` with no token/model/url/thinking/--set now invokes that provider's interactive login after saving the profile: the OAuth login page opens in the browser (or the API-key setup prompts run in the terminal) and the credential is persisted into the profile's isolated agent dir (`~/.pi/pi-hub/profiles/<name>/auth.json`), so the profile is ready to launch. A cancelled or failed login keeps the profile and suggests `pipi profile update <name> -t <key>`. The CLI injects the flow via hub's `dispatchHubCommand` `login` hook; the flow itself lives in the shared core (`packages/plus/src/auth/login.ts`).
|
|
9
10
|
- The interactive TUI's `/login` is disabled: it shows a status line pointing at `pipi profile add <name> -p <provider>` instead of starting the login flow, and it no longer appears in autocomplete or `/help` (via the `interactive-mode` and `slash-commands` redirect wrappers in the shared core).
|
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ not own pi's command). Library hosts embedding pi in-process use the separate
|
|
|
11
11
|
|
|
12
12
|
## What this layer adds on top of the shared core
|
|
13
13
|
|
|
14
|
-
The context-detection/compaction/reasoning overrides and the
|
|
15
|
-
(subagent, tasks, memory, plan, ask-user, hooks, context-guard, recap, /cd, /init) live in
|
|
14
|
+
The context-detection/compaction/reasoning overrides and the eleven non-TUI extensions
|
|
15
|
+
(subagent, tasks, memory, plan, ask-user, hooks, context-guard, recap, /cd, /init, web-search) live in
|
|
16
16
|
[`../plus`](../plus) and are shared with the SDK. This package adds the CLI-only pieces:
|
|
17
17
|
|
|
18
18
|
1. **Hub profiles** (`src/coding-agent/main.ts` wrapper, backed by `@earendil-works/pi-hub` = [`../hub`](../hub)) — named pi profiles (provider/models/thinking/token/base URL) stored in `~/.pi/profiles.json`, materialized into isolated agent dirs under `~/.pi/pi-hub/profiles/<name>/`. Adds `pipi profile …`, `pipi use` / `pipi unuse`, and the `pipi --as <name>` flag. The wrapper resolves the profile, sets `PI_CODING_AGENT_DIR` in-process (read lazily by `getAgentDir()`), and delegates to the original `main`. `pipi profile add <name> -p <provider>` with no credential — or `pipi profile add/update <name> --sign-in` for an explicit sign-in that overwrites the profile token — invokes the provider's interactive login (OAuth page / API-key setup) against the profile dir via hub's injected `login` hook, using `loginProvider` from [`../plus`](../plus)`/src/auth/login.ts` (the same entry `pi-plus-sdk` re-exports for embedded hosts); the TUI `/login` is disabled by core redirect wrappers in favour of this flow.
|