@caupulican/pi-adaptative 0.80.5 → 0.80.7

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/README.md +14 -2
  3. package/dist/cli/args.d.ts.map +1 -1
  4. package/dist/cli/args.js +4 -1
  5. package/dist/cli/args.js.map +1 -1
  6. package/dist/core/keybindings.d.ts +1 -1
  7. package/dist/core/keybindings.d.ts.map +1 -1
  8. package/dist/core/keybindings.js +1 -1
  9. package/dist/core/keybindings.js.map +1 -1
  10. package/dist/core/model-resolver.d.ts +7 -1
  11. package/dist/core/model-resolver.d.ts.map +1 -1
  12. package/dist/core/model-resolver.js +85 -16
  13. package/dist/core/model-resolver.js.map +1 -1
  14. package/dist/core/session-manager.d.ts +1 -0
  15. package/dist/core/session-manager.d.ts.map +1 -1
  16. package/dist/core/session-manager.js +5 -1
  17. package/dist/core/session-manager.js.map +1 -1
  18. package/dist/main.d.ts.map +1 -1
  19. package/dist/main.js +14 -8
  20. package/dist/main.js.map +1 -1
  21. package/dist/modes/interactive/interactive-mode.d.ts +40 -0
  22. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  23. package/dist/modes/interactive/interactive-mode.js +539 -136
  24. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  25. package/docs/keybindings.md +1 -1
  26. package/docs/providers.md +27 -2
  27. package/docs/settings.md +1 -1
  28. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  29. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  30. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  31. package/examples/extensions/sandbox/package-lock.json +2 -2
  32. package/examples/extensions/sandbox/package.json +1 -1
  33. package/examples/extensions/with-deps/package-lock.json +2 -2
  34. package/examples/extensions/with-deps/package.json +1 -1
  35. package/npm-shrinkwrap.json +12 -12
  36. package/package.json +4 -4
@@ -87,7 +87,7 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, `ctrl+1
87
87
  | `app.exit` | `ctrl+d` | Exit (when editor empty) |
88
88
  | `app.suspend` | `ctrl+z` (none on Windows) | Suspend to background |
89
89
  | `app.editor.external` | `ctrl+g` | Open in external editor (`$VISUAL` or `$EDITOR`) |
90
- | `app.clipboard.pasteImage` | `ctrl+v` (`alt+v` on Windows) | Paste image from clipboard |
90
+ | `app.clipboard.pasteImage` | `alt+v` | Paste image from clipboard |
91
91
 
92
92
  ### Sessions
93
93
 
package/docs/providers.md CHANGED
@@ -13,13 +13,38 @@ Pi supports subscription-based providers via OAuth and API key providers via env
13
13
 
14
14
  ## Subscriptions
15
15
 
16
- Use `/login` in interactive mode, then select a provider:
16
+ Use `/login` in interactive mode, then select a provider, or pass one directly (for example `/login chatgpt` or `/login claude`):
17
17
 
18
18
  - ChatGPT Plus/Pro (Codex)
19
19
  - Claude Pro/Max
20
20
  - GitHub Copilot
21
21
 
22
- Use `/logout` to clear credentials. Tokens are stored in `~/.pi/agent/auth.json` and auto-refresh when expired.
22
+ Use `/logout` to clear credentials. Tokens are stored per provider in `~/.pi/agent/auth.json` and auto-refresh when expired.
23
+
24
+ ## Running Multiple Providers at Once
25
+
26
+ Pi does not keep a single global active provider for running agents. Each Pi process/session has its own selected model, and `auth.json` can hold credentials for many providers at the same time. After logging in to both subscription providers, start separate terminals with explicit provider or model selection:
27
+
28
+ ```bash
29
+ # ChatGPT Plus/Pro subscription via Codex
30
+ pi --provider openai-codex --name chatgpt-worker
31
+ # equivalent friendly alias:
32
+ pi --provider chatgpt --name chatgpt-worker
33
+
34
+ # Claude Pro/Max subscription
35
+ pi --provider anthropic --name claude-worker
36
+ # equivalent friendly alias:
37
+ pi --provider claude --name claude-worker
38
+ ```
39
+
40
+ Or pin exact models:
41
+
42
+ ```bash
43
+ pi --model openai-codex/gpt-5.5 --name chatgpt-worker
44
+ pi --model anthropic/claude-opus-4-8 --name claude-worker
45
+ ```
46
+
47
+ Those instances can run concurrently. Switching `/model` in one instance only changes that session's in-memory model and its session history; it does not retarget already-running Pi processes.
23
48
 
24
49
  ### OpenAI Codex
25
50
 
package/docs/settings.md CHANGED
@@ -126,7 +126,7 @@ Hard stops still require explicit foreground approval even in `full`: publishing
126
126
 
127
127
  Use `/settings` → **Auto Learn Advanced** to override the active autonomy preset, including the scavenger model and reflection review. The submenu lets you choose whether to save globally or to the current project's `.pi/settings.json`. The model picker prioritizes models from currently configured subscription/API accounts and still offers a manual custom-pattern entry. Use `/autonomy status` for the compact preset dashboard, `/auto-learn status` to inspect trigger state, reflection cooldown, and running leases, or `/auto-learn run` to start one learner immediately.
128
128
 
129
- When enabled, Auto Learn uses a shared state file under the learning extension data directory to coordinate non-colliding background learners across sessions. Each long session gets its own tenant lease, and all learners read/renew the same state before scavenging stored histories for tooling capability and agent-behavior improvements. Learners also query available user/project memory first, using existing rules, preferences, corrections, and project facts to polish candidates, avoid duplicates, and improve accuracy.
129
+ When enabled, Auto Learn uses a shared state file under the Auto Learn audit/log directory to coordinate non-colliding background learners across sessions. Each long session gets its own tenant lease, and all learners read/renew the same state before scavenging stored histories for tooling capability and agent-behavior improvements. Learners also query available user/project memory first, using existing rules, preferences, corrections, and project facts to polish candidates, avoid duplicates, and improve accuracy. Internal Auto Learn prompt, log, and worker-session history artifacts are pruned after a fixed 7-day retention window; active leases are skipped so running learners are not raced. Provider/user history pruning is delegated to the continuous-learning tool after it records a learning outcome: only files older than 7 days whose current fingerprint still matches a successfully extracted index entry are deleted, and active/current sessions are protected.
130
130
 
131
131
  ```json
