@howaboua/pi-subagent-review 0.2.21 → 0.2.22
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 +4 -0
- package/package.json +5 -5
- package/src/messages.ts +5 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @howaboua/pi-subagent-review
|
|
2
2
|
|
|
3
|
+
## 0.2.22
|
|
4
|
+
|
|
5
|
+
- Removed redundant developer-message wording while preserving review approval rules and nested AGENTS.md guidance.
|
|
6
|
+
|
|
3
7
|
## 0.2.21
|
|
4
8
|
|
|
5
9
|
- Restore full extension prompt preparation when continuing into a new context window or starting review triage.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howaboua/pi-subagent-review",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"description": "Pi extension that adds /review via an isolated review subagent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@howaboua/pi-codex-conversion": ">=3.0.
|
|
43
|
+
"@howaboua/pi-codex-conversion": ">=3.0.35",
|
|
44
44
|
"@earendil-works/pi-ai": ">=0.84.3",
|
|
45
45
|
"@earendil-works/pi-coding-agent": ">=0.84.3",
|
|
46
46
|
"@earendil-works/pi-tui": ">=0.84.3"
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"format": "biome check --write ."
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@howaboua/pi-codex-conversion": "3.0.
|
|
63
|
-
"@earendil-works/pi-ai": "0.
|
|
64
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
62
|
+
"@howaboua/pi-codex-conversion": "3.0.35",
|
|
63
|
+
"@earendil-works/pi-ai": "0.86.1",
|
|
64
|
+
"@earendil-works/pi-coding-agent": "0.86.1",
|
|
65
65
|
"@types/node": "^26.2.0",
|
|
66
66
|
"typescript": "^7.0.2",
|
|
67
67
|
"@biomejs/biome": "^2.5.10"
|
package/src/messages.ts
CHANGED
|
@@ -19,21 +19,9 @@ export type ReviewDeveloperMessages = Partial<
|
|
|
19
19
|
const REALTIME_VOICE_PROMPT_CHANNEL =
|
|
20
20
|
"@howaboua/pi-codex-conversion/realtime-voice-prompt/v1";
|
|
21
21
|
const REVIEW_LOOP_PREFACE_MESSAGE = [
|
|
22
|
-
"
|
|
23
|
-
"",
|
|
24
|
-
"
|
|
25
|
-
"",
|
|
26
|
-
"When findings return, compare each one against the user’s actual request, prior conversation, accepted decisions, intentional tradeoffs from this session, and the current implementation.",
|
|
27
|
-
"",
|
|
28
|
-
"Default response: verify and triage, not code.",
|
|
29
|
-
"",
|
|
30
|
-
"For each verified finding, recommend one of:",
|
|
31
|
-
"",
|
|
32
|
-
"- address: concrete, in-scope, necessary for the current implementation",
|
|
33
|
-
"- defer: plausible but outside the current work",
|
|
34
|
-
"- skip: stylistic, speculative, preference-based, overengineered, or not useful",
|
|
35
|
-
"",
|
|
36
|
-
"After triage, obtain the user’s disposition. If a finding is not obviously required for the current implementation, recommend deferring or skipping it.",
|
|
22
|
+
"Review findings are advisory and may be wrong or lack session context. Verify each against the user's request, prior decisions, tradeoffs and current state.",
|
|
23
|
+
"Recommend address (necessary and in scope), defer (outside current work), or skip (stylistic, speculative or not useful).",
|
|
24
|
+
"Obtain the user's disposition before making changes.",
|
|
37
25
|
].join("\n");
|
|
38
26
|
|
|
39
27
|
const REVIEW_SUMMARY_STARTED_PROMPT =
|
|
@@ -41,9 +29,9 @@ const REVIEW_SUMMARY_STARTED_PROMPT =
|
|
|
41
29
|
const REVIEW_FINDINGS_READY_PROMPT =
|
|
42
30
|
"The isolated code review has finished, and its findings have been sent to the main agent for triage. Announce this briefly in your natural voice. When the main agent responds, continue with its substantive triage without repeating this status.";
|
|
43
31
|
const REVIEW_FINDINGS_FOLLOW_UP = [
|
|
44
|
-
"Treat the findings above as advisory and unverified. Read the cited files and trace the relevant paths before deciding whether each finding is true, necessary, and in scope. Compare them against the user’s request, prior decisions, and current
|
|
32
|
+
"Treat the findings above as advisory and unverified. Read the cited files and trace the relevant paths before deciding whether each finding is true, necessary, and in scope. Compare them against the user’s request, prior decisions, and current state. Do not merely summarize the reviewer output.",
|
|
45
33
|
"",
|
|
46
|
-
"Before
|
|
34
|
+
"Before making changes, get the user’s disposition on the verified findings using an available ask/questions tool, or a normal message if none is available. After dispositions are agreed, do not summarize them again: start the agreed work. If any remain ambiguous, complete the clear, simple, non-blocking agreed fixes first, then return to the ambiguous findings.",
|
|
47
35
|
].join("\n");
|
|
48
36
|
|
|
49
37
|
function announceReviewStatus(
|