@agentshouse/mdruntime-adapter 0.1.0-c0a168d2cd8cc → 0.1.0-c0a3a92c6ef52

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.
@@ -26,27 +26,6 @@ export const HOUSE_MODEL_DECLARATION = {
26
26
  maxLength: 512,
27
27
  pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$',
28
28
  },
29
- trigger_test: {
30
- description: 'One test of a Trigger condition as the Trigger reference page writes one, a value compared at a `path` or `all`, `any` or `not` of tests.',
31
- type: 'object',
32
- additionalProperties: true,
33
- },
34
- trigger_values: {
35
- type: 'array',
36
- items: { anyOf: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] },
37
- },
38
- trigger_scope: {
39
- description: 'The documents a Trigger condition watches, by `type`, by `folder` or one document at its `path`, which `create_trigger` takes as `document`.',
40
- type: 'object',
41
- additionalProperties: false,
42
- properties: {
43
- type: { type: 'string' },
44
- folder: { type: 'string' },
45
- path: { type: 'string' },
46
- },
47
- minProperties: 1,
48
- maxProperties: 1,
49
- },
50
29
  },
51
30
  'house-app-preferences': {
52
31
  description: "An App's preferences. Its own vocabulary is in the body.",
@@ -54,7 +33,7 @@ export const HOUSE_MODEL_DECLARATION = {
54
33
  required: ['app'],
55
34
  },
56
35
  'house-notification': {
57
- description: "One kept Human Notification for this User: its kind, when it was sent as `created`, its way in, its email's subject and each fact of its value that is not sealed, named in snake_case. An entity a fact names is an object holding its identifier under the key of its kind, when the notification carries it, and its `name`, `email` and other facts beside it; a fact holding null is absent. `way_in` is either the House `path` it opens or the entity it is about, by its identifier under the key of its kind, a Trigger with its `room`. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. Read state belongs to each browser.",
36
+ description: "One kept Notification for this User: its kind, when it was sent as `created`, its way in, its email's subject and each fact of its value that is not sealed, named in snake_case. An entity a fact names is an object holding its identifier under the key of its kind, when the notification carries it, and its `name`, `email` and other facts beside it; a fact holding null is absent. `way_in` is either the House `path` it opens or the entity it is about, by its identifier under the key of its kind, a Trigger with its `room`. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. `read` is when the User opened it or marked it read, on any device: the one field House adds after delivery.",
58
37
  properties: {
59
38
  notification: { $ref: '#/$defs/id' },
60
39
  kind: {
@@ -63,34 +42,28 @@ export const HOUSE_MODEL_DECLARATION = {
63
42
  'share-offer',
64
43
  'join-request',
65
44
  'join-request-approved',
66
- 'app-room-binding-incompatible',
67
- 'app-call',
68
45
  'room-ownership-offer',
69
46
  'managed-environment-retention-opened',
70
- 'managed-environment-placement-intervention',
71
47
  'storage-full',
72
48
  'sandbox-budget-spent',
49
+ 'trigger-failed',
73
50
  'break-glass-owner-disclosure',
74
- 'agent-function-start-approval-request',
75
51
  'export-ready',
76
52
  'export-failed',
77
- 'site-disabled',
78
- 'site-binding-incompatible',
79
- 'site-images-full',
80
53
  'custom',
54
+ 'agent-function-request-finished',
81
55
  ],
82
56
  },
83
57
  created: { type: 'string', format: 'date-time' },
58
+ read: { type: 'string', format: 'date-time' },
84
59
  way_in: {
85
60
  type: 'object',
86
61
  additionalProperties: false,
87
62
  properties: {
88
63
  path: { type: 'string', pattern: '^\\/' },
89
64
  room: { $ref: '#/$defs/room' },
90
- app: { $ref: '#/$defs/app' },
91
65
  environment: { $ref: '#/$defs/id' },
92
66
  trigger: { $ref: '#/$defs/id' },
93
- site: { $ref: '#/$defs/id' },
94
67
  },
95
68
  minProperties: 1,
96
69
  },
@@ -141,18 +114,8 @@ export const HOUSE_MODEL_DECLARATION = {
141
114
  app: {
142
115
  type: 'object',
143
116
  additionalProperties: false,
144
- properties: { app: { $ref: '#/$defs/app' }, name: { type: 'string' } },
145
- minProperties: 1,
146
- },
147
- release: { type: 'integer', minimum: 1 },
148
- binding: { $ref: '#/$defs/id' },
149
- slot: { type: 'string' },
150
- findings: { type: 'array', items: { type: 'string' } },
151
- caller: {
152
- type: 'object',
153
- additionalProperties: false,
154
- properties: { user: { $ref: '#/$defs/id' }, name: { type: 'string' } },
155
- required: ['user', 'name'],
117
+ properties: { app: { $ref: '#/$defs/app' } },
118
+ required: ['app'],
156
119
  },
157
120
  ownership_offer: { $ref: '#/$defs/id' },
158
121
  offerer: {
@@ -173,7 +136,6 @@ export const HOUSE_MODEL_DECLARATION = {
173
136
  },
174
137
  reason: { type: 'string' },
175
138
  deadline: { type: 'string', format: 'date-time' },
176
- operation_kind: { type: 'string' },
177
139
  free: {
178
140
  type: 'object',
179
141
  additionalProperties: false,
@@ -192,40 +154,8 @@ export const HOUSE_MODEL_DECLARATION = {
192
154
  access_ended_at: { type: 'string', format: 'date-time' },
193
155
  systems: { type: 'array', items: { type: 'string' } },
194
156
  case_reference: { type: 'string' },
195
- agent_function_request: { $ref: '#/$defs/id' },
196
- requester: {
197
- type: 'object',
198
- additionalProperties: false,
199
- properties: { name: { type: 'string' } },
200
- required: ['name'],
201
- },
202
- agent: {
203
- type: 'object',
204
- additionalProperties: false,
205
- properties: { agent: { $ref: '#/$defs/id' }, name: { type: 'string' } },
206
- required: ['name'],
207
- },
208
- conversation: { $ref: '#/$defs/id' },
209
- agent_function: {
210
- type: 'object',
211
- additionalProperties: false,
212
- properties: {
213
- name: { type: 'string' },
214
- version: { type: 'integer', minimum: 1 },
215
- },
216
- required: ['name'],
217
- },
218
157
  export: { $ref: '#/$defs/id' },
219
158
  size_bytes: { type: 'integer', minimum: 0 },
220
- site: {
221
- type: 'object',
222
- additionalProperties: false,
223
- properties: { site: { $ref: '#/$defs/id' }, name: { type: 'string' } },
224
- required: ['site', 'name'],
225
- },
226
- address: { type: 'string', maxLength: 300, format: 'uri' },
227
- copies: { type: 'integer', minimum: 0 },
228
- bound: { type: 'integer', minimum: 0 },
229
159
  title: { type: 'string' },
230
160
  body: { type: 'string' },
231
161
  authorship: {
@@ -239,6 +169,38 @@ export const HOUSE_MODEL_DECLARATION = {
239
169
  required: ['kind', 'trigger', 'position'],
240
170
  },
241
171
  path: { type: 'string', maxLength: 4096, pattern: '^\\/.*' },
172
+ trigger: {
173
+ type: 'object',
174
+ additionalProperties: false,
175
+ properties: { trigger: { $ref: '#/$defs/id' }, description: { type: 'string' } },
176
+ required: ['trigger', 'description'],
177
+ },
178
+ code: {
179
+ type: 'string',
180
+ enum: [
181
+ 'failed',
182
+ 'function_failed',
183
+ 'function_not_started',
184
+ 'agent_function_request_not_started',
185
+ ],
186
+ },
187
+ action: { type: 'integer', minimum: 0 },
188
+ moment: { type: 'string', format: 'date-time' },
189
+ error: { type: 'string' },
190
+ agent_function: {
191
+ type: 'object',
192
+ additionalProperties: false,
193
+ properties: { name: { type: 'string' } },
194
+ required: ['name'],
195
+ },
196
+ agent: {
197
+ type: 'object',
198
+ additionalProperties: false,
199
+ properties: { name: { type: 'string' } },
200
+ required: ['name'],
201
+ },
202
+ ended: { type: 'string', enum: ['finished', 'failed'] },
203
+ duration: { type: 'integer', minimum: 1 },
242
204
  },
243
205
  required: ['notification', 'kind', 'created', 'way_in', 'subject'],
244
206
  },
@@ -263,11 +225,12 @@ export const HOUSE_MODEL_DECLARATION = {
263
225
  required: ['reflected', 'agent_function', 'description', 'input', 'agent'],
264
226
  },
265
227
  'house-agent-function-document': {
266
- description: 'One Agent function as its owner writes it in their Private Room at rooms/<room-handle>/agent-functions/<name>.md, a path that binds this type and a document that names no type: what it does as `description`, what a caller sends as `input`, empty when it takes nothing, and the `agent` it starts, by identifier. Its body is the instruction that Agent follows.',
228
+ description: 'One Agent function as its owner writes it in their Private Room at rooms/<room-handle>/agent-functions/<name>.md, a path that binds this type and a document that names no type: what it does as `description`, what a caller sends as `input`, empty when it takes nothing, the `agent` it starts, by identifier, and `afk`, true for a run nobody watches, off when absent. Its body is the instruction that Agent follows.',
267
229
  properties: {
268
230
  description: { type: 'string', maxLength: 2000, pattern: '\\S' },
269
231
  input: { type: 'string' },
270
232
  agent: { $ref: '#/$defs/id' },
233
+ afk: { type: 'boolean' },
271
234
  },
272
235
  required: ['description', 'input', 'agent'],
273
236
  },
@@ -278,96 +241,9 @@ export const HOUSE_MODEL_DECLARATION = {
278
241
  trigger: { $ref: '#/$defs/id' },
279
242
  description: { type: 'string' },
280
243
  condition: {
281
- anyOf: [
282
- {
283
- type: 'object',
284
- additionalProperties: false,
285
- properties: {
286
- on: { const: 'documents' },
287
- scope: { $ref: '#/$defs/trigger_scope' },
288
- mode: { const: 'starts_matching' },
289
- new_documents: { type: 'boolean' },
290
- match: { $ref: '#/$defs/trigger_test' },
291
- by: { $ref: '#/$defs/trigger_test' },
292
- moved_between_rooms: { type: 'boolean' },
293
- },
294
- required: ['on', 'scope', 'mode', 'new_documents', 'match'],
295
- },
296
- {
297
- type: 'object',
298
- additionalProperties: false,
299
- properties: {
300
- on: { const: 'documents' },
301
- scope: { $ref: '#/$defs/trigger_scope' },
302
- mode: { const: 'field_changes' },
303
- field: { type: 'string' },
304
- from: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'new' }] },
305
- to: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'deleted' }] },
306
- match: { $ref: '#/$defs/trigger_test' },
307
- by: { $ref: '#/$defs/trigger_test' },
308
- moved_between_rooms: { type: 'boolean' },
309
- },
310
- required: ['on', 'scope', 'mode', 'field'],
311
- },
312
- {
313
- type: 'object',
314
- additionalProperties: false,
315
- properties: {
316
- on: { const: 'items' },
317
- source: { type: 'string' },
318
- address: { type: 'string' },
319
- match: { $ref: '#/$defs/trigger_test' },
320
- },
321
- required: ['on'],
322
- },
323
- {
324
- type: 'object',
325
- additionalProperties: false,
326
- properties: {
327
- on: { const: 'notifications' },
328
- match: { $ref: '#/$defs/trigger_test' },
329
- },
330
- required: ['on'],
331
- },
332
- {
333
- type: 'object',
334
- additionalProperties: false,
335
- properties: {
336
- on: { const: 'messages' },
337
- match: { $ref: '#/$defs/trigger_test' },
338
- },
339
- required: ['on'],
340
- },
341
- {
342
- type: 'object',
343
- additionalProperties: false,
344
- properties: {
345
- on: { const: 'clock' },
346
- cron: { type: 'string' },
347
- time_zone: { type: 'string' },
348
- },
349
- required: ['on', 'cron', 'time_zone'],
350
- },
351
- {
352
- type: 'object',
353
- additionalProperties: false,
354
- properties: {
355
- on: { const: 'clock' },
356
- scope: {
357
- type: 'object',
358
- additionalProperties: false,
359
- properties: { type: { type: 'string' } },
360
- required: ['type'],
361
- },
362
- date: { type: 'string' },
363
- days: { type: 'integer' },
364
- at: { type: 'string' },
365
- time_zone: { type: 'string' },
366
- match: { $ref: '#/$defs/trigger_test' },
367
- },
368
- required: ['on', 'scope', 'date', 'days', 'at', 'time_zone'],
369
- },
370
- ],
244
+ description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.',
245
+ type: 'object',
246
+ additionalProperties: true,
371
247
  },
372
248
  actions: {
373
249
  type: 'array',
package/dist/index.d.ts CHANGED
@@ -9,5 +9,5 @@ export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, HOUSE_TYPED_PATHS, type Hou
9
9
  export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
10
10
  export { CHAT_MESSAGE_TYPE, CHAT_TYPE, HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, type InboxChannelKind, } from './room-types.js';
11
11
  export { HOUSE_RUNTIME_READS, houseDoorRoute, houseSiteRoute, type HouseRuntimeAct, type HouseRuntimeFrame, } from './transport.js';
12
- export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamed, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
12
+ export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -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,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC"}
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,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AACxB,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/model.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import type { RoomModels } from '@agentshouse/mdruntime';
2
2
  import type { TrackedAuthority } from './discovery.js';
3
- import { type HouseRoomHead, type HouseScope } from './read.js';
3
+ import { type HouseRoomHead } from './read.js';
4
+ import { type SpaceSchemas } from './space-schema.js';
4
5
  import type { HouseMode, HouseStreamEntry } from './transport.js';
5
- export declare function partModels(scope: HouseScope, tracked: TrackedAuthority, seen: ReadonlySet<string>, final: boolean): Promise<RoomModels | undefined>;
6
- export declare function manifestedModels(room: HouseRoomHead, tracked: TrackedAuthority): Promise<{
7
- readonly models: RoomModels | undefined;
8
- readonly seen: string[];
9
- }>;
10
- export declare function streamedModels(schemas: ReadonlyMap<string, HouseStreamEntry>, tracked: TrackedAuthority, mode: HouseMode): Promise<RoomModels | undefined>;
6
+ export declare function manifestedModels(room: HouseRoomHead, tracked: TrackedAuthority, spaces: SpaceSchemas): Promise<RoomModels | undefined>;
7
+ export declare function keptSpaceSchemas(entries: readonly HouseStreamEntry[], spaces: SpaceSchemas): void;
8
+ export declare function streamedModels(schemas: ReadonlyMap<string, HouseStreamEntry>, tracked: TrackedAuthority, mode: HouseMode, spaces: SpaceSchemas, whole: boolean): Promise<RoomModels | undefined>;
11
9
  //# sourceMappingURL=model.d.ts.map
@@ -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,EAIL,KAAK,aAAa,EAElB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA0BlE,wBAAgB,UAAU,CACxB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EACzB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC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CAAC,UAAU,GAAG,SAAS,CAAC,CAajC"}
package/dist/model.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { sha256Hex } from './digest.js';
2
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,7 +9,12 @@ 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) {
@@ -17,32 +23,38 @@ async function modelsOf(tracked, read) {
17
23
  return undefined;
18
24
  return { collection: await heldModel(collection, schemaPath(tracked.handle, tracked.schema)) };
19
25
  }
20
- export function partModels(scope, tracked, seen, final) {
21
- return modelsOf(tracked, (schema) => {
22
- if (scope.files.some((file) => file.path === schema))
23
- return schemaOf(scope, schema);
24
- return final && !seen.has(schema) ? ABSENT_SCHEMA : undefined;
25
- });
26
- }
27
- export async function manifestedModels(room, tracked) {
26
+ export async function manifestedModels(room, tracked, spaces) {
28
27
  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
- };
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, (schema) => scope.files.some((file) => file.path === schema) ? schemaOf(scope, schema) : ABSENT_SCHEMA);
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);
33
43
  }
