@agentshouse/mdruntime 0.1.0-cefbc8bb8a1c0 → 0.1.0-cf08ada271a7f
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 +10 -10
- package/dist/acceptance.d.ts +3 -0
- package/dist/acceptance.d.ts.map +1 -0
- package/dist/acceptance.js +309 -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 +95 -104
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +3 -10
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +21 -56
- package/dist/bootstrap.d.ts +11 -10
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +205 -88
- package/dist/cell.d.ts +6 -0
- package/dist/cell.d.ts.map +1 -0
- package/dist/cell.js +9 -0
- package/dist/chain.d.ts +2 -1
- package/dist/chain.d.ts.map +1 -1
- 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 +1 -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 +24 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -5
- package/dist/collection.d.ts +23 -7
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +13 -19
- package/dist/compile.d.ts +6 -6
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +272 -334
- package/dist/connection.d.ts +5 -143
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +101 -5310
- package/dist/context.d.ts +2 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +7 -0
- package/dist/conversation-live.d.ts +135 -0
- package/dist/conversation-live.d.ts.map +1 -0
- package/dist/conversation-live.js +247 -0
- package/dist/conversation-row.d.ts +33 -0
- package/dist/conversation-row.d.ts.map +1 -0
- package/dist/conversation-row.js +53 -0
- package/dist/conversation.d.ts +41 -47
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +873 -912
- 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 +177 -0
- package/dist/durability.d.ts +15 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/entry.d.ts +2 -2
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +17 -7
- 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 +20 -8
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +38 -33
- package/dist/identity.d.ts +0 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +0 -3
- package/dist/index.d.ts +27 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/install.d.ts +55 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +543 -0
- package/dist/job.d.ts +5 -0
- package/dist/job.d.ts.map +1 -0
- package/dist/job.js +7 -0
- package/dist/lifecycle.d.ts +7 -0
- package/dist/lifecycle.d.ts.map +1 -0
- package/dist/lifecycle.js +271 -0
- package/dist/listing.d.ts +53 -0
- package/dist/listing.d.ts.map +1 -0
- package/dist/listing.js +169 -0
- package/dist/live.d.ts +5 -4
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +64 -23
- package/dist/locks.d.ts +9 -0
- package/dist/locks.d.ts.map +1 -0
- package/dist/locks.js +62 -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 +61 -0
- package/dist/media.d.ts +1 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +3 -3
- package/dist/memory.d.ts +14 -5
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +177 -85
- package/dist/messages.d.ts +24 -3
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +89 -31
- package/dist/model.d.ts +2 -11
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -23
- package/dist/models.d.ts +10 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +170 -0
- package/dist/observation.d.ts +2 -2
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +14 -14
- package/dist/opened.js +3 -3
- 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 -4
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +3 -0
- package/dist/overlay.d.ts +3 -1
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +43 -21
- package/dist/parts.d.ts +11 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +21 -0
- 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/queries.d.ts +16 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +272 -0
- package/dist/query.d.ts +14 -210
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +3 -505
- package/dist/questions.d.ts +34 -0
- package/dist/questions.d.ts.map +1 -0
- package/dist/questions.js +122 -0
- package/dist/queue.d.ts +39 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +455 -0
- package/dist/reach.d.ts +15 -13
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +187 -140
- package/dist/react.d.ts +14 -2
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +10 -1
- package/dist/read.d.ts +7 -0
- package/dist/read.d.ts.map +1 -0
- package/dist/read.js +17 -0
- package/dist/readiness.d.ts +2 -16
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +4 -10
- package/dist/reads.d.ts +36 -10
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +160 -77
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +9 -1
- package/dist/refresh.d.ts +7 -5
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +35 -7
- 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 +11 -17
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +64 -34
- package/dist/room-draft.d.ts +7 -8
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +100 -103
- 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 +14 -21
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +49 -186
- package/dist/runtime.d.ts +32 -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 +239 -116
- package/dist/saves.d.ts +32 -0
- package/dist/saves.d.ts.map +1 -0
- package/dist/saves.js +413 -0
- package/dist/search.d.ts +12 -63
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +9 -52
- 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 -7
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +13 -105
- package/dist/shown.d.ts +32 -0
- package/dist/shown.d.ts.map +1 -0
- package/dist/shown.js +299 -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/rooms.d.ts +41 -0
- package/dist/socket/rooms.d.ts.map +1 -0
- package/dist/socket/rooms.js +90 -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 +69 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +175 -0
- package/dist/source.d.ts +61 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +82 -0
- package/dist/status.d.ts +0 -6
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -6
- package/dist/store/fences.d.ts +16 -0
- package/dist/store/fences.d.ts.map +1 -0
- package/dist/store/fences.js +26 -0
- 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 +210 -0
- package/dist/store/records.d.ts.map +1 -0
- package/dist/store/records.js +428 -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 +107 -157
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +143 -395
- package/dist/stored.d.ts +59 -38
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +279 -210
- package/dist/surface.d.ts +88 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +224 -0
- package/dist/sync.d.ts +19 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +530 -0
- package/dist/tables.d.ts +116 -56
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +214 -98
- package/dist/tallies.d.ts +18 -0
- package/dist/tallies.d.ts.map +1 -0
- package/dist/tallies.js +129 -0
- package/dist/transfer.d.ts +0 -5
- package/dist/transfer.d.ts.map +1 -1
- package/dist/validation.d.ts +3 -4
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +42 -100
- package/dist/windows.d.ts +1 -12
- package/dist/windows.d.ts.map +1 -1
- package/dist/windows.js +2 -75
- package/dist/wire.d.ts +21 -9
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +10 -4
- package/package.json +3 -2
- package/dist/fence.d.ts +0 -6
- package/dist/fence.d.ts.map +0 -1
- package/dist/fence.js +0 -10
- package/dist/fulltext.d.ts +0 -27
- package/dist/fulltext.d.ts.map +0 -1
- package/dist/fulltext.js +0 -370
- package/dist/words.d.ts +0 -19
- package/dist/words.d.ts.map +0 -1
- package/dist/words.js +0 -156
package/dist/replica.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type TypedPath } from '@agentshouse/mdmodel';
|
|
2
|
+
import type { BootstrapInventory, SavedFacts, MutationResult, RoomDeclaration, TypedSelection } from './adapter.js';
|
|
2
3
|
import { type ChangeBatch, type Precondition } from './change.js';
|
|
3
4
|
import { type Collection, type Composition } from './collection.js';
|
|
4
5
|
import { type ModelState } from './model.js';
|
|
@@ -6,13 +7,8 @@ import { type Layer } from './overlay.js';
|
|
|
6
7
|
import type { HeldEntry, OverlayEntry, StoredEntry } from './tables.js';
|
|
7
8
|
export type ReplicaRecord = {
|
|
8
9
|
readonly locator: string;
|
|
9
|
-
readonly
|
|
10
|
-
readonly handle: string;
|
|
11
|
-
readonly operations: OperationScopes;
|
|
12
|
-
readonly replica: ReplicaAdmission;
|
|
10
|
+
readonly declaration: RoomDeclaration;
|
|
13
11
|
readonly model: ModelState;
|
|
14
|
-
readonly typedSelection: TypedSelection | null;
|
|
15
|
-
readonly providerOwnedPaths: readonly string[];
|
|
16
12
|
readonly roomVersion: string;
|
|
17
13
|
readonly transfer: string;
|
|
18
14
|
readonly inventory: BootstrapInventory;
|
|
@@ -22,24 +18,22 @@ export type HeldReplica = {
|
|
|
22
18
|
readonly record: ReplicaRecord;
|
|
23
19
|
readonly queue: readonly ChangeBatch[];
|
|
24
20
|
readonly overlaid: ReadonlySet<string>;
|
|
25
|
-
readonly count: number;
|
|
26
|
-
readonly confirmed: number;
|
|
27
|
-
readonly indexed: boolean;
|
|
28
21
|
};
|
|
29
22
|
export type VisibleLayer = Layer & {
|
|
30
23
|
readonly collection: Collection;
|
|
31
24
|
};
|
|
32
25
|
export type Slice = Layer & {
|
|
33
26
|
readonly written: Readonly<Record<string, string>>;
|
|
27
|
+
readonly facts: Readonly<Record<string, SavedFacts>>;
|
|
34
28
|
readonly held: ReadonlySet<string>;
|
|
35
29
|
};
|
|
36
|
-
export declare function compositionOf(
|
|
37
|
-
export declare function sameMembership(record: Pick<ReplicaRecord, 'typedSelection'>, other: Pick<ReplicaRecord, 'typedSelection'>): boolean;
|
|
30
|
+
export declare function compositionOf(model: ModelState, typedSelection: TypedSelection | null, builtIn: ModelState, typedPaths: readonly TypedPath[]): Composition;
|
|
38
31
|
export declare function storedRecord(record: ReplicaRecord): string;
|
|
39
32
|
export declare function slicing(entries: readonly HeldEntry[], paths: Iterable<string>): Generator<number, Slice, void>;
|
|
33
|
+
export type LayerEntry = Omit<StoredEntry, 'facts'>;
|
|
40
34
|
export declare function entryAt(layer: Layer & {
|
|
41
35
|
readonly written?: Readonly<Record<string, string>>;
|
|
42
|
-
}, path: string):
|
|
36
|
+
}, path: string): LayerEntry | null;
|
|
43
37
|
export declare function slicingWith(slice: Slice, set: readonly StoredEntry[], removed: readonly string[]): Generator<number, Slice, void>;
|
|
44
38
|
export declare function touchedBy(queue: readonly ChangeBatch[]): Set<string>;
|
|
45
39
|
export declare function movedBy(queue: readonly ChangeBatch[], locator: string): Set<string>;
|
|
@@ -48,9 +42,9 @@ export type Replayed = {
|
|
|
48
42
|
readonly touched: ReadonlySet<string>;
|
|
49
43
|
};
|
|
50
44
|
export declare function replaying(confirmed: Slice, queue: readonly ChangeBatch[], locator: string, composition: Composition): Generator<number, Replayed, void>;
|
|
51
|
-
export declare function overlayOf(visible:
|
|
52
|
-
export declare function holds(layer: Layer, preconditions: readonly Precondition[]): boolean;
|
|
53
|
-
export declare function landed(batch: ChangeBatch, confirmed: Layer, current?: Readonly<Record<string, string>>): boolean;
|
|
45
|
+
export declare function overlayOf(visible: VisibleLayer, touched: Iterable<string>): Generator<number, OverlayEntry[], void>;
|
|
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;
|
|
54
48
|
export type Standing = {
|
|
55
49
|
readonly withdrawn: readonly ChangeBatch[];
|
|
56
50
|
readonly kept: readonly ChangeBatch[];
|
|
@@ -64,6 +58,6 @@ export type Returned = {
|
|
|
64
58
|
readonly removed: readonly string[];
|
|
65
59
|
};
|
|
66
60
|
export declare function returnedPaths(submitted: ChangeBatch, accepted: Accepted): Set<string>;
|
|
67
|
-
export declare function returning(confirmed: Slice, submitted: ChangeBatch, accepted: Accepted, writtenAt: string): Generator<number, Returned, void>;
|
|
61
|
+
export declare function returning(confirmed: Slice, submitted: ChangeBatch, accepted: Accepted, writtenAt: string, composition: Composition): Generator<number, Returned, void>;
|
|
68
62
|
export {};
|
|
69
63
|
//# sourceMappingURL=replica.d.ts.map
|
package/dist/replica.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replica.d.ts","sourceRoot":"","sources":["../src/replica.ts"],"names":[],"mappings":"
|
|
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,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IAC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GAAG;IACrB,QAAQ,CAAC,SAAS,EAAE,SAAS,WAAW,EAAE,CAAC;IAC3C,QAAQ,CAAC,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;CACvC,CAAC;AAEF,wBAAiB,QAAQ,CACvB,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,EAC7C,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,WAAW,GACvB,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CA4BnC;AAED,KAAK,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,GAAG,EAAE,SAAS,WAAW,EAAE,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,wBAAgB,aAAa,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,CAiBrF;AAED,wBAAiB,SAAS,CACxB,SAAS,EAAE,KAAK,EAChB,SAAS,EAAE,WAAW,EACtB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,GACvB,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CA6FnC"}
|
package/dist/replica.js
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
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
|
+
import { writtenFacts } from './rows.js';
|
|
6
7
|
import { effectiveIn, rewriting } from './save.js';
|
|
8
|
+
import { guarding } from './shared.js';
|
|
7
9
|
import { ROW_WEIGHT } from './turn.js';
|
|
8
|
-
export function compositionOf(
|
|
10
|
+
export function compositionOf(model, typedSelection, builtIn, typedPaths) {
|
|
9
11
|
return {
|
|
10
|
-
model
|
|
11
|
-
selection:
|
|
12
|
-
|
|
13
|
-
: { roots: record.typedSelection.roots, model: builtIn },
|
|
12
|
+
model,
|
|
13
|
+
selection: typedSelection === null ? null : { roots: typedSelection.roots, model: builtIn },
|
|
14
|
+
typedPaths,
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
export function sameMembership(record, other) {
|
|
17
|
-
return (JSON.stringify(record.typedSelection?.roots ?? null) ===
|
|
18
|
-
JSON.stringify(other.typedSelection?.roots ?? null));
|
|
19
|
-
}
|
|
20
17
|
export function storedRecord(record) {
|
|
21
18
|
const { key: _key, ...stored } = record;
|
|
22
19
|
return JSON.stringify({ ...stored, model: storedModel(stored.model) });
|
|
@@ -39,7 +36,7 @@ function strict(values, held) {
|
|
|
39
36
|
throw new UnreadPath(property);
|
|
40
37
|
}
|
|
41
38
|
};
|
|
42
|
-
return
|
|
39
|
+
return guarding(values, {
|
|
43
40
|
get(target, property, receiver) {
|
|
44
41
|
guard(property);
|
|
45
42
|
return Reflect.get(target, property, receiver);
|
|
@@ -62,9 +59,13 @@ export function* slicing(entries, paths) {
|
|
|
62
59
|
const binaries = {};
|
|
63
60
|
const revisions = {};
|
|
64
61
|
const fileIds = {};
|
|
62
|
+
const created = {};
|
|
65
63
|
const changes = {};
|
|
66
64
|
const written = {};
|
|
65
|
+
const facts = {};
|
|
67
66
|
for (const entry of entries) {
|
|
67
|
+
if (entry.facts !== null)
|
|
68
|
+
facts[entry.path] = entry.facts;
|
|
68
69
|
if (entry.binary !== null)
|
|
69
70
|
binaries[entry.path] = entry.binary;
|
|
70
71
|
else if (entry.content !== null)
|
|
@@ -73,6 +74,8 @@ export function* slicing(entries, paths) {
|
|
|
73
74
|
revisions[entry.path] = entry.revision;
|
|
74
75
|
if (entry.fileId !== null)
|
|
75
76
|
fileIds[entry.path] = entry.fileId;
|
|
77
|
+
if (entry.created !== null)
|
|
78
|
+
created[entry.path] = entry.created;
|
|
76
79
|
if (entry.change !== null)
|
|
77
80
|
changes[entry.path] = entry.change;
|
|
78
81
|
if (entry.written !== null)
|
|
@@ -84,8 +87,10 @@ export function* slicing(entries, paths) {
|
|
|
84
87
|
binaries: strict(binaries, held),
|
|
85
88
|
revisions: strict(revisions, held),
|
|
86
89
|
fileIds: strict(fileIds, held),
|
|
90
|
+
created: strict(created, held),
|
|
87
91
|
changes: strict(changes, held),
|
|
88
92
|
written: strict(written, held),
|
|
93
|
+
facts: strict(facts, held),
|
|
89
94
|
held,
|
|
90
95
|
};
|
|
91
96
|
}
|
|
@@ -100,6 +105,7 @@ export function entryAt(layer, path) {
|
|
|
100
105
|
binary: binary ?? null,
|
|
101
106
|
revision: layer.revisions[path] ?? null,
|
|
102
107
|
fileId: layer.fileIds[path] ?? null,
|
|
108
|
+
created: layer.created[path] ?? null,
|
|
103
109
|
change: layer.changes[path] ?? null,
|
|
104
110
|
written: layer.written?.[path] ?? null,
|
|
105
111
|
};
|
|
@@ -108,8 +114,9 @@ export function* slicingWith(slice, set, removed) {
|
|
|
108
114
|
const entries = new Map();
|
|
109
115
|
for (const path of slice.held) {
|
|
110
116
|
const entry = entryAt(slice, path);
|
|
111
|
-
if (entry !== null)
|
|
112
|
-
entries.set(path, { ...entry, type: null });
|
|
117
|
+
if (entry !== null) {
|
|
118
|
+
entries.set(path, { ...entry, type: null, facts: slice.facts[path] ?? null });
|
|
119
|
+
}
|
|
113
120
|
yield ROW_WEIGHT;
|
|
114
121
|
}
|
|
115
122
|
for (const path of removed)
|
|
@@ -162,7 +169,7 @@ export function* replaying(confirmed, queue, locator, composition) {
|
|
|
162
169
|
for (const change of effective.changes)
|
|
163
170
|
for (const path of changePaths(change))
|
|
164
171
|
touched.add(path);
|
|
165
|
-
layer = yield* overlaying(layer, [effective]);
|
|
172
|
+
layer = yield* overlaying(layer, [effective], composition);
|
|
166
173
|
yield ROW_WEIGHT;
|
|
167
174
|
}
|
|
168
175
|
return {
|
|
@@ -173,8 +180,9 @@ export function* replaying(confirmed, queue, locator, composition) {
|
|
|
173
180
|
export function* overlayOf(visible, touched) {
|
|
174
181
|
const rows = [];
|
|
175
182
|
for (const path of touched) {
|
|
176
|
-
yield ROW_WEIGHT;
|
|
177
183
|
const entry = entryAt(visible, path);
|
|
184
|
+
yield ROW_WEIGHT + (entry?.content?.length ?? 0);
|
|
185
|
+
const text = entry?.binary === null ? entry.content : null;
|
|
178
186
|
rows.push(entry === null
|
|
179
187
|
? {
|
|
180
188
|
path,
|
|
@@ -183,22 +191,29 @@ export function* overlayOf(visible, touched) {
|
|
|
183
191
|
binary: null,
|
|
184
192
|
revision: null,
|
|
185
193
|
fileId: null,
|
|
194
|
+
created: null,
|
|
186
195
|
change: null,
|
|
187
196
|
written: null,
|
|
197
|
+
facts: null,
|
|
188
198
|
}
|
|
189
|
-
: {
|
|
199
|
+
: {
|
|
200
|
+
...entry,
|
|
201
|
+
written: null,
|
|
202
|
+
present: true,
|
|
203
|
+
facts: text === null ? null : writtenFacts(path, text, visible.collection.composition),
|
|
204
|
+
});
|
|
190
205
|
}
|
|
191
206
|
return rows;
|
|
192
207
|
}
|
|
193
208
|
function present(layer, path) {
|
|
194
209
|
return layer.documents[path] !== undefined || layer.binaries[path] !== undefined;
|
|
195
210
|
}
|
|
196
|
-
export function holds(layer, preconditions) {
|
|
211
|
+
export function holds(layer, preconditions, composition) {
|
|
197
212
|
const parsed = new Map();
|
|
198
213
|
const documentAt = (path) => {
|
|
199
214
|
if (!parsed.has(path)) {
|
|
200
215
|
const text = layer.documents[path];
|
|
201
|
-
const opened = text === undefined ? null : parse(text, path);
|
|
216
|
+
const opened = text === undefined ? null : parse(text, path, definitionsAt(composition, path));
|
|
202
217
|
parsed.set(path, opened?.ok === true ? opened.document : null);
|
|
203
218
|
}
|
|
204
219
|
return parsed.get(path) ?? null;
|
|
@@ -258,11 +273,11 @@ function effects(change) {
|
|
|
258
273
|
{ kind: 'present', path: change.to },
|
|
259
274
|
];
|
|
260
275
|
}
|
|
261
|
-
if (change.kind === '
|
|
276
|
+
if (change.kind === 'arrival')
|
|
262
277
|
return [{ kind: 'present', path }];
|
|
263
278
|
return [{ kind: 'absent', path }];
|
|
264
279
|
}
|
|
265
|
-
export function landed(batch, confirmed, current = {}) {
|
|
280
|
+
export function landed(batch, confirmed, composition, current = {}) {
|
|
266
281
|
const documents = new Proxy(confirmed.documents, {
|
|
267
282
|
get(target, property, receiver) {
|
|
268
283
|
if (typeof property === 'string' && Object.hasOwn(current, property))
|
|
@@ -282,9 +297,9 @@ export function landed(batch, confirmed, current = {}) {
|
|
|
282
297
|
}
|
|
283
298
|
return effects(change).every((effect) => {
|
|
284
299
|
if (effect.kind === 'absent')
|
|
285
|
-
return holds(layer, [effect]);
|
|
300
|
+
return holds(layer, [effect], composition);
|
|
286
301
|
const at = landing(batch.changes, index, effect.path);
|
|
287
|
-
return at === null || holds(layer, [{ ...effect, path: at }]);
|
|
302
|
+
return at === null || holds(layer, [{ ...effect, path: at }], composition);
|
|
288
303
|
});
|
|
289
304
|
});
|
|
290
305
|
}
|
|
@@ -309,7 +324,7 @@ export function* standing(confirmed, queue, withdrawable, local, locator, compos
|
|
|
309
324
|
const withdrawn = [];
|
|
310
325
|
const kept = [];
|
|
311
326
|
for (const batch of queue) {
|
|
312
|
-
if (withdrawable(batch) && !holds(layer, batch.preconditions)) {
|
|
327
|
+
if (withdrawable(batch) && !holds(layer, batch.preconditions, composition)) {
|
|
313
328
|
withdrawn.push(batch);
|
|
314
329
|
continue;
|
|
315
330
|
}
|
|
@@ -320,7 +335,7 @@ export function* standing(confirmed, queue, withdrawable, local, locator, compos
|
|
|
320
335
|
})
|
|
321
336
|
: batch;
|
|
322
337
|
let unapplied = false;
|
|
323
|
-
const next = yield* overlaying(layer, [effective], () => {
|
|
338
|
+
const next = yield* overlaying(layer, [effective], composition, () => {
|
|
324
339
|
unapplied = true;
|
|
325
340
|
});
|
|
326
341
|
if (local && unapplied) {
|
|
@@ -351,17 +366,20 @@ export function returnedPaths(submitted, accepted) {
|
|
|
351
366
|
}
|
|
352
367
|
return paths;
|
|
353
368
|
}
|
|
354
|
-
export function* returning(confirmed, submitted, accepted, writtenAt) {
|
|
369
|
+
export function* returning(confirmed, submitted, accepted, writtenAt, composition) {
|
|
355
370
|
const documents = new Map();
|
|
356
371
|
const binaries = new Map();
|
|
357
372
|
const revisions = new Map();
|
|
358
373
|
const fileIds = new Map();
|
|
374
|
+
const created = new Map();
|
|
359
375
|
const changes = new Map();
|
|
360
376
|
const written = new Map();
|
|
377
|
+
const facts = new Map();
|
|
361
378
|
const read = (changed, held, path) => (changed.has(path) ? changed.get(path) : held[path]);
|
|
362
379
|
for (const [path, content] of Object.entries(accepted.documents)) {
|
|
363
|
-
yield ROW_WEIGHT;
|
|
380
|
+
yield ROW_WEIGHT + content.length;
|
|
364
381
|
documents.set(path, content);
|
|
382
|
+
facts.set(path, writtenFacts(path, content, composition));
|
|
365
383
|
fileIds.set(path, undefined);
|
|
366
384
|
written.set(path, writtenAt);
|
|
367
385
|
}
|
|
@@ -384,48 +402,60 @@ export function* returning(confirmed, submitted, accepted, writtenAt) {
|
|
|
384
402
|
written.set(path, undefined);
|
|
385
403
|
}
|
|
386
404
|
for (const change of submitted.changes) {
|
|
387
|
-
if (change.kind === 'arrival'
|
|
388
|
-
if (accepted.revisions[change.path]
|
|
405
|
+
if (change.kind === 'arrival') {
|
|
406
|
+
if (accepted.revisions[change.path] === undefined)
|
|
407
|
+
continue;
|
|
408
|
+
created.set(change.path, change.created);
|
|
409
|
+
if ('binary' in change)
|
|
389
410
|
binaries.set(change.path, { state: 'accepted', ...change.binary });
|
|
390
|
-
}
|
|
391
411
|
continue;
|
|
392
412
|
}
|
|
393
|
-
if (change.kind !== 'move')
|
|
413
|
+
if (change.kind !== 'move' || accepted.revisions[change.to] === undefined)
|
|
394
414
|
continue;
|
|
415
|
+
created.set(change.to, read(created, confirmed.created, change.path));
|
|
416
|
+
created.set(change.path, undefined);
|
|
395
417
|
const moved = read(binaries, confirmed.binaries, change.path);
|
|
396
|
-
if (moved === undefined
|
|
418
|
+
if (moved === undefined)
|
|
397
419
|
continue;
|
|
398
420
|
binaries.set(change.to, moved);
|
|
399
421
|
binaries.set(change.path, undefined);
|
|
400
422
|
}
|
|
401
423
|
for (const [path, binary] of acceptedBinaries(accepted.binaryFiles ?? {}))
|
|
402
424
|
binaries.set(path, binary);
|
|
403
|
-
for (const path of accepted.removals)
|
|
425
|
+
for (const path of accepted.removals) {
|
|
404
426
|
binaries.set(path, undefined);
|
|
427
|
+
created.set(path, undefined);
|
|
428
|
+
}
|
|
405
429
|
const paths = new Set([
|
|
406
430
|
...documents.keys(),
|
|
407
431
|
...binaries.keys(),
|
|
408
432
|
...revisions.keys(),
|
|
409
433
|
...fileIds.keys(),
|
|
434
|
+
...created.keys(),
|
|
410
435
|
...changes.keys(),
|
|
411
436
|
...written.keys(),
|
|
412
437
|
]);
|
|
413
438
|
const set = [];
|
|
414
439
|
const removed = [];
|
|
415
440
|
for (const path of paths) {
|
|
416
|
-
yield ROW_WEIGHT;
|
|
417
441
|
const content = read(documents, confirmed.documents, path);
|
|
418
442
|
const binary = read(binaries, confirmed.binaries, path);
|
|
443
|
+
yield ROW_WEIGHT;
|
|
419
444
|
if (content === undefined && binary === undefined) {
|
|
420
445
|
removed.push(path);
|
|
421
446
|
continue;
|
|
422
447
|
}
|
|
448
|
+
const text = binary === undefined ? (content ?? null) : null;
|
|
449
|
+
const fresh = confirmed.documents[path] === undefined && confirmed.binaries[path] === undefined;
|
|
423
450
|
set.push({
|
|
424
451
|
path,
|
|
425
|
-
content:
|
|
452
|
+
content: text,
|
|
453
|
+
facts: text === null ? null : (read(facts, confirmed.facts, path) ?? null),
|
|
426
454
|
binary: binary ?? null,
|
|
427
455
|
revision: read(revisions, confirmed.revisions, path) ?? null,
|
|
428
456
|
fileId: read(fileIds, confirmed.fileIds, path) ?? null,
|
|
457
|
+
created: read(created, confirmed.created, path) ??
|
|
458
|
+
(fresh ? (read(changes, confirmed.changes, path)?.time ?? null) : null),
|
|
429
459
|
change: read(changes, confirmed.changes, path) ?? null,
|
|
430
460
|
written: read(written, confirmed.written, path) ?? null,
|
|
431
461
|
});
|
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';
|
|
@@ -90,9 +91,9 @@ type ChangedUnderneath = {
|
|
|
90
91
|
readonly file?: string | null;
|
|
91
92
|
};
|
|
92
93
|
export type ReturnReason = ProviderRefusal & {
|
|
93
|
-
readonly kind: Open<'conflicted' | 'rejected' | '
|
|
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;
|
|
@@ -127,13 +126,14 @@ export type SavedDraft = {
|
|
|
127
126
|
readonly path: string;
|
|
128
127
|
readonly parts: HeldParts;
|
|
129
128
|
};
|
|
130
|
-
export declare function readParts(value: unknown): RoomDraftParts;
|
|
129
|
+
export declare function readParts(value: unknown, path: string): RoomDraftParts;
|
|
131
130
|
export declare function gatheredParts(earlier: unknown, later: unknown): unknown;
|
|
132
131
|
export declare function held(current: HeldParts | undefined, parts: RoomDraftParts, file?: HeldFile): HeldParts;
|
|
133
132
|
export declare function underneath(parts: HeldParts, path: string, visible: VisibleLayer | undefined): ChangedUnderneath;
|
|
134
133
|
export declare function heldFile(blob: Blob, base: string | null): Promise<HeldFile>;
|
|
135
134
|
export declare function binaryBase(visible: VisibleLayer | undefined, path: string): string | null;
|
|
136
135
|
export declare function changedParts(path: string, parts: HeldParts, visible: VisibleLayer | undefined): readonly ChangedPart[];
|
|
136
|
+
export declare function lineEnded(text: string): string;
|
|
137
137
|
export type TextParts = {
|
|
138
138
|
readonly fields?: Readonly<Record<string, {
|
|
139
139
|
readonly value: unknown;
|
|
@@ -145,8 +145,8 @@ export type TextParts = {
|
|
|
145
145
|
readonly value: string;
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
export declare function partsAfter(markdown: string, parts: TextParts): string;
|
|
149
|
-
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;
|
|
150
150
|
export declare function moveTarget(move: {
|
|
151
151
|
readonly to: string;
|
|
152
152
|
}): string;
|
|
@@ -168,7 +168,6 @@ export declare function changesOf(path: string, parts: HeldParts): {
|
|
|
168
168
|
changes: readonly Change[];
|
|
169
169
|
bases: readonly Precondition[];
|
|
170
170
|
};
|
|
171
|
-
export declare function joinedDraft(carried: SavedDraft, saved: readonly SavedDraft[]): SavedDraft;
|
|
172
171
|
export declare function withdrawnDrafts(drafts: readonly SavedDraft[], changes: readonly Change[]): readonly SavedDraft[];
|
|
173
172
|
export {};
|
|
174
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,IAAI,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GACzB;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACrD,GACD;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAElC,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CACxB,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC,CACxE,CAAC;IACF,QAAQ,CAAC,QAAQ,CAAC,EAAE,QA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