@leemour/cli-messaging 0.151.0 → 0.153.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 (88) hide show
  1. package/README.md +5 -0
  2. package/dist/cli/index.d.ts +3 -1
  3. package/dist/cli/index.d.ts.map +1 -1
  4. package/dist/cli/index.js +3 -1
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/cli/messenger/replies-command.d.ts.map +1 -1
  7. package/dist/cli/messenger/replies-command.js +27 -6
  8. package/dist/cli/messenger/replies-command.js.map +1 -1
  9. package/dist/cli/messenger/serve-command.js +15 -3
  10. package/dist/cli/messenger/serve-command.js.map +1 -1
  11. package/dist/cli/messenger/tasks-command.d.ts +5 -0
  12. package/dist/cli/messenger/tasks-command.d.ts.map +1 -0
  13. package/dist/cli/messenger/tasks-command.js +108 -0
  14. package/dist/cli/messenger/tasks-command.js.map +1 -0
  15. package/dist/conversations/chunks.d.ts +19 -3
  16. package/dist/conversations/chunks.d.ts.map +1 -1
  17. package/dist/conversations/chunks.js +48 -3
  18. package/dist/conversations/chunks.js.map +1 -1
  19. package/dist/conversations/link.d.ts +2 -1
  20. package/dist/conversations/link.d.ts.map +1 -1
  21. package/dist/conversations/link.js +2 -1
  22. package/dist/conversations/link.js.map +1 -1
  23. package/dist/mcp/http/oauth.d.ts.map +1 -1
  24. package/dist/mcp/http/oauth.js +2 -1
  25. package/dist/mcp/http/oauth.js.map +1 -1
  26. package/dist/mcp/tools/tasks.d.ts +4 -0
  27. package/dist/mcp/tools/tasks.d.ts.map +1 -0
  28. package/dist/mcp/tools/tasks.js +84 -0
  29. package/dist/mcp/tools/tasks.js.map +1 -0
  30. package/dist/mcp/tools.d.ts.map +1 -1
  31. package/dist/mcp/tools.js +2 -0
  32. package/dist/mcp/tools.js.map +1 -1
  33. package/dist/replies/decide.d.ts +7 -3
  34. package/dist/replies/decide.d.ts.map +1 -1
  35. package/dist/replies/decide.js +14 -5
  36. package/dist/replies/decide.js.map +1 -1
  37. package/dist/replies/dry-run.d.ts +7 -3
  38. package/dist/replies/dry-run.d.ts.map +1 -1
  39. package/dist/replies/dry-run.js +6 -4
  40. package/dist/replies/dry-run.js.map +1 -1
  41. package/dist/replies/rules.d.ts +40 -34
  42. package/dist/replies/rules.d.ts.map +1 -1
  43. package/dist/replies/rules.js +39 -5
  44. package/dist/replies/rules.js.map +1 -1
  45. package/dist/replies/serve.d.ts +10 -2
  46. package/dist/replies/serve.d.ts.map +1 -1
  47. package/dist/replies/serve.js +31 -10
  48. package/dist/replies/serve.js.map +1 -1
  49. package/dist/sends/permissions.d.ts +1 -1
  50. package/dist/sends/permissions.d.ts.map +1 -1
  51. package/dist/sends/permissions.js +3 -0
  52. package/dist/sends/permissions.js.map +1 -1
  53. package/dist/services/conversations.js +1 -1
  54. package/dist/services/conversations.js.map +1 -1
  55. package/dist/services/index.d.ts +4 -0
  56. package/dist/services/index.d.ts.map +1 -1
  57. package/dist/services/index.js +3 -0
  58. package/dist/services/index.js.map +1 -1
  59. package/dist/services/task-rules.d.ts +5 -0
  60. package/dist/services/task-rules.d.ts.map +1 -1
  61. package/dist/services/task-rules.js +20 -0
  62. package/dist/services/task-rules.js.map +1 -1
  63. package/dist/services/tasks.d.ts +43 -0
  64. package/dist/services/tasks.d.ts.map +1 -0
  65. package/dist/services/tasks.js +91 -0
  66. package/dist/services/tasks.js.map +1 -0
  67. package/dist/store/sqlite/conversations.d.ts.map +1 -1
  68. package/dist/store/sqlite/conversations.js +4 -0
  69. package/dist/store/sqlite/conversations.js.map +1 -1
  70. package/dist/store/sqlite/manifest.d.ts.map +1 -1
  71. package/dist/store/sqlite/manifest.js +1 -0
  72. package/dist/store/sqlite/manifest.js.map +1 -1
  73. package/dist/store/sqlite/migrations.generated.d.ts.map +1 -1
  74. package/dist/store/sqlite/migrations.generated.js +7 -0
  75. package/dist/store/sqlite/migrations.generated.js.map +1 -1
  76. package/dist/store/sqlite/schema.d.ts +32 -0
  77. package/dist/store/sqlite/schema.d.ts.map +1 -1
  78. package/dist/store/sqlite/schema.js +6 -0
  79. package/dist/store/sqlite/schema.js.map +1 -1
  80. package/dist/store/sqlite/vectors.d.ts +4 -1
  81. package/dist/store/sqlite/vectors.d.ts.map +1 -1
  82. package/dist/store/sqlite/vectors.js +26 -13
  83. package/dist/store/sqlite/vectors.js.map +1 -1
  84. package/dist/store/store.d.ts +2 -0
  85. package/dist/store/store.d.ts.map +1 -1
  86. package/dist/store/store.js.map +1 -1
  87. package/package.json +1 -1
  88. package/parity.json +227 -110
