@agent-plan/pi-adapter 0.2.11 → 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.
@@ -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,CA4qF9D"}
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,12 +2259,17 @@ 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
- const srv = server;
2263
- ctx.ui.notify(srv?.lanUrl ? `Planner loaded. Web UI: ${srv.localUrl} (LAN: ${srv.lanUrl})` : `Planner loaded. Web UI: ${srv?.url ?? "(not started)"}`, "info");
2264
- // The resume summary + web URL will appear automatically on the
2265
- // next user turn via before_agent_start (no forced trigger message).
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;
2266
+ pi.sendMessage({
2267
+ customType: "planner-resume-trigger",
2268
+ content: "planner recap",
2269
+ display: false,
2270
+ }, {
2271
+ triggerTurn: true,
2272
+ });
2268
2273
  return;
2269
2274
  }
2270
2275
  if (a === "stop" || a === "disable") {
@@ -3501,6 +3506,7 @@ export default function planPiExtension(pi) {
3501
3506
  "",
3502
3507
  "STARTUP RESUME PROTOCOL (first reply of the session — mandatory):",
3503
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.",
3504
3510
  "- FIRST give the user a concise summary of progress so far.",
3505
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.`,
3506
3512
  currentFeature ? `- Mention current feature ONLY because it is actually active: ${currentFeature.id} — ${featureLabel(currentFeature)} (${currentFeature.status}).` : "- Mention that no current feature is active.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-plan/pi-adapter",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "private": false,
5
5
  "description": "Pi agent extension for Agent Plan — structured project planning in .planner/",
6
6
  "keywords": [