@salsita-ai/sdk 0.50.0-develop.aec0f535bf → 0.50.0-develop.af031dec0f

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 (520) hide show
  1. package/README.md +10 -3
  2. package/dist/application-spec/errors/diagnostic-codes.d.ts +6 -0
  3. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  4. package/dist/application-spec/errors/diagnostic-messages.d.ts +7 -1
  5. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  6. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  7. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  8. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
  9. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
  10. package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
  11. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
  12. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
  13. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
  14. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
  15. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +1 -4
  16. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +2 -2
  17. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
  18. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +26 -29
  19. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
  20. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  21. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +11 -12
  22. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  23. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +3 -2
  24. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +13 -11
  25. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  26. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  27. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  28. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
  29. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +16 -0
  30. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  31. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +47 -0
  32. package/dist/application-spec/generate-application/code/templates/skills/features/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
  33. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +15 -0
  34. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
  35. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
  36. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
  37. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
  38. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
  39. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
  40. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  42. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
  43. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +1 -1
  44. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -1
  45. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
  46. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  47. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  48. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  49. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  50. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +23 -0
  51. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
  52. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
  53. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
  54. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
  55. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
  56. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
  57. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
  58. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  59. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  60. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
  61. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  62. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
  63. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
  64. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  65. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  66. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
  67. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
  68. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
  70. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +7 -6
  71. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
  72. package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
  73. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +1 -0
  74. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  75. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  76. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  77. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +42 -5
  78. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  79. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +4 -3
  80. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  81. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  82. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  83. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  84. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +2 -2
  85. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  86. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
  87. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
  88. package/dist/application-spec/webhook-boundary.js +1 -1
  89. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  90. package/dist/client/cli-client/cli-api-client.js +1 -0
  91. package/dist/client/cli-client/index.d.ts +2 -0
  92. package/dist/client/cli-client/index.js +1 -0
  93. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  94. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  95. package/dist/client/index.d.ts +1 -0
  96. package/dist/client/index.js +1 -1
  97. package/dist/client/phoenix-api.d.ts +5290 -1754
  98. package/dist/configurator/ConfiguratorApp.js +1 -1
  99. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
  100. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  101. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  102. package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
  103. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  104. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
  105. package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
  106. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
  107. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
  108. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +44 -0
  109. package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
  110. package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
  111. package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
  112. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
  113. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
  114. package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
  115. package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
  116. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +7 -4
  117. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +91 -33
  118. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  119. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +12 -17
  120. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -1
  121. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +43 -37
  122. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  123. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +2 -0
  124. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
  125. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +29 -0
  126. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +2 -0
  127. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
  128. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
  129. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  130. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  131. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +14 -4
  132. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  133. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
  134. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  135. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +38 -9
  136. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  137. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
  138. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
  139. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
  140. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
  141. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
  142. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
  143. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +5 -4
  144. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  145. package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
  146. package/dist/configurator/common/configurator-interface.d.ts +9 -7
  147. package/dist/configurator/common/configurator-interface.js +1 -1
  148. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  149. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  150. package/dist/configurator/ui/assistant/AssistantChips.d.ts +5 -5
  151. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  152. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +4 -3
  153. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  154. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +6 -4
  155. package/dist/configurator/ui/assistant/AssistantThread.d.ts +10 -2
  156. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  157. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
  158. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
  159. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +6 -5
  160. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  161. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
  162. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  163. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  164. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  165. package/dist/configurator/ui/assistant/annotation/index.d.ts +0 -1
  166. package/dist/configurator/ui/assistant/annotation/index.js +1 -1
  167. package/dist/configurator/ui/assistant/assistant-failure.d.ts +6 -4
  168. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  169. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
  170. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +1 -1
  171. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
  172. package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
  173. package/dist/configurator/ui/assistant/drawing/index.js +1 -1
  174. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -1
  175. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
  176. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
  177. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +1 -1
  178. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  179. package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
  180. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
  181. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  182. package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
  183. package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
  184. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
  185. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
  186. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
  187. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
  188. package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
  189. package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
  190. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +7 -4
  191. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
  192. package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
  193. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
  194. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
  195. package/dist/configurator/ui/assistant/form-elements/index.d.ts +2 -3
  196. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  197. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
  198. package/dist/configurator/ui/assistant/index.d.ts +2 -2
  199. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
  200. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
  201. package/dist/configurator/ui/assistant/reference-link/index.d.ts +2 -1
  202. package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
  203. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
  204. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
  205. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  206. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
  207. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  208. package/dist/configurator/ui/assistant/thread-items.d.ts +2 -2
  209. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  210. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +2 -1
  211. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  212. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
  213. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
  214. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
  215. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
  216. package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
  217. package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
  218. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  219. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  220. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  221. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  222. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  223. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  224. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  225. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  226. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  227. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  228. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  229. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  230. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  231. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  232. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  233. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  234. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  235. package/dist/configurator/ui/index.d.ts +1 -1
  236. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  237. package/dist/docs/index.json +22 -2
  238. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  239. package/dist/docs/layouts/presets/custom.mdx +1 -0
  240. package/dist/docs/layouts/preview/always.mdx +22 -0
  241. package/dist/docs/layouts/view-controls.mdx +2 -0
  242. package/dist/docs/other-features/domain-actions.mdx +10 -11
  243. package/dist/docs/other-features/violation-messages.mdx +3 -1
  244. package/dist/docs/phoenix/application-states.mdx +1 -1
  245. package/dist/docs/phoenix/configurator-interface.mdx +81 -35
  246. package/dist/docs/phoenix/data-sources.mdx +1 -1
  247. package/dist/docs/phoenix/getting-started.mdx +1 -1
  248. package/dist/docs/phoenix/layout-slots.mdx +1 -1
  249. package/dist/docs/phoenix/migrations.mdx +1 -1
  250. package/dist/docs/phoenix/phoenix-cli.mdx +89 -53
  251. package/dist/docs/phoenix/project-structure.mdx +7 -7
  252. package/dist/docs/phoenix/sdk-builder-workflow.mdx +56 -27
  253. package/dist/docs/phoenix/sessions-and-access.mdx +9 -6
  254. package/dist/docs/phoenix/theming.mdx +5 -9
  255. package/dist/docs/phoenix/webhooks.mdx +55 -3
  256. package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
  257. package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
  258. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  259. package/dist/docs/ux-guidelines/overview.mdx +11 -9
  260. package/dist/domain/application/application-config.d.ts +5 -0
  261. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  262. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  263. package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
  264. package/dist/domain/application/assistant/assistant-selection.js +1 -0
  265. package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
  266. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
  267. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  268. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +14 -2
  269. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  270. package/dist/domain/application/assistant/index.d.ts +5 -1
  271. package/dist/domain/application/assistant/index.js +1 -1
  272. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
  273. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
  274. package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
  275. package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
  276. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  277. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +17 -1
  278. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  279. package/dist/domain/application/assistant-field-options.d.ts +2 -0
  280. package/dist/domain/application/assistant-field-options.js +1 -1
  281. package/dist/domain/application/assistant-mutations.d.ts +17 -11
  282. package/dist/domain/application/assistant-mutations.js +1 -1
  283. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  284. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  285. package/dist/domain/application/configurator-builder.d.ts +8 -0
  286. package/dist/domain/application/configurator-builder.js +1 -1
  287. package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
  288. package/dist/domain/available-system-components/available-system-components.js +1 -1
  289. package/dist/domain/core/action/action.d.ts +0 -49
  290. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  291. package/dist/domain/core/component/system-component-filter.js +1 -1
  292. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  293. package/dist/domain/core/component/view-state-component.js +1 -1
  294. package/dist/domain/core/domain-factory.d.ts +2 -3
  295. package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
  296. package/dist/domain/core/invariant/control-violation-hints.js +1 -0
  297. package/dist/domain/core/invariant/index.d.ts +1 -0
  298. package/dist/domain/core/invariant/index.js +1 -1
  299. package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
  300. package/dist/domain/domain-builder/domain-builder.js +1 -1
  301. package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
  302. package/dist/domain/domain-context/index.d.ts +0 -1
  303. package/dist/domain/domain-context/index.js +1 -1
  304. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  305. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  306. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  307. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +1 -1
  308. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  309. package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
  310. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -6
  311. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  312. package/dist/domain/domain-runtime/domain-runtime.d.ts +13 -19
  313. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  314. package/dist/domain/domain-runtime/index.d.ts +0 -1
  315. package/dist/domain/domain-runtime/index.js +1 -1
  316. package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
  317. package/dist/domain/domain-runtime/spec/index.js +1 -1
  318. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  319. package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
  320. package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
  321. package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
  322. package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
  323. package/dist/domain/extensions/assistant/index.d.ts +1 -0
  324. package/dist/domain/extensions/assistant/index.js +1 -0
  325. package/dist/domain/extensions/index.d.ts +1 -1
  326. package/dist/domain/extensions/index.js +1 -1
  327. package/dist/domain/index.d.ts +1 -1
  328. package/dist/domain/index.js +1 -1
  329. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +6 -8
  330. package/dist/domain/spec/modules/index.d.ts +0 -1
  331. package/dist/domain/spec/modules/index.js +1 -1
  332. package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
  333. package/dist/domain/spec/phx/phx-domain.js +1 -1
  334. package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
  335. package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
  336. package/dist/domain/spec/runtime/create-application.d.ts +5 -2
  337. package/dist/domain/spec/runtime/create-application.js +1 -1
  338. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
  339. package/dist/domain/spec/sections/app-metadata.d.ts +1 -0
  340. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +28 -1
  341. package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
  342. package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
  343. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +30 -2
  344. package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
  345. package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
  346. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
  347. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
  348. package/dist/domain/spec/sections/assistant/index.d.ts +3 -1
  349. package/dist/domain/system-components/index.d.ts +1 -0
  350. package/dist/domain/system-components/index.js +1 -1
  351. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  352. package/dist/domain/system-components/navigation/index.js +1 -0
  353. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  354. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  355. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  356. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  357. package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
  358. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  359. package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
  360. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  361. package/dist/extras/cognito/index.d.ts +1 -0
  362. package/dist/extras/cognito/index.js +1 -0
  363. package/dist/i18n/locales/cs/messages.js +1 -1
  364. package/dist/i18n/locales/da/messages.js +1 -1
  365. package/dist/i18n/locales/de/messages.js +1 -1
  366. package/dist/i18n/locales/de-AT/messages.js +1 -1
  367. package/dist/i18n/locales/en/messages.js +1 -1
  368. package/dist/i18n/locales/en-AU/messages.js +1 -1
  369. package/dist/i18n/locales/en-GB/messages.js +1 -1
  370. package/dist/i18n/locales/es/messages.js +1 -1
  371. package/dist/i18n/locales/fr/messages.js +1 -1
  372. package/dist/i18n/locales/hu/messages.js +1 -1
  373. package/dist/i18n/locales/it/messages.js +1 -1
  374. package/dist/i18n/locales/nl/messages.js +1 -1
  375. package/dist/i18n/locales/pl/messages.js +1 -1
  376. package/dist/i18n/locales/pt/messages.js +1 -1
  377. package/dist/i18n/locales/ro/messages.js +1 -1
  378. package/dist/i18n/locales/sk/messages.js +1 -1
  379. package/dist/i18n/locales/tr/messages.js +1 -1
  380. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  381. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  382. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  383. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +24 -2
  384. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  385. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  386. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  387. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  388. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  389. package/dist/phoenix/application-spec/index.d.ts +1 -1
  390. package/dist/phoenix/application-spec/index.js +1 -1
  391. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
  392. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  393. package/dist/phoenix/cli.js +1 -1
  394. package/dist/phoenix/commands/account/index.d.ts +1 -0
  395. package/dist/phoenix/commands/account/index.js +1 -0
  396. package/dist/phoenix/commands/account/whoami.d.ts +10 -0
  397. package/dist/phoenix/commands/account/whoami.js +4 -0
  398. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  399. package/dist/phoenix/commands/deploy.d.ts +7 -2
  400. package/dist/phoenix/commands/deploy.js +8 -2
  401. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  402. package/dist/phoenix/commands/feedback.d.ts +2 -2
  403. package/dist/phoenix/commands/feedback.js +1 -1
  404. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  405. package/dist/phoenix/commands/index.d.ts +1 -0
  406. package/dist/phoenix/commands/index.js +1 -1
  407. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  408. package/dist/phoenix/commands/init.d.ts +2 -2
  409. package/dist/phoenix/commands/init.js +1 -1
  410. package/dist/phoenix/commands/login.d.ts +6 -3
  411. package/dist/phoenix/commands/login.js +3 -3
  412. package/dist/phoenix/commands/logout.js +1 -1
  413. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  414. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  415. package/dist/phoenix/services/cli-credentials.d.ts +26 -7
  416. package/dist/phoenix/services/cli-credentials.js +2 -2
  417. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  418. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  419. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  420. package/dist/phoenix/services/cli-server/index.js +1 -0
  421. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
  422. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  423. package/dist/phoenix/services/development-credential.js +1 -1
  424. package/dist/phoenix/services/index.d.ts +4 -2
  425. package/dist/phoenix/services/index.js +1 -1
  426. package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
  427. package/dist/phoenix/services/phoenix-regions.js +1 -1
  428. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  429. package/dist/phoenix/services/session/phoenix-application.js +1 -1
  430. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  431. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  432. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  433. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  434. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  435. package/dist/phoenix/services/spec-project/index.js +1 -0
  436. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  437. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  438. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  439. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  440. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  441. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  442. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
  443. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
  444. package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
  445. package/dist/phoenix/services/variant-file-session.js +1 -1
  446. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  447. package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
  448. package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
  449. package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
  450. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  451. package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
  452. package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
  453. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
  454. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
  455. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
  456. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
  457. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
  458. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
  459. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
  460. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
  461. package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
  462. package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
  463. package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
  464. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  465. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  466. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  467. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
  468. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
  469. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  470. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +14 -16
  471. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  472. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +5 -6
  473. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
  474. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  475. package/dist/react-sdk/domain-context/index.d.ts +1 -1
  476. package/dist/react-sdk/domain-context/index.js +1 -1
  477. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  478. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  479. package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
  480. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  481. package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
  482. package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
  483. package/dist/react-sdk/preset-selection/index.d.ts +2 -1
  484. package/dist/react-sdk/preset-selection/index.js +1 -1
  485. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
  486. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
  487. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  488. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  489. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  490. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  491. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  492. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  493. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  494. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  495. package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
  496. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  497. package/dist/webhook/builders/common.d.ts +3 -1
  498. package/dist/webhook/builders/webhook-builder.d.ts +5 -0
  499. package/dist/webhook/builders/webhook-builder.js +1 -1
  500. package/package.json +9 -4
  501. package/schema/domain-spec.json +440 -53
  502. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
  503. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
  504. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
  505. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
  506. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -68
  507. package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
  508. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -61
  509. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
  510. package/dist/domain/domain-context/action-system/action-system.d.ts +0 -64
  511. package/dist/domain/domain-context/action-system/action-system.js +0 -1
  512. package/dist/domain/domain-context/action-system/index.d.ts +0 -1
  513. package/dist/domain/domain-context/action-system/index.js +0 -1
  514. package/dist/domain/domain-runtime/action-factory.d.ts +0 -11
  515. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
  516. package/dist/domain/extensions/view-controls.d.ts +0 -25
  517. package/dist/domain/extensions/view-controls.js +0 -1
  518. package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
  519. /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
  520. /package/dist/{domain/domain-runtime → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
@@ -1,25 +1,39 @@
1
- import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`### Keep the scope small
1
+ import{createPhoenixProcessGuide as e}from"../../guide.js";let n=`### Understand and build the core journey
2
2
 
3
- Implement one representative product with a few options, for example three finishes and one size choice, working end to end in the chosen layout and branding. Prefer one working path to a screen of inactive controls. Keep everything else in the product definition as remaining scope, and keep unconfirmed prices visibly provisional. Use reversible defaults and keep going; record them in the product definition rather than asking now.
3
+ Build on the branded slice to support the representative buyer task, using the Phoenix journey guidance: read \`docs/ux-guidelines/designing-the-configuration-journey.mdx\` with \`pnpm phoenix docs -r <path>\` and its relevant topic pages. Establish enough understanding of the product's parts, relationships, editing scopes and constraints to design that task; exhaustive catalog discovery can wait. Read the [SDK guidance](../../core/sdk.md) and relevant feature guides for the Phoenix mechanisms the interaction needs before implementing it.
4
4
 
5
- ### Brand the first moments
5
+ Design the buyer journey as a separate task: the slice demonstrated the look and basic behavior, not an approved UX. Reconsider its provisional controls, selection and action placement against the representative task rather than simply adding options to its layout. For each main action, decide its scope, target and placement using the journey guidance. Evaluate positional construction actions in the scene, separately from scene selection; explain a panel-based choice when it serves the task better. Develop one recommended interaction design that includes the construction and editing behaviors that could change that recommendation. Use [Custom project layout](../../features/custom-layout/index.md) and relevant layout gallery examples, preserving canvas, safe-area, messages and read-mode behavior. Apply the supplied or chosen branding. Compare approaches only when [Visual choices](../../core/workflow.md#visual-choices) identifies a meaningful tradeoff.
6
6
 
7
- - **Preset screen** — the first screen users see and the easiest place to impress, so it deserves real design effort. Replace it with \`phx.frontend.createPresetUi()\` in the chosen branding, offering two or three meaningful starting configurations as large, well-lit renders, with the brand's typography, a deliberate composition and a little motion. \`pnpm phoenix screenshot\` captures only the state the preview shows, so open each preset in the preview with browser automation before capturing it; without automation, use a branded placeholder and say so at the handoff. Keep the preview-mode branch of the SDK example \`docs/layouts/presets/custom.mdx\`, read with \`pnpm phoenix docs -r <path>\`.
8
- - **App loader** — replace the loading overlay's content with \`phx.frontend.createAppLoader()\`: the logo, a short brand animation and progress from the loading phases.
7
+ ### Review before recommending
9
8
 
10
- [Project pages](../../features/custom-layout/pages.md) has the contracts of both, and [Presets](../../features/application-states/presets.md) how the starting configurations are defined.
9
+ Review the core journey against all three: the product definition and its rules, Phoenix UX guidelines, and the relevant Phoenix platform contracts. This review is required before presenting the recommendation; the initial slice's lightweight treatment does not extend to the core journey. A focused self-review is sufficient by default; use the [review strategy](../../core/workflow.md#review-strategy) for depth and any additional review.
10
+
11
+ Exercise the representative task and any known constraint case through the controls on desktop and phone. Assess action placement, selection, global versus per-part editing and scrolling. Trace the implemented interactions to their owning Phoenix feature guides and check their contracts, including navigation and message handling; working React controls alone do not establish platform alignment. Fix findings and explain intentional departures. In the client-facing result, distinguish interactions exercised in the browser from rules checked only in code and remaining gaps; keep claims specific to the paths and screen sizes actually tested. When comparing approaches, exercise the same task in each. Present the working recommendation with its tradeoffs and ask for feedback; client feedback refines the reviewed design.
12
+
13
+ Describe the resulting patterns in the [UX specification](../specification/ux-specification.md) and render its PDF. Record explicit choices and rationale in the project record; accepting an approach does not imply approval of every implementation detail.
14
+
15
+ ### Continue in useful increments
16
+
17
+ After feedback on the core journey, recommend the next useful task and follow [Building in increments](../../core/workflow.md#building-in-increments). Preserve the verified interactions and keep remaining scope in the product definition. Use reversible defaults and keep going; record them in the product definition rather than asking now. Add pricing, more options and the finishing features below when they serve the next agreed outcome, rather than expanding to the full range automatically.
11
18
 
12
- ### Add finalization
19
+ When pricing is the next agreed increment after core-journey feedback, replace the placeholder with the supplied rules and verify totals as options change. Use [Expressions](../../features/domain-model/expressions.md) for calculated prices and [State slices](../../features/state/slices.md) to display them from committed configuration state; a custom price-footer example concerns presentation, not the pricing rules. If pricing information is missing, keep the placeholder clearly labeled and record the gap.
13
20
 
14
- Add two \`finalizeAction\` components with their handlers, following [Finalization](../finalization.md):
21
+ Before presenting each increment, exercise the changed interactions and affected parts of the representative journey on desktop and phone, including any added starting, loading or finalization features. Check controls, scene and summary remain consistent, framing and materials still work, and ordinary option edits preserve the camera view. Fix failures and report the paths, screen sizes and remaining gaps as above.
15
22
 
16
- - **Primary** — download a branded summary PDF of the configuration with images rendered from the configurator, the chosen options and the price, marked provisional while it is.
17
- - **Secondary** — an email form that sends the same PDF and images to the address the configurator user enters.
23
+ ### Brand the first moments
24
+
25
+ Choose finishing features that help the journey; a single starting configuration may need no preset chooser.
26
+
27
+ - **Preset screen** — if the journey uses a preset screen, make its first impression count. Replace it with \`phx.frontend.createPresetUi()\` in the chosen branding, offering two or three meaningful starting configurations as large, well-lit renders, with the brand's typography, a deliberate composition and a little motion. \`pnpm phoenix screenshot\` captures only the state the preview shows, so open each preset in the preview with browser automation before capturing it; without automation, use a branded placeholder and say so at the handoff. Keep the preview-mode branch of the SDK example \`docs/layouts/presets/custom.mdx\`, read with \`pnpm phoenix docs -r <path>\`.
28
+ - **App loader** — replace the loading overlay's content with \`phx.frontend.createAppLoader()\`: the logo, a short brand animation and progress from the loading phases.
29
+
30
+ [Project pages](../../features/custom-layout/pages.md) has the contracts of both, and [Presets](../../features/application-states/presets.md) how the starting configurations are defined.
18
31
 
19
- Test the PDF in the running preview. Send a test email only to an address the client gives, after their yes; until then, report the email action as untested.
32
+ ### Finalization when useful
20
33
 
21
- ### Check before presenting
34
+ Once the configuration is stable, add finalization when it serves the intended outcome, following [Finalization](../finalization.md). A branded summary PDF can support a quote or handover; an email form can send it when that is useful. Neither is a default requirement for every draft. Otherwise record finalization as deferred or unnecessary for this outcome.
22
35
 
23
- Exercise the representative path once in the preview: the preset screen, the loader, every option and both finalization actions, at desktop and phone width. Look at the framing beside the panel, at whether the camera holds still while options change and at whether the materials read as what they are. Fix what is broken. This is the quick look of the first draft, not a review process.`,n=`- The preset screen, loader, options and both finalization actions work in the running preview, in the chosen branding and layout.
24
- - The summary PDF downloads with configuration images; the email action is tested or explicitly waiting for an address.
25
- - Remaining scope and provisional items are recorded in the product definition and the project record.`;export const generatePhoenixFirstDraftBuild=()=>e({path:"processes/first-draft/build.md",title:"Build",summary:"A limited end-to-end configurator in the chosen branding and UX, with a branded preset screen, app loader, summary PDF and email; read once the layout is chosen.",whenToUse:"After [Direction](direction.md), once the client chose the branding and the layout. It ends with a working draft ready to present.",steps:t,doneWhen:n,example:"For the lounge chair: three upholstery colors and two leg finishes in the bottom-sheet layout, a preset screen with large renders of a classic, a bold and a quiet starting chair, a loader that draws the logo, a branded PDF with a front and a side render, and an email form. The client's own address receives the test email after they agree."});
36
+ When included, test the PDF with configuration images, chosen options and any price visibly marked provisional while it is. Send a test email only to an address the client gives, after their yes; until then, report the email action as untested.`,t=`- The core journey has been reviewed against product rules, Phoenix UX guidelines and platform contracts, and findings addressed.
37
+ - The representative journey and any known constraint behavior work in the running preview on desktop and phone, in the chosen branding and layout.
38
+ - Included finishing features work; any email test awaits explicit authorization or has passed with it. Deferred or unnecessary finalization is recorded.
39
+ - Remaining scope and provisional items are recorded in the product definition and the project record.`;export const generatePhoenixFirstDraftBuild=()=>e({path:"processes/first-draft/build.md",title:"Build",summary:"Develop and review the core journey, then continue in useful increments; read after presenting the branded working slice.",whenToUse:"After [Direction](direction.md) presents the branded working slice. Develop and review the core journey, then iterate toward a useful draft ready for handoff.",steps:n,doneWhen:t,example:"For the modular cabinet, develop a task that adds a taller column, stacks a box, changes one door and removes a column, including an archive restriction. Review product rules, editing scope and Phoenix implementation before recommending the design. Verify that adding and removing boxes keeps the editing context clear, changing one door leaves other doors unchanged, and archive restrictions explain how to continue. After client feedback, add pricing as a next increment and verify totals as the arrangement changes. If the journey uses a preset screen, add meaningful starting configurations. Add a branded loader. If buyers need a quote summary, add and test its PDF after those interactions work; leave email for a later increment unless it serves the agreed outcome."});
@@ -1,35 +1,38 @@
1
1
  import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`### Intake
2
2
 
3
- Use what the client already supplied. When it is enough to start, there is nothing to ask: summarize the product as you understood it in two or three sentences and continue. When nothing was supplied, one compact message asking for whatever exists usually works, all optional: what the product is, who will use the configurator, the brand's website, logo or colors, and any 3D models, photos or drawings. Continue with whatever arrives; a second round of questions rarely helps.
3
+ Use supplied descriptions, assets and references first; ask for whatever exists when nothing was supplied. Take branding from the client's website when available. Summarize the product briefly, then capture the [product definition](../specification/product-definition.md), including known product facts and provisional assumptions; render its PDF at handoff. Ask with a recommendation when a missing answer materially affects the interaction being built now and has no reasonable reversible default. Otherwise use a provisional default, record it and continue. Exhaustive catalogs, pricing and rules unrelated to the journey can wait.
4
4
 
5
- When a website is given, take the colors, typography, logo and tone from it instead of asking the client to describe their brand. Write what is known into a first [product definition](../specification/product-definition.md) and mark what is provisional; its PDF is rendered once, at the handoff. Prices, rules and the full product range wait for normal mode.
5
+ ### Three branding directions
6
6
 
7
- ### Branding options
7
+ Prepare three distinct standalone HTML brand sheets in one comparison using [Variants](../../features/variants.md). Vary composition, typography, color emphasis and scene mood, using product imagery and representative interface styling. These sheets establish visual identity, not the configurator workflow; a working configurator is not needed yet. Ground them in the supplied product and brand references; an existing brand keeps its identity across all three. Use [Branding](../specification/branding.md) for the brand details. This is the first planned feedback point: present the sheets using [Visual choices](../../core/workflow.md#visual-choices), explain their differences, recommend one and ask the client to choose.
8
8
 
9
- Prepare three branding options as standalone HTML pages in one [Variants](../../features/variants.md) set, each a one-page brand sheet with the content [Branding](../specification/branding.md) lists. Make them three different concepts rather than variations of one sheet: different composition, type pairing, color emphasis and mood, each designed on its own and finished as a brand designer would present it, so the client sees real alternatives and new ideas. With an existing brand, every option stays recognizably the client's, keeping its logo and core colors while the concept around them changes. Without one, make three directions that suit the product and its users. Run the set with \`--keep\`, so the chosen page remains to build from.
9
+ Run the comparison with \`--keep\`. After the client chooses, save the chosen HTML sheet as the branding source, render its PDF and remove the completed variants folder. Then build the working slice in that direction. An already explicitly chosen direction stays settled. Interaction alternatives later remain optional under [Visual choices](../../core/workflow.md#visual-choices).
10
10
 
11
- Save the chosen page as the branding source, render its PDF, apply the brand to the Phoenix theme and remove the variants folder.
11
+ ### Working slice
12
12
 
13
- ### Sample scene
13
+ Create an impressive first result quickly: the client’s recognizable product, presented in their branding, with a simple interaction that works. Keep functional scope narrow so you can focus on visual quality and responsiveness. Use reversible defaults rather than delaying this moment for design decisions; the broader buyer journey comes afterward.
14
14
 
15
- Show the representative product with a minimal domain: its entity and one or two real options, enough for the layout options to show working controls.
15
+ Build one basic product interaction with the [SDK guidance](../../core/sdk.md), such as changing a finish on a representative starting configuration. Include selection only when that interaction needs it, and enforce the known constraints that affect it. For a basic editable option, use the YAML binding and control-hook example in [Custom controls](../../features/domain-controls/custom-controls.md#example); compose it in the [layout skeleton](../../features/custom-layout/scene-and-safe-area.md). Read other feature guides only for behavior this path needs. Keep scene and controls consistent. Use a clearly labeled placeholder price; implement pricing during Build.
16
16
 
17
- - **Supplied model** — convert only the representative model now, following [Asset conversion](../asset-conversion.md); the rest waits for normal mode.
17
+ Use a minimal scene and usable provisional controls. Full catalog coverage and finalization wait; apply branding before the first presentation. Exercise this narrow path through its controls and fix failures before expanding it. Keep the preview running while you work; present the verified slice with branding applied, without asking the client to accept its provisional UX.
18
+
19
+ - **Supplied model** — inspect the representative model with [Asset inspection](../../features/inspection.md). Load a usable GLB with the model-loading and positioning examples in \`docs/3d-scene/rendering/basic.mdx\`; for editable finishes, use \`docs/3d-scene/materials/override.mdx\`. Read these with \`pnpm phoenix docs -r <path>\`. Follow [Asset conversion](../asset-conversion.md) when conversion or repair is needed; process only the models this slice uses.
18
20
  - **No model** — build a stand-in with three.js primitives exported to glTF, or with Blender when it is installed. Match the proportions of any photo or drawing, give each configurable part its own material, rest it on the floor and tell the client it is a stand-in.
19
21
 
20
22
  ### Scene and camera
21
23
 
22
- The scene sells the product, and a little care here shows in every later screenshot. Set it in the chosen brand and look at the result in the preview before moving on:
24
+ The scene sells the product, and a little care here shows in every later screenshot. Style it in the chosen branding direction and look at the result in the preview before moving on:
23
25
 
24
26
  - **Setting** — a simple environment: a floor or plinth the product rests on and a soft backdrop or room in the brand's scene colors, rather than an empty void or a busy interior.
25
27
  - **Light** — an environment map gives materials their reflections; when it washes the product out, lower its intensity or the exposure rather than removing it. Add a key light with soft shadows, so the product sits on the floor. A custom environment component replaces the default lighting entirely.
26
28
  - **Materials** — each surface should read as what it is made of, such as stone, wood, lacquer or fabric. Flat plastic usually means missing reflections or a texture at the wrong scale.
27
29
  - **Camera** — fit the product when the configuration loads or a preset opens, not on every change: a camera that refits on mesh changes jumps on every option, slider step and drag, and throws away the view the configurator user chose. Set distance and angle limits and a comfortable default distance; a separate phone camera helps when one framing does not suit both.
28
30
 
29
- Read with \`pnpm phoenix docs -r <path>\`: \`docs/3d-scene/cameras/fit-root.mdx\`, \`docs/3d-scene/cameras/locks.mdx\`, the pages in \`docs/3d-scene/rendering/lights/\` and \`docs/3d-scene/rendering/soft-shadows.mdx\`; the gallery layouts below show complete scenes.
30
-
31
- ### Layout options
31
+ Read with \`pnpm phoenix docs -r <path>\`: \`docs/3d-scene/cameras/fit-root.mdx\`, \`docs/3d-scene/cameras/locks.mdx\`, the pages in \`docs/3d-scene/rendering/lights/\` and \`docs/3d-scene/rendering/soft-shadows.mdx\`; the layout gallery in \`docs/layouts/gallery/\` shows complete scenes.
32
32
 
33
- Prepare three distinct custom layouts as variant scripts over the live scene, each writing a complete \`ConfiguratorLayout\` as [Custom project layout](../../features/custom-layout/index.md) describes. Make them differ in structure, not only in color: for example a side panel, a bottom sheet with in-scene controls and a guided stepper. Start from the layout gallery in the SDK documentation rather than from scratch: \`pnpm phoenix docs -l\` lists its \`docs/layouts/gallery/\` pages and \`pnpm phoenix docs -r <path>\` reads one. Keep the canvas, safe-area, message and read-mode wiring of its examples, and frame the product in the free area as [Scene and safe area](../../features/custom-layout/scene-and-safe-area.md) describes; check the framing at desktop width with the panel open and on a phone. Every option uses the chosen branding and the same working controls, and each is finished like a real product rather than a wireframe.
33
+ ### Present the working slice
34
34
 
35
- Run the set; the chosen script's edits stay in the project. Write the [UX guidelines](../specification/ux-guidelines.md) from the chosen layout and render their PDF.`;export const generatePhoenixFirstDraftDirection=()=>e({path:"processes/first-draft/direction.md",title:"Direction",summary:"Intake, three branding options, a sample scene and three layout options, ending with the chosen branding and UX guidelines; read at the start of a first draft.",whenToUse:"At the start of a first draft, once the preview is running and open for the client, as [Local development](../../core/cli.md#keep-the-preview-in-front-of-the-client) describes. It ends when the client has chosen a branding and a layout and the UX guidelines record the choice.",steps:t,doneWhen:"- The client chose a branding option and a layout option, and both are applied in the running preview.\n- The branding and UX guideline sources are in `.phoenix/workspace/specification/`, with their PDFs in `docs/`.\n- The sample scene shows the representative product, or a labeled stand-in, responding to at least one real option.\n- A first product definition records what is known and what is provisional.",example:"A client sends the website of their furniture brand and a photo of a lounge chair, without a model. Summarize the chair, offer three brand sheets that keep their logo and green but differ in concept, an editorial, a playful and a crafted one, build a stand-in chair from primitives with separate seat and frame materials, and offer a side-panel, a bottom-sheet and a stepper layout over it. The client picks the editorial sheet and the bottom sheet; the UX guidelines then describe the bottom-sheet patterns."});
35
+ Show the working slice in the chosen branding. Tell the client this is an initial visual preview: it establishes the look and demonstrates a small working interaction; the broader interaction design and product logic will be built next. Name what already works without implying the full configurator is implemented. Its controls are provisional; this presentation is progress, not an interaction-design approval gate. Next, develop the core journey in [Build](build.md), unless the client redirects.`,n=`- The branded slice works through its actual controls, with feedback for constraints affecting that interaction and a labeled placeholder price.
36
+ - The client chose from three HTML brand sheets, or had already explicitly chosen one; it is applied to the slice and its source and PDF are saved.
37
+ - The product definition records known facts, sources, assumptions and remaining scope.
38
+ - The client can see the working slice and understands that the core journey comes next.`;export const generatePhoenixFirstDraftDirection=()=>e({path:"processes/first-draft/direction.md",title:"Direction",summary:"Three HTML branding proposals, followed by a narrow branded working interaction; read at the start of a first draft.",whenToUse:"Use this guide at the start of a first draft, after opening the preview for the client as described in [Local development](../../core/cli.md#keep-the-preview-in-front-of-the-client).",steps:t,doneWhen:n,example:"For a modular cabinet, first present three HTML brand sheets, recommend one and wait for the choice. Save the chosen source and PDF. Then show one cabinet with a working finish choice. Verify the path with provisional controls and placeholder pricing. Present this branded slice as a visual preview, then design the construction journey in Build."});
@@ -1,3 +1,3 @@
1
- import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixFirstDraftBuild as o}from"./build.js";import{generatePhoenixFirstDraftDirection as t}from"./direction.js";import{generatePhoenixFirstDraftHandoff as a}from"./handoff.js";export const generatePhoenixFirstDraftGuides=()=>{let r=[t(),o(),a()];return[e({path:"processes/first-draft/index.md",title:"First draft",summary:"A fast, convincing first version of a new project: chosen branding and UX, a sample product, real finalization and an offer to deploy; read for a new project, not for an existing one.",intro:`The first thing a new client sees. Across the client choices and feedback pauses, aim for a branded, working configurator with a chosen look and UX, a sample of the product and real finalization, ready to deploy as a first live version and as good looking as the time allows. It is meant for a new project; an existing project continues in normal mode.
1
+ import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixFirstDraftBuild as t}from"./build.js";import{generatePhoenixFirstDraftDirection as n}from"./direction.js";import{generatePhoenixFirstDraftHandoff as o}from"./handoff.js";export const generatePhoenixFirstDraftGuides=()=>{let r=[n(),t(),o()];return[e({path:"processes/first-draft/index.md",title:"First draft",summary:"A fast, convincing first version of a new project: chosen branding and UX, a working product journey, relevant finishing features and an offer to deploy; read for a new project, not for an existing one.",intro:`The first thing a new client sees. Across the client choices and feedback pauses, aim for a branded, working configurator with a chosen look and UX, a representative product journey and finishing features that serve its outcome, ready to deploy as a first live version and as good looking as the time allows. It is meant for a new project; an existing project continues in normal mode.
2
2
 
3
- Speed is part of the quality. Review processes can wait for later work, and the client is usually asked to choose only a few things, such as a branding option, a layout option and whether to deploy; reversible defaults cover the rest and are recorded in the product definition. The stages usually run in order. Note in the project record which stage the draft reached, so a resumed session continues the draft instead of switching to normal mode; the handoff marks the draft complete.`,guides:r,notes:[]}),...r]};
3
+ Start with three standalone HTML brand sheets for the client to choose. Save the chosen direction and build a narrow working interaction in that branding; an already explicitly chosen direction stays settled. Present that slice as an initial visual preview. Then separately design the core buyer journey and review it against product rules, Phoenix UX guidelines and platform contracts before recommending the design. Continue with feedback and useful increments. Beyond that branding choice, interaction alternatives are a technique for meaningful tradeoffs, not a mandatory stage. Speed comes from limiting scope; reversible defaults cover nonblocking unknowns. The stages usually run in order. Note in the project record which stage the draft reached, so a resumed session continues the draft instead of switching to normal mode; the handoff marks the draft complete.`,guides:r,notes:[]}),...r]};
@@ -2,8 +2,8 @@ import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`The handoff is
2
2
 
3
3
  1. Render the product definition PDF from its current source, then present the draft in a few lines: what the client can try, with the preview and the documents in \`docs/\` opened or linked. Name what is provisional in a sentence, such as a stand-in model or prices, and point to the product definition for the rest rather than listing every default.
4
4
  2. Ask what they think and what they would change first. Fix small requests now; add larger ones to the next increments.
5
- 3. Once their reaction is in, offer to deploy the draft as a first live version, following [Deployment](../../core/cli.md#deployment), and deploy after a yes. When the deploy is refused because a model is already deployed, such as the starter, follow [Model migration](../model-migration.md).
5
+ 3. Once their reaction is in, offer to deploy the draft as a first live version, following [Deployment](../../core/cli.md#deployment), and deploy after a yes. A new project has nothing deployed, so the draft's model becomes v1. When the deploy is refused because a model is already deployed, such as the hello-world starter of an early beta project, follow [Model migration](../model-migration.md).
6
6
  4. At a natural pause, ask about the [preferences](../../core/workflow.md#preferences), with a recommendation, and record the answers.
7
- 5. Write the [next increments](../../core/workflow.md#building-in-increments) into the project record, usually the rest of the range and its rules, and recommend the first in terms of the client's product.`,n=`- The client has seen the draft and answered whether to deploy; the deploy went live or was declined.
7
+ 5. Refresh the [next increments](../../core/workflow.md#building-in-increments) in the project record, usually the rest of the range and its rules, and recommend the first in terms of the client's product.`,n=`- The client has seen the draft and answered whether to deploy; the deploy went live or was declined.
8
8
  - The client's reactions and preferences are recorded in the project record, which marks the first draft complete.
9
- - The next increments are in the project record, the client knows the recommended first one, and the project continues in normal mode.`;export const generatePhoenixFirstDraftHandoff=()=>e({path:"processes/first-draft/handoff.md",title:"Handoff",summary:"Present the draft, then over the next messages offer a first live deployment, agree preferences and the next increments, and move to normal mode; read when the build works.",whenToUse:"When the first-draft [Build](build.md) works. The handoff ends the first draft; the project continues in normal mode, deployed or not.",steps:t,doneWhen:n,example:'The first message: "Your first draft is open in the preview. Try the three starting chairs, change the upholstery and download the summary PDF. The chair is a stand-in until we have your model, and the prices are placeholders; the product definition lists what is still open. What do you think, and what would you change first?" The deploy offer and the question about working style come in later messages, once this one is answered.'});
9
+ - The next increments are in the project record, the client knows the recommended first one, and the project continues in normal mode.`;export const generatePhoenixFirstDraftHandoff=()=>e({path:"processes/first-draft/handoff.md",title:"Handoff",summary:"Present the draft, then over the next messages offer a first live deployment, agree preferences and the next increments, and move to normal mode; read when the build works.",whenToUse:"When the first-draft [Build](build.md) works. The handoff ends the first draft; the project continues in normal mode, deployed or not.",steps:t,doneWhen:n,example:'The first message: "Your first draft is open in the preview. Select a shelf, change its finish and try adding one where the spacing limit applies. The cabinet is a stand-in until we have your model; the product definition lists what is still open. What do you think, and what would you change first?" The deploy offer and the question about working style come in later messages, once this one is answered.'});
@@ -2,6 +2,8 @@ export * from './first-draft/index.js';
2
2
  export * from './specification/index.js';
3
3
  export * from './finalization.js';
4
4
  export * from './asset-conversion.js';
5
+ export * from './scene-realism.js';
6
+ export * from './assistant-configuration.js';
5
7
  export * from './model-migration.js';
6
8
  export * from './review/index.js';
7
9
  export * from './feedback/index.js';
@@ -1 +1 @@
1
- export*from"./first-draft/index.js";export*from"./specification/index.js";export*from"./finalization.js";export*from"./asset-conversion.js";export*from"./model-migration.js";export*from"./review/index.js";export*from"./feedback/index.js";export*from"./beta.js";
1
+ export*from"./first-draft/index.js";export*from"./specification/index.js";export*from"./finalization.js";export*from"./asset-conversion.js";export*from"./scene-realism.js";export*from"./assistant-configuration.js";export*from"./model-migration.js";export*from"./review/index.js";export*from"./feedback/index.js";export*from"./beta.js";
@@ -1 +1 @@
1
- import{createPhoenixProcessGuide as e}from"../guide.js";export const generatePhoenixModelMigration=()=>e({path:"processes/model-migration.md",title:"Model migration",summary:"Preserve deployed model versions and migrate saved configurations; read when changing a domain model that has already been deployed.",whenToUse:"When changing a domain model that has already been deployed, including replacing a deployed starter model after a [first draft](first-draft/handoff.md); a deploy refused for a changed model leads here too.",steps:"A deployed model version cannot change, because saved configurations depend on it. `pnpm phoenix deploy` is refused, before anything is uploaded, when the model differs from the one already deployed under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working preview does not show that the deploy will pass. Adding a version is a model change, so restart dev and open the new preview address, as [Local development](../core/cli.md#keep-the-preview-in-front-of-the-client) describes.\n\n### Change a deployed model\n\nTo change a model that has been deployed as v<N>:\n\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n### Replace the starter\n\nWhen the first deployment of the workspace was the starter, its `Box` model is v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\n\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id, and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` with `pnpm phoenix docs -r docs/phoenix/migrations.mdx` before writing any other migration.",doneWhen:"- The deployed model is kept unchanged under its version, the change is in `model.latest`, and a migration converts saved configurations.\n- A configuration saved with the previous version loads after the change.",example:"When a deployed starter `Box` model is replaced by a chair, keep the starter as `model.v1`, make the chair model `latest` (v2) and implement `migrateToV2` returning the chair preset's entities. Load a configuration saved from the starter to verify that it opens as the default chair."});
1
+ import{createPhoenixProcessGuide as e}from"../guide.js";export const generatePhoenixModelMigration=()=>e({path:"processes/model-migration.md",title:"Model migration",summary:"Preserve deployed model versions and migrate saved configurations; read when changing a domain model that has already been deployed.",whenToUse:"When changing a domain model that has already been deployed, including replacing the starter model an early beta project was first deployed with, after a [first draft](first-draft/handoff.md); a promotion refused for a changed model leads here too.",steps:"A model version that production serves cannot change, because buyers' saved configurations depend on it. `pnpm phoenix deploy` builds into a preview, which replaces a changed schema because its saved configurations are test data, so a deploy does not show it; promoting the build to production in Studio is refused when the model differs from the one production already has under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working local preview, or a deployed preview, does not show that promoting to production will pass. Adding a version is a model change, so restart dev and open the new preview address, as [Local development](../core/cli.md#keep-the-preview-in-front-of-the-client) describes.\n\n### Change a deployed model\n\nTo change a model that has been deployed as v<N>:\n\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n### Replace the starter\n\nA new project starts empty, so the model of its first deploy is v1 and nothing needs replacing. Only a project whose production was first deployed as the hello-world starter, in the early beta, has the starter's `Box` model as v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\n\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id, and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` with `pnpm phoenix docs -r docs/phoenix/migrations.mdx` before writing any other migration.",doneWhen:"- The deployed model is kept unchanged under its version, the change is in `model.latest`, and a migration converts saved configurations.\n- A configuration saved with the previous version loads after the change.",example:"When a deployed starter `Box` model is replaced by a chair, keep the starter as `model.v1`, make the chair model `latest` (v2) and implement `migrateToV2` returning the chair preset's entities. Load a configuration saved from the starter to verify that it opens as the default chair."});
@@ -1,4 +1,4 @@
1
- import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`Review the running configurator against the product references and representative states, beyond the state used during implementation. [Visual inspection](visual-inspection.md) covers the state just changed; this pass checks fidelity and composition across the relevant states.
1
+ import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`Review the running configurator against the product references and representative states, beyond the state used during implementation. [Visual inspection](visual-inspection.md) covers the state just changed; this pass checks fidelity and composition across the relevant states. For an evidenced material, contact or grounding defect selected for correction, [scene realism](../scene-realism.md) offers optional guidance; this review does not itself start a realism pass.
2
2
 
3
3
  ### Roles
4
4
 
@@ -43,4 +43,4 @@ Use the scope and effort the workflow selected: one review pass, a challenge of
43
43
  ### When the tools are not there
44
44
 
45
45
  When an independent pass would help but tools are unavailable, work through the packet as an own review and disclose the limitation. Without browser automation, \`phoenix screenshot\` captures the canvas but not the interface around it, and \`phoenix inspect:state\` and \`phoenix inspect:scene\` only read, so no state other than the default can be reached. Review what can be reached and name what went unchecked rather than reporting a clean result.`,a=`- Every state in the packet was inspected, and each candidate is confirmed, refuted or unresolved with its evidence.
46
- - Confirmed defects are fixed or reported as deferred, and taste notes are listed for the client.`;export const generatePhoenixAppearanceReview=()=>e({path:"processes/review/appearance.md",title:"Appearance review",summary:"Fidelity and composition across representative states, with an evidence packet and challenged candidates; read before hand-over and after changes that add, remove or swap parts.",whenToUse:"In normal mode, before hand-over and after an increment that adds, removes or swaps a part, with scope and independence chosen by the [review strategy](../../core/workflow.md#review-strategy). Composition between parts is where appearance defects concentrate, and an inspection of a single state cannot see it. A first draft runs no appearance review.",steps:t,doneWhen:a,example:"For a chair with optional casters, inspect the default and the caster-equipped state. A caster floating above the floor is an evidenced defect; preferring a darker finish is a taste note for the client."});
46
+ - Confirmed defects are fixed or reported as deferred, and taste notes are listed for the client.`;export const generatePhoenixAppearanceReview=()=>e({path:"processes/review/appearance.md",title:"Appearance review",summary:"Fidelity and composition across representative states, with an evidence packet and challenged candidates; read before hand-over and after changes that add, remove or swap parts.",whenToUse:"After the initial working slice, before hand-over and after an increment that adds, removes or swaps a part, with scope and independence chosen by the [review strategy](../../core/workflow.md#review-strategy). Composition between parts is where appearance defects concentrate, and an inspection of a single state cannot see it. The initial working slice needs no appearance review.",steps:t,doneWhen:a,example:"For a chair with optional casters, inspect the default and the caster-equipped state. A caster floating above the floor is an evidenced defect; preferring a darker finish is a taste note for the client."});
@@ -1,2 +1,2 @@
1
1
  import{createPhoenixProcessGuide as e}from"../../guide.js";let n=`- Every checklist that concerns the change was applied, and the project checks and dev log were checked.
2
- - The findings are reported in the format above, or "No issues found" says what was checked.`;export const generatePhoenixCodeReview=()=>e({path:"processes/review/code.md",title:"Code review",summary:"Phoenix bindings, domain behavior, types and runtime checks with a findings report; read for changed specs or code before committing.",whenToUse:"Before committing changed specs or code, with scope, effort and reviewer chosen by the [review strategy](../../core/workflow.md#review-strategy).",steps:'Check the changed behavior for correctness, Phoenix pattern violations and security issues; apply only the checklists that concern the change.\n\n### Procedure\n\n1. Get the diff of the selected work, including its affected callers and generated output.\n2. Identify which spec and source areas changed.\n3. Run the relevant project checks, including `pnpm phoenix build` when the change affects production output.\n4. When `phoenix dev` is running, check `.phoenix/phoenix-dev.log` for runtime errors.\n5. Report the findings in the format below.\n\n### Domain model (`spec/*.yaml`)\n\n- [ ] Relations define parent-child ownership correctly (1-N, 0-1)\n- [ ] Expressions have matching implementations in `src/expressions/`\n- [ ] Invariants have matching implementations in `src/invariants/`\n- [ ] Actions declared under `actions:` have matching implementations in `src/actions/` (a missing one stops the application at start; it is not a type error)\n- [ ] Component bindings use correct entity types or aliases\n- [ ] `$read`, `$write` and `$bind` reference valid properties or expressions\n- [ ] A deployed model is unchanged under its version: the change is in `model.latest`, the deployed model is kept as `model.v<N>`, and `src/migrations/v<N+1>.ts` migrates saved configurations\n\n### Expressions, actions and invariants\n\n- [ ] Use `phx.domain.implementCustomExpressions()`, `implementActions()` and `implementCustomInvariants()`\n- [ ] Actions only prepare: they return updates and a `readResult` reader, never stage or commit, and throw messages that say what to send instead\n- [ ] Expression names prefixed with `$` in YAML match the implementation\n- [ ] Expressions have no side effects; they are pure computed values\n- [ ] Invariant violations return proper severity and messages\n\n### Components (`src/components/`, `spec/components.yaml`)\n\n- [ ] Custom components use `memoEval` with correct dependency arrays\n- [ ] Scene objects built in code rebuild only when their shape changes and release the geometry, materials and textures a rebuild replaces ([Scene objects built in code](../../features/scene-objects.md))\n- [ ] Component attachment uses `withEntity()` or `withAlias()` correctly\n- [ ] Filters use `withGradualFilter()` with static criteria first for performance\n- [ ] No unnecessary React re-renders: stable object references through `memoEval`\n- [ ] Export pattern: a default export of a single component or an array\n\n### Assistant setup (`src/handlers/`)\n\n- [ ] At most one `phx.domain.createAssistantSetupHandler`, synchronous, pure and deterministic over manifest and session inputs\n- [ ] Only removes original declaration entries, exposes descriptions and restriction flags, and rejects immutable keys\n- [ ] Narrows fields on the declaring alias before expansion; runs in browser execution and the webhook; browser GraphQL, tools and change recording use session narrowing while UI keeps pure spec selectors; empty server instructions clear the baseline\n\n### Webhooks (`src/webhooks/`)\n\n[Webhooks](../../features/webhooks/index.md) has the rules behind these checks.\n\n- [ ] `src/webhooks/index.ts` default-exports the `phx.webhooks.webhookBuilder` result; other webhook files are reached through its imports\n- [ ] Credentials come from `env.webhook` through `phx.webhooksEnv`; none is hard-coded or returned in session data, backend data or the finalization result\n- [ ] Webhook files and what they import use no browser SDK entry points or style, font and image files\n- [ ] Every declared resource has a task producing it, and every task includes only declared resources\n- [ ] A task that does not apply to a request returns `null`; a callback that misses a resource throws a message naming it\n- [ ] Emails, HTTP requests and orders go to test recipients and endpoints until the client authorizes real ones\n\n### TypeScript and React\n\n- [ ] No `any` type usage; use proper types or generics\n- [ ] No `as` type casts; use type guards or discriminated unions\n- [ ] `readonly` on type and interface fields\n- [ ] Exhaustive pattern matching where appropriate\n- [ ] `useEffect` cleanup for subscriptions, timers and listeners\n- [ ] Correct dependency arrays, without missing or unnecessary dependencies\n- [ ] Memoization (`useMemo`, `useCallback`) for expensive computations\n- [ ] No direct DOM manipulation (`innerHTML`, `document.querySelector`)\n- [ ] Newlines between logical sections; no commented-out code without an explanation\n- [ ] Error messages say what went wrong, why, and how to fix it\n\n### Generated files and runtime\n\n- [ ] No edits to generated files: `.phoenix/` outside the project-owned `.phoenix/workspace/` and `.phoenix/variants/`, and compiled `src/locales/*.ts`\n- [ ] No errors in `.phoenix/phoenix-dev.log` after the change (`grep ERROR .phoenix/phoenix-dev.log`), including `[browser]` console entries\n- [ ] Spec parsing succeeds without warnings\n\n### Report format\n\n```\n# Code review report\n\n**Files reviewed**: <count>\n\n## Findings\n\n### Critical\n- **[<file_path>:<line>]** <title>\n - **Issue**: <description>\n - **Rule**: <which rule or pattern is violated>\n - **Remediation**: <how to fix>\n\n### High\n...\n\n### Medium\n...\n\n### Low\n...\n\n## Summary\n- Critical: N | High: N | Medium: N | Low: N\n- **Overall assessment**: <one or two sentences>\n```\n\nOmit a severity section without findings. Without any findings, state "No issues found" with a brief note on what was checked.',doneWhen:n,example:"After adding a finish control to a repeated chair part, verify that its binding targets the selected part, that changing it preserves the other parts, and that the rendered material matches the selected value."});
2
+ - The findings are reported in the format above, or "No issues found" says what was checked.`;export const generatePhoenixCodeReview=()=>e({path:"processes/review/code.md",title:"Code review",summary:"Phoenix bindings, domain behavior, types and runtime checks with a findings report; read for changed specs or code before committing.",whenToUse:"Before committing changed specs or code, with scope, effort and reviewer chosen by the [review strategy](../../core/workflow.md#review-strategy).",steps:'Check the changed behavior for correctness, Phoenix pattern violations and security issues; apply only the checklists that concern the change.\n\n### Procedure\n\n1. Get the diff of the selected work, including its affected callers and generated output.\n2. Identify which spec and source areas changed.\n3. Run the relevant project checks, including `pnpm phoenix build` when the change affects production output.\n4. When `phoenix dev` is running, check `.phoenix/phoenix-dev.log` for runtime errors.\n5. Report the findings in the format below.\n\n### Domain model (`spec/*.yaml`)\n\n- [ ] Relations define parent-child ownership correctly (1-N, 0-1)\n- [ ] Expressions have matching implementations in `src/expressions/`\n- [ ] Invariants have matching implementations in `src/invariants/`\n- [ ] Actions declared under `actions:` have matching implementations in `src/actions/` (a missing one stops the application at start; it is not a type error)\n- [ ] Component bindings use correct entity types or aliases\n- [ ] `$read`, `$write` and `$bind` reference valid properties or expressions\n- [ ] A deployed model is unchanged under its version: the change is in `model.latest`, the deployed model is kept as `model.v<N>`, and `src/migrations/v<N+1>.ts` migrates saved configurations\n\n### Expressions, actions and invariants\n\n- [ ] Use `phx.domain.implementCustomExpressions()` and `implementCustomInvariants()` for domain code, and `phx.frontend.implementActions()` for actions\n- [ ] Actions only prepare: they return updates and a `readResult` reader, never stage or commit, and throw messages that say what to send instead\n- [ ] Expression names prefixed with `$` in YAML match the implementation\n- [ ] Expressions have no side effects; they are pure computed values\n- [ ] Invariant violations return proper severity and messages\n\n### Components (`src/components/`, `spec/components.yaml`)\n\n- [ ] Custom components use `memoEval` with correct dependency arrays\n- [ ] Scene objects built in code rebuild only when their shape changes and release the geometry, materials and textures a rebuild replaces ([Scene objects built in code](../../features/scene-objects.md))\n- [ ] Component attachment uses `withEntity()` or `withAlias()` correctly\n- [ ] Filters use `withGradualFilter()` with static criteria first for performance\n- [ ] No unnecessary React re-renders: stable object references through `memoEval`\n- [ ] Export pattern: a default export of a single component or an array\n\n### Assistant setup (`src/handlers/`)\n\n- [ ] At most one `phx.domain.createAssistantSetupHandler`, synchronous, pure and deterministic over manifest and session inputs\n- [ ] Only removes original declaration entries, exposes descriptions and restriction flags, and rejects immutable keys\n- [ ] Narrows fields on the declaring alias before expansion; runs in browser execution and the webhook; browser GraphQL, tools and change recording use session narrowing while UI keeps pure spec selectors; empty instructions clear the baseline in both runs\n\n### Webhooks (`src/webhooks/`)\n\n[Webhooks](../../features/webhooks/index.md) has the rules behind these checks.\n\n- [ ] `src/webhooks/index.ts` default-exports the `phx.webhooks.webhookBuilder` result; other webhook files are reached through its imports\n- [ ] Credentials come from `env.webhook` through `phx.webhooksEnv`; none is hard-coded or returned in session data, backend data or the finalization result\n- [ ] Webhook files and what they import use no browser SDK entry points or style, font and image files\n- [ ] Every declared resource has a task producing it, and every task includes only declared resources\n- [ ] A task that does not apply to a request returns `null`; a callback that misses a resource throws a message naming it\n- [ ] Emails, HTTP requests and orders go to test recipients and endpoints until the client authorizes real ones\n\n### TypeScript and React\n\n- [ ] No `any` type usage; use proper types or generics\n- [ ] No `as` type casts; use type guards or discriminated unions\n- [ ] `readonly` on type and interface fields\n- [ ] Exhaustive pattern matching where appropriate\n- [ ] `useEffect` cleanup for subscriptions, timers and listeners\n- [ ] Correct dependency arrays, without missing or unnecessary dependencies\n- [ ] Memoization (`useMemo`, `useCallback`) for expensive computations\n- [ ] No direct DOM manipulation (`innerHTML`, `document.querySelector`)\n- [ ] Newlines between logical sections; no commented-out code without an explanation\n- [ ] Error messages say what went wrong, why, and how to fix it\n\n### Generated files and runtime\n\n- [ ] No edits to generated files: `.phoenix/` outside the project-owned `.phoenix/workspace/` and `.phoenix/variants/`, and compiled `src/locales/*.ts`\n- [ ] No errors in `.phoenix/phoenix-dev.log` after the change (`grep ERROR .phoenix/phoenix-dev.log`), including `[browser]` console entries\n- [ ] Spec parsing succeeds without warnings\n\n### Report format\n\n```\n# Code review report\n\n**Files reviewed**: <count>\n\n## Findings\n\n### Critical\n- **[<file_path>:<line>]** <title>\n - **Issue**: <description>\n - **Rule**: <which rule or pattern is violated>\n - **Remediation**: <how to fix>\n\n### High\n...\n\n### Medium\n...\n\n### Low\n...\n\n## Summary\n- Critical: N | High: N | Medium: N | Low: N\n- **Overall assessment**: <one or two sentences>\n```\n\nOmit a severity section without findings. Without any findings, state "No issues found" with a brief note on what was checked.',doneWhen:n,example:"After adding a finish control to a repeated chair part, verify that its binding targets the selected part, that changing it preserves the other parts, and that the rendered material matches the selected value."});
@@ -1 +1 @@
1
- import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixAppearanceReview as o}from"./appearance.js";import{generatePhoenixCodeReview as r}from"./code.js";import{generatePhoenixHandOverReview as t}from"./hand-over.js";import{generatePhoenixVisualInspection as i}from"./visual-inspection.js";export const generatePhoenixReviewGuides=()=>{let n=[r(),i(),o(),t()];return[e({path:"processes/review/index.md",title:"Review",summary:"Review changed code, rendered output or the complete configurator; read in normal mode before committing or hand-over.",intro:"The [workflow](../../core/workflow.md#review-strategy) selects scope, effort and independence. Choose the slices that can establish the changed result; this index does not require all four for every task, and a first draft runs none of them.",guides:n,notes:[]}),...n]};
1
+ import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixAppearanceReview as r}from"./appearance.js";import{generatePhoenixCodeReview as o}from"./code.js";import{generatePhoenixHandOverReview as i}from"./hand-over.js";import{generatePhoenixVisualInspection as t}from"./visual-inspection.js";export const generatePhoenixReviewGuides=()=>{let s=[o(),t(),r(),i()];return[e({path:"processes/review/index.md",title:"Review",summary:"Review changed code, rendered output or the complete configurator; read when the review strategy calls for a focused review, or before committing or hand-over.",intro:"The [workflow](../../core/workflow.md#review-strategy) selects scope, effort and independence. Choose the slices that can establish the changed result; this index does not require all four for every task. The initial working slice skips formal reviews; the core journey receives the focused review described in first-draft Build.",guides:s,notes:[]}),...s]};
@@ -10,4 +10,4 @@ Inspect and report:
10
10
  This covers what follows from the change just made, in the current state. Fidelity against the client's material, control density and states not yet opened belong to [Appearance review](appearance.md).
11
11
 
12
12
  Report deferred defects as defects. Do not call work done, verified or complete while any point is unchecked or failing: say which, and recommend fixing it now or later.`,a=`- Each point has an observation from the rendered preview, or the change is stated to have no rendered effect.
13
- - The result is appended to the project changelog with the increment it belongs to and the viewport used.`;export const generatePhoenixVisualInspection=()=>e({path:"processes/review/visual-inspection.md",title:"Visual inspection",summary:"Geometry, materials and light, response and loading in the changed state; read when a change can alter the canvas or the interface.",whenToUse:"Whenever a change can alter what the canvas or the interface shows: geometry, materials, scene, layout, controls or the data behind any of them. When a change cannot affect the rendered result, say so rather than passing over this silently. A first draft uses only the quick look its [workflow](../../core/workflow.md#review-strategy) describes.",steps:t,doneWhen:a,example:"After adding a leg finish to a table, open the table at desktop width: the legs meet the floor and the shadow lies under them, all four legs change finish together with the control, and the first frame appears after about two seconds behind the branded loader."});
13
+ - The result is appended to the project changelog with the increment it belongs to and the viewport used.`;export const generatePhoenixVisualInspection=()=>e({path:"processes/review/visual-inspection.md",title:"Visual inspection",summary:"Geometry, materials and light, response and loading in the changed state; read when a change can alter the canvas or the interface.",whenToUse:"Whenever a change can alter what the canvas or the interface shows: geometry, materials, scene, layout, controls or the data behind any of them. When a change cannot affect the rendered result, say so rather than passing over this silently. The initial working slice uses scoped testing; the core journey and subsequent increments follow the [review strategy](../../core/workflow.md#review-strategy).",steps:t,doneWhen:a,example:"After adding a leg finish to a table, open the table at desktop width: the legs meet the floor and the shadow lies under them, all four legs change finish together with the control, and the first frame appears after about two seconds behind the branded loader."});
@@ -0,0 +1,2 @@
1
+ import { type PhoenixGuide } from '../guide.js';
2
+ export declare const generatePhoenixSceneRealism: () => PhoenixGuide;
@@ -0,0 +1,29 @@
1
+ import{createPhoenixProcessGuide as e}from"../guide.js";let a=`### Find the visible problem
2
+
3
+ Compare a baseline view with the client's references. Prioritize the largest visible issue at the normal viewing distance. For a broad realism request, identify the main problems in lighting, materials and contact shading, and assess whether ambient occlusion (AO) would help. For a specific correction, stay with that problem. Preserve the chosen finish; reference photographs do not authorize new colours or textures.
4
+
5
+ Check geometry, normals, UVs and the material actually rendered, including overrides, before adding effects. Distinguish self-occlusion, grounding and directional cast shadows; AO cannot replace cast shadows or repair a silhouette or an unsuitable reflection. Use [asset inspection](../features/inspection.md) when those inputs are uncertain.
6
+
7
+ ### Choose a proportionate fix
8
+
9
+ Consider the plausible ways to improve the scene. Try the options suited to the areas with room for improvement, compare their results, and keep the changes that meaningfully improve the overall appearance relative to their cost and complexity. For baking, prefer reusable part bakes and contact profiles over whole-configuration bakes. Compare their download and memory cost with the rendering and maintenance cost of dynamic effects. Baking is an option to evaluate, not a required output. Trial costly techniques on one representative part before expanding.
10
+
11
+ Bake only relationships that stay valid during configuration. Keep contact widths in physical units as parts resize; attach optional-part shading to its placement and visibility. Rectangular masks fit rectangular contacts, not arbitrary curved surfaces. Avoid uniformly outlining panels or multiplying overlapping shadows. Prefer material occlusion inputs; a dark overlay also affects direct light and is a contact-darkening approximation, not material AO. Keep highlights and fixed lighting directions out of interchangeable finishes, and avoid opaque darkening on glass.
12
+
13
+ Keep source assets intact and bakes reproducible. An AO or UV addition should preserve geometry, normals, morphs and material assignments; avoid unnecessary model round-trips. Follow [asset conversion](asset-conversion.md) when an asset needs preparation.
14
+
15
+ ### Use supported Phoenix paths
16
+
17
+ Check the installed SDK before ruling out a capability. Read the material override documentation with \`pnpm phoenix docs -r 'docs/3d-scene/materials/override.mdx'\`; inspect the relevant schema and implementation if support remains unclear. A missing UV channel is an asset-preparation issue, not proof that Phoenix lacks AO.
18
+
19
+ - **Materials** — local and remote overrides support \`aoMapUrl\` and \`aoMapIntensity\`. Replacing a material can lose authored maps. Local overrides can select \`materialType: physical\`; remote overrides depend on the loaded material class.
20
+ - **Mapping** — override repeat, offset and rotation apply to each supplied map; there is no independent AO transform or UV-channel selector. Preserve authored glTF occlusion mapping or use a custom material when separate mapping is needed. Sample AO as non-color data.
21
+ - **Custom geometry** — [scene objects built in code](../features/scene-objects.md) covers geometry, updates and resource ownership. Contact patches and configuration-time baking are project techniques, not built-in baking services; use them when simpler supported paths are insufficient.
22
+
23
+ ### Compare and stop
24
+
25
+ Use [visual inspection](review/visual-inspection.md) for matching before/after views, changing one contributing factor at a time. Toggle AO separately when judging contact shading. Check affected configurations, especially size extremes and optional-part removal, for stretched shadows, outlines or artifacts. Confirm each test configuration actually applied before judging its render. Tests support these checks but do not establish visual quality. A full [appearance review](review/appearance.md) follows its own trigger.
26
+
27
+ Stop when the agreed visual target is met. Explain what is baked, approximated or rendered at runtime, and what remains unverified. Remove temporary tuning controls and replaced effects; retain reproducible assets.`,t=`- Matching views demonstrate the agreed improvement without new artifacts or an unintended finish change.
28
+ - Shading remains valid in the affected configurations checked; remaining issues and unverified states are disclosed.
29
+ - Any bakes used are reproducible and preserve the source asset's geometry and material contracts.`;export const generatePhoenixSceneRealism=()=>e({path:"processes/scene-realism.md",title:"Scene realism",summary:"Optional material, contact and grounding refinement; read for a requested realism improvement or a specific evidenced defect within the agreed scope.",whenToUse:"Make scenes convincing through resizing, finish changes and optional parts, with low runtime cost and complexity. Use this optional guide for requested realism work or an evidenced defect within scope. Routine scene work and hand-over do not trigger a pass. Keep satisfactory or deferred appearance settled, and use the scope and effort chosen by the [workflow](../core/workflow.md).",steps:a,doneWhen:t,example:"For a resizable cabinet with an optional bracket, first compare the lighting, finish and joint shading. If a lighting correction resolves the problem, stop. If contacts still look flat, assess reusable AO with the rendered material and its UVs. A tiling finish and separately unwrapped AO need independent mapping. Keep bracket shading tied to the bracket, then compare narrow and wide cabinets with the bracket present and absent. Removing it should remove its shadow, not the cabinet's own occlusion."});
@@ -7,7 +7,9 @@ import{createPhoenixProcessGuide as e}from"../../guide.js";let n=`### Source and
7
7
 
8
8
  - What the product is, who configures it and what completing a configuration means.
9
9
  - Products and families; configurable assemblies versus separate products; reusable parts versus examples or decorative props.
10
+ - Components and relationships: required, optional and repeatable parts; what can be configured, added or removed.
10
11
  - Options per part, sizes and units, dependencies and compatibility rules.
12
+ - One representative journey: starting configuration, decision order and intended outcome; selection, add/remove behavior, global versus per-component changes, and what happens for an invalid combination or automatic adjustment. Include a meaningful constraint when one is known; mark provisional assumptions and unknowns.
11
13
  - Price basis, mandatory items, premiums, discounts, rounding, tax and delivery.
12
14
  - Assets and their state: supplied, converted or stand-in. When tools permit, note model structure, units, orientation, component separation, materials, textures and animations.
13
15
  - The source of each fact, and what is provisional or unknown.
@@ -1 +1 @@
1
- import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixBranding as n}from"./branding.js";import{generatePhoenixCatalog as t}from"./catalog.js";import{generatePhoenixProductDefinition as o}from"./product-definition.js";import{generatePhoenixUxGuidelines as r}from"./ux-guidelines.js";export const generatePhoenixSpecificationGuides=()=>{let i=[n(),r(),o(),t()];return[e({path:"processes/specification/index.md",title:"Specification",summary:"The client-facing documents later work follows: branding, UX guidelines, product definition and catalogs; read when creating or changing one, or when work depends on what they define.",intro:"The specification is a set of client-facing documents that every later increment follows. Read only the document the task creates, changes or depends on.",guides:i,notes:["## Sources and PDFs\n\nEach document keeps its editable source in `.phoenix/workspace/specification/` and a rendered PDF in `docs/`. Edit the source, never the PDF, and render the PDF again in the documented brand whenever the source changes. One re-runnable script in `tools/` that renders every document, for example branded HTML printed to PDF by a headless browser, keeps them on one page size and one look. Later work reads the sources; the PDFs are for the client and travel with the deployed sources. Mark provisional content visibly in both, and name sources by what they are, such as the client's price list, rather than by file paths or internal tool names."]}),...i]};
1
+ import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixBranding as t}from"./branding.js";import{generatePhoenixCatalog as n}from"./catalog.js";import{generatePhoenixProductDefinition as o}from"./product-definition.js";import{generatePhoenixUxSpecification as r}from"./ux-specification.js";export const generatePhoenixSpecificationGuides=()=>{let i=[t(),r(),o(),n()];return[e({path:"processes/specification/index.md",title:"Specification",summary:"The client-facing documents later work follows: branding, UX specification, product definition and catalogs; read when creating or changing one, or when work depends on what they define.",intro:"The specification is a set of client-facing documents that every later increment follows. Read only the document the task creates, changes or depends on.",guides:i,notes:["## Sources and PDFs\n\nKeep each document consistent with the current agreed product: when an increment resolves an assumption or changes scope, revise the affected statements rather than leaving a later status note to contradict them. Distinguish agreed requirements from implemented and verified behavior.\n\nEach document keeps its editable source in `.phoenix/workspace/specification/` and a rendered PDF in `docs/`. Edit the source, never the PDF, and render the PDF again in the documented brand whenever the source changes. One re-runnable script in `tools/` that renders every document, for example branded HTML printed to PDF by a headless browser, keeps them on one page size and one look. Later work reads the sources; the PDFs are for the client and travel with the deployed sources. Mark provisional content visibly in both, and name sources by what they are, such as the client's price list, rather than by file paths or internal tool names."]}),...i]};
@@ -0,0 +1,2 @@
1
+ import { type PhoenixGuide } from '../../guide.js';
2
+ export declare const generatePhoenixUxSpecification: () => PhoenixGuide;
@@ -0,0 +1,28 @@
1
+ import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`### Source and PDF
2
+
3
+ - Source: \`.phoenix/workspace/specification/ux-specification.md\`.
4
+ - PDF: \`docs/ux-specification.pdf\`, rendered in the brand.
5
+
6
+ Keep decisions and their rationale in the project record.
7
+
8
+ ### Patterns
9
+
10
+ Describe the patterns the configurator uses, so every later increment follows them:
11
+
12
+ - Layout on desktop and phone: where the scene, controls, summary and actions sit.
13
+ - Navigation: flat choices, tabs or ordered steps, and when each applies.
14
+ - Which control serves which kind of decision: swatches, cards, selects, inputs or in-scene controls.
15
+ - Selecting, adding and removing parts, global versus per-component edits, and keeping the edited part in view.
16
+ - Constraint feedback and automatic adjustments: what changed, why and how users continue.
17
+ - Messages: violations, provisional prices, saving, errors and empty states.
18
+ - Relevant starting screens, loading feedback and finalization, when it serves the intended outcome.
19
+
20
+ Base each choice on the Phoenix UX guidelines: read \`docs/ux-guidelines/overview.mdx\` with \`pnpm phoenix docs -r <path>\`, then the topic pages it links, such as choosing navigation, choosing a control, interaction modes, canvas and feedback, and presets.
21
+
22
+ ### Experience structure
23
+
24
+ Start with the representative journey in the product definition and describe the chosen layout and interaction patterns. As increments add decisions, extend the experience structure: every decision users make, grouped and ordered by what they understand and choose first and by real product dependencies, each with the pattern it uses. It grows with the work rather than being written for the whole scope up front; mark agreed decisions that are not built yet.
25
+
26
+ ### Follow them
27
+
28
+ A change that needs a new pattern updates this specification first and is presented to the client as a UX change, rather than arriving silently in code.`;export const generatePhoenixUxSpecification=()=>e({path:"processes/specification/ux-specification.md",title:"UX specification",summary:"The UX patterns every increment follows, and the experience structure that grows from the representative journey; read when writing them or before adding a control, step or screen.",whenToUse:"When [Build](../first-draft/build.md) documents the reviewed core interaction design, when an increment adds a decision to the experience structure, and before any change that adds a control, a step or a screen to a project that has them.",steps:t,doneWhen:"- The specification describes the patterns of the chosen layout, and `docs/ux-specification.pdf` matches the source.\n- The experience structure covers the representative journey and what is built and agreed so far.",example:"For a bottom-sheet layout: options sit in a sheet over the scene on phones and in a right-hand panel on desktop; finishes use named swatches and sizes use cards with dimensions; an added part is selected and framed by the camera; a provisional price reads as an estimate."});
@@ -1,22 +1,22 @@
1
- let t=t=>`webhookHandlers${t}`;export const generateApplicationSpecWebhookBuilders=(e,o)=>{let i=e.appMetadata.useClerk?` clerk: {
1
+ let e=e=>`webhookHandlers${e}`;export const generateApplicationSpecWebhookBuilders=(t,o)=>{let i=t.appMetadata.useClerk?` clerk: {
2
2
  apiKey: phx.webhooksEnv.CLERK_API_KEY,
3
3
  authorizedParties: [phx.webhooksEnv.FRONTEND_URL, phx.webhooksEnv.RESOURCES_URL],
4
4
  jwtSecret: phx.webhooksEnv.JWT_SECRET_BASE64,
5
5
  oauthClientId: phx.webhooksEnv.OAUTH_PROVIDER_CLIENT_ID,
6
6
  oauthClientSecret: phx.webhooksEnv.OAUTH_PROVIDER_CLIENT_SECRET,
7
7
  oauthProviderBaseUrl: phx.webhooksEnv.OAUTH_PROVIDER_BASE_URL,
8
- },`:"",r=o.map((e,o)=>{let i=t(o),r=e.replace(/\.tsx?$/,".js");return`import ${i} from '../${r}'`}).join("\n"),n=o.length>0,s=o.map((e,o)=>`{ origin: '${e}', exports: ${t(o)} }`),a=`[${s.join(", ")}]`,l=n?`
9
- .withHandlers(${a})`:"";return`// Auto-generated by application-spec pipeline. Do not edit.
8
+ },`:"",a=o.map((t,o)=>{let i=e(o),a=t.replace(/\.tsx?$/,".js");return`import ${i} from '../${a}'`}).join("\n"),r=o.length>0,n=o.map((t,o)=>`{ origin: '${t}', exports: ${e(o)} }`),s=`[${n.join(", ")}]`,l=r?`
9
+ .withHandlers(${s})`:"";return`// Auto-generated by application-spec pipeline. Do not edit.
10
10
  import { createDomainWebhook } from '@salsita-ai/sdk/webhook'
11
11
  import type { DeploymentAssistant } from '@salsita-ai/sdk/contracts/assistant'
12
12
 
13
13
  import { configuratorBuilder, createI18n } from './domain.js'
14
14
  import { customComponentOptics } from './configurator-domain-code.js'
15
15
  import { customAdminComponentOptics } from './admin-domain-code.js'
16
- ${r?`
17
- ${r}
16
+ ${a?`
17
+ ${a}
18
18
  `:""}
19
- const $assistantServerSettings: Pick<DeploymentAssistant, 'instructions' | 'ai'> | null = ${JSON.stringify(e.configurator.assistantServerSettings?{instructions:e.configurator.assistantServerSettings.instructions??void 0,ai:e.configurator.assistantServerSettings.ai}:null)}
19
+ const $assistantServerSettings: Pick<DeploymentAssistant, 'ai'> | null = ${JSON.stringify(t.configurator.assistantServerSettings?{ai:t.configurator.assistantServerSettings.ai}:null)}
20
20
 
21
21
  const webhookConfiguratorBuilder = configuratorBuilder
22
22
  .withComponentOptics(customComponentOptics)
@@ -39,6 +39,7 @@ export const {
39
39
  assistantServerSettings: $assistantServerSettings,
40
40
  assistantStrictThreads: phx.webhooksEnv.ASSISTANT_STRICT_THREADS,
41
41
  ${i}
42
+ ${t.appMetadata.useCognito?" useCognito: true,":""}
42
43
  })
43
44
 
44
45
  // @ts-ignore - Initialize the globals
@@ -2,5 +2,6 @@
2
2
  export interface WebhookIndexOptions {
3
3
  /** Whether the project has `src/webhooks/index.ts`; without it the entry holds the built-in webhook. */
4
4
  readonly hasWebhookEntry: boolean;
5
+ readonly useCognito: boolean;
5
6
  }
