buckyos 0.7.193 → 0.7.197

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 (78) hide show
  1. package/cli/README.md +20 -0
  2. package/cli/core/app.ts +1 -0
  3. package/cli/core/argv.ts +4 -0
  4. package/cli/dist/cli.mjs +218 -392
  5. package/cli/dist/cli.mjs.map +1 -1
  6. package/cli/modules/aiws.ts +11 -3
  7. package/cli/modules/obj.ts +70 -3
  8. package/cli/runtime/host.ts +2 -0
  9. package/cli/version.ts +1 -1
  10. package/dist/{aiws_bind-ec6fe2d5.mjs → aiws_bind-a96cb506.mjs} +135 -31
  11. package/dist/aiws_bind-a96cb506.mjs.map +1 -0
  12. package/dist/aiws_bind-fb4caf43.js +2 -0
  13. package/dist/aiws_bind-fb4caf43.js.map +1 -0
  14. package/dist/aiws_ext.cjs +1 -1
  15. package/dist/aiws_ext.mjs +1 -1
  16. package/dist/aiws_rrule.d.ts +3 -2
  17. package/dist/aiws_rrule.d.ts.map +1 -1
  18. package/dist/aiws_schedule.d.ts +14 -2
  19. package/dist/aiws_schedule.d.ts.map +1 -1
  20. package/dist/{aiws_write-1f179e1c.js → aiws_write-189e4c0e.js} +2 -2
  21. package/dist/aiws_write-189e4c0e.js.map +1 -0
  22. package/dist/{aiws_write-07562abc.mjs → aiws_write-7078045b.mjs} +2 -2
  23. package/dist/aiws_write-7078045b.mjs.map +1 -0
  24. package/dist/browser.cjs +1 -1
  25. package/dist/browser.mjs +4 -4
  26. package/dist/{content_objid-7605d166.mjs → content_objid-20b82f52.mjs} +2 -2
  27. package/dist/{content_objid-7605d166.mjs.map → content_objid-20b82f52.mjs.map} +1 -1
  28. package/dist/{content_objid-17daaa69.js → content_objid-d1d089a6.js} +2 -2
  29. package/dist/{content_objid-17daaa69.js.map → content_objid-d1d089a6.js.map} +1 -1
  30. package/dist/hybrid_sso.d.ts +37 -2
  31. package/dist/hybrid_sso.d.ts.map +1 -1
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.mjs +4 -4
  34. package/dist/node.cjs +1 -1
  35. package/dist/node.mjs +3 -3
  36. package/dist/owner-extensions/object_extensions.toml +160 -0
  37. package/dist/owner-extensions/profiles/bindings.json +165 -0
  38. package/dist/owner-extensions/profiles/calendar.json +489 -0
  39. package/dist/owner-extensions/profiles/contacts.json +89 -0
  40. package/dist/owner-extensions/profiles/person.json +193 -0
  41. package/dist/owner-extensions/profiles/sharing.json +65 -0
  42. package/dist/owner-extensions/profiles/todo.json +493 -0
  43. package/dist/owner-extensions/scripts/bindings.mjs +9 -0
  44. package/dist/owner-extensions/scripts/calendar.mjs +3 -0
  45. package/dist/owner-extensions/scripts/contacts.mjs +9 -0
  46. package/dist/owner-extensions/scripts/free_busy.mjs +666 -0
  47. package/dist/owner-extensions/scripts/person.mjs +11 -0
  48. package/dist/owner-extensions/scripts/schedule.mjs +2618 -0
  49. package/dist/owner-extensions/scripts/sharing.mjs +8 -0
  50. package/dist/owner-extensions/scripts/todo.mjs +3 -0
  51. package/dist/owner_availability.d.ts +15 -0
  52. package/dist/owner_availability.d.ts.map +1 -0
  53. package/dist/owner_schedule.d.ts +30 -0
  54. package/dist/owner_schedule.d.ts.map +1 -0
  55. package/dist/site_manager-716a2cf5.js +2 -0
  56. package/dist/site_manager-716a2cf5.js.map +1 -0
  57. package/dist/{site_manager-8adb478e.mjs → site_manager-91b4d899.mjs} +29 -14
  58. package/dist/site_manager-91b4d899.mjs.map +1 -0
  59. package/dist/xllm/core/action_parser.d.ts.map +1 -1
  60. package/dist/xllm/core/behavior_result.d.ts.map +1 -1
  61. package/dist/xllm/core/loop.d.ts.map +1 -1
  62. package/dist/xllm/core/protocol.d.ts.map +1 -1
  63. package/dist/xllm/core/types.d.ts +2 -0
  64. package/dist/xllm/core/types.d.ts.map +1 -1
  65. package/dist/xllm.cjs +1 -1
  66. package/dist/xllm.mjs +2 -2
  67. package/dist/xllm_deno.cjs +1 -1
  68. package/dist/xllm_deno.mjs +1 -1
  69. package/package.json +2 -2
  70. package/cli/modules/aiws_schedule.ts +0 -256
  71. package/dist/aiws_bind-1a26e3e6.js +0 -2
  72. package/dist/aiws_bind-1a26e3e6.js.map +0 -1
  73. package/dist/aiws_bind-ec6fe2d5.mjs.map +0 -1
  74. package/dist/aiws_write-07562abc.mjs.map +0 -1
  75. package/dist/aiws_write-1f179e1c.js.map +0 -1
  76. package/dist/site_manager-8adb478e.mjs.map +0 -1
  77. package/dist/site_manager-c832463b.js +0 -2
  78. package/dist/site_manager-c832463b.js.map +0 -1
