@agentshouse/mdruntime-adapter 0.1.0-cc63dd043d0e2 → 0.1.0-cc65657e82614

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 (83) hide show
  1. package/README.md +5 -5
  2. package/dist/actions.d.ts +6 -6
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +25 -326
  5. package/dist/adapter.d.ts +1 -1
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +284 -250
  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 +28 -28
  22. package/dist/discovery.d.ts.map +1 -1
  23. package/dist/discovery.js +112 -79
  24. package/dist/history.d.ts +6 -0
  25. package/dist/history.d.ts.map +1 -0
  26. package/dist/history.js +84 -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 +8 -19
  35. package/dist/model.d.ts.map +1 -1
  36. package/dist/model.js +53 -39
  37. package/dist/read.d.ts +63 -43
  38. package/dist/read.d.ts.map +1 -1
  39. package/dist/read.js +179 -265
  40. package/dist/refusal.d.ts +5 -12
  41. package/dist/refusal.d.ts.map +1 -1
  42. package/dist/refusal.js +31 -18
  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 +1 -2
  56. package/dist/site.d.ts.map +1 -1
  57. package/dist/site.js +128 -142
  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 +18 -12
  62. package/dist/stream.d.ts.map +1 -1
  63. package/dist/stream.js +345 -144
  64. package/dist/transport.d.ts +124 -27
  65. package/dist/transport.d.ts.map +1 -1
  66. package/dist/transport.js +55 -10
  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 +2 -1
  71. package/dist/version.d.ts.map +1 -1
  72. package/dist/version.js +10 -1
  73. package/dist/write.d.ts +20 -5
  74. package/dist/write.d.ts.map +1 -1
  75. package/dist/write.js +170 -60
  76. package/package.json +9 -6
  77. package/AGENTS.md +0 -215
  78. package/dist/gather.d.ts +0 -3
  79. package/dist/gather.d.ts.map +0 -1
  80. package/dist/gather.js +0 -40
  81. package/dist/links.d.ts +0 -12
  82. package/dist/links.d.ts.map +0 -1
  83. package/dist/links.js +0 -66
package/dist/model.js CHANGED
@@ -1,46 +1,60 @@
1
1
  import { sha256Hex } from './digest.js';
2
- export const MODEL_ABSENT = { kind: 'model-unavailable', reason: 'not-readable' };
3
- export function failedModel(failure) {
4
- if (failure.kind === 'revoked-authorization')
5
- return { kind: 'revoked-authorization' };
6
- if (failure.kind === 'transport-uncertainty')
7
- return { kind: 'transport-uncertainty' };
8
- return MODEL_ABSENT;
9
- }
10
- export function modelKey(locator, attached) {
11
- return `${locator} ${attached}`;
12
- }
13
- export async function heldModel(read, identity, failure) {
2
+ import { modelScope, schemaOf, schemaPath, } from './read.js';
3
+ import { spaceIdentity } from './space-schema.js';
4
+ const MODEL_ABSENT = { kind: 'model-unavailable', reason: 'not-readable' };
5
+ const ABSENT_SCHEMA = { schema: null, version: null, revision: null };
6
+ async function heldModel(read, identity) {
14
7
  if (read === null)
15
- return { snapshot: failure, identity: null };
8
+ return MODEL_ABSENT;
16
9
  const version = await sha256Hex(JSON.stringify(read.version));
17
10
  return {
18
- snapshot: { kind: 'model', snapshot: { identity, version, schema: read.schema } },
19
- identity: { identity, version },
20
- };
21
- }
22
- export function modelShelf() {
23
- const models = new Map();
24
- return {
25
- retain(key, acquired) {
26
- if (acquired === undefined)
27
- return models.get(key);
28
- if (acquired.snapshot.kind === 'transport-uncertainty') {
29
- const previous = models.get(key);
30
- if (previous !== undefined && previous.identity !== null)
31
- return previous;
32
- }
33
- models.set(key, acquired);
34
- return acquired;
35
- },
36
- answer(request) {
37
- return models.get(modelKey(request.locator, request.attached))?.snapshot ?? MODEL_ABSENT;
38
- },
39
- keep(locators) {
40
- for (const key of [...models.keys()]) {
41
- if (!locators.some((locator) => key.startsWith(`${locator} `)))
42
- models.delete(key);
43
- }
11
+ kind: 'model',
12
+ snapshot: {
13
+ identity: read.space === undefined ? identity : spaceIdentity(read.space),
14
+ version,
15
+ schema: read.schema,
16
+ revision: read.revision,
44
17
  },
45
18
  };
46
19
  }
20
+ async function modelsOf(tracked, read) {
21
+ const collection = read(tracked.schema);
22
+ if (collection === undefined)
23
+ return undefined;
24
+ return { collection: await heldModel(collection, schemaPath(tracked.handle, tracked.schema)) };
25
+ }
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);
32
+ }
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);
43
+ }
44
+ export function streamedModels(schemas, tracked, mode, spaces, whole) {
45
+ return modelsOf(tracked, (schema) => {
46
+ const entry = schemas.get(schema);
47
+ if (entry === undefined)
48
+ return whole ? ABSENT_SCHEMA : undefined;
49
+ const space = entry.space === undefined ? {} : { space: entry.space };
50
+ if (entry.kind === 'removed')
51
+ return { ...ABSENT_SCHEMA, ...space };
52
+ const text = streamedText(entry, spaces);
53
+ if (text === undefined)
54
+ return null;
55
+ const version = mode === 'site' ? entry.sha256 : entry.revision;
56
+ return version === undefined
57
+ ? null
58
+ : { schema: text, version, revision: mode === 'site' ? null : version, ...space };
59
+ });
60
+ }
package/dist/read.d.ts CHANGED
@@ -1,13 +1,45 @@
1
- import type { BootstrapPage, RefreshResult, RoomAttachment } 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];
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>;
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>;
6
33
  export type HouseManifestFile = {
7
34
  path: string;
8
35
  revision: string | undefined;
9
36
  version: string;
37
+ sha256?: string;
10
38
  head?: HeadChange;
39
+ created?: string;
40
+ binary?: BinaryFile;
41
+ facts?: SavedFacts;
42
+ space?: string;
11
43
  };