6
- export declare const generateApplicationSpecWebhookIndex: ({ hasWebhookEntry }: WebhookIndexOptions) => string;
7
+ export declare const generateApplicationSpecWebhookIndex: ({ hasWebhookEntry, useCognito }: WebhookIndexOptions) => string;
@@ -1,4 +1,4 @@
1
- import{autoHeader as e}from"../common/file-headers.js";export const generateApplicationSpecWebhookIndex=({hasWebhookEntry:o})=>o?`${e("webhook.ts","Webhook entry point — imports builders (sets globalThis.phx.webhooks) then re-exports user handler.")}
1
+ import{autoHeader as e}from"../common/file-headers.js";export const generateApplicationSpecWebhookIndex=({hasWebhookEntry:o,useCognito:s})=>o?`${e("webhook.ts","Webhook entry point — imports builders (sets globalThis.phx.webhooks) then re-exports user handler.")}
2
2
  export * as builders from './webhook-builders.js'
3
3
 
4
4
  import implementation from '../src/webhooks/index.js'
@@ -9,7 +9,7 @@ export * as builders from './webhook-builders.js'
9
9
 
10
10
  // A webhook needs at least one handler; anonymous auth stays inert until spec/application.yaml sets useAuthHook
11
11
  const authHandler = phx.webhooks.authHandlerBuilder
