@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,324 @@
1
+ {
2
+ "$ref": "#/definitions/StateNode",
3
+ "definitions": {
4
+ "StateNode": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "enum": [
10
+ "atomic",
11
+ "compound",
12
+ "parallel",
13
+ "final",
14
+ "history"
15
+ ],
16
+ "default": "atomic"
17
+ },
18
+ "entry": {
19
+ "type": "array",
20
+ "items": {
21
+ "anyOf": [
22
+ {
23
+ "type": "string",
24
+ "description": "Action Name"
25
+ },
26
+ {
27
+ "type": "object",
28
+ "properties": {
29
+ "type": {
30
+ "type": "string"
31
+ },
32
+ "params": {
33
+ "type": "object",
34
+ "additionalProperties": {}
35
+ }
36
+ },
37
+ "required": [
38
+ "type"
39
+ ],
40
+ "additionalProperties": false
41
+ }
42
+ ]
43
+ },
44
+ "description": "Actions to run when entering this state"
45
+ },
46
+ "exit": {
47
+ "type": "array",
48
+ "items": {
49
+ "anyOf": [
50
+ {
51
+ "type": "string",
52
+ "description": "Action Name"
53
+ },
54
+ {
55
+ "type": "object",
56
+ "properties": {
57
+ "type": {
58
+ "type": "string"
59
+ },
60
+ "params": {
61
+ "type": "object",
62
+ "additionalProperties": {}
63
+ }
64
+ },
65
+ "required": [
66
+ "type"
67
+ ],
68
+ "additionalProperties": false
69
+ }
70
+ ]
71
+ },
72
+ "description": "Actions to run when leaving this state"
73
+ },
74
+ "on": {
75
+ "type": "object",
76
+ "additionalProperties": {
77
+ "anyOf": [
78
+ {
79
+ "type": "string"
80
+ },
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "target": {
85
+ "type": "string",
86
+ "description": "Target State ID"
87
+ },
88
+ "cond": {
89
+ "anyOf": [
90
+ {
91
+ "type": "string",
92
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
93
+ },
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "type": {
98
+ "type": "string"
99
+ },
100
+ "params": {
101
+ "type": "object",
102
+ "additionalProperties": {}
103
+ }
104
+ },
105
+ "required": [
106
+ "type"
107
+ ],
108
+ "additionalProperties": false
109
+ }
110
+ ],
111
+ "description": "Condition (Guard) required to take this path"
112
+ },
113
+ "actions": {
114
+ "type": "array",
115
+ "items": {
116
+ "anyOf": [
117
+ {
118
+ "type": "string",
119
+ "description": "Action Name"
120
+ },
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "type": {
125
+ "type": "string"
126
+ },
127
+ "params": {
128
+ "type": "object",
129
+ "additionalProperties": {}
130
+ }
131
+ },
132
+ "required": [
133
+ "type"
134
+ ],
135
+ "additionalProperties": false
136
+ }
137
+ ]
138
+ },
139
+ "description": "Actions to execute during transition"
140
+ },
141
+ "description": {
142
+ "type": "string",
143
+ "description": "Human readable description of this rule"
144
+ }
145
+ },
146
+ "additionalProperties": false
147
+ },
148
+ {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "object",
152
+ "properties": {
153
+ "target": {
154
+ "type": "string",
155
+ "description": "Target State ID"
156
+ },
157
+ "cond": {
158
+ "anyOf": [
159
+ {
160
+ "type": "string",
161
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
162
+ },
163
+ {
164
+ "type": "object",
165
+ "properties": {
166
+ "type": {
167
+ "type": "string"
168
+ },
169
+ "params": {
170
+ "type": "object",
171
+ "additionalProperties": {}
172
+ }
173
+ },
174
+ "required": [
175
+ "type"
176
+ ],
177
+ "additionalProperties": false
178
+ }
179
+ ],
180
+ "description": "Condition (Guard) required to take this path"
181
+ },
182
+ "actions": {
183
+ "type": "array",
184
+ "items": {
185
+ "anyOf": [
186
+ {
187
+ "type": "string",
188
+ "description": "Action Name"
189
+ },
190
+ {
191
+ "type": "object",
192
+ "properties": {
193
+ "type": {
194
+ "type": "string"
195
+ },
196
+ "params": {
197
+ "type": "object",
198
+ "additionalProperties": {}
199
+ }
200
+ },
201
+ "required": [
202
+ "type"
203
+ ],
204
+ "additionalProperties": false
205
+ }
206
+ ]
207
+ },
208
+ "description": "Actions to execute during transition"
209
+ },
210
+ "description": {
211
+ "type": "string",
212
+ "description": "Human readable description of this rule"
213
+ }
214
+ },
215
+ "additionalProperties": false
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ "description": "Map of Event Type -> Transition Definition"
221
+ },
222
+ "always": {
223
+ "type": "array",
224
+ "items": {
225
+ "type": "object",
226
+ "properties": {
227
+ "target": {
228
+ "type": "string",
229
+ "description": "Target State ID"
230
+ },
231
+ "cond": {
232
+ "anyOf": [
233
+ {
234
+ "type": "string",
235
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
236
+ },
237
+ {
238
+ "type": "object",
239
+ "properties": {
240
+ "type": {
241
+ "type": "string"
242
+ },
243
+ "params": {
244
+ "type": "object",
245
+ "additionalProperties": {}
246
+ }
247
+ },
248
+ "required": [
249
+ "type"
250
+ ],
251
+ "additionalProperties": false
252
+ }
253
+ ],
254
+ "description": "Condition (Guard) required to take this path"
255
+ },
256
+ "actions": {
257
+ "type": "array",
258
+ "items": {
259
+ "anyOf": [
260
+ {
261
+ "type": "string",
262
+ "description": "Action Name"
263
+ },
264
+ {
265
+ "type": "object",
266
+ "properties": {
267
+ "type": {
268
+ "type": "string"
269
+ },
270
+ "params": {
271
+ "type": "object",
272
+ "additionalProperties": {}
273
+ }
274
+ },
275
+ "required": [
276
+ "type"
277
+ ],
278
+ "additionalProperties": false
279
+ }
280
+ ]
281
+ },
282
+ "description": "Actions to execute during transition"
283
+ },
284
+ "description": {
285
+ "type": "string",
286
+ "description": "Human readable description of this rule"
287
+ }
288
+ },
289
+ "additionalProperties": false
290
+ }
291
+ },
292
+ "initial": {
293
+ "type": "string",
294
+ "description": "Initial child state (if compound)"
295
+ },
296
+ "states": {
297
+ "type": "object",
298
+ "additionalProperties": {}
299
+ },
300
+ "meta": {
301
+ "type": "object",
302
+ "properties": {
303
+ "label": {
304
+ "type": "string"
305
+ },
306
+ "description": {
307
+ "type": "string"
308
+ },
309
+ "color": {
310
+ "type": "string"
311
+ },
312
+ "aiInstructions": {
313
+ "type": "string",
314
+ "description": "Specific instructions for AI when in this state"
315
+ }
316
+ },
317
+ "additionalProperties": false
318
+ }
319
+ },
320
+ "additionalProperties": false
321
+ }
322
+ },
323
+ "$schema": "http://json-schema.org/draft-07/schema#"
324
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "$ref": "#/definitions/Transition",
3
+ "definitions": {
4
+ "Transition": {
5
+ "type": "object",
6
+ "properties": {
7
+ "target": {
8
+ "type": "string",
9
+ "description": "Target State ID"
10
+ },
11
+ "cond": {
12
+ "anyOf": [
13
+ {
14
+ "type": "string",
15
+ "description": "Guard Name (e.g., \"isManager\", \"amountGT1000\")"
16
+ },
17
+ {
18
+ "type": "object",
19
+ "properties": {
20
+ "type": {
21
+ "type": "string"
22
+ },
23
+ "params": {
24
+ "type": "object",
25
+ "additionalProperties": {}
26
+ }
27
+ },
28
+ "required": [
29
+ "type"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ ],
34
+ "description": "Condition (Guard) required to take this path"
35
+ },
36
+ "actions": {
37
+ "type": "array",
38
+ "items": {
39
+ "anyOf": [
40
+ {
41
+ "type": "string",
42
+ "description": "Action Name"
43
+ },
44
+ {
45
+ "type": "object",
46
+ "properties": {
47
+ "type": {
48
+ "type": "string"
49
+ },
50
+ "params": {
51
+ "type": "object",
52
+ "additionalProperties": {}
53
+ }
54
+ },
55
+ "required": [
56
+ "type"
57
+ ],
58
+ "additionalProperties": false
59
+ }
60
+ ]
61
+ },
62
+ "description": "Actions to execute during transition"
63
+ },
64
+ "description": {
65
+ "type": "string",
66
+ "description": "Human readable description of this rule"
67
+ }
68
+ },
69
+ "additionalProperties": false
70
+ }
71
+ },
72
+ "$schema": "http://json-schema.org/draft-07/schema#"
73
+ }