pi-advisor-flow 0.14.5-dev.4 → 0.14.5-dev.5

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 CHANGED
@@ -8,7 +8,7 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
8
8
 
9
9
  ### Added
10
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.
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. Runtimes without `modelRegistry.streamSimple` now get an explicit upgrade/physical-model error instead of a misleading missing-key error.
12
12
 
13
13
  ### Changed
14
14
 
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. 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:
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. They require a Pi runtime with `modelRegistry.streamSimple`; on older runtimes, the request explains how to upgrade or select a physical Advisor model. 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
@@ -2055,6 +2055,9 @@ var resolveConfiguredModel = async (ctx, ref, label) => {
2055
2055
  streamSimple: streamSimple.bind(ctx.modelRegistry)
2056
2056
  };
2057
2057
  }
2058
+ if (model.api === "pi-virtual") {
2059
+ throw new Error(`Pi virtual model ${ref} requires modelRegistry.streamSimple, which is unavailable in this Pi runtime. Update Pi or select a physical ${label} model.`);
2060
+ }
2058
2061
  const auth = await ctx.modelRegistry.getApiKeyAndHeaders(model);
2059
2062
  if (!auth.ok) {
2060
2063
  throw new Error(auth.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-advisor-flow",
3
- "version": "0.14.5-dev.4",
3
+ "version": "0.14.5-dev.5",
4
4
  "description": "Advanced Executor/Advisor flow for Pi, fully configurable and extendable.",
5
5
  "keywords": [
6
6
  "advisor",
@@ -52,6 +52,12 @@ export const resolveConfiguredModel = async (
52
52
  };
53
53
  }
54
54
 
55
+ if (model.api === "pi-virtual") {
56
+ throw new Error(
57
+ `Pi virtual model ${ref} requires modelRegistry.streamSimple, which is unavailable in this Pi runtime. Update Pi or select a physical ${label} model.`
58
+ );
59
+ }
60
+
55
61
  const auth = await ctx.modelRegistry.getApiKeyAndHeaders(model);
56
62
 
57
63
  if (!auth.ok) {