@fnndsc/menu 0.8.0 → 0.10.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.
- package/dist/ansi/ansi.d.ts +48 -0
- package/dist/ansi/ansi.js +241 -0
- package/dist/ansi/ansi.js.map +1 -0
- package/dist/dag.d.ts +147 -0
- package/dist/dag.js +25 -0
- package/dist/dag.js.map +1 -1
- package/dist/dicom.d.ts +30 -0
- package/dist/dicom.js +18 -0
- package/dist/dicom.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/logo/brain.d.ts +31 -0
- package/dist/logo/brain.js +259 -0
- package/dist/logo/brain.js.map +1 -0
- package/dist/messages.d.ts +491 -4
- package/dist/messages.js +53 -0
- package/dist/messages.js.map +1 -1
- package/dist/pacs.d.ts +13 -0
- package/dist/pacs.js +12 -0
- package/dist/pacs.js.map +1 -1
- package/dist/proc.d.ts +27 -0
- package/dist/proc.js.map +1 -1
- package/package.json +13 -5
package/dist/messages.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare const channelSchema: z.ZodEnum<["data", "err", "status"]>;
|
|
|
25
25
|
export declare const surfaceCapabilitiesMessageSchema: z.ZodObject<{
|
|
26
26
|
shellCommands: z.ZodBoolean;
|
|
27
27
|
hiddenInput: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
/** Renders ANSI colour, so a thumbnail can be half-blocks, not an ASCII ramp. */
|
|
29
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
28
30
|
/** Can put a file where its operator can reach it. */
|
|
29
31
|
fileDelivery: z.ZodOptional<z.ZodBoolean>;
|
|
30
32
|
/**
|
|
@@ -36,11 +38,13 @@ export declare const surfaceCapabilitiesMessageSchema: z.ZodObject<{
|
|
|
36
38
|
}, "strip", z.ZodTypeAny, {
|
|
37
39
|
shellCommands: boolean;
|
|
38
40
|
hiddenInput?: boolean | undefined;
|
|
41
|
+
color?: boolean | undefined;
|
|
39
42
|
fileDelivery?: boolean | undefined;
|
|
40
43
|
localFilesystem?: boolean | undefined;
|
|
41
44
|
}, {
|
|
42
45
|
shellCommands: boolean;
|
|
43
46
|
hiddenInput?: boolean | undefined;
|
|
47
|
+
color?: boolean | undefined;
|
|
44
48
|
fileDelivery?: boolean | undefined;
|
|
45
49
|
localFilesystem?: boolean | undefined;
|
|
46
50
|
}>;
|
|
@@ -53,6 +57,8 @@ export declare const attachMessageSchema: z.ZodObject<{
|
|
|
53
57
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
54
58
|
shellCommands: z.ZodBoolean;
|
|
55
59
|
hiddenInput: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
/** Renders ANSI colour, so a thumbnail can be half-blocks, not an ASCII ramp. */
|
|
61
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
56
62
|
/** Can put a file where its operator can reach it. */
|
|
57
63
|
fileDelivery: z.ZodOptional<z.ZodBoolean>;
|
|
58
64
|
/**
|
|
@@ -64,11 +70,13 @@ export declare const attachMessageSchema: z.ZodObject<{
|
|
|
64
70
|
}, "strip", z.ZodTypeAny, {
|
|
65
71
|
shellCommands: boolean;
|
|
66
72
|
hiddenInput?: boolean | undefined;
|
|
73
|
+
color?: boolean | undefined;
|
|
67
74
|
fileDelivery?: boolean | undefined;
|
|
68
75
|
localFilesystem?: boolean | undefined;
|
|
69
76
|
}, {
|
|
70
77
|
shellCommands: boolean;
|
|
71
78
|
hiddenInput?: boolean | undefined;
|
|
79
|
+
color?: boolean | undefined;
|
|
72
80
|
fileDelivery?: boolean | undefined;
|
|
73
81
|
localFilesystem?: boolean | undefined;
|
|
74
82
|
}>>;
|
|
@@ -80,6 +88,7 @@ export declare const attachMessageSchema: z.ZodObject<{
|
|
|
80
88
|
capabilities?: {
|
|
81
89
|
shellCommands: boolean;
|
|
82
90
|
hiddenInput?: boolean | undefined;
|
|
91
|
+
color?: boolean | undefined;
|
|
83
92
|
fileDelivery?: boolean | undefined;
|
|
84
93
|
localFilesystem?: boolean | undefined;
|
|
85
94
|
} | undefined;
|
|
@@ -91,6 +100,7 @@ export declare const attachMessageSchema: z.ZodObject<{
|
|
|
91
100
|
capabilities?: {
|
|
92
101
|
shellCommands: boolean;
|
|
93
102
|
hiddenInput?: boolean | undefined;
|
|
103
|
+
color?: boolean | undefined;
|
|
94
104
|
fileDelivery?: boolean | undefined;
|
|
95
105
|
localFilesystem?: boolean | undefined;
|
|
96
106
|
} | undefined;
|
|
@@ -417,10 +427,74 @@ export declare const watchedMessageSchema: z.ZodObject<{
|
|
|
417
427
|
state: "live" | "settled" | "stale";
|
|
418
428
|
}>;
|
|
419
429
|
export type WatchedMessage = z.infer<typeof watchedMessageSchema>;
|
|
430
|
+
/**
|
|
431
|
+
* Which listing the session's numbers currently count.
|
|
432
|
+
*
|
|
433
|
+
* A row can be named by the number beside it (`gather add @2,3`), and the
|
|
434
|
+
* numbers belong to the session's most recent ANSWER. A surface has to know
|
|
435
|
+
* WHICH listing that is, or it would light the index pills on a pane whose
|
|
436
|
+
* rows are no longer the ones `@2` would reach — and pills that lie are
|
|
437
|
+
* worse than no pills. Pushed whenever the answer changes, and to a late
|
|
438
|
+
* attacher, the way regard is.
|
|
439
|
+
*/
|
|
440
|
+
export declare const numberedMessageSchema: z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"numbered">;
|
|
442
|
+
/** Rises with each answer, so a surface can tell newer from older. */
|
|
443
|
+
id: z.ZodNumber;
|
|
444
|
+
/** The line that produced the answer, which is how a pane recognises its own. */
|
|
445
|
+
source: z.ZodString;
|
|
446
|
+
/** How many rows are numbered. */
|
|
447
|
+
rows: z.ZodNumber;
|
|
448
|
+
/**
|
|
449
|
+
* Each numbered row's handle beside its address.
|
|
450
|
+
*
|
|
451
|
+
* An index says what it counts — `@SER003`, `@STD001`, `@FIL012`,
|
|
452
|
+
* `@DIR004` — one sequence per kind across the answer. A surface finds
|
|
453
|
+
* each of its rows by address and draws the code, rather than counting
|
|
454
|
+
* down the screen, so a sorted or filtered listing still shows each row
|
|
455
|
+
* the handle that reaches it. Capped: a listing of thousands is numbered
|
|
456
|
+
* in the kernel and simply unnumbered on screen.
|
|
457
|
+
*/
|
|
458
|
+
handles: z.ZodArray<z.ZodObject<{
|
|
459
|
+
kind: z.ZodString;
|
|
460
|
+
ordinal: z.ZodNumber;
|
|
461
|
+
address: z.ZodString;
|
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
|
+
kind: string;
|
|
464
|
+
address: string;
|
|
465
|
+
ordinal: number;
|
|
466
|
+
}, {
|
|
467
|
+
kind: string;
|
|
468
|
+
address: string;
|
|
469
|
+
ordinal: number;
|
|
470
|
+
}>, "many">;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
id: number;
|
|
473
|
+
type: "numbered";
|
|
474
|
+
rows: number;
|
|
475
|
+
source: string;
|
|
476
|
+
handles: {
|
|
477
|
+
kind: string;
|
|
478
|
+
address: string;
|
|
479
|
+
ordinal: number;
|
|
480
|
+
}[];
|
|
481
|
+
}, {
|
|
482
|
+
id: number;
|
|
483
|
+
type: "numbered";
|
|
484
|
+
rows: number;
|
|
485
|
+
source: string;
|
|
486
|
+
handles: {
|
|
487
|
+
kind: string;
|
|
488
|
+
address: string;
|
|
489
|
+
ordinal: number;
|
|
490
|
+
}[];
|
|
491
|
+
}>;
|
|
492
|
+
export type NumberedMessage = z.infer<typeof numberedMessageSchema>;
|
|
420
493
|
/**
|
|
421
494
|
* An event the engine originates on its own — a sampler's refreshed model,
|
|
422
|
-
* a watch changing state
|
|
423
|
-
* relays it to every surface; it
|
|
495
|
+
* a watch changing state, the numbering moving to another listing — rather
|
|
496
|
+
* than in answer to a command. The daemon relays it to every surface; it
|
|
497
|
+
* never enters scrollback.
|
|
424
498
|
*/
|
|
425
499
|
export type AmbientEvent = {
|
|
426
500
|
kind: 'envelope';
|
|
@@ -429,6 +503,16 @@ export type AmbientEvent = {
|
|
|
429
503
|
kind: 'watched';
|
|
430
504
|
subject: string;
|
|
431
505
|
state: WatchState;
|
|
506
|
+
} | {
|
|
507
|
+
kind: 'numbered';
|
|
508
|
+
id: number;
|
|
509
|
+
source: string;
|
|
510
|
+
rows: number;
|
|
511
|
+
handles: Array<{
|
|
512
|
+
kind: string;
|
|
513
|
+
ordinal: number;
|
|
514
|
+
address: string;
|
|
515
|
+
}>;
|
|
432
516
|
};
|
|
433
517
|
/** Any message a surface may send to the daemon. */
|
|
434
518
|
export declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -439,6 +523,8 @@ export declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
439
523
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
440
524
|
shellCommands: z.ZodBoolean;
|
|
441
525
|
hiddenInput: z.ZodOptional<z.ZodBoolean>;
|
|
526
|
+
/** Renders ANSI colour, so a thumbnail can be half-blocks, not an ASCII ramp. */
|
|
527
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
442
528
|
/** Can put a file where its operator can reach it. */
|
|
443
529
|
fileDelivery: z.ZodOptional<z.ZodBoolean>;
|
|
444
530
|
/**
|
|
@@ -450,11 +536,13 @@ export declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
450
536
|
}, "strip", z.ZodTypeAny, {
|
|
451
537
|
shellCommands: boolean;
|
|
452
538
|
hiddenInput?: boolean | undefined;
|
|
539
|
+
color?: boolean | undefined;
|
|
453
540
|
fileDelivery?: boolean | undefined;
|
|
454
541
|
localFilesystem?: boolean | undefined;
|
|
455
542
|
}, {
|
|
456
543
|
shellCommands: boolean;
|
|
457
544
|
hiddenInput?: boolean | undefined;
|
|
545
|
+
color?: boolean | undefined;
|
|
458
546
|
fileDelivery?: boolean | undefined;
|
|
459
547
|
localFilesystem?: boolean | undefined;
|
|
460
548
|
}>>;
|
|
@@ -466,6 +554,7 @@ export declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
466
554
|
capabilities?: {
|
|
467
555
|
shellCommands: boolean;
|
|
468
556
|
hiddenInput?: boolean | undefined;
|
|
557
|
+
color?: boolean | undefined;
|
|
469
558
|
fileDelivery?: boolean | undefined;
|
|
470
559
|
localFilesystem?: boolean | undefined;
|
|
471
560
|
} | undefined;
|
|
@@ -477,6 +566,7 @@ export declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
477
566
|
capabilities?: {
|
|
478
567
|
shellCommands: boolean;
|
|
479
568
|
hiddenInput?: boolean | undefined;
|
|
569
|
+
color?: boolean | undefined;
|
|
480
570
|
fileDelivery?: boolean | undefined;
|
|
481
571
|
localFilesystem?: boolean | undefined;
|
|
482
572
|
} | undefined;
|
|
@@ -979,6 +1069,15 @@ export declare const progressMessageSchema: z.ZodObject<{
|
|
|
979
1069
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
980
1070
|
unit: z.ZodOptional<z.ZodCatch<z.ZodEnum<["files", "bytes", "series", "jobs", "nodes"]>>>;
|
|
981
1071
|
status: z.ZodOptional<z.ZodCatch<z.ZodEnum<["running", "done", "unconfirmed", "stalled", "timeout", "error", "unknown"]>>>;
|
|
1072
|
+
/**
|
|
1073
|
+
* Where the item landed, when the kernel can name it.
|
|
1074
|
+
*
|
|
1075
|
+
* A retrieve is confirmed by count and filed by CUBE a beat later, so the
|
|
1076
|
+
* message that says a series is home may not yet know where. This is the
|
|
1077
|
+
* one that does: a surface offering a verb on the landed thing (IMAGE on a
|
|
1078
|
+
* PACS row) needs the place, and only the kernel can say it.
|
|
1079
|
+
*/
|
|
1080
|
+
path: z.ZodOptional<z.ZodString>;
|
|
982
1081
|
}, "strip", z.ZodTypeAny, {
|
|
983
1082
|
id: string;
|
|
984
1083
|
type: "progress";
|
|
@@ -986,17 +1085,19 @@ export declare const progressMessageSchema: z.ZodObject<{
|
|
|
986
1085
|
phase: "failed" | "scanning" | "transferring" | "watching" | "retrying" | "reading" | "working" | "complete";
|
|
987
1086
|
label?: string | undefined;
|
|
988
1087
|
status?: "unknown" | "done" | "error" | "running" | "unconfirmed" | "stalled" | "timeout" | undefined;
|
|
1088
|
+
path?: string | undefined;
|
|
989
1089
|
total?: number | undefined;
|
|
990
1090
|
kind?: "workflow" | "transfer" | "retrieve" | "inspection" | undefined;
|
|
991
1091
|
itemId?: string | undefined;
|
|
992
1092
|
current?: number | undefined;
|
|
993
1093
|
percent?: number | undefined;
|
|
994
|
-
unit?: "nodes" | "
|
|
1094
|
+
unit?: "nodes" | "jobs" | "series" | "bytes" | "files" | undefined;
|
|
995
1095
|
}, {
|
|
996
1096
|
id: string;
|
|
997
1097
|
type: "progress";
|
|
998
1098
|
label?: string | undefined;
|
|
999
1099
|
status?: unknown;
|
|
1100
|
+
path?: string | undefined;
|
|
1000
1101
|
total?: number | undefined;
|
|
1001
1102
|
kind?: unknown;
|
|
1002
1103
|
operation?: unknown;
|
|
@@ -1320,6 +1421,50 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1320
1421
|
failed?: string | undefined;
|
|
1321
1422
|
}>, "many">>;
|
|
1322
1423
|
arrived: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1424
|
+
landed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1425
|
+
id: z.ZodNumber;
|
|
1426
|
+
jobs: z.ZodNumber;
|
|
1427
|
+
status: z.ZodString;
|
|
1428
|
+
chain: z.ZodArray<z.ZodString, "many">;
|
|
1429
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1430
|
+
plugin: z.ZodString;
|
|
1431
|
+
count: z.ZodNumber;
|
|
1432
|
+
status: z.ZodString;
|
|
1433
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
1434
|
+
}, "strip", z.ZodTypeAny, {
|
|
1435
|
+
status: string;
|
|
1436
|
+
count: number;
|
|
1437
|
+
plugin: string;
|
|
1438
|
+
parent: number | null;
|
|
1439
|
+
}, {
|
|
1440
|
+
status: string;
|
|
1441
|
+
count: number;
|
|
1442
|
+
plugin: string;
|
|
1443
|
+
parent: number | null;
|
|
1444
|
+
}>, "many">>;
|
|
1445
|
+
}, "strip", z.ZodTypeAny, {
|
|
1446
|
+
id: number;
|
|
1447
|
+
status: string;
|
|
1448
|
+
jobs: number;
|
|
1449
|
+
chain: string[];
|
|
1450
|
+
groups: {
|
|
1451
|
+
status: string;
|
|
1452
|
+
count: number;
|
|
1453
|
+
plugin: string;
|
|
1454
|
+
parent: number | null;
|
|
1455
|
+
}[];
|
|
1456
|
+
}, {
|
|
1457
|
+
id: number;
|
|
1458
|
+
status: string;
|
|
1459
|
+
jobs: number;
|
|
1460
|
+
chain: string[];
|
|
1461
|
+
groups?: {
|
|
1462
|
+
status: string;
|
|
1463
|
+
count: number;
|
|
1464
|
+
plugin: string;
|
|
1465
|
+
parent: number | null;
|
|
1466
|
+
}[] | undefined;
|
|
1467
|
+
}>, "many">>;
|
|
1323
1468
|
roster: z.ZodOptional<z.ZodEnum<["delta", "full"]>>;
|
|
1324
1469
|
}, "strip", z.ZodTypeAny, {
|
|
1325
1470
|
loaded: number;
|
|
@@ -1340,6 +1485,18 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1340
1485
|
failed?: string | undefined;
|
|
1341
1486
|
} | undefined;
|
|
1342
1487
|
arrived?: number[] | undefined;
|
|
1488
|
+
landed?: {
|
|
1489
|
+
id: number;
|
|
1490
|
+
status: string;
|
|
1491
|
+
jobs: number;
|
|
1492
|
+
chain: string[];
|
|
1493
|
+
groups: {
|
|
1494
|
+
status: string;
|
|
1495
|
+
count: number;
|
|
1496
|
+
plugin: string;
|
|
1497
|
+
parent: number | null;
|
|
1498
|
+
}[];
|
|
1499
|
+
}[] | undefined;
|
|
1343
1500
|
roster?: "delta" | "full" | undefined;
|
|
1344
1501
|
}, {
|
|
1345
1502
|
loaded: number;
|
|
@@ -1360,6 +1517,18 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1360
1517
|
failed?: string | undefined;
|
|
1361
1518
|
} | undefined;
|
|
1362
1519
|
arrived?: number[] | undefined;
|
|
1520
|
+
landed?: {
|
|
1521
|
+
id: number;
|
|
1522
|
+
status: string;
|
|
1523
|
+
jobs: number;
|
|
1524
|
+
chain: string[];
|
|
1525
|
+
groups?: {
|
|
1526
|
+
status: string;
|
|
1527
|
+
count: number;
|
|
1528
|
+
plugin: string;
|
|
1529
|
+
parent: number | null;
|
|
1530
|
+
}[] | undefined;
|
|
1531
|
+
}[] | undefined;
|
|
1363
1532
|
roster?: "delta" | "full" | undefined;
|
|
1364
1533
|
}>>;
|
|
1365
1534
|
procIndex: z.ZodOptional<z.ZodObject<{
|
|
@@ -1413,6 +1582,18 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1413
1582
|
failed?: string | undefined;
|
|
1414
1583
|
} | undefined;
|
|
1415
1584
|
arrived?: number[] | undefined;
|
|
1585
|
+
landed?: {
|
|
1586
|
+
id: number;
|
|
1587
|
+
status: string;
|
|
1588
|
+
jobs: number;
|
|
1589
|
+
chain: string[];
|
|
1590
|
+
groups: {
|
|
1591
|
+
status: string;
|
|
1592
|
+
count: number;
|
|
1593
|
+
plugin: string;
|
|
1594
|
+
parent: number | null;
|
|
1595
|
+
}[];
|
|
1596
|
+
}[] | undefined;
|
|
1416
1597
|
roster?: "delta" | "full" | undefined;
|
|
1417
1598
|
} | undefined;
|
|
1418
1599
|
procIndex?: {
|
|
@@ -1450,6 +1631,18 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1450
1631
|
failed?: string | undefined;
|
|
1451
1632
|
} | undefined;
|
|
1452
1633
|
arrived?: number[] | undefined;
|
|
1634
|
+
landed?: {
|
|
1635
|
+
id: number;
|
|
1636
|
+
status: string;
|
|
1637
|
+
jobs: number;
|
|
1638
|
+
chain: string[];
|
|
1639
|
+
groups?: {
|
|
1640
|
+
status: string;
|
|
1641
|
+
count: number;
|
|
1642
|
+
plugin: string;
|
|
1643
|
+
parent: number | null;
|
|
1644
|
+
}[] | undefined;
|
|
1645
|
+
}[] | undefined;
|
|
1453
1646
|
roster?: "delta" | "full" | undefined;
|
|
1454
1647
|
} | undefined;
|
|
1455
1648
|
procIndex?: {
|
|
@@ -1517,6 +1710,50 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1517
1710
|
failed?: string | undefined;
|
|
1518
1711
|
}>, "many">>;
|
|
1519
1712
|
arrived: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1713
|
+
landed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1714
|
+
id: z.ZodNumber;
|
|
1715
|
+
jobs: z.ZodNumber;
|
|
1716
|
+
status: z.ZodString;
|
|
1717
|
+
chain: z.ZodArray<z.ZodString, "many">;
|
|
1718
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1719
|
+
plugin: z.ZodString;
|
|
1720
|
+
count: z.ZodNumber;
|
|
1721
|
+
status: z.ZodString;
|
|
1722
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
1723
|
+
}, "strip", z.ZodTypeAny, {
|
|
1724
|
+
status: string;
|
|
1725
|
+
count: number;
|
|
1726
|
+
plugin: string;
|
|
1727
|
+
parent: number | null;
|
|
1728
|
+
}, {
|
|
1729
|
+
status: string;
|
|
1730
|
+
count: number;
|
|
1731
|
+
plugin: string;
|
|
1732
|
+
parent: number | null;
|
|
1733
|
+
}>, "many">>;
|
|
1734
|
+
}, "strip", z.ZodTypeAny, {
|
|
1735
|
+
id: number;
|
|
1736
|
+
status: string;
|
|
1737
|
+
jobs: number;
|
|
1738
|
+
chain: string[];
|
|
1739
|
+
groups: {
|
|
1740
|
+
status: string;
|
|
1741
|
+
count: number;
|
|
1742
|
+
plugin: string;
|
|
1743
|
+
parent: number | null;
|
|
1744
|
+
}[];
|
|
1745
|
+
}, {
|
|
1746
|
+
id: number;
|
|
1747
|
+
status: string;
|
|
1748
|
+
jobs: number;
|
|
1749
|
+
chain: string[];
|
|
1750
|
+
groups?: {
|
|
1751
|
+
status: string;
|
|
1752
|
+
count: number;
|
|
1753
|
+
plugin: string;
|
|
1754
|
+
parent: number | null;
|
|
1755
|
+
}[] | undefined;
|
|
1756
|
+
}>, "many">>;
|
|
1520
1757
|
roster: z.ZodOptional<z.ZodEnum<["delta", "full"]>>;
|
|
1521
1758
|
}, "strip", z.ZodTypeAny, {
|
|
1522
1759
|
loaded: number;
|
|
@@ -1537,6 +1774,18 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1537
1774
|
failed?: string | undefined;
|
|
1538
1775
|
} | undefined;
|
|
1539
1776
|
arrived?: number[] | undefined;
|
|
1777
|
+
landed?: {
|
|
1778
|
+
id: number;
|
|
1779
|
+
status: string;
|
|
1780
|
+
jobs: number;
|
|
1781
|
+
chain: string[];
|
|
1782
|
+
groups: {
|
|
1783
|
+
status: string;
|
|
1784
|
+
count: number;
|
|
1785
|
+
plugin: string;
|
|
1786
|
+
parent: number | null;
|
|
1787
|
+
}[];
|
|
1788
|
+
}[] | undefined;
|
|
1540
1789
|
roster?: "delta" | "full" | undefined;
|
|
1541
1790
|
}, {
|
|
1542
1791
|
loaded: number;
|
|
@@ -1557,6 +1806,18 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1557
1806
|
failed?: string | undefined;
|
|
1558
1807
|
} | undefined;
|
|
1559
1808
|
arrived?: number[] | undefined;
|
|
1809
|
+
landed?: {
|
|
1810
|
+
id: number;
|
|
1811
|
+
status: string;
|
|
1812
|
+
jobs: number;
|
|
1813
|
+
chain: string[];
|
|
1814
|
+
groups?: {
|
|
1815
|
+
status: string;
|
|
1816
|
+
count: number;
|
|
1817
|
+
plugin: string;
|
|
1818
|
+
parent: number | null;
|
|
1819
|
+
}[] | undefined;
|
|
1820
|
+
}[] | undefined;
|
|
1560
1821
|
roster?: "delta" | "full" | undefined;
|
|
1561
1822
|
}>>;
|
|
1562
1823
|
procIndex: z.ZodOptional<z.ZodObject<{
|
|
@@ -1610,6 +1871,18 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1610
1871
|
failed?: string | undefined;
|
|
1611
1872
|
} | undefined;
|
|
1612
1873
|
arrived?: number[] | undefined;
|
|
1874
|
+
landed?: {
|
|
1875
|
+
id: number;
|
|
1876
|
+
status: string;
|
|
1877
|
+
jobs: number;
|
|
1878
|
+
chain: string[];
|
|
1879
|
+
groups: {
|
|
1880
|
+
status: string;
|
|
1881
|
+
count: number;
|
|
1882
|
+
plugin: string;
|
|
1883
|
+
parent: number | null;
|
|
1884
|
+
}[];
|
|
1885
|
+
}[] | undefined;
|
|
1613
1886
|
roster?: "delta" | "full" | undefined;
|
|
1614
1887
|
} | undefined;
|
|
1615
1888
|
procIndex?: {
|
|
@@ -1647,6 +1920,18 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1647
1920
|
failed?: string | undefined;
|
|
1648
1921
|
} | undefined;
|
|
1649
1922
|
arrived?: number[] | undefined;
|
|
1923
|
+
landed?: {
|
|
1924
|
+
id: number;
|
|
1925
|
+
status: string;
|
|
1926
|
+
jobs: number;
|
|
1927
|
+
chain: string[];
|
|
1928
|
+
groups?: {
|
|
1929
|
+
status: string;
|
|
1930
|
+
count: number;
|
|
1931
|
+
plugin: string;
|
|
1932
|
+
parent: number | null;
|
|
1933
|
+
}[] | undefined;
|
|
1934
|
+
}[] | undefined;
|
|
1650
1935
|
roster?: "delta" | "full" | undefined;
|
|
1651
1936
|
} | undefined;
|
|
1652
1937
|
procIndex?: {
|
|
@@ -1687,6 +1972,18 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1687
1972
|
failed?: string | undefined;
|
|
1688
1973
|
} | undefined;
|
|
1689
1974
|
arrived?: number[] | undefined;
|
|
1975
|
+
landed?: {
|
|
1976
|
+
id: number;
|
|
1977
|
+
status: string;
|
|
1978
|
+
jobs: number;
|
|
1979
|
+
chain: string[];
|
|
1980
|
+
groups: {
|
|
1981
|
+
status: string;
|
|
1982
|
+
count: number;
|
|
1983
|
+
plugin: string;
|
|
1984
|
+
parent: number | null;
|
|
1985
|
+
}[];
|
|
1986
|
+
}[] | undefined;
|
|
1690
1987
|
roster?: "delta" | "full" | undefined;
|
|
1691
1988
|
} | undefined;
|
|
1692
1989
|
procIndex?: {
|
|
@@ -1727,6 +2024,18 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1727
2024
|
failed?: string | undefined;
|
|
1728
2025
|
} | undefined;
|
|
1729
2026
|
arrived?: number[] | undefined;
|
|
2027
|
+
landed?: {
|
|
2028
|
+
id: number;
|
|
2029
|
+
status: string;
|
|
2030
|
+
jobs: number;
|
|
2031
|
+
chain: string[];
|
|
2032
|
+
groups?: {
|
|
2033
|
+
status: string;
|
|
2034
|
+
count: number;
|
|
2035
|
+
plugin: string;
|
|
2036
|
+
parent: number | null;
|
|
2037
|
+
}[] | undefined;
|
|
2038
|
+
}[] | undefined;
|
|
1730
2039
|
roster?: "delta" | "full" | undefined;
|
|
1731
2040
|
} | undefined;
|
|
1732
2041
|
procIndex?: {
|
|
@@ -2196,6 +2505,15 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2196
2505
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
2197
2506
|
unit: z.ZodOptional<z.ZodCatch<z.ZodEnum<["files", "bytes", "series", "jobs", "nodes"]>>>;
|
|
2198
2507
|
status: z.ZodOptional<z.ZodCatch<z.ZodEnum<["running", "done", "unconfirmed", "stalled", "timeout", "error", "unknown"]>>>;
|
|
2508
|
+
/**
|
|
2509
|
+
* Where the item landed, when the kernel can name it.
|
|
2510
|
+
*
|
|
2511
|
+
* A retrieve is confirmed by count and filed by CUBE a beat later, so the
|
|
2512
|
+
* message that says a series is home may not yet know where. This is the
|
|
2513
|
+
* one that does: a surface offering a verb on the landed thing (IMAGE on a
|
|
2514
|
+
* PACS row) needs the place, and only the kernel can say it.
|
|
2515
|
+
*/
|
|
2516
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2199
2517
|
}, "strip", z.ZodTypeAny, {
|
|
2200
2518
|
id: string;
|
|
2201
2519
|
type: "progress";
|
|
@@ -2203,17 +2521,19 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2203
2521
|
phase: "failed" | "scanning" | "transferring" | "watching" | "retrying" | "reading" | "working" | "complete";
|
|
2204
2522
|
label?: string | undefined;
|
|
2205
2523
|
status?: "unknown" | "done" | "error" | "running" | "unconfirmed" | "stalled" | "timeout" | undefined;
|
|
2524
|
+
path?: string | undefined;
|
|
2206
2525
|
total?: number | undefined;
|
|
2207
2526
|
kind?: "workflow" | "transfer" | "retrieve" | "inspection" | undefined;
|
|
2208
2527
|
itemId?: string | undefined;
|
|
2209
2528
|
current?: number | undefined;
|
|
2210
2529
|
percent?: number | undefined;
|
|
2211
|
-
unit?: "nodes" | "
|
|
2530
|
+
unit?: "nodes" | "jobs" | "series" | "bytes" | "files" | undefined;
|
|
2212
2531
|
}, {
|
|
2213
2532
|
id: string;
|
|
2214
2533
|
type: "progress";
|
|
2215
2534
|
label?: string | undefined;
|
|
2216
2535
|
status?: unknown;
|
|
2536
|
+
path?: string | undefined;
|
|
2217
2537
|
total?: number | undefined;
|
|
2218
2538
|
kind?: unknown;
|
|
2219
2539
|
operation?: unknown;
|
|
@@ -2458,6 +2778,50 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2458
2778
|
failed?: string | undefined;
|
|
2459
2779
|
}>, "many">>;
|
|
2460
2780
|
arrived: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2781
|
+
landed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2782
|
+
id: z.ZodNumber;
|
|
2783
|
+
jobs: z.ZodNumber;
|
|
2784
|
+
status: z.ZodString;
|
|
2785
|
+
chain: z.ZodArray<z.ZodString, "many">;
|
|
2786
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2787
|
+
plugin: z.ZodString;
|
|
2788
|
+
count: z.ZodNumber;
|
|
2789
|
+
status: z.ZodString;
|
|
2790
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
2791
|
+
}, "strip", z.ZodTypeAny, {
|
|
2792
|
+
status: string;
|
|
2793
|
+
count: number;
|
|
2794
|
+
plugin: string;
|
|
2795
|
+
parent: number | null;
|
|
2796
|
+
}, {
|
|
2797
|
+
status: string;
|
|
2798
|
+
count: number;
|
|
2799
|
+
plugin: string;
|
|
2800
|
+
parent: number | null;
|
|
2801
|
+
}>, "many">>;
|
|
2802
|
+
}, "strip", z.ZodTypeAny, {
|
|
2803
|
+
id: number;
|
|
2804
|
+
status: string;
|
|
2805
|
+
jobs: number;
|
|
2806
|
+
chain: string[];
|
|
2807
|
+
groups: {
|
|
2808
|
+
status: string;
|
|
2809
|
+
count: number;
|
|
2810
|
+
plugin: string;
|
|
2811
|
+
parent: number | null;
|
|
2812
|
+
}[];
|
|
2813
|
+
}, {
|
|
2814
|
+
id: number;
|
|
2815
|
+
status: string;
|
|
2816
|
+
jobs: number;
|
|
2817
|
+
chain: string[];
|
|
2818
|
+
groups?: {
|
|
2819
|
+
status: string;
|
|
2820
|
+
count: number;
|
|
2821
|
+
plugin: string;
|
|
2822
|
+
parent: number | null;
|
|
2823
|
+
}[] | undefined;
|
|
2824
|
+
}>, "many">>;
|
|
2461
2825
|
roster: z.ZodOptional<z.ZodEnum<["delta", "full"]>>;
|
|
2462
2826
|
}, "strip", z.ZodTypeAny, {
|
|
2463
2827
|
loaded: number;
|
|
@@ -2478,6 +2842,18 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2478
2842
|
failed?: string | undefined;
|
|
2479
2843
|
} | undefined;
|
|
2480
2844
|
arrived?: number[] | undefined;
|
|
2845
|
+
landed?: {
|
|
2846
|
+
id: number;
|
|
2847
|
+
status: string;
|
|
2848
|
+
jobs: number;
|
|
2849
|
+
chain: string[];
|
|
2850
|
+
groups: {
|
|
2851
|
+
status: string;
|
|
2852
|
+
count: number;
|
|
2853
|
+
plugin: string;
|
|
2854
|
+
parent: number | null;
|
|
2855
|
+
}[];
|
|
2856
|
+
}[] | undefined;
|
|
2481
2857
|
roster?: "delta" | "full" | undefined;
|
|
2482
2858
|
}, {
|
|
2483
2859
|
loaded: number;
|
|
@@ -2498,6 +2874,18 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2498
2874
|
failed?: string | undefined;
|
|
2499
2875
|
} | undefined;
|
|
2500
2876
|
arrived?: number[] | undefined;
|
|
2877
|
+
landed?: {
|
|
2878
|
+
id: number;
|
|
2879
|
+
status: string;
|
|
2880
|
+
jobs: number;
|
|
2881
|
+
chain: string[];
|
|
2882
|
+
groups?: {
|
|
2883
|
+
status: string;
|
|
2884
|
+
count: number;
|
|
2885
|
+
plugin: string;
|
|
2886
|
+
parent: number | null;
|
|
2887
|
+
}[] | undefined;
|
|
2888
|
+
}[] | undefined;
|
|
2501
2889
|
roster?: "delta" | "full" | undefined;
|
|
2502
2890
|
}>>;
|
|
2503
2891
|
procIndex: z.ZodOptional<z.ZodObject<{
|
|
@@ -2551,6 +2939,18 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2551
2939
|
failed?: string | undefined;
|
|
2552
2940
|
} | undefined;
|
|
2553
2941
|
arrived?: number[] | undefined;
|
|
2942
|
+
landed?: {
|
|
2943
|
+
id: number;
|
|
2944
|
+
status: string;
|
|
2945
|
+
jobs: number;
|
|
2946
|
+
chain: string[];
|
|
2947
|
+
groups: {
|
|
2948
|
+
status: string;
|
|
2949
|
+
count: number;
|
|
2950
|
+
plugin: string;
|
|
2951
|
+
parent: number | null;
|
|
2952
|
+
}[];
|
|
2953
|
+
}[] | undefined;
|
|
2554
2954
|
roster?: "delta" | "full" | undefined;
|
|
2555
2955
|
} | undefined;
|
|
2556
2956
|
procIndex?: {
|
|
@@ -2588,6 +2988,18 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2588
2988
|
failed?: string | undefined;
|
|
2589
2989
|
} | undefined;
|
|
2590
2990
|
arrived?: number[] | undefined;
|
|
2991
|
+
landed?: {
|
|
2992
|
+
id: number;
|
|
2993
|
+
status: string;
|
|
2994
|
+
jobs: number;
|
|
2995
|
+
chain: string[];
|
|
2996
|
+
groups?: {
|
|
2997
|
+
status: string;
|
|
2998
|
+
count: number;
|
|
2999
|
+
plugin: string;
|
|
3000
|
+
parent: number | null;
|
|
3001
|
+
}[] | undefined;
|
|
3002
|
+
}[] | undefined;
|
|
2591
3003
|
roster?: "delta" | "full" | undefined;
|
|
2592
3004
|
} | undefined;
|
|
2593
3005
|
procIndex?: {
|
|
@@ -2628,6 +3040,18 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2628
3040
|
failed?: string | undefined;
|
|
2629
3041
|
} | undefined;
|
|
2630
3042
|
arrived?: number[] | undefined;
|
|
3043
|
+
landed?: {
|
|
3044
|
+
id: number;
|
|
3045
|
+
status: string;
|
|
3046
|
+
jobs: number;
|
|
3047
|
+
chain: string[];
|
|
3048
|
+
groups: {
|
|
3049
|
+
status: string;
|
|
3050
|
+
count: number;
|
|
3051
|
+
plugin: string;
|
|
3052
|
+
parent: number | null;
|
|
3053
|
+
}[];
|
|
3054
|
+
}[] | undefined;
|
|
2631
3055
|
roster?: "delta" | "full" | undefined;
|
|
2632
3056
|
} | undefined;
|
|
2633
3057
|
procIndex?: {
|
|
@@ -2668,6 +3092,18 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2668
3092
|
failed?: string | undefined;
|
|
2669
3093
|
} | undefined;
|
|
2670
3094
|
arrived?: number[] | undefined;
|
|
3095
|
+
landed?: {
|
|
3096
|
+
id: number;
|
|
3097
|
+
status: string;
|
|
3098
|
+
jobs: number;
|
|
3099
|
+
chain: string[];
|
|
3100
|
+
groups?: {
|
|
3101
|
+
status: string;
|
|
3102
|
+
count: number;
|
|
3103
|
+
plugin: string;
|
|
3104
|
+
parent: number | null;
|
|
3105
|
+
}[] | undefined;
|
|
3106
|
+
}[] | undefined;
|
|
2671
3107
|
roster?: "delta" | "full" | undefined;
|
|
2672
3108
|
} | undefined;
|
|
2673
3109
|
procIndex?: {
|
|
@@ -2915,6 +3351,57 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2915
3351
|
type: "watched";
|
|
2916
3352
|
subject: string;
|
|
2917
3353
|
state: "live" | "settled" | "stale";
|
|
3354
|
+
}>, z.ZodObject<{
|
|
3355
|
+
type: z.ZodLiteral<"numbered">;
|
|
3356
|
+
/** Rises with each answer, so a surface can tell newer from older. */
|
|
3357
|
+
id: z.ZodNumber;
|
|
3358
|
+
/** The line that produced the answer, which is how a pane recognises its own. */
|
|
3359
|
+
source: z.ZodString;
|
|
3360
|
+
/** How many rows are numbered. */
|
|
3361
|
+
rows: z.ZodNumber;
|
|
3362
|
+
/**
|
|
3363
|
+
* Each numbered row's handle beside its address.
|
|
3364
|
+
*
|
|
3365
|
+
* An index says what it counts — `@SER003`, `@STD001`, `@FIL012`,
|
|
3366
|
+
* `@DIR004` — one sequence per kind across the answer. A surface finds
|
|
3367
|
+
* each of its rows by address and draws the code, rather than counting
|
|
3368
|
+
* down the screen, so a sorted or filtered listing still shows each row
|
|
3369
|
+
* the handle that reaches it. Capped: a listing of thousands is numbered
|
|
3370
|
+
* in the kernel and simply unnumbered on screen.
|
|
3371
|
+
*/
|
|
3372
|
+
handles: z.ZodArray<z.ZodObject<{
|
|
3373
|
+
kind: z.ZodString;
|
|
3374
|
+
ordinal: z.ZodNumber;
|
|
3375
|
+
address: z.ZodString;
|
|
3376
|
+
}, "strip", z.ZodTypeAny, {
|
|
3377
|
+
kind: string;
|
|
3378
|
+
address: string;
|
|
3379
|
+
ordinal: number;
|
|
3380
|
+
}, {
|
|
3381
|
+
kind: string;
|
|
3382
|
+
address: string;
|
|
3383
|
+
ordinal: number;
|
|
3384
|
+
}>, "many">;
|
|
3385
|
+
}, "strip", z.ZodTypeAny, {
|
|
3386
|
+
id: number;
|
|
3387
|
+
type: "numbered";
|
|
3388
|
+
rows: number;
|
|
3389
|
+
source: string;
|
|
3390
|
+
handles: {
|
|
3391
|
+
kind: string;
|
|
3392
|
+
address: string;
|
|
3393
|
+
ordinal: number;
|
|
3394
|
+
}[];
|
|
3395
|
+
}, {
|
|
3396
|
+
id: number;
|
|
3397
|
+
type: "numbered";
|
|
3398
|
+
rows: number;
|
|
3399
|
+
source: string;
|
|
3400
|
+
handles: {
|
|
3401
|
+
kind: string;
|
|
3402
|
+
address: string;
|
|
3403
|
+
ordinal: number;
|
|
3404
|
+
}[];
|
|
2918
3405
|
}>]>;
|
|
2919
3406
|
/** A message the daemon sends to a surface. */
|
|
2920
3407
|
export type ServerMessage = z.infer<typeof serverMessageSchema>;
|