@maxiaochao/pi-toolkit 0.10.13 → 0.10.14
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxiaochao/pi-toolkit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14",
|
|
4
4
|
"description": "Personal pi coding agent toolkit: scheduler, /btw, /cache_export, apply_patch, browser automation, and bundled theme/skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -165,10 +165,10 @@ export default function worktreeExtension(pi: ExtensionAPI) {
|
|
|
165
165
|
const dirtyNote = prepared.dirty ? "(已有未提交改动)" : "";
|
|
166
166
|
await next.sendMessage({
|
|
167
167
|
customType: "worktree-switch",
|
|
168
|
-
content: `✓ 已进入 worktree:${prepared.path}\nBranch: ${prepared.branch}${dirtyNote}
|
|
168
|
+
content: `✓ 已进入 worktree:${prepared.path}\nBranch: ${prepared.branch}${dirtyNote}\n\n在worktree继续任务`,
|
|
169
169
|
display: true,
|
|
170
170
|
details: prepared,
|
|
171
|
-
}, { triggerTurn:
|
|
171
|
+
}, { triggerTurn: true, deliverAs: "followUp" });
|
|
172
172
|
},
|
|
173
173
|
});
|
|
174
174
|
} catch (error) {
|
|
@@ -124,11 +124,11 @@ test("enter_worktree defers, forks the current session, and switches automatical
|
|
|
124
124
|
assert.deepEqual(f.sessionMessages, [{
|
|
125
125
|
message: {
|
|
126
126
|
customType: "worktree-switch",
|
|
127
|
-
content: `✓ 已进入 worktree:${f.worktree}\nBranch: feature
|
|
127
|
+
content: `✓ 已进入 worktree:${f.worktree}\nBranch: feature\n\n在worktree继续任务`,
|
|
128
128
|
display: true,
|
|
129
129
|
details: { status: "created", path: f.worktree, branch: "feature", dirty: false },
|
|
130
130
|
},
|
|
131
|
-
options: { triggerTurn:
|
|
131
|
+
options: { triggerTurn: true, deliverAs: "followUp" },
|
|
132
132
|
}]);
|
|
133
133
|
} finally {
|
|
134
134
|
f.cleanup();
|