@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.
@@ -3,8 +3,8 @@ import {
3
3
  openConfiguredIde,
4
4
  prepareWorktree,
5
5
  promptExistingWorktree
6
- } from "./chunk-AZACVCCB.js";
7
- import "./chunk-P7WRUHUZ.js";
6
+ } from "./chunk-BSMGKL27.js";
7
+ import "./chunk-XM4EABZV.js";
8
8
  import "./chunk-FNAMNRUH.js";
9
9
 
10
10
  // src/commands/agent.ts
@@ -13,7 +13,7 @@ import {
13
13
  runCommands,
14
14
  runRepoPicker,
15
15
  setUpstreamTracking
16
- } from "./chunk-P7WRUHUZ.js";
16
+ } from "./chunk-XM4EABZV.js";
17
17
  import {
18
18
  createStore,
19
19
  getEffectiveConfig
@@ -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.0-pr17.gdfeea81").action(async () => {
7
- const { runList } = await import("./list-R74HQ6IX.js");
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-FIUUAIUE.js");
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-WC6RLKIW.js");
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-AZACVCCB.js";
8
- import "./chunk-P7WRUHUZ.js";
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-P7WRUHUZ.js";
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-FIUUAIUE.js");
128
+ const { createWorktree } = await import("./create-WRMXQIGN.js");
129
129
  await createWorktree(void 0, { cwd: repoRoot, store });
130
130
  }
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cestoliv/wt",
3
- "version": "0.4.0-pr17.gdfeea81",
3
+ "version": "0.4.1",
4
4
  "description": "Fast, interactive TUI to browse, create, open, and delete git worktrees across repos.",
5
5
  "repository": {
6
6
  "type": "git",