@paradow/ledge 0.19.0 → 0.19.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.
@@ -0,0 +1,6 @@
1
+ // src/version.ts
2
+ var LEDGE_VERSION = true ? "0.19.1" : "0.0.0-dev";
3
+
4
+ export {
5
+ LEDGE_VERSION
6
+ };
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-HP3G2TYJ.js";
46
46
  import {
47
47
  LEDGE_VERSION
48
- } from "./chunk-4RD7OJ2J.js";
48
+ } from "./chunk-TVIAHOOD.js";
49
49
  import {
50
50
  SERVICE,
51
51
  inDaemonService,
package/dist/cli/index.js CHANGED
@@ -35,7 +35,7 @@ async function main(argv) {
35
35
  const [cmd, ...rest] = argv;
36
36
  switch (cmd) {
37
37
  case "daemon": {
38
- const { startDaemon } = await import("./daemon-66EUIZ3J.js");
38
+ const { startDaemon } = await import("./daemon-YHRAZSRS.js");
39
39
  await startDaemon();
40
40
  await new Promise(() => {
41
41
  });
@@ -43,7 +43,7 @@ async function main(argv) {
43
43
  }
44
44
  case "--version":
45
45
  case "version": {
46
- const { LEDGE_VERSION } = await import("./version-XSEI3V2C.js");
46
+ const { LEDGE_VERSION } = await import("./version-HB3S4IVG.js");
47
47
  console.log(LEDGE_VERSION);
48
48
  return 0;
49
49
  }
@@ -104,7 +104,7 @@ async function main(argv) {
104
104
  return r.code;
105
105
  }
106
106
  case "tui": {
107
- const { runTui } = await import("./tui-6JY7IS4D.js");
107
+ const { runTui } = await import("./tui-5XPPX4GR.js");
108
108
  return runTui(rest);
109
109
  }
110
110
  case "bridge": {
@@ -1797,7 +1797,7 @@ var fr = {
1797
1797
  question: (n, text) => `${n} a une question : ${text}`,
1798
1798
  title: (n) => n > 0 ? `ledge \xB7 ${n} t\u2019${plural(n, "attend", "attendent")}` : "ledge"
1799
1799
  },
1800
- cli: { notTty: "ledge tui: needs a terminal (stdin and stdout must be a TTY)", movedToTab: "ledge tui s\u2019ouvre dans l\u2019onglet Ledge." }
1800
+ cli: { notTty: "ledge tui: needs a terminal (stdin and stdout must be a TTY)", movedToTab: "ledge tui s\u2019ouvre dans l\u2019onglet Ledge.", loadingProfile: "Windows Terminal charge le profil Ledge\u2026" }
1801
1801
  };
1802
1802
 
1803
1803
  // src/tui/i18n/en.ts
@@ -2032,7 +2032,7 @@ var en = {
2032
2032
  question: (n, text) => `${n} has a question: ${text}`,
2033
2033
  title: (n) => n > 0 ? `ledge \xB7 ${n} waiting` : "ledge"
2034
2034
  },
2035
- cli: { notTty: "ledge tui: needs a terminal (stdin and stdout must be a TTY)", movedToTab: "ledge tui opens in the Ledge tab." }
2035
+ cli: { notTty: "ledge tui: needs a terminal (stdin and stdout must be a TTY)", movedToTab: "ledge tui opens in the Ledge tab.", loadingProfile: "Windows Terminal is loading the Ledge profile\u2026" }
2036
2036
  };
2037
2037
 
2038
2038
  // src/tui/i18n/lang.tsx
@@ -4322,16 +4322,17 @@ async function openInLedgeTab(o) {
4322
4322
  await writeIfChanged(join2(dir, "ledge.ico"), await readFile(o.icon ?? ICON));
4323
4323
  const iconWin = `${o.localAppData.win}\\Microsoft\\Windows Terminal\\Fragments\\${PROFILE}\\ledge.ico`;
4324
4324
  await writeIfChanged(join2(dir, "ledge.json"), fragment(commandline, iconWin));
4325
- const deadline = Date.now() + (o.waitMs ?? 3e3);
4326
- while (!await profileLoaded(o.localAppData.linux)) {
4325
+ const deadline = Date.now() + (o.waitMs ?? 15e3);
4326
+ for (let first = true; !await profileLoaded(o.localAppData.linux); first = false) {
4327
4327
  if (Date.now() > deadline) return false;
4328
+ if (first) o.onWait?.();
4328
4329
  await new Promise((r) => setTimeout(r, 100));
4329
4330
  }
4330
4331
  await o.wt(["-w", "0", "new-tab", "-p", PROFILE]);
4331
4332
  return true;
4332
4333
  }
4333
4334
  var run = promisify(execFile);
4334
- async function openTuiInLedgeTab(env) {
4335
+ async function openTuiInLedgeTab(env, onWait) {
4335
4336
  try {
4336
4337
  const cmd = "/mnt/c/Windows/System32/cmd.exe";
4337
4338
  const win = (await run(cmd, ["/d", "/c", "echo %LOCALAPPDATA%"], { cwd: "/mnt/c", timeout: 5e3 })).stdout.trim();
@@ -4344,6 +4345,7 @@ async function openTuiInLedgeTab(env) {
4344
4345
  script: await realpath(process.argv[1]),
4345
4346
  launcher: join2(ledgeDir(), "tui.sh"),
4346
4347
  ledgeHome: env.LEDGE_HOME,
4348
+ onWait,
4347
4349
  wt: (args) => new Promise((resolve, reject) => {
4348
4350
  const child = spawn2(join2(linux, "Microsoft", "WindowsApps", "wt.exe"), args, { cwd: "/mnt/c", stdio: "ignore", detached: true });
4349
4351
  child.once("error", reject);
@@ -4388,7 +4390,7 @@ async function runTui(args) {
4388
4390
  console.error(MESSAGES[lang].cli.notTty);
4389
4391
  return 2;
4390
4392
  }
4391
- if (movesToLedgeTab(process.env, parsed.here, process.argv[1] ?? "") && await openTuiInLedgeTab(process.env)) {
4393
+ if (movesToLedgeTab(process.env, parsed.here, process.argv[1] ?? "") && await openTuiInLedgeTab(process.env, () => console.log(MESSAGES[lang].cli.loadingProfile))) {
4392
4394
  console.log(MESSAGES[lang].cli.movedToTab);
4393
4395
  return 0;
4394
4396
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LEDGE_VERSION
3
- } from "./chunk-4RD7OJ2J.js";
3
+ } from "./chunk-TVIAHOOD.js";
4
4
  export {
5
5
  LEDGE_VERSION
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paradow/ledge",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Follow and answer your WSL agent sessions (Claude Code, Codex, Cursor Agent) from the Ledge island on Windows.",
5
5
  "type": "module",
6
6
  "bin": { "ledge": "dist/cli/index.js" },
@@ -1,6 +0,0 @@
1
- // src/version.ts
2
- var LEDGE_VERSION = true ? "0.19.0" : "0.0.0-dev";
3
-
4
- export {
5
- LEDGE_VERSION
6
- };