package/parity.json CHANGED
@@ -1200,30 +1200,11 @@
1200
1200
  }
1201
1201
  },
1202
1202
  "chats members audit": {
1203
- "in": [],
1204
- "planned": {
1205
- "max": "each CLI's next cli-messaging bump",
1206
- "tg": "each CLI's next cli-messaging bump"
1207
- },
1203
+ "in": "all",
1208
1204
  "options": {
1209
- "--budget": {
1210
- "in": [],
1211
- "planned": {
1212
- "max": "each CLI's next cli-messaging bump",
1213
- "tg": "each CLI's next cli-messaging bump"
1214
- }
1215
- },
1216
- "--deep": {
1217
- "in": [],
1218
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
1219
- },
1220
- "--min-score": {
1221
- "in": [],
1222
- "planned": {
1223
- "max": "each CLI's next cli-messaging bump",
1224
- "tg": "each CLI's next cli-messaging bump"
1225
- }
1226
- }
1205
+ "--budget": "all",
1206
+ "--deep": "all",
1207
+ "--min-score": "all"
1227
1208
  }
1228
1209
  },
1229
1210
  "chats members fetch": {
@@ -1503,33 +1484,17 @@
1503
1484
  "in": "all"
1504
1485
  },
1505
1486
  "contacts check": {
1506
- "in": [],
1507
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" },
1487
+ "in": "all",
1508
1488
  "options": {
1509
- "--no-registries": {
1510
- "in": [],
1511
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
1512
- }
1489
+ "--no-registries": "all"
1513
1490
  }
1514
1491
  },
1515
1492
  "contacts context": {
1516
1493
  "in": "all",
1517
1494
  "options": {
1518
- "--chat": {
1519
- "in": [],
1520
- "planned": {
1521
- "max": "max's next cli-messaging bump",
1522
- "tg": "tg's next cli-messaging bump"
1523
- }
1524
- },
1495
+ "--chat": "all",
1525
1496
  "--limit": "all",
1526
- "--refresh": {
1527
- "in": [],
1528
- "planned": {
1529
- "max": "max's next cli-messaging bump",
1530
- "tg": "tg's next cli-messaging bump"
1531
- }
1532
- },
1497
+ "--refresh": "all",
1533
1498
  "--since-time": "all"
1534
1499
  }
1535
1500
  },
@@ -1553,19 +1518,9 @@
1553
1518
  "in": "all"
1554
1519
  },
1555
1520
  "contacts profile": {
1556
- "in": [],
1557
- "planned": {
1558
- "max": "max's next cli-messaging bump",
1559
- "tg": "tg's next cli-messaging bump"
1560
- },
1521
+ "in": "all",
1561
1522
  "options": {
1562
- "--show-phone": {
1563
- "in": [],
1564
- "planned": {
1565
- "max": "max's next cli-messaging bump",
1566
- "tg": "tg's next cli-messaging bump"
1567
- }
1568
- }
1523
+ "--show-phone": "all"
1569
1524
  }
1570
1525
  },
1571
1526
  "contacts remove": {
@@ -2332,41 +2287,21 @@
2332
2287
  "in": "all"
2333
2288
  },
2334
2289
  "replies": {
2335
- "in": ["tg"],
2336
- "planned": {
2337
- "max": "max's own serve does not run the reply rules yet"
2338
- }
2290
+ "in": "all"
2339
2291
  },
