@agent-plan/pi-adapter 0.2.19-next.3 → 0.2.19-next.4
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/dist/index.js +7 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3727,12 +3727,12 @@ export default function planPiExtension(pi) {
|
|
|
3727
3727
|
: hasActiveWork
|
|
3728
3728
|
? plan.features.features.find((feature) => feature.status === "in-progress") ?? null
|
|
3729
3729
|
: null;
|
|
3730
|
-
const nextActivity =
|
|
3731
|
-
? (resume.nextSteps
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
: "Review the current plan and choose the next task."
|
|
3730
|
+
const nextActivity = handoffs.length > 0
|
|
3731
|
+
? "Read the most recent phase handoff (handoff show <ref>), validate it against current plan ordering and dependencies, then pick the next task. (Legacy resume.json nextSteps may be stale — the handoff is authoritative.)"
|
|
3732
|
+
: hasActiveWork
|
|
3733
|
+
? (resume.nextSteps[0]
|
|
3734
|
+
?? (currentTask ? `Resume task ${currentTask.id} — ${taskLabel(currentTask)}` : currentPhase ? `Resume phase ${currentPhase.id} — ${phaseLabel(currentPhase)}` : "Resume the active work stream"))
|
|
3735
|
+
: "Review the current plan and choose the next task.";
|
|
3736
3736
|
const webServer = server;
|
|
3737
3737
|
const webLocalUrl = webServer?.localUrl ?? webServer?.url ?? "";
|
|
3738
3738
|
const webLanUrl = webServer?.lanUrl ?? "";
|
|
@@ -3819,7 +3819,7 @@ export default function planPiExtension(pi) {
|
|
|
3819
3819
|
resume.currentPhaseId ? ` current phase: ${resume.currentPhaseId}` : " current phase: (none)",
|
|
3820
3820
|
resume.inProgressTaskIds.length ? ` in-progress tasks: ${resume.inProgressTaskIds.join(", ")}` : " in-progress tasks: (none)",
|
|
3821
3821
|
resume.blockers.length ? ` blockers: ${resume.blockers.join("; ")}` : " blockers: (none)",
|
|
3822
|
-
resume.nextSteps.length ? ` next steps: ${resume.nextSteps.join("; ")}` : " next steps: (none)",
|
|
3822
|
+
resume.nextSteps.length ? ` next steps: ${resume.nextSteps.join("; ")}${handoffs.length > 0 ? " (⚠️ may be stale — handoff is authoritative)" : resume.nextStepsUpdatedAt ? ` (last updated ${resume.nextStepsUpdatedAt}, may be stale)` : ""}` : " next steps: (none)",
|
|
3823
3823
|
resume.lastSessionSummary ? ` last session: ${resume.lastSessionSummary}` : "",
|
|
3824
3824
|
"",
|
|
3825
3825
|
recentActivity.length ? "Recent activity (most recent first):" : "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-plan/pi-adapter",
|
|
3
|
-
"version": "0.2.19-next.
|
|
3
|
+
"version": "0.2.19-next.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Pi agent extension for Agent Plan — structured project planning in .planner/",
|
|
6
6
|
"keywords": [
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"typebox": "^1.1.24",
|
|
30
30
|
"zod": "^3.24.0",
|
|
31
|
-
"@agent-plan/core": "0.2.19-next.
|
|
32
|
-
"@agent-plan/server": "0.2.19-next.
|
|
31
|
+
"@agent-plan/core": "0.2.19-next.4",
|
|
32
|
+
"@agent-plan/server": "0.2.19-next.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@earendil-works/pi-coding-agent": "^0.74.0",
|