@agentshouse/mdruntime-adapter 0.1.0-cedab65f24a09 → 0.1.0-cefa8b4106453

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.
Files changed (84) hide show
  1. package/README.md +3 -3
  2. package/dist/actions.d.ts +6 -67
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +22 -341
  5. package/dist/adapter.d.ts +0 -1
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +234 -388
  8. package/dist/app-reference.d.ts +1 -0
  9. package/dist/app-reference.d.ts.map +1 -0
  10. package/dist/app-reference.js +2 -0
  11. package/dist/authored-path.d.ts +10 -0
  12. package/dist/authored-path.d.ts.map +1 -0
  13. package/dist/authored-path.js +35 -0
  14. package/dist/chunks.d.ts +37 -0
  15. package/dist/chunks.d.ts.map +1 -0
  16. package/dist/chunks.js +247 -0
  17. package/dist/crockford.d.ts +3 -0
  18. package/dist/crockford.d.ts.map +1 -0
  19. package/dist/crockford.js +3 -0
  20. package/dist/digest.d.ts +0 -1
  21. package/dist/discovery.d.ts +24 -18
  22. package/dist/discovery.d.ts.map +1 -1
  23. package/dist/discovery.js +95 -58
  24. package/dist/history.d.ts +11 -0
  25. package/dist/history.d.ts.map +1 -0
  26. package/dist/history.js +92 -0
  27. package/dist/house-model.d.ts +830 -0
  28. package/dist/house-model.d.ts.map +1 -0
  29. package/dist/house-model.js +465 -0
  30. package/dist/index.d.ts +12 -3
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +11 -1
  33. package/dist/map.d.ts +0 -1
  34. package/dist/model.d.ts +5 -5
  35. package/dist/model.d.ts.map +1 -1
  36. package/dist/model.js +34 -41
  37. package/dist/read.d.ts +57 -65
  38. package/dist/read.d.ts.map +1 -1
  39. package/dist/read.js +154 -318
  40. package/dist/refusal.d.ts +1 -4
  41. package/dist/refusal.d.ts.map +1 -1
  42. package/dist/refusal.js +5 -6
  43. package/dist/room-types.d.ts +4 -0
  44. package/dist/room-types.d.ts.map +1 -0
  45. package/dist/room-types.js +135 -0
  46. package/dist/search.d.ts +4 -0
  47. package/dist/search.d.ts.map +1 -0
  48. package/dist/search.js +47 -0
  49. package/dist/session-content/bounds.d.ts +7 -0
  50. package/dist/session-content/check.d.ts +18 -0
  51. package/dist/session-content/index.d.ts +7 -0
  52. package/dist/session-content/parts.d.ts +102 -0
  53. package/dist/session-content/state.d.ts +61 -0
  54. package/dist/session-content/turn.d.ts +328 -0
  55. package/dist/site.d.ts +0 -1
  56. package/dist/site.d.ts.map +1 -1
  57. package/dist/site.js +86 -201
  58. package/dist/space-schema.d.ts +6 -0
  59. package/dist/space-schema.d.ts.map +1 -0
  60. package/dist/space-schema.js +18 -0
  61. package/dist/stream.d.ts +16 -16
  62. package/dist/stream.d.ts.map +1 -1
  63. package/dist/stream.js +254 -423
  64. package/dist/transport.d.ts +72 -44
  65. package/dist/transport.d.ts.map +1 -1
  66. package/dist/transport.js +54 -11
  67. package/dist/upload.d.ts +11 -0
  68. package/dist/upload.d.ts.map +1 -0
  69. package/dist/upload.js +63 -0
  70. package/dist/version.d.ts +0 -1
  71. package/dist/write.d.ts +18 -4
  72. package/dist/write.d.ts.map +1 -1
  73. package/dist/write.js +108 -80
  74. package/package.json +8 -4
  75. package/AGENTS.md +0 -299
  76. package/dist/gather.d.ts +0 -4
  77. package/dist/gather.d.ts.map +0 -1
  78. package/dist/gather.js +0 -45
  79. package/dist/handed.d.ts +0 -15
  80. package/dist/handed.d.ts.map +0 -1
  81. package/dist/handed.js +0 -38
  82. package/dist/referrer.d.ts +0 -7
  83. package/dist/referrer.d.ts.map +0 -1
  84. package/dist/referrer.js +0 -35
package/dist/model.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { sha256Hex } from './digest.js';
2
- import { schemaOf, schemaPath } from './read.js';
2
+ import { modelScope, schemaOf, schemaPath, } from './read.js';
3
+ import { spaceIdentity } from './space-schema.js';
3
4
  const MODEL_ABSENT = { kind: 'model-unavailable', reason: 'not-readable' };
4
5
  const ABSENT_SCHEMA = { schema: null, version: null, revision: null };
