@maxmo74/pi-coding-agent 1.4.0-max.1 → 1.4.0-max.2
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/README.md +17 -1
- package/dist/bundle/chunks/{chunk-QVAQV2RJ.js → chunk-BRAJAC52.js} +4 -4
- package/dist/bundle/chunks/{chunk-G2WC5ETL.js → chunk-CROFGA3S.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-KVDFV7IC.js → virtual-modules-UF6ZXK6X.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +16 -8
- package/dist/package-manager-cli.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,7 +12,23 @@ This package is **not** the official [Pi](https://pi.dev) release and is not aff
|
|
|
12
12
|
npm install -g @maxmo74/pi-coding-agent
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Requires Node.js 22.19 or newer
|
|
15
|
+
Requires Node.js 22.19 or newer, installed in a way you control - see **Switching from an official install** below. Node 22 LTS is what upstream ships and what this fork's tests run on; newer majors work too. Configuration, credentials and sessions live in `~/.pi`, separate from the program, so existing logins and history carry over.
|
|
16
|
+
|
|
17
|
+
**Switching from an official install**
|
|
18
|
+
|
|
19
|
+
Nothing needs migrating: sessions, credentials, settings and extensions are in `~/.pi/agent` (`sessions`, `auth.json`, `models.json`, `settings.json`, `extensions`) and the official installer never writes history into the program directory. What you remove is only the program.
|
|
20
|
+
|
|
21
|
+
The order matters for one reason: the official installer keeps its own Node.js in `~/.local/share/pi-node`, and `pi` runs on whatever `node` is first on your `PATH`. Install the fork with a Node you own, or removing pi's Node afterwards breaks it.
|
|
22
|
+
|
|
23
|
+
1. Install Node.js 22.19 or newer yourself, then check it is the one you get: `which node` must not print a path under `~/.local/share/pi-node`. On macOS: `brew install node`. On Windows: `winget install OpenJS.NodeJS.LTS`. If you use `nvm` or `fnm`, use those.
|
|
24
|
+
2. Install the fork: `npm install -g @maxmo74/pi-coding-agent`.
|
|
25
|
+
3. Remove the official program, keeping everything else: `rm ~/.pi/agent/bin/pi` (the launcher), then the release directory it points at, `~/.pi/agent/install` (a few hundred MB), then pi's private Node, `~/.local/share/pi-node`. On Windows the same files are under `%USERPROFILE%\.pi\agent`. Only delete `~/.local/share/pi-node` if nothing else uses it - it holds only Node, npm and whatever you installed globally with that npm, and `ls ~/.local/share/pi-node/*/bin` shows what is in there.
|
|
26
|
+
4. Open a new shell and check what you actually get. `which -a pi` (where.exe pi on Windows) must list one `pi`, in your Node's bin directory - not `~/.pi/agent/bin/pi`, and not two. `pi --version` must print a `-max.` version. If it prints a plain version like `1.4.0`, an official install is still on your `PATH` and you are still running upstream.
|
|
27
|
+
5. `pi update` should answer `already up to date`. It only self-updates a **global** npm install; a local one prints `cannot self-update this installation` and has to be updated with `npm install -g` again.
|
|
28
|
+
|
|
29
|
+
Do not run the official installer (`curl -fsSL https://pi.dev/install.sh | sh`) on a machine that should keep the fork: it installs upstream and puts its launcher back in front of this one. This fork has no managed installer, npm only.
|
|
30
|
+
|
|
31
|
+
To go back: `npm uninstall -g @maxmo74/pi-coding-agent`, then install upstream however you like. Your `~/.pi` was never touched, so the same history is there either way.
|
|
16
32
|
|
|
17
33
|
**Updating:** `pi update` installs patched builds published from this repository, versioned `<upstream>-max.<revision>` - for example `1.4.0-max.2`. When Pi releases a new version before a patched build exists, `pi update` will not install the unpatched one; it says what is missing instead.
|
|
18
34
|
|