@leemour/cli-messaging 0.162.0 → 0.163.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 (109) hide show
  1. package/README.md +19 -0
  2. package/dist/cli/index.d.ts +2 -2
  3. package/dist/cli/index.d.ts.map +1 -1
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/cli/messenger/chats-command.d.ts.map +1 -1
  6. package/dist/cli/messenger/chats-command.js +12 -0
  7. package/dist/cli/messenger/chats-command.js.map +1 -1
  8. package/dist/cli/messenger/context.d.ts +7 -0
  9. package/dist/cli/messenger/context.d.ts.map +1 -1
  10. package/dist/cli/messenger/context.js.map +1 -1
  11. package/dist/cli/messenger/messages-forward-command.d.ts.map +1 -1
  12. package/dist/cli/messenger/messages-forward-command.js +5 -1
  13. package/dist/cli/messenger/messages-forward-command.js.map +1 -1
  14. package/dist/cli/messenger/messages-search-command.d.ts.map +1 -1
  15. package/dist/cli/messenger/messages-search-command.js +7 -1
  16. package/dist/cli/messenger/messages-search-command.js.map +1 -1
  17. package/dist/cli/messenger/messages-send-command.d.ts.map +1 -1
  18. package/dist/cli/messenger/messages-send-command.js +9 -1
  19. package/dist/cli/messenger/messages-send-command.js.map +1 -1
  20. package/dist/cli/messenger/messages-stats-command.d.ts.map +1 -1
  21. package/dist/cli/messenger/messages-stats-command.js +4 -1
  22. package/dist/cli/messenger/messages-stats-command.js.map +1 -1
  23. package/dist/cli/messenger/polls-command.d.ts.map +1 -1
  24. package/dist/cli/messenger/polls-command.js +5 -1
  25. package/dist/cli/messenger/polls-command.js.map +1 -1
  26. package/dist/cli/messenger/port.d.ts +14 -2
  27. package/dist/cli/messenger/port.d.ts.map +1 -1
  28. package/dist/cli/messenger/port.js.map +1 -1
  29. package/dist/cli/messenger/report.d.ts +1 -1
  30. package/dist/cli/messenger/report.d.ts.map +1 -1
  31. package/dist/cli/messenger/report.js +1 -0
  32. package/dist/cli/messenger/report.js.map +1 -1
  33. package/dist/cli/messenger/searches-command.d.ts.map +1 -1
  34. package/dist/cli/messenger/searches-command.js +1 -0
  35. package/dist/cli/messenger/searches-command.js.map +1 -1
  36. package/dist/domain/models.d.ts +10 -0
  37. package/dist/domain/models.d.ts.map +1 -1
  38. package/dist/mcp/tools/chats.d.ts.map +1 -1
  39. package/dist/mcp/tools/chats.js +9 -0
  40. package/dist/mcp/tools/chats.js.map +1 -1
  41. package/dist/mcp/tools/messages-actions.d.ts.map +1 -1
  42. package/dist/mcp/tools/messages-actions.js +2 -0
  43. package/dist/mcp/tools/messages-actions.js.map +1 -1
  44. package/dist/mcp/tools/messages-send.d.ts.map +1 -1
  45. package/dist/mcp/tools/messages-send.js +6 -0
  46. package/dist/mcp/tools/messages-send.js.map +1 -1
  47. package/dist/mcp/tools/polls.d.ts.map +1 -1
  48. package/dist/mcp/tools/polls.js +2 -0
  49. package/dist/mcp/tools/polls.js.map +1 -1
  50. package/dist/mcp/tools/search.d.ts +5 -2
  51. package/dist/mcp/tools/search.d.ts.map +1 -1
  52. package/dist/mcp/tools/search.js +9 -3
  53. package/dist/mcp/tools/search.js.map +1 -1
  54. package/dist/search/lucene/parser.d.ts +3 -1
  55. package/dist/search/lucene/parser.d.ts.map +1 -1
  56. package/dist/search/lucene/parser.js +2 -2
  57. package/dist/search/lucene/parser.js.map +1 -1
  58. package/dist/search/lucene/registry.d.ts +12 -3
  59. package/dist/search/lucene/registry.d.ts.map +1 -1
  60. package/dist/search/lucene/registry.js +18 -4
  61. package/dist/search/lucene/registry.js.map +1 -1
  62. package/dist/search/lucene/resolved.d.ts +7 -0
  63. package/dist/search/lucene/resolved.d.ts.map +1 -1
  64. package/dist/search/lucene/resolved.js +7 -1
  65. package/dist/search/lucene/resolved.js.map +1 -1
  66. package/dist/search/stem.d.ts +6 -0
  67. package/dist/search/stem.d.ts.map +1 -1
  68. package/dist/search/stem.js +7 -0
  69. package/dist/search/stem.js.map +1 -1
  70. package/dist/sends/guard.d.ts +1 -0
  71. package/dist/sends/guard.d.ts.map +1 -1
  72. package/dist/sends/guard.js +5 -1
  73. package/dist/sends/guard.js.map +1 -1
  74. package/dist/sends/journal.d.ts +2 -0
  75. package/dist/sends/journal.d.ts.map +1 -1
  76. package/dist/sends/journal.js.map +1 -1
  77. package/dist/sends/polls.d.ts +2 -1
  78. package/dist/sends/polls.d.ts.map +1 -1
  79. package/dist/sends/polls.js +6 -1
  80. package/dist/sends/polls.js.map +1 -1
  81. package/dist/sends/send-as.d.ts +10 -0
  82. package/dist/sends/send-as.d.ts.map +1 -0
  83. package/dist/sends/send-as.js +24 -0
  84. package/dist/sends/send-as.js.map +1 -0
  85. package/dist/services/chats.d.ts +2 -1
  86. package/dist/services/chats.d.ts.map +1 -1
  87. package/dist/services/chats.js +9 -0
  88. package/dist/services/chats.js.map +1 -1
  89. package/dist/services/messages-search.d.ts +13 -0
  90. package/dist/services/messages-search.d.ts.map +1 -1
  91. package/dist/services/messages-search.js +61 -6
  92. package/dist/services/messages-search.js.map +1 -1
  93. package/dist/services/messages.d.ts +10 -0
  94. package/dist/services/messages.d.ts.map +1 -1
  95. package/dist/services/messages.js +28 -3
  96. package/dist/services/messages.js.map +1 -1
  97. package/dist/services/searches.d.ts +2 -0
  98. package/dist/services/searches.d.ts.map +1 -1
  99. package/dist/services/searches.js +1 -1
  100. package/dist/services/searches.js.map +1 -1
  101. package/dist/store/sqlite/lucene.d.ts.map +1 -1
  102. package/dist/store/sqlite/lucene.js +137 -21
  103. package/dist/store/sqlite/lucene.js.map +1 -1
  104. package/dist/store/sqlite/words.d.ts +2 -0
  105. package/dist/store/sqlite/words.d.ts.map +1 -1
  106. package/dist/store/sqlite/words.js.map +1 -1
  107. package/docs/search/recipes.json +13 -1
  108. package/package.json +1 -1
  109. package/parity.json +92 -194
