@agentshouse/mdruntime-adapter 0.1.0-c8cad855cc8e8 → 0.1.0-c8d6935639fda
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 +3 -3
- package/dist/actions.d.ts +6 -74
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +25 -333
- package/dist/adapter.d.ts +0 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +209 -394
- package/dist/authored-path.d.ts +9 -0
- package/dist/authored-path.d.ts.map +1 -0
- package/dist/authored-path.js +34 -0
- package/dist/chunks.d.ts +36 -0
- package/dist/chunks.d.ts.map +1 -0
- package/dist/chunks.js +281 -0
- package/dist/digest.d.ts +0 -1
- package/dist/discovery.d.ts +35 -19
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +199 -59
- package/dist/history.d.ts +6 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +85 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/map.d.ts +0 -1
- package/dist/model.d.ts +6 -6
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +31 -48
- package/dist/read.d.ts +18 -64
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +76 -358
- package/dist/refusal.d.ts +3 -5
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +17 -12
- package/dist/search.d.ts +4 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +47 -0
- package/dist/session-content/bounds.d.ts +7 -0
- package/dist/session-content/check.d.ts +18 -0
- package/dist/session-content/index.d.ts +7 -0
- package/dist/session-content/parts.d.ts +103 -0
- package/dist/session-content/state.d.ts +61 -0
- package/dist/session-content/turn.d.ts +328 -0
- package/dist/site.d.ts +0 -1
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +87 -191
- package/dist/space-schema.d.ts +6 -0
- package/dist/space-schema.d.ts.map +1 -0
- package/dist/space-schema.js +11 -0
- package/dist/stream.d.ts +15 -16
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +242 -426
- package/dist/transport.d.ts +75 -45
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +56 -11
- package/dist/uncertain.d.ts +5 -0
- package/dist/uncertain.d.ts.map +1 -0
- package/dist/uncertain.js +11 -0
- package/dist/upload.d.ts +13 -0
- package/dist/upload.d.ts.map +1 -0
- package/dist/upload.js +65 -0
- package/dist/version.d.ts +0 -1
- package/dist/write.d.ts +6 -3
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +39 -57
- package/package.json +9 -4
- package/AGENTS.md +0 -312
- package/dist/gather.d.ts +0 -4
- package/dist/gather.d.ts.map +0 -1
- package/dist/gather.js +0 -35
- package/dist/part.d.ts +0 -13
- package/dist/part.d.ts.map +0 -1
- package/dist/part.js +0 -80
- package/dist/referrer.d.ts +0 -9
- package/dist/referrer.d.ts.map +0 -1
- package/dist/referrer.js +0 -41
- package/dist/room-types.d.ts +0 -6
- package/dist/room-types.d.ts.map +0 -1
- package/dist/room-types.js +0 -66
package/dist/read.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type { TrackedAuthority } from './discovery.js';
|
|
3
|
-
import { type HousePart } from './part.js';
|
|
1
|
+
import { type BinaryFile, type BootstrapPage, type SavedFacts } from '@agentshouse/mdruntime';
|
|
4
2
|
import type { HouseMode } from './transport.js';
|
|
5
3
|
import { type LogPosition } from './version.js';
|
|
6
4
|
export type HeadChange = BootstrapPage['changes'][string];
|
|
7
5
|
export type Answered = {
|
|
8
6
|
readonly documents: Map<string, string>;
|
|
7
|
+
readonly facts: Map<string, SavedFacts>;
|
|
9
8
|
readonly revisions: Map<string, string>;
|
|
10
9
|
readonly fileIds: Map<string, string>;
|
|
10
|
+
readonly created: Map<string, string>;
|
|
11
11
|
readonly changes: Map<string, HeadChange>;
|
|
12
12
|
readonly binaryFiles: Map<string, BinaryFile>;
|
|
13
13
|
readonly removals: Set<string>;
|
|
@@ -20,8 +20,10 @@ export declare function forgotten(answer: Answered, path: string): void;
|
|
|
20
20
|
export declare function folded(answer: Answered, path: string, removed: boolean): void;
|
|
21
21
|
export declare function answered(answer: Answered): Generator<number, {
|
|
22
22
|
documents: Readonly<Record<string, string>>;
|
|
23
|
+
facts: Readonly<Record<string, SavedFacts>>;
|
|
23
24
|
revisions: Readonly<Record<string, string>>;
|
|
24
25
|
fileIds?: Readonly<Record<string, string>>;
|
|
26
|
+
created?: Readonly<Record<string, string>>;
|
|
25
27
|
changes: Readonly<Record<string, HeadChange>>;
|
|
26
28
|
binaryFiles: Readonly<Record<string, BinaryFile>>;
|
|
27
29
|
removals: readonly string[];
|
|
@@ -32,27 +34,22 @@ export type HouseManifestFile = {
|
|
|
32
34
|
path: string;
|
|
33
35
|
revision: string | undefined;
|
|
34
36
|
version: string;
|
|
35
|
-
sha256?: string;
|
|
36
37
|
head?: HeadChange;
|
|
38
|
+
created?: string;
|
|
37
39
|
binary?: BinaryFile;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
content: string;
|
|
40
|
+
facts?: SavedFacts;
|
|
41
|
+
space?: string;
|
|
42
|
+
content?: string;
|
|
42
43
|
};
|
|
43
44
|
export type HouseScope = LogPosition & {
|
|
44
45
|
anchor: string;
|
|
45
46
|
files: readonly HouseManifestFile[];
|
|
46
|
-
contents: readonly HouseContent[];
|
|
47
47
|
folders?: readonly string[];
|
|
48
48
|
};
|
|
49
|
-
export type
|
|
49
|
+
export type HouseModels = readonly HouseManifestFile[];
|
|
50
|
+
export type HouseRoomHead = LogPosition & {
|
|
50
51
|
anchor: string;
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
export type HouseParted = {
|
|
54
|
-
rooms: readonly HouseRoomParts[];
|
|
55
|
-
next?: string;
|
|
52
|
+
models: HouseModels;
|
|
56
53
|
};
|
|
57
54
|
export type HouseGrant = {
|
|
58
55
|
operation: string;
|
|
@@ -64,67 +61,24 @@ export type HouseFileAddress = {
|
|
|
64
61
|
sha256: string;
|
|
65
62
|
mediaType: string;
|
|
66
63
|
};
|
|
67
|
-
export type HouseChange = {
|
|
68
|
-
path: string;
|
|
69
|
-
removed: true;
|
|
70
|
-
} | {
|
|
71
|
-
path: string;
|
|
72
|
-
content: string;
|
|
73
|
-
revision: string | undefined;
|
|
74
|
-
version: string;
|
|
75
|
-
head?: HeadChange;
|
|
76
|
-
} | {
|
|
77
|
-
path: string;
|
|
78
|
-
binary: BinaryFile;
|
|
79
|
-
revision: string | undefined;
|
|
80
|
-
version: string;
|
|
81
|
-
head?: HeadChange;
|
|
82
|
-
};
|
|
83
|
-
export type HousePage = {
|
|
84
|
-
after: string;
|
|
85
|
-
through: string;
|
|
86
|
-
read: number;
|
|
87
|
-
};
|
|
88
|
-
export type HouseFolder = {
|
|
89
|
-
path: string;
|
|
90
|
-
removed: boolean;
|
|
91
|
-
};
|
|
92
|
-
export type HouseView = LogPosition & {
|
|
93
|
-
authority: string;
|
|
94
|
-
changes: readonly HouseChange[];
|
|
95
|
-
folders?: readonly HouseFolder[];
|
|
96
|
-
next?: HousePage;
|
|
97
|
-
};
|
|
98
|
-
type PageFailure = AdapterFailure | {
|
|
99
|
-
kind: 'beyond-horizon';
|
|
100
|
-
};
|
|
101
|
-
export type HouseEnumeration = {
|
|
102
|
-
authorities: readonly HouseView[];
|
|
103
|
-
};
|
|
104
64
|
export declare function authorityRoot(handle: string): string;
|
|
105
65
|
export declare function schemaPath(handle: string, schema: string): string;
|
|
106
66
|
export declare function parseGrant(body: unknown): HouseGrant | null;
|
|
107
67
|
export declare function parseFileAddress(body: unknown): HouseFileAddress | null;
|
|
108
68
|
export declare function headChange(held: {
|
|
109
69
|
readonly author?: unknown;
|
|
110
|
-
readonly
|
|
70
|
+
readonly changed_at?: unknown;
|
|
111
71
|
}): HeadChange | undefined | null;
|
|
112
72
|
export declare function binaryFileOf(held: Readonly<Record<string, unknown>>): BinaryFile | undefined | null;
|
|
113
|
-
export declare function
|
|
114
|
-
export declare function
|
|
115
|
-
export declare function
|
|
116
|
-
export declare function housePart(room: HouseRoomParts, body: unknown, listed: HousePart, mode: HouseMode): Promise<HouseScope | TransportUncertainty | null>;
|
|
117
|
-
export declare function parseEnumeration(body: unknown, mode: HouseMode): HouseEnumeration | null;
|
|
118
|
-
export declare function wholeView(first: HouseView, more: (page: HousePage) => Promise<HouseView | PageFailure>): Promise<HouseView | PageFailure>;
|
|
119
|
-
export declare function advancedScope(scope: HouseScope, view: HouseView): Generator<number, HouseScope, void>;
|
|
73
|
+
export declare function documentEntry(value: unknown, mode: HouseMode): HouseManifestFile | null;
|
|
74
|
+
export declare function kept(answer: Answered, file: HouseManifestFile): void;
|
|
75
|
+
export declare function modelScope(room: HouseRoomHead): HouseScope;
|
|
120
76
|
export declare function bootstrapping(scope: HouseScope): Generator<number, BootstrapPage, void>;
|
|
121
77
|
export type HouseSchema = {
|
|
122
78
|
schema: string | null;
|
|
123
79
|
version: string | null;
|
|
124
80
|
revision: string | null;
|
|
81
|
+
space?: string;
|
|
125
82
|
};
|
|
83
|
+
export declare function schemaFile(file: HouseManifestFile): HouseSchema | null;
|
|
126
84
|
export declare function schemaOf(scope: HouseScope, schema: string): HouseSchema | null;
|
|
127
|
-
export declare function viewOf(enumeration: HouseEnumeration, tracked: TrackedAuthority): HouseView | undefined;
|
|
128
|
-
export declare function refreshFrom(view: HouseView, fromRoomVersion: string): Promise<RefreshResult>;
|
|
129
|
-
export {};
|
|
130
|
-
//# 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,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,aAAa,EAElB,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