@salsita-ai/sdk 0.50.0-develop.f16492b14e → 0.50.0-develop.f354d3576d

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 (884) hide show
  1. package/README.md +4 -2
  2. package/dist/admin/AdminShell.js +1 -1
  3. package/dist/admin/common/admin-interface.d.ts +1 -1
  4. package/dist/admin/legacy-admin/Application.js +1 -1
  5. package/dist/application-spec/caching/index.d.ts +6 -1
  6. package/dist/application-spec/caching/index.js +1 -1
  7. package/dist/application-spec/errors/diagnostic-codes.d.ts +1 -0
  8. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  9. package/dist/application-spec/errors/diagnostic-messages.d.ts +1 -0
  10. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  11. package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +0 -19
  12. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  13. package/dist/application-spec/generate-application/code/templates/gitignore.js +2 -1
  14. package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
  15. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  16. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +5 -4
  17. package/dist/application-spec/generate-application/code/templates/skills/core/cli.d.ts +2 -0
  18. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -0
  19. package/dist/application-spec/generate-application/code/templates/skills/core/index.d.ts +3 -0
  20. package/dist/application-spec/generate-application/code/templates/skills/core/index.js +1 -0
  21. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.d.ts +2 -0
  22. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +118 -0
  23. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.d.ts +2 -0
  24. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +44 -0
  25. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/application-states.d.ts +3 -0
  26. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/application-states.js +3 -0
  27. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/index.d.ts +1 -0
  28. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/index.js +1 -0
  29. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/navigation.d.ts +3 -0
  30. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/navigation.js +48 -0
  31. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.d.ts +3 -0
  32. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.js +38 -0
  33. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/selection.d.ts +3 -0
  34. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/selection.js +35 -0
  35. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.d.ts +3 -0
  36. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +61 -0
  37. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.d.ts +3 -0
  38. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +7 -0
  39. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/finalization-actions.d.ts +3 -0
  40. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/finalization-actions.js +79 -0
  41. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/index.d.ts +1 -0
  42. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/index.js +1 -0
  43. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/messages.d.ts +3 -0
  44. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/messages.js +52 -0
  45. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +3 -0
  46. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +49 -0
  47. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/scene-and-safe-area.d.ts +3 -0
  48. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/scene-and-safe-area.js +62 -0
  49. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/slots.d.ts +3 -0
  50. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/slots.js +40 -0
  51. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/tabs-and-steps.d.ts +3 -0
  52. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/tabs-and-steps.js +65 -0
  53. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/toolbar-actions.d.ts +3 -0
  54. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/toolbar-actions.js +58 -0
  55. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/view-mode.d.ts +3 -0
  56. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/view-mode.js +41 -0
  57. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-components.d.ts +3 -0
  58. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-components.js +24 -0
  59. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-hooks.d.ts +3 -0
  60. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-hooks.js +44 -0
  61. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.d.ts +3 -0
  62. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +74 -0
  63. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/domain-controls.d.ts +3 -0
  64. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/domain-controls.js +8 -0
  65. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/index.d.ts +1 -0
  66. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/index.js +1 -0
  67. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.d.ts +3 -0
  68. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +48 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.d.ts +3 -0
  70. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +64 -0
  71. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.d.ts +3 -0
  72. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +62 -0
  73. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/domain-model.d.ts +3 -0
  74. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/domain-model.js +1 -0
  75. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/entities-and-relations.d.ts +3 -0
  76. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/entities-and-relations.js +59 -0
  77. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.d.ts +3 -0
  78. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +46 -0
  79. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/index.d.ts +1 -0
  80. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/index.js +1 -0
  81. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/transformers.d.ts +3 -0
  82. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/transformers.js +43 -0
  83. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/validation-and-repair.d.ts +3 -0
  84. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/validation-and-repair.js +30 -0
  85. package/dist/application-spec/generate-application/code/templates/skills/features/features.d.ts +3 -0
  86. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -0
  87. package/dist/application-spec/generate-application/code/templates/skills/features/index.d.ts +1 -0
  88. package/dist/application-spec/generate-application/code/templates/skills/features/index.js +1 -0
  89. package/dist/application-spec/generate-application/code/templates/skills/features/inspection.d.ts +2 -0
  90. package/dist/application-spec/generate-application/code/templates/skills/features/inspection.js +1 -0
  91. package/dist/application-spec/generate-application/code/templates/skills/features/localization.d.ts +3 -0
  92. package/dist/application-spec/generate-application/code/templates/skills/features/localization.js +87 -0
  93. package/dist/application-spec/generate-application/code/templates/skills/features/scene-objects.d.ts +3 -0
  94. package/dist/application-spec/generate-application/code/templates/skills/features/scene-objects.js +43 -0
  95. package/dist/application-spec/generate-application/code/templates/skills/features/state/index.d.ts +1 -0
  96. package/dist/application-spec/generate-application/code/templates/skills/features/state/index.js +1 -0
  97. package/dist/application-spec/generate-application/code/templates/skills/features/state/slices.d.ts +3 -0
  98. package/dist/application-spec/generate-application/code/templates/skills/features/state/slices.js +48 -0
  99. package/dist/application-spec/generate-application/code/templates/skills/features/state/state.d.ts +3 -0
  100. package/dist/application-spec/generate-application/code/templates/skills/features/state/state.js +1 -0
  101. package/dist/application-spec/generate-application/code/templates/skills/features/state/updates.d.ts +3 -0
  102. package/dist/application-spec/generate-application/code/templates/skills/features/state/updates.js +39 -0
  103. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.d.ts +3 -0
  104. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +36 -0
  105. package/dist/application-spec/generate-application/code/templates/skills/features/variants.d.ts +2 -0
  106. package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -0
  107. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +2 -0
  108. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +1 -0
  109. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +68 -0
  110. package/dist/application-spec/generate-application/code/templates/skills/guide.js +18 -0
  111. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +2 -2
  112. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +12 -5
  113. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.d.ts +9 -0
  114. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -0
  115. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.d.ts +2 -0
  116. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +23 -0
  117. package/dist/application-spec/generate-application/code/templates/skills/{phoenix-skill.d.ts → processes/beta.d.ts} +2 -1
  118. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.js +4 -0
  119. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/evaluate.d.ts +2 -0
  120. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/evaluate.js +38 -0
  121. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/feedback.d.ts +3 -0
  122. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/feedback.js +1 -0
  123. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/index.d.ts +1 -0
  124. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/index.js +1 -0
  125. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.d.ts +2 -0
  126. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +7 -0
  127. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/send.d.ts +2 -0
  128. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/send.js +2 -0
  129. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.d.ts +2 -0
  130. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -0
  131. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.d.ts +2 -0
  132. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +25 -0
  133. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.d.ts +2 -0
  134. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +35 -0
  135. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.d.ts +3 -0
  136. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +3 -0
  137. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.d.ts +2 -0
  138. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +9 -0
  139. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/index.d.ts +1 -0
  140. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/index.js +1 -0
  141. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +8 -0
  142. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -0
  143. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.d.ts +2 -0
  144. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -0
  145. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.d.ts +2 -0
  146. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +46 -0
  147. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.d.ts +2 -0
  148. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +2 -0
  149. package/dist/application-spec/generate-application/code/templates/skills/processes/review/hand-over.d.ts +2 -0
  150. package/dist/application-spec/generate-application/code/templates/skills/processes/review/hand-over.js +6 -0
  151. package/dist/application-spec/generate-application/code/templates/skills/processes/review/index.d.ts +1 -0
  152. package/dist/application-spec/generate-application/code/templates/skills/processes/review/index.js +1 -0
  153. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.d.ts +3 -0
  154. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -0
  155. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.d.ts +2 -0
  156. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +13 -0
  157. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/branding.d.ts +2 -0
  158. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/branding.js +20 -0
  159. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/catalog.d.ts +2 -0
  160. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/catalog.js +1 -0
  161. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/index.d.ts +1 -0
  162. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/index.js +1 -0
  163. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.d.ts +2 -0
  164. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +22 -0
  165. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.d.ts +3 -0
  166. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -0
  167. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +2 -0
  168. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +25 -0
  169. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +51 -258
  170. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +3 -58
  171. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.d.ts +9 -0
  172. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -0
  173. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +1 -1
  174. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -1
  175. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -4
  176. package/dist/application-spec/generate-application/code/templates/tsconfig.js +2 -1
  177. package/dist/application-spec/generate-application/index.d.ts +1 -8
  178. package/dist/application-spec/generate-application/index.js +1 -1
  179. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +1 -1
  180. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  181. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  182. package/dist/client/authorized-client.d.ts +1 -1
  183. package/dist/client/authorized-client.js +1 -1
  184. package/dist/client/contract.d.ts +21 -8
  185. package/dist/client/contract.js +1 -1
  186. package/dist/client/phoenix-api.d.ts +43 -5
  187. package/dist/configurator/ConfiguratorApp.js +1 -1
  188. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  189. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +31 -0
  190. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +123 -24
  191. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  192. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +43 -0
  193. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  194. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +8 -2
  195. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  196. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/capture-next-frame.d.ts +10 -0
  197. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/capture-next-frame.js +1 -0
  198. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +8 -0
  199. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  200. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +3 -2
  201. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  202. package/dist/configurator/common/configurator-interface.d.ts +1 -1
  203. package/dist/configurator/pages/default-configurator-elements.d.ts +6 -2
  204. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  205. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.d.ts +5 -0
  206. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.js +1 -0
  207. package/dist/configurator/pages/error-boundaries/index.d.ts +1 -0
  208. package/dist/configurator/pages/error-boundaries/index.js +1 -1
  209. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.d.ts +3 -0
  210. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.js +1 -0
  211. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.d.ts +3 -0
  212. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.js +1 -0
  213. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.d.ts +3 -0
  214. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.js +1 -0
  215. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.d.ts +3 -0
  216. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.js +1 -0
  217. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.d.ts +3 -0
  218. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.js +1 -0
  219. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.d.ts +3 -0
  220. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.js +1 -0
  221. package/dist/configurator/pages/provider-slots/index.d.ts +6 -0
  222. package/dist/configurator/pages/provider-slots/index.js +1 -0
  223. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.d.ts +2 -0
  224. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.js +1 -0
  225. package/dist/configurator/pages/ui-elements/configurator-ui-elements.d.ts +3 -0
  226. package/dist/configurator/pages/ui-elements/configurator-ui-elements.js +1 -0
  227. package/dist/configurator/pages/ui-elements/index.d.ts +2 -0
  228. package/dist/configurator/pages/ui-elements/index.js +1 -0
  229. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  230. package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -0
  231. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  232. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +6 -0
  233. package/dist/configurator/ui/assistant/AssistantComposer.js +2 -1
  234. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  235. package/dist/configurator/ui/assistant/AssistantThread.d.ts +4 -3
  236. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  237. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +4 -1
  238. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
  239. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +9 -0
  240. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -0
  241. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +6 -0
  242. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.js +1 -0
  243. package/dist/configurator/ui/assistant/annotation/AnnotationPin.d.ts +14 -0
  244. package/dist/configurator/ui/assistant/annotation/AnnotationPin.js +1 -0
  245. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.d.ts +12 -0
  246. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -0
  247. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.d.ts +11 -0
  248. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -0
  249. package/dist/configurator/ui/assistant/annotation/annotation-host-context.d.ts +5 -0
  250. package/dist/configurator/ui/assistant/annotation/annotation-host-context.js +1 -0
  251. package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +26 -0
  252. package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -0
  253. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +15 -0
  254. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -0
  255. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +18 -0
  256. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -0
  257. package/dist/configurator/ui/assistant/annotation/editor/annotation-drawing.d.ts +22 -0
  258. package/dist/configurator/ui/assistant/annotation/editor/annotation-drawing.js +1 -0
  259. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +22 -0
  260. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -0
  261. package/dist/configurator/ui/assistant/annotation/editor/flatten-annotation.d.ts +17 -0
  262. package/dist/configurator/ui/assistant/annotation/editor/flatten-annotation.js +1 -0
  263. package/dist/configurator/ui/assistant/annotation/editor/index.d.ts +1 -0
  264. package/dist/configurator/ui/assistant/annotation/editor/index.js +1 -0
  265. package/dist/configurator/ui/assistant/annotation/index.d.ts +4 -0
  266. package/dist/configurator/ui/assistant/annotation/index.js +1 -0
  267. package/dist/configurator/ui/assistant/annotation/prefers-reduced-motion.d.ts +2 -0
  268. package/dist/configurator/ui/assistant/annotation/prefers-reduced-motion.js +1 -0
  269. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.d.ts +6 -0
  270. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +1 -0
  271. package/dist/configurator/ui/assistant/assistant-failure.d.ts +15 -7
  272. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  273. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +19 -0
  274. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
  275. package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
  276. package/dist/configurator/ui/assistant/attachments/index.js +1 -0
  277. package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +24 -0
  278. package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
  279. package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +15 -0
  280. package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -0
  281. package/dist/configurator/ui/assistant/composer/index.d.ts +1 -0
  282. package/dist/configurator/ui/assistant/composer/index.js +1 -0
  283. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  284. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  285. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +26 -0
  286. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
  287. package/dist/configurator/ui/assistant/index.d.ts +1 -0
  288. package/dist/configurator/ui/assistant/index.js +1 -1
  289. package/dist/configurator/ui/assistant/popover/AssistantPopover.d.ts +24 -0
  290. package/dist/configurator/ui/assistant/popover/AssistantPopover.js +1 -0
  291. package/dist/configurator/ui/assistant/popover/index.d.ts +1 -0
  292. package/dist/configurator/ui/assistant/popover/index.js +1 -0
  293. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
  294. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -1
  295. package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -0
  296. package/dist/configurator/ui/assistant/screenshots/index.js +1 -1
  297. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +3 -9
  298. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  299. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +4 -4
  300. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  301. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +11 -0
  302. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  303. package/dist/configurator/ui/assistant/thread-items.d.ts +5 -0
  304. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  305. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  306. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +22 -0
  307. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -0
  308. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  309. package/dist/docs/3d-scene/animations-basic.mdx +0 -4
  310. package/dist/docs/3d-scene/camera-based-hiding.mdx +0 -2
  311. package/dist/docs/3d-scene/cameras/custom.mdx +0 -2
  312. package/dist/docs/3d-scene/cameras/fit-during-drag.mdx +0 -4
  313. package/dist/docs/3d-scene/cameras/locks.mdx +0 -4
  314. package/dist/docs/3d-scene/cameras/transitions.mdx +0 -2
  315. package/dist/docs/3d-scene/engraving.mdx +0 -4
  316. package/dist/docs/3d-scene/materials/custom.mdx +1 -2
  317. package/dist/docs/3d-scene/materials/inherit.mdx +0 -4
  318. package/dist/docs/3d-scene/materials/multilevel.mdx +0 -47
  319. package/dist/docs/3d-scene/materials/override.mdx +0 -4
  320. package/dist/docs/3d-scene/materials/simple.mdx +0 -4
  321. package/dist/docs/3d-scene/materials/transformer.mdx +0 -4
  322. package/dist/docs/3d-scene/materials/transition.mdx +0 -4
  323. package/dist/docs/3d-scene/materials/transmissive.mdx +0 -4
  324. package/dist/docs/3d-scene/postprocessing.mdx +0 -2
  325. package/dist/docs/3d-scene/rendering/basic.mdx +5 -9
  326. package/dist/docs/3d-scene/rendering/custom-entity.mdx +0 -6
  327. package/dist/docs/3d-scene/rendering/lights/ambient-light.mdx +0 -2
  328. package/dist/docs/3d-scene/rendering/lights/directional-light.mdx +0 -2
  329. package/dist/docs/3d-scene/rendering/lights/point-light.mdx +0 -2
  330. package/dist/docs/3d-scene/rendering/lights/rect-area-light.mdx +0 -2
  331. package/dist/docs/3d-scene/rendering/lights/spot-light.mdx +0 -2
  332. package/dist/docs/3d-scene/rendering/object-groups.mdx +0 -2
  333. package/dist/docs/3d-scene/rendering/objects.mdx +0 -4
  334. package/dist/docs/3d-scene/rendering/scene-entity-object.mdx +0 -43
  335. package/dist/docs/3d-scene/rendering/smma.mdx +0 -2
  336. package/dist/docs/3d-scene/rendering/soft-shadows.mdx +0 -2
  337. package/dist/docs/3d-scene/rendering/transformer.mdx +1 -3
  338. package/dist/docs/complex-use-cases/custom-ui-on-root-level.mdx +0 -1
  339. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +19 -19
  340. package/dist/docs/complex-use-cases/navigation-guard.mdx +81 -19
  341. package/dist/docs/complex-use-cases/navigation-reset-selection.mdx +28 -65
  342. package/dist/docs/complex-use-cases/navigation-reset-undo.mdx +16 -20
  343. package/dist/docs/complex-use-cases/sketching.mdx +2 -10
  344. package/dist/docs/controls/custom.mdx +88 -87
  345. package/dist/docs/controls/manage-child-entities/entitychildrenlist.mdx +0 -4
  346. package/dist/docs/controls/nullable-attributes.mdx +0 -2
  347. package/dist/docs/controls/scene/custom-controls.mdx +7 -8
  348. package/dist/docs/controls/scene/html-hotspots.mdx +0 -4
  349. package/dist/docs/controls/scene/object-html-hotspots.mdx +0 -4
  350. package/dist/docs/controls/select-attribute/cardselect.mdx +0 -4
  351. package/dist/docs/controls/select-attribute/listselect.mdx +0 -4
  352. package/dist/docs/controls/select-attribute/select.mdx +0 -4
  353. package/dist/docs/controls/select-attribute/swatchselect.mdx +0 -4
  354. package/dist/docs/controls/select-attribute/switchselect.mdx +0 -4
  355. package/dist/docs/controls/select-attribute/toggleselect.mdx +0 -4
  356. package/dist/docs/controls/select-child-entity/cardselect.mdx +2 -6
  357. package/dist/docs/controls/select-child-entity/listselect.mdx +5 -11
  358. package/dist/docs/controls/select-child-entity/toggleselect.mdx +4 -10
  359. package/dist/docs/controls/text-input.mdx +90 -19
  360. package/dist/docs/demos/glass.mdx +0 -4
  361. package/dist/docs/demos/heater.mdx +0 -10
  362. package/dist/docs/demos/office-chair.mdx +0 -8
  363. package/dist/docs/demos/office-desk.mdx +0 -8
  364. package/dist/docs/demos/ring.mdx +0 -9
  365. package/dist/docs/dimensions/3d-scene-integration/angle-indicators.mdx +0 -2
  366. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +0 -2
  367. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +0 -2
  368. package/dist/docs/dimensions/3d-scene-integration/editable-offset-indicator.mdx +0 -6
  369. package/dist/docs/dimensions/3d-scene-integration/editable-size-indicator.mdx +0 -4
  370. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +0 -4
  371. package/dist/docs/dimensions/3d-scene-integration/offset-indicator.mdx +0 -6
  372. package/dist/docs/dimensions/3d-scene-integration/overlap-offset-demo.mdx +0 -6
  373. package/dist/docs/dimensions/input-controls/distance-slider.mdx +6 -6
  374. package/dist/docs/dimensions/selection-controls/list-selector.mdx +0 -2
  375. package/dist/docs/dimensions/selection-controls/toggle-selector.mdx +0 -2
  376. package/dist/docs/drag-and-drop/drag-handle.mdx +0 -1
  377. package/dist/docs/drag-and-drop/hotspot-handle.mdx +0 -1
  378. package/dist/docs/drag-and-drop/no-selection.mdx +0 -1
  379. package/dist/docs/drag-and-drop/planes.mdx +0 -3
  380. package/dist/docs/drag-and-drop/room-planner.mdx +0 -6
  381. package/dist/docs/drag-and-drop/rotatable.mdx +0 -1
  382. package/dist/docs/drag-and-drop/snapping/auto-rotation-demo.mdx +0 -2
  383. package/dist/docs/drag-and-drop/snapping/label-matching-demo.mdx +0 -2
  384. package/dist/docs/drag-and-drop/snapping/multi-snap-composition-demo.mdx +0 -2
  385. package/dist/docs/drag-and-drop/snapping/nested-entity-demo.mdx +0 -2
  386. package/dist/docs/drag-and-drop/snapping/priority-demo.mdx +0 -2
  387. package/dist/docs/drag-and-drop/snapping/snap-axis-demo.mdx +0 -2
  388. package/dist/docs/drag-and-drop/snapping/snap-edge-demo.mdx +0 -2
  389. package/dist/docs/drag-and-drop/snapping/snap-plane-demo.mdx +0 -5
  390. package/dist/docs/drag-and-drop/snapping/snap-point-demo.mdx +0 -2
  391. package/dist/docs/drag-and-drop/spatial-constraints/collision-system.mdx +0 -2
  392. package/dist/docs/drag-and-drop/spatial-constraints/disjoint-and-within.mdx +0 -6
  393. package/dist/docs/drag-and-drop/spatial-constraints/geometry-override.mdx +0 -4
  394. package/dist/docs/drag-and-drop/spatial-constraints/multiple-collision-meshes.mdx +0 -4
  395. package/dist/docs/drag-and-drop/spatial-constraints/touches.mdx +0 -4
  396. package/dist/docs/drag-and-drop/swap.mdx +0 -4
  397. package/dist/docs/fabs/basic.mdx +8 -12
  398. package/dist/docs/fabs/layout.mdx +0 -7
  399. package/dist/docs/index.json +4 -4
  400. package/dist/docs/integrations/lifecycle-providers.mdx +0 -12
  401. package/dist/docs/integrations/onloadprovider.mdx +0 -3
  402. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -2
  403. package/dist/docs/integrations/webcomponent-api/preset-tags.mdx +0 -1
  404. package/dist/docs/layouts/custom-layout.mdx +1 -41
  405. package/dist/docs/layouts/custom-price.mdx +0 -2
  406. package/dist/docs/layouts/custom-theme-handler.mdx +0 -4
  407. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3 -34
  408. package/dist/docs/layouts/gallery/corvid-drone.mdx +0 -29
  409. package/dist/docs/layouts/gallery/fenwick-window.mdx +0 -25
  410. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +0 -27
  411. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +0 -29
  412. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +2 -35
  413. package/dist/docs/layouts/gallery/sunfold-solar.mdx +0 -26
  414. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +0 -46
  415. package/dist/docs/layouts/header/custom.mdx +0 -2
  416. package/dist/docs/layouts/icon-sets.mdx +0 -6
  417. package/dist/docs/layouts/phoenix-elements.mdx +0 -4
  418. package/dist/docs/layouts/phoenix-handlers.mdx +19 -28
  419. package/dist/docs/layouts/presets/action-and-overlay.mdx +0 -8
  420. package/dist/docs/layouts/presets/custom.mdx +6 -13
  421. package/dist/docs/layouts/preview/always-expand.mdx +4 -14
  422. package/dist/docs/layouts/preview/always.mdx +4 -14
  423. package/dist/docs/layouts/preview/auto-presets.mdx +4 -14
  424. package/dist/docs/layouts/preview/auto.mdx +4 -14
  425. package/dist/docs/layouts/preview/never.mdx +4 -14
  426. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +18 -13
  427. package/dist/docs/layouts/sidebar/property-page-stack.mdx +0 -2
  428. package/dist/docs/layouts/sidebar/property-page.mdx +0 -2
  429. package/dist/docs/layouts/sidebar/tabs.mdx +0 -4
  430. package/dist/docs/layouts/sidebar-footer/custom.mdx +0 -2
  431. package/dist/docs/layouts/sidebar-footer/universal.mdx +0 -10
  432. package/dist/docs/layouts/tool-controls.mdx +0 -1
  433. package/dist/docs/layouts/toolbar.mdx +0 -4
  434. package/dist/docs/layouts/universal.mdx +2 -10
  435. package/dist/docs/other-features/client-side-rendering/camera-padding.mdx +0 -2
  436. package/dist/docs/other-features/client-side-rendering/custom.mdx +0 -6
  437. package/dist/docs/other-features/client-side-rendering/declarative.mdx +0 -4
  438. package/dist/docs/other-features/client-side-rendering/postprocessing.mdx +0 -6
  439. package/dist/docs/other-features/component-filters.mdx +0 -7
  440. package/dist/docs/other-features/currency.mdx +5 -6
  441. package/dist/docs/other-features/domain-actions.mdx +0 -5
  442. package/dist/docs/other-features/dynamic-component-attachments.mdx +75 -46
  443. package/dist/docs/other-features/error-5xx.mdx +0 -2
  444. package/dist/docs/other-features/navigation-hotspot.mdx +0 -5
  445. package/dist/docs/other-features/not-found-404.mdx +0 -2
  446. package/dist/docs/other-features/projected-entities.mdx +0 -5
  447. package/dist/docs/other-features/side-effects.mdx +0 -7
  448. package/dist/docs/other-features/transformers.mdx +101 -96
  449. package/dist/docs/other-features/violation-messages.mdx +0 -4
  450. package/dist/docs/other-features/violation-severity.mdx +2 -3
  451. package/dist/docs/performance/clone-highlight.mdx +0 -7
  452. package/dist/docs/performance/dynamic-components.mdx +0 -6
  453. package/dist/docs/performance/editable-dimension-stress-test.mdx +0 -2
  454. package/dist/docs/performance/fast-highlight.mdx +0 -7
  455. package/dist/docs/performance/general.mdx +0 -7
  456. package/dist/docs/performance/render-isolation.mdx +0 -6
  457. package/dist/docs/phoenix/admin.mdx +75 -100
  458. package/dist/docs/phoenix/application-states.mdx +45 -27
  459. package/dist/docs/phoenix/components.mdx +53 -46
  460. package/dist/docs/phoenix/configurator-interface.mdx +196 -116
  461. package/dist/docs/phoenix/deployments.mdx +11 -1
  462. package/dist/docs/phoenix/domain-model.mdx +20 -15
  463. package/dist/docs/phoenix/expression-context.mdx +3 -29
  464. package/dist/docs/phoenix/getting-started.mdx +0 -2
  465. package/dist/docs/phoenix/localization.mdx +64 -54
  466. package/dist/docs/phoenix/migration-guide.mdx +10 -11
  467. package/dist/docs/phoenix/phoenix-cli.mdx +21 -12
  468. package/dist/docs/phoenix/project-structure.mdx +52 -59
  469. package/dist/docs/phoenix/quickstart.mdx +1 -3
  470. package/dist/docs/phoenix/sdk-builder-workflow.mdx +3 -9
  471. package/dist/docs/phoenix/state-management.mdx +18 -16
  472. package/dist/docs/phoenix/testing.mdx +6 -1
  473. package/dist/docs/phoenix/webhooks.mdx +4 -0
  474. package/dist/docs/recipes-and-delete/delete-entity.mdx +3 -6
  475. package/dist/docs/recipes-and-delete/dynamic-root-entity.mdx +0 -2
  476. package/dist/docs/recipes-and-delete/grouped-button.mdx +0 -3
  477. package/dist/docs/recipes-and-delete/grouped-panel.mdx +0 -3
  478. package/dist/docs/recipes-and-delete/horizontal.mdx +3 -6
  479. package/dist/docs/recipes-and-delete/recipe-hierarchy-lists.mdx +0 -3
  480. package/dist/docs/recipes-and-delete/recipe-hierarchy-selection.mdx +0 -5
  481. package/dist/docs/recipes-and-delete/replace-dropdown.mdx +3 -6
  482. package/dist/docs/recipes-and-delete/replace-panel.mdx +0 -7
  483. package/dist/docs/recipes-and-delete/simple.mdx +3 -6
  484. package/dist/docs/recipes-and-delete/vertical.mdx +3 -6
  485. package/dist/docs/relations/aliases.mdx +0 -2
  486. package/dist/docs/relations/all-of-type.mdx +0 -4
  487. package/dist/docs/relations/child-nullable.mdx +0 -4
  488. package/dist/docs/relations/child-required.mdx +0 -2
  489. package/dist/docs/relations/collection-direct.mdx +0 -4
  490. package/dist/docs/relations/collection-indirect.mdx +0 -4
  491. package/dist/docs/relations/collection-multiple.mdx +0 -2
  492. package/dist/docs/relations/cross-reference.mdx +0 -2
  493. package/dist/docs/relations/hierarchy.mdx +0 -2
  494. package/dist/docs/selection-and-highlight/canvas.mdx +0 -1
  495. package/dist/docs/selection-and-highlight/disable-highlight-per-object.mdx +0 -1
  496. package/dist/docs/selection-and-highlight/disable-highlight.mdx +0 -1
  497. package/dist/docs/selection-and-highlight/effects/outline.mdx +0 -3
  498. package/dist/docs/selection-and-highlight/effects/overlay.mdx +0 -3
  499. package/dist/docs/selection-and-highlight/fast-emissive-highlight.mdx +0 -3
  500. package/dist/docs/selection-and-highlight/group-highlighting.mdx +0 -1
  501. package/dist/docs/selection-and-highlight/hierarchy.mdx +100 -151
  502. package/dist/docs/selection-and-highlight/hotspots.mdx +0 -1
  503. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +1 -1
  504. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  505. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  506. package/dist/domain/application/application-config.d.ts +1 -3
  507. package/dist/domain/application/assistant/assistant-fields.d.ts +1 -1
  508. package/dist/domain/application/assistant/assistant-value-type.d.ts +1 -1
  509. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +1 -2
  510. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +1 -2
  511. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +1 -2
  512. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  513. package/dist/domain/application/assistant/index.d.ts +0 -4
  514. package/dist/domain/application/assistant/index.js +1 -1
  515. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +1 -1
  516. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +1 -1
  517. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  518. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +1 -1
  519. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +1 -2
  520. package/dist/domain/application/assistant-field-options.d.ts +1 -1
  521. package/dist/domain/application/assistant-mutations.d.ts +1 -1
  522. package/dist/domain/application/assistant-recipe-groups.d.ts +1 -1
  523. package/dist/domain/application/configurator-builder.d.ts +1 -2
  524. package/dist/domain/application/create-initial-published-data.d.ts +2 -1
  525. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  526. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  527. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  528. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  529. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  530. package/dist/domain/core/invariant/violation.d.ts +3 -2
  531. package/dist/domain/domain-builder/domain-builder.d.ts +1 -1
  532. package/dist/domain/domain-builder/domain-builder.js +1 -1
  533. package/dist/domain/domain-context/transformers/context.d.ts +4 -2
  534. package/dist/domain/domain-context/transformers/when-builder.d.ts +2 -1
  535. package/dist/domain/domain-runtime/domain-runtime.d.ts +24 -24
  536. package/dist/domain/domain-runtime/index.d.ts +0 -1
  537. package/dist/domain/domain-runtime/index.js +1 -1
  538. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +1 -1
  539. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -1
  540. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  541. package/dist/domain/domain-runtime/spec/index.js +1 -1
  542. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  543. package/dist/domain/domain-runtime/spec/{module-checks/resolve-imported-transformers.d.ts → resolve-imported-transformers.d.ts} +3 -3
  544. package/dist/domain/domain-runtime/spec/resolve-imported-transformers.js +1 -0
  545. package/dist/domain/domain-runtime/spec/selectors.d.ts +5 -5
  546. package/dist/domain/domain-runtime/spec/types.d.ts +2 -2
  547. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +6 -0
  548. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  549. package/dist/domain/extensions/export-images/index.d.ts +1 -1
  550. package/dist/domain/extensions/export-images/index.js +1 -1
  551. package/dist/domain/extensions/index.d.ts +1 -1
  552. package/dist/domain/extensions/index.js +1 -1
  553. package/dist/domain/index.d.ts +13 -1
  554. package/dist/domain/index.js +1 -1
  555. package/dist/domain/mocks/create-test-application-config.d.ts +1 -1
  556. package/dist/domain/spec/index.d.ts +3 -8
  557. package/dist/domain/spec/index.js +1 -1
  558. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/element-registration.d.ts +1 -1
  559. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/find-assistant-form-element-errors.d.ts +1 -1
  560. package/dist/domain/spec/modules/find-assistant-form-element-errors.js +1 -0
  561. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/index.d.ts +2 -3
  562. package/dist/domain/spec/modules/index.js +1 -0
  563. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/merge-expression-modules.d.ts +2 -2
  564. package/dist/domain/spec/modules/merge-expression-modules.js +1 -0
  565. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/project-modules.d.ts +1 -1
  566. package/dist/domain/spec/modules/project-modules.js +1 -0
  567. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-action-modules.d.ts +1 -1
  568. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-component-optic-modules.d.ts +1 -1
  569. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-expression-modules.d.ts +1 -1
  570. package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-invariant-modules.d.ts +1 -1
  571. package/dist/domain/spec/phx/index.d.ts +1 -0
  572. package/dist/domain/spec/phx/index.js +1 -0
  573. package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx-application-types.d.ts +1 -1
  574. package/dist/domain/spec/phx/phx-application-types.js +1 -0
  575. package/dist/domain/spec/phx/phx-domain.js +1 -0
  576. package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx-model.d.ts +2 -2
  577. package/dist/domain/spec/phx/phx-model.js +1 -0
  578. package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx.d.ts +1 -2
  579. package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/admin-runtime.d.ts +7 -6
  580. package/dist/domain/spec/runtime/admin-runtime/admin-runtime.js +1 -0
  581. package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/admin-spec-runtime.d.ts +2 -2
  582. package/dist/domain/spec/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  583. package/dist/domain/spec/runtime/admin-runtime/index.d.ts +2 -0
  584. package/dist/domain/spec/runtime/admin-runtime/index.js +1 -0
  585. package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/states-runtime.d.ts +1 -1
  586. package/dist/{application-spec/generate-application → domain/spec}/runtime/application-runtime.d.ts +8 -6
  587. package/dist/domain/spec/runtime/application-runtime.js +1 -0
  588. package/dist/{application-spec/generate-application → domain/spec}/runtime/application-spec-slice.d.ts +3 -1
  589. package/dist/domain/spec/runtime/application-spec-slice.js +1 -0
  590. package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/configurator-runtime.d.ts +8 -10
  591. package/dist/domain/spec/runtime/configurator-runtime/configurator-runtime.js +1 -0
  592. package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/configurator-spec-runtime.d.ts +2 -2
  593. package/dist/domain/spec/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  594. package/dist/domain/spec/runtime/configurator-runtime/index.d.ts +2 -0
  595. package/dist/domain/spec/runtime/configurator-runtime/index.js +1 -0
  596. package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/states-runtime.d.ts +1 -1
  597. package/dist/{application-spec/generate-application → domain/spec}/runtime/create-application.d.ts +3 -2
  598. package/dist/domain/spec/runtime/create-application.js +1 -0
  599. package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/expression-runtime.d.ts +5 -2
  600. package/dist/domain/spec/runtime/expressions/expression-runtime.js +1 -0
  601. package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/generate-memo-eval-plan-runtime.d.ts +2 -1
  602. package/dist/domain/spec/runtime/expressions/generate-memo-eval-plan-runtime.js +1 -0
  603. package/dist/domain/spec/runtime/expressions/index.d.ts +3 -0
  604. package/dist/domain/spec/runtime/expressions/index.js +1 -0
  605. package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/reflection-constants-runtime.d.ts +2 -1
  606. package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/factory-data-runtime.d.ts +4 -2
  607. package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/recipe-defaults.d.ts +1 -1
  608. package/dist/domain/spec/runtime/factory-data/recipe-defaults.js +1 -0
  609. package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/static-violations.d.ts +2 -1
  610. package/dist/domain/spec/runtime/factory-data/static-violations.js +1 -0
  611. package/dist/{application-spec/generate-application → domain/spec}/runtime/generate-runtime-instance.d.ts +1 -1
  612. package/dist/domain/spec/runtime/generate-runtime-instance.js +1 -0
  613. package/dist/domain/spec/runtime/index.d.ts +13 -0
  614. package/dist/domain/spec/runtime/index.js +1 -0
  615. package/dist/{application-spec/generate-application → domain/spec}/runtime/migrations/migration-runtime.d.ts +2 -2
  616. package/dist/domain/spec/runtime/migrations/migration-runtime.js +1 -0
  617. package/dist/{application-spec/generate-application/runtime/admin-runtime → domain/spec/runtime/model}/admin-model-runtime.d.ts +4 -2
  618. package/dist/domain/spec/runtime/model/admin-model-runtime.js +1 -0
  619. package/dist/{application-spec/generate-application/runtime/configurator-runtime → domain/spec/runtime/model}/configurator-model-runtime.d.ts +4 -2
  620. package/dist/domain/spec/runtime/model/configurator-model-runtime.js +1 -0
  621. package/dist/domain/spec/runtime/model/index.d.ts +2 -0
  622. package/dist/domain/spec/runtime/model/index.js +1 -0
  623. package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/optics}/build-sdk-optic.d.ts +3 -4
  624. package/dist/domain/spec/runtime/optics/build-sdk-optic.js +1 -0
  625. package/dist/domain/spec/runtime/optics/build-user-bound-optic.d.ts +7 -0
  626. package/dist/domain/spec/runtime/optics/build-user-bound-optic.js +1 -0
  627. package/dist/domain/spec/runtime/optics/built-component-optic.d.ts +11 -0
  628. package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/optics}/component-optic.d.ts +4 -13
  629. package/dist/domain/spec/runtime/optics/index.d.ts +2 -0
  630. package/dist/domain/spec/runtime/optics/index.js +1 -0
  631. package/dist/{application-spec/caching → domain/spec/runtime}/runtime-reference-store.d.ts +1 -5
  632. package/dist/domain/spec/runtime/runtime-reference-store.js +1 -0
  633. package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/actions-runtime.d.ts +3 -2
  634. package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/assistant-runtime.d.ts +2 -2
  635. package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/data-runtime.d.ts +1 -1
  636. package/dist/domain/spec/runtime/sections/index.d.ts +6 -0
  637. package/dist/domain/spec/runtime/sections/index.js +1 -0
  638. package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/preset-runtime.d.ts +3 -2
  639. package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/theme-runtime.d.ts +1 -1
  640. package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/transformers-runtime.d.ts +2 -2
  641. package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/resolve-spec-code.d.ts +1 -1
  642. package/dist/domain/spec/runtime/spec-code/spec-code-module.js +1 -0
  643. package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-runtime.d.ts +3 -3
  644. package/dist/domain/spec/runtime/spec-runtime.js +1 -0
  645. package/dist/domain/spec/runtime-spec/index.d.ts +4 -0
  646. package/dist/domain/spec/runtime-spec/index.js +1 -0
  647. package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/runtime-spec.d.ts +7 -1
  648. package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/spec-code-id.d.ts +1 -1
  649. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.js +1 -0
  650. package/dist/domain/spec/sections/assistant/index.d.ts +4 -0
  651. package/dist/domain/spec/sections/assistant/index.js +1 -0
  652. package/dist/domain/spec/sections/index.d.ts +1 -0
  653. package/dist/domain/spec/sections/index.js +1 -1
  654. package/dist/domain/system-components/phoenix-entity-elements/child-entity-card-selector.d.ts +2 -3
  655. package/dist/domain/system-components/phoenix-entity-elements/child-entity-list-selector.d.ts +2 -3
  656. package/dist/domain/system-components/phoenix-entity-elements/child-entity-toggle-selector.d.ts +2 -3
  657. package/dist/i18n/locales/cs/messages.js +1 -1
  658. package/dist/i18n/locales/da/messages.js +1 -1
  659. package/dist/i18n/locales/de/messages.js +1 -1
  660. package/dist/i18n/locales/de-AT/messages.js +1 -1
  661. package/dist/i18n/locales/en/messages.js +1 -1
  662. package/dist/i18n/locales/en-AU/messages.js +1 -1
  663. package/dist/i18n/locales/en-GB/messages.js +1 -1
  664. package/dist/i18n/locales/es/messages.js +1 -1
  665. package/dist/i18n/locales/fr/messages.js +1 -1
  666. package/dist/i18n/locales/hu/messages.js +1 -1
  667. package/dist/i18n/locales/it/messages.js +1 -1
  668. package/dist/i18n/locales/nl/messages.js +1 -1
  669. package/dist/i18n/locales/pl/messages.js +1 -1
  670. package/dist/i18n/locales/pt/messages.js +1 -1
  671. package/dist/i18n/locales/ro/messages.js +1 -1
  672. package/dist/i18n/locales/sk/messages.js +1 -1
  673. package/dist/i18n/locales/tr/messages.js +1 -1
  674. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +2 -2
  675. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  676. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.d.ts +1 -0
  677. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.js +1 -1
  678. package/dist/legacy/webhook-cli/lambda-local/index.js +1 -1
  679. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  680. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  681. package/dist/phoenix/application-spec/index.d.ts +1 -0
  682. package/dist/phoenix/application-spec/index.js +1 -1
  683. package/dist/phoenix/application-spec/project-files.d.ts +8 -2
  684. package/dist/phoenix/application-spec/project-files.js +1 -1
  685. package/dist/phoenix/commands/clean.js +1 -1
  686. package/dist/phoenix/commands/deploy.js +3 -3
  687. package/dist/phoenix/commands/dev.js +4 -5
  688. package/dist/phoenix/commands/story-dev.js +2 -2
  689. package/dist/phoenix/editor-server/commands-router.js +1 -1
  690. package/dist/phoenix/editor-server/editor-server.d.ts +2 -13
  691. package/dist/phoenix/editor-server/editor-server.js +1 -1
  692. package/dist/phoenix/editor-server/spec-router.js +1 -1
  693. package/dist/phoenix/editor-server/trpc.d.ts +2 -12
  694. package/dist/phoenix/lingui/lingui.d.ts +4 -4
  695. package/dist/phoenix/scripts/docs-utils.js +1 -1
  696. package/dist/phoenix/services/application-spec-project-watcher.d.ts +11 -8
  697. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  698. package/dist/phoenix/services/deployment/deployment-preparation-service.d.ts +28 -0
  699. package/dist/phoenix/services/deployment/deployment-preparation-service.js +1 -0
  700. package/dist/phoenix/services/deployment/index.d.ts +2 -0
  701. package/dist/phoenix/services/deployment/index.js +1 -0
  702. package/dist/phoenix/services/index.d.ts +2 -1
  703. package/dist/phoenix/services/index.js +1 -1
  704. package/dist/phoenix/services/phoenix-store.d.ts +3 -0
  705. package/dist/phoenix/services/phoenix-store.js +1 -1
  706. package/dist/phoenix/services/session/editor-server-handle.d.ts +5 -0
  707. package/dist/phoenix/services/session/editor-server-handle.js +1 -0
  708. package/dist/phoenix/services/session/index.d.ts +2 -0
  709. package/dist/phoenix/services/session/index.js +1 -0
  710. package/dist/phoenix/services/session/phoenix-application.d.ts +82 -0
  711. package/dist/phoenix/services/session/phoenix-application.js +2 -0
  712. package/dist/phoenix/services/source-archive.d.ts +2 -0
  713. package/dist/phoenix/services/source-archive.js +1 -1
  714. package/dist/phoenix/services/swc.d.ts +5 -4
  715. package/dist/phoenix/services/swc.js +2 -2
  716. package/dist/phoenix/services/vite-config.js +1 -1
  717. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  718. package/dist/phoenix/services/webhook-service/tunnel.d.ts +1 -0
  719. package/dist/phoenix/services/webhook-service/tunnel.js +1 -1
  720. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.d.ts +7 -0
  721. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.js +1 -0
  722. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.d.ts +14 -0
  723. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.js +1 -0
  724. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.d.ts +18 -0
  725. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.js +1 -0
  726. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.d.ts +5 -0
  727. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.js +1 -0
  728. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.d.ts +17 -0
  729. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.js +1 -0
  730. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.d.ts +5 -0
  731. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.js +1 -0
  732. package/dist/react-sdk/configurator-ui-elements/index.d.ts +6 -0
  733. package/dist/react-sdk/configurator-ui-elements/index.js +1 -0
  734. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  735. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  736. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  737. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +7 -1
  738. package/dist/react-sdk/domain-controls/ChildEntityCardSelector.d.ts +2 -3
  739. package/dist/react-sdk/domain-controls/ChildEntityListSelector.d.ts +2 -3
  740. package/dist/react-sdk/domain-controls/ChildEntityToggleSelector.d.ts +2 -3
  741. package/dist/react-sdk/domain-controls/hooks/use-cook-replace-recipes.d.ts +2 -2
  742. package/dist/react-sdk/elements/PhoenixEntityElement.js +1 -1
  743. package/dist/react-sdk/elements/PhoenixLayoutElement.js +1 -1
  744. package/dist/react-sdk/index.d.ts +2 -0
  745. package/dist/react-sdk/index.js +1 -1
  746. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.d.ts +11 -0
  747. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.js +1 -0
  748. package/dist/react-sdk/provider-slots/configurator-provider-slot.d.ts +24 -0
  749. package/dist/react-sdk/provider-slots/configurator-provider-slot.js +1 -0
  750. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.d.ts +5 -0
  751. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.js +1 -0
  752. package/dist/react-sdk/provider-slots/index.d.ts +3 -0
  753. package/dist/react-sdk/provider-slots/index.js +1 -0
  754. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  755. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  756. package/dist/ui-sdk/components/numerical-input/InputField.d.ts +2 -0
  757. package/dist/ui-sdk/components/numerical-input/InputField.js +1 -1
  758. package/dist/ui-sdk/components/numerical-input/NumericalInput.d.ts +2 -2
  759. package/dist/ui-sdk/components/numerical-input/Slider.d.ts +3 -1
  760. package/dist/ui-sdk/components/numerical-input/Slider.js +1 -1
  761. package/dist/ui-sdk/icons/__generated/ChatCircleText.d.ts +3 -0
  762. package/dist/ui-sdk/icons/__generated/ChatCircleText.js +1 -0
  763. package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
  764. package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
  765. package/dist/ui-sdk/icons/__generated/PencilSimpleLine.d.ts +3 -0
  766. package/dist/ui-sdk/icons/__generated/PencilSimpleLine.js +1 -0
  767. package/dist/ui-sdk/icons/__generated/index.d.ts +6 -0
  768. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  769. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  770. package/dist/ui-sdk/theme/types.d.ts +1 -1
  771. package/package.json +3 -3
  772. package/schema/domain-spec.json +22 -4
  773. package/dist/application-spec/caching/runtime-reference-store.js +0 -1
  774. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.d.ts +0 -1
  775. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +0 -1
  776. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.d.ts +0 -3
  777. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +0 -166
  778. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.d.ts +0 -1
  779. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +0 -54
  780. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.d.ts +0 -1
  781. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +0 -115
  782. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +0 -1
  783. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.d.ts +0 -1
  784. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +0 -6
  785. package/dist/application-spec/generate-application/implementations/phx-application-types.js +0 -1
  786. package/dist/application-spec/generate-application/implementations/phx-domain.js +0 -1
  787. package/dist/application-spec/generate-application/implementations/phx-model.js +0 -1
  788. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +0 -1
  789. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +0 -1
  790. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +0 -1
  791. package/dist/application-spec/generate-application/runtime/application-runtime.js +0 -1
  792. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +0 -1
  793. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +0 -1
  794. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +0 -1
  795. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +0 -1
  796. package/dist/application-spec/generate-application/runtime/create-application.js +0 -1
  797. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +0 -1
  798. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +0 -1
  799. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +0 -1
  800. package/dist/application-spec/generate-application/runtime/index.d.ts +0 -8
  801. package/dist/application-spec/generate-application/runtime/index.js +0 -1
  802. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +0 -1
  803. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +0 -1
  804. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +0 -8
  805. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +0 -1
  806. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +0 -1
  807. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +0 -1
  808. package/dist/application-spec/generate-application/runtime/sections/index.d.ts +0 -10
  809. package/dist/application-spec/generate-application/runtime/sections/index.js +0 -1
  810. package/dist/application-spec/generate-application/runtime/spec-runtime.js +0 -1
  811. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +0 -5
  812. package/dist/application-spec/generate-application/runtime-spec/index.js +0 -1
  813. package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.d.ts +0 -17
  814. package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.js +0 -1
  815. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +0 -1
  816. package/dist/domain/domain-runtime/spec/module-checks/index.js +0 -1
  817. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +0 -1
  818. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +0 -1
  819. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +0 -1
  820. package/dist/phoenix/services/phoenix-application.d.ts +0 -21
  821. package/dist/phoenix/services/phoenix-application.js +0 -1
  822. /package/dist/{application-spec/generate-application/runtime/spec-code/spec-code-module.js → configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.js} +0 -0
  823. /package/dist/configurator/{configurator-context → pages/provider-slots}/ConfiguratorResponsiveProvider.d.ts +0 -0
  824. /package/dist/configurator/{configurator-context → pages/provider-slots}/ConfiguratorResponsiveProvider.js +0 -0
  825. /package/dist/domain/{domain-runtime → spec}/errors/implementation-error-collector.d.ts +0 -0
  826. /package/dist/domain/{domain-runtime → spec}/errors/implementation-error-collector.js +0 -0
  827. /package/dist/domain/{domain-runtime → spec}/errors/implementation-error.d.ts +0 -0
  828. /package/dist/domain/{domain-runtime → spec}/errors/implementation-error.js +0 -0
  829. /package/dist/domain/{domain-runtime → spec}/errors/implementation-errors.d.ts +0 -0
  830. /package/dist/domain/{domain-runtime → spec}/errors/implementation-errors.js +0 -0
  831. /package/dist/domain/{domain-runtime → spec}/errors/index.d.ts +0 -0
  832. /package/dist/domain/{domain-runtime → spec}/errors/index.js +0 -0
  833. /package/dist/domain/{domain-runtime → spec}/errors/to-implementation-errors.d.ts +0 -0
  834. /package/dist/domain/{domain-runtime → spec}/errors/to-implementation-errors.js +0 -0
  835. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/element-registration.js +0 -0
  836. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/handler-registration.d.ts +0 -0
  837. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/handler-registration.js +0 -0
  838. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-action-modules.js +0 -0
  839. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-component-optic-modules.js +0 -0
  840. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-expression-modules.js +0 -0
  841. /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-invariant-modules.js +0 -0
  842. /package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx-domain.d.ts +0 -0
  843. /package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx.js +0 -0
  844. /package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/states-runtime.js +0 -0
  845. /package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/states-runtime.js +0 -0
  846. /package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/reflection-constants-runtime.js +0 -0
  847. /package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/factory-data-runtime.js +0 -0
  848. /package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/index.d.ts +0 -0
  849. /package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/index.js +0 -0
  850. /package/dist/{application-spec/generate-application → domain/spec}/runtime/migrations/index.d.ts +0 -0
  851. /package/dist/{application-spec/generate-application → domain/spec}/runtime/migrations/index.js +0 -0
  852. /package/dist/domain/{application/assistant/assistant-resolved-manifest.js → spec/runtime/optics/built-component-optic.js} +0 -0
  853. /package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/optics}/component-optic.js +0 -0
  854. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/actions-runtime.js +0 -0
  855. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/assistant-runtime.js +0 -0
  856. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/data-runtime.js +0 -0
  857. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/preset-runtime.js +0 -0
  858. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/theme-runtime.js +0 -0
  859. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/transformers-runtime.js +0 -0
  860. /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/index.d.ts +0 -0
  861. /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/index.js +0 -0
  862. /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/resolve-spec-code.js +0 -0
  863. /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/spec-code-module.d.ts +0 -0
  864. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/decode-runtime-spec.d.ts +0 -0
  865. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/decode-runtime-spec.js +0 -0
  866. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encode-runtime-spec.d.ts +0 -0
  867. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encode-runtime-spec.js +0 -0
  868. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encoded-runtime-spec.d.ts +0 -0
  869. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encoded-runtime-spec.js +0 -0
  870. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/runtime-spec.js +0 -0
  871. /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/spec-code-id.js +0 -0
  872. /package/dist/domain/{application → spec/sections}/assistant/assistant-manifest.d.ts +0 -0
  873. /package/dist/domain/{application → spec/sections}/assistant/assistant-manifest.js +0 -0
  874. /package/dist/domain/{application → spec/sections}/assistant/assistant-resolved-manifest.d.ts +0 -0
  875. /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-element-name.d.ts +0 -0
  876. /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-element-name.js +0 -0
  877. /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-elements.d.ts +0 -0
  878. /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-elements.js +0 -0
  879. /package/dist/domain/{application → spec/sections}/assistant/form/assistant-resource-path.d.ts +0 -0
  880. /package/dist/domain/{application → spec/sections}/assistant/form/assistant-resource-path.js +0 -0
  881. /package/dist/domain/{application → spec/sections}/assistant/form/index.d.ts +0 -0
  882. /package/dist/domain/{application → spec/sections}/assistant/form/index.js +0 -0
  883. /package/dist/phoenix/{commands → services/deployment}/generated-env-markers.d.ts +0 -0
  884. /package/dist/phoenix/{commands → services/deployment}/generated-env-markers.js +0 -0
