@paradow/ledge 0.5.4 → 0.6.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.6.0" : "0.0.0-dev";
3
+
4
+ export {
5
+ LEDGE_VERSION
6
+ };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  paths
3
- } from "./chunk-P2SHPHAN.js";
3
+ } from "./chunk-L6IGH4LF.js";
4
4
  import {
5
5
  pickName
6
- } from "./chunk-E6ZQOGY4.js";
6
+ } from "./chunk-AEV7ODMZ.js";
7
7
 
8
8
  // src/daemon/transcript.ts
9
9
  import { closeSync, fstatSync, openSync, readSync } from "fs";
@@ -17,7 +17,7 @@ function ledgeDir() {
17
17
  }
18
18
  function paths() {
19
19
  const dir = ledgeDir();
20
- return { dir, tmuxConf: join(dir, "tmux.conf"), journal: join(dir, "sessions.json"), log: join(dir, "daemon.log"), pid: join(dir, "daemon.pid"), history: join(dir, "history") };
20
+ return { dir, tmuxConf: join(dir, "tmux.conf"), journal: join(dir, "sessions.json"), log: join(dir, "daemon.log"), pid: join(dir, "daemon.pid"), history: join(dir, "history"), machines: join(dir, "machines.json"), projects: join(dir, "projects.json"), island: join(dir, "island.json") };
21
21
  }
22
22
  async function ensureLedgeDir() {
23
23
  const p = paths();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  run
3
- } from "./chunk-XZMLFV6H.js";
3
+ } from "./chunk-3TNPEAMR.js";
4
4
  import {
5
5
  ensureLedgeDir,
6
6
  paths
7
- } from "./chunk-P2SHPHAN.js";
7
+ } from "./chunk-L6IGH4LF.js";
8
8
 
9
9
  // src/cli/setup.ts
10
10
  import { readFile as readFile2, writeFile, mkdir, rename, realpath, rm, stat, lstat, readlink, symlink, unlink } from "fs/promises";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  exitFile,
3
3
  spawnSession
4
- } from "./chunk-U4RU6V35.js";
4
+ } from "./chunk-HYB7ZZN4.js";
5
5
  import {
6
6
  realTmux
7
- } from "./chunk-XZMLFV6H.js";
7
+ } from "./chunk-3TNPEAMR.js";
8
8
  import {
9
9
  ensureLedgeDir,
10
10
  log
11
- } from "./chunk-P2SHPHAN.js";
11
+ } from "./chunk-L6IGH4LF.js";
12
12
  import {
13
13
  connect
14
- } from "./chunk-IDGN7JGC.js";
14
+ } from "./chunk-Z4YH2DLP.js";
15
15
  import {
16
16
  PROTOCOL_PORT
17
- } from "./chunk-E6ZQOGY4.js";
17
+ } from "./chunk-AEV7ODMZ.js";
18
18
 
19
19
  // src/cli/launch.ts
20
20
  import { spawn } from "child_process";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  cleanTopic,
3
3
  sessionTitle
4
- } from "./chunk-E6ZQOGY4.js";
4
+ } from "./chunk-AEV7ODMZ.js";
5
5
 
6
6
  // src/daemon/state.ts
7
7
  var HOOK_PRIORITY_MS = 2e3;
@@ -119,7 +119,7 @@ function withoutReply(s) {
119
119
  return rest;
120
120
  }
121
121
  function samePending(a, b) {
122
- return a.kind === b.kind && a.text === b.text && a.tool === b.tool && a.source === b.source && JSON.stringify(a.options) === JSON.stringify(b.options) && JSON.stringify(a.optionDetails) === JSON.stringify(b.optionDetails);
122
+ return a.kind === b.kind && a.text === b.text && a.body === b.body && a.tool === b.tool && a.source === b.source && JSON.stringify(a.options) === JSON.stringify(b.options) && JSON.stringify(a.optionDetails) === JSON.stringify(b.optionDetails);
123
123
  }
124
124
  function endCursorHelpers(s, ev) {
125
125
  if (s.tool !== "cursor" || ev.source !== "hook" || ev.helperId || !s.helpers.some((h) => h.state === "working")) return s;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PROTOCOL_PORT,
3
3
  parseServerMessage
4
- } from "./chunk-E6ZQOGY4.js";
4
+ } from "./chunk-AEV7ODMZ.js";
5
5
 
6
6
  // src/client.ts
7
7
  import WebSocket from "ws";