@agent-plan/pi-adapter 0.2.10 → 0.2.12
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.d.ts.map +1 -1
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iCAAiC,CAAC;AA8yBtF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iCAAiC,CAAC;AA8yBtF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAkrF9D"}
|
package/dist/index.js
CHANGED
|
@@ -2259,15 +2259,13 @@ export default function planPiExtension(pi) {
|
|
|
2259
2259
|
ctx.ui.notify("Starting web server (LAN) …", "info");
|
|
2260
2260
|
await startServer(ctx, undefined, "lan").catch(() => { });
|
|
2261
2261
|
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
// Trigger the mandatory startup resume summary so the agent surfaces the
|
|
2265
|
-
// web UI address (and project state) immediately after loading.
|
|
2262
|
+
// Trigger the resume summary immediately. The web UI address is shown
|
|
2263
|
+
// at the END of that summary (not in a notify here) so it stays visible.
|
|
2266
2264
|
startupResumePromptPending = true;
|
|
2267
2265
|
startupResumeSummaryPending = true;
|
|
2268
2266
|
pi.sendMessage({
|
|
2269
2267
|
customType: "planner-resume-trigger",
|
|
2270
|
-
content: "
|
|
2268
|
+
content: "planner recap",
|
|
2271
2269
|
display: false,
|
|
2272
2270
|
}, {
|
|
2273
2271
|
triggerTurn: true,
|
|
@@ -3508,6 +3506,7 @@ export default function planPiExtension(pi) {
|
|
|
3508
3506
|
"",
|
|
3509
3507
|
"STARTUP RESUME PROTOCOL (first reply of the session — mandatory):",
|
|
3510
3508
|
"- You are resuming a planner-backed project session.",
|
|
3509
|
+
"- Respond DIRECTLY with the summary. Do NOT narrate (no 'The user wants me to...', 'Let me check...', 'I\'ll emit...'). Do NOT run any tools (bash/read/grep/ls) before responding. Output ONLY the summary text.",
|
|
3511
3510
|
"- FIRST give the user a concise summary of progress so far.",
|
|
3512
3511
|
`- Mention progress counts: ${doneFeaturesCount}/${plan.features.features.length} features done, ${activeFeaturesCount} active; ${donePhasesCount}/${plan.phases.length} phases done, ${activePhasesCount} active; ${doneTasksCount}/${totalTasksCount} tasks done.`,
|
|
3513
3512
|
currentFeature ? `- Mention current feature ONLY because it is actually active: ${currentFeature.id} — ${featureLabel(currentFeature)} (${currentFeature.status}).` : "- Mention that no current feature is active.",
|