@magnitudedev/pi-extension 0.0.1-alpha.0

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 ADDED
@@ -0,0 +1,54 @@
1
+ # Magnitude for Pi
2
+
3
+ This Pi package adds Magnitude model management commands and live local-inference progress to Pi's
4
+ built-in working row above the editor.
5
+
6
+ Requires Pi 0.83.0 or newer and a matching Magnitude CLI. Install a local model, then run:
7
+
8
+ ```sh
9
+ magnitude connections add pi
10
+ ```
11
+
12
+ Restart Pi or run `/reload` after connecting. `PI_CODING_AGENT_DIR`, if set, is honored.
13
+ Installing the package directly with `pi install` does not configure provider models,
14
+ install the Magnitude CLI, start its service, or install its agent skill; the connection command
15
+ does all connection configuration and can be run safely after a standalone package install.
16
+
17
+ The extension bundles Magnitude's private SDK. Model status, loading, and stopping use the existing
18
+ RPC endpoint at port 10100. When necessary the SDK runs `magnitude service start`; it does not use
19
+ CLI output as a model API. If `/load-model` or `/stop-model` encounters a protocol mismatch, the
20
+ extension runs `magnitude connections sync pi` once to install the exact plugin version selected by
21
+ the installed CLI, then reloads Pi. Retry your model command after reload; it is never replayed
22
+ automatically. Failed sync reports the error without reloading or looping. Manually owned incompatible
23
+ packages are not replaced. Autocomplete and inference callbacks never trigger an update. During
24
+ requests to the `magnitude` provider, it opts into Magnitude progress events and uses Pi's working
25
+ row for model loading, prefill, and active-work timing. When Pi successfully completes a run, a one-line summary
26
+ immediately above the editor shows the model's display name, total Pi agent-run time, first-token
27
+ latency, and token-weighted generation throughput. Pi extensions execute with your user permissions.
28
+
29
+ Commands:
30
+
31
+ - `/load-model [model-id]` — load an installed model
32
+ - `/stop-model` — stop the active model
33
+
34
+ Installed Magnitude models appear in Pi's built-in `/model` selector. To discover, compare, install,
35
+ or remove models from the Magnitude catalog, ask the agent; the connection installs Magnitude's
36
+ agent skill and the agent uses the `magnitude catalog` and `magnitude connections` commands.
37
+
38
+ Set `MAGNITUDE_CLI` to an alternate Magnitude executable path when developing or testing the package.
39
+ `magnitude connections add pi` selects an exact compatible package and verifies its bundled contents.
40
+ The SDK is a build-time workspace dependency, not a separately published or installed package.
41
+
42
+ From a Magnitude source checkout, run the complete local connection and TUI flow with:
43
+
44
+ ```sh
45
+ bun run dev:pi
46
+ ```
47
+
48
+ This builds and installs the package from `integrations/pi` into an isolated Pi configuration,
49
+ with temporary connection receipts and agent skill. Pi runs in the caller's working directory.
50
+ It uses the normal connection service,
51
+ builds and runs the checkout's inference runtime,
52
+ and keeps the current source CLI available until Pi exits. Exiting Pi stops the development runtime
53
+ and restores the service state that existed before launch. The launcher inherits the current
54
+ environment; it does not start or configure tracing.
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@magnitudedev/pi-extension",
3
+ "version": "0.0.1-alpha.0",
4
+ "rpcVersion": 1,
5
+ "contentFingerprint": "0cae890db353d9f063a1298bd0f770259d18a27692c4c392fd7561c031e5792c",
6
+ "files": {
7
+ "README.md": "345dccd4bee3706cb2647d10185acd0a79de61baf002f9cfce587b35376d5b19",
8
+ "dist/magnitude.js": "0d59abfd9a959d5ea4a066a39bcb1cc072c957c778edcd7bd702cc5878a8403f"
9
+ }
10
+ }