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