@cortexkit/pi-magic-context 0.16.1 → 0.16.3

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 CHANGED
@@ -28,10 +28,10 @@ Magic Context is a context engine that keeps long Pi sessions productive by:
28
28
 
29
29
  ## Installation
30
30
 
31
- The fastest path is the interactive setup wizard — it registers the extension with Pi, writes a sensible `magic-context.jsonc`, and verifies your model picks against Pi's CLI:
31
+ The fastest path is the unified Magic Context CLI — `--harness pi` selects the Pi-specific setup pipeline (registers the extension with Pi, writes a sensible `magic-context.jsonc`, and verifies your model picks):
32
32
 
33
33
  ```bash
34
- bunx --bun @cortexkit/pi-magic-context@latest setup
34
+ npx @cortexkit/magic-context@latest setup --harness pi
35
35
  ```
36
36
 
37
37
  This handles everything for you:
@@ -40,24 +40,18 @@ This handles everything for you:
40
40
  3. Prompts you for historian, dreamer, sidekick, and embedding model choices
41
41
  4. Warns about provider-specific gotchas (e.g. GitHub Copilot reasoning models need an explicit `thinking_level`)
42
42
 
43
- If you'd rather install the npm package globally first:
44
-
45
- ```bash
46
- npm install -g @cortexkit/pi-magic-context@latest
47
- # or
48
- bun add -g @cortexkit/pi-magic-context@latest
49
- ```
50
-
51
- Then either run `magic-context-pi setup` or register the extension manually with Pi's own installer:
43
+ If you'd rather register the Pi extension package directly with Pi (skipping the wizard), use Pi's own installer:
52
44
 
53
45
  ```bash
54
46
  pi install npm:@cortexkit/pi-magic-context
55
47
  ```
56
48
 
49
+ This adds the extension to `~/.pi/agent/settings.json` but won't write `magic-context.jsonc` for you — you'll need to create it manually (see Configuration below).
50
+
57
51
  To check installation health later:
58
52
 
59
53
  ```bash
60
- magic-context-pi doctor
54
+ npx @cortexkit/magic-context@latest doctor --harness pi
61
55
  ```
62
56
 
63
57
  ---
@@ -161,7 +155,8 @@ This package is part of the [magic-context monorepo](https://github.com/cortexki
161
155
  | `dreamer/` | Pi-side adapter for the shared dreamer scheduler |
162
156
  | `system-prompt.ts` | Pi `before_agent_start` injector for `<session-history>`, `<project-memory>`, `<project-docs>` |
163
157
  | `config/` | Pi-convention config loader (`$cwd/.pi/magic-context.jsonc` + `~/.pi/agent/magic-context.jsonc`) |
164
- | `cli/` | `magic-context-pi setup` and `magic-context-pi doctor` |
158
+
159
+ The CLI lives in the unified [`@cortexkit/magic-context`](https://www.npmjs.com/package/@cortexkit/magic-context) package — `setup --harness pi` and `doctor --harness pi` route to the Pi-specific code paths in `packages/cli/src/commands/`.
165
160
 
166
161
  For deeper architectural detail, see the main repo's [ARCHITECTURE.md](https://github.com/cortexkit/magic-context/blob/master/ARCHITECTURE.md).
167
162