@hk_net/pi-advisor 0.1.10 → 0.1.11
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 +10 -0
- package/README.md +1 -1
- package/advisor.ts +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.11 - 2026-08-29
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Require Pi 0.84.4 or newer; this is the development, type-compatibility, and test baseline.
|
|
8
|
+
|
|
9
|
+
### Compatibility
|
|
10
|
+
|
|
11
|
+
- Use Pi 0.84.4's non-triggering custom-message contract for display advisor feedback; Pi safely queues it during active tool runs, avoiding invalid provider message histories on replay.
|
|
12
|
+
|
|
3
13
|
## 0.1.10 - 2026-08-27
|
|
4
14
|
|
|
5
15
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pi-advisor
|
|
2
2
|
|
|
3
|
-
A [Pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) extension for Pi 0.84.
|
|
3
|
+
A [Pi](https://www.npmjs.com/package/@earendil-works/pi-coding-agent) extension for Pi 0.84.4 or newer that offers a
|
|
4
4
|
parameterless `advisor` tool — inspired by Claude Code's advisor, but expanded with additional
|
|
5
5
|
nudges and a manual review procedure. The regular model calls `advisor` to get a second opinion
|
|
6
6
|
from an explicitly configured **stronger reviewer model** that sees the *entire* conversation transcript. Beyond the
|
package/advisor.ts
CHANGED
|
@@ -184,6 +184,11 @@ export function resolveAdviseMode(args: string | undefined, isIdle: boolean): Ad
|
|
|
184
184
|
return ADVISE_MODES.includes(explicitMode) ? (explicitMode as AdviseMode) : undefined;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
/** Queue non-triggering display feedback without immediately starting or steering an agent turn. */
|
|
188
|
+
export function showAdvisorFeedback(pi: Pick<ExtensionAPI, "sendMessage">, text: string): void {
|
|
189
|
+
pi.sendMessage({ customType: "advisor", content: text, display: true }, { triggerTurn: false });
|
|
190
|
+
}
|
|
191
|
+
|
|
187
192
|
const ADVISOR_SYSTEM_PROMPT = `You are a stronger reviewer model acting as an advisor to another AI coding agent.
|
|
188
193
|
|
|
189
194
|
You are given that agent's FULL working transcript for the current task: the user's
|
|
@@ -958,7 +963,7 @@ export default function advisorExtension(pi: ExtensionAPI) {
|
|
|
958
963
|
}
|
|
959
964
|
|
|
960
965
|
if (mode === "show") {
|
|
961
|
-
pi
|
|
966
|
+
showAdvisorFeedback(pi, text);
|
|
962
967
|
return;
|
|
963
968
|
}
|
|
964
969
|
|