@paradow/ledge 0.30.0 → 0.32.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 (33) hide show
  1. package/dist/cli/{action-IL5A2O4K.js → action-HUKZUHQ7.js} +4 -4
  2. package/dist/cli/{attach-XFRWCGMD.js → attach-ILMHKRUI.js} +9 -8
  3. package/dist/cli/{bridge-KEDZGBEK.js → bridge-LFKUCKQP.js} +1 -1
  4. package/dist/cli/{chunk-U44NT4XJ.js → chunk-2BLPGRLO.js} +9 -3
  5. package/dist/cli/{chunk-GOBUJGB6.js → chunk-5FKHISVK.js} +2 -1
  6. package/dist/cli/{chunk-4JQHF3HM.js → chunk-5JNJFBKZ.js} +5 -5
  7. package/dist/cli/{chunk-JBYVS2F4.js → chunk-CXZETRPA.js} +1 -1
  8. package/dist/cli/{chunk-OOPOJK6Y.js → chunk-EGXOBQZI.js} +347 -150
  9. package/dist/cli/{chunk-XHC6EPZE.js → chunk-IE52REEI.js} +1 -1
  10. package/dist/cli/chunk-M7364G3S.js +6 -0
  11. package/dist/cli/{chunk-KESZUXUI.js → chunk-OPUIV6PR.js} +3 -3
  12. package/dist/cli/{chunk-RGYQFRG5.js → chunk-Q6RMLRPI.js} +2 -2
  13. package/dist/cli/{chunk-HH6LFLPR.js → chunk-QQVWFOPU.js} +2 -2
  14. package/dist/cli/{chunk-2GSAJOLJ.js → chunk-SUBKKCGA.js} +3 -3
  15. package/dist/cli/{chunk-D2EYVNJ6.js → chunk-U7J2AN3F.js} +3 -3
  16. package/dist/cli/{chunk-LHWJBSLO.js → chunk-VGAPV4DC.js} +2 -2
  17. package/dist/cli/{chunk-H563AKHN.js → chunk-YHZIHIGI.js} +2 -2
  18. package/dist/cli/{daemon-A54MACKQ.js → daemon-UJTMG3D4.js} +7 -7
  19. package/dist/cli/{decide-2HKZF4VI.js → decide-3B6LGVNN.js} +4 -4
  20. package/dist/cli/{handover-3PV3MDK3.js → handover-IX7EFDIP.js} +4 -4
  21. package/dist/cli/{hook-S5226MJF.js → hook-G7UA6MB6.js} +9 -9
  22. package/dist/cli/index.js +16 -16
  23. package/dist/cli/{launch-NGWPGU6E.js → launch-2GZIRF3A.js} +9 -8
  24. package/dist/cli/{send-NYKZRELC.js → send-55RWY4LZ.js} +4 -4
  25. package/dist/cli/{status-6USM7SJE.js → status-NT5ZUYM6.js} +2 -2
  26. package/dist/cli/{task-E5J6UT7S.js → task-GABQ4SKY.js} +4 -4
  27. package/dist/cli/{team-AP7A5VMP.js → team-IK2RYXW2.js} +6 -6
  28. package/dist/cli/{tui-EK7VC7YP.js → tui-AMW2XAH5.js} +9 -8
  29. package/dist/cli/{version-KORN5SQT.js → version-35XLTEMX.js} +1 -1
  30. package/dist/cli/{who-RA4QBVUA.js → who-4FRIGYVT.js} +3 -3
  31. package/dist/ledge-guide.md +268 -0
  32. package/package.json +1 -1
  33. package/dist/cli/chunk-P2X2M3TR.js +0 -6
@@ -8,10 +8,10 @@ import {
8
8
  resultLine,
9
9
  runClose,
10
10
  runOnClient
11
- } from "./chunk-KESZUXUI.js";
12
- import "./chunk-XHC6EPZE.js";
13
- import "./chunk-JBYVS2F4.js";
14
- import "./chunk-U44NT4XJ.js";
11
+ } from "./chunk-OPUIV6PR.js";
12
+ import "./chunk-IE52REEI.js";
13
+ import "./chunk-CXZETRPA.js";
14
+ import "./chunk-2BLPGRLO.js";
15
15
  import "./chunk-HOOHS3MX.js";
16
16
  import "./chunk-U67V476Y.js";
17
17
  export {
@@ -1,19 +1,20 @@
1
1
  import {
2
2
  attachEnv
3
- } from "./chunk-4JQHF3HM.js";
4
- import "./chunk-OOPOJK6Y.js";
3
+ } from "./chunk-5JNJFBKZ.js";
4
+ import "./chunk-EGXOBQZI.js";
5
5
  import "./chunk-OLLQBK6N.js";
6
- import "./chunk-HH6LFLPR.js";
7
- import "./chunk-LHWJBSLO.js";
8
- import "./chunk-GOBUJGB6.js";
9
- import "./chunk-XHC6EPZE.js";
6
+ import "./chunk-QQVWFOPU.js";
7
+ import "./chunk-VGAPV4DC.js";
8
+ import "./chunk-5FKHISVK.js";
9
+ import "./chunk-IE52REEI.js";
10
10
  import {
11
11
  connect
12
- } from "./chunk-JBYVS2F4.js";
12
+ } from "./chunk-CXZETRPA.js";
13
13
  import {
14
14
  PROTOCOL_PORT,
15
15
  backendOf
16
- } from "./chunk-U44NT4XJ.js";
16
+ } from "./chunk-2BLPGRLO.js";
17
+ import "./chunk-M7364G3S.js";
17
18
  import {
18
19
  realTmux
19
20
  } from "./chunk-NLL2EQJ2.js";
