@caupulican/pi-adaptative 0.80.37 → 0.80.40

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 +17 -1
  2. package/README.md +1 -0
  3. package/dist/core/agent-session.d.ts.map +1 -1
  4. package/dist/core/agent-session.js +16 -8
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/model-resolver.d.ts.map +1 -1
  7. package/dist/core/model-resolver.js +1 -0
  8. package/dist/core/model-resolver.js.map +1 -1
  9. package/dist/core/provider-display-names.d.ts.map +1 -1
  10. package/dist/core/provider-display-names.js +1 -0
  11. package/dist/core/provider-display-names.js.map +1 -1
  12. package/dist/core/settings-manager.d.ts +2 -0
  13. package/dist/core/settings-manager.d.ts.map +1 -1
  14. package/dist/core/settings-manager.js +1 -0
  15. package/dist/core/settings-manager.js.map +1 -1
  16. package/dist/core/system-prompt.d.ts.map +1 -1
  17. package/dist/core/system-prompt.js +3 -0
  18. package/dist/core/system-prompt.js.map +1 -1
  19. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  20. package/dist/modes/interactive/components/settings-selector.js +3 -1
  21. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  22. package/dist/modes/interactive/interactive-mode.d.ts +3 -0
  23. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  24. package/dist/modes/interactive/interactive-mode.js +38 -14
  25. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  26. package/docs/adaptive-extension-shared-state-audit.md +1 -1
  27. package/docs/providers.md +16 -0
  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
@@ -40,4 +40,4 @@ Scope: `~/.pi/agent/extensions`, TypeScript sources, excluding `node_modules`, `
40
40
 
41
41
  ## Runtime activation note
42
42
 
43
- The authorized source repo `/mnt/d/GitHub/mine/pi-adaptative` has the updated prompt source and built source `packages/coding-agent/dist/core/system-prompt.js` contains the new rules after `npm run build`. The global `pi` package was relinked with `npm link` from `/mnt/d/GitHub/mine/pi-adaptative/packages/coding-agent`; `readlink -f $(which pi)` now resolves to `/mnt/d/GitHub/mine/pi-adaptative/packages/coding-agent/dist/cli.js`, and the global package path `/home/caudev/.nvm/versions/node/v22.22.3/lib/node_modules/@caupulican/pi-adaptative` resolves to the authorized source package. The active global runtime `dist/core/system-prompt.js` contains the MAPE, tenant-safety, and Automata-memory prompt lines for new Pi sessions.
43
+ After local builds or package installs, verify the active `pi` runtime resolves to the intended package or checkout for the environment under test. The active runtime should load `dist/core/system-prompt.js` containing the MAPE, tenant-safety, and Automata-memory prompt lines for new Pi sessions. Do not commit machine-specific absolute paths or package-manager link targets as validation evidence.
package/docs/providers.md CHANGED
@@ -76,6 +76,7 @@ pi
76
76
  | Anthropic | `ANTHROPIC_API_KEY` | `anthropic` |
77
77
  | Azure OpenAI Responses | `AZURE_OPENAI_API_KEY` | `azure-openai-responses` |
78
78
  | OpenAI | `OPENAI_API_KEY` | `openai` |
79
+ | Fugu | `SAKANA_API_KEY` or `FUGU_API_KEY` (`FUGU_BASE_URL` optional) | `fugu` |
79
80
  | DeepSeek | `DEEPSEEK_API_KEY` | `deepseek` |
80
81
  | Google Gemini | `GEMINI_API_KEY` | `google` |
81
82
  | Mistral | `MISTRAL_API_KEY` | `mistral` |
@@ -110,6 +111,7 @@ Store credentials in `~/.pi/agent/auth.json`:
110
111
  {
111
112
  "anthropic": { "type": "api_key", "key": "sk-ant-..." },
112
113
  "openai": { "type": "api_key", "key": "sk-..." },
114
+ "fugu": { "type": "api_key", "key": "$SAKANA_API_KEY" },
113
115
  "deepseek": { "type": "api_key", "key": "sk-..." },
114
116
  "google": { "type": "api_key", "key": "..." },
115
117
  "opencode": { "type": "api_key", "key": "..." },
@@ -124,6 +126,20 @@ Store credentials in `~/.pi/agent/auth.json`:
124
126
 
125
127
  The file is created with `0600` permissions (user read/write only). Auth file credentials take priority over environment variables.
126
128
 
129
+ #### Fugu
130
+
131
+ Sakana Fugu uses the OpenAI Responses-compatible Sakana API at `https://api.sakana.ai/v1`.
132
+
133
+ ```bash
134
+ export SAKANA_API_KEY=... # preferred; matches Sakana's Codex/Fugu setup
135
+ # or export FUGU_API_KEY=...
136
+ # optional: export FUGU_BASE_URL=https://api.sakana.ai
137
+ pi --provider fugu --model fugu
138
+ pi --provider fugu --model fugu-ultra --thinking xhigh
139
+ ```
140
+
141
+ Both `fugu` and `fugu-ultra` support image input and only the `high` and `xhigh` reasoning levels. `FUGU_BASE_URL` is normalized to include `/v1`. Complex `fugu-ultra` tasks may need higher request timeouts.
142
+
127
143
  ### Key Resolution
