@agentshouse/mdruntime 0.1.0-c6bf34fa9e444 → 0.1.0-c6d3d5d8beeb0
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 +105 -166
- 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 +180 -85
- package/dist/adapter.d.ts +222 -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 -18
- 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 +7 -2
- 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 +30 -23
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +55 -68
- 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 +101 -63
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +45 -28
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +150 -0
- package/dist/conversation-live.d.ts.map +1 -0
- package/dist/conversation-live.js +260 -0
- package/dist/conversation-row.d.ts +23 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +39 -4
- package/dist/conversation.d.ts +67 -49
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +993 -1032
- 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 +26 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +126 -36
- package/dist/expectation.d.ts +26 -13
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +72 -19
- package/dist/failure.d.ts +3 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +8 -0
- package/dist/figures.d.ts +2 -1
- package/dist/figures.d.ts.map +1 -1
- package/dist/figures.js +8 -6
- 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 +30 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -8
- package/dist/install.d.ts +10 -6
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +93 -116
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +81 -56
- 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 +29 -22
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +71 -78
- package/dist/live.d.ts +19 -3
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +97 -39
- 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 +12 -39
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +11 -23
- package/dist/media.d.ts +20 -4
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +184 -37
- package/dist/memory.d.ts +10 -4
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +103 -40
- package/dist/messages.d.ts +21 -6
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +54 -42
- 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 +97 -137
- 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 +217 -85
- 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 +7 -7
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +26 -11
- 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 +6 -58
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +28 -110
- 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 +33 -7
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +210 -92
- 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 +138 -80
- package/dist/query.d.ts +2 -3
- package/dist/query.d.ts.map +1 -1
- package/dist/questions.d.ts +3 -5
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +6 -7
- package/dist/queue.d.ts +40 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +482 -0
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +200 -40
- package/dist/react.d.ts +21 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +33 -1
- package/dist/readiness.d.ts +23 -5
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +18 -10
- package/dist/reads.d.ts +5 -2
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +64 -11
- 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 +5 -6
- package/dist/replica.d.ts +6 -16
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +20 -21
- 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 +32 -9
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +282 -72
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +29 -23
- 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 +16 -21
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts +43 -86
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +337 -232
- package/dist/saves.d.ts +9 -45
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +208 -748
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +4 -5
- package/dist/selector.d.ts +3 -0
- package/dist/selector.d.ts.map +1 -0
- package/dist/selector.js +22 -0
- 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 +10 -6
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +108 -75
- 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 -2
- 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 +13 -16
- package/dist/source.d.ts +42 -7
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +81 -13
- 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 +33 -11
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +94 -28
- 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/space.d.ts +1 -1
- package/dist/store/space.d.ts.map +1 -1
- package/dist/store/space.js +0 -2
- package/dist/store/watchers.js +1 -2
- package/dist/store.d.ts +26 -16
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +50 -18
- package/dist/stored.d.ts +42 -17
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +236 -66
- package/dist/surface.d.ts +21 -9
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +74 -38
- package/dist/sync.d.ts +4 -3
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +136 -110
- package/dist/tables.d.ts +43 -58
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +114 -334
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +8 -9
- 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 -43
- 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":"
|
|
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,19 +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
|
-
import { runtimeError } from './failure.js';
|
|
4
5
|
import { olderThan, showing } from './install.js';
|
|
5
|
-
import {
|
|
6
|
+
import { scoped } from './models.js';
|
|
7
|
+
import { answered, settle } from './queue.js';
|
|
6
8
|
import { refuse } from './refusal.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
+
import { writtenDocuments } from './overlay.js';
|
|
10
|
+
import { returnedPaths, returning, slicing, touchedBy, } from './replica.js';
|
|
11
|
+
import { batchFile } from './saves.js';
|
|
9
12
|
import { rest, roomUnreadable, statusShown } from './shown.js';
|
|
13
|
+
import { advanced, withhold } from './sync.js';
|
|
10
14
|
import { unconfirmed } from './transfer.js';
|
|
11
15
|
import { stepped } from './turn.js';
|
|
12
|
-
function pendingKey(locator, id) {
|
|
13
|
-
return `${locator}\u0000${id}`;
|
|
14
|
-
}
|
|
15
16
|
async function mark(runtime, local, locator, batch, submission, lost) {
|
|
16
|
-
const { store, socket } = runtime;
|
|
17
|
+
const { store, socket, presence } = runtime;
|
|
17
18
|
const partner = partnerOf(batch, locator);
|
|
18
19
|
for (const held of partner === null ? [locator] : [locator, partner]) {
|
|
19
20
|
const { state, room } = await local.pending(held, batch.id);
|
|
@@ -23,116 +24,105 @@ async function mark(runtime, local, locator, batch, submission, lost) {
|
|
|
23
24
|
continue;
|
|
24
25
|
}
|
|
25
26
|
await local.submit(held, batch.id, submission, lost);
|
|
26
|
-
if (
|
|
27
|
+
if (presence.lost(held))
|
|
27
28
|
continue;
|
|
28
29
|
if (room)
|
|
29
30
|
store.changed(changeSet(held, { queue: true }));
|
|
30
31
|
}
|
|
31
32
|
statusShown(runtime);
|
|
32
33
|
}
|
|
33
|
-
async function keepUpload({
|
|
34
|
+
async function keepUpload({ socket, presence }, local, locator, identifier, upload) {
|
|
34
35
|
if (!socket.continuing())
|
|
35
|
-
throw new Error(
|
|
36
|
+
throw new Error();
|
|
36
37
|
await local.keepUpload(locator, identifier, upload);
|
|
37
|
-
if (
|
|
38
|
-
throw
|
|
38
|
+
if (presence.lost(locator))
|
|
39
|
+
throw new Error();
|
|
39
40
|
if (!socket.continuing())
|
|
40
|
-
throw new Error(
|
|
41
|
-
}
|
|
42
|
-
function leaving(batch, result) {
|
|
43
|
-
return {
|
|
44
|
-
batch,
|
|
45
|
-
returned: {
|
|
46
|
-
kind: result.kind,
|
|
47
|
-
code: result.code,
|
|
48
|
-
fields: result.fields,
|
|
49
|
-
retryable: result.retryable,
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function logAccepted({ journal }, locator, submitted, accepted) {
|
|
54
|
-
journal.record(`outcome ${locator} ${submitted.id} accepted ${accepted.roomVersion}` +
|
|
55
|
-
(accepted.author === undefined ? '' : ` author ${accepted.author}`) +
|
|
56
|
-
(accepted.time === undefined ? '' : ` time ${accepted.time}`));
|
|
57
|
-
}
|
|
58
|
-
function settling(acceptance) {
|
|
59
|
-
return acceptance !== null && 'apply' in acceptance;
|
|
41
|
+
throw new Error();
|
|
60
42
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
43
|
+
function restands(adoptions) {
|
|
44
|
+
return adoptions.flatMap((one) => (one === null || !('record' in one) ? [] : [one]));
|
|
63
45
|
}
|
|
64
|
-
async function
|
|
46
|
+
async function adoption(runtime, room, current, local, submitted, accepted) {
|
|
65
47
|
const { store, socket } = runtime;
|
|
66
48
|
if (!socket.continuing())
|
|
67
49
|
return unconfirmed;
|
|
68
|
-
const work = await store.work(room.locator);
|
|
69
|
-
const current = work.replica;
|
|
70
50
|
if (current === undefined || !current.queue.some((batch) => batch.id === submitted.id)) {
|
|
71
51
|
return null;
|
|
72
52
|
}
|
|
73
53
|
const held = current.record.roomVersion;
|
|
74
|
-
logAccepted(runtime, room.locator, submitted, accepted);
|
|
75
54
|
let record = current.record;
|
|
76
|
-
let
|
|
55
|
+
let adopted;
|
|
77
56
|
if (!socket.reads.reached(room.locator, held, accepted.roomVersion) &&
|
|
78
57
|
!olderThan(runtime, room.locator, accepted.roomVersion, held)) {
|
|
79
58
|
const paths = [...returnedPaths(submitted, accepted)];
|
|
80
59
|
const confirmedLayer = await stepped(slicing(await local.entries(record.key, 'confirmed', paths), paths));
|
|
81
|
-
|
|
60
|
+
adopted = await stepped(returning(confirmedLayer, submitted, accepted, accepted.roomVersion, store.composed(record)));
|
|
82
61
|
record = {
|
|
83
62
|
...record,
|
|
84
63
|
roomVersion: socket.follows(room.locator, held, accepted.roomVersion)
|
|
85
64
|
? accepted.roomVersion
|
|
86
65
|
: held,
|
|
87
66
|
};
|
|
88
|
-
changes = back;
|
|
89
67
|
}
|
|
90
|
-
const settled = await settlement(runtime, local, room.locator, work, record, current.queue.filter((batch) => batch.id !== submitted.id), { room: true, ...(changes === undefined ? {} : { changes }) });
|
|
91
68
|
const reached = record.roomVersion;
|
|
92
69
|
return {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
70
|
+
locator: room.locator,
|
|
71
|
+
record,
|
|
72
|
+
accepted: submitted.id,
|
|
73
|
+
...(adopted === undefined ? {} : { adopted }),
|
|
74
|
+
after() {
|
|
96
75
|
showing(runtime, room.locator, accepted.roomVersion, reached);
|
|
97
|
-
readable(
|
|
98
|
-
return set;
|
|
76
|
+
runtime.presence.readable(room.locator);
|
|
99
77
|
},
|
|
100
78
|
};
|
|
101
79
|
}
|
|
102
|
-
async function adoptedTogether(runtime, local, acceptances) {
|
|
103
|
-
const settlements = acceptances.filter(settling);
|
|
104
|
-
if (settlements.length > 0) {
|
|
105
|
-
const set = await together(runtime, local, settlements);
|
|
106
|
-
void statusShown(runtime);
|
|
107
|
-
void runtime.store.changed(set);
|
|
108
|
-
}
|
|
109
|
-
await unpair(runtime, local);
|
|
110
|
-
}
|
|
111
80
|
async function adopted(runtime, room, local, submitted, accepted) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
await
|
|
115
|
-
|
|
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]);
|
|
116
86
|
});
|
|
117
|
-
return
|
|
87
|
+
return kept;
|
|
118
88
|
}
|
|
119
89
|
async function adoptedMove(runtime, room, partner, local, submitted, accepted) {
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const left = await
|
|
124
|
-
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);
|
|
125
96
|
const arrived = other === undefined || arriving === undefined || accepted.destination === undefined
|
|
126
97
|
? null
|
|
127
|
-
: await
|
|
98
|
+
: await adoption(runtime, other, there, local, arriving, {
|
|
128
99
|
kind: 'accepted',
|
|
129
100
|
...accepted.destination,
|
|
130
101
|
});
|
|
131
|
-
|
|
132
|
-
return
|
|
102
|
+
kept = left !== unconfirmed;
|
|
103
|
+
return restands([left, arrived]);
|
|
133
104
|
});
|
|
134
105
|
submitLater(runtime, partner);
|
|
135
|
-
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));
|
|
136
126
|
}
|
|
137
127
|
async function behindIn({ store }, locator, batch) {
|
|
138
128
|
const local = await store.open();
|
|
@@ -142,38 +132,12 @@ async function behindIn({ store }, locator, batch) {
|
|
|
142
132
|
]);
|
|
143
133
|
return room ? order.indexOf(batch.id) > 0 : order.length > 0;
|
|
144
134
|
}
|
|
145
|
-
async function unpaired(local, skipped) {
|
|
146
|
-
const { queued, moving } = await local.moving();
|
|
147
|
-
for (const { locator, batch, state } of moving) {
|
|
148
|
-
const partner = partnerOf(batch, locator);
|
|
149
|
-
if (partner === null || skipped.has(pendingKey(locator, batch.id)))
|
|
150
|
-
continue;
|
|
151
|
-
if (queued.get(partner)?.includes(batch.id) === true)
|
|
152
|
-
continue;
|
|
153
|
-
if (!leavingIn(batch, locator) || withdrawable(new Map([[batch.id, state]]))(batch)) {
|
|
154
|
-
return { locator, batch };
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
export async function unpair(runtime, local) {
|
|
160
|
-
const { store, socket } = runtime;
|
|
161
|
-
const handled = new Set();
|
|
162
|
-
for (let held = await unpaired(local, handled); held !== null && socket.continuing(); held = await unpaired(local, handled)) {
|
|
163
|
-
const { locator, batch } = held;
|
|
164
|
-
handled.add(pendingKey(locator, batch.id));
|
|
165
|
-
store.changed(await together(runtime, local, [await unpairing(runtime, local, locator, [batch])]));
|
|
166
|
-
}
|
|
167
|
-
if (handled.size === 0)
|
|
168
|
-
return;
|
|
169
|
-
statusShown(runtime);
|
|
170
|
-
}
|
|
171
135
|
async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
172
|
-
const { store, socket,
|
|
136
|
+
const { store, socket, presence } = runtime;
|
|
173
137
|
while (socket.continuing() &&
|
|
174
138
|
socket.session.now().authorization !== undefined &&
|
|
175
139
|
!signal.aborted) {
|
|
176
|
-
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);
|
|
177
141
|
if (headId === undefined)
|
|
178
142
|
return 'done';
|
|
179
143
|
const [head, pending] = await Promise.all([
|
|
@@ -202,27 +166,25 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
202
166
|
}
|
|
203
167
|
if (socket.writesHeld()) {
|
|
204
168
|
progress.complete = false;
|
|
205
|
-
journal.record(`submission ${room.locator} ${head.id} held`);
|
|
206
169
|
return 'done';
|
|
207
170
|
}
|
|
208
171
|
const lost = earlier || submission.state === 'submitted';
|
|
209
172
|
let result;
|
|
210
|
-
|
|
173
|
+
const written = await writtenOf(runtime, local, room.locator, head);
|
|
211
174
|
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'submitted' }, lost));
|
|
212
|
-
if (socket.session.now().paused ||
|
|
175
|
+
if (socket.session.now().paused || presence.lost(room.locator))
|
|
213
176
|
return 'done';
|
|
214
177
|
if (signal.aborted || socket.writesHeld()) {
|
|
215
178
|
await store.exclusive(() => mark(runtime, local, room.locator, head, submission, earlier));
|
|
216
179
|
if (signal.aborted)
|
|
217
180
|
return 'done';
|
|
218
181
|
progress.complete = false;
|
|
219
|
-
journal.record(`submission ${room.locator} ${head.id} held`);
|
|
220
182
|
return 'done';
|
|
221
183
|
}
|
|
222
184
|
const opensBefore = socket.session.now().openSignals;
|
|
223
185
|
const answeredHere = socket.awaitingAnswer(room.locator);
|
|
224
186
|
const answeredThere = partner === null ? () => { } : socket.awaitingAnswer(partner);
|
|
225
|
-
const
|
|
187
|
+
const heard = () => {
|
|
226
188
|
answeredHere();
|
|
227
189
|
answeredThere();
|
|
228
190
|
};
|
|
@@ -230,33 +192,38 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
230
192
|
result = await socket.mutate(authorized, {
|
|
231
193
|
locator: room.locator,
|
|
232
194
|
changeBatch: head,
|
|
195
|
+
written,
|
|
233
196
|
file: batchFile(store, head),
|
|
234
197
|
...(state?.upload === undefined ? {} : { upload: state.upload }),
|
|
235
198
|
}, (upload) => store.exclusive(() => keepUpload(runtime, local, room.locator, head.id, upload)));
|
|
236
199
|
}
|
|
237
|
-
catch {
|
|
238
|
-
|
|
200
|
+
catch (error) {
|
|
201
|
+
runtime.retries.failed('sending', submitting(room.locator), error);
|
|
202
|
+
heard();
|
|
239
203
|
progress.complete = false;
|
|
240
204
|
if (socket.continuing())
|
|
241
205
|
progress.reachable = false;
|
|
242
206
|
return 'again';
|
|
243
207
|
}
|
|
244
208
|
if (signal.aborted) {
|
|
245
|
-
|
|
209
|
+
heard();
|
|
246
210
|
return 'done';
|
|
247
211
|
}
|
|
248
212
|
if (result.kind !== 'accepted' || !socket.continuing())
|
|
249
|
-
|
|
213
|
+
heard();
|
|
250
214
|
if (!socket.continuing())
|
|
251
215
|
return 'done';
|
|
216
|
+
if (result.kind === 'accepted')
|
|
217
|
+
runtime.retries.succeeded('sending', submitting(room.locator));
|
|
252
218
|
if (result.kind === 'transport-uncertainty') {
|
|
219
|
+
runtime.retries.uncertain('sending', submitting(room.locator), result);
|
|
253
220
|
progress.complete = false;
|
|
254
221
|
progress.reachable = false;
|
|
255
222
|
return 'again';
|
|
256
223
|
}
|
|
257
224
|
if (result.kind === 'room-not-readable') {
|
|
258
225
|
progress.complete = false;
|
|
259
|
-
roomUnreadable(runtime,
|
|
226
|
+
roomUnreadable(runtime, (presence.room(result.locator) ?? room).locator);
|
|
260
227
|
return 'done';
|
|
261
228
|
}
|
|
262
229
|
if (result.kind === 'revoked-authorization') {
|
|
@@ -264,84 +231,61 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
264
231
|
return 'done';
|
|
265
232
|
}
|
|
266
233
|
if (result.kind === 'scoped-refusal') {
|
|
267
|
-
await
|
|
234
|
+
await scoped(runtime, result, room.locator, declared(room));
|
|
268
235
|
progress.complete = false;
|
|
269
236
|
return 'done';
|
|
270
237
|
}
|
|
271
238
|
if (result.kind === 'write-halted') {
|
|
272
|
-
journal.record(`outcome ${room.locator} ${head.id} write-halted`);
|
|
273
239
|
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'waiting' }, lost));
|
|
274
240
|
if (!socket.haltedSince(opensBefore))
|
|
275
241
|
continue;
|
|
276
242
|
progress.complete = false;
|
|
277
243
|
return 'done';
|
|
278
244
|
}
|
|
279
|
-
const other = partner === null ? undefined :
|
|
280
|
-
if (result.kind === 'conflicted' ||
|
|
281
|
-
result.kind === 'rejected' ||
|
|
282
|
-
result.kind === 'retryable-refusal') {
|
|
283
|
-
journal.record(`outcome ${room.locator} ${head.id} ${result.kind}` +
|
|
284
|
-
(result.kind === 'conflicted' && result.roomVersion !== undefined
|
|
285
|
-
? ` ${result.roomVersion}`
|
|
286
|
-
: ''));
|
|
287
|
-
journal.record(`refusal ${result.kind} ${result.code}`);
|
|
288
|
-
}
|
|
245
|
+
const other = partner === null ? undefined : presence.room(partner);
|
|
289
246
|
if (result.kind === 'retryable-refusal') {
|
|
247
|
+
runtime.retries.failed('sending', submitting(room.locator), refusalError(result));
|
|
290
248
|
const reset = result.reset;
|
|
291
249
|
progress.complete = false;
|
|
292
250
|
await store.exclusive(() => mark(runtime, local, room.locator, head, reset === undefined ? { state: 'waiting' } : { state: 'reset', reset }, lost));
|
|
293
251
|
return reset === undefined ? 'again' : { at: Date.parse(reset) };
|
|
294
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
|
+
}
|
|
295
260
|
if (result.kind === 'conflicted' || result.kind === 'rejected') {
|
|
296
|
-
const left = leaving(head, result);
|
|
297
261
|
const refreshed = async () => ({
|
|
298
|
-
there: other === undefined ? null : await advanced(other, local, authorized),
|
|
299
|
-
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),
|
|
300
264
|
});
|
|
301
265
|
const judged = result.kind === 'conflicted' && other !== undefined ? await refreshed() : null;
|
|
302
266
|
if (judged !== null && (judged.there !== null || judged.here !== null)) {
|
|
303
267
|
await store.exclusive(() => mark(runtime, local, room.locator, head, { state: 'waiting' }, lost));
|
|
304
268
|
if (other !== undefined && judged.there !== null) {
|
|
305
|
-
await withhold(judged.there, other, local, progress);
|
|
269
|
+
await withhold(runtime, judged.there, other, local, progress);
|
|
306
270
|
}
|
|
307
271
|
if (judged.here !== null)
|
|
308
|
-
await withhold(judged.here, room, local, progress);
|
|
272
|
+
await withhold(runtime, judged.here, room, local, progress);
|
|
309
273
|
return 'done';
|
|
310
274
|
}
|
|
311
|
-
await
|
|
312
|
-
if (!socket.continuing())
|
|
313
|
-
return;
|
|
314
|
-
const work = await store.work(room.locator);
|
|
315
|
-
const current = work.replica;
|
|
316
|
-
if (current === undefined || !current.queue.some((batch) => batch.id === head.id)) {
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
const confirmedLayer = await sliceAt(store, current.record, 'confirmed', [head]);
|
|
320
|
-
const held = result.kind === 'conflicted' &&
|
|
321
|
-
(await landedWhole(store, room.locator, head, confirmedLayer, result.affected));
|
|
322
|
-
if (held &&
|
|
323
|
-
result.kind === 'conflicted' &&
|
|
324
|
-
partner === null &&
|
|
325
|
-
!landed(head, confirmedLayer)) {
|
|
326
|
-
store.landed.hold(room.locator, head.id, Object.fromEntries([...touchedBy([head])].map((path) => [path, confirmedLayer.revisions[path]])));
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
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] }));
|
|
330
|
-
await unpair(runtime, local);
|
|
331
|
-
statusShown(runtime);
|
|
332
|
-
});
|
|
275
|
+
await answered(runtime, room.locator, head, result);
|
|
333
276
|
const { there, here } = judged ?? (await refreshed());
|
|
334
|
-
if (other !== undefined && there !== null)
|
|
335
|
-
await withhold(there, other, local, progress);
|
|
277
|
+
if (other !== undefined && there !== null) {
|
|
278
|
+
await withhold(runtime, there, other, local, progress);
|
|
279
|
+
}
|
|
336
280
|
if (here !== null) {
|
|
337
|
-
await withhold(here, room, local, progress);
|
|
281
|
+
await withhold(runtime, here, room, local, progress);
|
|
338
282
|
return 'done';
|
|
339
283
|
}
|
|
340
284
|
continue;
|
|
341
285
|
}
|
|
342
286
|
const kept = await (partner === null
|
|
343
287
|
? adopted(runtime, room, local, head, result)
|
|
344
|
-
: adoptedMove(runtime, room, partner, local, head, result)).finally(
|
|
288
|
+
: adoptedMove(runtime, room, partner, local, head, result)).finally(heard);
|
|
345
289
|
if (!kept) {
|
|
346
290
|
progress.complete = false;
|
|
347
291
|
return 'done';
|
|
@@ -349,14 +293,17 @@ async function submitRoom(runtime, room, local, authorized, progress, signal) {
|
|
|
349
293
|
}
|
|
350
294
|
return 'done';
|
|
351
295
|
}
|
|
296
|
+
function submitting(locator) {
|
|
297
|
+
return `submit ${locator}`;
|
|
298
|
+
}
|
|
352
299
|
export function submitLater(runtime, locator) {
|
|
353
|
-
if (runtime.
|
|
300
|
+
if (runtime.savesLocally(locator))
|
|
354
301
|
return;
|
|
355
|
-
void runtime.recovery.attempt(
|
|
302
|
+
void runtime.recovery.attempt(submitting(locator), (signal) => submitPass(runtime, locator, signal));
|
|
356
303
|
}
|
|
357
304
|
async function submitPass(runtime, locator, signal) {
|
|
358
|
-
const { store, socket } = runtime;
|
|
359
|
-
const room =
|
|
305
|
+
const { store, socket, presence } = runtime;
|
|
306
|
+
const room = presence.room(locator);
|
|
360
307
|
if (!socket.continuing() || socket.stopping() || room === undefined) {
|
|
361
308
|
return 'done';
|
|
362
309
|
}
|
|
@@ -369,7 +316,8 @@ async function submitPass(runtime, locator, signal) {
|
|
|
369
316
|
return 'done';
|
|
370
317
|
next = await submitRoom(runtime, room, await store.open(), authorization, progress, signal);
|
|
371
318
|
}
|
|
372
|
-
catch {
|
|
319
|
+
catch (error) {
|
|
320
|
+
runtime.retries.failed('sending', submitting(locator), error);
|
|
373
321
|
progress.reachable = false;
|
|
374
322
|
next = 'again';
|
|
375
323
|
}
|
|
@@ -378,12 +326,3 @@ async function submitPass(runtime, locator, signal) {
|
|
|
378
326
|
await rest(runtime, progress);
|
|
379
327
|
return next === 'again' && !socket.isOpen() ? 'done' : next;
|
|
380
328
|
}
|
|
381
|
-
export async function submitAll(runtime) {
|
|
382
|
-
const { store } = runtime;
|
|
383
|
-
if (runtime.localSaves)
|
|
384
|
-
return;
|
|
385
|
-
for (const locator of await (await store.open()).queued()) {
|
|
386
|
-
if (!store.fences.has(locator))
|
|
387
|
-
submitLater(runtime, locator);
|
|
388
|
-
}
|
|
389
|
-
}
|
|
@@ -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"}
|