@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.
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
@@ -1,3 +1,3 @@
1
- export { ak as Action, al as ActionParam, ai as ActionParamSchema, aj as ActionSchema, b2 as Animation, aT as AnimationSchema, l as App, m as AppBranding, A as AppBrandingSchema, k as AppSchema, a$ as BorderRadius, aQ as BorderRadiusSchema, b1 as Breakpoints, aS as BreakpointsSchema, v as CalendarConfigSchema, d as ChartAnnotationSchema, h as ChartAxis, b as ChartAxisSchema, g as ChartConfig, f as ChartConfigSchema, e as ChartInteractionSchema, j as ChartSeries, c as ChartSeriesSchema, a as ChartType, C as ChartTypeSchema, aY as ColorPalette, aN as ColorPaletteSchema, aM as ComponentProps, aL as ComponentPropsMap, a3 as Dashboard, p as DashboardNavItem, D as DashboardNavItemSchema, a2 as DashboardSchema, a4 as DashboardWidget, a1 as DashboardWidgetSchema, aE as FieldWidgetProps, aD as FieldWidgetPropsSchema, W as FormField, F as FormFieldSchema, R as FormSection, B as FormSectionSchema, Q as FormView, E as FormViewSchema, w as GanttConfigSchema, s as GroupNavItem, G as GroupNavItemSchema, a0 as HttpMethod, H as HttpMethodSchema, $ as HttpRequest, t as HttpRequestSchema, K as KanbanConfigSchema, T as ListColumn, L as ListColumnSchema, M as ListView, z as ListViewSchema, Y as NavigationConfig, y as NavigationConfigSchema, n as NavigationItem, N as NavigationItemSchema, x as NavigationModeSchema, o as ObjectNavItem, O as ObjectNavItemSchema, ar as Page, aH as PageCardProps, as as PageComponent, ao as PageComponentSchema, an as PageComponentType, aF as PageHeaderProps, q as PageNavItem, P as PageNavItemSchema, at as PageRegion, am as PageRegionSchema, aq as PageSchema, aG as PageTabsProps, ap as PageVariableSchema, Z as PaginationConfig, u as PaginationConfigSchema, aI as RecordDetailsProps, aK as RecordHighlightsProps, aJ as RecordRelatedListProps, aa as Report, ad as ReportChart, ah as ReportChartInput, a8 as ReportChartSchema, ab as ReportColumn, af as ReportColumnInput, a6 as ReportColumnSchema, ac as ReportGrouping, ag as ReportGroupingInput, a7 as ReportGroupingSchema, ae as ReportInput, a9 as ReportSchema, a5 as ReportType, X as SelectionConfig, S as SelectionConfigSchema, b0 as Shadow, aR as ShadowSchema, a_ as Spacing, aP as SpacingSchema, aX as Theme, aV as ThemeMode, aW as ThemeSchema, aZ as Typography, aO as TypographySchema, r as UrlNavItem, U as UrlNavItemSchema, J as View, _ as ViewData, V as ViewDataSchema, I as ViewSchema, ax as WidgetEvent, aw as WidgetEventSchema, av as WidgetLifecycle, au as WidgetLifecycleSchema, aC as WidgetManifest, aB as WidgetManifestSchema, az as WidgetProperty, ay as WidgetPropertySchema, aA as WidgetSourceSchema, b3 as ZIndex, aU as ZIndexSchema } from '../index-I3piy4U4.mjs';
1
+ export { ak as Action, al as ActionParam, ai as ActionParamSchema, aj as ActionSchema, b2 as Animation, aT as AnimationSchema, l as App, m as AppBranding, A as AppBrandingSchema, k as AppSchema, a$ as BorderRadius, aQ as BorderRadiusSchema, b1 as Breakpoints, aS as BreakpointsSchema, v as CalendarConfigSchema, d as ChartAnnotationSchema, h as ChartAxis, b as ChartAxisSchema, g as ChartConfig, f as ChartConfigSchema, e as ChartInteractionSchema, j as ChartSeries, c as ChartSeriesSchema, a as ChartType, C as ChartTypeSchema, aY as ColorPalette, aN as ColorPaletteSchema, aM as ComponentProps, aL as ComponentPropsMap, a3 as Dashboard, p as DashboardNavItem, D as DashboardNavItemSchema, a2 as DashboardSchema, a4 as DashboardWidget, a1 as DashboardWidgetSchema, aE as FieldWidgetProps, aD as FieldWidgetPropsSchema, W as FormField, F as FormFieldSchema, R as FormSection, B as FormSectionSchema, Q as FormView, E as FormViewSchema, w as GanttConfigSchema, s as GroupNavItem, G as GroupNavItemSchema, a0 as HttpMethod, H as HttpMethodSchema, $ as HttpRequest, t as HttpRequestSchema, K as KanbanConfigSchema, T as ListColumn, L as ListColumnSchema, M as ListView, z as ListViewSchema, Y as NavigationConfig, y as NavigationConfigSchema, n as NavigationItem, N as NavigationItemSchema, x as NavigationModeSchema, o as ObjectNavItem, O as ObjectNavItemSchema, ar as Page, aH as PageCardProps, as as PageComponent, ao as PageComponentSchema, an as PageComponentType, aF as PageHeaderProps, q as PageNavItem, P as PageNavItemSchema, at as PageRegion, am as PageRegionSchema, aq as PageSchema, aG as PageTabsProps, ap as PageVariableSchema, Z as PaginationConfig, u as PaginationConfigSchema, aI as RecordDetailsProps, aK as RecordHighlightsProps, aJ as RecordRelatedListProps, aa as Report, ad as ReportChart, ah as ReportChartInput, a8 as ReportChartSchema, ab as ReportColumn, af as ReportColumnInput, a6 as ReportColumnSchema, ac as ReportGrouping, ag as ReportGroupingInput, a7 as ReportGroupingSchema, ae as ReportInput, a9 as ReportSchema, a5 as ReportType, X as SelectionConfig, S as SelectionConfigSchema, b0 as Shadow, aR as ShadowSchema, a_ as Spacing, aP as SpacingSchema, aX as Theme, aV as ThemeMode, aW as ThemeSchema, aZ as Typography, aO as TypographySchema, r as UrlNavItem, U as UrlNavItemSchema, J as View, _ as ViewData, V as ViewDataSchema, I as ViewSchema, ax as WidgetEvent, aw as WidgetEventSchema, av as WidgetLifecycle, au as WidgetLifecycleSchema, aC as WidgetManifest, aB as WidgetManifestSchema, az as WidgetProperty, ay as WidgetPropertySchema, aA as WidgetSourceSchema, b3 as ZIndex, aU as ZIndexSchema } from '../index-BmU_sD1f.mjs';
2
2
  import 'zod';