package/parity.json CHANGED
@@ -147,6 +147,9 @@
147
147
  "meaning": "what they may do, comma-separated: read, members, admins, info, pin, link, post, edit, delete",
148
148
  "note": "lists the rights each messenger has \u2014 MAX has `read`, Telegram does not \u2014 so it differs on purpose (Help text rule 4)"
149
149
  },
150
+ "--caption-above": {
151
+ "meaning": "show the text above the --photo or --file, not below it"
152
+ },
150
153
  "--catch-up": {
151
154
  "meaning": "prepare local search after this fetch"
152
155
  },
@@ -255,6 +258,9 @@
255
258
  "meaning": "also print edits, deletions and reactions; every line then names its event",
256
259
  "note": "watch updates use this flag independently of the group event --type filter"
257
260
  },
261
+ "--exact": {
262
+ "meaning": "bare words and quotes match their exact form only, as exact:word does; text: still matches every form"
263
+ },
258
264
  "--extract": {
259
265
  "meaning": "extract text from files mapped by this download"
260
266
  },
@@ -662,6 +668,10 @@
662
668
  "--secret-stdin": {
663
669
  "meaning": "a secret MAX sends back in X-Max-Bot-Api-Secret \u2014 asked for, or read from a pipe"
664
670
  },
671
+ "--send-as": {
672
+ "value": "<id>",
673
+ "meaning": "send as one of the identities `chats send-as` lists for the chat; refused where the messenger has none"
674
+ },
665
675
  "--send-id": {
666
676
  "value": "<id>",
667
677
  "meaning": "identify a send or creation attempt; message/poll retries reuse it, while an unknown topic creation must never be repeated"
@@ -692,6 +702,9 @@
692
702
  "value": "<messenger>",
693
703
  "meaning": "every account of this messenger held in the store; personal, bots or all \u2014 the same as in: in the query"
694
704
  },
