@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.
- package/dist/cli/chunk-TVIAHOOD.js +6 -0
- package/dist/cli/{daemon-66EUIZ3J.js → daemon-YHRAZSRS.js} +1 -1
- package/dist/cli/index.js +3 -3
- package/dist/cli/{tui-6JY7IS4D.js → tui-5XPPX4GR.js} +8 -6
- package/dist/cli/{version-XSEI3V2C.js → version-HB3S4IVG.js} +1 -1
- package/package.json +1 -1
- package/dist/cli/chunk-4RD7OJ2J.js +0 -6
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-
|
|
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-
|
|
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-
|
|
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 ??
|
|
4326
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paradow/ledge",
|
|
3
|
-
"version": "0.19.
|
|
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" },
|