@agentshouse/mdruntime-adapter 0.1.0-c330745735a75 → 0.1.0-c341663d60099
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/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +8 -7
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +113 -89
- package/dist/authored-path.d.ts +0 -1
- package/dist/authored-path.d.ts.map +1 -1
- package/dist/authored-path.js +2 -3
- package/dist/chunks.d.ts +2 -3
- package/dist/chunks.d.ts.map +1 -1
- package/dist/chunks.js +71 -37
- package/dist/discovery.d.ts +18 -5
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +132 -6
- package/dist/history.d.ts +1 -6
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +21 -28
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -6
- package/dist/model.d.ts +5 -5
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +17 -27
- package/dist/read.d.ts +5 -19
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +34 -35
- package/dist/refusal.d.ts +5 -1
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +23 -6
- package/dist/room-query.d.ts +3 -0
- package/dist/room-query.d.ts.map +1 -0
- package/dist/room-query.js +22 -0
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +4 -4
- package/dist/session-content/index.d.ts +1 -1
- package/dist/session-content/parts.d.ts +4 -3
- package/dist/session-content/turn.d.ts +3 -3
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +17 -17
- package/dist/space-schema.d.ts.map +1 -1
- package/dist/space-schema.js +1 -8
- package/dist/stream.d.ts +2 -3
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +79 -72
- package/dist/transport.d.ts +30 -11
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +5 -1
- package/dist/uncertain.d.ts +5 -0
- package/dist/uncertain.d.ts.map +1 -0
- package/dist/uncertain.js +11 -0
- package/dist/upload.d.ts +3 -1
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +8 -6
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +19 -19
- package/package.json +3 -2
- package/dist/app-reference.d.ts +0 -1
- package/dist/app-reference.d.ts.map +0 -1
- package/dist/app-reference.js +0 -2
- package/dist/crockford.d.ts +0 -3
- package/dist/crockford.d.ts.map +0 -1
- package/dist/crockford.js +0 -3
- package/dist/house-model.d.ts +0 -830
- package/dist/house-model.d.ts.map +0 -1
- package/dist/house-model.js +0 -465
- package/dist/room-types.d.ts +0 -4
- package/dist/room-types.d.ts.map +0 -1
- package/dist/room-types.js +0 -135
|
@@ -1 +0,0 @@
|
|
|
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;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,KAAK;qBACH,WAAW,EAAE,yDAAyD;qBACtE,IAAI,EAAE,QAAQ;qBACd,OAAO,EAAE,mFAAmF;;iBAE9F,EAAE;qBACA,WAAW,EACT,2JAA2J;qBAC7J,IAAI,EAAE,QAAQ;qBACd,MAAM,EAAE,MAAM;;;aAGlB,uBAAuB;iBACrB,WAAW,EAAE,0DAA0D;iBACvE,UAAU;qBAAI,GAAG;yBAAI,KAAK,EAAE,KAAK;yBAAE,IAAI,EAAE,aAAa;;;iBACtD,QAAQ,YAAG,KAAK;;aAElB,oBAAoB;iBAClB,WAAW,EACT,0yBAA0yB;iBAC5yB,UAAU;qBACR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-1,465 +0,0 @@
|
|
|
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/room-types.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const INBOX_CHANNEL_KINDS: readonly ['telegram-bot', 'telegram-business', 'whatsapp', 'messenger', 'instagram', 'viber', 'tiktok'];
|
|
2
|
-
export type InboxChannelKind = (typeof INBOX_CHANNEL_KINDS)[number];
|
|
3
|
-
export declare const HOUSE_NAMEABLE_ROOM_TYPES: string[];
|
|
4
|
-
export declare const HOUSE_ROOM_TYPES: string;
|
package/dist/room-types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-types.d.ts","sourceRoot":"","sources":["../src/room-types.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,YAC9B,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,CACA,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,yBAAyB,UAAiC,CAAC;AA8BxE,eAAO,MAAM,gBAAgB,QAmGjB,CAAC"}
|
package/dist/room-types.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { CHAT_MESSAGE_TYPE, CHAT_TYPE } from '@agentshouse/mdruntime';
|
|
2
|
-
import { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
3
|
-
import { HOUSE_MODEL_TYPES } from './house-model.js';
|
|
4
|
-
export const INBOX_CHANNEL_KINDS = [
|
|
5
|
-
'telegram-bot',
|
|
6
|
-
'telegram-business',
|
|
7
|
-
'whatsapp',
|
|
8
|
-
'messenger',
|
|
9
|
-
'instagram',
|
|
10
|
-
'viber',
|
|
11
|
-
'tiktok',
|
|
12
|
-
];
|
|
13
|
-
export const HOUSE_NAMEABLE_ROOM_TYPES = [CHAT_TYPE, CHAT_MESSAGE_TYPE];
|
|
14
|
-
const WAYFINDING_MAP_TYPE = 'wayfinding-map';
|
|
15
|
-
const WAYFINDING_TICKET_TYPE = 'wayfinding-ticket';
|
|
16
|
-
const WAYFINDING_MAP_SECTIONS = [
|
|
17
|
-
'Destination',
|
|
18
|
-
'Notes',
|
|
19
|
-
'Decisions so far',
|
|
20
|
-
'Not yet specified',
|
|
21
|
-
'Out of scope',
|
|
22
|
-
];
|
|
23
|
-
function identity(title) {
|
|
24
|
-
return `{ type: string, pattern: '^\\S+$', title: ${title} }`;
|
|
25
|
-
}
|
|
26
|
-
const AGENT = [
|
|
27
|
-
' agent: { type: string, format: uuid, title: Agent }',
|
|
28
|
-
' name: { type: string, title: Name }',
|
|
29
|
-
];
|
|
30
|
-
const ASSIGNEE = [
|
|
31
|
-
' type: object',
|
|
32
|
-
' properties:',
|
|
33
|
-
' user: { type: string, format: uuid, title: User }',
|
|
34
|
-
...AGENT,
|
|
35
|
-
];
|
|
36
|
-
export const HOUSE_ROOM_TYPES = [
|
|
37
|
-
`${CHAT_TYPE}:`,
|
|
38
|
-
' properties:',
|
|
39
|
-
' inbox: { type: string, format: uuid, title: Inbox }',
|
|
40
|
-
` channel: { enum: [${INBOX_CHANNEL_KINDS.join(', ')}], title: Channel }`,
|
|
41
|
-
` chat: ${identity('Chat')}`,
|
|
42
|
-
' customer:',
|
|
43
|
-
' title: Customer',
|
|
44
|
-
' type: object',
|
|
45
|
-
' properties:',
|
|
46
|
-
' name: { type: string, title: Name }',
|
|
47
|
-
` username: ${identity('Username')}`,
|
|
48
|
-
` phone: ${identity('Phone')}`,
|
|
49
|
-
' assignee:',
|
|
50
|
-
' title: Assignee',
|
|
51
|
-
...ASSIGNEE,
|
|
52
|
-
' return_to:',
|
|
53
|
-
' title: Return to',
|
|
54
|
-
' type: object',
|
|
55
|
-
' properties:',
|
|
56
|
-
...AGENT,
|
|
57
|
-
' required: [chat, customer]',
|
|
58
|
-
`${CHAT_MESSAGE_TYPE}:`,
|
|
59
|
-
' properties:',
|
|
60
|
-
' direction: { enum: [in, out], title: Direction }',
|
|
61
|
-
' sender:',
|
|
62
|
-
' title: Sender',
|
|
63
|
-
...ASSIGNEE,
|
|
64
|
-
` username: ${identity('Username')}`,
|
|
65
|
-
' sent_at: { type: string, format: date-time, title: Sent at }',
|
|
66
|
-
` channel_message: ${identity('Channel message')}`,
|
|
67
|
-
' labelled: { const: true, title: Labelled }',
|
|
68
|
-
' reactions:',
|
|
69
|
-
' title: Reactions',
|
|
70
|
-
' type: array',
|
|
71
|
-
' items:',
|
|
72
|
-
' type: object',
|
|
73
|
-
' properties:',
|
|
74
|
-
' reaction: { type: string, minLength: 1, title: Reaction }',
|
|
75
|
-
' sender:',
|
|
76
|
-
' title: Sender',
|
|
77
|
-
' type: object',
|
|
78
|
-
' properties:',
|
|
79
|
-
` id: ${identity('ID')}`,
|
|
80
|
-
' name: { type: string, title: Name }',
|
|
81
|
-
` username: ${identity('Username')}`,
|
|
82
|
-
' count: { type: integer, minimum: 1, title: Count }',
|
|
83
|
-
' required: [reaction]',
|
|
84
|
-
` post: ${identity('Post')}`,
|
|
85
|
-
' assignee:',
|
|
86
|
-
' title: Assignee',
|
|
87
|
-
...ASSIGNEE,
|
|
88
|
-
' sent_outside: { const: true, title: Sent outside }',
|
|
89
|
-
' template:',
|
|
90
|
-
' title: Template',
|
|
91
|
-
' type: object',
|
|
92
|
-
' properties:',
|
|
93
|
-
' name: { type: string, minLength: 1, title: Name }',
|
|
94
|
-
' language: { type: string, minLength: 1, title: Language }',
|
|
95
|
-
' required: [name, language]',
|
|
96
|
-
' values:',
|
|
97
|
-
' title: Values',
|
|
98
|
-
' type: object',
|
|
99
|
-
' additionalProperties: { type: string }',
|
|
100
|
-
' withheld: { const: true, title: Withheld }',
|
|
101
|
-
' required: [direction]',
|
|
102
|
-
' if: { properties: { direction: { const: in } } }',
|
|
103
|
-
' then: { required: [sent_at] }',
|
|
104
|
-
`${WAYFINDING_MAP_TYPE}:`,
|
|
105
|
-
' properties:',
|
|
106
|
-
' title: { type: string, title: Title }',
|
|
107
|
-
' required: [title]',
|
|
108
|
-
' sections:',
|
|
109
|
-
...WAYFINDING_MAP_SECTIONS.map((name) => ` ${name}: { kind: text, required: true }`),
|
|
110
|
-
`${WAYFINDING_TICKET_TYPE}:`,
|
|
111
|
-
' properties:',
|
|
112
|
-
' title: { type: string, title: Title }',
|
|
113
|
-
' kind: { enum: [research, prototype, grilling, task], title: Kind }',
|
|
114
|
-
' status: { enum: [open, in-progress, done, out-of-scope], title: Status }',
|
|
115
|
-
` map: { type: string, reference: ${WAYFINDING_MAP_TYPE}, title: Map }`,
|
|
116
|
-
` blocked_by: { type: array, items: { type: string, reference: ${WAYFINDING_TICKET_TYPE} }, title: Blocked by }`,
|
|
117
|
-
' assignee:',
|
|
118
|
-
' title: Assignee',
|
|
119
|
-
...ASSIGNEE,
|
|
120
|
-
' conversation: { type: string, format: uuid, title: Conversation }',
|
|
121
|
-
` app: { type: string, pattern: '${APP_REFERENCE_PATTERN.source}', title: App }`,
|
|
122
|
-
' required: [title, kind, status, map, blocked_by]',
|
|
123
|
-
' sections:',
|
|
124
|
-
' Question: { kind: text }',
|
|
125
|
-
' Answer: { kind: text }',
|
|
126
|
-
' allOf:',
|
|
127
|
-
' - if: { properties: { status: { enum: [in-progress, done, out-of-scope] } }, required: [status] }',
|
|
128
|
-
' then: { required: [assignee] }',
|
|
129
|
-
' else: { properties: { assignee: false } }',
|
|
130
|
-
' - if: { properties: { assignee: { required: [agent] } }, required: [assignee] }',
|
|
131
|
-
' else: { properties: { conversation: false } }',
|
|
132
|
-
' - if: { properties: { status: { enum: [done, out-of-scope] } }, required: [status] }',
|
|
133
|
-
' then: { sections: { Answer: { kind: text, required: true } } }',
|
|
134
|
-
HOUSE_MODEL_TYPES,
|
|
135
|
-
].join('\n');
|