@@ -0,0 +1,493 @@
1
+ {
2
+ "@context": "https://www.w3.org/2022/wot/td/v1.1",
3
+ "id": "urn:opendan:personal-tools:todo:v1",
4
+ "title": "Personal to-dos",
5
+ "actions": {
6
+ "list": {
7
+ "description": "List open items or include completed items.",
8
+ "input": {
9
+ "type": "object",
10
+ "properties": {
11
+ "cursor": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "limit": {
16
+ "type": "integer",
17
+ "minimum": 1,
18
+ "maximum": 1000
19
+ },
20
+ "include_done": {
21
+ "type": "boolean"
22
+ }
23
+ },
24
+ "required": [],
25
+ "additionalProperties": false
26
+ },
27
+ "output": {
28
+ "type": "object",
29
+ "properties": {
30
+ "initialized": {
31
+ "type": "boolean"
32
+ },
33
+ "items": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "object",
37
+ "properties": {
38
+ "title": {
39
+ "type": "string"
40
+ },
41
+ "record_ref": {
42
+ "type": "string"
43
+ },
44
+ "open_url": {
45
+ "type": "string"
46
+ },
47
+ "provider_record_ref": {
48
+ "type": "string",
49
+ "description": "Original external Provider reference. Use record_ref with the personal object."
50
+ }
51
+ },
52
+ "required": [
53
+ "title",
54
+ "record_ref"
55
+ ],
56
+ "additionalProperties": true
57
+ }
58
+ },
59
+ "next_cursor": {
60
+ "type": [
61
+ "string",
62
+ "null"
63
+ ]
64
+ }
65
+ },
66
+ "required": [
67
+ "items",
68
+ "next_cursor"
69
+ ],
70
+ "additionalProperties": true
71
+ },
72
+ "x-buckyos:action": {
73
+ "effect": "read"
74
+ }
75
+ },
76
+ "add": {
77
+ "description": "Create a to-do, optionally positioning it relative to a record reference.",
78
+ "input": {
79
+ "type": "object",
80
+ "properties": {
81
+ "title": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "status": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "due": {
90
+ "type": [
91
+ "string",
92
+ "null"
93
+ ]
94
+ },
95
+ "priority": {
96
+ "type": "string",
97
+ "enum": [
98
+ "low",
99
+ "normal",
100
+ "high",
101
+ "urgent",
102
+ "none"
103
+ ]
104
+ },
105
+ "ext": {
106
+ "type": "object"
107
+ },
108
+ "before": {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ "after": {
113
+ "type": "string",
114
+ "minLength": 1
115
+ }
116
+ },
117
+ "required": [
118
+ "title"
119
+ ],
120
+ "additionalProperties": false
121
+ },
122
+ "output": {
123
+ "type": "object",
124
+ "properties": {
125
+ "owner_did": {
126
+ "type": "string"
127
+ },
128
+ "status": {
129
+ "type": "string"
130
+ },
131
+ "record_ref": {
132
+ "type": "string"
133
+ },
134
+ "open_url": {
135
+ "type": "string"
136
+ },
137
+ "binding_revision": {
138
+ "type": "integer"
139
+ },
140
+ "idempotency_key": {
141
+ "type": "string"
142
+ },
143
+ "resource_ref": {
144
+ "type": "string"
145
+ },
146
+ "provider_record_ref": {
147
+ "type": "string",
148
+ "description": "Original external Provider reference. Use record_ref with the personal object."
149
+ }
150
+ },
151
+ "required": [
152
+ "owner_did",
153
+ "status",
154
+ "record_ref"
155
+ ],
156
+ "additionalProperties": true
157
+ },
158
+ "x-buckyos:action": {
159
+ "effect": "write"
160
+ }
161
+ },
162
+ "update": {
163
+ "description": "Patch an item, clearing due with null.",
164
+ "input": {
165
+ "type": "object",
166
+ "properties": {
167
+ "record_ref": {
168
+ "type": "string",
169
+ "minLength": 1
170
+ },
171
+ "patch": {
172
+ "type": "object",
173
+ "properties": {
174
+ "title": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
178
+ "status": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ },
182
+ "due": {
183
+ "type": [
184
+ "string",
185
+ "null"
186
+ ]
187
+ },
188
+ "priority": {
189
+ "type": "string",
190
+ "enum": [
191
+ "low",
192
+ "normal",
193
+ "high",
194
+ "urgent",
195
+ "none"
196
+ ]
197
+ },
198
+ "ext": {
199
+ "type": "object"
200
+ }
201
+ },
202
+ "required": [],
203
+ "additionalProperties": false
204
+ }
205
+ },
206
+ "required": [
207
+ "record_ref",
208
+ "patch"
209
+ ],
210
+ "additionalProperties": false
211
+ },
212
+ "output": {
213
+ "type": "object",
214
+ "properties": {
215
+ "owner_did": {
216
+ "type": "string"
217
+ },
218
+ "status": {
219
+ "type": "string"
220
+ },
221
+ "record_ref": {
222
+ "type": "string"
223
+ },
224
+ "open_url": {
225
+ "type": "string"
226
+ },
227
+ "binding_revision": {
228
+ "type": "integer"
229
+ },
230
+ "idempotency_key": {
231
+ "type": "string"
232
+ },
233
+ "resource_ref": {
234
+ "type": "string"
235
+ },
236
+ "provider_record_ref": {
237
+ "type": "string",
238
+ "description": "Original external Provider reference. Use record_ref with the personal object."
239
+ }
240
+ },
241
+ "required": [
242
+ "owner_did",
243
+ "status",
244
+ "record_ref"
245
+ ],
246
+ "additionalProperties": true
247
+ },
248
+ "x-buckyos:action": {
249
+ "effect": "write"
250
+ }
251
+ },
252
+ "move": {
253
+ "description": "Change a to-do’s position or status.",
254
+ "input": {
255
+ "type": "object",
256
+ "properties": {
257
+ "record_ref": {
258
+ "type": "string",
259
+ "minLength": 1
260
+ },
261
+ "before": {
262
+ "type": "string",
263
+ "minLength": 1
264
+ },
265
+ "after": {
266
+ "type": "string",
267
+ "minLength": 1
268
+ },
269
+ "status": {
270
+ "type": "string",
271
+ "minLength": 1
272
+ }
273
+ },
274
+ "required": [
275
+ "record_ref"
276
+ ],
277
+ "additionalProperties": false
278
+ },
279
+ "output": {
280
+ "type": "object",
281
+ "properties": {
282
+ "owner_did": {
283
+ "type": "string"
284
+ },
285
+ "status": {
286
+ "type": "string"
287
+ },
288
+ "record_ref": {
289
+ "type": "string"
290
+ },
291
+ "open_url": {
292
+ "type": "string"
293
+ },
294
+ "binding_revision": {
295
+ "type": "integer"
296
+ },
297
+ "idempotency_key": {
298
+ "type": "string"
299
+ },
300
+ "resource_ref": {
301
+ "type": "string"
302
+ },
303
+ "provider_record_ref": {
304
+ "type": "string",
305
+ "description": "Original external Provider reference. Use record_ref with the personal object."
306
+ }
307
+ },
308
+ "required": [
309
+ "owner_did",
310
+ "status",
311
+ "record_ref"
312
+ ],
313
+ "additionalProperties": true
314
+ },
315
+ "x-buckyos:action": {
316
+ "effect": "write"
317
+ }
318
+ },
319
+ "rm": {
320
+ "description": "Remove one record_ref or an explicit array of record_refs in the same table.",
321
+ "input": {
322
+ "type": "object",
323
+ "properties": {
324
+ "record_ref": {
325
+ "type": "string",
326
+ "minLength": 1
327
+ },
328
+ "record_refs": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "string",
332
+ "minLength": 1
333
+ }
334
+ }
335
+ },
336
+ "required": [],
337
+ "additionalProperties": false
338
+ },
339
+ "output": {
340
+ "type": "object",
341
+ "properties": {
342
+ "owner_did": {
343
+ "type": "string"
344
+ },
345
+ "status": {
346
+ "type": "string"
347
+ },
348
+ "record_ref": {
349
+ "type": "string"
350
+ },
351
+ "open_url": {
352
+ "type": "string"
353
+ },
354
+ "binding_revision": {
355
+ "type": "integer"
356
+ },
357
+ "idempotency_key": {
358
+ "type": "string"
359
+ },
360
+ "resource_ref": {
361
+ "type": "string"
362
+ },
363
+ "removed": {
364
+ "type": "integer"
365
+ },
366
+ "provider_record_ref": {
367
+ "type": "string",
368
+ "description": "Original external Provider reference. Use record_ref with the personal object."
369
+ }
370
+ },
371
+ "required": [
372
+ "owner_did",
373
+ "status"
374
+ ],
375
+ "additionalProperties": true
376
+ },
377
+ "x-buckyos:action": {
378
+ "effect": "destructive"
379
+ }
380
+ },
381
+ "done": {
382
+ "description": "Complete an item.",
383
+ "input": {
384
+ "type": "object",
385
+ "properties": {
386
+ "record_ref": {
387
+ "type": "string",
388
+ "minLength": 1
389
+ }
390
+ },
391
+ "required": [
392
+ "record_ref"
393
+ ],
394
+ "additionalProperties": false
395
+ },
396
+ "output": {
397
+ "type": "object",
398
+ "properties": {
399
+ "owner_did": {
400
+ "type": "string"
401
+ },
402
+ "status": {
403
+ "type": "string"
404
+ },
405
+ "record_ref": {
406
+ "type": "string"
407
+ },
408
+ "open_url": {
409
+ "type": "string"
410
+ },
411
+ "binding_revision": {
412
+ "type": "integer"
413
+ },
414
+ "idempotency_key": {
415
+ "type": "string"
416
+ },
417
+ "resource_ref": {
418
+ "type": "string"
419
+ },
420
+ "provider_record_ref": {
421
+ "type": "string",
422
+ "description": "Original external Provider reference. Use record_ref with the personal object."
423
+ }
424
+ },
425
+ "required": [
426
+ "owner_did",
427
+ "status",
428
+ "record_ref"
429
+ ],
430
+ "additionalProperties": true
431
+ },
432
+ "x-buckyos:action": {
433
+ "effect": "write"
434
+ }
435
+ },
436
+ "undone": {
437
+ "description": "Reopen a completed item.",
438
+ "input": {
439
+ "type": "object",
440
+ "properties": {
441
+ "record_ref": {
442
+ "type": "string",
443
+ "minLength": 1
444
+ }
445
+ },
446
+ "required": [
447
+ "record_ref"
448
+ ],
449
+ "additionalProperties": false
450
+ },
451
+ "output": {
452
+ "type": "object",
453
+ "properties": {
454
+ "owner_did": {
455
+ "type": "string"
456
+ },
457
+ "status": {
458
+ "type": "string"
459
+ },
460
+ "record_ref": {
461
+ "type": "string"
462
+ },
463
+ "open_url": {
464
+ "type": "string"
465
+ },
466
+ "binding_revision": {
467
+ "type": "integer"
468
+ },
469
+ "idempotency_key": {
470
+ "type": "string"
471
+ },
472
+ "resource_ref": {
473
+ "type": "string"
474
+ },
475
+ "provider_record_ref": {
476
+ "type": "string",
477
+ "description": "Original external Provider reference. Use record_ref with the personal object."
478
+ }
479
+ },
480
+ "required": [
481
+ "owner_did",
482
+ "status",
483
+ "record_ref"
484
+ ],
485
+ "additionalProperties": true
486
+ },
487
+ "x-buckyos:action": {
488
+ "effect": "write"
489
+ }
490
+ }
491
+ },
492
+ "x-buckyos:slot": "todo"
493
+ }
@@ -0,0 +1,9 @@
1
+ const calls = {
2
+ "get": "binding.get",
3
+ "set": "binding.set",
4
+ "reset": "binding.reset"
5
+ }
6
+
7
+ export default async function invoke(request, host) {
8
+ return { result: await host.call(calls[request.method], request.params) }
9
+ }
@@ -0,0 +1,3 @@
1
+ import { scheduleAction } from './schedule.mjs'
2
+
3
+ export default (request, host) => scheduleAction('calendar', request, host)
@@ -0,0 +1,9 @@
1
+ const calls = {
2
+ "find": "contact.find",
3
+ "get": "contact.get",
4
+ "update": "contact.update"
5
+ }
6
+
7
+ export default async function invoke(request, host) {
8
+ return { result: await host.call(calls[request.method], request.params) }
9
+ }