@leemour/cli-messaging 0.103.0 → 0.105.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/cli/bot/command.d.ts.map +1 -1
  2. package/dist/cli/bot/command.js +3 -1
  3. package/dist/cli/bot/command.js.map +1 -1
  4. package/dist/cli/bot/mcp.d.ts +8 -0
  5. package/dist/cli/bot/mcp.d.ts.map +1 -0
  6. package/dist/cli/bot/mcp.js +98 -0
  7. package/dist/cli/bot/mcp.js.map +1 -0
  8. package/dist/cli/bot/port.d.ts +12 -0
  9. package/dist/cli/bot/port.d.ts.map +1 -1
  10. package/dist/cli/bot/port.js.map +1 -1
  11. package/dist/cli/index.d.ts +5 -1
  12. package/dist/cli/index.d.ts.map +1 -1
  13. package/dist/cli/index.js +4 -0
  14. package/dist/cli/index.js.map +1 -1
  15. package/dist/cli/messenger/conversations-command.d.ts.map +1 -1
  16. package/dist/cli/messenger/conversations-command.js +13 -6
  17. package/dist/cli/messenger/conversations-command.js.map +1 -1
  18. package/dist/embeddings/embed.d.ts +9 -0
  19. package/dist/embeddings/embed.d.ts.map +1 -1
  20. package/dist/embeddings/embed.js +33 -0
  21. package/dist/embeddings/embed.js.map +1 -1
  22. package/dist/mcp/bot/instructions.d.ts +12 -0
  23. package/dist/mcp/bot/instructions.d.ts.map +1 -0
  24. package/dist/mcp/bot/instructions.js +22 -0
  25. package/dist/mcp/bot/instructions.js.map +1 -0
  26. package/dist/mcp/bot/server.d.ts +42 -0
  27. package/dist/mcp/bot/server.d.ts.map +1 -0
  28. package/dist/mcp/bot/server.js +186 -0
  29. package/dist/mcp/bot/server.js.map +1 -0
  30. package/dist/mcp/bot/tools.d.ts +55 -0
  31. package/dist/mcp/bot/tools.d.ts.map +1 -0
  32. package/dist/mcp/bot/tools.js +180 -0
  33. package/dist/mcp/bot/tools.js.map +1 -0
  34. package/dist/mcp/server.d.ts +1 -0
  35. package/dist/mcp/server.d.ts.map +1 -1
  36. package/dist/mcp/server.js +12 -5
  37. package/dist/mcp/server.js.map +1 -1
  38. package/dist/mcp/tool.d.ts +3 -0
  39. package/dist/mcp/tool.d.ts.map +1 -1
  40. package/dist/mcp/tool.js.map +1 -1
  41. package/dist/mcp/tools/conversations.d.ts.map +1 -1
  42. package/dist/mcp/tools/conversations.js +15 -7
  43. package/dist/mcp/tools/conversations.js.map +1 -1
  44. package/dist/services/deps.d.ts +3 -0
  45. package/dist/services/deps.d.ts.map +1 -1
  46. package/dist/services/deps.js.map +1 -1
  47. package/dist/services/embeddings.d.ts +15 -2
  48. package/dist/services/embeddings.d.ts.map +1 -1
  49. package/dist/services/embeddings.js +63 -7
  50. package/dist/services/embeddings.js.map +1 -1
  51. package/dist/services/index.d.ts +1 -1
  52. package/dist/services/index.d.ts.map +1 -1
  53. package/dist/store/sqlite/vectors.d.ts +5 -0
  54. package/dist/store/sqlite/vectors.d.ts.map +1 -1
  55. package/dist/store/sqlite/vectors.js +25 -2
  56. package/dist/store/sqlite/vectors.js.map +1 -1
  57. package/dist/store/store.d.ts +10 -0
  58. package/dist/store/store.d.ts.map +1 -1
  59. package/dist/store/store.js +21 -0
  60. package/dist/store/store.js.map +1 -1
  61. package/package.json +1 -1
  62. package/parity.json +113 -217
