@objectstack/spec 1.0.11 → 1.1.0

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 (147) hide show
  1. package/README.md +41 -1
  2. package/dist/ai/index.d.mts +2 -1
  3. package/dist/ai/index.d.ts +2 -1
  4. package/dist/ai/index.js +2047 -1944
  5. package/dist/ai/index.js.map +1 -1
  6. package/dist/ai/index.mjs +2047 -1944
  7. package/dist/ai/index.mjs.map +1 -1
  8. package/dist/api/index.d.mts +3 -1
  9. package/dist/api/index.d.ts +3 -1
  10. package/dist/api/index.js +2599 -2292
  11. package/dist/api/index.js.map +1 -1
  12. package/dist/api/index.mjs +2587 -2292
  13. package/dist/api/index.mjs.map +1 -1
  14. package/dist/automation/index.d.mts +2 -1
  15. package/dist/automation/index.d.ts +2 -1
  16. package/dist/automation/index.js +83 -0
  17. package/dist/automation/index.js.map +1 -1
  18. package/dist/automation/index.mjs +77 -0
  19. package/dist/automation/index.mjs.map +1 -1
  20. package/dist/contracts/index.d.mts +3 -2
  21. package/dist/contracts/index.d.ts +3 -2
  22. package/dist/data/index.d.mts +3 -2
  23. package/dist/data/index.d.ts +3 -2
  24. package/dist/data/index.js +658 -556
  25. package/dist/data/index.js.map +1 -1
  26. package/dist/data/index.mjs +656 -556
  27. package/dist/data/index.mjs.map +1 -1
  28. package/dist/{driver.zod-lfi00zVT.d.ts → driver.zod-CfGk9GYh.d.ts} +2164 -11
  29. package/dist/{driver.zod-BOM_Etco.d.mts → driver.zod-y1cX6R3c.d.mts} +2164 -11
  30. package/dist/hub/index.d.mts +1 -1
  31. package/dist/hub/index.d.ts +1 -1
  32. package/dist/hub/index.js +789 -724
  33. package/dist/hub/index.js.map +1 -1
  34. package/dist/hub/index.mjs +789 -724
  35. package/dist/hub/index.mjs.map +1 -1
  36. package/dist/{index-C67cfwmW.d.ts → index-B0Hf65bV.d.ts} +13 -5
  37. package/dist/{index-DLcySG7U.d.ts → index-B5pKM0My.d.ts} +335 -4370
  38. package/dist/{index-Os7lItRe.d.mts → index-BA022mg2.d.ts} +6178 -129
  39. package/dist/{index-B5-VbOKg.d.mts → index-BGeLoH2z.d.ts} +4251 -74
  40. package/dist/{index-CH5zloR3.d.ts → index-BwO__aqV.d.ts} +1 -1
  41. package/dist/{index-Dp7GFJ8V.d.mts → index-Cia3JPQ8.d.mts} +13 -5
  42. package/dist/{index-D12rNohm.d.mts → index-CpD1q1FP.d.ts} +35 -18
  43. package/dist/{index-Os7lItRe.d.ts → index-D5RSFPuB.d.mts} +6178 -129
  44. package/dist/{index-CU4m6noq.d.mts → index-DGjpaj0X.d.mts} +1 -1
  45. package/dist/{index-D12rNohm.d.ts → index-Dfn5VXl6.d.mts} +35 -18
  46. package/dist/{index-l6WIlmOD.d.mts → index-Dgybxlky.d.mts} +177 -158
  47. package/dist/{index-l6WIlmOD.d.ts → index-Dgybxlky.d.ts} +177 -158
  48. package/dist/{index-DLcySG7U.d.mts → index-Dpsk8PF4.d.mts} +335 -4370
  49. package/dist/{index-CyognKSZ.d.ts → index-DrNah5E0.d.ts} +1952 -6990
  50. package/dist/{index-DE_lJ11p.d.mts → index-OO84R20k.d.mts} +1952 -6990
  51. package/dist/{index-B5-VbOKg.d.ts → index-upA3Xt04.d.mts} +4251 -74
  52. package/dist/index.d.mts +8072 -1922
  53. package/dist/index.d.ts +8072 -1922
  54. package/dist/index.js +8563 -8249
  55. package/dist/index.js.map +1 -1
  56. package/dist/index.mjs +8563 -8249
  57. package/dist/index.mjs.map +1 -1
  58. package/dist/integration/index.d.mts +1 -1
  59. package/dist/integration/index.d.ts +1 -1
  60. package/dist/kernel/index.d.mts +2 -1
  61. package/dist/kernel/index.d.ts +2 -1
  62. package/dist/kernel/index.js +884 -684
  63. package/dist/kernel/index.js.map +1 -1
  64. package/dist/kernel/index.mjs +870 -684
  65. package/dist/kernel/index.mjs.map +1 -1
  66. package/dist/package-registry.zod-JMcOYNxM.d.mts +21119 -0
  67. package/dist/package-registry.zod-JMcOYNxM.d.ts +21119 -0
  68. package/dist/state-machine.zod-B-lFFSxQ.d.mts +285 -0
  69. package/dist/state-machine.zod-B-lFFSxQ.d.ts +285 -0
  70. package/dist/system/index.d.mts +2 -1
  71. package/dist/system/index.d.ts +2 -1
  72. package/dist/system/index.js +749 -651
  73. package/dist/system/index.js.map +1 -1
  74. package/dist/system/index.mjs +749 -651
  75. package/dist/system/index.mjs.map +1 -1
  76. package/dist/ui/index.d.mts +1 -1
  77. package/dist/ui/index.d.ts +1 -1
  78. package/json-schema/ai/Agent.json +499 -0
  79. package/json-schema/ai/DevOpsAgent.json +499 -0
  80. package/json-schema/ai/FeedbackLoop.json +2188 -186
  81. package/json-schema/ai/Resolution.json +2188 -186
  82. package/json-schema/api/ApiRoutes.json +4 -0
  83. package/json-schema/api/CompileManifestResponse.json +40 -10
  84. package/json-schema/api/DisablePackageRequest.json +18 -0
  85. package/json-schema/api/DisablePackageResponse.json +1521 -0
  86. package/json-schema/api/Discovery.json +4 -0
  87. package/json-schema/api/EnablePackageRequest.json +18 -0
  88. package/json-schema/api/EnablePackageResponse.json +1521 -0
  89. package/json-schema/api/GetDiscoveryResponse.json +4 -0
  90. package/json-schema/api/GetPackageRequest.json +18 -0
  91. package/json-schema/api/GetPackageResponse.json +1518 -0
  92. package/json-schema/api/InstallPackageRequest.json +1483 -0
  93. package/json-schema/api/InstallPackageResponse.json +1521 -0
  94. package/json-schema/api/ListPackagesRequest.json +42 -0
  95. package/json-schema/api/ListPackagesResponse.json +1525 -0
  96. package/json-schema/api/ObjectDefinitionResponse.json +1001 -0
  97. package/json-schema/api/ObjectStackProtocol.json +86 -1
  98. package/json-schema/api/RestApiConfig.json +5 -0
  99. package/json-schema/api/RestServerConfig.json +5 -0
  100. package/json-schema/api/UninstallPackageRequest.json +18 -0
  101. package/json-schema/api/UninstallPackageResponse.json +25 -0
  102. package/json-schema/automation/ActionRef.json +30 -0
  103. package/json-schema/automation/Event.json +24 -0
  104. package/json-schema/automation/Flow.json +1 -0
  105. package/json-schema/automation/FlowNode.json +1 -0
  106. package/json-schema/automation/FlowNodeAction.json +1 -0
  107. package/json-schema/automation/GuardRef.json +30 -0
  108. package/json-schema/automation/StateMachine.json +504 -0
  109. package/json-schema/automation/StateNode.json +324 -0
  110. package/json-schema/automation/Transition.json +73 -0
  111. package/json-schema/data/Object.json +1001 -0
  112. package/json-schema/data/ObjectExtension.json +2376 -0
  113. package/json-schema/data/ObjectOwnershipEnum.json +13 -0
  114. package/json-schema/hub/ComposerResponse.json +40 -10
  115. package/json-schema/kernel/DisablePackageRequest.json +18 -0
  116. package/json-schema/kernel/DisablePackageResponse.json +1521 -0
  117. package/json-schema/kernel/EnablePackageRequest.json +18 -0
  118. package/json-schema/kernel/EnablePackageResponse.json +1521 -0
  119. package/json-schema/kernel/EventBusConfig.json +15 -0
  120. package/json-schema/kernel/EventHandler.json +6 -0
  121. package/json-schema/kernel/EventPersistence.json +3 -0
  122. package/json-schema/kernel/EventRoute.json +3 -0
  123. package/json-schema/kernel/EventWebhookConfig.json +3 -0
  124. package/json-schema/kernel/GetPackageRequest.json +18 -0
  125. package/json-schema/kernel/GetPackageResponse.json +1518 -0
  126. package/json-schema/kernel/InstallPackageRequest.json +1483 -0
  127. package/json-schema/kernel/InstallPackageResponse.json +1521 -0
  128. package/json-schema/kernel/InstalledPackage.json +1509 -0
  129. package/json-schema/kernel/ListPackagesRequest.json +42 -0
  130. package/json-schema/kernel/ListPackagesResponse.json +1525 -0
  131. package/json-schema/kernel/Manifest.json +40 -10
  132. package/json-schema/kernel/PackageStatusEnum.json +16 -0
  133. package/json-schema/kernel/Plugin.json +5 -0
  134. package/json-schema/kernel/PluginContext.json +31 -7
  135. package/json-schema/kernel/PluginLifecycle.json +7 -1
  136. package/json-schema/kernel/RealTimeNotificationConfig.json +3 -0
  137. package/json-schema/kernel/UninstallPackageRequest.json +18 -0
  138. package/json-schema/kernel/UninstallPackageResponse.json +25 -0
  139. package/json-schema/system/ChangeSet.json +2188 -186
  140. package/json-schema/system/CreateObjectOperation.json +1001 -0
  141. package/json-schema/system/MigrationOperation.json +1001 -0
  142. package/package.json +29 -15
  143. package/prompts/create-new-project.md +37 -19
  144. package/dist/{index-I3piy4U4.d.mts → index-BmU_sD1f.d.mts} +8 -8
  145. package/dist/{index-CkhpsEUw.d.ts → index-BnXuc_HO.d.ts} +8 -8
  146. package/dist/{index-CIDI-8zR.d.mts → index-C_NTOcet.d.mts} +98 -98
  147. package/dist/{index-CIDI-8zR.d.ts → index-C_NTOcet.d.ts} +98 -98
