@paradow/ledge 0.17.0 → 0.18.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.
Files changed (38) hide show
  1. package/dist/cli/{attach-EYIX7FZN.js → attach-I6TTCGNV.js} +12 -7
  2. package/dist/cli/{bridge-6UHCD76N.js → bridge-APNFBPNE.js} +2 -2
  3. package/dist/cli/chunk-3EIRKAX7.js +165 -0
  4. package/dist/cli/chunk-3HCID6NW.js +145 -0
  5. package/dist/cli/{chunk-JQZHXVIZ.js → chunk-43D6NMYH.js} +1 -1
  6. package/dist/cli/{daemon-QEJLAIBT.js → chunk-7IQ6FV2F.js} +6044 -7227
  7. package/dist/cli/{chunk-ELLXOV4Q.js → chunk-7ZAA75HG.js} +1 -1
  8. package/dist/cli/{chunk-5ZCHFGCV.js → chunk-BVBX222F.js} +9 -7
  9. package/dist/cli/{chunk-OVJL2QTN.js → chunk-FQZ3IX6E.js} +2 -2
  10. package/dist/cli/chunk-G6K2NSQS.js +6 -0
  11. package/dist/cli/{chunk-VVK4I6B5.js → chunk-GXFU4XAX.js} +1 -1
  12. package/dist/cli/chunk-HP3G2TYJ.js +1772 -0
  13. package/dist/cli/{chunk-NC5YAEJB.js → chunk-KKNE7BFZ.js} +55 -3
  14. package/dist/cli/{chunk-36KJUV62.js → chunk-QQZALYNI.js} +38 -12
  15. package/dist/cli/{chunk-VE4LGNXX.js → chunk-TRTS24PF.js} +23 -5
  16. package/dist/cli/{chunk-Q7YNLP66.js → chunk-WCS24ICX.js} +5 -3
  17. package/dist/cli/{chunk-LAUNHDTX.js → chunk-WJ6YMZTT.js} +2 -2
  18. package/dist/cli/chunk-Y5DJ5INP.js +60 -0
  19. package/dist/cli/{chunk-AQ25HFBP.js → chunk-ZUYOA55W.js} +5 -4
  20. package/dist/cli/daemon-SKC7VKYQ.js +2240 -0
  21. package/dist/cli/handover-UXISKYPS.js +16 -0
  22. package/dist/cli/{hook-AE5HC6AS.js → hook-5UAARBWU.js} +86 -25
  23. package/dist/cli/index.js +29 -15
  24. package/dist/cli/launch-T5FJ42XS.js +34 -0
  25. package/dist/cli/{send-2OZ3YZRV.js → send-NLVR6PL2.js} +5 -5
  26. package/dist/cli/{setup-2VM4GCDJ.js → setup-EEIXRAMU.js} +4 -4
  27. package/dist/cli/{status-3VJAO6UL.js → status-2OCYHOWZ.js} +3 -3
  28. package/dist/cli/{task-PMKNYP6M.js → task-AOOWHPMN.js} +5 -5
  29. package/dist/cli/team-TVNSVYWW.js +101 -0
  30. package/dist/cli/{tui-DWA2EDC2.js → tui-MQLMUUJB.js} +866 -113
  31. package/dist/cli/{uninstall-AKUWE33D.js → uninstall-UUN7LIIT.js} +4 -4
  32. package/dist/cli/{version-WOGCIZY3.js → version-AEN2CRT2.js} +1 -1
  33. package/dist/cli/who-52MENZTT.js +11 -0
  34. package/package.json +1 -1
  35. package/dist/cli/chunk-QD27W6W5.js +0 -1474
  36. package/dist/cli/chunk-V2H7UD2N.js +0 -6
  37. package/dist/cli/launch-B4G5OFBV.js +0 -27
  38. package/dist/cli/who-37TNDYVA.js +0 -11
