@agentshouse/mdruntime 0.1.0-c714ba876473f → 0.1.0-c717ee8bf7934
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 +32 -3
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +62 -19
- package/dist/adapter.d.ts +201 -28
- 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/{binary.d.ts → attachment.d.ts} +8 -4
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.js +15 -0
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +345 -0
- package/dist/chain.d.ts +1 -1
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +5 -2
- 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 +24 -8
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +26 -56
- 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 +73 -42
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +18 -8
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +19 -9
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +18 -8
- package/dist/conversation-row.d.ts +23 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +37 -8
- package/dist/conversation.d.ts +26 -12
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +237 -193
- package/dist/declaration.js +3 -3
- 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 +2 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +26 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +126 -36
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +3 -1
- package/dist/figures.d.ts +1 -1
- package/dist/figures.d.ts.map +1 -1
- package/dist/figures.js +6 -4
- 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 +7 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +71 -29
- package/dist/house-query.d.ts +24 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +102 -0
- package/dist/identity.d.ts +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/index.d.ts +21 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -5
- 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 +40 -25
- package/dist/linked-file.d.ts +7 -0
- package/dist/linked-file.d.ts.map +1 -0
- package/dist/linked-file.js +16 -0
- 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 +181 -34
- package/dist/memory.d.ts +7 -3
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +64 -23
- package/dist/messages.d.ts +21 -3
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +43 -13
- 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 +10 -7
- 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 +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/opened.d.ts +5 -5
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +2 -2
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +20 -2
- package/dist/outcome.d.ts +30 -13
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +21 -6
- package/dist/overlay.d.ts +20 -9
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +110 -41
- package/dist/parts.d.ts +4 -1
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +30 -7
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +1 -1
- 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 +115 -67
- package/dist/query.d.ts +2 -2
- package/dist/query.d.ts.map +1 -1
- 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 +1 -1
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +55 -23
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +140 -25
- package/dist/react.d.ts +12 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/readiness.d.ts +23 -4
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +18 -10
- package/dist/reads.d.ts +1 -1
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +17 -6
- package/dist/recovery.d.ts +1 -0
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +2 -1
- package/dist/refresh.d.ts +1 -1
- package/dist/refresh.js +4 -4
- package/dist/replica.d.ts +3 -8
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +5 -5
- package/dist/room-draft.d.ts +29 -4
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +239 -18
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +12 -7
- package/dist/room-list.d.ts +10 -0
- package/dist/room-list.d.ts.map +1 -0
- package/dist/room-list.js +47 -0
- package/dist/rows.d.ts +11 -3
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +25 -11
- package/dist/run-tables.d.ts +25 -0
- package/dist/run-tables.d.ts.map +1 -0
- package/dist/run-tables.js +98 -0
- package/dist/running.d.ts +5 -0
- package/dist/running.d.ts.map +1 -0
- package/dist/running.js +10 -0
- package/dist/runs.d.ts +27 -0
- package/dist/runs.d.ts.map +1 -0
- package/dist/runs.js +92 -0
- package/dist/runtime.d.ts +7 -3
- 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 +31 -96
- package/dist/saves.d.ts +7 -5
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +109 -55
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +2 -2
- package/dist/selector.d.ts +3 -0
- package/dist/selector.d.ts.map +1 -0
- package/dist/selector.js +22 -0
- package/dist/shown.d.ts +6 -3
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +90 -53
- 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 +4 -1
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +8 -0
- package/dist/source.d.ts +42 -0
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +76 -9
- 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 +30 -9
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +70 -27
- 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 +15 -10
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +12 -5
- package/dist/stored.d.ts +41 -16
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +215 -57
- package/dist/surface.d.ts +19 -7
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +57 -19
- 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 +40 -52
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +109 -326
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +3 -4
- 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 +30 -14
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +19 -13
- package/package.json +4 -4
- package/dist/binary.d.ts.map +0 -1
- package/dist/binary.js +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../src/selector.ts"],"names":[],"mappings":"AAaA,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,GACtC,OAAO,CAET;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,OAAO,EAAE,CAOnF"}
|
package/dist/selector.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function rewrittenAt(value, members, rewrite) {
|
|
2
|
+
if (Array.isArray(value))
|
|
3
|
+
return value.map((one) => rewrittenAt(one, members, rewrite));
|
|
4
|
+
const [member, ...rest] = members;
|
|
5
|
+
if (member === undefined)
|
|
6
|
+
return rewrite(value);
|
|
7
|
+
if (value === null || typeof value !== 'object' || !Object.hasOwn(value, member))
|
|
8
|
+
return value;
|
|
9
|
+
const held = value;
|
|
10
|
+
return { ...held, [member]: rewrittenAt(held[member], rest, rewrite) };
|
|
11
|
+
}
|
|
12
|
+
export function selectorRewritten(value, selector, rewrite) {
|
|
13
|
+
return rewrittenAt(value, selector.split('.'), rewrite);
|
|
14
|
+
}
|
|
15
|
+
export function selectorValues(value, selector) {
|
|
16
|
+
const selected = [];
|
|
17
|
+
selectorRewritten(value, selector, (one) => {
|
|
18
|
+
selected.push(one);
|
|
19
|
+
return one;
|
|
20
|
+
});
|
|
21
|
+
return selected;
|
|
22
|
+
}
|
package/dist/shown.d.ts
CHANGED
|
@@ -10,20 +10,23 @@ export declare const REFUSAL_TOPIC = "connection-refusal";
|
|
|
10
10
|
export declare const STORAGE_LOSS_TOPIC = "storage-loss";
|
|
11
11
|
export declare const SERVICE_MODE_TOPIC = "service-mode";
|
|
12
12
|
export declare const MEMBER_TOPIC = "member";
|
|
13
|
+
export declare const TIME_ZONE_TOPIC = "time-zone";
|
|
13
14
|
export declare const AUTHORITY_TOPIC = "authority-changes";
|
|
14
15
|
export declare const LOCKS_TOPIC = "locks";
|
|
15
16
|
export declare const queueTopic: (locator: string) => string;
|
|
16
|
-
export declare function recoverReads({ liveQueries, figures }: Runtime): void;
|
|
17
|
+
export declare function recoverReads({ liveQueries, figures }: Runtime, locators?: readonly string[]): void;
|
|
17
18
|
export declare function emitRooms(runtime: Runtime, changed?: readonly string[]): Promise<void>;
|
|
18
19
|
export declare function emitKnownRooms(runtime: Runtime): void;
|
|
19
20
|
export declare function emitRefusal(runtime: Runtime): void;
|
|
20
|
-
export declare function
|
|
21
|
+
export declare function storageLossNow({ store }: Runtime): string | null;
|
|
22
|
+
export declare function emitStorageLoss(runtime: Runtime): void;
|
|
21
23
|
export declare function emitMember({ store }: Runtime, member: Member | null): void;
|
|
24
|
+
export declare function emitTimeZone({ store }: Runtime, zone: string | null): void;
|
|
22
25
|
export declare function show(runtime: Runtime): Promise<void>;
|
|
23
26
|
export declare function moveTo(runtime: Runtime, next: Moving): Promise<void>;
|
|
24
27
|
export declare function statusShown(runtime: Runtime): Promise<void>;
|
|
25
28
|
export declare function transferring({ socket }: Runtime): Moving;
|
|
26
|
-
export declare function pendingShown(runtime: Runtime): Promise<void>;
|
|
29
|
+
export declare function pendingShown(runtime: Runtime, locator: string): Promise<void>;
|
|
27
30
|
export declare function entriesOf(runtime: Runtime, locator: string): Promise<readonly QueueEntry[]>;
|
|
28
31
|
export declare function publishChangeSet(runtime: Runtime, set: ChangeSet): Promise<void>;
|
|
29
32
|
export declare function submissionDue(runtime: Runtime, locators?: readonly string[]): Promise<void>;
|
package/dist/shown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shown.d.ts","sourceRoot":"","sources":["../src/shown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc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CACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,GAAG,IAAI,EAC9B,IAAI,GAAE,IAAqC,iBAkC5C"}
|
package/dist/shown.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { changeSet, mergeChangeSets } from './change-set.js';
|
|
2
2
|
import { conversationsChanged, conversationsLearned } from './conversation.js';
|
|
3
|
-
import {
|
|
3
|
+
import { lossStated } from './durability.js';
|
|
4
|
+
import { listedEntries, listingNow, shownChange, shownRooms } from './listing.js';
|
|
4
5
|
import { emitPresentation, publishRoomDrafts } from './room-drafts.js';
|
|
5
6
|
import { same } from './status.js';
|
|
6
7
|
export const ROOMS_TOPIC = 'rooms';
|
|
@@ -9,11 +10,20 @@ export const REFUSAL_TOPIC = 'connection-refusal';
|
|
|
9
10
|
export const STORAGE_LOSS_TOPIC = 'storage-loss';
|
|
10
11
|
export const SERVICE_MODE_TOPIC = 'service-mode';
|
|
11
12
|
export const MEMBER_TOPIC = 'member';
|
|
13
|
+
export const TIME_ZONE_TOPIC = 'time-zone';
|
|
12
14
|
export const AUTHORITY_TOPIC = 'authority-changes';
|
|
13
15
|
export const LOCKS_TOPIC = 'locks';
|
|
14
16
|
export const queueTopic = (locator) => `queue\u0000${locator}`;
|
|
15
|
-
async function attended({ store,
|
|
16
|
-
const held =
|
|
17
|
+
async function attended({ store, socket, savesLocally }) {
|
|
18
|
+
const held = store.needed()
|
|
19
|
+
? await store.status()
|
|
20
|
+
: {
|
|
21
|
+
queued: [],
|
|
22
|
+
lastCompleted: socket.session.now().lastCompleted,
|
|
23
|
+
unsent: [],
|
|
24
|
+
resets: [],
|
|
25
|
+
returned: [],
|
|
26
|
+
};
|
|
17
27
|
const attentionRequired = held.returned.flatMap((record) => record.returned === null
|
|
18
28
|
? []
|
|
19
29
|
: [{ room: record.locator, path: record.path, returned: structuredClone(record.returned) }]);
|
|
@@ -25,31 +35,30 @@ async function attended({ store, localSaves }) {
|
|
|
25
35
|
return 0;
|
|
26
36
|
});
|
|
27
37
|
const changed = new Map();
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
for (const change of held.unsent)
|
|
39
|
+
if (!savesLocally(change.room))
|
|
30
40
|
changed.set(`${change.room}\u0000${change.path}`, change);
|
|
31
|
-
}
|
|
32
41
|
const unsent = [...changed]
|
|
33
42
|
.sort(([left], [right]) => (left < right ? -1 : left > right ? 1 : 0))
|
|
34
43
|
.map(([, change]) => change);
|
|
35
44
|
return {
|
|
36
|
-
queued:
|
|
45
|
+
queued: held.queued.some((locator) => !savesLocally(locator)),
|
|
37
46
|
lastCompleted: held.lastCompleted,
|
|
38
47
|
attentionRequired,
|
|
39
48
|
unsent,
|
|
40
49
|
reset: held.resets.reduce((earliest, { reset }) => (earliest !== null && earliest <= reset ? earliest : reset), null),
|
|
41
50
|
};
|
|
42
51
|
}
|
|
43
|
-
async function queuedWork({ store,
|
|
44
|
-
return
|
|
52
|
+
async function queuedWork({ store, savesLocally }) {
|
|
53
|
+
return store.needed() && (await store.queued()).some((locator) => !savesLocally(locator));
|
|
45
54
|
}
|
|
46
|
-
export function recoverReads({ liveQueries, figures }) {
|
|
47
|
-
liveQueries.recover();
|
|
55
|
+
export function recoverReads({ liveQueries, figures }, locators) {
|
|
56
|
+
liveQueries.recover(locators);
|
|
48
57
|
figures.recover();
|
|
49
58
|
}
|
|
50
59
|
export function emitRooms(runtime, changed) {
|
|
51
|
-
recoverReads(runtime);
|
|
52
|
-
runtime.store.readiness.queue();
|
|
60
|
+
recoverReads(runtime, changed);
|
|
61
|
+
runtime.store.readiness.queue(changed);
|
|
53
62
|
return changed === undefined
|
|
54
63
|
? publishRooms(runtime, 'all')
|
|
55
64
|
: publishRooms(runtime, 'changed', changed);
|
|
@@ -74,51 +83,58 @@ function roomsOwedWith(held, mode, touched) {
|
|
|
74
83
|
}
|
|
75
84
|
return held;
|
|
76
85
|
}
|
|
86
|
+
async function patchedRooms(runtime, owed) {
|
|
87
|
+
const { store } = runtime;
|
|
88
|
+
const touched = [...new Set([...owed.changed, ...owed.counted])];
|
|
89
|
+
const entries = await listedEntries(runtime, touched);
|
|
90
|
+
const shown = store.roomsShown.now();
|
|
91
|
+
if (entries === null || shown === null)
|
|
92
|
+
return false;
|
|
93
|
+
if (runtime.socket.closed())
|
|
94
|
+
return true;
|
|
95
|
+
const moved = entries.filter(({ locator, documents }) => owed.changed.has(locator) || shown.get(locator)?.documents !== documents);
|
|
96
|
+
const counted = moved.flatMap(({ locator }) => (owed.changed.has(locator) ? [] : [locator]));
|
|
97
|
+
if (counted.length > 0) {
|
|
98
|
+
recoverReads(runtime, counted);
|
|
99
|
+
store.readiness.queue(counted);
|
|
100
|
+
}
|
|
101
|
+
store.roomsShown.patch(moved);
|
|
102
|
+
if (moved.length === 0)
|
|
103
|
+
return true;
|
|
104
|
+
const change = shownChange(runtime, moved);
|
|
105
|
+
for (const watcher of store.watching(ROOMS_TOPIC, 'ready'))
|
|
106
|
+
watcher.answer(change);
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
77
109
|
async function deliverRooms(runtime, owed) {
|
|
78
110
|
const { store, socket } = runtime;
|
|
79
111
|
const waiting = () => store.watching(ROOMS_TOPIC, 'waiting');
|
|
80
112
|
if (socket.closed() || store.watching(ROOMS_TOPIC).length === 0)
|
|
81
113
|
return;
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if (
|
|
114
|
+
const touched = owed.changed.size > 0 || owed.counted.size > 0;
|
|
115
|
+
if (!owed.all && touched && waiting().length === 0 && (await patchedRooms(runtime, owed)))
|
|
116
|
+
return;
|
|
117
|
+
if (touched)
|
|
86
118
|
owed.all = true;
|
|
87
|
-
|
|
88
|
-
const held = await store.covering();
|
|
89
|
-
const { roomsShown } = store.device.now();
|
|
90
|
-
owed.all = [...owed.counted].some((locator) => held.rooms.has(locator) &&
|
|
91
|
-
roomsShown?.get(locator)?.documents !== held.rooms.get(locator).documents);
|
|
92
|
-
if (owed.all) {
|
|
93
|
-
recoverReads(runtime);
|
|
94
|
-
store.readiness.queue();
|
|
95
|
-
}
|
|
96
|
-
else if (waiting().length === 0)
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
const listing = patched ?? (await listingNow(runtime));
|
|
119
|
+
const listing = await listingNow(runtime);
|
|
100
120
|
if (socket.closed())
|
|
101
121
|
return;
|
|
102
122
|
const { roomsListed, refusal, moving } = socket.session.now();
|
|
103
123
|
const joining = waiting().length > 0 &&
|
|
104
124
|
(roomsListed || listing.size > 0 || refusal !== null || moving.providerUnreachable);
|
|
105
|
-
if (!owed.all &&
|
|
125
|
+
if (!owed.all && !joining)
|
|
106
126
|
return;
|
|
107
127
|
const value = shownRooms(runtime, listing);
|
|
108
|
-
const
|
|
128
|
+
const shown = store.roomsShown.now();
|
|
109
129
|
const moved = owed.all ||
|
|
110
|
-
|
|
111
|
-
(roomsShown !== null &&
|
|
112
|
-
JSON.stringify(shownRooms(runtime, roomsShown)) !== JSON.stringify(value));
|
|
130
|
+
(shown !== null && JSON.stringify(shownRooms(runtime, shown)) !== JSON.stringify(value));
|
|
113
131
|
if (moved)
|
|
114
132
|
for (const watcher of store.watching(ROOMS_TOPIC, 'ready'))
|
|
115
133
|
watcher.answer(value);
|
|
116
134
|
if (joining)
|
|
117
135
|
for (const watcher of waiting())
|
|
118
136
|
watcher.answer(value);
|
|
119
|
-
store.
|
|
120
|
-
roomsShown: store.watching(ROOMS_TOPIC, 'ready').length === 0 ? null : listing,
|
|
121
|
-
});
|
|
137
|
+
store.roomsShown.show(store.watching(ROOMS_TOPIC, 'ready').length === 0 ? null : listing);
|
|
122
138
|
}
|
|
123
139
|
function publishRooms(runtime, mode, touched = []) {
|
|
124
140
|
if (runtime.socket.closed())
|
|
@@ -127,17 +143,24 @@ function publishRooms(runtime, mode, touched = []) {
|
|
|
127
143
|
}
|
|
128
144
|
export function emitRefusal(runtime) {
|
|
129
145
|
const { store, socket } = runtime;
|
|
130
|
-
store.readiness.queue();
|
|
146
|
+
store.readiness.queue([]);
|
|
131
147
|
store.tell(REFUSAL_TOPIC, socket.session.now().refusal);
|
|
132
148
|
emitKnownRooms(runtime);
|
|
133
149
|
}
|
|
134
|
-
export function
|
|
135
|
-
store.
|
|
136
|
-
|
|
150
|
+
export function storageLossNow({ store }) {
|
|
151
|
+
const { persistence, storageLoss } = store.device.now();
|
|
152
|
+
return lossStated(persistence, storageLoss);
|
|
153
|
+
}
|
|
154
|
+
export function emitStorageLoss(runtime) {
|
|
155
|
+
runtime.store.readiness.queue([]);
|
|
156
|
+
runtime.store.tell(STORAGE_LOSS_TOPIC, storageLossNow(runtime));
|
|
137
157
|
}
|
|
138
158
|
export function emitMember({ store }, member) {
|
|
139
159
|
store.tell(MEMBER_TOPIC, member);
|
|
140
160
|
}
|
|
161
|
+
export function emitTimeZone({ store }, zone) {
|
|
162
|
+
store.tell(TIME_ZONE_TOPIC, zone);
|
|
163
|
+
}
|
|
141
164
|
async function deliverStatus(runtime, owed) {
|
|
142
165
|
const { store, socket } = runtime;
|
|
143
166
|
const held = await attended(runtime);
|
|
@@ -159,13 +182,16 @@ async function deliverStatus(runtime, owed) {
|
|
|
159
182
|
store.tell(STATUS_TOPIC, next);
|
|
160
183
|
}
|
|
161
184
|
}
|
|
185
|
+
function conversationsCurrent({ conversations }) {
|
|
186
|
+
return conversations.listed() && conversations.current();
|
|
187
|
+
}
|
|
162
188
|
export function show(runtime) {
|
|
163
|
-
const { store, socket
|
|
189
|
+
const { store, socket } = runtime;
|
|
164
190
|
if (socket.closed())
|
|
165
191
|
return Promise.resolve();
|
|
166
|
-
store.readiness.queue();
|
|
192
|
+
store.readiness.queue([]);
|
|
167
193
|
emitKnownRooms(runtime);
|
|
168
|
-
const moved = { moving: socket.session.now().moving, current:
|
|
194
|
+
const moved = { moving: socket.session.now().moving, current: conversationsCurrent(runtime) };
|
|
169
195
|
return store.owing(STATUS_TOPIC, (held) => {
|
|
170
196
|
if (held === undefined)
|
|
171
197
|
return [moved];
|
|
@@ -185,22 +211,24 @@ export function statusShown(runtime) {
|
|
|
185
211
|
export function transferring({ socket }) {
|
|
186
212
|
return { ...socket.session.now().moving, state: 'syncing', resting: false };
|
|
187
213
|
}
|
|
188
|
-
export function pendingShown(runtime) {
|
|
189
|
-
const { socket
|
|
214
|
+
export function pendingShown(runtime, locator) {
|
|
215
|
+
const { socket } = runtime;
|
|
216
|
+
const localSaves = runtime.savesLocally(locator);
|
|
190
217
|
if (!localSaves)
|
|
191
218
|
socket.session.set({ recorded: false });
|
|
192
219
|
const { moving } = socket.session.now();
|
|
193
220
|
return moveTo(runtime, localSaves ? moving : { ...moving, state: 'pending', resting: false });
|
|
194
221
|
}
|
|
195
|
-
function entryOf(
|
|
196
|
-
if (
|
|
222
|
+
function entryOf(local, states, batch) {
|
|
223
|
+
if (local)
|
|
197
224
|
return Object.freeze({ batch, state: 'local' });
|
|
198
225
|
const state = states.get(batch.id);
|
|
199
226
|
return Object.freeze({ batch, ...(state?.submission ?? { state: 'waiting' }) });
|
|
200
227
|
}
|
|
201
228
|
export async function entriesOf(runtime, locator) {
|
|
202
229
|
const { queue, states } = await runtime.store.work(locator);
|
|
203
|
-
|
|
230
|
+
const local = runtime.savesLocally(locator);
|
|
231
|
+
return queue.map((batch) => entryOf(local, states, batch));
|
|
204
232
|
}
|
|
205
233
|
function emitQueue(runtime, locator) {
|
|
206
234
|
const { store, socket } = runtime;
|
|
@@ -247,6 +275,8 @@ export function publishChangeSet(runtime, set) {
|
|
|
247
275
|
}
|
|
248
276
|
export async function submissionDue(runtime, locators) {
|
|
249
277
|
const { store } = runtime;
|
|
278
|
+
if (!store.needed())
|
|
279
|
+
return;
|
|
250
280
|
const due = (await store.queued()).filter((locator) => locators === undefined || locators.includes(locator));
|
|
251
281
|
if (due.length === 0)
|
|
252
282
|
return;
|
|
@@ -254,14 +284,18 @@ export async function submissionDue(runtime, locators) {
|
|
|
254
284
|
}
|
|
255
285
|
export function roomUnreadable(runtime, locator) {
|
|
256
286
|
runtime.presence.refused(locator, null);
|
|
257
|
-
emitRooms(runtime);
|
|
287
|
+
emitRooms(runtime, [locator]);
|
|
258
288
|
}
|
|
259
289
|
export async function rest(runtime, progress, live = () => !runtime.socket.closed()) {
|
|
260
290
|
const { store, socket, presence } = runtime;
|
|
261
291
|
const { session, lanes } = socket;
|
|
262
292
|
if (!live())
|
|
263
293
|
return;
|
|
264
|
-
const settled = () => session.now().complete &&
|
|
294
|
+
const settled = () => session.now().complete &&
|
|
295
|
+
lanes.roomWork() === 0 &&
|
|
296
|
+
!socket.naming() &&
|
|
297
|
+
presence.settled() &&
|
|
298
|
+
conversationsCurrent(runtime);
|
|
265
299
|
let synced = settled();
|
|
266
300
|
if (synced && !session.now().recorded) {
|
|
267
301
|
const queued = await queuedWork(runtime).catch(() => true);
|
|
@@ -272,7 +306,10 @@ export async function rest(runtime, progress, live = () => !runtime.socket.close
|
|
|
272
306
|
if (synced && !session.now().recorded) {
|
|
273
307
|
const completedAt = new Date().toISOString();
|
|
274
308
|
try {
|
|
275
|
-
|
|
309
|
+
if (store.needed())
|
|
310
|
+
await (await store.open()).fact('lastCompleted', completedAt);
|
|
311
|
+
else
|
|
312
|
+
session.set({ lastCompleted: completedAt });
|
|
276
313
|
if (!live())
|
|
277
314
|
return;
|
|
278
315
|
session.set({ recorded: true });
|
package/dist/socket/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Authorization, ProviderRefusal, ServiceMode } from '../adapter.js';
|
|
1
|
+
import type { Authorization, Discovery, ProviderRefusal, QueriedRoom, ServiceMode } from '../adapter.js';
|
|
2
2
|
import { type Cell } from '../cell.js';
|
|
3
3
|
import type { Open } from '../open.js';
|
|
4
4
|
import type { CycleProgress, SyncStatus } from '../status.js';
|
|
@@ -23,6 +23,9 @@ export type Session = {
|
|
|
23
23
|
readonly discoveries: number;
|
|
24
24
|
readonly roomsNamed: boolean;
|
|
25
25
|
readonly roomsListed: boolean;
|
|
26
|
+
readonly queriesOnly: readonly QueriedRoom[];
|
|
27
|
+
readonly unstored: Discovery | null;
|
|
28
|
+
readonly lastCompleted: string | null;
|
|
26
29
|
readonly serviceMode: ServiceMode;
|
|
27
30
|
readonly haltedRefusal: boolean;
|
|
28
31
|
readonly openSignals: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/socket/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/socket/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,eAAe,EACf,WAAW,EACX,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,4BAA4B,GAAG,uBAAuB,CAAC;AAEnF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,sBAAsB,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,SAAS,WAAW,EAAE,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;CACzC,CAAC;AAEF,wBAAgB,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAwBrF"}
|
package/dist/socket/session.js
CHANGED
package/dist/socket.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Adapter, Authorization, ConversationEvent, Discovery, HeldRoom, RoomStreamEvent, ServiceMode } from './adapter.js';
|
|
1
|
+
import type { Adapter, Authorization, ConversationEvent, Discovery, HeldRoom, RoomStreamEvent, RunEvent, ServiceMode } from './adapter.js';
|
|
2
2
|
import type { Reads } from './bootstrap.js';
|
|
3
3
|
import type { Cell } from './cell.js';
|
|
4
4
|
import type { Retries } from './retried.js';
|
|
@@ -30,7 +30,9 @@ export type RuntimeSocket = Admission & Answers & {
|
|
|
30
30
|
readonly ready: Promise<void>;
|
|
31
31
|
readonly firstDiscovery: Promise<void>;
|
|
32
32
|
conversations(): Adapter['conversations'];
|
|
33
|
+
runs(): Adapter['runs'];
|
|
33
34
|
search(): Adapter['search'];
|
|
35
|
+
queryHouse(): Adapter['queryHouse'];
|
|
34
36
|
discover(authorized: Authorization): ReturnType<NonNullable<Adapter['discover']>> | undefined;
|
|
35
37
|
follows: Adapter['follows'];
|
|
36
38
|
mutate: Adapter['mutate'];
|
|
@@ -42,6 +44,7 @@ export type RuntimeSocket = Admission & Answers & {
|
|
|
42
44
|
authorize(): Promise<void>;
|
|
43
45
|
observe(listen: (event: SocketEvent) => void): void;
|
|
44
46
|
observeConversations(listen: (event: ConversationEvent) => void): void;
|
|
47
|
+
observeRuns(listen: (event: RunEvent) => void): void;
|
|
45
48
|
observeServiceMode(listen: (mode: ServiceMode) => void): void;
|
|
46
49
|
close(): void;
|
|
47
50
|
readyFromStore(): void;
|
package/dist/socket.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../src/socket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,eAAe,EACf,WAAW,EACZ,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,u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,CAAC;IAC3B,KAAK,IAAI,IAAI,CAAC;IACd,UAAU,IAAI,IAAI,CAAC;IACnB,SAAS,IAAI,IAAI,CAAC;CACnB,CAAC;AAEJ,wBAAgB,YAAY,CAC1B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aAAa,GAAG,SAAS,GACvC,aAAa,CAgKf"}
|
package/dist/socket.js
CHANGED
|
@@ -18,6 +18,7 @@ export function createSocket(adapter, retries, authorization) {
|
|
|
18
18
|
});
|
|
19
19
|
let withdrawStream;
|
|
20
20
|
let withdrawConversations;
|
|
21
|
+
let withdrawRuns;
|
|
21
22
|
let withdrawServiceMode;
|
|
22
23
|
let socketOpen = false;
|
|
23
24
|
let announced = false;
|
|
@@ -76,7 +77,9 @@ export function createSocket(adapter, retries, authorization) {
|
|
|
76
77
|
ready,
|
|
77
78
|
firstDiscovery,
|
|
78
79
|
conversations: () => adapter.conversations,
|
|
80
|
+
runs: () => adapter.runs,
|
|
79
81
|
search: () => adapter.search,
|
|
82
|
+
queryHouse: () => adapter.queryHouse,
|
|
80
83
|
discover: (authorized) => adapter.discover?.(authorized),
|
|
81
84
|
follows: (locator, roomVersion, next) => adapter.follows(locator, roomVersion, next),
|
|
82
85
|
mutate: (authorized, request, keepUpload) => adapter.mutate(authorized, request, keepUpload),
|
|
@@ -106,6 +109,9 @@ export function createSocket(adapter, retries, authorization) {
|
|
|
106
109
|
return;
|
|
107
110
|
withdrawConversations = stream.observe(listen);
|
|
108
111
|
},
|
|
112
|
+
observeRuns(listen) {
|
|
113
|
+
withdrawRuns = adapter.runs?.observe(listen);
|
|
114
|
+
},
|
|
109
115
|
observeServiceMode(listen) {
|
|
110
116
|
withdrawServiceMode = adapter.serviceMode?.observe(listen);
|
|
111
117
|
},
|
|
@@ -116,6 +122,8 @@ export function createSocket(adapter, retries, authorization) {
|
|
|
116
122
|
withdrawStream = undefined;
|
|
117
123
|
withdrawConversations?.();
|
|
118
124
|
withdrawConversations = undefined;
|
|
125
|
+
withdrawRuns?.();
|
|
126
|
+
withdrawRuns = undefined;
|
|
119
127
|
withdrawServiceMode?.();
|
|
120
128
|
},
|
|
121
129
|
readyFromStore: () => readyFromStore(),
|
package/dist/source.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type RequestAnswer = 'at_once' | 'ask_me' | 'off';
|
|
1
2
|
export type HouseSource = {
|
|
2
3
|
readonly kind: 'request';
|
|
3
4
|
readonly request: string;
|
|
@@ -8,9 +9,18 @@ export type HouseSource = {
|
|
|
8
9
|
};
|
|
9
10
|
readonly room: {
|
|
10
11
|
readonly ref: string;
|
|
12
|
+
readonly handle: string;
|
|
11
13
|
readonly name: string;
|
|
12
14
|
};
|
|
15
|
+
readonly sent: string;
|
|
16
|
+
readonly instruction: string | null;
|
|
17
|
+
readonly answer: RequestAnswer | null;
|
|
13
18
|
readonly approved: string | null;
|
|
19
|
+
readonly trigger: RequestTrigger | null;
|
|
20
|
+
readonly document: RequestDocument | null;
|
|
21
|
+
readonly houseLines: string | null;
|
|
22
|
+
readonly brief: string | null;
|
|
23
|
+
readonly parts: readonly RequestPart[] | null;
|
|
14
24
|
} | {
|
|
15
25
|
readonly kind: 'mail';
|
|
16
26
|
readonly request: string;
|
|
@@ -39,6 +49,23 @@ export type HouseSource = {
|
|
|
39
49
|
readonly kind: 'declined';
|
|
40
50
|
readonly agent: string;
|
|
41
51
|
readonly owner: string;
|
|
52
|
+
} | {
|
|
53
|
+
readonly kind: 'restart';
|
|
54
|
+
} | {
|
|
55
|
+
readonly kind: 'instructions_proposal';
|
|
56
|
+
readonly proposal: string;
|
|
57
|
+
readonly room: {
|
|
58
|
+
readonly ref: string;
|
|
59
|
+
readonly handle: string;
|
|
60
|
+
readonly name: string;
|
|
61
|
+
};
|
|
62
|
+
readonly text: string;
|
|
63
|
+
readonly baseVersion: number | null;
|
|
64
|
+
readonly state: ProposalState | null;
|
|
65
|
+
} | {
|
|
66
|
+
readonly kind: 'milestone';
|
|
67
|
+
} | {
|
|
68
|
+
readonly kind: 'not_saved';
|
|
42
69
|
};
|
|
43
70
|
export type ChatRequest = {
|
|
44
71
|
readonly request: string;
|
|
@@ -49,6 +76,21 @@ type RequestAgentFunction = {
|
|
|
49
76
|
readonly name: string;
|
|
50
77
|
readonly version: number;
|
|
51
78
|
};
|
|
79
|
+
export type RequestTrigger = {
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly description: string;
|
|
82
|
+
};
|
|
83
|
+
export type RequestDocument = {
|
|
84
|
+
readonly reference: string | null;
|
|
85
|
+
readonly path: string;
|
|
86
|
+
readonly name: string;
|
|
87
|
+
};
|
|
88
|
+
export type RequestPart = {
|
|
89
|
+
readonly heading: string;
|
|
90
|
+
readonly text: string;
|
|
91
|
+
};
|
|
92
|
+
declare const PROPOSAL_STATES: readonly ['waiting', 'sent', 'accepted', 'not_taken'];
|
|
93
|
+
export type ProposalState = (typeof PROPOSAL_STATES)[number];
|
|
52
94
|
export declare function sourceOf(value: unknown, sender: string | null): HouseSource | null;
|
|
53
95
|
export {};
|
|
54
96
|
//# sourceMappingURL=source.d.ts.map
|
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GACnB;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACpD,QAAQ,CAAC,SAAS,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC;IACtE,QAAQ,CAAC,IAAI,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,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