@agentshouse/mdruntime 0.1.0-c49444f2a8fc6 → 0.1.0-c4c5934c45f21
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 +8 -8
- package/dist/acceptance.d.ts +3 -0
- package/dist/acceptance.d.ts.map +1 -0
- package/dist/acceptance.js +308 -0
- package/dist/act-lanes.d.ts +33 -0
- package/dist/act-lanes.d.ts.map +1 -0
- package/dist/act-lanes.js +177 -0
- package/dist/actions.d.ts +20 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +251 -0
- package/dist/adapter.d.ts +31 -44
- package/dist/adapter.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +1 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +6 -18
- package/dist/cell.d.ts +6 -0
- package/dist/cell.d.ts.map +1 -0
- package/dist/cell.js +9 -0
- package/dist/change-set.d.ts +4 -0
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +6 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +4 -2
- package/dist/chat-types.d.ts +5 -0
- package/dist/chat-types.d.ts.map +1 -0
- package/dist/chat-types.js +13 -0
- package/dist/client.d.ts +19 -13
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -14
- package/dist/collection.d.ts +22 -4
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +12 -2
- package/dist/compile.d.ts +5 -0
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +200 -75
- package/dist/connection.d.ts +5 -143
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +104 -5308
- package/dist/conversation-live.d.ts +136 -0
- package/dist/conversation-live.d.ts.map +1 -0
- package/dist/conversation-live.js +249 -0
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +7 -1
- package/dist/conversation.d.ts +43 -44
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +906 -1024
- package/dist/declaration.d.ts +10 -0
- package/dist/declaration.d.ts.map +1 -0
- package/dist/declaration.js +24 -0
- package/dist/discovery.d.ts +10 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +148 -0
- package/dist/durability.d.ts +9 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/expectation.d.ts +4 -2
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +33 -11
- package/dist/failure.d.ts +1 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +3 -0
- package/dist/figures.d.ts +49 -0
- package/dist/figures.d.ts.map +1 -0
- package/dist/figures.js +197 -0
- package/dist/holdings.d.ts +29 -0
- package/dist/holdings.d.ts.map +1 -0
- package/dist/holdings.js +95 -0
- package/dist/host.d.ts +18 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +45 -12
- package/dist/index.d.ts +22 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/install.d.ts +54 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +538 -0
- package/dist/lifecycle.d.ts +7 -0
- package/dist/lifecycle.d.ts.map +1 -0
- package/dist/lifecycle.js +272 -0
- package/dist/listing.d.ts +48 -0
- package/dist/listing.d.ts.map +1 -0
- package/dist/listing.js +139 -0
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +3 -3
- package/dist/locks.d.ts +7 -0
- package/dist/locks.d.ts.map +1 -0
- package/dist/locks.js +33 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.d.ts.map +1 -1
- package/dist/lost.d.ts +5 -0
- package/dist/lost.d.ts.map +1 -0
- package/dist/lost.js +50 -0
- package/dist/media.d.ts +1 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +4 -4
- package/dist/memory.d.ts +4 -2
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +38 -20
- package/dist/messages.d.ts +1 -4
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +14 -32
- package/dist/model.d.ts +0 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -5
- package/dist/models.d.ts +10 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +156 -0
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +12 -17
- package/dist/opened.d.ts +1 -1
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +5 -5
- package/dist/opening.d.ts +4 -0
- package/dist/opening.d.ts.map +1 -0
- package/dist/opening.js +59 -0
- package/dist/outcome.d.ts +4 -1
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +3 -0
- package/dist/overlay.d.ts +2 -1
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +32 -21
- package/dist/page-metadata.d.ts +8 -0
- package/dist/page-metadata.d.ts.map +1 -0
- package/dist/page-metadata.js +19 -0
- package/dist/parts.d.ts +3 -51
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +14 -111
- package/dist/paths.d.ts +1 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +22 -0
- package/dist/preparation.d.ts +20 -0
- package/dist/preparation.d.ts.map +1 -0
- package/dist/preparation.js +233 -0
- package/dist/presence.d.ts +52 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +220 -0
- package/dist/queries.d.ts +16 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +270 -0
- package/dist/query.d.ts +10 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/questions.d.ts +2 -0
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +5 -1
- package/dist/queue.d.ts +40 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +455 -0
- package/dist/reach.d.ts +3 -1
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +38 -8
- package/dist/react.d.ts +18 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +15 -1
- package/dist/readiness.d.ts +0 -1
- package/dist/readiness.d.ts.map +1 -1
- package/dist/reads.d.ts +37 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +174 -0
- package/dist/refresh.js +2 -2
- package/dist/refusal.d.ts +5 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +57 -0
- package/dist/replica.d.ts +5 -13
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +15 -16
- package/dist/room-draft.d.ts +4 -6
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +36 -52
- package/dist/room-drafts.d.ts +24 -0
- package/dist/room-drafts.d.ts.map +1 -0
- package/dist/room-drafts.js +217 -0
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +3 -4
- package/dist/runtime.d.ts +34 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +1 -0
- package/dist/save.d.ts +41 -86
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +232 -112
- package/dist/saves.d.ts +32 -0
- package/dist/saves.d.ts.map +1 -0
- package/dist/saves.js +413 -0
- package/dist/seed.d.ts +11 -2
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +71 -1
- package/dist/shared.d.ts +1 -6
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +13 -95
- package/dist/shown.d.ts +32 -0
- package/dist/shown.d.ts.map +1 -0
- package/dist/shown.js +290 -0
- package/dist/socket/admission.d.ts +7 -0
- package/dist/socket/admission.d.ts.map +1 -0
- package/dist/socket/admission.js +39 -0
- package/dist/socket/answers.d.ts +6 -0
- package/dist/socket/answers.d.ts.map +1 -0
- package/dist/socket/answers.js +20 -0
- package/dist/socket/lanes.d.ts +20 -0
- package/dist/socket/lanes.d.ts.map +1 -0
- package/dist/socket/lanes.js +77 -0
- package/dist/socket/reads.d.ts +10 -0
- package/dist/socket/reads.d.ts.map +1 -0
- package/dist/socket/reads.js +31 -0
- package/dist/socket/session.d.ts +38 -0
- package/dist/socket/session.d.ts.map +1 -0
- package/dist/socket/session.js +23 -0
- package/dist/socket.d.ts +67 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +170 -0
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +5 -4
- package/dist/store/installs.d.ts +30 -0
- package/dist/store/installs.d.ts.map +1 -0
- package/dist/store/installs.js +34 -0
- package/dist/store/readiness.d.ts +10 -0
- package/dist/store/readiness.d.ts.map +1 -0
- package/dist/store/readiness.js +52 -0
- package/dist/store/records.d.ts +212 -0
- package/dist/store/records.d.ts.map +1 -0
- package/dist/store/records.js +430 -0
- package/dist/store/room-held.d.ts +8 -0
- package/dist/store/room-held.d.ts.map +1 -0
- package/dist/store/room-held.js +17 -0
- package/dist/store/space.d.ts +11 -0
- package/dist/store/space.d.ts.map +1 -0
- package/dist/store/space.js +41 -0
- package/dist/store/watchers.d.ts +17 -0
- package/dist/store/watchers.d.ts.map +1 -0
- package/dist/store/watchers.js +56 -0
- package/dist/store/writes.d.ts +24 -0
- package/dist/store/writes.d.ts.map +1 -0
- package/dist/store/writes.js +125 -0
- package/dist/store.d.ts +112 -204
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +158 -394
- package/dist/stored.d.ts +1 -1
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +28 -14
- package/dist/surface.d.ts +88 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +223 -0
- package/dist/sync.d.ts +19 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +521 -0
- package/dist/tables.d.ts +32 -8
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +43 -12
- package/dist/tallies.d.ts +18 -0
- package/dist/tallies.d.ts.map +1 -0
- package/dist/tallies.js +129 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/wire.d.ts +48 -5
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +16 -3
- package/package.json +3 -2
- package/dist/attempt.d.ts +0 -16
- package/dist/attempt.d.ts.map +0 -1
- package/dist/attempt.js +0 -70
- package/dist/job.d.ts +0 -33
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IAC7B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,SAAS,EACT,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,CAC1D,GAAG;IACF,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACpD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,CAAC;AAIF,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CA2B5D"}
|
package/dist/reads.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type CallResult } from './outcome.js';
|
|
2
|
+
import type { Recovery } from './recovery.js';
|
|
3
|
+
import type { Connection, RuntimeDatabase } from './tables.js';
|
|
4
|
+
export declare const READ_TABLES: readonly string[];
|
|
5
|
+
export type ReadAt = {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly input: string;
|
|
8
|
+
readonly build: string;
|
|
9
|
+
};
|
|
10
|
+
export type ObservedRead = {
|
|
11
|
+
readonly answer: unknown;
|
|
12
|
+
readonly failure: CallResult | null;
|
|
13
|
+
readonly kept: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ReadAnswers = {
|
|
16
|
+
watch(name: string, input: unknown, deliver: (read: ObservedRead) => void): () => void;
|
|
17
|
+
again(): void;
|
|
18
|
+
reopened(): void;
|
|
19
|
+
};
|
|
20
|
+
export type ReadAnswersOptions = {
|
|
21
|
+
readonly database: RuntimeDatabase;
|
|
22
|
+
readonly build: string;
|
|
23
|
+
readonly unkept: readonly string[];
|
|
24
|
+
readonly leading: readonly string[];
|
|
25
|
+
readonly recovery: Recovery;
|
|
26
|
+
call(name: string, input: unknown): Promise<CallResult>;
|
|
27
|
+
online(): boolean;
|
|
28
|
+
streaming(): boolean;
|
|
29
|
+
closed(): boolean;
|
|
30
|
+
full(): boolean;
|
|
31
|
+
filled(): void;
|
|
32
|
+
};
|
|
33
|
+
export declare function storedRead(connection: Connection, { name, input, build }: ReadAt): string | null;
|
|
34
|
+
export declare function keptRead(connection: Connection, { name, input, build }: ReadAt, answer: string): null;
|
|
35
|
+
export declare function readsOfOtherBuildsForgotten(connection: Connection, build: string): null;
|
|
36
|
+
export declare function readAnswers(options: ReadAnswersOptions): ReadAnswers;
|
|
37
|
+
//# sourceMappingURL=reads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reads.d.ts","sourceRoot":"","sources":["../src/reads.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EAExC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IACvF,KAAK,IAAI,IAAI,CAAC;IACd,QAAQ,IAAI,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACxD,MAAM,IAAI,OAAO,CAAC;IAClB,SAAS,IAAI,OAAO,CAAC;IACrB,MAAM,IAAI,OAAO,CAAC;IAClB,IAAI,IAAI,OAAO,CAAC;IAChB,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AAeF,wBAAgB,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMhG;AAED,wBAAgB,QAAQ,CACtB,UAAU,EAAE,UAAU,EACtB,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAC9B,MAAM,EAAE,MAAM,GACb,IAAI,CAMN;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAGvF;AAMD,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,CAoJpE"}
|
package/dist/reads.js
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { refusedForSpace } from './durability.js';
|
|
2
|
+
import { uncaught } from './failure.js';
|
|
3
|
+
import { answeredResult, UNCERTAIN } from './outcome.js';
|
|
4
|
+
export const READ_TABLES = [
|
|
5
|
+
'CREATE TABLE read_answers (name TEXT NOT NULL, input TEXT NOT NULL, build TEXT NOT NULL, answer TEXT NOT NULL, PRIMARY KEY (name, input)) WITHOUT ROWID',
|
|
6
|
+
];
|
|
7
|
+
export function storedRead(connection, { name, input, build }) {
|
|
8
|
+
const [held] = connection.rows('SELECT answer FROM read_answers WHERE name = ? AND input = ? AND build = ?', [name, input, build]);
|
|
9
|
+
return held === undefined ? null : String(held.answer);
|
|
10
|
+
}
|
|
11
|
+
export function keptRead(connection, { name, input, build }, answer) {
|
|
12
|
+
connection.run('INSERT OR REPLACE INTO read_answers (name, input, build, answer) VALUES (?, ?, ?, ?)', [name, input, build, answer]);
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
export function readsOfOtherBuildsForgotten(connection, build) {
|
|
16
|
+
connection.run('DELETE FROM read_answers WHERE build <> ?', [build]);
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
function answered(result) {
|
|
20
|
+
return result.kind === 'action' && answeredResult(result.result);
|
|
21
|
+
}
|
|
22
|
+
export function readAnswers(options) {
|
|
23
|
+
const { database, build, recovery } = options;
|
|
24
|
+
const unkept = new Set(options.unkept);
|
|
25
|
+
const leading = new Set(options.leading);
|
|
26
|
+
const reads = new Map();
|
|
27
|
+
function leads(read) {
|
|
28
|
+
return leading.has(read.at.name);
|
|
29
|
+
}
|
|
30
|
+
function show(read, shown) {
|
|
31
|
+
read.shown = shown;
|
|
32
|
+
for (const deliver of read.observers)
|
|
33
|
+
deliver(shown);
|
|
34
|
+
}
|
|
35
|
+
async function kept(read, answer) {
|
|
36
|
+
if (!read.shown.kept || options.full())
|
|
37
|
+
return;
|
|
38
|
+
await database.ask({ kind: 'read.keep', ...read.at, answer }).catch((error) => {
|
|
39
|
+
if (refusedForSpace(error))
|
|
40
|
+
options.filled();
|
|
41
|
+
else
|
|
42
|
+
uncaught(error);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async function asked(read, led) {
|
|
46
|
+
if (!options.online()) {
|
|
47
|
+
read.owed = true;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const result = await options.call(read.at.name, read.asked).catch(() => UNCERTAIN);
|
|
51
|
+
if (options.closed())
|
|
52
|
+
return;
|
|
53
|
+
read.owed = !answered(result);
|
|
54
|
+
if (read.owed) {
|
|
55
|
+
show(read, { ...read.shown, failure: result });
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const answer = result.result;
|
|
59
|
+
const text = JSON.stringify(answer);
|
|
60
|
+
if (text === read.text && read.shown.failure === null)
|
|
61
|
+
return;
|
|
62
|
+
read.text = text;
|
|
63
|
+
await kept(read, text);
|
|
64
|
+
await led;
|
|
65
|
+
if (!options.closed())
|
|
66
|
+
show(read, { ...read.shown, answer, failure: null });
|
|
67
|
+
}
|
|
68
|
+
function lost(read) {
|
|
69
|
+
return read.owed && read.shown.failure?.kind === 'transport-uncertainty' && options.streaming();
|
|
70
|
+
}
|
|
71
|
+
function retrying(read) {
|
|
72
|
+
return `${read.key} again`;
|
|
73
|
+
}
|
|
74
|
+
function askedLater(read) {
|
|
75
|
+
void recovery.attempt(retrying(read), async () => {
|
|
76
|
+
if (options.closed() || read.observers.size === 0 || !lost(read))
|
|
77
|
+
return 'done';
|
|
78
|
+
await attempted(read);
|
|
79
|
+
return lost(read) ? 'again' : 'done';
|
|
80
|
+
}, { again: true });
|
|
81
|
+
}
|
|
82
|
+
function forgotten(read) {
|
|
83
|
+
read.text = null;
|
|
84
|
+
read.shown = { ...read.shown, answer: null, failure: null };
|
|
85
|
+
}
|
|
86
|
+
function attempted(read, led) {
|
|
87
|
+
read.asking = true;
|
|
88
|
+
return recovery
|
|
89
|
+
.attempt(read.key, async () => {
|
|
90
|
+
await asked(read, led);
|
|
91
|
+
return 'done';
|
|
92
|
+
})
|
|
93
|
+
.finally(() => {
|
|
94
|
+
const unanswered = read.joined && read.owed;
|
|
95
|
+
read.asking = false;
|
|
96
|
+
read.joined = false;
|
|
97
|
+
if (unanswered)
|
|
98
|
+
void ask(read);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function ask(read, led) {
|
|
102
|
+
return attempted(read, led).finally(() => {
|
|
103
|
+
if (lost(read))
|
|
104
|
+
askedLater(read);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function opened(name, input, key) {
|
|
108
|
+
const held = !unkept.has(name);
|
|
109
|
+
const read = {
|
|
110
|
+
key,
|
|
111
|
+
at: { name, input: JSON.stringify(input ?? null), build },
|
|
112
|
+
asked: input,
|
|
113
|
+
observers: new Set(),
|
|
114
|
+
stored: Promise.resolve(),
|
|
115
|
+
text: null,
|
|
116
|
+
shown: { answer: null, failure: null, kept: held },
|
|
117
|
+
owed: false,
|
|
118
|
+
asking: false,
|
|
119
|
+
joined: false,
|
|
120
|
+
};
|
|
121
|
+
if (held) {
|
|
122
|
+
read.stored = database.ask({ kind: 'read.stored', ...read.at }).then((text) => {
|
|
123
|
+
if (text === null || read.text !== null)
|
|
124
|
+
return;
|
|
125
|
+
read.text = text;
|
|
126
|
+
read.shown = { ...read.shown, answer: JSON.parse(text) };
|
|
127
|
+
}, uncaught);
|
|
128
|
+
}
|
|
129
|
+
reads.set(key, read);
|
|
130
|
+
return read;
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
watch(name, input, deliver) {
|
|
134
|
+
const key = JSON.stringify([name, input ?? null]);
|
|
135
|
+
const read = reads.get(key) ?? opened(name, input, key);
|
|
136
|
+
read.observers.add(deliver);
|
|
137
|
+
void read.stored.then(() => {
|
|
138
|
+
if (!read.observers.has(deliver))
|
|
139
|
+
return;
|
|
140
|
+
if (!read.shown.kept)
|
|
141
|
+
forgotten(read);
|
|
142
|
+
deliver(read.shown);
|
|
143
|
+
if (read.asking)
|
|
144
|
+
read.joined = true;
|
|
145
|
+
else
|
|
146
|
+
void ask(read);
|
|
147
|
+
});
|
|
148
|
+
return () => {
|
|
149
|
+
read.observers.delete(deliver);
|
|
150
|
+
if (read.observers.size === 0 && reads.get(key) === read)
|
|
151
|
+
reads.delete(key);
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
again() {
|
|
155
|
+
const all = [...reads.values()];
|
|
156
|
+
const led = Promise.all(all.filter(leads).map((read) => ask(read)));
|
|
157
|
+
for (const read of all)
|
|
158
|
+
if (!leads(read))
|
|
159
|
+
void ask(read, led);
|
|
160
|
+
},
|
|
161
|
+
reopened() {
|
|
162
|
+
for (const read of reads.values()) {
|
|
163
|
+
recovery.cancel(retrying(read));
|
|
164
|
+
if (read.text === null) {
|
|
165
|
+
if (read.owed)
|
|
166
|
+
void ask(read);
|
|
167
|
+
}
|
|
168
|
+
else if (read.shown.failure?.kind === 'transport-uncertainty') {
|
|
169
|
+
show(read, { ...read.shown, failure: null });
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
}
|
package/dist/refresh.js
CHANGED
|
@@ -129,7 +129,7 @@ export async function advancement(refresh, authorization, held, remodel, continu
|
|
|
129
129
|
return unconfirmed;
|
|
130
130
|
const first = await refresh(authorization, {
|
|
131
131
|
locator,
|
|
132
|
-
selection: held.replica.selection,
|
|
132
|
+
selection: held.declaration.replica.selection,
|
|
133
133
|
fromRoomVersion,
|
|
134
134
|
});
|
|
135
135
|
if (first.kind !== 'net-advancement')
|
|
@@ -154,7 +154,7 @@ export async function advancement(refresh, authorization, held, remodel, continu
|
|
|
154
154
|
return unconfirmed;
|
|
155
155
|
const page = await refresh(authorization, {
|
|
156
156
|
locator,
|
|
157
|
-
selection: held.replica.selection,
|
|
157
|
+
selection: held.declaration.replica.selection,
|
|
158
158
|
fromRoomVersion,
|
|
159
159
|
pageToken,
|
|
160
160
|
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProviderRefusal } from './adapter.js';
|
|
2
|
+
import type { Runtime } from './runtime.js';
|
|
3
|
+
import type { RefusalReason } from './socket.js';
|
|
4
|
+
export declare function refuse(runtime: Runtime, reason: RefusalReason, provider?: ProviderRefusal | null): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=refusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refusal.d.ts","sourceRoot":"","sources":["../src/refusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,aAAa,EACrB,QAAQ,GAAE,eAAe,GAAG,IAAW,iBAmDxC"}
|
package/dist/refusal.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { changeSet, mergeChangeSets } from './change-set.js';
|
|
2
|
+
import { composedOf } from './collection.js';
|
|
3
|
+
import { uncaught } from './failure.js';
|
|
4
|
+
import { listedLocators } from './listing.js';
|
|
5
|
+
import { prepare } from './preparation.js';
|
|
6
|
+
import { storedRecord } from './replica.js';
|
|
7
|
+
import { emitRefusal } from './shown.js';
|
|
8
|
+
export async function refuse(runtime, reason, provider = null) {
|
|
9
|
+
const { store, socket, presence, journal } = runtime;
|
|
10
|
+
socket.session.set({ paused: true });
|
|
11
|
+
socket.abortReads();
|
|
12
|
+
try {
|
|
13
|
+
if (reason === 'revoked-authorization') {
|
|
14
|
+
await store.exclusive(async () => {
|
|
15
|
+
const revoked = { status: 'unavailable', reason: 'revoked' };
|
|
16
|
+
let held = new Map();
|
|
17
|
+
try {
|
|
18
|
+
const local = await store.open();
|
|
19
|
+
held = await store.rooms();
|
|
20
|
+
await local.commit({
|
|
21
|
+
rooms: [...held.values()].map(({ record: kept }) => {
|
|
22
|
+
const record = { ...kept, model: revoked };
|
|
23
|
+
return {
|
|
24
|
+
locator: record.locator,
|
|
25
|
+
key: record.key,
|
|
26
|
+
record: storedRecord(record),
|
|
27
|
+
composed: composedOf(store.composed(record)),
|
|
28
|
+
};
|
|
29
|
+
}),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
journal.record('model revocation persistence failed');
|
|
34
|
+
uncaught(error);
|
|
35
|
+
}
|
|
36
|
+
const listedNow = listedLocators(runtime, held);
|
|
37
|
+
for (const locator of listedNow) {
|
|
38
|
+
if (!held.has(locator))
|
|
39
|
+
presence.modelled(locator, revoked);
|
|
40
|
+
}
|
|
41
|
+
store.changed(mergeChangeSets(listedNow.map((locator) => changeSet(locator, { documents: null, room: true }))));
|
|
42
|
+
prepare(runtime);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
finally {
|
|
47
|
+
socket.session.set({
|
|
48
|
+
refusal: {
|
|
49
|
+
code: reason,
|
|
50
|
+
reauthorizationOffered: reason === 'revoked-authorization',
|
|
51
|
+
refusal: provider,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
journal.record(`connection refused ${reason}`);
|
|
55
|
+
emitRefusal(runtime);
|
|
56
|
+
}
|
|
57
|
+
}
|
package/dist/replica.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TypedPath } from '@agentshouse/mdmodel';
|
|
2
|
-
import type { BootstrapInventory, SavedFacts, MutationResult,
|
|
2
|
+
import type { BootstrapInventory, SavedFacts, MutationResult, RoomDeclaration, TypedSelection } from './adapter.js';
|
|
3
3
|
import { type ChangeBatch, type Precondition } from './change.js';
|
|
4
4
|
import { type Collection, type Composition } from './collection.js';
|
|
5
5
|
import { type ModelState } from './model.js';
|
|
@@ -7,13 +7,8 @@ import { type Layer } from './overlay.js';
|
|
|
7
7
|
import type { HeldEntry, OverlayEntry, StoredEntry } from './tables.js';
|
|
8
8
|
export type ReplicaRecord = {
|
|
9
9
|
readonly locator: string;
|
|
10
|
-
readonly
|
|
11
|
-
readonly handle: string;
|
|
12
|
-
readonly operations: OperationScopes;
|
|
13
|
-
readonly replica: ReplicaAdmission;
|
|
10
|
+
readonly declaration: RoomDeclaration;
|
|
14
11
|
readonly model: ModelState;
|
|
15
|
-
readonly typedSelection: TypedSelection | null;
|
|
16
|
-
readonly providerOwnedPaths: readonly string[];
|
|
17
12
|
readonly roomVersion: string;
|
|
18
13
|
readonly transfer: string;
|
|
19
14
|
readonly inventory: BootstrapInventory;
|
|
@@ -23,9 +18,6 @@ export type HeldReplica = {
|
|
|
23
18
|
readonly record: ReplicaRecord;
|
|
24
19
|
readonly queue: readonly ChangeBatch[];
|
|
25
20
|
readonly overlaid: ReadonlySet<string>;
|
|
26
|
-
readonly count: number;
|
|
27
|
-
readonly confirmed: number;
|
|
28
|
-
readonly indexed: boolean;
|
|
29
21
|
};
|
|
30
22
|
export type VisibleLayer = Layer & {
|
|
31
23
|
readonly collection: Collection;
|
|
@@ -35,7 +27,7 @@ export type Slice = Layer & {
|
|
|
35
27
|
readonly facts: Readonly<Record<string, SavedFacts>>;
|
|
36
28
|
readonly held: ReadonlySet<string>;
|
|
37
29
|
};
|
|
38
|
-
export declare function compositionOf(
|
|
30
|
+
export declare function compositionOf(model: ModelState, typedSelection: TypedSelection | null, builtIn: ModelState, typedPaths: readonly TypedPath[]): Composition;
|
|
39
31
|
export declare function storedRecord(record: ReplicaRecord): string;
|
|
40
32
|
export declare function slicing(entries: readonly HeldEntry[], paths: Iterable<string>): Generator<number, Slice, void>;
|
|
41
33
|
export type LayerEntry = Omit<StoredEntry, 'facts'>;
|
|
@@ -51,8 +43,8 @@ export type Replayed = {
|
|
|
51
43
|
};
|
|
52
44
|
export declare function replaying(confirmed: Slice, queue: readonly ChangeBatch[], locator: string, composition: Composition): Generator<number, Replayed, void>;
|
|
53
45
|
export declare function overlayOf(visible: VisibleLayer, touched: Iterable<string>): Generator<number, OverlayEntry[], void>;
|
|
54
|
-
export declare function holds(layer: Layer, preconditions: readonly Precondition[]): boolean;
|
|
55
|
-
export declare function landed(batch: ChangeBatch, confirmed: Layer, current?: Readonly<Record<string, string>>): boolean;
|
|
46
|
+
export declare function holds(layer: Layer, preconditions: readonly Precondition[], composition: Composition): boolean;
|
|
47
|
+
export declare function landed(batch: ChangeBatch, confirmed: Layer, composition: Composition, current?: Readonly<Record<string, string>>): boolean;
|
|
56
48
|
export type Standing = {
|
|
57
49
|
readonly withdrawn: readonly ChangeBatch[];
|
|
58
50
|
readonly kept: readonly ChangeBatch[];
|
package/dist/replica.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replica.d.ts","sourceRoot":"","sources":["../src/replica.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EAEV,cAAc,EACd,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"replica.d.ts","sourceRoot":"","sources":["../src/replica.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EAEV,cAAc,EACd,eAAe,EACf,cAAc,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAmC,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAA+B,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAiD,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAIzF,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGxE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,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1
1
|
import { equalValue, parse } from '@agentshouse/mdmodel';
|
|
2
2
|
import { immutable, landing } from './change.js';
|
|
3
|
-
import { collectionOf } from './collection.js';
|
|
3
|
+
import { collectionOf, definitionsAt } from './collection.js';
|
|
4
4
|
import { storedModel } from './model.js';
|
|
5
5
|
import { acceptedBinaries, overlaying } from './overlay.js';
|
|
6
6
|
import { writtenFacts } from './rows.js';
|
|
7
7
|
import { effectiveIn, rewriting } from './save.js';
|
|
8
|
+
import { guarding } from './shared.js';
|
|
8
9
|
import { ROW_WEIGHT } from './turn.js';
|
|
9
|
-
export function compositionOf(
|
|
10
|
+
export function compositionOf(model, typedSelection, builtIn, typedPaths) {
|
|
10
11
|
return {
|
|
11
|
-
model
|
|
12
|
-
selection:
|
|
13
|
-
? null
|
|
14
|
-
: { roots: record.typedSelection.roots, model: builtIn },
|
|
12
|
+
model,
|
|
13
|
+
selection: typedSelection === null ? null : { roots: typedSelection.roots, model: builtIn },
|
|
15
14
|
typedPaths,
|
|
16
15
|
};
|
|
17
16
|
}
|
|
@@ -37,7 +36,7 @@ function strict(values, held) {
|
|
|
37
36
|
throw new UnreadPath(property);
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
|
-
return
|
|
39
|
+
return guarding(values, {
|
|
41
40
|
get(target, property, receiver) {
|
|
42
41
|
guard(property);
|
|
43
42
|
return Reflect.get(target, property, receiver);
|
|
@@ -170,7 +169,7 @@ export function* replaying(confirmed, queue, locator, composition) {
|
|
|
170
169
|
for (const change of effective.changes)
|
|
171
170
|
for (const path of changePaths(change))
|
|
172
171
|
touched.add(path);
|
|
173
|
-
layer = yield* overlaying(layer, [effective]);
|
|
172
|
+
layer = yield* overlaying(layer, [effective], composition);
|
|
174
173
|
yield ROW_WEIGHT;
|
|
175
174
|
}
|
|
176
175
|
return {
|
|
@@ -209,12 +208,12 @@ export function* overlayOf(visible, touched) {
|
|
|
209
208
|
function present(layer, path) {
|
|
210
209
|
return layer.documents[path] !== undefined || layer.binaries[path] !== undefined;
|
|
211
210
|
}
|
|
212
|
-
export function holds(layer, preconditions) {
|
|
211
|
+
export function holds(layer, preconditions, composition) {
|
|
213
212
|
const parsed = new Map();
|
|
214
213
|
const documentAt = (path) => {
|
|
215
214
|
if (!parsed.has(path)) {
|
|
216
215
|
const text = layer.documents[path];
|
|
217
|
-
const opened = text === undefined ? null : parse(text, path);
|
|
216
|
+
const opened = text === undefined ? null : parse(text, path, definitionsAt(composition, path));
|
|
218
217
|
parsed.set(path, opened?.ok === true ? opened.document : null);
|
|
219
218
|
}
|
|
220
219
|
return parsed.get(path) ?? null;
|
|
@@ -274,11 +273,11 @@ function effects(change) {
|
|
|
274
273
|
{ kind: 'present', path: change.to },
|
|
275
274
|
];
|
|
276
275
|
}
|
|
277
|
-
if (change.kind === '
|
|
276
|
+
if (change.kind === 'arrival')
|
|
278
277
|
return [{ kind: 'present', path }];
|
|
279
278
|
return [{ kind: 'absent', path }];
|
|
280
279
|
}
|
|
281
|
-
export function landed(batch, confirmed, current = {}) {
|
|
280
|
+
export function landed(batch, confirmed, composition, current = {}) {
|
|
282
281
|
const documents = new Proxy(confirmed.documents, {
|
|
283
282
|
get(target, property, receiver) {
|
|
284
283
|
if (typeof property === 'string' && Object.hasOwn(current, property))
|
|
@@ -298,9 +297,9 @@ export function landed(batch, confirmed, current = {}) {
|
|
|
298
297
|
}
|
|
299
298
|
return effects(change).every((effect) => {
|
|
300
299
|
if (effect.kind === 'absent')
|
|
301
|
-
return holds(layer, [effect]);
|
|
300
|
+
return holds(layer, [effect], composition);
|
|
302
301
|
const at = landing(batch.changes, index, effect.path);
|
|
303
|
-
return at === null || holds(layer, [{ ...effect, path: at }]);
|
|
302
|
+
return at === null || holds(layer, [{ ...effect, path: at }], composition);
|
|
304
303
|
});
|
|
305
304
|
});
|
|
306
305
|
}
|
|
@@ -325,7 +324,7 @@ export function* standing(confirmed, queue, withdrawable, local, locator, compos
|
|
|
325
324
|
const withdrawn = [];
|
|
326
325
|
const kept = [];
|
|
327
326
|
for (const batch of queue) {
|
|
328
|
-
if (withdrawable(batch) && !holds(layer, batch.preconditions)) {
|
|
327
|
+
if (withdrawable(batch) && !holds(layer, batch.preconditions, composition)) {
|
|
329
328
|
withdrawn.push(batch);
|
|
330
329
|
continue;
|
|
331
330
|
}
|
|
@@ -336,7 +335,7 @@ export function* standing(confirmed, queue, withdrawable, local, locator, compos
|
|
|
336
335
|
})
|
|
337
336
|
: batch;
|
|
338
337
|
let unapplied = false;
|
|
339
|
-
const next = yield* overlaying(layer, [effective], () => {
|
|
338
|
+
const next = yield* overlaying(layer, [effective], composition, () => {
|
|
340
339
|
unapplied = true;
|
|
341
340
|
});
|
|
342
341
|
if (local && unapplied) {
|
package/dist/room-draft.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type DefinitionOf } from '@agentshouse/mdmodel';
|
|
1
2
|
import type { ProviderRefusal } from './adapter.js';
|
|
2
3
|
import type { Open } from './open.js';
|
|
3
4
|
import type { Change, Precondition } from './change.js';
|
|
@@ -92,7 +93,7 @@ type ChangedUnderneath = {
|
|
|
92
93
|
export type ReturnReason = ProviderRefusal & {
|
|
93
94
|
readonly kind: Open<'conflicted' | 'rejected' | 'withdrawn'>;
|
|
94
95
|
};
|
|
95
|
-
export declare function returnedBy(
|
|
96
|
+
export declare function returnedBy(): ReturnReason;
|
|
96
97
|
export type RoomDraft = {
|
|
97
98
|
readonly room: string;
|
|
98
99
|
readonly path: string;
|
|
@@ -106,8 +107,6 @@ export type RoomDraftWrite = {
|
|
|
106
107
|
readonly roomDraft: RoomDraft | null;
|
|
107
108
|
} | {
|
|
108
109
|
readonly outcome: 'stale';
|
|
109
|
-
readonly code: string;
|
|
110
|
-
readonly retryable: boolean;
|
|
111
110
|
readonly current: RoomDraft | null;
|
|
112
111
|
};
|
|
113
112
|
export declare function staleWrite(current: RoomDraft | null): RoomDraftWrite;
|
|
@@ -146,8 +145,8 @@ export type TextParts = {
|
|
|
146
145
|
readonly value: string;
|
|
147
146
|
};
|
|
148
147
|
};
|
|
149
|
-
export declare function partsAfter(markdown: string, parts: TextParts): string;
|
|
150
|
-
export declare function returnedInto(existing: HeldParts | undefined, returned: HeldParts): HeldParts;
|
|
148
|
+
export declare function partsAfter(markdown: string, parts: TextParts, definitions?: DefinitionOf): string;
|
|
149
|
+
export declare function returnedInto(existing: HeldParts | undefined, returned: HeldParts, definitions?: DefinitionOf): HeldParts;
|
|
151
150
|
export declare function moveTarget(move: {
|
|
152
151
|
readonly to: string;
|
|
153
152
|
}): string;
|
|
@@ -169,7 +168,6 @@ export declare function changesOf(path: string, parts: HeldParts): {
|
|
|
169
168
|
changes: readonly Change[];
|
|
170
169
|
bases: readonly Precondition[];
|
|
171
170
|
};
|
|
172
|
-
export declare function joinedDraft(carried: SavedDraft, saved: readonly SavedDraft[]): SavedDraft;
|
|
173
171
|
export declare function withdrawnDrafts(drafts: readonly SavedDraft[], changes: readonly Change[]): readonly SavedDraft[];
|
|
174
172
|
export {};
|
|
175
173
|
//# sourceMappingURL=room-draft.d.ts.map
|
package/dist/room-draft.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room-draft.d.ts","sourceRoot":"","sources":["../src/room-draft.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"room-draft.d.ts","sourceRoot":"","sources":["../src/room-draft.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,I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