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

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 (848) hide show
  1. package/README.md +10 -3
  2. package/dist/admin/common/admin-interface.d.ts +2 -2
  3. package/dist/application-spec/errors/diagnostic-codes.d.ts +8 -0
  4. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  5. package/dist/application-spec/errors/diagnostic-messages.d.ts +9 -1
  6. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  7. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  8. package/dist/application-spec/generate-application/code/index.d.ts +1 -0
  9. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +4 -3
  10. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  11. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
  12. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
  13. package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
  14. package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
  15. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
  16. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
  17. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
  18. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
  19. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +6 -8
  20. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +3 -3
  21. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-base-configurator-builder.js +2 -1
  22. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
  23. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +38 -41
  24. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
  25. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  26. package/dist/application-spec/generate-application/code/templates/editor.d.ts +1 -1
  27. package/dist/application-spec/generate-application/code/templates/editor.js +16 -3
  28. package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
  29. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
  30. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
  31. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
  32. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
  33. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +10 -11
  34. package/dist/application-spec/generate-application/code/templates/html-index.d.ts +12 -1
  35. package/dist/application-spec/generate-application/code/templates/html-index.js +9 -10
  36. package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
  37. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  38. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +8 -36
  39. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +15 -11
  40. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  42. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  43. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
  44. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
  45. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  46. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
  47. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.d.ts +3 -0
  48. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
  49. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
  50. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
  51. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
  52. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
  53. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
  54. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
  55. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +2 -2
  56. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
  57. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  58. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
  59. package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -1
  60. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +3 -0
  61. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +42 -0
  62. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.d.ts +3 -0
  63. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.js +45 -0
  64. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.d.ts +3 -0
  65. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +38 -0
  66. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.d.ts +3 -0
  67. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.js +92 -0
  68. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.d.ts +1 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.js +1 -0
  70. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.d.ts +3 -0
  71. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -0
  72. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.d.ts +3 -0
  73. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.js +26 -0
  74. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.d.ts +3 -0
  75. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.js +51 -0
  76. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.d.ts +3 -0
  77. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.js +38 -0
  78. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.d.ts +1 -0
  79. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.js +1 -0
  80. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.d.ts +3 -0
  81. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.js +88 -0
  82. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.d.ts +3 -0
  83. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.js +68 -0
  84. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.d.ts +3 -0
  85. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.js +1 -0
  86. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.d.ts +3 -0
  87. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -0
  88. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  89. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  90. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -1
  91. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  92. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  93. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
  94. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
  95. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
  96. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
  97. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
  98. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
  99. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
  100. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
  101. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  102. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  103. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
  104. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  105. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
  106. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
  107. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  108. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  109. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
  110. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
  111. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
  112. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
  113. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +0 -7
  114. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +1 -1
  115. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
  116. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +7 -6
  117. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
  118. package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
  119. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +3 -0
  120. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  121. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  122. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  123. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
  124. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
  125. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +67 -8
  126. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  127. package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
  128. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +6 -3
  129. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  130. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  131. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  132. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  133. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  134. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
  135. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  136. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
  137. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
  138. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +7 -10
  139. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  140. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
  141. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
  142. package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
  143. package/dist/application-spec/webhook-boundary.js +1 -1
  144. package/dist/client/authorized-client.d.ts +1 -0
  145. package/dist/client/authorized-client.js +1 -1
  146. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  147. package/dist/client/cli-client/cli-api-client.js +1 -0
  148. package/dist/client/cli-client/index.d.ts +2 -0
  149. package/dist/client/cli-client/index.js +1 -0
  150. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  151. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  152. package/dist/client/contract.d.ts +28 -10
  153. package/dist/client/contract.js +1 -1
  154. package/dist/client/index.d.ts +2 -1
  155. package/dist/client/index.js +1 -1
  156. package/dist/client/local-authorized-client.d.ts +1 -0
  157. package/dist/client/local-authorized-client.js +1 -1
  158. package/dist/client/memory-authorized-client.d.ts +1 -0
  159. package/dist/client/memory-authorized-client.js +1 -1
  160. package/dist/client/phoenix-api.d.ts +7503 -2093
  161. package/dist/client/unauthenticated-client.js +1 -1
  162. package/dist/configurator/ConfiguratorApp.js +1 -1
  163. package/dist/configurator/agent-at-work/AgentAtWorkFallback.d.ts +7 -0
  164. package/dist/configurator/agent-at-work/AgentAtWorkFallback.js +1 -0
  165. package/dist/configurator/agent-at-work/AgentAtWorkPage.d.ts +20 -0
  166. package/dist/configurator/agent-at-work/AgentAtWorkPage.js +1 -0
  167. package/dist/configurator/agent-at-work/AgentModeBadge.d.ts +11 -0
  168. package/dist/configurator/agent-at-work/AgentModeBadge.js +1 -0
  169. package/dist/configurator/agent-at-work/StudioMark.d.ts +8 -0
  170. package/dist/configurator/agent-at-work/StudioMark.js +1 -0
  171. package/dist/configurator/agent-at-work/agent-at-work-copy.d.ts +17 -0
  172. package/dist/configurator/agent-at-work/agent-at-work-copy.js +1 -0
  173. package/dist/configurator/agent-at-work/agent-at-work-styles.d.ts +23 -0
  174. package/dist/configurator/agent-at-work/agent-at-work-styles.js +374 -0
  175. package/dist/configurator/agent-at-work/index.d.ts +3 -0
  176. package/dist/configurator/agent-at-work/index.js +1 -0
  177. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
  178. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  179. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  180. package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
  181. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  182. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
  183. package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
  184. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
  185. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
  186. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +56 -0
  187. package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
  188. package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
  189. package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
  190. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
  191. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
  192. package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
  193. package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
  194. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +14 -8
  195. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.d.ts +18 -0
  196. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.js +1 -0
  197. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.d.ts +69 -0
  198. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.js +1 -0
  199. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +246 -22
  200. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  201. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +63 -0
  202. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -0
  203. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -36
  204. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  205. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.d.ts +13 -0
  206. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.js +1 -0
  207. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.d.ts +7 -0
  208. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.js +1 -0
  209. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +3 -0
  210. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
  211. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +33 -0
  212. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -0
  213. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
  214. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
  215. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
  216. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
  217. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  218. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  219. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +18 -5
  220. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  221. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
  222. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  223. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +46 -12
  224. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  225. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
  226. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
  227. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
  228. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
  229. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
  230. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
  231. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
  232. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
  233. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
  234. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  235. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +8 -3
  236. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  237. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +11 -0
  238. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  239. package/dist/configurator/application-runtime/extensions/systems/sketching-system/sketching-system.d.ts +5 -5
  240. package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
  241. package/dist/configurator/common/configurator-interface.d.ts +11 -9
  242. package/dist/configurator/common/configurator-interface.js +1 -1
  243. package/dist/configurator/index.d.ts +1 -0
  244. package/dist/configurator/index.js +1 -1
  245. package/dist/configurator/{ui/configurator-layout/universal → pages}/ExportingOverlay.d.ts +3 -2
  246. package/dist/configurator/pages/ExportingOverlay.js +1 -0
  247. package/dist/configurator/pages/InertRoot.d.ts +10 -0
  248. package/dist/configurator/pages/InertRoot.js +1 -0
  249. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  250. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  251. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  252. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.d.ts +8 -0
  253. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.js +1 -0
  254. package/dist/configurator/pages/error-boundaries/DevContextFallback.d.ts +4 -2
  255. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  256. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.d.ts +6 -4
  257. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  258. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  259. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  260. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  261. package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
  262. package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
  263. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
  264. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  265. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
  266. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
  267. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
  268. package/dist/configurator/ui/assistant/AssistantChips.d.ts +78 -6
  269. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  270. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +99 -1
  271. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  272. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +37 -3
  273. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  274. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +51 -4
  275. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  276. package/dist/configurator/ui/assistant/AssistantThread.d.ts +85 -2
  277. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  278. package/dist/configurator/ui/assistant/AssistantThreadItemView.d.ts +83 -6
  279. package/dist/configurator/ui/assistant/AssistantThreadItemView.js +1 -1
  280. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +35 -1
  281. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
  282. package/dist/configurator/ui/assistant/alert/index.d.ts +1 -1
  283. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +34 -0
  284. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -1
  285. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +2 -3
  286. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
  287. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
  288. package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +59 -5
  289. package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -1
  290. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +40 -5
  291. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  292. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
  293. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  294. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  295. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  296. package/dist/configurator/ui/assistant/annotation/editor/index.d.ts +1 -0
  297. package/dist/configurator/ui/assistant/annotation/index.d.ts +3 -2
  298. package/dist/configurator/ui/assistant/annotation/index.js +1 -1
  299. package/dist/configurator/ui/assistant/assistant-failure.d.ts +9 -4
  300. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  301. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +49 -5
  302. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
  303. package/dist/configurator/ui/assistant/attachments/index.d.ts +1 -1
  304. package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +7 -2
  305. package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -1
  306. package/dist/configurator/ui/assistant/composer/index.d.ts +1 -1
  307. package/dist/configurator/ui/assistant/composer/index.js +1 -1
  308. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
  309. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
  310. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
  311. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
  312. package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
  313. package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
  314. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +58 -0
  315. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -0
  316. package/dist/configurator/ui/assistant/drawing/index.d.ts +2 -0
  317. package/dist/configurator/ui/assistant/drawing/index.js +1 -0
  318. package/dist/configurator/ui/assistant/drawing/parse-drawing.d.ts +18 -0
  319. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -0
  320. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +8 -0
  321. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -0
  322. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +35 -1
  323. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  324. package/dist/configurator/ui/assistant/entity-link/index.d.ts +1 -1
  325. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +59 -2
  326. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  327. package/dist/configurator/ui/assistant/form/built-in-form-slots.d.ts +16 -0
  328. package/dist/configurator/ui/assistant/form/built-in-form-slots.js +1 -0
  329. package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
  330. package/dist/configurator/ui/assistant/form/index.d.ts +2 -1
  331. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
  332. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  333. package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
  334. package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
  335. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
  336. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
  337. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
  338. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
  339. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
  340. package/dist/configurator/ui/assistant/form/registry/index.d.ts +1 -1
  341. package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
  342. package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
  343. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +51 -0
  344. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -1
  345. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +47 -0
  346. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -1
  347. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +43 -0
  348. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
  349. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +56 -2
  350. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
  351. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +43 -0
  352. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
  353. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +47 -0
  354. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
  355. package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
  356. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
  357. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
  358. package/dist/configurator/ui/assistant/form-elements/index.d.ts +8 -9
  359. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  360. package/dist/configurator/ui/assistant/image-view/ImageView.d.ts +66 -0
  361. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -0
  362. package/dist/configurator/ui/assistant/image-view/index.d.ts +1 -0
  363. package/dist/configurator/ui/assistant/image-view/index.js +1 -0
  364. package/dist/configurator/ui/assistant/image-view/use-image-blob.d.ts +7 -0
  365. package/dist/configurator/ui/assistant/image-view/use-image-blob.js +1 -0
  366. package/dist/configurator/ui/assistant/index.d.ts +21 -10
  367. package/dist/configurator/ui/assistant/index.js +1 -1
  368. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.d.ts +57 -0
  369. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -0
  370. package/dist/configurator/ui/assistant/panel/index.d.ts +1 -0
  371. package/dist/configurator/ui/assistant/panel/index.js +1 -0
  372. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +43 -1
  373. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
  374. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
  375. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
  376. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -2
  377. package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
  378. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +49 -2
  379. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -1
  380. package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
  381. package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
  382. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +34 -0
  383. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
  384. package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -1
  385. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
  386. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  387. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
  388. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  389. package/dist/configurator/ui/assistant/thread-items.d.ts +17 -3
  390. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  391. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +32 -7
  392. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  393. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
  394. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
  395. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
  396. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
  397. package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
  398. package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
  399. package/dist/configurator/ui/assistant/voice/RecordingBar.d.ts +21 -0
  400. package/dist/configurator/ui/assistant/voice/RecordingBar.js +1 -0
  401. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.d.ts +43 -0
  402. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.js +1 -0
  403. package/dist/configurator/ui/assistant/voice/index.d.ts +4 -0
  404. package/dist/configurator/ui/assistant/voice/index.js +1 -0
  405. package/dist/configurator/ui/assistant/voice/use-voice-recording.d.ts +39 -0
  406. package/dist/configurator/ui/assistant/voice/use-voice-recording.js +1 -0
  407. package/dist/configurator/ui/assistant/voice/voice-capture.d.ts +22 -0
  408. package/dist/configurator/ui/assistant/voice/voice-capture.js +1 -0
  409. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  410. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  411. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  412. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  413. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  414. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  415. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  416. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  417. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  418. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  419. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  420. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  421. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  422. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  423. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  424. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  425. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  426. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  427. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  428. package/dist/configurator/ui/index.d.ts +1 -1
  429. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  430. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  431. package/dist/docs/index.json +130 -5
  432. package/dist/docs/integrations/woocommerce/overview.mdx +4 -2
  433. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  434. package/dist/docs/layouts/presets/custom.mdx +1 -0
  435. package/dist/docs/layouts/preview/always.mdx +22 -0
  436. package/dist/docs/layouts/view-controls.mdx +2 -0
  437. package/dist/docs/other-features/domain-actions.mdx +82 -55
  438. package/dist/docs/other-features/violation-messages.mdx +3 -1
  439. package/dist/docs/phoenix/admin.mdx +30 -34
  440. package/dist/docs/phoenix/application-states.mdx +1 -1
  441. package/dist/docs/phoenix/assistant/actions.mdx +183 -0
  442. package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
  443. package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
  444. package/dist/docs/phoenix/assistant/overview.mdx +137 -0
  445. package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
  446. package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
  447. package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
  448. package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
  449. package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
  450. package/dist/docs/phoenix/blender-rendering.mdx +3 -1
  451. package/dist/docs/phoenix/configurator-interface.mdx +105 -10
  452. package/dist/docs/phoenix/data-sources.mdx +61 -37
  453. package/dist/docs/phoenix/finalization.mdx +2 -1
  454. package/dist/docs/phoenix/getting-started.mdx +1 -1
  455. package/dist/docs/phoenix/integration/authentication-internal.mdx +2 -2
  456. package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -1
  457. package/dist/docs/phoenix/layout-slots.mdx +2 -2
  458. package/dist/docs/phoenix/localization.mdx +2 -1
  459. package/dist/docs/phoenix/migrations.mdx +1 -1
  460. package/dist/docs/phoenix/phoenix-cli.mdx +97 -57
  461. package/dist/docs/phoenix/project-structure.mdx +17 -7
  462. package/dist/docs/phoenix/sdk-builder-workflow.mdx +61 -30
  463. package/dist/docs/phoenix/sessions-and-access.mdx +62 -41
  464. package/dist/docs/phoenix/sharing.mdx +1 -1
  465. package/dist/docs/phoenix/theming.mdx +5 -9
  466. package/dist/docs/phoenix/webhook-membership.mdx +1 -1
  467. package/dist/docs/phoenix/webhooks.mdx +417 -241
  468. package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
  469. package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
  470. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  471. package/dist/docs/ux-guidelines/overview.mdx +11 -9
  472. package/dist/domain/admin-domain/index.d.ts +2 -2
  473. package/dist/domain/application/application-config.d.ts +8 -1
  474. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  475. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  476. package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
  477. package/dist/domain/application/assistant/assistant-selection.js +1 -0
  478. package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
  479. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
  480. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  481. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +18 -2
  482. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  483. package/dist/domain/application/assistant/index.d.ts +5 -1
  484. package/dist/domain/application/assistant/index.js +1 -1
  485. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
  486. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
  487. package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
  488. package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
  489. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  490. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +30 -2
  491. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  492. package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
  493. package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
  494. package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
  495. package/dist/domain/application/assistant/session-setup/index.js +1 -1
  496. package/dist/domain/application/assistant-field-options.d.ts +2 -0
  497. package/dist/domain/application/assistant-field-options.js +1 -1
  498. package/dist/domain/application/assistant-mutations.d.ts +17 -11
  499. package/dist/domain/application/assistant-mutations.js +1 -1
  500. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  501. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  502. package/dist/domain/application/configurator-builder.d.ts +45 -37
  503. package/dist/domain/application/configurator-builder.js +1 -1
  504. package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
  505. package/dist/domain/available-system-components/available-system-components.js +1 -1
  506. package/dist/domain/core/action/action.d.ts +0 -49
  507. package/dist/domain/core/action/index.d.ts +0 -1
  508. package/dist/domain/core/action/index.js +1 -1
  509. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  510. package/dist/domain/core/component/system-component-filter.js +1 -1
  511. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  512. package/dist/domain/core/component/view-state-component.js +1 -1
  513. package/dist/domain/core/domain-factory.d.ts +2 -3
  514. package/dist/domain/core/index.d.ts +1 -1
  515. package/dist/domain/core/index.js +1 -1
  516. package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
  517. package/dist/domain/core/invariant/control-violation-hints.js +1 -0
  518. package/dist/domain/core/invariant/index.d.ts +1 -0
  519. package/dist/domain/core/invariant/index.js +1 -1
  520. package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
  521. package/dist/domain/domain-builder/domain-builder.js +1 -1
  522. package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
  523. package/dist/domain/domain-context/index.d.ts +0 -1
  524. package/dist/domain/domain-context/index.js +1 -1
  525. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  526. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  527. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  528. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +1 -1
  529. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  530. package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
  531. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -4
  532. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  533. package/dist/domain/domain-runtime/domain-runtime.d.ts +19 -13
  534. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  535. package/dist/domain/domain-runtime/environment/actions.d.ts +1 -0
  536. package/dist/domain/domain-runtime/environment/actions.js +1 -1
  537. package/dist/domain/domain-runtime/environment/initialize.js +1 -1
  538. package/dist/domain/domain-runtime/environment/selectors.d.ts +2 -0
  539. package/dist/domain/domain-runtime/environment/selectors.js +1 -1
  540. package/dist/domain/domain-runtime/environment/types.d.ts +6 -0
  541. package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
  542. package/dist/domain/domain-runtime/spec/index.js +1 -1
  543. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  544. package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
  545. package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
  546. package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
  547. package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
  548. package/dist/domain/extensions/assistant/index.d.ts +1 -0
  549. package/dist/domain/extensions/assistant/index.js +1 -0
  550. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
  551. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  552. package/dist/domain/extensions/index.d.ts +1 -1
  553. package/dist/domain/extensions/index.js +1 -1
  554. package/dist/domain/index.d.ts +1 -1
  555. package/dist/domain/index.js +1 -1
  556. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -6
  557. package/dist/domain/spec/expressions/relation-expression-params.d.ts +1 -1
  558. package/dist/domain/spec/modules/index.d.ts +0 -1
  559. package/dist/domain/spec/modules/index.js +1 -1
  560. package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
  561. package/dist/domain/spec/phx/phx-domain.js +1 -1
  562. package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
  563. package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
  564. package/dist/domain/spec/runtime/create-application.d.ts +5 -2
  565. package/dist/domain/spec/runtime/create-application.js +1 -1
  566. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
  567. package/dist/domain/spec/sections/actions.d.ts +3 -2
  568. package/dist/domain/spec/sections/app-metadata.d.ts +3 -0
  569. package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
  570. package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
  571. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +35 -2
  572. package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
  573. package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
  574. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +55 -13
  575. package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
  576. package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
  577. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
  578. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
  579. package/dist/domain/spec/sections/assistant/index.d.ts +5 -2
  580. package/dist/domain/system-components/index.d.ts +1 -0
  581. package/dist/domain/system-components/index.js +1 -1
  582. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  583. package/dist/domain/system-components/navigation/index.js +1 -0
  584. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  585. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  586. package/dist/editor/Editor.d.ts +5 -0
  587. package/dist/editor/Editor.js +1 -1
  588. package/dist/editor/EditorMode.d.ts +2 -0
  589. package/dist/editor/EditorMode.js +1 -1
  590. package/dist/editor/agent-mode/AgentModeBridge.d.ts +10 -0
  591. package/dist/editor/agent-mode/AgentModeBridge.js +1 -0
  592. package/dist/editor/agent-mode/agent-at-work-fonts.d.ts +2 -0
  593. package/dist/editor/agent-mode/agent-at-work-fonts.js +1 -0
  594. package/dist/editor/console-reporter/BrowserConsoleReporter.js +1 -1
  595. package/dist/editor/console-reporter/console-capture.d.ts +20 -0
  596. package/dist/editor/console-reporter/console-capture.js +1 -0
  597. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  598. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  599. package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
  600. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  601. package/dist/editor/index.d.ts +1 -0
  602. package/dist/editor/index.js +1 -1
  603. package/dist/editor/variants/VariantAnswerFooter.d.ts +8 -1
  604. package/dist/editor/variants/VariantAnswerFooter.js +1 -1
  605. package/dist/editor/variants/VariantPageUnavailable.d.ts +5 -0
  606. package/dist/editor/variants/VariantPageUnavailable.js +1 -0
  607. package/dist/editor/variants/VariantPreviewHandler.js +1 -1
  608. package/dist/editor/variants/variant-preview-fonts.d.ts +2 -0
  609. package/dist/editor/variants/variant-preview-fonts.js +1 -0
  610. package/dist/editor/variants/variant-preview-styles.d.ts +40 -48
  611. package/dist/editor/variants/variant-preview-styles.js +493 -1
  612. package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
  613. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  614. package/dist/extras/cognito/index.d.ts +1 -0
  615. package/dist/extras/cognito/index.js +1 -0
  616. package/dist/globals/index.d.ts +5 -0
  617. package/dist/i18n/locales/cs/messages.js +1 -1
  618. package/dist/i18n/locales/da/messages.js +1 -1
  619. package/dist/i18n/locales/de/messages.js +1 -1
  620. package/dist/i18n/locales/de-AT/messages.js +1 -1
  621. package/dist/i18n/locales/en/messages.js +1 -1
  622. package/dist/i18n/locales/en-AU/messages.js +1 -1
  623. package/dist/i18n/locales/en-GB/messages.js +1 -1
  624. package/dist/i18n/locales/es/messages.js +1 -1
  625. package/dist/i18n/locales/fr/messages.js +1 -1
  626. package/dist/i18n/locales/hu/messages.js +1 -1
  627. package/dist/i18n/locales/it/messages.js +1 -1
  628. package/dist/i18n/locales/nl/messages.js +1 -1
  629. package/dist/i18n/locales/pl/messages.js +1 -1
  630. package/dist/i18n/locales/pt/messages.js +1 -1
  631. package/dist/i18n/locales/ro/messages.js +1 -1
  632. package/dist/i18n/locales/sk/messages.js +1 -1
  633. package/dist/i18n/locales/tr/messages.js +1 -1
  634. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  635. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  636. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  637. package/dist/legacy/domain-cli/gen/configurator-builder.js +5 -4
  638. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  639. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  640. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +25 -3
  641. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  642. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  643. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  644. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  645. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  646. package/dist/phoenix/application-spec/application-spec-builder.d.ts +2 -2
  647. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  648. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +2 -1
  649. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  650. package/dist/phoenix/application-spec/generate-project-files.d.ts +4 -3
  651. package/dist/phoenix/application-spec/generate-project-files.js +1 -1
  652. package/dist/phoenix/application-spec/index.d.ts +2 -1
  653. package/dist/phoenix/application-spec/index.js +1 -1
  654. package/dist/phoenix/application-spec/read-spec-project.d.ts +1 -2
  655. package/dist/phoenix/application-spec/read-spec-project.js +1 -1
  656. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
  657. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  658. package/dist/phoenix/cli.js +1 -1
  659. package/dist/phoenix/commands/account/index.d.ts +1 -0
  660. package/dist/phoenix/commands/account/index.js +1 -0
  661. package/dist/phoenix/commands/account/whoami.d.ts +10 -0
  662. package/dist/phoenix/commands/account/whoami.js +4 -0
  663. package/dist/phoenix/commands/build.d.ts +2 -1
  664. package/dist/phoenix/commands/build.js +1 -1
  665. package/dist/phoenix/commands/clean.d.ts +2 -1
  666. package/dist/phoenix/commands/clean.js +1 -1
  667. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  668. package/dist/phoenix/commands/deploy.d.ts +7 -2
  669. package/dist/phoenix/commands/deploy.js +9 -3
  670. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  671. package/dist/phoenix/commands/dev.d.ts +2 -1
  672. package/dist/phoenix/commands/dev.js +4 -4
  673. package/dist/phoenix/commands/feedback.d.ts +2 -2
  674. package/dist/phoenix/commands/feedback.js +1 -1
  675. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  676. package/dist/phoenix/commands/index.d.ts +1 -0
  677. package/dist/phoenix/commands/index.js +1 -1
  678. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  679. package/dist/phoenix/commands/init.d.ts +2 -2
  680. package/dist/phoenix/commands/init.js +1 -1
  681. package/dist/phoenix/commands/login.d.ts +6 -3
  682. package/dist/phoenix/commands/login.js +3 -3
  683. package/dist/phoenix/commands/logout.js +1 -1
  684. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  685. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  686. package/dist/phoenix/commands/sync.d.ts +2 -1
  687. package/dist/phoenix/commands/sync.js +1 -1
  688. package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
  689. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  690. package/dist/phoenix/services/cli-credentials.d.ts +26 -7
  691. package/dist/phoenix/services/cli-credentials.js +2 -2
  692. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  693. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  694. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  695. package/dist/phoenix/services/cli-server/index.js +1 -0
  696. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
  697. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  698. package/dist/phoenix/services/dev-experience/dev-experience.d.ts +31 -0
  699. package/dist/phoenix/services/dev-experience/dev-experience.js +1 -0
  700. package/dist/phoenix/services/dev-experience/index.d.ts +3 -0
  701. package/dist/phoenix/services/dev-experience/index.js +1 -0
  702. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.d.ts +7 -0
  703. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.js +1 -0
  704. package/dist/phoenix/services/dev-experience/regenerated-page-experience.d.ts +24 -0
  705. package/dist/phoenix/services/dev-experience/regenerated-page-experience.js +1 -0
  706. package/dist/phoenix/services/development-credential.js +1 -1
  707. package/dist/phoenix/services/frontend-config.d.ts +2 -0
  708. package/dist/phoenix/services/index.d.ts +6 -3
  709. package/dist/phoenix/services/index.js +1 -1
  710. package/dist/phoenix/services/phoenix-pubsub.d.ts +4 -0
  711. package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
  712. package/dist/phoenix/services/phoenix-regions.js +1 -1
  713. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  714. package/dist/phoenix/services/session/phoenix-application.d.ts +2 -1
  715. package/dist/phoenix/services/session/phoenix-application.js +2 -2
  716. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  717. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  718. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  719. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  720. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  721. package/dist/phoenix/services/spec-project/index.js +1 -0
  722. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  723. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  724. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  725. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  726. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  727. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  728. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
  729. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
  730. package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
  731. package/dist/phoenix/services/variant-file-session.js +1 -1
  732. package/dist/phoenix/services/vite-config.d.ts +2 -1
  733. package/dist/phoenix/services/vite-config.js +1 -1
  734. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  735. package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
  736. package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
  737. package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
  738. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  739. package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
  740. package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
  741. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
  742. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
  743. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
  744. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
  745. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
  746. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
  747. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
  748. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
  749. package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
  750. package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
  751. package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
  752. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  753. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  754. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +2 -0
  755. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -1
  756. package/dist/react-sdk/application-runtime/hooks/use-environment.d.ts +7 -0
  757. package/dist/react-sdk/application-runtime/hooks/use-environment.js +1 -1
  758. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  759. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
  760. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
  761. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  762. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +6 -0
  763. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -1
  764. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -1
  765. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -1
  766. package/dist/react-sdk/application-runtime/responsive/types.d.ts +9 -0
  767. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +28 -12
  768. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  769. package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
  770. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +2 -2
  771. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
  772. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  773. package/dist/react-sdk/domain-context/index.d.ts +3 -2
  774. package/dist/react-sdk/domain-context/index.js +1 -1
  775. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
  776. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
  777. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
  778. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
  779. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  780. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  781. package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
  782. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  783. package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
  784. package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
  785. package/dist/react-sdk/preset-selection/index.d.ts +2 -1
  786. package/dist/react-sdk/preset-selection/index.js +1 -1
  787. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
  788. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
  789. package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
  790. package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
  791. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  792. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  793. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  794. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  795. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
  796. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  797. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  798. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  799. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  800. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  801. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  802. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  803. package/dist/ui-sdk/icons/__generated/Microphone.d.ts +3 -0
  804. package/dist/ui-sdk/icons/__generated/Microphone.js +1 -0
  805. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.d.ts +3 -0
  806. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.js +1 -0
  807. package/dist/ui-sdk/icons/__generated/SpeakerHigh.d.ts +3 -0
  808. package/dist/ui-sdk/icons/__generated/SpeakerHigh.js +1 -0
  809. package/dist/ui-sdk/icons/__generated/SpeakerSlash.d.ts +3 -0
  810. package/dist/ui-sdk/icons/__generated/SpeakerSlash.js +1 -0
  811. package/dist/ui-sdk/icons/__generated/Stop.d.ts +3 -0
  812. package/dist/ui-sdk/icons/__generated/Stop.js +1 -0
  813. package/dist/ui-sdk/icons/__generated/index.d.ts +10 -0
  814. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  815. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  816. package/dist/ui-sdk/theme/types.d.ts +0 -4
  817. package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
  818. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  819. package/dist/webhook/builders/common.d.ts +5 -3
  820. package/dist/webhook/builders/webhook-builder.d.ts +5 -0
  821. package/dist/webhook/builders/webhook-builder.js +1 -1
  822. package/package.json +11 -4
  823. package/schema/domain-spec.json +444 -65
  824. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +0 -2
  825. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +0 -1
  826. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
  827. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
  828. package/dist/configurator/ui/assistant/annotation/annotation-host-context.d.ts +0 -5
  829. package/dist/configurator/ui/assistant/annotation/annotation-host-context.js +0 -1
  830. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
  831. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -9
  832. package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
  833. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -10
  834. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
  835. package/dist/configurator/ui/assistant/theme.d.ts +0 -2
  836. package/dist/configurator/ui/assistant/theme.js +0 -1
  837. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +0 -1
  838. package/dist/domain/core/action/action-factory.d.ts +0 -11
  839. package/dist/domain/domain-context/action-system/action-system.d.ts +0 -38
  840. package/dist/domain/domain-context/action-system/action-system.js +0 -1
  841. package/dist/domain/domain-context/action-system/index.d.ts +0 -1
  842. package/dist/domain/domain-context/action-system/index.js +0 -1
  843. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
  844. package/dist/domain/extensions/view-controls.d.ts +0 -25
  845. package/dist/domain/extensions/view-controls.js +0 -1
  846. package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
  847. /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
  848. /package/dist/{domain/core/action → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
@@ -0,0 +1,221 @@
1
+ # Instructions and AI Settings
2
+
3
+ The other chapters decide what the agent can read and do. This one decides how it behaves and what it runs on: the guidance you write for it, the AI model behind it, and the limits on how much one conversation and one user may use.
4
+
5
+ - [Instructions](#instructions)
6
+ - [Model and reasoning](#model-and-reasoning)
7
+ - [Long conversations and long requests](#long-conversations-and-long-requests)
8
+ - [Hourly limits](#hourly-limits)
9
+ - [How long a conversation is kept](#how-long-a-conversation-is-kept)
10
+ - [When the setup changes](#when-the-setup-changes)
11
+
12
+ ## Instructions
13
+
14
+ Descriptions tell the agent what one field, one recipe group or one action means. `instructions` is free text for everything that belongs to no single entry. Without it, the agent knows the parts of the product and nothing about how to work with a user on it.
15
+
16
+ Typical content, from real setups:
17
+
18
+ - **The role and the tone.** Who the user is, how brief to be, in which language to answer.
19
+ - **How decisive to be.** Whether to build a first version from a rough request and state the assumptions, or to ask first.
20
+ - **The order of work.** For a configurator with steps: which step comes first, and when to move the user on.
21
+ - **Rules across entities.** What a change does elsewhere in the product, which values belong together, what to read again after a change.
22
+ - **Conventions many fields share.** The unit of every length, the direction of the axes in the top view. Say it once here, where it would otherwise repeat in every description.
23
+
24
+ Keep three things out:
25
+
26
+ - **What a single field means.** That goes into its `description`, where the agent finds it next to the field.
27
+ - **How to write queries.** The generated guide already teaches the agent to use the schema.
28
+ - **Anything confidential.** The instructions are part of the configurator the browser downloads, so a visitor can read them. See below for why they are there.
29
+
30
+ #### Configure
31
+
32
+ ```yaml
33
+ assistant:
34
+ instructions: >-
35
+ Help the user design a kitchen range. Be brief. When the user asks for a change, make it and
36
+ say what you assumed. Ask only when something essential is missing.
37
+ Adding a cooking component can add a base cabinet to the range: some components need their
38
+ own cabinet, and a component that does not fit makes the range grow by one cabinet.
39
+ Replacing or deleting a base unit removes the cooking components linked to it.
40
+ All dimensions are in millimeters.
41
+ ```
42
+
43
+ - **`instructions`** is one text. Declare it in one spec file only.
44
+ - **Write it as you would brief a new colleague.** Plain sentences work. The agent reads all of it at the start of every conversation, so every sentence should change what it does.
45
+
46
+ The instructions reach two readers by two routes:
47
+
48
+ - **The assistant in the panel gets them from the server.** The server holds its own copy, taken from the spec when the project is deployed. Nothing the browser sends can change what the assistant is told, so a visitor cannot rewrite the instructions.
49
+ - **An AI agent in the visitor's own browser gets them from the configurator.** The configurator offers its tools to such agents through WebMCP, and hands them the instructions with the schema. This is why the text is in the download.
50
+
51
+ Start short and add a sentence when you see the agent get something wrong. Instructions of a real setup run from several hundred words to over a thousand.
52
+
53
+ <details>
54
+ <summary>What the agent sees</summary>
55
+
56
+ ```
57
+ About this product:
58
+
59
+ Help the user design a kitchen range. Be brief. When the user asks for a change, make it and
60
+ say what you assumed. Ask only when something essential is missing.
61
+ Adding a cooking component can add a base cabinet to the range: some components need their
62
+ own cabinet, and a component that does not fit makes the range grow by one cabinet.
63
+ Replacing or deleting a base unit removes the cooking components linked to it.
64
+ All dimensions are in millimeters.
65
+ ```
66
+
67
+ The text is added to the agent's standing instructions under the heading "About this product", after the general rules of the assistant and the guide to the schema. It is there for the whole conversation, in every message.
68
+
69
+ </details>
70
+
71
+ ## Model and reasoning
72
+
73
+ `ai` says which AI model the assistant runs on. It is the one required part of the section, and it decides most of the cost and the quality. A more capable model plans larger changes and misreads less. It is also slower and costs more per message. Let the owner of the product make this choice.
74
+
75
+ #### Configure
76
+
77
+ ```yaml
78
+ assistant:
79
+ ai:
80
+ provider: openai
81
+ model: balanced
82
+ reasoning: medium
83
+ ```
84
+
85
+ - **`provider`** is the AI provider. `openai` is the only one.
86
+ - **`model`** is a tier, most capable first: `frontier`, `advanced`, `balanced`, `fast`. The server maps a tier to a concrete model, so a model can be retired without a change to the project.
87
+ - **`reasoning`** is how much the model thinks before it answers: `low`, `medium` or `high`.
88
+
89
+ Two rules for where `ai` lives:
90
+
91
+ - **Declare it in exactly one spec file.** The rest of the section can be split across files.
92
+ - **It goes to the server only.** Unlike the rest of the section, it is not part of what the browser downloads.
93
+
94
+ `ai` also holds the limits and the retention period the next topics cover, and `voice`, which turns on speaking to the assistant. See [The Panel](?path=/docs/phoenix-assistant-the-panel--docs#voice) for voice. Drawings, forms, images and annotations are switched under `assistant.features`. See [The Panel](?path=/docs/phoenix-assistant-the-panel--docs#leaving-parts-of-the-panel-out).
95
+
96
+ <details>
97
+ <summary>What the agent sees</summary>
98
+
99
+ Nothing. These settings choose the agent and are not shown to it.
100
+
101
+ </details>
102
+
103
+ ## Long conversations and long requests
104
+
105
+ Two limits keep one conversation from growing without end. Both have defaults that suit a configurator where the user makes a few changes at a time. Raise them when the assistant does larger jobs.
106
+
107
+ - **The size of a conversation.** Everything said and read so far is sent to the model with each message, so a long conversation gets slower and more expensive. When it reaches the limit, the server summarizes it. The agent continues from the summary and the last exchanges, word for word. For the user this is nearly transparent: the earlier messages stay in the panel above a separator, and the chat goes on.
108
+ - **The tool calls for one message.** Each read and each change the agent makes is a tool call. At the limit the agent stops, tells the user what it did so far and asks whether to continue.
109
+
110
+ #### Configure
111
+
112
+ ```yaml
113
+ assistant:
114
+ ai:
115
+ provider: openai
116
+ model: advanced
117
+ reasoning: medium
118
+ maxThreadSize: 128000
119
+ maxToolCallsPerMessage: 30
120
+ ```
121
+
122
+ - **`maxThreadSize`** is in input tokens of one call to the model. The default is 64,000 and the most is 192,000. Raise it when users hold long design conversations and the agent loses detail after a summary.
123
+ - **`maxToolCallsPerMessage`** defaults to 8, and the most is 100. Raise it when one request takes many steps, such as building a whole layout from a specification. A value this high also lets a confused agent try for longer before it stops.
124
+
125
+ The schema, the guide and your instructions are part of every call, and count toward `maxThreadSize`. A value below their size makes every conversation summarize after one reply.
126
+
127
+ <details>
128
+ <summary>What the agent sees</summary>
129
+
130
+ The agent does not see either number. At the tool call limit, its next call is not run, and it is told to stop calling tools, report what it did and found, and ask the user whether to continue.
131
+
132
+ After a summary, the agent starts a new conversation that opens with the summary of the earlier one. It is told that the summary is a record, not a list of things to do, and that the configuration may have changed since, so it reads the configuration again before it relies on a value from the summary.
133
+
134
+ </details>
135
+
136
+ ## Hourly limits
137
+
138
+ The hourly limits stop runaway use: a script that talks to the assistant, or a session that got stuck in a loop. They are not a budget. The defaults are high enough that a real user never meets them.
139
+
140
+ Usage is counted at three levels at once, each per clock hour:
141
+
142
+ - **`sub`**: one user.
143
+ - **`ip`**: one network address, which catches a visitor who starts many sessions.
144
+ - **`project`**: the whole project, across all its users.
145
+
146
+ When any of the three is used up, the assistant refuses new messages until the next hour.
147
+
148
+ #### Configure
149
+
150
+ ```yaml
151
+ assistant:
152
+ ai:
153
+ provider: openai
154
+ model: balanced
155
+ reasoning: medium
156
+ hourlyLimits:
157
+ sub: 2000000
158
+ project: 50000000
159
+ ```
160
+
161
+ - **`hourlyLimits`** takes any of `sub`, `ip` and `project`. A level you leave out keeps its default.
162
+ - **The unit is credits**, the same as for the monthly caps. See [Usage caps](?path=/docs/phoenix-assistant-security-and-limits--docs#usage-caps).
163
+ - **The defaults** are 1,000,000 for `sub`, 5,000,000 for `ip` and 20,000,000 for `project`.
164
+ - **The most** you can set is five times the default.
165
+
166
+ Raise `sub` for an internal configurator where one expert works with the assistant all day. Raise `project` when many users work at the same time.
167
+
168
+ <details>
169
+ <summary>What the agent sees</summary>
170
+
171
+ Nothing. A message over the limit never reaches the agent. The panel tells the user that the assistant has used up its allowance and that the message can be sent again later.
172
+
173
+ </details>
174
+
175
+ ## How long a conversation is kept
176
+
177
+ The server stores every conversation, so a user who comes back finds it again. By default it is kept without a limit. Set a retention period when the rules the product falls under ask for one. Data protection law such as the GDPR expects whoever runs the product to decide how long personal data is kept, and a conversation can hold some.
178
+
179
+ #### Configure
180
+
181
+ ```yaml
182
+ assistant:
183
+ ai:
184
+ provider: openai
185
+ model: balanced
186
+ reasoning: medium
187
+ retentionDays: 90
188
+ ```
189
+
190
+ - **`retentionDays`** is a whole number of days. A conversation is deleted that many days after the user's last message in it.
191
+ - **Every new message of the user starts the period again.** A reply of the assistant does not.
192
+
193
+ Everything of the conversation goes with it: the messages, the attached images, the screenshots and the speech. The server looks for expired conversations once an hour, so one can outlive its period by up to an hour.
194
+
195
+ <details>
196
+ <summary>What the agent sees</summary>
197
+
198
+ Nothing. The agent is not told how long the conversation is kept.
199
+
200
+ </details>
201
+
202
+ ## When the setup changes
203
+
204
+ A conversation is tied to the setup it started with: the schema, the guide, the instructions and the AI settings. A release that changes any of them changes what the agent may do, in the middle of conversations that are still open.
205
+
206
+ - **In a deployed environment**, a changed setup closes the open conversations. A user who writes again continues in a new one that starts from a summary of the old. For the user this is nearly transparent: the earlier messages stay in the panel above a separator, and the agent carries on from where it was.
207
+ - **In a development environment**, the conversation stays open, and the new setup applies from the next message. That lets you change a description and try it on the same conversation. A larger change in the middle of a conversation can confuse the agent, because what it read and did earlier no longer matches the schema it has now. Start a new conversation after such a change.
208
+
209
+ #### Configure
210
+
211
+ Nothing to declare in the spec. Two things to know while you develop:
212
+
213
+ - **Restart `phoenix dev` after a change to the `assistant` section.** The server learns the setup when `phoenix dev` starts.
214
+ - **`ASSISTANT_STRICT_THREADS=true`** in `.env` makes a development environment behave like a deployed one, to try out what users will get after a release. See [Phoenix CLI](?path=/docs/phoenix-phoenix-cli--docs).
215
+
216
+ <details>
217
+ <summary>What the agent sees</summary>
218
+
219
+ The same as after a summary for size: a new conversation that opens with the summary of the earlier one, now with the new schema and instructions.
220
+
221
+ </details>
@@ -0,0 +1,137 @@
1
+ # The AI Assistant
2
+
3
+ The assistant is a chat panel inside the configurator. Behind it is an AI model that reads the open configuration and operates the configurator for the user. The user says what they want, and the design takes shape in the scene next to the chat.
4
+
5
+ It plays two roles, depending on who the configurator is for:
6
+
7
+ - **In a configurator for customers, it guides.** The user knows what they want, but not how the product is put together. They describe the result, attach a photo or a sketch, mark up what they see and answer the assistant's questions. A few minutes later they have a complete and valid configuration.
8
+ - **In an internal configurator, it does the bulk of the work.** The user is a sales engineer or a designer who knows the product well. They hand the assistant a specification or a brief, and it builds a configuration that is 80% of the way there, or further, in seconds. The user then finishes the rest with the controls they already know. This is often the more valuable role.
9
+
10
+ You decide what the assistant can see and do in the `assistant` section of the application spec. It knows nothing about the product until you list it there and describe it.
11
+
12
+ - [What a session looks like](#what-a-session-looks-like)
13
+ - [What the assistant can do](#what-the-assistant-can-do)
14
+ - [How the pieces connect](#how-the-pieces-connect)
15
+ - [The smallest working section](#the-smallest-working-section)
16
+ - [The chapters](#the-chapters)
17
+ - [A complete example](#a-complete-example)
18
+
19
+ ## What a session looks like
20
+
21
+ How a session runs depends on the product and on the user. These four are examples, not a list of what is possible:
22
+
23
+ - **From a specification.** An engineer pastes the requirements for a technical building into an internal configurator. The assistant proposes the equipment, sizes the building around it and builds the whole layout. Then it reads the configurator's warnings, fixes what it can and explains the rest. The engineer starts from a nearly finished layout, not from an empty one.
24
+ - **From a sketch.** A customer planning wall shelving uploads a pencil sketch of a staggered arrangement. The assistant reads the outline, builds it module by module and alternates two finishes. Then it says what it assumed and invites corrections.
25
+ - **From a photo.** A customer planning a pergola attaches a photo of their terrace and gives one measurement. The assistant proposes a layout and builds it. The customer draws on the top view to cross out a section, and the assistant removes it.
26
+ - **Along the configurator's own steps.** A customer designing a railing settles the footprint first. The assistant then moves the configurator to the next step and carries on with the product choices, one question at a time.
27
+
28
+ In every one of them the user can also ask: what something costs, why a warning appeared, what the options are.
29
+
30
+ ## What the assistant can do
31
+
32
+ Each session above is built from the same few abilities:
33
+
34
+ - **Read the configuration.** It reads before it does anything else: before a change, to check which choices exist, to explain a warning, to answer a question. See [Reading the Configuration](?path=/docs/phoenix-assistant-reading-the-configuration--docs).
35
+ - **Change the configuration.** It sets values, adds parts, replaces them and removes them, with the same choices the user has in the controls. See [Changing the Configuration](?path=/docs/phoenix-assistant-changing-the-configuration--docs).
36
+ - **Run your own operations.** Where a change needs logic of its own, such as moving a part to a position, the assistant runs an action you wrote. See [Actions](?path=/docs/phoenix-assistant-actions--docs).
37
+ - **Show the user around.** It switches the configurator to the step or tab it is talking about, and selects the part in question.
38
+ - **Look at the scene.** It renders a view of the design to check its own work. See [Screenshots](?path=/docs/phoenix-assistant-screenshots--docs).
39
+ - **Work with pictures.** It takes photos and reference images, reads the user's markup on the current view, and draws simple schematics to plan a change.
40
+ - **Listen and speak.** The user can record a message, and the assistant can read its reply aloud.
41
+
42
+ Every change the assistant makes shows in the scene at once. The chat lists it, and the user can undo it.
43
+
44
+ ## How the pieces connect
45
+
46
+ ```mermaid
47
+ flowchart LR
48
+ A["assistant section
49
+ of the application spec"] -->|build| B["GraphQL schema
50
+ and a guide to it"]
51
+ B --> C["Phoenix server"]
52
+ C <-->|conversation| M["AI model
53
+ at the AI provider"]
54
+ C -->|GraphQL operations| D["Configurator
55
+ in the user's browser"]
56
+ D -->|results| C
57
+ C -->|reply| E["Assistant panel"]
58
+ ```
59
+
60
+ 1. **You write the `assistant` section.** It lists the parts of the product the assistant may read and change, each with a description.
61
+ 2. **The build turns it into a GraphQL schema.** The schema has a type for each entity type you listed and a mutation for each kind of change you allowed. The build also writes a guide that tells the model how to use the schema.
62
+ 3. **The Phoenix server holds the conversation with an AI model.** The model runs at an AI provider, not on the server. These pages call the model _the agent_. The agent never sees your spec or your code. The server sends it the schema, the guide and the user's messages.
63
+ 4. **The agent works by asking for GraphQL operations.** The server passes them to the user's browser. The configurator runs them on the open configuration and returns the results. A read changes nothing. A change is kept as one undo step.
64
+ 5. **The panel shows the reply.**
65
+
66
+ Step 4 is why the assistant can be trusted with changes. Its operations run inside the configurator, so a change goes through everything a click goes through. What the configurator would adjust after a click, it adjusts here. What it would refuse, it refuses here, and the agent gets the reason the user would be shown.
67
+
68
+ ## The smallest working section
69
+
70
+ Start with one thing the assistant can read and one thing it can change. This section lets a user ask what color the product is and have it changed:
71
+
72
+ #### Configure
73
+
74
+ ```yaml
75
+ assistant:
76
+ ai:
77
+ provider: openai
78
+ model: balanced
79
+ reasoning: medium
80
+ entities:
81
+ KitchenRange:
82
+ color:
83
+ description: Enamel color of the range
84
+ writable:
85
+ KitchenRange:
86
+ color:
87
+ ```
88
+
89
+ - **`ai`** says which AI model the server talks to. It is required. `provider` is `openai`. `model` is a tier, not a model name: `frontier`, `advanced`, `balanced` or `fast`. `reasoning` is how much the model thinks before it answers: `low`, `medium` or `high`. A higher tier and more reasoning give better answers, slower and at a higher cost.
90
+ - **`entities`** lists what the agent may read: an entity type, then its fields. The `description` is how the agent learns what a field means, so write it in the product's words.
91
+ - **`writable`** lists what the agent may change. The empty `color:` entry is enough here, because a color control already writes this field. The agent gets the colors of that control as its choices.
92
+
93
+ A spec with an `assistant` section gets an assistant button in the default toolbar, and the built-in layout opens the panel in its sidebar. For a layout of your own, see [Configurator Interface](?path=/docs/phoenix-configurator-interface--docs).
94
+
95
+ Two things to know before you add more:
96
+
97
+ - **The server learns about the assistant when `phoenix dev` starts.** If you add the section while `phoenix dev` is running, restart it.
98
+ - **Everything in the section except `ai` is public.** It is part of the configurator the browser downloads, so write nothing confidential there. `ai` goes to the server only.
99
+
100
+ <details>
101
+ <summary>What the agent sees</summary>
102
+
103
+ The two entries become one readable field and one mutation:
104
+
105
+ ```graphql
106
+ type KitchenRange {
107
+ "Enamel color of the range" # your description
108
+ color: String!
109
+ }
110
+
111
+ type Mutation {
112
+ modifyKitchenRange(id: ID!, delta: KitchenRangeDelta!): KitchenRange
113
+ }
114
+ ```
115
+
116
+ `KitchenRangeDelta` holds the writable fields, here only `color`. Nothing else of the model is in the schema: the agent cannot read or change a field you did not list.
117
+
118
+ </details>
119
+
120
+ ## The chapters
121
+
122
+ Each chapter is split into topics. A topic says why and when you need it, shows how to configure it, and ends with a collapsed look at what the agent sees for that configuration.
123
+
124
+ | Chapter | Read it when the assistant should… |
125
+ | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------- |
126
+ | [Reading the Configuration](?path=/docs/phoenix-assistant-reading-the-configuration--docs) | know more of the product: its parts, their values, their warnings |
127
+ | [Changing the Configuration](?path=/docs/phoenix-assistant-changing-the-configuration--docs) | set values, and add, replace or remove parts |
128
+ | [Actions](?path=/docs/phoenix-assistant-actions--docs) | make a change that needs logic of its own |
129
+ | [Screenshots](?path=/docs/phoenix-assistant-screenshots--docs) | look at the design to check its own work |
130
+ | [Instructions and AI Settings](?path=/docs/phoenix-assistant-instructions-and-ai-settings--docs) | behave differently, run on another model, or handle longer jobs |
131
+ | [The Panel](?path=/docs/phoenix-assistant-the-panel--docs) | greet, ask with forms, take pictures and voice, or look like the brand |
132
+ | [Per-session Setup](?path=/docs/phoenix-assistant-per-session-setup--docs) | differ by user: fewer abilities, another model, or no assistant |
133
+ | [Security and Limits](?path=/docs/phoenix-assistant-security-and-limits--docs) | be safe to put in front of visitors, and stay within a budget |
134
+
135
+ ## A complete example
136
+
137
+ Most snippets in these pages come from the kitchen range demo, `packages/demos/demo-kitchen-range`. Its `spec/application.yaml` holds a full `assistant` section.
@@ -0,0 +1,166 @@
1
+ # Per-session Setup
2
+
3
+ The `assistant` section describes one assistant for everybody. Often that is not what the product needs. A role that must not see prices needs an assistant that cannot read them. A signed-in dealer may deserve a stronger model than an anonymous visitor. One group of users should have no assistant at all.
4
+
5
+ A setup handler covers these cases. It is a function of the project that gets the assistant's setup and the facts of the session, and returns the setup this session should have.
6
+
7
+ - [The setup handler](#the-setup-handler)
8
+ - [Taking abilities away](#taking-abilities-away)
9
+ - [Settings for the session](#settings-for-the-session)
10
+ - [Switching the assistant off](#switching-the-assistant-off)
11
+
12
+ ## The setup handler
13
+
14
+ The handler runs once for a session, when a configuration is opened. It decides from three facts:
15
+
16
+ - **`role`**: the role of the user, such as `anonymous`.
17
+ - **`access`**: what the user may do with this configuration. `o` is the owner, who can change it. `r` and `rr` are readers.
18
+ - **`sessionData`**: whatever the project's sign-in attached to the session, such as the tags of an account. See [Sessions and Access](?path=/docs/phoenix-sessions-and-access--docs).
19
+
20
+ #### Configure
21
+
22
+ ```ts
23
+ // src/handlers/assistant-setup.ts
24
+ export default phx.domain.createAssistantSetupHandler((manifest, { role, access, sessionData }) => {
25
+ return manifest
26
+ })
27
+ ```
28
+
29
+ - **`createAssistantSetupHandler`** registers the handler. A project has one, in a file in `src/handlers/`.
30
+ - **`manifest`** is a reduced view of the `assistant` section, not a copy of your YAML.
31
+ - **Its sections** are the ones a handler can narrow: `entities`, `writable`, `deletable`, `childRecipes`, `replaceRecipes`, `actions`, `screenshots`, `navigation` and `formElements`, each present even when empty and keyed by the names you used in the spec. `features` holds one flag for each part of the panel, `true` or `false`.
32
+ - **An entry** holds only what a handler may change, which is mostly its `description`.
33
+ - **`as`, `hints` and `lenses`** are not in it. Lenses follow on their own: a removed entry leaves its lenses.
34
+ - **The return value** is the setup for this session. Returning `manifest` unchanged is the same as having no handler. Every section has to be in the answer, so spread `manifest` and change only what you need.
35
+
36
+ Four rules apply to the function:
37
+
38
+ - **It can only take away.** The spec is the most any session gets. A handler that returns an entry the spec does not have fails the setup.
39
+ - **It runs in two places.** The server runs it to build what the agent is given, and the browser runs it to know what the session's operations may do. Both must reach the same answer.
40
+ - **So it must be pure.** No fetching, no clock, no random values. It decides from its arguments alone, and returns at once.
41
+ - **And it is public.** The handler is part of the configurator the browser downloads. Anyone can read which role gets which setup, and every text the handler returns. Put no key, no price rule and nothing else private into it.
42
+
43
+ <details>
44
+ <summary>What the agent sees</summary>
45
+
46
+ The agent gets the schema and the guide built from what the handler returned. It never learns that there was more. Nothing tells it that a field was removed for this session, so it does not offer what it cannot do.
47
+
48
+ </details>
49
+
50
+ ## Taking abilities away
51
+
52
+ Use the handler to hide part of the product from some users, or to take a kind of change away from them. A role that must not see prices gets a setup without the price. An anonymous visitor may get an assistant that cannot remove parts.
53
+
54
+ A read-only configuration needs no handler. While the user only views a configuration, every real change the agent asks for is refused, and the agent is told why. Looking ahead still works, because a what-if keeps nothing. So a viewer can ask "what would it cost in red?" and get an answer. Take the changes away from a viewer and this is lost too, so leave them in unless the assistant should not answer such questions.
55
+
56
+ #### Configure
57
+
58
+ ```ts
59
+ // src/handlers/assistant-setup.ts
60
+ export default phx.domain.createAssistantSetupHandler((manifest, { role }) => {
61
+ if (role !== 'anonymous') {
62
+ return manifest
63
+ }
64
+
65
+ const { $price, ...rangeFields } = manifest.entities.KitchenRange ?? {}
66
+
67
+ return {
68
+ ...manifest,
69
+ entities: { ...manifest.entities, KitchenRange: rangeFields },
70
+ deletable: {},
71
+ }
72
+ })
73
+ ```
74
+
75
+ - **Leaving out one entry** takes away only that entry. Here an anonymous visitor's assistant cannot read `$price` of the range.
76
+ - **An empty section** takes away that whole kind of change. Here it cannot remove anything.
77
+
78
+ A form element of the project is taken away the same way: leave it out of `formElements`, and the agent is not told about it in this session. Take an element away together with the ability it serves, such as a color palette with the writable color.
79
+
80
+ A part of the panel is taken away with `features`: return `features: { annotations: false }`, for example, and the session has no Annotate. A flag the handler leaves out keeps the value from the spec, and a part the spec turns off cannot be turned on. See [The Panel](?path=/docs/phoenix-assistant-the-panel--docs#leaving-parts-of-the-panel-out) for what each flag does.
81
+
82
+ A handler can also change the `description` of an entry it keeps, and make a kept entry stricter: `validate: true` on the options of a writable field, and `allowDryRuns: false` on options or on a recipe group. It can replace the `instructions` for the session with a text of its own.
83
+
84
+ <details>
85
+ <summary>What the agent sees</summary>
86
+
87
+ For an anonymous visitor, the type of the range has no `_price` field, and the schema has no `deleteEntity` mutation. Everything else is as the spec declares it.
88
+
89
+ </details>
90
+
91
+ ## Settings for the session
92
+
93
+ The handler can also choose the AI settings per session. Typical uses: a stronger model for signed-in users, a higher hourly limit for internal users, no voice for anonymous visitors.
94
+
95
+ #### Configure
96
+
97
+ ```ts
98
+ // src/handlers/assistant-setup.ts
99
+ export default phx.domain.createAssistantSetupHandler((manifest, { role }) => {
100
+ if (!manifest.ai) {
101
+ return manifest
102
+ }
103
+
104
+ return {
105
+ ...manifest,
106
+ ai: {
107
+ ...manifest.ai,
108
+ model: role === 'anonymous' ? 'balanced' : 'advanced',
109
+ },
110
+ }
111
+ })
112
+ ```
113
+
114
+ - **`ai`** takes the same keys as in the spec: `provider`, `model`, `reasoning`, `maxThreadSize`, `maxToolCallsPerMessage`, `hourlyLimits`, `retentionDays` and `voice`. A key the handler leaves out keeps the value from the spec.
115
+ - **`voice`** can only be turned off. To offer voice to some sessions, declare `ai.voice: true` in the spec and return `voice: false` for the others. A handler that returns `voice: true` while the spec has voice off fails the setup, and the assistant is then unavailable for the session.
116
+ - **Only the server's run decides the settings.** In the browser the manifest has no `ai`, and an `ai` the handler returns there is ignored. A visitor who changes the handler in their browser gets no better model.
117
+ - **`if (!manifest.ai)`** is there for the types. Without it, the spread would build an `ai` without its required keys in the browser. It hides nothing: the rule that picks the model is in the download like the rest of the handler.
118
+ - **`hourlyLimits`** can be set per level, also where the spec sets none. The server still caps every limit at its maximum.
119
+
120
+ See [Instructions and AI Settings](?path=/docs/phoenix-assistant-instructions-and-ai-settings--docs) for what each setting does.
121
+
122
+ <details>
123
+ <summary>What the agent sees</summary>
124
+
125
+ Nothing. The settings choose the agent and are not shown to it.
126
+
127
+ </details>
128
+
129
+ ## Switching the assistant off
130
+
131
+ Two things can be switched off for a session:
132
+
133
+ - **The whole assistant.** The assistant then does not answer in this session, and the panel tells the user that it is not available. Use it for a role or a market that should not have the assistant yet. The assistant button follows the spec, not the session, so it stays in the toolbar. Hide it for those users with a `$filter` on the toolbar.
134
+ - **WebMCP only.** By default a configurator with an assistant also offers its tools to an AI agent in the visitor's own browser, through WebMCP. Such an agent reads and changes the configuration with the same schema as the panel's assistant, and brings its own model. A session can keep the panel and stop offering these tools.
135
+
136
+ #### Configure
137
+
138
+ ```ts
139
+ // src/handlers/assistant-setup.ts
140
+ export default phx.domain.createAssistantSetupHandler((manifest, { role }) => {
141
+ if (role === 'anonymous') {
142
+ return null
143
+ }
144
+
145
+ return { ...manifest, webmcp: false }
146
+ })
147
+ ```
148
+
149
+ - **Returning `null`** switches the assistant off for the session, and WebMCP with it.
150
+ - **`webmcp: false`** switches off WebMCP and keeps the panel. A handler can only turn it off. It cannot turn on what the spec turned off.
151
+
152
+ To turn WebMCP off for everybody, set it in the spec, with no handler:
153
+
154
+ ```yaml
155
+ assistant:
156
+ webmcp: false
157
+ ```
158
+
159
+ See [Configurator Interface](?path=/docs/phoenix-configurator-interface--docs) for the tools WebMCP offers and the browsers that support it.
160
+
161
+ <details>
162
+ <summary>What the agent sees</summary>
163
+
164
+ With the assistant off, there is no agent. With WebMCP off, the panel's agent sees no difference: WebMCP is a second way into the same schema, for a different agent.
165
+
166
+ </details>