5
6
  async function heldModel(read, identity) {
@@ -8,60 +9,52 @@ async function heldModel(read, identity) {
8
9
  const version = await sha256Hex(JSON.stringify(read.version));
9
10
  return {
10
11
  kind: 'model',
11
- snapshot: { identity, version, schema: read.schema, revision: read.revision },
12
+ snapshot: {
13
+ identity: read.space === undefined ? identity : spaceIdentity(read.space),
14
+ version,
15
+ schema: read.schema,
16
+ revision: read.revision,
17
+ },
12
18
  };
13
19
  }
14
20
  async function modelsOf(tracked, read) {
15
- const models = {};
16
21
  const collection = read(tracked.schema);
17
- if (collection !== undefined) {
18
- models.collection = await heldModel(collection, schemaPath(tracked.handle, tracked.schema));
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;
22
+ if (collection === undefined)
23
+ return undefined;
24
+ return { collection: await heldModel(collection, schemaPath(tracked.handle, tracked.schema)) };
28
25
  }
29
- export function partModels(scope, tracked, seen, final) {
30
- return modelsOf(tracked, (schema) => {
31
- if (scope.files.some((file) => file.path === schema))
32
- return schemaOf(scope, schema);
33
- return final && !seen.has(schema) ? ABSENT_SCHEMA : undefined;
34
- });
26
+ export async function manifestedModels(room, tracked, spaces) {
27
+ const scope = modelScope(room);
28
+ const held = schemaOf(scope, tracked.schema);
29
+ if (held?.space !== undefined && held.schema !== null && held.revision !== null)
30
+ spaces.keep(held.space, held.revision, held.schema);
31
+ return modelsOf(tracked, () => held);
35
32
  }
36
- export function viewModels(view, tracked) {
37
- return modelsOf(tracked, (schema) => {
38
- const change = view.changes.find((candidate) => candidate.path === schema);
39
- if (change === undefined)
40
- return undefined;
41
- if ('removed' in change)
42
- return ABSENT_SCHEMA;
43
- if ('content' in change) {
44
- return {
45
- schema: change.content,
46
- version: change.version,
47
- revision: change.revision ?? null,
48
- };
49
- }
50
- return null;
51
- });
33
+ export function keptSpaceSchemas(entries, spaces) {
34
+ for (const entry of entries) {
35
+ if (entry.space !== undefined && entry.text !== undefined && entry.revision !== undefined)
36
+ spaces.keep(entry.space, entry.revision, entry.text);
37
+ }
38
+ }
39
+ function streamedText(entry, spaces) {
40
+ if (entry.text !== undefined || entry.space === undefined || entry.revision === undefined)
41
+ return entry.text;
42
+ return spaces.held(entry.space, entry.revision);
52
43
  }
53
- export function streamedModels(schemas, tracked, mode) {
44
+ export function streamedModels(schemas, tracked, mode, spaces, whole) {
54
45
  return modelsOf(tracked, (schema) => {
55
46
  const entry = schemas.get(schema);
56
47
  if (entry === undefined)
57
- return undefined;
48
+ return whole ? ABSENT_SCHEMA : undefined;
49
+ const space = entry.space === undefined ? {} : { space: entry.space };
58
50
  if (entry.kind === 'removed')
59
- return ABSENT_SCHEMA;
60
- if (entry.text === undefined)
51
+ return { ...ABSENT_SCHEMA, ...space };
52
+ const text = streamedText(entry, spaces);
53
+ if (text === undefined)
61
54
  return null;
62
55
  const version = mode === 'site' ? entry.sha256 : entry.revision;
63
56
  return version === undefined
64
57
  ? null
65
- : { schema: entry.text, version, revision: mode === 'site' ? null : version };
58
+ : { schema: text, version, revision: mode === 'site' ? null : version, ...space };
66
59
  });
67
60
  }
package/dist/read.d.ts CHANGED
@@ -1,18 +1,45 @@
1
- import type { AdapterFailure, BinaryFile, BootstrapPage, RefreshResult } from '@agentshouse/mdruntime';
2
- import type { TrackedAuthority } from './discovery.js';
1
+ import { type BinaryFile, type BootstrapPage, type SavedFacts } from '@agentshouse/mdruntime';
3
2
  import type { HouseMode } from './transport.js';
4
3
  import { type LogPosition } from './version.js';
5
4
  export type HeadChange = BootstrapPage['changes'][string];
6
- export declare function identities(revisions: Readonly<Record<string, string>>): {
7
- fileIds?: Record<string, string>;
5
+ export type Answered = {
6
+ readonly documents: Map<string, string>;
7
+ readonly facts: Map<string, SavedFacts>;
8
+ readonly revisions: Map<string, string>;
9
+ readonly fileIds: Map<string, string>;
10
+ readonly created: 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
+ facts: Readonly<Record<string, SavedFacts>>;
24
+ revisions: Readonly<Record<string, string>>;
25
+ fileIds?: Readonly<Record<string, string>>;
26
+ created?: Readonly<Record<string, string>>;
27
+ changes: Readonly<Record<string, HeadChange>>;
28
+ binaryFiles: Readonly<Record<string, BinaryFile>>;
29
+ removals: readonly string[];
30
+ folders?: readonly string[];
31
+ folderRemovals?: readonly string[];
32
+ }, void>;
9
33
  export type HouseManifestFile = {
10
34
  path: string;
11
35
  revision: string | undefined;
12
36
  version: string;
13
37
  sha256?: string;
14
38
  head?: HeadChange;
39
+ created?: string;
15
40
  binary?: BinaryFile;
41
+ facts?: SavedFacts;
42
+ space?: string;
16
43
  };
17
44
  export type HouseContent = {
18
45
  path: string;
@@ -22,85 +49,50 @@ export type HouseScope = LogPosition & {
22
49
  anchor: string;
23
50
  files: readonly HouseManifestFile[];
24
51
  contents: readonly HouseContent[];
52
+ folders?: readonly string[];
25
53
  };
26
- export type HouseCut = {
27
- position: string;
28
- log_epoch: string;
29
- };
30
- export type HouseCursor = {
31
- room: string;
32
- path: string | null;
33
- cut?: HouseCut;
54
+ export type HouseModels = {
55
+ files: readonly HouseManifestFile[];
56
+ contents: readonly HouseContent[];
34
57
  };
35
- export type HouseEnvelope = {
36
- scopes: readonly HouseScope[];
37
- next?: HouseCursor;
58
+ export type HouseRoomHead = LogPosition & {
59
+ anchor: string;
60
+ models: HouseModels;
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
  };
47
- export type HouseChange = {
48
- path: string;
49
- removed: true;
50
- } | {
51
- path: string;
52
- content: string;
53
- revision: string | undefined;
54
- version: string;
55
- head?: HeadChange;
56
- } | {
57
- path: string;
58
- binary: BinaryFile;
59
- revision: string | undefined;
60
- version: string;
61
- head?: HeadChange;
62
- };
63
- export type HousePage = {
64
- after: string;
65
- through: string;
66
- read: number;
67
- };
68
- export type HouseView = LogPosition & {
69
- authority: string;
70
- changes: readonly HouseChange[];
71
- next?: HousePage;
72
- };
73
- type PageFailure = AdapterFailure | {
74
- kind: 'beyond-horizon';
75
- };
76
- export type HouseEnumeration = {
77
- authorities: readonly HouseView[];
66
+ export type HouseFileAddress = {
67
+ url: string;
68
+ name: string;
69
+ sha256: string;
70
+ mediaType: string;
78
71
  };
79
72
  export declare function authorityRoot(handle: string): string;
80
- export declare function contentPrefixes(tracked: TrackedAuthority): readonly string[];
81
73
  export declare function schemaPath(handle: string, schema: string): string;
82
74
  export declare function parseGrant(body: unknown): HouseGrant | null;
75
+ export declare function parseFileAddress(body: unknown): HouseFileAddress | null;
83
76
  export declare function headChange(held: {
84
77
  readonly author?: unknown;
85
- readonly created_at?: unknown;
78
+ readonly changed_at?: unknown;
86
79
  }): HeadChange | undefined | null;
80
+ export declare function createdOf(held: {
81
+ readonly created_at?: unknown;
82
+ }): string | undefined | null;
87
83
  export declare function binaryFileOf(held: Readonly<Record<string, unknown>>): BinaryFile | undefined | null;
88
- export declare function parseEnvelope(body: unknown): HouseEnvelope | null;
89
- export declare function parseSiteBootstrap(body: unknown): HouseScope | null;
90
- export declare function siteBootstrapNext(body: unknown): string | null;
91
- export declare function siteBootstrapOffset(body: unknown): number | null;
92
- export declare function parseEnumeration(body: unknown, mode: HouseMode): HouseEnumeration | null;
93
- export declare function wholeView(first: HouseView, more: (page: HousePage) => Promise<HouseView | PageFailure>): Promise<HouseView | PageFailure>;
94
- export declare function advancedScope(scope: HouseScope, view: HouseView): HouseScope;
95
- export declare function matchesScope(scope: HouseScope, tracked: TrackedAuthority): boolean;
96
- export declare function bootstrapOf(scope: HouseScope): BootstrapPage;
84
+ export declare function carriedFacts(held: Readonly<Record<string, unknown>>): {
85
+ facts?: undefined;
86
+ } | {
87
+ facts: SavedFacts;
88
+ };
89
+ export declare function parseFile(value: unknown, mode: HouseMode): HouseManifestFile | null;
90
+ export declare function modelScope(room: HouseRoomHead): HouseScope;
91
+ export declare function bootstrapping(scope: HouseScope): Generator<number, BootstrapPage, void>;
97
92
  export type HouseSchema = {
98
93
  schema: string | null;
99
94
  version: string | null;
100
95
  revision: string | null;
96
+ space?: string;
101
97
  };
102
98
  export declare function schemaOf(scope: HouseScope, schema: string): HouseSchema | null;
103
- export declare function viewOf(enumeration: HouseEnumeration, tracked: TrackedAuthority): HouseView | undefined;
104
- export declare function refreshFrom(view: HouseView, fromRoomVersion: string): RefreshResult;
105
- export {};
106
- //# sourceMappingURL=read.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,aAAa,EAEb,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAsC,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAEpF,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAI1D,wBAAgB,UAAU,CAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG;IACvE,OAAO,CAAC,EAAE,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