@leemour/cli-messaging 0.143.0 → 0.145.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 (121) hide show
  1. package/README.md +8 -0
  2. package/dist/cli/config-command.d.ts +9 -1
  3. package/dist/cli/config-command.d.ts.map +1 -1
  4. package/dist/cli/config-command.js +35 -1
  5. package/dist/cli/config-command.js.map +1 -1
  6. package/dist/cli/index.d.ts +3 -1
  7. package/dist/cli/index.d.ts.map +1 -1
  8. package/dist/cli/index.js +3 -1
  9. package/dist/cli/index.js.map +1 -1
  10. package/dist/cli/messenger/chats-command.d.ts.map +1 -1
  11. package/dist/cli/messenger/chats-command.js +2 -0
  12. package/dist/cli/messenger/chats-command.js.map +1 -1
  13. package/dist/cli/messenger/chats-stats-command.d.ts +4 -0
  14. package/dist/cli/messenger/chats-stats-command.d.ts.map +1 -0
  15. package/dist/cli/messenger/chats-stats-command.js +59 -0
  16. package/dist/cli/messenger/chats-stats-command.js.map +1 -0
  17. package/dist/cli/messenger/context.d.ts +3 -0
  18. package/dist/cli/messenger/context.d.ts.map +1 -1
  19. package/dist/cli/messenger/context.js +4 -0
  20. package/dist/cli/messenger/context.js.map +1 -1
  21. package/dist/cli/messenger/conversations-command.d.ts.map +1 -1
  22. package/dist/cli/messenger/conversations-command.js +8 -3
  23. package/dist/cli/messenger/conversations-command.js.map +1 -1
  24. package/dist/cli/messenger/mcp-command.d.ts +6 -0
  25. package/dist/cli/messenger/mcp-command.d.ts.map +1 -1
  26. package/dist/cli/messenger/mcp-command.js +49 -2
  27. package/dist/cli/messenger/mcp-command.js.map +1 -1
  28. package/dist/cli/permission-keys.d.ts +12 -0
  29. package/dist/cli/permission-keys.d.ts.map +1 -0
  30. package/dist/cli/permission-keys.js +43 -0
  31. package/dist/cli/permission-keys.js.map +1 -0
  32. package/dist/mcp/confirm.d.ts.map +1 -1
  33. package/dist/mcp/confirm.js +16 -6
  34. package/dist/mcp/confirm.js.map +1 -1
  35. package/dist/mcp/http/node.d.ts +17 -0
  36. package/dist/mcp/http/node.d.ts.map +1 -0
  37. package/dist/mcp/http/node.js +74 -0
  38. package/dist/mcp/http/node.js.map +1 -0
  39. package/dist/mcp/http/oauth.d.ts +25 -0
  40. package/dist/mcp/http/oauth.d.ts.map +1 -0
  41. package/dist/mcp/http/oauth.js +264 -0
  42. package/dist/mcp/http/oauth.js.map +1 -0
  43. package/dist/mcp/http/serve.d.ts +21 -0
  44. package/dist/mcp/http/serve.d.ts.map +1 -0
  45. package/dist/mcp/http/serve.js +119 -0
  46. package/dist/mcp/http/serve.js.map +1 -0
  47. package/dist/mcp/personal.d.ts +8 -0
  48. package/dist/mcp/personal.d.ts.map +1 -0
  49. package/dist/mcp/personal.js +20 -0
  50. package/dist/mcp/personal.js.map +1 -0
  51. package/dist/mcp/server.d.ts +13 -0
  52. package/dist/mcp/server.d.ts.map +1 -1
  53. package/dist/mcp/server.js +40 -8
  54. package/dist/mcp/server.js.map +1 -1
  55. package/dist/mcp/session.d.ts +1 -1
  56. package/dist/mcp/session.d.ts.map +1 -1
  57. package/dist/mcp/session.js +1 -1
  58. package/dist/mcp/session.js.map +1 -1
  59. package/dist/mcp/tool.d.ts +16 -3
  60. package/dist/mcp/tool.d.ts.map +1 -1
  61. package/dist/mcp/tool.js +43 -17
  62. package/dist/mcp/tool.js.map +1 -1
  63. package/dist/mcp/tools/account.d.ts.map +1 -1
  64. package/dist/mcp/tools/account.js +1 -0
  65. package/dist/mcp/tools/account.js.map +1 -1
  66. package/dist/mcp/tools/chats.d.ts.map +1 -1
  67. package/dist/mcp/tools/chats.js +21 -1
  68. package/dist/mcp/tools/chats.js.map +1 -1
  69. package/dist/mcp/tools/conversations.d.ts.map +1 -1
  70. package/dist/mcp/tools/conversations.js +39 -8
  71. package/dist/mcp/tools/conversations.js.map +1 -1
  72. package/dist/mcp/tools/inbox.d.ts.map +1 -1
  73. package/dist/mcp/tools/inbox.js +1 -0
  74. package/dist/mcp/tools/inbox.js.map +1 -1
  75. package/dist/mcp/tools/messages-photo.d.ts.map +1 -1
  76. package/dist/mcp/tools/messages-photo.js +8 -2
  77. package/dist/mcp/tools/messages-photo.js.map +1 -1
  78. package/dist/mcp/tools/messages-send.d.ts +1 -3
  79. package/dist/mcp/tools/messages-send.d.ts.map +1 -1
  80. package/dist/mcp/tools/messages-send.js +1 -3
  81. package/dist/mcp/tools/messages-send.js.map +1 -1
  82. package/dist/mcp/tools/messages-transcribe.d.ts.map +1 -1
  83. package/dist/mcp/tools/messages-transcribe.js +9 -2
  84. package/dist/mcp/tools/messages-transcribe.js.map +1 -1
  85. package/dist/mcp/tools/messages.d.ts.map +1 -1
  86. package/dist/mcp/tools/messages.js +1 -0
  87. package/dist/mcp/tools/messages.js.map +1 -1
  88. package/dist/mcp/tools.d.ts +2 -2
  89. package/dist/mcp/tools.d.ts.map +1 -1
  90. package/dist/mcp/tools.js +2 -2
  91. package/dist/mcp/tools.js.map +1 -1
  92. package/dist/sends/index.d.ts +1 -1
  93. package/dist/sends/index.d.ts.map +1 -1
  94. package/dist/sends/index.js +1 -1
  95. package/dist/sends/index.js.map +1 -1
  96. package/dist/sends/permissions.d.ts +2 -0
  97. package/dist/sends/permissions.d.ts.map +1 -1
  98. package/dist/sends/permissions.js +40 -0
  99. package/dist/sends/permissions.js.map +1 -1
  100. package/dist/services/chat-stats.d.ts +70 -0
  101. package/dist/services/chat-stats.d.ts.map +1 -0
  102. package/dist/services/chat-stats.js +125 -0
  103. package/dist/services/chat-stats.js.map +1 -0
  104. package/dist/services/chats.d.ts +10 -0
  105. package/dist/services/chats.d.ts.map +1 -1
  106. package/dist/services/chats.js +44 -0
  107. package/dist/services/chats.js.map +1 -1
  108. package/dist/services/embeddings.d.ts +5 -1
  109. package/dist/services/embeddings.d.ts.map +1 -1
  110. package/dist/services/embeddings.js +4 -1
  111. package/dist/services/embeddings.js.map +1 -1
  112. package/dist/services/inbox.d.ts +7 -0
  113. package/dist/services/inbox.d.ts.map +1 -1
  114. package/dist/services/inbox.js +14 -8
  115. package/dist/services/inbox.js.map +1 -1
  116. package/dist/services/messages-search.d.ts +1 -0
  117. package/dist/services/messages-search.d.ts.map +1 -1
  118. package/dist/services/messages-search.js +1 -1
  119. package/dist/services/messages-search.js.map +1 -1
  120. package/package.json +1 -1
  121. package/parity.json +44 -105
