@narumitw/pi-worktree 0.50.0 → 0.51.1
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/README.md +3 -3
- package/package.json +5 -5
- package/src/command.ts +2 -0
package/README.md
CHANGED
|
@@ -54,8 +54,8 @@ Choose one action:
|
|
|
54
54
|
|
|
55
55
|
- **Worktree status** — browse a local snapshot for every registered worktree without fetching remotes.
|
|
56
56
|
- **Add worktree** — enter a branch, optional start point, and optional path; review exact base provenance, confirm creation, and optionally switch.
|
|
57
|
-
- **Switch worktree** —
|
|
58
|
-
- **Remove worktree** —
|
|
57
|
+
- **Switch worktree** — search for another existing worktree by displayed path, branch, or HEAD and continue this Pi conversation there.
|
|
58
|
+
- **Remove worktree** — search for a linked worktree by displayed path, branch, or HEAD, then remove it without deleting its branch; ignored-only data is listed for explicit confirmation.
|
|
59
59
|
- **Prune stale metadata** — inspect Git's dry-run output, then optionally run the matching prune.
|
|
60
60
|
- **Configure worktree root** — set a machine-local default root or submit a blank value to restore `~/.worktrees`.
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ The standard root menu shows the registered count, current path, effective workt
|
|
|
63
63
|
and any settings warning. Escape closes it. `/worktree` intentionally does not accept text
|
|
64
64
|
subcommands or expose argument autocomplete. Every change is initiated and confirmed through TUI or
|
|
65
65
|
RPC dialogs; print and JSON modes reject the command observably. Operation-specific branch/path
|
|
66
|
-
inputs, worktree identity selectors, preflight previews, and destructive confirmations remain
|
|
66
|
+
inputs, searchable worktree identity selectors, preflight previews, and destructive confirmations remain
|
|
67
67
|
extension-owned because they carry Git safety and commit-aware revalidation.
|
|
68
68
|
|
|
69
69
|
The status browser runs only when selected and has no watcher, timer, persistent cache, or network
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-worktree",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.1",
|
|
4
4
|
"description": "Pi extension for safe interactive Git worktree management and workspace switching.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@earendil-works/pi-coding-agent": "*"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@biomejs/biome": "2.5.
|
|
39
|
-
"@earendil-works/pi-coding-agent": "0.84.
|
|
40
|
-
"@types/node": "26.
|
|
38
|
+
"@biomejs/biome": "2.5.8",
|
|
39
|
+
"@earendil-works/pi-coding-agent": "0.84.2",
|
|
40
|
+
"@types/node": "26.2.0",
|
|
41
41
|
"typescript": "7.0.2"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"directory": "packages/pi-worktree"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@narumitw/pi-tui-kit": "^0.
|
|
49
|
+
"@narumitw/pi-tui-kit": "^0.55.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/command.ts
CHANGED
|
@@ -768,9 +768,11 @@ async function selectWorktree(
|
|
|
768
768
|
worktrees: () => ({
|
|
769
769
|
kind: "choice",
|
|
770
770
|
title,
|
|
771
|
+
enableSearch: true,
|
|
771
772
|
items: records.map((record, index) => ({
|
|
772
773
|
id: record.path,
|
|
773
774
|
label: `${index + 1}. ${formatWorktree(record, currentPath)}`,
|
|
775
|
+
searchText: [record.path, record.branch, record.head].filter(Boolean).join(" "),
|
|
774
776
|
})),
|
|
775
777
|
action: "choose",
|
|
776
778
|
hint: "close",
|