pi-advisor-flow 0.11.2-dev.2 → 0.11.3-dev.1

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
@@ -6,6 +6,16 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ### Changed
10
+
11
+ - Updated development dependencies: Pi packages to 1.0.4, Oxlint and plugins to 1.87.0, Knip to 6.40.0, Oxfmt to 0.72.0, TypeBox to 1.3.36, and Ultracite to 7.12.4.
12
+
13
+ ### Added
14
+
15
+ - Added OpenAI Decisions as an optional, explicitly selected Jev/Decisions screening provider, with live-verified setup and secure Platform API-key storage; the existing `auto` TypeSafe → OpenRouter behavior remains unchanged.
16
+
17
+ ## 0.11.2 - 2026-10-07
18
+
9
19
  ### Fixed
10
20
 
11
21
  - Avoided a startup crash when a host omits `systemPromptOptions` from `before_agent_start`.
package/README.md CHANGED
@@ -30,7 +30,7 @@ Keep implementation on a fast model and borrow frontier reasoning only when deci
30
30
  - **Optional persistent activation, Simple mode, session summaries, and Herdr integration.**
31
31
  - **Compact searchable `/advisor-settings`** that matches Pi's settings list and saves changes immediately.
32
32
  - **Experimental Advisor Scout** that uses the configured Executor model to curate conversation evidence before every Advisor call.
33
- - **Optional Jev consultation filter and proactive turn gate** (TypeSafe): one cheap typed screening call skips low-stakes, self-answerable consultations; a periodic turn check can proactively pull in the Advisor. Works directly with a TypeSafe key or by reusing an existing OpenRouter login; both features are off by default.
33
+ - **Optional Jev/Decisions consultation filter and proactive turn gate**: typed screening can skip low-stakes, self-answerable consultations or proactively pull in the Advisor. Choose TypeSafe, an existing OpenRouter login, or OpenAI Decisions (`gpt-6-luna`; `advisorJevTransport: "openai-decisions"`) in guided setup. The default `auto` order remains TypeSafe → OpenRouter; OpenAI Decisions requires an OpenAI Platform API key, not ChatGPT subscription OAuth. Guided setup stores entered keys securely. Both features are off by default.
34
34
 
35
35
  ## How it works
36
36
 
@@ -118,12 +118,14 @@ Gather and filter deterministic results before paying for Advisor reasoning. Nes
118
118
 
119
119
  Codemode receives `{ text, adviceId?, advisor?, followUp?, usage?, jev?, skipReason? }`. `text` preserves Advisor Markdown or the existing skip notice; `usage` is the same normalized snapshot shown in response details. Skipped calls have no new `adviceId`. Provider failures and blocked calls reject. Regular consultations never become loop-gate decisions. Interactive responses and usage accounting are unchanged.
120
120
 
121
- Draft text is explicit disclosure: it does **not** inherit the policies of the tools that produced it. Do not copy excluded tool output, secrets, or unconsented file bodies into `draft` or `question`. Jev may also receive the draft when screening is enabled. See [Privacy and data handling](docs/privacy.md).
121
+ Draft text is explicit disclosure: it does **not** inherit the policies of the tools that produced it. Do not copy excluded tool output, secrets, or unconsented file bodies into `draft` or `question`. The selected Jev/Decisions provider may also receive the draft when screening is enabled. See [Privacy and data handling](docs/privacy.md).
122
122
 
123
123
  ## Usage and accounting
124
124
 
125
125
  Advisor responses show provider-reported input, output, cache, and cost details when available. Successful `ask_advisor` calls also carry normalized usage into Pi's built-in `/cost` totals. Manual consultations and automatic gates keep their own session-local accounting instead, so nothing is double-counted. Missing or partial provider usage is shown as unavailable rather than fabricated as zero. `/advisor-settings` controls both the per-response details and the optional cumulative footer independently. Configure `advisorFallbackModel` or choose **Fallback Advisor model** in the model/settings pickers to retry one failed primary request; the final response is labelled with the model that answered, and both failures are shown together.
126
126
 
127
+ Jev/Decisions token usage stays in local session summaries. TypeSafe/OpenRouter costs use the configurable estimate; OpenAI Decisions token counts are recorded with cost shown as unavailable until endpoint-specific billing is confirmed.
128
+
127
129
  A follow-up reuses only the original post-redaction payload in memory. It expires after five minutes, is cleared by a new user turn or three subsequent non-Advisor tool results, and allows at most three chained follow-ups. Use a fresh consultation when it expires or when you need new repository context or attachments.
128
130
 
129
131
  `/advisor-stats` reads the local outcomes ledger and reports trigger counts, adoption, followed-versus-rejected validation pass rates, distinct pseudonymous advice hashes, and the retained time window. It never fabricates historical cost data; the ledger is capped at 1 MiB and rewritten on overflow.