12
- .withAnonymousHandler(async () => ({ success: true, data: {}, role: 'anonymous' }))
12
+ .withAnonymousHandler(async () => (${s?"{ success: false }":"{ success: true, data: {}, role: 'anonymous' }"}))
13
13
  .build()
14
14
 
15
15
  export const handler = phx.webhooks.webhookBuilder.withAuthHook(authHandler).build()
@@ -9,6 +9,7 @@ export type MergedAppMetadata = Branded<'MergedAppMetadata', {
9
9
  readonly pageTitle: string | undefined;
10
10
  readonly useAuthHook: boolean;
11
11
  readonly useClerk: boolean;
12
+ readonly useCognito: boolean;
12
13
  readonly enableAdminRelease: boolean;
13
14
  readonly jsonSchemaValidator: 'ajv' | 'csp-compatible';
14
15
  readonly gltfDecoder: 'js' | 'wasm';
@@ -1 +1 @@
1
- import{Branded as e}from"@salsita-ai/common/utils";import{DiagnosticCode as o,diagnosticMessages as a}from"../../errors/index.js";let t=["project","applicationVersion","workspace","webComponentTag","pageTitle","useAuthHook","useClerk","enableAdminRelease","jsonSchemaValidator","gltfDecoder","collectFinalizeData"];export const MergedAppMetadata=(l,n)=>{let i=((e,l)=>{let n={},i={};for(let r of e)for(let e of t){let t=r.content[e];if(void 0===t)continue;let c=i[e];if(c){l.error(o.DUPLICATE_APP_METADATA_FIELD,a.DUPLICATE_APP_METADATA_FIELD(e,c,r.name));continue}n[e]=t,i[e]=r.name}return n})(l,n),r=i.useClerk??!1,c=i.useAuthHook??!!r;return e({applicationVersion:i.applicationVersion??"0.0.0",workspace:i.workspace??!1,webComponentTag:i.webComponentTag,pageTitle:i.pageTitle,useAuthHook:c,useClerk:r,enableAdminRelease:i.enableAdminRelease??!1,jsonSchemaValidator:i.jsonSchemaValidator??"ajv",gltfDecoder:i.gltfDecoder??"wasm",collectFinalizeData:i.collectFinalizeData??!1})};
1
+ import{Branded as e}from"@salsita-ai/common/utils";import{DiagnosticCode as o,diagnosticMessages as a}from"../../errors/index.js";let t=["project","applicationVersion","workspace","webComponentTag","pageTitle","useAuthHook","useClerk","useCognito","enableAdminRelease","jsonSchemaValidator","gltfDecoder","collectFinalizeData"];export const MergedAppMetadata=(l,n)=>{let i=((e,l)=>{let n={},i={};for(let r of e)for(let e of t){let t=r.content[e];if(void 0===t)continue;let s=i[e];if(s){l.error(o.DUPLICATE_APP_METADATA_FIELD,a.DUPLICATE_APP_METADATA_FIELD(e,s,r.name));continue}n[e]=t,i[e]=r.name}return n})(l,n),r=i.useClerk??!1,s=i.useCognito??!1;s&&(r||!1===i.useAuthHook)&&n.error(o.COGNITO_AUTH_CONFLICT,a.COGNITO_AUTH_CONFLICT());let c=i.useAuthHook??(r||s);return e({applicationVersion:i.applicationVersion??"0.0.0",workspace:i.workspace??!1,webComponentTag:i.webComponentTag,pageTitle:i.pageTitle,useAuthHook:c,useClerk:r,useCognito:s,enableAdminRelease:i.enableAdminRelease??!1,jsonSchemaValidator:i.jsonSchemaValidator??"ajv",gltfDecoder:i.gltfDecoder??"wasm",collectFinalizeData:i.collectFinalizeData??!1})};
@@ -1 +1 @@
1
- import{Branded as e}from"@salsita-ai/common/utils";import{ASSISTANT_HOURLY_LIMIT_LEVELS as t,ASSISTANT_HOURLY_LIMIT_MAXIMA as i,ASSISTANT_MAX_THREAD_SIZE as s}from"@salsita-ai/contracts/assistant";import{DiagnosticCode as a,diagnosticMessages as r}from"../../errors/index.js";let n=(e,t,i,s)=>{let n=t.flatMap(e=>{let t=i(e.manifest);return t?[{file:e.file,entries:t}]:[]});if(0===n.length)return;let l={},o=new Map;for(let{file:t,entries:i}of n)for(let[n,S]of Object.entries(i)){let i=o.get(n);if(i){s.at("assistant",e,n).error(a.ASSISTANT_MERGE_CONFLICT,r.ASSISTANT_MERGE_CONFLICT(e,n,i,t));continue}o.set(n,t),l[n]=S}return l},l=(e,t,i,s)=>{let n,l;for(let o of t){let t=i(o.manifest);if(void 0!==t){if(n){s.at("assistant",e).error(a.DUPLICATE_ASSISTANT_FIELD,r.DUPLICATE_ASSISTANT_FIELD(e,n,o.file));continue}n=o.file,l=t}}return l};export const MergedAssistant=(o,S)=>{let A=o.flatMap(e=>e.content.assistant?[{file:e.name,manifest:e.content.assistant}]:[]);if(0===A.length)return e({manifest:null});let f={entities:n("entities",A,e=>e.entities,S),deletable:n("deletable",A,e=>e.deletable,S),writable:n("writable",A,e=>e.writable,S),childRecipes:n("childRecipes",A,e=>e.childRecipes,S),replaceRecipes:n("replaceRecipes",A,e=>e.replaceRecipes,S),actions:n("actions",A,e=>e.actions,S),screenshots:n("screenshots",A,e=>e.screenshots,S),formElements:n("formElements",A,e=>e.formElements,S),lenses:l("lenses",A,e=>e.lenses,S),instructions:l("instructions",A,e=>e.instructions,S),ai:l("ai",A,e=>e.ai,S)},{ai:c}=f;if(!c)return S.at("assistant","ai").error(a.ASSISTANT_MISSING_AI,r.ASSISTANT_MISSING_AI()),e({manifest:null});for(let e of(void 0!==c.maxThreadSize&&c.maxThreadSize>s&&S.at("assistant","ai","maxThreadSize").error(a.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM("maxThreadSize",c.maxThreadSize,s)),t)){let t=c.hourlyLimits?.[e];void 0!==t&&t>i[e]&&S.at("assistant","ai","hourlyLimits",e).error(a.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM(`hourlyLimits.${e}`,t,i[e]))}return e({manifest:{...f,ai:c}})};
1
+ import{Branded as e}from"@salsita-ai/common/utils";import{ASSISTANT_HOURLY_LIMIT_LEVELS as t,ASSISTANT_HOURLY_LIMIT_MAXIMA as a,ASSISTANT_MAX_THREAD_SIZE as i,ASSISTANT_MAX_TOOL_CALLS_PER_MESSAGE as s}from"@salsita-ai/contracts/assistant";import{DiagnosticCode as n,diagnosticMessages as r}from"../../errors/index.js";let o=(e,t,a,i)=>{let s=t.flatMap(e=>{let t=a(e.manifest);return t?[{file:e.file,entries:t}]:[]});if(0===s.length)return;let o={},l=new Map;for(let{file:t,entries:a}of s)for(let[s,S]of Object.entries(a)){let a=l.get(s);if(a){i.at("assistant",...e.split("."),s).error(n.ASSISTANT_MERGE_CONFLICT,r.ASSISTANT_MERGE_CONFLICT(e,s,a,t));continue}l.set(s,t),o[s]=S}return o},l=(e,t,a,i)=>{let s,o;for(let l of t){let t=a(l.manifest);if(void 0!==t){if(s){i.at("assistant",e).error(n.DUPLICATE_ASSISTANT_FIELD,r.DUPLICATE_ASSISTANT_FIELD(e,s,l.file));continue}s=l.file,o=t}}return o};export const MergedAssistant=(S,A)=>{let m=S.flatMap(e=>e.content.assistant?[{file:e.name,manifest:e.content.assistant}]:[]);if(0===m.length)return e({manifest:null});let T={entities:o("entities",m,e=>e.entities,A),deletable:o("deletable",m,e=>e.deletable,A),writable:o("writable",m,e=>e.writable,A),childRecipes:o("childRecipes",m,e=>e.childRecipes,A),replaceRecipes:o("replaceRecipes",m,e=>e.replaceRecipes,A),actions:o("actions",m,e=>e.actions,A),screenshots:o("screenshots",m,e=>e.screenshots,A),navigation:((e,t)=>{if(!e.some(e=>e.manifest.navigation))return;let a=o("navigation.navigationStates",e,e=>e.navigation?.navigationStates,t),i=o("navigation.viewStates",e,e=>e.navigation?.viewStates,t),s=o("navigation.toolStates",e,e=>e.navigation?.toolStates,t),n=o("navigation.select",e,e=>e.navigation?.select,t);return{...a&&{navigationStates:a},...i&&{viewStates:i},...s&&{toolStates:s},...n&&{select:n}}})(m,A),formElements:o("formElements",m,e=>e.formElements,A),lenses:l("lenses",m,e=>e.lenses,A),instructions:l("instructions",m,e=>e.instructions,A),webmcp:l("webmcp",m,e=>e.webmcp,A),ai:l("ai",m,e=>e.ai,A)},{ai:I}=T;if(!I)return A.at("assistant","ai").error(n.ASSISTANT_MISSING_AI,r.ASSISTANT_MISSING_AI()),e({manifest:null});for(let e of(void 0!==I.maxThreadSize&&I.maxThreadSize>i&&A.at("assistant","ai","maxThreadSize").error(n.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM("maxThreadSize",I.maxThreadSize,i)),void 0!==I.maxToolCallsPerMessage&&I.maxToolCallsPerMessage>s&&A.at("assistant","ai","maxToolCallsPerMessage").error(n.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM("maxToolCallsPerMessage",I.maxToolCallsPerMessage,s)),t)){let t=I.hourlyLimits?.[e];void 0!==t&&t>a[e]&&A.at("assistant","ai","hourlyLimits",e).error(n.ASSISTANT_AI_ABOVE_MAXIMUM,r.ASSISTANT_AI_ABOVE_MAXIMUM(`hourlyLimits.${e}`,t,a[e]))}return e({manifest:{...T,ai:I}})};
@@ -1 +1 @@
1
- import{Branded as e}from"@salsita-ai/common/utils";import{ParseContext as s}from"../core/index.js";import{DiagnosticCode as t,diagnosticMessages as r}from"../errors/index.js";import{CategorizedFiles as i}from"./categorize/index.js";import{MergedSpec as a}from"./merge/index.js";import{RawSpecFiles as p}from"./raw-spec/parse-raw-spec.js";import{RawMockTemplates as o}from"./raw-spec/raw-mock-templates.js";import{ResolvedSpecFiles as l}from"./resolve/index.js";import{ApplicationSpec as n}from"./spec/index.js";export const parseApplicationFiles=(m,c)=>{let{rawProjectFiles:d,phxDefinitions:f}=m,{evalExpressionParser:u,referenceStore:F,parsingContext:A}=c,g=A??new s,w=g.startSpan("parseApplicationFiles","build","parse-application-files.ts"),R=i(d,F,g,c);if(!R)return w(),g.toResult(void 0);let S=g.startSpan("RawSpecFiles","parseApplicationFiles","parse-raw-spec.ts"),T=p(R.spec,g);S();let j=g.startSpan("RawMockTemplates","parseApplicationFiles","raw-mock-templates.ts"),O=o(R.mockTemplates,g);if(j(),!T)return w(),g.toResult(void 0);let k=g.startSpan("ResolvedSpecFiles","parseApplicationFiles","resolved-spec-files.ts"),v=l(T,d,g);k();let x=g.startSpan("MergedSpec","parseApplicationFiles","merged-spec.ts"),H=a(v,g);if(x(),g.hasErrors)return w(),g.toResult(void 0);let E=g.startSpan("ApplicationSpec","parseApplicationFiles","application-spec.ts"),M=n({merged:H,migrationFiles:R.migrations,adminMigrationFiles:R.adminMigrations,transformerFiles:R.transformers.map(e=>e.file.name),phxDefinitions:f,evalExpressionParser:u},g);return(E(),M)?(!R.hasWebhookEntry&&(M.appMetadata.useAuthHook||M.appMetadata.useClerk)&&g.warning(t.AUTH_WITHOUT_PROJECT_WEBHOOK,r.AUTH_WITHOUT_PROJECT_WEBHOOK()),w(),g.toResult(e({rawProjectFiles:d,categorizedFiles:R,rawMockTemplates:O,applicationSpec:M}))):(w(),g.toResult(void 0))};
1
+ import{Branded as e}from"@salsita-ai/common/utils";import{ParseContext as t}from"../core/index.js";import{DiagnosticCode as s,diagnosticMessages as r}from"../errors/index.js";import{CategorizedFiles as a}from"./categorize/index.js";import{MergedSpec as i}from"./merge/index.js";import{RawSpecFiles as p}from"./raw-spec/parse-raw-spec.js";import{RawMockTemplates as o}from"./raw-spec/raw-mock-templates.js";import{ResolvedSpecFiles as l}from"./resolve/index.js";import{ApplicationSpec as n}from"./spec/index.js";export const parseApplicationFiles=(m,c)=>{let{rawProjectFiles:d,phxDefinitions:f}=m,{evalExpressionParser:u,referenceStore:F,parsingContext:g}=c,A=g??new t,w=A.startSpan("parseApplicationFiles","build","parse-application-files.ts"),R=a(d,F,A,c);if(!R)return w(),A.toResult(void 0);let S=A.startSpan("RawSpecFiles","parseApplicationFiles","parse-raw-spec.ts"),T=p(R.spec,A);S();let j=A.startSpan("RawMockTemplates","parseApplicationFiles","raw-mock-templates.ts"),O=o(R.mockTemplates,A);if(j(),!T)return w(),A.toResult(void 0);let k=A.startSpan("ResolvedSpecFiles","parseApplicationFiles","resolved-spec-files.ts"),v=l(T,d,A);k();let x=A.startSpan("MergedSpec","parseApplicationFiles","merged-spec.ts"),H=i(v,A);if(x(),A.hasErrors)return w(),A.toResult(void 0);let M=A.startSpan("ApplicationSpec","parseApplicationFiles","application-spec.ts"),E=n({merged:H,migrationFiles:R.migrations,adminMigrationFiles:R.adminMigrations,transformerFiles:R.transformers.map(e=>e.file.name),phxDefinitions:f,evalExpressionParser:u},A);return(M(),E)?(!R.hasWebhookEntry&&!E.appMetadata.useCognito&&(E.appMetadata.useAuthHook||E.appMetadata.useClerk)&&A.warning(s.AUTH_WITHOUT_PROJECT_WEBHOOK,r.AUTH_WITHOUT_PROJECT_WEBHOOK()),w(),A.toResult(e({rawProjectFiles:d,categorizedFiles:R,rawMockTemplates:O,applicationSpec:E}))):(w(),A.toResult(void 0))};