2340
2292
  "replies pause": {
2341
- "in": ["tg"],
2342
- "planned": {
2343
- "max": "max's own serve does not run the reply rules yet"
2344
- }
2293
+ "in": "all"
2345
2294
  },
2346
2295
  "replies resume": {
2347
- "in": ["tg"],
2348
- "planned": {
2349
- "max": "max's own serve does not run the reply rules yet"
2350
- }
2296
+ "in": "all"
2351
2297
  },
2352
2298
  "replies status": {
2353
- "in": ["tg"],
2354
- "planned": {
2355
- "max": "max's own serve does not run the reply rules yet"
2356
- }
2299
+ "in": "all"
2357
2300
  },
2358
2301
  "replies test": {
2359
- "in": ["tg"],
2360
- "planned": {
2361
- "max": "max's own serve does not run the reply rules yet"
2362
- },
2302
+ "in": "all",
2363
2303
  "options": {
2364
- "--since-time": {
2365
- "in": ["tg"],
2366
- "planned": {
2367
- "max": "max's own serve does not run the reply rules yet"
2368
- }
2369
- }
2304
+ "--since-time": "all"
2370
2305
  }
2371
2306
  },
2372
2307
  "review": {
@@ -2618,56 +2553,193 @@
2618
2553
  "in": "all"
2619
2554
  },
2620
2555
  "stats": {
2621
- "in": [],
2556
+ "in": ["max"],
2622
2557
  "planned": {
2623
- "max": "stats charts adoption",
2624
2558
  "tg": "stats charts adoption"
2625
2559
  }
2626
2560
  },
2627
2561
  "stats charts": {
2628
- "in": [],
2562
+ "in": ["max"],
2629
2563
  "planned": {
2630
- "max": "stats charts adoption",
2631
2564
  "tg": "stats charts adoption"
2632
2565
  },
2633
2566
  "options": {
2634
2567
  "--by": {
2635
- "in": [],
2568
+ "in": ["max"],
2636
2569
  "planned": {
2637
- "max": "stats charts adoption",
2638
2570
  "tg": "stats charts adoption"
2639
2571
  }
2640
2572
  },
2641
2573
  "--chart-kind": {
2642
- "in": [],
2574
+ "in": ["max"],
2643
2575
  "planned": {
2644
- "max": "stats charts adoption",
2645
2576
  "tg": "stats charts adoption"
2646
2577
  }
2647
2578
  },
2648
2579
  "--output": {
2649
- "in": [],
2580
+ "in": ["max"],
2650
2581
  "planned": {
2651
- "max": "stats charts adoption",
2652
2582
  "tg": "stats charts adoption"
2653
2583
  }
2654
2584
  },
2655
2585
  "--since-time": {
2656
- "in": [],
2586
+ "in": ["max"],
2657
2587
  "planned": {
2658
- "max": "stats charts adoption",
2659
2588
  "tg": "stats charts adoption"
2660
2589
  }
2661
2590
  },
2662
2591
  "--timezone": {
2663
- "in": [],
2592
+ "in": ["max"],
2664
2593
  "planned": {
2665
- "max": "stats charts adoption",
2666
2594
  "tg": "stats charts adoption"
2667
2595
  }
2668
2596
  }
2669
2597
  }
2670
2598
  },