package/parity.json CHANGED
@@ -42,19 +42,19 @@
42
42
  },
43
43
  "--allow-delete": {
44
44
  "meaning": "offer the tool that deletes messages for you only; it cannot be undone",
45
- "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
45
+ "note": "retired access flag: accepted with a warning, grants no permissions in either CLI"
46
46
  },
47
47
  "--allow-mark-read": {
48
48
  "meaning": "offer the tool that marks a chat read; the other person sees it",
49
- "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
49
+ "note": "retired access flag: accepted with a warning, grants no permissions in either CLI"
50
50
  },
51
51
  "--allow-moderate": {
52
52
  "meaning": "offer the tool that applies a group's rules — delete others' messages, remove people",
53
- "note": "max only, until permissions (P7) replace the MCP flags"
53
+ "note": "retired access flag: accepted with a warning, grants no permissions in either CLI"
54
54
  },
55
55
  "--allow-send": {
56
56
  "meaning": "offer the send tool; without it the server can only read",
57
- "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
57
+ "note": "retired access flag: accepted with a warning, grants no permissions in either CLI"
58
58
  },
59
59
  "--allow-writes": {
60
60
  "meaning": "acknowledge that the profile offers writing tools when installing local MCP"
@@ -108,7 +108,11 @@
108
108
  "value": "<profiles>",
109
109
  "meaning": "also read these bots' copies, comma separated — each allowed by readOtherBots"
110
110
  },
