@agentshouse/mdruntime 0.1.0-cb8a03985803b → 0.1.0-cb9a984171ffb
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 +14 -13
- package/dist/acceptance.js +1 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +26 -6
- package/dist/adapter.d.ts +113 -21
- 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 +2 -7
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +347 -0
- package/dist/binary.d.ts +6 -2
- package/dist/binary.d.ts.map +1 -1
- package/dist/binary.js +10 -3
- package/dist/change.d.ts +6 -2
- 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 +2 -4
- package/dist/client.d.ts +17 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +24 -54
- package/dist/collection.d.ts +6 -1
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +23 -9
- 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 +2 -1
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +72 -41
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +11 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +18 -9
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +17 -8
- 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 +16 -11
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +183 -139
- package/dist/declaration.js +1 -1
- package/dist/discovery.d.ts +3 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +30 -5
- 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 +1 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +3 -0
- package/dist/entry.d.ts +14 -0
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +45 -16
- 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 +6 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +68 -27
- package/dist/house-query.d.ts +24 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +67 -0
- package/dist/index.d.ts +13 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/install.d.ts +8 -2
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +40 -33
- package/dist/lifecycle.d.ts +1 -1
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +38 -25
- 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 +19 -3
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +94 -36
- package/dist/loaded.d.ts +7 -0
- package/dist/loaded.d.ts.map +1 -0
- package/dist/loaded.js +46 -0
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +4 -2
- package/dist/lost.js +1 -1
- package/dist/media.d.ts +19 -3
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +167 -33
- package/dist/memory.d.ts +7 -3
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +60 -20
- package/dist/messages.d.ts +8 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +14 -3
- 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 +3 -3
- package/dist/name.d.ts +0 -1
- package/dist/name.d.ts.map +1 -1
- package/dist/name.js +3 -7
- package/dist/observation.d.ts +26 -10
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +200 -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 +18 -2
- package/dist/outcome.d.ts +21 -4
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +18 -3
- package/dist/overlay.d.ts +4 -4
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +3 -5
- package/dist/parts.d.ts +3 -1
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +30 -7
- package/dist/preparation.d.ts +33 -7
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +195 -78
- 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 +114 -66
- package/dist/query.d.ts +2 -2
- package/dist/questions.d.ts +1 -0
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +3 -1
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +51 -21
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +122 -23
- package/dist/react.d.ts +6 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/readiness.d.ts +19 -3
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +17 -10
- 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/reference-forms.d.ts +4 -0
- package/dist/reference-forms.d.ts.map +1 -0
- package/dist/reference-forms.js +74 -0
- package/dist/refresh.d.ts +1 -1
- package/dist/refresh.js +4 -4
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +4 -4
- package/dist/room-draft.d.ts +28 -3
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +235 -14
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +11 -6
- 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 +11 -2
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +24 -10
- 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 +4 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts +1 -0
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +17 -86
- package/dist/saves.d.ts +4 -2
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +75 -22
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +2 -2
- package/dist/shown.d.ts +3 -1
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +72 -41
- package/dist/socket/session.d.ts +4 -1
- package/dist/socket/session.d.ts.map +1 -1
- package/dist/socket/session.js +3 -0
- package/dist/socket.d.ts +1 -0
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +1 -0
- package/dist/source.d.ts +7 -0
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +15 -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 +18 -3
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +57 -21
- 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 +14 -9
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +12 -5
- package/dist/stored.d.ts +38 -14
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +210 -52
- package/dist/surface.d.ts +13 -7
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +52 -17
- package/dist/sync.d.ts +4 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +49 -27
- package/dist/tables.d.ts +22 -49
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +70 -325
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +1 -2
- package/dist/validation.d.ts +2 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +50 -10
- package/dist/wire.d.ts +28 -13
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +17 -12
- package/package.json +3 -3
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';
|
|
@@ -25,17 +25,16 @@ export function unheldView(conversation) {
|
|
|
25
25
|
options: [],
|
|
26
26
|
starting: null,
|
|
27
27
|
state: null,
|
|
28
|
-
link: null,
|
|
29
28
|
deliveryWaiting: [],
|
|
30
29
|
deliveryUnknown: [],
|
|
31
30
|
chatDraft: null,
|
|
32
31
|
dismissedSuggestion: null,
|
|
32
|
+
pins: [],
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
export const SESSION_STARTED = 'Session started';
|
|
36
36
|
const NEW_CHAT = 'new:';
|
|
37
37
|
const LISTING = 'listing';
|
|
38
|
-
const AGENTS = 'agents';
|
|
39
38
|
export const CATCHING_UP = 'catching-up';
|
|
40
39
|
export const HISTORY_CONVERSATIONS = 64;
|
|
41
40
|
export function newChat(agent) {
|
|
@@ -209,7 +208,7 @@ function returned(draft, submission, others) {
|
|
|
209
208
|
revision: chatDraftRevision(),
|
|
210
209
|
}, others);
|
|
211
210
|
}
|
|
212
|
-
function viewOf(alive, conversation, held, frame, draft, ended, dismissed) {
|
|
211
|
+
function viewOf(alive, conversation, held, frame, { draft, ended, dismissed, pins }) {
|
|
213
212
|
const facts = alive.liveOf(conversation);
|
|
214
213
|
return {
|
|
215
214
|
conversation,
|
|
@@ -228,38 +227,44 @@ function viewOf(alive, conversation, held, frame, draft, ended, dismissed) {
|
|
|
228
227
|
options: structuredClone(facts.options),
|
|
229
228
|
starting: facts.starting,
|
|
230
229
|
state: sessionOf(facts, held, ended),
|
|
231
|
-
link: facts.link === null ? null : { ...facts.link },
|
|
232
230
|
deliveryWaiting: [...facts.deliveryWaiting],
|
|
233
231
|
deliveryUnknown: [...facts.deliveryUnknown],
|
|
234
232
|
chatDraft: draft === null || unwritten(draft) ? null : { text: draft.text, revision: draft.revision },
|
|
235
233
|
dismissedSuggestion: dismissed,
|
|
234
|
+
pins: [...pins],
|
|
236
235
|
};
|
|
237
236
|
}
|
|
238
|
-
function
|
|
237
|
+
function standing(facts, saved, ended) {
|
|
239
238
|
if (facts.state !== null)
|
|
240
239
|
return structuredClone(facts.state);
|
|
240
|
+
if (saved === null)
|
|
241
|
+
return null;
|
|
242
|
+
const down = facts.process?.running === false;
|
|
243
|
+
return structuredClone(standingState(saved.state, saved.at, down ? saved.at : ended));
|
|
244
|
+
}
|
|
245
|
+
function sessionOf(facts, held, ended) {
|
|
241
246
|
const saved = [...held]
|
|
242
247
|
.reverse()
|
|
243
248
|
.map(({ message }) => record(message))
|
|
244
249
|
.find(({ content }) => isTurn(content));
|
|
245
250
|
const at = saved === undefined ? null : text(saved, 'accepted_at');
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return structuredClone(standingState(saved.content.state, at, down ? at : ended));
|
|
251
|
+
return standing(facts, saved === undefined || !isTurn(saved.content) || at === null
|
|
252
|
+
? null
|
|
253
|
+
: { state: saved.content.state, at }, ended);
|
|
250
254
|
}
|
|
251
255
|
function emit(alive, conversation) {
|
|
252
256
|
if (alive.deps.closed())
|
|
253
257
|
return;
|
|
254
258
|
for (const view of alive.views()) {
|
|
255
|
-
const
|
|
259
|
+
const held = view.held.now();
|
|
260
|
+
const { window } = held;
|
|
256
261
|
if (view.conversation !== conversation || window === null)
|
|
257
262
|
continue;
|
|
258
263
|
const ready = view.ready();
|
|
259
264
|
if (ready.length === 0)
|
|
260
265
|
continue;
|
|
261
266
|
const frame = sharedFrame(view, window);
|
|
262
|
-
const value = viewOf(alive, conversation, window, frame,
|
|
267
|
+
const value = viewOf(alive, conversation, window, frame, held);
|
|
263
268
|
for (const watcher of ready)
|
|
264
269
|
watcher.notify(value);
|
|
265
270
|
}
|
|
@@ -295,76 +300,103 @@ function stateOf(alive, conversation) {
|
|
|
295
300
|
return facts.turn === null ? 'idle' : 'working';
|
|
296
301
|
}
|
|
297
302
|
function rowOf(alive, conversation) {
|
|
298
|
-
const { turn, questions } = alive.liveOf(conversation);
|
|
303
|
+
const { turn, questions, deliveryWaiting } = alive.liveOf(conversation);
|
|
299
304
|
return {
|
|
300
305
|
state: stateOf(alive, conversation),
|
|
301
306
|
started: turn?.started ?? null,
|
|
302
307
|
line: turn === null ? null : runningLine(turn.parts),
|
|
303
308
|
question: openQuestion(questions),
|
|
304
309
|
asked: questionAsked(questions),
|
|
310
|
+
deliveryWaiting: [...deliveryWaiting],
|
|
305
311
|
};
|
|
306
312
|
}
|
|
307
313
|
async function entries(alive) {
|
|
308
|
-
const
|
|
309
|
-
if (
|
|
314
|
+
const listing = await heldListing(alive);
|
|
315
|
+
if (listing === null)
|
|
316
|
+
return null;
|
|
317
|
+
const list = listing.conversations;
|
|
318
|
+
const agents = new Map(listing.agents.map((agent) => [agent.id, agent]));
|
|
319
|
+
if (list.some((entry) => !agents.has(entry.agent)))
|
|
310
320
|
return null;
|
|
311
321
|
const held = list.length === 0
|
|
312
322
|
? []
|
|
313
323
|
: await alive.deps.durably((local) => local.conversationRows(list.map(({ conversation }) => conversation)));
|
|
314
324
|
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
|
-
|
|
325
|
+
return list.map((entry) => {
|
|
326
|
+
const agent = agents.get(entry.agent);
|
|
327
|
+
return {
|
|
328
|
+
conversation: entry.conversation,
|
|
329
|
+
agent: { identity: agent.id, name: agent.name, retired: agent.retired_at !== null },
|
|
330
|
+
name: entry.name,
|
|
331
|
+
created: entry.created,
|
|
332
|
+
outcome: entry.outcome,
|
|
333
|
+
waiting: entry.waiting,
|
|
334
|
+
subject: entry.subject,
|
|
335
|
+
...rowOf(alive, entry.conversation),
|
|
336
|
+
...heldFacts(rows.get(entry.conversation), entry),
|
|
337
|
+
jobs: standing(alive.liveOf(entry.conversation), rows.get(entry.conversation)?.saved ?? null, entry.processEnded)?.running ?? [],
|
|
338
|
+
};
|
|
339
|
+
});
|
|
326
340
|
}
|
|
327
|
-
async function
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
331
|
-
return !alive.known() && alive.deps.stream() !== undefined && alive.deps.online()
|
|
341
|
+
async function heldListing(alive) {
|
|
342
|
+
const { conversationList, agentList } = await (await alive.deps.local()).facts();
|
|
343
|
+
if (conversationList !== null && agentList !== null)
|
|
344
|
+
return { conversations: conversationList, agents: agentList };
|
|
345
|
+
return !alive.known() && alive.deps.stream() !== undefined && alive.deps.online()
|
|
346
|
+
? null
|
|
347
|
+
: { conversations: [], agents: [] };
|
|
332
348
|
}
|
|
333
349
|
async function endedIn(alive, conversation) {
|
|
334
|
-
const
|
|
335
|
-
return
|
|
350
|
+
const listing = await heldListing(alive);
|
|
351
|
+
return (listing?.conversations.find((entry) => entry.conversation === conversation)?.processEnded ??
|
|
352
|
+
null);
|
|
353
|
+
}
|
|
354
|
+
function upserted(kept, set, key) {
|
|
355
|
+
const held = new Map(kept.map((one) => [key(one), one]));
|
|
356
|
+
for (const one of set)
|
|
357
|
+
held.set(key(one), { ...one });
|
|
358
|
+
return held;
|
|
336
359
|
}
|
|
337
360
|
function listChanged(alive, change) {
|
|
338
361
|
void alive.deps
|
|
339
362
|
.durably(async (local) => {
|
|
340
|
-
const { conversationList, conversationCursor } = await local.facts();
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
363
|
+
const { conversationList, agentList, conversationCursor, readUntil } = await local.facts();
|
|
364
|
+
if (readUntil === null)
|
|
365
|
+
await local.fact('readUntil', new Date().toISOString());
|
|
366
|
+
const held = upserted(change.replacing ? [] : (conversationList ?? []), change.set, (entry) => entry.conversation);
|
|
367
|
+
for (const entry of change.set)
|
|
345
368
|
alive.created(entry.conversation);
|
|
346
|
-
}
|
|
347
369
|
if (change.gone !== null)
|
|
348
370
|
held.delete(change.gone);
|
|
349
371
|
const list = [...held.values()];
|
|
372
|
+
const agents = [
|
|
373
|
+
...upserted(change.replacing ? [] : (agentList ?? []), change.agents, (agent) => agent.id).values(),
|
|
374
|
+
];
|
|
350
375
|
if (JSON.stringify(list) !== JSON.stringify(conversationList)) {
|
|
351
376
|
await local.fact('conversationList', list);
|
|
352
377
|
}
|
|
378
|
+
if (JSON.stringify(agents) !== JSON.stringify(agentList)) {
|
|
379
|
+
await local.fact('agentList', agents);
|
|
380
|
+
}
|
|
353
381
|
if (change.cursor !== undefined) {
|
|
354
382
|
if (change.cursor !== conversationCursor) {
|
|
355
383
|
await local.fact('conversationCursor', change.cursor);
|
|
356
384
|
}
|
|
357
385
|
alive.deps.stream()?.hold(change.cursor);
|
|
358
386
|
}
|
|
359
|
-
return list;
|
|
387
|
+
return { conversations: list, agents };
|
|
360
388
|
})
|
|
361
|
-
.catch(async () =>
|
|
362
|
-
.
|
|
389
|
+
.catch(async () => {
|
|
390
|
+
const { conversationList, agentList } = await (await alive.deps.local()).facts();
|
|
391
|
+
return { conversations: conversationList ?? [], agents: agentList ?? [] };
|
|
392
|
+
})
|
|
393
|
+
.then((listing) => {
|
|
363
394
|
if (alive.deps.closed() || change.paged === true)
|
|
364
395
|
return;
|
|
396
|
+
const list = listing.conversations;
|
|
365
397
|
endedAnew(alive, list);
|
|
366
398
|
if (change.cursor !== undefined) {
|
|
367
|
-
alive.held.set({ listKnown: true });
|
|
399
|
+
alive.held.set({ listKnown: true, listHeld: true, openingListed: true });
|
|
368
400
|
settleBehind(alive, list);
|
|
369
401
|
openingEnded(alive);
|
|
370
402
|
alive.deps.settled();
|
|
@@ -372,11 +404,12 @@ function listChanged(alive, change) {
|
|
|
372
404
|
emitList(alive);
|
|
373
405
|
if (!alive.known())
|
|
374
406
|
return;
|
|
375
|
-
retiredDrafts(alive,
|
|
376
|
-
const { replicated } = alive.held.now();
|
|
377
|
-
if (change.cursor === undefined
|
|
378
|
-
|
|
379
|
-
list.some(({ conversation }) => !replicated.has(conversation))
|
|
407
|
+
retiredDrafts(alive, listing);
|
|
408
|
+
const { replicated, openingRead } = alive.held.now();
|
|
409
|
+
if (change.cursor === undefined
|
|
410
|
+
? list.length !== replicated.size ||
|
|
411
|
+
list.some(({ conversation }) => !replicated.has(conversation))
|
|
412
|
+
: openingRead) {
|
|
380
413
|
alive.deps.again();
|
|
381
414
|
}
|
|
382
415
|
}, uncaught);
|
|
@@ -392,16 +425,16 @@ function endedAnew(alive, list) {
|
|
|
392
425
|
emit(alive, view.conversation);
|
|
393
426
|
}
|
|
394
427
|
}
|
|
395
|
-
function
|
|
396
|
-
const reading =
|
|
428
|
+
function shownListing(alive, work) {
|
|
429
|
+
const reading = heldListing(alive);
|
|
397
430
|
alive.inOrder(async () => {
|
|
398
|
-
const
|
|
431
|
+
const listing = await reading.catch((error) => {
|
|
399
432
|
uncaught(error);
|
|
400
433
|
return null;
|
|
401
434
|
});
|
|
402
|
-
if (
|
|
435
|
+
if (listing === null || alive.deps.closed())
|
|
403
436
|
return;
|
|
404
|
-
work(
|
|
437
|
+
work(listing);
|
|
405
438
|
});
|
|
406
439
|
}
|
|
407
440
|
async function told(alive) {
|
|
@@ -446,84 +479,73 @@ export function conversationsLearned(alive) {
|
|
|
446
479
|
return;
|
|
447
480
|
if (alive.listeners.waiting())
|
|
448
481
|
tellList(alive);
|
|
449
|
-
if (!alive.agentListeners.waiting())
|
|
482
|
+
if (!alive.agentListeners.waiting() && !alive.listedListeners.waiting())
|
|
450
483
|
return;
|
|
451
|
-
|
|
484
|
+
shownListing(alive, (listing) => {
|
|
485
|
+
alive.agentListeners.welcome(agentsOf(listing));
|
|
486
|
+
alive.listedListeners.welcome(structuredClone(listing.agents));
|
|
487
|
+
});
|
|
452
488
|
}
|
|
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
|
-
})
|
|
489
|
+
function agentsOf(listing) {
|
|
490
|
+
return listing.agents
|
|
491
|
+
.filter((agent) => agent.retired_at === null)
|
|
492
|
+
.map((agent) => ({
|
|
493
|
+
identity: agent.id,
|
|
494
|
+
name: agent.name,
|
|
495
|
+
cli: agent.cli,
|
|
496
|
+
model: agent.model,
|
|
497
|
+
effort: agent.effort,
|
|
498
|
+
environment: {
|
|
499
|
+
identity: agent.environment,
|
|
500
|
+
name: agent.environment_name,
|
|
501
|
+
state: agent.environment_connected ? 'online' : 'offline',
|
|
502
|
+
},
|
|
503
|
+
}))
|
|
472
504
|
.sort((left, right) => left.name === right.name
|
|
473
505
|
? left.identity.localeCompare(right.identity)
|
|
474
506
|
: left.name.localeCompare(right.name));
|
|
475
507
|
}
|
|
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
508
|
function emitAgents(alive) {
|
|
500
|
-
|
|
509
|
+
const { agentListeners, listedListeners } = alive;
|
|
510
|
+
if (alive.deps.closed() || (!agentListeners.told() && !listedListeners.told()))
|
|
501
511
|
return;
|
|
502
|
-
|
|
503
|
-
const value =
|
|
512
|
+
shownListing(alive, (listing) => {
|
|
513
|
+
const value = agentsOf(listing);
|
|
504
514
|
const shown = JSON.stringify(value);
|
|
505
|
-
if (shown
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
515
|
+
if (shown !== alive.held.now().agentsShown) {
|
|
516
|
+
alive.held.set({ agentsShown: shown });
|
|
517
|
+
agentListeners.tell(value);
|
|
518
|
+
}
|
|
519
|
+
const listed = JSON.stringify(listing.agents);
|
|
520
|
+
if (listed !== alive.held.now().listedShown) {
|
|
521
|
+
alive.held.set({ listedShown: listed });
|
|
522
|
+
listedListeners.tell(structuredClone(listing.agents));
|
|
523
|
+
}
|
|
509
524
|
});
|
|
510
525
|
}
|
|
526
|
+
function ran({ state, process }) {
|
|
527
|
+
return JSON.stringify([state?.running ?? null, process?.running ?? null]);
|
|
528
|
+
}
|
|
511
529
|
function setLive(alive, conversation, next) {
|
|
530
|
+
const was = ran(alive.liveOf(conversation));
|
|
512
531
|
const before = rowOf(alive, conversation);
|
|
513
532
|
alive.holdLive(conversation, next);
|
|
514
533
|
const after = rowOf(alive, conversation);
|
|
515
|
-
if (after.state !== before.state ||
|
|
534
|
+
if (after.state !== before.state ||
|
|
535
|
+
after.started !== before.started ||
|
|
536
|
+
ran(alive.liveOf(conversation)) !== was ||
|
|
537
|
+
after.deliveryWaiting.join() !== before.deliveryWaiting.join())
|
|
516
538
|
emitList(alive);
|
|
517
539
|
else if (after.line !== before.line ||
|
|
518
540
|
after.question !== before.question ||
|
|
519
541
|
after.asked !== before.asked)
|
|
520
542
|
tellSoon(alive);
|
|
521
543
|
}
|
|
522
|
-
function retiredChat(conversation,
|
|
544
|
+
function retiredChat(conversation, listing) {
|
|
523
545
|
if (!conversation.startsWith(NEW_CHAT))
|
|
524
546
|
return false;
|
|
525
547
|
const agent = conversation.slice(NEW_CHAT.length);
|
|
526
|
-
return
|
|
548
|
+
return listing.agents.some((one) => one.id === agent && one.retired_at !== null);
|
|
527
549
|
}
|
|
528
550
|
function live(alive, conversation, change) {
|
|
529
551
|
alive.factsHeard(conversation, FACTS.filter((one) => one in change));
|
|
@@ -543,7 +565,6 @@ function openingEnded(alive) {
|
|
|
543
565
|
options: facts.has('options') ? QUIET.options : held.options,
|
|
544
566
|
starting: facts.has('starting') ? QUIET.starting : held.starting,
|
|
545
567
|
state: facts.has('state') ? QUIET.state : held.state,
|
|
546
|
-
link: facts.has('link') ? QUIET.link : held.link,
|
|
547
568
|
deliveryWaiting: facts.has('deliveryWaiting') ? QUIET.deliveryWaiting : held.deliveryWaiting,
|
|
548
569
|
deliveryUnknown: facts.has('deliveryUnknown') ? QUIET.deliveryUnknown : held.deliveryUnknown,
|
|
549
570
|
});
|
|
@@ -611,7 +632,7 @@ async function readsOf(local, conversations) {
|
|
|
611
632
|
return new Map((await local.conversations(conversations)).map((held) => [held.conversation, held]));
|
|
612
633
|
}
|
|
613
634
|
function retiredDrafts(alive, list) {
|
|
614
|
-
if (!list.some((
|
|
635
|
+
if (!list.agents.some((agent) => agent.retired_at !== null))
|
|
615
636
|
return;
|
|
616
637
|
void alive.deps
|
|
617
638
|
.local()
|
|
@@ -775,10 +796,6 @@ function heard(alive, event) {
|
|
|
775
796
|
live(alive, conversation, { state: structuredClone(event.state) });
|
|
776
797
|
return;
|
|
777
798
|
}
|
|
778
|
-
if (event.kind === 'link') {
|
|
779
|
-
live(alive, conversation, { link: { connected: event.connected } });
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
799
|
if (event.kind === 'deliveries') {
|
|
783
800
|
live(alive, conversation, {
|
|
784
801
|
deliveryWaiting: [...event.waiting],
|
|
@@ -925,8 +942,9 @@ async function dispatched(alive, conversation, submission, resent = false) {
|
|
|
925
942
|
function invoke(alive, name, conversation, operation, extra = {}, attempt) {
|
|
926
943
|
return alive.deps.call(name, { conversation_id: conversation, operation_id: operation, ...extra }, attempt);
|
|
927
944
|
}
|
|
928
|
-
export function conversationSurface(alive) {
|
|
945
|
+
export function conversationSurface(alive, files) {
|
|
929
946
|
return {
|
|
947
|
+
...files,
|
|
930
948
|
list() {
|
|
931
949
|
return new Promise((settle) => {
|
|
932
950
|
const answer = (listed) => {
|
|
@@ -944,7 +962,12 @@ export function conversationSurface(alive) {
|
|
|
944
962
|
return alive.deps.durably(async (local) => {
|
|
945
963
|
const { messages, more } = await local.messageWindow(conversation, asked.limit, asked.before, phrase);
|
|
946
964
|
const total = asked.total ? await local.messageCount(conversation, phrase) : null;
|
|
947
|
-
return structuredClone(viewOf(alive, conversation, messages, frameOf(asked, messages, more, total),
|
|
965
|
+
return structuredClone(viewOf(alive, conversation, messages, frameOf(asked, messages, more, total), {
|
|
966
|
+
draft: (await local.chatDraft(conversation)) ?? null,
|
|
967
|
+
ended: await endedIn(alive, conversation),
|
|
968
|
+
dismissed: await dismissedIn(local, conversation),
|
|
969
|
+
pins: (await local.facts()).chatPins,
|
|
970
|
+
}));
|
|
948
971
|
});
|
|
949
972
|
},
|
|
950
973
|
async create(input) {
|
|
@@ -952,7 +975,7 @@ export function conversationSurface(alive) {
|
|
|
952
975
|
const conversation = answered(result, 'conversation_id');
|
|
953
976
|
if (conversation === null)
|
|
954
977
|
return result;
|
|
955
|
-
const listed = (await
|
|
978
|
+
const listed = (await heldListing(alive))?.conversations ?? [];
|
|
956
979
|
if (!listed.some((entry) => entry.conversation === conversation)) {
|
|
957
980
|
alive.creating(conversation);
|
|
958
981
|
}
|
|
@@ -1018,17 +1041,19 @@ export function conversationSurface(alive) {
|
|
|
1018
1041
|
message_id: message,
|
|
1019
1042
|
});
|
|
1020
1043
|
},
|
|
1021
|
-
async
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1044
|
+
async pin(figures) {
|
|
1045
|
+
const pins = [...figures];
|
|
1046
|
+
await alive.deps.durably((local) => local.fact('chatPins', pins));
|
|
1047
|
+
const views = [...alive.views()];
|
|
1048
|
+
for (const view of views)
|
|
1049
|
+
view.held.set({ pins });
|
|
1050
|
+
for (const conversation of new Set(views.map((view) => view.conversation))) {
|
|
1051
|
+
emit(alive, conversation);
|
|
1052
|
+
}
|
|
1029
1053
|
},
|
|
1030
|
-
openTurn(conversation, turn) {
|
|
1031
|
-
|
|
1054
|
+
async openTurn(conversation, turn) {
|
|
1055
|
+
await alive.deps.durably((local) => local.keepConversationFact({ conversation, name: 'openedTurn', value: turn }));
|
|
1056
|
+
tellList(alive);
|
|
1032
1057
|
},
|
|
1033
1058
|
dismissSuggestion(conversation, suggestion) {
|
|
1034
1059
|
return alive.deps.durably(async (local) => {
|
|
@@ -1072,29 +1097,37 @@ export function chatDraftSurface(alive) {
|
|
|
1072
1097
|
};
|
|
1073
1098
|
}
|
|
1074
1099
|
export async function conversationsOpened(alive, local) {
|
|
1075
|
-
const { conversationList, conversationCursor } = await local.facts();
|
|
1076
|
-
if (conversationList === null ||
|
|
1100
|
+
const { conversationList, agentList, conversationCursor } = await local.facts();
|
|
1101
|
+
if (conversationList === null || agentList === null)
|
|
1102
|
+
return;
|
|
1103
|
+
alive.held.set({ listHeld: true });
|
|
1104
|
+
if (alive.known())
|
|
1077
1105
|
return;
|
|
1078
1106
|
alive.deps.stream()?.hold(conversationCursor);
|
|
1079
1107
|
conversationsLearned(alive);
|
|
1080
1108
|
}
|
|
1109
|
+
export function reconcileOpening(alive) {
|
|
1110
|
+
alive.held.set({ openingRead: true });
|
|
1111
|
+
return reconcileConversations(alive);
|
|
1112
|
+
}
|
|
1081
1113
|
export async function reconcileConversations(alive) {
|
|
1082
1114
|
if (!alive.known())
|
|
1083
1115
|
return;
|
|
1084
1116
|
const local = await alive.deps.local();
|
|
1085
|
-
const [held, stored, { conversationList }] = await Promise.all([
|
|
1117
|
+
const [held, stored, { conversationList, agentList }] = await Promise.all([
|
|
1086
1118
|
local.conversations(),
|
|
1087
1119
|
local.storedConversations(),
|
|
1088
1120
|
local.facts(),
|
|
1089
1121
|
]);
|
|
1090
1122
|
const list = conversationList ?? [];
|
|
1123
|
+
const listing = { conversations: list, agents: agentList ?? [] };
|
|
1091
1124
|
const entries = new Map(list.map((entry) => [entry.conversation, entry]));
|
|
1092
1125
|
const named = new Set(entries.keys());
|
|
1093
1126
|
const reads = new Map(held.map((one) => [one.conversation, one]));
|
|
1094
1127
|
const { replicated } = alive.held.now();
|
|
1095
1128
|
const leaving = [...new Set([...replicated, ...stored])].filter((conversation) => !named.has(conversation) &&
|
|
1096
1129
|
!alive.isCreating(conversation) &&
|
|
1097
|
-
(!conversation.startsWith(NEW_CHAT) || retiredChat(conversation,
|
|
1130
|
+
(!conversation.startsWith(NEW_CHAT) || retiredChat(conversation, listing)));
|
|
1098
1131
|
for (const conversation of named) {
|
|
1099
1132
|
if (!replicated.has(conversation) &&
|
|
1100
1133
|
missed(alive, conversation, reads.get(conversation), entries.get(conversation))) {
|
|
@@ -1178,6 +1211,7 @@ export function watchConversation(alive, conversation, options, deliver) {
|
|
|
1178
1211
|
held.set({ draft: (await local.chatDraft(conversation)) ?? null });
|
|
1179
1212
|
held.set({ ended: await endedIn(alive, conversation) });
|
|
1180
1213
|
held.set({ dismissed: await dismissedIn(local, conversation) });
|
|
1214
|
+
held.set({ pins: (await local.facts()).chatPins });
|
|
1181
1215
|
held.set({ window: messages });
|
|
1182
1216
|
held.set({ more });
|
|
1183
1217
|
held.set({ total: asked.total ? await local.messageCount(conversation) : null });
|
|
@@ -1185,10 +1219,10 @@ export function watchConversation(alive, conversation, options, deliver) {
|
|
|
1185
1219
|
.then(() => {
|
|
1186
1220
|
if (alive.deps.closed() || !view.admit(watcher))
|
|
1187
1221
|
return;
|
|
1188
|
-
const
|
|
1189
|
-
const shown = window ?? [];
|
|
1222
|
+
const now = held.now();
|
|
1223
|
+
const shown = now.window ?? [];
|
|
1190
1224
|
const frame = sharedFrame(view, shown);
|
|
1191
|
-
watcher.notify(viewOf(alive, conversation, shown, frame,
|
|
1225
|
+
watcher.notify(viewOf(alive, conversation, shown, frame, now));
|
|
1192
1226
|
})
|
|
1193
1227
|
.catch(() => { });
|
|
1194
1228
|
return () => {
|
|
@@ -1204,9 +1238,13 @@ export function watchConversationList(alive, deliver) {
|
|
|
1204
1238
|
export function watchConversationAgents(alive, deliver) {
|
|
1205
1239
|
alive.agentListeners.join(deliver);
|
|
1206
1240
|
conversationsLearned(alive);
|
|
1207
|
-
readAgents(alive);
|
|
1208
1241
|
return () => alive.agentListeners.leave(deliver);
|
|
1209
1242
|
}
|
|
1243
|
+
export function watchListedAgents(alive, deliver) {
|
|
1244
|
+
alive.listedListeners.join(deliver);
|
|
1245
|
+
conversationsLearned(alive);
|
|
1246
|
+
return () => alive.listedListeners.leave(deliver);
|
|
1247
|
+
}
|
|
1210
1248
|
export function conversationsChanged(alive, set) {
|
|
1211
1249
|
for (const conversation of set.conversations)
|
|
1212
1250
|
emit(alive, conversation);
|
|
@@ -1218,26 +1256,32 @@ export function receiveConversationEvent(alive, event) {
|
|
|
1218
1256
|
if (event.whole)
|
|
1219
1257
|
alive.relistBegun();
|
|
1220
1258
|
if (alive.relisting())
|
|
1221
|
-
alive.relistHeard(event.entries);
|
|
1259
|
+
alive.relistHeard(event.entries, event.agents);
|
|
1222
1260
|
if (event.more && alive.relisting())
|
|
1223
1261
|
return;
|
|
1224
1262
|
const whole = alive.relistTaken();
|
|
1225
1263
|
listChanged(alive, {
|
|
1226
1264
|
replacing: whole !== null,
|
|
1227
|
-
set: whole === null ? event.entries : [...whole.values()],
|
|
1265
|
+
set: whole === null ? event.entries : [...whole.conversations.values()],
|
|
1266
|
+
agents: whole === null ? event.agents : [...whole.agents.values()],
|
|
1228
1267
|
gone: null,
|
|
1229
1268
|
...(event.more ? { paged: true } : { cursor: event.cursor }),
|
|
1230
1269
|
});
|
|
1231
1270
|
return;
|
|
1232
1271
|
}
|
|
1233
1272
|
if (event.kind === 'listed') {
|
|
1234
|
-
alive.relistHeard([event.entry]);
|
|
1235
|
-
listChanged(alive, { replacing: false, set: [event.entry], gone: null });
|
|
1273
|
+
alive.relistHeard([event.entry], []);
|
|
1274
|
+
listChanged(alive, { replacing: false, set: [event.entry], agents: [], gone: null });
|
|
1275
|
+
return;
|
|
1276
|
+
}
|
|
1277
|
+
if (event.kind === 'agent') {
|
|
1278
|
+
alive.relistHeard([], [event.agent]);
|
|
1279
|
+
listChanged(alive, { replacing: false, set: [], agents: [event.agent], gone: null });
|
|
1236
1280
|
return;
|
|
1237
1281
|
}
|
|
1238
1282
|
if (event.kind === 'unlisted') {
|
|
1239
1283
|
alive.relistDropped(event.conversation);
|
|
1240
|
-
listChanged(alive, { replacing: false, set: [], gone: event.conversation });
|
|
1284
|
+
listChanged(alive, { replacing: false, set: [], agents: [], gone: event.conversation });
|
|
1241
1285
|
return;
|
|
1242
1286
|
}
|
|
1243
1287
|
heard(alive, event);
|
package/dist/declaration.js
CHANGED
|
@@ -8,7 +8,7 @@ export function sameDeclaration(left, right) {
|
|
|
8
8
|
}
|
|
9
9
|
export function writeRule({ operations, providerOwnedPaths, authoredPaths, }, pathRule, local) {
|
|
10
10
|
return (path, needs) => {
|
|
11
|
-
const normalized = normalize(path);
|
|
11
|
+
const normalized = normalize(path.normalize('NFC'));
|
|
12
12
|
if (normalized === null || normalized === '')
|
|
13
13
|
return { code: 'room-root', path };
|
|
14
14
|
if (covered(providerOwnedPaths, normalized) || !authoredAt(authoredPaths, normalized)) {
|
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>;
|
|
9
|
-
export declare function
|
|
10
|
+
export declare function zoned(runtime: Runtime, local: RuntimeStore, zone: string | null): Promise<void>;
|
|
11
|
+
export declare function discoverRooms(runtime: Runtime, 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,
|
|
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,CAgDpC;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,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,GAAG,IAAI,GACtB,OAAO,CAAC,SAAS,cAAc,EAAE,GAAG,IAAI,CAAC,CA2E3C"}
|