@leemour/cli-messaging 0.88.0 → 0.89.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 (104) hide show
  1. package/dist/cli/bot/port.d.ts +29 -0
  2. package/dist/cli/bot/port.d.ts.map +1 -0
  3. package/dist/cli/bot/port.js +2 -0
  4. package/dist/cli/bot/port.js.map +1 -0
  5. package/dist/cli/bot/registry.d.ts +37 -0
  6. package/dist/cli/bot/registry.d.ts.map +1 -0
  7. package/dist/cli/bot/registry.js +94 -0
  8. package/dist/cli/bot/registry.js.map +1 -0
  9. package/dist/cli/bot/token.d.ts +25 -0
  10. package/dist/cli/bot/token.d.ts.map +1 -0
  11. package/dist/cli/bot/token.js +36 -0
  12. package/dist/cli/bot/token.js.map +1 -0
  13. package/dist/cli/index.d.ts +4 -0
  14. package/dist/cli/index.d.ts.map +1 -1
  15. package/dist/cli/index.js +3 -0
  16. package/dist/cli/index.js.map +1 -1
  17. package/dist/cli/messenger/after.d.ts +18 -5
  18. package/dist/cli/messenger/after.d.ts.map +1 -1
  19. package/dist/cli/messenger/after.js +19 -31
  20. package/dist/cli/messenger/after.js.map +1 -1
  21. package/dist/cli/messenger/conversations-command.d.ts +10 -0
  22. package/dist/cli/messenger/conversations-command.d.ts.map +1 -0
  23. package/dist/cli/messenger/conversations-command.js +101 -0
  24. package/dist/cli/messenger/conversations-command.js.map +1 -0
  25. package/dist/cli/messenger/messages-command.d.ts.map +1 -1
  26. package/dist/cli/messenger/messages-command.js +6 -7
  27. package/dist/cli/messenger/messages-command.js.map +1 -1
  28. package/dist/cli/messenger/server-command.d.ts.map +1 -1
  29. package/dist/cli/messenger/server-command.js +18 -9
  30. package/dist/cli/messenger/server-command.js.map +1 -1
  31. package/dist/cli/messenger/store-maintenance-command.d.ts.map +1 -1
  32. package/dist/cli/messenger/store-maintenance-command.js +34 -0
  33. package/dist/cli/messenger/store-maintenance-command.js.map +1 -1
  34. package/dist/conversations/link.d.ts +2 -2
  35. package/dist/conversations/link.d.ts.map +1 -1
  36. package/dist/conversations/link.js +6 -4
  37. package/dist/conversations/link.js.map +1 -1
  38. package/dist/domain/models.d.ts +2 -0
  39. package/dist/domain/models.d.ts.map +1 -1
  40. package/dist/mcp/confirm.js +1 -1
  41. package/dist/mcp/confirm.js.map +1 -1
  42. package/dist/mcp/tool.d.ts +2 -0
  43. package/dist/mcp/tool.d.ts.map +1 -1
  44. package/dist/mcp/tool.js +2 -0
  45. package/dist/mcp/tool.js.map +1 -1
  46. package/dist/mcp/tools/chats.d.ts.map +1 -1
  47. package/dist/mcp/tools/chats.js +13 -8
  48. package/dist/mcp/tools/chats.js.map +1 -1
  49. package/dist/mcp/tools/conversations.d.ts +5 -0
  50. package/dist/mcp/tools/conversations.d.ts.map +1 -0
  51. package/dist/mcp/tools/conversations.js +56 -0
  52. package/dist/mcp/tools/conversations.js.map +1 -0
  53. package/dist/mcp/tools/inbox.js +3 -3
  54. package/dist/mcp/tools/inbox.js.map +1 -1
  55. package/dist/mcp/tools/messages-send.js +4 -4
  56. package/dist/mcp/tools/messages-send.js.map +1 -1
  57. package/dist/mcp/tools/messages.d.ts.map +1 -1
  58. package/dist/mcp/tools/messages.js +25 -18
  59. package/dist/mcp/tools/messages.js.map +1 -1
  60. package/dist/mcp/tools/review.d.ts.map +1 -1
  61. package/dist/mcp/tools/review.js +3 -3
  62. package/dist/mcp/tools/review.js.map +1 -1
  63. package/dist/mcp/tools.d.ts.map +1 -1
  64. package/dist/mcp/tools.js +2 -0
  65. package/dist/mcp/tools.js.map +1 -1
  66. package/dist/parity/bin.js +15 -2
  67. package/dist/parity/bin.js.map +1 -1
  68. package/dist/parity/index.d.ts +1 -0
  69. package/dist/parity/index.d.ts.map +1 -1
  70. package/dist/parity/index.js +1 -0
  71. package/dist/parity/index.js.map +1 -1
  72. package/dist/parity/wording.d.ts +7 -0
  73. package/dist/parity/wording.d.ts.map +1 -0
  74. package/dist/parity/wording.js +31 -0
  75. package/dist/parity/wording.js.map +1 -0
  76. package/dist/sends/permissions.js +1 -1
  77. package/dist/sends/permissions.js.map +1 -1
  78. package/dist/services/conversations.d.ts +45 -0
  79. package/dist/services/conversations.d.ts.map +1 -0
  80. package/dist/services/conversations.js +92 -0
  81. package/dist/services/conversations.js.map +1 -0
  82. package/dist/services/index.d.ts +4 -0
  83. package/dist/services/index.d.ts.map +1 -1
  84. package/dist/services/index.js +3 -0
  85. package/dist/services/index.js.map +1 -1
  86. package/dist/store/sqlite/conversations.d.ts +45 -0
  87. package/dist/store/sqlite/conversations.d.ts.map +1 -0
  88. package/dist/store/sqlite/conversations.js +309 -0
  89. package/dist/store/sqlite/conversations.js.map +1 -0
  90. package/dist/store/sqlite/messages.d.ts.map +1 -1
  91. package/dist/store/sqlite/messages.js +2 -0
  92. package/dist/store/sqlite/messages.js.map +1 -1
  93. package/dist/store/sqlite/reads.d.ts +50 -0
  94. package/dist/store/sqlite/reads.d.ts.map +1 -1
  95. package/dist/store/sqlite/reads.js +2 -1
  96. package/dist/store/sqlite/reads.js.map +1 -1
  97. package/dist/store/sqlite/search.d.ts +33 -0
  98. package/dist/store/sqlite/search.d.ts.map +1 -1
  99. package/dist/store/store.d.ts +70 -0
  100. package/dist/store/store.d.ts.map +1 -1
  101. package/dist/store/store.js +46 -0
  102. package/dist/store/store.js.map +1 -1
  103. package/package.json +1 -1
  104. package/parity.json +43 -17
