@paradow/ledge 0.22.1 → 0.24.0

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.24.0" : "0.0.0-dev";
3
+
4
+ export {
5
+ LEDGE_VERSION
6
+ };
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-ARB4BKZJ.js";
48
48
  import {
49
49
  LEDGE_VERSION
50
- } from "./chunk-ONFWK2WW.js";
50
+ } from "./chunk-YIQTFMY2.js";
51
51
  import {
52
52
  SERVICE,
53
53
  inDaemonService,
package/dist/cli/index.js CHANGED
@@ -37,7 +37,7 @@ async function main(argv) {
37
37
  const [cmd, ...rest] = argv;
38
38
  switch (cmd) {
39
39
  case "daemon": {
40
- const { startDaemon } = await import("./daemon-DLJCIC7L.js");
40
+ const { startDaemon } = await import("./daemon-TZXIXAFD.js");
41
41
  await startDaemon();
42
42
  await new Promise(() => {
43
43
  });
@@ -45,7 +45,7 @@ async function main(argv) {
45
45
  }
46
46
  case "--version":
47
47
  case "version": {
48
- const { LEDGE_VERSION } = await import("./version-ZPC6END5.js");
48
+ const { LEDGE_VERSION } = await import("./version-J7TNY2X6.js");
49
49
  console.log(LEDGE_VERSION);
50
50
  return 0;
51
51
  }
@@ -118,7 +118,7 @@ async function main(argv) {
118
118
  return r.code;
119
119
  }
120
120
  case "tui": {
121
- const { runTui } = await import("./tui-GL6Q3KOX.js");
121
+ const { runTui } = await import("./tui-YK6TXFYX.js");
122
122
  return runTui(rest);
123
123
  }
124
124
  case "bridge": {
@@ -3980,6 +3980,7 @@ function useOpenImage() {
3980
3980
  }
3981
3981
 
3982
3982
  // ../ui/src/thread/turns.ts
3983
+ var OPEN_TURNS = 3;
3983
3984
  var byTime = (a, b2) => a.at < b2.at ? -1 : a.at > b2.at ? 1 : 0;
3984
3985
  function withoutEcho(items, reply) {
3985
3986
  if (!reply) return items;
@@ -16028,10 +16029,10 @@ function threadView(items, o) {
16028
16029
  }
16029
16030
  };
16030
16031
  all2.forEach((turn, i) => {
16031
- const last = i === all2.length - 1;
16032
+ const recent = i >= all2.length - OPEN_TURNS;
16032
16033
  const first = turn.prompt?.id ?? turn.items[0]?.id ?? String(i);
16033
16034
  for (const it of turn.items) turnOf.set(it.id, first);
16034
- if (!last && !o.unfolded) {
16035
+ if (!recent && !o.unfolded) {
16035
16036
  push2(first, [cut(foldedLine(turn, o), o.width)]);
16036
16037
  return;
16037
16038
  }
@@ -16048,7 +16049,7 @@ function anchorLine(v, anchor) {
16048
16049
  }
16049
16050
  function threadImages(items, unfolded) {
16050
16051
  const all2 = turns(items);
16051
- return (unfolded ? all2 : all2.slice(-1)).flatMap((turn) => turn.items.flatMap((it) => it.kind === "prompt" ? it.images ?? [] : []));
16052
+ return (unfolded ? all2 : all2.slice(-OPEN_TURNS)).flatMap((turn) => turn.items.flatMap((it) => it.kind === "prompt" ? it.images ?? [] : []));
16052
16053
  }
16053
16054
 
16054
16055
  // src/tui/ui/ModelPicker.tsx
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LEDGE_VERSION
3
- } from "./chunk-ONFWK2WW.js";
3
+ } from "./chunk-YIQTFMY2.js";
4
4
  import "./chunk-U67V476Y.js";
5
5
  export {
6
6
  LEDGE_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paradow/ledge",
3
- "version": "0.22.1",
3
+ "version": "0.24.0",
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.22.1" : "0.0.0-dev";
3
-
4
- export {
5
- LEDGE_VERSION
6
- };