@agentshouse/mdruntime-adapter 0.1.0-cd61dfca5d699 → 0.1.0-cd673d02b6e50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/actions.d.ts +6 -23
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +20 -134
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +204 -201
- package/dist/app-reference.d.ts +2 -0
- package/dist/app-reference.d.ts.map +1 -0
- package/dist/app-reference.js +2 -0
- package/dist/crockford.d.ts +4 -0
- package/dist/crockford.d.ts.map +1 -0
- package/dist/crockford.js +3 -0
- package/dist/discovery.d.ts +6 -10
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +36 -32
- package/dist/gather.d.ts +1 -2
- package/dist/gather.d.ts.map +1 -1
- package/dist/gather.js +5 -15
- package/dist/house-model.d.ts +2 -0
- package/dist/house-model.d.ts.map +1 -0
- package/dist/house-model.js +486 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/model.d.ts +5 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +11 -13
- package/dist/part.d.ts +14 -0
- package/dist/part.d.ts.map +1 -0
- package/dist/part.js +90 -0
- package/dist/read.d.ts +53 -27
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +262 -158
- package/dist/room-stream.d.ts +19 -0
- package/dist/room-stream.d.ts.map +1 -0
- package/dist/room-stream.js +57 -0
- package/dist/room-types.d.ts +7 -0
- package/dist/room-types.d.ts.map +1 -0
- package/dist/room-types.js +125 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +47 -112
- package/dist/stream.d.ts +3 -3
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +38 -35
- package/dist/transport.d.ts +14 -8
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +2 -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 +16 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +100 -55
- package/package.json +8 -4
- package/AGENTS.md +0 -299
- 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/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) {
|
|
@@ -12,19 +12,10 @@ async function heldModel(read, identity) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
async function modelsOf(tracked, read) {
|
|
15
|
-
const models = {};
|
|
16
15
|
const collection = read(tracked.schema);
|
|
17
|
-
if (collection
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
if (tracked.houseModel !== null) {
|
|
21
|
-
const root = tracked.houseModel.root;
|
|
22
|
-
const selection = read(root);
|
|
23
|
-
if (selection !== undefined) {
|
|
24
|
-
models.selection = await heldModel(selection, schemaPath(tracked.handle, root));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return models.collection === undefined && models.selection === undefined ? undefined : models;
|
|
16
|
+
if (collection === undefined)
|
|
17
|
+
return undefined;
|
|
18
|
+
return { collection: await heldModel(collection, schemaPath(tracked.handle, tracked.schema)) };
|
|
28
19
|
}
|
|
29
20
|
export function partModels(scope, tracked, seen, final) {
|
|
30
21
|
return modelsOf(tracked, (schema) => {
|
|
@@ -33,6 +24,13 @@ export function partModels(scope, tracked, seen, final) {
|
|
|
33
24
|
return final && !seen.has(schema) ? ABSENT_SCHEMA : undefined;
|
|
34
25
|
});
|
|
35
26
|
}
|
|
27
|
+
export async function manifestedModels(room, tracked) {
|
|
28
|
+
const scope = modelScope(room);
|
|
29
|
+
return {
|
|
30
|
+
models: await partModels(scope, tracked, new Set(), true),
|
|
31
|
+
seen: scope.files.some((file) => file.path === tracked.schema) ? [tracked.schema] : [],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
36
34
|
export function viewModels(view, tracked) {
|
|
37
35
|
return modelsOf(tracked, (schema) => {
|
|
38
36
|
const change = view.changes.find((candidate) => candidate.path === schema);
|
package/dist/part.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type RoomFrame = {
|
|
2
|
+
readonly kind: 'frame';
|
|
3
|
+
readonly payload: Uint8Array<ArrayBuffer>;
|
|
4
|
+
readonly bytes: number;
|
|
5
|
+
} | {
|
|
6
|
+
readonly kind: 'ended';
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'broken';
|
|
9
|
+
};
|
|
10
|
+
export type RoomFrames = () => Promise<RoomFrame>;
|
|
11
|
+
export declare function checkedPayload(frame: Uint8Array<ArrayBuffer>): Promise<Uint8Array<ArrayBuffer> | null>;
|
|
12
|
+
export declare function roomFrames(room: ReadableStream<Uint8Array>, arrived?: (bytes: number) => void, signal?: AbortSignal): RoomFrames;
|
|
13
|
+
export declare function gunzipped(payload: Uint8Array<ArrayBuffer>): ReadableStream<string>;
|
|
14
|
+
//# sourceMappingURL=part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"part.d.ts","sourceRoot":"","sources":["../src/part.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GACjB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC7F;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhC,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC;AAQlD,wBAAsB,cAAc,CAClC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,GAC7B,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CASzC;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,EAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACjC,MAAM,CAAC,EAAE,WAAW,GACnB,UAAU,CAwDZ;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAKlF"}
|
package/dist/part.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
const PART_MAGIC = 0x48505431;
|
|
2
|
+
const PART_HEAD_BYTES = 8;
|
|
3
|
+
const PART_DIGEST_BYTES = 32;
|
|
4
|
+
function hex(bytes) {
|
|
5
|
+
let text = '';
|
|
6
|
+
for (const byte of bytes)
|
|
7
|
+
text += byte.toString(16).padStart(2, '0');
|
|
8
|
+
return text;
|
|
9
|
+
}
|
|
10
|
+
export async function checkedPayload(frame) {
|
|
11
|
+
if (frame.length < PART_HEAD_BYTES + PART_DIGEST_BYTES)
|
|
12
|
+
return null;
|
|
13
|
+
const view = new DataView(frame.buffer, frame.byteOffset, frame.byteLength);
|
|
14
|
+
if (view.getUint32(0) !== PART_MAGIC)
|
|
15
|
+
return null;
|
|
16
|
+
const length = view.getUint32(4);
|
|
17
|
+
if (PART_HEAD_BYTES + length + PART_DIGEST_BYTES !== frame.length)
|
|
18
|
+
return null;
|
|
19
|
+
const payload = frame.subarray(PART_HEAD_BYTES, PART_HEAD_BYTES + length);
|
|
20
|
+
const digest = hex(new Uint8Array(await crypto.subtle.digest('SHA-256', payload)));
|
|
21
|
+
return hex(frame.subarray(PART_HEAD_BYTES + length)) === digest ? payload : null;
|
|
22
|
+
}
|
|
23
|
+
export function roomFrames(room, arrived, signal) {
|
|
24
|
+
const reader = room.getReader();
|
|
25
|
+
signal?.addEventListener('abort', () => void reader.cancel().catch(() => { }), { once: true });
|
|
26
|
+
const chunks = [];
|
|
27
|
+
let held = 0;
|
|
28
|
+
let received = 0;
|
|
29
|
+
let ended = false;
|
|
30
|
+
async function filled(bytes) {
|
|
31
|
+
while (held < bytes && !ended) {
|
|
32
|
+
const read = await reader.read();
|
|
33
|
+
if (read.done) {
|
|
34
|
+
ended = true;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
chunks.push(read.value);
|
|
38
|
+
held += read.value.byteLength;
|
|
39
|
+
received += read.value.byteLength;
|
|
40
|
+
arrived?.(received);
|
|
41
|
+
}
|
|
42
|
+
return held >= bytes;
|
|
43
|
+
}
|
|
44
|
+
function taken(bytes) {
|
|
45
|
+
const out = new Uint8Array(bytes);
|
|
46
|
+
let at = 0;
|
|
47
|
+
while (at < bytes) {
|
|
48
|
+
const chunk = chunks[0];
|
|
49
|
+
const used = Math.min(chunk.byteLength, bytes - at);
|
|
50
|
+
out.set(chunk.subarray(0, used), at);
|
|
51
|
+
at += used;
|
|
52
|
+
if (used === chunk.byteLength)
|
|
53
|
+
chunks.shift();
|
|
54
|
+
else
|
|
55
|
+
chunks[0] = chunk.subarray(used);
|
|
56
|
+
}
|
|
57
|
+
held -= bytes;
|
|
58
|
+
return out;
|
|
59
|
+
}
|
|
60
|
+
return async () => {
|
|
61
|
+
try {
|
|
62
|
+
if (!(await filled(PART_HEAD_BYTES)))
|
|
63
|
+
return held === 0 ? { kind: 'ended' } : { kind: 'broken' };
|
|
64
|
+
const head = taken(PART_HEAD_BYTES);
|
|
65
|
+
const view = new DataView(head.buffer);
|
|
66
|
+
if (view.getUint32(0) !== PART_MAGIC)
|
|
67
|
+
return { kind: 'broken' };
|
|
68
|
+
const length = view.getUint32(4);
|
|
69
|
+
const rest = length + PART_DIGEST_BYTES;
|
|
70
|
+
if (!(await filled(rest)))
|
|
71
|
+
return { kind: 'broken' };
|
|
72
|
+
const frame = new Uint8Array(PART_HEAD_BYTES + rest);
|
|
73
|
+
frame.set(head, 0);
|
|
74
|
+
frame.set(taken(rest), PART_HEAD_BYTES);
|
|
75
|
+
const payload = await checkedPayload(frame);
|
|
76
|
+
return payload === null
|
|
77
|
+
? { kind: 'broken' }
|
|
78
|
+
: { kind: 'frame', payload, bytes: frame.byteLength };
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
return { kind: 'broken' };
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export function gunzipped(payload) {
|
|
86
|
+
return new Blob([payload])
|
|
87
|
+
.stream()
|
|
88
|
+
.pipeThrough(new DecompressionStream('gzip'))
|
|
89
|
+
.pipeThrough(new TextDecoderStream());
|
|
90
|
+
}
|
package/dist/read.d.ts
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AdapterFailure, type BinaryFile, type BootstrapPage, type RefreshResult, type RoomModels, type TransportUncertainty } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
3
|
import type { HouseMode } from './transport.js';
|
|
4
4
|
import { type LogPosition } from './version.js';
|
|
5
5
|
export type HeadChange = BootstrapPage['changes'][string];
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export type Answered = {
|
|
7
|
+
readonly documents: Map<string, string>;
|
|
8
|
+
readonly revisions: Map<string, string>;
|
|
9
|
+
readonly fileIds: Map<string, string>;
|
|
10
|
+
readonly changes: Map<string, HeadChange>;
|
|
11
|
+
readonly binaryFiles: Map<string, BinaryFile>;
|
|
12
|
+
readonly removals: Set<string>;
|
|
13
|
+
readonly folders: Set<string>;
|
|
14
|
+
readonly folderRemovals: Set<string>;
|
|
8
15
|
};
|
|
16
|
+
export declare function answering(): Answered;
|
|
17
|
+
export declare function revised(answer: Answered, path: string, revision: string): void;
|
|
18
|
+
export declare function forgotten(answer: Answered, path: string): void;
|
|
19
|
+
export declare function folded(answer: Answered, path: string, removed: boolean): void;
|
|
20
|
+
export declare function answered(answer: Answered): Generator<number, {
|
|
21
|
+
documents: Readonly<Record<string, string>>;
|
|
22
|
+
revisions: Readonly<Record<string, string>>;
|
|
23
|
+
fileIds?: Readonly<Record<string, string>>;
|
|
24
|
+
changes: Readonly<Record<string, HeadChange>>;
|
|
25
|
+
binaryFiles: Readonly<Record<string, BinaryFile>>;
|
|
26
|
+
removals: readonly string[];
|
|
27
|
+
folders?: readonly string[];
|
|
28
|
+
folderRemovals?: readonly string[];
|
|
29
|
+
}, void>;
|
|
9
30
|
export type HouseManifestFile = {
|
|
10
31
|
path: string;
|
|
11
32
|
revision: string | undefined;
|
|
@@ -22,28 +43,26 @@ export type HouseScope = LogPosition & {
|
|
|
22
43
|
anchor: string;
|
|
23
44
|
files: readonly HouseManifestFile[];
|
|
24
45
|
contents: readonly HouseContent[];
|
|
46
|
+
folders?: readonly string[];
|
|
25
47
|
};
|
|
26
|
-
export type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
export type HouseCursor = {
|
|
31
|
-
room: string;
|
|
32
|
-
path: string | null;
|
|
33
|
-
cut?: HouseCut;
|
|
48
|
+
export type HouseModels = {
|
|
49
|
+
files: readonly HouseManifestFile[];
|
|
50
|
+
contents: readonly HouseContent[];
|
|
34
51
|
};
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
export type HouseRoomHead = LogPosition & {
|
|
53
|
+
anchor: string;
|
|
54
|
+
models: HouseModels;
|
|
38
55
|
};
|
|
39
56
|
export type HouseGrant = {
|
|
40
|
-
method: 'GET';
|
|
41
|
-
url: string;
|
|
42
|
-
} | {
|
|
43
|
-
method: 'POST';
|
|
44
57
|
operation: string;
|
|
45
58
|
url: string;
|
|
46
59
|
};
|
|
60
|
+
export type HouseFileAddress = {
|
|
61
|
+
url: string;
|
|
62
|
+
name: string;
|
|
63
|
+
sha256: string;
|
|
64
|
+
mediaType: string;
|
|
65
|
+
};
|
|
47
66
|
export type HouseChange = {
|
|
48
67
|
path: string;
|
|
49
68
|
removed: true;
|
|
@@ -65,9 +84,14 @@ export type HousePage = {
|
|
|
65
84
|
through: string;
|
|
66
85
|
read: number;
|
|
67
86
|
};
|
|
87
|
+
export type HouseFolder = {
|
|
88
|
+
path: string;
|
|
89
|
+
removed: boolean;
|
|
90
|
+
};
|
|
68
91
|
export type HouseView = LogPosition & {
|
|
69
92
|
authority: string;
|
|
70
93
|
changes: readonly HouseChange[];
|
|
94
|
+
folders?: readonly HouseFolder[];
|
|
71
95
|
next?: HousePage;
|
|
72
96
|
};
|
|
73
97
|
type PageFailure = AdapterFailure | {
|
|
@@ -77,23 +101,25 @@ export type HouseEnumeration = {
|
|
|
77
101
|
authorities: readonly HouseView[];
|
|
78
102
|
};
|
|
79
103
|
export declare function authorityRoot(handle: string): string;
|
|
80
|
-
export declare function contentPrefixes(tracked: TrackedAuthority): readonly string[];
|
|
81
104
|
export declare function schemaPath(handle: string, schema: string): string;
|
|
82
105
|
export declare function parseGrant(body: unknown): HouseGrant | null;
|
|
106
|
+
export declare function parseFileAddress(body: unknown): HouseFileAddress | null;
|
|
83
107
|
export declare function headChange(held: {
|
|
84
108
|
readonly author?: unknown;
|
|
85
109
|
readonly created_at?: unknown;
|
|
86
110
|
}): HeadChange | undefined | null;
|
|
87
111
|
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
|
|
112
|
+
export declare function roomHead(payload: Uint8Array<ArrayBuffer>, mode: HouseMode): Promise<HouseRoomHead | null>;
|
|
113
|
+
export declare function manifested(room: HouseRoomHead, pageToken: string, models: RoomModels | undefined): BootstrapPage;
|
|
114
|
+
export declare function modelScope(room: HouseRoomHead): HouseScope;
|
|
115
|
+
export declare function emptyScope(room: HouseRoomHead): HouseScope;
|
|
116
|
+
export declare function housePart(room: HouseRoomHead, payload: Uint8Array<ArrayBuffer>, mode: HouseMode): Promise<{
|
|
117
|
+
scope: HouseScope;
|
|
118
|
+
ended: boolean;
|
|
119
|
+
} | TransportUncertainty>;
|
|
92
120
|
export declare function parseEnumeration(body: unknown, mode: HouseMode): HouseEnumeration | null;
|
|
93
121
|
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;
|
|
122
|
+
export declare function bootstrapping(scope: HouseScope): Generator<number, BootstrapPage, void>;
|
|
97
123
|
export type HouseSchema = {
|
|
98
124
|
schema: string | null;
|
|
99
125
|
version: string | null;
|
|
@@ -101,6 +127,6 @@ export type HouseSchema = {
|
|
|
101
127
|
};
|
|
102
128
|
export declare function schemaOf(scope: HouseScope, schema: string): HouseSchema | null;
|
|
103
129
|
export declare function viewOf(enumeration: HouseEnumeration, tracked: TrackedAuthority): HouseView | undefined;
|
|
104
|
-
export declare function refreshFrom(view: HouseView, fromRoomVersion: string): RefreshResult
|
|
130
|
+
export declare function refreshFrom(view: HouseView, fromRoomVersion: string): Promise<RefreshResult>;
|
|
105
131
|
export {};
|
|
106
132
|
//# 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.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