pi-advisor-flow 0.14.5-dev.1 → 0.14.5-dev.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/CHANGELOG.md +5 -1
- package/README.md +1 -1
- package/dist/index.js +8 -6
- package/package.json +6 -6
- package/src/commands/activation.ts +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -6,9 +6,13 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Support Pi virtual models as Advisor models. Activation defers credentials to Pi's request-time router, which resolves auth for the selected physical model.
|
|
12
|
+
|
|
9
13
|
### Changed
|
|
10
14
|
|
|
11
|
-
- Updated development dependencies: Pi packages (`pi-ai`, `pi-coding-agent`, and `pi-tui`) to 1.5.
|
|
15
|
+
- Updated development dependencies: Pi packages (`pi-ai`, `pi-coding-agent`, and `pi-tui`) to 1.5.2, Oxlint and plugins to 1.93.0, Knip to 6.45.1, TypeBox to 1.4.6, and Ultracite to 8.2.0. Existing peer dependency ranges remain unchanged.
|
|
12
16
|
|
|
13
17
|
## 0.14.4 - 2026-11-03
|
|
14
18
|
|
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ Reload Pi after installing.
|
|
|
77
77
|
/advisor-stats # Show retained outcome adoption and validation stats
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
The Executor is whichever model your Pi session is using; `/advisor` never switches it unless you pin one with `executor=` or `/advisor-models`. On first use, or whenever the saved Advisor is unavailable, `/advisor` opens the available-model picker; it never silently chooses an unconfigured Advisor. If the active Executor and Advisor use the same provider/model, calls and automatic gates are skipped with a notice; switching either model resumes consultations. Turn off **Disable same-model Advisor** in `/advisor-settings` (or set `"advisorDisableSameModel": false` globally) if you intentionally want a higher-effort review from that same model. You can also enable the flow and select both models at once:
|
|
80
|
+
The Executor is whichever model your Pi session is using; `/advisor` never switches it unless you pin one with `executor=` or `/advisor-models`. On first use, or whenever the saved Advisor is unavailable, `/advisor` opens the available-model picker; it never silently chooses an unconfigured Advisor. Pi virtual models can be selected as Advisors; Pi routes each request to a physical model and resolves that model's credentials. If the active Executor and Advisor use the same provider/model, calls and automatic gates are skipped with a notice; switching either model resumes consultations. Turn off **Disable same-model Advisor** in `/advisor-settings` (or set `"advisorDisableSameModel": false` globally) if you intentionally want a higher-effort review from that same model. You can also enable the flow and select both models at once:
|
|
81
81
|
|
|
82
82
|
```text
|
|
83
83
|
/advisor executor=openai-codex/gpt-5.6-luna advisor=openai-codex/gpt-5.6-sol
|
package/dist/index.js
CHANGED
|
@@ -5525,12 +5525,14 @@ var resolveActivationModels = async (runtime, ctx, canContinue) => {
|
|
|
5525
5525
|
error: advisorRef ? `Advisor model not found: ${advisorRef}` : "Advisor model not configured"
|
|
5526
5526
|
};
|
|
5527
5527
|
}
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5528
|
+
if (advisor.api !== "pi-virtual") {
|
|
5529
|
+
const advisorAuth = await ctx.modelRegistry.getApiKeyAndHeaders(advisor);
|
|
5530
|
+
if (!canContinue()) {
|
|
5531
|
+
return { cancelled: true };
|
|
5532
|
+
}
|
|
5533
|
+
if (!(advisorAuth.ok && advisorAuth.apiKey)) {
|
|
5534
|
+
return { error: `No API key for Advisor ${advisorRef}` };
|
|
5535
|
+
}
|
|
5534
5536
|
}
|
|
5535
5537
|
if (executor && !isMarkedSubagent() && !await runtime.setExecutorModel(executor)) {
|
|
5536
5538
|
return { error: `No API key for Executor ${executorRef}` };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-advisor-flow",
|
|
3
|
-
"version": "0.14.5-dev.
|
|
3
|
+
"version": "0.14.5-dev.3",
|
|
4
4
|
"description": "Advanced Executor/Advisor flow for Pi, fully configurable and extendable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"advisor",
|
|
@@ -54,20 +54,20 @@
|
|
|
54
54
|
"format:check": "bun fmt --no-script --print-width 80 --trailing-comma es5 --sort-imports --bracket-same-line --ignore-pattern 'bench/tasks/**/traps.toml' --ignore-pattern 'dist/**' --check"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@earendil-works/pi-ai": "1.5.
|
|
58
|
-
"@earendil-works/pi-coding-agent": "1.5.
|
|
59
|
-
"@earendil-works/pi-tui": "1.5.
|
|
57
|
+
"@earendil-works/pi-ai": "1.5.2",
|
|
58
|
+
"@earendil-works/pi-coding-agent": "1.5.2",
|
|
59
|
+
"@earendil-works/pi-tui": "1.5.2",
|
|
60
60
|
"@oxlint/plugins": "1.93.0",
|
|
61
61
|
"@types/node": "^26.6.6",
|
|
62
62
|
"@typesafe-ai/sdk": "^0.7.0",
|
|
63
63
|
"bun-types": "1.4.4",
|
|
64
64
|
"husky": "^9.1.7",
|
|
65
|
-
"knip": "6.
|
|
65
|
+
"knip": "6.45.1",
|
|
66
66
|
"lint-staged": "^17.6.0",
|
|
67
67
|
"oxlint": "1.93.0",
|
|
68
68
|
"typebox": "1.4.6",
|
|
69
69
|
"typescript": "^7.0.2",
|
|
70
|
-
"ultracite": "8.
|
|
70
|
+
"ultracite": "8.2.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@earendil-works/pi-ai": "^1.0.0",
|
|
@@ -64,14 +64,16 @@ const resolveActivationModels = async (
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
if (advisor.api !== "pi-virtual") {
|
|
68
|
+
const advisorAuth = await ctx.modelRegistry.getApiKeyAndHeaders(advisor);
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
if (!canContinue()) {
|
|
71
|
+
return { cancelled: true };
|
|
72
|
+
}
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
if (!(advisorAuth.ok && advisorAuth.apiKey)) {
|
|
75
|
+
return { error: `No API key for Advisor ${advisorRef}` };
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
if (
|