@salsita-ai/sdk 0.50.0-develop.b5d443db78 → 0.50.0-develop.b65a5a9c66

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 (980) hide show
  1. package/README.md +10 -3
  2. package/dist/admin/common/admin-interface.d.ts +13 -3
  3. package/dist/admin/common/admin-interface.js +1 -1
  4. package/dist/admin/ui/layout/UserProfile.d.ts +1 -1
  5. package/dist/admin/ui/layout/UserProfile.js +1 -1
  6. package/dist/admin/ui/maintenance/ImportPresets.js +1 -1
  7. package/dist/application/mount-application.js +1 -1
  8. package/dist/application/mount-configurator.js +1 -1
  9. package/dist/application/studio-embedding.d.ts +6 -0
  10. package/dist/application/studio-embedding.js +1 -0
  11. package/dist/application-spec/core/enhanced-json-schema.d.ts +5 -6
  12. package/dist/application-spec/core/enhanced-json-schema.js +1 -1
  13. package/dist/application-spec/core/markers/index.d.ts +1 -0
  14. package/dist/application-spec/core/markers/index.js +1 -1
  15. package/dist/application-spec/core/markers/set-in-studio-marker.d.ts +15 -0
  16. package/dist/application-spec/core/markers/set-in-studio-marker.js +1 -0
  17. package/dist/application-spec/errors/diagnostic-codes.d.ts +22 -0
  18. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  19. package/dist/application-spec/errors/diagnostic-messages.d.ts +23 -1
  20. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  21. package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +3 -3
  22. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  23. package/dist/application-spec/generate-application/code/index.d.ts +1 -0
  24. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +4 -15
  25. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  26. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +5 -1
  27. package/dist/application-spec/generate-application/code/templates/admin-config.js +4 -3
  28. package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
  29. package/dist/application-spec/generate-application/code/templates/configurator-config.js +8 -6
  30. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
  31. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
  32. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
  33. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
  34. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +6 -8
  35. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +3 -3
  36. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-base-configurator-builder.js +2 -1
  37. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
  38. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +38 -41
  39. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.d.ts +1 -1
  40. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +19 -3
  41. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  42. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  43. package/dist/application-spec/generate-application/code/templates/editor.d.ts +1 -1
  44. package/dist/application-spec/generate-application/code/templates/editor.js +16 -3
  45. package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
  46. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
  47. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
  48. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
  49. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
  50. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +12 -13
  51. package/dist/application-spec/generate-application/code/templates/globals.js +21 -12
  52. package/dist/application-spec/generate-application/code/templates/html-index.d.ts +12 -1
  53. package/dist/application-spec/generate-application/code/templates/html-index.js +9 -10
  54. package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
  55. package/dist/application-spec/generate-application/code/templates/sign-in-page-options.d.ts +5 -0
  56. package/dist/application-spec/generate-application/code/templates/sign-in-page-options.js +1 -0
  57. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  58. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +8 -36
  59. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +15 -11
  60. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  61. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  62. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  63. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
  64. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
  65. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  66. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
  67. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.d.ts +3 -0
  68. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
  70. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
  71. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
  72. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.d.ts +3 -0
  73. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.js +19 -0
  74. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
  75. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
  76. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
  77. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +2 -2
  78. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
  79. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  80. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
  81. package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -1
  82. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +3 -0
  83. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +48 -0
  84. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.d.ts +3 -0
  85. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.js +45 -0
  86. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.d.ts +3 -0
  87. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +36 -0
  88. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.d.ts +3 -0
  89. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.js +92 -0
  90. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.d.ts +1 -0
  91. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.js +1 -0
  92. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.d.ts +3 -0
  93. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -0
  94. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.d.ts +3 -0
  95. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.js +1 -0
  96. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.d.ts +3 -0
  97. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.js +26 -0
  98. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.d.ts +3 -0
  99. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.js +51 -0
  100. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.d.ts +3 -0
  101. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.js +38 -0
  102. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.d.ts +1 -0
  103. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.js +1 -0
  104. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.d.ts +3 -0
  105. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.js +88 -0
  106. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.d.ts +3 -0
  107. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.js +68 -0
  108. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.d.ts +3 -0
  109. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.js +1 -0
  110. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.d.ts +3 -0
  111. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -0
  112. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +2 -2
  113. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  114. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -1
  115. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  116. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  117. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
  118. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
  119. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
  120. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
  121. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
  122. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
  123. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
  124. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
  125. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  126. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  127. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
  128. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  129. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
  130. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
  131. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  132. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  133. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
  134. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
  135. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
  136. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
  137. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +0 -7
  138. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +1 -1
  139. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
  140. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +8 -6
  141. package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -6
  142. package/dist/application-spec/generate-application/code/webhook-safe-files.d.ts +3 -1
  143. package/dist/application-spec/generate-application/code/webhook-safe-files.js +1 -1
  144. package/dist/application-spec/parse-application-files/access/access-handler-kinds.d.ts +18 -0
  145. package/dist/application-spec/parse-application-files/access/access-handler-kinds.js +1 -0
  146. package/dist/application-spec/parse-application-files/access/analyzed-file.d.ts +7 -0
  147. package/dist/application-spec/parse-application-files/access/check-access-handler-files.d.ts +20 -0
  148. package/dist/application-spec/parse-application-files/access/check-access-handler-files.js +1 -0
  149. package/dist/application-spec/parse-application-files/access/check-auth-hook-files.d.ts +17 -0
  150. package/dist/application-spec/parse-application-files/access/check-auth-hook-files.js +1 -0
  151. package/dist/application-spec/parse-application-files/access/index.d.ts +5 -0
  152. package/dist/application-spec/parse-application-files/access/index.js +1 -0
  153. package/dist/application-spec/parse-application-files/access/sign-in-control.d.ts +7 -0
  154. package/dist/application-spec/parse-application-files/access/sign-in-control.js +1 -0
  155. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +2 -1
  156. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  157. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +30 -4
  158. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  159. package/dist/application-spec/parse-application-files/categorize/webhook-safety.js +1 -1
  160. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +17 -1
  161. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  162. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  163. package/dist/application-spec/parse-application-files/merge/merged-spec.d.ts +7 -1
  164. package/dist/application-spec/parse-application-files/merge/merged-spec.js +1 -1
  165. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  166. package/dist/application-spec/parse-application-files/parse-common-admin-spec.js +1 -1
  167. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
  168. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
  169. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +67 -8
  170. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  171. package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
  172. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +12 -3
  173. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  174. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  175. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.d.ts +6 -0
  176. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  177. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  178. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +2 -1
  179. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  180. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.d.ts +5 -2
  181. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  182. package/dist/application-spec/parse-application-files/spec/model/session-fields/index.d.ts +1 -0
  183. package/dist/application-spec/parse-application-files/spec/model/session-fields/index.js +1 -0
  184. package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.d.ts +15 -0
  185. package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.js +1 -0
  186. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  187. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
  188. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  189. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
  190. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
  191. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +7 -10
  192. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  193. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
  194. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
  195. package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
  196. package/dist/application-spec/webhook-boundary.js +1 -1
  197. package/dist/client/authenticated-client.d.ts +5 -1
  198. package/dist/client/authenticated-client.js +1 -1
  199. package/dist/client/authorized-client.d.ts +4 -1
  200. package/dist/client/authorized-client.js +1 -1
  201. package/dist/client/base-client.d.ts +15 -1
  202. package/dist/client/base-client.js +1 -1
  203. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  204. package/dist/client/cli-client/cli-api-client.js +1 -0
  205. package/dist/client/cli-client/index.d.ts +2 -0
  206. package/dist/client/cli-client/index.js +1 -0
  207. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  208. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  209. package/dist/client/contract.d.ts +53 -10
  210. package/dist/client/contract.js +1 -1
  211. package/dist/client/index.d.ts +2 -1
  212. package/dist/client/index.js +1 -1
  213. package/dist/client/local-authorized-client.d.ts +1 -0
  214. package/dist/client/local-authorized-client.js +1 -1
  215. package/dist/client/memory-authorized-client.d.ts +1 -0
  216. package/dist/client/memory-authorized-client.js +1 -1
  217. package/dist/client/phoenix-api.d.ts +8470 -2127
  218. package/dist/client/unauthenticated-client.d.ts +1 -0
  219. package/dist/client/unauthenticated-client.js +1 -1
  220. package/dist/configurator/ConfiguratorApp.js +1 -1
  221. package/dist/configurator/agent-at-work/AgentAtWorkFallback.d.ts +7 -0
  222. package/dist/configurator/agent-at-work/AgentAtWorkFallback.js +1 -0
  223. package/dist/configurator/agent-at-work/AgentAtWorkPage.d.ts +20 -0
  224. package/dist/configurator/agent-at-work/AgentAtWorkPage.js +1 -0
  225. package/dist/configurator/agent-at-work/AgentModeBadge.d.ts +11 -0
  226. package/dist/configurator/agent-at-work/AgentModeBadge.js +1 -0
  227. package/dist/configurator/agent-at-work/StudioMark.d.ts +8 -0
  228. package/dist/configurator/agent-at-work/StudioMark.js +1 -0
  229. package/dist/configurator/agent-at-work/agent-at-work-copy.d.ts +17 -0
  230. package/dist/configurator/agent-at-work/agent-at-work-copy.js +1 -0
  231. package/dist/configurator/agent-at-work/agent-at-work-styles.d.ts +23 -0
  232. package/dist/configurator/agent-at-work/agent-at-work-styles.js +374 -0
  233. package/dist/configurator/agent-at-work/index.d.ts +3 -0
  234. package/dist/configurator/agent-at-work/index.js +1 -0
  235. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
  236. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  237. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  238. package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
  239. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  240. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
  241. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.js +1 -0
  242. package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
  243. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
  244. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
  245. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +56 -0
  246. package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
  247. package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
  248. package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
  249. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
  250. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
  251. package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
  252. package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
  253. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +14 -8
  254. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.d.ts +18 -0
  255. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.js +1 -0
  256. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.d.ts +69 -0
  257. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.js +1 -0
  258. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +252 -22
  259. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  260. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +63 -0
  261. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -0
  262. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -36
  263. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  264. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.d.ts +13 -0
  265. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.js +1 -0
  266. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.d.ts +7 -0
  267. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.js +1 -0
  268. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +3 -0
  269. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
  270. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +33 -0
  271. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -0
  272. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
  273. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
  274. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
  275. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
  276. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  277. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  278. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +18 -5
  279. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  280. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
  281. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  282. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +46 -12
  283. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  284. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
  285. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
  286. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
  287. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
  288. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
  289. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
  290. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
  291. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
  292. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
  293. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  294. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +8 -3
  295. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  296. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +11 -0
  297. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  298. package/dist/configurator/application-runtime/extensions/systems/sketching-system/sketching-system.d.ts +5 -5
  299. package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
  300. package/dist/configurator/common/configurator-interface.d.ts +21 -9
  301. package/dist/configurator/common/configurator-interface.js +1 -1
  302. package/dist/configurator/index.d.ts +1 -0
  303. package/dist/configurator/index.js +1 -1
  304. package/dist/configurator/{ui/configurator-layout/universal → pages}/ExportingOverlay.d.ts +3 -2
  305. package/dist/configurator/pages/ExportingOverlay.js +1 -0
  306. package/dist/configurator/pages/InertRoot.d.ts +10 -0
  307. package/dist/configurator/pages/InertRoot.js +1 -0
  308. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  309. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  310. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  311. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.d.ts +8 -0
  312. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.js +1 -0
  313. package/dist/configurator/pages/error-boundaries/DevContextFallback.d.ts +4 -2
  314. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  315. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.d.ts +6 -4
  316. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  317. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  318. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  319. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  320. package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
  321. package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
  322. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
  323. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  324. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
  325. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
  326. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
  327. package/dist/configurator/ui/assistant/AssistantChips.d.ts +78 -6
  328. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  329. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +99 -1
  330. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  331. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +37 -3
  332. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  333. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +51 -4
  334. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  335. package/dist/configurator/ui/assistant/AssistantThread.d.ts +85 -2
  336. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  337. package/dist/configurator/ui/assistant/AssistantThreadItemView.d.ts +83 -6
  338. package/dist/configurator/ui/assistant/AssistantThreadItemView.js +1 -1
  339. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +35 -1
  340. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
  341. package/dist/configurator/ui/assistant/alert/index.d.ts +1 -1
  342. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +34 -0
  343. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -1
  344. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +2 -3
  345. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
  346. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
  347. package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +59 -5
  348. package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -1
  349. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +40 -5
  350. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  351. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
  352. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  353. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  354. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  355. package/dist/configurator/ui/assistant/annotation/editor/index.d.ts +1 -0
  356. package/dist/configurator/ui/assistant/annotation/index.d.ts +3 -2
  357. package/dist/configurator/ui/assistant/annotation/index.js +1 -1
  358. package/dist/configurator/ui/assistant/assistant-failure.d.ts +9 -4
  359. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  360. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +49 -5
  361. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
  362. package/dist/configurator/ui/assistant/attachments/index.d.ts +1 -1
  363. package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +7 -2
  364. package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -1
  365. package/dist/configurator/ui/assistant/composer/index.d.ts +1 -1
  366. package/dist/configurator/ui/assistant/composer/index.js +1 -1
  367. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
  368. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
  369. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
  370. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
  371. package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
  372. package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
  373. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +58 -0
  374. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -0
  375. package/dist/configurator/ui/assistant/drawing/index.d.ts +2 -0
  376. package/dist/configurator/ui/assistant/drawing/index.js +1 -0
  377. package/dist/configurator/ui/assistant/drawing/parse-drawing.d.ts +18 -0
  378. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -0
  379. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +8 -0
  380. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -0
  381. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +35 -1
  382. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  383. package/dist/configurator/ui/assistant/entity-link/index.d.ts +1 -1
  384. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +59 -2
  385. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  386. package/dist/configurator/ui/assistant/form/built-in-form-slots.d.ts +16 -0
  387. package/dist/configurator/ui/assistant/form/built-in-form-slots.js +1 -0
  388. package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
  389. package/dist/configurator/ui/assistant/form/index.d.ts +2 -1
  390. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
  391. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  392. package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
  393. package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
  394. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
  395. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
  396. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
  397. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
  398. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
  399. package/dist/configurator/ui/assistant/form/registry/index.d.ts +1 -1
  400. package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
  401. package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
  402. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +51 -0
  403. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -1
  404. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +47 -0
  405. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -1
  406. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +43 -0
  407. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
  408. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +56 -2
  409. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
  410. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +43 -0
  411. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
  412. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +47 -0
  413. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
  414. package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
  415. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
  416. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
  417. package/dist/configurator/ui/assistant/form-elements/index.d.ts +8 -9
  418. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  419. package/dist/configurator/ui/assistant/image-view/ImageView.d.ts +66 -0
  420. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -0
  421. package/dist/configurator/ui/assistant/image-view/index.d.ts +1 -0
  422. package/dist/configurator/ui/assistant/image-view/index.js +1 -0
  423. package/dist/configurator/ui/assistant/image-view/use-image-blob.d.ts +7 -0
  424. package/dist/configurator/ui/assistant/image-view/use-image-blob.js +1 -0
  425. package/dist/configurator/ui/assistant/index.d.ts +21 -10
  426. package/dist/configurator/ui/assistant/index.js +1 -1
  427. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.d.ts +57 -0
  428. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -0
  429. package/dist/configurator/ui/assistant/panel/index.d.ts +1 -0
  430. package/dist/configurator/ui/assistant/panel/index.js +1 -0
  431. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +43 -1
  432. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
  433. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
  434. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
  435. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -2
  436. package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
  437. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +49 -2
  438. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -1
  439. package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
  440. package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
  441. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +34 -0
  442. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
  443. package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -1
  444. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
  445. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  446. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
  447. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  448. package/dist/configurator/ui/assistant/thread-items.d.ts +17 -3
  449. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  450. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +32 -7
  451. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  452. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
  453. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
  454. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
  455. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
  456. package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
  457. package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
  458. package/dist/configurator/ui/assistant/voice/RecordingBar.d.ts +21 -0
  459. package/dist/configurator/ui/assistant/voice/RecordingBar.js +1 -0
  460. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.d.ts +43 -0
  461. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.js +1 -0
  462. package/dist/configurator/ui/assistant/voice/index.d.ts +4 -0
  463. package/dist/configurator/ui/assistant/voice/index.js +1 -0
  464. package/dist/configurator/ui/assistant/voice/use-voice-recording.d.ts +39 -0
  465. package/dist/configurator/ui/assistant/voice/use-voice-recording.js +1 -0
  466. package/dist/configurator/ui/assistant/voice/voice-capture.d.ts +22 -0
  467. package/dist/configurator/ui/assistant/voice/voice-capture.js +1 -0
  468. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  469. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  470. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  471. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  472. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  473. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  474. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  475. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  476. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  477. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  478. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  479. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  480. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  481. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  482. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  483. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  484. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  485. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  486. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  487. package/dist/configurator/ui/index.d.ts +1 -1
  488. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  489. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  490. package/dist/docs/index.json +130 -5
  491. package/dist/docs/integrations/woocommerce/overview.mdx +4 -2
  492. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  493. package/dist/docs/layouts/presets/custom.mdx +1 -0
  494. package/dist/docs/layouts/preview/always.mdx +22 -0
  495. package/dist/docs/layouts/view-controls.mdx +2 -0
  496. package/dist/docs/other-features/domain-actions.mdx +82 -55
  497. package/dist/docs/other-features/violation-messages.mdx +3 -1
  498. package/dist/docs/phoenix/admin.mdx +25 -64
  499. package/dist/docs/phoenix/application-states.mdx +1 -1
  500. package/dist/docs/phoenix/assistant/actions.mdx +183 -0
  501. package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
  502. package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
  503. package/dist/docs/phoenix/assistant/overview.mdx +137 -0
  504. package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
  505. package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
  506. package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
  507. package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
  508. package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
  509. package/dist/docs/phoenix/blender-rendering.mdx +3 -1
  510. package/dist/docs/phoenix/clerk-sign-in.mdx +9 -5
  511. package/dist/docs/phoenix/configurator-interface.mdx +105 -10
  512. package/dist/docs/phoenix/data-sources.mdx +71 -51
  513. package/dist/docs/phoenix/deployments.mdx +3 -3
  514. package/dist/docs/phoenix/finalization.mdx +2 -2
  515. package/dist/docs/phoenix/getting-started.mdx +1 -1
  516. package/dist/docs/phoenix/integration/authentication-external.mdx +5 -5
  517. package/dist/docs/phoenix/integration/authentication-internal.mdx +3 -3
  518. package/dist/docs/phoenix/integration/finalization-internal.mdx +2 -5
  519. package/dist/docs/phoenix/integration/integration-modes-internal.mdx +9 -0
  520. package/dist/docs/phoenix/layout-slots.mdx +2 -2
  521. package/dist/docs/phoenix/localization.mdx +2 -1
  522. package/dist/docs/phoenix/migrations.mdx +1 -1
  523. package/dist/docs/phoenix/phoenix-cli.mdx +100 -60
  524. package/dist/docs/phoenix/project-structure.mdx +30 -15
  525. package/dist/docs/phoenix/publishing.mdx +21 -28
  526. package/dist/docs/phoenix/sdk-builder-workflow.mdx +61 -30
  527. package/dist/docs/phoenix/sessions-and-access.mdx +180 -153
  528. package/dist/docs/phoenix/sharing.mdx +1 -1
  529. package/dist/docs/phoenix/theming.mdx +5 -9
  530. package/dist/docs/phoenix/webhook-membership.mdx +4 -1
  531. package/dist/docs/phoenix/webhooks.mdx +449 -296
  532. package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
  533. package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
  534. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  535. package/dist/docs/ux-guidelines/overview.mdx +11 -9
  536. package/dist/domain/admin-domain/index.d.ts +2 -2
  537. package/dist/domain/application/access/access-handlers.d.ts +19 -0
  538. package/dist/domain/application/access/access-handlers.js +1 -0
  539. package/dist/domain/application/access/anonymous-handler.d.ts +16 -0
  540. package/dist/domain/application/access/anonymous-handler.js +1 -0
  541. package/dist/domain/application/access/chunk-scopes-handler.d.ts +27 -0
  542. package/dist/domain/application/access/chunk-scopes-handler.js +1 -0
  543. package/dist/domain/application/access/code-handler.d.ts +16 -0
  544. package/dist/domain/application/access/code-handler.js +1 -0
  545. package/dist/domain/application/access/index.d.ts +7 -0
  546. package/dist/domain/application/access/index.js +1 -0
  547. package/dist/domain/application/access/refresh-handler.d.ts +16 -0
  548. package/dist/domain/application/access/refresh-handler.js +1 -0
  549. package/dist/domain/application/access/signed-in-handler.d.ts +44 -0
  550. package/dist/domain/application/access/signed-in-handler.js +1 -0
  551. package/dist/domain/application/access/visitor-handler.d.ts +23 -0
  552. package/dist/domain/application/access/visitor-handler.js +1 -0
  553. package/dist/domain/application/application-config.d.ts +37 -1
  554. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  555. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  556. package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
  557. package/dist/domain/application/assistant/assistant-selection.js +1 -0
  558. package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
  559. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
  560. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  561. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +18 -2
  562. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  563. package/dist/domain/application/assistant/index.d.ts +5 -1
  564. package/dist/domain/application/assistant/index.js +1 -1
  565. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
  566. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
  567. package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
  568. package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
  569. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  570. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +30 -2
  571. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  572. package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
  573. package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
  574. package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
  575. package/dist/domain/application/assistant/session-setup/index.js +1 -1
  576. package/dist/domain/application/assistant-field-options.d.ts +2 -0
  577. package/dist/domain/application/assistant-field-options.js +1 -1
  578. package/dist/domain/application/assistant-mutations.d.ts +17 -11
  579. package/dist/domain/application/assistant-mutations.js +1 -1
  580. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  581. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  582. package/dist/domain/application/configurator-builder.d.ts +47 -37
  583. package/dist/domain/application/configurator-builder.js +1 -1
  584. package/dist/domain/application/index.d.ts +2 -1
  585. package/dist/domain/application/index.js +1 -1
  586. package/dist/domain/application/standard-properties.d.ts +1 -1
  587. package/dist/domain/application/standard-properties.js +1 -1
  588. package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
  589. package/dist/domain/available-system-components/available-system-components.js +1 -1
  590. package/dist/domain/core/action/action.d.ts +0 -49
  591. package/dist/domain/core/action/index.d.ts +0 -1
  592. package/dist/domain/core/action/index.js +1 -1
  593. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  594. package/dist/domain/core/component/system-component-filter.js +1 -1
  595. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  596. package/dist/domain/core/component/view-state-component.js +1 -1
  597. package/dist/domain/core/domain-factory.d.ts +8 -3
  598. package/dist/domain/core/domain-factory.js +1 -1
  599. package/dist/domain/core/fit-session-data.d.ts +16 -0
  600. package/dist/domain/core/fit-session-data.js +1 -0
  601. package/dist/domain/core/index.d.ts +1 -1
  602. package/dist/domain/core/index.js +1 -1
  603. package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
  604. package/dist/domain/core/invariant/control-violation-hints.js +1 -0
  605. package/dist/domain/core/invariant/index.d.ts +1 -0
  606. package/dist/domain/core/invariant/index.js +1 -1
  607. package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
  608. package/dist/domain/domain-builder/domain-builder.js +1 -1
  609. package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
  610. package/dist/domain/domain-context/index.d.ts +0 -1
  611. package/dist/domain/domain-context/index.js +1 -1
  612. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  613. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  614. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  615. package/dist/domain/domain-runtime/domain-context/actions.d.ts +4 -0
  616. package/dist/domain/domain-runtime/domain-context/actions.js +1 -1
  617. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +9 -1
  618. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  619. package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
  620. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +6 -4
  621. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  622. package/dist/domain/domain-runtime/domain-context/types.d.ts +8 -4
  623. package/dist/domain/domain-runtime/domain-runtime.d.ts +27 -13
  624. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  625. package/dist/domain/domain-runtime/environment/actions.d.ts +1 -0
  626. package/dist/domain/domain-runtime/environment/actions.js +1 -1
  627. package/dist/domain/domain-runtime/environment/initialize.js +1 -1
  628. package/dist/domain/domain-runtime/environment/selectors.d.ts +2 -0
  629. package/dist/domain/domain-runtime/environment/selectors.js +1 -1
  630. package/dist/domain/domain-runtime/environment/types.d.ts +6 -0
  631. package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
  632. package/dist/domain/domain-runtime/spec/index.js +1 -1
  633. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  634. package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
  635. package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
  636. package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
  637. package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
  638. package/dist/domain/extensions/assistant/index.d.ts +1 -0
  639. package/dist/domain/extensions/assistant/index.js +1 -0
  640. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
  641. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  642. package/dist/domain/extensions/index.d.ts +1 -1
  643. package/dist/domain/extensions/index.js +1 -1
  644. package/dist/domain/index.d.ts +1 -1
  645. package/dist/domain/index.js +1 -1
  646. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +13 -6
  647. package/dist/domain/spec/expressions/relation-expression-params.d.ts +1 -1
  648. package/dist/domain/spec/modules/index.d.ts +0 -1
  649. package/dist/domain/spec/modules/index.js +1 -1
  650. package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
  651. package/dist/domain/spec/phx/phx-domain.js +1 -1
  652. package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
  653. package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
  654. package/dist/domain/spec/runtime/create-application.d.ts +5 -2
  655. package/dist/domain/spec/runtime/create-application.js +1 -1
  656. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
  657. package/dist/domain/spec/sections/actions.d.ts +3 -2
  658. package/dist/domain/spec/sections/app-metadata.d.ts +13 -0
  659. package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
  660. package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
  661. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +35 -2
  662. package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
  663. package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
  664. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +55 -13
  665. package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
  666. package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
  667. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
  668. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
  669. package/dist/domain/spec/sections/assistant/index.d.ts +5 -2
  670. package/dist/domain/system-components/index.d.ts +1 -0
  671. package/dist/domain/system-components/index.js +1 -1
  672. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  673. package/dist/domain/system-components/navigation/index.js +1 -0
  674. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  675. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  676. package/dist/editor/Editor.d.ts +5 -0
  677. package/dist/editor/Editor.js +1 -1
  678. package/dist/editor/EditorMode.d.ts +2 -0
  679. package/dist/editor/EditorMode.js +1 -1
  680. package/dist/editor/agent-mode/AgentModeBridge.d.ts +10 -0
  681. package/dist/editor/agent-mode/AgentModeBridge.js +1 -0
  682. package/dist/editor/agent-mode/agent-at-work-fonts.d.ts +2 -0
  683. package/dist/editor/agent-mode/agent-at-work-fonts.js +1 -0
  684. package/dist/editor/console-reporter/BrowserConsoleReporter.js +1 -1
  685. package/dist/editor/console-reporter/console-capture.d.ts +20 -0
  686. package/dist/editor/console-reporter/console-capture.js +1 -0
  687. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  688. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  689. package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
  690. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  691. package/dist/editor/index.d.ts +1 -0
  692. package/dist/editor/index.js +1 -1
  693. package/dist/editor/variants/VariantAnswerFooter.d.ts +8 -1
  694. package/dist/editor/variants/VariantAnswerFooter.js +1 -1
  695. package/dist/editor/variants/VariantPageUnavailable.d.ts +5 -0
  696. package/dist/editor/variants/VariantPageUnavailable.js +1 -0
  697. package/dist/editor/variants/VariantPreviewHandler.js +1 -1
  698. package/dist/editor/variants/variant-preview-fonts.d.ts +2 -0
  699. package/dist/editor/variants/variant-preview-fonts.js +1 -0
  700. package/dist/editor/variants/variant-preview-styles.d.ts +40 -48
  701. package/dist/editor/variants/variant-preview-styles.js +493 -1
  702. package/dist/extras/clerk/index.d.ts +6 -0
  703. package/dist/extras/cognito/AccountAvatar.d.ts +7 -0
  704. package/dist/extras/cognito/AccountAvatar.js +1 -0
  705. package/dist/extras/cognito/AccountControl.d.ts +13 -0
  706. package/dist/extras/cognito/AccountControl.js +1 -0
  707. package/dist/extras/cognito/AdminSignInPage.d.ts +26 -0
  708. package/dist/extras/cognito/AdminSignInPage.js +1 -0
  709. package/dist/extras/cognito/CognitoSignInPage.d.ts +8 -0
  710. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  711. package/dist/extras/cognito/ConfiguratorSignInPage.d.ts +19 -0
  712. package/dist/extras/cognito/ConfiguratorSignInPage.js +1 -0
  713. package/dist/extras/cognito/SignInFailurePage.d.ts +11 -0
  714. package/dist/extras/cognito/SignInFailurePage.js +1 -0
  715. package/dist/extras/cognito/SignInGateLayout.d.ts +25 -0
  716. package/dist/extras/cognito/SignInGateLayout.js +1 -0
  717. package/dist/extras/cognito/SignInNotice.d.ts +8 -0
  718. package/dist/extras/cognito/SignInNotice.js +1 -0
  719. package/dist/extras/cognito/index.d.ts +5 -0
  720. package/dist/extras/cognito/index.js +1 -0
  721. package/dist/globals/index.d.ts +5 -0
  722. package/dist/i18n/locales/cs/messages.js +1 -1
  723. package/dist/i18n/locales/da/messages.js +1 -1
  724. package/dist/i18n/locales/de/messages.js +1 -1
  725. package/dist/i18n/locales/de-AT/messages.js +1 -1
  726. package/dist/i18n/locales/en/messages.js +1 -1
  727. package/dist/i18n/locales/en-AU/messages.js +1 -1
  728. package/dist/i18n/locales/en-GB/messages.js +1 -1
  729. package/dist/i18n/locales/es/messages.js +1 -1
  730. package/dist/i18n/locales/fr/messages.js +1 -1
  731. package/dist/i18n/locales/hu/messages.js +1 -1
  732. package/dist/i18n/locales/it/messages.js +1 -1
  733. package/dist/i18n/locales/nl/messages.js +1 -1
  734. package/dist/i18n/locales/pl/messages.js +1 -1
  735. package/dist/i18n/locales/pt/messages.js +1 -1
  736. package/dist/i18n/locales/ro/messages.js +1 -1
  737. package/dist/i18n/locales/sk/messages.js +1 -1
  738. package/dist/i18n/locales/tr/messages.js +1 -1
  739. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  740. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  741. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  742. package/dist/legacy/domain-cli/gen/configurator-builder.js +5 -4
  743. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  744. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  745. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +25 -3
  746. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  747. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  748. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  749. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  750. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  751. package/dist/phoenix/application-spec/application-spec-builder.d.ts +2 -2
  752. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  753. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +2 -1
  754. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  755. package/dist/phoenix/application-spec/generate-project-files.d.ts +4 -3
  756. package/dist/phoenix/application-spec/generate-project-files.js +1 -1
  757. package/dist/phoenix/application-spec/index.d.ts +2 -1
  758. package/dist/phoenix/application-spec/index.js +1 -1
  759. package/dist/phoenix/application-spec/read-spec-project.d.ts +1 -2
  760. package/dist/phoenix/application-spec/read-spec-project.js +1 -1
  761. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +10 -2
  762. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  763. package/dist/phoenix/cli.js +1 -1
  764. package/dist/phoenix/commands/account/index.d.ts +1 -0
  765. package/dist/phoenix/commands/account/index.js +1 -0
  766. package/dist/phoenix/commands/account/whoami.d.ts +10 -0
  767. package/dist/phoenix/commands/account/whoami.js +4 -0
  768. package/dist/phoenix/commands/build.d.ts +2 -1
  769. package/dist/phoenix/commands/build.js +1 -1
  770. package/dist/phoenix/commands/clean.d.ts +2 -1
  771. package/dist/phoenix/commands/clean.js +1 -1
  772. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  773. package/dist/phoenix/commands/deploy.d.ts +7 -2
  774. package/dist/phoenix/commands/deploy.js +9 -3
  775. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  776. package/dist/phoenix/commands/deps/deps.js +2 -2
  777. package/dist/phoenix/commands/dev.d.ts +2 -1
  778. package/dist/phoenix/commands/dev.js +4 -4
  779. package/dist/phoenix/commands/feedback.d.ts +2 -2
  780. package/dist/phoenix/commands/feedback.js +1 -1
  781. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  782. package/dist/phoenix/commands/index.d.ts +1 -0
  783. package/dist/phoenix/commands/index.js +1 -1
  784. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  785. package/dist/phoenix/commands/init.d.ts +2 -2
  786. package/dist/phoenix/commands/init.js +1 -1
  787. package/dist/phoenix/commands/login.d.ts +6 -3
  788. package/dist/phoenix/commands/login.js +3 -3
  789. package/dist/phoenix/commands/logout.js +1 -1
  790. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  791. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  792. package/dist/phoenix/commands/sync.d.ts +2 -1
  793. package/dist/phoenix/commands/sync.js +1 -1
  794. package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
  795. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  796. package/dist/phoenix/services/cli-credentials.d.ts +26 -7
  797. package/dist/phoenix/services/cli-credentials.js +2 -2
  798. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  799. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  800. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  801. package/dist/phoenix/services/cli-server/index.js +1 -0
  802. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
  803. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  804. package/dist/phoenix/services/dev-experience/dev-experience.d.ts +31 -0
  805. package/dist/phoenix/services/dev-experience/dev-experience.js +1 -0
  806. package/dist/phoenix/services/dev-experience/index.d.ts +3 -0
  807. package/dist/phoenix/services/dev-experience/index.js +1 -0
  808. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.d.ts +7 -0
  809. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.js +1 -0
  810. package/dist/phoenix/services/dev-experience/regenerated-page-experience.d.ts +24 -0
  811. package/dist/phoenix/services/dev-experience/regenerated-page-experience.js +1 -0
  812. package/dist/phoenix/services/development-credential.js +1 -1
  813. package/dist/phoenix/services/frontend-config.d.ts +2 -0
  814. package/dist/phoenix/services/index.d.ts +6 -3
  815. package/dist/phoenix/services/index.js +1 -1
  816. package/dist/phoenix/services/phoenix-pubsub.d.ts +4 -0
  817. package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
  818. package/dist/phoenix/services/phoenix-regions.js +1 -1
  819. package/dist/phoenix/services/prepare-development-environment.js +2 -2
  820. package/dist/phoenix/services/session/phoenix-application.d.ts +2 -1
  821. package/dist/phoenix/services/session/phoenix-application.js +2 -2
  822. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  823. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  824. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  825. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  826. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  827. package/dist/phoenix/services/spec-project/index.js +1 -0
  828. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  829. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  830. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  831. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  832. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  833. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  834. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
  835. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
  836. package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
  837. package/dist/phoenix/services/variant-file-session.js +1 -1
  838. package/dist/phoenix/services/vite-config.d.ts +2 -1
  839. package/dist/phoenix/services/vite-config.js +1 -1
  840. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  841. package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
  842. package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
  843. package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
  844. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  845. package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
  846. package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
  847. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
  848. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
  849. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
  850. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
  851. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
  852. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
  853. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
  854. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
  855. package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.d.ts +6 -0
  856. package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.js +1 -1
  857. package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
  858. package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
  859. package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
  860. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  861. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  862. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +2 -0
  863. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -1
  864. package/dist/react-sdk/application-runtime/hooks/use-environment.d.ts +7 -0
  865. package/dist/react-sdk/application-runtime/hooks/use-environment.js +1 -1
  866. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  867. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
  868. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
  869. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +2 -2
  870. package/dist/react-sdk/application-runtime/integration/integration-mode.d.ts +30 -0
  871. package/dist/react-sdk/application-runtime/integration/integration-mode.js +1 -1
  872. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  873. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +6 -0
  874. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -1
  875. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -1
  876. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -1
  877. package/dist/react-sdk/application-runtime/responsive/types.d.ts +9 -0
  878. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +48 -18
  879. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  880. package/dist/react-sdk/application-runtime/session/actions.d.ts +2 -1
  881. package/dist/react-sdk/application-runtime/session/actions.js +1 -1
  882. package/dist/react-sdk/application-runtime/session/initialize.js +1 -1
  883. package/dist/react-sdk/application-runtime/session/selectors.d.ts +2 -0
  884. package/dist/react-sdk/application-runtime/session/selectors.js +1 -1
  885. package/dist/react-sdk/application-runtime/session/session-service.d.ts +34 -1
  886. package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
  887. package/dist/react-sdk/application-runtime/session/session-token.d.ts +8 -0
  888. package/dist/react-sdk/application-runtime/session/session-token.js +1 -1
  889. package/dist/react-sdk/application-runtime/session/types.d.ts +6 -1
  890. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +3 -2
  891. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
  892. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  893. package/dist/react-sdk/domain-context/index.d.ts +3 -2
  894. package/dist/react-sdk/domain-context/index.js +1 -1
  895. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
  896. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
  897. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
  898. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
  899. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  900. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  901. package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
  902. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  903. package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
  904. package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
  905. package/dist/react-sdk/preset-selection/index.d.ts +2 -1
  906. package/dist/react-sdk/preset-selection/index.js +1 -1
  907. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
  908. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
  909. package/dist/react-sdk/session/AccessDeniedAdminPage.d.ts +13 -0
  910. package/dist/react-sdk/session/AccessDeniedAdminPage.js +1 -0
  911. package/dist/react-sdk/session/AccessDeniedPage.d.ts +20 -0
  912. package/dist/react-sdk/session/AccessDeniedPage.js +1 -0
  913. package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
  914. package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
  915. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  916. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  917. package/dist/react-sdk/session/index.d.ts +3 -0
  918. package/dist/react-sdk/session/index.js +1 -1
  919. package/dist/react-sdk/session/sign-in-address.d.ts +13 -0
  920. package/dist/react-sdk/session/sign-in-address.js +1 -0
  921. package/dist/react-sdk/session/studio-frame.d.ts +7 -0
  922. package/dist/react-sdk/session/studio-frame.js +1 -0
  923. package/dist/react-sdk/session/use-sign-in.d.ts +50 -0
  924. package/dist/react-sdk/session/use-sign-in.js +1 -0
  925. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  926. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  927. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
  928. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  929. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  930. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  931. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  932. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  933. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  934. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  935. package/dist/ui-sdk/icons/__generated/Microphone.d.ts +3 -0
  936. package/dist/ui-sdk/icons/__generated/Microphone.js +1 -0
  937. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.d.ts +3 -0
  938. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.js +1 -0
  939. package/dist/ui-sdk/icons/__generated/SpeakerHigh.d.ts +3 -0
  940. package/dist/ui-sdk/icons/__generated/SpeakerHigh.js +1 -0
  941. package/dist/ui-sdk/icons/__generated/SpeakerSlash.d.ts +3 -0
  942. package/dist/ui-sdk/icons/__generated/SpeakerSlash.js +1 -0
  943. package/dist/ui-sdk/icons/__generated/Stop.d.ts +3 -0
  944. package/dist/ui-sdk/icons/__generated/Stop.js +1 -0
  945. package/dist/ui-sdk/icons/__generated/index.d.ts +10 -0
  946. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  947. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  948. package/dist/ui-sdk/theme/types.d.ts +0 -4
  949. package/dist/webhook/builders/auth-handler-builder.d.ts +24 -1
  950. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  951. package/dist/webhook/builders/common.d.ts +14 -3
  952. package/dist/webhook/builders/webhook-builder.d.ts +18 -0
  953. package/dist/webhook/builders/webhook-builder.js +1 -1
  954. package/package.json +11 -4
  955. package/schema/domain-spec.json +444 -65
  956. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +0 -2
  957. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +0 -1
  958. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
  959. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
  960. package/dist/configurator/ui/assistant/annotation/annotation-host-context.d.ts +0 -5
  961. package/dist/configurator/ui/assistant/annotation/annotation-host-context.js +0 -1
  962. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
  963. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -9
  964. package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
  965. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -10
  966. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
  967. package/dist/configurator/ui/assistant/theme.d.ts +0 -2
  968. package/dist/configurator/ui/assistant/theme.js +0 -1
  969. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +0 -1
  970. package/dist/domain/core/action/action-factory.d.ts +0 -11
  971. package/dist/domain/domain-context/action-system/action-system.d.ts +0 -38
  972. package/dist/domain/domain-context/action-system/action-system.js +0 -1
  973. package/dist/domain/domain-context/action-system/index.d.ts +0 -1
  974. package/dist/domain/domain-context/action-system/index.js +0 -1
  975. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
  976. package/dist/domain/extensions/view-controls.d.ts +0 -25
  977. package/dist/domain/extensions/view-controls.js +0 -1
  978. package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
  979. /package/dist/{domain/domain-runtime/domain-context/action-context.js → application-spec/parse-application-files/access/analyzed-file.js} +0 -0
  980. /package/dist/{domain/core/action → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
@@ -0,0 +1,223 @@
1
+ # Nested View Controls
2
+
3
+ Use a two-level view control to choose a presentation within one camera view or group several cameras under one button. The caret opens a menu. Choosing an option updates the button label and highlights the selection. The button reserves space for the widest label in the group, so the toolbar stays still as you switch options.
4
+
5
+ ## Assembly
6
+
7
+ Give the group a declared view value when its children are choices within that view. Opening Assembly leaves the scene alone. Choose Exploded to separate the cover and insert, then Overview to clear the selection.
8
+
9
+ ```yaml
10
+ viewControls:
11
+ default:
12
+ items:
13
+ - { label: Overview, icon: Cube, value: overview }
14
+ - label: Assembly
15
+ icon: CubeDuotone
16
+ value: assembly
17
+ items:
18
+ - { label: Assembled, value: assembled }
19
+ - { label: Exploded, value: exploded }
20
+ ```
21
+
22
+ Both choices activate `assembly`, so components filtered to that view stay active. A project expression can read `getComponentSystemFilterState(state).viewChildState` to distinguish them. Child values may be created at runtime. This example supplies the same array shape via `items: { $read: $assemblyOptions }`. Change the option count to see the menu update. Removing the current option clears the child selection.
23
+
24
+ ## Standard views
25
+
26
+ Omit the group's value to organize declared views. Choose Side to activate the side camera. The readout shows `side` as the active view and an empty child state.
27
+
28
+ ```yaml
29
+ viewControls:
30
+ default:
31
+ items:
32
+ - { label: Overview, icon: Cube, value: overview }
33
+ - label: Standard views
34
+ icon: GridFour
35
+ items:
36
+ - { label: Front, value: front }
37
+ - { label: Side, value: side }
38
+ - { label: Top, value: top }
39
+ ```
40
+
41
+ Declare each child value in `viewStates`. In both examples, opening or dismissing the menu preserves the selection. Use the arrow keys to move through options, Enter to select, or Escape to dismiss.
42
+
43
+ ## Complete Implementation
44
+
45
+ {/* AUTO-GENERATED SECTION: This section is automatically updated by 'phoenix story build' */}
46
+
47
+ <details>
48
+ <summary>Click to view the complete implementation files</summary>
49
+
50
+ ### ./spec/domain.yaml
51
+
52
+ ```yaml
53
+ model:
54
+ latest:
55
+ entityTypes: [Scene]
56
+ aliases:
57
+ RootEntity: [Scene]
58
+ shapes:
59
+ Scene:
60
+ standardViews: { type: boolean }
61
+ optionCount: { type: integer, minimum: 0, maximum: 3 }
62
+
63
+ expressions:
64
+ Scene:
65
+ $insertHeight: { type: number }
66
+ $showOptionCount: { type: boolean, $eval: '!self.standardViews' }
67
+
68
+ viewStates: [overview, assembly, front, side, top]
69
+
70
+ presets:
71
+ - rootEntityType: Scene
72
+ initialDomainEntities:
73
+ - { id: Scene-1, type: Scene, standardViews: false, optionCount: 2 }
74
+
75
+ components:
76
+ Scene:
77
+ applicationConfig:
78
+ default:
79
+ layout: universal
80
+ miniSidebar: true
81
+ viewControls:
82
+ assembly:
83
+ $filter:
84
+ active: { $eval: '!self.standardViews' }
85
+ items:
86
+ - { label: Overview, icon: Cube, value: overview }
87
+ - label: Assembly
88
+ icon: CubeDuotone
89
+ value: assembly
90
+ items: { $read: $assemblyOptions }
91
+ standard:
92
+ $filter:
93
+ active: { $read: standardViews }
94
+ items:
95
+ - { label: Overview, icon: Cube, value: overview }
96
+ - label: Standard views
97
+ icon: GridFour
98
+ items:
99
+ - { label: Front, value: front }
100
+ - { label: Side, value: side }
101
+ - { label: Top, value: top }
102
+ staticPerspectiveCamera:
103
+ overview:
104
+ fov: 38
105
+ distance: 2400
106
+ azimuthAngle: 0.68
107
+ polarAngle: 1.03
108
+ $filter:
109
+ viewStates: [overview, assembly]
110
+ staticOrthographicCamera:
111
+ front:
112
+ frustumSize: 1450
113
+ distance: 2400
114
+ polarAngle: 1.5708
115
+ azimuthAngle: 0
116
+ $filter:
117
+ viewStates: [front]
118
+ side:
119
+ frustumSize: 1450
120
+ distance: 2400
121
+ polarAngle: 1.5708
122
+ azimuthAngle: 1.5708
123
+ $filter:
124
+ viewStates: [side]
125
+ top:
126
+ frustumSize: 1450
127
+ distance: 2400
128
+ polarAngle: 0
129
+ azimuthAngle: 0
130
+ $filter:
131
+ viewStates: [top]
132
+ sceneEntityBoxObject:
133
+ base: { width: 920, height: 160, depth: 570, materialName: Base, anchor: center }
134
+ insert: { width: 850, height: 64, depth: 500, materialName: Insert, anchor: center }
135
+ cover: { width: 920, height: 48, depth: 570, materialName: Cover, anchor: center }
136
+ sceneEntityObjectProperties:
137
+ insert:
138
+ offsetY: { $read: $insertHeight }
139
+ cover:
140
+ offsetY: { $read: $coverHeight }
141
+ sceneEntityLocalMaterialOverride:
142
+ base: { materialsToOverride: [Base], color: '#34485b', roughness: 0.68 }
143
+ insert: { materialsToOverride: [Insert], color: '#d59a51', roughness: 0.62 }
144
+ cover: { materialsToOverride: [Cover], color: '#7b9b9a', roughness: 0.58 }
145
+ propertyPage:
146
+ default:
147
+ children:
148
+ - kind: propertyContainerGroup
149
+ children:
150
+ - kind: customElement
151
+ props: { name: ViewStateReadout }
152
+ - kind: propertyContainerItem
153
+ visible: { $read: $showOptionCount }
154
+ props: { title: Available options }
155
+ children:
156
+ - kind: genericDimensionSlider
157
+ props: { instanceName: count, step: 1 }
158
+ genericDimension:
159
+ count:
160
+ $filter:
161
+ active: { $eval: '!self.standardViews' }
162
+ unit: ''
163
+ min: 0
164
+ max: 3
165
+ value: { $bind: optionCount }
166
+ ```
167
+
168
+ ### ./src/elements/ViewStateReadout.tsx
169
+
170
+ ```tsx
171
+ import { Box } from '@mui/material'
172
+
173
+ import { PropertyContainer } from '@salsita-ai/sdk/ui'
174
+
175
+ export default phx.frontend.createCustomPhoenixEntityElement('ViewStateReadout', () => {
176
+ const viewState = phx.frontend.useActiveViewState()
177
+ const viewChildState = phx.frontend.useActiveViewChildState()
178
+ return (
179
+ <PropertyContainer.Item title="View selection">
180
+ <Box
181
+ component="dl"
182
+ sx={{
183
+ display: 'grid',
184
+ gridTemplateColumns: 'max-content 1fr',
185
+ gap: 1,
186
+ m: 0,
187
+ '& dd': { m: 0, fontFamily: 'monospace' },
188
+ }}
189
+ >
190
+ <dt>viewState</dt>
191
+ <dd>{viewState}</dd>
192
+ <dt>viewChildState</dt>
193
+ <dd>{viewChildState ?? '—'}</dd>
194
+ </Box>
195
+ </PropertyContainer.Item>
196
+ )
197
+ })
198
+ ```
199
+
200
+ ### ./src/expressions/scene.ts
201
+
202
+ ```ts
203
+ import { getComponentSystemFilterState } from '@salsita-ai/sdk/domain'
204
+
205
+ const options = [
206
+ { label: 'Assembled', value: 'assembled' },
207
+ { label: 'Exploded', value: 'exploded' },
208
+ { label: 'Fully separated', value: 'separated' },
209
+ ]
210
+
211
+ export default phx.domain.implementCustomExpressions({
212
+ Scene: {
213
+ $assemblyOptions: self => options.slice(0, self.optionCount),
214
+ $insertHeight: (_self, state) => {
215
+ const { viewChildState } = getComponentSystemFilterState(state)
216
+ return viewChildState === 'separated' ? 300 : viewChildState === 'exploded' ? 210 : 112
217
+ },
218
+ $coverHeight: self => 2 * self.$insertHeight - 56,
219
+ },
220
+ })
221
+ ```
222
+
223
+ </details>
@@ -51,6 +51,7 @@ Inside `CustomPresetScreen`, call `phx.frontend.usePresetSelection()`:
51
51
 
52
52
  - `presetCategories` holds the published presets when any are published, otherwise the seed presets from `domain.yaml` in one `Default` category.
53
53
  - `selectPreset(id)` opens the chosen configuration.
54
+ - `createFromPreset(id)` does the same and returns a promise of `{ configurationId }`, which resolves once the new configuration is being opened and rejects when no preset has the id or the creation fails.
54
55
  - `creatingPresetId` identifies the card in flight; use it for the busy indicator and to disable the other cards.
55
56
  - `selectionError` reports a failed creation so the replacement can render a recoverable message.
56
57
 
@@ -45,6 +45,14 @@ preview: always # auto | always | never | hide
45
45
  alwaysExpand: false # optional, true expands the configurator when users leave the preview, on desktop too
46
46
  ```
47
47
 
48
+ ### Customize the start screen
49
+
50
+ To introduce a product before the visitor starts, provide a project translation for `sdk.preview.customize.message`. The desktop and mobile universal layouts show it between the heading and Start button. If the resolved text is missing or blank, the button follows the heading with the usual spacing.
51
+
52
+ This example declares three [Lingui messages](?path=/docs/phoenix-localization--docs) in `src/_shared/preview-messages.ts`. Run `pnpm phoenix sync` to extract them and compile your project’s `src/locales/<locale>/messages.po` catalogs. The heading uses `sdk.preview.customize.title` and the button uses `sdk.preview.start.button.label`. Each translation can be overridden independently, and the project’s usual locale fallbacks apply.
53
+
54
+ Style each part through `components.PhxPreview.styleOverrides` using the `title`, `description`, and `button` keys. For example, set `styleOverrides.description` to `{ maxWidth: '45ch' }` to limit the paragraph’s line length. [Try the long-text preview](?path=/story/design-system-components-preview--long-text).
55
+
48
56
  ## Test cases
49
57
 
50
58
  - Preview mode always active regardless of breakpoint
@@ -160,6 +168,20 @@ components:
160
168
  $read: $edgeFinishOptions
161
169
  ```
162
170
 
171
+ ### ./src/\_shared/preview-messages.ts
172
+
173
+ ```ts
174
+ import { msg } from '@lingui/core/macro'
175
+
176
+ // Lingui extracts these project overrides for the built-in universal preview.
177
+ msg({ id: 'sdk.preview.customize.title', message: 'Design your table' })
178
+ msg({
179
+ id: 'sdk.preview.customize.message',
180
+ message: 'Choose an edge finish for your tabletop and preview the result before you decide.',
181
+ })
182
+ msg({ id: 'sdk.preview.start.button.label', message: 'Start designing' })
183
+ ```
184
+
163
185
  ### ./src/components/components.tsx
164
186
 
165
187
  ```tsx
@@ -17,6 +17,8 @@ Common use cases include:
17
17
  - **Engineering drawings**: Standard mechanical drawing views (front, top, left, isometric)
18
18
  - **3D model inspection**: Multiple angles for comprehensive object examination
19
19
 
20
+ For a menu of related views or runtime options within one view, see [Nested View Controls](?path=/docs/layouts-nested-view-controls--docs).
21
+
20
22
  ## Guide
21
23
 
22
24
  ### Step 1: Define view states
@@ -3,6 +3,7 @@
3
3
  - [Use case](#use-case)
4
4
  - [Declare the action](#declare-the-action)
5
5
  - [Implement it](#implement-it)
6
+ - [Use registered systems](#use-registered-systems)
6
7
  - [Run it from the UI](#run-it-from-the-ui)
7
8
  - [Expose it to the assistant](#expose-it-to-the-assistant)
8
9
  - [Known gaps](#known-gaps)
@@ -10,13 +11,18 @@
10
11
 
11
12
  ## Use case
12
13
 
13
- A plate carries holes, and a hole can be nudged by an offset as long as it stays on the plate. The arrow buttons of a selected hole and the AI assistant both make this change, so the rule ("stay on the plate") has to live in one place.
14
+ Some changes are more than writing one field. Moving a part goes through the placement rules. A swap touches two entities. Replacing a layout creates and removes many entities at once. An **action** is a named domain operation for such a change. You declare it once under `actions:` and implement it in `src/actions/`, with generated parameter and result types.
14
15
 
15
- An **action** is that place: a named domain operation you declare once under `actions:`, implement in `src/actions/` with generated parameter and result types, and run from any control through `actionSystem.prepareAction()`. The same action is exposed to the assistant as a custom mutation by naming it under `assistant.actions`. Use an action whenever a change is more than writing one field: a swap, a move among siblings, a change that touches several entities at once.
16
+ An action gives you two things:
17
+
18
+ - **The domain logic stays out of the UI.** A control only runs the action, through `actionSystem.prepareAction()`. The rules of the change live in the action, not in the component that triggers it.
19
+ - **The UI and the AI assistant share the logic.** Name the action under `assistant.actions`, and the assistant runs the same operation under the same rules.
20
+
21
+ The example on this page is a plate with holes. The arrow buttons of a selected hole nudge it by an offset, and the move fails when the hole would leave the plate.
16
22
 
17
23
  ## Declare the action
18
24
 
19
- `params` and `result` are maps of named JSON schemas, with the same `phx:` refs, `references`, `tsType` and `import` as entity shapes. A param whose schema allows `null` is optional; every other param is required. A result member typed `phx:$DomainEntity` is the enhanced entity after the change.
25
+ `params` and `result` are maps of named JSON schemas, with the same `phx:` refs, `references`, `tsType` and `import` as entity shapes. A param whose schema allows `null` is optional; every other param is required. A result member typed `phx:$DomainEntity` is the enhanced entity after the change. `result` is optional: an action that reports nothing leaves it out.
20
26
 
21
27
  ```yaml
22
28
  actions:
@@ -29,30 +35,26 @@ actions:
29
35
  description: The hole to move
30
36
  dx:
31
37
  type: integer
32
- description: Offset along the x axis, in plate units
38
+ description: Offset along the x axis, in plate units; positive moves right
33
39
  dy:
34
40
  type: integer
35
- description: Offset along the y axis, in plate units
41
+ description: Offset along the y axis, in plate units; positive moves up
36
42
  result:
37
43
  hole:
38
44
  $ref: phx:$DomainEntity
39
45
  references: Hole
40
46
  description: The hole at its new position
41
- plate:
42
- $ref: phx:$DomainEntity
43
- references: Plate
44
- description: The plate after the move
45
47
  ```
46
48
 
47
- Generation derives the types `ActionTypes`, `ActionName`, `ActionParams<'nudgeHole'>` and `ActionResult<'nudgeHole'>` from it: here `ActionParams<'nudgeHole'>` is `{ holeId: Hole['id']; dx: number; dy: number }` and `ActionResult<'nudgeHole'>` is `{ hole: $Hole; plate: $Plate }`. The `description` of the action, of a param and of a result member becomes the doc comment of its generated property, so it shows in the editor wherever the action is implemented or called.
49
+ The build generates types from the declaration. The implementation and every call of the action are checked against them, so a wrong param name or a missing result member is a type error. The `description` of the action, of a param and of a result member becomes the doc comment of its generated property, so it shows in the editor wherever the action is implemented or called.
48
50
 
49
51
  ## Implement it
50
52
 
51
- A file in `src/actions/` default-exports `phx.domain.implementActions({...})` with any subset of the declared actions. The implementation receives the validated parameters, the state the action runs on, and a context with the `expressionContext`, the domain `systems`, `getIdSequence()` for entities it creates and the typed `updates` factory. It returns the updates it wants applied and `readResult`, which reads the result from the state those updates produced, including whatever the transformers added. It never stages or commits anything.
53
+ Actions run in the browser, so an implementation can import browser systems. A file in `src/actions/` default-exports `phx.frontend.implementActions({...})` with any subset of the declared actions. The implementation receives the validated parameters, the state the action runs on, and a context with the `expressionContext`, the domain and registered configurator `systems`, `getIdSequence()` for entities it creates and the typed `updates` factory. It returns the updates it wants applied and `readResult`, which reads the result from the state those updates produced, including whatever the transformers added. An action without a `result` returns only the updates. It never stages or commits anything.
52
54
 
53
55
  ```ts
54
56
  // src/actions/nudge-hole.ts
55
- export default phx.domain.implementActions({
57
+ export default phx.frontend.implementActions({
56
58
  nudgeHole: ({ holeId, dx, dy }, state, { systems: { domain }, updates }) => {
57
59
  // `references: Hole` types the id, but any entity id passes the runtime check, so the entity is verified here.
58
60
  const hole = state.entities.find(entity => entity.id === holeId)
@@ -66,32 +68,71 @@ export default phx.domain.implementActions({
66
68
  const x = hole.x + dx
67
69
  const y = hole.y + dy
68
70
 
69
- if (Math.abs(x) > 150 || Math.abs(y) > 150) {
71
+ if (x < 20 || x > 180 || y < 20 || y > 180) {
70
72
  throw new Error(
71
- `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between -150 and 150.`
73
+ `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between 20 and 180.`
72
74
  )
73
75
  }
74
76
 
75
77
  return {
76
78
  updates: [updates.DomainEntityModification({ entityId: hole.id, stateDelta: { x, y }, updateTag: 'nudgeHole' })],
77
- readResult: ({ state: nudged }) => ({
78
- hole: domain.get$Entity(holeId, nudged),
79
- plate: domain.getRoot$Entity(nudged),
80
- }),
79
+ readResult: ({ state: nudged }) => ({ hole: domain.get$Entity(holeId, nudged) }),
80
+ }
81
+ },
82
+ })
83
+ ```
84
+
85
+ Throw to reject a call: the message reaches the user through the control's hint and the assistant through the failed mutation, so say what went wrong and what to send instead.
86
+
87
+ The declared and the implemented actions have to match:
88
+
89
+ - **A declared action without an implementation** is not a type error. It stops the configurator from initializing, and under `phoenix dev` the editor reports it as a `MISSING_ACTION_IMPLEMENTATIONS` diagnostic and does not apply the change.
90
+ - **An implementation of a name the spec does not declare** is a type error. If it runs anyway, it is logged to the console and ignored.
91
+
92
+ ## Use registered systems
93
+
94
+ The logic an action needs often exists already, in a system of the configurator, such as sketching or snapping. Call that system from the action. The action then follows the same rules as the control that uses the system, and you write them once.
95
+
96
+ The implementation gets the systems in its context, as `systems`. The record holds the domain systems and the systems registered for the configurator.
97
+
98
+ Three rules apply to any system an action uses:
99
+
100
+ - **Check that the system is there.** The built-in extension systems are optional in the generated types, because a runtime can be set up without them. Throw a clear error when the system is missing.
101
+ - **Read from the `state` the action was given.** It is not always the committed state. The assistant can run several mutations in one transaction, and a later one gets the state the earlier ones produced. Pass `state` to every read, and avoid methods that read the committed state themselves.
102
+ - **Only prepare updates.** An action returns updates and never applies them. Do not call a method that stages, commits, rolls back or moves the camera.
103
+
104
+ This action sets the length of a sketched line through the sketching system, the same way the length input in the UI does:
105
+
106
+ ```ts
107
+ export default phx.frontend.implementActions({
108
+ resizeRailing: ({ lineId, length }, state, { systems }) => {
109
+ const { sketchingSystem } = systems
110
+
111
+ if (!sketchingSystem) {
112
+ throw new Error('Resizing a railing requires the sketching system.')
113
+ }
114
+ const line = systems.sketchingProjections.getEntityLine(lineId, state, 'railing')
115
+
116
+ return {
117
+ updates: sketchingSystem.getLineLengthUpdates(length, line),
81
118
  }
82
119
  },
83
120
  })
84
121
  ```
85
122
 
86
- Throw to reject a call: the message reaches the user through the control's hint and the assistant through the failed mutation, so say what went wrong and what to send instead. An implementation of a name the spec does not declare is a type error. A declared action without an implementation is not: it stops the domain from initializing, and under `phoenix dev` the editor reports it as a `MISSING_ACTION_IMPLEMENTATIONS` diagnostic and does not apply the change; an implementation of an undeclared name is logged.
123
+ - **The `if`** covers the first rule.
124
+ - **`getEntityLine(lineId, state, 'railing')`** covers the second. It reads the line from the given `state`. `railing` is the key of the project's `sketching` definition.
125
+ - **`getLineLengthUpdates`** covers the third. It returns the updates for the new length and applies nothing.
126
+
127
+ See [Sketching](?path=/docs/complex-use-cases-sketching--docs) for the system itself.
87
128
 
88
129
  ## Run it from the UI
89
130
 
90
- `phx.frontend.useDomain().actionSystem.prepareAction(name, args, state)` validates `args` against the declared params and returns `{ updates, readResult }`. Hand the updates to `useUpdateControl()` like any other change: it dry-runs them for hints and commits them on click.
131
+ `phx.frontend.useConfigurator().actionSystem.prepareAction(name, args, state)` checks the name and arguments against the generated `ActionTypes`, validates `args` at runtime, and returns `{ updates, readResult }`. Hand the updates to `useUpdateControl()` like any other change: it dry-runs them for hints and commits them on click.
91
132
 
92
133
  ```tsx
93
134
  export default phx.frontend.createCustomPhoenixEntityElement('NudgeControl', ({ entityId }) => {
94
- const { actionSystem } = phx.frontend.useDomain()
135
+ const { actionSystem } = phx.frontend.useConfigurator()
95
136
  const state = phx.frontend.useCommittedState()
96
137
  const prepare = phx.frontend.useUpdateControl()
97
138
 
@@ -109,7 +150,7 @@ export default phx.frontend.createCustomPhoenixEntityElement('NudgeControl', ({
109
150
 
110
151
  ## Expose it to the assistant
111
152
 
112
- Naming the action under `assistant.actions` adds a `Mutation` field with one argument per param and a `<Name>Result` type whose entity members are traversable edges. `as` renames the field, `description` replaces the action's.
153
+ Naming the action under `assistant.actions` lets the AI assistant run it too, through the same `prepareAction` and with the same message when a call is rejected:
113
154
 
114
155
  ```yaml
115
156
  assistant:
@@ -117,18 +158,7 @@ assistant:
117
158
  nudgeHole:
118
159
  ```
119
160
 
120
- ```graphql
121
- type Mutation {
122
- nudgeHole(holeId: ID!, dx: Int!, dy: Int!): NudgeHoleResult!
123
- }
124
-
125
- type NudgeHoleResult {
126
- hole: Hole!
127
- plate: Plate!
128
- }
129
- ```
130
-
131
- The field runs the same `prepareAction`, applies the updates through the same validation as every other mutation, and fails with the action's message when the call is rejected.
161
+ See [Actions](?path=/docs/phoenix-assistant-actions--docs) in the assistant docs for what the assistant gets from the declaration and how to shape an action for it.
132
162
 
133
163
  ## Known gaps
134
164
 
@@ -136,7 +166,6 @@ The field runs the same `prepareAction`, applies the updates through the same va
136
166
  - Actions exist in the configurator domain only; the admin domain declares none.
137
167
  - The result of `readResult` is not validated at runtime: the generated TypeScript type and the GraphQL coercion are the checks.
138
168
  - The assistant cannot dry-run a custom mutation the way it dry-runs recipes and field options.
139
- - `useDomain()` types `prepareAction` with the generic action map, so the name and the arguments are not checked against your `ActionTypes` at that call site; the implementation side is fully typed.
140
169
 
141
170
  ## Example
142
171
 
@@ -198,19 +227,15 @@ actions:
198
227
  description: The hole to move
199
228
  dx:
200
229
  type: integer
201
- description: Offset along the x axis, in plate units
230
+ description: Offset along the x axis, in plate units; positive moves right
202
231
  dy:
203
232
  type: integer
204
- description: Offset along the y axis, in plate units
233
+ description: Offset along the y axis, in plate units; positive moves up
205
234
  result:
206
235
  hole:
207
236
  $ref: phx:$DomainEntity
208
237
  references: Hole
209
238
  description: The hole at its new position
210
- plate:
211
- $ref: phx:$DomainEntity
212
- references: Plate
213
- description: The plate after the move
214
239
 
215
240
  assistant:
216
241
  ai:
@@ -223,7 +248,9 @@ assistant:
223
248
  description: The holes of the plate
224
249
  Hole:
225
250
  x:
251
+ description: Center of the hole from the left edge of the plate, in plate units
226
252
  y:
253
+ description: Center of the hole from the bottom edge of the plate, in plate units
227
254
  actions:
228
255
  nudgeHole:
229
256
 
@@ -234,12 +261,12 @@ presets:
234
261
  type: 'Plate'
235
262
  - id: 'Hole-1'
236
263
  type: 'Hole'
237
- x: -60
238
- y: 40
264
+ x: 40
265
+ y: 140
239
266
  - id: 'Hole-2'
240
267
  type: 'Hole'
241
- x: 70
242
- y: -50
268
+ x: 170
269
+ y: 50
243
270
 
244
271
  components:
245
272
  Plate:
@@ -298,10 +325,13 @@ components:
298
325
  ### ./src/actions/nudge-hole.ts
299
326
 
300
327
  ```ts
301
- /** How far a hole may sit from the plate's center on either axis, in plate units. */
302
- const REACH = 150
328
+ /** The plate is 200 units wide and high, measured from its lower left corner; a hole's center keeps this far from every edge. */
329
+ const MIN = 20
330
+ const MAX = 180
331
+
332
+ const isOnPlate = (coordinate: number) => coordinate >= MIN && coordinate <= MAX
303
333
 
304
- export default phx.domain.implementActions({
334
+ export default phx.frontend.implementActions({
305
335
  nudgeHole: ({ holeId, dx, dy }, state, { systems: { domain }, updates }) => {
306
336
  // `references: Hole` types the id, but any entity id passes the runtime check, so the entity is verified here.
307
337
  const hole = state.entities.find(entity => entity.id === holeId)
@@ -315,18 +345,15 @@ export default phx.domain.implementActions({
315
345
  const x = hole.x + dx
316
346
  const y = hole.y + dy
317
347
 
318
- if (Math.abs(x) > REACH || Math.abs(y) > REACH) {
348
+ if (!isOnPlate(x) || !isOnPlate(y)) {
319
349
  throw new Error(
320
- `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between ${-REACH} and ${REACH}.`
350
+ `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between ${MIN} and ${MAX}.`
321
351
  )
322
352
  }
323
353
 
324
354
  return {
325
355
  updates: [updates.DomainEntityModification({ entityId: hole.id, stateDelta: { x, y }, updateTag: 'nudgeHole' })],
326
- readResult: ({ state: nudged }) => ({
327
- hole: domain.get$Entity(holeId, nudged),
328
- plate: domain.getRoot$Entity(nudged),
329
- }),
356
+ readResult: ({ state: nudged }) => ({ hole: domain.get$Entity(holeId, nudged) }),
330
357
  }
331
358
  },
332
359
  })
@@ -343,7 +370,7 @@ const STEP = 20
343
370
 
344
371
  /** Nudges the selected hole with the same `nudgeHole` action the assistant calls, one step at a time. */
345
372
  export default phx.frontend.createCustomPhoenixEntityElement('NudgeControl', ({ entityId }) => {
346
- const { actionSystem } = phx.frontend.useDomain()
373
+ const { actionSystem } = phx.frontend.useConfigurator()
347
374
  const state = phx.frontend.useCommittedState()
348
375
  const prepare = phx.frontend.useUpdateControl()
349
376
  const hole = state.entities.find(entity => entity.id === entityId)
@@ -47,7 +47,9 @@ If multiple violations with the same priority exists, they are joined. If any vi
47
47
 
48
48
  If the text is different for two messages of a certain violation type, but only one should be shown, priority can be set dynamically in TypeScript on the `controlViolationPriority` property.
49
49
  In a more complex case, you can't change priority like this because you also want to show a different violation type with the same priority. To resolve this, you can use `formatControlViolationMessage` function,
50
- where you have access to all entity violations (`stateEmission.validity.entityViolations`). Returning null in `formatControlViolationMessage` removes the current hint from tooltip.
50
+ where you have access to all entity violations (`stateEmission.validity.entityViolations`). Returning null in `formatControlViolationMessage` removes the current hint from tooltip. When that removes every hint, the tooltip shows the `message` of the first violation instead, so a disabled control always says why.
51
+
52
+ The AI assistant explains a change it cannot make by the same rules: each reason carries the violation's `message`, and the text `formatControlViolationMessage` returns as `details` when it differs.
51
53
 
52
54
  ### Domain Model (YAML)
53
55