@agentshouse/mdruntime-adapter 0.1.0-c4e5de8f794bd → 0.1.0-c4f8432079022
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 +41 -32
- package/dist/actions.d.ts +11 -5
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +78 -97
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +190 -125
- package/dist/discovery.d.ts +3 -2
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +24 -6
- package/dist/gather.d.ts +1 -1
- package/dist/gather.d.ts.map +1 -1
- package/dist/gather.js +4 -14
- package/dist/handed.d.ts +6 -6
- package/dist/handed.d.ts.map +1 -1
- package/dist/handed.js +36 -29
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/part.d.ts +13 -0
- package/dist/part.d.ts.map +1 -0
- package/dist/part.js +80 -0
- package/dist/read.d.ts +40 -27
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +180 -126
- package/dist/referrer.d.ts +2 -0
- package/dist/referrer.d.ts.map +1 -1
- package/dist/referrer.js +8 -2
- package/dist/room-types.d.ts +6 -0
- package/dist/room-types.d.ts.map +1 -0
- package/dist/room-types.js +50 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +62 -76
- package/dist/stream.d.ts +2 -3
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +42 -35
- package/dist/transport.d.ts +16 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/write.d.ts +12 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +90 -42
- package/package.json +2 -2
package/dist/site.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { stepped } from '@agentshouse/mdruntime';
|
|
1
2
|
import { actionOutcome, SITE_SUBMIT } from './actions.js';
|
|
2
3
|
import { mapDiscovery, parseSiteDiscovery, siteCapabilities, siteTracked, } from './discovery.js';
|
|
3
4
|
import { partModels, streamedModels, viewModels } from './model.js';
|
|
4
|
-
import { advancedScope,
|
|
5
|
-
import {
|
|
5
|
+
import { advancedScope, bootstrapping, emptyScope, housePart, parseEnumeration, parseSiteParted, refreshFrom, viewOf, wholeView, } from './read.js';
|
|
6
|
+
import { PART_ATTEMPTS, unverifiedPart } from './part.js';
|
|
6
7
|
import { classifyDoor, classifyRead, discoveryFailure } from './refusal.js';
|
|
8
|
+
import { HOUSE_ROOM_TYPES } from './room-types.js';
|
|
7
9
|
import { houseNotifications } from './stream.js';
|
|
8
10
|
import { SITE_DOOR_BOOTSTRAP, SITE_DOOR_DISCOVER, SITE_DOOR_ENUMERATE, SITE_DOOR_SUBMIT, SITE_FILE_RECORD, SITE_FILES, } from './transport.js';
|
|
9
11
|
import { houseReferrer } from './referrer.js';
|
|
@@ -18,8 +20,8 @@ function siteRoom(tracked) {
|
|
|
18
20
|
locator: tracked.locator,
|
|
19
21
|
handle: tracked.handle,
|
|
20
22
|
roomVersion: roomVersion(tracked),
|
|
21
|
-
operations: {
|
|
22
|
-
replica: { selection: tracked.locator, admission: 'admitted' },
|
|
23
|
+
operations: { write: [], delete: [] },
|
|
24
|
+
replica: { selection: tracked.locator, admission: 'admitted', offline: 'open' },
|
|
23
25
|
providerOwnedPaths: [],
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -29,6 +31,7 @@ function settled(refused) {
|
|
|
29
31
|
export function createSiteAdapter(transport, snapshot = false) {
|
|
30
32
|
const notifications = houseNotifications(transport, 'site');
|
|
31
33
|
const tracked = new Map();
|
|
34
|
+
const expired = new Map();
|
|
32
35
|
function published(referrer) {
|
|
33
36
|
const named = houseReferrer(referrer, tracked);
|
|
34
37
|
return named === null || !tracked.has(named.locator) ? null : named;
|
|
@@ -68,73 +71,48 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
68
71
|
const first = await enumerated(entry, from);
|
|
69
72
|
return 'kind' in first ? first : wholeView(first, (page) => enumerated(entry, from, page));
|
|
70
73
|
}
|
|
71
|
-
async function
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
...(offset === null ? [] : [`offset=${offset}`]),
|
|
75
|
-
];
|
|
76
|
-
const answer = await transport.read(`${SITE_DOOR_BOOTSTRAP}${entry.authority}${query.length === 0 ? '' : `?${query.join('&')}`}`);
|
|
74
|
+
async function partedRoom(entry) {
|
|
75
|
+
const cut = expired.get(entry.locator);
|
|
76
|
+
const answer = await transport.read(`${SITE_DOOR_BOOTSTRAP}${entry.authority}${cut === undefined ? '' : `?expired=${cut}`}`);
|
|
77
77
|
const classified = classifyDoor(answer.status, answer.body, entry.locator);
|
|
78
78
|
if (classified !== null)
|
|
79
|
-
return
|
|
80
|
-
const
|
|
81
|
-
return
|
|
79
|
+
return classified;
|
|
80
|
+
const room = parseSiteParted(answer.body);
|
|
81
|
+
return room === null || room.anchor !== entry.authority ? UNCERTAIN : room;
|
|
82
82
|
}
|
|
83
|
-
async function
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (piece === undefined ||
|
|
95
|
-
part.scope.contents.length !== 1 ||
|
|
96
|
-
piece.path !== path ||
|
|
97
|
-
piece.content.length === 0) {
|
|
98
|
-
return UNCERTAIN;
|
|
99
|
-
}
|
|
100
|
-
text += piece.content;
|
|
101
|
-
const more = siteBootstrapOffset(part.body);
|
|
102
|
-
if (more === null)
|
|
103
|
-
break;
|
|
104
|
-
if (more !== text.length)
|
|
105
|
-
return UNCERTAIN;
|
|
83
|
+
async function fetchedPart(entry, room, listed) {
|
|
84
|
+
for (let attempt = 0; attempt < PART_ATTEMPTS; attempt += 1) {
|
|
85
|
+
const answer = await transport.read(`${SITE_DOOR_BOOTSTRAP}${entry.authority}?part=${encodeURIComponent(listed.part)}`);
|
|
86
|
+
const failure = classifyRead(answer.status, answer.body, entry.locator);
|
|
87
|
+
if (failure?.kind === 'beyond-horizon')
|
|
88
|
+
expired.set(entry.locator, room.position);
|
|
89
|
+
if (failure !== null)
|
|
90
|
+
return failure;
|
|
91
|
+
const scope = await housePart(room, answer.body, listed, 'site');
|
|
92
|
+
if (scope !== null)
|
|
93
|
+
return scope;
|
|
106
94
|
}
|
|
107
|
-
|
|
108
|
-
if (file === undefined || (await sha256Hex(text)) !== file.version)
|
|
109
|
-
return UNCERTAIN;
|
|
110
|
-
return { ...scope, contents: [...scope.contents.slice(0, -1), { path, content: text }] };
|
|
95
|
+
return unverifiedPart(entry.locator);
|
|
111
96
|
}
|
|
112
|
-
async function caughtUp(entry,
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
const scope = await assembled(entry, part.scope, next, offset);
|
|
122
|
-
return 'kind' in scope ? { failure: scope } : { scope, next };
|
|
123
|
-
}
|
|
124
|
-
const { scope } = part;
|
|
125
|
-
if (after !== null || next !== null || roomVersion(scope) === roomVersion(entry)) {
|
|
126
|
-
return { scope, next };
|
|
127
|
-
}
|
|
97
|
+
async function caughtUp(entry, continued) {
|
|
98
|
+
const listed = continued.room.parts[continued.next];
|
|
99
|
+
const scope = listed === undefined
|
|
100
|
+
? emptyScope(continued.room)
|
|
101
|
+
: await fetchedPart(entry, continued.room, listed);
|
|
102
|
+
if ('kind' in scope)
|
|
103
|
+
return scope;
|
|
104
|
+
if (continued.room.parts.length > 1 || roomVersion(scope) === roomVersion(entry))
|
|
105
|
+
return scope;
|
|
128
106
|
const view = await enumeration(entry, scope);
|
|
129
107
|
if ('kind' in view)
|
|
130
|
-
return
|
|
131
|
-
return
|
|
108
|
+
return settled(view);
|
|
109
|
+
return stepped(advancedScope(scope, view));
|
|
132
110
|
}
|
|
133
111
|
async function refreshed(entry, fromRoomVersion) {
|
|
134
112
|
const from = logPosition(fromRoomVersion);
|
|
135
113
|
if (from === null)
|
|
136
114
|
return { kind: 'beyond-horizon' };
|
|
137
|
-
const streamed = notifications.advance(entry, from);
|
|
115
|
+
const streamed = await stepped(notifications.advance(entry, from));
|
|
138
116
|
if (streamed !== null) {
|
|
139
117
|
const models = await streamedModels(streamed.schemas, entry, 'site');
|
|
140
118
|
return models === undefined ? streamed.page : { ...streamed.page, models };
|
|
@@ -143,7 +121,7 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
143
121
|
if ('kind' in view)
|
|
144
122
|
return view;
|
|
145
123
|
notifications.reach(entry.authority, view);
|
|
146
|
-
const answer = refreshFrom(view, fromRoomVersion);
|
|
124
|
+
const answer = await refreshFrom(view, fromRoomVersion);
|
|
147
125
|
if (answer.kind !== 'net-advancement')
|
|
148
126
|
return answer;
|
|
149
127
|
const models = await viewModels(view, entry);
|
|
@@ -152,6 +130,7 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
152
130
|
return {
|
|
153
131
|
localSaves: true,
|
|
154
132
|
exhaustiveDiscovery: true,
|
|
133
|
+
roomTypes: HOUSE_ROOM_TYPES,
|
|
155
134
|
async authorize() {
|
|
156
135
|
return {};
|
|
157
136
|
},
|
|
@@ -174,23 +153,30 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
174
153
|
const entry = tracked.get(request.locator);
|
|
175
154
|
if (entry === undefined)
|
|
176
155
|
return { kind: 'room-not-readable', locator: request.locator };
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
156
|
+
let continued;
|
|
157
|
+
if (request.pageToken === undefined) {
|
|
158
|
+
const room = await partedRoom(entry);
|
|
159
|
+
if ('kind' in room)
|
|
160
|
+
return room;
|
|
161
|
+
continued = { room, next: 0, seen: [] };
|
|
162
|
+
}
|
|
163
|
+
else
|
|
164
|
+
continued = JSON.parse(request.pageToken);
|
|
165
|
+
const scope = await caughtUp(entry, continued);
|
|
166
|
+
if ('kind' in scope)
|
|
167
|
+
return scope;
|
|
168
|
+
notifications.reach(entry.authority, scope);
|
|
169
|
+
const next = continued.next + 1;
|
|
170
|
+
const more = next < continued.room.parts.length;
|
|
184
171
|
const seen = [
|
|
185
|
-
...
|
|
186
|
-
...entry.schemas.filter((schema) =>
|
|
172
|
+
...continued.seen,
|
|
173
|
+
...entry.schemas.filter((schema) => scope.files.some((file) => file.path === schema)),
|
|
187
174
|
];
|
|
188
|
-
const models = await partModels(
|
|
189
|
-
const continuation = held.next === null ? null : { after: held.next, seen };
|
|
175
|
+
const models = await partModels(scope, entry, new Set(seen), !more);
|
|
190
176
|
return {
|
|
191
|
-
...
|
|
177
|
+
...(await stepped(bootstrapping(scope))),
|
|
192
178
|
...(models === undefined ? {} : { models }),
|
|
193
|
-
...(
|
|
179
|
+
...(more ? { pageToken: JSON.stringify({ ...continued, next, seen }) } : {}),
|
|
194
180
|
};
|
|
195
181
|
},
|
|
196
182
|
async refresh(_authorization, request) {
|
|
@@ -219,8 +205,8 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
219
205
|
const read = await transport.download(route);
|
|
220
206
|
if (read.status === 404)
|
|
221
207
|
return unfound();
|
|
222
|
-
return read.status === 200 && read.
|
|
223
|
-
? { kind: 'binary',
|
|
208
|
+
return read.status === 200 && read.body !== null
|
|
209
|
+
? { kind: 'binary', body: read.body, mediaType: read.mediaType }
|
|
224
210
|
: UNCERTAIN;
|
|
225
211
|
},
|
|
226
212
|
async link(_authorization, request) {
|
|
@@ -238,7 +224,7 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
238
224
|
if (named === null)
|
|
239
225
|
return null;
|
|
240
226
|
const { path } = named.referrer;
|
|
241
|
-
return {
|
|
227
|
+
return { locator: named.locator, ...(path === undefined ? {} : { path }) };
|
|
242
228
|
},
|
|
243
229
|
reached(locator, version, target) {
|
|
244
230
|
return reachedVersion(version, target, tracked.get(locator)?.logEpoch);
|
package/dist/stream.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ConversationStream, type RefreshPage, type RoomStreamEvent, type ServiceModeSignal, type StreamReceipts } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
3
|
import type { HouseDoor, HouseHeldRoom, HouseMode, HouseStreamEntry } from './transport.js';
|
|
4
4
|
import { type LogPosition } from './version.js';
|
|
5
5
|
export type HeldRevision = (path: string, revision: string) => boolean;
|
|
6
6
|
export type StreamedAdvancement = {
|
|
7
7
|
page: RefreshPage;
|
|
8
|
-
entries: readonly HouseStreamEntry[];
|
|
9
8
|
schemas: ReadonlyMap<string, HouseStreamEntry>;
|
|
10
9
|
};
|
|
11
10
|
export type HouseNotifications = {
|
|
@@ -16,7 +15,7 @@ export type HouseNotifications = {
|
|
|
16
15
|
reopen(): void;
|
|
17
16
|
track(authorities: readonly TrackedAuthority[]): void;
|
|
18
17
|
reach(authority: string, at: LogPosition): void;
|
|
19
|
-
advance(tracked: TrackedAuthority, from: LogPosition, holds?: HeldRevision): StreamedAdvancement | null
|
|
18
|
+
advance(tracked: TrackedAuthority, from: LogPosition, holds?: HeldRevision): Generator<number, StreamedAdvancement | null, void>;
|
|
20
19
|
conversations: ConversationStream;
|
|
21
20
|
serviceMode: ServiceModeSignal;
|
|
22
21
|
};
|
package/dist/stream.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EAEvB,KAAK,WAAW,EAChB,KAAK,eAAe,EAEpB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAEpB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA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ist/stream.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ROW_WEIGHT, } from '@agentshouse/mdruntime';
|
|
1
2
|
import { acceptedMessage } from './actions.js';
|
|
2
3
|
import { sha256Hex } from './digest.js';
|
|
3
|
-
import { binaryFileOf, headChange,
|
|
4
|
+
import { answered, answering, binaryFileOf, forgotten, headChange, revised } from './read.js';
|
|
4
5
|
import { roomVersion } from './version.js';
|
|
5
6
|
const HELD_FRAMES_MAX = 256;
|
|
6
7
|
function turnOperation(frame) {
|
|
@@ -15,6 +16,7 @@ function listedConversation(listed) {
|
|
|
15
16
|
created: listed.created_at,
|
|
16
17
|
finished: listed.finished_at,
|
|
17
18
|
outcome: listed.outcome,
|
|
19
|
+
waiting: listed.waiting,
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
function position(value) {
|
|
@@ -111,7 +113,10 @@ export function houseNotifications(transport, mode) {
|
|
|
111
113
|
event.kind === 'questions' ||
|
|
112
114
|
event.kind === 'process' ||
|
|
113
115
|
event.kind === 'commands' ||
|
|
114
|
-
event.kind === 'options'
|
|
116
|
+
event.kind === 'options' ||
|
|
117
|
+
event.kind === 'starting' ||
|
|
118
|
+
event.kind === 'link' ||
|
|
119
|
+
event.kind === 'deliveries') {
|
|
115
120
|
live.add(event.conversation);
|
|
116
121
|
}
|
|
117
122
|
for (const observer of conversationObservers)
|
|
@@ -157,6 +162,18 @@ export function houseNotifications(transport, mode) {
|
|
|
157
162
|
emitConversation({ kind: 'options', conversation, options: structuredClone(frame.options) });
|
|
158
163
|
return;
|
|
159
164
|
}
|
|
165
|
+
if (frame.type === 'starting') {
|
|
166
|
+
emitConversation({ kind: 'starting', conversation, step: frame.step });
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (frame.type === 'link') {
|
|
170
|
+
emitConversation({ kind: 'link', conversation, connected: frame.connected });
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (frame.type === 'deliveries') {
|
|
174
|
+
emitConversation({ kind: 'deliveries', conversation, unknown: [...frame.unknown] });
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
160
177
|
if (frame.type === 'interactions') {
|
|
161
178
|
emitConversation({
|
|
162
179
|
kind: 'questions',
|
|
@@ -372,6 +389,9 @@ export function houseNotifications(transport, mode) {
|
|
|
372
389
|
frame.type === 'process' ||
|
|
373
390
|
frame.type === 'commands' ||
|
|
374
391
|
frame.type === 'options' ||
|
|
392
|
+
frame.type === 'starting' ||
|
|
393
|
+
frame.type === 'link' ||
|
|
394
|
+
frame.type === 'deliveries' ||
|
|
375
395
|
frame.type === 'interactions' ||
|
|
376
396
|
frame.type === 'message') {
|
|
377
397
|
converse(frame);
|
|
@@ -536,7 +556,7 @@ export function houseNotifications(transport, mode) {
|
|
|
536
556
|
held,
|
|
537
557
|
});
|
|
538
558
|
},
|
|
539
|
-
advance(tracked, from, holds) {
|
|
559
|
+
*advance(tracked, from, holds) {
|
|
540
560
|
const line = lines.get(tracked.authority);
|
|
541
561
|
const start = position(from.position);
|
|
542
562
|
if (line === undefined || start === null || line.logEpoch !== from.logEpoch)
|
|
@@ -545,36 +565,22 @@ export function houseNotifications(transport, mode) {
|
|
|
545
565
|
const first = pending[0];
|
|
546
566
|
if (first === undefined || first.after > start)
|
|
547
567
|
return null;
|
|
548
|
-
const
|
|
549
|
-
const revisions = {};
|
|
550
|
-
const changes = {};
|
|
551
|
-
const binaryFiles = {};
|
|
552
|
-
const removals = [];
|
|
553
|
-
const applied = [];
|
|
568
|
+
const answer = answering();
|
|
554
569
|
const schemas = new Map();
|
|
555
|
-
const forget = (path) => {
|
|
556
|
-
delete documents[path];
|
|
557
|
-
delete revisions[path];
|
|
558
|
-
delete changes[path];
|
|
559
|
-
delete binaryFiles[path];
|
|
560
|
-
const removed = removals.indexOf(path);
|
|
561
|
-
if (removed !== -1)
|
|
562
|
-
removals.splice(removed, 1);
|
|
563
|
-
};
|
|
564
570
|
for (const frame of pending) {
|
|
565
571
|
for (const entry of frame.entries) {
|
|
572
|
+
yield ROW_WEIGHT + (entry.text?.length ?? 0);
|
|
566
573
|
if (entry.kind === 'edited' &&
|
|
567
574
|
entry.revision !== undefined &&
|
|
568
575
|
holds?.(entry.path, entry.revision) === true) {
|
|
569
|
-
|
|
576
|
+
forgotten(answer, entry.path);
|
|
570
577
|
continue;
|
|
571
578
|
}
|
|
572
|
-
applied.push(entry);
|
|
573
579
|
if (tracked.schemas.includes(entry.path))
|
|
574
580
|
schemas.set(entry.path, entry);
|
|
575
581
|
if (entry.kind === 'removed') {
|
|
576
|
-
|
|
577
|
-
removals.
|
|
582
|
+
forgotten(answer, entry.path);
|
|
583
|
+
answer.removals.add(entry.path);
|
|
578
584
|
continue;
|
|
579
585
|
}
|
|
580
586
|
const binary = binaryFileOf(entry);
|
|
@@ -585,32 +591,33 @@ export function houseNotifications(transport, mode) {
|
|
|
585
591
|
const head = headChange(entry);
|
|
586
592
|
if (head === null)
|
|
587
593
|
return null;
|
|
588
|
-
|
|
594
|
+
forgotten(answer, entry.path);
|
|
589
595
|
if (binary === undefined)
|
|
590
|
-
documents
|
|
596
|
+
answer.documents.set(entry.path, entry.text);
|
|
591
597
|
else
|
|
592
|
-
binaryFiles
|
|
598
|
+
answer.binaryFiles.set(entry.path, binary);
|
|
593
599
|
const revision = entry.revision ?? binary?.sha256;
|
|
594
600
|
if (revision !== undefined)
|
|
595
|
-
|
|
601
|
+
revised(answer, entry.path, revision);
|
|
596
602
|
if (head !== undefined)
|
|
597
|
-
changes
|
|
603
|
+
answer.changes.set(entry.path, head);
|
|
598
604
|
}
|
|
599
605
|
}
|
|
600
606
|
const last = pending.at(-1);
|
|
601
|
-
lines.
|
|
607
|
+
const current = lines.get(tracked.authority);
|
|
608
|
+
if (current?.logEpoch === line.logEpoch) {
|
|
609
|
+
lines.set(tracked.authority, {
|
|
610
|
+
...current,
|
|
611
|
+
frames: current.frames.filter((frame) => frame.position > start),
|
|
612
|
+
held: current.held !== null && current.held > last.position ? current.held : last.position,
|
|
613
|
+
});
|
|
614
|
+
}
|
|
602
615
|
return {
|
|
603
616
|
page: {
|
|
604
617
|
kind: 'net-advancement',
|
|
605
618
|
roomVersion: roomVersion({ position: last.position.toString(), logEpoch: line.logEpoch }),
|
|
606
|
-
|
|
607
|
-
revisions,
|
|
608
|
-
...identities(revisions),
|
|
609
|
-
changes,
|
|
610
|
-
binaryFiles,
|
|
611
|
-
removals: removals.sort(),
|
|
619
|
+
...(yield* answered(answer)),
|
|
612
620
|
},
|
|
613
|
-
entries: applied,
|
|
614
621
|
schemas,
|
|
615
622
|
};
|
|
616
623
|
},
|
package/dist/transport.d.ts
CHANGED
|
@@ -17,11 +17,12 @@ export type HouseDoorAnswer = {
|
|
|
17
17
|
export declare const DOOR_FILES_GET = "/door/files/get";
|
|
18
18
|
export declare const SITE_FILES = "/_house/files/";
|
|
19
19
|
export declare const SITE_FILE_RECORD = "record";
|
|
20
|
-
export type HouseByteAct = 'authored_batch_upload' | '
|
|
20
|
+
export type HouseByteAct = 'authored_batch_upload' | 'file_upload' | 'binary_stage';
|
|
21
21
|
export type HouseByteBody = string | ArrayBuffer | Uint8Array | Blob;
|
|
22
22
|
export type HouseBytesAnswer = {
|
|
23
23
|
status: number;
|
|
24
|
-
|
|
24
|
+
body: ReadableStream<Uint8Array> | null;
|
|
25
|
+
mediaType: string;
|
|
25
26
|
};
|
|
26
27
|
export type HouseByteTransfer = {
|
|
27
28
|
act: HouseByteAct;
|
|
@@ -58,6 +59,7 @@ export type HouseListedConversation = {
|
|
|
58
59
|
created_at: string;
|
|
59
60
|
finished_at: string | null;
|
|
60
61
|
outcome: string | null;
|
|
62
|
+
waiting: boolean;
|
|
61
63
|
};
|
|
62
64
|
export type HouseStreamFrame = {
|
|
63
65
|
type: 'part';
|
|
@@ -95,6 +97,10 @@ export type HouseStreamFrame = {
|
|
|
95
97
|
type: 'interactions';
|
|
96
98
|
conversation_id: string;
|
|
97
99
|
interactions: readonly unknown[];
|
|
100
|
+
} | {
|
|
101
|
+
type: 'deliveries';
|
|
102
|
+
conversation_id: string;
|
|
103
|
+
unknown: readonly string[];
|
|
98
104
|
} | {
|
|
99
105
|
type: 'process';
|
|
100
106
|
conversation_id: string;
|
|
@@ -107,6 +113,14 @@ export type HouseStreamFrame = {
|
|
|
107
113
|
type: 'options';
|
|
108
114
|
conversation_id: string;
|
|
109
115
|
options: LiveFact<'options'>['options'];
|
|
116
|
+
} | {
|
|
117
|
+
type: 'starting';
|
|
118
|
+
conversation_id: string;
|
|
119
|
+
step: string | null;
|
|
120
|
+
} | {
|
|
121
|
+
type: 'link';
|
|
122
|
+
conversation_id: string;
|
|
123
|
+
connected: boolean;
|
|
110
124
|
} | {
|
|
111
125
|
type: 'conversations';
|
|
112
126
|
conversations: readonly HouseListedConversation[];
|
package/dist/transport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE/E,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAE9C,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAEhD,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAEhD,eAAO,MAAM,UAAU,gBAAgB,CAAC;AAExC,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AAEtD,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAEhD,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,eAAO,MAAM,mBAAmB,4BAA4B,CAAC;AAE7D,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC;AAE9C,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CAC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M,IAAI,OAAO,CAAC;IAClB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACpD,CAAC"}
|
package/dist/write.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type ChangeMapping = {
|
|
|
10
10
|
rule: string;
|
|
11
11
|
};
|
|
12
12
|
export declare function houseChanges(batch: ChangeBatch, handle: string): ChangeMapping;
|
|
13
|
+
export declare function houseMove(batch: ChangeBatch, source: string, destination: string): ChangeMapping;
|
|
13
14
|
export type OperationHead = {
|
|
14
15
|
readonly operation_id: string;
|
|
15
16
|
readonly app_ref?: string;
|
|
@@ -21,7 +22,17 @@ export declare function deltaBody(changes: readonly HouseOperation[]): string;
|
|
|
21
22
|
export declare function deltaBytes(delta: string): number;
|
|
22
23
|
export declare function uploadable(inline: Readonly<Record<string, unknown>>, bytes: number, bounds: Pick<HouseBounds, 'max_inline_body_bytes' | 'max_upload_bytes'>): boolean;
|
|
23
24
|
export declare function deltaDigest(delta: string): Promise<string>;
|
|
24
|
-
export
|
|
25
|
+
export type MoveAuthorities = {
|
|
26
|
+
readonly source: {
|
|
27
|
+
readonly authority: string;
|
|
28
|
+
readonly handle: string;
|
|
29
|
+
};
|
|
30
|
+
readonly destination: {
|
|
31
|
+
readonly authority: string;
|
|
32
|
+
readonly handle: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare function mutationOutcome(status: number, body: unknown, locator: string, handle: string, move?: MoveAuthorities): Generator<number, MutationResult, void>;
|
|
25
36
|
export declare function rejectedMapping(mapping: Extract<ChangeMapping, {
|
|
26
37
|
kind: 'unmapped';
|
|
27
38
|
}>): {
|
package/dist/write.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../src/write.ts"],"names":[],"mappings":"AAAA,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