@@ -7,7 +7,7 @@ import {
7
7
  parseClientMessage,
8
8
  parseServerMessage,
9
9
  readDaemonToken
10
- } from "./chunk-U44NT4XJ.js";
10
+ } from "./chunk-2BLPGRLO.js";
11
11
  import "./chunk-HOOHS3MX.js";
12
12
  import "./chunk-U67V476Y.js";
13
13
 
@@ -807,7 +807,7 @@ var ACTIONS = [
807
807
  card: "generic",
808
808
  phone: "act",
809
809
  risk: "destructive",
810
- max: 1,
810
+ max: 8,
811
811
  cli: "ledge team dissolve <\xE9quipe>",
812
812
  summary: "dissoudre une \xE9quipe : elle dispara\xEEt, ses sessions restent ; irr\xE9versible",
813
813
  when: "seulement quand l'utilisateur demande explicitement de dissoudre une \xE9quipe pr\xE9cise",
@@ -968,7 +968,9 @@ var ChatRelaySchema = z13.object({
968
968
  text: z13.string().min(1),
969
969
  status: z13.enum(["queued", "sent"]).optional(),
970
970
  sentAt: z13.string().datetime().optional(),
971
- error: z13.string().optional()
971
+ error: z13.string().optional(),
972
+ /** Why it failed, as a code a front words itself (a RefusalCode, `ended`, or `failed` for the machinery); goes with `error`. */
973
+ code: z13.string().max(40).optional()
972
974
  });
973
975
  var ChatCloseSchema = z13.object({
974
976
  id: z13.string().min(1),
@@ -2033,7 +2035,9 @@ var PhoneChatRelaySchema = z26.object({
2033
2035
  text: z26.string().max(TOOL_TEXT_MAX),
2034
2036
  status: z26.enum(["queued", "sent"]).optional(),
2035
2037
  sentAt: z26.string().datetime().optional(),
2036
- failed: z26.literal(true).optional()
2038
+ failed: z26.literal(true).optional(),
2039
+ /** With `failed`: why, as the PC's code (never its text). */
2040
+ code: z26.string().max(40).optional()
2037
2041
  }).strict();
2038
2042
  var CloseHowSchema = z26.enum(["exit", "killed"]);
2039
2043
  var PhoneChatCloseSchema = z26.object({
@@ -2221,6 +2225,8 @@ var PhoneClientMessageSchema = z26.discriminatedUnion("type", [
2221
2225
  AttachmentPutSchema.pick({ type: true, requestId: true }).extend({ image: ImageUploadSchema.extend({ data: z26.string().min(1).max(b64Max(ATTACHMENT_MAX)) }) }),
2222
2226
  AttachmentGetSchema.pick({ type: true, requestId: true, attachment: true, preview: true }),
2223
2227
  z26.object({ type: z26.literal("chat.relay"), op: OperationIdSchema, qid: OperationIdSchema }),
2228
+ /** Takes the card's queued instruction back out of the queue, as the local `session.relay.cancel`. */
2229
+ z26.object({ type: z26.literal("chat.relay.cancel"), op: OperationIdSchema, qid: OperationIdSchema }),
2224
2230
  z26.object({ type: z26.literal("chat.launch"), op: OperationIdSchema, qid: OperationIdSchema, rows: CardRowsSchema.optional(), assertion: AssertionSchema.optional() }),
2225
2231
  z26.object({ type: z26.literal("chat.close"), op: OperationIdSchema, qid: OperationIdSchema, rows: CardRowsSchema.optional(), assertion: AssertionSchema.optional() }),
2226
2232
  /** The turn's team card (roles spec §3.8): launched like a session card, with the device check (purpose `launch`, the turn). */
@@ -2,7 +2,7 @@ import {
2
2
  ROLE_LABEL_MAX,
3
3
  ROLE_PROMPT_MAX,
4
4
  RoleSchema
5
- } from "./chunk-U44NT4XJ.js";
5
+ } from "./chunk-2BLPGRLO.js";
6
6
  import {
7
7
  log
8
8
  } from "./chunk-6IYPRUQG.js";
@@ -150,6 +150,7 @@ export {
150
150
  definitionDirs,
151
151
  definitionFiles,
152
152
  readSmall,
153
+ frontMatter,
153
154
  scalarValue,
154
155
  quoteScalar,
155
156
  definitionHash,
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  EFFORT_ARGS,
3
3
  MODEL_ARGS
4
- } from "./chunk-OOPOJK6Y.js";
4
+ } from "./chunk-EGXOBQZI.js";
5
5
  import {
6
6
  findRole
7
- } from "./chunk-GOBUJGB6.js";
7
+ } from "./chunk-5FKHISVK.js";
8
8
  import {
9
9
  exitFile,
10
10
  spawnSession
11
- } from "./chunk-XHC6EPZE.js";
11
+ } from "./chunk-IE52REEI.js";
12
12
  import {
13
13
  DaemonRefusedError,
14
14
  connect
15
- } from "./chunk-JBYVS2F4.js";
15
+ } from "./chunk-CXZETRPA.js";
16
16
  import {
17
17
  PROTOCOL_PORT,
18
18
  autonomyArgs
19
- } from "./chunk-U44NT4XJ.js";
19
+ } from "./chunk-2BLPGRLO.js";
20
20
  import {
21
21
  realTmux
22
22
  } from "./chunk-NLL2EQJ2.js";
@@ -4,7 +4,7 @@ import {
4
4
  SUMMARY_MAX,
5
5
  parseServerMessage,
6
6
  readDaemonToken
7
- } from "./chunk-U44NT4XJ.js";
7
+ } from "./chunk-2BLPGRLO.js";
8
8
 
9
9
  // src/client.ts
10
10
  import WebSocket from "ws";