@cestoliv/wt 0.5.0-pr22.g51294ae → 0.5.0-pr22.gbb5b3fa
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/dist/{agent-4Q2P5HWS.js → agent-575QKWIG.js} +2 -2
- package/dist/{chunk-WAMKSPL7.js → chunk-Q6NNNYDJ.js} +1 -1
- package/dist/{chunk-4DSHNJMM.js → chunk-QHNOUX63.js} +3 -3
- package/dist/{chunk-AY3TDYLZ.js → chunk-YXA6CZ2L.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/{create-4TYTQHZO.js → create-DYM7QWI5.js} +2 -2
- package/dist/{list-6YSI5JQY.js → list-XRECVEUI.js} +2 -2
- package/dist/{prune-AO45YXDF.js → prune-LOO5KMBU.js} +2 -2
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
openConfiguredIde,
|
|
4
4
|
prepareWorktree,
|
|
5
5
|
promptExistingWorktree
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-Q6NNNYDJ.js";
|
|
7
|
+
import "./chunk-YXA6CZ2L.js";
|
|
8
8
|
import "./chunk-QVYSEMSL.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/agent.ts
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
runInteractiveList,
|
|
15
15
|
runRepoPicker,
|
|
16
16
|
runWizard
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YXA6CZ2L.js";
|
|
18
18
|
import {
|
|
19
19
|
createStore,
|
|
20
20
|
getEffectiveConfig,
|
|
@@ -96,11 +96,11 @@ async function runList(options = {}) {
|
|
|
96
96
|
if (!await runWizard(steps)) return;
|
|
97
97
|
if (state.pickedRepo === void 0 || state.branch === void 0)
|
|
98
98
|
return;
|
|
99
|
-
const { createWorktree } = await import("./create-
|
|
99
|
+
const { createWorktree } = await import("./create-DYM7QWI5.js");
|
|
100
100
|
await createWorktree(state.branch, { cwd: state.pickedRepo, store });
|
|
101
101
|
},
|
|
102
102
|
onAgent: async () => {
|
|
103
|
-
const { createAgentWorktree, VALID_MODES } = await import("./agent-
|
|
103
|
+
const { createAgentWorktree, VALID_MODES } = await import("./agent-575QKWIG.js");
|
|
104
104
|
const state = {
|
|
105
105
|
pickedRepo: repoRoot ?? void 0,
|
|
106
106
|
mode: "plan"
|
|
@@ -312,7 +312,7 @@ function buildListLayout(items, selectedIndex, query, mode, lastRefresh = null,
|
|
|
312
312
|
for (const item of groupItems) {
|
|
313
313
|
const start = body.length;
|
|
314
314
|
const cursor = i === selectedIndex ? pc.cyan("\u25B6") : " ";
|
|
315
|
-
const branchLabel = item.isCurrent ? pc.dim(`${item.branch} (current)`) : item.isMain ?
|
|
315
|
+
const branchLabel = item.isCurrent ? pc.dim(`${item.branch} (current)`) : item.isMain ? pc.dim(`${item.branch} (main)`) : pc.white(item.branch);
|
|
316
316
|
const pathLabel = pc.dim(shortenPath(item.path));
|
|
317
317
|
body.push(` ${cursor} ${branchLabel} ${pathLabel}`);
|
|
318
318
|
if (item.lastCommit) {
|
package/dist/cli.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// src/cli.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
var program = new Command();
|
|
6
|
-
program.name("wt").description("Git worktree manager").version("0.5.0-pr22.
|
|
7
|
-
const { runList } = await import("./list-
|
|
6
|
+
program.name("wt").description("Git worktree manager").version("0.5.0-pr22.gbb5b3fa").action(async () => {
|
|
7
|
+
const { runList } = await import("./list-XRECVEUI.js");
|
|
8
8
|
await runList();
|
|
9
9
|
});
|
|
10
10
|
program.command("create [branch]").description("Create a new worktree").action(async (branch) => {
|
|
11
|
-
const { createWorktree } = await import("./create-
|
|
11
|
+
const { createWorktree } = await import("./create-DYM7QWI5.js");
|
|
12
12
|
await createWorktree(branch);
|
|
13
13
|
});
|
|
14
14
|
program.command("agent <branch> <plan_prompt>").description("Create a worktree and auto-start an AI agent in Zed (macOS)").option(
|
|
@@ -17,14 +17,14 @@ program.command("agent <branch> <plan_prompt>").description("Create a worktree a
|
|
|
17
17
|
"plan"
|
|
18
18
|
).action(
|
|
19
19
|
async (branch, planPrompt, options) => {
|
|
20
|
-
const { createAgentWorktree } = await import("./agent-
|
|
20
|
+
const { createAgentWorktree } = await import("./agent-575QKWIG.js");
|
|
21
21
|
await createAgentWorktree(branch, planPrompt, { mode: options.mode });
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
program.command("prune").description(
|
|
25
25
|
"Remove worktrees whose branch has been merged into the base branch"
|
|
26
26
|
).action(async () => {
|
|
27
|
-
const { runPrune } = await import("./prune-
|
|
27
|
+
const { runPrune } = await import("./prune-LOO5KMBU.js");
|
|
28
28
|
await runPrune();
|
|
29
29
|
});
|
|
30
30
|
program.command("config").description("Open the config file in $EDITOR").option("--path", "Print the config file path and exit").action(async (options) => {
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
openConfiguredIde,
|
|
5
5
|
prepareWorktree,
|
|
6
6
|
promptExistingWorktree
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-Q6NNNYDJ.js";
|
|
8
|
+
import "./chunk-YXA6CZ2L.js";
|
|
9
9
|
import "./chunk-QVYSEMSL.js";
|
|
10
10
|
export {
|
|
11
11
|
createWorktree,
|
package/package.json
CHANGED