@nestr/mcp 0.1.32 → 0.1.33
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/build/api/client.d.ts +8 -0
- package/build/api/client.d.ts.map +1 -1
- package/build/api/client.js +8 -0
- package/build/api/client.js.map +1 -1
- package/build/apps/index.d.ts.map +1 -1
- package/build/apps/index.js +99 -19
- package/build/apps/index.js.map +1 -1
- package/build/server.d.ts.map +1 -1
- package/build/server.js +21 -20
- package/build/server.js.map +1 -1
- package/build/tools/index.d.ts +98 -85
- package/build/tools/index.d.ts.map +1 -1
- package/build/tools/index.js +44 -6
- package/build/tools/index.js.map +1 -1
- package/package.json +1 -1
package/build/tools/index.d.ts
CHANGED
|
@@ -378,6 +378,19 @@ export declare const schemas: {
|
|
|
378
378
|
}, {
|
|
379
379
|
nestIds: string[];
|
|
380
380
|
}>;
|
|
381
|
+
reorderInboxItem: z.ZodObject<{
|
|
382
|
+
nestId: z.ZodString;
|
|
383
|
+
position: z.ZodEnum<["before", "after"]>;
|
|
384
|
+
relatedNestId: z.ZodString;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
nestId: string;
|
|
387
|
+
position: "before" | "after";
|
|
388
|
+
relatedNestId: string;
|
|
389
|
+
}, {
|
|
390
|
+
nestId: string;
|
|
391
|
+
position: "before" | "after";
|
|
392
|
+
relatedNestId: string;
|
|
393
|
+
}>;
|
|
381
394
|
listPersonalLabels: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
382
395
|
createPersonalLabel: z.ZodObject<{
|
|
383
396
|
title: z.ZodString;
|
|
@@ -472,10 +485,10 @@ export declare const toolDefinitions: ({
|
|
|
472
485
|
to?: undefined;
|
|
473
486
|
completedAfter?: undefined;
|
|
474
487
|
nestIds?: undefined;
|
|
475
|
-
color?: undefined;
|
|
476
|
-
icon?: undefined;
|
|
477
488
|
position?: undefined;
|
|
478
489
|
relatedNestId?: undefined;
|
|
490
|
+
color?: undefined;
|
|
491
|
+
icon?: undefined;
|
|
479
492
|
};
|
|
480
493
|
required?: undefined;
|
|
481
494
|
};
|
|
@@ -526,10 +539,10 @@ export declare const toolDefinitions: ({
|
|
|
526
539
|
to?: undefined;
|
|
527
540
|
completedAfter?: undefined;
|
|
528
541
|
nestIds?: undefined;
|
|
529
|
-
color?: undefined;
|
|
530
|
-
icon?: undefined;
|
|
531
542
|
position?: undefined;
|
|
532
543
|
relatedNestId?: undefined;
|
|
544
|
+
color?: undefined;
|
|
545
|
+
icon?: undefined;
|
|
533
546
|
};
|
|
534
547
|
required: string[];
|
|
535
548
|
};
|
|
@@ -603,10 +616,10 @@ export declare const toolDefinitions: ({
|
|
|
603
616
|
to?: undefined;
|
|
604
617
|
completedAfter?: undefined;
|
|
605
618
|
nestIds?: undefined;
|
|
606
|
-
color?: undefined;
|
|
607
|
-
icon?: undefined;
|
|
608
619
|
position?: undefined;
|
|
609
620
|
relatedNestId?: undefined;
|
|
621
|
+
color?: undefined;
|
|
622
|
+
icon?: undefined;
|
|
610
623
|
};
|
|
611
624
|
required: string[];
|
|
612
625
|
};
|
|
@@ -666,10 +679,10 @@ export declare const toolDefinitions: ({
|
|
|
666
679
|
to?: undefined;
|
|
667
680
|
completedAfter?: undefined;
|
|
668
681
|
nestIds?: undefined;
|
|
669
|
-
color?: undefined;
|
|
670
|
-
icon?: undefined;
|
|
671
682
|
position?: undefined;
|
|
672
683
|
relatedNestId?: undefined;
|
|
684
|
+
color?: undefined;
|
|
685
|
+
icon?: undefined;
|
|
673
686
|
};
|
|
674
687
|
required: string[];
|
|
675
688
|
};
|
|
@@ -727,10 +740,10 @@ export declare const toolDefinitions: ({
|
|
|
727
740
|
to?: undefined;
|
|
728
741
|
completedAfter?: undefined;
|
|
729
742
|
nestIds?: undefined;
|
|
730
|
-
color?: undefined;
|
|
731
|
-
icon?: undefined;
|
|
732
743
|
position?: undefined;
|
|
733
744
|
relatedNestId?: undefined;
|
|
745
|
+
color?: undefined;
|
|
746
|
+
icon?: undefined;
|
|
734
747
|
};
|
|
735
748
|
required: string[];
|
|
736
749
|
};
|
|
@@ -787,10 +800,10 @@ export declare const toolDefinitions: ({
|
|
|
787
800
|
to?: undefined;
|
|
788
801
|
completedAfter?: undefined;
|
|
789
802
|
nestIds?: undefined;
|
|
790
|
-
color?: undefined;
|
|
791
|
-
icon?: undefined;
|
|
792
803
|
position?: undefined;
|
|
793
804
|
relatedNestId?: undefined;
|
|
805
|
+
color?: undefined;
|
|
806
|
+
icon?: undefined;
|
|
794
807
|
};
|
|
795
808
|
required: string[];
|
|
796
809
|
};
|
|
@@ -863,10 +876,10 @@ export declare const toolDefinitions: ({
|
|
|
863
876
|
to?: undefined;
|
|
864
877
|
completedAfter?: undefined;
|
|
865
878
|
nestIds?: undefined;
|
|
866
|
-
color?: undefined;
|
|
867
|
-
icon?: undefined;
|
|
868
879
|
position?: undefined;
|
|
869
880
|
relatedNestId?: undefined;
|
|
881
|
+
color?: undefined;
|
|
882
|
+
icon?: undefined;
|
|
870
883
|
};
|
|
871
884
|
required: string[];
|
|
872
885
|
};
|
|
@@ -950,10 +963,10 @@ export declare const toolDefinitions: ({
|
|
|
950
963
|
to?: undefined;
|
|
951
964
|
completedAfter?: undefined;
|
|
952
965
|
nestIds?: undefined;
|
|
953
|
-
color?: undefined;
|
|
954
|
-
icon?: undefined;
|
|
955
966
|
position?: undefined;
|
|
956
967
|
relatedNestId?: undefined;
|
|
968
|
+
color?: undefined;
|
|
969
|
+
icon?: undefined;
|
|
957
970
|
};
|
|
958
971
|
required: string[];
|
|
959
972
|
};
|
|
@@ -1001,10 +1014,10 @@ export declare const toolDefinitions: ({
|
|
|
1001
1014
|
to?: undefined;
|
|
1002
1015
|
completedAfter?: undefined;
|
|
1003
1016
|
nestIds?: undefined;
|
|
1004
|
-
color?: undefined;
|
|
1005
|
-
icon?: undefined;
|
|
1006
1017
|
position?: undefined;
|
|
1007
1018
|
relatedNestId?: undefined;
|
|
1019
|
+
color?: undefined;
|
|
1020
|
+
icon?: undefined;
|
|
1008
1021
|
};
|
|
1009
1022
|
required: string[];
|
|
1010
1023
|
};
|
|
@@ -1055,10 +1068,10 @@ export declare const toolDefinitions: ({
|
|
|
1055
1068
|
to?: undefined;
|
|
1056
1069
|
completedAfter?: undefined;
|
|
1057
1070
|
nestIds?: undefined;
|
|
1058
|
-
color?: undefined;
|
|
1059
|
-
icon?: undefined;
|
|
1060
1071
|
position?: undefined;
|
|
1061
1072
|
relatedNestId?: undefined;
|
|
1073
|
+
color?: undefined;
|
|
1074
|
+
icon?: undefined;
|
|
1062
1075
|
};
|
|
1063
1076
|
required: string[];
|
|
1064
1077
|
};
|
|
@@ -1115,10 +1128,10 @@ export declare const toolDefinitions: ({
|
|
|
1115
1128
|
to?: undefined;
|
|
1116
1129
|
completedAfter?: undefined;
|
|
1117
1130
|
nestIds?: undefined;
|
|
1118
|
-
color?: undefined;
|
|
1119
|
-
icon?: undefined;
|
|
1120
1131
|
position?: undefined;
|
|
1121
1132
|
relatedNestId?: undefined;
|
|
1133
|
+
color?: undefined;
|
|
1134
|
+
icon?: undefined;
|
|
1122
1135
|
};
|
|
1123
1136
|
required: string[];
|
|
1124
1137
|
};
|
|
@@ -1178,10 +1191,10 @@ export declare const toolDefinitions: ({
|
|
|
1178
1191
|
to?: undefined;
|
|
1179
1192
|
completedAfter?: undefined;
|
|
1180
1193
|
nestIds?: undefined;
|
|
1181
|
-
color?: undefined;
|
|
1182
|
-
icon?: undefined;
|
|
1183
1194
|
position?: undefined;
|
|
1184
1195
|
relatedNestId?: undefined;
|
|
1196
|
+
color?: undefined;
|
|
1197
|
+
icon?: undefined;
|
|
1185
1198
|
};
|
|
1186
1199
|
required: string[];
|
|
1187
1200
|
};
|
|
@@ -1232,10 +1245,10 @@ export declare const toolDefinitions: ({
|
|
|
1232
1245
|
to?: undefined;
|
|
1233
1246
|
completedAfter?: undefined;
|
|
1234
1247
|
nestIds?: undefined;
|
|
1235
|
-
color?: undefined;
|
|
1236
|
-
icon?: undefined;
|
|
1237
1248
|
position?: undefined;
|
|
1238
1249
|
relatedNestId?: undefined;
|
|
1250
|
+
color?: undefined;
|
|
1251
|
+
icon?: undefined;
|
|
1239
1252
|
};
|
|
1240
1253
|
required: string[];
|
|
1241
1254
|
};
|
|
@@ -1292,10 +1305,10 @@ export declare const toolDefinitions: ({
|
|
|
1292
1305
|
to?: undefined;
|
|
1293
1306
|
completedAfter?: undefined;
|
|
1294
1307
|
nestIds?: undefined;
|
|
1295
|
-
color?: undefined;
|
|
1296
|
-
icon?: undefined;
|
|
1297
1308
|
position?: undefined;
|
|
1298
1309
|
relatedNestId?: undefined;
|
|
1310
|
+
color?: undefined;
|
|
1311
|
+
icon?: undefined;
|
|
1299
1312
|
};
|
|
1300
1313
|
required: string[];
|
|
1301
1314
|
};
|
|
@@ -1352,10 +1365,10 @@ export declare const toolDefinitions: ({
|
|
|
1352
1365
|
to?: undefined;
|
|
1353
1366
|
completedAfter?: undefined;
|
|
1354
1367
|
nestIds?: undefined;
|
|
1355
|
-
color?: undefined;
|
|
1356
|
-
icon?: undefined;
|
|
1357
1368
|
position?: undefined;
|
|
1358
1369
|
relatedNestId?: undefined;
|
|
1370
|
+
color?: undefined;
|
|
1371
|
+
icon?: undefined;
|
|
1359
1372
|
};
|
|
1360
1373
|
required: string[];
|
|
1361
1374
|
};
|
|
@@ -1410,10 +1423,10 @@ export declare const toolDefinitions: ({
|
|
|
1410
1423
|
to?: undefined;
|
|
1411
1424
|
completedAfter?: undefined;
|
|
1412
1425
|
nestIds?: undefined;
|
|
1413
|
-
color?: undefined;
|
|
1414
|
-
icon?: undefined;
|
|
1415
1426
|
position?: undefined;
|
|
1416
1427
|
relatedNestId?: undefined;
|
|
1428
|
+
color?: undefined;
|
|
1429
|
+
icon?: undefined;
|
|
1417
1430
|
};
|
|
1418
1431
|
required: string[];
|
|
1419
1432
|
};
|
|
@@ -1467,10 +1480,10 @@ export declare const toolDefinitions: ({
|
|
|
1467
1480
|
to?: undefined;
|
|
1468
1481
|
completedAfter?: undefined;
|
|
1469
1482
|
nestIds?: undefined;
|
|
1470
|
-
color?: undefined;
|
|
1471
|
-
icon?: undefined;
|
|
1472
1483
|
position?: undefined;
|
|
1473
1484
|
relatedNestId?: undefined;
|
|
1485
|
+
color?: undefined;
|
|
1486
|
+
icon?: undefined;
|
|
1474
1487
|
};
|
|
1475
1488
|
required: string[];
|
|
1476
1489
|
};
|
|
@@ -1521,10 +1534,10 @@ export declare const toolDefinitions: ({
|
|
|
1521
1534
|
to?: undefined;
|
|
1522
1535
|
completedAfter?: undefined;
|
|
1523
1536
|
nestIds?: undefined;
|
|
1524
|
-
color?: undefined;
|
|
1525
|
-
icon?: undefined;
|
|
1526
1537
|
position?: undefined;
|
|
1527
1538
|
relatedNestId?: undefined;
|
|
1539
|
+
color?: undefined;
|
|
1540
|
+
icon?: undefined;
|
|
1528
1541
|
};
|
|
1529
1542
|
required: string[];
|
|
1530
1543
|
};
|
|
@@ -1575,10 +1588,10 @@ export declare const toolDefinitions: ({
|
|
|
1575
1588
|
to?: undefined;
|
|
1576
1589
|
completedAfter?: undefined;
|
|
1577
1590
|
nestIds?: undefined;
|
|
1578
|
-
color?: undefined;
|
|
1579
|
-
icon?: undefined;
|
|
1580
1591
|
position?: undefined;
|
|
1581
1592
|
relatedNestId?: undefined;
|
|
1593
|
+
color?: undefined;
|
|
1594
|
+
icon?: undefined;
|
|
1582
1595
|
};
|
|
1583
1596
|
required: string[];
|
|
1584
1597
|
};
|
|
@@ -1638,10 +1651,10 @@ export declare const toolDefinitions: ({
|
|
|
1638
1651
|
labelId?: undefined;
|
|
1639
1652
|
completedAfter?: undefined;
|
|
1640
1653
|
nestIds?: undefined;
|
|
1641
|
-
color?: undefined;
|
|
1642
|
-
icon?: undefined;
|
|
1643
1654
|
position?: undefined;
|
|
1644
1655
|
relatedNestId?: undefined;
|
|
1656
|
+
color?: undefined;
|
|
1657
|
+
icon?: undefined;
|
|
1645
1658
|
};
|
|
1646
1659
|
required: string[];
|
|
1647
1660
|
};
|
|
@@ -1689,10 +1702,10 @@ export declare const toolDefinitions: ({
|
|
|
1689
1702
|
to?: undefined;
|
|
1690
1703
|
completedAfter?: undefined;
|
|
1691
1704
|
nestIds?: undefined;
|
|
1692
|
-
color?: undefined;
|
|
1693
|
-
icon?: undefined;
|
|
1694
1705
|
position?: undefined;
|
|
1695
1706
|
relatedNestId?: undefined;
|
|
1707
|
+
color?: undefined;
|
|
1708
|
+
icon?: undefined;
|
|
1696
1709
|
};
|
|
1697
1710
|
required: string[];
|
|
1698
1711
|
};
|
|
@@ -1743,10 +1756,10 @@ export declare const toolDefinitions: ({
|
|
|
1743
1756
|
from?: undefined;
|
|
1744
1757
|
to?: undefined;
|
|
1745
1758
|
nestIds?: undefined;
|
|
1746
|
-
color?: undefined;
|
|
1747
|
-
icon?: undefined;
|
|
1748
1759
|
position?: undefined;
|
|
1749
1760
|
relatedNestId?: undefined;
|
|
1761
|
+
color?: undefined;
|
|
1762
|
+
icon?: undefined;
|
|
1750
1763
|
};
|
|
1751
1764
|
required?: undefined;
|
|
1752
1765
|
};
|
|
@@ -1801,10 +1814,10 @@ export declare const toolDefinitions: ({
|
|
|
1801
1814
|
to?: undefined;
|
|
1802
1815
|
completedAfter?: undefined;
|
|
1803
1816
|
nestIds?: undefined;
|
|
1804
|
-
color?: undefined;
|
|
1805
|
-
icon?: undefined;
|
|
1806
1817
|
position?: undefined;
|
|
1807
1818
|
relatedNestId?: undefined;
|
|
1819
|
+
color?: undefined;
|
|
1820
|
+
icon?: undefined;
|
|
1808
1821
|
};
|
|
1809
1822
|
required: string[];
|
|
1810
1823
|
};
|
|
@@ -1855,10 +1868,10 @@ export declare const toolDefinitions: ({
|
|
|
1855
1868
|
to?: undefined;
|
|
1856
1869
|
completedAfter?: undefined;
|
|
1857
1870
|
nestIds?: undefined;
|
|
1858
|
-
color?: undefined;
|
|
1859
|
-
icon?: undefined;
|
|
1860
1871
|
position?: undefined;
|
|
1861
1872
|
relatedNestId?: undefined;
|
|
1873
|
+
color?: undefined;
|
|
1874
|
+
icon?: undefined;
|
|
1862
1875
|
};
|
|
1863
1876
|
required: string[];
|
|
1864
1877
|
};
|
|
@@ -1918,10 +1931,10 @@ export declare const toolDefinitions: ({
|
|
|
1918
1931
|
to?: undefined;
|
|
1919
1932
|
completedAfter?: undefined;
|
|
1920
1933
|
nestIds?: undefined;
|
|
1921
|
-
color?: undefined;
|
|
1922
|
-
icon?: undefined;
|
|
1923
1934
|
position?: undefined;
|
|
1924
1935
|
relatedNestId?: undefined;
|
|
1936
|
+
color?: undefined;
|
|
1937
|
+
icon?: undefined;
|
|
1925
1938
|
};
|
|
1926
1939
|
required: string[];
|
|
1927
1940
|
};
|
|
@@ -1972,10 +1985,10 @@ export declare const toolDefinitions: ({
|
|
|
1972
1985
|
from?: undefined;
|
|
1973
1986
|
to?: undefined;
|
|
1974
1987
|
completedAfter?: undefined;
|
|
1975
|
-
color?: undefined;
|
|
1976
|
-
icon?: undefined;
|
|
1977
1988
|
position?: undefined;
|
|
1978
1989
|
relatedNestId?: undefined;
|
|
1990
|
+
color?: undefined;
|
|
1991
|
+
icon?: undefined;
|
|
1979
1992
|
};
|
|
1980
1993
|
required: string[];
|
|
1981
1994
|
};
|
|
@@ -1986,6 +1999,19 @@ export declare const toolDefinitions: ({
|
|
|
1986
1999
|
inputSchema: {
|
|
1987
2000
|
type: "object";
|
|
1988
2001
|
properties: {
|
|
2002
|
+
nestId: {
|
|
2003
|
+
type: string;
|
|
2004
|
+
description: string;
|
|
2005
|
+
};
|
|
2006
|
+
position: {
|
|
2007
|
+
type: string;
|
|
2008
|
+
enum: string[];
|
|
2009
|
+
description: string;
|
|
2010
|
+
};
|
|
2011
|
+
relatedNestId: {
|
|
2012
|
+
type: string;
|
|
2013
|
+
description: string;
|
|
2014
|
+
};
|
|
1989
2015
|
search?: undefined;
|
|
1990
2016
|
limit?: undefined;
|
|
1991
2017
|
page?: undefined;
|
|
@@ -1999,7 +2025,6 @@ export declare const toolDefinitions: ({
|
|
|
1999
2025
|
apps?: undefined;
|
|
2000
2026
|
layout?: undefined;
|
|
2001
2027
|
query?: undefined;
|
|
2002
|
-
nestId?: undefined;
|
|
2003
2028
|
fieldsMetaData?: undefined;
|
|
2004
2029
|
parentId?: undefined;
|
|
2005
2030
|
description?: undefined;
|
|
@@ -2022,10 +2047,8 @@ export declare const toolDefinitions: ({
|
|
|
2022
2047
|
nestIds?: undefined;
|
|
2023
2048
|
color?: undefined;
|
|
2024
2049
|
icon?: undefined;
|
|
2025
|
-
position?: undefined;
|
|
2026
|
-
relatedNestId?: undefined;
|
|
2027
2050
|
};
|
|
2028
|
-
required
|
|
2051
|
+
required: string[];
|
|
2029
2052
|
};
|
|
2030
2053
|
_meta?: undefined;
|
|
2031
2054
|
} | {
|
|
@@ -2034,27 +2057,12 @@ export declare const toolDefinitions: ({
|
|
|
2034
2057
|
inputSchema: {
|
|
2035
2058
|
type: "object";
|
|
2036
2059
|
properties: {
|
|
2037
|
-
title: {
|
|
2038
|
-
type: string;
|
|
2039
|
-
description: string;
|
|
2040
|
-
};
|
|
2041
|
-
description: {
|
|
2042
|
-
type: string;
|
|
2043
|
-
description: string;
|
|
2044
|
-
};
|
|
2045
|
-
color: {
|
|
2046
|
-
type: string;
|
|
2047
|
-
description: string;
|
|
2048
|
-
};
|
|
2049
|
-
icon: {
|
|
2050
|
-
type: string;
|
|
2051
|
-
description: string;
|
|
2052
|
-
};
|
|
2053
2060
|
search?: undefined;
|
|
2054
2061
|
limit?: undefined;
|
|
2055
2062
|
page?: undefined;
|
|
2056
2063
|
stripDescription?: undefined;
|
|
2057
2064
|
workspaceId?: undefined;
|
|
2065
|
+
title?: undefined;
|
|
2058
2066
|
purpose?: undefined;
|
|
2059
2067
|
type?: undefined;
|
|
2060
2068
|
governance?: undefined;
|
|
@@ -2065,6 +2073,7 @@ export declare const toolDefinitions: ({
|
|
|
2065
2073
|
nestId?: undefined;
|
|
2066
2074
|
fieldsMetaData?: undefined;
|
|
2067
2075
|
parentId?: undefined;
|
|
2076
|
+
description?: undefined;
|
|
2068
2077
|
labels?: undefined;
|
|
2069
2078
|
users?: undefined;
|
|
2070
2079
|
fields?: undefined;
|
|
@@ -2084,8 +2093,10 @@ export declare const toolDefinitions: ({
|
|
|
2084
2093
|
nestIds?: undefined;
|
|
2085
2094
|
position?: undefined;
|
|
2086
2095
|
relatedNestId?: undefined;
|
|
2096
|
+
color?: undefined;
|
|
2097
|
+
icon?: undefined;
|
|
2087
2098
|
};
|
|
2088
|
-
required
|
|
2099
|
+
required?: undefined;
|
|
2089
2100
|
};
|
|
2090
2101
|
_meta?: undefined;
|
|
2091
2102
|
} | {
|
|
@@ -2094,16 +2105,19 @@ export declare const toolDefinitions: ({
|
|
|
2094
2105
|
inputSchema: {
|
|
2095
2106
|
type: "object";
|
|
2096
2107
|
properties: {
|
|
2097
|
-
|
|
2108
|
+
title: {
|
|
2098
2109
|
type: string;
|
|
2099
2110
|
description: string;
|
|
2100
2111
|
};
|
|
2101
|
-
|
|
2112
|
+
description: {
|
|
2102
2113
|
type: string;
|
|
2103
|
-
enum: string[];
|
|
2104
2114
|
description: string;
|
|
2105
2115
|
};
|
|
2106
|
-
|
|
2116
|
+
color: {
|
|
2117
|
+
type: string;
|
|
2118
|
+
description: string;
|
|
2119
|
+
};
|
|
2120
|
+
icon: {
|
|
2107
2121
|
type: string;
|
|
2108
2122
|
description: string;
|
|
2109
2123
|
};
|
|
@@ -2112,7 +2126,6 @@ export declare const toolDefinitions: ({
|
|
|
2112
2126
|
page?: undefined;
|
|
2113
2127
|
stripDescription?: undefined;
|
|
2114
2128
|
workspaceId?: undefined;
|
|
2115
|
-
title?: undefined;
|
|
2116
2129
|
purpose?: undefined;
|
|
2117
2130
|
type?: undefined;
|
|
2118
2131
|
governance?: undefined;
|
|
@@ -2120,9 +2133,9 @@ export declare const toolDefinitions: ({
|
|
|
2120
2133
|
apps?: undefined;
|
|
2121
2134
|
layout?: undefined;
|
|
2122
2135
|
query?: undefined;
|
|
2136
|
+
nestId?: undefined;
|
|
2123
2137
|
fieldsMetaData?: undefined;
|
|
2124
2138
|
parentId?: undefined;
|
|
2125
|
-
description?: undefined;
|
|
2126
2139
|
labels?: undefined;
|
|
2127
2140
|
users?: undefined;
|
|
2128
2141
|
fields?: undefined;
|
|
@@ -2140,8 +2153,8 @@ export declare const toolDefinitions: ({
|
|
|
2140
2153
|
to?: undefined;
|
|
2141
2154
|
completedAfter?: undefined;
|
|
2142
2155
|
nestIds?: undefined;
|
|
2143
|
-
|
|
2144
|
-
|
|
2156
|
+
position?: undefined;
|
|
2157
|
+
relatedNestId?: undefined;
|
|
2145
2158
|
};
|
|
2146
2159
|
required: string[];
|
|
2147
2160
|
};
|
|
@@ -2195,10 +2208,10 @@ export declare const toolDefinitions: ({
|
|
|
2195
2208
|
from?: undefined;
|
|
2196
2209
|
to?: undefined;
|
|
2197
2210
|
completedAfter?: undefined;
|
|
2198
|
-
color?: undefined;
|
|
2199
|
-
icon?: undefined;
|
|
2200
2211
|
position?: undefined;
|
|
2201
2212
|
relatedNestId?: undefined;
|
|
2213
|
+
color?: undefined;
|
|
2214
|
+
icon?: undefined;
|
|
2202
2215
|
};
|
|
2203
2216
|
required: string[];
|
|
2204
2217
|
};
|
|
@@ -2246,10 +2259,10 @@ export declare const toolDefinitions: ({
|
|
|
2246
2259
|
to?: undefined;
|
|
2247
2260
|
completedAfter?: undefined;
|
|
2248
2261
|
nestIds?: undefined;
|
|
2249
|
-
color?: undefined;
|
|
2250
|
-
icon?: undefined;
|
|
2251
2262
|
position?: undefined;
|
|
2252
2263
|
relatedNestId?: undefined;
|
|
2264
|
+
color?: undefined;
|
|
2265
|
+
icon?: undefined;
|
|
2253
2266
|
};
|
|
2254
2267
|
required?: undefined;
|
|
2255
2268
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+gB3B,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAuBF,wBAAsB,cAAc,CAClC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,UAAU,CAAC,CAcrB"}
|
package/build/tools/index.js
CHANGED
|
@@ -9,10 +9,25 @@ import { appResources } from "../apps/index.js";
|
|
|
9
9
|
// IMPORTANT: Only use for completable items (tasks, projects, todos, inbox items).
|
|
10
10
|
// Do NOT use for structural nests like roles, circles, metrics, policies, etc.
|
|
11
11
|
const completableListUi = { ui: { resourceUri: appResources.completableList.uri } };
|
|
12
|
+
// Wrap a compacted response with title and source for the completable list app
|
|
13
|
+
function completableResponse(data, source, title) {
|
|
14
|
+
// Extract items array from different response shapes
|
|
15
|
+
let items;
|
|
16
|
+
if (Array.isArray(data)) {
|
|
17
|
+
items = data;
|
|
18
|
+
}
|
|
19
|
+
else if (data && typeof data === "object" && "data" in data && Array.isArray(data.data)) {
|
|
20
|
+
items = data.data;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
items = [];
|
|
24
|
+
}
|
|
25
|
+
return { title, source, items };
|
|
26
|
+
}
|
|
12
27
|
// Fields to keep for compact list responses (reduces token usage)
|
|
13
28
|
const COMPACT_FIELDS = {
|
|
14
29
|
// Common fields for all nests (includes fields needed by the completable list app)
|
|
15
|
-
base: ["_id", "title", "purpose", "completed", "labels", "path", "description", "due"],
|
|
30
|
+
base: ["_id", "title", "purpose", "completed", "labels", "path", "parentId", "ancestors", "description", "due"],
|
|
16
31
|
// Additional fields for roles
|
|
17
32
|
role: ["accountabilities", "domains"],
|
|
18
33
|
// Additional fields for users
|
|
@@ -196,6 +211,11 @@ export const schemas = {
|
|
|
196
211
|
reorderInbox: z.object({
|
|
197
212
|
nestIds: z.array(z.string()).describe("Array of inbox item IDs in the desired order"),
|
|
198
213
|
}),
|
|
214
|
+
reorderInboxItem: z.object({
|
|
215
|
+
nestId: z.string().describe("ID of the inbox item to reorder"),
|
|
216
|
+
position: z.enum(["before", "after"]).describe("Position relative to the reference item"),
|
|
217
|
+
relatedNestId: z.string().describe("ID of the reference inbox item to position relative to"),
|
|
218
|
+
}),
|
|
199
219
|
// Personal labels (require OAuth token)
|
|
200
220
|
listPersonalLabels: z.object({}),
|
|
201
221
|
createPersonalLabel: z.object({
|
|
@@ -665,6 +685,19 @@ Requires user-scoped authentication (OAuth token or personal API key with user s
|
|
|
665
685
|
required: ["nestIds"],
|
|
666
686
|
},
|
|
667
687
|
},
|
|
688
|
+
{
|
|
689
|
+
name: "nestr_reorder_inbox_item",
|
|
690
|
+
description: "Reorder a single inbox item by positioning it before or after another inbox item. Requires OAuth token.",
|
|
691
|
+
inputSchema: {
|
|
692
|
+
type: "object",
|
|
693
|
+
properties: {
|
|
694
|
+
nestId: { type: "string", description: "ID of the inbox item to reorder" },
|
|
695
|
+
position: { type: "string", enum: ["before", "after"], description: "Position relative to the reference item" },
|
|
696
|
+
relatedNestId: { type: "string", description: "ID of the reference inbox item to position relative to" },
|
|
697
|
+
},
|
|
698
|
+
required: ["nestId", "position", "relatedNestId"],
|
|
699
|
+
},
|
|
700
|
+
},
|
|
668
701
|
// Personal labels (require OAuth token - user's own labels, not workspace labels)
|
|
669
702
|
{
|
|
670
703
|
name: "nestr_list_personal_labels",
|
|
@@ -801,7 +834,7 @@ async function _handleToolCall(client, name, args) {
|
|
|
801
834
|
case "nestr_search": {
|
|
802
835
|
const parsed = schemas.search.parse(args);
|
|
803
836
|
const results = await client.searchWorkspace(parsed.workspaceId, parsed.query, { limit: parsed.limit, page: parsed.page, cleanText: true });
|
|
804
|
-
return formatResult(compactResponse(results));
|
|
837
|
+
return formatResult(completableResponse(compactResponse(results), "search", `Search: ${parsed.query}`));
|
|
805
838
|
}
|
|
806
839
|
case "nestr_get_nest": {
|
|
807
840
|
const parsed = schemas.getNest.parse(args);
|
|
@@ -818,7 +851,7 @@ async function _handleToolCall(client, name, args) {
|
|
|
818
851
|
page: parsed.page,
|
|
819
852
|
cleanText: true,
|
|
820
853
|
});
|
|
821
|
-
return formatResult(compactResponse(children));
|
|
854
|
+
return formatResult(completableResponse(compactResponse(children), "children", "Sub-items"));
|
|
822
855
|
}
|
|
823
856
|
case "nestr_create_nest": {
|
|
824
857
|
const parsed = schemas.createNest.parse(args);
|
|
@@ -913,7 +946,7 @@ async function _handleToolCall(client, name, args) {
|
|
|
913
946
|
page: parsed.page,
|
|
914
947
|
cleanText: true,
|
|
915
948
|
});
|
|
916
|
-
return formatResult(compactResponse(projects));
|
|
949
|
+
return formatResult(completableResponse(compactResponse(projects), "projects", "Projects"));
|
|
917
950
|
}
|
|
918
951
|
case "nestr_get_comments": {
|
|
919
952
|
const parsed = schemas.getComments.parse(args);
|
|
@@ -957,7 +990,7 @@ async function _handleToolCall(client, name, args) {
|
|
|
957
990
|
const items = await client.listInbox({
|
|
958
991
|
completedAfter: parsed.completedAfter,
|
|
959
992
|
});
|
|
960
|
-
return formatResult(compactResponse(items));
|
|
993
|
+
return formatResult(completableResponse(compactResponse(items), "inbox", "Inbox"));
|
|
961
994
|
}
|
|
962
995
|
case "nestr_create_inbox_item": {
|
|
963
996
|
const parsed = schemas.createInboxItem.parse(args);
|
|
@@ -987,6 +1020,11 @@ async function _handleToolCall(client, name, args) {
|
|
|
987
1020
|
const result = await client.reorderInbox(parsed.nestIds);
|
|
988
1021
|
return formatResult({ message: "Inbox items reordered successfully", items: result });
|
|
989
1022
|
}
|
|
1023
|
+
case "nestr_reorder_inbox_item": {
|
|
1024
|
+
const parsed = schemas.reorderInboxItem.parse(args);
|
|
1025
|
+
const result = await client.reorderInboxItem(parsed.nestId, parsed.position, parsed.relatedNestId);
|
|
1026
|
+
return formatResult({ message: "Inbox item reordered successfully", nest: result });
|
|
1027
|
+
}
|
|
990
1028
|
// Personal labels (require OAuth token)
|
|
991
1029
|
case "nestr_list_personal_labels": {
|
|
992
1030
|
schemas.listPersonalLabels.parse(args);
|
|
@@ -1018,7 +1056,7 @@ async function _handleToolCall(client, name, args) {
|
|
|
1018
1056
|
case "nestr_get_daily_plan": {
|
|
1019
1057
|
schemas.getDailyPlan.parse(args);
|
|
1020
1058
|
const items = await client.getDailyPlan();
|
|
1021
|
-
return formatResult(compactResponse(items));
|
|
1059
|
+
return formatResult(completableResponse(compactResponse(items), "daily-plan", "Daily Plan"));
|
|
1022
1060
|
}
|
|
1023
1061
|
default:
|
|
1024
1062
|
return formatError({
|