12
44
  export type HouseContent = {
13
45
  path: string;
@@ -17,62 +49,50 @@ export type HouseScope = LogPosition & {
17
49
  anchor: string;
18
50
  files: readonly HouseManifestFile[];
19
51
  contents: readonly HouseContent[];
20
- attachments?: readonly RoomAttachment[];
52
+ folders?: readonly string[];
53
+ };
54
+ export type HouseModels = {
55
+ files: readonly HouseManifestFile[];
56
+ contents: readonly HouseContent[];
21
57
  };
22
- export type HouseEnvelope = {
23
- scopes: readonly HouseScope[];
58
+ export type HouseRoomHead = LogPosition & {
59
+ anchor: string;
60
+ models: HouseModels;
24
61
  };
25
62
  export type HouseGrant = {
26
- method: 'GET';
27
- url: string;
28
- } | {
29
- method: 'POST';
30
63
  operation: string;
31
64
  url: string;
32
65
  };
33
- export type HouseChange = {
34
- path: string;
35
- removed: true;
36
- } | {
37
- path: string;
38
- content: string;
39
- revision: string | undefined;
40
- version: string;
41
- head?: HeadChange;
42
- } | {
43
- path: string;
44
- reference: {
45
- revision: string;
46
- };
47
- };
48
- export type HouseView = LogPosition & {
49
- authority: string;
50
- changes: readonly HouseChange[];
51
- attachments?: readonly RoomAttachment[];
52
- };
53
- export type HouseEnumeration = {
54
- authorities: readonly HouseView[];
66
+ export type HouseFileAddress = {
67
+ url: string;
68
+ name: string;
69
+ sha256: string;
70
+ mediaType: string;
55
71
  };
56
72
  export declare function authorityRoot(handle: string): string;
57
- export declare function contentPrefixes(tracked: TrackedAuthority): readonly string[];
58
73
  export declare function schemaPath(handle: string, schema: string): string;
59
74
  export declare function parseGrant(body: unknown): HouseGrant | null;
75
+ export declare function parseFileAddress(body: unknown): HouseFileAddress | null;
60
76
  export declare function headChange(held: {
61
77
  readonly author?: unknown;
62
- readonly created_at?: unknown;
78
+ readonly changed_at?: unknown;
63
79
  }): HeadChange | undefined | null;
64
- export declare function parseEnvelope(body: unknown): HouseEnvelope | null;
65
- export declare function parseSiteBootstrap(body: unknown): HouseScope | null;
66
- export declare function parseEnumeration(body: unknown, mode: HouseMode): HouseEnumeration | null;
67
- export declare function advancedScope(scope: HouseScope, view: HouseView): HouseScope;
68
- export declare function matchesScope(scope: HouseScope, tracked: TrackedAuthority): boolean;
69
- export declare function bootstrapOf(scope: HouseScope): BootstrapPage;
80
+ export declare function createdOf(held: {
81
+ readonly created_at?: unknown;
82
+ }): string | undefined | null;
83
+ export declare function binaryFileOf(held: Readonly<Record<string, unknown>>): BinaryFile | undefined | null;
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>;
70
92
  export type HouseSchema = {
71
93
  schema: string | null;
72
94
  version: string | null;
95
+ revision: string | null;
96
+ space?: string;
73
97
  };
74
- export declare function schemaFrom(envelope: HouseEnvelope, tracked: TrackedAuthority, schema: string): HouseSchema | null;
75
98
  export declare function schemaOf(scope: HouseScope, schema: string): HouseSchema | null;
76
- export declare function viewOf(enumeration: HouseEnumeration, tracked: TrackedAuthority): HouseView | undefined;
77
- export declare function refreshFrom(view: HouseView, fromRoomVersion: string): RefreshResult;
78
- //# 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,aAAa,EAEb,aAAa,EACb,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3E,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACpC,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB;IAAE,MAAM,EAAE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