@@ -1,9 +1,2 @@
1
- export * from './runtime/sections/index.js';
2
- export * from './runtime/application-runtime.js';
3
- export { applicationSpecSlice, type ApplicationSpecSliceModules } from './runtime/application-spec-slice.js';
4
- export { type ApplicationModules, createApplication } from './runtime/create-application.js';
5
- export * from './runtime/factory-data/index.js';
6
- export * from './runtime/migrations/index.js';
7
- export { isConfiguratorModelSchemaCompatible } from './runtime/configurator-runtime/configurator-model-runtime.js';
1
+ export { ActionsRuntime, type ApplicationModules, ApplicationRuntime, type ApplicationRuntimeResult, type ApplicationSpecSliceModules, AssistantRuntime, type ComponentOptic, ComponentOptics, DataRuntime, type ExpressionImplementations, ExpressionRuntime, FactoryDataRuntime, type InvariantImplementations, type MigrationModules, MigrationRuntime, type MissingExpression, PresetRuntime, type RecipeDefaults, type StaticViolations, ThemeRuntime, TransformersRuntime, applicationSpecSlice, createApplication, evaluateReflectionConstants, evaluateStaticMemoEvalPlan, findReflectionConstants, generateMemoEvalPlanRuntime, generateRuntimeInstance, isConfiguratorModelSchemaCompatible, } from '#package/domain';
8
2
  export * from './code/index.js';
