@agentshouse/mdruntime 0.1.0-cdf82f77fae68 → 0.1.0-ceb97106cc2fd
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/AGENTS.md +259 -272
- package/dist/acquisition.d.ts +14 -0
- package/dist/acquisition.d.ts.map +1 -0
- package/dist/acquisition.js +24 -0
- package/dist/adapter.d.ts +37 -9
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attempt.d.ts.map +1 -1
- package/dist/attempt.js +14 -1
- package/dist/bootstrap.d.ts +2 -2
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +32 -6
- package/dist/change-set.d.ts +2 -0
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +36 -10
- package/dist/chat/acts.d.ts +3 -4
- package/dist/chat/acts.d.ts.map +1 -1
- package/dist/chat/acts.js +10 -10
- package/dist/chat/kit.d.ts +2 -1
- package/dist/chat/kit.d.ts.map +1 -1
- package/dist/chat/kit.js +3 -3
- package/dist/chat/list.d.ts +8 -1
- package/dist/chat/list.d.ts.map +1 -1
- package/dist/chat/list.js +10 -6
- package/dist/chat/markdown.d.ts +2 -1
- package/dist/chat/markdown.d.ts.map +1 -1
- package/dist/chat/markdown.js +7 -6
- package/dist/chat/message.d.ts.map +1 -1
- package/dist/chat/message.js +2 -2
- package/dist/chat/messages.d.ts +1 -0
- package/dist/chat/messages.d.ts.map +1 -1
- package/dist/chat/messages.js +4 -0
- package/dist/chat/provider.d.ts +1 -1
- package/dist/chat/provider.d.ts.map +1 -1
- package/dist/chat/provider.js +51 -67
- package/dist/chat/ready.d.ts +1 -0
- package/dist/chat/ready.d.ts.map +1 -1
- package/dist/chat/ready.js +4 -4
- package/dist/chat/style.js +3 -3
- package/dist/client.d.ts +12 -8
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -1
- package/dist/collection.d.ts +17 -3
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +230 -19
- package/dist/connection.d.ts +24 -7
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1340 -318
- package/dist/conversation.d.ts +14 -7
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +328 -137
- package/dist/durability.d.ts +7 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/entry.d.ts +17 -0
- package/dist/entry.d.ts.map +1 -0
- package/dist/entry.js +156 -0
- package/dist/fence.d.ts +6 -0
- package/dist/fence.d.ts.map +1 -0
- package/dist/fence.js +10 -0
- package/dist/host.d.ts +18 -3
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +89 -12
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +6 -0
- package/dist/index.d.ts +9 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/memory.d.ts +4 -1
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +23 -2
- package/dist/model.d.ts +4 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +10 -1
- package/dist/observation.d.ts +5 -2
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +22 -11
- package/dist/outcome.d.ts +4 -0
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +1 -0
- package/dist/overlay.d.ts +2 -0
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +58 -55
- package/dist/query.d.ts +34 -3
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +7 -1
- package/dist/reach.d.ts +6 -3
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +17 -5
- package/dist/react.d.ts +7 -4
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +6 -4
- package/dist/read-side.d.ts +13 -6
- package/dist/read-side.d.ts.map +1 -1
- package/dist/read-side.js +285 -83
- package/dist/readiness.d.ts +53 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +33 -0
- package/dist/recovery.d.ts +25 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +197 -0
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +17 -10
- package/dist/replica.d.ts +1 -1
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +57 -20
- package/dist/room-draft.d.ts +13 -1
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +2 -2
- package/dist/rows.d.ts +5 -13
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +5 -13
- package/dist/save.d.ts +6 -2
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +42 -18
- package/dist/search.d.ts +34 -6
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +116 -45
- package/dist/seed.d.ts +16 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +61 -0
- package/dist/shared.d.ts +11 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +368 -0
- package/dist/status.d.ts +4 -0
- package/dist/status.d.ts.map +1 -1
- package/dist/store.d.ts +45 -12
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +315 -85
- package/dist/turn.d.ts +7 -0
- package/dist/turn.d.ts.map +1 -0
- package/dist/turn.js +45 -0
- package/dist/wire.d.ts +136 -32
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +48 -31
- package/package.json +12 -8
package/dist/collection.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { type Document, type Validation } from '@agentshouse/mdmodel';
|
|
2
|
-
import type
|
|
1
|
+
import { type Document, type Frontmatter, type Validation } from '@agentshouse/mdmodel';
|
|
2
|
+
import { type ModelState } from './model.js';
|
|
3
3
|
import type { MdModelIdentity } from './adapter.js';
|
|
4
|
+
import { type Paths } from './shared.js';
|
|
4
5
|
import type { Refused } from './transfer.js';
|
|
6
|
+
import { type Later } from './turn.js';
|
|
5
7
|
export declare const MD_MODEL: MdModelIdentity;
|
|
6
8
|
export type Collection = {
|
|
7
9
|
text: Readonly<Record<string, string>>;
|
|
@@ -17,9 +19,21 @@ export type Composition = {
|
|
|
17
19
|
};
|
|
18
20
|
export declare function governing(composition: Composition, path: string): ModelState;
|
|
19
21
|
export declare function collectionOf(text: Readonly<Record<string, string>>, composition: Composition, previous?: Collection): Collection;
|
|
20
|
-
export declare function
|
|
22
|
+
export declare function passingFrontmatter(collection: Collection, path: string): Frontmatter | undefined;
|
|
21
23
|
export declare function documentsOf(collection: Collection): Generator<readonly [string, Document]>;
|
|
22
24
|
export declare function unreadable(text: Readonly<Record<string, string>>, previous?: Readonly<Record<string, string>>): Refused | null;
|
|
23
25
|
export declare function validRoot(root: unknown): root is string;
|
|
24
26
|
export declare function validateCollection(text: Readonly<Record<string, string>>, binaryTargets: readonly string[], composition: Composition): Validation;
|
|
27
|
+
type Held = {
|
|
28
|
+
text: Paths<string>;
|
|
29
|
+
binaries: Paths<unknown>;
|
|
30
|
+
};
|
|
31
|
+
export declare function indexReferrers(held: Held, composition: Composition): Later<void>;
|
|
32
|
+
export declare function referencesIndexed(held: Held, composition: Composition): boolean;
|
|
33
|
+
export declare function referring(held: Held, composition: Composition, targets: Iterable<string>): ReadonlySet<string> | null;
|
|
34
|
+
export declare function available(composition: Composition): boolean;
|
|
35
|
+
export declare function changedCleanly(next: Held, previous: Held & {
|
|
36
|
+
composition: Composition;
|
|
37
|
+
}, composition: Composition): boolean;
|
|
38
|
+
export {};
|
|
25
39
|
//# sourceMappingURL=collection.d.ts.map
|
package/dist/collection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../src/collection.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../src/collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,QAAQ,EAEb,KAAK,WAAW,EAChB,KAAK,UAAU,EAEhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,YAA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AM,CAAC,CAAC,EACtC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAC1C,OAAO,GAAG,IAAI,CAUhB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAEvD;AAwBD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACtC,aAAa,EAAE,SAAS,MAAM,EAAE,EAChC,WAAW,EAAE,WAAW,GACvB,UAAU,CA0BZ;AAED,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC1B,CAAC;AAyGF,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,CAwBhF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAE/E;AAED,wBAAgB,SAAS,CACvB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,GACxB,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAS5B;AAED,wBAAgB,SAAS,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAK3D;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,IAAI,GAAG;IAAE,WAAW,EAAE,WAAW,CAAA;CAAE,EAC7C,WAAW,EAAE,WAAW,GACvB,OAAO,CAiET"}
|
package/dist/collection.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { parse, validate, VERSION, } from '@agentshouse/mdmodel';
|
|
1
|
+
import { checkDocument, parseFrontmatter, references, sectionReferences, target, parse, resolves, validate, VERSION, } from '@agentshouse/mdmodel';
|
|
2
2
|
import { beneath, normalize } from './paths.js';
|
|
3
|
+
import { sameTyping } from './model.js';
|
|
4
|
+
import { differing, patched, shared } from './shared.js';
|
|
5
|
+
import { inUnits, ROW_WEIGHT } from './turn.js';
|
|
3
6
|
export const MD_MODEL = { identity: '@agentshouse/mdmodel', version: VERSION };
|
|
4
7
|
const NO_TYPES = { types: {} };
|
|
5
8
|
function selected(composition, path) {
|
|
@@ -12,46 +15,59 @@ export function governing(composition, path) {
|
|
|
12
15
|
: composition.model;
|
|
13
16
|
}
|
|
14
17
|
const parsedIn = new WeakMap();
|
|
18
|
+
function carried(previous, text) {
|
|
19
|
+
const held = parsedIn.get(previous);
|
|
20
|
+
if (held === undefined)
|
|
21
|
+
return shared({});
|
|
22
|
+
const kept = patched(held.base, held.added);
|
|
23
|
+
held.base = kept;
|
|
24
|
+
held.added = new Map();
|
|
25
|
+
return patched(kept, [], differing(previous.text, text));
|
|
26
|
+
}
|
|
27
|
+
function cachedIn(collection, path) {
|
|
28
|
+
const held = parsedIn.get(collection);
|
|
29
|
+
if (held === undefined)
|
|
30
|
+
return undefined;
|
|
31
|
+
if (held.added.has(path))
|
|
32
|
+
return held.added.get(path);
|
|
33
|
+
return Object.hasOwn(held.base, path) ? held.base[path] : undefined;
|
|
34
|
+
}
|
|
15
35
|
export function collectionOf(text, composition, previous) {
|
|
16
|
-
const parsed =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
parsed.set(path, held);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
36
|
+
const parsed = {
|
|
37
|
+
base: previous === undefined ? shared({}) : carried(previous, text),
|
|
38
|
+
added: new Map(),
|
|
39
|
+
};
|
|
23
40
|
const collection = {
|
|
24
41
|
text,
|
|
25
42
|
composition,
|
|
26
43
|
document(path) {
|
|
27
|
-
const held =
|
|
44
|
+
const held = cachedIn(collection, path);
|
|
28
45
|
if (held !== undefined)
|
|
29
46
|
return held ?? undefined;
|
|
30
47
|
const content = text[path];
|
|
31
48
|
if (content === undefined)
|
|
32
49
|
return undefined;
|
|
33
50
|
const read = parse(content, path);
|
|
34
|
-
parsed.set(path, read.ok ? read.document : null);
|
|
51
|
+
parsed.added.set(path, read.ok ? read.document : null);
|
|
35
52
|
return read.ok ? read.document : undefined;
|
|
36
53
|
},
|
|
37
54
|
};
|
|
38
55
|
parsedIn.set(collection, parsed);
|
|
39
56
|
return collection;
|
|
40
57
|
}
|
|
41
|
-
export function
|
|
42
|
-
const held =
|
|
58
|
+
export function passingFrontmatter(collection, path) {
|
|
59
|
+
const held = cachedIn(collection, path);
|
|
43
60
|
if (held !== undefined)
|
|
44
61
|
return held ?? undefined;
|
|
45
62
|
const content = collection.text[path];
|
|
46
63
|
if (content === undefined)
|
|
47
64
|
return undefined;
|
|
48
|
-
const read =
|
|
49
|
-
return read.ok ? read.
|
|
65
|
+
const read = parseFrontmatter(content, path);
|
|
66
|
+
return read.ok ? read.frontmatter : undefined;
|
|
50
67
|
}
|
|
51
68
|
export function* documentsOf(collection) {
|
|
52
|
-
const parsed = parsedIn.get(collection);
|
|
53
69
|
for (const path of Object.keys(collection.text).sort()) {
|
|
54
|
-
const held =
|
|
70
|
+
const held = cachedIn(collection, path);
|
|
55
71
|
if (held === null)
|
|
56
72
|
continue;
|
|
57
73
|
if (held !== undefined) {
|
|
@@ -64,9 +80,10 @@ export function* documentsOf(collection) {
|
|
|
64
80
|
}
|
|
65
81
|
}
|
|
66
82
|
export function unreadable(text, previous) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
83
|
+
const paths = previous === undefined
|
|
84
|
+
? Object.keys(text)
|
|
85
|
+
: [...differing(previous, text)].filter((path) => text[path] !== undefined);
|
|
86
|
+
for (const path of paths.sort()) {
|
|
70
87
|
const read = parse(text[path], path);
|
|
71
88
|
if (!read.ok)
|
|
72
89
|
return { kind: 'refused', refusal: read.refusal };
|
|
@@ -107,3 +124,197 @@ export function validateCollection(text, binaryTargets, composition) {
|
|
|
107
124
|
return verdicts[0];
|
|
108
125
|
return refusals.find((refusal) => refusal.rule !== 'model-unavailable') ?? refusals[0];
|
|
109
126
|
}
|
|
127
|
+
const referrersOf = new WeakMap();
|
|
128
|
+
function typing(left, right) {
|
|
129
|
+
return (sameTyping(left.model, right.model) &&
|
|
130
|
+
(left.selection === null || right.selection === null
|
|
131
|
+
? left.selection === right.selection
|
|
132
|
+
: sameTyping(left.selection.model, right.selection.model)) &&
|
|
133
|
+
JSON.stringify(left.selection?.roots ?? null) === JSON.stringify(right.selection?.roots ?? null));
|
|
134
|
+
}
|
|
135
|
+
function declared(content) {
|
|
136
|
+
if (content === undefined)
|
|
137
|
+
return undefined;
|
|
138
|
+
const read = parseFrontmatter(content);
|
|
139
|
+
return read.ok ? (read.frontmatter.type ?? 'any') : undefined;
|
|
140
|
+
}
|
|
141
|
+
function typedIn(content) {
|
|
142
|
+
const type = declared(content);
|
|
143
|
+
return type !== undefined && type !== 'any';
|
|
144
|
+
}
|
|
145
|
+
function modelOf(composition, path) {
|
|
146
|
+
const model = governing(composition, path);
|
|
147
|
+
return model.status === 'unavailable' ? null : { types: model.types };
|
|
148
|
+
}
|
|
149
|
+
function checked(path, content, composition) {
|
|
150
|
+
return checkDocument(path, content, modelOf(composition, path) ?? NO_TYPES);
|
|
151
|
+
}
|
|
152
|
+
function targetsOf(check) {
|
|
153
|
+
if (!check.ok)
|
|
154
|
+
return [];
|
|
155
|
+
return [...new Set(check.references.flatMap(({ target }) => (target === null ? [] : [target])))];
|
|
156
|
+
}
|
|
157
|
+
function referencedBy(path, content, composition) {
|
|
158
|
+
const model = modelOf(composition, path);
|
|
159
|
+
if (model === null)
|
|
160
|
+
return [];
|
|
161
|
+
const read = parseFrontmatter(content, path);
|
|
162
|
+
const type = read.ok ? read.frontmatter.type : undefined;
|
|
163
|
+
if (!read.ok || type === undefined || !Object.hasOwn(model.types, type))
|
|
164
|
+
return [];
|
|
165
|
+
const definition = model.types[type];
|
|
166
|
+
return [
|
|
167
|
+
...new Set([
|
|
168
|
+
...references(read.frontmatter, definition).flatMap(({ value }) => {
|
|
169
|
+
const found = target(path, value);
|
|
170
|
+
return found === null ? [] : [found];
|
|
171
|
+
}),
|
|
172
|
+
...sectionReferences(path, content, definition).flatMap(({ target }) => target === null ? [] : [target]),
|
|
173
|
+
]),
|
|
174
|
+
];
|
|
175
|
+
}
|
|
176
|
+
function reindexed(index, changed) {
|
|
177
|
+
const referrers = new Map();
|
|
178
|
+
const touch = (target) => {
|
|
179
|
+
let held = referrers.get(target);
|
|
180
|
+
if (held === undefined) {
|
|
181
|
+
held = new Set(Object.hasOwn(index.referrers, target) ? index.referrers[target] : []);
|
|
182
|
+
referrers.set(target, held);
|
|
183
|
+
}
|
|
184
|
+
return held;
|
|
185
|
+
};
|
|
186
|
+
for (const [path, found] of changed) {
|
|
187
|
+
const before = Object.hasOwn(index.targets, path) ? index.targets[path] : [];
|
|
188
|
+
for (const target of before)
|
|
189
|
+
touch(target).delete(path);
|
|
190
|
+
for (const target of found)
|
|
191
|
+
touch(target).add(path);
|
|
192
|
+
}
|
|
193
|
+
const emptied = [...referrers].filter(([, held]) => held.size === 0).map(([target]) => target);
|
|
194
|
+
return {
|
|
195
|
+
composition: index.composition,
|
|
196
|
+
targets: patched(index.targets, [...changed].filter(([, found]) => found.length > 0), [...changed].filter(([, found]) => found.length === 0).map(([path]) => path)),
|
|
197
|
+
referrers: patched(index.referrers, [...referrers]
|
|
198
|
+
.filter(([, held]) => held.size > 0)
|
|
199
|
+
.map(([target, held]) => [target, [...held]]), emptied),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function heldIndex(held, composition) {
|
|
203
|
+
const index = referrersOf.get(held.text);
|
|
204
|
+
return index !== undefined && typing(index.composition, composition) ? index : null;
|
|
205
|
+
}
|
|
206
|
+
const indexing = new WeakMap();
|
|
207
|
+
export function indexReferrers(held, composition) {
|
|
208
|
+
if (heldIndex(held, composition) !== null)
|
|
209
|
+
return;
|
|
210
|
+
const running = indexing.get(held.text);
|
|
211
|
+
if (running !== undefined)
|
|
212
|
+
return running;
|
|
213
|
+
const targets = new Map();
|
|
214
|
+
const referrers = new Map();
|
|
215
|
+
const filled = inUnits(Object.keys(held.text), (path) => {
|
|
216
|
+
const content = held.text[path];
|
|
217
|
+
const found = referencedBy(path, content, composition);
|
|
218
|
+
if (found.length > 0)
|
|
219
|
+
targets.set(path, found);
|
|
220
|
+
for (const target of found)
|
|
221
|
+
referrers.set(target, [...(referrers.get(target) ?? []), path]);
|
|
222
|
+
return ROW_WEIGHT + content.length;
|
|
223
|
+
});
|
|
224
|
+
const indexed = () => {
|
|
225
|
+
referrersOf.set(held.text, {
|
|
226
|
+
composition,
|
|
227
|
+
targets: patched(shared({}), targets),
|
|
228
|
+
referrers: patched(shared({}), referrers),
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
if (!(filled instanceof Promise))
|
|
232
|
+
return indexed();
|
|
233
|
+
const building = filled.then(indexed).finally(() => indexing.delete(held.text));
|
|
234
|
+
indexing.set(held.text, building);
|
|
235
|
+
return building;
|
|
236
|
+
}
|
|
237
|
+
export function referencesIndexed(held, composition) {
|
|
238
|
+
return heldIndex(held, composition) !== null;
|
|
239
|
+
}
|
|
240
|
+
export function referring(held, composition, targets) {
|
|
241
|
+
const index = heldIndex(held, composition);
|
|
242
|
+
if (index === null)
|
|
243
|
+
return null;
|
|
244
|
+
const found = new Set();
|
|
245
|
+
for (const target of targets) {
|
|
246
|
+
if (!Object.hasOwn(index.referrers, target))
|
|
247
|
+
continue;
|
|
248
|
+
for (const file of index.referrers[target])
|
|
249
|
+
found.add(file);
|
|
250
|
+
}
|
|
251
|
+
return found;
|
|
252
|
+
}
|
|
253
|
+
export function available(composition) {
|
|
254
|
+
return (composition.model.status !== 'unavailable' &&
|
|
255
|
+
(composition.selection === null || composition.selection.model.status !== 'unavailable'));
|
|
256
|
+
}
|
|
257
|
+
export function changedCleanly(next, previous, composition) {
|
|
258
|
+
if (!typing(previous.composition, composition))
|
|
259
|
+
return false;
|
|
260
|
+
const paths = new Set([
|
|
261
|
+
...differing(previous.text, next.text),
|
|
262
|
+
...differing(previous.binaries, next.binaries, () => true),
|
|
263
|
+
]);
|
|
264
|
+
const binary = (path) => Object.hasOwn(next.binaries, path);
|
|
265
|
+
const within = (file) => (path) => selected(composition, path) === selected(composition, file);
|
|
266
|
+
const reaching = (file, check) => {
|
|
267
|
+
if (!check.ok)
|
|
268
|
+
return false;
|
|
269
|
+
const part = within(file);
|
|
270
|
+
return check.references.every((reference) => resolves(reference, (path) => (part(path) ? declared(next.text[path]) : undefined), (path) => part(path) && binary(path)));
|
|
271
|
+
};
|
|
272
|
+
const changedTargets = new Map();
|
|
273
|
+
const shifted = [];
|
|
274
|
+
for (const path of paths) {
|
|
275
|
+
const now = next.text[path];
|
|
276
|
+
const was = previous.text[path];
|
|
277
|
+
const modeled = modelOf(composition, path) !== null;
|
|
278
|
+
if ((now === undefined) !== (was === undefined) ||
|
|
279
|
+
declared(now) !== declared(was) ||
|
|
280
|
+
binary(path) !== Object.hasOwn(previous.binaries, path)) {
|
|
281
|
+
shifted.push(path);
|
|
282
|
+
}
|
|
283
|
+
if (!modeled && typedIn(was) && !typedIn(now))
|
|
284
|
+
return false;
|
|
285
|
+
if (now === undefined) {
|
|
286
|
+
if (modeled)
|
|
287
|
+
changedTargets.set(path, []);
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
if (binary(path))
|
|
291
|
+
return false;
|
|
292
|
+
if (!modeled) {
|
|
293
|
+
if (declared(now) === undefined)
|
|
294
|
+
return false;
|
|
295
|
+
if (!typedIn(now) && !checked(path, now, composition).ok)
|
|
296
|
+
return false;
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
const check = checked(path, now, composition);
|
|
300
|
+
if (!reaching(path, check))
|
|
301
|
+
return false;
|
|
302
|
+
changedTargets.set(path, targetsOf(check));
|
|
303
|
+
}
|
|
304
|
+
const index = heldIndex(previous, composition);
|
|
305
|
+
if (index === null && shifted.length > 0)
|
|
306
|
+
return false;
|
|
307
|
+
for (const target of shifted) {
|
|
308
|
+
const files = index !== null && Object.hasOwn(index.referrers, target) ? index.referrers[target] : [];
|
|
309
|
+
for (const file of files) {
|
|
310
|
+
if (paths.has(file))
|
|
311
|
+
continue;
|
|
312
|
+
if (!reaching(file, checked(file, next.text[file], composition)))
|
|
313
|
+
return false;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
if (index !== null) {
|
|
317
|
+
referrersOf.set(next.text, changedTargets.size === 0 ? index : reindexed(index, changedTargets));
|
|
318
|
+
}
|
|
319
|
+
return true;
|
|
320
|
+
}
|
package/dist/connection.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type TypesResult } from './model.js';
|
|
2
2
|
import { type Observation } from './observation.js';
|
|
3
|
-
import { type DocumentQuery, type DocumentResult, type GroupQuery, type GroupResult } from './query.js';
|
|
3
|
+
import { type DocumentQuery, type DocumentResult, type GroupQuery, type GroupResult, type PendingResult } from './query.js';
|
|
4
|
+
import { type EntrySeed } from './seed.js';
|
|
4
5
|
import { type SearchRequest, type SearchResult } from './search.js';
|
|
5
6
|
import { type Adapter, type Authorization, type Member, type ProviderRefusal, type ServiceMode } from './adapter.js';
|
|
6
7
|
import { type ChatDraftSurface, type ConversationAgent, type ConversationEntry, type ConversationOptions, type ConversationSurface, type ConversationView } from './conversation.js';
|
|
@@ -8,10 +9,13 @@ import { type WrittenBy } from './change.js';
|
|
|
8
9
|
import type { Open } from './open.js';
|
|
9
10
|
import { type BinaryReference } from './binary.js';
|
|
10
11
|
import { type BinaryAnswer, type CallResult, type HistoryAnswer, type QueueEntry } from './outcome.js';
|
|
12
|
+
import { type Recovery } from './recovery.js';
|
|
11
13
|
import { type SaveRefusal } from './save.js';
|
|
12
14
|
import { type RoomDraft, type RoomDraftWrite } from './room-draft.js';
|
|
13
15
|
import { type SyncStatus } from './status.js';
|
|
14
16
|
import { type RuntimeShell } from './durability.js';
|
|
17
|
+
import { type RuntimeDemand } from './acquisition.js';
|
|
18
|
+
import { type CapacityCause, type CodeAvailability, type Persistence, type Readiness, type SearchObligation } from './readiness.js';
|
|
15
19
|
import { type NarrowedView, type PortReach, type RuntimeView } from './reach.js';
|
|
16
20
|
export type AppTypedSelection = {
|
|
17
21
|
roots: readonly string[];
|
|
@@ -48,6 +52,7 @@ export type MdRuntimeOptions = {
|
|
|
48
52
|
shell: RuntimeShell;
|
|
49
53
|
authorization?: Authorization;
|
|
50
54
|
signal?: AbortSignal;
|
|
55
|
+
recovery?: Recovery;
|
|
51
56
|
};
|
|
52
57
|
export type SaveResult = {
|
|
53
58
|
outcome: 'saved';
|
|
@@ -81,8 +86,8 @@ export type MdRuntime = {
|
|
|
81
86
|
loaded(): Promise<void>;
|
|
82
87
|
rooms(): readonly AppRoom[];
|
|
83
88
|
query: {
|
|
84
|
-
(query: DocumentQuery): Promise<DocumentResult>;
|
|
85
|
-
(query: GroupQuery): Promise<GroupResult>;
|
|
89
|
+
(query: DocumentQuery): Promise<DocumentResult | PendingResult>;
|
|
90
|
+
(query: GroupQuery): Promise<GroupResult | PendingResult>;
|
|
86
91
|
};
|
|
87
92
|
search(request: SearchRequest): Promise<SearchResult>;
|
|
88
93
|
types(locator: string): RoomSchemas;
|
|
@@ -97,15 +102,17 @@ export type MdRuntime = {
|
|
|
97
102
|
reached(locator: string, roomVersion: string, path?: string): boolean;
|
|
98
103
|
log(): string;
|
|
99
104
|
persistence(): boolean;
|
|
105
|
+
retry(): Promise<void>;
|
|
100
106
|
observe: {
|
|
101
107
|
(topic: 'rooms'): Promise<Observation<readonly AppRoom[]>>;
|
|
108
|
+
(topic: 'readiness'): Promise<Observation<Readiness>>;
|
|
102
109
|
(topic: 'connection-refusal'): Promise<Observation<ConnectionRefusal | null>>;
|
|
103
110
|
(topic: 'storage-loss'): Promise<Observation<string | null>>;
|
|
104
111
|
(topic: 'sync-status'): Promise<Observation<SyncStatus>>;
|
|
105
112
|
(topic: 'service-mode'): Promise<Observation<ServiceMode>>;
|
|
106
113
|
(topic: 'member'): Promise<Observation<Member | null>>;
|
|
107
|
-
(topic: 'query', query: DocumentQuery): Promise<Observation<DocumentResult>>;
|
|
108
|
-
(topic: 'query', query: GroupQuery): Promise<Observation<GroupResult>>;
|
|
114
|
+
(topic: 'query', query: DocumentQuery): Promise<Observation<DocumentResult | PendingResult>>;
|
|
115
|
+
(topic: 'query', query: GroupQuery): Promise<Observation<GroupResult | PendingResult>>;
|
|
109
116
|
(topic: 'queue', locator: string): Promise<Observation<readonly QueueEntry[]>>;
|
|
110
117
|
(topic: 'room-drafts'): Promise<Observation<readonly RoomDraft[]>>;
|
|
111
118
|
(topic: 'presentation', app: string): Promise<Observation<unknown>>;
|
|
@@ -115,10 +122,20 @@ export type MdRuntime = {
|
|
|
115
122
|
};
|
|
116
123
|
reauthorize(): Promise<void>;
|
|
117
124
|
};
|
|
118
|
-
export type RuntimeTopic = 'rooms' | 'connection-refusal' | 'storage-loss' | 'sync-status' | 'service-mode' | 'member' | 'query' | 'queue' | 'room-drafts' | 'presentation' | 'conversation' | 'conversations' | 'agents';
|
|
125
|
+
export type RuntimeTopic = 'rooms' | 'readiness' | 'connection-refusal' | 'storage-loss' | 'sync-status' | 'service-mode' | 'member' | 'query' | 'queue' | 'room-drafts' | 'presentation' | 'conversation' | 'conversations' | 'agents';
|
|
126
|
+
export type ReadinessPort = {
|
|
127
|
+
readonly target: string;
|
|
128
|
+
readonly code: CodeAvailability;
|
|
129
|
+
readonly capacity: CapacityCause | null;
|
|
130
|
+
readonly search: SearchObligation;
|
|
131
|
+
};
|
|
119
132
|
export type ComposedRuntime = RuntimeView & {
|
|
133
|
+
seed(entry: EntrySeed): void;
|
|
120
134
|
stop(): Promise<void>;
|
|
121
|
-
|
|
135
|
+
lose(locators: readonly string[]): Promise<void>;
|
|
136
|
+
acquire(demand: RuntimeDemand): void;
|
|
137
|
+
persisted(answer: Persistence): void;
|
|
138
|
+
within(reach: PortReach | null, port: ReadinessPort): NarrowedView;
|
|
122
139
|
};
|
|
123
140
|
export declare function composeRuntime(options: MdRuntimeOptions): ComposedRuntime;
|
|
124
141
|
export {};
|
package/dist/connection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAoB,KAAK,WAAW,EAAqB,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,WAAW,EAEhB,KAAK,aAAa,EAInB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAgB,KAAK,SAAS,EAAe,MAAM,WAAW,CAAC;AAEtE,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,OAAO,EAEZ,KAAK,aAAa,EAKlB,KAAK,MAAM,EASX,KAAK,eAAe,EAIpB,KAAK,WAAW,EAGjB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAExB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAS3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAQL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