@leemour/max-cli 0.1.0 → 0.3.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.
- package/README.md +28 -12
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/cache/index.js +3 -0
- package/dist/cache/index.js.map +1 -1
- package/dist/cache/schema.d.ts +13 -1
- package/dist/cache/schema.d.ts.map +1 -1
- package/dist/cache/schema.js +159 -8
- package/dist/cache/schema.js.map +1 -1
- package/dist/cache/store.d.ts +115 -4
- package/dist/cache/store.d.ts.map +1 -1
- package/dist/cache/store.js +248 -27
- package/dist/cache/store.js.map +1 -1
- package/dist/client.d.ts +91 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +371 -33
- package/dist/client.js.map +1 -1
- package/dist/commands/chats.d.ts.map +1 -1
- package/dist/commands/chats.js +25 -8
- package/dist/commands/chats.js.map +1 -1
- package/dist/commands/contacts.d.ts.map +1 -1
- package/dist/commands/contacts.js +51 -5
- package/dist/commands/contacts.js.map +1 -1
- package/dist/commands/context.d.ts +4 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +4 -2
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/login.d.ts +15 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +43 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +10 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +22 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/me.d.ts +3 -0
- package/dist/commands/me.d.ts.map +1 -0
- package/dist/commands/me.js +18 -0
- package/dist/commands/me.js.map +1 -0
- package/dist/commands/messages.d.ts.map +1 -1
- package/dist/commands/messages.js +82 -3
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/paging.d.ts +41 -0
- package/dist/commands/paging.d.ts.map +1 -0
- package/dist/commands/paging.js +54 -0
- package/dist/commands/paging.js.map +1 -0
- package/dist/commands/send.d.ts +10 -0
- package/dist/commands/send.d.ts.map +1 -0
- package/dist/commands/send.js +30 -0
- package/dist/commands/send.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +3 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +16 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +15 -1
- package/dist/config.js.map +1 -1
- package/dist/domain/map.d.ts +1 -0
- package/dist/domain/map.d.ts.map +1 -1
- package/dist/domain/map.js +44 -3
- package/dist/domain/map.js.map +1 -1
- package/dist/domain/models.d.ts +54 -0
- package/dist/domain/models.d.ts.map +1 -1
- package/dist/generated/operations.generated.d.ts +1 -0
- package/dist/generated/operations.generated.d.ts.map +1 -1
- package/dist/output.d.ts +7 -4
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +8 -11
- package/dist/output.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -2
- package/dist/program.js.map +1 -1
- package/dist/protocol/connection.d.ts +10 -0
- package/dist/protocol/connection.d.ts.map +1 -1
- package/dist/protocol/connection.js +11 -3
- package/dist/protocol/connection.js.map +1 -1
- package/dist/protocol/session.d.ts +54 -0
- package/dist/protocol/session.d.ts.map +1 -0
- package/dist/protocol/session.js +57 -0
- package/dist/protocol/session.js.map +1 -0
- package/dist/rendering/messages.d.ts +19 -0
- package/dist/rendering/messages.d.ts.map +1 -0
- package/dist/rendering/messages.js +137 -0
- package/dist/rendering/messages.js.map +1 -0
- package/dist/runs/events.d.ts +1 -1
- package/dist/runs/recording.d.ts +2 -2
- package/dist/runs/recording.d.ts.map +1 -1
- package/dist/runs/recording.js +3 -3
- package/dist/runs/recording.js.map +1 -1
- package/dist/session/adopt.d.ts +22 -0
- package/dist/session/adopt.d.ts.map +1 -0
- package/dist/session/adopt.js +29 -0
- package/dist/session/adopt.js.map +1 -0
- package/dist/session/handshake.d.ts +14 -1
- package/dist/session/handshake.d.ts.map +1 -1
- package/dist/session/handshake.js +5 -5
- package/dist/session/handshake.js.map +1 -1
- package/dist/spec/operations/auth.d.ts +42 -0
- package/dist/spec/operations/auth.d.ts.map +1 -0
- package/dist/spec/operations/session.d.ts +16 -0
- package/dist/spec/operations/session.d.ts.map +1 -1
- package/dist/spec/operations/session.js +21 -1
- package/dist/spec/operations/session.js.map +1 -1
- package/dist/testing/sandbox.d.ts +2 -0
- package/dist/testing/sandbox.d.ts.map +1 -0
- package/dist/testing/sandbox.js +24 -0
- package/dist/testing/sandbox.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +9 -5
package/dist/client.js
CHANGED
|
@@ -30,6 +30,7 @@ export class MaxClient {
|
|
|
30
30
|
#login;
|
|
31
31
|
#previousCid = 0;
|
|
32
32
|
#people;
|
|
33
|
+
#merged;
|
|
33
34
|
constructor({ store, timeoutMs, connection, warn, cache, offline = false, events }) {
|
|
34
35
|
this.#store = store;
|
|
35
36
|
this.#connection = connection ?? new Connection(timeoutMs === undefined ? {} : { timeoutMs });
|
|
@@ -50,14 +51,25 @@ export class MaxClient {
|
|
|
50
51
|
* time, and the name is filled in. Without this, `max chats` shows a column of blanks for
|
|
51
52
|
* exactly the chats a person recognises by name.
|
|
52
53
|
*/
|
|
53
|
-
list: async (
|
|
54
|
+
list: async (options = {}) => {
|
|
55
|
+
const { limit, offset = 0, kind } = options;
|
|
56
|
+
const query = checkedQuery(options.query);
|
|
54
57
|
if (this.#offline) {
|
|
55
|
-
const
|
|
56
|
-
|
|
58
|
+
const recorded = this.#cache;
|
|
59
|
+
if (!recorded)
|
|
60
|
+
this.#recorded(undefined, "chats");
|
|
61
|
+
const store = recorded;
|
|
62
|
+
if (store.chats.count() === 0)
|
|
63
|
+
this.#recorded(undefined, "chats");
|
|
64
|
+
const items = store.chats.page({ limit: limit ?? Number.MAX_SAFE_INTEGER, offset, query, kind });
|
|
65
|
+
return { items, hasMore: offset + items.length < store.chats.count({ query, kind }) };
|
|
57
66
|
}
|
|
58
67
|
await this.#connectOnce();
|
|
59
68
|
const raw = asArray(this.#session().chats);
|
|
60
69
|
const people = await this.#peopleFor(raw);
|
|
70
|
+
// A one-to-one chat has no title of its own — its name is the other person's, and MAX does
|
|
71
|
+
// not put it in the chat object. Without this, the chats a person recognises by name are a
|
|
72
|
+
// column of blanks.
|
|
61
73
|
const chats = raw.map((chat) => {
|
|
62
74
|
const mapped = toChat(chat);
|
|
63
75
|
if (mapped.title !== null || mapped.kind !== "dialog")
|
|
@@ -66,8 +78,15 @@ export class MaxClient {
|
|
|
66
78
|
const name = partner === undefined ? null : (people.get(partner)?.name ?? null);
|
|
67
79
|
return { ...mapped, title: name };
|
|
68
80
|
});
|
|
69
|
-
this.#cache
|
|
70
|
-
|
|
81
|
+
const cache = this.#cache;
|
|
82
|
+
if (!cache)
|
|
83
|
+
return paged(matching(chats, query, kind), limit, offset);
|
|
84
|
+
// Written first, then read back: the titles just resolved have to be in the store before it
|
|
85
|
+
// is asked to order and page over them, and the delta this login carried is only a slice of
|
|
86
|
+
// what it now holds.
|
|
87
|
+
cache.chats.write(chats);
|
|
88
|
+
const items = cache.chats.page({ limit: limit ?? Number.MAX_SAFE_INTEGER, offset, query, kind });
|
|
89
|
+
return { items, hasMore: offset + items.length < cache.chats.count({ query, kind }) };
|
|
71
90
|
},
|
|
72
91
|
/**
|
|
73
92
|
* Turns what the person typed into a chat id.
|
|
@@ -79,7 +98,7 @@ export class MaxClient {
|
|
|
79
98
|
resolve: async (reference) => {
|
|
80
99
|
if (/^-?\d+$/.test(reference.trim()))
|
|
81
100
|
return reference.trim();
|
|
82
|
-
const chats = await this.chats.list();
|
|
101
|
+
const { items: chats } = await this.chats.list();
|
|
83
102
|
const wanted = reference.trim().toLowerCase();
|
|
84
103
|
const titled = chats.filter((chat) => chat.title !== null);
|
|
85
104
|
const exact = titled.filter((chat) => chat.title?.toLowerCase() === wanted);
|
|
@@ -88,32 +107,121 @@ export class MaxClient {
|
|
|
88
107
|
return matches[0].id;
|
|
89
108
|
if (matches.length === 0)
|
|
90
109
|
throw new CliError("not_found", `no chat matches "${reference}"`);
|
|
91
|
-
const
|
|
92
|
-
|
|
110
|
+
const candidates = matches.map((chat) => ({ id: chat.id, title: chat.title }));
|
|
111
|
+
const width = Math.max(...candidates.map(({ id }) => id.length));
|
|
112
|
+
const lines = candidates.map(({ id, title }) => ` ${id.padEnd(width)} ${title}`).join("\n");
|
|
113
|
+
throw new CliError("validation_error", `"${reference}" matches ${matches.length} chats — name one by its id:\n${lines}`, { candidates });
|
|
93
114
|
},
|
|
94
115
|
};
|
|
95
116
|
contacts = {
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
/**
|
|
118
|
+
* The people this account has a one-to-one chat with, named, newest conversation first.
|
|
119
|
+
*
|
|
120
|
+
* **It answers from the store**, which the login has just brought up to date (`#mergeLogin`),
|
|
121
|
+
* so the order and the paging happen in SQL over every person we know rather than over the
|
|
122
|
+
* handful this particular login mentioned. A delta carries almost nothing after the first run;
|
|
123
|
+
* rendering the response instead of the store would show an empty list on the second command.
|
|
124
|
+
*
|
|
125
|
+
* ⚠ **A group member is not in this answer** and nothing marks them as excluded: the query
|
|
126
|
+
* asks for people a *dialog* exists with, and they are outside it (`NEED-105`). They are in
|
|
127
|
+
* the store, with the chats they share with us, for the commands that will want them.
|
|
128
|
+
*/
|
|
129
|
+
list: async (options = {}) => {
|
|
130
|
+
const { order = "recent", limit, offset = 0 } = options;
|
|
131
|
+
const query = checkedQuery(options.query);
|
|
132
|
+
// The same query as the online path, so `--offline` cannot answer with people the other
|
|
133
|
+
// one deliberately leaves out — a group member is not a contact in either mode.
|
|
134
|
+
if (this.#offline) {
|
|
135
|
+
const recorded = this.#cache;
|
|
136
|
+
if (!recorded || recorded.people.countContacts() === 0)
|
|
137
|
+
this.#recorded(undefined, "contacts");
|
|
138
|
+
return this.#pageOfContacts(recorded, order, limit, offset, query);
|
|
139
|
+
}
|
|
100
140
|
await this.#connectOnce();
|
|
101
141
|
const people = await this.#peopleFor(asArray(this.#session().chats));
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
142
|
+
const cache = this.#cache;
|
|
143
|
+
// No store — it failed to open, and that is not a reason to lose the answer MAX just gave.
|
|
144
|
+
// What is lost is only the ordering and the paging the store does better.
|
|
145
|
+
if (!cache)
|
|
146
|
+
return paged(matchingPeople([...people.values()].filter((contact) => contact.id !== ""), query), limit, offset);
|
|
147
|
+
return this.#pageOfContacts(cache, order, limit, offset, query);
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* **Start again from zero**: forget the marker, so this login asks for the whole collection
|
|
151
|
+
* rather than for what changed, and name everybody it mentions.
|
|
152
|
+
*
|
|
153
|
+
* It is a repair tool, not the way contacts arrive. The delta rides on the login every command
|
|
154
|
+
* already performs, so there is nothing to schedule and no budget to spend — what this is for
|
|
155
|
+
* is a store that has drifted, or a full re-take after a schema rebuild threw the rows away.
|
|
156
|
+
* It is also the only thing that could ever prune somebody MAX has stopped returning, which is
|
|
157
|
+
* the second reason it exists.
|
|
158
|
+
*/
|
|
159
|
+
sync: async () => {
|
|
160
|
+
if (this.#offline) {
|
|
161
|
+
throw new CliError("validation_error", "`--offline` reads what was recorded; it cannot sync");
|
|
162
|
+
}
|
|
163
|
+
const cache = this.#cache;
|
|
164
|
+
if (!cache) {
|
|
165
|
+
throw new CliError("configuration_error", `there is no local store for profile "${this.#store.profile}" to sync into — the note above says why`);
|
|
166
|
+
}
|
|
167
|
+
// Before connecting, or the login would carry the marker this is meant to discard.
|
|
168
|
+
cache.forgetSyncMarker();
|
|
169
|
+
await this.#connectOnce();
|
|
170
|
+
// The login names a fraction of the people in its own chats, so a full take that stopped
|
|
171
|
+
// here would store ids without names for most of them.
|
|
172
|
+
await this.#peopleFor(asArray(this.#session().chats));
|
|
173
|
+
return { ...(this.#merged ?? { known: 0, added: 0, changed: 0 }), known: cache.people.count(), full: true };
|
|
105
174
|
},
|
|
106
175
|
};
|
|
107
176
|
messages = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
177
|
+
/**
|
|
178
|
+
* **Searches what this machine has read, and never asks MAX.**
|
|
179
|
+
*
|
|
180
|
+
* MAX has no search operation in our registry — nine opcodes, none of them a query — so there
|
|
181
|
+
* is nothing to ask. That makes this the one read that is local by nature rather than by
|
|
182
|
+
* choice, and it is the opposite of the rule every other read follows (`df6792a`: the record
|
|
183
|
+
* does not answer a read).
|
|
184
|
+
*
|
|
185
|
+
* ⚠ **So it finds what has been read, not what exists.** A chat nobody has opened contributes
|
|
186
|
+
* nothing, and there is no way for the answer to know that. The command says so on stderr
|
|
187
|
+
* rather than leaving the reader to infer it from a short list, and `max messages list <chat>`
|
|
188
|
+
* is what fills the gap.
|
|
189
|
+
*
|
|
190
|
+
* It opens no connection at all, which also means it costs no login (`RISK-2`).
|
|
191
|
+
*/
|
|
192
|
+
search: async (query, options = {}) => {
|
|
193
|
+
const checked = checkedQuery(query);
|
|
194
|
+
if (checked === undefined)
|
|
195
|
+
throw new CliError("validation_error", "a search needs something to search for");
|
|
196
|
+
const cache = this.#cache;
|
|
197
|
+
if (!cache) {
|
|
198
|
+
throw new CliError("not_found", "searching reads the local copy, and this profile has none — run `max messages list <chat>` first");
|
|
199
|
+
}
|
|
200
|
+
const { chatId, limit = 20, offset = 0 } = options;
|
|
201
|
+
const items = cache.messages.search({ query: checked, ...(chatId ? { chatId } : {}), limit, offset });
|
|
202
|
+
const total = cache.messages.countSearch({ query: checked, ...(chatId ? { chatId } : {}) });
|
|
203
|
+
return { items, hasMore: offset + items.length < total };
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
* **Paged backwards through time, not by page number.** MAX's history is already anchored —
|
|
207
|
+
* it takes a moment and answers with what came before it — so `--before` is exact where a page
|
|
208
|
+
* number over a live conversation would repeat and skip rows.
|
|
209
|
+
*
|
|
210
|
+
* `hasMore` here is a claim about the copy we hold, never about the chat: a full page back is
|
|
211
|
+
* the only evidence there is that another page exists.
|
|
212
|
+
*/
|
|
213
|
+
list: async (chatId, options = {}) => {
|
|
214
|
+
const limit = options.limit ?? 20;
|
|
215
|
+
if (this.#offline) {
|
|
216
|
+
const stored = this.#recorded(this.#cache?.messages.read(chatId, limit, ANY_AGE), "messages");
|
|
217
|
+
return { items: stored, hasMore: stored.length >= limit };
|
|
218
|
+
}
|
|
111
219
|
await this.#connectOnce();
|
|
112
220
|
const session = this.#session();
|
|
113
221
|
// `interactive: false` and no CHAT_MARK: reading history must not mark anything read (§19).
|
|
114
222
|
const answer = await this.#wire.chats.history({
|
|
115
223
|
chatId,
|
|
116
|
-
from: Date.now(),
|
|
224
|
+
from: options.before ?? Date.now(),
|
|
117
225
|
forward: 0,
|
|
118
226
|
backward: limit,
|
|
119
227
|
forwardTime: 0,
|
|
@@ -126,7 +234,34 @@ export class MaxClient {
|
|
|
126
234
|
const lookup = { names: namesFrom(session.contacts), ...viewer(this.#store) };
|
|
127
235
|
const messages = asArray(answer.messages).map((raw) => toMessage(raw, chatId, lookup));
|
|
128
236
|
this.#cache?.messages.write(chatId, messages);
|
|
129
|
-
return messages;
|
|
237
|
+
return { items: messages, hasMore: messages.length >= limit };
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
* Turns what `--before` was given into a moment.
|
|
241
|
+
*
|
|
242
|
+
* **ISO 8601 is a time; a bare integer is a message id.** Both a millisecond timestamp and a
|
|
243
|
+
* message id are runs of digits — 13 and 18 of them on this account — and deciding between
|
|
244
|
+
* them by length is a trap that fires the first time either changes size. So the rule is what
|
|
245
|
+
* the string looks like, not how big it is.
|
|
246
|
+
*
|
|
247
|
+
* An id we have never stored is exactly what a deleted message looks like, because it is gone
|
|
248
|
+
* from the history MAX returns too. That is a refusal naming the way round it rather than a
|
|
249
|
+
* guess: read as milliseconds, an 18-digit id points six hundred million years from now.
|
|
250
|
+
*/
|
|
251
|
+
before: (reference) => {
|
|
252
|
+
const wanted = reference.trim();
|
|
253
|
+
if (!/^\d+$/.test(wanted)) {
|
|
254
|
+
const time = Date.parse(wanted);
|
|
255
|
+
if (Number.isNaN(time)) {
|
|
256
|
+
throw new CliError("validation_error", `--before takes a message id or an ISO 8601 time, not "${wanted}"`);
|
|
257
|
+
}
|
|
258
|
+
return time;
|
|
259
|
+
}
|
|
260
|
+
const time = this.#cache?.messages.timeOf(wanted);
|
|
261
|
+
if (time === undefined) {
|
|
262
|
+
throw new CliError("not_found", `no message ${wanted} in this profile's record — read the chat once first, or give --before an ISO 8601 time`);
|
|
263
|
+
}
|
|
264
|
+
return time;
|
|
130
265
|
},
|
|
131
266
|
/**
|
|
132
267
|
* Sends one message, retrying **only with the same `cid`**.
|
|
@@ -139,7 +274,7 @@ export class MaxClient {
|
|
|
139
274
|
* So one retry, same `cid`, and nothing beyond that. What is still unmeasured is how long the
|
|
140
275
|
* server remembers a `cid`; the two probes were seconds apart. If the retry also fails the
|
|
141
276
|
* answer is `outcome_unknown` — never failed, never sent — and it names the `cid`, because
|
|
142
|
-
* `max send --cid <n>` can then repeat the attempt without risking a second message.
|
|
277
|
+
* `max messages send … --cid <n>` can then repeat the attempt without risking a second message.
|
|
143
278
|
*/
|
|
144
279
|
send: async (chatId, text, options = {}) => {
|
|
145
280
|
if (this.#offline)
|
|
@@ -167,7 +302,7 @@ export class MaxClient {
|
|
|
167
302
|
}
|
|
168
303
|
catch {
|
|
169
304
|
throw new CliError("outcome_unknown", `the message may or may not have been sent (${failure.message}) — ` +
|
|
170
|
-
`\`max send --cid ${cid}\` repeats the attempt without risking a second copy`, { cid });
|
|
305
|
+
`\`max messages send <chat> <text> --cid ${cid}\` repeats the attempt without risking a second copy`, { cid });
|
|
171
306
|
}
|
|
172
307
|
}
|
|
173
308
|
// What the cache holds for this chat is now one message short of the truth.
|
|
@@ -177,33 +312,146 @@ export class MaxClient {
|
|
|
177
312
|
},
|
|
178
313
|
};
|
|
179
314
|
/**
|
|
180
|
-
* Opens the connection and logs in with the stored token.
|
|
315
|
+
* Opens the connection and logs in with the stored token, or with one offered for trial.
|
|
181
316
|
*
|
|
182
317
|
* The login response carries the profile, the chats, the contacts and recent messages, so most
|
|
183
318
|
* commands need no further request — measured against MAX on 2026-09-19.
|
|
319
|
+
*
|
|
320
|
+
* **A candidate token is tried and not stored**, which is what lets `adoptToken` write to the
|
|
321
|
+
* keyring only after MAX has accepted it. Nothing here writes a token; see `session/adopt.ts`.
|
|
184
322
|
*/
|
|
185
|
-
async connect() {
|
|
186
|
-
const token = this.#store.readToken();
|
|
323
|
+
async connect({ token: candidate } = {}) {
|
|
324
|
+
const token = candidate ?? this.#store.readToken();
|
|
187
325
|
if (!token) {
|
|
188
326
|
// The fix has to carry the profile, or it logs the wrong one in: a name nobody has logged
|
|
189
327
|
// in under is the ordinary shape of this failure now that the first word is the profile.
|
|
190
328
|
throw new CliError("authentication_error", `no session for profile "${this.#store.profile}" — run \`max ${asFirstWord(this.#store.profile)}session start\``);
|
|
191
329
|
}
|
|
192
330
|
const state = this.#store.readState();
|
|
331
|
+
const sync = this.#cache?.syncMarker();
|
|
193
332
|
try {
|
|
194
333
|
await this.#connection.open();
|
|
195
|
-
this.#login = await startSession(this.#invoke, {
|
|
334
|
+
this.#login = await startSession(this.#invoke, {
|
|
335
|
+
token,
|
|
336
|
+
deviceId: state.deviceId,
|
|
337
|
+
...(sync === undefined ? {} : { sync }),
|
|
338
|
+
});
|
|
196
339
|
}
|
|
197
340
|
catch (error) {
|
|
198
341
|
throw asCliError(error);
|
|
199
342
|
}
|
|
200
343
|
const viewerId = toProfile(record(this.#login.profile) ?? {}).id;
|
|
344
|
+
// **Before `writeState`**, so a login we are about to refuse does not count itself or move
|
|
345
|
+
// `lastLoginAt`. A profile is a person, not a directory name: if this token belongs to someone
|
|
346
|
+
// else, every later command in this process would send as them and nothing would say so.
|
|
347
|
+
// Switching accounts has a door already — `session end` clears the id along with the token.
|
|
348
|
+
if (viewerId && state.viewerId && viewerId !== state.viewerId) {
|
|
349
|
+
throw new CliError("authentication_error", `this token is for a different account than profile "${this.#store.profile}" was set up with — ` +
|
|
350
|
+
`run \`max ${asFirstWord(this.#store.profile)}session end\` first if you meant to switch`);
|
|
351
|
+
}
|
|
201
352
|
this.#store.writeState({
|
|
202
353
|
...state,
|
|
203
354
|
...(viewerId ? { viewerId } : {}),
|
|
204
355
|
logins: state.logins + 1,
|
|
205
356
|
lastLoginAt: new Date().toISOString(),
|
|
206
357
|
});
|
|
358
|
+
this.#keepRotatedToken(token);
|
|
359
|
+
this.#mergeLogin(viewerId);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* **MAX offers a replacement for a credential that has aged, and until 2026-09-22 we threw it
|
|
363
|
+
* away** — measured, `pnpm probe:token`. Presenting a token pasted months earlier answers with a
|
|
364
|
+
* different one; presenting *that* one answers with the same one back, so this writes once and
|
|
365
|
+
* then stops rather than on every command.
|
|
366
|
+
*
|
|
367
|
+
* The old token keeps working — the last months are the proof — so this is hygiene, not repair.
|
|
368
|
+
*
|
|
369
|
+
* ⚠ **After the identity refusal above, never before it.** A token belonging to somebody else
|
|
370
|
+
* reaches this method only if that check has already let it through; persisting it earlier would
|
|
371
|
+
* overwrite the owner's working credential with a stranger's — a worse version of the defect
|
|
372
|
+
* `MAX-12` exists to fix.
|
|
373
|
+
*
|
|
374
|
+
* **A keyring that will not take it does not fail the command.** The write can fail for reasons
|
|
375
|
+
* that have nothing to do with the command being run — a locked keyring, no session bus — and
|
|
376
|
+
* the old token still works, which is what makes carrying on correct. The reason goes to the
|
|
377
|
+
* diagnostic stream, because failing quietly is not failing invisibly (`NEED-97`).
|
|
378
|
+
*
|
|
379
|
+
* Nothing here prints, returns or compares-aloud the value: the only comparison is against the
|
|
380
|
+
* token we sent, and the only thing that leaves is whether a write failed.
|
|
381
|
+
*/
|
|
382
|
+
#keepRotatedToken(sent) {
|
|
383
|
+
const rotated = this.#session().token;
|
|
384
|
+
if (typeof rotated !== "string" || rotated === "" || rotated === sent)
|
|
385
|
+
return;
|
|
386
|
+
try {
|
|
387
|
+
this.#store.writeToken(rotated);
|
|
388
|
+
}
|
|
389
|
+
catch (error) {
|
|
390
|
+
this.#warn(`the refreshed session could not be saved, so the previous one is still in use: ${reasonOf(error)}`);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Writes what the login just told us into the store, **before the command renders**, so a
|
|
395
|
+
* listing prints the names this run brought rather than the previous run's.
|
|
396
|
+
*
|
|
397
|
+
* ⚠ **A delta is mostly empty and that is correct.** After the first login MAX sends only what
|
|
398
|
+
* changed, so an absent person is an unchanged person — never a departed one. Nothing here
|
|
399
|
+
* deletes, with the single exception of a chat's membership, which MAX restates in full whenever
|
|
400
|
+
* it sends that chat at all.
|
|
401
|
+
*
|
|
402
|
+
* **It never fails the command.** Nobody asked for the store; a locked database or a full disk
|
|
403
|
+
* must not lose an answer MAX has already given. The reason goes to the diagnostic stream,
|
|
404
|
+
* because failing quietly is not the same as failing invisibly (`NEED-97`) — and the marker
|
|
405
|
+
* stays where it was, so the next login asks for the same delta again rather than for changes
|
|
406
|
+
* since rows that were never written.
|
|
407
|
+
*/
|
|
408
|
+
#mergeLogin(viewerId) {
|
|
409
|
+
const cache = this.#cache;
|
|
410
|
+
const marker = asMarker(this.#session().time);
|
|
411
|
+
if (!cache || marker === undefined)
|
|
412
|
+
return;
|
|
413
|
+
const chats = asArray(this.#session().chats);
|
|
414
|
+
const members = new Map();
|
|
415
|
+
for (const raw of chats) {
|
|
416
|
+
const chat = toChat(raw);
|
|
417
|
+
// A channel lists four of its hundred and seventy-eight thousand subscribers, so its
|
|
418
|
+
// `participants` is not a membership — storing it would be storing a wrong answer.
|
|
419
|
+
if (!chat.id || chat.kind === "channel")
|
|
420
|
+
continue;
|
|
421
|
+
const participants = this.#participantsOf(raw, viewerId);
|
|
422
|
+
if (participants !== undefined)
|
|
423
|
+
members.set(chat.id, participants);
|
|
424
|
+
}
|
|
425
|
+
try {
|
|
426
|
+
this.#merged = cache.mergeDelta({
|
|
427
|
+
chats: chats.map(toChat).filter((chat) => chat.id !== ""),
|
|
428
|
+
people: asArray(this.#session().contacts)
|
|
429
|
+
.map(toContact)
|
|
430
|
+
.filter((contact) => contact.id !== ""),
|
|
431
|
+
members,
|
|
432
|
+
marker,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
catch (error) {
|
|
436
|
+
this.#warn(`the local record did not take this login, so nothing was kept from it: ${reasonOf(error)}`);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/** One page of contacts out of the store — the same query online and offline. */
|
|
440
|
+
#pageOfContacts(cache, order, limit, offset, query) {
|
|
441
|
+
const items = cache.people.contacts({ order, limit: limit ?? Number.MAX_SAFE_INTEGER, offset, query });
|
|
442
|
+
return { items, hasMore: offset + items.length < cache.people.countContacts({ query }) };
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Everyone in the chat except us, or **`undefined` when MAX did not say who is in it**.
|
|
446
|
+
*
|
|
447
|
+
* ⚠ The difference is the whole of it. A delta re-sends a chat because a message arrived and
|
|
448
|
+
* carries no `participants`; read as "nobody is in this chat", that empties the membership and
|
|
449
|
+
* the person on the other side stops being a contact. "Did not say" is not "nobody", and only
|
|
450
|
+
* the first of the two may replace anything.
|
|
451
|
+
*/
|
|
452
|
+
#participantsOf(chat, viewerId) {
|
|
453
|
+
const participants = record(chat.participants);
|
|
454
|
+
return participants === undefined ? undefined : Object.keys(participants).filter((id) => id !== viewerId);
|
|
207
455
|
}
|
|
208
456
|
async close() {
|
|
209
457
|
await this.#connection.close();
|
|
@@ -318,20 +566,37 @@ export class MaxClient {
|
|
|
318
566
|
if (contact.id)
|
|
319
567
|
people.set(contact.id, contact);
|
|
320
568
|
}
|
|
569
|
+
const viewerId = this.#store.readState().viewerId;
|
|
321
570
|
const missing = new Set();
|
|
322
571
|
for (const chat of chats) {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
572
|
+
if (toChat(chat).kind === "channel")
|
|
573
|
+
continue;
|
|
574
|
+
for (const id of this.#participantsOf(chat, viewerId) ?? [])
|
|
575
|
+
if (!people.has(id))
|
|
576
|
+
missing.add(id);
|
|
326
577
|
}
|
|
327
|
-
|
|
328
|
-
|
|
578
|
+
const named = [];
|
|
579
|
+
for (const batch of batched([...missing], CONTACT_INFO_BATCH)) {
|
|
580
|
+
const answer = await this.#wire.contacts.info({ contactIds: batch });
|
|
329
581
|
for (const raw of asArray(answer.contacts)) {
|
|
330
582
|
const contact = toContact(raw);
|
|
331
|
-
if (contact.id)
|
|
332
|
-
|
|
583
|
+
if (!contact.id)
|
|
584
|
+
continue;
|
|
585
|
+
people.set(contact.id, contact);
|
|
586
|
+
named.push(contact);
|
|
333
587
|
}
|
|
334
588
|
}
|
|
589
|
+
// Written here rather than left in memory: the process ends in a moment, and the next one
|
|
590
|
+
// should not pay for these names again.
|
|
591
|
+
//
|
|
592
|
+
// ⚠ **And the order is recomputed after**, not before. These people did not exist when the
|
|
593
|
+
// login's chats were written, so the recency that was set then reached only the handful the
|
|
594
|
+
// login itself named — 6 of 22 on the real account, with every other dialog partner sorting
|
|
595
|
+
// as never-messaged.
|
|
596
|
+
if (named.length > 0) {
|
|
597
|
+
this.#cache?.people.upsert(named, "info");
|
|
598
|
+
this.#cache?.people.refreshRecency();
|
|
599
|
+
}
|
|
335
600
|
this.#people = people;
|
|
336
601
|
return people;
|
|
337
602
|
}
|
|
@@ -350,8 +615,81 @@ export class MaxClient {
|
|
|
350
615
|
return this.#login;
|
|
351
616
|
}
|
|
352
617
|
}
|
|
618
|
+
/**
|
|
619
|
+
* **The shortest search the index can answer is three characters**, and below that it returns
|
|
620
|
+
* nothing rather than complaining (measured 2026-09-22). An empty list reads as "no matches",
|
|
621
|
+
* so this refuses instead — the one answer that is never mistaken for a result.
|
|
622
|
+
*
|
|
623
|
+
* It is checked here rather than in each command, and on every path rather than only where a
|
|
624
|
+
* store exists: a filter that works with a cache and not without it would make the answer depend
|
|
625
|
+
* on something the person never asked about.
|
|
626
|
+
*/
|
|
627
|
+
const MIN_QUERY = 3;
|
|
628
|
+
const checkedQuery = (query) => {
|
|
629
|
+
if (query === undefined)
|
|
630
|
+
return undefined;
|
|
631
|
+
const trimmed = query.trim();
|
|
632
|
+
if (trimmed.length < MIN_QUERY) {
|
|
633
|
+
throw new CliError("validation_error", `a search needs at least ${MIN_QUERY} characters — "${trimmed}" is ${trimmed.length}`);
|
|
634
|
+
}
|
|
635
|
+
return trimmed;
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* **One `CONTACT_INFO` for a hundred people.** The bound is unmeasured; the comparable one is
|
|
639
|
+
* `chatsCount`, where 100 is accepted and 200 comes back out of range (`PROTO-3`). Somebody in
|
|
640
|
+
* forty groups is the case that will find the real number, and it will find it as a refusal that
|
|
641
|
+
* names itself rather than as a wrong answer.
|
|
642
|
+
*/
|
|
643
|
+
const CONTACT_INFO_BATCH = 100;
|
|
644
|
+
const batched = (items, size) => {
|
|
645
|
+
const batches = [];
|
|
646
|
+
for (let at = 0; at < items.length; at += size)
|
|
647
|
+
batches.push(items.slice(at, at + size));
|
|
648
|
+
return batches;
|
|
649
|
+
};
|
|
650
|
+
/** Paging over a list already in hand — the fallback for when there is no store to page in SQL. */
|
|
651
|
+
/**
|
|
652
|
+
* The same filter as the store's, for the path where no store opened.
|
|
653
|
+
*
|
|
654
|
+
* ⚠ **This is a second implementation of one promise, and that is a cost paid knowingly.** The
|
|
655
|
+
* store asks a trigram index; here there is nothing to ask, so it is `includes` over a lowered
|
|
656
|
+
* string. For a needle of three characters or more the two agree — a trigram match *is* a
|
|
657
|
+
* substring match — and where they could drift is an alphabet whose lowercase form differs
|
|
658
|
+
* between SQLite's folding and JavaScript's. Nobody has hit that; if somebody does, the fix is
|
|
659
|
+
* this function, not the index.
|
|
660
|
+
*
|
|
661
|
+
* The alternative was to let a filter only work when a cache happened to exist, which makes the
|
|
662
|
+
* answer depend on something the person never asked about.
|
|
663
|
+
*/
|
|
664
|
+
const matching = (chats, query, kind) => {
|
|
665
|
+
const needle = query?.toLocaleLowerCase();
|
|
666
|
+
return chats.filter((chat) => (kind === undefined || chat.kind === kind) &&
|
|
667
|
+
(needle === undefined || (chat.title ?? "").toLocaleLowerCase().includes(needle)));
|
|
668
|
+
};
|
|
669
|
+
/** As `matching`, over the two columns `people_fts` indexes. */
|
|
670
|
+
const matchingPeople = (people, query) => {
|
|
671
|
+
if (query === undefined)
|
|
672
|
+
return people;
|
|
673
|
+
const needle = query.toLocaleLowerCase();
|
|
674
|
+
return people.filter((person) => `${person.name ?? ""} ${person.username ?? ""}`.toLocaleLowerCase().includes(needle));
|
|
675
|
+
};
|
|
676
|
+
const paged = (items, limit, offset) => {
|
|
677
|
+
const page = limit === undefined ? items.slice(offset) : items.slice(offset, offset + limit);
|
|
678
|
+
return { items: page, hasMore: offset + page.length < items.length };
|
|
679
|
+
};
|
|
353
680
|
/** `--offline` was asked for explicitly, so age is not a reason to refuse what was recorded. */
|
|
354
681
|
const ANY_AGE = Number.POSITIVE_INFINITY;
|
|
682
|
+
/**
|
|
683
|
+
* The marker only means anything if MAX gave us one. A login without a `time` is not a reason to
|
|
684
|
+
* store `0` — that would tell the next login to send everything, which is exactly what a stored
|
|
685
|
+
* marker exists to stop.
|
|
686
|
+
*/
|
|
687
|
+
const asMarker = (time) => typeof time === "number" && Number.isFinite(time) && time > 0 ? time : undefined;
|
|
688
|
+
/** The reason, never the payload: a store's failure is a code, and the rows are people's names. */
|
|
689
|
+
const reasonOf = (error) => {
|
|
690
|
+
const code = error?.code;
|
|
691
|
+
return typeof code === "string" ? code : error instanceof Error ? error.name : "an unknown problem";
|
|
692
|
+
};
|
|
355
693
|
const viewer = (store) => {
|
|
356
694
|
const viewerId = store.readState().viewerId;
|
|
357
695
|
return viewerId === undefined ? {} : { viewerId };
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,E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,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACpD,OAAO,IAAI,QAAQ,CACjB,sBAAsB,EACtB,GAAG,KAAK,CAAC,OAAO,4DAA4D,CAC7E,CAAA;QACH,CAAC;QACD,OAAO,IAAI,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC3F,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACtE,IAAI,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAAE,OAAO,IAAI,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAC/E,OAAO,IAAI,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;AAC/C,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/commands/chats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../../src/commands/chats.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMnC,eAAO,MAAM,YAAY,QAAO,OAgC/B,CAAA"}
|