@agent-plan/pi-adapter 0.2.9 → 0.2.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -11
- 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;
|
|
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,CA4qF9D"}
|
package/dist/index.js
CHANGED
|
@@ -297,10 +297,11 @@ async function buildStartupResumeSummary(st) {
|
|
|
297
297
|
currentTask ? `- Focus task: ${currentTask.id} — ${taskLabel(currentTask)} (${currentTask.status}).` : "- Focus task: nessun task attivo in questo momento.",
|
|
298
298
|
handoff?.updatedAt ? `- Handoff letto da .planner/HANDOFF.md (aggiornato ${handoff.updatedAt}).` : "- Nessun handoff strutturato disponibile.",
|
|
299
299
|
!hasActiveWork && handoff?.updatedAt ? "- Nota: l'handoff è un suggerimento della sessione precedente; con 0 task/fasi attivi va validato contro stato e dipendenze correnti prima di riprendere un task specifico." : "",
|
|
300
|
-
webUrl ? `- Dashboard web: ${webUrl}` : "- Dashboard web: non attiva in questa sessione.",
|
|
301
300
|
`- Prossima attività consigliata: ${nextActivity}.`,
|
|
302
301
|
"",
|
|
303
302
|
"Vuoi che riprendiamo da qui?",
|
|
303
|
+
"",
|
|
304
|
+
webUrl ? `🌐 Web UI: ${webUrl}${lastKnownWebPort ? ` (port ${lastKnownWebPort})` : ""}` : "🌐 Web UI: not running — avvia con /planner load",
|
|
304
305
|
].filter(Boolean).join("\n");
|
|
305
306
|
}
|
|
306
307
|
return [
|
|
@@ -311,10 +312,11 @@ async function buildStartupResumeSummary(st) {
|
|
|
311
312
|
currentTask ? `- Task focus: ${currentTask.id} — ${taskLabel(currentTask)} (${currentTask.status}).` : "- Task focus: no active task right now.",
|
|
312
313
|
handoff?.updatedAt ? `- Handoff loaded from .planner/HANDOFF.md (updated ${handoff.updatedAt}).` : "- No structured handoff found.",
|
|
313
314
|
!hasActiveWork && handoff?.updatedAt ? "- Note: the handoff is only a previous-session hint; with 0 active tasks/phases it must be validated against current planner state and dependencies before resuming a specific task." : "",
|
|
314
|
-
webUrl ? `- Web dashboard: ${webUrl}` : "- Web dashboard: not active in this session.",
|
|
315
315
|
`- Recommended next activity: ${nextActivity}.`,
|
|
316
316
|
"",
|
|
317
317
|
"Do you want to resume from here?",
|
|
318
|
+
"",
|
|
319
|
+
webUrl ? `🌐 Web UI: ${webUrl}${lastKnownWebPort ? ` (port ${lastKnownWebPort})` : ""}` : "🌐 Web UI: not running — start with /planner load",
|
|
318
320
|
].filter(Boolean).join("\n");
|
|
319
321
|
}
|
|
320
322
|
async function buildHandoffMarkdown(st, reason, overrides) {
|
|
@@ -2259,17 +2261,10 @@ export default function planPiExtension(pi) {
|
|
|
2259
2261
|
}
|
|
2260
2262
|
const srv = server;
|
|
2261
2263
|
ctx.ui.notify(srv?.lanUrl ? `Planner loaded. Web UI: ${srv.localUrl} (LAN: ${srv.lanUrl})` : `Planner loaded. Web UI: ${srv?.url ?? "(not started)"}`, "info");
|
|
2262
|
-
//
|
|
2263
|
-
//
|
|
2264
|
+
// The resume summary + web URL will appear automatically on the
|
|
2265
|
+
// next user turn via before_agent_start (no forced trigger message).
|
|
2264
2266
|
startupResumePromptPending = true;
|
|
2265
2267
|
startupResumeSummaryPending = true;
|
|
2266
|
-
pi.sendMessage({
|
|
2267
|
-
customType: "planner-resume-trigger",
|
|
2268
|
-
content: "Emit the mandatory planner startup resume summary now (include the web UI address and port).",
|
|
2269
|
-
display: false,
|
|
2270
|
-
}, {
|
|
2271
|
-
triggerTurn: true,
|
|
2272
|
-
});
|
|
2273
2268
|
return;
|
|
2274
2269
|
}
|
|
2275
2270
|
if (a === "stop" || a === "disable") {
|