@@ -0,0 +1,504 @@
1
+ {
2
+ "$ref": "#/definitions/StateMachine",
3
+ "definitions": {
4
+ "StateMachine": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "minLength": 2,
10
+ "pattern": "^[a-z][a-z0-9_]*$",
11
+ "description": "Unique Machine ID"
12
+ },
13
+ "description": {
14
+ "type": "string"
15
+ },
16
+ "contextSchema": {
17
+ "type": "object",
18
+ "additionalProperties": {},
19
+ "description": "Zod Schema for the machine context/memory"
20
+ },
21
+ "initial": {
22
+ "type": "string",
23
+ "description": "Initial State ID"
24
+ },
25
+ "states": {
26
+ "type": "object",
27
+ "additionalProperties": {
28
+ "type": "object",
29
+ "properties": {
30
+ "type": {
31
+ "type": "string",
32
+ "enum": [
33
+ "atomic",
34
+ "compound",
35
+ "parallel",
36
+ "final",
37
+ "history"
38
+ ],
39
+ "default": "atomic"
40
+ },
41
+ "entry": {
42
+ "type": "array",
43
+ "items": {
44
+ "anyOf": [
45
+ {
46
+ "type": "string",
47
+ "description": "Action Name"
48
+ },
49
+ {
50
+ "type": "object",
51
+ "properties": {
52
+ "type": {
53
+ "type": "string"
54
+ },
55
+ "params": {
56
+ "type": "object",
57
+ "additionalProperties": {}
58
+ }
59
+ },
60
+ "required": [
61
+ "type"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ ]
66
+ },
67
+ "description": "Actions to run when entering this state"
68
+ },
69
+ "exit": {
70
+ "type": "array",
71
+ "items": {
72
+ "anyOf": [
73
+ {
74
+ "type": "string",
75
+ "description": "Action Name"
76
+ },
77
+ {
78
+ "type": "object",
79
+ "properties": {
80
+ "type": {
81
+ "type": "string"
82
+ },
83
+ "params": {
84
+ "type": "object",
85
+ "additionalProperties": {}
86
+ }
87
+ },
88
+ "required": [
89
+ "type"
90
+ ],
91
+ "additionalProperties": false
92
+ }
93
+ ]
94
+ },
95
+ "description": "Actions to run when leaving this state"
96
+ },
97
+ "on": {
98
+ "type": "object",
99
+ "additionalProperties": {
100
+ "anyOf": [
101
+ {
102
+ "type": "string"
103
+ },
104
+ {
105
+ "type": "object",
106
+ "properties": {
107
+ "target": {
108
+ "type": "string",
109
+ "description": "Target State ID"
110
+ },
111
+ "cond": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string",
115
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
116
+ },
117
+ {
118
+ "type": "object",
119
+ "properties": {
120
+ "type": {
121
+ "type": "string"
122
+ },
123
+ "params": {
124
+ "type": "object",
125
+ "additionalProperties": {}
126
+ }
127
+ },
128
+ "required": [
129
+ "type"
130
+ ],
131
+ "additionalProperties": false
132
+ }
133
+ ],
134
+ "description": "Condition (Guard) required to take this path"
135
+ },
136
+ "actions": {
137
+ "type": "array",
138
+ "items": {
139
+ "anyOf": [
140
+ {
141
+ "type": "string",
142
+ "description": "Action Name"
143
+ },
144
+ {
145
+ "type": "object",
146
+ "properties": {
147
+ "type": {
148
+ "type": "string"
149
+ },
150
+ "params": {
151
+ "type": "object",
152
+ "additionalProperties": {}
153
+ }
154
+ },
155
+ "required": [
156
+ "type"
157
+ ],
158
+ "additionalProperties": false
159
+ }
160
+ ]
161
+ },
162
+ "description": "Actions to execute during transition"
163
+ },
164
+ "description": {
165
+ "type": "string",
166
+ "description": "Human readable description of this rule"
167
+ }
168
+ },
169
+ "additionalProperties": false
170
+ },
171
+ {
172
+ "type": "array",
173
+ "items": {
174
+ "type": "object",
175
+ "properties": {
176
+ "target": {
177
+ "type": "string",
178
+ "description": "Target State ID"
179
+ },
180
+ "cond": {
181
+ "anyOf": [
182
+ {
183
+ "type": "string",
184
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
185
+ },
186
+ {
187
+ "type": "object",
188
+ "properties": {
189
+ "type": {
190
+ "type": "string"
191
+ },
192
+ "params": {
193
+ "type": "object",
194
+ "additionalProperties": {}
195
+ }
196
+ },
197
+ "required": [
198
+ "type"
199
+ ],
200
+ "additionalProperties": false
201
+ }
202
+ ],
203
+ "description": "Condition (Guard) required to take this path"
204
+ },
205
+ "actions": {
206
+ "type": "array",
207
+ "items": {
208
+ "anyOf": [
209
+ {
210
+ "type": "string",
211
+ "description": "Action Name"
212
+ },
213
+ {
214
+ "type": "object",
215
+ "properties": {
216
+ "type": {
217
+ "type": "string"
218
+ },
219
+ "params": {
220
+ "type": "object",
221
+ "additionalProperties": {}
222
+ }
223
+ },
224
+ "required": [
225
+ "type"
226
+ ],
227
+ "additionalProperties": false
228
+ }
229
+ ]
230
+ },
231
+ "description": "Actions to execute during transition"
232
+ },
233
+ "description": {
234
+ "type": "string",
235
+ "description": "Human readable description of this rule"
236
+ }
237
+ },
238
+ "additionalProperties": false
239
+ }
240
+ }
241
+ ]
242
+ },
243
+ "description": "Map of Event Type -> Transition Definition"
244
+ },
245
+ "always": {
246
+ "type": "array",
247
+ "items": {
248
+ "type": "object",
249
+ "properties": {
250
+ "target": {
251
+ "type": "string",
252
+ "description": "Target State ID"
253
+ },
254
+ "cond": {
255
+ "anyOf": [
256
+ {
257
+ "type": "string",
258
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
259
+ },
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "type": {
264
+ "type": "string"
265
+ },
266
+ "params": {
267
+ "type": "object",
268
+ "additionalProperties": {}
269
+ }
270
+ },
271
+ "required": [
272
+ "type"
273
+ ],
274
+ "additionalProperties": false
275
+ }
276
+ ],
277
+ "description": "Condition (Guard) required to take this path"
278
+ },
279
+ "actions": {
280
+ "type": "array",
281
+ "items": {
282
+ "anyOf": [
283
+ {
284
+ "type": "string",
285
+ "description": "Action Name"
286
+ },
287
+ {
288
+ "type": "object",
289
+ "properties": {
290
+ "type": {
291
+ "type": "string"
292
+ },
293
+ "params": {
294
+ "type": "object",
295
+ "additionalProperties": {}
296
+ }
297
+ },
298
+ "required": [
299
+ "type"
300
+ ],
301
+ "additionalProperties": false
302
+ }
303
+ ]
304
+ },
305
+ "description": "Actions to execute during transition"
306
+ },
307
+ "description": {
308
+ "type": "string",
309
+ "description": "Human readable description of this rule"
310
+ }
311
+ },
312
+ "additionalProperties": false
313
+ }
314
+ },
315
+ "initial": {
316
+ "type": "string",
317
+ "description": "Initial child state (if compound)"
318
+ },
319
+ "states": {
320
+ "type": "object",
321
+ "additionalProperties": {}
322
+ },
323
+ "meta": {
324
+ "type": "object",
325
+ "properties": {
326
+ "label": {
327
+ "type": "string"
328
+ },
329
+ "description": {
330
+ "type": "string"
331
+ },
332
+ "color": {
333
+ "type": "string"
334
+ },
335
+ "aiInstructions": {
336
+ "type": "string",
337
+ "description": "Specific instructions for AI when in this state"
338
+ }
339
+ },
340
+ "additionalProperties": false
341
+ }
342
+ },
343
+ "additionalProperties": false
344
+ },
345
+ "description": "State Nodes"
346
+ },
347
+ "on": {
348
+ "type": "object",
349
+ "additionalProperties": {
350
+ "anyOf": [
351
+ {
352
+ "type": "string"
353
+ },
354
+ {
355
+ "type": "object",
356
+ "properties": {
357
+ "target": {
358
+ "type": "string",
359
+ "description": "Target State ID"
360
+ },
361
+ "cond": {
362
+ "anyOf": [
363
+ {
364
+ "type": "string",
365
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
366
+ },
367
+ {
368
+ "type": "object",
369
+ "properties": {
370
+ "type": {
371
+ "type": "string"
372
+ },
373
+ "params": {
374
+ "type": "object",
375
+ "additionalProperties": {}
376
+ }
377
+ },
378
+ "required": [
379
+ "type"
380
+ ],
381
+ "additionalProperties": false
382
+ }
383
+ ],
384
+ "description": "Condition (Guard) required to take this path"
385
+ },
386
+ "actions": {
387
+ "type": "array",
388
+ "items": {
389
+ "anyOf": [
390
+ {
391
+ "type": "string",
392
+ "description": "Action Name"
393
+ },
394
+ {
395
+ "type": "object",
396
+ "properties": {
397
+ "type": {
398
+ "type": "string"
399
+ },
400
+ "params": {
401
+ "type": "object",
402
+ "additionalProperties": {}
403
+ }
404
+ },
405
+ "required": [
406
+ "type"
407
+ ],
408
+ "additionalProperties": false
409
+ }
410
+ ]
411
+ },
412
+ "description": "Actions to execute during transition"
413
+ },
414
+ "description": {
415
+ "type": "string",
416
+ "description": "Human readable description of this rule"
417
+ }
418
+ },
419
+ "additionalProperties": false
420
+ },
421
+ {
422
+ "type": "array",
423
+ "items": {
424
+ "type": "object",
425
+ "properties": {
426
+ "target": {
427
+ "type": "string",
428
+ "description": "Target State ID"
429
+ },
430
+ "cond": {
431
+ "anyOf": [
432
+ {
433
+ "type": "string",
434
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
435
+ },
436
+ {
437
+ "type": "object",
438
+ "properties": {
439
+ "type": {
440
+ "type": "string"
441
+ },
442
+ "params": {
443
+ "type": "object",
444
+ "additionalProperties": {}
445
+ }
446
+ },
447
+ "required": [
448
+ "type"
449
+ ],
450
+ "additionalProperties": false
451
+ }
452
+ ],
453
+ "description": "Condition (Guard) required to take this path"
454
+ },
455
+ "actions": {
456
+ "type": "array",
457
+ "items": {
458
+ "anyOf": [
459
+ {
460
+ "type": "string",
461
+ "description": "Action Name"
462
+ },
463
+ {
464
+ "type": "object",
465
+ "properties": {
466
+ "type": {
467
+ "type": "string"
468
+ },
469
+ "params": {
470
+ "type": "object",
471
+ "additionalProperties": {}
472
+ }
473
+ },
474
+ "required": [
475
+ "type"
476
+ ],
477
+ "additionalProperties": false
478
+ }
479
+ ]
480
+ },
481
+ "description": "Actions to execute during transition"
482
+ },
483
+ "description": {
484
+ "type": "string",
485
+ "description": "Human readable description of this rule"
486
+ }
487
+ },
488
+ "additionalProperties": false
489
+ }
490
+ }
491
+ ]
492
+ }
493
+ }
494
+ },
495
+ "required": [
496
+ "id",
497
+ "initial",
498
+ "states"
499
+ ],
500
+ "additionalProperties": false
501
+ }
502
+ },
503
+ "$schema": "http://json-schema.org/draft-07/schema#"
504
+ }