128
144
 
129
145
  The `key` field supports command execution, environment interpolation, and literals:
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "0.80.34",
3
+ "version": "0.80.37",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "0.80.34",
9
+ "version": "0.80.37",
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.34",
4
+ "version": "0.80.37",
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.34",
4
+ "version": "0.80.37",
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.34",
3
+ "version": "0.80.37",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-sandbox",
9
- "version": "0.80.34",
9
+ "version": "0.80.37",
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.34",
4
+ "version": "0.80.37",
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.34",
3
+ "version": "0.80.37",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "0.80.34",
9
+ "version": "0.80.37",
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.34",
4
+ "version": "0.80.37",
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.37",
3
+ "version": "0.80.40",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@caupulican/pi-adaptative",
9
- "version": "0.80.37",
9
+ "version": "0.80.40",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@caupulican/pi-agent-core": "^0.80.37",
13
- "@caupulican/pi-ai": "^0.80.37",
14
- "@caupulican/pi-tui": "^0.80.37",
12
+ "@caupulican/pi-agent-core": "^0.80.40",
13
+ "@caupulican/pi-ai": "^0.80.40",
14
+ "@caupulican/pi-tui": "^0.80.40",
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/@caupulican/pi-agent-core": {
477
- "version": "0.80.37",
478
- "resolved": "https://registry.npmjs.org/@caupulican/pi-agent-core/-/pi-agent-core-0.80.37.tgz",
477
+ "version": "0.80.40",
478
+ "resolved": "https://registry.npmjs.org/@caupulican/pi-agent-core/-/pi-agent-core-0.80.40.tgz",
479
479
  "license": "MIT",
480
480
  "dependencies": {
481
- "@caupulican/pi-ai": "^0.80.37",
481
+ "@caupulican/pi-ai": "^0.80.40",
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/@caupulican/pi-ai": {
491
- "version": "0.80.37",
492
- "resolved": "https://registry.npmjs.org/@caupulican/pi-ai/-/pi-ai-0.80.37.tgz",
491
+ "version": "0.80.40",
492
+ "resolved": "https://registry.npmjs.org/@caupulican/pi-ai/-/pi-ai-0.80.40.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/@caupulican/pi-tui": {
514
- "version": "0.80.37",
515
- "resolved": "https://registry.npmjs.org/@caupulican/pi-tui/-/pi-tui-0.80.37.tgz",
514
+ "version": "0.80.40",
515
+ "resolved": "https://registry.npmjs.org/@caupulican/pi-tui/-/pi-tui-0.80.40.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.37",
3
+ "version": "0.80.40",
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
- "@caupulican/pi-agent-core": "^0.80.37",
45
- "@caupulican/pi-ai": "^0.80.37",
46
- "@caupulican/pi-tui": "^0.80.37",
44
+ "@caupulican/pi-agent-core": "^0.80.40",
45
+ "@caupulican/pi-ai": "^0.80.40",
46
+ "@caupulican/pi-tui": "^0.80.40",
47
47
  "@silvia-odwyer/photon-node": "0.3.4",
48
48
  "chalk": "5.6.2",
49
49
  "cross-spawn": "7.0.6",