package/parity.json CHANGED
@@ -35,17 +35,20 @@
35
35
  "meaning": "go ahead without the question an ask level puts before a deletion"
36
36
  },
37
37
  "--allow-delete": {
38
- "meaning": "offer the tool that deletes messages for you only; it cannot be undone"
38
+ "meaning": "offer the tool that deletes messages for you only; it cannot be undone",
39
+ "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
39
40
  },
40
41
  "--allow-mark-read": {
41
- "meaning": "offer the tool that marks a chat read; the other person sees it"
42
+ "meaning": "offer the tool that marks a chat read; the other person sees it",
43
+ "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
42
44
  },
43
45
  "--allow-moderate": {
44
46
  "meaning": "offer the tool that applies a group's rules — delete others' messages, remove people",
45
47
  "note": "max only, until permissions (P7) replace the MCP flags"
46
48
  },
47
49
  "--allow-send": {
48
- "meaning": "offer the send tool; without it the server can only read"
50
+ "meaning": "offer the send tool; without it the server can only read",
51
+ "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
49
52
  },
50
53
  "--anonymous": {
51
54
  "meaning": "nobody sees who voted for what"
@@ -92,7 +95,8 @@
92
95
  },
93
96
  "--can": {
94
97
  "value": "<rights>",
95
- "meaning": "what they may do, comma-separated: read, members, admins, info, pin, link, post, edit, delete"
98
+ "meaning": "what they may do, comma-separated: read, members, admins, info, pin, link, post, edit, delete",
99
+ "note": "lists the rights each messenger has — MAX has `read`, Telegram does not — so it differs on purpose (Help text rule 4)"
96
100
  },
97
101
  "--channel": {
98
102
  "meaning": "a private channel instead of a group; people join it by its link"
@@ -106,7 +110,8 @@
106
110
  "meaning": "say whether a newer version exists, and install nothing"
107
111
  },
108
112
  "--confirm-send": {
109
- "meaning": "show the owner every write the MCP server offers, in a form to approve"
113
+ "meaning": "show the owner every write the MCP server offers, in a form to approve",
114
+ "note": "max's own `mcp` is worded differently until the permission levels (P7) replace these flags there (e13)"
110
115
  },
111
116
  "--defaults": {
112
117
  "meaning": "change what every profile gets, rather than this profile"
@@ -122,7 +127,8 @@
122
127
  "meaning": "judge and plan; do nothing"
123
128
  },
124
129
  "--estimate": {
125
- "meaning": "only say what the fetch would cost, from this machine's copy; nothing is sent"
130
+ "meaning": "only say what the fetch would cost, from this machine's copy; nothing is sent",
131
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
126
132
  },
