@cestoliv/wt 0.4.0-pr17.gdfeea81 → 0.4.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/dist/{agent-WC6RLKIW.js → agent-CIGIZGIS.js} +2 -2
- package/dist/{chunk-AZACVCCB.js → chunk-BSMGKL27.js} +1 -1
- package/dist/{chunk-P7WRUHUZ.js → chunk-XM4EABZV.js} +1 -0
- package/dist/cli.js +4 -4
- package/dist/{create-FIUUAIUE.js → create-WRMXQIGN.js} +2 -2
- package/dist/{list-R74HQ6IX.js → list-WC5GM3PI.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-BSMGKL27.js";
|
|
7
|
+
import "./chunk-XM4EABZV.js";
|
|
8
8
|
import "./chunk-FNAMNRUH.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/agent.ts
|
|
@@ -297,6 +297,7 @@ function clampScroll(offset, span, viewportHeight, bodyLength) {
|
|
|
297
297
|
function composeView(layout, offset, viewportHeight) {
|
|
298
298
|
const { header, body, footer } = layout;
|
|
299
299
|
const visible = body.slice(offset, offset + viewportHeight);
|
|
300
|
+
while (visible.length < viewportHeight) visible.push("");
|
|
300
301
|
const topSlot = offset > 0 ? pc.dim(" \u2191 more") : "";
|
|
301
302
|
const bottomSlot = offset + viewportHeight < body.length ? pc.dim(" \u2193 more") : "";
|
|
302
303
|
return [...header, topSlot, ...visible, bottomSlot, ...footer].join("\n");
|
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.4.
|
|
7
|
-
const { runList } = await import("./list-
|
|
6
|
+
program.name("wt").description("Git worktree manager").version("0.4.1").action(async () => {
|
|
7
|
+
const { runList } = await import("./list-WC5GM3PI.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-WRMXQIGN.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,7 +17,7 @@ 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-CIGIZGIS.js");
|
|
21
21
|
await createAgentWorktree(branch, planPrompt, { mode: options.mode });
|
|
22
22
|
}
|
|
23
23
|
);
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
openConfiguredIde,
|
|
5
5
|
prepareWorktree,
|
|
6
6
|
promptExistingWorktree
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-BSMGKL27.js";
|
|
8
|
+
import "./chunk-XM4EABZV.js";
|
|
9
9
|
import "./chunk-FNAMNRUH.js";
|
|
10
10
|
export {
|
|
11
11
|
createWorktree,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
removeWorktree,
|
|
10
10
|
runCommands,
|
|
11
11
|
runInteractiveList
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XM4EABZV.js";
|
|
13
13
|
import {
|
|
14
14
|
createStore,
|
|
15
15
|
getEffectiveConfig
|
|
@@ -125,7 +125,7 @@ ${dirty.map((f) => ` ${f}`).join("\n")}`
|
|
|
125
125
|
},
|
|
126
126
|
onCreate: async () => {
|
|
127
127
|
if (repoRoot) {
|
|
128
|
-
const { createWorktree } = await import("./create-
|
|
128
|
+
const { createWorktree } = await import("./create-WRMXQIGN.js");
|
|
129
129
|
await createWorktree(void 0, { cwd: repoRoot, store });
|
|
130
130
|
}
|
|
131
131
|
}
|