package/parity.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "clis": ["max", "tg"],
3
3
  "options": {
4
+ "--accept-terms": {
5
+ "meaning": "accept the model's licence terms, for a model that has its own"
6
+ },
4
7
  "--add": {
5
8
  "value": "<chat>",
6
9
  "meaning": "put a chat into a folder; repeat it for more"
@@ -67,6 +70,10 @@
67
70
  "--background": {
68
71
  "meaning": "run as a job that outlives this command; `store jobs show` follows it"
69
72
  },
73
+ "--base-url": {
74
+ "value": "<url>",
75
+ "meaning": "a server with OpenAI's /v1/embeddings: Gemini, Jina, or Ollama and LM Studio on this machine"
76
+ },
70
77
  "--batch": {
71
78
  "value": "<id>",
72
79
  "meaning": "the batch id `conversations batches next` printed"
@@ -108,8 +115,11 @@
108
115
  "note": "max's `messages search` takes `<id>` only, since searching never connects to resolve a name; rule 6 says `<chat>` (e8)"
109
116
  },
110
117
  "--check": {
111
- "meaning": "say whether a newer version exists, and install nothing",
112
- "note": "`bot list --check` names the messenger until both CLIs take the release after 0.98.0, where it says \"the messenger\"; then this note goes"
118
+ "meaning": "say whether a newer version exists, and install nothing"
119
+ },
120
+ "--concurrency": {
121
+ "value": "<n>",
122
+ "meaning": "remote: requests at once (default: 4)"
113
123
  },
114
124
  "--confirm-send": {
115
125
  "meaning": "show the owner every write the MCP server offers, in a form to approve",
@@ -126,6 +136,10 @@
126
136
  "value": "<text>",
127
137
  "meaning": "the new about text — of a chat or of your account"
128
138
  },
139
+ "--dims": {
140
+ "value": "<n>",
141
+ "meaning": "remote: the vector size — needed with --base-url; shortens an OpenAI model's"
142
+ },
129
143
  "--dry-run": {
130
144
  "meaning": "judge and plan; do nothing"
131
145
  },
@@ -224,6 +238,10 @@
224
238
  "meaning": "at most this many actions in one run",
225
239
  "default": "10"
226
240
  },
241
+ "--max-tokens": {
242
+ "value": "<n>",
243
+ "meaning": "remote: stop before a run that could send more tokens than this"
244
+ },
227
245
  "--md": {
228
246
  "meaning": "read **bold**, _italic_, ~~struck~~ and `code` in the text; \\ keeps a mark literal"
229
247
  },
@@ -323,6 +341,10 @@
323
341
  "value": "<file>",
324
342
  "meaning": "an image file — a profile photo in `account update`, a photo to send in `messages send`"
325
343
  },
344
+ "--provider": {
345
+ "value": "<provider>",
346
+ "meaning": "embed through a service with your key instead of on this machine: openai"
347
+ },
326
348
  "--qr-file": {
327
349
  "value": "<png>",
328
350
  "meaning": "write the QR code to this PNG instead of drawing it, for an agent to pass on"
@@ -491,13 +513,7 @@
491
513
  "--trace": "all",
492
514
  "--verbose": "all",
493
515
  "--version": "all",
494
- "--yes": {
495
- "in": [],
496
- "planned": {
497
- "max": "P7",
498
- "tg": "P7"
499
- }
500
- }
516
+ "--yes": "all"
501
517
  },
502
518
  "commands": {
503
519
  "account": {
@@ -557,29 +573,13 @@
557
573
  "in": "all"
558
574
  },
559
575
  "bot callbacks": {
560
- "in": ["max"],
561
- "planned": {
562
- "tg": "P8"
563
- }
576
+ "in": "all"
564
577
  },
565
578
  "bot callbacks answer": {
566
- "in": ["max"],
567
- "planned": {
568
- "tg": "P8"
569
- },
579
+ "in": "all",
570
580
  "options": {
571
- "--notification": {
572
- "in": ["max"],
573
- "planned": {
574
- "tg": "P8"
575
- }
576
- },
577
- "--text": {
578
- "in": ["max"],
579
- "planned": {
580
- "tg": "P8"
581
- }
582
- }
581
+ "--notification": "all",
582
+ "--text": "all"
583
583
  }
584
584
  },
585
585
  "bot chats": {
@@ -703,28 +703,16 @@
703
703
  "in": "all"
704
704
  },
705
705
  "bot commands": {
706
- "in": ["max"],
707
- "planned": {
708
- "tg": "P8"
709
- }
706
+ "in": "all"
710
707
  },
711
708
  "bot commands clear": {
712
- "in": ["max"],
713
- "planned": {
714
- "tg": "P8"
715
- }
709
+ "in": "all"
716
710
  },
717
711
  "bot commands list": {
718
- "in": ["max"],
719
- "planned": {
720
- "tg": "P8"
721
- }
712
+ "in": "all"
722
713
  },
723
714
  "bot commands set": {
724
- "in": ["max"],
725
- "planned": {
726
- "tg": "P8"
727
- }
715
+ "in": "all"
728
716
  },
729
717
  "bot comments": {
730
718
  "in": ["max"],
@@ -737,67 +725,23 @@
737
725
  }
738
726
  },
