@agentshouse/mdruntime-adapter 0.1.0-cfded86738bb2 → 0.1.0-cfe552b74bdf7
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 +2 -2
- package/dist/actions.d.ts +3 -56
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +1 -287
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +158 -326
- package/dist/app-reference.d.ts +2 -0
- package/dist/app-reference.d.ts.map +1 -0
- package/dist/app-reference.js +2 -0
- package/dist/crockford.d.ts +4 -0
- package/dist/crockford.d.ts.map +1 -0
- package/dist/crockford.js +3 -0
- package/dist/discovery.d.ts +12 -12
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +44 -51
- package/dist/history.d.ts +12 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +91 -0
- package/dist/house-model.d.ts +892 -0
- package/dist/house-model.d.ts.map +1 -0
- package/dist/house-model.js +482 -0
- package/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/model.d.ts +5 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +10 -29
- package/dist/part.d.ts +11 -12
- package/dist/part.d.ts.map +1 -1
- package/dist/part.js +63 -55
- package/dist/read.d.ts +19 -57
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +84 -220
- package/dist/refusal.d.ts +0 -3
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +0 -5
- package/dist/room-stream.d.ts +19 -0
- package/dist/room-stream.d.ts.map +1 -0
- package/dist/room-stream.js +57 -0
- package/dist/room-types.d.ts +2 -1
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +62 -3
- package/dist/search.d.ts +5 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +47 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +75 -157
- package/dist/stream.d.ts +13 -14
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +168 -426
- package/dist/transport.d.ts +48 -36
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +55 -11
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +26 -15
- package/dist/write.d.ts +6 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +17 -19
- package/package.json +8 -4
- package/AGENTS.md +0 -317
- package/dist/gather.d.ts +0 -4
- package/dist/gather.d.ts.map +0 -1
- package/dist/gather.js +0 -35
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"house-model.d.ts","sourceRoot":"","sources":["../src/house-model.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;aAClC,KAAK;iBACH,IAAI;qBACF,WAAW,EAAE,sDAAsD;qBACnE,IAAI,EAAE,QAAQ;qBACd,OAAO,EAAE,kFAAkF;;iBAE7F,GAAG;qBACD,WAAW,EAAE,oDAAoD;qBACjE,IAAI,EAAE,QAAQ;qBACd,OAAO,EAAE,kFAAkF;;iBAE7F,QAAQ;qBACN,WAAW,EAAE,wEAAwE;qBACrF,IAAI,EAAE,QAAQ;qBACd,OAAO,EACL,oHAAoH;;iBAExH,EAAE;qBACA,WAAW,EACT,2JAA2J;qBAC7J,IAAI,EAAE,QAAQ;qBACd,MAAM,EAAE,MAAM;;iBAEhB,SAAS;qBACP,WAAW,EACT,4FAA4F;qBAC9F,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;qBACd,OAAO,EACL,4IAA4I;;iBAEhJ,YAAY;qBACV,WAAW,EACT,2IAA2I;qBAC7I,IAAI,EAAE,QAAQ;qBACd,oBAAoB;;iBAEtB,cAAc;qBACZ,IAAI,EAAE,OAAO;qBACb,KAAK;yBAAI,KAAK;6BAAK,IAAI,EAAE,QAAQ;;6BAAM,IAAI,EAAE,QAAQ;;6BAAM,IAAI,EAAE,SAAS;;;;iBAE5E,aAAa;qBACX,WAAW,EACT,8IAA8I;qBAChJ,IAAI,E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,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,482 @@
|
|
|
1
|
+
export const HOUSE_MODEL_DECLARATION = {
|
|
2
|
+
$defs: {
|
|
3
|
+
room: {
|
|
4
|
+
description: 'A Room, by its Room reference, under the key `room`.',
|
|
5
|
+
type: 'string',
|
|
6
|
+
pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
|
|
7
|
+
},
|
|
8
|
+
app: {
|
|
9
|
+
description: 'An App, by its App reference, under the key `app`.',
|
|
10
|
+
type: 'string',
|
|
11
|
+
pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
|
|
12
|
+
},
|
|
13
|
+
document: {
|
|
14
|
+
description: 'A document of a Room, by its file reference, under the key `document`.',
|
|
15
|
+
type: 'string',
|
|
16
|
+
pattern: '^af_([123456789abcdefghjkmnpqrstvwxyz][0123456789abcdefghjkmnpqrstvwxyz]*)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
|
|
17
|
+
},
|
|
18
|
+
id: {
|
|
19
|
+
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.',
|
|
20
|
+
type: 'string',
|
|
21
|
+
format: 'uuid',
|
|
22
|
+
},
|
|
23
|
+
namespace: {
|
|
24
|
+
description: 'The Namespace a grant entry covers, an App or a Room by its reference with the area of it.',
|
|
25
|
+
type: 'string',
|
|
26
|
+
maxLength: 512,
|
|
27
|
+
pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$',
|
|
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
|
+
},
|
|
51
|
+
'house-app-preferences': {
|
|
52
|
+
description: "An App's preferences. Its own vocabulary is in the body.",
|
|
53
|
+
properties: { app: { $ref: '#/$defs/app' } },
|
|
54
|
+
required: ['app'],
|
|
55
|
+
},
|
|
56
|
+
'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.",
|
|
58
|
+
properties: {
|
|
59
|
+
notification: { $ref: '#/$defs/id' },
|
|
60
|
+
kind: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
enum: [
|
|
63
|
+
'share-offer',
|
|
64
|
+
'join-request',
|
|
65
|
+
'join-request-approved',
|
|
66
|
+
'app-room-binding-incompatible',
|
|
67
|
+
'app-call',
|
|
68
|
+
'room-ownership-offer',
|
|
69
|
+
'managed-environment-retention-opened',
|
|
70
|
+
'managed-environment-placement-intervention',
|
|
71
|
+
'storage-full',
|
|
72
|
+
'sandbox-budget-spent',
|
|
73
|
+
'break-glass-owner-disclosure',
|
|
74
|
+
'routine-start-approval-request',
|
|
75
|
+
'export-ready',
|
|
76
|
+
'export-failed',
|
|
77
|
+
'site-disabled',
|
|
78
|
+
'site-binding-incompatible',
|
|
79
|
+
'site-images-full',
|
|
80
|
+
'custom',
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
created: { type: 'string', format: 'date-time' },
|
|
84
|
+
way_in: {
|
|
85
|
+
type: 'object',
|
|
86
|
+
additionalProperties: false,
|
|
87
|
+
properties: {
|
|
88
|
+
path: { type: 'string', pattern: '^\\/' },
|
|
89
|
+
room: { $ref: '#/$defs/room' },
|
|
90
|
+
app: { $ref: '#/$defs/app' },
|
|
91
|
+
environment: { $ref: '#/$defs/id' },
|
|
92
|
+
trigger: { $ref: '#/$defs/id' },
|
|
93
|
+
site: { $ref: '#/$defs/id' },
|
|
94
|
+
},
|
|
95
|
+
minProperties: 1,
|
|
96
|
+
},
|
|
97
|
+
subject: { type: 'string' },
|
|
98
|
+
share: { $ref: '#/$defs/id' },
|
|
99
|
+
issuer: {
|
|
100
|
+
type: 'object',
|
|
101
|
+
additionalProperties: false,
|
|
102
|
+
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
103
|
+
required: ['name', 'email'],
|
|
104
|
+
},
|
|
105
|
+
rooms: {
|
|
106
|
+
type: 'array',
|
|
107
|
+
items: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
additionalProperties: false,
|
|
110
|
+
properties: { name: { type: 'string' } },
|
|
111
|
+
required: ['name'],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
apps: {
|
|
115
|
+
maxItems: 20,
|
|
116
|
+
type: 'array',
|
|
117
|
+
items: {
|
|
118
|
+
type: 'object',
|
|
119
|
+
additionalProperties: false,
|
|
120
|
+
properties: {
|
|
121
|
+
name: { type: 'string', minLength: 1, maxLength: 200 },
|
|
122
|
+
reaches: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 512 } },
|
|
123
|
+
},
|
|
124
|
+
required: ['name', 'reaches'],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
expires_at: { type: 'string', format: 'date-time' },
|
|
128
|
+
join_request: { $ref: '#/$defs/id' },
|
|
129
|
+
user: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
additionalProperties: false,
|
|
132
|
+
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
133
|
+
required: ['name', 'email'],
|
|
134
|
+
},
|
|
135
|
+
room: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
additionalProperties: false,
|
|
138
|
+
properties: { room: { $ref: '#/$defs/room' }, name: { type: 'string' } },
|
|
139
|
+
minProperties: 1,
|
|
140
|
+
},
|
|
141
|
+
app: {
|
|
142
|
+
type: 'object',
|
|
143
|
+
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'],
|
|
156
|
+
},
|
|
157
|
+
ownership_offer: { $ref: '#/$defs/id' },
|
|
158
|
+
offerer: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
additionalProperties: false,
|
|
161
|
+
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
162
|
+
required: ['name', 'email'],
|
|
163
|
+
},
|
|
164
|
+
environment: {
|
|
165
|
+
type: 'object',
|
|
166
|
+
additionalProperties: false,
|
|
167
|
+
properties: {
|
|
168
|
+
environment: { $ref: '#/$defs/id' },
|
|
169
|
+
name: { type: 'string' },
|
|
170
|
+
kind: { enum: ['vps', 'sandbox'] },
|
|
171
|
+
},
|
|
172
|
+
required: ['environment', 'name'],
|
|
173
|
+
},
|
|
174
|
+
reason: { type: 'string' },
|
|
175
|
+
deadline: { type: 'string', format: 'date-time' },
|
|
176
|
+
operation_kind: { type: 'string' },
|
|
177
|
+
free: {
|
|
178
|
+
type: 'object',
|
|
179
|
+
additionalProperties: false,
|
|
180
|
+
properties: {
|
|
181
|
+
held: { type: 'string', pattern: '^\\d+$' },
|
|
182
|
+
limit: { type: 'string', pattern: '^[1-9]\\d*$' },
|
|
183
|
+
measure: { type: 'string', enum: ['content', 'retained'] },
|
|
184
|
+
},
|
|
185
|
+
required: ['held', 'limit', 'measure'],
|
|
186
|
+
},
|
|
187
|
+
budget: { type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
188
|
+
resets_at: { type: 'string', format: 'date-time' },
|
|
189
|
+
grant: { $ref: '#/$defs/id' },
|
|
190
|
+
category: { type: 'string' },
|
|
191
|
+
access_started_at: { type: 'string', format: 'date-time' },
|
|
192
|
+
access_ended_at: { type: 'string', format: 'date-time' },
|
|
193
|
+
systems: { type: 'array', items: { type: 'string' } },
|
|
194
|
+
case_reference: { type: 'string' },
|
|
195
|
+
routine_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
|
+
routine: {
|
|
210
|
+
type: 'object',
|
|
211
|
+
additionalProperties: false,
|
|
212
|
+
properties: {
|
|
213
|
+
name: { type: 'string' },
|
|
214
|
+
version: { type: 'integer', minimum: 1 },
|
|
215
|
+
},
|
|
216
|
+
required: ['name'],
|
|
217
|
+
},
|
|
218
|
+
export: { $ref: '#/$defs/id' },
|
|
219
|
+
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
|
+
title: { type: 'string' },
|
|
230
|
+
body: { type: 'string' },
|
|
231
|
+
authorship: {
|
|
232
|
+
type: 'object',
|
|
233
|
+
additionalProperties: false,
|
|
234
|
+
properties: {
|
|
235
|
+
kind: { type: 'string', const: 'trigger-action' },
|
|
236
|
+
trigger: { $ref: '#/$defs/id' },
|
|
237
|
+
position: { type: 'integer', minimum: 0 },
|
|
238
|
+
},
|
|
239
|
+
required: ['kind', 'trigger', 'position'],
|
|
240
|
+
},
|
|
241
|
+
path: { type: 'string', maxLength: 4096, pattern: '^\\/.*' },
|
|
242
|
+
},
|
|
243
|
+
required: ['notification', 'kind', 'created', 'way_in', 'subject'],
|
|
244
|
+
},
|
|
245
|
+
'house-panel-preferences': {
|
|
246
|
+
description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
|
|
247
|
+
properties: {},
|
|
248
|
+
},
|
|
249
|
+
'house-routine': {
|
|
250
|
+
description: "One Routine that serves this Room, which House alone writes from its owner's document in their Private Room: the `routine` 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 Routine's instruction is never written here.",
|
|
251
|
+
properties: {
|
|
252
|
+
reflected: { type: 'string', format: 'date-time' },
|
|
253
|
+
routine: { $ref: '#/$defs/id' },
|
|
254
|
+
description: { type: 'string' },
|
|
255
|
+
input: { type: 'string' },
|
|
256
|
+
agent: {
|
|
257
|
+
type: 'object',
|
|
258
|
+
additionalProperties: false,
|
|
259
|
+
properties: { agent: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
260
|
+
required: ['agent', 'name'],
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
required: ['reflected', 'routine', 'description', 'input', 'agent'],
|
|
264
|
+
},
|
|
265
|
+
'house-trigger': {
|
|
266
|
+
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`; a `routine` action sends its `payload` to the Routine whose card under this Room's `house/routines/` its `card` names, absent while this Room holds no card of that Routine; a `message` action puts its `text` into the active conversation that Routine started for what the Event is about, or starts that Routine when none is active; a `done` action marks Done every active conversation a Routine 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 Routine's card, the App's latest release and the owner's functions.",
|
|
267
|
+
properties: {
|
|
268
|
+
reflected: { type: 'string', format: 'date-time' },
|
|
269
|
+
trigger: { $ref: '#/$defs/id' },
|
|
270
|
+
description: { type: 'string' },
|
|
271
|
+
condition: {
|
|
272
|
+
anyOf: [
|
|
273
|
+
{
|
|
274
|
+
type: 'object',
|
|
275
|
+
additionalProperties: false,
|
|
276
|
+
properties: {
|
|
277
|
+
on: { const: 'documents' },
|
|
278
|
+
scope: { $ref: '#/$defs/trigger_scope' },
|
|
279
|
+
mode: { const: 'starts_matching' },
|
|
280
|
+
new_documents: { type: 'boolean' },
|
|
281
|
+
match: { $ref: '#/$defs/trigger_test' },
|
|
282
|
+
by: { $ref: '#/$defs/trigger_test' },
|
|
283
|
+
moved_between_rooms: { type: 'boolean' },
|
|
284
|
+
},
|
|
285
|
+
required: ['on', 'scope', 'mode', 'new_documents', 'match'],
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
type: 'object',
|
|
289
|
+
additionalProperties: false,
|
|
290
|
+
properties: {
|
|
291
|
+
on: { const: 'documents' },
|
|
292
|
+
scope: { $ref: '#/$defs/trigger_scope' },
|
|
293
|
+
mode: { const: 'field_changes' },
|
|
294
|
+
field: { type: 'string' },
|
|
295
|
+
from: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'new' }] },
|
|
296
|
+
to: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'deleted' }] },
|
|
297
|
+
match: { $ref: '#/$defs/trigger_test' },
|
|
298
|
+
by: { $ref: '#/$defs/trigger_test' },
|
|
299
|
+
moved_between_rooms: { type: 'boolean' },
|
|
300
|
+
},
|
|
301
|
+
required: ['on', 'scope', 'mode', 'field'],
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
type: 'object',
|
|
305
|
+
additionalProperties: false,
|
|
306
|
+
properties: {
|
|
307
|
+
on: { const: 'items' },
|
|
308
|
+
source: { type: 'string' },
|
|
309
|
+
address: { type: 'string' },
|
|
310
|
+
match: { $ref: '#/$defs/trigger_test' },
|
|
311
|
+
},
|
|
312
|
+
required: ['on'],
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
type: 'object',
|
|
316
|
+
additionalProperties: false,
|
|
317
|
+
properties: {
|
|
318
|
+
on: { const: 'notifications' },
|
|
319
|
+
match: { $ref: '#/$defs/trigger_test' },
|
|
320
|
+
},
|
|
321
|
+
required: ['on'],
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
type: 'object',
|
|
325
|
+
additionalProperties: false,
|
|
326
|
+
properties: {
|
|
327
|
+
on: { const: 'messages' },
|
|
328
|
+
match: { $ref: '#/$defs/trigger_test' },
|
|
329
|
+
},
|
|
330
|
+
required: ['on'],
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
type: 'object',
|
|
334
|
+
additionalProperties: false,
|
|
335
|
+
properties: {
|
|
336
|
+
on: { const: 'clock' },
|
|
337
|
+
cron: { type: 'string' },
|
|
338
|
+
time_zone: { type: 'string' },
|
|
339
|
+
},
|
|
340
|
+
required: ['on', 'cron', 'time_zone'],
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
type: 'object',
|
|
344
|
+
additionalProperties: false,
|
|
345
|
+
properties: {
|
|
346
|
+
on: { const: 'clock' },
|
|
347
|
+
scope: {
|
|
348
|
+
type: 'object',
|
|
349
|
+
additionalProperties: false,
|
|
350
|
+
properties: { type: { type: 'string' } },
|
|
351
|
+
required: ['type'],
|
|
352
|
+
},
|
|
353
|
+
date: { type: 'string' },
|
|
354
|
+
days: { type: 'integer' },
|
|
355
|
+
at: { type: 'string' },
|
|
356
|
+
time_zone: { type: 'string' },
|
|
357
|
+
match: { $ref: '#/$defs/trigger_test' },
|
|
358
|
+
},
|
|
359
|
+
required: ['on', 'scope', 'date', 'days', 'at', 'time_zone'],
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
},
|
|
363
|
+
actions: {
|
|
364
|
+
type: 'array',
|
|
365
|
+
items: {
|
|
366
|
+
anyOf: [
|
|
367
|
+
{
|
|
368
|
+
type: 'object',
|
|
369
|
+
additionalProperties: false,
|
|
370
|
+
properties: {
|
|
371
|
+
kind: { const: 'notify' },
|
|
372
|
+
enabled: { type: 'boolean' },
|
|
373
|
+
title: { type: 'string' },
|
|
374
|
+
text: { type: 'string' },
|
|
375
|
+
to: {
|
|
376
|
+
type: 'object',
|
|
377
|
+
additionalProperties: false,
|
|
378
|
+
properties: {
|
|
379
|
+
users: {
|
|
380
|
+
type: 'array',
|
|
381
|
+
items: {
|
|
382
|
+
type: 'object',
|
|
383
|
+
additionalProperties: false,
|
|
384
|
+
properties: { user: { $ref: '#/$defs/id' } },
|
|
385
|
+
required: ['user'],
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
fields: { type: 'array', items: { type: 'string' } },
|
|
389
|
+
roles: { type: 'array', items: { type: 'string' } },
|
|
390
|
+
},
|
|
391
|
+
required: ['users', 'fields', 'roles'],
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
required: ['kind', 'enabled', 'title', 'text', 'to'],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
type: 'object',
|
|
398
|
+
additionalProperties: false,
|
|
399
|
+
properties: {
|
|
400
|
+
kind: { const: 'routine' },
|
|
401
|
+
enabled: { type: 'boolean' },
|
|
402
|
+
card: { type: 'string', minLength: 1 },
|
|
403
|
+
payload: { type: 'string' },
|
|
404
|
+
},
|
|
405
|
+
required: ['kind', 'enabled', 'payload'],
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
type: 'object',
|
|
409
|
+
additionalProperties: false,
|
|
410
|
+
properties: {
|
|
411
|
+
kind: { const: 'message' },
|
|
412
|
+
enabled: { type: 'boolean' },
|
|
413
|
+
card: { type: 'string', minLength: 1 },
|
|
414
|
+
text: { type: 'string' },
|
|
415
|
+
},
|
|
416
|
+
required: ['kind', 'enabled', 'text'],
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
type: 'object',
|
|
420
|
+
additionalProperties: false,
|
|
421
|
+
properties: { kind: { const: 'done' }, enabled: { type: 'boolean' } },
|
|
422
|
+
required: ['kind', 'enabled'],
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
type: 'object',
|
|
426
|
+
additionalProperties: false,
|
|
427
|
+
properties: {
|
|
428
|
+
kind: { const: 'function' },
|
|
429
|
+
enabled: { type: 'boolean' },
|
|
430
|
+
app: { $ref: '#/$defs/app' },
|
|
431
|
+
function: { type: 'string' },
|
|
432
|
+
},
|
|
433
|
+
required: ['kind', 'enabled', 'function'],
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
enabled: { type: 'boolean' },
|
|
439
|
+
paused_by: { enum: ['types'] },
|
|
440
|
+
creator: {
|
|
441
|
+
type: 'object',
|
|
442
|
+
additionalProperties: false,
|
|
443
|
+
properties: { user: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
444
|
+
required: ['user', 'name'],
|
|
445
|
+
},
|
|
446
|
+
created: { type: 'string', format: 'date-time' },
|
|
447
|
+
},
|
|
448
|
+
required: [
|
|
449
|
+
'reflected',
|
|
450
|
+
'trigger',
|
|
451
|
+
'description',
|
|
452
|
+
'condition',
|
|
453
|
+
'actions',
|
|
454
|
+
'enabled',
|
|
455
|
+
'creator',
|
|
456
|
+
'created',
|
|
457
|
+
],
|
|
458
|
+
},
|
|
459
|
+
'house-web-wizard': {
|
|
460
|
+
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.",
|
|
461
|
+
properties: {
|
|
462
|
+
reflected: { type: 'string', format: 'date-time' },
|
|
463
|
+
web_wizard: { $ref: '#/$defs/id' },
|
|
464
|
+
environment: {
|
|
465
|
+
type: 'object',
|
|
466
|
+
additionalProperties: false,
|
|
467
|
+
properties: { environment: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
468
|
+
required: ['environment', 'name'],
|
|
469
|
+
},
|
|
470
|
+
state: { enum: ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'] },
|
|
471
|
+
exit_code: { type: 'integer' },
|
|
472
|
+
function: { type: 'string' },
|
|
473
|
+
},
|
|
474
|
+
required: ['reflected', 'web_wizard', 'environment', 'state'],
|
|
475
|
+
},
|
|
476
|
+
};
|
|
477
|
+
function modelText(model) {
|
|
478
|
+
return `${Object.entries(model)
|
|
479
|
+
.map(([name, declared]) => `${name}: ${JSON.stringify(declared)}`)
|
|
480
|
+
.join('\n')}\n`;
|
|
481
|
+
}
|
|
482
|
+
export const HOUSE_MODEL_TYPES = modelText(HOUSE_MODEL_DECLARATION);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter, type AgentsHouseAdapterOptions } from './adapter.js';
|
|
2
2
|
export { finishedUpload, houseUpload, type HouseUpload } from './upload.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
3
|
+
export { houseAction, type HouseActDoor } from './actions.js';
|
|
4
|
+
export { HISTORY_PAGE } from './history.js';
|
|
5
|
+
export { houseParts, type ChangeMapping } from './write.js';
|
|
6
|
+
export { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
7
|
+
export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, type HouseDocumentFields, type HouseModelType, } from './house-model.js';
|
|
8
|
+
export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
|
|
9
|
+
export { HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, type InboxChannelKind, } from './room-types.js';
|
|
10
|
+
export { HOUSE_RUNTIME_READS, houseDoorRoute, houseSiteRoute, type HouseRuntimeAct, type HouseRuntimeFrame, } from './transport.js';
|
|
11
|
+
export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamed, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
|
|
6
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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,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,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,eAAe,EACf,kBAAkB,EAClB,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"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter } from './adapter.js';
|
|
2
2
|
export { finishedUpload, houseUpload } from './upload.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { houseAction } from './actions.js';
|
|
4
|
+
export { HISTORY_PAGE } from './history.js';
|
|
5
|
+
export { houseParts } from './write.js';
|
|
6
|
+
export { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
7
|
+
export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, } from './house-model.js';
|
|
8
|
+
export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
|
|
9
|
+
export { HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, } from './room-types.js';
|
|
10
|
+
export { HOUSE_RUNTIME_READS, houseDoorRoute, houseSiteRoute, } from './transport.js';
|
package/dist/model.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { RoomModels } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
|
-
import { type
|
|
3
|
+
import { type HouseRoomHead, type HouseScope } from './read.js';
|
|
4
4
|
import type { HouseMode, HouseStreamEntry } from './transport.js';
|
|
5
5
|
export declare function partModels(scope: HouseScope, tracked: TrackedAuthority, seen: ReadonlySet<string>, final: boolean): Promise<RoomModels | undefined>;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function manifestedModels(room: HouseRoomHead, tracked: TrackedAuthority): Promise<{
|
|
7
|
+
readonly models: RoomModels | undefined;
|
|
8
|
+
readonly seen: string[];
|
|
9
|
+
}>;
|
|
7
10
|
export declare function streamedModels(schemas: ReadonlyMap<string, HouseStreamEntry>, tracked: TrackedAuthority, mode: HouseMode): Promise<RoomModels | undefined>;
|
|
8
11
|
//# sourceMappingURL=model.d.ts.map
|
package/dist/model.d.ts.map
CHANGED
|
@@ -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,
|
|
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,UAAU,GAAG,SAAS,CAAC,CAKjC;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAM/E;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"}
|
package/dist/model.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sha256Hex } from './digest.js';
|
|
2
|
-
import { schemaOf, schemaPath } from './read.js';
|
|
2
|
+
import { modelScope, schemaOf, schemaPath, } from './read.js';
|
|
3
3
|
const MODEL_ABSENT = { kind: 'model-unavailable', reason: 'not-readable' };
|
|
4
4
|
const ABSENT_SCHEMA = { schema: null, version: null, revision: null };
|
|
5
5
|
async function heldModel(read, identity) {
|
|
@@ -12,19 +12,10 @@ async function heldModel(read, identity) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
async function modelsOf(tracked, read) {
|
|
15
|
-
const models = {};
|
|
16
15
|
const collection = read(tracked.schema);
|
|
17
|
-
if (collection
|
|
18
|
-
|
|
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;
|
|
16
|
+
if (collection === undefined)
|
|
17
|
+
return undefined;
|
|
18
|
+
return { collection: await heldModel(collection, schemaPath(tracked.handle, tracked.schema)) };
|
|
28
19
|
}
|
|
29
20
|
export function partModels(scope, tracked, seen, final) {
|
|
30
21
|
return modelsOf(tracked, (schema) => {
|
|
@@ -33,22 +24,12 @@ export function partModels(scope, tracked, seen, final) {
|
|
|
33
24
|
return final && !seen.has(schema) ? ABSENT_SCHEMA : undefined;
|
|
34
25
|
});
|
|
35
26
|
}
|
|
36
|
-
export function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
});
|
|
27
|
+
export async function manifestedModels(room, tracked) {
|
|
28
|
+
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
|
+
};
|
|
52
33
|
}
|
|
53
34
|
export function streamedModels(schemas, tracked, mode) {
|
|
54
35
|
return modelsOf(tracked, (schema) => {
|