@wirecat/cli-core 0.430.0 → 0.432.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/CHANGELOG.md +19 -1
- package/dist/cli/config-issues.d.ts +30 -0
- package/dist/cli/config-issues.js +90 -12
- package/dist/cli/config-keys.js +6 -7
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/messenger/conversation-answers.d.ts +1 -0
- package/dist/cli/messenger/conversations-command.js +11 -3
- package/dist/cli/messenger/message-answers.d.ts +1 -0
- package/dist/cli/messenger/message-writes.d.ts +2 -0
- package/dist/cli/messenger/messages-search-command.js +11 -1
- package/dist/cli/messenger/private-files.js +8 -4
- package/dist/cli/messenger/search-answers.js +13 -0
- package/dist/cli/settings.js +12 -43
- package/dist/cli/steps.js +6 -0
- package/dist/entities/conversation-preparation.d.ts +10 -0
- package/dist/entities/conversation-preparation.js +2 -0
- package/dist/entities/conversation-results.d.ts +10 -0
- package/dist/entities/evidence.d.ts +8 -0
- package/dist/entities/index.d.ts +45 -0
- package/dist/entities/listener.d.ts +4 -0
- package/dist/entities/message-context.d.ts +3 -0
- package/dist/entities/message-transfer.d.ts +8 -0
- package/dist/entities/message-write.d.ts +4 -0
- package/dist/entities/message.d.ts +2 -0
- package/dist/entities/message.js +2 -0
- package/dist/entities/store-records.d.ts +5 -0
- package/dist/services/embeddings-maintenance.js +71 -2
- package/dist/services/embeddings-search.js +3 -1
- package/dist/services/embeddings.d.ts +7 -0
- package/dist/services/messages-archive-search.d.ts +2 -1
- package/dist/services/messages-archive-search.js +4 -4
- package/dist/services/messages-discovery.d.ts +24 -1
- package/dist/services/messages-discovery.js +61 -4
- package/dist/services/messages-meaning.d.ts +7 -0
- package/dist/services/messages-meaning.js +53 -0
- package/dist/services/messages-search.d.ts +5 -0
- package/dist/services/messages.d.ts +5 -0
- package/dist/services/messages.js +2 -1
- package/dist/services/search-catchup.js +1 -0
- package/dist/store/sqlite/message-chunks.d.ts +44 -0
- package/dist/store/sqlite/message-chunks.js +76 -0
- package/dist/store/sqlite/vectors.js +4 -1
- package/dist/store/vectors.d.ts +36 -0
- package/dist/store/vectors.js +54 -0
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
32
32
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
33
33
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
34
34
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
35
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
35
36
|
}, undefined>, undefined>;
|
|
36
37
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
37
38
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -218,6 +219,7 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
218
219
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
219
220
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
220
221
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
222
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
221
223
|
}, undefined>, undefined>;
|
|
222
224
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
223
225
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -442,6 +444,7 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
442
444
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
443
445
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
444
446
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
447
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
445
448
|
}, undefined>, undefined>;
|
|
446
449
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
447
450
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -628,6 +631,7 @@ export declare const contribution: v.StrictObjectSchema<{
|
|
|
628
631
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
629
632
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
630
633
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
634
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
631
635
|
}, undefined>, undefined>;
|
|
632
636
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
633
637
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -888,6 +892,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
888
892
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
889
893
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
890
894
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
895
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
891
896
|
}, undefined>, undefined>;
|
|
892
897
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
893
898
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1074,6 +1079,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1074
1079
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1075
1080
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1076
1081
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1082
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1077
1083
|
}, undefined>, undefined>;
|
|
1078
1084
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1079
1085
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1298,6 +1304,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1298
1304
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1299
1305
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1300
1306
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1307
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1301
1308
|
}, undefined>, undefined>;
|
|
1302
1309
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1303
1310
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1484,6 +1491,7 @@ export declare const evidence: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1484
1491
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1485
1492
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1486
1493
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1494
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1487
1495
|
}, undefined>, undefined>;
|
|
1488
1496
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1489
1497
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ export declare const ENTITIES: {
|
|
|
254
254
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
255
255
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
256
256
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
257
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
257
258
|
}, undefined>, undefined>;
|
|
258
259
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
259
260
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -440,6 +441,7 @@ export declare const ENTITIES: {
|
|
|
440
441
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
441
442
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
442
443
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
444
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
443
445
|
}, undefined>, undefined>;
|
|
444
446
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
445
447
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -631,6 +633,7 @@ export declare const ENTITIES: {
|
|
|
631
633
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
632
634
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
633
635
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
636
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
634
637
|
}, undefined>, undefined>;
|
|
635
638
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
636
639
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -987,6 +990,10 @@ export declare const ENTITIES: {
|
|
|
987
990
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
988
991
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
989
992
|
}, undefined>, undefined>;
|
|
993
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
994
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
995
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
996
|
+
}, undefined>, undefined>;
|
|
990
997
|
}, undefined>, undefined>;
|
|
991
998
|
}, undefined>, undefined>;
|
|
992
999
|
readonly window_complete: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -1091,6 +1098,7 @@ export declare const ENTITIES: {
|
|
|
1091
1098
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1092
1099
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1093
1100
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1101
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1094
1102
|
}, undefined>, undefined>;
|
|
1095
1103
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1096
1104
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1277,6 +1285,7 @@ export declare const ENTITIES: {
|
|
|
1277
1285
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1278
1286
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1279
1287
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1288
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1280
1289
|
}, undefined>, undefined>;
|
|
1281
1290
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1282
1291
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1451,6 +1460,7 @@ export declare const ENTITIES: {
|
|
|
1451
1460
|
matched_terms: string[];
|
|
1452
1461
|
missing_terms: string[];
|
|
1453
1462
|
parent?: string | undefined;
|
|
1463
|
+
found_by?: ("meaning" | "words")[] | undefined;
|
|
1454
1464
|
} | undefined;
|
|
1455
1465
|
context?: {
|
|
1456
1466
|
ref: string;
|
|
@@ -1514,6 +1524,7 @@ export declare const ENTITIES: {
|
|
|
1514
1524
|
matched_terms: string[];
|
|
1515
1525
|
missing_terms: string[];
|
|
1516
1526
|
parent?: string | undefined;
|
|
1527
|
+
found_by?: ("meaning" | "words")[] | undefined;
|
|
1517
1528
|
} | undefined;
|
|
1518
1529
|
context?: {
|
|
1519
1530
|
ref: string;
|
|
@@ -1578,6 +1589,7 @@ export declare const ENTITIES: {
|
|
|
1578
1589
|
matched_terms: string[];
|
|
1579
1590
|
missing_terms: string[];
|
|
1580
1591
|
parent?: string | undefined;
|
|
1592
|
+
found_by?: ("meaning" | "words")[] | undefined;
|
|
1581
1593
|
} | undefined;
|
|
1582
1594
|
context?: {
|
|
1583
1595
|
ref: string;
|
|
@@ -1643,6 +1655,7 @@ export declare const ENTITIES: {
|
|
|
1643
1655
|
matched_terms: string[];
|
|
1644
1656
|
missing_terms: string[];
|
|
1645
1657
|
parent?: string | undefined;
|
|
1658
|
+
found_by?: ("meaning" | "words")[] | undefined;
|
|
1646
1659
|
} | undefined;
|
|
1647
1660
|
context?: {
|
|
1648
1661
|
ref: string;
|
|
@@ -1707,6 +1720,7 @@ export declare const ENTITIES: {
|
|
|
1707
1720
|
matched_terms: string[];
|
|
1708
1721
|
missing_terms: string[];
|
|
1709
1722
|
parent?: string | undefined;
|
|
1723
|
+
found_by?: ("meaning" | "words")[] | undefined;
|
|
1710
1724
|
} | undefined;
|
|
1711
1725
|
context?: {
|
|
1712
1726
|
ref: string;
|
|
@@ -1786,6 +1800,7 @@ export declare const ENTITIES: {
|
|
|
1786
1800
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1787
1801
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1788
1802
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1803
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1789
1804
|
}, undefined>, undefined>;
|
|
1790
1805
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1791
1806
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1972,6 +1987,7 @@ export declare const ENTITIES: {
|
|
|
1972
1987
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1973
1988
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1974
1989
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1990
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1975
1991
|
}, undefined>, undefined>;
|
|
1976
1992
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1977
1993
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -2349,6 +2365,7 @@ export declare const ENTITIES: {
|
|
|
2349
2365
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2350
2366
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2351
2367
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2368
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
2352
2369
|
}, undefined>, undefined>;
|
|
2353
2370
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2354
2371
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -2535,6 +2552,7 @@ export declare const ENTITIES: {
|
|
|
2535
2552
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2536
2553
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2537
2554
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2555
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
2538
2556
|
}, undefined>, undefined>;
|
|
2539
2557
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2540
2558
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -2725,6 +2743,7 @@ export declare const ENTITIES: {
|
|
|
2725
2743
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2726
2744
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2727
2745
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2746
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
2728
2747
|
}, undefined>, undefined>;
|
|
2729
2748
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2730
2749
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -2911,6 +2930,7 @@ export declare const ENTITIES: {
|
|
|
2911
2930
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2912
2931
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
2913
2932
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
2933
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
2914
2934
|
}, undefined>, undefined>;
|
|
2915
2935
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
2916
2936
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -7310,6 +7330,7 @@ export declare const ENTITIES: {
|
|
|
7310
7330
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7311
7331
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7312
7332
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
7333
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
7313
7334
|
}, undefined>, undefined>;
|
|
7314
7335
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
7315
7336
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -7496,6 +7517,7 @@ export declare const ENTITIES: {
|
|
|
7496
7517
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7497
7518
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7498
7519
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
7520
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
7499
7521
|
}, undefined>, undefined>;
|
|
7500
7522
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
7501
7523
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -7679,6 +7701,10 @@ export declare const ENTITIES: {
|
|
|
7679
7701
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7680
7702
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
7681
7703
|
}, undefined>, undefined>;
|
|
7704
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7705
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7706
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7707
|
+
}, undefined>, undefined>;
|
|
7682
7708
|
}, undefined>, v.StrictObjectSchema<{
|
|
7683
7709
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7684
7710
|
readonly model: v.StringSchema<undefined>;
|
|
@@ -7794,6 +7820,10 @@ export declare const ENTITIES: {
|
|
|
7794
7820
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7795
7821
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
7796
7822
|
}, undefined>, undefined>;
|
|
7823
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7824
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7825
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7826
|
+
}, undefined>, undefined>;
|
|
7797
7827
|
}, undefined>], undefined>;
|
|
7798
7828
|
readonly conversation_embedding_status: v.StrictObjectSchema<{
|
|
7799
7829
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -7829,6 +7859,10 @@ export declare const ENTITIES: {
|
|
|
7829
7859
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
7830
7860
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
7831
7861
|
}, undefined>, undefined>;
|
|
7862
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
7863
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7864
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
7865
|
+
}, undefined>, undefined>;
|
|
7832
7866
|
}, undefined>;
|
|
7833
7867
|
readonly conversation_hit: v.StrictObjectSchema<{
|
|
7834
7868
|
readonly source: v.OptionalSchema<v.StrictObjectSchema<{
|
|
@@ -7913,6 +7947,7 @@ export declare const ENTITIES: {
|
|
|
7913
7947
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7914
7948
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7915
7949
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
7950
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
7916
7951
|
}, undefined>, undefined>;
|
|
7917
7952
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
7918
7953
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -8390,6 +8425,7 @@ export declare const ENTITIES: {
|
|
|
8390
8425
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
8391
8426
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
8392
8427
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
8428
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
8393
8429
|
}, undefined>, undefined>;
|
|
8394
8430
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
8395
8431
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -9043,6 +9079,7 @@ export declare const ENTITIES: {
|
|
|
9043
9079
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
9044
9080
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
9045
9081
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
9082
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
9046
9083
|
}, undefined>, undefined>;
|
|
9047
9084
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
9048
9085
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -9340,6 +9377,10 @@ export declare const ENTITIES: {
|
|
|
9340
9377
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
9341
9378
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
9342
9379
|
}, undefined>, undefined>;
|
|
9380
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
9381
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9382
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
9383
|
+
}, undefined>, undefined>;
|
|
9343
9384
|
}, undefined>, undefined>;
|
|
9344
9385
|
}, undefined>, undefined>;
|
|
9345
9386
|
readonly stopped: v.OptionalSchema<v.PicklistSchema<["bound", "partial_or_inaccessible", "fetch_failed"], undefined>, undefined>;
|
|
@@ -10625,6 +10666,7 @@ export declare const ENTITIES: {
|
|
|
10625
10666
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
10626
10667
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
10627
10668
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
10669
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
10628
10670
|
}, undefined>, undefined>;
|
|
10629
10671
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
10630
10672
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -10811,6 +10853,7 @@ export declare const ENTITIES: {
|
|
|
10811
10853
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
10812
10854
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
10813
10855
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
10856
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
10814
10857
|
}, undefined>, undefined>;
|
|
10815
10858
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
10816
10859
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -11035,6 +11078,7 @@ export declare const ENTITIES: {
|
|
|
11035
11078
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
11036
11079
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
11037
11080
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
11081
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
11038
11082
|
}, undefined>, undefined>;
|
|
11039
11083
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
11040
11084
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -11221,6 +11265,7 @@ export declare const ENTITIES: {
|
|
|
11221
11265
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
11222
11266
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
11223
11267
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
11268
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
11224
11269
|
}, undefined>, undefined>;
|
|
11225
11270
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
11226
11271
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -31,6 +31,7 @@ export declare const watchedMessage: v.StrictObjectSchema<{
|
|
|
31
31
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
32
32
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
33
33
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
34
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
34
35
|
}, undefined>, undefined>;
|
|
35
36
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
36
37
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -509,6 +510,7 @@ export declare const messageEvent: v.VariantSchema<"event", [v.StrictObjectSchem
|
|
|
509
510
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
510
511
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
511
512
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
513
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
512
514
|
}, undefined>, undefined>;
|
|
513
515
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
514
516
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1094,6 +1096,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1094
1096
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1095
1097
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1096
1098
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1099
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1097
1100
|
}, undefined>, undefined>;
|
|
1098
1101
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1099
1102
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -1571,6 +1574,7 @@ export declare const watchItem: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
1571
1574
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1572
1575
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1573
1576
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
1577
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
1574
1578
|
}, undefined>, undefined>;
|
|
1575
1579
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
1576
1580
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -36,6 +36,7 @@ export declare const messageThread: v.StrictObjectSchema<{
|
|
|
36
36
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
37
37
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
38
38
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
39
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
39
40
|
}, undefined>, undefined>;
|
|
40
41
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
41
42
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -246,6 +247,7 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
246
247
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
247
248
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
248
249
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
250
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
249
251
|
}, undefined>, undefined>;
|
|
250
252
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
251
253
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -437,6 +439,7 @@ export declare const messageContext: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
437
439
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
438
440
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
439
441
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
442
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
440
443
|
}, undefined>, undefined>;
|
|
441
444
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
442
445
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -184,6 +184,10 @@ export declare const messageSyncChat: v.StrictObjectSchema<{
|
|
|
184
184
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
185
185
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
186
186
|
}, undefined>, undefined>;
|
|
187
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
188
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
189
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
190
|
+
}, undefined>, undefined>;
|
|
187
191
|
}, undefined>, undefined>;
|
|
188
192
|
}, undefined>, undefined>;
|
|
189
193
|
readonly window_complete: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -304,6 +308,10 @@ export declare const messageSync: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
304
308
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
305
309
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
306
310
|
}, undefined>, undefined>;
|
|
311
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
312
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
313
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
314
|
+
}, undefined>, undefined>;
|
|
307
315
|
}, undefined>, undefined>;
|
|
308
316
|
}, undefined>, undefined>;
|
|
309
317
|
readonly window_complete: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -32,6 +32,7 @@ export declare const messageWrite: v.StrictObjectSchema<{
|
|
|
32
32
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
33
33
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
34
34
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
35
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
35
36
|
}, undefined>, undefined>;
|
|
36
37
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
37
38
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -219,6 +220,7 @@ export declare const messageWrite: v.StrictObjectSchema<{
|
|
|
219
220
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
220
221
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
221
222
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
223
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
222
224
|
}, undefined>, undefined>;
|
|
223
225
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
224
226
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -414,6 +416,7 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
414
416
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
415
417
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
416
418
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
419
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
417
420
|
}, undefined>, undefined>;
|
|
418
421
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
419
422
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -601,6 +604,7 @@ export declare const messageSend: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
601
604
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
602
605
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
603
606
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
607
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
604
608
|
}, undefined>, undefined>;
|
|
605
609
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
606
610
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -42,6 +42,8 @@ export declare const message: v.StrictObjectSchema<{
|
|
|
42
42
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
43
43
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
44
44
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
45
|
+
/** Present when meaning was searched too: which of the two lists found it. */
|
|
46
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
45
47
|
}, undefined>, undefined>;
|
|
46
48
|
/** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
|
|
47
49
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
package/dist/entities/message.js
CHANGED
|
@@ -51,6 +51,8 @@ export const message = v.strictObject({
|
|
|
51
51
|
matched_terms: v.array(text),
|
|
52
52
|
missing_terms: v.array(text),
|
|
53
53
|
parent: v.optional(reference),
|
|
54
|
+
/** Present when meaning was searched too: which of the two lists found it. */
|
|
55
|
+
found_by: v.optional(v.array(v.picklist(["words", "meaning"]))),
|
|
54
56
|
})),
|
|
55
57
|
/** The messages around a search hit, or its thread, oldest first; the hit itself is among them. */
|
|
56
58
|
context: v.optional(v.array(v.strictObject({ ref: reference, timestamp: time, sender_name: v.nullable(text), text }))),
|
|
@@ -55,6 +55,7 @@ export declare const storeExport: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
55
55
|
readonly matched_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
56
56
|
readonly missing_terms: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
57
57
|
readonly parent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>, undefined>;
|
|
58
|
+
readonly found_by: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["words", "meaning"], undefined>, undefined>, undefined>;
|
|
58
59
|
}, undefined>, undefined>;
|
|
59
60
|
readonly context: v.OptionalSchema<v.ArraySchema<v.StrictObjectSchema<{
|
|
60
61
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "a reference such as `note:42`">]>;
|
|
@@ -352,6 +353,10 @@ export declare const storeGapRepair: v.UnionSchema<[v.StrictObjectSchema<{
|
|
|
352
353
|
readonly chat: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
353
354
|
readonly needs: v.PicklistSchema<["build", "embed"], undefined>;
|
|
354
355
|
}, undefined>, undefined>;
|
|
356
|
+
readonly messages: v.OptionalSchema<v.StrictObjectSchema<{
|
|
357
|
+
readonly embedded: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
358
|
+
readonly left: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
359
|
+
}, undefined>, undefined>;
|
|
355
360
|
}, undefined>, undefined>;
|
|
356
361
|
}, undefined>, undefined>;
|
|
357
362
|
readonly stopped: v.OptionalSchema<v.PicklistSchema<["bound", "partial_or_inaccessible", "fetch_failed"], undefined>, undefined>;
|
|
@@ -11,6 +11,8 @@ import { conversationsService } from "./conversations.js";
|
|
|
11
11
|
import { storedChatId } from "./message-resolution.js";
|
|
12
12
|
/** How much one run without `--chat` does at most, by default. */
|
|
13
13
|
export const REFRESH_BOUNDS = { maxChats: 20, maxChunks: 2_000 };
|
|
14
|
+
/** Messages read per page while looking for those without a current vector. */
|
|
15
|
+
const MESSAGE_PAGE = 5_000;
|
|
14
16
|
/** Chunks per batch for one local session; one short transaction writes each batch. */
|
|
15
17
|
const PER_SESSION = 8;
|
|
16
18
|
/** Texts per remote request; `concurrency` of them run at once. */
|
|
@@ -169,6 +171,58 @@ export const embeddingsMaintenance = (deps) => {
|
|
|
169
171
|
})), described.map(({ attachmentPk }) => attachmentPk));
|
|
170
172
|
return missing.length;
|
|
171
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* The messages of the account, or of one chat, whose own vector is missing or older than their text: at most
|
|
176
|
+
* `budget` of them in hand, and how many more there are. Gone messages lose their chunks first.
|
|
177
|
+
*/
|
|
178
|
+
const messagesToEmbed = async (chatId, model, budget, check) => {
|
|
179
|
+
const store = await deps.store();
|
|
180
|
+
const account = await deps.account();
|
|
181
|
+
await store.vectors.dropGoneMessages(account);
|
|
182
|
+
const items = [];
|
|
183
|
+
let beyond = 0;
|
|
184
|
+
let after = 0;
|
|
185
|
+
for (;;) {
|
|
186
|
+
check?.();
|
|
187
|
+
const page = await store.vectors.messagesToEmbed(account, {
|
|
188
|
+
...(chatId === undefined ? {} : { chatId }),
|
|
189
|
+
model,
|
|
190
|
+
after,
|
|
191
|
+
limit: MESSAGE_PAGE,
|
|
192
|
+
});
|
|
193
|
+
const last = page.at(-1);
|
|
194
|
+
if (!last)
|
|
195
|
+
break;
|
|
196
|
+
after = last.messagePk;
|
|
197
|
+
for (const { messagePk, text, sentAt, hash: held, embedded } of page) {
|
|
198
|
+
const hash = chunkHash(text);
|
|
199
|
+
if (hash === held && embedded)
|
|
200
|
+
continue;
|
|
201
|
+
if (items.length < budget)
|
|
202
|
+
items.push({ messagePk, text, hash, occurredAt: sentAt });
|
|
203
|
+
else
|
|
204
|
+
beyond++;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return { items, beyond };
|
|
208
|
+
};
|
|
209
|
+
const embedMessages = async (items, target, embedder, check) => {
|
|
210
|
+
const store = await deps.store();
|
|
211
|
+
const account = await deps.account();
|
|
212
|
+
for (let at = 0; at < items.length; at += target.perBatch) {
|
|
213
|
+
check?.();
|
|
214
|
+
const batch = items.slice(at, at + target.perBatch);
|
|
215
|
+
const vectors = await embedder.embed(batch.map(({ text }) => text), "passage");
|
|
216
|
+
await store.vectors.saveMessageVectors(account, target.key, target.dims, batch.map(({ messagePk, hash, text, occurredAt }, index) => ({
|
|
217
|
+
messagePk,
|
|
218
|
+
hash,
|
|
219
|
+
length: text.length,
|
|
220
|
+
occurredAt,
|
|
221
|
+
vector: vectors[index],
|
|
222
|
+
})));
|
|
223
|
+
}
|
|
224
|
+
return items.length;
|
|
225
|
+
};
|
|
172
226
|
return {
|
|
173
227
|
status: async (chat, choice) => {
|
|
174
228
|
const { store, account, chatId } = await found(chat);
|
|
@@ -204,7 +258,7 @@ export const embeddingsMaintenance = (deps) => {
|
|
|
204
258
|
return { model: target.id, chats };
|
|
205
259
|
return { model: target.id, chats, unbuiltGroups: (await store.vectors.unbuiltGroups(account)).length };
|
|
206
260
|
},
|
|
207
|
-
refresh: async ({ chat, model: choice = DEFAULT_TEXT_MODEL, build = true, embed = true, maxChats = REFRESH_BOUNDS.maxChats, maxChunks = REFRESH_BOUNDS.maxChunks, threads, progress, maxMessages, check, }) => {
|
|
261
|
+
refresh: async ({ chat, model: choice = DEFAULT_TEXT_MODEL, build = true, embed = true, maxChats = REFRESH_BOUNDS.maxChats, maxChunks = REFRESH_BOUNDS.maxChunks, threads, progress, maxMessages, check, messages = true, }) => {
|
|
208
262
|
check?.();
|
|
209
263
|
const store = await deps.store();
|
|
210
264
|
const account = await deps.account();
|
|
@@ -236,13 +290,16 @@ export const embeddingsMaintenance = (deps) => {
|
|
|
236
290
|
}
|
|
237
291
|
}
|
|
238
292
|
const embedded = [];
|
|
293
|
+
const wantsMessages = embed && messages && target.installed && choice === DEFAULT_TEXT_MODEL;
|
|
294
|
+
const toEmbed = wantsMessages ? await messagesToEmbed(chatId, target.key, maxChunks, check) : undefined;
|
|
295
|
+
let messagesEmbedded = 0;
|
|
239
296
|
if (embed && target.installed) {
|
|
240
297
|
const fresh = new Set(built.map(({ chat }) => chat));
|
|
241
298
|
const queue = (await scan()).chats
|
|
242
299
|
.filter(needsEmbed)
|
|
243
300
|
.sort((a, b) => Number(fresh.has(b.chat)) - Number(fresh.has(a.chat)))
|
|
244
301
|
.slice(0, maxChats);
|
|
245
|
-
if (queue.length > 0) {
|
|
302
|
+
if (queue.length > 0 || toEmbed?.items.length) {
|
|
246
303
|
await withEmbedder(deps, target, choice, { threads }, async (embedder) => {
|
|
247
304
|
let budget = maxChunks;
|
|
248
305
|
for (const { chat } of queue) {
|
|
@@ -254,6 +311,10 @@ export const embeddingsMaintenance = (deps) => {
|
|
|
254
311
|
embedded.push(done);
|
|
255
312
|
progress?.(`chat ${chat}: ${done.embedded} chunks embedded with ${target.id}`);
|
|
256
313
|
}
|
|
314
|
+
if (toEmbed?.items.length && budget > 0) {
|
|
315
|
+
messagesEmbedded = await embedMessages(toEmbed.items.slice(0, budget), target, embedder, check);
|
|
316
|
+
progress?.(`${messagesEmbedded} messages embedded with ${target.id}`);
|
|
317
|
+
}
|
|
257
318
|
});
|
|
258
319
|
}
|
|
259
320
|
}
|
|
@@ -273,6 +334,14 @@ export const embeddingsMaintenance = (deps) => {
|
|
|
273
334
|
.map(({ chat }) => ({ chat, needs: "embed" }))
|
|
274
335
|
: []),
|
|
275
336
|
],
|
|
337
|
+
...(toEmbed
|
|
338
|
+
? {
|
|
339
|
+
messages: {
|
|
340
|
+
embedded: messagesEmbedded,
|
|
341
|
+
left: toEmbed.items.length + toEmbed.beyond - messagesEmbedded,
|
|
342
|
+
},
|
|
343
|
+
}
|
|
344
|
+
: {}),
|
|
276
345
|
};
|
|
277
346
|
},
|
|
278
347
|
clear: async (chat, choice) => {
|
|
@@ -122,7 +122,9 @@ export const embeddingsSearch = (deps) => {
|
|
|
122
122
|
source,
|
|
123
123
|
timezone,
|
|
124
124
|
});
|
|
125
|
-
const locallyRefreshed = refresh
|
|
125
|
+
const locallyRefreshed = refresh
|
|
126
|
+
? await embeddingsMaintenance(deps).refresh({ ...refresh, messages: false })
|
|
127
|
+
: undefined;
|
|
126
128
|
const store = await deps.store();
|
|
127
129
|
const account = await deps.account();
|
|
128
130
|
const target = embeddingTarget(deps, choice);
|