739
727
  "bot mcp": {
740
- "in": ["max"],
741
- "planned": {
742
- "tg": "P8"
743
- },
728
+ "in": "all",
744
729
  "options": {
745
- "--allow-delete": {
746
- "in": ["max"],
747
- "planned": {
748
- "tg": "P8"
749
- }
750
- },
751
- "--allow-moderate": {
752
- "in": ["max"],
753
- "planned": {
754
- "tg": "P8"
755
- }
756
- },
757
- "--allow-send": {
758
- "in": ["max"],
759
- "planned": {
760
- "tg": "P8"
761
- }
762
- },
763
- "--confirm-send": {
764
- "in": ["max"],
765
- "planned": {
766
- "tg": "P8"
767
- }
768
- }
730
+ "--allow-dangerous": "all",
731
+ "--allow-delete": "all",
732
+ "--allow-moderate": "all",
733
+ "--allow-send": "all",
734
+ "--confirm-send": "all"
769
735
  }
770
736
  },
771
737
  "bot mcp config": {
772
- "in": ["max"],
773
- "planned": {
774
- "tg": "P8"
775
- },
738
+ "in": "all",
776
739
  "options": {
777
- "--allow-delete": {
778
- "in": ["max"],
779
- "planned": {
780
- "tg": "P8"
781
- }
782
- },
783
- "--allow-moderate": {
784
- "in": ["max"],
785
- "planned": {
786
- "tg": "P8"
787
- }
788
- },
789
- "--allow-send": {
790
- "in": ["max"],
791
- "planned": {
792
- "tg": "P8"
793
- }
794
- },
795
- "--confirm-send": {
796
- "in": ["max"],
797
- "planned": {
798
- "tg": "P8"
799
- }
800
- }
740
+ "--allow-dangerous": "all",
741
+ "--allow-delete": "all",
742
+ "--allow-moderate": "all",
743
+ "--allow-send": "all",
744
+ "--confirm-send": "all"
801
745
  }
802
746
  },
803
747
  "bot me": {
@@ -978,96 +922,35 @@
978
922
  "bot sends list": {
979
923
  "in": "all"
980
924
  },
981
- "bot updates": {
982
- "in": [],
983
- "planned": {
984
- "max": "P8 B4: becomes bot watch",
985
- "tg": "P8"
986
- }
987
- },
988
- "bot updates watch": {
989
- "in": [],
990
- "planned": {
991
- "max": "P8 B4: becomes bot watch",
992
- "tg": "P8"
993
- },
994
- "options": {
995
- "--types": {
996
- "in": [],
997
- "planned": {
998
- "max": "P8 B4: becomes bot watch",
999
- "tg": "P8"
1000
- }
1001
- }
1002
- }
1003
- },
1004
925
  "bot uploads": {
1005
926
  "in": ["max"],
1006
927
  "reason": "Telegram has no upload-only step: a file goes up with the message that carries it"
1007
928
  },
1008
929
  "bot watch": {
1009
- "in": [],
1010
- "planned": {
1011
- "max": "P8 B4: max's bot watch comes with its move to the shared one",
1012
- "tg": "P8"
1013
- },
930
+ "in": "all",
1014
931
  "options": {
1015
- "--events": {
1016
- "in": [],
1017
- "planned": {
1018
- "max": "P8 B4: max's bot watch comes with its move to the shared one",
1019
- "tg": "P8"
1020
- }
1021
- },
1022
- "--types": {
1023
- "in": [],
1024
- "planned": {
1025
- "max": "P8 B4: max's bot watch comes with its move to the shared one",
1026
- "tg": "P8"
1027
- }
1028
- }
932
+ "--events": "all",
933
+ "--types": "all"
1029
934
  }
1030
935
  },
1031
936
  "bot webhooks": {
1032
- "in": ["max"],
1033
- "planned": {
1034
- "tg": "P8"
1035
- }
937
+ "in": "all"
1036
938
  },
1037
939
  "bot webhooks delete": {
1038
- "in": ["max"],
1039
- "planned": {
1040
- "tg": "P8"
1041
- }
940
+ "in": "all"
1042
941
  },
1043
942
  "bot webhooks list": {
1044
- "in": ["max"],
1045
- "planned": {
1046
- "tg": "P8"
1047
- }
943
+ "in": "all"
1048
944
  },
1049
945
  "bot webhooks set": {
1050
- "in": ["max"],
1051
- "planned": {
1052
- "tg": "P8"
1053
- },
946
+ "in": "all",
1054
947
  "options": {
1055
948
  "--add": {
1056
949
  "in": ["max"],
1057
950
  "reason": "a Telegram bot holds one webhook address"
1058
951
  },
1059
- "--secret-stdin": {
1060
- "in": ["max"],
1061
- "planned": {
1062
- "tg": "P8"
1063
- }
1064
- },
1065
- "--types": {
1066
- "in": ["max"],
1067
- "planned": {
1068
- "tg": "P8"
1069
- }
1070
- }
952
+ "--secret-stdin": "all",
953
+ "--types": "all"
1071
954
  }
1072
955
  },
1073
956
  "cache": {
@@ -1426,41 +1309,37 @@
1426
1309
  }
1427
1310
  },