132
132
  {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "0.80.5",
3
+ "version": "0.80.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "0.80.5",
9
+ "version": "0.80.7",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.52.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "0.80.5",
4
+ "version": "0.80.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "0.80.5",
4
+ "version": "0.80.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
- "version": "0.80.5",
3
+ "version": "0.80.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-sandbox",
9
- "version": "0.80.5",
9
+ "version": "0.80.7",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sandbox-runtime": "^0.0.26"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
3
  "private": true,
4
- "version": "0.80.5",
4
+ "version": "0.80.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
- "version": "0.80.5",
3
+ "version": "0.80.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "0.80.5",
9
+ "version": "0.80.7",
10
10
  "dependencies": {
11
11
  "ms": "^2.1.3"
12
12
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
3
  "private": true,
4
- "version": "0.80.5",
4
+ "version": "0.80.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@caupulican/pi-adaptative",
3
- "version": "0.80.5",
3
+ "version": "0.80.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@caupulican/pi-adaptative",
9
- "version": "0.80.5",
9
+ "version": "0.80.7",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@earendil-works/pi-agent-core": "npm:@caupulican/pi-agent-core@0.80.5",
13
- "@earendil-works/pi-ai": "npm:@caupulican/pi-ai@0.80.5",
14
- "@earendil-works/pi-tui": "npm:@caupulican/pi-tui@0.80.5",
12
+ "@earendil-works/pi-agent-core": "npm:@caupulican/pi-agent-core@0.80.7",
13
+ "@earendil-works/pi-ai": "npm:@caupulican/pi-ai@0.80.7",
14
+ "@earendil-works/pi-tui": "npm:@caupulican/pi-tui@0.80.7",
15
15
  "@silvia-odwyer/photon-node": "0.3.4",
16
16
  "chalk": "5.6.2",
17
17
  "cross-spawn": "7.0.6",
@@ -474,11 +474,11 @@
474
474
  }
475
475
  },
476
476
  "node_modules/@earendil-works/pi-agent-core": {
477
- "version": "0.80.5",
478
- "resolved": "https://registry.npmjs.org/@caupulican/pi-agent-core/-/pi-agent-core-0.80.5.tgz",
477
+ "version": "0.80.7",
478
+ "resolved": "https://registry.npmjs.org/@caupulican/pi-agent-core/-/pi-agent-core-0.80.7.tgz",
479
479
  "license": "MIT",
480
480
  "dependencies": {
481
- "@earendil-works/pi-ai": "npm:@caupulican/pi-ai@0.80.5",
481
+ "@earendil-works/pi-ai": "npm:@caupulican/pi-ai@0.80.7",
482
482
  "ignore": "7.0.5",
483
483
  "typebox": "1.1.38",
484
484
  "yaml": "2.9.0"
@@ -488,8 +488,8 @@
488
488
  }
489
489
  },
490
490
  "node_modules/@earendil-works/pi-ai": {
491
- "version": "0.80.5",
492
- "resolved": "https://registry.npmjs.org/@caupulican/pi-ai/-/pi-ai-0.80.5.tgz",
491
+ "version": "0.80.7",
492
+ "resolved": "https://registry.npmjs.org/@caupulican/pi-ai/-/pi-ai-0.80.7.tgz",
493
493
  "license": "MIT",
494
494
  "dependencies": {
495
495
  "@anthropic-ai/sdk": "0.91.1",
@@ -511,8 +511,8 @@
511
511
  }
512
512
  },
513
513
  "node_modules/@earendil-works/pi-tui": {
514
- "version": "0.80.5",
515
- "resolved": "https://registry.npmjs.org/@caupulican/pi-tui/-/pi-tui-0.80.5.tgz",
514
+ "version": "0.80.7",
515
+ "resolved": "https://registry.npmjs.org/@caupulican/pi-tui/-/pi-tui-0.80.7.tgz",
516
516
  "license": "MIT",
517
517
  "dependencies": {
518
518
  "get-east-asian-width": "1.6.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caupulican/pi-adaptative",
3
- "version": "0.80.5",
3
+ "version": "0.80.7",
4
4
  "description": "Adaptive fork of Pi coding agent for self-evolving agent harness experiments",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -41,9 +41,9 @@
41
41
  "prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
42
42
  },
43
43
  "dependencies": {
44
- "@earendil-works/pi-agent-core": "npm:@caupulican/pi-agent-core@0.80.5",
45
- "@earendil-works/pi-ai": "npm:@caupulican/pi-ai@0.80.5",
46
- "@earendil-works/pi-tui": "npm:@caupulican/pi-tui@0.80.5",
44
+ "@earendil-works/pi-agent-core": "npm:@caupulican/pi-agent-core@0.80.7",
45
+ "@earendil-works/pi-ai": "npm:@caupulican/pi-ai@0.80.7",
46
+ "@earendil-works/pi-tui": "npm:@caupulican/pi-tui@0.80.7",
47
47
  "@silvia-odwyer/photon-node": "0.3.4",
48
48
  "chalk": "5.6.2",
49
49
  "cross-spawn": "7.0.6",