34
- export function streamedModels(schemas, tracked, mode) {
44
+ export function streamedModels(schemas, tracked, mode, spaces, whole) {
35
45
  return modelsOf(tracked, (schema) => {
36
46
  const entry = schemas.get(schema);
37
47
  if (entry === undefined)
38
- return undefined;
48
+ return whole ? ABSENT_SCHEMA : undefined;
49
+ const space = entry.space === undefined ? {} : { space: entry.space };
39
50
  if (entry.kind === 'removed')
40
- return ABSENT_SCHEMA;
41
- if (entry.text === undefined)
51
+ return { ...ABSENT_SCHEMA, ...space };
52
+ const text = streamedText(entry, spaces);
53
+ if (text === undefined)
42
54
  return null;
43
55
  const version = mode === 'site' ? entry.sha256 : entry.revision;
44
56
  return version === undefined
45
57
  ? null
46
- : { schema: entry.text, version, revision: mode === 'site' ? null : version };
58
+ : { schema: text, version, revision: mode === 'site' ? null : version, ...space };
47
59
  });
48
60
  }
package/dist/read.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- import { type BinaryFile, type BootstrapPage, type Outline, type RoomModels, type TransportUncertainty } from '@agentshouse/mdruntime';
1
+ import { type BinaryFile, type BootstrapPage, type SavedFacts } from '@agentshouse/mdruntime';
2
2
  import type { HouseMode } from './transport.js';
3
3
  import { type LogPosition } from './version.js';
4
4
  export type HeadChange = BootstrapPage['changes'][string];
5
5
  export type Answered = {
6
6
  readonly documents: Map<string, string>;
7
- readonly outlines: Map<string, Outline>;
7
+ readonly facts: Map<string, SavedFacts>;
8
8
  readonly revisions: Map<string, string>;
9
9
  readonly fileIds: Map<string, string>;
10
+ readonly created: Map<string, string>;
10
11
  readonly changes: Map<string, HeadChange>;
11
12
  readonly binaryFiles: Map<string, BinaryFile>;
12
13
  readonly removals: Set<string>;
@@ -19,9 +20,10 @@ export declare function forgotten(answer: Answered, path: string): void;
19
20
  export declare function folded(answer: Answered, path: string, removed: boolean): void;
20
21
  export declare function answered(answer: Answered): Generator<number, {
21
22
  documents: Readonly<Record<string, string>>;
22
- outlines?: Readonly<Record<string, Outline>>;
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[];
@@ -34,8 +36,10 @@ export type HouseManifestFile = {
34
36
  version: string;
35
37
  sha256?: string;
36
38
  head?: HeadChange;
39
+ created?: string;
37
40
  binary?: BinaryFile;
38
- outline?: Outline;
41
+ facts?: SavedFacts;
42
+ space?: string;
39
43
  };
40
44
  export type HouseContent = {
41
45
  path: string;
@@ -71,23 +75,25 @@ export declare function parseGrant(body: unknown): HouseGrant | null;
71
75
  export declare function parseFileAddress(body: unknown): HouseFileAddress | null;
72
76
  export declare function headChange(held: {
73
77
  readonly author?: unknown;
74
- readonly created_at?: unknown;
78
+ readonly changed_at?: unknown;
75
79
  }): HeadChange | undefined | null;
80
+ export declare function createdOf(held: {
81
+ readonly created_at?: unknown;
82
+ }): string | undefined | null;
76
83
  export declare function binaryFileOf(held: Readonly<Record<string, unknown>>): BinaryFile | undefined | null;
77
- export declare function outlineOf(value: unknown): Outline | undefined | null;
78
- export declare function roomHead(payload: Uint8Array<ArrayBuffer>, mode: HouseMode): Promise<HouseRoomHead | null>;
79
- export declare function manifested(room: HouseRoomHead, pageToken: string, models: RoomModels | undefined): 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;
80
90
  export declare function modelScope(room: HouseRoomHead): HouseScope;
81
- export declare function emptyScope(room: HouseRoomHead): HouseScope;
82
- export declare function housePart(room: HouseRoomHead, payload: Uint8Array<ArrayBuffer>, mode: HouseMode): Promise<{
83
- scope: HouseScope;
84
- ended: boolean;
85
- } | TransportUncertainty>;
86
91
  export declare function bootstrapping(scope: HouseScope): Generator<number, BootstrapPage, void>;
87
92
  export type HouseSchema = {
88
93
  schema: string | null;
89
94
  version: string | null;
90
95
  revision: string | null;
96
+ space?: string;
91
97
  };
92
98
  export declare function schemaOf(scope: HouseScope, schema: string): HouseSchema | null;
93
99
  //# sourceMappingURL=read.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAEhC,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;AAQ1D,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,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