3
3
  import '../filter.zod-BMWnz4HE.mjs';
@@ -1,3 +1,3 @@
1
- export { ak as Action, al as ActionParam, ai as ActionParamSchema, aj as ActionSchema, b2 as Animation, aT as AnimationSchema, l as App, m as AppBranding, A as AppBrandingSchema, k as AppSchema, a$ as BorderRadius, aQ as BorderRadiusSchema, b1 as Breakpoints, aS as BreakpointsSchema, v as CalendarConfigSchema, d as ChartAnnotationSchema, h as ChartAxis, b as ChartAxisSchema, g as ChartConfig, f as ChartConfigSchema, e as ChartInteractionSchema, j as ChartSeries, c as ChartSeriesSchema, a as ChartType, C as ChartTypeSchema, aY as ColorPalette, aN as ColorPaletteSchema, aM as ComponentProps, aL as ComponentPropsMap, a3 as Dashboard, p as DashboardNavItem, D as DashboardNavItemSchema, a2 as DashboardSchema, a4 as DashboardWidget, a1 as DashboardWidgetSchema, aE as FieldWidgetProps, aD as FieldWidgetPropsSchema, W as FormField, F as FormFieldSchema, R as FormSection, B as FormSectionSchema, Q as FormView, E as FormViewSchema, w as GanttConfigSchema, s as GroupNavItem, G as GroupNavItemSchema, a0 as HttpMethod, H as HttpMethodSchema, $ as HttpRequest, t as HttpRequestSchema, K as KanbanConfigSchema, T as ListColumn, L as ListColumnSchema, M as ListView, z as ListViewSchema, Y as NavigationConfig, y as NavigationConfigSchema, n as NavigationItem, N as NavigationItemSchema, x as NavigationModeSchema, o as ObjectNavItem, O as ObjectNavItemSchema, ar as Page, aH as PageCardProps, as as PageComponent, ao as PageComponentSchema, an as PageComponentType, aF as PageHeaderProps, q as PageNavItem, P as PageNavItemSchema, at as PageRegion, am as PageRegionSchema, aq as PageSchema, aG as PageTabsProps, ap as PageVariableSchema, Z as PaginationConfig, u as PaginationConfigSchema, aI as RecordDetailsProps, aK as RecordHighlightsProps, aJ as RecordRelatedListProps, aa as Report, ad as ReportChart, ah as ReportChartInput, a8 as ReportChartSchema, ab as ReportColumn, af as ReportColumnInput, a6 as ReportColumnSchema, ac as ReportGrouping, ag as ReportGroupingInput, a7 as ReportGroupingSchema, ae as ReportInput, a9 as ReportSchema, a5 as ReportType, X as SelectionConfig, S as SelectionConfigSchema, b0 as Shadow, aR as ShadowSchema, a_ as Spacing, aP as SpacingSchema, aX as Theme, aV as ThemeMode, aW as ThemeSchema, aZ as Typography, aO as TypographySchema, r as UrlNavItem, U as UrlNavItemSchema, J as View, _ as ViewData, V as ViewDataSchema, I as ViewSchema, ax as WidgetEvent, aw as WidgetEventSchema, av as WidgetLifecycle, au as WidgetLifecycleSchema, aC as WidgetManifest, aB as WidgetManifestSchema, az as WidgetProperty, ay as WidgetPropertySchema, aA as WidgetSourceSchema, b3 as ZIndex, aU as ZIndexSchema } from '../index-CkhpsEUw.js';
1
+ export { ak as Action, al as ActionParam, ai as ActionParamSchema, aj as ActionSchema, b2 as Animation, aT as AnimationSchema, l as App, m as AppBranding, A as AppBrandingSchema, k as AppSchema, a$ as BorderRadius, aQ as BorderRadiusSchema, b1 as Breakpoints, aS as BreakpointsSchema, v as CalendarConfigSchema, d as ChartAnnotationSchema, h as ChartAxis, b as ChartAxisSchema, g as ChartConfig, f as ChartConfigSchema, e as ChartInteractionSchema, j as ChartSeries, c as ChartSeriesSchema, a as ChartType, C as ChartTypeSchema, aY as ColorPalette, aN as ColorPaletteSchema, aM as ComponentProps, aL as ComponentPropsMap, a3 as Dashboard, p as DashboardNavItem, D as DashboardNavItemSchema, a2 as DashboardSchema, a4 as DashboardWidget, a1 as DashboardWidgetSchema, aE as FieldWidgetProps, aD as FieldWidgetPropsSchema, W as FormField, F as FormFieldSchema, R as FormSection, B as FormSectionSchema, Q as FormView, E as FormViewSchema, w as GanttConfigSchema, s as GroupNavItem, G as GroupNavItemSchema, a0 as HttpMethod, H as HttpMethodSchema, $ as HttpRequest, t as HttpRequestSchema, K as KanbanConfigSchema, T as ListColumn, L as ListColumnSchema, M as ListView, z as ListViewSchema, Y as NavigationConfig, y as NavigationConfigSchema, n as NavigationItem, N as NavigationItemSchema, x as NavigationModeSchema, o as ObjectNavItem, O as ObjectNavItemSchema, ar as Page, aH as PageCardProps, as as PageComponent, ao as PageComponentSchema, an as PageComponentType, aF as PageHeaderProps, q as PageNavItem, P as PageNavItemSchema, at as PageRegion, am as PageRegionSchema, aq as PageSchema, aG as PageTabsProps, ap as PageVariableSchema, Z as PaginationConfig, u as PaginationConfigSchema, aI as RecordDetailsProps, aK as RecordHighlightsProps, aJ as RecordRelatedListProps, aa as Report, ad as ReportChart, ah as ReportChartInput, a8 as ReportChartSchema, ab as ReportColumn, af as ReportColumnInput, a6 as ReportColumnSchema, ac as ReportGrouping, ag as ReportGroupingInput, a7 as ReportGroupingSchema, ae as ReportInput, a9 as ReportSchema, a5 as ReportType, X as SelectionConfig, S as SelectionConfigSchema, b0 as Shadow, aR as ShadowSchema, a_ as Spacing, aP as SpacingSchema, aX as Theme, aV as ThemeMode, aW as ThemeSchema, aZ as Typography, aO as TypographySchema, r as UrlNavItem, U as UrlNavItemSchema, J as View, _ as ViewData, V as ViewDataSchema, I as ViewSchema, ax as WidgetEvent, aw as WidgetEventSchema, av as WidgetLifecycle, au as WidgetLifecycleSchema, aC as WidgetManifest, aB as WidgetManifestSchema, az as WidgetProperty, ay as WidgetPropertySchema, aA as WidgetSourceSchema, b3 as ZIndex, aU as ZIndexSchema } from '../index-BnXuc_HO.js';
2
2
  import 'zod';
3
3
  import '../filter.zod-BMWnz4HE.js';
@@ -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": {