9
- export { generateRuntimeInstance } from './runtime/generate-runtime-instance.js';
@@ -1 +1 @@
1
- export*from"./runtime/sections/index.js";export*from"./runtime/application-runtime.js";export{applicationSpecSlice}from"./runtime/application-spec-slice.js";export{createApplication}from"./runtime/create-application.js";export*from"./runtime/factory-data/index.js";export*from"./runtime/migrations/index.js";export{isConfiguratorModelSchemaCompatible}from"./runtime/configurator-runtime/configurator-model-runtime.js";export*from"./code/index.js";export{generateRuntimeInstance}from"./runtime/generate-runtime-instance.js";
1
+ export{ActionsRuntime,ApplicationRuntime,AssistantRuntime,ComponentOptics,DataRuntime,ExpressionRuntime,FactoryDataRuntime,MigrationRuntime,PresetRuntime,ThemeRuntime,TransformersRuntime,applicationSpecSlice,createApplication,evaluateReflectionConstants,evaluateStaticMemoEvalPlan,findReflectionConstants,generateMemoEvalPlanRuntime,generateRuntimeInstance,isConfiguratorModelSchemaCompatible}from"#package/domain";export*from"./code/index.js";
@@ -1,5 +1,5 @@
1
1
  import { Branded } from '@salsita-ai/common/utils';
