@agentshouse/mdruntime-adapter 0.1.0-c39f5fde7bf4a → 0.1.0-c3aeadd506101

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 -58
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +26 -295
  5. package/dist/adapter.d.ts +0 -1
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +201 -387
  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 +254 -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 +23 -18
  22. package/dist/discovery.d.ts.map +1 -1
  23. package/dist/discovery.js +78 -59
  24. package/dist/history.d.ts +6 -0
  25. package/dist/history.d.ts.map +1 -0
  26. package/dist/history.js +85 -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 -4
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +11 -2
  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 +26 -59
  38. package/dist/read.d.ts.map +1 -1
  39. package/dist/read.js +51 -309
  40. package/dist/refusal.d.ts +3 -5
  41. package/dist/refusal.d.ts.map +1 -1
  42. package/dist/refusal.js +17 -12
  43. package/dist/room-types.d.ts +2 -4
  44. package/dist/room-types.d.ts.map +1 -1
  45. package/dist/room-types.js +102 -33
  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 +87 -171
  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 +258 -426
  64. package/dist/transport.d.ts +56 -43
  65. package/dist/transport.d.ts.map +1 -1
  66. package/dist/transport.js +54 -11
  67. package/dist/uncertain.d.ts +5 -0
  68. package/dist/uncertain.d.ts.map +1 -0
  69. package/dist/uncertain.js +11 -0
  70. package/dist/upload.d.ts +3 -2
  71. package/dist/upload.d.ts.map +1 -1
  72. package/dist/upload.js +32 -19
  73. package/dist/version.d.ts +0 -1
  74. package/dist/write.d.ts +6 -3
  75. package/dist/write.d.ts.map +1 -1
  76. package/dist/write.js +36 -43
  77. package/package.json +8 -4
  78. package/AGENTS.md +0 -317
  79. package/dist/gather.d.ts +0 -4
  80. package/dist/gather.d.ts.map +0 -1
  81. package/dist/gather.js +0 -35
  82. package/dist/part.d.ts +0 -15
  83. package/dist/part.d.ts.map +0 -1
  84. package/dist/part.js +0 -82