705
+ "--spoiler": {
706
+ "meaning": "hide the --photo or video behind a spoiler until tapped"
707
+ },
695
708
  "--state": {
696
709
  "value": "<state>",
697
710
  "meaning": "only tasks in this state: open, done or dismissed"
@@ -831,43 +844,13 @@
831
844
  }
832
845
  },
833
846
  "globalOptions": {
834
- "--dry-run": {
835
- "in": [],
836
- "planned": {
837
- "max": "full CLI audit remediation",
838
- "tg": "full CLI audit remediation"
839
- }
840
- },
841
- "--fields": {
842
- "in": [],
843
- "planned": {
844
- "max": "full CLI audit remediation",
845
- "tg": "full CLI audit remediation"
846
- }
847
- },
847
+ "--dry-run": "all",
848
+ "--fields": "all",
848
849
  "--json": "all",
849
850
  "--jsonl": "all",
850
- "--max-input-bytes": {
851
- "in": [],
852
- "planned": {
853
- "max": "full CLI audit remediation",
854
- "tg": "full CLI audit remediation"
855
- }
856
- },
857
- "--max-output-bytes": {
858
- "in": [],
859
- "planned": {
860
- "max": "full CLI audit remediation",
861
- "tg": "full CLI audit remediation"
862
- }
863
- },
864
- "--no-input": {
865
- "in": [],
866
- "planned": {
867
- "max": "full CLI audit remediation",
868
- "tg": "full CLI audit remediation"
869
- }
870
- },
851
+ "--max-input-bytes": "all",
852
+ "--max-output-bytes": "all",
853
+ "--no-input": "all",
871
854
  "--no-record": "all",
872
855
  "--no-serve": {
873
856
  "in": [],
@@ -1535,17 +1518,14 @@
1535
1518
  "chats rules unset": {
1536
1519
  "in": "all"
1537
1520
  },
1521
+ "chats send-as": {
1522
+ "in": [],
1523
+ "reason": "MAX has no identities to post as other than the account itself",
1524
+ "planned": { "tg": "G1 feat/send-as-identities" }
1525
+ },
1538
1526
  "chats show": {
1539
1527
  "in": "all"
1540
1528
  },
1541
- "chats stats": {
1542
- "in": [],
1543
- "planned": {
1544
- "max": "retire this path at exact shared SDK adoption; no runtime alias",
1545
- "tg": "retire this path at exact shared SDK adoption; no runtime alias"
1546
- },
1547
- "subtree": true
1548
- },
1549
1529
  "chats tracking": {
1550
1530
  "in": [],
1551
1531
  "planned": {
@@ -1606,11 +1586,7 @@
1606
1586
  "in": "all"
1607
1587
  },
1608
1588
  "commands schema": {
1609
- "in": [],
1610
- "planned": {
1611
- "max": "full CLI audit remediation",
1612
- "tg": "full CLI audit remediation"
1613
- }
1589
+ "in": "all"
1614
1590
  },
1615
1591
  "complete": {
1616
1592
  "in": "all"
@@ -2275,6 +2251,10 @@
2275
2251
  "messages forward": {
2276
2252
  "in": "all",
2277
2253
  "options": {
2254
+ "--send-as": {
2255
+ "in": [],
2256
+ "planned": { "max": "G1 feat/send-as-identities", "tg": "G1 feat/send-as-identities" }
2257
+ },
2278
2258
  "--send-id": "all",
2279
2259
  "--silent": "all",
2280
2260
  "--to": "all"
@@ -2313,6 +2293,13 @@
2313
2293
  "options": {
2314
2294
  "--chat": "all",
2315
2295
  "--context": "all",
2296
+ "--exact": {
2297
+ "in": [],
2298
+ "planned": {
2299
+ "max": "each CLI's next cli-messaging bump",
2300
+ "tg": "each CLI's next cli-messaging bump"
2301
+ }
2302
+ },
2316
2303
  "--language": "all",
2317
2304
  "--limit": "all",
2318
2305
  "--max-chats": {
@@ -2357,13 +2344,27 @@
2357
2344
  "--allow-any-file": "all",
2358
2345
  "--as-file": "all",
2359
2346
  "--at-time": "all",
2347
+ "--caption-above": {
2348
+ "in": [],
2349
+ "reason": "MAX has no spoilers or caption placement",
2350
+ "planned": { "tg": "G1 feat/media-options" }
2351
+ },
2360
2352
  "--file": "all",
2361
2353
  "--md": "all",
2362
2354
  "--no-preview": "all",
2363
2355
  "--photo": "all",
2364
2356
  "--reply-to": "all",
2357
+ "--send-as": {
2358
+ "in": [],
2359
+ "planned": { "max": "G1 feat/send-as-identities", "tg": "G1 feat/send-as-identities" }
2360
+ },
2365
2361
  "--send-id": "all",
2366
2362
  "--silent": "all",
2363
+ "--spoiler": {
2364
+ "in": [],
2365
+ "reason": "MAX has no spoilers or caption placement",
2366
+ "planned": { "tg": "G1 feat/media-options" }
2367
+ },
2367
2368
  "--topic": "all",
2368
2369
  "--voice": "all"
2369
2370
  }
@@ -2371,14 +2372,6 @@
2371
2372
  "messages show": {
2372
2373
  "in": "all"
2373
2374
  },
2374
- "messages stats": {
2375
- "in": [],
2376
- "subtree": true,
2377
- "planned": {
2378
- "max": "retire this path at exact shared SDK adoption; no runtime alias",
2379
- "tg": "retire this path at exact shared SDK adoption; no runtime alias"
2380
- }
2381
- },
2382
2375
  "messages transcribe": {
2383
2376
  "in": "all",
2384
2377
  "options": {
@@ -2437,6 +2430,10 @@
2437
2430
  "--anonymous": "all",
2438
2431
  "--multiple": "all",
2439
2432
  "--revote": "all",
2433
+ "--send-as": {
2434
+ "in": [],
2435
+ "planned": { "max": "G1 feat/send-as-identities", "tg": "G1 feat/send-as-identities" }
2436
+ },
2440
2437
  "--send-id": "all",
2441
2438
  "--silent": "all",
2442
2439
  "--topic": "all"
@@ -2632,6 +2629,13 @@
2632
2629
  "--context": {
2633
2630
  "in": "all"
2634
2631
  },
2632
+ "--exact": {
2633
+ "in": [],
2634
+ "planned": {
2635
+ "max": "each CLI's next cli-messaging bump",
2636
+ "tg": "each CLI's next cli-messaging bump"
2637
+ }
2638
+ },
2635
2639
  "--language": {
2636
2640
  "in": "all"
2637
2641
  },
@@ -2808,55 +2812,30 @@
2808
2812
  "in": "all"
2809
2813
  },
2810
2814
  "stats": {
2811
- "in": ["max"],
2812
- "planned": {
2813
- "tg": "stats charts adoption"
2814
- }
2815
+ "in": "all"
2815
2816
  },
2816
2817
  "stats charts": {
2817
- "in": ["max"],
2818
- "planned": {
2819
- "tg": "stats charts adoption"
2820
- },
2818
+ "in": "all",
2821
2819
  "options": {
2822
2820
  "--by": {
2823
- "in": ["max"],
2824
- "planned": {
2825
- "tg": "stats charts adoption"
2826
- }
2821
+ "in": "all"
2827
2822
  },
2828
2823
  "--chart-kind": {
2829
- "in": ["max"],
2830
- "planned": {
2831
- "tg": "stats charts adoption"
2832
- }
2824
+ "in": "all"
2833
2825
  },
2834
2826
  "--output": {
2835
- "in": ["max"],
2836
- "planned": {
2837
- "tg": "stats charts adoption"
2838
- }
2827
+ "in": "all"
2839
2828
  },
2840
2829
  "--since-time": {
2841
- "in": ["max"],
2842
- "planned": {
2843
- "tg": "stats charts adoption"
2844
- }
2830
+ "in": "all"
2845
2831
  },
2846
2832
  "--timezone": {
2847
- "in": ["max"],
2848
- "planned": {
2849
- "tg": "stats charts adoption"
2850
- }
2833
+ "in": "all"
2851
2834
  }
2852
2835
  }
2853
2836
  },
2854
2837
  "stats chats": {
2855
- "in": [],
2856
- "planned": {
2857
- "max": "stats hierarchy migration and rankings after naming approval",
2858
- "tg": "stats hierarchy migration and rankings after naming approval"
2859
- }
2838
+ "in": "all"
2860
2839
  },
2861
2840
  "stats chats official": {
2862
2841
  "in": [],
@@ -2866,32 +2845,16 @@
2866
2845
  "reason": "MAX has no statistics request of its own for a chat"
2867
2846
  },
2868
2847
  "stats chats show": {
2869
- "in": [],
2870
- "planned": {
2871
- "max": "statistics relocation in the next shared adoption",
2872
- "tg": "statistics relocation in the next shared adoption"
2873
- },
2848
+ "in": "all",
2874
2849
  "options": {
2875
2850
  "--by": {
2876
- "in": [],
2877
- "planned": {
2878
- "max": "statistics relocation in the next shared adoption",
2879
- "tg": "statistics relocation in the next shared adoption"
2880
- }
2851
+ "in": "all"
2881
2852
  },
2882
2853
  "--since-time": {
2883
- "in": [],
2884
- "planned": {
2885
- "max": "statistics relocation in the next shared adoption",
2886
- "tg": "statistics relocation in the next shared adoption"
2887
- }
2854
+ "in": "all"
2888
2855
  },
2889
2856
  "--timezone": {
2890
- "in": [],
2891
- "planned": {
2892
- "max": "statistics relocation in the next shared adoption",
2893
- "tg": "statistics relocation in the next shared adoption"
2894
- }
2857
+ "in": "all"
2895
2858
  }
2896
2859
  }
2897
2860
  },
@@ -2910,88 +2873,47 @@
2910
2873
  }
2911
2874
  },
2912
2875
  "stats messages": {
2913
- "in": [],
2914
- "planned": {
2915
- "max": "stats hierarchy migration and rankings after naming approval",
2916
- "tg": "stats hierarchy migration and rankings after naming approval"
2917
- }
2876
+ "in": "all"
2918
2877
  },
2919
2878
  "stats messages show": {
2920
- "in": [],
2921
- "planned": {
2922
- "max": "statistics relocation in the next shared adoption",
2923
- "tg": "statistics relocation in the next shared adoption"
2924
- },
2879
+ "in": "all",
2925
2880
  "options": {
2926
2881
  "--by": {
2927
- "in": [],
2928
- "planned": {
2929
- "max": "statistics relocation in the next shared adoption",
2930
- "tg": "statistics relocation in the next shared adoption"
2931
- }
2882
+ "in": "all"
2932
2883
  },
2933
2884
  "--chat": {
2885
+ "in": "all"
2886
+ },
2887
+ "--exact": {
2934
2888
  "in": [],
2935
2889
  "planned": {
2936
- "max": "statistics relocation in the next shared adoption",
2937
- "tg": "statistics relocation in the next shared adoption"
2890
+ "max": "each CLI's next cli-messaging bump",
2891
+ "tg": "each CLI's next cli-messaging bump"
2938
2892
  }
2939
2893
  },
2940
2894
  "--limit": {
2941
- "in": [],
2942
- "planned": {
2943
- "max": "statistics relocation in the next shared adoption",
2944
- "tg": "statistics relocation in the next shared adoption"
2945
- }
2895
+ "in": "all"
2946
2896
  },
2947
2897
  "--max-chats": {
2948
- "in": [],
2949
- "planned": {
2950
- "max": "statistics relocation in the next shared adoption",
2951
- "tg": "statistics relocation in the next shared adoption"
2952
- }
2898
+ "in": "all"
2953
2899
  },
2954
2900
  "--max-messages": {
2955
- "in": [],
2956
- "planned": {
2957
- "max": "statistics relocation in the next shared adoption",
2958
- "tg": "statistics relocation in the next shared adoption"
2959
- }
2901
+ "in": "all"
2960
2902
  },
2961
2903
  "--saved": {
2962
- "in": [],
2963
- "planned": {
2964
- "max": "statistics relocation in the next shared adoption",
2965
- "tg": "statistics relocation in the next shared adoption"
2966
- }
2904
+ "in": "all"
2967
2905
  },
2968
2906
  "--source": {
2969
- "in": [],
2970
- "planned": {
2971
- "max": "statistics relocation in the next shared adoption",
2972
- "tg": "statistics relocation in the next shared adoption"
2973
- }
2907
+ "in": "all"
2974
2908
  },
2975
2909
  "--sync-first": {
2976
- "in": [],
2977
- "planned": {
2978
- "max": "statistics relocation in the next shared adoption",
2979
- "tg": "statistics relocation in the next shared adoption"
2980
- }
2910
+ "in": "all"
2981
2911
  },
2982
2912
  "--sync-time": {
2983
- "in": [],
2984
- "planned": {
2985
- "max": "statistics relocation in the next shared adoption",
2986
- "tg": "statistics relocation in the next shared adoption"
2987
- }
2913
+ "in": "all"
2988
2914
  },
2989
2915
  "--timezone": {
2990
- "in": [],
2991
- "planned": {
2992
- "max": "statistics relocation in the next shared adoption",
2993
- "tg": "statistics relocation in the next shared adoption"
2994
- }
2916
+ "in": "all"
2995
2917
  }
2996
2918
  }
2997
2919
  },
@@ -3003,32 +2925,16 @@
3003
2925
  }
3004
2926
  },
3005
2927
  "stats tasks": {
3006
- "in": [],
3007
- "planned": {
3008
- "max": "statistics relocation in the next shared adoption",
3009
- "tg": "statistics relocation in the next shared adoption"
3010
- }
2928
+ "in": "all"
3011
2929
  },
3012
2930
  "stats tasks show": {
3013
- "in": [],
3014
- "planned": {
3015
- "max": "statistics relocation in the next shared adoption",
3016
- "tg": "statistics relocation in the next shared adoption"
3017
- },
2931
+ "in": "all",
3018
2932
  "options": {
3019
2933
  "--chat": {
3020
- "in": [],
3021
- "planned": {
3022
- "max": "statistics relocation in the next shared adoption",
3023
- "tg": "statistics relocation in the next shared adoption"
3024
- }
2934
+ "in": "all"
3025
2935
  },
3026
2936
  "--type": {
3027
- "in": [],
3028
- "planned": {
3029
- "max": "statistics relocation in the next shared adoption",
3030
- "tg": "statistics relocation in the next shared adoption"
3031
- }
2937
+ "in": "all"
3032
2938
  }
3033
2939
  }
3034
2940
  },
@@ -3353,14 +3259,6 @@
3353
3259
  }
3354
3260
  }
3355
3261
  },
3356
- "tasks stats": {
3357
- "in": [],
3358
- "planned": {
3359
- "max": "retire this path at exact shared SDK adoption; no runtime alias",
3360
- "tg": "retire this path at exact shared SDK adoption; no runtime alias"
3361
- },
3362
- "subtree": true
3363
- },
3364
3262
  "topics": {
3365
3263
  "in": ["tg"],
3366
3264
  "reason": "MAX has no forum topics"