2599
+ "stats chats": {
2600
+ "in": [],
2601
+ "planned": {
2602
+ "max": "stats hierarchy migration and rankings after naming approval",
2603
+ "tg": "stats hierarchy migration and rankings after naming approval"
2604
+ }
2605
+ },
2606
+ "stats chats show": {
2607
+ "in": [],
2608
+ "planned": {
2609
+ "max": "stats hierarchy migration and rankings after naming approval",
2610
+ "tg": "stats hierarchy migration and rankings after naming approval"
2611
+ },
2612
+ "options": {
2613
+ "--by": {
2614
+ "in": [],
2615
+ "planned": {
2616
+ "max": "stats hierarchy migration and rankings after naming approval",
2617
+ "tg": "stats hierarchy migration and rankings after naming approval"
2618
+ }
2619
+ },
2620
+ "--since-time": {
2621
+ "in": [],
2622
+ "planned": {
2623
+ "max": "stats hierarchy migration and rankings after naming approval",
2624
+ "tg": "stats hierarchy migration and rankings after naming approval"
2625
+ }
2626
+ },
2627
+ "--timezone": {
2628
+ "in": [],
2629
+ "planned": {
2630
+ "max": "stats hierarchy migration and rankings after naming approval",
2631
+ "tg": "stats hierarchy migration and rankings after naming approval"
2632
+ }
2633
+ }
2634
+ }
2635
+ },
2636
+ "stats contacts": {
2637
+ "in": [],
2638
+ "planned": {
2639
+ "max": "stats hierarchy migration and rankings after naming approval",
2640
+ "tg": "stats hierarchy migration and rankings after naming approval"
2641
+ }
2642
+ },
2643
+ "stats contacts top": {
2644
+ "in": [],
2645
+ "planned": {
2646
+ "max": "stats hierarchy migration and rankings after naming approval",
2647
+ "tg": "stats hierarchy migration and rankings after naming approval"
2648
+ }
2649
+ },
2650
+ "stats messages": {
2651
+ "in": [],
2652
+ "planned": {
2653
+ "max": "stats hierarchy migration and rankings after naming approval",
2654
+ "tg": "stats hierarchy migration and rankings after naming approval"
2655
+ }
2656
+ },
2657
+ "stats messages show": {
2658
+ "in": [],
2659
+ "planned": {
2660
+ "max": "stats hierarchy migration and rankings after naming approval",
2661
+ "tg": "stats hierarchy migration and rankings after naming approval"
2662
+ },
2663
+ "options": {
2664
+ "--by": {
2665
+ "in": [],
2666
+ "planned": {
2667
+ "max": "stats hierarchy migration and rankings after naming approval",
2668
+ "tg": "stats hierarchy migration and rankings after naming approval"
2669
+ }
2670
+ },
2671
+ "--chat": {
2672
+ "in": [],
2673
+ "planned": {
2674
+ "max": "stats hierarchy migration and rankings after naming approval",
2675
+ "tg": "stats hierarchy migration and rankings after naming approval"
2676
+ }
2677
+ },
2678
+ "--limit": {
2679
+ "in": [],
2680
+ "planned": {
2681
+ "max": "stats hierarchy migration and rankings after naming approval",
2682
+ "tg": "stats hierarchy migration and rankings after naming approval"
2683
+ }
2684
+ },
2685
+ "--max-chats": {
2686
+ "in": [],
2687
+ "planned": {
2688
+ "max": "stats hierarchy migration and rankings after naming approval",
2689
+ "tg": "stats hierarchy migration and rankings after naming approval"
2690
+ }
2691
+ },
2692
+ "--max-messages": {
2693
+ "in": [],
2694
+ "planned": {
2695
+ "max": "stats hierarchy migration and rankings after naming approval",
2696
+ "tg": "stats hierarchy migration and rankings after naming approval"
2697
+ }
2698
+ },
2699
+ "--saved": {
2700
+ "in": [],
2701
+ "planned": {
2702
+ "max": "stats hierarchy migration and rankings after naming approval",
2703
+ "tg": "stats hierarchy migration and rankings after naming approval"
2704
+ }
2705
+ },
2706
+ "--source": {
2707
+ "in": [],
2708
+ "planned": {
2709
+ "max": "stats hierarchy migration and rankings after naming approval",
2710
+ "tg": "stats hierarchy migration and rankings after naming approval"
2711
+ }
2712
+ },
2713
+ "--sync-first": {
2714
+ "in": [],
2715
+ "planned": {
2716
+ "max": "stats hierarchy migration and rankings after naming approval",
2717
+ "tg": "stats hierarchy migration and rankings after naming approval"
2718
+ }
2719
+ },
2720
+ "--sync-time": {
2721
+ "in": [],
2722
+ "planned": {
2723
+ "max": "stats hierarchy migration and rankings after naming approval",
2724
+ "tg": "stats hierarchy migration and rankings after naming approval"
2725
+ }
2726
+ },
2727
+ "--timezone": {
2728
+ "in": [],
2729
+ "planned": {
2730
+ "max": "stats hierarchy migration and rankings after naming approval",
2731
+ "tg": "stats hierarchy migration and rankings after naming approval"
2732
+ }
2733
+ }
2734
+ }
2735
+ },
2736
+ "stats messages top": {
2737
+ "in": [],
2738
+ "planned": {
2739
+ "max": "stats hierarchy migration and rankings after naming approval",
2740
+ "tg": "stats hierarchy migration and rankings after naming approval"
2741
+ }
2742
+ },
2671
2743
  "store": {
2672
2744
  "in": "all"
2673
2745
  },
