@shanepadgett/tau-agent 0.39.0 → 0.39.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.
|
@@ -11,6 +11,10 @@ Press `Ctrl+F` in the picker to fetch all configured remotes and refresh the
|
|
|
11
11
|
open list. Selecting a remote branch creates a local branch that tracks it.
|
|
12
12
|
Cancelling the picker does not switch branches.
|
|
13
13
|
|
|
14
|
+
After you pick a branch, Tau asks you to confirm. On confirm it switches, then
|
|
15
|
+
runs `git clean -fd` so untracked files and folders left from other branches
|
|
16
|
+
are removed. Ignored files such as `.env` stay.
|
|
17
|
+
|
|
14
18
|
Run `/branch new`, choose `feature`, `fix`, or `chore`, then enter a branch
|
|
15
19
|
name. The name is lowercased, punctuation and whitespace become hyphens, and
|
|
16
20
|
leading or trailing hyphens are removed.
|
|
@@ -18,5 +22,5 @@ leading or trailing hyphens are removed.
|
|
|
18
22
|
For example, selecting `fix` and entering `Fix login. Please` creates and
|
|
19
23
|
switches to `fix/fix-login-please`.
|
|
20
24
|
|
|
21
|
-
Cancelling either creation prompt creates nothing. Uncommitted changes
|
|
22
|
-
normal `git switch` behavior for both switching and creation.
|
|
25
|
+
Cancelling either creation prompt creates nothing. Uncommitted tracked changes
|
|
26
|
+
follow normal `git switch` behavior for both switching and creation.
|
|
@@ -99,8 +99,15 @@ async function chooseBranch(git: GitRunner, ctx: ExtensionCommandContext): Promi
|
|
|
99
99
|
});
|
|
100
100
|
if (!choice) return;
|
|
101
101
|
|
|
102
|
+
const confirmed = await ctx.ui.confirm(
|
|
103
|
+
`Switch to ${choice.name}?`,
|
|
104
|
+
"After switch, untracked files and folders will be removed. Ignored files like .env stay.",
|
|
105
|
+
);
|
|
106
|
+
if (!confirmed) return;
|
|
107
|
+
|
|
102
108
|
if (choice.kind === "local") await git.run(["switch", choice.name], { cwd: root });
|
|
103
109
|
else await git.run(["switch", "--track", "-c", choice.name, choice.upstream], { cwd: root });
|
|
110
|
+
await git.run(["clean", "-fd"], { cwd: root });
|
|
104
111
|
ctx.ui.notify(`Switched to ${choice.name}.`, "info");
|
|
105
112
|
}
|
|
106
113
|
|
|
@@ -24,7 +24,9 @@ Uses Pi's native compaction before a model turn when the current context reaches
|
|
|
24
24
|
|
|
25
25
|
## branch
|
|
26
26
|
|
|
27
|
-
Adds `/branch` to create and switch Git branches from the TUI.
|
|
27
|
+
Adds `/branch` to create and switch Git branches from the TUI. Switching
|
|
28
|
+
confirms first, then removes untracked files with `git clean -fd` while keeping
|
|
29
|
+
ignored files. Press `Ctrl+F` in the picker to fetch remotes and refresh.
|
|
28
30
|
|
|
29
31
|
## cache-diagnostics
|
|
30
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shanepadgett/tau-agent",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.1",
|
|
4
4
|
"description": "Tau is a custom agentic harness built with pi extensions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ast-grep/wasm": "0.45.1",
|
|
38
|
-
"@shanepadgett/tau-tui": "0.39.
|
|
38
|
+
"@shanepadgett/tau-tui": "0.39.1",
|
|
39
39
|
"@vscode/tree-sitter-wasm": "0.3.1",
|
|
40
40
|
"image-size": "2.0.2",
|
|
41
41
|
"smol-toml": "1.8.0",
|