@howaboua/pi-subagent-review 0.2.20 → 0.2.21
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 +7 -0
- package/package.json +5 -5
- package/src/messages.ts +1 -13
- package/src/review-command.ts +1 -1
- package/src/tree-summary.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @howaboua/pi-subagent-review
|
|
2
2
|
|
|
3
|
+
## 0.2.21
|
|
4
|
+
|
|
5
|
+
- Restore full extension prompt preparation when continuing into a new context window or starting review triage.
|
|
6
|
+
|
|
7
|
+
- Keep tool instructions current through Pi's normal startup hooks without resetting the Notebook.
|
|
8
|
+
- Let active context management own review-loop navigation summaries.
|
|
9
|
+
|
|
3
10
|
## 0.2.20
|
|
4
11
|
|
|
5
12
|
- Preserve extension-owned messages while delivering true developer-role policy through compatible Pi Codex Responses adapters.
|
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.21",
|
|
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.31",
|
|
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.85.
|
|
64
|
-
"@earendil-works/pi-coding-agent": "0.85.
|
|
62
|
+
"@howaboua/pi-codex-conversion": "3.0.31",
|
|
63
|
+
"@earendil-works/pi-ai": "0.85.1",
|
|
64
|
+
"@earendil-works/pi-coding-agent": "0.85.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
|
@@ -12,7 +12,7 @@ import type { ReviewContext } from "./types.js";
|
|
|
12
12
|
export type ReviewDeveloperMessages = Partial<
|
|
13
13
|
Pick<
|
|
14
14
|
typeof import("@howaboua/pi-codex-conversion/developer-messages"),
|
|
15
|
-
"trySendCodexDeveloperCustomMessage"
|
|
15
|
+
"trySendCodexDeveloperCustomMessage"
|
|
16
16
|
>
|
|
17
17
|
>;
|
|
18
18
|
|
|
@@ -190,7 +190,6 @@ export function sendReviewFindings(
|
|
|
190
190
|
ctx: ExtensionCommandContext,
|
|
191
191
|
review: ReviewContext,
|
|
192
192
|
findings: string,
|
|
193
|
-
developerMessages?: ReviewDeveloperMessages,
|
|
194
193
|
): void {
|
|
195
194
|
const normalizedFindings = findings.trim();
|
|
196
195
|
const idle = ctx.isIdle();
|
|
@@ -208,17 +207,6 @@ export function sendReviewFindings(
|
|
|
208
207
|
normalizedFindings === "No actionable issues found."
|
|
209
208
|
)
|
|
210
209
|
return;
|
|
211
|
-
if (
|
|
212
|
-
typeof developerMessages?.trySendCodexDeveloperMessage === "function" &&
|
|
213
|
-
developerMessages.trySendCodexDeveloperMessage(
|
|
214
|
-
pi,
|
|
215
|
-
REVIEW_FINDINGS_FOLLOW_UP,
|
|
216
|
-
idle
|
|
217
|
-
? { triggerTurn: true }
|
|
218
|
-
: { triggerTurn: true, deliverAs: "followUp" },
|
|
219
|
-
)
|
|
220
|
-
)
|
|
221
|
-
return;
|
|
222
210
|
pi.sendUserMessage(
|
|
223
211
|
REVIEW_FINDINGS_FOLLOW_UP,
|
|
224
212
|
idle ? undefined : { deliverAs: "followUp" },
|
package/src/review-command.ts
CHANGED
|
@@ -190,7 +190,7 @@ export function registerReviewCommand(
|
|
|
190
190
|
details.errorMessage || details.stderr || finalOutput,
|
|
191
191
|
);
|
|
192
192
|
|
|
193
|
-
sendReviewFindings(pi, ctx, review, finalOutput
|
|
193
|
+
sendReviewFindings(pi, ctx, review, finalOutput);
|
|
194
194
|
announceReviewFindingsReady(pi);
|
|
195
195
|
ctx.ui.notify(
|
|
196
196
|
`Review findings sent back to the main agent from /${REVIEW_COMMAND}.`,
|
package/src/tree-summary.ts
CHANGED
|
@@ -117,6 +117,9 @@ export function registerTreeSummaryModel(
|
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
return async (ctx, targetId, options, config) => {
|
|
120
|
+
// Codex projects new_context only while context management is active.
|
|
121
|
+
if (pi.getActiveTools().includes("new_context"))
|
|
122
|
+
return ctx.navigateTree(targetId, options);
|
|
120
123
|
if (!config.enabled) return ctx.navigateTree(targetId, options);
|
|
121
124
|
if (pending) throw new Error("A tree summary is already in progress");
|
|
122
125
|
|