@maxiaochao/pi-worktree 0.3.0 → 0.3.2

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-10-09 - v0.3.2
4
+
5
+ - continue Agent tasks automatically after switching into a worktree
6
+
7
+ ## 2026-10-09 - v0.3.1
8
+
9
+ - show a persistent in-conversation confirmation after switching worktrees
10
+
3
11
  ## 2026-10-09 - v0.3.0
4
12
 
5
13
  - automatically move Agent conversations into prepared worktrees without external Harness support
@@ -163,7 +163,12 @@ export default function worktreeExtension(pi: ExtensionAPI) {
163
163
  switched = await ctx.switchSession(targetSessionFile, {
164
164
  withSession: async (next) => {
165
165
  const dirtyNote = prepared.dirty ? "(已有未提交改动)" : "";
166
- next.ui.notify(`已切换到 ${prepared.branch}:${prepared.path}${dirtyNote}`, "info");
166
+ await next.sendMessage({
167
+ customType: "worktree-switch",
168
+ content: `✓ 已进入 worktree:${prepared.path}\nBranch: ${prepared.branch}${dirtyNote}\n\n在worktree继续任务`,
169
+ display: true,
170
+ details: prepared,
171
+ }, { triggerTurn: true, deliverAs: "followUp" });
167
172
  },
168
173
  });
169
174
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxiaochao/pi-worktree",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Git worktree CLI, Pi extension, and skill for isolated coding tasks.",
5
5
  "type": "module",
6
6
  "keywords": [