@agentshouse/mdruntime 0.1.0-c112fd663ab59 → 0.1.0-c11fdcbfb7fe2
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 +21 -19
- package/dist/acceptance.d.ts +0 -3
- package/dist/acceptance.d.ts.map +1 -1
- package/dist/acceptance.js +101 -158
- package/dist/act-lanes.d.ts +30 -0
- package/dist/act-lanes.d.ts.map +1 -0
- package/dist/act-lanes.js +225 -0
- package/dist/actions.d.ts +8 -2
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +165 -75
- package/dist/adapter.d.ts +209 -73
- 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/bootstrap.d.ts +1 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +6 -19
- package/dist/chain.d.ts +1 -1
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +5 -2
- 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 +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 +29 -24
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +51 -66
- package/dist/collection.d.ts +27 -4
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +34 -10
- 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 +4 -1
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +88 -44
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +36 -27
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +29 -15
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +26 -14
- package/dist/conversation-row.d.ts +20 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +30 -7
- package/dist/conversation.d.ts +47 -16
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +358 -258
- 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 +3 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +47 -47
- 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 +5 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +25 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +111 -34
- package/dist/expectation.d.ts +25 -14
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +51 -20
- package/dist/failure.d.ts +2 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +6 -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 +24 -4
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +108 -32
- 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 +29 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -9
- package/dist/install.d.ts +10 -6
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +89 -108
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +76 -54
- package/dist/listing.d.ts +29 -22
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +71 -79
- 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 +2 -4
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +10 -38
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +11 -23
- 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 +10 -4
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +101 -40
- package/dist/messages.d.ts +21 -6
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +48 -30
- 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 -8
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +6 -5
- package/dist/models.d.ts +4 -8
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +94 -138
- 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 +6 -6
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +4 -4
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +23 -12
- package/dist/outcome.d.ts +33 -13
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +36 -6
- package/dist/overlay.d.ts +23 -8
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +132 -48
- 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 +5 -59
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +32 -122
- 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 +207 -96
- package/dist/presence.d.ts +58 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +231 -0
- package/dist/queries.d.ts +2 -2
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +137 -79
- package/dist/query.d.ts +2 -2
- package/dist/query.d.ts.map +1 -1
- package/dist/questions.d.ts +1 -5
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +3 -8
- package/dist/queue.d.ts +40 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +480 -0
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +198 -38
- package/dist/react.d.ts +17 -5
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +28 -5
- 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 +4 -2
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +22 -7
- package/dist/recovery.d.ts +4 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +31 -8
- package/dist/refresh.d.ts +1 -1
- package/dist/refresh.js +6 -6
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +2 -4
- package/dist/replica.d.ts +6 -17
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +17 -19
- package/dist/retried.d.ts +30 -0
- package/dist/retried.d.ts.map +1 -0
- package/dist/retried.js +72 -0
- package/dist/room-draft.d.ts +31 -6
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +279 -69
- 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 +28 -15
- 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 +13 -19
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts +43 -90
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +314 -223
- package/dist/saves.d.ts +9 -45
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +206 -748
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +4 -4
- 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 +9 -5
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +93 -57
- package/dist/socket/lanes.d.ts +12 -4
- package/dist/socket/lanes.d.ts.map +1 -1
- package/dist/socket/lanes.js +34 -8
- 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 +7 -7
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +11 -14
- package/dist/source.d.ts +24 -7
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +48 -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 +31 -9
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +69 -26
- 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 +25 -15
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +50 -18
- package/dist/stored.d.ts +41 -16
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +217 -59
- package/dist/surface.d.ts +20 -8
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +68 -34
- package/dist/sync.d.ts +4 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +127 -102
- package/dist/tables.d.ts +40 -56
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +109 -329
- 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 +51 -11
- package/dist/wire.d.ts +72 -12
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +31 -14
- package/package.json +4 -3
- package/dist/attempt.d.ts +0 -16
- package/dist/attempt.d.ts.map +0 -1
- package/dist/attempt.js +0 -70
- package/dist/binary.d.ts.map +0 -1
- package/dist/binary.js +0 -8
- package/dist/job.d.ts +0 -33
- package/dist/job.d.ts.map +0 -1
- package/dist/job.js +0 -54
- package/dist/log.d.ts +0 -6
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -14
- package/dist/socket/rooms.d.ts +0 -44
- package/dist/socket/rooms.d.ts.map +0 -1
- package/dist/socket/rooms.js +0 -90
- package/dist/store/fences.d.ts +0 -16
- package/dist/store/fences.d.ts.map +0 -1
- package/dist/store/fences.js +0 -26
package/README.md
CHANGED
|
@@ -12,14 +12,14 @@ npm install @agentshouse/mdruntime
|
|
|
12
12
|
|
|
13
13
|
## Entries
|
|
14
14
|
|
|
15
|
-
| Entry | For
|
|
16
|
-
| ------------------------------- |
|
|
17
|
-
| `@agentshouse/mdruntime/client` | The host's client: `connectMdRuntime(port)`
|
|
18
|
-
| `@agentshouse/mdruntime/host` | The host that serves a Runtime: `serveMdRuntime`
|
|
19
|
-
| `@agentshouse/mdruntime` | Shared types
|
|
20
|
-
| `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter
|
|
21
|
-
| `@agentshouse/mdruntime/tables` | The host's database: the Authored store's and
|
|
22
|
-
| `@agentshouse/mdruntime/react` | React over the client: `useObserve`, `useSave`; `
|
|
15
|
+
| Entry | For |
|
|
16
|
+
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `@agentshouse/mdruntime/client` | The host's client: `connectMdRuntime(port)` |
|
|
18
|
+
| `@agentshouse/mdruntime/host` | The host that serves a Runtime: `serveMdRuntime` |
|
|
19
|
+
| `@agentshouse/mdruntime` | Shared types |
|
|
20
|
+
| `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter |
|
|
21
|
+
| `@agentshouse/mdruntime/tables` | The host's database: `formatted` lays it out for a device format, keeping the Authored store's tables and creating any it lacks, and `answerRuntime` answers it |
|
|
22
|
+
| `@agentshouse/mdruntime/react` | React over the client: `useObserve`, `useSave`; `useExpected`, a reader of an expectation store; `useLane`, a reader of an act lane |
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
@@ -33,24 +33,26 @@ const rooms = await runtime.rooms();
|
|
|
33
33
|
const notes = await runtime.query({ types: ['note'], select: 'all', limit: 20 });
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
`observe('storage-loss')` reports `null
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
`observe('storage-loss')` reports `null`, the stable code `storage-loss` when
|
|
37
|
+
unsynchronized Room Drafts and Pending Changes were lost, or `visit` while the host holds
|
|
38
|
+
the database in memory, which ends with the visit; the readiness `persistence` answer is then
|
|
39
|
+
`memory`. The host supplies the user-facing wording.
|
|
39
40
|
|
|
40
41
|
In House the bridge object the page holds as `window.houseBridge` places the Chat, which
|
|
41
|
-
House serves with the page: install and bundle nothing for it. Mount it in an element
|
|
42
|
-
|
|
42
|
+
House serves with the page: install and bundle nothing for it. Mount it in an element it
|
|
43
|
+
fills, where it lays out the User's chats by the element's width, themed by CSS custom
|
|
44
|
+
properties on that element, or as the Chat button, House's dot that opens it in a sheet:
|
|
43
45
|
|
|
44
46
|
```ts
|
|
45
|
-
const chat = await window.houseBridge.chat.mount(element, {
|
|
47
|
+
const chat = await window.houseBridge.chat.mount(element, { conversation });
|
|
46
48
|
element.style.setProperty('--chat-accent', '#2a6cf0');
|
|
47
|
-
chat.update({
|
|
48
|
-
chat.
|
|
49
|
+
chat.update({ conversation: null, agent });
|
|
50
|
+
const button = await window.houseBridge.chat.mountButton({});
|
|
51
|
+
button.open({ agent });
|
|
49
52
|
```
|
|
50
53
|
|
|
51
|
-
The rules an App's agent follows, including Local Query, search, Room
|
|
52
|
-
|
|
53
|
-
`guide/open` opens.
|
|
54
|
+
The rules an App's agent follows, including Local Query, search, Room Draft, Save and the
|
|
55
|
+
Chat, are the `apps/` pages of House's Guide, which House's `guide` tool opens.
|
|
54
56
|
|
|
55
57
|
## License
|
|
56
58
|
|
package/dist/acceptance.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { Runtime } from './runtime.js';
|
|
2
|
-
import type { RuntimeStore } from './store.js';
|
|
3
|
-
export declare function unpair(runtime: Runtime, local: RuntimeStore): Promise<void>;
|
|
4
2
|
export declare function submitLater(runtime: Runtime, locator: string): void;
|
|
5
|
-
export declare function submitAll(runtime: Runtime): Promise<void>;
|
|
6
3
|
//# sourceMappingURL=acceptance.d.ts.map
|
package/dist/acceptance.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptance.d.ts","sourceRoot":"","sources":["../src/acceptance.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"acceptance.d.ts","sourceRoot":"","sources":["../src/acceptance.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0Y5C,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,QAK5D"}
|
package/dist/acceptance.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import { refusalError } from './failure.js';
|
|
1
2
|
import { changeSet } from './change-set.js';
|
|
3
|
+
import { declared } from './declaration.js';
|
|
2
4
|
import { leaving as leavingIn, partnerOf } from './change.js';
|
|
3
5
|
import { olderThan, showing } from './install.js';
|
|
4
|
-
import {
|
|
6
|
+
import { scoped } from './models.js';
|
|
7
|
+
import { answered, settle } from './queue.js';
|
|
5
8
|
import { refuse } from './refusal.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
9
|
+
import { writtenDocuments } from './overlay.js';
|
|
10
|
+
import { returnedPaths, returning, slicing, touchedBy, } from './replica.js';
|
|
11
|
+
import { batchFile } from './saves.js';
|
|
8
12
|
import { rest, roomUnreadable, statusShown } from './shown.js';
|
|
13
|
+
import { advanced, withhold } from './sync.js';
|
|
9
14
|
import { unconfirmed } from './transfer.js';
|
|
10
15
|
import { stepped } from './turn.js';
|
|
11
|
-
function pendingKey(locator, id) {
|
|
12
|
-
return `${locator}\u0000${id}`;
|
|
13
|
-
}
|
|
14
16
|
async function mark(runtime, local, locator, batch, submission, lost) {
|
|
15
|
-
const { store, socket } = runtime;
|
|
17
|
+
const { store, socket, presence } = runtime;
|
|
16
18
|
const partner = partnerOf(batch, locator);
|
|
17
19
|
for (const held of partner === null ? [locator] : [locator, partner]) {
|
|
18
20
|
const { state, room } = await local.pending(held, batch.id);
|
|
@@ -22,116 +24,105 @@ async function mark(runtime, local, locator, batch, submission, lost) {
|
|
|
22
24
|
continue;
|
|
23
25
|
}
|
|
24
26
|
await local.submit(held, batch.id, submission, lost);
|
|
25
|
-
if (
|
|
27
|
+
if (presence.lost(held))
|
|
26
28
|
continue;
|
|
27
29
|
if (room)
|
|
28
30
|
store.changed(changeSet(held, { queue: true }));
|
|
29
31
|
}
|
|
30
32
|
statusShown(runtime);
|
|
31
33
|
}
|
|
32
|
-
async function keepUpload({
|
|
34
|
+
async function keepUpload({ socket, presence }, local, locator, identifier, upload) {
|
|
33
35
|
if (!socket.continuing())
|
|
34
36
|
throw new Error();
|
|
35
37
|
await local.keepUpload(locator, identifier, upload);
|
|
36
|
-
if (
|
|
38
|
+
if (presence.lost(locator))
|
|
37
39
|
throw new Error();
|
|
38
40
|
if (!socket.continuing())
|
|
39
41
|
throw new Error();
|
|
40
42
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
batch,
|
|
44
|
-
returned: {
|
|
45
|
-
kind: result.kind,
|
|
46
|
-
code: result.code,
|
|
47
|
-
fields: result.fields,
|
|
48
|
-
retryable: result.retryable,
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function logAccepted({ journal }, locator, submitted, accepted) {
|
|
53
|
-
journal.record(`outcome ${locator} ${submitted.id} accepted ${accepted.roomVersion}` +
|
|
54
|
-
(accepted.author === undefined ? '' : ` author ${accepted.author}`) +
|
|
55
|
-
(accepted.time === undefined ? '' : ` time ${accepted.time}`));
|
|
56
|
-
}
|
|
57
|
-
function settling(acceptance) {
|
|
58
|
-
return acceptance !== null && 'apply' in acceptance;
|
|
59
|
-
}
|
|
60
|
-
function failureOf(acceptance) {
|
|
61
|
-
return settling(acceptance) ? null : acceptance;
|
|
43
|
+
function restands(adoptions) {
|
|
44
|
+
return adoptions.flatMap((one) => (one === null || !('record' in one) ? [] : [one]));
|
|
62
45
|
}
|
|
63
|
-
async function
|
|
46
|
+
async function adoption(runtime, room, current, local, submitted, accepted) {
|
|
64
47
|
const { store, socket } = runtime;
|
|
65
48
|
if (!socket.continuing())
|
|
66
49
|
return unconfirmed;
|
|
67
|
-
const work = await store.work(room.locator);
|
|
68
|
-
const current = work.replica;
|
|
69
50
|
if (current === undefined || !current.queue.some((batch) => batch.id === submitted.id)) {
|
|
70
51
|
return null;
|
|
71
52
|
}
|
|
72
53
|
const held = current.record.roomVersion;
|
|
73
|
-
logAccepted(runtime, room.locator, submitted, accepted);
|
|
74
54
|
let record = current.record;
|
|
75
|
-
let
|
|
55
|
+
let adopted;
|
|
76
56
|
if (!socket.reads.reached(room.locator, held, accepted.roomVersion) &&
|
|
77
57
|
!olderThan(runtime, room.locator, accepted.roomVersion, held)) {
|
|
78
58
|
const paths = [...returnedPaths(submitted, accepted)];
|
|
79
59
|
const confirmedLayer = await stepped(slicing(await local.entries(record.key, 'confirmed', paths), paths));
|
|
80
|
-
|
|
60
|
+
adopted = await stepped(returning(confirmedLayer, submitted, accepted, accepted.roomVersion, store.composed(record)));
|
|
81
61
|
record = {
|
|
82
62
|
...record,
|
|
83
63
|
roomVersion: socket.follows(room.locator, held, accepted.roomVersion)
|
|
84
64
|
? accepted.roomVersion
|
|
85
65
|
: held,
|
|
86
66
|
};
|
|
87
|
-
changes = back;
|
|
88
67
|
}
|
|
89
|
-
const settled = await settlement(runtime, local, room.locator, work, record, current.queue.filter((batch) => batch.id !== submitted.id), { room: true, ...(changes === undefined ? {} : { changes }) });
|
|
90
68
|
const reached = record.roomVersion;
|
|
91
69
|
return {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
70
|
+
locator: room.locator,
|
|
71
|
+
record,
|
|
72
|
+
accepted: submitted.id,
|
|
73
|
+
...(adopted === undefined ? {} : { adopted }),
|
|
74
|
+
after() {
|
|
95
75
|
showing(runtime, room.locator, accepted.roomVersion, reached);
|
|
96
|
-
readable(
|
|
97
|
-
return set;
|
|
76
|
+
runtime.presence.readable(room.locator);
|
|
98
77
|
},
|
|
99
78
|
};
|
|
100
79
|
}
|
|
101
|
-
async function adoptedTogether(runtime, local, acceptances) {
|
|
102
|
-
const settlements = acceptances.filter(settling);
|
|
103
|
-
if (settlements.length > 0) {
|
|
104
|
-
const set = await together(runtime, local, settlements);
|
|
105
|
-
void statusShown(runtime);
|
|
106
|
-
void runtime.store.changed(set);
|
|
107
|
-
}
|
|
108
|
-
await unpair(runtime, local);
|
|
109
|
-
}
|
|
110
80
|
async function adopted(runtime, room, local, submitted, accepted) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
await
|
|
114
|
-
|
|
81
|
+
let kept = true;
|
|
82
|
+
await settle(runtime, [room.locator], async (held) => {
|
|
83
|
+
const adopting = await adoption(runtime, room, held.get(room.locator)?.replica, local, submitted, accepted);
|
|
84
|
+
kept = adopting !== unconfirmed;
|
|
85
|
+
return restands([adopting]);
|
|
115
86
|
});
|
|
116
|
-
return
|
|
87
|
+
return kept;
|
|
117
88
|
}
|
|
118
89
|
async function adoptedMove(runtime, room, partner, local, submitted, accepted) {
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const left = await
|
|
123
|
-
const
|
|
90
|
+
const other = runtime.presence.room(partner);
|
|
91
|
+
let kept = true;
|
|
92
|
+
await settle(runtime, [room.locator, partner], async (held) => {
|
|
93
|
+
const left = await adoption(runtime, room, held.get(room.locator)?.replica, local, submitted, accepted);
|
|
94
|
+
const there = held.get(partner)?.replica;
|
|
95
|
+
const arriving = there?.queue.find((batch) => batch.id === submitted.id);
|
|
124
96
|
const arrived = other === undefined || arriving === undefined || accepted.destination === undefined
|
|
125
97
|
? null
|
|
126
|
-
: await
|
|
98
|
+
: await adoption(runtime, other, there, local, arriving, {
|
|
127
99
|
kind: 'accepted',
|
|
128
100
|
...accepted.destination,
|
|
129
101
|
});
|
|
130
|
-
|
|
131
|
-
return
|
|
102
|
+
kept = left !== unconfirmed;
|
|
103
|
+
return restands([left, arrived]);
|
|
132
104
|
});
|
|
133
105
|
submitLater(runtime, partner);
|
|
134
|
-
return
|
|
106
|
+
return kept;
|
|
107
|
+
}
|
|
108
|
+
async function writtenOf({ store }, local, locator, batch) {
|
|
109
|
+
const record = (await store.record(locator));
|
|
110
|
+
const paths = [...touchedBy([batch])];
|
|
111
|
+
const confirmed = await stepped(slicing(await local.entries(record.key, 'confirmed', paths), paths));
|
|
112
|
+
return stepped(writtenDocuments(confirmed, batch, store.composed(record)));
|
|
113
|
+
}
|
|
114
|
+
const STALE_BASES = new Set(['base_revision_stale', 'merge_conflict']);
|
|
115
|
+
function staleOnly(fields) {
|
|
116
|
+
const { conflicts } = fields;
|
|
117
|
+
return (Array.isArray(conflicts) &&
|
|
118
|
+
conflicts.length > 0 &&
|
|
119
|
+
conflicts.every((conflict) => typeof conflict === 'object' &&
|
|
120
|
+
conflict !== null &&
|
|
121
|
+
STALE_BASES.has(conflict.code)));
|
|
122
|
+
}
|
|
123
|
+
function rebuilt(sent, again) {
|
|
124
|
+
return (again.every((document) => document === null || !document.stale) &&
|
|
125
|
+
JSON.stringify(again) !== JSON.stringify(sent));
|
|
135
126
|
}
|
|
136
127
|
async function behindIn({ store }, locator, batch) {
|
|
137
128
|
const local = await store.open();
|
|
@@ -141,38 +132,12 @@ async function behindIn({ store }, locator, batch) {
|
|
|
141
132
|
]);
|
|
142
133
|
return room ? order.indexOf(batch.id) > 0 : order.length > 0;
|
|
143
134
|
}
|
|
144
|
-
async function unpaired(local, skipped) {
|
|
145
|
-
const { queued, moving } = await local.moving();
|
|
146
|
-
for (const { locator, batch, state } of moving) {
|
|
147
|
-
const partner = partnerOf(batch, locator);
|
|
148
|
-
if (partner === null || skipped.has(pendingKey(locator, batch.id)))
|
|
149
|
-
continue;
|
|
150
|
-
if (queued.get(partner)?.includes(batch.id) === true)
|
|
151
|
-
continue;
|
|
152
|
-
if (!leavingIn(batch, locator) || withdrawable(new Map([[batch.id, state]]))(batch)) {
|
|
153
|
-
return { locator, batch };
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
export async function unpair(runtime, local) {
|
|
159
|
-
const { store, socket } = runtime;
|
|
160
|
-
const handled = new Set();
|
|
161
|
-
for (let held = await unpaired(local, handled); held !== null && socket.continuing(); held = await unpaired(local, handled)) {
|
|
162
|
-
const { locator, batch } = held;
|
|
163
|
-
handled.add(pendingKey(locator, batch.id));
|
|
164
|
-
store.changed(await together(runtime, local, [await unpairing(runtime, local, locator, [batch])]));
|
|
165
|
-
}
|
|
166
|
-
if (handled.size === 0)
|
|
167
|
-
return;
|
|
168
|
-
statusShown(runtime);
|
|
169
|
-
}
|
|
170
135
|
async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
171
|
-
const { store, socket,
|
|
136
|
+
const { store, socket, presence } = runtime;
|
|
172
137
|
while (socket.continuing() &&
|
|
173
138
|
socket.session.now().authorization !== undefined &&
|
|
174
139
|
!signal.aborted) {
|
|
175
|
-
const headId = (await local.order(room.locator)).find((id) => store.
|
|
140
|
+
const headId = (await local.order(room.locator)).find((id) => store.conflicted.of(room.locator, id) === undefined);
|
|
176
141
|
if (headId === undefined)
|
|
177
142
|
return 'done';
|
|
178
143
|
const [head, pending] = await Promise.all([
|
|
@@ -201,27 +166,25 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
201
166
|
}
|
|
202
167
|
if (socket.writesHeld()) {
|
|
203
168
|
progress.complete = false;
|
|
204
|
-
journal.record(`submission ${room.locator} ${head.id} held`);
|
|
205
169
|
return 'done';
|
|
206
170
|
}
|
|
207
171
|
const lost = earlier || submission.state === 'submitted';
|
|
208
172
|
let result;
|
|
209
|
-
|
|
173
|
+
const written = await writtenOf(runtime, local, room.locator, head);
|
|
210
174
|
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'submitted' }, lost));
|
|
211
|
-
if (socket.session.now().paused ||
|
|
175
|
+
if (socket.session.now().paused || presence.lost(room.locator))
|
|
212
176
|
return 'done';
|
|
213
177
|
if (signal.aborted || socket.writesHeld()) {
|
|
214
178
|
await store.exclusive(() => mark(runtime, local, room.locator, head, submission, earlier));
|
|
215
179
|
if (signal.aborted)
|
|
216
180
|
return 'done';
|
|
217
181
|
progress.complete = false;
|
|
218
|
-
journal.record(`submission ${room.locator} ${head.id} held`);
|
|
219
182
|
return 'done';
|
|
220
183
|
}
|
|
221
184
|
const opensBefore = socket.session.now().openSignals;
|
|
222
185
|
const answeredHere = socket.awaitingAnswer(room.locator);
|
|
223
186
|
const answeredThere = partner === null ? () => { } : socket.awaitingAnswer(partner);
|
|
224
|
-
const
|
|
187
|
+
const heard = () => {
|
|
225
188
|
answeredHere();
|
|
226
189
|
answeredThere();
|
|
227
190
|
};
|
|
@@ -229,33 +192,38 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
229
192
|
result = await socket.mutate(authorized, {
|
|
230
193
|
locator: room.locator,
|
|
231
194
|
changeBatch: head,
|
|
195
|
+
written,
|
|
232
196
|
file: batchFile(store, head),
|
|
233
197
|
...(state?.upload === undefined ? {} : { upload: state.upload }),
|
|
234
198
|
}, (upload) => store.exclusive(() => keepUpload(runtime, local, room.locator, head.id, upload)));
|
|
235
199
|
}
|
|
236
|
-
catch {
|
|
237
|
-
|
|
200
|
+
catch (error) {
|
|
201
|
+
runtime.retries.failed('sending', submitting(room.locator), error);
|
|
202
|
+
heard();
|
|
238
203
|
progress.complete = false;
|
|
239
204
|
if (socket.continuing())
|
|
240
205
|
progress.reachable = false;
|
|
241
206
|
return 'again';
|
|
242
207
|
}
|
|
243
208
|
if (signal.aborted) {
|
|
244
|
-
|
|
209
|
+
heard();
|
|
245
210
|
return 'done';
|
|
246
211
|
}
|
|
247
212
|
if (result.kind !== 'accepted' || !socket.continuing())
|
|
248
|
-
|
|
213
|
+
heard();
|
|
249
214
|
if (!socket.continuing())
|
|
250
215
|
return 'done';
|
|
216
|
+
if (result.kind === 'accepted')
|
|
217
|
+
runtime.retries.succeeded('sending', submitting(room.locator));
|
|
251
218
|
if (result.kind === 'transport-uncertainty') {
|
|
219
|
+
runtime.retries.uncertain('sending', submitting(room.locator), result);
|
|
252
220
|
progress.complete = false;
|
|
253
221
|
progress.reachable = false;
|
|
254
222
|
return 'again';
|
|
255
223
|
}
|
|
256
224
|
if (result.kind === 'room-not-readable') {
|
|
257
225
|
progress.complete = false;
|
|
258
|
-
roomUnreadable(runtime,
|
|
226
|
+
roomUnreadable(runtime, (presence.room(result.locator) ?? room).locator);
|
|
259
227
|
return 'done';
|
|
260
228
|
}
|
|
261
229
|
if (result.kind === 'revoked-authorization') {
|
|
@@ -263,81 +231,61 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
263
231
|
return 'done';
|
|
264
232
|
}
|
|
265
233
|
if (result.kind === 'scoped-refusal') {
|
|
266
|
-
await
|
|
234
|
+
await scoped(runtime, result, room.locator, declared(room));
|
|
267
235
|
progress.complete = false;
|
|
268
236
|
return 'done';
|
|
269
237
|
}
|
|
270
238
|
if (result.kind === 'write-halted') {
|
|
271
|
-
journal.record(`outcome ${room.locator} ${head.id} write-halted`);
|
|
272
239
|
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'waiting' }, lost));
|
|
273
240
|
if (!socket.haltedSince(opensBefore))
|
|
274
241
|
continue;
|
|
275
242
|
progress.complete = false;
|
|
276
243
|
return 'done';
|
|
277
244
|
}
|
|
278
|
-
const other = partner === null ? undefined :
|
|
279
|
-
if (result.kind === 'conflicted' ||
|
|
280
|
-
result.kind === 'rejected' ||
|
|
281
|
-
result.kind === 'retryable-refusal') {
|
|
282
|
-
journal.record(`outcome ${room.locator} ${head.id} ${result.kind}` +
|
|
283
|
-
(result.kind === 'conflicted' && result.roomVersion !== undefined
|
|
284
|
-
? ` ${result.roomVersion}`
|
|
285
|
-
: ''));
|
|
286
|
-
journal.record(`refusal ${result.kind} ${result.code}`);
|
|
287
|
-
}
|
|
245
|
+
const other = partner === null ? undefined : presence.room(partner);
|
|
288
246
|
if (result.kind === 'retryable-refusal') {
|
|
247
|
+
runtime.retries.failed('sending', submitting(room.locator), refusalError(result));
|
|
289
248
|
const reset = result.reset;
|
|
290
249
|
progress.complete = false;
|
|
291
250
|
await store.exclusive(() => mark(runtime, local, room.locator, head, reset === undefined ? { state: 'waiting' } : { state: 'reset', reset }, lost));
|
|
292
251
|
return reset === undefined ? 'again' : { at: Date.parse(reset) };
|
|
293
252
|
}
|
|
253
|
+
if (result.kind === 'conflicted' && partner === null && staleOnly(result.fields)) {
|
|
254
|
+
const here = await advanced(runtime, room, local, authorized);
|
|
255
|
+
if (here === null && rebuilt(written, await writtenOf(runtime, local, room.locator, head))) {
|
|
256
|
+
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'waiting' }, lost));
|
|
257
|
+
continue;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
294
260
|
if (result.kind === 'conflicted' || result.kind === 'rejected') {
|
|
295
|
-
const left = leaving(head, result);
|
|
296
261
|
const refreshed = async () => ({
|
|
297
|
-
there: other === undefined ? null : await advanced(other, local, authorized),
|
|
298
|
-
here: await advanced(room, local, authorized),
|
|
262
|
+
there: other === undefined ? null : await advanced(runtime, other, local, authorized),
|
|
263
|
+
here: await advanced(runtime, room, local, authorized),
|
|
299
264
|
});
|
|
300
265
|
const judged = result.kind === 'conflicted' && other !== undefined ? await refreshed() : null;
|
|
301
266
|
if (judged !== null && (judged.there !== null || judged.here !== null)) {
|
|
302
267
|
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'waiting' }, lost));
|
|
303
268
|
if (other !== undefined && judged.there !== null) {
|
|
304
|
-
await withhold(judged.there, other, local, progress);
|
|
269
|
+
await withhold(runtime, judged.there, other, local, progress);
|
|
305
270
|
}
|
|
306
271
|
if (judged.here !== null)
|
|
307
|
-
await withhold(judged.here, room, local, progress);
|
|
272
|
+
await withhold(runtime, judged.here, room, local, progress);
|
|
308
273
|
return 'done';
|
|
309
274
|
}
|
|
310
|
-
await
|
|
311
|
-
if (!socket.continuing())
|
|
312
|
-
return;
|
|
313
|
-
const work = await store.work(room.locator);
|
|
314
|
-
const current = work.replica;
|
|
315
|
-
if (current === undefined || !current.queue.some((batch) => batch.id === head.id)) {
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
const confirmedLayer = await sliceAt(store, current.record, 'confirmed', [head]);
|
|
319
|
-
const held = result.kind === 'conflicted' &&
|
|
320
|
-
(await landedWhole(store, room.locator, head, confirmedLayer, result.affected));
|
|
321
|
-
if (held && partner === null && !landed(head, confirmedLayer)) {
|
|
322
|
-
store.landed.hold(room.locator, head.id, Object.fromEntries([...touchedBy([head])].map((path) => [path, confirmedLayer.revisions[path]])));
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
store.changed(await settle(runtime, local, room.locator, work, current.record, current.queue.filter((batch) => batch.id !== head.id), { leaving: [held ? { ...left, returned: null } : left] }));
|
|
326
|
-
await unpair(runtime, local);
|
|
327
|
-
statusShown(runtime);
|
|
328
|
-
});
|
|
275
|
+
await answered(runtime, room.locator, head, result);
|
|
329
276
|
const { there, here } = judged ?? (await refreshed());
|
|
330
|
-
if (other !== undefined && there !== null)
|
|
331
|
-
await withhold(there, other, local, progress);
|
|
277
|
+
if (other !== undefined && there !== null) {
|
|
278
|
+
await withhold(runtime, there, other, local, progress);
|
|
279
|
+
}
|
|
332
280
|
if (here !== null) {
|
|
333
|
-
await withhold(here, room, local, progress);
|
|
281
|
+
await withhold(runtime, here, room, local, progress);
|
|
334
282
|
return 'done';
|
|
335
283
|
}
|
|
336
284
|
continue;
|
|
337
285
|
}
|
|
338
286
|
const kept = await (partner === null
|
|
339
287
|
? adopted(runtime, room, local, head, result)
|
|
340
|
-
: adoptedMove(runtime, room, partner, local, head, result)).finally(
|
|
288
|
+
: adoptedMove(runtime, room, partner, local, head, result)).finally(heard);
|
|
341
289
|
if (!kept) {
|
|
342
290
|
progress.complete = false;
|
|
343
291
|
return 'done';
|
|
@@ -345,14 +293,17 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
345
293
|
}
|
|
346
294
|
return 'done';
|
|
347
295
|
}
|
|
296
|
+
function submitting(locator) {
|
|
297
|
+
return `submit ${locator}`;
|
|
298
|
+
}
|
|
348
299
|
export function submitLater(runtime, locator) {
|
|
349
300
|
if (runtime.localSaves)
|
|
350
301
|
return;
|
|
351
|
-
void runtime.recovery.attempt(
|
|
302
|
+
void runtime.recovery.attempt(submitting(locator), (signal) => submitPass(runtime, locator, signal));
|
|
352
303
|
}
|
|
353
304
|
async function submitPass(runtime, locator, signal) {
|
|
354
|
-
const { store, socket } = runtime;
|
|
355
|
-
const room =
|
|
305
|
+
const { store, socket, presence } = runtime;
|
|
306
|
+
const room = presence.room(locator);
|
|
356
307
|
if (!socket.continuing() || socket.stopping() || room === undefined) {
|
|
357
308
|
return 'done';
|
|
358
309
|
}
|
|
@@ -365,7 +316,8 @@ async function submitPass(runtime, locator, signal) {
|
|
|
365
316
|
return 'done';
|
|
366
317
|
next = await submitRoom(runtime, room, await store.open(), authorization, progress, signal);
|
|
367
318
|
}
|
|
368
|
-
catch {
|
|
319
|
+
catch (error) {
|
|
320
|
+
runtime.retries.failed('sending', submitting(locator), error);
|
|
369
321
|
progress.reachable = false;
|
|
370
322
|
next = 'again';
|
|
371
323
|
}
|
|
@@ -374,12 +326,3 @@ async function submitPass(runtime, locator, signal) {
|
|
|
374
326
|
await rest(runtime, progress);
|
|
375
327
|
return next === 'again' && !socket.isOpen() ? 'done' : next;
|
|
376
328
|
}
|
|
377
|
-
export async function submitAll(runtime) {
|
|
378
|
-
const { store } = runtime;
|
|
379
|
-
if (runtime.localSaves)
|
|
380
|
-
return;
|
|
381
|
-
for (const locator of await (await store.open()).queued()) {
|
|
382
|
-
if (!store.fences.has(locator))
|
|
383
|
-
submitLater(runtime, locator);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Expected, type Expecting } from './expectation.js';
|
|
2
|
+
export type Ended = 'accepted' | 'refused' | 'unanswered' | 'unsent';
|
|
3
|
+
export type Send<O> = {
|
|
4
|
+
(name: string, input: unknown, sending: (operation: string) => Promise<O>): Promise<O>;
|
|
5
|
+
expect(expected: Expected): void;
|
|
6
|
+
};
|
|
7
|
+
export type LaneShown<O> = {
|
|
8
|
+
readonly busy: boolean;
|
|
9
|
+
readonly drawn: boolean;
|
|
10
|
+
readonly ended: O | null;
|
|
11
|
+
};
|
|
12
|
+
export type Lane<O> = {
|
|
13
|
+
run(steps: (send: Send<O>) => Promise<O>, expected?: Expected): Promise<O>;
|
|
14
|
+
shown(): LaneShown<O>;
|
|
15
|
+
subscribe(listener: () => void): () => void;
|
|
16
|
+
forget(): void;
|
|
17
|
+
};
|
|
18
|
+
export type Acting<O> = {
|
|
19
|
+
open(): Lane<O>;
|
|
20
|
+
};
|
|
21
|
+
export type ActingRules<O> = {
|
|
22
|
+
readonly store: Pick<Expecting, 'begin' | 'expect' | 'drop'>;
|
|
23
|
+
readonly uncertain: O;
|
|
24
|
+
ending(outcome: O): Ended;
|
|
25
|
+
acted?(): void;
|
|
26
|
+
mint?(): string;
|
|
27
|
+
settles?(operation: string): Promise<boolean>;
|
|
28
|
+
};
|
|
29
|
+
export declare function acting<O>(rules: ActingRules<O>): Acting<O>;
|
|
30
|
+
//# sourceMappingURL=act-lanes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"act-lanes.d.ts","sourceRoot":"","sources":["../src/act-lanes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG/E,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;AAErE,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI;IACpB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACvF,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI;IACpB,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3E,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC;IACtB,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;IAC5C,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IACtB,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC;IAC7D,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC;IACtB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC;IAC1B,KAAK,CAAC,IAAI,IAAI,CAAC;IACf,IAAI,CAAC,IAAI,MAAM,CAAC;IAChB,OAAO,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/C,CAAC;AAUF,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CA6N1D"}
|