1428
1311
  "conversations embed": {
1429
- "in": [],
1430
- "planned": {
1431
- "max": "storage phase 5: the cli-messaging bump after it ships",
1432
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1433
- },
1434
- "subtree": true,
1312
+ "in": "all",
1435
1313
  "options": {
1436
- "--chat": {
1437
- "in": [],
1438
- "planned": {
1439
- "max": "storage phase 5: the cli-messaging bump after it ships",
1440
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1441
- }
1442
- },
1443
- "--model": {
1444
- "in": [],
1445
- "planned": {
1446
- "max": "storage phase 5: the cli-messaging bump after it ships",
1447
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1448
- }
1449
- },
1450
- "--threads": {
1451
- "in": [],
1452
- "planned": {
1453
- "max": "storage phase 5: the cli-messaging bump after it ships",
1454
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1455
- }
1456
- },
1457
- "--workers": {
1458
- "in": [],
1459
- "planned": {
1460
- "max": "storage phase 5: the cli-messaging bump after it ships",
1461
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1462
- }
1463
- }
1314
+ "--base-url": "all",
1315
+ "--chat": "all",
1316
+ "--concurrency": "all",
1317
+ "--dims": "all",
1318
+ "--max-tokens": "all",
1319
+ "--model": "all",
1320
+ "--provider": "all",
1321
+ "--threads": "all",
1322
+ "--workers": "all"
1323
+ }
1324
+ },
1325
+ "conversations embed clear": {
1326
+ "in": "all",
1327
+ "options": {
1328
+ "--base-url": "all",
1329
+ "--chat": "all",
1330
+ "--dims": "all",
1331
+ "--model": "all",
1332
+ "--provider": "all"
1333
+ }
1334
+ },
1335
+ "conversations embed status": {
1336
+ "in": "all",
1337
+ "options": {
1338
+ "--base-url": "all",
1339
+ "--chat": "all",
1340
+ "--dims": "all",
1341
+ "--model": "all",
1342
+ "--provider": "all"
1464
1343
  }
1465
1344
  },
1466
1345
  "conversations links": {
@@ -1512,12 +1391,16 @@
1512
1391
  }
1513
1392
  },
1514
1393
  "conversations search": {
1515
- "in": [],
1516
- "planned": {
1517
- "max": "storage phase 5: the cli-messaging bump after it ships",
1518
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1519
- },
1520
- "subtree": true
1394
+ "in": "all",
1395
+ "options": {
1396
+ "--base-url": "all",
1397
+ "--chat": "all",
1398
+ "--dims": "all",
1399
+ "--limit": "all",
1400
+ "--model": "all",
1401
+ "--provider": "all",
1402
+ "--since-time": "all"
1403
+ }
1521
1404
  },
1522
1405
  "conversations show": {
1523
1406
  "in": "all"
@@ -1773,12 +1656,25 @@
1773
1656
  "in": "all"
1774
1657
  },
1775
1658
  "models text": {
1776
- "in": [],
1777
- "planned": {
1778
- "max": "storage phase 5: the cli-messaging bump after it ships",
1779
- "tg": "storage phase 5: the cli-messaging bump after it ships"
1780
- },
1781
- "subtree": true
1659
+ "in": "all"
1660
+ },
1661
+ "models text download": {
1662
+ "in": "all",
1663
+ "options": {
1664
+ "--accept-terms": "all"
1665
+ }
1666
+ },
1667
+ "models text key": {
1668
+ "in": "all"
1669
+ },
1670
+ "models text key remove": {
1671
+ "in": "all"
1672
+ },
1673
+ "models text key set": {
1674
+ "in": "all"
1675
+ },
1676
+ "models text list": {
1677
+ "in": "all"
1782
1678
  },
1783
1679
  "polls": {
1784
1680
  "in": "all"