@@ -0,0 +1 @@
1
+ {"version":3,"file":"house-model.d.ts","sourceRoot":"","sources":["../src/house-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,eAAO,MAAM,uBAAuB;aAClC,KAAK;i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AAC,CAAC,GACb,OAAO,CAAC;AAEtB,KAAK,QAAQ,CAAC,IAAI,SAAS,cAAc,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;CAAE,GAC7F,CAAC,GACD,EAAE,CAAC;AAEP,MAAM,MAAM,mBAAmB,CAAC,IAAI,SAAS,cAAc,IAAI,UAAU,CAAC;IACxE,QAAQ,CAAC,UAAU,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE;YAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;SAAE,CAAA;KAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClF,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9D,CAAC,CAAC"}
@@ -0,0 +1,465 @@
1
+ import { APP_PREFERENCES_HOME } from './authored-path.js';
2
+ export const HOUSE_MODEL_DECLARATION = {
3
+ $defs: {
4
+ room: {
5
+ description: 'A Room, by its Room reference, under the key `room`.',
6
+ type: 'string',
7
+ pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
8
+ },
9
+ app: {
10
+ description: 'An App, by its App reference, under the key `app`.',
11
+ type: 'string',
12
+ pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
13
+ },
14
+ space: {
15
+ description: 'A Space, by its Space reference, under the key `space`.',
16
+ type: 'string',
17
+ pattern: '^sp_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
18
+ },
19
+ id: {
20
+ description: 'Any other entity, by its identifier, under the key of its kind. An entity a type says more about is an object holding it under that key beside its facts.',
21
+ type: 'string',
22
+ format: 'uuid',
23
+ },
24
+ },
25
+ 'house-app-preferences': {
26
+ description: "An App's preferences. Its own vocabulary is in the body.",
27
+ properties: { app: { title: 'App', $ref: '#/$defs/app' } },
28
+ required: ['app'],
29
+ },
30
+ 'house-notification': {
31
+ 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.",
32
+ properties: {
33
+ notification: { title: 'Notification', $ref: '#/$defs/id' },
34
+ kind: {
35
+ title: 'Kind',
36
+ type: 'string',
37
+ enum: [
38
+ 'share-offer',
39
+ 'join-request',
40
+ 'join-request-approved',
41
+ 'room-ownership-offer',
42
+ 'managed-environment-retention-opened',
43
+ 'storage-full',
44
+ 'sandbox-budget-spent',
45
+ 'trigger-failed',
46
+ 'room-telegram-chat-paused',
47
+ 'break-glass-owner-disclosure',
48
+ 'export-ready',
49
+ 'export-failed',
50
+ 'custom',
51
+ 'agent-function-request-finished',
52
+ ],
53
+ },
54
+ created: { title: 'Created', type: 'string', format: 'date-time' },
55
+ read: { title: 'Read', type: 'string', format: 'date-time' },
56
+ way_in: {
57
+ title: 'Way in',
58
+ type: 'object',
59
+ additionalProperties: false,
60
+ properties: {
61
+ path: { title: 'Path', type: 'string', pattern: '^\\/' },
62
+ room: { title: 'Room', $ref: '#/$defs/room' },
63
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
64
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
65
+ },
66
+ minProperties: 1,
67
+ },
68
+ subject: { title: 'Subject', type: 'string' },
69
+ share: { title: 'Share', $ref: '#/$defs/id' },
70
+ issuer: {
71
+ title: 'Issuer',
72
+ type: 'object',
73
+ additionalProperties: false,
74
+ properties: {
75
+ name: { title: 'Name', type: 'string' },
76
+ email: { title: 'Email', type: 'string', format: 'email' },
77
+ },
78
+ required: ['name', 'email'],
79
+ },
80
+ rooms: {
81
+ title: 'Rooms',
82
+ type: 'array',
83
+ items: {
84
+ type: 'object',
85
+ additionalProperties: false,
86
+ properties: { name: { title: 'Name', type: 'string' } },
87
+ required: ['name'],
88
+ },
89
+ },
90
+ apps: {
91
+ title: 'Apps',
92
+ type: 'array',
93
+ items: {
94
+ type: 'object',
95
+ additionalProperties: false,
96
+ properties: {
97
+ name: { title: 'Name', type: 'string', minLength: 1, maxLength: 200 },
98
+ reaches: {
99
+ title: 'Reaches',
100
+ type: 'array',
101
+ items: { type: 'string', minLength: 1, maxLength: 512 },
102
+ },
103
+ },
104
+ required: ['name', 'reaches'],
105
+ },
106
+ },
107
+ spaces: {
108
+ title: 'Spaces',
109
+ type: 'array',
110
+ items: {
111
+ type: 'object',
112
+ additionalProperties: false,
113
+ properties: { name: { title: 'Name', type: 'string' } },
114
+ required: ['name'],
115
+ },
116
+ },
117
+ expires_at: { title: 'Expires at', type: 'string', format: 'date-time' },
118
+ join_request: { title: 'Join request', $ref: '#/$defs/id' },
119
+ user: {
120
+ title: 'User',
121
+ type: 'object',
122
+ additionalProperties: false,
123
+ properties: {
124
+ name: { title: 'Name', type: 'string' },
125
+ email: { title: 'Email', type: 'string', format: 'email' },
126
+ },
127
+ required: ['name'],
128
+ },
129
+ room: {
130
+ title: 'Room',
131
+ type: 'object',
132
+ additionalProperties: false,
133
+ properties: {
134
+ room: { title: 'Room', $ref: '#/$defs/room' },
135
+ name: { title: 'Name', type: 'string' },
136
+ },
137
+ minProperties: 1,
138
+ },
139
+ app: {
140
+ title: 'App',
141
+ type: 'object',
142
+ additionalProperties: false,
143
+ properties: { app: { title: 'App', $ref: '#/$defs/app' } },
144
+ required: ['app'],
145
+ },
146
+ space: {
147
+ title: 'Space',
148
+ type: 'object',
149
+ additionalProperties: false,
150
+ properties: { space: { title: 'Space', $ref: '#/$defs/space' } },
151
+ required: ['space'],
152
+ },
153
+ ownership_offer: { title: 'Ownership offer', $ref: '#/$defs/id' },
154
+ offerer: {
155
+ title: 'Offerer',
156
+ type: 'object',
157
+ additionalProperties: false,
158
+ properties: {
159
+ name: { title: 'Name', type: 'string' },
160
+ email: { title: 'Email', type: 'string', format: 'email' },
161
+ },
162
+ required: ['name', 'email'],
163
+ },
164
+ environment: {
165
+ title: 'Environment',
166
+ type: 'object',
167
+ additionalProperties: false,
168
+ properties: {
169
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
170
+ name: { title: 'Name', type: 'string' },
171
+ kind: { title: 'Kind', enum: ['vps', 'sandbox'] },
172
+ },
173
+ required: ['environment', 'name'],
174
+ },
175
+ reason: { title: 'Reason', type: 'string' },
176
+ deadline: { title: 'Deadline', type: 'string', format: 'date-time' },
177
+ free: {
178
+ title: 'Free',
179
+ type: 'object',
180
+ additionalProperties: false,
181
+ properties: {
182
+ held: { title: 'Held', type: 'string', pattern: '^\\d+$' },
183
+ limit: { title: 'Limit', type: 'string', pattern: '^[1-9]\\d*$' },
184
+ measure: { title: 'Measure', type: 'string', enum: ['content', 'retained'] },
185
+ },
186
+ required: ['held', 'limit', 'measure'],
187
+ },
188
+ chat: { title: 'Chat', type: 'string' },
189
+ missing: {
190
+ title: 'Missing',
191
+ type: 'array',
192
+ items: {
193
+ type: 'string',
194
+ enum: [
195
+ 'private',
196
+ 'topics',
197
+ 'ban_users',
198
+ 'invite_users',
199
+ 'manage_topics',
200
+ 'post_messages',
201
+ 'edit_messages',
202
+ 'inbox_manage_topics',
203
+ 'inbox_delete_messages',
204
+ ],
205
+ },
206
+ },
207
+ budget: { title: 'Budget', type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
208
+ resets_at: { title: 'Resets at', type: 'string', format: 'date-time' },
209
+ grant: { title: 'Grant', $ref: '#/$defs/id' },
210
+ category: { title: 'Category', type: 'string' },
211
+ access_started_at: { title: 'Access started at', type: 'string', format: 'date-time' },
212
+ access_ended_at: { title: 'Access ended at', type: 'string', format: 'date-time' },
213
+ systems: { title: 'Systems', type: 'array', items: { type: 'string' } },
214
+ case_reference: { title: 'Case reference', type: 'string' },
215
+ export: { title: 'Export', $ref: '#/$defs/id' },
216
+ size_bytes: { title: 'Size in bytes', type: 'integer', minimum: 0 },
217
+ title: { title: 'Title', type: 'string' },
218
+ body: { title: 'Body', type: 'string' },
219
+ authorship: {
220
+ title: 'Authorship',
221
+ type: 'object',
222
+ additionalProperties: false,
223
+ properties: {
224
+ kind: { title: 'Kind', type: 'string', const: 'trigger-action' },
225
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
226
+ position: { title: 'Position', type: 'integer', minimum: 0 },
227
+ },
228
+ required: ['kind', 'trigger', 'position'],
229
+ },
230
+ path: { title: 'Path', type: 'string', maxLength: 4096, pattern: '^\\/.*' },
231
+ trigger: {
232
+ title: 'Trigger',
233
+ type: 'object',
234
+ additionalProperties: false,
235
+ properties: {
236
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
237
+ description: { title: 'Description', type: 'string' },
238
+ },
239
+ required: ['trigger', 'description'],
240
+ },
241
+ code: {
242
+ title: 'Code',
243
+ type: 'string',
244
+ enum: [
245
+ 'failed',
246
+ 'function_failed',
247
+ 'function_not_started',
248
+ 'agent_function_request_not_started',
249
+ ],
250
+ },
251
+ action: { title: 'Action', type: 'integer', minimum: 0 },
252
+ moment: { title: 'Moment', type: 'string', format: 'date-time' },
253
+ error: { title: 'Error', type: 'string' },
254
+ agent_function: {
255
+ title: 'Agent function',
256
+ type: 'object',
257
+ additionalProperties: false,
258
+ properties: { name: { title: 'Name', type: 'string' } },
259
+ required: ['name'],
260
+ },
261
+ agent: {
262
+ title: 'Agent',
263
+ type: 'object',
264
+ additionalProperties: false,
265
+ properties: { name: { title: 'Name', type: 'string' } },
266
+ required: ['name'],
267
+ },
268
+ ended: { title: 'Ended', type: 'string', enum: ['finished', 'failed'] },
269
+ duration: { title: 'Duration', type: 'integer', minimum: 1 },
270
+ },
271
+ required: ['notification', 'kind', 'created', 'way_in', 'subject'],
272
+ },
273
+ 'house-panel-preferences': {
274
+ description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
275
+ properties: {},
276
+ },
277
+ 'house-agent-function': {
278
+ description: "One Agent function that serves this Room, which House alone writes from its owner's document in their Private Room: the `agent_function` by identifier, its `description`, the `input` a caller sends, empty when it takes nothing, and the `agent` it starts, by `agent` and the `name` that Agent had when this card was last written. The Agent function's instruction is never written here.",
279
+ properties: {
280
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
281
+ agent_function: { title: 'Agent function', $ref: '#/$defs/id' },
282
+ description: { title: 'Description', type: 'string' },
283
+ input: { title: 'Input', type: 'string' },
284
+ agent: {
285
+ title: 'Agent',
286
+ type: 'object',
287
+ additionalProperties: false,
288
+ properties: {
289
+ agent: { title: 'Agent', $ref: '#/$defs/id' },
290
+ name: { title: 'Name', type: 'string' },
291
+ },
292
+ required: ['agent', 'name'],
293
+ },
294
+ },
295
+ required: ['reflected', 'agent_function', 'description', 'input', 'agent'],
296
+ },
297
+ 'house-agent-function-document': {
298
+ 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.',
299
+ properties: {
300
+ description: { title: 'Description', type: 'string', maxLength: 2000, pattern: '\\S' },
301
+ input: { title: 'Input', type: 'string' },
302
+ agent: { title: 'Agent', $ref: '#/$defs/id' },
303
+ afk: { title: 'AFK', type: 'boolean' },
304
+ },
305
+ required: ['description', 'input', 'agent'],
306
+ },
307
+ 'house-trigger': {
308
+ description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release and the owner's functions.",
309
+ properties: {
310
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
311
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
312
+ description: { title: 'Description', type: 'string' },
313
+ condition: {
314
+ title: 'Condition',
315
+ description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.',
316
+ type: 'object',
317
+ additionalProperties: true,
318
+ },
319
+ actions: {
320
+ title: 'Actions',
321
+ type: 'array',
322
+ items: {
323
+ anyOf: [
324
+ {
325
+ type: 'object',
326
+ additionalProperties: false,
327
+ properties: {
328
+ kind: { title: 'Kind', const: 'notify' },
329
+ enabled: { title: 'Enabled', type: 'boolean' },
330
+ title: { title: 'Title', type: 'string' },
331
+ text: { title: 'Text', type: 'string' },
332
+ to: {
333
+ title: 'To',
334
+ type: 'object',
335
+ additionalProperties: false,
336
+ properties: {
337
+ users: {
338
+ title: 'Users',
339
+ type: 'array',
340
+ items: {
341
+ type: 'object',
342
+ additionalProperties: false,
343
+ properties: { user: { title: 'User', $ref: '#/$defs/id' } },
344
+ required: ['user'],
345
+ },
346
+ },
347
+ fields: { title: 'Fields', type: 'array', items: { type: 'string' } },
348
+ roles: { title: 'Roles', type: 'array', items: { type: 'string' } },
349
+ },
350
+ required: ['users', 'fields', 'roles'],
351
+ },
352
+ },
353
+ required: ['kind', 'enabled', 'title', 'text', 'to'],
354
+ },
355
+ {
356
+ type: 'object',
357
+ additionalProperties: false,
358
+ properties: {
359
+ kind: { title: 'Kind', const: 'agent_function' },
360
+ enabled: { title: 'Enabled', type: 'boolean' },
361
+ card: { title: 'Card', type: 'string', minLength: 1 },
362
+ payload: { title: 'Payload', type: 'string' },
363
+ },
364
+ required: ['kind', 'enabled', 'payload'],
365
+ },
366
+ {
367
+ type: 'object',
368
+ additionalProperties: false,
369
+ properties: {
370
+ kind: { title: 'Kind', const: 'message' },
371
+ enabled: { title: 'Enabled', type: 'boolean' },
372
+ card: { title: 'Card', type: 'string', minLength: 1 },
373
+ text: { title: 'Text', type: 'string' },
374
+ },
375
+ required: ['kind', 'enabled', 'text'],
376
+ },
377
+ {
378
+ type: 'object',
379
+ additionalProperties: false,
380
+ properties: {
381
+ kind: { title: 'Kind', const: 'done' },
382
+ enabled: { title: 'Enabled', type: 'boolean' },
383
+ },
384
+ required: ['kind', 'enabled'],
385
+ },
386
+ {
387
+ type: 'object',
388
+ additionalProperties: false,
389
+ properties: {
390
+ kind: { title: 'Kind', const: 'function' },
391
+ enabled: { title: 'Enabled', type: 'boolean' },
392
+ app: { title: 'App', $ref: '#/$defs/app' },
393
+ function: { title: 'Function', type: 'string' },
394
+ },
395
+ required: ['kind', 'enabled', 'function'],
396
+ },
397
+ ],
398
+ },
399
+ },
400
+ enabled: { title: 'Enabled', type: 'boolean' },
401
+ paused_by: { title: 'Paused by', enum: ['types'] },
402
+ creator: {
403
+ title: 'Creator',
404
+ type: 'object',
405
+ additionalProperties: false,
406
+ properties: {
407
+ user: { title: 'User', $ref: '#/$defs/id' },
408
+ name: { title: 'Name', type: 'string' },
409
+ },
410
+ required: ['user', 'name'],
411
+ },
412
+ created: { title: 'Created', type: 'string', format: 'date-time' },
413
+ },
414
+ required: [
415
+ 'reflected',
416
+ 'trigger',
417
+ 'description',
418
+ 'condition',
419
+ 'actions',
420
+ 'enabled',
421
+ 'creator',
422
+ 'created',
423
+ ],
424
+ },
425
+ 'house-web-wizard': {
426
+ description: "One Web Wizard an agent made for this User: the `environment` it runs on, with the `name` that Environment had when the Web Wizard was made, and its `state`, `waiting` until its owner presses Run or Keep, `running`, `finished` with the script's `exit_code`, `failed`, `cancelled` when its page closed before the script ended, `lapsed` when nobody ran it in its time, or `kept` when its owner kept the script, without running it, as their Environment function named `function`. Its body is the script, whole, in one fenced code block. The terminal's output is never kept.",
427
+ properties: {
428
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
429
+ web_wizard: { title: 'Web Wizard', $ref: '#/$defs/id' },
430
+ environment: {
431
+ title: 'Environment',
432
+ type: 'object',
433
+ additionalProperties: false,
434
+ properties: {
435
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
436
+ name: { title: 'Name', type: 'string' },
437
+ },
438
+ required: ['environment', 'name'],
439
+ },
440
+ state: {
441
+ title: 'State',
442
+ enum: ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'],
443
+ },
444
+ exit_code: { title: 'Exit code', type: 'integer' },
445
+ function: { title: 'Function', type: 'string' },
446
+ },
447
+ required: ['reflected', 'web_wizard', 'environment', 'state'],
448
+ },
449
+ };
450
+ function modelText(model) {
451
+ return `${Object.entries(model)
452
+ .map(([name, declared]) => `${name}: ${JSON.stringify(declared)}`)
453
+ .join('\n')}\n`;
454
+ }
455
+ export const HOUSE_MODEL_TYPES = modelText(HOUSE_MODEL_DECLARATION);
456
+ export const HOUSE_TYPED_PATHS = [
457
+ { path: 'settings/panel.md', type: 'house-panel-preferences', named: true, body: false },
458
+ { path: `${APP_PREFERENCES_HOME}/*.md`, type: 'house-app-preferences', named: true, body: false },
459
+ {
460
+ path: 'rooms/*/agent-functions/*.md',
461
+ type: 'house-agent-function-document',
462
+ named: false,
463
+ body: true,
464
+ },
465
+ ];
package/dist/index.d.ts CHANGED
@@ -1,6 +1,14 @@
1
1
  export { createAgentsHouseAdapter, type AgentsHouseAdapterOptions } from './adapter.js';
2
+ export { foldedAuthorities } from './discovery.js';
2
3
  export { finishedUpload, houseUpload, type HouseUpload } from './upload.js';
3
- export { HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS } from './actions.js';
4
- export { HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, type InboxChannelKind, } from './room-types.js';
5
- export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
6
- //# sourceMappingURL=index.d.ts.map
4
+ export { houseAction, type HouseActDoor } from './actions.js';
5
+ export { HISTORY_PAGE } from './history.js';
6
+ export { answeredFailure } from './refusal.js';
7
+ export { houseParts, type ChangeMapping } from './write.js';
8
+ export { APP_REFERENCE_PATTERN } from './app-reference.js';
9
+ export { admittedPath, APP_PREFERENCES_HOME, AUTHORED_SEGMENT, AUTHORED_SEGMENT_MAX_CHARS, GENERATED_PROVENANCE, GENERATED_REVISIONS, LOCAL_COPY_MANIFEST, LOCAL_COPY_ROOT_NAMES, RESERVED_DERIVED, WHOLE_ESCAPED_NAMES, } from './authored-path.js';
10
+ export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, HOUSE_TYPED_PATHS, type HouseDocumentFields, type HouseModelType, } from './house-model.js';
11
+ export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
12
+ export { HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, type InboxChannelKind, } from './room-types.js';
13
+ export { HOUSE_RUNTIME_READS, houseDoorRoute, houseSiteRoute, type HouseRuntimeAct, type HouseRuntimeFrame, } from './transport.js';
14
+ export type { HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
@@ -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,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,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"}
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,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,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,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,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/index.js CHANGED
@@ -1,4 +1,13 @@
1
1
  export { createAgentsHouseAdapter } from './adapter.js';
2
+ export { foldedAuthorities } from './discovery.js';
2
3
  export { finishedUpload, houseUpload } from './upload.js';
3
- export { HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS } from './actions.js';
4
- export { HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, } from './room-types.js';
4
+ export { houseAction } from './actions.js';
5
+ export { HISTORY_PAGE } from './history.js';
6
+ export { answeredFailure } from './refusal.js';
7
+ export { houseParts } from './write.js';
8
+ export { APP_REFERENCE_PATTERN } from './app-reference.js';
9
+ export { admittedPath, APP_PREFERENCES_HOME, AUTHORED_SEGMENT, AUTHORED_SEGMENT_MAX_CHARS, GENERATED_PROVENANCE, GENERATED_REVISIONS, LOCAL_COPY_MANIFEST, LOCAL_COPY_ROOT_NAMES, RESERVED_DERIVED, WHOLE_ESCAPED_NAMES, } from './authored-path.js';
10
+ export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, HOUSE_TYPED_PATHS, } from './house-model.js';
11
+ export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
12
+ export { HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, } from './room-types.js';
13
+ export { HOUSE_RUNTIME_READS, houseDoorRoute, houseSiteRoute, } from './transport.js';
package/dist/map.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export declare function roomLocalPath(path: string, handle: string): string;
2
2
  export declare function nativePath(path: string, handle: string): string;
3
- //# sourceMappingURL=map.d.ts.map
package/dist/model.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { RoomModels } from '@agentshouse/mdruntime';
2
2
  import type { TrackedAuthority } from './discovery.js';
3
- import { type HouseScope, type HouseView } 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 viewModels(view: HouseView, tracked: TrackedAuthority): Promise<RoomModels | undefined>;
7
- export declare function streamedModels(schemas: ReadonlyMap<string, HouseStreamEntry>, tracked: TrackedAuthority, mode: HouseMode): Promise<RoomModels | undefined>;
8
- //# sourceMappingURL=model.d.ts.map
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>;
@@ -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,EAA0C,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AACpG,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAoClE,wBAAgB,UAAU,CACxB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EACzB,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAKjC;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAcjC;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAC9C,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAWjC"}
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,EAGnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE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