@agentshouse/mdruntime-adapter 0.1.0-ca764edcceec6 → 0.1.0-ca80960fd750d
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 +118 -105
- package/dist/actions.d.ts +14 -21
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +84 -133
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +235 -169
- package/dist/discovery.d.ts +4 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +28 -10
- package/dist/gather.d.ts +1 -1
- package/dist/gather.d.ts.map +1 -1
- package/dist/gather.js +4 -14
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/model.d.ts +5 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +8 -1
- package/dist/part.d.ts +15 -0
- package/dist/part.d.ts.map +1 -0
- package/dist/part.js +82 -0
- package/dist/read.d.ts +57 -26
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +268 -152
- package/dist/room-types.d.ts +6 -0
- package/dist/room-types.d.ts.map +1 -0
- package/dist/room-types.js +83 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +78 -105
- package/dist/stream.d.ts +5 -5
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +60 -38
- package/dist/transport.d.ts +25 -15
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +1 -1
- package/dist/upload.d.ts +12 -0
- package/dist/upload.d.ts.map +1 -0
- package/dist/upload.js +63 -0
- package/dist/write.d.ts +12 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +92 -55
- package/package.json +3 -3
- package/dist/handed.d.ts +0 -15
- package/dist/handed.d.ts.map +0 -1
- package/dist/handed.js +0 -38
- package/dist/referrer.d.ts +0 -7
- package/dist/referrer.d.ts.map +0 -1
- package/dist/referrer.js +0 -35
package/dist/discovery.d.ts
CHANGED
|
@@ -16,13 +16,13 @@ export type HouseBounds = {
|
|
|
16
16
|
max_held_files: number;
|
|
17
17
|
change_retention_seconds: number;
|
|
18
18
|
operation_retention_seconds: number;
|
|
19
|
+
max_move_documents?: number;
|
|
19
20
|
};
|
|
20
21
|
export type HouseOperations = {
|
|
21
|
-
read: readonly string[];
|
|
22
|
-
sync: readonly string[];
|
|
23
22
|
write: readonly string[];
|
|
24
23
|
delete: readonly string[];
|
|
25
24
|
};
|
|
25
|
+
export type HouseReadLevel = 'mcp' | 'online' | 'local';
|
|
26
26
|
export type HouseModel = {
|
|
27
27
|
root: string;
|
|
28
28
|
paths: readonly string[];
|
|
@@ -35,6 +35,7 @@ export type HouseAuthority = LogPosition & {
|
|
|
35
35
|
houseModel: HouseModel | null;
|
|
36
36
|
managedReplication: 'admitted' | 'unavailable';
|
|
37
37
|
protectedPaths: readonly string[];
|
|
38
|
+
read: HouseReadLevel;
|
|
38
39
|
operations: HouseOperations;
|
|
39
40
|
};
|
|
40
41
|
export type HouseDiscoveryDocument = {
|
|
@@ -66,7 +67,7 @@ export declare function siteTracked(document: HouseSiteDiscovery): TrackedAuthor
|
|
|
66
67
|
export declare function trackedFrom(document: HouseDiscoveryDocument): TrackedAuthority[];
|
|
67
68
|
export declare function providerLimits(bounds: HouseBounds): readonly ProviderLimit[];
|
|
68
69
|
export declare function declaredRetention(bounds: HouseBounds): Retention;
|
|
69
|
-
export declare function capabilities(
|
|
70
|
+
export declare function capabilities(actions: HouseDiscoveryDocument['actions'], rooms: readonly Pick<TrackedAuthority, 'authority' | 'houseModel'>[]): readonly Capability[];
|
|
70
71
|
export declare function siteCapabilities(): readonly Capability[];
|
|
71
72
|
export declare function discoveredRoom(authority: HouseAuthority): DiscoveredRoom;
|
|
72
73
|
export declare function mapDiscovery(document: Pick<HouseDiscoveryDocument, 'bounds'>, rooms: readonly DiscoveredRoom[], declared: readonly Capability[]): Discovery;
|
package/dist/discovery.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,SAAS,EACT,MAAM,EACN,aAAa,EACb,SAAS,EACV,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3E,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAAU,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,EAAE,MAAM,CAAC;IACjC,2BAA2B,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,SAAS,EACT,MAAM,EACN,aAAa,EACb,SAAS,EACV,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3E,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAAU,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EA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wBAAgB,cAAc,CAAC,SAAS,EAAE,cAAc,GAAG,cAAc,CAqBxE;AAED,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,IAAI,CAAC,sBAAsB,EAAE,QAAQ,CAAC,EAChD,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,QAAQ,EAAE,SAAS,UAAU,EAAE,GAC9B,SAAS,CAQX"}
|
package/dist/discovery.js
CHANGED
|
@@ -17,7 +17,8 @@ const BOUND_KEYS = [
|
|
|
17
17
|
'change_retention_seconds',
|
|
18
18
|
'operation_retention_seconds',
|
|
19
19
|
];
|
|
20
|
-
const OPERATION_KEYS = ['
|
|
20
|
+
const OPERATION_KEYS = ['write', 'delete'];
|
|
21
|
+
const READ_LEVELS = ['mcp', 'online', 'local'];
|
|
21
22
|
function stringList(value) {
|
|
22
23
|
if (!Array.isArray(value))
|
|
23
24
|
return null;
|
|
@@ -34,6 +35,12 @@ function parseBounds(value) {
|
|
|
34
35
|
return null;
|
|
35
36
|
bounds[key] = amount;
|
|
36
37
|
}
|
|
38
|
+
const moves = held.max_move_documents;
|
|
39
|
+
if (moves !== undefined) {
|
|
40
|
+
if (typeof moves !== 'number' || !Number.isFinite(moves))
|
|
41
|
+
return null;
|
|
42
|
+
bounds.max_move_documents = moves;
|
|
43
|
+
}
|
|
37
44
|
return bounds;
|
|
38
45
|
}
|
|
39
46
|
function parseHouseModel(value) {
|
|
@@ -85,7 +92,12 @@ function parseAuthority(value) {
|
|
|
85
92
|
const houseModel = parseHouseModel(held.house_model);
|
|
86
93
|
const protectedPaths = stringList(held.protected_paths);
|
|
87
94
|
const operations = parseOperations(held.operations);
|
|
88
|
-
|
|
95
|
+
const read = READ_LEVELS.find((level) => level === held.read);
|
|
96
|
+
if (at === null ||
|
|
97
|
+
houseModel === undefined ||
|
|
98
|
+
protectedPaths === null ||
|
|
99
|
+
read === undefined ||
|
|
100
|
+
operations === null)
|
|
89
101
|
return null;
|
|
90
102
|
if (typeof held.room_ref !== 'string' || held.room_ref.length === 0)
|
|
91
103
|
return null;
|
|
@@ -99,6 +111,7 @@ function parseAuthority(value) {
|
|
|
99
111
|
houseModel,
|
|
100
112
|
managedReplication: held.managed_replication,
|
|
101
113
|
protectedPaths,
|
|
114
|
+
read,
|
|
102
115
|
operations,
|
|
103
116
|
...at,
|
|
104
117
|
};
|
|
@@ -205,8 +218,11 @@ export function providerLimits(bounds) {
|
|
|
205
218
|
{ name: 'change-documents', value: bounds.max_batch_documents },
|
|
206
219
|
{ name: 'path-length', value: bounds.max_path_length },
|
|
207
220
|
{ name: 'path-depth', value: bounds.max_path_depth },
|
|
221
|
+
...(bounds.max_move_documents === undefined
|
|
222
|
+
? []
|
|
223
|
+
: [{ name: 'move-documents', value: bounds.max_move_documents }]),
|
|
208
224
|
{ name: 'write-rate' },
|
|
209
|
-
{ name: '
|
|
225
|
+
{ name: 'storage-limit' },
|
|
210
226
|
];
|
|
211
227
|
}
|
|
212
228
|
export function declaredRetention(bounds) {
|
|
@@ -216,15 +232,15 @@ export function declaredRetention(bounds) {
|
|
|
216
232
|
refreshHorizon: bounds.change_retention_seconds,
|
|
217
233
|
};
|
|
218
234
|
}
|
|
219
|
-
export function capabilities(
|
|
220
|
-
const house =
|
|
235
|
+
export function capabilities(actions, rooms) {
|
|
236
|
+
const house = rooms.find((room) => room.houseModel !== null);
|
|
221
237
|
return [
|
|
222
238
|
{
|
|
223
239
|
name: PROVIDER_ACTIONS,
|
|
224
|
-
actions: declaredActions(
|
|
240
|
+
actions: declaredActions(actions),
|
|
225
241
|
...(house === undefined
|
|
226
242
|
? {}
|
|
227
|
-
: { conversationAgents: houseConversationAgents(house.
|
|
243
|
+
: { conversationAgents: houseConversationAgents(house.authority) }),
|
|
228
244
|
},
|
|
229
245
|
];
|
|
230
246
|
}
|
|
@@ -244,12 +260,14 @@ export function discoveredRoom(authority) {
|
|
|
244
260
|
handle: authority.roomHandle,
|
|
245
261
|
roomVersion: roomVersion(authority),
|
|
246
262
|
operations: {
|
|
247
|
-
read: [...authority.operations.read],
|
|
248
|
-
sync: [...authority.operations.sync],
|
|
249
263
|
write: [...authority.operations.write],
|
|
250
264
|
delete: [...authority.operations.delete],
|
|
251
265
|
},
|
|
252
|
-
replica: {
|
|
266
|
+
replica: {
|
|
267
|
+
selection: locator,
|
|
268
|
+
admission: authority.managedReplication,
|
|
269
|
+
offline: authority.read === 'online' ? 'locked' : 'open',
|
|
270
|
+
},
|
|
253
271
|
...(authority.houseModel === null
|
|
254
272
|
? {}
|
|
255
273
|
: { typedSelection: { roots: [...authority.houseModel.paths] } }),
|
package/dist/gather.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function gatheredEach<A, R>(send: (asks: readonly A[], answer: (ask: number, result: R) => void) => Promise<void>): (ask: A) => Promise<R>;
|
|
2
2
|
export declare function gathered<A, R>(send: (asks: readonly A[]) => Promise<readonly R[]>): (ask: A) => Promise<R>;
|
|
3
|
-
export declare function selections<T>(items: readonly T[],
|
|
3
|
+
export declare function selections<T>(items: readonly T[], limit: number): readonly (readonly T[])[];
|
|
4
4
|
//# sourceMappingURL=gather.d.ts.map
|
package/dist/gather.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gather.d.ts","sourceRoot":"","sources":["../src/gather.ts"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,GACpF,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAwBxB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,KAAK,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,GAClD,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAMxB;AAED,wBAAgB,UAAU,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"gather.d.ts","sourceRoot":"","sources":["../src/gather.ts"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,GACpF,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAwBxB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,KAAK,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,GAClD,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAMxB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAO3F"}
|
package/dist/gather.js
CHANGED
|
@@ -25,21 +25,11 @@ export function gathered(send) {
|
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
export function selections(items,
|
|
28
|
+
export function selections(items, limit) {
|
|
29
|
+
const size = Math.max(1, limit);
|
|
29
30
|
const parts = [];
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
for (const item of items) {
|
|
33
|
-
const weighed = weight(item);
|
|
34
|
-
if (part.length > 0 && carried + weighed > limit) {
|
|
35
|
-
parts.push(part);
|
|
36
|
-
part = [];
|
|
37
|
-
carried = 0;
|
|
38
|
-
}
|
|
39
|
-
part.push(item);
|
|
40
|
-
carried += weighed;
|
|
31
|
+
for (let start = 0; start < items.length; start += size) {
|
|
32
|
+
parts.push(items.slice(start, start + size));
|
|
41
33
|
}
|
|
42
|
-
if (part.length > 0)
|
|
43
|
-
parts.push(part);
|
|
44
34
|
return parts;
|
|
45
35
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter, type AgentsHouseAdapterOptions } from './adapter.js';
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
2
|
+
export { finishedUpload, houseUpload, type HouseUpload } from './upload.js';
|
|
3
|
+
export { HISTORY_PAGE, HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS, TRIGGER_ROOMS, } from './actions.js';
|
|
4
|
+
export { HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, type InboxChannelKind, } from './room-types.js';
|
|
5
|
+
export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EACL,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter } from './adapter.js';
|
|
2
|
-
export {
|
|
2
|
+
export { finishedUpload, houseUpload } from './upload.js';
|
|
3
|
+
export { HISTORY_PAGE, HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS, TRIGGER_ROOMS, } from './actions.js';
|
|
4
|
+
export { HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, } from './room-types.js';
|
package/dist/model.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { RoomModels } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
|
-
import { type HouseScope, type HouseView } from './read.js';
|
|
3
|
+
import { type HouseRoomParts, type HouseScope, type HouseView } from './read.js';
|
|
4
4
|
import type { HouseMode, HouseStreamEntry } from './transport.js';
|
|
5
5
|
export declare function partModels(scope: HouseScope, tracked: TrackedAuthority, seen: ReadonlySet<string>, final: boolean): Promise<RoomModels | undefined>;
|
|
6
|
+
export declare function manifestedModels(room: HouseRoomParts, tracked: TrackedAuthority): Promise<{
|
|
7
|
+
readonly models: RoomModels | undefined;
|
|
8
|
+
readonly seen: string[];
|
|
9
|
+
}>;
|
|
6
10
|
export declare function viewModels(view: HouseView, tracked: TrackedAuthority): Promise<RoomModels | undefined>;
|
|
7
11
|
export declare function streamedModels(schemas: ReadonlyMap<string, HouseStreamEntry>, tracked: TrackedAuthority, mode: HouseMode): Promise<RoomModels | undefined>;
|
|
8
12
|
//# sourceMappingURL=model.d.ts.map
|
package/dist/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAIL,KAAK,cAAc,EAEnB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAoClE,wBAAgB,UAAU,CACxB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EACzB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAKjC;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAM/E;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAcjC;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAC9C,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAWjC"}
|
package/dist/model.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sha256Hex } from './digest.js';
|
|
2
|
-
import { schemaOf, schemaPath } from './read.js';
|
|
2
|
+
import { modelScope, schemaOf, schemaPath, } from './read.js';
|
|
3
3
|
const MODEL_ABSENT = { kind: 'model-unavailable', reason: 'not-readable' };
|
|
4
4
|
const ABSENT_SCHEMA = { schema: null, version: null, revision: null };
|
|
5
5
|
async function heldModel(read, identity) {
|
|
@@ -33,6 +33,13 @@ export function partModels(scope, tracked, seen, final) {
|
|
|
33
33
|
return final && !seen.has(schema) ? ABSENT_SCHEMA : undefined;
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
+
export async function manifestedModels(room, tracked) {
|
|
37
|
+
const scope = modelScope(room);
|
|
38
|
+
return {
|
|
39
|
+
models: await partModels(scope, tracked, new Set(), true),
|
|
40
|
+
seen: tracked.schemas.filter((schema) => scope.files.some((file) => file.path === schema)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
36
43
|
export function viewModels(view, tracked) {
|
|
37
44
|
return modelsOf(tracked, (schema) => {
|
|
38
45
|
const change = view.changes.find((candidate) => candidate.path === schema);
|
package/dist/part.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ScopedRefusal } from '@agentshouse/mdruntime';
|
|
2
|
+
export declare const PART_ATTEMPTS = 3;
|
|
3
|
+
export declare const PART_UNVERIFIED = "part_unverified";
|
|
4
|
+
export type HousePart = {
|
|
5
|
+
part: string;
|
|
6
|
+
bytes: number;
|
|
7
|
+
sha256: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function parsePart(value: unknown): HousePart | null;
|
|
10
|
+
export declare function partArrival(listed: HousePart, arriving: ((bytes: number) => void) | undefined): ((answered: number) => void) | undefined;
|
|
11
|
+
export declare function partFrame(body: unknown): Uint8Array<ArrayBuffer> | null;
|
|
12
|
+
export declare function checkedPayload(frame: Uint8Array<ArrayBuffer>, listed: HousePart): Promise<Uint8Array<ArrayBuffer> | null>;
|
|
13
|
+
export declare function gunzipped(payload: Uint8Array<ArrayBuffer>): ReadableStream<string>;
|
|
14
|
+
export declare function unverifiedPart(locator: string): ScopedRefusal;
|
|
15
|
+
//# sourceMappingURL=part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"part.d.ts","sourceRoot":"","sources":["../src/part.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAO1D;AAoBD,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,GAC9C,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAG1C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAIvE;AAED,wBAAsB,cAAc,CAClC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,EAC9B,MAAM,EAAE,SAAS,GAChB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAazC;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAKlF;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAS7D"}
|
package/dist/part.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const PART_MAGIC = 0x48505431;
|
|
2
|
+
const PART_HEAD_BYTES = 8;
|
|
3
|
+
const PART_DIGEST_BYTES = 32;
|
|
4
|
+
const PART_SHA256 = /^[0-9a-f]{64}$/u;
|
|
5
|
+
export const PART_ATTEMPTS = 3;
|
|
6
|
+
export const PART_UNVERIFIED = 'part_unverified';
|
|
7
|
+
export function parsePart(value) {
|
|
8
|
+
if (typeof value !== 'object' || value === null)
|
|
9
|
+
return null;
|
|
10
|
+
const { part, bytes, sha256 } = value;
|
|
11
|
+
if (typeof part !== 'string' || part.length === 0)
|
|
12
|
+
return null;
|
|
13
|
+
if (typeof bytes !== 'number' || !Number.isSafeInteger(bytes) || bytes <= 0)
|
|
14
|
+
return null;
|
|
15
|
+
if (typeof sha256 !== 'string' || !PART_SHA256.test(sha256))
|
|
16
|
+
return null;
|
|
17
|
+
return { part, bytes, sha256 };
|
|
18
|
+
}
|
|
19
|
+
function decoded(text) {
|
|
20
|
+
let binary;
|
|
21
|
+
try {
|
|
22
|
+
binary = atob(text);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const bytes = new Uint8Array(binary.length);
|
|
28
|
+
for (let at = 0; at < binary.length; at += 1)
|
|
29
|
+
bytes[at] = binary.charCodeAt(at);
|
|
30
|
+
return bytes;
|
|
31
|
+
}
|
|
32
|
+
function hex(bytes) {
|
|
33
|
+
let text = '';
|
|
34
|
+
for (const byte of bytes)
|
|
35
|
+
text += byte.toString(16).padStart(2, '0');
|
|
36
|
+
return text;
|
|
37
|
+
}
|
|
38
|
+
export function partArrival(listed, arriving) {
|
|
39
|
+
if (arriving === undefined)
|
|
40
|
+
return undefined;
|
|
41
|
+
return (answered) => arriving(Math.min(listed.bytes, Math.floor((answered * 3) / 4)));
|
|
42
|
+
}
|
|
43
|
+
export function partFrame(body) {
|
|
44
|
+
if (typeof body !== 'object' || body === null)
|
|
45
|
+
return null;
|
|
46
|
+
const { part } = body;
|
|
47
|
+
return typeof part === 'string' ? decoded(part) : null;
|
|
48
|
+
}
|
|
49
|
+
export async function checkedPayload(frame, listed) {
|
|
50
|
+
if (frame.length !== listed.bytes)
|
|
51
|
+
return null;
|
|
52
|
+
if (frame.length < PART_HEAD_BYTES + PART_DIGEST_BYTES)
|
|
53
|
+
return null;
|
|
54
|
+
const view = new DataView(frame.buffer, frame.byteOffset, frame.byteLength);
|
|
55
|
+
if (view.getUint32(0) !== PART_MAGIC)
|
|
56
|
+
return null;
|
|
57
|
+
const length = view.getUint32(4);
|
|
58
|
+
if (PART_HEAD_BYTES + length + PART_DIGEST_BYTES !== frame.length)
|
|
59
|
+
return null;
|
|
60
|
+
const payload = frame.subarray(PART_HEAD_BYTES, PART_HEAD_BYTES + length);
|
|
61
|
+
const digest = hex(new Uint8Array(await crypto.subtle.digest('SHA-256', payload)));
|
|
62
|
+
if (digest !== listed.sha256 || hex(frame.subarray(PART_HEAD_BYTES + length)) !== digest) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return payload;
|
|
66
|
+
}
|
|
67
|
+
export function gunzipped(payload) {
|
|
68
|
+
return new Blob([payload])
|
|
69
|
+
.stream()
|
|
70
|
+
.pipeThrough(new DecompressionStream('gzip'))
|
|
71
|
+
.pipeThrough(new TextDecoderStream());
|
|
72
|
+
}
|
|
73
|
+
export function unverifiedPart(locator) {
|
|
74
|
+
return {
|
|
75
|
+
kind: 'scoped-refusal',
|
|
76
|
+
locator,
|
|
77
|
+
scope: 'undisclosed',
|
|
78
|
+
code: PART_UNVERIFIED,
|
|
79
|
+
fields: {},
|
|
80
|
+
retryable: true,
|
|
81
|
+
};
|
|
82
|
+
}
|
package/dist/read.d.ts
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AdapterFailure, type BinaryFile, type BootstrapInventory, type BootstrapPage, type RefreshResult, type RoomModels, type TransportUncertainty } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
|
+
import { type HousePart } from './part.js';
|
|
3
4
|
import type { HouseMode } from './transport.js';
|
|
4
5
|
import { type LogPosition } from './version.js';
|
|
5
6
|
export type HeadChange = BootstrapPage['changes'][string];
|
|
6
|
-
export
|
|
7
|
-
|
|
7
|
+
export type Answered = {
|
|
8
|
+
readonly documents: Map<string, string>;
|
|
9
|
+
readonly revisions: Map<string, string>;
|
|
10
|
+
readonly fileIds: Map<string, string>;
|
|
11
|
+
readonly changes: Map<string, HeadChange>;
|
|
12
|
+
readonly binaryFiles: Map<string, BinaryFile>;
|
|
13
|
+
readonly removals: Set<string>;
|
|
14
|
+
readonly folders: Set<string>;
|
|
15
|
+
readonly folderRemovals: Set<string>;
|
|
8
16
|
};
|
|
17
|
+
export declare function answering(): Answered;
|
|
18
|
+
export declare function revised(answer: Answered, path: string, revision: string): void;
|
|
19
|
+
export declare function forgotten(answer: Answered, path: string): void;
|
|
20
|
+
export declare function folded(answer: Answered, path: string, removed: boolean): void;
|
|
21
|
+
export declare function answered(answer: Answered): Generator<number, {
|
|
22
|
+
documents: Readonly<Record<string, string>>;
|
|
23
|
+
revisions: Readonly<Record<string, string>>;
|
|
24
|
+
fileIds?: Readonly<Record<string, string>>;
|
|
25
|
+
changes: Readonly<Record<string, HeadChange>>;
|
|
26
|
+
binaryFiles: Readonly<Record<string, BinaryFile>>;
|
|
27
|
+
removals: readonly string[];
|
|
28
|
+
folders?: readonly string[];
|
|
29
|
+
folderRemovals?: readonly string[];
|
|
30
|
+
}, void>;
|
|
9
31
|
export type HouseManifestFile = {
|
|
10
32
|
path: string;
|
|
11
33
|
revision: string | undefined;
|
|
@@ -22,28 +44,31 @@ export type HouseScope = LogPosition & {
|
|
|
22
44
|
anchor: string;
|
|
23
45
|
files: readonly HouseManifestFile[];
|
|
24
46
|
contents: readonly HouseContent[];
|
|
47
|
+
folders?: readonly string[];
|
|
25
48
|
};
|
|
26
|
-
export type
|
|
27
|
-
|
|
28
|
-
|
|
49
|
+
export type HouseModels = {
|
|
50
|
+
files: readonly HouseManifestFile[];
|
|
51
|
+
contents: readonly HouseContent[];
|
|
29
52
|
};
|
|
30
|
-
export type
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
53
|
+
export type HouseRoomParts = LogPosition & {
|
|
54
|
+
anchor: string;
|
|
55
|
+
models: HouseModels;
|
|
56
|
+
parts: readonly HousePart[];
|
|
34
57
|
};
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
-
next?:
|
|
58
|
+
export type HouseParted = {
|
|
59
|
+
rooms: readonly HouseRoomParts[];
|
|
60
|
+
next?: string;
|
|
38
61
|
};
|
|
39
62
|
export type HouseGrant = {
|
|
40
|
-
method: 'GET';
|
|
41
|
-
url: string;
|
|
42
|
-
} | {
|
|
43
|
-
method: 'POST';
|
|
44
63
|
operation: string;
|
|
45
64
|
url: string;
|
|
46
65
|
};
|
|
66
|
+
export type HouseFileAddress = {
|
|
67
|
+
url: string;
|
|
68
|
+
name: string;
|
|
69
|
+
sha256: string;
|
|
70
|
+
mediaType: string;
|
|
71
|
+
};
|
|
47
72
|
export type HouseChange = {
|
|
48
73
|
path: string;
|
|
49
74
|
removed: true;
|
|
@@ -65,9 +90,14 @@ export type HousePage = {
|
|
|
65
90
|
through: string;
|
|
66
91
|
read: number;
|
|
67
92
|
};
|
|
93
|
+
export type HouseFolder = {
|
|
94
|
+
path: string;
|
|
95
|
+
removed: boolean;
|
|
96
|
+
};
|
|
68
97
|
export type HouseView = LogPosition & {
|
|
69
98
|
authority: string;
|
|
70
99
|
changes: readonly HouseChange[];
|
|
100
|
+
folders?: readonly HouseFolder[];
|
|
71
101
|
next?: HousePage;
|
|
72
102
|
};
|
|
73
103
|
type PageFailure = AdapterFailure | {
|
|
@@ -77,23 +107,24 @@ export type HouseEnumeration = {
|
|
|
77
107
|
authorities: readonly HouseView[];
|
|
78
108
|
};
|
|
79
109
|
export declare function authorityRoot(handle: string): string;
|
|
80
|
-
export declare function contentPrefixes(tracked: TrackedAuthority): readonly string[];
|
|
81
110
|
export declare function schemaPath(handle: string, schema: string): string;
|
|
82
111
|
export declare function parseGrant(body: unknown): HouseGrant | null;
|
|
112
|
+
export declare function parseFileAddress(body: unknown): HouseFileAddress | null;
|
|
83
113
|
export declare function headChange(held: {
|
|
84
114
|
readonly author?: unknown;
|
|
85
115
|
readonly created_at?: unknown;
|
|
86
116
|
}): HeadChange | undefined | null;
|
|
87
117
|
export declare function binaryFileOf(held: Readonly<Record<string, unknown>>): BinaryFile | undefined | null;
|
|
88
|
-
export declare function
|
|
89
|
-
export declare function
|
|
90
|
-
export declare function
|
|
91
|
-
export declare function
|
|
118
|
+
export declare function parseParted(body: unknown): HouseParted | null;
|
|
119
|
+
export declare function parseSiteParted(body: unknown): HouseRoomParts | null;
|
|
120
|
+
export declare function partInventory(room: HouseRoomParts): BootstrapInventory;
|
|
121
|
+
export declare function manifested(room: HouseRoomParts, inventory: BootstrapInventory, pageToken: string, models: RoomModels | undefined): BootstrapPage;
|
|
122
|
+
export declare function modelScope(room: HouseRoomParts): HouseScope;
|
|
123
|
+
export declare function emptyScope(room: HouseRoomParts): HouseScope;
|
|
124
|
+
export declare function housePart(room: HouseRoomParts, frame: Uint8Array<ArrayBuffer>, listed: HousePart, mode: HouseMode): Promise<HouseScope | TransportUncertainty | null>;
|
|
92
125
|
export declare function parseEnumeration(body: unknown, mode: HouseMode): HouseEnumeration | null;
|
|
93
126
|
export declare function wholeView(first: HouseView, more: (page: HousePage) => Promise<HouseView | PageFailure>): Promise<HouseView | PageFailure>;
|
|
94
|
-
export declare function
|
|
95
|
-
export declare function matchesScope(scope: HouseScope, tracked: TrackedAuthority): boolean;
|
|
96
|
-
export declare function bootstrapOf(scope: HouseScope): BootstrapPage;
|
|
127
|
+
export declare function bootstrapping(scope: HouseScope): Generator<number, BootstrapPage, void>;
|
|
97
128
|
export type HouseSchema = {
|
|
98
129
|
schema: string | null;
|
|
99
130
|
version: string | null;
|
|
@@ -101,6 +132,6 @@ export type HouseSchema = {
|
|
|
101
132
|
};
|
|
102
133
|
export declare function schemaOf(scope: HouseScope, schema: string): HouseSchema | null;
|
|
103
134
|
export declare function viewOf(enumeration: HouseEnumeration, tracked: TrackedAuthority): HouseView | undefined;
|
|
104
|
-
export declare function refreshFrom(view: HouseView, fromRoomVersion: string): RefreshResult
|
|
135
|
+
export declare function refreshFrom(view: HouseView, fromRoomVersion: string): Promise<RefreshResult>;
|
|
105
136
|
export {};
|
|
106
137
|
//# sourceMappingURL=read.d.ts.map
|
package/dist/read.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAElB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAsC,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAEpF,MAAM,MAA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