@fnndsc/menu 0.9.0 → 0.11.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 +175 -0
- package/dist/dag.js +29 -0
- package/dist/dag.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- 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 +517 -12
- package/dist/messages.js +43 -0
- package/dist/messages.js.map +1 -1
- package/dist/motd.d.ts +148 -0
- package/dist/motd.js +47 -0
- package/dist/motd.js.map +1 -0
- 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 +31 -0
- package/dist/proc.js.map +1 -1
- package/package.json +13 -5
package/dist/messages.d.ts
CHANGED
|
@@ -427,10 +427,74 @@ export declare const watchedMessageSchema: z.ZodObject<{
|
|
|
427
427
|
state: "live" | "settled" | "stale";
|
|
428
428
|
}>;
|
|
429
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>;
|
|
430
493
|
/**
|
|
431
494
|
* An event the engine originates on its own — a sampler's refreshed model,
|
|
432
|
-
* a watch changing state
|
|
433
|
-
* 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.
|
|
434
498
|
*/
|
|
435
499
|
export type AmbientEvent = {
|
|
436
500
|
kind: 'envelope';
|
|
@@ -439,6 +503,16 @@ export type AmbientEvent = {
|
|
|
439
503
|
kind: 'watched';
|
|
440
504
|
subject: string;
|
|
441
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
|
+
}>;
|
|
442
516
|
};
|
|
443
517
|
/** Any message a surface may send to the daemon. */
|
|
444
518
|
export declare const clientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1017,7 +1091,7 @@ export declare const progressMessageSchema: z.ZodObject<{
|
|
|
1017
1091
|
itemId?: string | undefined;
|
|
1018
1092
|
current?: number | undefined;
|
|
1019
1093
|
percent?: number | undefined;
|
|
1020
|
-
unit?: "nodes" | "
|
|
1094
|
+
unit?: "nodes" | "jobs" | "series" | "bytes" | "files" | undefined;
|
|
1021
1095
|
}, {
|
|
1022
1096
|
id: string;
|
|
1023
1097
|
type: "progress";
|
|
@@ -1347,6 +1421,58 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1347
1421
|
failed?: string | undefined;
|
|
1348
1422
|
}>, "many">>;
|
|
1349
1423
|
arrived: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1424
|
+
landed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1425
|
+
id: z.ZodNumber;
|
|
1426
|
+
title: z.ZodDefault<z.ZodString>;
|
|
1427
|
+
jobs: z.ZodNumber;
|
|
1428
|
+
status: z.ZodString;
|
|
1429
|
+
chain: z.ZodArray<z.ZodString, "many">;
|
|
1430
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1431
|
+
plugin: z.ZodString;
|
|
1432
|
+
count: z.ZodNumber;
|
|
1433
|
+
errored: z.ZodDefault<z.ZodNumber>;
|
|
1434
|
+
status: z.ZodString;
|
|
1435
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
1436
|
+
}, "strip", z.ZodTypeAny, {
|
|
1437
|
+
status: string;
|
|
1438
|
+
count: number;
|
|
1439
|
+
plugin: string;
|
|
1440
|
+
errored: number;
|
|
1441
|
+
parent: number | null;
|
|
1442
|
+
}, {
|
|
1443
|
+
status: string;
|
|
1444
|
+
count: number;
|
|
1445
|
+
plugin: string;
|
|
1446
|
+
parent: number | null;
|
|
1447
|
+
errored?: number | undefined;
|
|
1448
|
+
}>, "many">>;
|
|
1449
|
+
}, "strip", z.ZodTypeAny, {
|
|
1450
|
+
id: number;
|
|
1451
|
+
status: string;
|
|
1452
|
+
title: string;
|
|
1453
|
+
jobs: number;
|
|
1454
|
+
chain: string[];
|
|
1455
|
+
groups: {
|
|
1456
|
+
status: string;
|
|
1457
|
+
count: number;
|
|
1458
|
+
plugin: string;
|
|
1459
|
+
errored: number;
|
|
1460
|
+
parent: number | null;
|
|
1461
|
+
}[];
|
|
1462
|
+
}, {
|
|
1463
|
+
id: number;
|
|
1464
|
+
status: string;
|
|
1465
|
+
jobs: number;
|
|
1466
|
+
chain: string[];
|
|
1467
|
+
title?: string | undefined;
|
|
1468
|
+
groups?: {
|
|
1469
|
+
status: string;
|
|
1470
|
+
count: number;
|
|
1471
|
+
plugin: string;
|
|
1472
|
+
parent: number | null;
|
|
1473
|
+
errored?: number | undefined;
|
|
1474
|
+
}[] | undefined;
|
|
1475
|
+
}>, "many">>;
|
|
1350
1476
|
roster: z.ZodOptional<z.ZodEnum<["delta", "full"]>>;
|
|
1351
1477
|
}, "strip", z.ZodTypeAny, {
|
|
1352
1478
|
loaded: number;
|
|
@@ -1367,6 +1493,20 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1367
1493
|
failed?: string | undefined;
|
|
1368
1494
|
} | undefined;
|
|
1369
1495
|
arrived?: number[] | undefined;
|
|
1496
|
+
landed?: {
|
|
1497
|
+
id: number;
|
|
1498
|
+
status: string;
|
|
1499
|
+
title: string;
|
|
1500
|
+
jobs: number;
|
|
1501
|
+
chain: string[];
|
|
1502
|
+
groups: {
|
|
1503
|
+
status: string;
|
|
1504
|
+
count: number;
|
|
1505
|
+
plugin: string;
|
|
1506
|
+
errored: number;
|
|
1507
|
+
parent: number | null;
|
|
1508
|
+
}[];
|
|
1509
|
+
}[] | undefined;
|
|
1370
1510
|
roster?: "delta" | "full" | undefined;
|
|
1371
1511
|
}, {
|
|
1372
1512
|
loaded: number;
|
|
@@ -1387,6 +1527,20 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1387
1527
|
failed?: string | undefined;
|
|
1388
1528
|
} | undefined;
|
|
1389
1529
|
arrived?: number[] | undefined;
|
|
1530
|
+
landed?: {
|
|
1531
|
+
id: number;
|
|
1532
|
+
status: string;
|
|
1533
|
+
jobs: number;
|
|
1534
|
+
chain: string[];
|
|
1535
|
+
title?: string | undefined;
|
|
1536
|
+
groups?: {
|
|
1537
|
+
status: string;
|
|
1538
|
+
count: number;
|
|
1539
|
+
plugin: string;
|
|
1540
|
+
parent: number | null;
|
|
1541
|
+
errored?: number | undefined;
|
|
1542
|
+
}[] | undefined;
|
|
1543
|
+
}[] | undefined;
|
|
1390
1544
|
roster?: "delta" | "full" | undefined;
|
|
1391
1545
|
}>>;
|
|
1392
1546
|
procIndex: z.ZodOptional<z.ZodObject<{
|
|
@@ -1440,6 +1594,20 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1440
1594
|
failed?: string | undefined;
|
|
1441
1595
|
} | undefined;
|
|
1442
1596
|
arrived?: number[] | undefined;
|
|
1597
|
+
landed?: {
|
|
1598
|
+
id: number;
|
|
1599
|
+
status: string;
|
|
1600
|
+
title: string;
|
|
1601
|
+
jobs: number;
|
|
1602
|
+
chain: string[];
|
|
1603
|
+
groups: {
|
|
1604
|
+
status: string;
|
|
1605
|
+
count: number;
|
|
1606
|
+
plugin: string;
|
|
1607
|
+
errored: number;
|
|
1608
|
+
parent: number | null;
|
|
1609
|
+
}[];
|
|
1610
|
+
}[] | undefined;
|
|
1443
1611
|
roster?: "delta" | "full" | undefined;
|
|
1444
1612
|
} | undefined;
|
|
1445
1613
|
procIndex?: {
|
|
@@ -1477,6 +1645,20 @@ export declare const promptContextSchema: z.ZodObject<{
|
|
|
1477
1645
|
failed?: string | undefined;
|
|
1478
1646
|
} | undefined;
|
|
1479
1647
|
arrived?: number[] | undefined;
|
|
1648
|
+
landed?: {
|
|
1649
|
+
id: number;
|
|
1650
|
+
status: string;
|
|
1651
|
+
jobs: number;
|
|
1652
|
+
chain: string[];
|
|
1653
|
+
title?: string | undefined;
|
|
1654
|
+
groups?: {
|
|
1655
|
+
status: string;
|
|
1656
|
+
count: number;
|
|
1657
|
+
plugin: string;
|
|
1658
|
+
parent: number | null;
|
|
1659
|
+
errored?: number | undefined;
|
|
1660
|
+
}[] | undefined;
|
|
1661
|
+
}[] | undefined;
|
|
1480
1662
|
roster?: "delta" | "full" | undefined;
|
|
1481
1663
|
} | undefined;
|
|
1482
1664
|
procIndex?: {
|
|
@@ -1544,6 +1726,58 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1544
1726
|
failed?: string | undefined;
|
|
1545
1727
|
}>, "many">>;
|
|
1546
1728
|
arrived: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1729
|
+
landed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1730
|
+
id: z.ZodNumber;
|
|
1731
|
+
title: z.ZodDefault<z.ZodString>;
|
|
1732
|
+
jobs: z.ZodNumber;
|
|
1733
|
+
status: z.ZodString;
|
|
1734
|
+
chain: z.ZodArray<z.ZodString, "many">;
|
|
1735
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1736
|
+
plugin: z.ZodString;
|
|
1737
|
+
count: z.ZodNumber;
|
|
1738
|
+
errored: z.ZodDefault<z.ZodNumber>;
|
|
1739
|
+
status: z.ZodString;
|
|
1740
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
|
+
status: string;
|
|
1743
|
+
count: number;
|
|
1744
|
+
plugin: string;
|
|
1745
|
+
errored: number;
|
|
1746
|
+
parent: number | null;
|
|
1747
|
+
}, {
|
|
1748
|
+
status: string;
|
|
1749
|
+
count: number;
|
|
1750
|
+
plugin: string;
|
|
1751
|
+
parent: number | null;
|
|
1752
|
+
errored?: number | undefined;
|
|
1753
|
+
}>, "many">>;
|
|
1754
|
+
}, "strip", z.ZodTypeAny, {
|
|
1755
|
+
id: number;
|
|
1756
|
+
status: string;
|
|
1757
|
+
title: string;
|
|
1758
|
+
jobs: number;
|
|
1759
|
+
chain: string[];
|
|
1760
|
+
groups: {
|
|
1761
|
+
status: string;
|
|
1762
|
+
count: number;
|
|
1763
|
+
plugin: string;
|
|
1764
|
+
errored: number;
|
|
1765
|
+
parent: number | null;
|
|
1766
|
+
}[];
|
|
1767
|
+
}, {
|
|
1768
|
+
id: number;
|
|
1769
|
+
status: string;
|
|
1770
|
+
jobs: number;
|
|
1771
|
+
chain: string[];
|
|
1772
|
+
title?: string | undefined;
|
|
1773
|
+
groups?: {
|
|
1774
|
+
status: string;
|
|
1775
|
+
count: number;
|
|
1776
|
+
plugin: string;
|
|
1777
|
+
parent: number | null;
|
|
1778
|
+
errored?: number | undefined;
|
|
1779
|
+
}[] | undefined;
|
|
1780
|
+
}>, "many">>;
|
|
1547
1781
|
roster: z.ZodOptional<z.ZodEnum<["delta", "full"]>>;
|
|
1548
1782
|
}, "strip", z.ZodTypeAny, {
|
|
1549
1783
|
loaded: number;
|
|
@@ -1564,6 +1798,20 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1564
1798
|
failed?: string | undefined;
|
|
1565
1799
|
} | undefined;
|
|
1566
1800
|
arrived?: number[] | undefined;
|
|
1801
|
+
landed?: {
|
|
1802
|
+
id: number;
|
|
1803
|
+
status: string;
|
|
1804
|
+
title: string;
|
|
1805
|
+
jobs: number;
|
|
1806
|
+
chain: string[];
|
|
1807
|
+
groups: {
|
|
1808
|
+
status: string;
|
|
1809
|
+
count: number;
|
|
1810
|
+
plugin: string;
|
|
1811
|
+
errored: number;
|
|
1812
|
+
parent: number | null;
|
|
1813
|
+
}[];
|
|
1814
|
+
}[] | undefined;
|
|
1567
1815
|
roster?: "delta" | "full" | undefined;
|
|
1568
1816
|
}, {
|
|
1569
1817
|
loaded: number;
|
|
@@ -1584,6 +1832,20 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1584
1832
|
failed?: string | undefined;
|
|
1585
1833
|
} | undefined;
|
|
1586
1834
|
arrived?: number[] | undefined;
|
|
1835
|
+
landed?: {
|
|
1836
|
+
id: number;
|
|
1837
|
+
status: string;
|
|
1838
|
+
jobs: number;
|
|
1839
|
+
chain: string[];
|
|
1840
|
+
title?: string | undefined;
|
|
1841
|
+
groups?: {
|
|
1842
|
+
status: string;
|
|
1843
|
+
count: number;
|
|
1844
|
+
plugin: string;
|
|
1845
|
+
parent: number | null;
|
|
1846
|
+
errored?: number | undefined;
|
|
1847
|
+
}[] | undefined;
|
|
1848
|
+
}[] | undefined;
|
|
1587
1849
|
roster?: "delta" | "full" | undefined;
|
|
1588
1850
|
}>>;
|
|
1589
1851
|
procIndex: z.ZodOptional<z.ZodObject<{
|
|
@@ -1637,6 +1899,20 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1637
1899
|
failed?: string | undefined;
|
|
1638
1900
|
} | undefined;
|
|
1639
1901
|
arrived?: number[] | undefined;
|
|
1902
|
+
landed?: {
|
|
1903
|
+
id: number;
|
|
1904
|
+
status: string;
|
|
1905
|
+
title: string;
|
|
1906
|
+
jobs: number;
|
|
1907
|
+
chain: string[];
|
|
1908
|
+
groups: {
|
|
1909
|
+
status: string;
|
|
1910
|
+
count: number;
|
|
1911
|
+
plugin: string;
|
|
1912
|
+
errored: number;
|
|
1913
|
+
parent: number | null;
|
|
1914
|
+
}[];
|
|
1915
|
+
}[] | undefined;
|
|
1640
1916
|
roster?: "delta" | "full" | undefined;
|
|
1641
1917
|
} | undefined;
|
|
1642
1918
|
procIndex?: {
|
|
@@ -1674,6 +1950,20 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1674
1950
|
failed?: string | undefined;
|
|
1675
1951
|
} | undefined;
|
|
1676
1952
|
arrived?: number[] | undefined;
|
|
1953
|
+
landed?: {
|
|
1954
|
+
id: number;
|
|
1955
|
+
status: string;
|
|
1956
|
+
jobs: number;
|
|
1957
|
+
chain: string[];
|
|
1958
|
+
title?: string | undefined;
|
|
1959
|
+
groups?: {
|
|
1960
|
+
status: string;
|
|
1961
|
+
count: number;
|
|
1962
|
+
plugin: string;
|
|
1963
|
+
parent: number | null;
|
|
1964
|
+
errored?: number | undefined;
|
|
1965
|
+
}[] | undefined;
|
|
1966
|
+
}[] | undefined;
|
|
1677
1967
|
roster?: "delta" | "full" | undefined;
|
|
1678
1968
|
} | undefined;
|
|
1679
1969
|
procIndex?: {
|
|
@@ -1714,6 +2004,20 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1714
2004
|
failed?: string | undefined;
|
|
1715
2005
|
} | undefined;
|
|
1716
2006
|
arrived?: number[] | undefined;
|
|
2007
|
+
landed?: {
|
|
2008
|
+
id: number;
|
|
2009
|
+
status: string;
|
|
2010
|
+
title: string;
|
|
2011
|
+
jobs: number;
|
|
2012
|
+
chain: string[];
|
|
2013
|
+
groups: {
|
|
2014
|
+
status: string;
|
|
2015
|
+
count: number;
|
|
2016
|
+
plugin: string;
|
|
2017
|
+
errored: number;
|
|
2018
|
+
parent: number | null;
|
|
2019
|
+
}[];
|
|
2020
|
+
}[] | undefined;
|
|
1717
2021
|
roster?: "delta" | "full" | undefined;
|
|
1718
2022
|
} | undefined;
|
|
1719
2023
|
procIndex?: {
|
|
@@ -1754,6 +2058,20 @@ export declare const promptLineMessageSchema: z.ZodObject<{
|
|
|
1754
2058
|
failed?: string | undefined;
|
|
1755
2059
|
} | undefined;
|
|
1756
2060
|
arrived?: number[] | undefined;
|
|
2061
|
+
landed?: {
|
|
2062
|
+
id: number;
|
|
2063
|
+
status: string;
|
|
2064
|
+
jobs: number;
|
|
2065
|
+
chain: string[];
|
|
2066
|
+
title?: string | undefined;
|
|
2067
|
+
groups?: {
|
|
2068
|
+
status: string;
|
|
2069
|
+
count: number;
|
|
2070
|
+
plugin: string;
|
|
2071
|
+
parent: number | null;
|
|
2072
|
+
errored?: number | undefined;
|
|
2073
|
+
}[] | undefined;
|
|
2074
|
+
}[] | undefined;
|
|
1757
2075
|
roster?: "delta" | "full" | undefined;
|
|
1758
2076
|
} | undefined;
|
|
1759
2077
|
procIndex?: {
|
|
@@ -1929,14 +2247,14 @@ export declare const telemetryMessageSchema: z.ZodObject<{
|
|
|
1929
2247
|
}, "strip", z.ZodTypeAny, {
|
|
1930
2248
|
scheduled: number;
|
|
1931
2249
|
running: number;
|
|
1932
|
-
runningFeeds: number;
|
|
1933
2250
|
errored: number;
|
|
2251
|
+
runningFeeds: number;
|
|
1934
2252
|
erroredFeeds: number;
|
|
1935
2253
|
}, {
|
|
1936
2254
|
scheduled: number;
|
|
1937
2255
|
running: number;
|
|
1938
|
-
runningFeeds: number;
|
|
1939
2256
|
errored: number;
|
|
2257
|
+
runningFeeds: number;
|
|
1940
2258
|
erroredFeeds: number;
|
|
1941
2259
|
}>>;
|
|
1942
2260
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1948,8 +2266,8 @@ export declare const telemetryMessageSchema: z.ZodObject<{
|
|
|
1948
2266
|
state?: {
|
|
1949
2267
|
scheduled: number;
|
|
1950
2268
|
running: number;
|
|
1951
|
-
runningFeeds: number;
|
|
1952
2269
|
errored: number;
|
|
2270
|
+
runningFeeds: number;
|
|
1953
2271
|
erroredFeeds: number;
|
|
1954
2272
|
} | undefined;
|
|
1955
2273
|
lane?: {
|
|
@@ -1973,8 +2291,8 @@ export declare const telemetryMessageSchema: z.ZodObject<{
|
|
|
1973
2291
|
state?: {
|
|
1974
2292
|
scheduled: number;
|
|
1975
2293
|
running: number;
|
|
1976
|
-
runningFeeds: number;
|
|
1977
2294
|
errored: number;
|
|
2295
|
+
runningFeeds: number;
|
|
1978
2296
|
erroredFeeds: number;
|
|
1979
2297
|
} | undefined;
|
|
1980
2298
|
lane?: {
|
|
@@ -2245,7 +2563,7 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2245
2563
|
itemId?: string | undefined;
|
|
2246
2564
|
current?: number | undefined;
|
|
2247
2565
|
percent?: number | undefined;
|
|
2248
|
-
unit?: "nodes" | "
|
|
2566
|
+
unit?: "nodes" | "jobs" | "series" | "bytes" | "files" | undefined;
|
|
2249
2567
|
}, {
|
|
2250
2568
|
id: string;
|
|
2251
2569
|
type: "progress";
|
|
@@ -2496,6 +2814,58 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2496
2814
|
failed?: string | undefined;
|
|
2497
2815
|
}>, "many">>;
|
|
2498
2816
|
arrived: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2817
|
+
landed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2818
|
+
id: z.ZodNumber;
|
|
2819
|
+
title: z.ZodDefault<z.ZodString>;
|
|
2820
|
+
jobs: z.ZodNumber;
|
|
2821
|
+
status: z.ZodString;
|
|
2822
|
+
chain: z.ZodArray<z.ZodString, "many">;
|
|
2823
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2824
|
+
plugin: z.ZodString;
|
|
2825
|
+
count: z.ZodNumber;
|
|
2826
|
+
errored: z.ZodDefault<z.ZodNumber>;
|
|
2827
|
+
status: z.ZodString;
|
|
2828
|
+
parent: z.ZodNullable<z.ZodNumber>;
|
|
2829
|
+
}, "strip", z.ZodTypeAny, {
|
|
2830
|
+
status: string;
|
|
2831
|
+
count: number;
|
|
2832
|
+
plugin: string;
|
|
2833
|
+
errored: number;
|
|
2834
|
+
parent: number | null;
|
|
2835
|
+
}, {
|
|
2836
|
+
status: string;
|
|
2837
|
+
count: number;
|
|
2838
|
+
plugin: string;
|
|
2839
|
+
parent: number | null;
|
|
2840
|
+
errored?: number | undefined;
|
|
2841
|
+
}>, "many">>;
|
|
2842
|
+
}, "strip", z.ZodTypeAny, {
|
|
2843
|
+
id: number;
|
|
2844
|
+
status: string;
|
|
2845
|
+
title: string;
|
|
2846
|
+
jobs: number;
|
|
2847
|
+
chain: string[];
|
|
2848
|
+
groups: {
|
|
2849
|
+
status: string;
|
|
2850
|
+
count: number;
|
|
2851
|
+
plugin: string;
|
|
2852
|
+
errored: number;
|
|
2853
|
+
parent: number | null;
|
|
2854
|
+
}[];
|
|
2855
|
+
}, {
|
|
2856
|
+
id: number;
|
|
2857
|
+
status: string;
|
|
2858
|
+
jobs: number;
|
|
2859
|
+
chain: string[];
|
|
2860
|
+
title?: string | undefined;
|
|
2861
|
+
groups?: {
|
|
2862
|
+
status: string;
|
|
2863
|
+
count: number;
|
|
2864
|
+
plugin: string;
|
|
2865
|
+
parent: number | null;
|
|
2866
|
+
errored?: number | undefined;
|
|
2867
|
+
}[] | undefined;
|
|
2868
|
+
}>, "many">>;
|
|
2499
2869
|
roster: z.ZodOptional<z.ZodEnum<["delta", "full"]>>;
|
|
2500
2870
|
}, "strip", z.ZodTypeAny, {
|
|
2501
2871
|
loaded: number;
|
|
@@ -2516,6 +2886,20 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2516
2886
|
failed?: string | undefined;
|
|
2517
2887
|
} | undefined;
|
|
2518
2888
|
arrived?: number[] | undefined;
|
|
2889
|
+
landed?: {
|
|
2890
|
+
id: number;
|
|
2891
|
+
status: string;
|
|
2892
|
+
title: string;
|
|
2893
|
+
jobs: number;
|
|
2894
|
+
chain: string[];
|
|
2895
|
+
groups: {
|
|
2896
|
+
status: string;
|
|
2897
|
+
count: number;
|
|
2898
|
+
plugin: string;
|
|
2899
|
+
errored: number;
|
|
2900
|
+
parent: number | null;
|
|
2901
|
+
}[];
|
|
2902
|
+
}[] | undefined;
|
|
2519
2903
|
roster?: "delta" | "full" | undefined;
|
|
2520
2904
|
}, {
|
|
2521
2905
|
loaded: number;
|
|
@@ -2536,6 +2920,20 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2536
2920
|
failed?: string | undefined;
|
|
2537
2921
|
} | undefined;
|
|
2538
2922
|
arrived?: number[] | undefined;
|
|
2923
|
+
landed?: {
|
|
2924
|
+
id: number;
|
|
2925
|
+
status: string;
|
|
2926
|
+
jobs: number;
|
|
2927
|
+
chain: string[];
|
|
2928
|
+
title?: string | undefined;
|
|
2929
|
+
groups?: {
|
|
2930
|
+
status: string;
|
|
2931
|
+
count: number;
|
|
2932
|
+
plugin: string;
|
|
2933
|
+
parent: number | null;
|
|
2934
|
+
errored?: number | undefined;
|
|
2935
|
+
}[] | undefined;
|
|
2936
|
+
}[] | undefined;
|
|
2539
2937
|
roster?: "delta" | "full" | undefined;
|
|
2540
2938
|
}>>;
|
|
2541
2939
|
procIndex: z.ZodOptional<z.ZodObject<{
|
|
@@ -2589,6 +2987,20 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2589
2987
|
failed?: string | undefined;
|
|
2590
2988
|
} | undefined;
|
|
2591
2989
|
arrived?: number[] | undefined;
|
|
2990
|
+
landed?: {
|
|
2991
|
+
id: number;
|
|
2992
|
+
status: string;
|
|
2993
|
+
title: string;
|
|
2994
|
+
jobs: number;
|
|
2995
|
+
chain: string[];
|
|
2996
|
+
groups: {
|
|
2997
|
+
status: string;
|
|
2998
|
+
count: number;
|
|
2999
|
+
plugin: string;
|
|
3000
|
+
errored: number;
|
|
3001
|
+
parent: number | null;
|
|
3002
|
+
}[];
|
|
3003
|
+
}[] | undefined;
|
|
2592
3004
|
roster?: "delta" | "full" | undefined;
|
|
2593
3005
|
} | undefined;
|
|
2594
3006
|
procIndex?: {
|
|
@@ -2626,6 +3038,20 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2626
3038
|
failed?: string | undefined;
|
|
2627
3039
|
} | undefined;
|
|
2628
3040
|
arrived?: number[] | undefined;
|
|
3041
|
+
landed?: {
|
|
3042
|
+
id: number;
|
|
3043
|
+
status: string;
|
|
3044
|
+
jobs: number;
|
|
3045
|
+
chain: string[];
|
|
3046
|
+
title?: string | undefined;
|
|
3047
|
+
groups?: {
|
|
3048
|
+
status: string;
|
|
3049
|
+
count: number;
|
|
3050
|
+
plugin: string;
|
|
3051
|
+
parent: number | null;
|
|
3052
|
+
errored?: number | undefined;
|
|
3053
|
+
}[] | undefined;
|
|
3054
|
+
}[] | undefined;
|
|
2629
3055
|
roster?: "delta" | "full" | undefined;
|
|
2630
3056
|
} | undefined;
|
|
2631
3057
|
procIndex?: {
|
|
@@ -2666,6 +3092,20 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2666
3092
|
failed?: string | undefined;
|
|
2667
3093
|
} | undefined;
|
|
2668
3094
|
arrived?: number[] | undefined;
|
|
3095
|
+
landed?: {
|
|
3096
|
+
id: number;
|
|
3097
|
+
status: string;
|
|
3098
|
+
title: string;
|
|
3099
|
+
jobs: number;
|
|
3100
|
+
chain: string[];
|
|
3101
|
+
groups: {
|
|
3102
|
+
status: string;
|
|
3103
|
+
count: number;
|
|
3104
|
+
plugin: string;
|
|
3105
|
+
errored: number;
|
|
3106
|
+
parent: number | null;
|
|
3107
|
+
}[];
|
|
3108
|
+
}[] | undefined;
|
|
2669
3109
|
roster?: "delta" | "full" | undefined;
|
|
2670
3110
|
} | undefined;
|
|
2671
3111
|
procIndex?: {
|
|
@@ -2706,6 +3146,20 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2706
3146
|
failed?: string | undefined;
|
|
2707
3147
|
} | undefined;
|
|
2708
3148
|
arrived?: number[] | undefined;
|
|
3149
|
+
landed?: {
|
|
3150
|
+
id: number;
|
|
3151
|
+
status: string;
|
|
3152
|
+
jobs: number;
|
|
3153
|
+
chain: string[];
|
|
3154
|
+
title?: string | undefined;
|
|
3155
|
+
groups?: {
|
|
3156
|
+
status: string;
|
|
3157
|
+
count: number;
|
|
3158
|
+
plugin: string;
|
|
3159
|
+
parent: number | null;
|
|
3160
|
+
errored?: number | undefined;
|
|
3161
|
+
}[] | undefined;
|
|
3162
|
+
}[] | undefined;
|
|
2709
3163
|
roster?: "delta" | "full" | undefined;
|
|
2710
3164
|
} | undefined;
|
|
2711
3165
|
procIndex?: {
|
|
@@ -2781,14 +3235,14 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2781
3235
|
}, "strip", z.ZodTypeAny, {
|
|
2782
3236
|
scheduled: number;
|
|
2783
3237
|
running: number;
|
|
2784
|
-
runningFeeds: number;
|
|
2785
3238
|
errored: number;
|
|
3239
|
+
runningFeeds: number;
|
|
2786
3240
|
erroredFeeds: number;
|
|
2787
3241
|
}, {
|
|
2788
3242
|
scheduled: number;
|
|
2789
3243
|
running: number;
|
|
2790
|
-
runningFeeds: number;
|
|
2791
3244
|
errored: number;
|
|
3245
|
+
runningFeeds: number;
|
|
2792
3246
|
erroredFeeds: number;
|
|
2793
3247
|
}>>;
|
|
2794
3248
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2800,8 +3254,8 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2800
3254
|
state?: {
|
|
2801
3255
|
scheduled: number;
|
|
2802
3256
|
running: number;
|
|
2803
|
-
runningFeeds: number;
|
|
2804
3257
|
errored: number;
|
|
3258
|
+
runningFeeds: number;
|
|
2805
3259
|
erroredFeeds: number;
|
|
2806
3260
|
} | undefined;
|
|
2807
3261
|
lane?: {
|
|
@@ -2825,8 +3279,8 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2825
3279
|
state?: {
|
|
2826
3280
|
scheduled: number;
|
|
2827
3281
|
running: number;
|
|
2828
|
-
runningFeeds: number;
|
|
2829
3282
|
errored: number;
|
|
3283
|
+
runningFeeds: number;
|
|
2830
3284
|
erroredFeeds: number;
|
|
2831
3285
|
} | undefined;
|
|
2832
3286
|
lane?: {
|
|
@@ -2953,6 +3407,57 @@ export declare const serverMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
2953
3407
|
type: "watched";
|
|
2954
3408
|
subject: string;
|
|
2955
3409
|
state: "live" | "settled" | "stale";
|
|
3410
|
+
}>, z.ZodObject<{
|
|
3411
|
+
type: z.ZodLiteral<"numbered">;
|
|
3412
|
+
/** Rises with each answer, so a surface can tell newer from older. */
|
|
3413
|
+
id: z.ZodNumber;
|
|
3414
|
+
/** The line that produced the answer, which is how a pane recognises its own. */
|
|
3415
|
+
source: z.ZodString;
|
|
3416
|
+
/** How many rows are numbered. */
|
|
3417
|
+
rows: z.ZodNumber;
|
|
3418
|
+
/**
|
|
3419
|
+
* Each numbered row's handle beside its address.
|
|
3420
|
+
*
|
|
3421
|
+
* An index says what it counts — `@SER003`, `@STD001`, `@FIL012`,
|
|
3422
|
+
* `@DIR004` — one sequence per kind across the answer. A surface finds
|
|
3423
|
+
* each of its rows by address and draws the code, rather than counting
|
|
3424
|
+
* down the screen, so a sorted or filtered listing still shows each row
|
|
3425
|
+
* the handle that reaches it. Capped: a listing of thousands is numbered
|
|
3426
|
+
* in the kernel and simply unnumbered on screen.
|
|
3427
|
+
*/
|
|
3428
|
+
handles: z.ZodArray<z.ZodObject<{
|
|
3429
|
+
kind: z.ZodString;
|
|
3430
|
+
ordinal: z.ZodNumber;
|
|
3431
|
+
address: z.ZodString;
|
|
3432
|
+
}, "strip", z.ZodTypeAny, {
|
|
3433
|
+
kind: string;
|
|
3434
|
+
address: string;
|
|
3435
|
+
ordinal: number;
|
|
3436
|
+
}, {
|
|
3437
|
+
kind: string;
|
|
3438
|
+
address: string;
|
|
3439
|
+
ordinal: number;
|
|
3440
|
+
}>, "many">;
|
|
3441
|
+
}, "strip", z.ZodTypeAny, {
|
|
3442
|
+
id: number;
|
|
3443
|
+
type: "numbered";
|
|
3444
|
+
rows: number;
|
|
3445
|
+
source: string;
|
|
3446
|
+
handles: {
|
|
3447
|
+
kind: string;
|
|
3448
|
+
address: string;
|
|
3449
|
+
ordinal: number;
|
|
3450
|
+
}[];
|
|
3451
|
+
}, {
|
|
3452
|
+
id: number;
|
|
3453
|
+
type: "numbered";
|
|
3454
|
+
rows: number;
|
|
3455
|
+
source: string;
|
|
3456
|
+
handles: {
|
|
3457
|
+
kind: string;
|
|
3458
|
+
address: string;
|
|
3459
|
+
ordinal: number;
|
|
3460
|
+
}[];
|
|
2956
3461
|
}>]>;
|
|
2957
3462
|
/** A message the daemon sends to a surface. */
|
|
2958
3463
|
export type ServerMessage = z.infer<typeof serverMessageSchema>;
|