@@ -2807,69 +2879,114 @@
2807
2879
  },
2808
2880
  "tasks": {
2809
2881
  "in": [],
2810
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2882
+ "planned": {
2883
+ "max": "each CLI's next cli-messaging bump",
2884
+ "tg": "each CLI's next cli-messaging bump"
2885
+ }
2811
2886
  },
2812
2887
  "tasks add": {
2813
2888
  "in": [],
2814
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" },
2889
+ "planned": {
2890
+ "max": "each CLI's next cli-messaging bump",
2891
+ "tg": "each CLI's next cli-messaging bump"
2892
+ },
2815
2893
  "options": {
2816
2894
  "--type": {
2817
2895
  "in": [],
2818
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2896
+ "planned": {
2897
+ "max": "each CLI's next cli-messaging bump",
2898
+ "tg": "each CLI's next cli-messaging bump"
2899
+ }
2819
2900
  }
2820
2901
  }
2821
2902
  },
2822
2903
  "tasks close": {
2823
2904
  "in": [],
2824
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" },
2905
+ "planned": {
2906
+ "max": "each CLI's next cli-messaging bump",
2907
+ "tg": "each CLI's next cli-messaging bump"
2908
+ },
2825
2909
  "options": {
2826
2910
  "--as": {
2827
2911
  "in": [],
2828
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2912
+ "planned": {
2913
+ "max": "each CLI's next cli-messaging bump",
2914
+ "tg": "each CLI's next cli-messaging bump"
2915
+ }
2829
2916
  },
2830
2917
  "--reason": {
2831
2918
  "in": [],
2832
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2919
+ "planned": {
2920
+ "max": "each CLI's next cli-messaging bump",
2921
+ "tg": "each CLI's next cli-messaging bump"
2922
+ }
2833
2923
  }
2834
2924
  }
2835
2925
  },
2836
2926
  "tasks list": {
2837
2927
  "in": [],
2838
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" },
2928
+ "planned": {
2929
+ "max": "each CLI's next cli-messaging bump",
2930
+ "tg": "each CLI's next cli-messaging bump"
2931
+ },
2839
2932
  "options": {
2840
2933
  "--before-time": {
2841
2934
  "in": [],
2842
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2935
+ "planned": {
2936
+ "max": "each CLI's next cli-messaging bump",
2937
+ "tg": "each CLI's next cli-messaging bump"
2938
+ }
2843
2939
  },
2844
2940
  "--chat": {
2845
2941
  "in": [],
2846
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2942
+ "planned": {
2943
+ "max": "each CLI's next cli-messaging bump",
2944
+ "tg": "each CLI's next cli-messaging bump"
2945
+ }
2847
2946
  },
2848
2947
  "--limit": {
2849
2948
  "in": [],
2850
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2949
+ "planned": {
2950
+ "max": "each CLI's next cli-messaging bump",
2951
+ "tg": "each CLI's next cli-messaging bump"
2952
+ }
2851
2953
  },
2852
2954
  "--state": {
2853
2955
  "in": [],
2854
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2956
+ "planned": {
2957
+ "max": "each CLI's next cli-messaging bump",
2958
+ "tg": "each CLI's next cli-messaging bump"
2959
+ }
2855
2960
  },
2856
2961
  "--type": {
2857
2962
  "in": [],
2858
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2963
+ "planned": {
2964
+ "max": "each CLI's next cli-messaging bump",
2965
+ "tg": "each CLI's next cli-messaging bump"
2966
+ }
2859
2967
  }
2860
2968
  }
2861
2969
  },
2862
2970
  "tasks stats": {
2863
2971
  "in": [],
2864
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" },
2972
+ "planned": {
2973
+ "max": "each CLI's next cli-messaging bump",
2974
+ "tg": "each CLI's next cli-messaging bump"
2975
+ },
2865
2976
  "options": {
2866
2977
  "--chat": {
2867
2978
  "in": [],
2868
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2979
+ "planned": {
2980
+ "max": "each CLI's next cli-messaging bump",
2981
+ "tg": "each CLI's next cli-messaging bump"
2982
+ }
2869
2983
  },
2870
2984
  "--type": {
2871
2985
  "in": [],
2872
- "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
2986
+ "planned": {
2987
+ "max": "each CLI's next cli-messaging bump",
2988
+ "tg": "each CLI's next cli-messaging bump"
2989
+ }
2873
2990
  }
2874
2991
  }
2875
2992
  },