@ian-pascoe/pi-advisor 0.8.1 → 0.8.2
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/package.json +3 -3
- package/src/index.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ian-pascoe/pi-advisor",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Background review and attributed corrective advice for Pi agent sessions.",
|
|
6
6
|
"keywords": [
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"provenance": true
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ian-pascoe/pi-utils": "^0.7.
|
|
35
|
+
"@ian-pascoe/pi-utils": "^0.7.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@earendil-works/pi-agent-core": ">=1.1.0",
|
|
39
39
|
"@earendil-works/pi-ai": ">=1.1.0",
|
|
40
40
|
"@earendil-works/pi-coding-agent": ">=1.1.0",
|
|
41
41
|
"@earendil-works/pi-tui": ">=1.1.0",
|
|
42
|
-
"typebox": "
|
|
42
|
+
"typebox": ">=1"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=22.19.0"
|
package/src/index.ts
CHANGED
|
@@ -233,7 +233,10 @@ export default function advisor(pi: ExtensionAPI): void {
|
|
|
233
233
|
await refresh(ctx);
|
|
234
234
|
});
|
|
235
235
|
pi.on("model_select", () => observer?.modelChanged());
|
|
236
|
-
|
|
236
|
+
// Since Pi 1.2 a custom message's run, such as a corrective continuation, fires this too.
|
|
237
|
+
pi.on("before_agent_start", (event) => {
|
|
238
|
+
if (event.messageType !== "custom") observer?.beforeTask();
|
|
239
|
+
});
|
|
237
240
|
pi.on("agent_settled", () => observer?.settled());
|
|
238
241
|
pi.on("session_shutdown", async () => {
|
|
239
242
|
activeMenu?.close();
|