127
133
  "--event": {
128
134
  "value": "<names>",
@@ -168,7 +174,8 @@
168
174
  },
169
175
  "--last": {
170
176
  "value": "<n>",
171
- "meaning": "stop once the newest n messages are held; not with --since"
177
+ "meaning": "stop once the newest n messages are held; not with --since",
178
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
172
179
  },
173
180
  "--last-name": {
174
181
  "value": "<name>",
@@ -176,7 +183,8 @@
176
183
  },
177
184
  "--limit": {
178
185
  "value": "<n>",
179
- "meaning": "how many: rows to show, or messages one run fetches"
186
+ "meaning": "how many: rows to show, or messages one run fetches",
187
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
180
188
  },
181
189
  "--lines": {
182
190
  "value": "<n>",
@@ -208,7 +216,8 @@
208
216
  },
209
217
  "--model": {
210
218
  "value": "<id>",
211
- "meaning": "which downloaded speech model hears them; `models audio list` shows them"
219
+ "meaning": "which downloaded speech model hears them; `models audio list` shows them",
220
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
212
221
  },
213
222
  "--multiple": {
214
223
  "meaning": "people may pick several answers"
@@ -232,7 +241,8 @@
232
241
  "meaning": "answer from what was recorded and never connect; fails if nothing was"
233
242
  },
234
243
  "--online": {
235
- "meaning": "also log in once, read one chat and start the MCP server; sends nothing"
244
+ "meaning": "also log in once, read one chat and start the MCP server; sends nothing",
245
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
236
246
  },
237
247
  "--only-admins-add": {
238
248
  "value": "<on|off>",
@@ -251,7 +261,8 @@
251
261
  "meaning": "newest conversation first, or alphabetical"
252
262
  },
253
263
  "--others": {
254
- "meaning": "every session but this one"
264
+ "meaning": "every session but this one",
265
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
255
266
  },
256
267
  "--output": {
257
268
  "meaning": "where to write: a directory for `messages download`, a file for `store export`",
@@ -274,7 +285,8 @@
274
285
  "--pause": {
275
286
  "value": "<duration>",
276
287
  "meaning": "the least wait between pages, 5s or 500ms; each is up to twice that",
277
- "default": "5s"
288
+ "default": "5s",
289
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
278
290
  },
279
291
  "--personal": {
280
292
  "meaning": "the personal account's section of the profile's settings"
@@ -288,10 +300,12 @@
288
300
  "meaning": "write the QR code to this PNG instead of drawing it, for an agent to pass on"
289
301
  },
290
302
  "--quiet": {
291
- "meaning": "diagnostics off"
303
+ "meaning": "diagnostics off",
304
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
292
305
  },
293
306
  "--record": {
294
- "meaning": "keep this run under `runs` — ids and timings, never message content"
307
+ "meaning": "keep this run under `runs` — ids and timings, never message content",
308
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
295
309
  },
296
310
  "--regex": {
297
311
  "meaning": "the words are one regular expression, case-insensitive, tested against every stored text"
@@ -353,13 +367,16 @@
353
367
  },
354
368
  "--to": {
355
369
  "value": "<chat>",
356
- "meaning": "the chat to forward it to: an id, or part of a chat name"
370
+ "meaning": "the chat to forward it to: an id, or part of a chat name",
371
+ "note": "the sentence says how to name a chat the messenger's way, so it differs on purpose (Help text rule 4)"
357
372
  },
358
373
  "--trace": {
359
- "meaning": "one line per request on stderr: ids and timings, never message content"
374
+ "meaning": "one line per request on stderr: ids and timings, never message content",
375
+ "note": "max logs one line per request, tg the connection's own lines: the same option, a different mechanism (Help text rule 4)"
360
376
  },
361
377
  "--transcribe": {
362
- "meaning": "hear voice messages not heard yet, on this machine; slow, the model must be downloaded"
378
+ "meaning": "hear voice messages not heard yet, on this machine; slow, the model must be downloaded",
379
+ "note": "max's own copy is worded differently until T6 moves the command onto the shared one (e13)"
363
380
  },
364
381
  "--type": {
365
382
  "value": "<names>",
@@ -745,6 +762,11 @@
745
762
  "contacts unblock": {
746
763
  "state": "both"
747
764
  },
765
+ "conversations": {
766
+ "state": "planned",
767
+ "by": "storage phase 3",
768
+ "subtree": true
769
+ },
748
770
  "doctor": {
749
771
  "state": "both",
750
772
  "options": {
@@ -890,6 +912,10 @@
890
912
  "--to": "both"
891
913
  }
892
914
  },
915
+ "messages links": {
916
+ "state": "planned",
917
+ "by": "storage phase 3"
918
+ },
893
919
  "messages list": {
894
920
  "state": "both",
895
921
  "options": {