111
- "--by": { "value": "<chat|sender|day|hour>", "meaning": "what to count by" },
111
+ "--by": {
112
+ "value": "<grouping>",
113
+ "meaning": "what to count by",
114
+ "note": "each command names its own groupings — messages stats chat, sender, day or hour; chats stats day or week, as a series beside its totals — so it differs on purpose (Help text rule 4)"
115
+ },
112
116
  "--can": {
113
117
  "value": "<rights>",
114
118
  "meaning": "what they may do, comma-separated: read, members, admins, info, pin, link, post, edit, delete",
@@ -131,7 +135,7 @@
131
135
  },
132
136
  "--confirm-send": {
133
137
  "meaning": "show the owner every write the MCP server offers, in a form to approve",
134
- "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
138
+ "note": "MAX retains its native wrapper wording; confirmation semantics already follow profile permissions in both CLIs"
135
139
  },
136
140
  "--context": {
137
141
  "value": "<n>",
@@ -1085,6 +1089,24 @@
1085
1089
  "chats show": {
1086
1090
  "in": "all"
1087
1091
  },
1092
+ "chats stats": {
1093
+ "in": [],
1094
+ "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" },
1095
+ "options": {
1096
+ "--by": {
1097
+ "in": [],
1098
+ "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
1099
+ },
1100
+ "--since-time": {
1101
+ "in": [],
1102
+ "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
1103
+ },
1104
+ "--timezone": {
1105
+ "in": [],
1106
+ "planned": { "max": "each CLI's next cli-messaging bump", "tg": "each CLI's next cli-messaging bump" }
1107
+ }
1108
+ }
1109
+ },
1088
1110
  "chats update": {
1089
1111
  "in": "all",
1090
1112
  "options": {
@@ -1116,9 +1138,8 @@
1116
1138
  "in": "all"
1117
1139
  },
1118
1140
  "config migrate": {
1119
- "in": ["tg"],
1120
- "planned": { "max": "P7" },
1121
- "options": { "--dry-run": { "in": ["tg"], "planned": { "max": "P7" } } }
1141
+ "in": "all",
1142
+ "options": { "--dry-run": { "in": "all" } }
1122
1143
  },
1123
1144
  "config set": {
1124
1145
  "in": "all",
@@ -1491,30 +1512,12 @@
1491
1512
  "tg": "T6"
1492
1513
  }
1493
1514
  },
1494
- "--kind": {
1495
- "in": [],
1496
- "planned": {
1497
- "max": "each CLI's next cli-messaging bump",
1498
- "tg": "each CLI's next cli-messaging bump"
1499
- }
1500
- },
1515
+ "--kind": "all",
1501
1516
  "--limit": "all",
1502
- "--mark-read": {
1503
- "in": [],
1504
- "planned": {
1505
- "max": "each CLI's next cli-messaging bump",
1506
- "tg": "each CLI's next cli-messaging bump"
1507
- }
1508
- },
1517
+ "--mark-read": "all",
1509
1518
  "--model": "all",
1510
1519
  "--new": "all",
1511
- "--no-mark-read": {
1512
- "in": [],
1513
- "planned": {
1514
- "max": "each CLI's next cli-messaging bump",
1515
- "tg": "each CLI's next cli-messaging bump"
1516
- }
1517
- },
1520
+ "--no-mark-read": "all",
1518
1521
  "--since": {
1519
1522
  "in": [],
1520
1523
  "planned": {
@@ -1951,20 +1954,8 @@
1951
1954
  }
1952
1955
  },
