@agentshouse/mdruntime 0.1.0-c23131153db9f → 0.1.0-c23bcab68bec7
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 +18 -16
- package/dist/acceptance.d.ts.map +1 -1
- package/dist/acceptance.js +2 -21
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +17 -22
- package/dist/adapter.d.ts +85 -14
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +0 -1
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +0 -5
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +345 -0
- package/dist/change.d.ts +4 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +3 -0
- package/dist/chat-types.d.ts +0 -2
- package/dist/chat-types.d.ts.map +1 -1
- package/dist/chat-types.js +0 -2
- package/dist/client.d.ts +11 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +15 -46
- package/dist/collection.d.ts +5 -1
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +16 -8
- package/dist/column.d.ts +5 -0
- package/dist/column.d.ts.map +1 -0
- package/dist/column.js +9 -0
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +2 -3
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +10 -12
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +16 -6
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +15 -6
- package/dist/conversation-row.d.ts +8 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +20 -7
- package/dist/conversation.d.ts +14 -7
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +184 -158
- package/dist/discovery.d.ts +2 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +15 -6
- package/dist/download.d.ts +6 -0
- package/dist/download.d.ts.map +1 -0
- package/dist/download.js +42 -0
- package/dist/durability.d.ts +2 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +5 -0
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +22 -11
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +3 -1
- package/dist/figures.d.ts.map +1 -1
- package/dist/figures.js +4 -2
- package/dist/file.d.ts +1 -1
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +3 -2
- package/dist/host.d.ts +3 -0
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +26 -10
- package/dist/house-query.d.ts +21 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +41 -0
- package/dist/index.d.ts +11 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/install.d.ts +9 -3
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +44 -46
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +26 -18
- package/dist/listing.d.ts +24 -12
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +50 -21
- package/dist/live.d.ts +5 -3
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +71 -30
- package/dist/loaded.d.ts +5 -0
- package/dist/loaded.d.ts.map +1 -0
- package/dist/loaded.js +40 -0
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +2 -3
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +2 -3
- package/dist/media.d.ts +18 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +102 -24
- package/dist/memory.d.ts +5 -1
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +55 -15
- package/dist/messages.d.ts +12 -3
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +24 -10
- package/dist/modal.d.ts +2 -0
- package/dist/modal.d.ts.map +1 -0
- package/dist/modal.js +11 -0
- package/dist/model.d.ts +4 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +7 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +5 -8
- package/dist/observation.d.ts +29 -12
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +206 -69
- package/dist/online.d.ts +7 -0
- package/dist/online.d.ts.map +1 -0
- package/dist/online.js +29 -0
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +3 -9
- package/dist/outcome.d.ts +10 -1
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +17 -2
- package/dist/overlay.d.ts +1 -1
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +3 -5
- package/dist/parts.d.ts +3 -0
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +31 -5
- package/dist/preparation.d.ts +27 -6
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +137 -56
- package/dist/presence.d.ts +8 -2
- package/dist/presence.d.ts.map +1 -1
- package/dist/presence.js +24 -13
- package/dist/queries.d.ts +1 -1
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +60 -60
- package/dist/questions.d.ts +1 -0
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +1 -0
- package/dist/queue.d.ts +1 -1
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +54 -39
- package/dist/reach.d.ts +14 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +136 -29
- package/dist/react.d.ts +6 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/readiness.d.ts +9 -3
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +3 -5
- package/dist/reads.d.ts +1 -1
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +2 -2
- package/dist/recovery.d.ts +1 -0
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +2 -1
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +1 -3
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +2 -2
- package/dist/room-draft.d.ts +28 -3
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +230 -12
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +5 -2
- package/dist/room-list.d.ts +10 -0
- package/dist/room-list.d.ts.map +1 -0
- package/dist/room-list.js +45 -0
- package/dist/rows.d.ts +2 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +6 -6
- package/dist/running.d.ts +5 -0
- package/dist/running.d.ts.map +1 -0
- package/dist/running.js +10 -0
- package/dist/runtime.d.ts +1 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +17 -86
- package/dist/saves.d.ts +2 -0
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +42 -18
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +2 -2
- package/dist/shown.d.ts +5 -2
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +62 -39
- package/dist/socket/session.d.ts +2 -1
- package/dist/socket/session.d.ts.map +1 -1
- package/dist/socket/session.js +1 -0
- package/dist/socket.d.ts +2 -2
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +3 -9
- package/dist/source.d.ts +5 -0
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +13 -2
- package/dist/store/installs.d.ts +2 -2
- package/dist/store/installs.d.ts.map +1 -1
- package/dist/store/installs.js +10 -4
- package/dist/store/readiness.d.ts +5 -4
- package/dist/store/readiness.d.ts.map +1 -1
- package/dist/store/readiness.js +28 -12
- package/dist/store/records.d.ts +19 -6
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +60 -23
- package/dist/store/rooms-shown.d.ts +8 -0
- package/dist/store/rooms-shown.d.ts.map +1 -0
- package/dist/store/rooms-shown.js +13 -0
- package/dist/store.d.ts +13 -9
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +8 -4
- package/dist/stored.d.ts +24 -13
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +78 -27
- package/dist/surface.d.ts +11 -6
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +55 -24
- package/dist/sync.d.ts +3 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +27 -18
- package/dist/tables.d.ts +16 -52
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +86 -324
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +1 -2
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +3 -9
- package/dist/wire.d.ts +23 -12
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +12 -8
- package/package.json +3 -3
- package/dist/log.d.ts +0 -6
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -14
package/dist/conversation.js
CHANGED
|
@@ -6,7 +6,7 @@ import { heldFacts } from './conversation-row.js';
|
|
|
6
6
|
import { runtimeError, uncaught } from './failure.js';
|
|
7
7
|
import { refusedForSpace } from './durability.js';
|
|
8
8
|
import { changeBatchIdentity, chatDraftRevision } from './identity.js';
|
|
9
|
-
import { OFFLINE } from './outcome.js';
|
|
9
|
+
import { OFFLINE, } from './outcome.js';
|
|
10
10
|
import { runningLine } from './parts.js';
|
|
11
11
|
import { record, text } from './read.js';
|
|
12
12
|
import { openQuestion, questionAsked } from './questions.js';
|
|
@@ -30,12 +30,12 @@ export function unheldView(conversation) {
|
|
|
30
30
|
deliveryUnknown: [],
|
|
31
31
|
chatDraft: null,
|
|
32
32
|
dismissedSuggestion: null,
|
|
33
|
+
pins: [],
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export const SESSION_STARTED = 'Session started';
|
|
36
37
|
const NEW_CHAT = 'new:';
|
|
37
38
|
const LISTING = 'listing';
|
|
38
|
-
const AGENTS = 'agents';
|
|
39
39
|
export const CATCHING_UP = 'catching-up';
|
|
40
40
|
export const HISTORY_CONVERSATIONS = 64;
|
|
41
41
|
export function newChat(agent) {
|
|
@@ -209,7 +209,7 @@ function returned(draft, submission, others) {
|
|
|
209
209
|
revision: chatDraftRevision(),
|
|
210
210
|
}, others);
|
|
211
211
|
}
|
|
212
|
-
function viewOf(alive, conversation, held, frame, draft, ended, dismissed) {
|
|
212
|
+
function viewOf(alive, conversation, held, frame, { draft, ended, dismissed, pins }) {
|
|
213
213
|
const facts = alive.liveOf(conversation);
|
|
214
214
|
return {
|
|
215
215
|
conversation,
|
|
@@ -233,6 +233,7 @@ function viewOf(alive, conversation, held, frame, draft, ended, dismissed) {
|
|
|
233
233
|
deliveryUnknown: [...facts.deliveryUnknown],
|
|
234
234
|
chatDraft: draft === null || unwritten(draft) ? null : { text: draft.text, revision: draft.revision },
|
|
235
235
|
dismissedSuggestion: dismissed,
|
|
236
|
+
pins: [...pins],
|
|
236
237
|
};
|
|
237
238
|
}
|
|
238
239
|
function sessionOf(facts, held, ended) {
|
|
@@ -252,14 +253,15 @@ function emit(alive, conversation) {
|
|
|
252
253
|
if (alive.deps.closed())
|
|
253
254
|
return;
|
|
254
255
|
for (const view of alive.views()) {
|
|
255
|
-
const
|
|
256
|
+
const held = view.held.now();
|
|
257
|
+
const { window } = held;
|
|
256
258
|
if (view.conversation !== conversation || window === null)
|
|
257
259
|
continue;
|
|
258
260
|
const ready = view.ready();
|
|
259
261
|
if (ready.length === 0)
|
|
260
262
|
continue;
|
|
261
263
|
const frame = sharedFrame(view, window);
|
|
262
|
-
const value = viewOf(alive, conversation, window, frame,
|
|
264
|
+
const value = viewOf(alive, conversation, window, frame, held);
|
|
263
265
|
for (const watcher of ready)
|
|
264
266
|
watcher.notify(value);
|
|
265
267
|
}
|
|
@@ -305,66 +307,92 @@ function rowOf(alive, conversation) {
|
|
|
305
307
|
};
|
|
306
308
|
}
|
|
307
309
|
async function entries(alive) {
|
|
308
|
-
const
|
|
309
|
-
if (
|
|
310
|
+
const listing = await heldListing(alive);
|
|
311
|
+
if (listing === null)
|
|
312
|
+
return null;
|
|
313
|
+
const list = listing.conversations;
|
|
314
|
+
const agents = new Map(listing.agents.map((agent) => [agent.id, agent]));
|
|
315
|
+
if (list.some((entry) => !agents.has(entry.agent)))
|
|
310
316
|
return null;
|
|
311
317
|
const held = list.length === 0
|
|
312
318
|
? []
|
|
313
319
|
: await alive.deps.durably((local) => local.conversationRows(list.map(({ conversation }) => conversation)));
|
|
314
320
|
const rows = new Map(held.map((one) => [one.conversation, one]));
|
|
315
|
-
return list.map((entry) =>
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
321
|
+
return list.map((entry) => {
|
|
322
|
+
const agent = agents.get(entry.agent);
|
|
323
|
+
return {
|
|
324
|
+
conversation: entry.conversation,
|
|
325
|
+
agent: { identity: agent.id, name: agent.name, retired: agent.retired_at !== null },
|
|
326
|
+
name: entry.name,
|
|
327
|
+
created: entry.created,
|
|
328
|
+
finished: entry.finished,
|
|
329
|
+
outcome: entry.outcome,
|
|
330
|
+
waiting: entry.waiting,
|
|
331
|
+
subject: entry.subject,
|
|
332
|
+
...rowOf(alive, entry.conversation),
|
|
333
|
+
...heldFacts(rows.get(entry.conversation), entry),
|
|
334
|
+
};
|
|
335
|
+
});
|
|
326
336
|
}
|
|
327
|
-
async function
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
331
|
-
return !alive.known() && alive.deps.stream() !== undefined && alive.deps.online()
|
|
337
|
+
async function heldListing(alive) {
|
|
338
|
+
const { conversationList, agentList } = await (await alive.deps.local()).facts();
|
|
339
|
+
if (conversationList !== null && agentList !== null)
|
|
340
|
+
return { conversations: conversationList, agents: agentList };
|
|
341
|
+
return !alive.known() && alive.deps.stream() !== undefined && alive.deps.online()
|
|
342
|
+
? null
|
|
343
|
+
: { conversations: [], agents: [] };
|
|
332
344
|
}
|
|
333
345
|
async function endedIn(alive, conversation) {
|
|
334
|
-
const
|
|
335
|
-
return
|
|
346
|
+
const listing = await heldListing(alive);
|
|
347
|
+
return (listing?.conversations.find((entry) => entry.conversation === conversation)?.processEnded ??
|
|
348
|
+
null);
|
|
349
|
+
}
|
|
350
|
+
function upserted(kept, set, key) {
|
|
351
|
+
const held = new Map(kept.map((one) => [key(one), one]));
|
|
352
|
+
for (const one of set)
|
|
353
|
+
held.set(key(one), { ...one });
|
|
354
|
+
return held;
|
|
336
355
|
}
|
|
337
356
|
function listChanged(alive, change) {
|
|
338
357
|
void alive.deps
|
|
339
358
|
.durably(async (local) => {
|
|
340
|
-
const { conversationList, conversationCursor } = await local.facts();
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
359
|
+
const { conversationList, agentList, conversationCursor, readUntil } = await local.facts();
|
|
360
|
+
if (readUntil === null)
|
|
361
|
+
await local.fact('readUntil', new Date().toISOString());
|
|
362
|
+
const held = upserted(change.replacing ? [] : (conversationList ?? []), change.set, (entry) => entry.conversation);
|
|
363
|
+
for (const entry of change.set)
|
|
345
364
|
alive.created(entry.conversation);
|
|
346
|
-
}
|
|
347
365
|
if (change.gone !== null)
|
|
348
366
|
held.delete(change.gone);
|
|
349
367
|
const list = [...held.values()];
|
|
368
|
+
const agents = [
|
|
369
|
+
...upserted(change.replacing ? [] : (agentList ?? []), change.agents, (agent) => agent.id).values(),
|
|
370
|
+
];
|
|
350
371
|
if (JSON.stringify(list) !== JSON.stringify(conversationList)) {
|
|
351
372
|
await local.fact('conversationList', list);
|
|
352
373
|
}
|
|
374
|
+
if (JSON.stringify(agents) !== JSON.stringify(agentList)) {
|
|
375
|
+
await local.fact('agentList', agents);
|
|
376
|
+
}
|
|
353
377
|
if (change.cursor !== undefined) {
|
|
354
378
|
if (change.cursor !== conversationCursor) {
|
|
355
379
|
await local.fact('conversationCursor', change.cursor);
|
|
356
380
|
}
|
|
357
381
|
alive.deps.stream()?.hold(change.cursor);
|
|
358
382
|
}
|
|
359
|
-
return list;
|
|
383
|
+
return { conversations: list, agents };
|
|
360
384
|
})
|
|
361
|
-
.catch(async () =>
|
|
362
|
-
.
|
|
385
|
+
.catch(async () => {
|
|
386
|
+
const { conversationList, agentList } = await (await alive.deps.local()).facts();
|
|
387
|
+
return { conversations: conversationList ?? [], agents: agentList ?? [] };
|
|
388
|
+
})
|
|
389
|
+
.then((listing) => {
|
|
363
390
|
if (alive.deps.closed() || change.paged === true)
|
|
364
391
|
return;
|
|
392
|
+
const list = listing.conversations;
|
|
365
393
|
endedAnew(alive, list);
|
|
366
394
|
if (change.cursor !== undefined) {
|
|
367
|
-
alive.held.set({ listKnown: true });
|
|
395
|
+
alive.held.set({ listKnown: true, openingListed: true });
|
|
368
396
|
settleBehind(alive, list);
|
|
369
397
|
openingEnded(alive);
|
|
370
398
|
alive.deps.settled();
|
|
@@ -372,11 +400,12 @@ function listChanged(alive, change) {
|
|
|
372
400
|
emitList(alive);
|
|
373
401
|
if (!alive.known())
|
|
374
402
|
return;
|
|
375
|
-
retiredDrafts(alive,
|
|
376
|
-
const { replicated } = alive.held.now();
|
|
377
|
-
if (change.cursor === undefined
|
|
378
|
-
|
|
379
|
-
list.some(({ conversation }) => !replicated.has(conversation))
|
|
403
|
+
retiredDrafts(alive, listing);
|
|
404
|
+
const { replicated, openingRead } = alive.held.now();
|
|
405
|
+
if (change.cursor === undefined
|
|
406
|
+
? list.length !== replicated.size ||
|
|
407
|
+
list.some(({ conversation }) => !replicated.has(conversation))
|
|
408
|
+
: openingRead) {
|
|
380
409
|
alive.deps.again();
|
|
381
410
|
}
|
|
382
411
|
}, uncaught);
|
|
@@ -392,16 +421,16 @@ function endedAnew(alive, list) {
|
|
|
392
421
|
emit(alive, view.conversation);
|
|
393
422
|
}
|
|
394
423
|
}
|
|
395
|
-
function
|
|
396
|
-
const reading =
|
|
424
|
+
function shownListing(alive, work) {
|
|
425
|
+
const reading = heldListing(alive);
|
|
397
426
|
alive.inOrder(async () => {
|
|
398
|
-
const
|
|
427
|
+
const listing = await reading.catch((error) => {
|
|
399
428
|
uncaught(error);
|
|
400
429
|
return null;
|
|
401
430
|
});
|
|
402
|
-
if (
|
|
431
|
+
if (listing === null || alive.deps.closed())
|
|
403
432
|
return;
|
|
404
|
-
work(
|
|
433
|
+
work(listing);
|
|
405
434
|
});
|
|
406
435
|
}
|
|
407
436
|
async function told(alive) {
|
|
@@ -446,66 +475,48 @@ export function conversationsLearned(alive) {
|
|
|
446
475
|
return;
|
|
447
476
|
if (alive.listeners.waiting())
|
|
448
477
|
tellList(alive);
|
|
449
|
-
if (!alive.agentListeners.waiting())
|
|
478
|
+
if (!alive.agentListeners.waiting() && !alive.listedListeners.waiting())
|
|
450
479
|
return;
|
|
451
|
-
|
|
480
|
+
shownListing(alive, (listing) => {
|
|
481
|
+
alive.agentListeners.welcome(agentsOf(listing));
|
|
482
|
+
alive.listedListeners.welcome(structuredClone(listing.agents));
|
|
483
|
+
});
|
|
452
484
|
}
|
|
453
|
-
function
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
.
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
:
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
cli: held.cli,
|
|
469
|
-
environment: structuredClone(held.environment),
|
|
470
|
-
};
|
|
471
|
-
})
|
|
485
|
+
function agentsOf(listing) {
|
|
486
|
+
return listing.agents
|
|
487
|
+
.filter((agent) => agent.retired_at === null)
|
|
488
|
+
.map((agent) => ({
|
|
489
|
+
identity: agent.id,
|
|
490
|
+
name: agent.name,
|
|
491
|
+
cli: agent.cli,
|
|
492
|
+
model: agent.model,
|
|
493
|
+
effort: agent.effort,
|
|
494
|
+
environment: {
|
|
495
|
+
identity: agent.environment,
|
|
496
|
+
name: agent.environment_name,
|
|
497
|
+
state: agent.environment_connected ? 'online' : 'offline',
|
|
498
|
+
},
|
|
499
|
+
}))
|
|
472
500
|
.sort((left, right) => left.name === right.name
|
|
473
501
|
? left.identity.localeCompare(right.identity)
|
|
474
502
|
: left.name.localeCompare(right.name));
|
|
475
503
|
}
|
|
476
|
-
function readAgents(alive) {
|
|
477
|
-
const stream = alive.deps.stream();
|
|
478
|
-
if (stream?.agents === undefined || !alive.deps.online() || alive.held.now().agentsReading)
|
|
479
|
-
return;
|
|
480
|
-
const { agents: read } = stream;
|
|
481
|
-
const { agentListeners } = alive;
|
|
482
|
-
alive.held.set({ agentsReading: true });
|
|
483
|
-
void alive.deps.recovery
|
|
484
|
-
.attempt('agents', async () => {
|
|
485
|
-
if (!alive.deps.online() || (!agentListeners.waiting() && !agentListeners.told())) {
|
|
486
|
-
return 'done';
|
|
487
|
-
}
|
|
488
|
-
const listed = await retrying(alive.deps.retries, 'conversations', AGENTS, read)();
|
|
489
|
-
if (listed === null)
|
|
490
|
-
return 'done';
|
|
491
|
-
alive.held.set({ listedAgents: listed });
|
|
492
|
-
emitAgents(alive);
|
|
493
|
-
return 'done';
|
|
494
|
-
})
|
|
495
|
-
.finally(() => {
|
|
496
|
-
alive.held.set({ agentsReading: false });
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
504
|
function emitAgents(alive) {
|
|
500
|
-
|
|
505
|
+
const { agentListeners, listedListeners } = alive;
|
|
506
|
+
if (alive.deps.closed() || (!agentListeners.told() && !listedListeners.told()))
|
|
501
507
|
return;
|
|
502
|
-
|
|
503
|
-
const value =
|
|
508
|
+
shownListing(alive, (listing) => {
|
|
509
|
+
const value = agentsOf(listing);
|
|
504
510
|
const shown = JSON.stringify(value);
|
|
505
|
-
if (shown
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
511
|
+
if (shown !== alive.held.now().agentsShown) {
|
|
512
|
+
alive.held.set({ agentsShown: shown });
|
|
513
|
+
agentListeners.tell(value);
|
|
514
|
+
}
|
|
515
|
+
const listed = JSON.stringify(listing.agents);
|
|
516
|
+
if (listed !== alive.held.now().listedShown) {
|
|
517
|
+
alive.held.set({ listedShown: listed });
|
|
518
|
+
listedListeners.tell(structuredClone(listing.agents));
|
|
519
|
+
}
|
|
509
520
|
});
|
|
510
521
|
}
|
|
511
522
|
function setLive(alive, conversation, next) {
|
|
@@ -519,11 +530,11 @@ function setLive(alive, conversation, next) {
|
|
|
519
530
|
after.asked !== before.asked)
|
|
520
531
|
tellSoon(alive);
|
|
521
532
|
}
|
|
522
|
-
function retiredChat(conversation,
|
|
533
|
+
function retiredChat(conversation, listing) {
|
|
523
534
|
if (!conversation.startsWith(NEW_CHAT))
|
|
524
535
|
return false;
|
|
525
536
|
const agent = conversation.slice(NEW_CHAT.length);
|
|
526
|
-
return
|
|
537
|
+
return listing.agents.some((one) => one.id === agent && one.retired_at !== null);
|
|
527
538
|
}
|
|
528
539
|
function live(alive, conversation, change) {
|
|
529
540
|
alive.factsHeard(conversation, FACTS.filter((one) => one in change));
|
|
@@ -576,19 +587,13 @@ function handReplicated(alive) {
|
|
|
576
587
|
}
|
|
577
588
|
async function remove(alive, leaving) {
|
|
578
589
|
await alive.deps.durably(async (local) => {
|
|
579
|
-
const kept = new Set(
|
|
580
|
-
...(await local.conversations(leaving)).map(({ conversation }) => conversation),
|
|
581
|
-
...(await local.chatDrafts())
|
|
582
|
-
.filter(({ conversation }) => leaving.includes(conversation))
|
|
583
|
-
.map(({ conversation }) => conversation),
|
|
584
|
-
]);
|
|
585
|
-
await local.dropConversations(leaving);
|
|
590
|
+
const kept = new Set(await local.dropConversations(leaving));
|
|
586
591
|
const changed = [];
|
|
587
592
|
for (const conversation of leaving) {
|
|
588
593
|
if (kept.has(conversation) || alive.liveHeld(conversation) !== undefined) {
|
|
589
594
|
changed.push(conversation);
|
|
590
595
|
}
|
|
591
|
-
|
|
596
|
+
heldInViews(alive, conversation, { draft: null, dismissed: null });
|
|
592
597
|
alive.forget(conversation);
|
|
593
598
|
setLive(alive, conversation, null);
|
|
594
599
|
await slide(alive, local, conversation, null);
|
|
@@ -617,7 +622,7 @@ async function readsOf(local, conversations) {
|
|
|
617
622
|
return new Map((await local.conversations(conversations)).map((held) => [held.conversation, held]));
|
|
618
623
|
}
|
|
619
624
|
function retiredDrafts(alive, list) {
|
|
620
|
-
if (!list.some((
|
|
625
|
+
if (!list.agents.some((agent) => agent.retired_at !== null))
|
|
621
626
|
return;
|
|
622
627
|
void alive.deps
|
|
623
628
|
.local()
|
|
@@ -813,21 +818,26 @@ function heard(alive, event) {
|
|
|
813
818
|
emit(alive, conversation);
|
|
814
819
|
}
|
|
815
820
|
async function kept(alive, local, conversation, following) {
|
|
816
|
-
const
|
|
817
|
-
if (
|
|
821
|
+
const draft = following === null || empty(following) ? null : following;
|
|
822
|
+
if (draft === null)
|
|
818
823
|
await local.dropChatDraft(conversation);
|
|
819
824
|
else
|
|
820
|
-
await local.keepChatDrafts([
|
|
821
|
-
|
|
825
|
+
await local.keepChatDrafts([draft]);
|
|
826
|
+
heldInViews(alive, conversation, { draft });
|
|
822
827
|
}
|
|
823
|
-
function
|
|
828
|
+
function heldInViews(alive, conversation, held) {
|
|
824
829
|
for (const view of alive.views()) {
|
|
825
830
|
if (view.conversation === conversation)
|
|
826
|
-
view.held.set(
|
|
831
|
+
view.held.set(held);
|
|
827
832
|
}
|
|
828
833
|
}
|
|
834
|
+
async function factOf(local, name) {
|
|
835
|
+
return Object.fromEntries((await local.conversationFacts())
|
|
836
|
+
.filter((fact) => fact.name === name)
|
|
837
|
+
.map(({ conversation, value }) => [conversation, value]));
|
|
838
|
+
}
|
|
829
839
|
async function dismissedIn(local, conversation) {
|
|
830
|
-
return (await local
|
|
840
|
+
return (await factOf(local, 'dismissedSuggestion'))[conversation] ?? null;
|
|
831
841
|
}
|
|
832
842
|
async function draftAt(local, conversation) {
|
|
833
843
|
return (await local.chatDraft(conversation)) ?? undefined;
|
|
@@ -859,9 +869,9 @@ function moved(alive, agent, operation, to) {
|
|
|
859
869
|
: [{ ...unsent, conversation: to }];
|
|
860
870
|
const left = { ...(taken.length === 0 ? unsent : blank), moves: [...earlier, operation] };
|
|
861
871
|
await local.keepChatDrafts([left, ...taken]);
|
|
862
|
-
|
|
872
|
+
heldInViews(alive, from, { draft: left });
|
|
863
873
|
for (const one of taken)
|
|
864
|
-
|
|
874
|
+
heldInViews(alive, to, { draft: one });
|
|
865
875
|
alive.deps.publish(conversationChangeSet([from, to]));
|
|
866
876
|
});
|
|
867
877
|
}
|
|
@@ -926,8 +936,9 @@ async function dispatched(alive, conversation, submission, resent = false) {
|
|
|
926
936
|
function invoke(alive, name, conversation, operation, extra = {}, attempt) {
|
|
927
937
|
return alive.deps.call(name, { conversation_id: conversation, operation_id: operation, ...extra }, attempt);
|
|
928
938
|
}
|
|
929
|
-
export function conversationSurface(alive) {
|
|
939
|
+
export function conversationSurface(alive, files) {
|
|
930
940
|
return {
|
|
941
|
+
...files,
|
|
931
942
|
list() {
|
|
932
943
|
return new Promise((settle) => {
|
|
933
944
|
const answer = (listed) => {
|
|
@@ -945,7 +956,12 @@ export function conversationSurface(alive) {
|
|
|
945
956
|
return alive.deps.durably(async (local) => {
|
|
946
957
|
const { messages, more } = await local.messageWindow(conversation, asked.limit, asked.before, phrase);
|
|
947
958
|
const total = asked.total ? await local.messageCount(conversation, phrase) : null;
|
|
948
|
-
return structuredClone(viewOf(alive, conversation, messages, frameOf(asked, messages, more, total),
|
|
959
|
+
return structuredClone(viewOf(alive, conversation, messages, frameOf(asked, messages, more, total), {
|
|
960
|
+
draft: (await local.chatDraft(conversation)) ?? null,
|
|
961
|
+
ended: await endedIn(alive, conversation),
|
|
962
|
+
dismissed: await dismissedIn(local, conversation),
|
|
963
|
+
pins: (await local.facts()).chatPins,
|
|
964
|
+
}));
|
|
949
965
|
});
|
|
950
966
|
},
|
|
951
967
|
async create(input) {
|
|
@@ -953,7 +969,7 @@ export function conversationSurface(alive) {
|
|
|
953
969
|
const conversation = answered(result, 'conversation_id');
|
|
954
970
|
if (conversation === null)
|
|
955
971
|
return result;
|
|
956
|
-
const listed = (await
|
|
972
|
+
const listed = (await heldListing(alive))?.conversations ?? [];
|
|
957
973
|
if (!listed.some((entry) => entry.conversation === conversation)) {
|
|
958
974
|
alive.creating(conversation);
|
|
959
975
|
}
|
|
@@ -1019,34 +1035,30 @@ export function conversationSurface(alive) {
|
|
|
1019
1035
|
message_id: message,
|
|
1020
1036
|
});
|
|
1021
1037
|
},
|
|
1022
|
-
async
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1038
|
+
async pin(figures) {
|
|
1039
|
+
const pins = [...figures];
|
|
1040
|
+
await alive.deps.durably((local) => local.fact('chatPins', pins));
|
|
1041
|
+
const views = [...alive.views()];
|
|
1042
|
+
for (const view of views)
|
|
1043
|
+
view.held.set({ pins });
|
|
1044
|
+
for (const conversation of new Set(views.map((view) => view.conversation))) {
|
|
1045
|
+
emit(alive, conversation);
|
|
1046
|
+
}
|
|
1030
1047
|
},
|
|
1031
|
-
openTurn(conversation, turn) {
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
await local.fact('openedTurns', { ...openedTurns, [conversation]: turn });
|
|
1035
|
-
});
|
|
1048
|
+
async openTurn(conversation, turn) {
|
|
1049
|
+
await alive.deps.durably((local) => local.keepConversationFact({ conversation, name: 'openedTurn', value: turn }));
|
|
1050
|
+
tellList(alive);
|
|
1036
1051
|
},
|
|
1037
1052
|
dismissSuggestion(conversation, suggestion) {
|
|
1038
1053
|
return alive.deps.durably(async (local) => {
|
|
1039
|
-
|
|
1040
|
-
if (dismissedSuggestions[conversation] === suggestion)
|
|
1054
|
+
if ((await dismissedIn(local, conversation)) === suggestion)
|
|
1041
1055
|
return;
|
|
1042
|
-
await local.
|
|
1043
|
-
|
|
1044
|
-
|
|
1056
|
+
await local.keepConversationFact({
|
|
1057
|
+
conversation,
|
|
1058
|
+
name: 'dismissedSuggestion',
|
|
1059
|
+
value: suggestion,
|
|
1045
1060
|
});
|
|
1046
|
-
|
|
1047
|
-
if (view.conversation === conversation)
|
|
1048
|
-
view.held.set({ dismissed: suggestion });
|
|
1049
|
-
}
|
|
1061
|
+
heldInViews(alive, conversation, { dismissed: suggestion });
|
|
1050
1062
|
alive.deps.publish(conversationChangeSet([conversation]));
|
|
1051
1063
|
});
|
|
1052
1064
|
},
|
|
@@ -1079,31 +1091,34 @@ export function chatDraftSurface(alive) {
|
|
|
1079
1091
|
};
|
|
1080
1092
|
}
|
|
1081
1093
|
export async function conversationsOpened(alive, local) {
|
|
1082
|
-
const { conversationList, conversationCursor } = await local.facts();
|
|
1083
|
-
if (conversationList === null || alive.known())
|
|
1094
|
+
const { conversationList, agentList, conversationCursor } = await local.facts();
|
|
1095
|
+
if (conversationList === null || agentList === null || alive.known())
|
|
1084
1096
|
return;
|
|
1085
1097
|
alive.deps.stream()?.hold(conversationCursor);
|
|
1086
1098
|
conversationsLearned(alive);
|
|
1087
1099
|
}
|
|
1100
|
+
export function reconcileOpening(alive) {
|
|
1101
|
+
alive.held.set({ openingRead: true });
|
|
1102
|
+
return reconcileConversations(alive);
|
|
1103
|
+
}
|
|
1088
1104
|
export async function reconcileConversations(alive) {
|
|
1089
1105
|
if (!alive.known())
|
|
1090
1106
|
return;
|
|
1091
1107
|
const local = await alive.deps.local();
|
|
1092
|
-
const [held,
|
|
1108
|
+
const [held, stored, { conversationList, agentList }] = await Promise.all([
|
|
1093
1109
|
local.conversations(),
|
|
1094
|
-
local.
|
|
1110
|
+
local.storedConversations(),
|
|
1095
1111
|
local.facts(),
|
|
1096
1112
|
]);
|
|
1097
1113
|
const list = conversationList ?? [];
|
|
1114
|
+
const listing = { conversations: list, agents: agentList ?? [] };
|
|
1098
1115
|
const entries = new Map(list.map((entry) => [entry.conversation, entry]));
|
|
1099
1116
|
const named = new Set(entries.keys());
|
|
1100
1117
|
const reads = new Map(held.map((one) => [one.conversation, one]));
|
|
1101
1118
|
const { replicated } = alive.held.now();
|
|
1102
|
-
const leaving = [
|
|
1103
|
-
...new Set([...replicated, ...reads.keys(), ...kept.map(({ conversation }) => conversation)]),
|
|
1104
|
-
].filter((conversation) => !named.has(conversation) &&
|
|
1119
|
+
const leaving = [...new Set([...replicated, ...stored])].filter((conversation) => !named.has(conversation) &&
|
|
1105
1120
|
!alive.isCreating(conversation) &&
|
|
1106
|
-
(!conversation.startsWith(NEW_CHAT) || retiredChat(conversation,
|
|
1121
|
+
(!conversation.startsWith(NEW_CHAT) || retiredChat(conversation, listing)));
|
|
1107
1122
|
for (const conversation of named) {
|
|
1108
1123
|
if (!replicated.has(conversation) &&
|
|
1109
1124
|
missed(alive, conversation, reads.get(conversation), entries.get(conversation))) {
|
|
@@ -1187,6 +1202,7 @@ export function watchConversation(alive, conversation, options, deliver) {
|
|
|
1187
1202
|
held.set({ draft: (await local.chatDraft(conversation)) ?? null });
|
|
1188
1203
|
held.set({ ended: await endedIn(alive, conversation) });
|
|
1189
1204
|
held.set({ dismissed: await dismissedIn(local, conversation) });
|
|
1205
|
+
held.set({ pins: (await local.facts()).chatPins });
|
|
1190
1206
|
held.set({ window: messages });
|
|
1191
1207
|
held.set({ more });
|
|
1192
1208
|
held.set({ total: asked.total ? await local.messageCount(conversation) : null });
|
|
@@ -1194,10 +1210,10 @@ export function watchConversation(alive, conversation, options, deliver) {
|
|
|
1194
1210
|
.then(() => {
|
|
1195
1211
|
if (alive.deps.closed() || !view.admit(watcher))
|
|
1196
1212
|
return;
|
|
1197
|
-
const
|
|
1198
|
-
const shown = window ?? [];
|
|
1213
|
+
const now = held.now();
|
|
1214
|
+
const shown = now.window ?? [];
|
|
1199
1215
|
const frame = sharedFrame(view, shown);
|
|
1200
|
-
watcher.notify(viewOf(alive, conversation, shown, frame,
|
|
1216
|
+
watcher.notify(viewOf(alive, conversation, shown, frame, now));
|
|
1201
1217
|
})
|
|
1202
1218
|
.catch(() => { });
|
|
1203
1219
|
return () => {
|
|
@@ -1213,9 +1229,13 @@ export function watchConversationList(alive, deliver) {
|
|
|
1213
1229
|
export function watchConversationAgents(alive, deliver) {
|
|
1214
1230
|
alive.agentListeners.join(deliver);
|
|
1215
1231
|
conversationsLearned(alive);
|
|
1216
|
-
readAgents(alive);
|
|
1217
1232
|
return () => alive.agentListeners.leave(deliver);
|
|
1218
1233
|
}
|
|
1234
|
+
export function watchListedAgents(alive, deliver) {
|
|
1235
|
+
alive.listedListeners.join(deliver);
|
|
1236
|
+
conversationsLearned(alive);
|
|
1237
|
+
return () => alive.listedListeners.leave(deliver);
|
|
1238
|
+
}
|
|
1219
1239
|
export function conversationsChanged(alive, set) {
|
|
1220
1240
|
for (const conversation of set.conversations)
|
|
1221
1241
|
emit(alive, conversation);
|
|
@@ -1227,26 +1247,32 @@ export function receiveConversationEvent(alive, event) {
|
|
|
1227
1247
|
if (event.whole)
|
|
1228
1248
|
alive.relistBegun();
|
|
1229
1249
|
if (alive.relisting())
|
|
1230
|
-
alive.relistHeard(event.entries);
|
|
1250
|
+
alive.relistHeard(event.entries, event.agents);
|
|
1231
1251
|
if (event.more && alive.relisting())
|
|
1232
1252
|
return;
|
|
1233
1253
|
const whole = alive.relistTaken();
|
|
1234
1254
|
listChanged(alive, {
|
|
1235
1255
|
replacing: whole !== null,
|
|
1236
|
-
set: whole === null ? event.entries : [...whole.values()],
|
|
1256
|
+
set: whole === null ? event.entries : [...whole.conversations.values()],
|
|
1257
|
+
agents: whole === null ? event.agents : [...whole.agents.values()],
|
|
1237
1258
|
gone: null,
|
|
1238
1259
|
...(event.more ? { paged: true } : { cursor: event.cursor }),
|
|
1239
1260
|
});
|
|
1240
1261
|
return;
|
|
1241
1262
|
}
|
|
1242
1263
|
if (event.kind === 'listed') {
|
|
1243
|
-
alive.relistHeard([event.entry]);
|
|
1244
|
-
listChanged(alive, { replacing: false, set: [event.entry], gone: null });
|
|
1264
|
+
alive.relistHeard([event.entry], []);
|
|
1265
|
+
listChanged(alive, { replacing: false, set: [event.entry], agents: [], gone: null });
|
|
1266
|
+
return;
|
|
1267
|
+
}
|
|
1268
|
+
if (event.kind === 'agent') {
|
|
1269
|
+
alive.relistHeard([], [event.agent]);
|
|
1270
|
+
listChanged(alive, { replacing: false, set: [], agents: [event.agent], gone: null });
|
|
1245
1271
|
return;
|
|
1246
1272
|
}
|
|
1247
1273
|
if (event.kind === 'unlisted') {
|
|
1248
1274
|
alive.relistDropped(event.conversation);
|
|
1249
|
-
listChanged(alive, { replacing: false, set: [], gone: event.conversation });
|
|
1275
|
+
listChanged(alive, { replacing: false, set: [], agents: [], gone: event.conversation });
|
|
1250
1276
|
return;
|
|
1251
1277
|
}
|
|
1252
1278
|
heard(alive, event);
|
package/dist/discovery.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import type { CycleProgress } from './status.js';
|
|
|
5
5
|
import type { RuntimeStore } from './store.js';
|
|
6
6
|
export declare function malformed(listed: readonly DiscoveredRoom[]): string | null;
|
|
7
7
|
export declare function applyDiscovery(runtime: Runtime, found: readonly DiscoveredRoom[], started: number, left?: readonly string[]): Promise<readonly DiscoveredRoom[]>;
|
|
8
|
+
export declare const DISCOVERY = "discovery";
|
|
8
9
|
export declare function signIn(runtime: Runtime, local: RuntimeStore, signedIn: Member | null): Promise<void>;
|
|
10
|
+
export declare function zoned(runtime: Runtime, local: RuntimeStore, zone: string | null): Promise<void>;
|
|
9
11
|
export declare function discoverRooms(runtime: Runtime, local: RuntimeStore, progress: CycleProgress, live: Live, found: Discovery | null): Promise<readonly DiscoveredRoom[] | null>;
|
|
10
12
|
//# sourceMappingURL=discovery.d.ts.map
|
package/dist/discovery.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,cAAc,EACd,MAAM,EAEP,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAkB/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,CAsB1E;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GACvB,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CA0CpC;
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,cAAc,EACd,MAAM,EAEP,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAkB/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,CAsB1E;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GACvB,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CA0CpC;AAUD,eAAO,MAAM,SAAS,cAAc,CAAC;AAErC,wBAAsB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,iBAI1F;AAED,wBAAsB,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,iBAIrF;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,GAAG,IAAI,GACtB,OAAO,CAAC,SAAS,cAAc,EAAE,GAAG,IAAI,CAAC,CAqE3C"}
|