@agentshouse/mdruntime 0.1.0-cacb4c3f6734e → 0.1.0-caee7332d2235
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 +277 -222
- package/README.md +20 -10
- package/dist/adapter.d.ts +95 -20
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +15 -2
- package/dist/attempt.d.ts +16 -0
- package/dist/attempt.d.ts.map +1 -0
- package/dist/attempt.js +70 -0
- package/dist/binary.d.ts +23 -0
- package/dist/binary.d.ts.map +1 -0
- package/dist/binary.js +8 -0
- package/dist/bootstrap.d.ts +18 -5
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +113 -37
- package/dist/change-set.d.ts +7 -2
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +54 -16
- package/dist/change.d.ts +15 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +26 -1
- package/dist/chat/acts.d.ts +33 -0
- package/dist/chat/acts.d.ts.map +1 -0
- package/dist/chat/acts.js +36 -0
- package/dist/chat/context.d.ts +3 -0
- package/dist/chat/context.d.ts.map +1 -0
- package/dist/chat/context.js +10 -0
- package/dist/chat/earlier.d.ts +10 -0
- package/dist/chat/earlier.d.ts.map +1 -0
- package/dist/chat/earlier.js +54 -0
- package/dist/chat/input.d.ts +9 -0
- package/dist/chat/input.d.ts.map +1 -0
- package/dist/chat/input.js +99 -0
- package/dist/chat/kit.d.ts +61 -0
- package/dist/chat/kit.d.ts.map +1 -0
- package/dist/chat/kit.js +123 -0
- package/dist/chat/lasting.d.ts +6 -0
- package/dist/chat/lasting.d.ts.map +1 -0
- package/dist/chat/lasting.js +19 -0
- package/dist/chat/list.d.ts +27 -0
- package/dist/chat/list.d.ts.map +1 -0
- package/dist/chat/list.js +99 -0
- package/dist/chat/markdown.d.ts +21 -0
- package/dist/chat/markdown.d.ts.map +1 -0
- package/dist/chat/markdown.js +246 -0
- package/dist/chat/message.d.ts +6 -0
- package/dist/chat/message.d.ts.map +1 -0
- package/dist/chat/message.js +192 -0
- package/dist/chat/messages.d.ts +22 -0
- package/dist/chat/messages.d.ts.map +1 -0
- package/dist/chat/messages.js +171 -0
- package/dist/chat/name.d.ts +6 -0
- package/dist/chat/name.d.ts.map +1 -0
- package/dist/chat/name.js +37 -0
- package/dist/chat/opened.d.ts +11 -0
- package/dist/chat/opened.d.ts.map +1 -0
- package/dist/chat/opened.js +17 -0
- package/dist/chat/overlay.d.ts +31 -0
- package/dist/chat/overlay.d.ts.map +1 -0
- package/dist/chat/overlay.js +97 -0
- package/dist/chat/parts.d.ts +57 -0
- package/dist/chat/parts.d.ts.map +1 -0
- package/dist/chat/parts.js +119 -0
- package/dist/chat/pieces.d.ts +62 -0
- package/dist/chat/pieces.d.ts.map +1 -0
- package/dist/chat/pieces.js +1110 -0
- package/dist/chat/process.d.ts +20 -0
- package/dist/chat/process.d.ts.map +1 -0
- package/dist/chat/process.js +32 -0
- package/dist/chat/provider.d.ts +63 -0
- package/dist/chat/provider.d.ts.map +1 -0
- package/dist/chat/provider.js +630 -0
- package/dist/chat/question.d.ts +9 -0
- package/dist/chat/question.d.ts.map +1 -0
- package/dist/chat/question.js +69 -0
- package/dist/chat/questions.d.ts +31 -0
- package/dist/chat/questions.d.ts.map +1 -0
- package/dist/chat/questions.js +111 -0
- package/dist/chat/read.d.ts +5 -0
- package/dist/chat/read.d.ts.map +1 -0
- package/dist/chat/read.js +13 -0
- package/dist/chat/ready.d.ts +34 -0
- package/dist/chat/ready.d.ts.map +1 -0
- package/dist/chat/ready.js +91 -0
- package/dist/chat/steady.d.ts +3 -0
- package/dist/chat/steady.d.ts.map +1 -0
- package/dist/chat/steady.js +26 -0
- package/dist/chat/style.d.ts +4 -0
- package/dist/chat/style.d.ts.map +1 -0
- package/dist/chat/style.js +302 -0
- package/dist/chat.d.ts +14 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +8 -0
- package/dist/client.d.ts +30 -13
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +79 -16
- package/dist/collection.d.ts +23 -13
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +349 -36
- package/dist/connection.d.ts +50 -16
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1968 -424
- package/dist/conversation.d.ts +31 -10
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +521 -170
- 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 +157 -0
- package/dist/expectation.d.ts +21 -0
- package/dist/expectation.d.ts.map +1 -0
- package/dist/expectation.js +70 -0
- package/dist/failure.d.ts +13 -0
- package/dist/failure.d.ts.map +1 -0
- package/dist/failure.js +19 -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 +15 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +102 -19
- package/dist/identity.d.ts +5 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +19 -1
- package/dist/index.d.ts +16 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/memory.d.ts +11 -4
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +91 -24
- package/dist/model.d.ts +14 -4
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +12 -1
- package/dist/observation.d.ts +7 -2
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +29 -12
- package/dist/open.d.ts +2 -0
- package/dist/open.d.ts.map +1 -0
- package/dist/open.js +1 -0
- package/dist/outcome.d.ts +38 -3
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +45 -1
- package/dist/overlay.d.ts +18 -5
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +247 -165
- package/dist/query.d.ts +60 -4
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +41 -38
- package/dist/reach.d.ts +8 -3
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +73 -24
- package/dist/react.d.ts +31 -20
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +13 -21
- package/dist/read-side.d.ts +16 -7
- package/dist/read-side.d.ts.map +1 -1
- package/dist/read-side.js +495 -102
- package/dist/readiness.d.ts +53 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +33 -0
- package/dist/reads.d.ts +11 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +98 -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 +13 -3
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +72 -42
- package/dist/replica.d.ts +17 -8
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +165 -79
- package/dist/room-draft.d.ts +38 -9
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +141 -33
- package/dist/rows.d.ts +10 -13
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +19 -14
- package/dist/save.d.ts +35 -3
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +522 -107
- package/dist/search.d.ts +52 -8
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +192 -47
- package/dist/seed.d.ts +16 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +75 -0
- package/dist/shared.d.ts +15 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +398 -0
- package/dist/status.d.ts +6 -2
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -8
- package/dist/store.d.ts +91 -18
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +704 -283
- package/dist/turn.d.ts +9 -0
- package/dist/turn.d.ts.map +1 -0
- package/dist/turn.js +64 -0
- package/dist/windows.d.ts +26 -0
- package/dist/windows.d.ts.map +1 -0
- package/dist/windows.js +93 -0
- package/dist/wire.d.ts +157 -33
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +65 -31
- package/package.json +26 -14
- package/dist/attachment.d.ts +0 -3
- package/dist/attachment.d.ts.map +0 -1
- package/dist/attachment.js +0 -8
package/dist/client.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { observed } from './observation.js';
|
|
2
|
+
import { runtimeError } from './failure.js';
|
|
2
3
|
import { answer, AUTHORIZATION_ENDED, PORT_CLOSED, } from './wire.js';
|
|
4
|
+
// React renders an arrived value in a later task and opens what that render observes as it commits, so this many frames opening nothing mean the page drew what it observes.
|
|
5
|
+
const SETTLED_FRAMES = 2;
|
|
6
|
+
function refused(refusal) {
|
|
7
|
+
return runtimeError(refusal.code, refusal.code, refusal.retryable);
|
|
8
|
+
}
|
|
3
9
|
export function connectMdRuntime(port) {
|
|
4
10
|
let sequence = 0;
|
|
5
11
|
let refusal = null;
|
|
@@ -7,6 +13,8 @@ export function connectMdRuntime(port) {
|
|
|
7
13
|
const calls = new Map();
|
|
8
14
|
const opening = new Map();
|
|
9
15
|
const observations = new Map();
|
|
16
|
+
let drawing = null;
|
|
17
|
+
let settling = null;
|
|
10
18
|
const send = (message) => {
|
|
11
19
|
port.postMessage(message);
|
|
12
20
|
};
|
|
@@ -25,7 +33,7 @@ export function connectMdRuntime(port) {
|
|
|
25
33
|
if (topic === 'connection-refusal')
|
|
26
34
|
handle.receive(reported);
|
|
27
35
|
}
|
|
28
|
-
const failure =
|
|
36
|
+
const failure = refused(reported);
|
|
29
37
|
for (const [id, waiting] of opening) {
|
|
30
38
|
if (waiting.topic === 'connection-refusal')
|
|
31
39
|
waiting.settle(begin(id, waiting.topic, reported));
|
|
@@ -36,12 +44,12 @@ export function connectMdRuntime(port) {
|
|
|
36
44
|
for (const waiting of calls.values())
|
|
37
45
|
waiting.fail(failure);
|
|
38
46
|
calls.clear();
|
|
47
|
+
drawing?.();
|
|
39
48
|
}
|
|
40
|
-
function end(
|
|
49
|
+
function end(failure) {
|
|
41
50
|
if (ended !== null)
|
|
42
51
|
return;
|
|
43
|
-
ended =
|
|
44
|
-
const failure = new Error(reason);
|
|
52
|
+
ended = failure;
|
|
45
53
|
for (const waiting of opening.values())
|
|
46
54
|
waiting.fail(failure);
|
|
47
55
|
opening.clear();
|
|
@@ -51,6 +59,7 @@ export function connectMdRuntime(port) {
|
|
|
51
59
|
for (const { handle } of observations.values())
|
|
52
60
|
handle.end();
|
|
53
61
|
observations.clear();
|
|
62
|
+
drawing?.();
|
|
54
63
|
}
|
|
55
64
|
port.addEventListener('message', (event) => {
|
|
56
65
|
const message = answer(event.data);
|
|
@@ -61,7 +70,11 @@ export function connectMdRuntime(port) {
|
|
|
61
70
|
return;
|
|
62
71
|
}
|
|
63
72
|
if (message.kind === 'ended') {
|
|
64
|
-
|
|
73
|
+
for (const { topic, handle } of observations.values()) {
|
|
74
|
+
if (topic === 'member')
|
|
75
|
+
handle.receive(null);
|
|
76
|
+
}
|
|
77
|
+
end(runtimeError('authorization-ended', AUTHORIZATION_ENDED));
|
|
65
78
|
return;
|
|
66
79
|
}
|
|
67
80
|
if (message.kind === 'event') {
|
|
@@ -71,31 +84,34 @@ export function connectMdRuntime(port) {
|
|
|
71
84
|
const waiting = opening.get(message.id);
|
|
72
85
|
if (waiting !== undefined) {
|
|
73
86
|
opening.delete(message.id);
|
|
74
|
-
if (message.kind === 'failure')
|
|
75
|
-
waiting.fail(
|
|
87
|
+
if (message.kind === 'failure') {
|
|
88
|
+
waiting.fail(runtimeError(message.code, message.message, message.retryable));
|
|
89
|
+
}
|
|
76
90
|
else
|
|
77
91
|
waiting.settle(begin(message.id, waiting.topic, message.value));
|
|
92
|
+
drawing?.();
|
|
78
93
|
return;
|
|
79
94
|
}
|
|
80
95
|
const called = calls.get(message.id);
|
|
81
96
|
if (called === undefined)
|
|
82
97
|
return;
|
|
83
98
|
calls.delete(message.id);
|
|
84
|
-
if (message.kind === 'failure')
|
|
85
|
-
called.fail(
|
|
99
|
+
if (message.kind === 'failure') {
|
|
100
|
+
called.fail(runtimeError(message.code, message.message, message.retryable));
|
|
101
|
+
}
|
|
86
102
|
else
|
|
87
103
|
called.settle(message.value);
|
|
88
104
|
});
|
|
89
105
|
port.addEventListener('close', () => {
|
|
90
|
-
end(PORT_CLOSED);
|
|
106
|
+
end(runtimeError('port-closed', PORT_CLOSED));
|
|
91
107
|
});
|
|
92
108
|
port.start();
|
|
93
109
|
send({ kind: 'hello' });
|
|
94
110
|
function ask(member, input) {
|
|
95
111
|
if (ended !== null)
|
|
96
|
-
return Promise.reject(
|
|
112
|
+
return Promise.reject(ended);
|
|
97
113
|
if (refusal !== null)
|
|
98
|
-
return Promise.reject(
|
|
114
|
+
return Promise.reject(refused(refusal));
|
|
99
115
|
const id = (sequence += 1);
|
|
100
116
|
return new Promise((settle, fail) => {
|
|
101
117
|
calls.set(id, { settle: settle, fail });
|
|
@@ -104,17 +120,47 @@ export function connectMdRuntime(port) {
|
|
|
104
120
|
}
|
|
105
121
|
function watch(topic, input) {
|
|
106
122
|
if (ended !== null)
|
|
107
|
-
return Promise.reject(
|
|
123
|
+
return Promise.reject(ended);
|
|
108
124
|
const id = (sequence += 1);
|
|
109
125
|
if (refusal !== null) {
|
|
110
126
|
return topic === 'connection-refusal'
|
|
111
127
|
? Promise.resolve(begin(id, topic, refusal))
|
|
112
|
-
: Promise.reject(
|
|
128
|
+
: Promise.reject(refused(refusal));
|
|
113
129
|
}
|
|
114
130
|
return new Promise((settle, fail) => {
|
|
115
131
|
opening.set(id, { topic, settle, fail });
|
|
116
132
|
send({ kind: 'observe', id, topic, input });
|
|
133
|
+
drawing?.();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function settled() {
|
|
137
|
+
if (settling !== null)
|
|
138
|
+
return settling;
|
|
139
|
+
settling = new Promise((resolve) => {
|
|
140
|
+
let moved = 0;
|
|
141
|
+
const check = () => {
|
|
142
|
+
moved += 1;
|
|
143
|
+
if (opening.size > 0)
|
|
144
|
+
return;
|
|
145
|
+
const at = moved;
|
|
146
|
+
const waited = (frames) => {
|
|
147
|
+
requestAnimationFrame(() => {
|
|
148
|
+
if (frames < SETTLED_FRAMES) {
|
|
149
|
+
waited(frames + 1);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (moved !== at || opening.size > 0)
|
|
153
|
+
return;
|
|
154
|
+
drawing = null;
|
|
155
|
+
resolve();
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
waited(1);
|
|
159
|
+
};
|
|
160
|
+
drawing = check;
|
|
161
|
+
check();
|
|
117
162
|
});
|
|
163
|
+
return settling;
|
|
118
164
|
}
|
|
119
165
|
return {
|
|
120
166
|
rooms: () => ask('rooms', []),
|
|
@@ -128,15 +174,17 @@ export function connectMdRuntime(port) {
|
|
|
128
174
|
discard: (room, path, revision) => ask('roomDraft.discard', [room, path, revision]),
|
|
129
175
|
},
|
|
130
176
|
save: (room, roomDrafts) => ask('save', [room, roomDrafts]),
|
|
177
|
+
saveParts: (room, parts) => ask('saveParts', [room, parts]),
|
|
131
178
|
presentation: {
|
|
132
179
|
read: () => ask('presentation.read', []),
|
|
133
180
|
write: (value) => ask('presentation.write', [value]),
|
|
181
|
+
edit: (members) => ask('presentation.edit', [members]),
|
|
134
182
|
},
|
|
135
183
|
conversation: {
|
|
136
184
|
list: () => ask('conversation.list', []),
|
|
137
185
|
read: (conversation, options) => ask('conversation.read', [conversation, options]),
|
|
138
186
|
create: (input) => ask('conversation.create', [input]),
|
|
139
|
-
send: (conversation) => ask('conversation.send', [conversation]),
|
|
187
|
+
send: (conversation, operation, draft) => ask('conversation.send', [conversation, operation, draft]),
|
|
140
188
|
answer: (conversation, answer) => ask('conversation.answer', [conversation, answer]),
|
|
141
189
|
interrupt: (conversation) => ask('conversation.interrupt', [conversation]),
|
|
142
190
|
kill: (conversation) => ask('conversation.kill', [conversation]),
|
|
@@ -144,15 +192,30 @@ export function connectMdRuntime(port) {
|
|
|
144
192
|
delete: (conversation) => ask('conversation.delete', [conversation]),
|
|
145
193
|
},
|
|
146
194
|
chatDraft: {
|
|
147
|
-
write: (conversation, draft) => ask('chatDraft.write', [conversation, draft]),
|
|
195
|
+
write: (conversation, draft, revision) => ask('chatDraft.write', [conversation, draft, revision]),
|
|
196
|
+
prepend: (conversation, draft) => ask('chatDraft.prepend', [conversation, draft]),
|
|
148
197
|
discard: (conversation) => ask('chatDraft.discard', [conversation]),
|
|
149
198
|
},
|
|
150
199
|
history: (locator, path, query) => ask('history', [locator, path, query]),
|
|
200
|
+
binaryFile: {
|
|
201
|
+
read: (room, path, revision) => ask('binaryFile.read', [room, path, revision]),
|
|
202
|
+
link: (room, path, revision) => ask('binaryFile.link', [room, path, revision]),
|
|
203
|
+
readReference: (reference) => ask('binaryFile.readReference', [reference]),
|
|
204
|
+
},
|
|
151
205
|
call: (name, input) => ask('call', [name, input]),
|
|
152
206
|
reached: (locator, roomVersion, path) => ask('reached', [locator, roomVersion, path]),
|
|
153
207
|
log: () => ask('log', []),
|
|
154
208
|
persistence: () => ask('persistence', []),
|
|
209
|
+
retry: () => ask('retry', []),
|
|
155
210
|
observe: ((topic, ...input) => watch(topic, input)),
|
|
156
211
|
reauthorize: () => ask('reauthorize', []),
|
|
212
|
+
settled,
|
|
157
213
|
};
|
|
158
214
|
}
|
|
215
|
+
const turns = new WeakMap();
|
|
216
|
+
export function inTurn(client, work) {
|
|
217
|
+
const turn = (turns.get(client) ?? Promise.resolve()).then(work);
|
|
218
|
+
turns.set(client, turn.then(() => undefined, () => undefined));
|
|
219
|
+
return turn;
|
|
220
|
+
}
|
|
221
|
+
export { unanswered } from './wire.js';
|
package/dist/collection.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
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>>;
|
|
8
10
|
composition: Composition;
|
|
11
|
+
document(path: string): Document | undefined;
|
|
9
12
|
};
|
|
10
13
|
export type Composition = {
|
|
11
14
|
model: ModelState;
|
|
@@ -15,16 +18,23 @@ export type Composition = {
|
|
|
15
18
|
} | null;
|
|
16
19
|
};
|
|
17
20
|
export declare function governing(composition: Composition, path: string): ModelState;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function readCollection(text: Readonly<Record<string, string>>, composition: Composition, previous?: Previous): {
|
|
24
|
-
kind: 'read';
|
|
25
|
-
collection: Collection;
|
|
26
|
-
} | Refused;
|
|
21
|
+
export declare function collectionOf(text: Readonly<Record<string, string>>, composition: Composition, previous?: Collection): Collection;
|
|
22
|
+
export declare function collecting(text: Readonly<Record<string, string>>, composition: Composition, previous?: Collection): Generator<number, Collection, void>;
|
|
23
|
+
export declare function passingFrontmatter(collection: Collection, path: string): Frontmatter | undefined;
|
|
24
|
+
export declare function documentsOf(collection: Collection): Generator<readonly [string, Document]>;
|
|
25
|
+
export declare function unreadable(text: Readonly<Record<string, string>>, previous?: Readonly<Record<string, string>>): Generator<number, Refused | null, void>;
|
|
27
26
|
export declare function validRoot(root: unknown): root is string;
|
|
28
|
-
export declare function validateCollection(text: Readonly<Record<string, string>>, binaryTargets: readonly string[], composition: Composition): Validation
|
|
27
|
+
export declare function validateCollection(text: Readonly<Record<string, string>>, binaryTargets: readonly string[], composition: Composition): Generator<number, Validation, void>;
|
|
28
|
+
type Held = {
|
|
29
|
+
text: Paths<string>;
|
|
30
|
+
binaries: Paths<unknown>;
|
|
31
|
+
};
|
|
32
|
+
export declare function indexReferrers(held: Held, composition: Composition): Later<void>;
|
|
33
|
+
export declare function referencesIndexed(held: Held, composition: Composition): boolean;
|
|
34
|
+
export declare function referring(held: Held, composition: Composition, targets: Iterable<string>): ReadonlySet<string> | null;
|
|
35
|
+
export declare function available(composition: Composition): boolean;
|
|
36
|
+
export declare function changedCleanly(next: Held, previous: Held & {
|
|
37
|
+
composition: Composition;
|
|
38
|
+
}, composition: Composition): Generator<number, boolean, void>;
|
|
29
39
|
export {};
|
|
30
40
|
//# 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,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAkD,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAwC,KAAK,KAAK,EAAE,MAAM,WAAW,CAAC;AAE7E,eAAO,MAAM,QAAQ,EAAE,eAAwE,CAAC;AAIhG,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvC,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,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