@@ -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"), mail: join(dir, "mail.json"), tasks: join(dir, "tasks.json"), machines: join(dir, "machines.json"), projects: join(dir, "projects.json"), island: join(dir, "island.json"), token: join(dir, "token"), mobile: join(dir, "mobile.json"), mobileSession: join(dir, "mobile-session.json"), mobileKey: join(dir, "mobile-key"), devices: join(dir, "devices.json"), revocations: join(dir, "revocations.json") };
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"), mail: join(dir, "mail.json"), tasks: join(dir, "tasks.json"), teams: join(dir, "teams-live.json"), machines: join(dir, "machines.json"), projects: join(dir, "projects.json"), island: join(dir, "island.json"), token: join(dir, "token"), mobile: join(dir, "mobile.json"), mobileSession: join(dir, "mobile-session.json"), mobileKey: join(dir, "mobile-key"), devices: join(dir, "devices.json"), revocations: join(dir, "revocations.json") };
21
21
  }
22
22
  async function ensureLedgeDir() {
23
23
  const p = paths();
@@ -1,23 +1,24 @@
1
- import {
2
- connect
3
- } from "./chunk-VVK4I6B5.js";
4
1
  import {
5
2
  CODEX_HOOK_VAR
6
- } from "./chunk-VE4LGNXX.js";
3
+ } from "./chunk-TRTS24PF.js";
4
+ import {
5
+ connect
6
+ } from "./chunk-GXFU4XAX.js";
7
7
  import {
8
+ LEDGE_GIVER,
8
9
  TASK_TEXT_MAX,
9
10
  TASK_TITLE_MAX
10
- } from "./chunk-QD27W6W5.js";
11
+ } from "./chunk-HP3G2TYJ.js";
11
12
 
12
13
  // src/cli/task.ts
13
14
  import { randomUUID } from "crypto";
14
- var TASK_USAGE = `ledge task give <nom> "<titre>" ["<d\xE9tail>"] confier un travail \xE0 une session
15
+ var TASK_USAGE = `ledge task give <nom|@r\xF4le> "<titre>" ["<d\xE9tail>"] confier un travail \xE0 une session (@r\xF4le : dans ton \xE9quipe)
15
16
  ledge task list [--all] tes t\xE2ches (tenues ou confi\xE9es), ouvertes ; --all : closes aussi
16
17
  ledge task show <id> une t\xE2che, son d\xE9tail et son historique
17
18
  ledge task take <id> la prendre
18
19
  ledge task done <id> ["<r\xE9sultat>"] la terminer (la session qui l'a confi\xE9e est pr\xE9venue)
19
20
  ledge task refuse <id> "<raison>" la refuser, ou l'annuler si tu l'as confi\xE9e
20
- ledge task pass <id> <nom> ["<note>"] la passer \xE0 une autre session`;
21
+ ledge task pass <id> <nom|@r\xF4le> ["<note>"] la passer \xE0 une autre session`;
21
22
  var TASK_MS = 4e3;
22
23
  var ID = /^t[0-9a-f]{6}$/;
23
24
  function taskArgs(args) {
@@ -58,6 +59,7 @@ function formatTask(t) {
58
59
  async function taskOnClient(client, args, by, ms) {
59
60
  const op = taskArgs(args);
60
61
  if (!op) return { line: TASK_USAGE, code: 1 };
62
+ if (by === LEDGE_GIVER) return { line: "refus\xE9 : seul Ledge confie une t\xE2che en son nom", code: 1 };
61
63
  try {
62
64
  client.send({ type: "task.cmd", rid: randomUUID(), by, ...op });
63
65
  const r = await client.next("task.result", ms);
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  run
3
- } from "./chunk-LAUNHDTX.js";
3
+ } from "./chunk-WJ6YMZTT.js";
4
4
  import {
5
5
  ensureLedgeDir,
6
6
  paths
7
- } from "./chunk-ELLXOV4Q.js";
7
+ } from "./chunk-7ZAA75HG.js";
8
8
 
9
9
  // src/cli/setup.ts
10
10
  import { readFile as readFile2, writeFile, mkdir, rename, realpath, rm, stat, lstat, readlink } from "fs/promises";
@@ -0,0 +1,6 @@
1
+ // src/version.ts
2
+ var LEDGE_VERSION = true ? "0.18.0" : "0.0.0-dev";
3
+
4
+ export {
5
+ LEDGE_VERSION
6
+ };
@@ -4,7 +4,7 @@ import {
4
4
  SUMMARY_MAX,
5
5
  parseServerMessage,
6
6
  readDaemonToken
7
- } from "./chunk-QD27W6W5.js";
7
+ } from "./chunk-HP3G2TYJ.js";
8
8
 
9
9
  // src/client.ts
10
10
  import WebSocket from "ws";