2
- import type { AssistantAiSettings } from '@salsita-ai/contracts/assistant';
2
+ import { type AssistantAiSettings } from '@salsita-ai/contracts/assistant';
3
3
  import type { ParseContext } from '../../core/index.js';
4
4
  import type { RawAssistant } from '../raw-spec/index.js';
5
5
  import type { ClassifiedSpecFile } from './classified-spec-file.js';
@@ -1 +1 @@
1
- import{Branded as e}from"@salsita-ai/common/utils";import{DiagnosticCode as t,diagnosticMessages as s}from"../../errors/index.js";let i=(e,i,n,r)=>{let l=i.flatMap(e=>{let t=n(e.manifest);return t?[{file:e.file,entries:t}]:[]});if(0===l.length)return;let a={},o=new Map;for(let{file:i,entries:n}of l)for(let[l,f]of Object.entries(n)){let n=o.get(l);if(n){r.at("assistant",e,l).error(t.ASSISTANT_MERGE_CONFLICT,s.ASSISTANT_MERGE_CONFLICT(e,l,n,i));continue}o.set(l,i),a[l]=f}return a},n=(e,i,n,r)=>{let l,a;for(let o of i){let i=n(o.manifest);if(void 0!==i){if(l){r.at("assistant",e).error(t.DUPLICATE_ASSISTANT_FIELD,s.DUPLICATE_ASSISTANT_FIELD(e,l,o.file));continue}l=o.file,a=i}}return a};export const MergedAssistant=(r,l)=>{let a=r.flatMap(e=>e.content.assistant?[{file:e.name,manifest:e.content.assistant}]:[]);if(0===a.length)return e({manifest:null});let o={entities:i("entities",a,e=>e.entities,l),deletable:i("deletable",a,e=>e.deletable,l),writable:i("writable",a,e=>e.writable,l),childRecipes:i("childRecipes",a,e=>e.childRecipes,l),replaceRecipes:i("replaceRecipes",a,e=>e.replaceRecipes,l),actions:i("actions",a,e=>e.actions,l),screenshots:i("screenshots",a,e=>e.screenshots,l),formElements:i("formElements",a,e=>e.formElements,l),lenses:n("lenses",a,e=>e.lenses,l),instructions:n("instructions",a,e=>e.instructions,l),ai:n("ai",a,e=>e.ai,l)},{ai:f}=o;return f?e({manifest:{...o,ai:f}}):(l.at("assistant","ai").error(t.ASSISTANT_MISSING_AI,s.ASSISTANT_MISSING_AI()),e({manifest:null}))};
1
+ import{Branded as e}from"@salsita-ai/common/utils";import{ASSISTANT_HOURLY_LIMIT_LEVELS as t,ASSISTANT_HOURLY_LIMIT_MAXIMA as i,ASSISTANT_MAX_THREAD_SIZE as s}from"@salsita-ai/contracts/assistant";import{DiagnosticCode as a,diagnosticMessages as r}from"../../errors/index.js";let n=(e,t,i,s)=>{let n=t.flatMap(e=>{let t=i(e.manifest);return t?[{file:e.file,entries:t}]:[]});if(0===n.length)return;let l={},o=new Map;for(let{file:t,entries:i}of n)for(let[n,S]of Object.entries(i)){let i=o.get(n);if(i){s.at("assistant",e,n).error(a.ASSISTANT_MERGE_CONFLICT,r.ASSISTANT_MERGE_CONFLICT(e,n,i,t));continue}o.set(n,t),l[n]=S}return l},l=(e,t,i,s)=>{let n,l;for(let o of t){let t=i(o.manifest);if(void 0!==t){if(n){s.at("assistant",e).error(a.DUPLICATE_ASSISTANT_FIELD,r.DUPLICATE_ASSISTANT_FIELD(e,n,o.file));continue}n=o.file,l=t}}return l};export const MergedAssistant=(o,S)=>{let A=o.flatMap(e=>e.content.assistant?[{file:e.name,manifest:e.content.assistant}]:[]);if(0===A.length)return e({manifest:null});let f={entities:n("entities",A,e=>e.entities,S),deletable:n("deletable",A,e=>e.deletable,S),writable:n("writable",A,e=>e.writable,S),childRecipes:n("childRecipes",A,e=>e.childRecipes,S),replaceRecipes:n("replaceRecipes",A,e=>e.replaceRecipes,S),actions:n("actions",A,e=>e.actions,S),screenshots:n("screenshots",A,e=>e.screenshots,S),formElements:n("formElements",A,e=>e.formElements,S),lenses:l("lenses",A,e=>e.lenses,S),instructions:l("instructions",A,e=>e.instructions,S),ai:l("ai",A,e=>e.ai,S)},{ai:c}=f;if(!c)return S.at("assistant","ai").error(a.ASSISTANT_MISSING_AI,r.ASSISTANT_MISSING_AI()),e({manifest:null});for(let e of(void 0!==c.maxThreadSize&&c.maxThreadSize>s&&S.at("assistant","ai","maxThreadSize").error(a.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM("maxThreadSize",c.maxThreadSize,s)),t)){let t=c.hourlyLimits?.[e];void 0!==t&&t>i[e]&&S.at("assistant","ai","hourlyLimits",e).error(a.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM(`hourlyLimits.${e}`,t,i[e]))}return e({manifest:{...f,ai:c}})};
@@ -1 +1 @@
1
- import{z as e}from"zod";import{ASSISTANT_AI_PROVIDERS as t,ASSISTANT_MODEL_TIERS as o,ASSISTANT_REASONING_LEVELS as n}from"@salsita-ai/contracts/assistant";import{ASSISTANT_FORM_NAME_PATTERN as i,ASSISTANT_HINTS as r}from"#package/domain";export const ASSISTANT_OPTION_COMPONENT_TYPES=["materialSwatch","attributeSelection","distanceDimensionSelect"];export const GRAPHQL_NAME_PATTERN=/^(?!__)[_A-Za-z][_0-9A-Za-z]*$/;let a=e.string().regex(GRAPHQL_NAME_PATTERN,'must be a GraphQL name: letters, digits and "_", not starting with a digit or "__"'),s=t=>e.enum(t,{errorMap:()=>({message:`must be one of: ${t.join(", ")}`})}),l=e.object({description:e.string().optional(),as:a.optional(),lenses:e.array(e.string()).optional()}).strict(),m="must be a whole number of at least 1; remove the key to nest tagged relations one level",p=e.object({description:e.string().trim().min(1,"must not be empty; say when the agent should use the lens"),maxDepth:e.number({invalid_type_error:m}).int(m).min(1,m).optional()}).strict(),c=a.refine(e=>!e.includes("__"),'must not contain "__", which names the generated copies of a lens'),u=e.array(s(r)),d=e.object({options:e.object({componentType:s(ASSISTANT_OPTION_COMPONENT_TYPES).optional(),instanceName:e.string().min(1,"must not be empty; name the component instance that holds the choices").optional(),as:a.optional(),validate:e.boolean().optional(),allowDryRuns:e.boolean().optional(),hints:u.optional()}).strict().refine(({componentType:e,instanceName:t})=>void 0===e==(void 0===t),'must give "componentType" and "instanceName" together, or neither to use the one option component instance that writes the field').nullable().optional()}).strict(),g=e.object({as:a.optional(),description:e.string().optional(),allowDryRuns:e.boolean().optional(),hints:u.optional()},{errorMap:(t,o)=>({message:t.code===e.ZodIssueCode.unrecognized_keys?`${o.defaultError}. A recipe group takes "as", "description", "allowDryRuns" and "hints"; the groups of a type go directly under it, keyed by instance name, with no "groups" level`:o.defaultError})}).strict(),h=e.object({description:e.string().optional(),as:a.optional()}).strict(),b=["enum","pattern","minimum","maximum","minLength","maxLength"],y=["enum","pattern","minLength","maxLength"],f=["enum","minimum","maximum"],_=e.object({type:s(["string","number","integer","boolean"]),enum:e.array(e.union([e.string(),e.number()])).min(1,"must list at least one value").optional(),pattern:e.string().refine(e=>{try{return RegExp(e,"u"),!0}catch{return!1}},"must be a regular expression, as in JSON Schema").optional(),minimum:e.number().optional(),maximum:e.number().optional(),minLength:e.number().int().nonnegative().optional(),maxLength:e.number().int().nonnegative().optional()}).strict().superRefine((t,o)=>{let n="string"===t.type?y:"boolean"===t.type?[]:f;for(let i of b)void 0===t[i]||n.includes(i)||o.addIssue({code:e.ZodIssueCode.custom,path:[i],message:`does not apply to an attribute of type "${t.type}"; remove it or change the type`});let i="string"===t.type?"string":"number";for(let[n,r]of("boolean"!==t.type&&t.enum?.some(e=>typeof e!==i||"integer"===t.type&&!Number.isInteger(e))&&o.addIssue({code:e.ZodIssueCode.custom,path:["enum"],message:`must list only ${"integer"===t.type?"whole number":i}s, since the attribute is of type "${t.type}"`}),[["minimum","maximum"],["minLength","maxLength"]])){let[i,a]=[t[n],t[r]];void 0!==i&&void 0!==a&&i>a&&o.addIssue({code:e.ZodIssueCode.custom,path:[n],message:`must not be greater than "${r}", or no value could satisfy the attribute`})}}),v=e.string().regex(i,'must start with a lowercase letter and hold only lowercase letters, digits and "-", since the panel reads form markup in lowercase'),w=e.object({description:e.string().trim().min(1,"must not be empty; say what the element is for and where the agent may use it"),role:s(["group","choice","choices","option","input"]),attributes:e.record(v,_).optional(),required:e.array(e.string()).optional()}).strict(),j=e.object({description:e.string().trim().min(1,"must not be empty; say what the view shows"),as:a.optional()}).strict(),x=`must be an object: declare provider (${t.join(", ")}), model (${o.join(", ")}) and reasoning (${n.join(", ")})`,T="must be a positive whole number of input tokens; remove the key to use the default of the server",N=e.object({provider:s(t),model:s(o),reasoning:s(n),maxThreadSize:e.number({invalid_type_error:T}).int(T).positive(T).optional()},{invalid_type_error:x}).strict();export const rawAssistantSchema=e.object({entities:e.record(e.string(),e.record(e.string(),l.nullable())).optional(),deletable:e.record(e.string(),e.object({}).strict().nullable()).optional(),writable:e.record(e.string(),e.record(e.string(),d.nullable())).optional(),childRecipes:e.record(e.string(),e.record(e.string(),g.nullable())).optional(),replaceRecipes:e.record(e.string(),e.record(e.string(),g.nullable())).optional(),actions:e.record(e.string(),h.nullable()).optional(),screenshots:e.record(e.string(),e.record(e.string(),j)).optional(),lenses:e.record(c,p).optional(),formElements:e.record(v,w).optional(),instructions:e.string().trim().min(1,"must not be empty; remove the key when there are no instructions").optional(),ai:N.optional()}).strict();
1
+ import{z as e}from"zod";import{ASSISTANT_AI_PROVIDERS as t,ASSISTANT_MODEL_TIERS as o,ASSISTANT_REASONING_LEVELS as n}from"@salsita-ai/contracts/assistant";import{ASSISTANT_FORM_NAME_PATTERN as i,ASSISTANT_HINTS as r}from"#package/domain";export const ASSISTANT_OPTION_COMPONENT_TYPES=["materialSwatch","attributeSelection","distanceDimensionSelect"];export const GRAPHQL_NAME_PATTERN=/^(?!__)[_A-Za-z][_0-9A-Za-z]*$/;let a=e.string().regex(GRAPHQL_NAME_PATTERN,'must be a GraphQL name: letters, digits and "_", not starting with a digit or "__"'),s=t=>e.enum(t,{errorMap:()=>({message:`must be one of: ${t.join(", ")}`})}),l=e.object({description:e.string().optional(),as:a.optional(),lenses:e.array(e.string()).optional()}).strict(),m="must be a whole number of at least 1; remove the key to nest tagged relations one level",p=e.object({description:e.string().trim().min(1,"must not be empty; say when the agent should use the lens"),maxDepth:e.number({invalid_type_error:m}).int(m).min(1,m).optional()}).strict(),c=a.refine(e=>!e.includes("__"),'must not contain "__", which names the generated copies of a lens'),u=e.array(s(r)),d=e.object({options:e.object({componentType:s(ASSISTANT_OPTION_COMPONENT_TYPES).optional(),instanceName:e.string().min(1,"must not be empty; name the component instance that holds the choices").optional(),as:a.optional(),validate:e.boolean().optional(),allowDryRuns:e.boolean().optional(),hints:u.optional()}).strict().refine(({componentType:e,instanceName:t})=>void 0===e==(void 0===t),'must give "componentType" and "instanceName" together, or neither to use the one option component instance that writes the field').nullable().optional()}).strict(),h=e.object({as:a.optional(),description:e.string().optional(),allowDryRuns:e.boolean().optional(),hints:u.optional()},{errorMap:(t,o)=>({message:t.code===e.ZodIssueCode.unrecognized_keys?`${o.defaultError}. A recipe group takes "as", "description", "allowDryRuns" and "hints"; the groups of a type go directly under it, keyed by instance name, with no "groups" level`:o.defaultError})}).strict(),g=e.object({description:e.string().optional(),as:a.optional()}).strict(),b=["enum","pattern","minimum","maximum","minLength","maxLength"],y=["enum","pattern","minLength","maxLength"],f=["enum","minimum","maximum"],v=e.object({type:s(["string","number","integer","boolean"]),enum:e.array(e.union([e.string(),e.number()])).min(1,"must list at least one value").optional(),pattern:e.string().refine(e=>{try{return RegExp(e,"u"),!0}catch{return!1}},"must be a regular expression, as in JSON Schema").optional(),minimum:e.number().optional(),maximum:e.number().optional(),minLength:e.number().int().nonnegative().optional(),maxLength:e.number().int().nonnegative().optional()}).strict().superRefine((t,o)=>{let n="string"===t.type?y:"boolean"===t.type?[]:f;for(let i of b)void 0===t[i]||n.includes(i)||o.addIssue({code:e.ZodIssueCode.custom,path:[i],message:`does not apply to an attribute of type "${t.type}"; remove it or change the type`});let i="string"===t.type?"string":"number";for(let[n,r]of("boolean"!==t.type&&t.enum?.some(e=>typeof e!==i||"integer"===t.type&&!Number.isInteger(e))&&o.addIssue({code:e.ZodIssueCode.custom,path:["enum"],message:`must list only ${"integer"===t.type?"whole number":i}s, since the attribute is of type "${t.type}"`}),[["minimum","maximum"],["minLength","maxLength"]])){let[i,a]=[t[n],t[r]];void 0!==i&&void 0!==a&&i>a&&o.addIssue({code:e.ZodIssueCode.custom,path:[n],message:`must not be greater than "${r}", or no value could satisfy the attribute`})}}),_=e.string().regex(i,'must start with a lowercase letter and hold only lowercase letters, digits and "-", since the panel reads form markup in lowercase'),w=e.object({description:e.string().trim().min(1,"must not be empty; say what the element is for and where the agent may use it"),role:s(["group","choice","choices","option","input"]),attributes:e.record(_,v).optional(),required:e.array(e.string()).optional()}).strict(),j=e.object({description:e.string().trim().min(1,"must not be empty; say what the view shows"),as:a.optional()}).strict(),x=`must be an object: declare provider (${t.join(", ")}), model (${o.join(", ")}) and reasoning (${n.join(", ")})`,T="must be a positive whole number of input tokens; remove the key to use the default of the server",N="must be a positive whole number of weighted tokens per hour; remove the key to use the default of the server",S=e.number({invalid_type_error:N}).int(N).positive(N).optional(),A=e.object({sub:S,ip:S,project:S},{invalid_type_error:"must be an object with any of sub, ip and project"}).strict(),E=e.object({provider:s(t),model:s(o),reasoning:s(n),maxThreadSize:e.number({invalid_type_error:T}).int(T).positive(T).optional(),hourlyLimits:A.optional()},{invalid_type_error:x}).strict();export const rawAssistantSchema=e.object({entities:e.record(e.string(),e.record(e.string(),l.nullable())).optional(),deletable:e.record(e.string(),e.object({}).strict().nullable()).optional(),writable:e.record(e.string(),e.record(e.string(),d.nullable())).optional(),childRecipes:e.record(e.string(),e.record(e.string(),h.nullable())).optional(),replaceRecipes:e.record(e.string(),e.record(e.string(),h.nullable())).optional(),actions:e.record(e.string(),g.nullable()).optional(),screenshots:e.record(e.string(),e.record(e.string(),j)).optional(),lenses:e.record(c,p).optional(),formElements:e.record(_,w).optional(),instructions:e.string().trim().min(1,"must not be empty; remove the key when there are no instructions").optional(),ai:E.optional()}).strict();
@@ -27,7 +27,7 @@ export declare class AuthorizedClient<FINALIZE_DATA extends Record<string, unkno
27
27
  getTextToSpeech: (configurationId: string, content: string) => Promise<Blob>;