1953
1956
  "--chat": "all",
1954
- "--kind": {
1955
- "in": [],
1956
- "planned": {
1957
- "max": "each CLI's next cli-messaging bump",
1958
- "tg": "each CLI's next cli-messaging bump"
1959
- }
1960
- },
1961
- "--mark-read": {
1962
- "in": [],
1963
- "planned": {
1964
- "max": "each CLI's next cli-messaging bump",
1965
- "tg": "each CLI's next cli-messaging bump"
1966
- }
1967
- },
1957
+ "--kind": "all",
1958
+ "--mark-read": "all",
1968
1959
  "--model": {
1969
1960
  "in": [],
1970
1961
  "planned": {
@@ -1972,20 +1963,8 @@
1972
1963
  "tg": "T6"
1973
1964
  }
1974
1965
  },
1975
- "--new": {
1976
- "in": [],
1977
- "planned": {
1978
- "max": "each CLI's next cli-messaging bump",
1979
- "tg": "each CLI's next cli-messaging bump"
1980
- }
1981
- },
1982
- "--no-mark-read": {
1983
- "in": [],
1984
- "planned": {
1985
- "max": "each CLI's next cli-messaging bump",
1986
- "tg": "each CLI's next cli-messaging bump"
1987
- }
1988
- },
1966
+ "--new": "all",
1967
+ "--no-mark-read": "all",
1989
1968
  "--since": {
1990
1969
  "in": [],
1991
1970
  "planned": {
@@ -2160,13 +2139,7 @@
2160
2139
  "store backup": {
2161
2140
  "in": "all",
2162
2141
  "options": {
2163
- "--encrypt": {
2164
- "in": [],
2165
- "planned": {
2166
- "max": "each CLI's next cli-messaging bump",
2167
- "tg": "each CLI's next cli-messaging bump"
2168
- }
2169
- }
2142
+ "--encrypt": "all"
2170
2143
  }
2171
2144
  },
2172
2145
  "store check": {
@@ -2180,55 +2153,21 @@
2180
2153
  }
2181
2154
  },
2182
2155
  "store decrypt": {
2183
- "in": [],
2184
- "planned": {
2185
- "max": "each CLI's next cli-messaging bump",
2186
- "tg": "each CLI's next cli-messaging bump"
2187
- },
2156
+ "in": "all",
2188
2157
  "options": {
2189
- "--output": {
2190
- "in": [],
2191
- "planned": {
2192
- "max": "each CLI's next cli-messaging bump",
2193
- "tg": "each CLI's next cli-messaging bump"
2194
- }
2195
- }
2158
+ "--output": "all"
2196
2159
  }
2197
2160
  },
2198
2161
  "store export": {
2199
2162
  "in": "all",
2200
2163
  "options": {
2201
- "--all": {
2202
- "in": [],
2203
- "planned": {
2204
- "max": "each CLI's next cli-messaging bump",
2205
- "tg": "each CLI's next cli-messaging bump"
2206
- }
2207
- },
2208
- "--encrypt": {
2209
- "in": [],
2210
- "planned": {
2211
- "max": "each CLI's next cli-messaging bump",
2212
- "tg": "each CLI's next cli-messaging bump"
2213
- }
2214
- },
2164
+ "--all": "all",
2165
+ "--encrypt": "all",
2215
2166
  "--format": "all",
2216
- "--kind": {
2217
- "in": [],
2218
- "planned": {
2219
- "max": "each CLI's next cli-messaging bump",
2220
- "tg": "each CLI's next cli-messaging bump"
2221
- }
2222
- },
2167
+ "--kind": "all",
2223
2168
  "--output": "all",
2224
2169
  "--since-time": "all",
2225
- "--to": {
2226
- "in": [],
2227
- "planned": {
2228
- "max": "each CLI's next cli-messaging bump",
2229
- "tg": "each CLI's next cli-messaging bump"
2230
- }
2231
- }
2170
+ "--to": "all"
2232
2171
  }
2233
2172
  },
2234
2173
  "store fetch": {