pi-advisor-flow 0.10.1-dev.1 → 0.11.0
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 +6 -1
- package/dist/index.js +7 -7
- package/package.json +2 -1
- package/src/tools/register-lifecycle.ts +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,17 @@ 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
|
-
##
|
|
7
|
+
## 0.11.0 - 2026-10-03
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
11
|
- Native Pi Codemode composition for `ask_advisor`: scripts receive structured advice, IDs, normalized usage, and existing skip metadata, while interactive responses remain unchanged. Documented deterministic-check composition and explicit draft disclosure limits.
|
|
12
12
|
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Advisor invocation guidelines no longer replace the whole system prompt, so prompt sections from other extensions, such as the list of MCP servers, still reach the model.
|
|
16
|
+
- Braces Vulnerability patched (CVE-2026-93687)
|
|
17
|
+
|
|
13
18
|
## 0.10.0 - 2026-10-02
|
|
14
19
|
|
|
15
20
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -9025,7 +9025,9 @@ var registerToolLifecycle = ({
|
|
|
9025
9025
|
ctx.ui.setStatus("advisor-usage", undefined);
|
|
9026
9026
|
}
|
|
9027
9027
|
});
|
|
9028
|
-
pi.on("before_agent_start", (
|
|
9028
|
+
pi.on("before_agent_start", (event, ctx) => {
|
|
9029
|
+
const { sections } = event.systemPromptOptions;
|
|
9030
|
+
delete sections.advisor_invocation_settings;
|
|
9029
9031
|
if (!pi.getActiveTools().includes("ask_advisor")) {
|
|
9030
9032
|
return;
|
|
9031
9033
|
}
|
|
@@ -9039,13 +9041,11 @@ var registerToolLifecycle = ({
|
|
|
9039
9041
|
guidelines.push(`Advisor calls remaining this session: ${budget}.
|
|
9040
9042
|
Reserve calls for material decisions, repeated failures, or final review.`);
|
|
9041
9043
|
}
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
Advisor invocation settings:
|
|
9044
|
+
if (guidelines.length > 0) {
|
|
9045
|
+
sections.advisor_invocation_settings = `Advisor invocation settings:
|
|
9046
9046
|
${guidelines.map((rule) => `- ${rule}`).join(`
|
|
9047
|
-
`)}
|
|
9048
|
-
}
|
|
9047
|
+
`)}`;
|
|
9048
|
+
}
|
|
9049
9049
|
});
|
|
9050
9050
|
pi.on("input", () => {
|
|
9051
9051
|
session.clearFollowUps();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-advisor-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Advanced Executor/Advisor flow for Pi, fully configurable and extendable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"advisor",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
"overrides": {
|
|
95
95
|
"brace-expansion": "5.0.12",
|
|
96
|
+
"braces": "github:micromatch/braces#d0d575e55e74a4e0218e5248fafb79efc3e54ebb",
|
|
96
97
|
"is-unicode-supported": "npm:@socketregistry/is-unicode-supported@1.0.5",
|
|
97
98
|
"safe-buffer": "npm:@socketregistry/safe-buffer@1.0.9",
|
|
98
99
|
"undici": "8.11.2"
|
|
@@ -71,7 +71,9 @@ export const registerToolLifecycle = ({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
pi.on("before_agent_start", (
|
|
74
|
+
pi.on("before_agent_start", (event, ctx) => {
|
|
75
|
+
const { sections } = event.systemPromptOptions;
|
|
76
|
+
delete sections.advisor_invocation_settings;
|
|
75
77
|
if (!pi.getActiveTools().includes("ask_advisor")) {
|
|
76
78
|
return;
|
|
77
79
|
}
|
|
@@ -88,11 +90,9 @@ export const registerToolLifecycle = ({
|
|
|
88
90
|
`Advisor calls remaining this session: ${budget}.\nReserve calls for material decisions, repeated failures, or final review.`
|
|
89
91
|
);
|
|
90
92
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
: undefined;
|
|
93
|
+
if (guidelines.length > 0) {
|
|
94
|
+
sections.advisor_invocation_settings = `Advisor invocation settings:\n${guidelines.map((rule) => `- ${rule}`).join("\n")}`;
|
|
95
|
+
}
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
pi.on("input", () => {
|