pi-advisor-flow 0.11.1-dev.1 → 0.11.2-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
@@ -4,6 +4,19 @@ All notable changes to this project are documented here.
4
4
 
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0/).
6
6
 
7
+ ## Unreleased
8
+
9
+ ### Fixed
10
+
11
+ - Avoided a startup crash when a host omits `systemPromptOptions` from `before_agent_start`.
12
+
13
+ ## 0.11.1 - 2026-10-04
14
+
15
+ ### Changed
16
+
17
+ - Updated CI and local validation to Bun 1.4.2.
18
+ - Updated the Pi development toolchain to the 1.0.2 packages (`pi-ai`, `pi-coding-agent`, `pi-tui`); the supported peer range stays `^1.0.0`.
19
+
7
20
  ## 0.11.0 - 2026-10-03
8
21
 
9
22
  ### Added
package/dist/index.js CHANGED
@@ -9058,7 +9058,10 @@ var registerToolLifecycle = ({
9058
9058
  }
9059
9059
  });
9060
9060
  pi.on("before_agent_start", (event, ctx) => {
9061
- const { sections } = event.systemPromptOptions;
9061
+ const sections = event.systemPromptOptions?.sections;
9062
+ if (!sections) {
9063
+ return;
9064
+ }
9062
9065
  delete sections.advisor_invocation_settings;
9063
9066
  if (!pi.getActiveTools().includes("ask_advisor")) {
9064
9067
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-advisor-flow",
3
- "version": "0.11.1-dev.1",
3
+ "version": "0.11.2-dev.1",
4
4
  "description": "Advanced Executor/Advisor flow for Pi, fully configurable and extendable.",
5
5
  "keywords": [
6
6
  "advisor",
@@ -51,9 +51,9 @@
51
51
  "format:check": "oxfmt --check"
52
52
  },
53
53
  "devDependencies": {
54
- "@earendil-works/pi-ai": "1.0.0",
55
- "@earendil-works/pi-coding-agent": "1.0.0",
56
- "@earendil-works/pi-tui": "1.0.0",
54
+ "@earendil-works/pi-ai": "1.0.2",
55
+ "@earendil-works/pi-coding-agent": "1.0.2",
56
+ "@earendil-works/pi-tui": "1.0.2",
57
57
  "@oxlint/plugins": "1.86.0",
58
58
  "@types/node": "^26.6.4",
59
59
  "@typesafe-ai/sdk": "^0.6.0",
@@ -72,7 +72,11 @@ export const registerToolLifecycle = ({
72
72
  });
73
73
 
74
74
  pi.on("before_agent_start", (event, ctx) => {
75
- const { sections } = event.systemPromptOptions;
75
+ // Hosts may omit systemPromptOptions; don't crash the extension on it.
76
+ const sections = event.systemPromptOptions?.sections;
77
+ if (!sections) {
78
+ return;
79
+ }
76
80
  delete sections.advisor_invocation_settings;
77
81
  if (!pi.getActiveTools().includes("ask_advisor")) {
78
82
  return;