pi-plus 0.1.18 → 0.1.19
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 +5 -0
- package/README.md +2 -3
- package/package.json +1 -1
- package/pipi.js +39 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- The `/init` command (shared core, `packages/plus/src/extensions/init/`): analyzes the codebase and creates `PI.md` at the cwd root, or suggests improvements when it already exists; `PI.md` is auto-loaded into every session.
|
|
8
|
+
|
|
5
9
|
### Changed
|
|
6
10
|
|
|
7
11
|
- **The repository split the pi-plus sources into three packages**: the shared override core (context/compaction/reasoning + the seven non-TUI extensions + the core redirect wrappers) stays in `packages/plus`, all CLI logic (hub dispatch, completion, usage print, banner/vim/tab-title/plain-tools/`/cd`, the main wrapper, the source-mode loader) moved to `packages/plus-cli`, and the programmatic entry moved to `packages/plus-api`. The published `pi-plus` package is now **CLI-only**: `api.js`/`api.d.ts` are gone from the artifact, the `exports` map has no `.` entry (so `import "pi-plus"` fails by design), and the `@earendil-works/pi-coding-agent` types dependency is dropped. Library hosts should depend on the new **`pi-plus-sdk`** package instead, published from `packages/plus-api`.
|
|
12
|
+
- The `/cd` working-directory switch extension moved to the shared core (`packages/plus/src/extensions/cd/`) so the `pi-plus-sdk` artifact registers it too; it is no longer CLI-only.
|
|
8
13
|
- Entries below this note predate the split and describe the combined `pi-plus` artifact.
|
|
9
14
|
|
|
10
15
|
### Fixed
|
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) live in
|
|
14
|
+
The context-detection/compaction/reasoning overrides and the nine non-TUI extensions
|
|
15
|
+
(subagent, tasks, memory, plan, ask-user, hooks, context-guard, /cd, /init) 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`.
|
|
@@ -23,7 +23,6 @@ The context-detection/compaction/reasoning overrides and the seven non-TUI exten
|
|
|
23
23
|
6. **Settings selector rows** (`src/coding-agent/ui/settings-selector.ts` wrapper) — `/settings` gains "Auto-compact threshold", "Context floor", and "Context window cap" rows (persisted via the shared core's `context/threshold-setting.ts`).
|
|
24
24
|
7. **Tab title + busy spinner** (`src/extensions/tab-title/`) — the terminal window/tab title brands as `pi+ - [sessionName -] cwdBasename` with a braille spinner while the agent or compaction is working. TUI mode only.
|
|
25
25
|
8. **Plain tool blocks** (`src/extensions/plain-tools/`) — strips background fills from tool result blocks so tool status reads as text (words, never colored blocks).
|
|
26
|
-
9. **`/cd` working-directory switch** (`src/extensions/cd/`) — `/cd <dir>` relocates the session to a different working directory (same conversation, re-bound project context).
|
|
27
26
|
|
|
28
27
|
The CLI identifies as **`pipi`** (pi-plus) in CLI text via the shared config wrapper's
|
|
29
28
|
`APP_NAME` shadow; the terminal tab title brands as **`pi+`** via `APP_TITLE`.
|