@salsita-ai/sdk 0.50.0-develop.11a39afa73 → 0.50.0-develop.12744a81f2

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 (587) hide show
  1. package/README.md +10 -3
  2. package/dist/application-spec/errors/diagnostic-codes.d.ts +8 -0
  3. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  4. package/dist/application-spec/errors/diagnostic-messages.d.ts +9 -1
  5. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  6. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  7. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  8. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
  9. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
  10. package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
  11. package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
  12. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
  13. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
  14. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
  15. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
  16. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +1 -4
  17. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +2 -2
  18. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
  19. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +26 -29
  20. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
  21. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  22. package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
  23. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
  24. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
  25. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
  26. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
  27. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +11 -12
  28. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  29. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +3 -2
  30. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +13 -11
  31. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  32. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  33. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  34. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
  35. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
  36. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  37. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
  38. package/dist/application-spec/generate-application/code/templates/skills/features/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
  39. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
  40. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
  41. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
  42. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
  43. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
  44. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
  45. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
  46. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
  47. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  48. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
  49. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +1 -1
  50. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -1
  51. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
  52. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  53. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  54. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  55. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  56. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
  57. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
  58. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
  59. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
  60. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
  61. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
  62. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
  63. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
  64. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  65. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  66. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
  67. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  68. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
  69. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
  70. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  71. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  72. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
  73. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
  74. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
  75. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
  76. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +7 -6
  77. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
  78. package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
  79. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +3 -0
  80. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  81. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  82. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  83. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
  84. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
  85. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +66 -7
  86. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  87. package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
  88. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +6 -3
  89. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  90. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  91. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  92. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  93. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  94. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
  95. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  96. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
  97. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
  98. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +7 -10
  99. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  100. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
  101. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
  102. package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
  103. package/dist/application-spec/webhook-boundary.js +1 -1
  104. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  105. package/dist/client/cli-client/cli-api-client.js +1 -0
  106. package/dist/client/cli-client/index.d.ts +2 -0
  107. package/dist/client/cli-client/index.js +1 -0
  108. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  109. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  110. package/dist/client/contract.d.ts +1 -1
  111. package/dist/client/index.d.ts +1 -0
  112. package/dist/client/index.js +1 -1
  113. package/dist/client/phoenix-api.d.ts +5263 -1723
  114. package/dist/configurator/ConfiguratorApp.js +1 -1
  115. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
  116. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  117. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  118. package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
  119. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  120. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
  121. package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
  122. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
  123. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
  124. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +56 -0
  125. package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
  126. package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
  127. package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
  128. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
  129. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
  130. package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
  131. package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
  132. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +7 -4
  133. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +99 -35
  134. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  135. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +12 -17
  136. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -1
  137. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -36
  138. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  139. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +3 -0
  140. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
  141. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +33 -0
  142. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -0
  143. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
  144. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
  145. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
  146. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
  147. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  148. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  149. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +14 -4
  150. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  151. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
  152. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  153. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +46 -12
  154. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  155. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
  156. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
  157. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
  158. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
  159. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
  160. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
  161. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
  162. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
  163. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
  164. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  165. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +5 -4
  166. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  167. package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
  168. package/dist/configurator/common/configurator-interface.d.ts +9 -7
  169. package/dist/configurator/common/configurator-interface.js +1 -1
  170. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  171. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  172. package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
  173. package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
  174. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
  175. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  176. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
  177. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
  178. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
  179. package/dist/configurator/ui/assistant/AssistantChips.d.ts +5 -5
  180. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  181. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +4 -3
  182. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  183. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +6 -4
  184. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  185. package/dist/configurator/ui/assistant/AssistantThread.d.ts +10 -2
  186. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  187. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
  188. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
  189. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +6 -5
  190. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  191. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
  192. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  193. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  194. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  195. package/dist/configurator/ui/assistant/annotation/index.d.ts +0 -1
  196. package/dist/configurator/ui/assistant/annotation/index.js +1 -1
  197. package/dist/configurator/ui/assistant/assistant-failure.d.ts +6 -4
  198. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  199. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
  200. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
  201. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
  202. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
  203. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
  204. package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
  205. package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
  206. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +1 -1
  207. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
  208. package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
  209. package/dist/configurator/ui/assistant/drawing/index.js +1 -1
  210. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -1
  211. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
  212. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
  213. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +1 -1
  214. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  215. package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
  216. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
  217. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  218. package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
  219. package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
  220. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
  221. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
  222. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
  223. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
  224. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
  225. package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
  226. package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
  227. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +7 -4
  228. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
  229. package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
  230. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
  231. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
  232. package/dist/configurator/ui/assistant/form-elements/index.d.ts +2 -3
  233. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  234. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
  235. package/dist/configurator/ui/assistant/index.d.ts +2 -2
  236. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -1
  237. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
  238. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
  239. package/dist/configurator/ui/assistant/reference-link/index.d.ts +2 -1
  240. package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
  241. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
  242. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
  243. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  244. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
  245. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  246. package/dist/configurator/ui/assistant/thread-items.d.ts +2 -2
  247. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  248. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +7 -1
  249. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  250. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
  251. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
  252. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
  253. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
  254. package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
  255. package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
  256. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  257. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  258. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  259. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  260. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  261. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  262. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  263. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  264. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  265. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  266. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  267. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  268. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  269. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  270. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  271. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  272. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  273. package/dist/configurator/ui/index.d.ts +1 -1
  274. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  275. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  276. package/dist/docs/index.json +128 -3
  277. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  278. package/dist/docs/layouts/presets/custom.mdx +1 -0
  279. package/dist/docs/layouts/preview/always.mdx +22 -0
  280. package/dist/docs/layouts/view-controls.mdx +2 -0
  281. package/dist/docs/other-features/domain-actions.mdx +58 -62
  282. package/dist/docs/other-features/violation-messages.mdx +3 -1
  283. package/dist/docs/phoenix/application-states.mdx +1 -1
  284. package/dist/docs/phoenix/assistant/actions.mdx +183 -0
  285. package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
  286. package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
  287. package/dist/docs/phoenix/assistant/overview.mdx +137 -0
  288. package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
  289. package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
  290. package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
  291. package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
  292. package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
  293. package/dist/docs/phoenix/configurator-interface.mdx +68 -39
  294. package/dist/docs/phoenix/data-sources.mdx +1 -1
  295. package/dist/docs/phoenix/getting-started.mdx +1 -1
  296. package/dist/docs/phoenix/layout-slots.mdx +2 -2
  297. package/dist/docs/phoenix/migrations.mdx +1 -1
  298. package/dist/docs/phoenix/phoenix-cli.mdx +90 -54
  299. package/dist/docs/phoenix/project-structure.mdx +17 -7
  300. package/dist/docs/phoenix/sdk-builder-workflow.mdx +57 -28
  301. package/dist/docs/phoenix/sessions-and-access.mdx +10 -7
  302. package/dist/docs/phoenix/theming.mdx +5 -9
  303. package/dist/docs/phoenix/webhook-membership.mdx +1 -1
  304. package/dist/docs/phoenix/webhooks.mdx +56 -4
  305. package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
  306. package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
  307. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  308. package/dist/docs/ux-guidelines/overview.mdx +11 -9
  309. package/dist/domain/application/application-config.d.ts +5 -0
  310. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  311. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  312. package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
  313. package/dist/domain/application/assistant/assistant-selection.js +1 -0
  314. package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
  315. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
  316. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  317. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +18 -2
  318. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  319. package/dist/domain/application/assistant/index.d.ts +5 -1
  320. package/dist/domain/application/assistant/index.js +1 -1
  321. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
  322. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
  323. package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
  324. package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
  325. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  326. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +30 -2
  327. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  328. package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
  329. package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
  330. package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
  331. package/dist/domain/application/assistant/session-setup/index.js +1 -1
  332. package/dist/domain/application/assistant-field-options.d.ts +2 -0
  333. package/dist/domain/application/assistant-field-options.js +1 -1
  334. package/dist/domain/application/assistant-mutations.d.ts +17 -11
  335. package/dist/domain/application/assistant-mutations.js +1 -1
  336. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  337. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  338. package/dist/domain/application/configurator-builder.d.ts +8 -0
  339. package/dist/domain/application/configurator-builder.js +1 -1
  340. package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
  341. package/dist/domain/available-system-components/available-system-components.js +1 -1
  342. package/dist/domain/core/action/action.d.ts +0 -49
  343. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  344. package/dist/domain/core/component/system-component-filter.js +1 -1
  345. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  346. package/dist/domain/core/component/view-state-component.js +1 -1
  347. package/dist/domain/core/domain-factory.d.ts +2 -3
  348. package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
  349. package/dist/domain/core/invariant/control-violation-hints.js +1 -0
  350. package/dist/domain/core/invariant/index.d.ts +1 -0
  351. package/dist/domain/core/invariant/index.js +1 -1
  352. package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
  353. package/dist/domain/domain-builder/domain-builder.js +1 -1
  354. package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
  355. package/dist/domain/domain-context/index.d.ts +0 -1
  356. package/dist/domain/domain-context/index.js +1 -1
  357. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  358. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  359. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  360. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +1 -1
  361. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  362. package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
  363. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -6
  364. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  365. package/dist/domain/domain-runtime/domain-runtime.d.ts +13 -19
  366. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  367. package/dist/domain/domain-runtime/index.d.ts +0 -1
  368. package/dist/domain/domain-runtime/index.js +1 -1
  369. package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
  370. package/dist/domain/domain-runtime/spec/index.js +1 -1
  371. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  372. package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
  373. package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
  374. package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
  375. package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
  376. package/dist/domain/extensions/assistant/index.d.ts +1 -0
  377. package/dist/domain/extensions/assistant/index.js +1 -0
  378. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
  379. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  380. package/dist/domain/extensions/index.d.ts +1 -1
  381. package/dist/domain/extensions/index.js +1 -1
  382. package/dist/domain/index.d.ts +1 -1
  383. package/dist/domain/index.js +1 -1
  384. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +6 -8
  385. package/dist/domain/spec/modules/index.d.ts +0 -1
  386. package/dist/domain/spec/modules/index.js +1 -1
  387. package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
  388. package/dist/domain/spec/phx/phx-domain.js +1 -1
  389. package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
  390. package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
  391. package/dist/domain/spec/runtime/create-application.d.ts +5 -2
  392. package/dist/domain/spec/runtime/create-application.js +1 -1
  393. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
  394. package/dist/domain/spec/sections/actions.d.ts +3 -2
  395. package/dist/domain/spec/sections/app-metadata.d.ts +3 -0
  396. package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
  397. package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
  398. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +34 -1
  399. package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
  400. package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
  401. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +45 -4
  402. package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
  403. package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
  404. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
  405. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
  406. package/dist/domain/spec/sections/assistant/index.d.ts +4 -1
  407. package/dist/domain/system-components/index.d.ts +1 -0
  408. package/dist/domain/system-components/index.js +1 -1
  409. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  410. package/dist/domain/system-components/navigation/index.js +1 -0
  411. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  412. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  413. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  414. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  415. package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
  416. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  417. package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
  418. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  419. package/dist/extras/cognito/index.d.ts +1 -0
  420. package/dist/extras/cognito/index.js +1 -0
  421. package/dist/globals/index.d.ts +5 -0
  422. package/dist/i18n/locales/cs/messages.js +1 -1
  423. package/dist/i18n/locales/da/messages.js +1 -1
  424. package/dist/i18n/locales/de/messages.js +1 -1
  425. package/dist/i18n/locales/de-AT/messages.js +1 -1
  426. package/dist/i18n/locales/en/messages.js +1 -1
  427. package/dist/i18n/locales/en-AU/messages.js +1 -1
  428. package/dist/i18n/locales/en-GB/messages.js +1 -1
  429. package/dist/i18n/locales/es/messages.js +1 -1
  430. package/dist/i18n/locales/fr/messages.js +1 -1
  431. package/dist/i18n/locales/hu/messages.js +1 -1
  432. package/dist/i18n/locales/it/messages.js +1 -1
  433. package/dist/i18n/locales/nl/messages.js +1 -1
  434. package/dist/i18n/locales/pl/messages.js +1 -1
  435. package/dist/i18n/locales/pt/messages.js +1 -1
  436. package/dist/i18n/locales/ro/messages.js +1 -1
  437. package/dist/i18n/locales/sk/messages.js +1 -1
  438. package/dist/i18n/locales/tr/messages.js +1 -1
  439. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  440. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  441. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  442. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +25 -3
  443. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  444. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  445. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  446. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  447. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  448. package/dist/phoenix/application-spec/index.d.ts +1 -1
  449. package/dist/phoenix/application-spec/index.js +1 -1
  450. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
  451. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  452. package/dist/phoenix/cli.js +1 -1
  453. package/dist/phoenix/commands/account/index.d.ts +1 -0
  454. package/dist/phoenix/commands/account/index.js +1 -0
  455. package/dist/phoenix/commands/account/whoami.d.ts +10 -0
  456. package/dist/phoenix/commands/account/whoami.js +4 -0
  457. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  458. package/dist/phoenix/commands/deploy.d.ts +7 -2
  459. package/dist/phoenix/commands/deploy.js +8 -2
  460. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  461. package/dist/phoenix/commands/feedback.d.ts +2 -2
  462. package/dist/phoenix/commands/feedback.js +1 -1
  463. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  464. package/dist/phoenix/commands/index.d.ts +1 -0
  465. package/dist/phoenix/commands/index.js +1 -1
  466. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  467. package/dist/phoenix/commands/init.d.ts +2 -2
  468. package/dist/phoenix/commands/init.js +1 -1
  469. package/dist/phoenix/commands/login.d.ts +6 -3
  470. package/dist/phoenix/commands/login.js +3 -3
  471. package/dist/phoenix/commands/logout.js +1 -1
  472. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  473. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  474. package/dist/phoenix/services/cli-credentials.d.ts +26 -7
  475. package/dist/phoenix/services/cli-credentials.js +2 -2
  476. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  477. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  478. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  479. package/dist/phoenix/services/cli-server/index.js +1 -0
  480. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
  481. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  482. package/dist/phoenix/services/development-credential.js +1 -1
  483. package/dist/phoenix/services/frontend-config.d.ts +2 -0
  484. package/dist/phoenix/services/index.d.ts +4 -2
  485. package/dist/phoenix/services/index.js +1 -1
  486. package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
  487. package/dist/phoenix/services/phoenix-regions.js +1 -1
  488. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  489. package/dist/phoenix/services/session/phoenix-application.js +1 -1
  490. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  491. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  492. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  493. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  494. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  495. package/dist/phoenix/services/spec-project/index.js +1 -0
  496. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  497. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  498. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  499. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  500. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  501. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  502. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
  503. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
  504. package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
  505. package/dist/phoenix/services/variant-file-session.js +1 -1
  506. package/dist/phoenix/services/vite-config.js +1 -1
  507. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  508. package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
  509. package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
  510. package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
  511. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  512. package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
  513. package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
  514. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
  515. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
  516. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
  517. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
  518. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
  519. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
  520. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
  521. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
  522. package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
  523. package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
  524. package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
  525. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  526. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  527. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  528. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
  529. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
  530. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  531. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +14 -16
  532. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  533. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +5 -6
  534. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
  535. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  536. package/dist/react-sdk/domain-context/index.d.ts +3 -2
  537. package/dist/react-sdk/domain-context/index.js +1 -1
  538. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
  539. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
  540. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
  541. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
  542. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  543. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  544. package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
  545. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  546. package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
  547. package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
  548. package/dist/react-sdk/preset-selection/index.d.ts +2 -1
  549. package/dist/react-sdk/preset-selection/index.js +1 -1
  550. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
  551. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
  552. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  553. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  554. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
  555. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  556. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  557. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  558. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  559. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  560. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  561. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  562. package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
  563. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  564. package/dist/webhook/builders/common.d.ts +3 -1
  565. package/dist/webhook/builders/webhook-builder.d.ts +5 -0
  566. package/dist/webhook/builders/webhook-builder.js +1 -1
  567. package/package.json +9 -4
  568. package/schema/domain-spec.json +444 -65
  569. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
  570. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
  571. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
  572. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
  573. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -68
  574. package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
  575. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -61
  576. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
  577. package/dist/domain/domain-context/action-system/action-system.d.ts +0 -64
  578. package/dist/domain/domain-context/action-system/action-system.js +0 -1
  579. package/dist/domain/domain-context/action-system/index.d.ts +0 -1
  580. package/dist/domain/domain-context/action-system/index.js +0 -1
  581. package/dist/domain/domain-runtime/action-factory.d.ts +0 -11
  582. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
  583. package/dist/domain/extensions/view-controls.d.ts +0 -25
  584. package/dist/domain/extensions/view-controls.js +0 -1
  585. package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
  586. /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
  587. /package/dist/{domain/domain-runtime → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
@@ -7,13 +7,13 @@ These practices usually lead there; adapt them to the client, the product and th
7
7
 
8
8
  A request to complete a project does not waive the workflow’s client-choice checkpoints. Present the choices and wait for feedback before continuing with work that depends on them, unless the client explicitly asks to skip those checkpoints.
9
9
 
10
- The client can always redirect; follow their lead without nagging or repeated approval requests.`,a=`## Working with the client
10
+ The client can always redirect; follow their lead without nagging or repeated approval requests.`,i=`## Working with the client
11
11
 
12
12
  Be a warm, direct expert who listens, recommends an approach and takes responsibility for SDK and tooling choices. Look at supplied materials before asking, and keep the conversation about the product rather than setup questionnaires or jargon. When uncertainty affects the next result, such as a blocking ambiguity, a business decision needed now or a departure from accepted design, ask with a recommendation; otherwise state reversible defaults and keep going. Keep facts, explicit preferences and provisional assumptions distinct.
13
13
 
14
14
  Talk about the client's product: what they can try, see or decide. Modes, processes, stages, records and guide names are internal and mean nothing to the client. Say "next, I'll add the desk range", not "switching to normal mode and starting an increment".
15
15
 
16
- Small problems met along the way, such as a type error, a misaligned part or a font that did not load, are usually best fixed quietly; mention one only when it changes what the client sees or decides. Messages land better when they stay light: one decision at a time is easier to answer than a list of questions, and a long list, such as provisional defaults, reads better as a link to the document that holds it. When you create or change a client document, open it or link it in the message that announces it.`,i=`## Preferences
16
+ Small problems met along the way, such as a type error, a misaligned part or a font that did not load, are usually best fixed quietly; mention one only when it changes what the client sees or decides. Messages land better when they stay light: one decision at a time is easier to answer than a list of questions, and a long list, such as provisional defaults, reads better as a link to the document that holds it. When you create or change a client document, open it or link it in the message that announces it.`,a=`## Preferences
17
17
 
18
18
  Preferences shape how much effort and autonomy fit the work; note them in the project record as they emerge:
19
19
 
@@ -23,24 +23,26 @@ Preferences shape how much effort and autonomy fit the work; note them in the pr
23
23
  - **Quality bar** — demo grade or ready for real users; it sets review depth.
24
24
  - **Communication** — detail, technical depth and update frequency.
25
25
 
26
- A first draft runs no reviews or parallel agents, so it needs none of these answers. Ask once, briefly and with a recommendation, at a natural pause after the first draft or when work on an existing project starts without them. With a cost- or time-sensitive client, offer an expensive action with what it would add and wait for a yes rather than starting it.`,s=`## Keeping the client oriented
26
+ Neither the initial working slice nor the core journey needs a preferences questionnaire; the [review strategy](#review-strategy) sets their review scope. Ask once, briefly and with a recommendation, at a natural pause after the first draft or when work on an existing project starts without them. With a cost- or time-sensitive client, offer an expensive action with what it would add and wait for a yes rather than starting it.`,s=`## Keeping the client oriented
27
27
 
28
28
  Clients do best when they know what is happening, what comes next and whether anything is blocked. Share the next steps before longer work, update briefly during long builds, and when stuck, name the dependency and what can continue. Records do not replace these updates.
29
29
 
30
- Reports work best at a high level: what the client can now try, what is still open and what comes next. The details of what was changed belong in the changelog. A good handoff separates what is done, what is unverified and what remains, and usually ends with a recommended next step, sometimes with an alternative such as a [Phoenix capability](../features/index.md) the client may not know about. Note declined suggestions so they do not come back.`,r=`## Building in increments
30
+ Reports work best at a high level: what the client can now try, what is still open and what comes next. The details of what was changed belong in the changelog. A good handoff separates what is done, what is unverified and what remains, and usually ends with a recommended next step, sometimes with an alternative such as a [Phoenix capability](../features/index.md) the client may not know about. Note declined suggestions so they do not come back.`,o=`## Building in increments
31
31
 
32
- After the first draft, a short **Next increments** list in the project record keeps the way ahead visible: one line per increment saying what the client will be able to do and what it waits on, such as a model, a price list or a business answer, with postponed scope below it. Ordering by what users decide first and by real product dependencies usually works, with core interactions before more options and finalization once the configuration it submits is stable. Present it in product language with a recommended next increment; the client agrees on the next step, not on the whole list. Keep it current as increments land or the scope changes; an existing project without one writes it when its work goes beyond a single fix.
32
+ After the core journey is reviewed, a short **Next increments** list in the project record keeps the way ahead visible: one line per increment saying what the client will be able to do and what it waits on, such as a model, a price list or a business answer, with postponed scope below it. Ordering by what users decide first and by real product dependencies usually works, with core interactions before more options and finalization once the configuration it submits is stable. Present it in product language with a recommended next increment; the client agrees on the next step, not on the whole list. Keep it current as increments land or the scope changes; an existing project without one writes it when its work goes beyond a single fix.
33
33
 
34
- Work then goes best in small, useful increments: choose an outcome with observable checks; extend the [specification](../processes/specification/index.md) only as far as the increment needs; build it within the branding and UX guidelines, where they exist, using the [SDK guidance](sdk.md); exercise the changed interaction and what it affects, such as control targets, selection context and global versus per-part behavior; review it as the [review strategy](#review-strategy) suggests; then show the client what to try and fold their feedback into the specification and the next increments.
34
+ Work then goes best in small, useful increments: choose an outcome with observable checks; extend the [specification](../processes/specification/index.md) only as far as the increment needs; build it within the branding and UX specification, where they exist, using the [SDK guidance](sdk.md); exercise the changed interaction and what it affects, such as control targets, selection context and global versus per-part behavior; review it as the [review strategy](#review-strategy) suggests; then show the client what to try and fold their feedback into the specification and the next increments.
35
35
 
36
- Habits that help: wait for feedback before expanding an increment unless the client asked for a larger batch; settle core interactions before multiplying options; keep agreed scope visible until it is built or deferred; preserve selections and accepted behavior; and when rules change, keep model, scene, controls, dimensions, pricing and checks consistent.`,o=`## Visual choices
36
+ Habits that help: wait for feedback before expanding an increment unless the client asked for a larger batch; settle core interactions before multiplying options; keep agreed scope visible until it is built or deferred; preserve selections and accepted behavior; and when rules change, keep model, scene, controls, dimensions, pricing and checks consistent.`,r=`## Visual choices
37
37
 
38
- When taste, branding or interaction has several reasonable answers that the client's materials do not settle, alternatives usually help: explain the tradeoffs and recommend one. They help most when they really differ and each is finished as well as it can be, so the client chooses between good options rather than between variations. Accepted choices stay settled, facts are not the client's to pick, and routine reversible details need no approval. [Variants](../features/variants.md) shows alternatives in the live preview.`,c=`## Review strategy
38
+ When a choice has significant visual impact, show it in a form the client can judge before asking them to choose. Use the working preview when behavior matters, or a visual comparison when appearance alone is being decided. Explain the tradeoffs alongside it; one visible recommendation may be enough.
39
39
 
40
- The first draft skips review processes; a quick look at the running preview before showing each result keeps broken work away from the client.
40
+ When taste, branding or interaction has several reasonable answers that the client's materials do not settle, compare two or three approaches when they expose a meaningful tradeoff: explain it and recommend one. Otherwise develop one recommendation. Comparisons can help at any stage; they are not a required checkpoint. They help most when they really differ and each is finished as well as it can be, so the client chooses between good options rather than between variations. Accepted choices stay settled, facts are not the client's to pick, and routine reversible details need no approval. [Variants](../features/variants.md) shows alternatives in the live preview.`,c=`## Review strategy
41
41
 
42
- Later, review changed work before committing or handing it over with the [review processes](../processes/review/index.md), scaled to impact, uncertainty, the quality bar and the cost preference. A self-review is usually enough; an independent subagent adds a fresh view of visual fidelity, complex rules or broad interactions when the preferences allow it. Note whether review was independent and what remains unverified; a passing build does not prove product quality.`,d=`## Feedback and completion
42
+ The initial working slice needs scoped interaction testing, not a formal review. For the core journey, follow [Build’s review before recommending](../processes/first-draft/build.md#review-before-recommending).
43
+
44
+ Later, review changed work before committing or handing it over with the [review processes](../processes/review/index.md), scaled to impact, uncertainty, the quality bar and the cost preference. A self-review is usually enough; an independent subagent adds a fresh view of visual fidelity, complex rules or broad interactions when the preferences allow it. Note whether review was independent and what remains unverified; a passing build does not prove product quality.`,h=`## Feedback and completion
43
45
 
44
46
  Client feedback shapes the direction and the records; confirm material departures. Phoenix feedback is a separate, external report: [Feedback](../processes/feedback/index.md) covers SDK problems and the client's evaluation of the run, and only approved content is sent.
45
47
 
46
- Some lines stay firm: publishing, real orders, real messages and connecting live systems need the client's authorization against the concrete result. [Deployment](cli.md#deployment) covers running a deploy.`;export const generatePhoenixWorkflowCore=()=>e({path:"core/workflow.md",title:"Workflow",summary:"where to start, working with the client, preferences, increments, records and review strategy",sections:[t,n,a,i,s,r,o,"## Records\n\n- **Specification** — client-facing documents: branding, UX guidelines, product definition and catalogs, with sources in `.phoenix/workspace/specification/` and rendered PDFs in `docs/`. [Specification](../processes/specification/index.md) describes them; later work follows them, and changing an accepted rule is the client's call.\n- **Project record** — `.phoenix/workspace/project.md` is the current snapshot: preferences, approach, decisions with rationale, declined suggestions, progress, deploys and their outcome, next increments, open questions and SDK problems worth reporting, rewritten as they change. `.phoenix/workspace/changelog/` keeps the history: append a dated entry for each meaningful change, decision, verification, deploy or piece of client feedback, and continue in a new numbered file when the current one gets long.\n\nReuse records when resuming; they are not a client task or an approval gate. Leave out secrets, unrelated personal information and raw transcripts; [project structure](cli.md#project-structure) describes how records are kept and deployed.",c,d]});
48
+ Some lines stay firm: publishing, real orders, real messages and connecting live systems need the client's authorization against the concrete result. [Deployment](cli.md#deployment) covers running a deploy.`;export const generatePhoenixWorkflowCore=()=>e({path:"core/workflow.md",title:"Workflow",summary:"where to start, working with the client, preferences, increments, records and review strategy",sections:[t,n,i,a,s,o,r,"## Records\n\n- **Specification** — client-facing documents: branding, UX specification, product definition and catalogs, with sources in `.phoenix/workspace/specification/` and rendered PDFs in `docs/`. [Specification](../processes/specification/index.md) describes them; later work follows them, and changing an accepted rule is the client's call.\n- **Project record** — `.phoenix/workspace/project.md` is the current snapshot: preferences, approach, decisions with rationale, declined suggestions, progress, deploys and their outcome, next increments, open questions and SDK problems worth reporting, rewritten as they change. `.phoenix/workspace/changelog/` keeps the history: append a dated entry for each meaningful change, decision, verification, deploy or piece of client feedback, and continue in a new numbered file when the current one gets long.\n\nReuse records when resuming; they are not a client task or an approval gate. Leave out secrets, unrelated personal information and raw transcripts; [project structure](cli.md#project-structure) describes how records are kept and deployed.",c,h]});
@@ -58,4 +58,4 @@ export const ViewSwitch = () => {
58
58
  </>
59
59
  )
60
60
  }
61
- \`\`\``;export const generatePhoenixViewsAndToolsFeature=()=>e({path:"features/application-states/views-and-tools.md",title:"View and tool states",summary:"View states for how the scene is shown, tool states for interaction modes, switching each and the cameras and filters keyed to them; read when adding camera views, scene presentations or modes such as dimensions, sketching or focus.",whenToUse:"Read when users switch how the scene is shown (a front or top view, a close-up, a room style) or which mode it is in (dimensions, sketching, editing one part), independently of the stage of the flow.",capabilities:"### Choose the kind of state\n\n- **Navigation state** — where users are in the flow; it changes controls and pages: [Navigation states](navigation.md).\n- **View state** — how the scene is presented: a camera, an environment, a close-up. The controls stay as they are.\n- **Tool state** — what users are doing in the scene: setting dimensions, sketching, a focus mode for editing one part. It swaps the in-scene controls.\n- The three lists are independent: one value of each is active, and a filter can combine them. A tool state does not change the selection, nor the selection the tool.\n\n### Declare them\n\n- `viewStates:` and `toolStates:` follow the rules of navigation states: identifier values, each list in one file, the first value active when a configuration opens, a single `Default` when undeclared.\n- `phx.applicationTypes.ViewState` and `phx.applicationTypes.ToolState` are their runtime enums (`ToolState.Dimensions === 'Dimensions'`, `.values()`, `.is(value)`); the global types `ViewState` and `ToolState` are the unions.\n\n### Switch the view\n\n- `phx.frontend.useActiveViewState()` returns the active view; `phx.frontend.useSetViewState()` returns `(state) => void`, which commits immediately.\n- Built-in switch: a `viewControls` component on the root entity, `items: [{ label, value, icon }]` with a view state as `value` and a PhxIcon name as `icon`. The built-in layout shows the first one. A project layout mounts `LayoutSlots.DesktopViewControls` or `MobileViewControls` ([Layout slots](../custom-layout/slots.md)), or draws its own buttons with the two hooks, which need no component.\n- Cameras: filter camera components with `viewStates`. Of the cameras whose filters pass, the highest `priority` (default 1) wins, so keep an unfiltered camera with the lowest priority as the default.\n- Transformers: `when.viewChanged({ from, to })` reacts to a switch, and `.then.changeView(state)` switches as a side effect.\n\n### Switch the tool\n\n- `phx.frontend.useActiveToolState()` returns the active tool. No hook sets it; switch tools with:\n - a `toolControls` component on the root entity (`items: [{ label, value, icon }]`, `value` a tool state), shown by the built-in layout, or by `LayoutSlots.DesktopToolControls` and `MobileToolControls` in a project layout;\n - the tool menu `toolMenuFab` in the scene ([Scene controls](../domain-controls/scene-controls.md)) and the exit button `exitToolModeFab` with `exitTo` in the call-to-action slot ([Layout slots](../custom-layout/slots.md));\n - own UI: take `storeSystem` and `navigationSystem` from `phx.frontend.useDomain()` and call `storeSystem.stageAndCommit([navigationSystem.getToolUpdate(phx.applicationTypes.ToolState.Dimensions)])`, as the SDK's own controls do.\n- Filter each tool's controls with `toolStates`, and give the default tool controls of its own, so every mode offers something to do. A focus mode also hides navigation, tool and view controls and offers a labeled exit.\n- `when.toolChanged({ from, to })` reacts to a switch; the transformer builder has no action that changes the tool.",example:t,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/application-states.mdx`, sections View States and Tool States — the declarations, filters, `viewControls` and `toolControls`.\n- `docs/layouts/view-controls.mdx` — one camera per view and the built-in view switch.\n- `docs/complex-use-cases/focus-mode.mdx` — a tool state entered from `toolMenuFab` and left with `exitToolModeFab`.\n- `docs/complex-use-cases/sketching.mdx` — tool states switching between drawing and selecting.\n- `docs/ux-guidelines/interaction-modes.mdx` — what each mode shows and hides.\n- `docs/phoenix/layout-slots.mdx` — the view and tool control slots.",phxMembers:["applicationTypes.ViewState","applicationTypes.ToolState","frontend.useActiveViewState","frontend.useSetViewState","frontend.useActiveToolState"]});
61
+ \`\`\``;export const generatePhoenixViewsAndToolsFeature=()=>e({path:"features/application-states/views-and-tools.md",title:"View and tool states",summary:"View states for how the scene is shown, tool states for interaction modes, switching each and the cameras and filters keyed to them; read when adding camera views, scene presentations or modes such as dimensions, sketching or focus.",whenToUse:"Read when users switch how the scene is shown (a front or top view, a close-up, a room style) or which mode it is in (dimensions, sketching, editing one part), independently of the stage of the flow.",capabilities:"### Choose the kind of state\n\n- **Navigation state** — where users are in the flow; it changes controls and pages: [Navigation states](navigation.md).\n- **View state** — how the scene is presented: a camera, an environment, a close-up. The controls stay as they are.\n- **Tool state** — what users are doing in the scene: setting dimensions, sketching, a focus mode for editing one part. It swaps the in-scene controls.\n- The three lists are independent: one value of each is active, and a filter can combine them. A tool state does not change the selection, nor the selection the tool.\n\n### Declare them\n\n- `viewStates:` and `toolStates:` follow the rules of navigation states: identifier values, each list in one file, the first value active when a configuration opens, a single `Default` when undeclared.\n- `phx.applicationTypes.ViewState` and `phx.applicationTypes.ToolState` are their runtime enums (`ToolState.Dimensions === 'Dimensions'`, `.values()`, `.is(value)`); the global types `ViewState` and `ToolState` are the unions.\n\n### Switch the view\n\n- `phx.frontend.useActiveViewState()` returns the active view; `phx.frontend.useSetViewState()` returns `(state, viewChildState?) => void`. Omitting the child clears the previous choice.\n- Built-in switch: a `viewControls` component on the root entity, `items: [{ label, value, icon }]` with a view state as `value` and a PhxIcon name as `icon`. The built-in layout shows the first one. A project layout mounts `LayoutSlots.DesktopViewControls` or `MobileViewControls` ([Layout slots](../custom-layout/slots.md)), or draws its own buttons with the two hooks, which need no component.\n- Nested view controls add child `items`. With a group value, selecting a leaf sets that view and its runtime `viewChildState`; without one, the leaf selects a declared view. Read the child with `phx.frontend.useActiveViewChildState()` or, in an expression, `getComponentSystemFilterState(state).viewChildState`.\n- Cameras: filter camera components with `viewStates`. Of the cameras whose filters pass, the highest `priority` (default 1) wins, so keep an unfiltered camera with the lowest priority as the default.\n- Transformers: `when.viewChanged({ from, to })` reacts to a switch, and `.then.changeView(state)` switches as a side effect.\n\n### Switch the tool\n\n- `phx.frontend.useActiveToolState()` returns the active tool. No hook sets it; switch tools with:\n - a `toolControls` component on the root entity (`items: [{ label, value, icon }]`, `value` a tool state), shown by the built-in layout, or by `LayoutSlots.DesktopToolControls` and `MobileToolControls` in a project layout;\n - the tool menu `toolMenuFab` in the scene ([Scene controls](../domain-controls/scene-controls.md)) and the exit button `exitToolModeFab` with `exitTo` in the call-to-action slot ([Layout slots](../custom-layout/slots.md));\n - own UI: take `storeSystem` and `navigationSystem` from `phx.frontend.useDomain()` and call `storeSystem.stageAndCommit([navigationSystem.getToolUpdate(phx.applicationTypes.ToolState.Dimensions)])`, as the SDK's own controls do.\n- Filter each tool's controls with `toolStates`, and give the default tool controls of its own, so every mode offers something to do. A focus mode also hides navigation, tool and view controls and offers a labeled exit.\n- `when.toolChanged({ from, to })` reacts to a switch; the transformer builder has no action that changes the tool.",example:t,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/application-states.mdx`, sections View States and Tool States — the declarations, filters, `viewControls` and `toolControls`.\n- `docs/layouts/view-controls.mdx` — one camera per view and the built-in view switch.\n- `docs/complex-use-cases/focus-mode.mdx` — a tool state entered from `toolMenuFab` and left with `exitToolModeFab`.\n- `docs/complex-use-cases/sketching.mdx` — tool states switching between drawing and selecting.\n- `docs/ux-guidelines/interaction-modes.mdx` — what each mode shows and hides.\n- `docs/phoenix/layout-slots.mdx` — the view and tool control slots.",phxMembers:["applicationTypes.ViewState","applicationTypes.ToolState","frontend.useActiveViewState","frontend.useActiveViewChildState","frontend.useSetViewState","frontend.useActiveToolState"]});
@@ -0,0 +1,3 @@
1
+ import { type PhoenixGuide } from '../../guide.js';
2
+ /** The assistant index followed by its guides: what it reads and changes, its panel and its per-session setup. */
3
+ export declare const generatePhoenixAssistantGuides: () => readonly PhoenixGuide[];
@@ -0,0 +1 @@
1
+ import{createPhoenixIndexGuide as s}from"../../guide.js";import{generatePhoenixAssistantPanelFeature as t}from"./panel.js";import{generatePhoenixAssistantReadingAndChangingFeature as e}from"./reading-and-changing.js";import{generatePhoenixAssistantSessionSetupFeature as a}from"./session-setup.js";export const generatePhoenixAssistantGuides=()=>{let n=[e(),t(),a()];return[s({path:"features/assistant/index.md",title:"Assistant",summary:"What the AI assistant reads and changes, its panel and its setup per session; read for any assistant work.",intro:"The AI assistant talks with configurator users in a panel beside the configurator and changes the configuration for them. The spec's `assistant` section becomes the GraphQL schema the assistant reads and changes the configuration through. Nothing is exposed without an entry, and every change goes through the same validation as a change from the controls. The section can be split across spec files.\n\nMost of the work is deciding how each change the UI offers reaches the assistant: through the recipes, options and deletions the controls already use, or through an action. To set up the assistant or extend what it can do, follow [assistant configuration](../../processes/assistant-configuration.md).",guides:n,notes:[]}),...n]};
@@ -0,0 +1,3 @@
1
+ import { type PhoenixGuide } from '../../guide.js';
2
+ /** What a project adds to the assistant panel: its form elements, its greeting and starters, and drawings. */
3
+ export declare const generatePhoenixAssistantPanelFeature: () => PhoenixGuide;
@@ -0,0 +1,42 @@
1
+ import{createPhoenixFeatureGuide as e}from"../../guide.js";let t=`The desk greets with what it can do and offers two requests. It asks for the delivery date with an element of its own, because no built-in element picks a date:
2
+
3
+ \`\`\`yaml
4
+ # spec/assistant-panel.yaml
5
+ components:
6
+ Desk:
7
+ assistantGreeting:
8
+ main:
9
+ message:
10
+ $msg: Hi! I can help you design this desk. Ask me about its size, finishes, drawers and price.
11
+ starters:
12
+ - title:
13
+ $msg: Add two drawers
14
+ - title:
15
+ $msg: Compare the finishes
16
+ reply:
17
+ $msg: Show me the desk in each leg finish and tell me what each costs.
18
+
19
+ assistant:
20
+ formElements:
21
+ deliverydate:
22
+ description: >-
23
+ A calendar from which the user picks the delivery date. Offer it when you need the date,
24
+ instead of asking the user to type it. It answers with the date as YYYY-MM-DD.
25
+ role: input
26
+ state:
27
+ type: string
28
+ \`\`\`
29
+
30
+ \`\`\`tsx
31
+ // src/elements/DeliveryDate.tsx
32
+ export default phx.frontend.createAssistantFormElement('deliverydate', ({ state, disabled, onChange }) => (
33
+ <input
34
+ type="date"
35
+ value={state ?? ''}
36
+ disabled={disabled}
37
+ onChange={event => onChange(event.target.value, event.target.value)}
38
+ />
39
+ ))
40
+ \`\`\`
41
+
42
+ The name types the props from the declaration, as does the global \`AssistantFormElementProps<'deliverydate'>\` for a component declared apart. \`onChange\` takes the value to keep and the words the answer shows in the chat.`;export const generatePhoenixAssistantPanelFeature=()=>e({path:"features/assistant/panel.md",title:"Panel",summary:"Where the panel shows, its greeting and starters, the project's own form elements, and drawings; read when the assistant should show, greet, ask or draw in the project's own way.",whenToUse:"Read when a project layout must show the assistant, when it should greet configurator users in their words, or when it needs a way of asking the built-in form elements lack.",capabilities:"The panel is the SDK's and works with nothing configured. A project decides where it shows and how it greets, and adds a form element only for a question the built-in ones cannot ask.\n\n- **Where it shows** — the panel renders only inside the built-in sidebar, `LayoutSlots.DesktopSidebar`, which a project layout leaves out. A project layout reaches the assistant only through that slot or a thread of its own built on `useAssistantThread` and `useAssistantComposer` ([Toolbar actions](../custom-layout/toolbar-actions.md)). A project that declares its own toolbar adds `assistantToolbarButton` to it; the default toolbar has it. Settle both first: without them nobody can open the assistant.\n- **Greeting and starters** — a root `assistantGreeting` component sets the message of an empty thread and its `starters`, chips that send a first message. The model never reads the greeting, so keep it a statement of what the assistant can do, and make each starter a request the product's users really make. A project thread reads both through `useAssistantThread`.\n- **Form elements** — the assistant asks with forms: buttons, a number, a line of text, a yes or no, and tiles that show recipes and options with the picture or color the configurator has for them. Add a project element only for a way of choosing none of these fit, such as a date, a searchable palette or a picker on a floor plan. Declare it under `assistant.formElements.<name>` and register its component with `phx.frontend.createAssistantFormElement`; one without the other stops the application at start. The model knows the element only by its `description`, so say there what it is, when to offer it and what the answer looks like.\n- **Drawings** — the assistant draws SVG schematics in its replies when they explain better than words, never the result of a change. Ask for particular drawings in `assistant.instructions`, such as a layout deduced from a photo.\n- **Leaving parts out** — `assistant.features` turns off `drawings`, `forms`, `images` (attaching photos) or `annotations`, each on by default. An off part loses its control in the panel and its lines in the assistant's prompt; `images` drops its lines only together with `annotations`. Turn off what the product has no use for.",example:t,documentation:'Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/assistant/the-panel.mdx` — where the panel shows, the greeting, the built-in and the project\'s form elements with their roles and attributes, pictures and annotations, voice, the theme names, and leaving parts of the panel out.\n- `docs/phoenix/configurator-interface.mdx` — "Assistant" for the thread, composer and panel hooks of a project layout.',phxMembers:["frontend.createAssistantFormElement"]});
@@ -0,0 +1,3 @@
1
+ import { type PhoenixGuide } from '../../guide.js';
2
+ /** What the assistant reads and changes through the spec's `assistant` section, the standard ways first. */
3
+ export declare const generatePhoenixAssistantReadingAndChangingFeature: () => PhoenixGuide;
@@ -0,0 +1,55 @@
1
+ import{createPhoenixFeatureGuide as e}from"../../guide.js";let t=`A desk configurator, after the survey of how its UI changes the configuration. Each comment names the UI path the entry stands for:
2
+
3
+ \`\`\`yaml
4
+ # spec/assistant.yaml
5
+ assistant:
6
+ instructions: |
7
+ This configurator designs an office desk: its width, the finish of its legs and the drawers under its top.
8
+ Its users furnish their own office and are not furniture experts. Keep answers short and name parts as the UI does.
9
+ Before you remove a drawer, say which one and ask.
10
+ ai:
11
+ provider: openai
12
+ model: balanced
13
+ reasoning: low
14
+ entities:
15
+ Desk:
16
+ width:
17
+ description: Width of the desk top in millimeters, along X
18
+ legFinish:
19
+ description: Finish of the legs
20
+ $price: # computed, so an expression and not an action
21
+ description: Price of the desk as configured, in euros
22
+ $drawers:
23
+ description: The drawers under the top, left to right
24
+ Drawer:
25
+ height:
26
+ description: Height of the drawer front in millimeters
27
+ writable:
28
+ Desk:
29
+ width: # a plain field behind a slider
30
+ legFinish: # a custom control writes it, so the choices come from an instance no layout shows
31
+ options:
32
+ componentType: attributeSelection
33
+ instanceName: assistantLegFinish
34
+ childRecipes:
35
+ Desk:
36
+ drawers: # the recipe control the UI already has
37
+ description: Drawers that fit under the desk top
38
+ deletable:
39
+ Drawer: # the delete button of a selected drawer
40
+ actions:
41
+ moveDrawer: # the arrow buttons reorder drawers, which is neither a write nor a recipe
42
+ screenshots:
43
+ Desk:
44
+ front:
45
+ description: The whole desk from the front. Use it to check the order and the fit of the drawers.
46
+
47
+ components:
48
+ Desk:
49
+ attributeSelection:
50
+ assistantLegFinish:
51
+ value:
52
+ $bind: legFinish
53
+ options:
54
+ $read: $legFinishOptions
55
+ \`\`\``;export const generatePhoenixAssistantReadingAndChangingFeature=()=>e({path:"features/assistant/reading-and-changing.md",title:"Reading and changing",summary:"Which way each change takes, with writes, recipes and deletions before actions, and how to make the section easy for a model to use; read when deciding what the assistant may do.",whenToUse:"Read when exposing part of the configuration to the assistant, choosing between a standard change and an action, or fixing what the assistant misreads.",capabilities:"The SDK docs at the end explain each key this guide touches and show the schema the assistant gets for it; [Panel](panel.md) and [Session setup](session-setup.md) name theirs. This guide covers what they leave to the project: which way each change takes, and how to make the section easy for a model to use.\n\n### Prefer the standard ways\n\nField writes, recipes and deletions run through the same options, validation, dry runs and hints as the controls configurator users see, so the assistant can preview and compare them before it applies one. An action is a custom mutation the model learns from its description alone.\n\nThe standard ways are a read under `entities`, a write under `writable`, the UI's recipe instances under `childRecipes` and `replaceRecipes`, and a deletion under `deletable`. A computed read, such as a price or a catalog summary, is an expression, not an action.\n\nA UI path that is not a recipe or a plain write needs a closer look. Examples are a creation in custom code, a placement that follows the camera, snapping that runs only while dragging, or entities that come from a sketch tool. First look for a small refactor that keeps the product's behavior and lets the standard way work, and suggest it to the client. A custom creation can become a recipe group, with its placement moved to a transformer on `.created()` ([Transformers](../domain-model/transformers.md)). Recipe dry runs run that transformer too, so keep it pure and cheap.\n\n### When an action is right\n\nUse an [action](../domain-model/actions.md) when no such refactor fits, or when the standard way would make the assistant's work hard:\n\n- **Reuse the UI's update** — when constraints run only on a tool's updates, an action can emit the same update with the same tag, and the existing transformers do the rest. A move becomes a `ComponentModification` with the drag handle's update tag, so snapping applies without any tab or selection. Sketched entities become the creations the sketch tool commits. Rework the constraints only when the client wants every write constrained.\n- **Large catalogs** — hundreds of products fit better as a compact catalog expression and one action with a catalog id than as recipe groups whose descriptions flood the schema.\n- **Whole-configuration work** — a builder over the whole configuration, or one request that would otherwise take many ordered writes.\n\nShape an action as the model and the client think, such as `splitRoom(roomId, divisions)` rather than a cut across a module. Name params the way a model would guess them, and say what each means and in which unit. When transformers move or repair what the action changed, return those entities, so the assistant sees the outcome without another query. Leave `result` out when there is nothing to report.\n\n### Make the section easy to use\n\n- **Descriptions** — describe entries in the client's product terms, with unit and axis. Take axes from the placement code, not from field names.\n- **Typed values** — a `tsType` reaches the assistant as opaque `JSON`. First replace the `tsType` with a JSON Schema shape, when the schema can say the same without loss. Only when it cannot, add a second expression that projects the value for the assistant. Declare `$ref: phx:Localizable` for text in the current locale, and `$ref: phx:$DomainEntity` with `references` for an entity the assistant can follow, in `oneOf` with `type: 'null'` when it may be absent.\n- **Option lists** — a writable field takes its choices from the control that writes it. For a field that a custom control writes, add a `materialSwatch`, `attributeSelection` or `distanceDimensionSelect` instance no layout shows, and name it under `options`. Mark lists that never change with `hints: [sameForAllInstances, constantDuringSession]`, so the assistant reads them once.\n- **Lenses** — add one for each part of the configuration the assistant often reads as a whole, and keep `maxDepth` low.\n- **Screenshots** — give the assistant its own camera, filtered on the screenshot's `exportState` and framing the product. Compute `width` and `height` from the product's extent, and hide what covers the parts it must check, such as a roof. Say in each `description` what the view is good for checking.\n- **Instructions** — say in a few sentences what the product is, who its users are and how the assistant should behave with them. Then add only the rules the schema cannot say, such as values written together. Do not use an instruction to patch a weak description or a missing expression. Visitors can read them.\n- **Model** — `ai` is required, in exactly one spec file. Its `model` tier and `reasoning` level set cost and quality, so let the client choose them. Raise `ai.maxToolCallsPerMessage` for requests that take many steps, and `ai.maxThreadSize` for long design conversations.",example:t,documentation:"Read with `pnpm phoenix docs -r <path>`. Each page shows the YAML and the schema the assistant gets for it:\n\n- `docs/phoenix/assistant/overview.mdx` — how the pieces connect, and the smallest working section. Read it first.\n- `docs/phoenix/assistant/reading-the-configuration.mdx` — fields, expressions and relations, several root types, lenses, and `navigation`.\n- `docs/phoenix/assistant/changing-the-configuration.mdx` — writable fields, option lists and their hints, recipes, deletions, and dry runs.\n- `docs/phoenix/assistant/actions.mdx` — exposing an action, its inputs, results and errors.\n- `docs/phoenix/assistant/screenshots.mdx` — the screenshot component, its limits and framing.\n- `docs/phoenix/assistant/instructions-and-ai-settings.mdx` — `instructions`, every `ai` key with its default and limit, and what happens when the setup changes.\n- `docs/phoenix/assistant/security-and-limits.mdx` — what visitors can read, bans and usage caps.",phxMembers:[]});
@@ -1,3 +1,3 @@
1
1
  import { type PhoenixGuide } from '../../guide.js';
2
2
  /** The assistant setup handler that narrows the assistant per session. */
3
- export declare const generatePhoenixAssistantSetupFeature: () => PhoenixGuide;
3
+ export declare const generatePhoenixAssistantSessionSetupFeature: () => PhoenixGuide;
@@ -0,0 +1,16 @@
1
+ import{createPhoenixFeatureGuide as e}from"../../guide.js";let s=`The assistant of an anonymous visitor cannot change the finish and runs on a cheaper model:
2
+
3
+ \`\`\`ts
4
+ // src/handlers/assistant-setup.ts
5
+ export default phx.domain.createAssistantSetupHandler((manifest, { role }) => {
6
+ if (role !== 'anonymous') {
7
+ return manifest
8
+ }
9
+
10
+ const { finish, ...chairWrites } = manifest.writable.Chair ?? {}
11
+ const narrowed = { ...manifest, writable: { ...manifest.writable, Chair: chairWrites } }
12
+
13
+ // The browser's manifest has no \`ai\`; only the webhook's run decides the model
14
+ return manifest.ai ? { ...narrowed, ai: { ...manifest.ai, model: 'fast' } } : narrowed
15
+ })
16
+ \`\`\``;export const generatePhoenixAssistantSessionSetupFeature=()=>e({path:"features/assistant/session-setup.md",title:"Session setup",summary:"Narrowing what the assistant may see and change per session, or switching it off; read when it must behave differently by role, session data or access.",whenToUse:"Read when the assistant must offer less to some sessions, such as anonymous visitors or a role that must not see prices, run on other AI settings for them, or be off.",capabilities:"- **Where it lives** — default-export `phx.domain.createAssistantSetupHandler((manifest, { role, sessionData, access }) => manifest)` from one file in `src/handlers/`. It joins the webhook automatically, so it imports only server-safe modules ([Webhook entry and environment](../webhooks/entry-and-environment.md)). `role` and `sessionData` come from [authentication](../webhooks/authentication.md); `access` is how the configuration was opened, such as `o` for its owner.\n- **It only takes away** — `manifest` is what the `assistant` section declares. Spread it and override what changes: leave out an entry to hide it, set a section to `{}` to clear it, change a `description`, replace `instructions`, or set `webmcp: false`. `ai.voice` and a `features` flag can only be set to `false`: a session gets voice or a part of the panel only when the spec has it on. Leave a project form element out of `formElements` together with the ability it serves. Return `null` to switch the assistant off. The buttons that open the panel follow the spec, not the handler, so hide them per session in the layout, for example with `$filter`.\n- **It runs in two places** — in the webhook and in the browser, and both must reach the same manifest, so keep it synchronous, pure and deterministic. It ships to the browser, where visitors can read its rules: keep secrets out of it. A handler that throws leaves the assistant unavailable for the session.\n- **AI settings** — the handler can set any `ai` key for the session, `voice` only to `false`, such as a stronger `model` for signed-in users. Only the webhook's run decides them. In the browser the manifest has no `ai` and a returned one is ignored, so guard with `if (!manifest.ai)` and decide nothing else from it.\n- **Not for read-only sessions** — a configuration opened for viewing already refuses every real change, while what-if questions such as \"what would it cost in oak?\" still work. Clearing `writable` for viewers takes those answers away too.\n- **Caching** — deployed environments reuse a session's setup for up to 15 minutes; under `phoenix dev` the handler runs on every request.",example:s,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/assistant/per-session-setup.mdx` — what the handler receives and may return, taking abilities away, AI settings per session, and switching the assistant off.\n- `docs/phoenix/assistant/security-and-limits.mdx` — what a visitor can read, and what the assistant can be talked into.",phxMembers:["domain.createAssistantSetupHandler"]});
@@ -1,7 +1,7 @@
1
- import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixFinalizationActionsFeature as o}from"./finalization-actions.js";import{generatePhoenixMessagesFeature as t}from"./messages.js";import{generatePhoenixProjectPagesFeature as s}from"./pages.js";import{generatePhoenixSceneAndSafeAreaFeature as a}from"./scene-and-safe-area.js";import{generatePhoenixLayoutSlotsFeature as r}from"./slots.js";import{generatePhoenixTabsAndStepsFeature as n}from"./tabs-and-steps.js";import{generatePhoenixToolbarActionsFeature as i}from"./toolbar-actions.js";import{generatePhoenixViewModeFeature as d}from"./view-mode.js";let l=`A layout element registered as \`ConfiguratorLayout\` replaces everything Phoenix renders for a loaded configuration, in owner and in read mode, finalization included. It shows only what it composes.
1
+ import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixFinalizationActionsFeature as o}from"./finalization-actions.js";import{generatePhoenixMessagesFeature as t}from"./messages.js";import{generatePhoenixProjectPagesFeature as s}from"./pages.js";import{generatePhoenixSceneAndSafeAreaFeature as a}from"./scene-and-safe-area.js";import{generatePhoenixLayoutSlotsFeature as n}from"./slots.js";import{generatePhoenixTabsAndStepsFeature as r}from"./tabs-and-steps.js";import{generatePhoenixToolbarActionsFeature as i}from"./toolbar-actions.js";import{generatePhoenixViewModeFeature as d}from"./view-mode.js";let l=`A layout element registered as \`ConfiguratorLayout\` replaces everything Phoenix renders for a loaded configuration, in owner and in read mode, finalization included. It shows only what it composes.
2
2
 
3
3
  - YAML keeps the domain and the structure the layout reads: control components, in-scene anchors, tabs, steps, toolbar entries and finalize actions. The layout reads them through \`phx.frontend\` hooks, or mounts a built-in slot that reads them.
4
4
  - The spec does not describe the page: the layout draws its own panels and renders the project's control elements in them.
5
- - Start every layout from the skeleton in [Scene and safe area](scene-and-safe-area.md), then read only the guides for the features it offers.
5
+ - Start every layout from the skeleton in [Scene and safe area](scene-and-safe-area.md). Before adding a feature, read its guide below and use its spec and hook contracts. In particular, custom tabs and steps use [Tabs and steps](tabs-and-steps.md), not a parallel React navigation state.
6
6
  - Each feature is either a built-in slot ([Layout slots](slots.md)) or the layout's own UI over hooks, which the other guides cover. No hook enforces read mode, so [View mode](view-mode.md) applies to all of them.
7
- - The controls inside the layout's panels and on the product, their YAML components and React elements, belong to [Domain controls](../domain-controls/index.md).`;export const generatePhoenixCustomLayoutGuides=()=>{let m=[a(),r(),n(),i(),t(),o(),d(),s()];return[e({path:"features/custom-layout/index.md",title:"Custom project layout",summary:"The project's page-level UI: the `ConfiguratorLayout` element with its canvas, built-in slots, tabs and steps, toolbar, messages, finalization and read mode, and the preset screen, loader and error pages; read when creating or changing a project layout or one of these pages.",intro:l,guides:m,notes:[]}),...m]};
7
+ - The controls inside the layout's panels and on the product, their YAML components and React elements, belong to [Domain controls](../domain-controls/index.md); use [Scene controls](../domain-controls/scene-controls.md) for actions placed at positions on the product.`;export const generatePhoenixCustomLayoutGuides=()=>{let m=[a(),n(),r(),i(),t(),o(),d(),s()];return[e({path:"features/custom-layout/index.md",title:"Custom project layout",summary:"The project's page-level UI: the `ConfiguratorLayout` element with its canvas, built-in slots, tabs and steps, toolbar, messages, finalization and read mode, the preset screen, loader and error pages; read when creating or changing a project layout or one of these pages.",intro:l,guides:m,notes:[]}),...m]};
@@ -1,3 +1,3 @@
1
1
  import { type PhoenixGuide } from '../../guide.js';
2
- /** The project's pages outside the loaded configuration: preset screen, loader, failure pages, assistant form elements and drawings. */
2
+ /** The project's pages outside the loaded configuration: preset screen, loader and failure pages. */
3
3
  export declare const generatePhoenixProjectPagesFeature: () => PhoenixGuide;
@@ -46,4 +46,4 @@ const PresetScreen = () => {
46
46
  export default phx.frontend.createPresetUi(PresetScreen)
47
47
  \`\`\`
48
48
 
49
- The app loader is as short: \`export default phx.frontend.createAppLoader(({ phases }) => <span role="status">{phases[0]?.label ?? 'Loading…'}</span>)\`.`;export const generatePhoenixProjectPagesFeature=()=>e({path:"features/custom-layout/pages.md",title:"Project pages",summary:"Replacing the preset screen and its action and overlay, the app loader, the not-authenticated, not-found and error pages, the assistant's form elements and its drawings; read when branding the first moments or the failure pages, when the assistant needs a project form element, or when it should draw for configurator users.",whenToUse:"Read when a page outside the loaded configuration should carry the brand, such as the preset screen, the loader or a failure page, when the assistant should offer a form element of the project, or when it should draw schematics for configurator users.",capabilities:"Each page below is an element: default-export its registration from a file in `src/elements/`.\n\n### Preset screen\n\n- The preset screen shows at the start when there is more than one preset; with a single preset the configuration starts at once.\n- `phx.frontend.createPresetUi(Component)` replaces the whole screen. The built-in screen's categories, close button, action, overlay and empty state go with it.\n- Inside it, `phx.frontend.usePresetSelection()` returns `{ presetCategories, hasMultiplePresets, selectPreset, creatingPresetId, selectionError }`.\n- A category is `{ id, name, description?, img?, imgAlt?, presets }`; a preset is `{ id, name, description?, img?, imgAlt?, detailTitle?, detailDescription? }`. Texts are `Localizable`: resolve them with `phx.frontend.useResolveLocalizable()`.\n- `img` is a resource path: turn it into a URL with `useResourceUrl().getResourceUrl(img)` from `@salsita-ai/sdk/react`, as the built-in screen does.\n- `selectPreset(id)` creates the configuration and opens it. While `creatingPresetId` is set, mark that card busy and disable the others.\n- `selectionError` is the last failed creation: show it. In production with several presets the failure is also a snackbar, so mount `PresetSnackbarsRoot` from `@salsita-ai/sdk/configurator`, or it renders outside the configurator.\n- Keep the preview branch. While `phx.frontend.usePreview().isPreview` is `true`, return `PresetPreviewLayout` from `@salsita-ai/sdk/configurator` with `title` and `startButtonLabel`. Without it, a phone embed with `preview: auto` never expands and shows the whole screen in the collapsed preview.\n- With no categories, for example when the host's `presetTags` match none, the built-in screen shows the not-found page; a replacement decides itself.\n- What a preset is and how to declare one belongs to [Presets](../application-states/presets.md).\n\n### Preset action and overlay\n\nThese fill the built-in preset screen only; a `createPresetUi` screen renders its own instead.\n\n- `phx.frontend.createPresetPageAction(Component)` adds content below the cards, such as a link to request an unlisted product.\n- `phx.frontend.createPresetDeviceNotSupported(Component)` adds an overlay, such as a notice that the configurator works best on a larger screen.\n- The overlay renders as the last child of the screen, not over the cards, and at every width: make it a dialog or position it, and gate it on the condition it is for.\n\n### App loader\n\n- `phx.frontend.createAppLoader(({ phases }) => …)` replaces what the loading overlay shows. Phoenix keeps the overlay, its place over the safe area and its fade.\n- `phases` are the running loading phases, each `{ id, label?, progress? }` with `progress` from 0 to 1. The list can be empty while the loader waits for the scene.\n- The loader covers the session, the data, the configuration and the scene; it waits for the scene only when the layout mounts `LayoutSlots.SharedCanvas` ([Scene and safe area](scene-and-safe-area.md)).\n- `phx.frontend.useLoadingStateValue()` returns `{ isLoading, hasError, phases, expectedPhaseIds }` for loader content that needs more than `phases`.\n- `phx.frontend.useLoadingState()` returns `{ startPhase, endPhase }`, or `null` outside the loader's host. `startPhase({ id, label, progress })` holds the overlay for the project's own loading step; calling it again with the same `id` updates it.\n- End every started phase with `endPhase(id)`, on failure and on unmount too, or the overlay never leaves.\n- A top-level `appLoader: legacy` in the spec turns the overlay off.\n\n### Failure pages\n\n- `phx.frontend.createNotAuthenticatedPage(Component)` — shown when session authentication fails, and to an anonymous visitor of the start page when `acl.canCreate` excludes `anonymous`. It gets no props. Its default renders the not-found page, so a project not-found page shows there too.\n- `phx.frontend.createConfigurationNotFoundPage(({ onBack }) => …)` — shown when a configuration fails to load, is opened without a valid access key, or a signed-in role may not create one. Offer a way back only when the optional `onBack` is set.\n- `phx.frontend.createConfiguratorErrorPage(({ reason, onRetry }) => …)` — the production error page. `reason` is `'uncaughtError'` or `'presetCreationFailed'` (the single preset failed to start); `onRetry` renders again or reloads.\n- Development shows detailed error pages instead, or in agent mode the \"Agent at work\" screen, so check the error page in a production build. A page that throws falls back to the built-in one.\n- Use these helpers rather than `createCustomPhoenixLayoutElement` with the element's name: only the helpers type the props.\n\n### Assistant form elements\n\n- Declare an element under `assistant.formElements.<name>` with `description` (what the model reads), `role` (`group`, `choice`, `choices`, `option` or `input`), optional scalar `attributes` and `required`. Names are lowercase, such as `ralcolor`.\n- Implement it in one file: `export default phx.frontend.createAssistantFormElement('name', Component)`.\n- The name types the props by role through the global `AssistantFormElementProps<'name', STATE>`. Every element gets `attributes`, `label` and `disabled`; an option reports with `onSelect(answer)`, an input with `onChange(state, answer)`, and a container renders `children`.\n- A declared element without a registration, one registered twice, or a registration without a declaration stops the application with an implementation error, at start and on hot reload.\n\n### Assistant drawings\n\n- The assistant can draw a schematic in a reply, as SVG in an `svg` code block. The panel shows it framed in the thread, and a click shows it larger beside the panel.\n- Its prompt lets it draw when a schematic explains better than words or when it is asked to. Ask for more drawings, or for particular ones, in `assistant.instructions` where they help configurator users, such as \"After reading a photo, draw the layout you deduced and ask them to confirm it.\"\n- Nothing needs registering: `AssistantMarkdown` renders drawings, and the configurator page shows the larger view over every layout.",example:t,documentation:'Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/layouts/presets/custom.mdx` — the complete branded preset screen with search and the preview branch.\n- `docs/layouts/presets/action-and-overlay.mdx` — the action and the overlay of the built-in screen.\n- `docs/phoenix/configurator-interface.mdx` — "Preset UI", "Configuration Not Found Page", "Configurator Error Page" and "App Loader".\n- `docs/other-features/not-found-404.mdx`, `docs/other-features/error-5xx.mdx` — worked failure pages.\n- `docs/ux-guidelines/presets.mdx` — what a good preset screen offers.',phxMembers:["frontend.createPresetUi","frontend.usePresetSelection","frontend.createPresetPageAction","frontend.createPresetDeviceNotSupported","frontend.createAppLoader","frontend.useLoadingState","frontend.useLoadingStateValue","frontend.createNotAuthenticatedPage","frontend.createConfigurationNotFoundPage","frontend.createConfiguratorErrorPage","frontend.createAssistantFormElement"]});
49
+ The app loader is as short: \`export default phx.frontend.createAppLoader(({ phases }) => <span role="status">{phases[0]?.label ?? 'Loading…'}</span>)\`.`;export const generatePhoenixProjectPagesFeature=()=>e({path:"features/custom-layout/pages.md",title:"Project pages",summary:"Replacing the preset screen and its action and overlay, the app loader, and the not-authenticated, not-found and error pages; read when branding the first moments or the failure pages.",whenToUse:"Read when a page outside the loaded configuration should carry the brand, such as the preset screen, the loader or a failure page.",capabilities:"Each page below is an element: default-export its registration from a file in `src/elements/`.\n\n### Preset screen\n\n- The preset screen shows at the start when there is more than one preset; with a single preset the configuration starts at once.\n- `phx.frontend.createPresetUi(Component)` replaces the whole screen. The built-in screen's categories, close button, action, overlay and empty state go with it.\n- Inside it, `phx.frontend.usePresetSelection()` returns `{ presetCategories, hasMultiplePresets, selectPreset, createFromPreset, creatingPresetId, selectionError }`.\n- A category is `{ id, name, description?, img?, imgAlt?, presets }`; a preset is `{ id, name, description?, img?, imgAlt?, detailTitle?, detailDescription? }`. Texts are `Localizable`: resolve them with `phx.frontend.useResolveLocalizable()`.\n- `img` is a resource path: turn it into a URL with `useResourceUrl().getResourceUrl(img)` from `@salsita-ai/sdk/react`, as the built-in screen does.\n- `selectPreset(id)` creates the configuration and opens it. While `creatingPresetId` is set, mark that card busy and disable the others.\n- `selectionError` is the last failed creation: show it. In production with several presets the failure is also a snackbar, so mount `PresetSnackbarsRoot` from `@salsita-ai/sdk/configurator`, or it renders outside the configurator.\n- Keep the preview branch. While `phx.frontend.usePreview().isPreview` is `true`, return `PresetPreviewLayout` from `@salsita-ai/sdk/configurator` with `title` and `startButtonLabel`. Without it, a phone embed with `preview: auto` never expands and shows the whole screen in the collapsed preview.\n- With no categories, for example when the host's `presetTags` match none, the built-in screen shows the not-found page; a replacement decides itself.\n- What a preset is and how to declare one belongs to [Presets](../application-states/presets.md).\n\n### Preset action and overlay\n\nThese fill the built-in preset screen only; a `createPresetUi` screen renders its own instead.\n\n- `phx.frontend.createPresetPageAction(Component)` adds content below the cards, such as a link to request an unlisted product.\n- `phx.frontend.createPresetDeviceNotSupported(Component)` adds an overlay, such as a notice that the configurator works best on a larger screen.\n- The overlay renders as the last child of the screen, not over the cards, and at every width: make it a dialog or position it, and gate it on the condition it is for.\n\n### App loader\n\n- `phx.frontend.createAppLoader(({ phases }) => …)` replaces what the loading overlay shows. Phoenix keeps the overlay, its place over the safe area and its fade.\n- `phases` are the running loading phases, each `{ id, label?, progress? }` with `progress` from 0 to 1. The list can be empty while the loader waits for the scene.\n- The loader covers the session, the data, the configuration and the scene; it waits for the scene only when the layout mounts `LayoutSlots.SharedCanvas` ([Scene and safe area](scene-and-safe-area.md)).\n- `phx.frontend.useLoadingStateValue()` returns `{ isLoading, hasError, phases, expectedPhaseIds }` for loader content that needs more than `phases`.\n- `phx.frontend.useLoadingState()` returns `{ startPhase, endPhase }`, or `null` outside the loader's host. `startPhase({ id, label, progress })` holds the overlay for the project's own loading step; calling it again with the same `id` updates it.\n- End every started phase with `endPhase(id)`, on failure and on unmount too, or the overlay never leaves.\n- A top-level `appLoader: legacy` in the spec turns the overlay off.\n\n### Failure pages\n\n- `phx.frontend.createNotAuthenticatedPage(Component)` — shown when session authentication fails, and to an anonymous visitor of the start page when `acl.canCreate` excludes `anonymous`. It gets no props. Its default renders the not-found page, so a project not-found page shows there too.\n- `phx.frontend.createConfigurationNotFoundPage(({ onBack }) => …)` — shown when a configuration fails to load, is opened without a valid access key, or a signed-in role may not create one. Offer a way back only when the optional `onBack` is set.\n- `phx.frontend.createConfiguratorErrorPage(({ reason, onRetry }) => …)` — the production error page. `reason` is `'uncaughtError'` or `'presetCreationFailed'` (the single preset failed to start); `onRetry` renders again or reloads.\n- Development shows detailed error pages instead, or in agent mode the \"Agent at work\" screen, so check the error page in a production build. A page that throws falls back to the built-in one.\n- Use these helpers rather than `createCustomPhoenixLayoutElement` with the element's name: only the helpers type the props.\n",example:t,documentation:'Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/layouts/presets/custom.mdx` — the complete branded preset screen with search and the preview branch.\n- `docs/layouts/presets/action-and-overlay.mdx` — the action and the overlay of the built-in screen.\n- `docs/phoenix/configurator-interface.mdx` — "Preset UI", "Configuration Not Found Page", "Configurator Error Page" and "App Loader".\n- `docs/other-features/not-found-404.mdx`, `docs/other-features/error-5xx.mdx` — worked failure pages.\n- `docs/ux-guidelines/presets.mdx` — what a good preset screen offers.',phxMembers:["frontend.createPresetUi","frontend.usePresetSelection","frontend.createPresetPageAction","frontend.createPresetDeviceNotSupported","frontend.createAppLoader","frontend.useLoadingState","frontend.useLoadingStateValue","frontend.createNotAuthenticatedPage","frontend.createConfigurationNotFoundPage","frontend.createConfiguratorErrorPage"]});
@@ -71,4 +71,4 @@ const DeskPanel = () => {
71
71
 
72
72
  return deskId !== null && !accessInfo.viewMode ? <DeskControls deskId={deskId} /> : null
73
73
  }
74
- \`\`\``;export const generatePhoenixCustomControlsFeature=()=>e({path:"features/domain-controls/custom-controls.md",title:"Custom controls",summary:"The project's own React element per control: where the file lives, registering spec-named elements, mounting it for the selected entity, read mode and the write path; read when rendering a control component.",whenToUse:"Read when a control component needs its UI: a panel in the project layout, a control next to a part on the product, or a change no single control component makes. [Control hooks](control-hooks.md) lists the hooks by job; [Updates and dry runs](../state/updates.md) covers writing the store directly.",capabilities:"### One element per control\n\n- Render each control component with the project's own React element, built from its control hook ([Control hooks](control-hooks.md)): `phx.frontend.useAttributeSelection(entityId, 'frameColor')` for an `attributeSelection` instance named `frameColor`, and so on.\n- Take a typed entity id as a prop, such as `Desk['id']`. Entity types are global in a project, like `phx`.\n- Group the elements of one entity type in a panel component when the layout shows them together.\n\n### Where the file lives\n\n- **Rendered by the layout** — a plain component in an underscore folder, such as `src/_shared/DeskControls.tsx`, with a named export. The layout imports it with a relative `.js` path. It needs no registration: the control hooks work anywhere inside the `ConfiguratorLayout`.\n- **Named by the spec** — an element that an `htmlHotspot`, `sceneEntityObjectHtmlHotspot` or `sceneEntityControl` names ([Scene controls](scene-controls.md)). Default-export `phx.frontend.createCustomPhoenixEntityElement('Name', ({ entityId }) => …)` from `src/elements/`; a file may export an array of registrations instead. It must return an element, `<></>` for nothing.\n- Every file in `src/elements/` outside an underscore folder must default-export a registration, so keep plain components out of it. An unregistered name in the spec renders a red \"not found\" box.\n- A spec-named element receives only `entityId`, untyped: find the entity in `phx.frontend.useCommittedState().entities` and narrow it by `type` before reading fields or calling the typed hooks. An element registered under a built-in kind name, such as the FAB factories of [Scene controls](scene-controls.md), also receives that kind's YAML props.\n\n### Mount it from the layout\n\n- Read the selected entity with `phx.frontend.useSelectedEntityId(phx.domain.enhancedModel.$Desk)`: the id while a desk is selected, else `null`. With nothing selected the root counts as selected.\n- `phx.frontend.useRootEntityId()` gives the root's id for controls that always show.\n- Render the panel only for an id of the right type, and only while `phx.frontend.useAccessService().accessInfo.viewMode` is `false`: no hook enforces read mode.\n- Mirror any `$filter` of the control component in the same condition, since the hook throws while its instance is filtered out ([Control components](control-components.md)).\n- [Scene and safe area](../custom-layout/scene-and-safe-area.md) has the layout skeleton with such a panel.\n\n### Write anything else\n\nWhen no control hook fits, such as a change to several fields or entities, build the updates with `phx.frontend.updates` ([Updates and dry runs](../state/updates.md)) and let a hook dry-run them:\n\n- `phx.frontend.useUpdatedControl(updates)` returns `{ disabled, hints, update }` for one update list. Memoize the list: every new array is a new dry run.\n- `phx.frontend.useUpdateControl()` returns `prepare(updates)`, which returns the same for each candidate, such as one per button.\n- `update()` stages and commits in one step, one undo entry; `disabled` and `hints` follow [Violations](../state/violations.md). Both hooks take `fixableViolations`, which only hides those types from `hints`.\n- Run a domain action the same way: `prepare(phx.frontend.useDomain().actionSystem.prepareAction(name, args, state).updates)`, with `state` from `phx.frontend.useCommittedState()`. `prepareAction` throws on arguments it rejects, so catch it and show its message; [Actions](../domain-model/actions.md) owns them.\n\n```tsx\nconst control = prepare([\n phx.frontend.updates.DomainEntityModification({\n entityId: deskId,\n stateDelta: { width: 1800, depth: 800 },\n updateTag: 'desk.sizePreset',\n }),\n])\n// <Button disabled={control.disabled} title={control.hints} onClick={control.update}>Large</Button>\n```\n\n### Look native\n\nThe project's element is the default. Inside it, the SDK's control components from `@salsita-ai/sdk/react`, such as `AttributeCardSelector` with `entityId` and `instanceName`, can render one control in the SDK's look, and `PropertyContainer` from `@salsita-ai/sdk/ui` gives section spacing and headings. None of these is on `phx`.",example:t,documentation:'Read each with `pnpm phoenix docs -r <path>`:\n\n- `docs/layouts/custom-layout.mdx` — "Read and change the product" (a control in the layout\'s panel, from `src/_shared/`) and "Put a control on the product" (a hotspot element).\n- `docs/controls/custom.mdx` — `useUpdatedControl` and `useCookedRecipes` in elements; skip its property-page attachment.\n- `docs/other-features/domain-actions.mdx` — "Run it from the UI": an action behind `useUpdateControl`.\n- "Updates Factory" in `docs/phoenix/configurator-interface.mdx` — `useUpdatedControl` and `useUpdateControl` with a worked element.',phxMembers:["frontend.createCustomPhoenixEntityElement","frontend.useUpdateControl","frontend.useUpdatedControl"]});
74
+ \`\`\``;export const generatePhoenixCustomControlsFeature=()=>e({path:"features/domain-controls/custom-controls.md",title:"Custom controls",summary:"The project's own React element per control: where the file lives, registering spec-named elements, mounting it for the selected entity, read mode and the write path; read when rendering a control component.",whenToUse:"Read when a control component needs its UI: a panel in the project layout, a control next to a part on the product, or a change no single control component makes. [Control hooks](control-hooks.md) lists the hooks by job; [Updates and dry runs](../state/updates.md) covers writing the store directly.",capabilities:"### One element per control\n\n- Render each control component with the project's own React element, built from its control hook ([Control hooks](control-hooks.md)): `phx.frontend.useAttributeSelection(entityId, 'frameColor')` for an `attributeSelection` instance named `frameColor`, and so on.\n- Take a typed entity id as a prop, such as `Desk['id']`. Entity types are global in a project, like `phx`.\n- Group the elements of one entity type in a panel component when the layout shows them together.\n\n### Where the file lives\n\n- **Rendered by the layout** — a plain component in an underscore folder, such as `src/_shared/DeskControls.tsx`, with a named export. The layout imports it with a relative `.js` path. It needs no registration: the control hooks work anywhere inside the `ConfiguratorLayout`.\n- **Named by the spec** — an element that an `htmlHotspot`, `sceneEntityObjectHtmlHotspot` or `sceneEntityControl` names ([Scene controls](scene-controls.md)). Default-export `phx.frontend.createCustomPhoenixEntityElement('Name', ({ entityId }) => …)` from `src/elements/`; a file may export an array of registrations instead. It must return an element, `<></>` for nothing.\n- Every file in `src/elements/` outside an underscore folder must default-export a registration, so keep plain components out of it. An unregistered name in the spec renders a red \"not found\" box.\n- A spec-named element receives only `entityId`, untyped: find the entity in `phx.frontend.useCommittedState().entities` and narrow it by `type` before reading fields or calling the typed hooks. An element registered under a built-in kind name, such as the FAB factories of [Scene controls](scene-controls.md), also receives that kind's YAML props.\n\n### Mount it from the layout\n\n- Read the selected entity with `phx.frontend.useSelectedEntityId(phx.domain.enhancedModel.$Desk)`: the id while a desk is selected, else `null`. With nothing selected the root counts as selected.\n- `phx.frontend.useRootEntityId()` gives the root's id for controls that always show.\n- Render the panel only for an id of the right type, and only while `phx.frontend.useAccessService().accessInfo.viewMode` is `false`: no hook enforces read mode.\n- Mirror any `$filter` of the control component in the same condition, since the hook throws while its instance is filtered out ([Control components](control-components.md)).\n- [Scene and safe area](../custom-layout/scene-and-safe-area.md) has the layout skeleton with such a panel.\n\n### Write anything else\n\nWhen no control hook fits, such as a change to several fields or entities, build the updates with `phx.frontend.updates` ([Updates and dry runs](../state/updates.md)) and let a hook dry-run them:\n\n- `phx.frontend.useUpdatedControl(updates)` returns `{ disabled, hints, update }` for one update list. Memoize the list: every new array is a new dry run.\n- `phx.frontend.useUpdateControl()` returns `prepare(updates)`, which returns the same for each candidate, such as one per button.\n- `update()` stages and commits in one step, one undo entry; `disabled` and `hints` follow [Violations](../state/violations.md). Both hooks take `fixableViolations`, which only hides those types from `hints`.\n- Run a domain action the same way: `prepare(phx.frontend.useConfigurator().actionSystem.prepareAction(name, args, state).updates)`, with `state` from `phx.frontend.useCommittedState()`. `prepareAction` throws on arguments it rejects, so catch it and show its message; [Actions](../domain-model/actions.md) owns them.\n\n```tsx\nconst control = prepare([\n phx.frontend.updates.DomainEntityModification({\n entityId: deskId,\n stateDelta: { width: 1800, depth: 800 },\n updateTag: 'desk.sizePreset',\n }),\n])\n// <Button disabled={control.disabled} title={control.hints} onClick={control.update}>Large</Button>\n```\n\n### Look native\n\nThe project's element is the default. Inside it, the SDK's control components from `@salsita-ai/sdk/react`, such as `AttributeCardSelector` with `entityId` and `instanceName`, can render one control in the SDK's look, and `PropertyContainer` from `@salsita-ai/sdk/ui` gives section spacing and headings. None of these is on `phx`.",example:t,documentation:'Read each with `pnpm phoenix docs -r <path>`:\n\n- `docs/layouts/custom-layout.mdx` — "Read and change the product" (a control in the layout\'s panel, from `src/_shared/`) and "Put a control on the product" (a hotspot element).\n- `docs/controls/custom.mdx` — `useUpdatedControl` and `useCookedRecipes` in elements; skip its property-page attachment.\n- `docs/other-features/domain-actions.mdx` — "Run it from the UI": an action behind `useUpdateControl`.\n- "Updates Factory" in `docs/phoenix/configurator-interface.mdx` — `useUpdatedControl` and `useUpdateControl` with a worked element.',phxMembers:["frontend.createCustomPhoenixEntityElement","frontend.useUpdateControl","frontend.useUpdatedControl"]});
@@ -1,4 +1,6 @@
1
- import{createPhoenixFeatureGuide as e}from"../../guide.js";let t=`Shelves with the SDK's in-scene controls, placed by the spec and restyled once for the brand. The delete FAB keeps its dry run: it is disabled with the reason while removing the shelf would break an invariant.
1
+ import{createPhoenixFeatureGuide as e}from"../../guide.js";let t=`For a modular run, put an add FAB at the exposed end for new columns and another above a column for stacking. Each belongs to the entity whose child recipes create the part. Position it from the current dimensions, and offer compatible sizes through its recipe menu. After adding, make the new part the editing target through [Selection and hover](../application-states/selection.md); keep its properties contextual and shared finishes separate. Check a blocked addition and phone target visibility as well as the successful path. [Control components](control-components.md) owns recipe wiring.
2
+
3
+ The smaller shelf example below shows placement and branded deletion. The delete FAB keeps its dry run: it is disabled with the reason while removing the shelf would break an invariant.
2
4
 
3
5
  \`\`\`yaml
4
6
  # spec/scene-controls.yaml
@@ -45,4 +47,4 @@ export default phx.frontend.createDeleteEntityFab(({ onDelete, disabled, disable
45
47
  })
46
48
  \`\`\`
47
49
 
48
- \`onDelete\` already stops the click's propagation and records the built-in analytics event.`;export const generatePhoenixSceneControlsFeature=()=>e({path:"features/domain-controls/scene-controls.md",title:"Scene controls",summary:"Hotspots, FABs, editable dimension indicators and 3D entity controls, their placement, and replacing the built-in look; read when putting a control on the product.",whenToUse:"Read when configurator users should act on the product itself: select a part or go to a step from a hotspot, add or delete from a FAB, edit a dimension in the scene, switch tools, or open a project control next to a part. These controls write the same control components as the project's elements ([Control components](control-components.md)).",capabilities:"### Choose the control\n\n- **Select a part** — `sceneEntitySelectHotspot`. Selection itself belongs to [Selection and hover](../application-states/selection.md).\n- **Go to a navigation state** — `sceneEntityNavigationHotspot` with `navigationState` (required), `pushToStack` and `canStackOnto`; [Navigation states](../application-states/navigation.md) owns the stack.\n- **Add children** — `sceneEntityAddFab` offers the entity's `childEntityRecipes`: `instanceNames` narrows them, `skipMenuWhenOnlyOne` adds a single recipe directly, `hideWhenNone` hides an empty FAB, `label` and `icon` style it, and `hiddenViolations` drops those types from its hints.\n- **Delete the entity** — `sceneEntityDeleteFab` with `icon`, `title` and `label`, and `hiddenViolations` to drop those types from its hints.\n- **Switch tools** — `toolMenuFab` with `title` and `options` of `{ label, icon?, toolState }`; [View and tool states](../application-states/views-and-tools.md) owns tools.\n- **Edit a dimension on the product** — the editable indicators open an input for the component they target. `editableDistanceDimensionIndicator` (`targetDimension`, a `distanceDimension` instance), `listSelectorDimensionIndicator` (`targetDistanceDimensionSelect`) and `editableSizeIndicator` (`targetSize`) draw a dimension line from `startX/Y/Z` to `endX/Y/Z`. `editableAngleIndicator` targets an `angleDimension` and is placed by `positionX/Y/Z`, `startAngle` and `sweepAngle`.\n- `editableOffsetIndicator` has no start and end: it requires `targetOffset`, `targetEntityOffsetAnchors`, `targetReferenceOffsetAnchors` and `directionVector`. `dimensionIndicator`, `angleIndicator` and `offsetIndicator` only show the value.\n- **A project control on the product** — `htmlHotspot` with `name`, a project element ([Custom controls](custom-controls.md)), or `sceneEntityObjectHtmlHotspot` with `target`, a `sceneEntityRemoteObject` instance whose animation it follows, offsets in that object's local space and units.\n- **3D content on an entity** — `sceneEntityControl` with `name`: the element renders inside the WebGL scene, so it returns React Three Fiber objects, such as drei's `Billboard` and `Text`, not DOM. It stays out of camera fitting unless `includeInCameraFit: true`.\n\nPrefer the built-in control for its job and restyle it (below); an `htmlHotspot` is for a control the SDK has none of.\n\n### Place and show\n\n- `offsetX`, `offsetY` and `offsetZ` are measured from the entity's origin in the distance data unit; `screenOffsetHorizontal` and `screenOffsetVertical` shift the control in pixels. `$read` or `$eval` an offset that follows a size.\n- `showWhen` takes `selected` and `unselected`. Defaults: `[selected]` for the add and delete FABs, `[unselected]` for the selection and navigation hotspots and the tool menu; an `htmlHotspot` shows in both.\n- `hideWhileDragging` hides the control while an entity is dragged. `azimuthAngleLimits` and `polarAngleLimits` (radians) and `distanceLimits` fade it outside `{ min, max, smoothZone?, minOpacity? }`.\n- Give an icon-only FAB or hotspot a `title`; `tooltipVisibility` is `on-hover` (default), `forced`, `forced-when-still` or `hidden`.\n- `$filter` decides when the control exists: `modes: [owner]` keeps editing controls from viewers, `navigationStates` ties them to a step. [Components](../domain-model/components.md) owns filters.\n- `controlHotspot: true` on an `htmlHotspot` hides it while a change is previewed, so its dry runs never read a stale state; the add and delete FABs always behave so. It also unmounts an open popover on every change: leave it off for a hotspot whose menu stays open while users compare options. `inert: true` makes an `htmlHotspot` ignore the pointer.\n\n### Elements in the scene\n\n- In-scene elements get the theme and every `phx.frontend` hook; MUI popovers and tooltips work inside them.\n- Stop a click inside a project control from reaching the scene with `event.stopPropagation()`, or it also changes the selection. The `onDelete`, `onSelect` and `onNavigate` props below already do; a recipe's `handleClick` does not.\n- The scene's HTML sits under the layout's panels, so a covered control cannot be clicked.\n\n### Replace a built-in control's look\n\nEach helper registers the element the scene renders for one component, everywhere the spec places it, in the built-in layout and in a project layout. The spec keeps the position, visibility, filters and tooltip settings. Pass a component `(props) => JSX.Element | null` (`null` shows nothing) and default-export the registration, or an array of registrations, from a file in `src/elements/`:\n\n- `phx.frontend.createAddEntityFab(Component)` — replaces `AddEntityFab`, for `sceneEntityAddFab`. Props: `entityId`, `instanceNames`, `fixableViolations` (the spec's `hiddenViolations`), `icon`, `label`, `title`, `tooltipVisibility`, `skipMenuWhenOnlyOne`, `hideWhenNone`. It gets no recipes: read them with `phx.frontend.useGroupedRecipeOptions(entityId, instanceNames, fixableViolations)` in the menu, mounted only while open, since every recipe is a dry run.\n- `phx.frontend.createDeleteEntityFab(Component)` — replaces `DeleteEntityFab`. Props: `entityId`, `onDelete`, `disabled`, `disabledHint`, `trace` (logs the dry run), `icon`, `label`, `title`, `tooltipVisibility`.\n- `phx.frontend.createSelectionHotspot(Component)` — replaces `SelectionHotspot`. Props: `entityId`, `onSelect`, `title`, `tooltipVisibility`.\n- `phx.frontend.createNavigationHotspot(Component)` — replaces `NavigationHotspot`. Props: `entityId`, `navigationState`, `onNavigate`, `title`, `tooltipVisibility`.\n- `phx.frontend.createToolMenuFab(Component)` — replaces `ToolMenuFab`. Props: `entityId`, `options`, `onSelectTool(toolState)`, `icon`, `title`, `tooltipVisibility`.\n\n`title` and `label` are localizable: resolve them with `phx.frontend.useResolveLocalizable()`. Registering these names with `createCustomPhoenixEntityElement` works too, but types only `entityId`. The dimension indicators have no replacement; build a different editor as an `htmlHotspot`.",example:t,documentation:'Read each with `pnpm phoenix docs -r <path>`:\n\n- "In-Scene Controls" in `docs/phoenix/configurator-interface.mdx` — the replaceable elements, their props and a complete replacement.\n- `docs/fabs/basic.mdx`, `docs/fabs/layout.mdx` — FAB settings, visibility and tooltips, and grouping controls with screen offsets.\n- `docs/controls/scene/html-hotspots.mdx`, `docs/controls/scene/object-html-hotspots.mdx`, `docs/controls/scene/custom-controls.mdx` (`sceneEntityControl`).\n- "Put a control on the product" in `docs/layouts/custom-layout.mdx` — a project hotspot with a popover.\n- `docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx` and its siblings in that folder, one per indicator (`pnpm phoenix docs -l` lists them).',phxMembers:["frontend.createAddEntityFab","frontend.createDeleteEntityFab","frontend.createSelectionHotspot","frontend.createNavigationHotspot","frontend.createToolMenuFab"]});
50
+ \`onDelete\` already stops the click's propagation and records the built-in analytics event.`;export const generatePhoenixSceneControlsFeature=()=>e({path:"features/domain-controls/scene-controls.md",title:"Scene controls",summary:"Hotspots, FABs, editable dimension indicators and 3D entity controls, their placement, and replacing the built-in look; read when putting a control on the product.",whenToUse:"Read when configurator users should act on the product itself: select a part or go to a step from a hotspot, add or delete from a FAB, edit a dimension in the scene, switch tools, or open a project control next to a part. These controls write the same control components as the project's elements ([Control components](control-components.md)).",capabilities:"For adding, placing or resizing parts at a visible location, start with the corresponding scene control. A menu of options can open from that location; multiple sizes do not require a permanent panel. Use a panel when it makes the target or choices clearer for the task, such as obscured attachment points. Try the spatial action before expanding the property editor.\n\n### Choose the control\n\n- **Select a part** — `sceneEntitySelectHotspot`. Selection itself belongs to [Selection and hover](../application-states/selection.md).\n- **Go to a navigation state** — `sceneEntityNavigationHotspot` with `navigationState` (required), `pushToStack` and `canStackOnto`; [Navigation states](../application-states/navigation.md) owns the stack.\n- **Add children** — `sceneEntityAddFab` offers the entity's `childEntityRecipes`: `instanceNames` narrows them, `skipMenuWhenOnlyOne` adds a single recipe directly, `hideWhenNone` hides an empty FAB, `label` and `icon` style it, and `hiddenViolations` drops those types from its hints.\n- **Delete the entity** — `sceneEntityDeleteFab` with `icon`, `title` and `label`, and `hiddenViolations` to drop those types from its hints.\n- **Switch tools** — `toolMenuFab` with `title` and `options` of `{ label, icon?, toolState }`; [View and tool states](../application-states/views-and-tools.md) owns tools.\n- **Edit a dimension on the product** — the editable indicators open an input for the component they target. `editableDistanceDimensionIndicator` (`targetDimension`, a `distanceDimension` instance), `listSelectorDimensionIndicator` (`targetDistanceDimensionSelect`) and `editableSizeIndicator` (`targetSize`) draw a dimension line from `startX/Y/Z` to `endX/Y/Z`. `editableAngleIndicator` targets an `angleDimension` and is placed by `positionX/Y/Z`, `startAngle` and `sweepAngle`.\n- `editableOffsetIndicator` has no start and end: it requires `targetOffset`, `targetEntityOffsetAnchors`, `targetReferenceOffsetAnchors` and `directionVector`. `dimensionIndicator`, `angleIndicator` and `offsetIndicator` only show the value.\n- **A project control on the product** — `htmlHotspot` with `name`, a project element ([Custom controls](custom-controls.md)), or `sceneEntityObjectHtmlHotspot` with `target`, a `sceneEntityRemoteObject` instance whose animation it follows, offsets in that object's local space and units.\n- **3D content on an entity** — `sceneEntityControl` with `name`: the element renders inside the WebGL scene, so it returns React Three Fiber objects, such as drei's `Billboard` and `Text`, not DOM. It stays out of camera fitting unless `includeInCameraFit: true`.\n\nPrefer the built-in control for its job and restyle it (below); an `htmlHotspot` is for a control the SDK has none of.\n\n### Place and show\n\n- `offsetX`, `offsetY` and `offsetZ` are measured from the entity's origin in the distance data unit; `screenOffsetHorizontal` and `screenOffsetVertical` shift the control in pixels. `$read` or `$eval` an offset that follows a size.\n- `showWhen` takes `selected` and `unselected`. Defaults: `[selected]` for the add and delete FABs, `[unselected]` for the selection and navigation hotspots and the tool menu; an `htmlHotspot` shows in both.\n- `hideWhileDragging` hides the control while an entity is dragged. `azimuthAngleLimits` and `polarAngleLimits` (radians) and `distanceLimits` fade it outside `{ min, max, smoothZone?, minOpacity? }`.\n- Give an icon-only FAB or hotspot a `title`; `tooltipVisibility` is `on-hover` (default), `forced`, `forced-when-still` or `hidden`.\n- `$filter` decides when the control exists: `modes: [owner]` keeps editing controls from viewers, `navigationStates` ties them to a step. [Components](../domain-model/components.md) owns filters.\n- `controlHotspot: true` on an `htmlHotspot` hides it while a change is previewed, so its dry runs never read a stale state; the add and delete FABs always behave so. It also unmounts an open popover on every change: leave it off for a hotspot whose menu stays open while users compare options. `inert: true` makes an `htmlHotspot` ignore the pointer.\n\n### Elements in the scene\n\n- In-scene elements get the theme and every `phx.frontend` hook; MUI popovers and tooltips work inside them.\n- Stop a click inside a project control from reaching the scene with `event.stopPropagation()`, or it also changes the selection. The `onDelete`, `onSelect` and `onNavigate` props below already do; a recipe's `handleClick` does not.\n- The scene's HTML sits under the layout's panels, so a covered control cannot be clicked.\n\n### Replace a built-in control's look\n\nEach helper registers the element the scene renders for one component, everywhere the spec places it, in the built-in layout and in a project layout. The spec keeps the position, visibility, filters and tooltip settings. Pass a component `(props) => JSX.Element | null` (`null` shows nothing) and default-export the registration, or an array of registrations, from a file in `src/elements/`:\n\n- `phx.frontend.createAddEntityFab(Component)` — replaces `AddEntityFab`, for `sceneEntityAddFab`. Props: `entityId`, `instanceNames`, `fixableViolations` (the spec's `hiddenViolations`), `icon`, `label`, `title`, `tooltipVisibility`, `skipMenuWhenOnlyOne`, `hideWhenNone`. It gets no recipes: read them with `phx.frontend.useGroupedRecipeOptions(entityId, instanceNames, fixableViolations)` in the menu, mounted only while open, since every recipe is a dry run.\n- `phx.frontend.createDeleteEntityFab(Component)` — replaces `DeleteEntityFab`. Props: `entityId`, `onDelete`, `disabled`, `disabledHint`, `trace` (logs the dry run), `icon`, `label`, `title`, `tooltipVisibility`.\n- `phx.frontend.createSelectionHotspot(Component)` — replaces `SelectionHotspot`. Props: `entityId`, `onSelect`, `title`, `tooltipVisibility`.\n- `phx.frontend.createNavigationHotspot(Component)` — replaces `NavigationHotspot`. Props: `entityId`, `navigationState`, `onNavigate`, `title`, `tooltipVisibility`.\n- `phx.frontend.createToolMenuFab(Component)` — replaces `ToolMenuFab`. Props: `entityId`, `options`, `onSelectTool(toolState)`, `icon`, `title`, `tooltipVisibility`.\n\n`title` and `label` are localizable: resolve them with `phx.frontend.useResolveLocalizable()`. Registering these names with `createCustomPhoenixEntityElement` works too, but types only `entityId`. The dimension indicators have no replacement; build a different editor as an `htmlHotspot`.",example:t,documentation:'Read each with `pnpm phoenix docs -r <path>`:\n\n- "In-Scene Controls" in `docs/phoenix/configurator-interface.mdx` — the replaceable elements, their props and a complete replacement.\n- `docs/fabs/basic.mdx`, `docs/fabs/layout.mdx` — FAB settings, visibility and tooltips, and grouping controls with screen offsets.\n- `docs/controls/scene/html-hotspots.mdx`, `docs/controls/scene/object-html-hotspots.mdx`, `docs/controls/scene/custom-controls.mdx` (`sceneEntityControl`).\n- "Put a control on the product" in `docs/layouts/custom-layout.mdx` — a project hotspot with a popover.\n- `docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx` and its siblings in that folder, one per indicator (`pnpm phoenix docs -l` lists them).',phxMembers:["frontend.createAddEntityFab","frontend.createDeleteEntityFab","frontend.createSelectionHotspot","frontend.createNavigationHotspot","frontend.createToolMenuFab"]});
@@ -22,7 +22,7 @@ actions:
22
22
 
23
23
  \`\`\`ts
24
24
  // src/actions/move-drawer.ts
25
- export default phx.domain.implementActions({
25
+ export default phx.frontend.implementActions({
26
26
  moveDrawer: ({ drawerId, delta }, state, { systems: { domain }, updates }) => {
27
27
  const desk = domain.getRoot$Entity(state)
28
28
  const from = desk.drawerIds.indexOf(drawerId)
@@ -49,7 +49,7 @@ export default phx.domain.implementActions({
49
49
 
50
50
  \`\`\`tsx
51
51
  // in the drawer's custom element: one prepared move per button
52
- const { actionSystem } = phx.frontend.useDomain()
52
+ const { actionSystem } = phx.frontend.useConfigurator()
53
53
  const state = phx.frontend.useCommittedState()
54
54
  const prepare = phx.frontend.useUpdateControl()
55
55
 
@@ -61,4 +61,4 @@ const move = (delta: number) => {
61
61
  }
62
62
  }
63
63
  const left = move(-1) // <Button disabled={left.disabled} title={left.hints} onClick={left.update}>
64
- \`\`\``;export const generatePhoenixActionsFeature=()=>e({path:"features/domain-model/actions.md",title:"Actions",summary:"Named domain operations declared in YAML, prepared in `src/actions/` and run by controls or the assistant; read when one change touches several entities or the UI and the assistant must share it.",whenToUse:"Read when a change is more than writing one field — a move among siblings, a swap, a change to several entities at once — or when the UI and the assistant must make the same change under the same rule. A single bound field needs no action: bind it in YAML ([Components](components.md)).",capabilities:"### Declare\n\n- Declare actions under the top-level `actions:`, each with a `description`, `params` and `result`. Both maps are required; write `params: {}` for an action without parameters. Names are identifiers.\n- Each param and result member is a JSON schema with the shape syntax: `$ref: phx:...`, `references`, `tsType` and `import`. A param whose schema admits `null` is optional; the others are required.\n- `phx:DomainEntityId` with `references` types an id param; `phx:$DomainEntity` with `references` types a result member as the `$` entity after the change.\n- The descriptions become the doc comments of the generated `ActionParams<'name'>` and `ActionResult<'name'>` types and what the assistant reads about the action, so write them for both readers.\n- Only the configurator domain has actions; the admin domain has none.\n\n### Implement\n\n- Default-export `phx.domain.implementActions({ name: (params, state, ctx) => ... })` from a file in `src/actions/`. A file may implement any subset of the declared actions.\n- `params` arrive validated against the declared schema; `state` is the state the action runs on.\n- `ctx.systems` holds the domain systems and the registered systems for this browser application slot (`systems.domain.get$Entity(id, state)`, `systems.domain.getRoot$Entity(state)`); `ctx.updates` is the typed update factory, `ctx.getIdSequence()` gives ids for created entities, and `ctx.expressionContext` is the expression context.\n- Return `{ updates, readResult }`: the updates to apply, and `readResult({ previousState, state })`, which reads the declared result from the state those updates produced, transformer changes included.\n- An action only prepares. It never stages or commits; its caller does.\n- Throw to reject a call, with a message that says what was wrong and what to send instead: users see it as the control's hint and the assistant as the failed mutation's error.\n- `references` types an id but any entity id passes validation, so check what the id names, for example with `phx.domain.model.Drawer.isId(id)` or by finding it in the parent's list.\n- A declared action without an implementation stops the application at start: `.phoenix/phoenix-dev.log` shows `Missing actions: <names>`, and the editor (`--editor`) the `MISSING_ACTION_IMPLEMENTATIONS` diagnostic; implementing an undeclared name is a type error. Nothing validates what `readResult` returns at runtime.\n- Actions currently execute in the browser, including assistant custom mutations. Built-in extensions such as `ctx.systems.sketchingSystem` are optional: check the value before using it and throw a clear message when the slot does not provide it. For a custom system, check its name with `in` and narrow its value with a local type guard.\n- Action modules are also loaded by the webhook's shared domain assembly. Keep their runtime imports server-safe, including transitive helper imports; browser SDK entry points and browser-only initialization can break the webhook. Type-only browser imports are safe. Use structural guards for registered systems rather than importing a browser class for an `instanceof` check. [Webhook entry](../webhooks/entry-and-environment.md) describes the loading boundary.\n- Read sketching projections from the supplied `state` and call `getLineLengthUpdates`, `getRectangleWidthUpdates`, `getRectangleDepthUpdates`, `getConnectionAngleUpdate` or `getMoveSketchingPointUpdates`. Do not use methods that read committed state, such as `prepareInitialDrawingUpdates`. Never stage, commit, roll back, or change drawing/camera state in an action: assistant operations can use a hypothetical working state.\n\n### Run from the UI\n\n- `phx.frontend.useDomain().actionSystem.prepareAction(name, args, state)` returns the prepared action for the committed state from `phx.frontend.useCommittedState()`.\n- Pass its `updates` to a function from `phx.frontend.useUpdateControl()`: it dry-runs them for `disabled` and `hints` and commits them on `update()`. [Custom controls](../domain-controls/custom-controls.md) owns that hook and the control around it.\n- `prepareAction` throws for an unknown name, arguments that do not fit and every rejection; catch it and show the message as the disabled control's hint.\n- The generated `useDomain()` checks action names and arguments and preserves each action result type.\n\n### Expose to the assistant\n\n- List the action under `assistant.actions` to add it as a custom mutation; `as` renames the field and `description` replaces the action's. The mutation runs the same `prepareAction` and applies its updates with the same validation as every other change.",example:t,documentation:"Read `docs/other-features/domain-actions.mdx` with `pnpm phoenix docs -r docs/other-features/domain-actions.mdx`: declaring, implementing and running an action, with a complete control and the assistant schema. `docs/phoenix/domain-model.mdx` has no actions section.",phxMembers:["domain.implementActions"]});
64
+ \`\`\``;export const generatePhoenixActionsFeature=()=>e({path:"features/domain-model/actions.md",title:"Actions",summary:"Named domain operations declared in YAML, prepared in `src/actions/` and run by controls or the assistant; read when one change touches several entities or the UI and the assistant must share it.",whenToUse:"Read when a change is more than writing one field — a move among siblings, a swap, a change to several entities at once — or when the UI and the assistant must make the same change under the same rule. A single bound field needs no action: bind it in YAML ([Components](components.md)).",capabilities:"### Declare\n\n- Declare actions under the top-level `actions:`, each with a `description`, `params` and an optional `result`. `params` is required; write `params: {}` for an action without parameters. Leave `result` out, or set it to `null`, when the action reports nothing: its `ActionResult<'name'>` is `void`. An empty `result: {}` is a spec error. Names are identifiers.\n- Each param and result member is a JSON schema with the shape syntax: `$ref: phx:...`, `references`, `tsType` and `import`. A param whose schema admits `null` is optional; the others are required.\n- `phx:DomainEntityId` with `references` types an id param; `phx:$DomainEntity` with `references` types a result member as the `$` entity after the change.\n- The descriptions become the doc comments of the generated `ActionParams<'name'>` and `ActionResult<'name'>` types and what the assistant reads about the action, so write them for both readers.\n- Only the configurator domain has actions; the admin domain has none.\n\n### Implement\n\n- Default-export `phx.frontend.implementActions({ name: (params, state, ctx) => ... })` from a file in `src/actions/`. A file may implement any subset of the declared actions.\n- `params` arrive validated against the declared schema; `state` is the state the action runs on.\n- `ctx.systems` holds the domain systems and the registered systems for this browser application slot (`systems.domain.get$Entity(id, state)`, `systems.domain.getRoot$Entity(state)`); `ctx.updates` is the typed update factory, `ctx.getIdSequence()` gives ids for created entities, and `ctx.expressionContext` is the expression context.\n- Return `{ updates, readResult }`: the updates to apply, and `readResult({ previousState, state })`, which reads the declared result from the state those updates produced, transformer changes included. An action without a `result` returns `{ updates }` only; a `readResult` there is a type error.\n- An action only prepares. It never stages or commits; its caller does.\n- Throw to reject a call, with a message that says what was wrong and what to send instead: users see it as the control's hint and the assistant as the failed mutation's error.\n- `references` types an id but any entity id passes validation, so check what the id names, for example with `phx.domain.model.Drawer.isId(id)` or by finding it in the parent's list.\n- A declared action without an implementation stops the application at start: `.phoenix/phoenix-dev.log` shows `Missing actions: <names>`, and the editor (`--editor`) the `MISSING_ACTION_IMPLEMENTATIONS` diagnostic; implementing an undeclared name is a type error. Nothing validates what `readResult` returns at runtime.\n- Actions currently execute in the browser, including assistant custom mutations. Built-in extensions such as `ctx.systems.sketchingSystem` are optional: check the value before using it and throw a clear message when the slot does not provide it. For a custom system, check its name with `in` and narrow its value with a local type guard.\n- Action implementations are registered only by the browser assembly. They may import browser systems; the webhook reads their declarations for the assistant schema without loading their implementation modules.\n- Read sketching projections from the supplied `state` and call `getLineLengthUpdates`, `getRectangleWidthUpdates`, `getRectangleDepthUpdates`, `getConnectionAngleUpdate` or `getMoveSketchingPointUpdates`. Do not use methods that read committed state, such as `prepareInitialDrawingUpdates`. Never stage, commit, roll back, or change drawing/camera state in an action: assistant operations can use a hypothetical working state.\n\n### Run from the UI\n\n- `phx.frontend.useConfigurator().actionSystem.prepareAction(name, args, state)` returns the prepared action for the committed state from `phx.frontend.useCommittedState()`.\n- Pass its `updates` to a function from `phx.frontend.useUpdateControl()`: it dry-runs them for `disabled` and `hints` and commits them on `update()`. [Custom controls](../domain-controls/custom-controls.md) owns that hook and the control around it.\n- `prepareAction` throws for an unknown name, arguments that do not fit and every rejection; catch it and show the message as the disabled control's hint.\n- The generated `useConfigurator().actionSystem` checks action names and arguments and preserves each action result type.\n\n### Expose to the assistant\n\n- List the action under `assistant.actions` to add it as a custom mutation; `as` renames the field and `description` replaces the action's. An action without a `result` becomes a mutation returning `Boolean!`, which is `true` once its changes apply; a failure is an error, never `false`. The mutation runs the same `prepareAction` and applies its updates with the same validation as every other change.",example:t,documentation:"Read `docs/other-features/domain-actions.mdx` with `pnpm phoenix docs -r docs/other-features/domain-actions.mdx`: declaring, implementing and running an action, with a complete control and the assistant schema. `docs/phoenix/domain-model.mdx` has no actions section.",phxMembers:["frontend.implementActions"]});
@@ -43,4 +43,4 @@ export default phx.domain.implementCustomExpressions({
43
43
  })
44
44
  \`\`\`
45
45
 
46
- \`$delivery\` keeps one object while its five inputs are unchanged, so a reader of \`cabinet.$delivery\` re-renders only when one of them changes. \`$halfWidth\` is a number and needs neither TypeScript nor \`memoEval\`.`;export const generatePhoenixExpressionsFeature=()=>e({path:"features/domain-model/expressions.md",title:"Expressions",summary:"Derived values in YAML or TypeScript, `memoEval`, the expression context and the data hooks; read when computing a value from entity state or data sources.",whenToUse:"Read when a value derives from the configuration or its data — a price, a label, a limit, recipe options, a filter condition — or when custom React code needs the published, frontend or backend data.",capabilities:"### Choose the form\n\n- **`constants:`** — a fixed value per entity type or alias, without code (`$maxLegs: 4`). One that does not read `self` is also readable without an entity, as `phx.domain.enhancedModel.$Chair.$maxLegs`.\n- **`$eval` under `expressions:`** — one inline JavaScript expression of `self` (`$eval: self.width / 2`); give it an explicit `type`, because a value that reads `self` cannot be inferred. It sees only `self`: no state, context, helpers or imports. A `$eval` that does not read `self` is folded at parse time when it uses only literals, operators and `Math`; anything else needs an explicit `type` too.\n- **`$msg`** — a translatable text; [Localization](../localization.md) owns it.\n- **TypeScript** — anything that reads the data sources, the state or a helper, or needs more than one expression: declare the type in YAML and implement it in `src/expressions/`.\n\n### Declare and implement\n\n- Declare under `expressions:`, by entity type or alias, a `$name` with a JSON schema: `type`, `items`, `properties`, `$ref: phx:...`, or `tsType` with `import`.\n- Implement it with `phx.domain.implementCustomExpressions({ Desk: { $name: (self, state, ctx) => value } })`, default-exported from a file in `src/expressions/`, one file per entity type. Implement it under the entity type or alias that declares it.\n- A declared expression without an implementation stops the application at start with `MISSING_IMPLEMENTATION`; one implemented twice, or one the spec already gives a value, with `DUPLICATE_DEFINITION`.\n- Inference: a component `$read: $name` or filter `active: { $read: $name }` of an undeclared `$name` declares it with the type that prop or criterion expects, as recipe lists usually are. It still needs a TypeScript implementation. Declare it yourself to own the type; a type no read can accept fails with `EXPRESSION_READ_TYPE_CONFLICT`.\n\n### Pure, server-safe and stable\n\n- Expressions are pure: no side effects, no mutation of inputs, the same result for the same state and data. They are computed on demand and cached per state.\n- Expressions and invariants also run on the server. Use `phx.domain` only, never `phx.frontend`, React or a browser-only import; put shared helpers in `_`-prefixed folders.\n- [Actions](actions.md) execute in the browser, but their modules also load in the webhook and must keep runtime imports server-safe; type-only browser imports are allowed.\n- Keep the reference of an object or array result while its inputs are unchanged: wrap the implementation in `memoEval(deps, compute)` from `@salsita-ai/sdk/domain`. `deps(self, state, ctx)` returns an array compared item by item with `===`, and `compute(...deps)` runs only when an item changed.\n- List every input in `deps` and read nothing else in `compute`. Primitives need no `memoEval`.\n- A new object on every evaluation re-renders every reader and can reset systems that react to references, such as cameras; a mutated cached result hides the change.\n\n### The expression context\n\n- `self` is the `$` entity: fields, relations (`self.$drawers`), expressions and constants.\n- `state` is the domain state: `state.entities`, `state.rootEntityId`.\n- `ctx.publishedData`, `ctx.frontendData` and `ctx.sessionData` are typed by the spec's `publishedData:`, `frontendData:` and `sessionData:` schemas: a property missing from the schema's `required` list is optional.\n- A `sessionData` schema cannot list `required` properties (`SESSION_DATA_REQUIRED_PROPERTIES`), so every `ctx.sessionData` property may be `undefined`.\n- `ctx.backendData` is `Record<string, unknown> | undefined`: optional and untyped, so narrow each value before use.\n- `ctx.mode` is `owner`, `read` or `finalize`; `ctx.role` is the session role.\n- `ctx.domain.get$Entity(id, state)` and `ctx.domain.getRoot$Entity(state)` read other entities; `ctx` also has the component reader and the projections.\n\n### The data in React\n\n- `phx.frontend.usePublishedData()` and `phx.frontend.useFrontendData()` return the typed published and frontend data.\n- `phx.frontend.useBackendData()` returns the same optional, untyped backend data as `ctx.backendData`.\n- `phx.frontend.useLoadedData()` returns what the configurator loaded — `initialEntities`, `initialRevisionId`, `modelVersion`, `rootEntityType` — not the current state, which [State slices](../state/slices.md) reads.\n- Prefer an expression when the value also depends on the configuration: it is cached, runs on the server and can be bound in YAML. Read the hooks for data a custom element only displays.",example:t,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/domain-model.mdx` — the Expressions, Constants and Static values with `$eval` sections.\n- `docs/phoenix/expression-context.mdx` — the context, its projections and the SDK expression builders.\n- `docs/phoenix/data-sources.mdx` — declaring the data schemas, their sources and lifetimes.\n- `docs/phoenix/components.mdx` — the `memoEval` section, for component outputs.",phxMembers:["domain.implementCustomExpressions","frontend.usePublishedData","frontend.useFrontendData","frontend.useBackendData","frontend.useLoadedData"]});
46
+ \`$delivery\` keeps one object while its five inputs are unchanged, so a reader of \`cabinet.$delivery\` re-renders only when one of them changes. \`$halfWidth\` is a number and needs neither TypeScript nor \`memoEval\`.`;export const generatePhoenixExpressionsFeature=()=>e({path:"features/domain-model/expressions.md",title:"Expressions",summary:"Derived values in YAML or TypeScript, `memoEval`, the expression context and the data hooks; read when computing a value from entity state or data sources.",whenToUse:"Read when a value derives from the configuration or its data — a price, a label, a limit, recipe options, a filter condition — or when custom React code needs the published, frontend or backend data.",capabilities:"### Choose the form\n\n- **`constants:`** — a fixed value per entity type or alias, without code (`$maxLegs: 4`). One that does not read `self` is also readable without an entity, as `phx.domain.enhancedModel.$Chair.$maxLegs`.\n- **`$eval` under `expressions:`** — one inline JavaScript expression of `self` (`$eval: self.width / 2`); give it an explicit `type`, because a value that reads `self` cannot be inferred. It sees only `self`: no state, context, helpers or imports. A `$eval` that does not read `self` is folded at parse time when it uses only literals, operators and `Math`; anything else needs an explicit `type` too.\n- **`$msg`** — a translatable text; [Localization](../localization.md) owns it.\n- **TypeScript** — anything that reads the data sources, the state or a helper, or needs more than one expression: declare the type in YAML and implement it in `src/expressions/`.\n\n### Declare and implement\n\n- Declare under `expressions:`, by entity type or alias, a `$name` with a JSON schema: `type`, `items`, `properties`, `$ref: phx:...`, or `tsType` with `import`.\n- Implement it with `phx.domain.implementCustomExpressions({ Desk: { $name: (self, state, ctx) => value } })`, default-exported from a file in `src/expressions/`, one file per entity type. Implement it under the entity type or alias that declares it.\n- A declared expression without an implementation stops the application at start with `MISSING_IMPLEMENTATION`; one implemented twice, or one the spec already gives a value, with `DUPLICATE_DEFINITION`.\n- Inference: a component `$read: $name` or filter `active: { $read: $name }` of an undeclared `$name` declares it with the type that prop or criterion expects, as recipe lists usually are. It still needs a TypeScript implementation. Declare it yourself to own the type; a type no read can accept fails with `EXPRESSION_READ_TYPE_CONFLICT`.\n\n### Pure, server-safe and stable\n\n- Expressions are pure: no side effects, no mutation of inputs, the same result for the same state and data. They are computed on demand and cached per state.\n- Expressions and invariants also run on the server. Use `phx.domain` only, never `phx.frontend`, React or a browser-only import; put shared helpers in `_`-prefixed folders.\n- [Actions](actions.md) belong to configurator and load only in the browser; expressions and invariants must remain server-safe.\n- Keep the reference of an object or array result while its inputs are unchanged: wrap the implementation in `memoEval(deps, compute)` from `@salsita-ai/sdk/domain`. `deps(self, state, ctx)` returns an array compared item by item with `===`, and `compute(...deps)` runs only when an item changed.\n- List every input in `deps` and read nothing else in `compute`. Primitives need no `memoEval`.\n- A new object on every evaluation re-renders every reader and can reset systems that react to references, such as cameras; a mutated cached result hides the change.\n\n### The expression context\n\n- `self` is the `$` entity: fields, relations (`self.$drawers`), expressions and constants.\n- `state` is the domain state: `state.entities`, `state.rootEntityId`.\n- `ctx.publishedData`, `ctx.frontendData` and `ctx.sessionData` are typed by the spec's `publishedData:`, `frontendData:` and `sessionData:` schemas: a property missing from the schema's `required` list is optional.\n- A `sessionData` schema cannot list `required` properties (`SESSION_DATA_REQUIRED_PROPERTIES`), so every `ctx.sessionData` property may be `undefined`.\n- `ctx.backendData` is `Record<string, unknown> | undefined`: optional and untyped, so narrow each value before use.\n- `ctx.mode` is `owner`, `read` or `finalize`; `ctx.role` is the session role.\n- `ctx.domain.get$Entity(id, state)` and `ctx.domain.getRoot$Entity(state)` read other entities; `ctx` also has the component reader and the projections.\n\n### The data in React\n\n- `phx.frontend.usePublishedData()` and `phx.frontend.useFrontendData()` return the typed published and frontend data.\n- `phx.frontend.useBackendData()` returns the same optional, untyped backend data as `ctx.backendData`.\n- `phx.frontend.useLoadedData()` returns what the configurator loaded — `initialEntities`, `initialRevisionId`, `modelVersion`, `rootEntityType` — not the current state, which [State slices](../state/slices.md) reads.\n- Prefer an expression when the value also depends on the configuration: it is cached, runs on the server and can be bound in YAML. Read the hooks for data a custom element only displays.",example:t,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/domain-model.mdx` — the Expressions, Constants and Static values with `$eval` sections.\n- `docs/phoenix/expression-context.mdx` — the context, its projections and the SDK expression builders.\n- `docs/phoenix/data-sources.mdx` — declaring the data schemas, their sources and lifetimes.\n- `docs/phoenix/components.mdx` — the `memoEval` section, for component outputs.",phxMembers:["domain.implementCustomExpressions","frontend.usePublishedData","frontend.useFrontendData","frontend.useBackendData","frontend.useLoadedData"]});
@@ -1 +1 @@
1
- import{createPhoenixIndexGuide as e}from"../guide.js";import{generatePhoenixApplicationStatesGuides as n}from"./application-states/index.js";import{generatePhoenixCustomLayoutGuides as o}from"./custom-layout/index.js";import{generatePhoenixDomainControlsGuides as t}from"./domain-controls/index.js";import{generatePhoenixDomainModelGuides as s}from"./domain-model/index.js";import{generatePhoenixInspectionFeature as i}from"./inspection.js";import{generatePhoenixLocalizationFeature as a}from"./localization.js";import{generatePhoenixSceneObjectsFeature as d}from"./scene-objects.js";import{generatePhoenixStateGuides as r}from"./state/index.js";import{generatePhoenixVariantsFeature as c}from"./variants.js";import{generatePhoenixWebhooksGuides as p}from"./webhooks/index.js";export const generatePhoenixFeatureGuides=()=>{let m=[s(),r(),n(),t(),o(),[a()],[d()],p(),[i()],[c()]];return[e({path:"features/index.md",title:"Features",summary:"What Phoenix capabilities support, their constraints and the canonical SDK documentation.",intro:"Read only the guide the task needs. Each guide teaches its part of the `phx` global and names the SDK documents to read with `pnpm phoenix docs -r <path>`; a link does not make its destination required reading.",guides:m.flatMap(e=>e.slice(0,1)),notes:["## Browse the SDK docs\n\n`pnpm phoenix docs` lists every category with its document count, `-c '<Category>'` shows one category's documents with descriptions and `-l` lists every path with its title. `-s '<text>'` matches literal text line by line, so search for one distinctive term, such as an API or YAML key, rather than a phrase.","## Topic map\n\nTopics no guide covers yet point straight to the canonical SDK docs.\n\n### Project and customization\n\n- `docs/phoenix/getting-started.mdx`, `docs/phoenix/quickstart.mdx` — setup and a complete worked configurator.\n- `docs/phoenix/best-practices.mdx` — supported composition and extension patterns.\n- `docs/phoenix/project-structure.mdx` — authored folders, generated files and naming rules.\n- `docs/phoenix/theming.mdx`, `docs/ux-guidelines/overview.mdx` — theme, branding and interaction principles.\n- The **3d scene**, **Drag & Drop**, **Performance** and **Complex Use Cases** categories — materials, lights, cameras, dragging and snapping, and worked combinations.\n\n### Data sources\n\n- `docs/phoenix/data-sources.mdx`, `docs/phoenix/connected-data-sources.mdx` — published, frontend, session and backend data, and connected sheets.\n\n### Admin and Studio\n\n- `docs/phoenix/admin.mdx`, `docs/phoenix/publishing.mdx` — project content administration and published revisions.\n- `docs/phoenix/sdk-builder-workflow.mdx` — Studio workspaces, projects, environments and builds.\n\n### CLI, access and deployment\n\n- `docs/phoenix/phoenix-cli.mdx` — login, dependencies, sync, dev, build and check.\n- `docs/phoenix/sessions-and-access.mdx`, `docs/phoenix/clerk-sign-in.mdx` — configurator access and project authentication.\n- `docs/phoenix/deployments.mdx` — environments and server builds."]}),...m.flat()]};
1
+ import{createPhoenixIndexGuide as e}from"../guide.js";import{generatePhoenixApplicationStatesGuides as n}from"./application-states/index.js";import{generatePhoenixAssistantGuides as o}from"./assistant/index.js";import{generatePhoenixCustomLayoutGuides as t}from"./custom-layout/index.js";import{generatePhoenixDomainControlsGuides as s}from"./domain-controls/index.js";import{generatePhoenixDomainModelGuides as i}from"./domain-model/index.js";import{generatePhoenixInspectionFeature as a}from"./inspection.js";import{generatePhoenixLocalizationFeature as d}from"./localization.js";import{generatePhoenixSceneObjectsFeature as r}from"./scene-objects.js";import{generatePhoenixStateGuides as c}from"./state/index.js";import{generatePhoenixVariantsFeature as p}from"./variants.js";import{generatePhoenixWebhooksGuides as m}from"./webhooks/index.js";export const generatePhoenixFeatureGuides=()=>{let h=[i(),c(),n(),s(),t(),o(),[d()],[r()],m(),[a()],[p()]];return[e({path:"features/index.md",title:"Features",summary:"What Phoenix capabilities support, their constraints and the canonical SDK documentation.",intro:"Read only the guide the task needs. Each guide teaches its part of the `phx` global and names the SDK documents to read with `pnpm phoenix docs -r <path>`; a link does not make its destination required reading.",guides:h.flatMap(e=>e.slice(0,1)),notes:["## Browse the SDK docs\n\n`pnpm phoenix docs` lists every category with its document count, `-c '<Category>'` shows one category's documents with descriptions and `-l` lists every path with its title. `-s '<text>'` matches literal text line by line, so search for one distinctive term, such as an API or YAML key, rather than a phrase.","## Topic map\n\nTopics no guide covers yet point straight to the canonical SDK docs.\n\n### Project and customization\n\n- `docs/phoenix/getting-started.mdx`, `docs/phoenix/quickstart.mdx` — setup and a complete worked configurator.\n- `docs/phoenix/best-practices.mdx` — supported composition and extension patterns.\n- `docs/phoenix/project-structure.mdx` — authored folders, generated files and naming rules.\n- `docs/phoenix/theming.mdx`, `docs/ux-guidelines/overview.mdx` — theme, branding and interaction principles.\n- The **3d scene**, **Drag & Drop**, **Performance** and **Complex Use Cases** categories — materials, lights, cameras, dragging and snapping, and worked combinations.\n\n### Data sources\n\n- `docs/phoenix/data-sources.mdx`, `docs/phoenix/connected-data-sources.mdx` — published, frontend, session and backend data, and connected sheets.\n\n### Admin and Studio\n\n- `docs/phoenix/admin.mdx`, `docs/phoenix/publishing.mdx` — project content administration and published revisions.\n- `docs/phoenix/sdk-builder-workflow.mdx` — Studio workspaces, projects, environments and builds.\n\n### CLI, access and deployment\n\n- `docs/phoenix/phoenix-cli.mdx` — login, dependencies, sync, dev, build and check.\n- `docs/phoenix/sessions-and-access.mdx`, `docs/phoenix/clerk-sign-in.mdx` — configurator access and project authentication.\n- `docs/phoenix/deployments.mdx` — environments and server builds."]}),...h.flat()]};
@@ -1,4 +1,4 @@
1
- import{createPhoenixFeatureGuide as t}from"../../guide.js";let i=`A missing purpose is a \`warning\`: the change stays, the purpose step's Next waits for it, and finalizing waits for it like for every other warning. Its priority puts its text alone in the finalize hint while lower-ranked warnings also hold.
1
+ import{createPhoenixFeatureGuide as t}from"../../guide.js";let e=`A missing purpose is a \`warning\`: the change stays, the purpose step's Next waits for it, and finalizing waits for it like for every other warning. Its priority puts its text alone in the finalize hint while lower-ranked warnings also hold.
2
2
 
3
3
  \`\`\`yaml
4
4
  # spec/invariants.yaml
@@ -33,4 +33,4 @@ export const PurposeNextButton = () => {
33
33
  </Tooltip>
34
34
  )
35
35
  }
36
- \`\`\``;export const generatePhoenixViolationsFeature=()=>t({path:"features/state/violations.md",title:"Violations",summary:"How violations disable control options, become hints and gate finalizing; read when a control or button must reflect what a change would break or what still blocks the configuration.",whenToUse:"Read when a control must show what an option would break, when hint text needs ranking or custom wording, or when Next or Finalize must wait for the configuration's problems. Declaring invariants, choosing a severity and repairing with transformers belong to [Validation and repair](../domain-model/validation-and-repair.md).",capabilities:"### Where violations surface\n\n- **Controls** — every option is dry-run ([Updates and dry runs](updates.md#dry-runs)). An option is `disabled` when its dry run, after transformers, still has a `fatal` or `fixable` violation or an invariant throws; its hint is the text of those violations. A `warning` or `notice` never disables an option.\n- **Messages** — a rejected commit reaches the potentially invalid slice, and its violations become configurator messages. They include every violation of that state, notices and warnings too, so check `violation.severity`. [Messages](../custom-layout/messages.md) owns showing them.\n- **Finalizing** — reads the committed state: a `warning` or a failed save blocks it, a `notice` only adds text.\n\n### Control violations\n\n`phx.frontend.useControlViolations(ignoredTypes)` returns a function from a prepared emission to `{ disabled, hints, violations }`:\n\n- no violation — enabled, no hint;\n- `notice` or `warning` — enabled, no hint, `violations` listed;\n- `fatal` or `fixable` — disabled, `hints` from those violations, `violations` all of them;\n- an invariant that throws — disabled, no hint. A transformer that throws is not caught: the control's render throws.\n\nPrefer `phx.frontend.useUpdateControl` from [Custom controls](../domain-controls/custom-controls.md), which prepares the emission and applies this mapping. Call `useControlViolations` yourself only for an emission you prepared, such as a dialog listing from `violations` what an option would break.\n\n`fixableViolations`, an argument of every control hook and of both update hooks, only removes those violation types from the hint text: the option stays disabled. List a type when another part of the UI explains it. To keep an option enabled, repair the violation in a transformer, so its dry run ends valid.\n\n### Hint text\n\n- Hints keep only the violations with the highest `controlViolationPriority` (default 0), drop duplicates and join several as sentences. Rank a root cause above its consequences, such as size above color.\n- Ignored types are removed before the highest priority is found, so ignoring the top-ranked violation shows the next one.\n- Set `controlViolationPriority` on a YAML invariant or on a violation returned from TypeScript. The finalize hint applies the same ranking.\n- A TypeScript violation may add `formatControlViolationMessage(emission, { i18n })`: a hint naming the attempted value, or `null` to drop this hint, such as for all but one of identical violations. Messages keep using `message`.\n- `message` is optional on a TypeScript violation, and messages fall back to its type. In YAML it is a string or `$msg`; [Localization](../localization.md) covers the catalogs.\n- `phx.frontend.useMapViolationHints(ignoreTypes?)` returns `(violations, emission) => string`, the hint text these rules make from any violations. For the committed state, take the emission from `phx.frontend.useCommittedSlice()`.\n\n### Finalize and step gating\n\n`phx.frontend.useFinalizeViolations()` returns `{ disabled, hints, violations }` for the committed state:\n\n- `disabled` while a `warning` holds or the last save failed; `hints` then says why, and `violations` is `undefined` for a failed save;\n- a `notice` leaves it enabled, with its text in `hints`;\n- `violations` lists the committed state's violations, `undefined` when there are none.\n\n`phx.frontend.useStateValidity()` returns the validity of the last committed emission: `{ valid: true, severity: null }`, or `{ valid: true, severity: 'warning' | 'notice', entityViolations }`. A `fatal` or `fixable` violation is never committed, so a `warning` is the problem the committed state can still have. Its type also lists the rejected results: narrow on `severity` before reading `entityViolations`.\n\n- Gate Finalize with `disabled` and show `hints` beside it; `useFinalizeActions` already returns both ([Finalization actions](../custom-layout/finalization-actions.md)).\n- Next enforces nothing by itself ([Tabs and steps](../custom-layout/tabs-and-steps.md)). Gate it with `disabled` and show `hints`. `useStateValidity().severity === 'warning'` holds it for the configuration alone, ignoring a failed save, and gives no text.\n- When a step waits only for its own problems, filter `violations` by their types and word them with `useMapViolationHints`.",example:i,documentation:'Read each with `pnpm phoenix docs -r <path>`:\n\n- `docs/other-features/violation-messages.mdx` — `controlViolationPriority` and `formatControlViolationMessage` worked through four ranked violations, with localized hint text.\n- `docs/other-features/violation-severity.mdx` — what each severity does to controls and finalizing; [Validation and repair](../domain-model/validation-and-repair.md) owns choosing one.\n- `docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx` — controls ordered so transformers repair lower choices, with `fixableViolations` shortening each hint.\n- `docs/phoenix/configurator-interface.mdx` — "Violations" lists the violation hooks with what each returns.',phxMembers:["frontend.useControlViolations","frontend.useFinalizeViolations","frontend.useStateValidity","frontend.useMapViolationHints"]});
36
+ \`\`\``;export const generatePhoenixViolationsFeature=()=>t({path:"features/state/violations.md",title:"Violations",summary:"How violations disable control options, become hints and gate finalizing; read when a control or button must reflect what a change would break or what still blocks the configuration.",whenToUse:"Read when a control must show what an option would break, when hint text needs ranking or custom wording, or when Next or Finalize must wait for the configuration's problems. Declaring invariants, choosing a severity and repairing with transformers belong to [Validation and repair](../domain-model/validation-and-repair.md).",capabilities:"### Where violations surface\n\n- **Controls** — every option is dry-run ([Updates and dry runs](updates.md#dry-runs)). An option is `disabled` when its dry run, after transformers, still has a `fatal` or `fixable` violation or an invariant throws; its hint is the text of those violations. A `warning` or `notice` never disables an option.\n- **Messages** — a rejected commit reaches the potentially invalid slice, and its violations become configurator messages. They include every violation of that state, notices and warnings too, so check `violation.severity`. [Messages](../custom-layout/messages.md) owns showing them.\n- **Finalizing** — reads the committed state: a `warning` or a failed save blocks it, a `notice` only adds text.\n\n### Control violations\n\n`phx.frontend.useControlViolations(ignoredTypes)` returns a function from a prepared emission to `{ disabled, hints, violations }`:\n\n- no violation — enabled, no hint;\n- `notice` or `warning` — enabled, no hint, `violations` listed;\n- `fatal` or `fixable` — disabled, `hints` from those violations, `violations` all of them;\n- an invariant that throws — disabled, no hint. A transformer that throws is not caught: the control's render throws.\n\nPrefer `phx.frontend.useUpdateControl` from [Custom controls](../domain-controls/custom-controls.md), which prepares the emission and applies this mapping. Call `useControlViolations` yourself only for an emission you prepared, such as a dialog listing from `violations` what an option would break.\n\n`fixableViolations`, an argument of every control hook and of both update hooks, only removes those violation types from the hint text: the option stays disabled. List a type when another part of the UI explains it. To keep an option enabled, repair the violation in a transformer, so its dry run ends valid.\n\n### Hint text\n\n- Hints keep only the violations with the highest `controlViolationPriority` (default 0), drop duplicates and join several as sentences. Rank a root cause above its consequences, such as size above color.\n- Ignored types are removed before the highest priority is found, so ignoring the top-ranked violation shows the next one.\n- Set `controlViolationPriority` on a YAML invariant or on a violation returned from TypeScript. The finalize hint applies the same ranking.\n- A TypeScript violation may add `formatControlViolationMessage(emission, { i18n })`: a hint naming the attempted value, or `null` to drop this hint, such as for all but one of identical violations. When every hint is dropped, the first violation's `message` is shown, so a disabled option always says why. Messages keep using `message`.\n- The AI assistant reads a change it cannot make by these rules too: each reason's `message`, and the formatted hint as `details` when it differs.\n- `message` is optional on a TypeScript violation, and messages fall back to its type. In YAML it is a string or `$msg`; [Localization](../localization.md) covers the catalogs.\n- `phx.frontend.useMapViolationHints(ignoreTypes?)` returns `(violations, emission) => string`, the hint text these rules make from any violations. For the committed state, take the emission from `phx.frontend.useCommittedSlice()`.\n\n### Finalize and step gating\n\n`phx.frontend.useFinalizeViolations()` returns `{ disabled, hints, violations }` for the committed state:\n\n- `disabled` while a `warning` holds or the last save failed; `hints` then says why, and `violations` is `undefined` for a failed save;\n- a `notice` leaves it enabled, with its text in `hints`;\n- `violations` lists the committed state's violations, `undefined` when there are none.\n\n`phx.frontend.useStateValidity()` returns the validity of the last committed emission: `{ valid: true, severity: null }`, or `{ valid: true, severity: 'warning' | 'notice', entityViolations }`. A `fatal` or `fixable` violation is never committed, so a `warning` is the problem the committed state can still have. Its type also lists the rejected results: narrow on `severity` before reading `entityViolations`.\n\n- Gate Finalize with `disabled` and show `hints` beside it; `useFinalizeActions` already returns both ([Finalization actions](../custom-layout/finalization-actions.md)).\n- Next enforces nothing by itself ([Tabs and steps](../custom-layout/tabs-and-steps.md)). Gate it with `disabled` and show `hints`. `useStateValidity().severity === 'warning'` holds it for the configuration alone, ignoring a failed save, and gives no text.\n- When a step waits only for its own problems, filter `violations` by their types and word them with `useMapViolationHints`.",example:e,documentation:'Read each with `pnpm phoenix docs -r <path>`:\n\n- `docs/other-features/violation-messages.mdx` — `controlViolationPriority` and `formatControlViolationMessage` worked through four ranked violations, with localized hint text.\n- `docs/other-features/violation-severity.mdx` — what each severity does to controls and finalizing; [Validation and repair](../domain-model/validation-and-repair.md) owns choosing one.\n- `docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx` — controls ordered so transformers repair lower choices, with `fixableViolations` shortening each hint.\n- `docs/phoenix/configurator-interface.mdx` — "Violations" lists the violation hooks with what each returns.',phxMembers:["frontend.useControlViolations","frontend.useFinalizeViolations","frontend.useStateValidity","frontend.useMapViolationHints"]});