28
28
  getAssistantChatConnection: (configurationId: string) => AssistantChatConnection;
29
29
  compactAssistantThread: (configurationId: string) => Promise<AssistantThreadCompaction>;
30
- getAssistantEarlierThread: (configurationId: string, threadId: string, limit: number) => Promise<AssistantEarlierThread>;
30
+ getAssistantEarlierThread: (configurationId: string, threadId: string, limit?: number) => Promise<AssistantEarlierThread>;
31
31
  uploadAssistantImage: (configurationId: string, image: Blob) => Promise<AssistantImageUpload>;
32
32
  getAssistantImage: (configurationId: string, imageId: string) => Promise<Blob>;
33
33
  sendMessage: (configurationId: string, content: string, context?: Record<string, string>) => Promise<ReadableStream<ChatStreamChunk>>;
@@ -1 +1 @@
1
- import{match as t}from"ts-pattern";import{InfoError as a}from"@salsita-ai/common/utils";import{isChatError as e}from"@salsita-ai/contracts/chat";import{createApiBaseClient as r}from"./base-client.js";import{AssistantRequestError as i,InvalidAccessKeyError as s}from"./contract.js";let o=()=>new TransformStream({transform(t,a){a.enqueue(t)}}),n=async(t,a)=>{for(;;){let{done:r,value:i}=await t.read();if(r){await a.close();break}for(let t of i.split("\n").filter(t=>""!==t.trim()).map(t=>JSON.parse(t))){if(e(t))return void await a.abort(Error(t.error));await a.write(t)}}},h=(e,r)=>{let i=`${r} API request failed: ${JSON.stringify(e)}`;return t(e).with({statusCode:403,invalidAccessKey:!0},()=>new s).with({statusCode:403},()=>new a(i)).otherwise(()=>Error(i))};export class AuthorizedClient{_baseUrl;_getAccessToken;_getSessionToken;_client;constructor(t,a,e){this._baseUrl=t,this._getAccessToken=a,this._getSessionToken=e,this._client=r(this._baseUrl)}_authHeaders=async()=>{let t=this._getAccessToken(),a=await this._getSessionToken();return{"X-Access-Key":t,Authorization:`Bearer ${a}`}};getConfiguration=async t=>{let a=await this._authHeaders(),e=await this._client.GET("/configurations/{configurationId}",{params:{path:{configurationId:t}},headers:a});if(e.error)throw h(e.error,"getConfiguration");return e.data};updateConfiguration=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.PUT("/configurations/{configurationId}",{params:{path:{configurationId:t}},body:a,headers:e});if(r.error)throw h(r.error,"updateConfiguration");return r.data};finalize=async(t,a,e,r,i)=>{let s=await this._authHeaders(),o=await this._client.POST("/configurations/{configurationId}/{finalizationUuid}/finalize",{params:{path:{configurationId:t,finalizationUuid:a},query:{locale:r}},body:{finalizeData:e,frontendData:i},headers:s});if(o.error)throw h(o.error,"finalize")};waitForFinalizationToComplete=async(t,a,e)=>{let r=e?.pollingFrequency??500,i=Math.ceil((e?.pollingTimeout??3e4)/r);for(let e=0;e<i;e++){let e=await this._authHeaders(),i=await this._client.GET("/configurations/{configurationId}/{finalizationUuid}/state",{params:{path:{configurationId:t,finalizationUuid:a}},headers:e});if(i.error)throw h(i.error,"getFinalizeJobState");let s=i.data;if("completed"===s.state)return s.result[0];if("failed"===s.state)throw Error("finalization failed");if("unknown"===s.state)throw Error("finalization state is unknown");await new Promise(t=>setTimeout(t,r))}throw Error("finalization did not complete within the specified timeout")};getConfigurationRevision=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/revisions/{revisionId}",{params:{path:{configurationId:t,revisionId:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationRevision");return r.data};getChatConversation=async t=>{let a=await this._authHeaders(),e=await this._client.GET("/configurations/{configurationId}/chat",{params:{path:{configurationId:t}},headers:a});if(e.error)throw h(e.error,"getChatConversation");return e.data};getSpeechToText=async(t,a)=>{let e=await this._authHeaders(),r=new FormData;r.append("voiceFile",a,"voice.wav");let i=await this._client.POST("/configurations/{configurationId}/chat/stt",{params:{path:{configurationId:t}},headers:e,body:r,bodySerializer:()=>r});if(i.error)throw h(i.error,"getSpeechToText");return i.data.text};getTextToSpeech=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.POST("/configurations/{configurationId}/chat/tts",{params:{path:{configurationId:t}},body:{content:a},headers:e,parseAs:"arrayBuffer"});if(r.error)throw h(r.error,"getTextToSpeech");return new Blob([r.data],{type:"audio/mp3"})};getAssistantChatConnection=t=>({url:new URL(`configurations/${encodeURIComponent(t)}/assistant/chat`,`${this._baseUrl}/`).toString(),headers:this._authHeaders});compactAssistantThread=async t=>{let a=await this._authHeaders(),e=await this._client.POST("/configurations/{configurationId}/assistant/chat/compact",{params:{path:{configurationId:t}},headers:{...a,"Content-Type":null}});if(e.error)throw new i(`compactAssistantThread API request failed: ${JSON.stringify(e.error)}`,e.response.status);return e.data};getAssistantEarlierThread=async(t,a,e)=>{let r=await this._authHeaders(),s=await this._client.GET("/configurations/{configurationId}/assistant/chat/threads/{threadId}",{params:{path:{configurationId:t,threadId:a},query:{limit:e}},headers:r});if(s.error)throw new i(`getAssistantEarlierThread API request failed: ${JSON.stringify(s.error)}`,s.response.status);let{messages:o}=s.data;return{threadId:a,messages:Array.isArray(o)?o:[],previousThreadId:s.response.headers.get("x-assistant-previous-thread")}};uploadAssistantImage=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.POST("/configurations/{configurationId}/assistant/images",{params:{path:{configurationId:t}},headers:{...e,"Content-Type":a.type},body:a.type,bodySerializer:()=>a});if(r.error)throw new i(`uploadAssistantImage API request failed: ${JSON.stringify(r.error)}`,r.response.status);return{imageId:r.data.imageId}};getAssistantImage=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/assistant/images/{imageId}",{params:{path:{configurationId:t,imageId:a}},headers:e,parseAs:"blob"});if(r.error)throw new i(`getAssistantImage API request failed: ${JSON.stringify(r.error)}`,r.response.status);return r.data};sendMessage=async(t,a,e)=>{let r=await this._authHeaders(),i=await this._client.POST("/configurations/{configurationId}/chat/message",{params:{path:{configurationId:t}},body:{content:a,context:e},headers:r,parseAs:"stream"});if(i.error)throw h(i.error,"sendMessage");let s=i.data?.pipeThrough(new TextDecoderStream).getReader();if(!s)throw Error("sendMessage API response did not contain a readable stream");let u=o();return n(s,u.writable.getWriter()),u.readable};sendToolCallResults=async(t,a,e,r)=>{let i=await this._authHeaders(),s=await this._client.POST("/configurations/{configurationId}/chat/tool-calls",{params:{path:{configurationId:t}},body:{agent:r,calls:a,results:e},headers:i,parseAs:"stream"});if(s.error)throw h(s.error,"sendToolCallResults");let u=s.data?.pipeThrough(new TextDecoderStream).getReader();if(!u)throw Error("sendMessage API response did not contain a readable stream");let c=o();return n(u,c.writable.getWriter()),c.readable};generateShareLink=async(t,a,e,r,i)=>{let s=await this._authHeaders(),o=await this._client.POST("/configurations/{configurationId}/share-link",{params:{path:{configurationId:t}},body:{revisionId:a,expiration:e,access:r,baseUrl:i},headers:s});if(o.error)throw h(o.error,"generateShareLink");return o.data};generateUploadLinks=async(t,a,e)=>{let r=await this._authHeaders(),i=await this._client.POST("/configurations/{configurationId}/{finalizationUuid}/image-upload-links",{params:{path:{configurationId:t,finalizationUuid:a}},body:{names:e},headers:r});if(i.error)throw h(i.error,"generateUploadLinks");return i.data.links};getConfigurationPublicUploadLink=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/resources/{key}/public/upload",{params:{path:{configurationId:t,key:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationPublicUploadLink");return r.data};getConfigurationPrivateUploadLink=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/resources/{key}/private/upload",{params:{path:{configurationId:t,key:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationPrivateUploadLink");return r.data};getConfigurationPrivateResourceLink=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/resources/{key}/private",{params:{path:{configurationId:t,key:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationPrivateUploadLink");return r.data};cloneConfiguration=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.POST("/configurations/{configurationId}/revisions/{revisionId}/clone",{params:{path:{configurationId:t,revisionId:a}},headers:{...e,"Content-Type":null}});if(r.error)throw h(r.error,"cloneConfiguration");return r.data}}
1
+ import{match as t}from"ts-pattern";import{InfoError as a}from"@salsita-ai/common/utils";import{isChatError as e}from"@salsita-ai/contracts/chat";import{createApiBaseClient as r}from"./base-client.js";import{AssistantRequestError as i,InvalidAccessKeyError as s}from"./contract.js";let o=()=>new TransformStream({transform(t,a){a.enqueue(t)}}),n=async(t,a)=>{for(;;){let{done:r,value:i}=await t.read();if(r){await a.close();break}for(let t of i.split("\n").filter(t=>""!==t.trim()).map(t=>JSON.parse(t))){if(e(t))return void await a.abort(Error(t.error));await a.write(t)}}},h=(e,r)=>{let i=`${r} API request failed: ${JSON.stringify(e)}`;return t(e).with({statusCode:403,invalidAccessKey:!0},()=>new s).with({statusCode:403},()=>new a(i)).otherwise(()=>Error(i))};export class AuthorizedClient{_baseUrl;_getAccessToken;_getSessionToken;_client;constructor(t,a,e){this._baseUrl=t,this._getAccessToken=a,this._getSessionToken=e,this._client=r(this._baseUrl)}_authHeaders=async()=>{let t=this._getAccessToken(),a=await this._getSessionToken();return{"X-Access-Key":t,Authorization:`Bearer ${a}`}};getConfiguration=async t=>{let a=await this._authHeaders(),e=await this._client.GET("/configurations/{configurationId}",{params:{path:{configurationId:t}},headers:a});if(e.error)throw h(e.error,"getConfiguration");return e.data};updateConfiguration=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.PUT("/configurations/{configurationId}",{params:{path:{configurationId:t}},body:a,headers:e});if(r.error)throw h(r.error,"updateConfiguration");return r.data};finalize=async(t,a,e,r,i)=>{let s=await this._authHeaders(),o=await this._client.POST("/configurations/{configurationId}/{finalizationUuid}/finalize",{params:{path:{configurationId:t,finalizationUuid:a},query:{locale:r}},body:{finalizeData:e,frontendData:i},headers:s});if(o.error)throw h(o.error,"finalize")};waitForFinalizationToComplete=async(t,a,e)=>{let r=e?.pollingFrequency??500,i=Math.ceil((e?.pollingTimeout??3e4)/r);for(let e=0;e<i;e++){let e=await this._authHeaders(),i=await this._client.GET("/configurations/{configurationId}/{finalizationUuid}/state",{params:{path:{configurationId:t,finalizationUuid:a}},headers:e});if(i.error)throw h(i.error,"getFinalizeJobState");let s=i.data;if("completed"===s.state)return s.result[0];if("failed"===s.state)throw Error("finalization failed");if("unknown"===s.state)throw Error("finalization state is unknown");await new Promise(t=>setTimeout(t,r))}throw Error("finalization did not complete within the specified timeout")};getConfigurationRevision=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/revisions/{revisionId}",{params:{path:{configurationId:t,revisionId:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationRevision");return r.data};getChatConversation=async t=>{let a=await this._authHeaders(),e=await this._client.GET("/configurations/{configurationId}/chat",{params:{path:{configurationId:t}},headers:a});if(e.error)throw h(e.error,"getChatConversation");return e.data};getSpeechToText=async(t,a)=>{let e=await this._authHeaders(),r=new FormData;r.append("voiceFile",a,"voice.wav");let i=await this._client.POST("/configurations/{configurationId}/chat/stt",{params:{path:{configurationId:t}},headers:e,body:r,bodySerializer:()=>r});if(i.error)throw h(i.error,"getSpeechToText");return i.data.text};getTextToSpeech=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.POST("/configurations/{configurationId}/chat/tts",{params:{path:{configurationId:t}},body:{content:a},headers:e,parseAs:"arrayBuffer"});if(r.error)throw h(r.error,"getTextToSpeech");return new Blob([r.data],{type:"audio/mp3"})};getAssistantChatConnection=t=>({url:new URL(`configurations/${encodeURIComponent(t)}/assistant/chat`,`${this._baseUrl}/`).toString(),headers:this._authHeaders});compactAssistantThread=async t=>{let a=await this._authHeaders(),e=await this._client.POST("/configurations/{configurationId}/assistant/chat/compact",{params:{path:{configurationId:t}},headers:{...a,"Content-Type":null}});if(e.error)throw new i(`compactAssistantThread API request failed: ${JSON.stringify(e.error)}`,e.response.status);return e.data};getAssistantEarlierThread=async(t,a,e)=>{let r=await this._authHeaders(),s=await this._client.GET("/configurations/{configurationId}/assistant/chat/threads/{threadId}",{params:{path:{configurationId:t,threadId:a},query:{limit:e}},headers:r});if(s.error)throw new i(`getAssistantEarlierThread API request failed: ${JSON.stringify(s.error)}`,s.response.status);let{messages:o}=s.data;return{threadId:a,messages:Array.isArray(o)?o:[],previousThreadId:s.response.headers.get("x-assistant-previous-thread")}};uploadAssistantImage=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.POST("/configurations/{configurationId}/assistant/images",{params:{path:{configurationId:t}},headers:{...e,"Content-Type":a.type},body:a.type,bodySerializer:()=>a});if(r.error)throw new i(`uploadAssistantImage API request failed: ${JSON.stringify(r.error)}`,r.response.status,"false"===r.response.headers.get("x-assistant-thread-continuable"));return{imageId:r.data.imageId}};getAssistantImage=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/assistant/images/{imageId}",{params:{path:{configurationId:t,imageId:a}},headers:e,parseAs:"blob"});if(r.error)throw new i(`getAssistantImage API request failed: ${JSON.stringify(r.error)}`,r.response.status);return r.data};sendMessage=async(t,a,e)=>{let r=await this._authHeaders(),i=await this._client.POST("/configurations/{configurationId}/chat/message",{params:{path:{configurationId:t}},body:{content:a,context:e},headers:r,parseAs:"stream"});if(i.error)throw h(i.error,"sendMessage");let s=i.data?.pipeThrough(new TextDecoderStream).getReader();if(!s)throw Error("sendMessage API response did not contain a readable stream");let u=o();return n(s,u.writable.getWriter()),u.readable};sendToolCallResults=async(t,a,e,r)=>{let i=await this._authHeaders(),s=await this._client.POST("/configurations/{configurationId}/chat/tool-calls",{params:{path:{configurationId:t}},body:{agent:r,calls:a,results:e},headers:i,parseAs:"stream"});if(s.error)throw h(s.error,"sendToolCallResults");let u=s.data?.pipeThrough(new TextDecoderStream).getReader();if(!u)throw Error("sendMessage API response did not contain a readable stream");let c=o();return n(u,c.writable.getWriter()),c.readable};generateShareLink=async(t,a,e,r,i)=>{let s=await this._authHeaders(),o=await this._client.POST("/configurations/{configurationId}/share-link",{params:{path:{configurationId:t}},body:{revisionId:a,expiration:e,access:r,baseUrl:i},headers:s});if(o.error)throw h(o.error,"generateShareLink");return o.data};generateUploadLinks=async(t,a,e)=>{let r=await this._authHeaders(),i=await this._client.POST("/configurations/{configurationId}/{finalizationUuid}/image-upload-links",{params:{path:{configurationId:t,finalizationUuid:a}},body:{names:e},headers:r});if(i.error)throw h(i.error,"generateUploadLinks");return i.data.links};getConfigurationPublicUploadLink=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/resources/{key}/public/upload",{params:{path:{configurationId:t,key:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationPublicUploadLink");return r.data};getConfigurationPrivateUploadLink=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/resources/{key}/private/upload",{params:{path:{configurationId:t,key:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationPrivateUploadLink");return r.data};getConfigurationPrivateResourceLink=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.GET("/configurations/{configurationId}/resources/{key}/private",{params:{path:{configurationId:t,key:a}},headers:e});if(r.error)throw h(r.error,"getConfigurationPrivateUploadLink");return r.data};cloneConfiguration=async(t,a)=>{let e=await this._authHeaders(),r=await this._client.POST("/configurations/{configurationId}/revisions/{revisionId}/clone",{params:{path:{configurationId:t,revisionId:a}},headers:{...e,"Content-Type":null}});if(r.error)throw h(r.error,"cloneConfiguration");return r.data}}
@@ -96,15 +96,18 @@ export interface AuthorizedPhoenixApiClient<FINALIZE_DATA extends Record<string,
96
96
  */
97
97
  compactAssistantThread: (configurationId: string) => Promise<AssistantThreadCompaction>;
98
98
  /**
99
- * Reads a closed assistant thread of the configuration that a later thread continues, at most
100
- * `limit` of its newest messages. Rejects with an {@link AssistantRequestError} when the server refuses.
99
+ * Reads a closed assistant thread of the configuration that a later thread continues: at most
100
+ * `limit` of its newest messages, or all of them without a limit. Rejects with an
101
+ * {@link AssistantRequestError} when the server refuses.
101
102
  */
102
- getAssistantEarlierThread: (configurationId: string, threadId: string, limit: number) => Promise<AssistantEarlierThread>;
103
+ getAssistantEarlierThread: (configurationId: string, threadId: string, limit?: number) => Promise<AssistantEarlierThread>;
103
104
  /**
104
- * Stores a screenshot the assistant took in the open assistant thread of the configuration, while a
105
- * reply runs there, and resolves with the id its tool result references it by. The image is the
106
- * rendered JPEG or PNG blob, sent with its own type. Rejects with an {@link AssistantRequestError}
107
- * when the server refuses.
105
+ * Stores an image in the assistant thread of the configuration, creating the thread when there is
106
+ * none yet: a screenshot the assistant took while a reply runs there, or an image the user attaches
107
+ * to their next message. Resolves with the id a tool result or a message references it by. The
108
+ * image is a JPEG or PNG blob of at most 2 MB, sent with its own type. Rejects with an
109
+ * {@link AssistantRequestError} when the server refuses, marked `threadNotContinuable` when the
110
+ * thread can take no new message until it is compacted.
108
111
  */
109
112
  uploadAssistantImage: (configurationId: string, image: Blob) => Promise<AssistantImageUpload>;
110
113
  /**
@@ -165,9 +168,19 @@ export interface AssistantEarlierThread {
165
168
  export declare class AssistantRequestError extends Error {
166
169
  /** The HTTP status of the answer, which tells a refusal from an outage. */
167
170
  readonly status: number;
171
+ /**
172
+ * True when the server refused because the thread cannot be continued until it is compacted, as
173
+ * its `x-assistant-thread-continuable: false` response header says.
174
+ */
175
+ readonly threadNotContinuable: boolean;
168
176
  constructor(message: string,
169
177
  /** The HTTP status of the answer, which tells a refusal from an outage. */
170
- status: number);
178
+ status: number,
179
+ /**
180
+ * True when the server refused because the thread cannot be continued until it is compacted, as
181
+ * its `x-assistant-thread-continuable: false` response header says.
182
+ */
183
+ threadNotContinuable?: boolean);
171
184
  }
172
185
  export declare class InvalidDeploymentError extends Error {
173
186
  constructor();
@@ -1 +1 @@
1
- export class AssistantRequestError extends Error{status;constructor(e,r){super(e),this.status=r,this.name="AssistantRequestError"}}export class InvalidDeploymentError extends Error{constructor(){super(),this.name="InvalidDeployment",this.message="The referenced deployment is invalid."}}export class InvalidAccessKeyError extends Error{constructor(){super("The access token is no longer valid because it expired or the server rejected it. Open the configuration from a fresh link."),this.name="InvalidAccessKey"}}export class ChunkNotFoundError extends Error{chunkKey;constructor(e){super(`Published chunk "${e}" not found`),this.chunkKey=e,this.name="ChunkNotFound"}}export class OAuthStaleConnectionError extends Error{constructor(){super("OAuth connection is stale"),this.name="OAuthStaleConnectionError"}}export class ConfigurationSchemaMismatchError extends Error{details;constructor(e){super("Preset data does not match the configuration schema registered on the server. Why: the preset/demo entity data was changed without re-registering the schema, or the schema drifted. Fix: re-register/redeploy the domain schema, or update the preset data to match the current schema."),this.details=e,this.name="ConfigurationSchemaMismatchError"}}export const isConfigurationSchemaMismatchError=e=>e instanceof ConfigurationSchemaMismatchError;
1
+ export class AssistantRequestError extends Error{status;threadNotContinuable;constructor(e,t,r=!1){super(e),this.status=t,this.threadNotContinuable=r,this.name="AssistantRequestError"}}export class InvalidDeploymentError extends Error{constructor(){super(),this.name="InvalidDeployment",this.message="The referenced deployment is invalid."}}export class InvalidAccessKeyError extends Error{constructor(){super("The access token is no longer valid because it expired or the server rejected it. Open the configuration from a fresh link."),this.name="InvalidAccessKey"}}export class ChunkNotFoundError extends Error{chunkKey;constructor(e){super(`Published chunk "${e}" not found`),this.chunkKey=e,this.name="ChunkNotFound"}}export class OAuthStaleConnectionError extends Error{constructor(){super("OAuth connection is stale"),this.name="OAuthStaleConnectionError"}}export class ConfigurationSchemaMismatchError extends Error{details;constructor(e){super("Preset data does not match the configuration schema registered on the server. Why: the preset/demo entity data was changed without re-registering the schema, or the schema drifted. Fix: re-register/redeploy the domain schema, or update the preset data to match the current schema."),this.details=e,this.name="ConfigurationSchemaMismatchError"}}export const isConfigurationSchemaMismatchError=e=>e instanceof ConfigurationSchemaMismatchError;
@@ -303,7 +303,7 @@ export interface paths {
303
303
  /** @description Load the caller's latest assistant thread on the configuration with its active run, newest window first. The `x-assistant-thread-continuable` response header is `false` when the thread cannot be continued with this setup, has reached its size limit or is closed; a chat request then answers 409, and the thread continues once it is compacted. The `x-assistant-previous-thread` response header carries the id of the closed thread this one continues, when there is one. */
304
304
  readonly get: operations['getAssistantThread']
305
305
  readonly put?: never
306
- /** @description Run the experimental assistant on the caller's thread of the configuration, or replay the run when the request carries `Last-Event-ID`. Answers 409 when the thread cannot be continued or another run is still answering, and 503 while the server shuts down; sent again, the message reaches another instance. A 409 for a thread that cannot be continued, because it is closed, was started with another setup or has reached its size limit, carries the `x-assistant-thread-continuable: false` response header; the thread continues once it is compacted. Answers 403 unless the customer has the AI Assistant feature flag on. */
306
+ /** @description Run the experimental assistant on the caller's thread of the configuration, or replay the run when the request carries `Last-Event-ID`. Answers 409 when the thread cannot be continued or another run is still answering, and 503 while the server shuts down; sent again, the message reaches another instance. A 409 for a thread that cannot be continued, because it is closed, was started with another setup or has reached its size limit, carries the `x-assistant-thread-continuable: false` response header; the thread continues once it is compacted. Answers 403 unless the customer has the AI Assistant feature flag on. Answers 429 to a new message when the caller, its network address or its project has used up the assistant's hourly allowance; the `Retry-After` response header holds the seconds to the next full hour, when the message may be sent again. It also answers 429, without `Retry-After`, once the environment or its customer has used up the assistant's monthly allowance, which lasts until the next month or until a super admin raises it. A request that carries tool results for a reply in progress is never refused this way. */
307
307
  readonly post: operations['assistantChat']
308
308
  readonly delete?: never
309
309
  readonly options?: never
@@ -388,7 +388,7 @@ export interface paths {
388
388
  }
389
389
  readonly get?: never
390
390
  readonly put?: never
391
- /** @description Store a screenshot the browser took for the assistant in the caller's open thread on the configuration, while a run of the assistant answers there. The body is the raw JPEG or PNG image, with its type as the content type. The answer carries the id that tool results reference the image by, as `assistant-image:<imageId>`. Answers 409 when the caller has no open thread on the configuration or the thread is not in the middle of a reply (no run running and no client tool call waiting), and 415 for any other content type. */
391
+ /** @description Store an image in the caller's thread on the configuration: a screenshot the browser took for a run of the assistant, or an image the user attaches to the message they are about to send. Creates the thread when the caller has none yet. The body is the raw JPEG or PNG image of at most 2 MB, with its type as the content type. The answer carries the id that messages and tool results reference the image by, as `assistant-image:<imageId>`. Answers 409 with the `x-assistant-thread-continuable: false` response header when the thread cannot take a new message of the user (closed, started with another setup or at its size limit) and is not in the middle of a reply (no run running and no client tool call waiting); the thread takes images again once it is compacted. Answers 413 for a body over 2 MB and 415 for any other content type. */
392
392
  readonly post: operations['uploadAssistantImage']
393
393
  readonly delete?: never
394
394
  readonly options?: never
@@ -403,7 +403,7 @@ export interface paths {
403
403
  readonly path?: never
404
404
  readonly cookie?: never
405
405
  }
406
- /** @description Load a screenshot of one of the caller's assistant threads on the configuration, the earlier threads of the chain included. The bytes never change, so the answer may be cached for good. Answers 404 for an image that is not in one of the caller's threads on this configuration. */
406
+ /** @description Load an image of one of the caller's assistant threads on the configuration, a screenshot or an image the user attached, the earlier threads of the chain included. The bytes never change, so the answer may be cached for good. Answers 404 for an image that is not in one of the caller's threads on this configuration. */
407
407
  readonly get: operations['getAssistantImage']
408
408
  readonly put?: never
409
409
  readonly post?: never
@@ -1495,6 +1495,13 @@ export interface components {
1495
1495
  */
1496
1496
  readonly scopes?: readonly string[]
1497
1497
  }
1498
+ /** @description Payload Too Large: The request body is larger than the route's limit. */
1499
+ readonly PayloadTooLargeError: {
1500
+ /** @example Request body is too large */
1501
+ readonly message: string
1502
+ /** @enum {number} */
1503
+ readonly statusCode: 413
1504
+ }
1498
1505
  /**
1499
1506
  * @description The slug of the project, used for repository and domain creation.
1500
1507
  * @example my-project
@@ -3091,6 +3098,15 @@ export interface operations {
3091
3098
  readonly 'application/json': components['schemas']['ConflictError']
3092
3099
  }
3093
3100
  }
3101
+ /** @description Too Many Requests! */
3102
+ readonly 429: {
3103
+ headers: {
3104
+ readonly [name: string]: unknown
3105
+ }
3106
+ content: {
3107
+ readonly 'application/json': components['schemas']['TooManyRequestsError']
3108
+ }
3109
+ }
3094
3110
  /** @description Bad Gateway! */
3095
3111
  readonly 502: {
3096
3112
  headers: {
@@ -3476,7 +3492,7 @@ export interface operations {
3476
3492
  readonly 'application/json': {
3477
3493
  /**
3478
3494
  * Format: uuid
3479
- * @description The id tool results reference the image by.
3495
+ * @description The id messages and tool results reference the image by.
3480
3496
  */
3481
3497
  readonly imageId: string
3482
3498
  }
@@ -3527,6 +3543,15 @@ export interface operations {
3527
3543
  readonly 'application/json': components['schemas']['ConflictError']
3528
3544
  }
3529
3545
  }
3546
+ /** @description Payload Too Large! */
3547
+ readonly 413: {
3548
+ headers: {
3549
+ readonly [name: string]: unknown
3550
+ }
3551
+ content: {
3552
+ readonly 'application/json': components['schemas']['PayloadTooLargeError']
3553
+ }
3554
+ }
3530
3555
  /** @description Unsupported Media Type! */
3531
3556
  readonly 415: {
3532
3557
  headers: {
@@ -3563,7 +3588,7 @@ export interface operations {
3563
3588
  readonly path: {
3564
3589
  /** @description The configuration on which the caller's assistant thread is used. */
3565
3590
  readonly configurationId: components['schemas']['ConfigurationUuid']
3566
- /** @description The image, as a tool result references it. */
3591
+ /** @description The image, as a message or a tool result references it. */
3567
3592
  readonly imageId: string
3568
3593
  }
3569
3594
  readonly cookie?: never
@@ -5128,6 +5153,8 @@ export interface operations {
5128
5153
  readonly requestBody: {
5129
5154
  readonly content: {
5130
5155
  readonly 'application/json': {
5156
+ /** @enum {string} */
5157
+ readonly acceptResponseEncoding?: 'gzip'
5131
5158
  readonly sessionId: string
5132
5159
  }
5133
5160
  }
@@ -5225,6 +5252,7 @@ export interface operations {
5225
5252
  readonly headers?: {
5226
5253
  readonly [key: string]: string
5227
5254
  }
5255
+ readonly isBase64Encoded?: boolean
5228
5256
  readonly requestId: string
5229
5257
  readonly sessionId: string
5230
5258
  readonly status: number
@@ -6312,6 +6340,11 @@ export interface operations {
6312
6340
  | boolean
6313
6341
  | {
6314
6342
  readonly ai: {
6343
+ readonly hourlyLimits?: {
6344
+ readonly ip?: number
6345
+ readonly project?: number
6346
+ readonly sub?: number
6347
+ }
6315
6348
  readonly maxThreadSize?: number
6316
6349
  /** @enum {string} */
6317
6350
  readonly model: 'frontier' | 'advanced' | 'balanced' | 'fast'
@@ -6535,6 +6568,11 @@ export interface operations {
6535
6568
  | boolean
6536
6569
  | {
6537
6570
  readonly ai: {
6571
+ readonly hourlyLimits?: {
6572
+ readonly ip?: number
6573
+ readonly project?: number
6574
+ readonly sub?: number
6575
+ }
6538
6576
  readonly maxThreadSize?: number
6539
6577
  /** @enum {string} */
6540
6578
  readonly model: 'frontier' | 'advanced' | 'balanced' | 'fast'
@@ -1 +1 @@
1
- import{jsx as r,jsxs as e}from"react/jsx-runtime";import{I18nProvider as o}from"@lingui/react";import{QueryClientProvider as i}from"@tanstack/react-query";import n from"mui-modal-provider";import{useEffect as t}from"react";import{standardWebComponentProperties as c}from"#package/domain";import{getAvailableLocales as a,resolveLocale as m}from"#package/i18n";import{ApplicationType as l,ApplicationTypeProvider as d,ConfiguratorDataProvider as p,ConfiguratorRoutingProvider as s,InvalidDeploymentReload as f,LoaderHost as h,OnApplicationStartProvider as u,OnRoutingReadyProvider as x,OnSessionReadyProvider as g,PresetSelectionProvider as j,SessionServiceProvider as k,useApplicationQueryClient as b,useI18n as v,usePowerRoutingLifecycle as y,useSpecAlwaysExpand as C,useSpecAppLoader as w,useSpecPrefetchTextureUrls as E,useSpecPreview as I,useWebComponentProperty$ as L,useWebComponentPropertySetter as Z,useWebComponentPropertyValue as q}from"#package/react-sdk";import{SnackbarProvider as A}from"#package/ui-sdk";import{ConfiguratorResponsiveProvider as B}from"./configurator-context/ConfiguratorResponsiveProvider.js";import{PreviewApplicationProvider as F}from"./configurator-context/index.js";import{LoadingErrorBoundary as P}from"./pages/error-boundaries/LoadingErrorBoundary.js";import{GeneralErrorFallback as R,RootPage as S}from"./pages/index.js";import{SceneResourcesProvider as T}from"./scene/index.js";import{EncapsulatedConfiguratorTheme as U}from"./ui/index.js";import{AppLoader as z}from"./ui/phoenix-layout-elements/index.js";export const ConfiguratorApp=()=>{let D=b(),G=v(),H=w(),J=I(),K=C(),M=E(),N=Z(c.locale),O=L(c.locale);t(()=>{let r=O.subscribe(r=>{let e=m(r,a(G));G.activate(e)}),e=()=>{N(G.locale)};return G.on("change",e),()=>{r.unsubscribe(),G.removeListener("change",e)}},[O,G,N]);let Q=q(c.containerZIndex),V=q(c.power);return(y(),"off"===V)?null:r(d,{type:l.Configurator,children:r(i,{client:D,children:r(U,{children:r(h,{children:r(B,{containerZIndex:Q,children:r(z,{mode:H,children:r(F,{alwaysExpand:K,preview:J,children:r(o,{i18n:G,children:r(A,{maxSnack:5,children:r(P,{FallbackComponent:R,children:r(T,{prefetchTextureUrls:M,children:r(u,{children:r(k,{children:r(g,{children:"on"===V&&r(s,{children:r(p,{children:r(j,{children:r(x,{children:e(n,{children:[r(f,{}),r(S,{})]})})})})})})})})})})})})})})})})})})})};
1
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";import{I18nProvider as o}from"@lingui/react";import{QueryClientProvider as n}from"@tanstack/react-query";import i from"mui-modal-provider";import{useEffect as l}from"react";import{standardWebComponentProperties as a}from"#package/domain";import{getAvailableLocales as t,resolveLocale as c}from"#package/i18n";import{ApplicationType as d,ApplicationTypeProvider as m,ConfiguratorDataProvider as s,ConfiguratorProviderSlot as p,ConfiguratorProviderSlotHost as h,ConfiguratorRoutingProvider as u,ConfiguratorUiElement as f,ConfiguratorUiElementHost as g,ErrorFallbackElement as b,LoaderHost as k,OnApplicationStartProvider as x,OnRoutingReadyProvider as j,OnSessionReadyProvider as v,PlainErrorFallback as y,PresetSelectionProvider as C,SessionServiceProvider as w,useApplicationQueryClient as E,useI18n as F,usePowerRoutingLifecycle as L,useSpecAlwaysExpand as R,useSpecPreview as q,useWebComponentProperty$ as A,useWebComponentPropertySetter as B,useWebComponentPropertyValue as D}from"#package/react-sdk";import{PreviewApplicationProvider as G}from"./configurator-context/index.js";import{LoadingErrorBoundary as H}from"./pages/error-boundaries/LoadingErrorBoundary.js";import{RootPage as I}from"./pages/index.js";let M=e=>r(b,{name:f.GeneralErrorFallback,unregisteredFallback:y,...e});export const ConfiguratorApp=()=>{let b=E(),y=F(),S=q(),T=R(),z=B(a.locale),J=A(a.locale);l(()=>{let r=J.subscribe(r=>{let e=c(r,t(y));y.activate(e)}),e=()=>{z(y.locale)};return y.on("change",e),()=>{r.unsubscribe(),y.removeListener("change",e)}},[J,y,z]);let K=D(a.power);return(L(),"off"===K)?null:r(m,{type:d.Configurator,children:r(n,{client:b,children:r(h,{slot:p.Theme,children:r(k,{children:r(h,{slot:p.Container,children:r(h,{slot:p.Loader,children:r(G,{alwaysExpand:T,preview:S,children:r(o,{i18n:y,children:r(h,{slot:p.MessageHost,children:r(H,{FallbackComponent:M,children:r(h,{slot:p.SceneResources,children:r(x,{children:r(w,{children:r(v,{children:"on"===K&&r(u,{children:r(s,{children:r(C,{children:r(j,{children:e(i,{children:[r(g,{name:f.InvalidDeploymentReload}),r(I,{})]})})})})})})})})})})})})})})})})})})})};
@@ -1 +1 @@
1
- import{createSelector as e}from"@salsita-ai/common/utils";import{createSessionAssistant as t,isAssistantSetupHandler as n}from"#package/domain";import{AnimationSystem as s,AssistantSystem as o,CameraControlSystem as r,CameraSystem as a,CanvasSystem as i,DragAndDropSystem as g,ExportSystem as m,GraphQLSystem as l,ImageRenderingSystem as c,LayoutSystem as S,SketchingSystem as d}from"./systems/index.js";export const createConfiguratorExtensionSelectors=u=>{let{getState:y,domainContextSelectors:C,specSelectors:p,domainServicesSelectors:w,accessSelectors:f,commonServicesSelectors:h}=u,A=e.withTypes()([p.selectConfiguratorSpec,C.selectInitializationContext],(e,s)=>t({resolved:e.assistant,handler:e.handlers.find(n),inputs:s&&s.access?{role:s.role,sessionData:s.sessionData,access:s.access}:null})),I={getConfigurationId:()=>f.getConfiguratorConfigurationId(),getAuthorizedClient:()=>h.getConfiguratorAuthorizedClient(),getAssistantSetup:()=>A(y()),domainContextSelectors:C,domainServicesSelectors:w,specSelectors:p},x={getSystems:()=>Q,getCanvasSystem:()=>z,getCameraControlSystem:()=>D,getAnimationSystem:()=>b,getDragAndDropSystem:()=>v,getImageRenderingSystem:()=>G,getLayoutSystem:()=>T,getSketchingSystem:()=>j,getExportSystem:()=>k,getCameraSystem:()=>F,getGraphQLSystem:()=>L,getAssistantSystem:()=>R},E={...I,configuratorExtensionSelectors:x},z=new i(I),D=new r({configuratorExtensionSelectors:x}),v=new g(E),b=new s(I),k=new m(E),L=new l({...I,renderScreenshot:async(e,t)=>{let[n]=await x.getImageRenderingSystem().generateImagesFromComponents([e],t,{},{awaitSettledState:!0});if(!n)throw Error("The canvas rendered no image.");return n.blob},uploadScreenshot:e=>I.getAuthorizedClient().uploadAssistantImage(I.getConfigurationId(),e)}),R=new o(E),T=new S(I),j=new d(E),F=new a(E),G=new c(E),Q={cameraControlSystem:D,layoutSystem:T,sketchingSystem:j,dragAndDropSystem:v,canvasSystem:z,cameraSystem:F,exportSystem:k,imageRenderingSystem:G,animationSystem:b,graphQLSystem:L,assistantSystem:R};return x};
1
+ import{createSelector as e}from"@salsita-ai/common/utils";import{createSessionAssistant as t,isAssistantSetupHandler as n}from"#package/domain";import{AnimationSystem as s,AssistantSystem as o,CameraControlSystem as r,CameraSystem as a,CanvasSystem as i,DragAndDropSystem as g,ExportSystem as m,GraphQLSystem as l,ImageRenderingSystem as c,LayoutSystem as S,SketchingSystem as d}from"./systems/index.js";export const createConfiguratorExtensionSelectors=u=>{let{getState:y,domainContextSelectors:w,specSelectors:p,domainServicesSelectors:C,accessSelectors:f,commonServicesSelectors:h}=u,I=e.withTypes()([p.selectConfiguratorSpec,w.selectInitializationContext],(e,s)=>t({resolved:e.assistant,handler:e.handlers.find(n),inputs:s&&s.access?{role:s.role,sessionData:s.sessionData,access:s.access}:null})),A={getConfigurationId:()=>f.getConfiguratorConfigurationId(),getAuthorizedClient:()=>h.getConfiguratorAuthorizedClient(),getAssistantSetup:()=>I(y()),domainContextSelectors:w,domainServicesSelectors:C,specSelectors:p},x={getSystems:()=>G,getCanvasSystem:()=>E,getCameraControlSystem:()=>D,getAnimationSystem:()=>R,getDragAndDropSystem:()=>v,getImageRenderingSystem:()=>F,getLayoutSystem:()=>T,getSketchingSystem:()=>V,getExportSystem:()=>b,getCameraSystem:()=>j,getGraphQLSystem:()=>k,getAssistantSystem:()=>L},z={...A,configuratorExtensionSelectors:x},E=new i(A),D=new r({configuratorExtensionSelectors:x}),v=new g(z),R=new s(A),b=new m(z),k=new l({...A,renderScreenshot:async(e,t)=>{let[n]=await x.getImageRenderingSystem().generateImagesFromComponents([e],t,{},{awaitSettledState:!0});if(!n)throw Error("The canvas rendered no image.");return n.blob},uploadScreenshot:e=>A.getAuthorizedClient().uploadAssistantImage(A.getConfigurationId(),e)}),L=new o({...z,freezeView:()=>x.getImageRenderingSystem().captureView()}),T=new S(A),V=new d(z),j=new a(z),F=new c(z),G={cameraControlSystem:D,layoutSystem:T,sketchingSystem:V,dragAndDropSystem:v,canvasSystem:E,cameraSystem:j,exportSystem:b,imageRenderingSystem:F,animationSystem:R,graphQLSystem:k,assistantSystem:L};return x};
@@ -0,0 +1,31 @@
1
+ import type { AssistantAnnotationPin, AssistantMessageAnnotation } from '@salsita-ai/contracts/assistant';
2
+ /**
3
+ * What the user made in the annotation editor: the frozen view of the configurator with their marker
4
+ * strokes and numbered pin badges flattened into one image, ready for the upload, and the comments of
5
+ * the pins. It is attached to a message like an image; see {@link AssistantSystem.send}.
6
+ */
7
+ export interface AssistantAnnotation {
8
+ readonly blob: Blob;
9
+ readonly pins: ReadonlyArray<AssistantAnnotationPin>;
10
+ }
11
+ /**
12
+ * What covers the configurator for an annotation, as the layout renders it. The layout is inert
13
+ * while there is one.
14
+ *
15
+ * - `transition`: the view glides between the canvas padding and none; nothing is shown over it.
16
+ * - `editor`: the frozen view, which the user annotates; `finish` ends the editor with what they
17
+ * made, or with `null` when they cancel.
18
+ * - `viewer`: an annotation of a sent message, read-only, until `close`.
19
+ */
20
+ export type AssistantAnnotationOverlay = {
21
+ readonly kind: 'transition';
22
+ } | {
23
+ readonly kind: 'editor';
24
+ /** The frozen view, at the canvas's resolution. */
25
+ readonly view: HTMLCanvasElement;
26
+ readonly finish: (annotation: AssistantAnnotation | null) => void;
27
+ } | {
28
+ readonly kind: 'viewer';
29
+ readonly annotation: AssistantMessageAnnotation;
30
+ readonly close: () => void;
31
+ };