@dreki-gg/pi-plan-mode 0.6.1 → 0.6.3

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @dreki-gg/pi-plan-mode
2
2
 
3
+ ## 0.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`da2522d`](https://github.com/dreki-gg/pi-extensions/commit/da2522d208461d1bf270cec2de7fa856b72c978e) Thanks [@jalbarrang](https://github.com/jalbarrang)! - fix(plan-mode, ask-mode): replace workspace:\* with actual version during prepack to fix npm install
8
+
9
+ The published packages contained `"workspace:*"` in their dependencies field, which npm doesn't understand (`EUNSUPPORTEDPROTOCOL`). The prepack script now rewrites `workspace:*` to the concrete version from command-sandbox's package.json before packing, and postpack restores it via `git checkout`.
10
+
11
+ ## 0.6.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`376864c`](https://github.com/dreki-gg/pi-extensions/commit/376864c37cefa47530363b47055311269c1724a8) Thanks [@jalbarrang](https://github.com/jalbarrang)! - fix(plan-mode): queue messages with deliverAs to prevent "agent already processing" errors
16
+
17
+ All `sendMessage` and `sendUserMessage` calls inside the `agent_end` handler now use `deliverAs: 'followUp'` so they are queued until the agent fully settles. Previously, "Follow up", "Refine Plan", and "Execute Plan" would fire while the agent was still in a processing state, causing silent failures or the error: "Agent is already processing. Specify streamingBehavior ('steer' or 'followUp') to queue the message."
18
+
3
19
  ## 0.6.1
4
20
 
5
21
  ### Patch Changes
@@ -517,7 +517,7 @@ Execute each step in order. You MUST include [DONE:n] in your response after com
517
517
  content: startPrompt,
518
518
  display: true,
519
519
  },
520
- { triggerTurn: true },
520
+ { triggerTurn: true, deliverAs: 'followUp' },
521
521
  );
522
522
  } else {
523
523
  // Fallback: ask executor to read the plan
@@ -527,7 +527,7 @@ Execute each step in order. You MUST include [DONE:n] in your response after com
527
527
  content: `Execute the plan in ${planMdPath}. Read it first, then execute step by step. Mark each step with [DONE:n] before moving to the next.`,
528
528
  display: true,
529
529
  },
530
- { triggerTurn: true },
530
+ { triggerTurn: true, deliverAs: 'followUp' },
531
531
  );
532
532
  }
533
533
  } else if (choice === 'Refine Plan') {
@@ -546,12 +546,12 @@ Execute each step in order. You MUST include [DONE:n] in your response after com
546
546
  After your review, update PLAN.md and START-PROMPT.md with any improvements.`,
547
547
  display: true,
548
548
  },
549
- { triggerTurn: true },
549
+ { triggerTurn: true, deliverAs: 'followUp' },
550
550
  );
551
551
  } else if (choice === 'Follow up') {
552
552
  const followUp = await ctx.ui.editor('Follow-up instructions for the planner:', '');
553
553
  if (followUp?.trim()) {
554
- pi.sendUserMessage(followUp.trim());
554
+ pi.sendUserMessage(followUp.trim(), { deliverAs: 'followUp' });
555
555
  }
556
556
  } else if (choice === 'Exit plan mode') {
557
557
  await exitPlanMode(ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreki-gg/pi-plan-mode",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Two-phase planning workflow for pi — plan with claude-opus-4-6:medium, execute with gpt-5.5:low, with .plans/ file-based handoff",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -40,7 +40,7 @@
40
40
  "@dreki-gg/pi-command-sandbox"
41
41
  ],
42
42
  "dependencies": {
43
- "@dreki-gg/pi-command-sandbox": "workspace:*"
43
+ "@dreki-gg/pi-command-sandbox": "0.1.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "24",