@salsita-ai/sdk 0.50.0-develop.9241bcf09e → 0.50.0-develop.927e2414eb

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 (527) hide show
  1. package/README.md +3 -3
  2. package/dist/admin/common/admin-interface.d.ts +11 -1
  3. package/dist/admin/common/admin-interface.js +1 -1
  4. package/dist/admin/ui/layout/UserProfile.d.ts +1 -1
  5. package/dist/admin/ui/layout/UserProfile.js +1 -1
  6. package/dist/admin/ui/maintenance/ImportPresets.js +1 -1
  7. package/dist/application/mount-application.js +1 -1
  8. package/dist/application/mount-configurator.js +1 -1
  9. package/dist/application/studio-embedding.d.ts +6 -0
  10. package/dist/application/studio-embedding.js +1 -0
  11. package/dist/application-spec/core/enhanced-json-schema.d.ts +5 -6
  12. package/dist/application-spec/core/enhanced-json-schema.js +1 -1
  13. package/dist/application-spec/core/markers/index.d.ts +1 -0
  14. package/dist/application-spec/core/markers/index.js +1 -1
  15. package/dist/application-spec/core/markers/set-in-studio-marker.d.ts +15 -0
  16. package/dist/application-spec/core/markers/set-in-studio-marker.js +1 -0
  17. package/dist/application-spec/errors/diagnostic-codes.d.ts +16 -0
  18. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  19. package/dist/application-spec/errors/diagnostic-messages.d.ts +16 -0
  20. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  21. package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +3 -3
  22. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  23. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +0 -12
  24. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  25. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +5 -1
  26. package/dist/application-spec/generate-application/code/templates/admin-config.js +4 -4
  27. package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
  28. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -6
  29. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.d.ts +1 -1
  30. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +19 -0
  31. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  32. package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
  33. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
  34. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
  35. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
  36. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
  37. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +12 -12
  38. package/dist/application-spec/generate-application/code/templates/globals.js +21 -12
  39. package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
  40. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/sign-in-page-options.d.ts +5 -0
  42. package/dist/application-spec/generate-application/code/templates/sign-in-page-options.js +1 -0
  43. package/dist/application-spec/generate-application/code/templates/skills/core/cli.d.ts +2 -1
  44. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  45. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +2 -1
  46. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.js +1 -1
  47. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  48. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  49. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  50. package/dist/application-spec/generate-application/code/templates/skills/features/{custom-layout/assistant.d.ts → assistant/panel.d.ts} +1 -1
  51. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
  52. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  53. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
  54. package/dist/application-spec/generate-application/code/templates/skills/features/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
  55. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
  56. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +2 -2
  57. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.d.ts +3 -0
  58. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.js +19 -0
  59. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +1 -1
  60. package/dist/application-spec/generate-application/code/templates/skills/features/embedding.d.ts +2 -0
  61. package/dist/application-spec/generate-application/code/templates/skills/features/embedding.js +1 -0
  62. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  63. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +1 -1
  64. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +32 -26
  65. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -3
  66. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -1
  67. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.d.ts +3 -0
  68. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.js +1 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
  70. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  71. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +1 -1
  72. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  73. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  74. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  75. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
  76. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +2 -2
  77. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +1 -1
  78. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -1
  79. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  80. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  81. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +1 -1
  82. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  83. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  84. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  85. package/dist/application-spec/generate-application/code/templates/skills/sdk-channel.d.ts +17 -0
  86. package/dist/application-spec/generate-application/code/templates/skills/sdk-channel.js +1 -0
  87. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
  88. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +3 -2
  89. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +1 -2
  90. package/dist/application-spec/generate-application/code/templates/webhook-index.js +3 -7
  91. package/dist/application-spec/generate-application/code/webhook-safe-files.d.ts +3 -1
  92. package/dist/application-spec/generate-application/code/webhook-safe-files.js +1 -1
  93. package/dist/application-spec/parse-application-files/access/access-handler-kinds.d.ts +18 -0
  94. package/dist/application-spec/parse-application-files/access/access-handler-kinds.js +1 -0
  95. package/dist/application-spec/parse-application-files/access/analyzed-file.d.ts +7 -0
  96. package/dist/application-spec/parse-application-files/access/analyzed-file.js +1 -0
  97. package/dist/application-spec/parse-application-files/access/check-access-handler-files.d.ts +20 -0
  98. package/dist/application-spec/parse-application-files/access/check-access-handler-files.js +1 -0
  99. package/dist/application-spec/parse-application-files/access/check-auth-hook-files.d.ts +17 -0
  100. package/dist/application-spec/parse-application-files/access/check-auth-hook-files.js +1 -0
  101. package/dist/application-spec/parse-application-files/access/index.d.ts +5 -0
  102. package/dist/application-spec/parse-application-files/access/index.js +1 -0
  103. package/dist/application-spec/parse-application-files/access/sign-in-control.d.ts +7 -0
  104. package/dist/application-spec/parse-application-files/access/sign-in-control.js +1 -0
  105. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +2 -1
  106. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  107. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +30 -4
  108. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  109. package/dist/application-spec/parse-application-files/categorize/webhook-safety.js +1 -1
  110. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +16 -1
  111. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  112. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  113. package/dist/application-spec/parse-application-files/merge/merged-spec.d.ts +7 -1
  114. package/dist/application-spec/parse-application-files/merge/merged-spec.js +1 -1
  115. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  116. package/dist/application-spec/parse-application-files/parse-common-admin-spec.js +1 -1
  117. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
  118. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
  119. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +29 -6
  120. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  121. package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
  122. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +11 -3
  123. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  124. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  125. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.d.ts +6 -0
  126. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  127. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +2 -1
  128. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  129. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.d.ts +5 -2
  130. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  131. package/dist/application-spec/parse-application-files/spec/model/session-fields/index.d.ts +1 -0
  132. package/dist/application-spec/parse-application-files/spec/model/session-fields/index.js +1 -0
  133. package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.d.ts +15 -0
  134. package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.js +1 -0
  135. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  136. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
  137. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  138. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
  139. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
  140. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +6 -9
  141. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  142. package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
  143. package/dist/client/authenticated-client.d.ts +5 -1
  144. package/dist/client/authenticated-client.js +1 -1
  145. package/dist/client/authorized-client.d.ts +3 -1
  146. package/dist/client/authorized-client.js +1 -1
  147. package/dist/client/base-client.d.ts +15 -1
  148. package/dist/client/base-client.js +1 -1
  149. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  150. package/dist/client/cli-client/cli-api-client.js +1 -0
  151. package/dist/client/cli-client/index.d.ts +2 -0
  152. package/dist/client/cli-client/index.js +1 -0
  153. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  154. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  155. package/dist/client/contract.d.ts +39 -4
  156. package/dist/client/contract.js +1 -1
  157. package/dist/client/index.d.ts +3 -1
  158. package/dist/client/index.js +1 -1
  159. package/dist/client/phoenix-api.d.ts +7834 -2378
  160. package/dist/client/unauthenticated-client.d.ts +2 -1
  161. package/dist/client/unauthenticated-client.js +1 -1
  162. package/dist/client/version.d.ts +11 -0
  163. package/dist/client/version.js +1 -1
  164. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  165. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +16 -4
  166. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +25 -10
  167. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  168. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +15 -5
  169. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +1 -0
  170. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -1
  171. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +7 -3
  172. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -2
  173. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
  174. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
  175. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  176. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  177. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +4 -2
  178. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  179. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +9 -3
  180. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  181. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +6 -3
  182. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -1
  183. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
  184. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
  185. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
  186. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  187. package/dist/configurator/common/configurator-interface.d.ts +13 -1
  188. package/dist/configurator/common/configurator-interface.js +1 -1
  189. package/dist/configurator/scene/animations/Animations.js +1 -1
  190. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  191. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  192. package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
  193. package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
  194. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
  195. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  196. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
  197. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
  198. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
  199. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  200. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  201. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +6 -5
  202. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  203. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +4 -3
  204. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  205. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  206. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  207. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
  208. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
  209. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
  210. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
  211. package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
  212. package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
  213. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +2 -3
  214. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
  215. package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
  216. package/dist/configurator/ui/assistant/drawing/index.js +1 -1
  217. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
  218. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
  219. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
  220. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -1
  221. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
  222. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -1
  223. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +5 -0
  224. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  225. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  226. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  227. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  228. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  229. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  230. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  231. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  232. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  233. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  234. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  235. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  236. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  237. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  238. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  239. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  240. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  241. package/dist/configurator/ui/index.d.ts +1 -1
  242. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  243. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  244. package/dist/docs/index.json +117 -2
  245. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  246. package/dist/docs/layouts/preview/always.mdx +22 -0
  247. package/dist/docs/layouts/view-controls.mdx +2 -0
  248. package/dist/docs/other-features/domain-actions.mdx +53 -56
  249. package/dist/docs/phoenix/admin.mdx +5 -40
  250. package/dist/docs/phoenix/application-states.mdx +1 -1
  251. package/dist/docs/phoenix/assistant/actions.mdx +183 -0
  252. package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
  253. package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
  254. package/dist/docs/phoenix/assistant/overview.mdx +137 -0
  255. package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
  256. package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
  257. package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
  258. package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
  259. package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
  260. package/dist/docs/phoenix/clerk-sign-in.mdx +9 -5
  261. package/dist/docs/phoenix/configurator-interface.mdx +18 -33
  262. package/dist/docs/phoenix/csp.mdx +3 -1
  263. package/dist/docs/phoenix/data-sources.mdx +26 -30
  264. package/dist/docs/phoenix/deployments.mdx +3 -3
  265. package/dist/docs/phoenix/finalization.mdx +0 -1
  266. package/dist/docs/phoenix/integration/authentication-external.mdx +17 -15
  267. package/dist/docs/phoenix/integration/authentication-internal.mdx +1 -1
  268. package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -4
  269. package/dist/docs/phoenix/integration/integration-modes-external.mdx +2 -2
  270. package/dist/docs/phoenix/integration/integration-modes-internal.mdx +9 -0
  271. package/dist/docs/phoenix/layout-slots.mdx +1 -1
  272. package/dist/docs/phoenix/migrations.mdx +1 -1
  273. package/dist/docs/phoenix/phoenix-cli.mdx +90 -57
  274. package/dist/docs/phoenix/project-structure.mdx +30 -15
  275. package/dist/docs/phoenix/publishing.mdx +21 -28
  276. package/dist/docs/phoenix/sdk-builder-workflow.mdx +51 -34
  277. package/dist/docs/phoenix/sessions-and-access.mdx +171 -164
  278. package/dist/docs/phoenix/webhook-membership.mdx +4 -1
  279. package/dist/docs/phoenix/webhooks.mdx +93 -116
  280. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  281. package/dist/domain/application/access/access-handlers.d.ts +19 -0
  282. package/dist/domain/application/access/access-handlers.js +1 -0
  283. package/dist/domain/application/access/anonymous-handler.d.ts +16 -0
  284. package/dist/domain/application/access/anonymous-handler.js +1 -0
  285. package/dist/domain/application/access/chunk-scopes-handler.d.ts +27 -0
  286. package/dist/domain/application/access/chunk-scopes-handler.js +1 -0
  287. package/dist/domain/application/access/code-handler.d.ts +16 -0
  288. package/dist/domain/application/access/code-handler.js +1 -0
  289. package/dist/domain/application/access/index.d.ts +7 -0
  290. package/dist/domain/application/access/index.js +1 -0
  291. package/dist/domain/application/access/refresh-handler.d.ts +16 -0
  292. package/dist/domain/application/access/refresh-handler.js +1 -0
  293. package/dist/domain/application/access/signed-in-handler.d.ts +44 -0
  294. package/dist/domain/application/access/signed-in-handler.js +1 -0
  295. package/dist/domain/application/access/visitor-handler.d.ts +23 -0
  296. package/dist/domain/application/access/visitor-handler.js +1 -0
  297. package/dist/domain/application/application-config.d.ts +36 -1
  298. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  299. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  300. package/dist/domain/application/assistant/build-assistant-lenses.js +3 -3
  301. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  302. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +6 -2
  303. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  304. package/dist/domain/application/assistant/index.d.ts +1 -0
  305. package/dist/domain/application/assistant/index.js +1 -1
  306. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  307. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +14 -2
  308. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  309. package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
  310. package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
  311. package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
  312. package/dist/domain/application/assistant/session-setup/index.js +1 -1
  313. package/dist/domain/application/assistant-mutations.js +1 -1
  314. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  315. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  316. package/dist/domain/application/configurator-builder.d.ts +2 -0
  317. package/dist/domain/application/configurator-builder.js +1 -1
  318. package/dist/domain/application/index.d.ts +2 -1
  319. package/dist/domain/application/index.js +1 -1
  320. package/dist/domain/application/standard-properties.d.ts +1 -1
  321. package/dist/domain/application/standard-properties.js +1 -1
  322. package/dist/domain/available-system-components/available-system-components.js +1 -1
  323. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  324. package/dist/domain/core/component/system-component-filter.js +1 -1
  325. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  326. package/dist/domain/core/component/view-state-component.js +1 -1
  327. package/dist/domain/core/domain-factory.d.ts +6 -0
  328. package/dist/domain/core/domain-factory.js +1 -1
  329. package/dist/domain/core/fit-session-data.d.ts +16 -0
  330. package/dist/domain/core/fit-session-data.js +1 -0
  331. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  332. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  333. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  334. package/dist/domain/domain-runtime/domain-context/actions.d.ts +4 -0
  335. package/dist/domain/domain-runtime/domain-context/actions.js +1 -1
  336. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +8 -0
  337. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  338. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  339. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  340. package/dist/domain/domain-runtime/domain-context/types.d.ts +8 -4
  341. package/dist/domain/domain-runtime/domain-runtime.d.ts +8 -0
  342. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
  343. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  344. package/dist/domain/extensions/index.d.ts +0 -1
  345. package/dist/domain/extensions/index.js +1 -1
  346. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +4 -0
  347. package/dist/domain/spec/sections/actions.d.ts +3 -2
  348. package/dist/domain/spec/sections/app-metadata.d.ts +12 -0
  349. package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
  350. package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
  351. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +17 -6
  352. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +28 -5
  353. package/dist/domain/spec/sections/assistant/index.d.ts +1 -0
  354. package/dist/domain/system-components/index.d.ts +1 -0
  355. package/dist/domain/system-components/index.js +1 -1
  356. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  357. package/dist/domain/system-components/navigation/index.js +1 -0
  358. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  359. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  360. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  361. package/dist/extras/clerk/index.d.ts +6 -0
  362. package/dist/extras/cognito/AccountAvatar.d.ts +7 -0
  363. package/dist/extras/cognito/AccountAvatar.js +1 -0
  364. package/dist/extras/cognito/AccountControl.d.ts +14 -0
  365. package/dist/extras/cognito/AccountControl.js +1 -0
  366. package/dist/extras/cognito/AdminSignInPage.d.ts +26 -0
  367. package/dist/extras/cognito/AdminSignInPage.js +1 -0
  368. package/dist/extras/cognito/CognitoSignInPage.d.ts +8 -2
  369. package/dist/extras/cognito/CognitoSignInPage.js +1 -1
  370. package/dist/extras/cognito/ConfiguratorSignInPage.d.ts +19 -0
  371. package/dist/extras/cognito/ConfiguratorSignInPage.js +1 -0
  372. package/dist/extras/cognito/SignInFailurePage.d.ts +11 -0
  373. package/dist/extras/cognito/SignInFailurePage.js +1 -0
  374. package/dist/extras/cognito/SignInGateLayout.d.ts +25 -0
  375. package/dist/extras/cognito/SignInGateLayout.js +1 -0
  376. package/dist/extras/cognito/SignInNotice.d.ts +9 -0
  377. package/dist/extras/cognito/SignInNotice.js +1 -0
  378. package/dist/extras/cognito/index.d.ts +4 -0
  379. package/dist/extras/cognito/index.js +1 -1
  380. package/dist/globals/index.d.ts +5 -0
  381. package/dist/i18n/locales/cs/messages.js +1 -1
  382. package/dist/i18n/locales/da/messages.js +1 -1
  383. package/dist/i18n/locales/de/messages.js +1 -1
  384. package/dist/i18n/locales/de-AT/messages.js +1 -1
  385. package/dist/i18n/locales/en/messages.js +1 -1
  386. package/dist/i18n/locales/en-AU/messages.js +1 -1
  387. package/dist/i18n/locales/en-GB/messages.js +1 -1
  388. package/dist/i18n/locales/es/messages.js +1 -1
  389. package/dist/i18n/locales/fr/messages.js +1 -1
  390. package/dist/i18n/locales/hu/messages.js +1 -1
  391. package/dist/i18n/locales/it/messages.js +1 -1
  392. package/dist/i18n/locales/nl/messages.js +1 -1
  393. package/dist/i18n/locales/pl/messages.js +1 -1
  394. package/dist/i18n/locales/pt/messages.js +1 -1
  395. package/dist/i18n/locales/ro/messages.js +1 -1
  396. package/dist/i18n/locales/sk/messages.js +1 -1
  397. package/dist/i18n/locales/tr/messages.js +1 -1
  398. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  399. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  400. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  401. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +12 -3
  402. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  403. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  404. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  405. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  406. package/dist/phoenix/application-spec/index.d.ts +1 -1
  407. package/dist/phoenix/application-spec/index.js +1 -1
  408. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +10 -3
  409. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  410. package/dist/phoenix/cli.js +1 -1
  411. package/dist/phoenix/commands/account/whoami.d.ts +8 -2
  412. package/dist/phoenix/commands/account/whoami.js +4 -3
  413. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  414. package/dist/phoenix/commands/deploy.d.ts +7 -2
  415. package/dist/phoenix/commands/deploy.js +9 -3
  416. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  417. package/dist/phoenix/commands/deps/deps.js +2 -2
  418. package/dist/phoenix/commands/feedback.d.ts +2 -2
  419. package/dist/phoenix/commands/feedback.js +1 -1
  420. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  421. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  422. package/dist/phoenix/commands/init.d.ts +2 -2
  423. package/dist/phoenix/commands/init.js +1 -1
  424. package/dist/phoenix/commands/login.d.ts +1 -1
  425. package/dist/phoenix/commands/login.js +2 -2
  426. package/dist/phoenix/commands/logout.js +1 -1
  427. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  428. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  429. package/dist/phoenix/services/cli-credentials.d.ts +13 -2
  430. package/dist/phoenix/services/cli-credentials.js +2 -2
  431. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  432. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  433. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  434. package/dist/phoenix/services/cli-server/index.js +1 -0
  435. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +25 -0
  436. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  437. package/dist/phoenix/services/development-credential.js +1 -1
  438. package/dist/phoenix/services/frontend-config.d.ts +2 -0
  439. package/dist/phoenix/services/index.d.ts +4 -2
  440. package/dist/phoenix/services/index.js +1 -1
  441. package/dist/phoenix/services/phoenix-regions.d.ts +15 -5
  442. package/dist/phoenix/services/phoenix-regions.js +1 -1
  443. package/dist/phoenix/services/prepare-development-environment.js +2 -2
  444. package/dist/phoenix/services/session/phoenix-application.js +1 -1
  445. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  446. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  447. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  448. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  449. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  450. package/dist/phoenix/services/spec-project/index.js +1 -0
  451. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  452. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  453. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  454. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  455. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  456. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  457. package/dist/phoenix/services/variant-file-session.js +1 -1
  458. package/dist/phoenix/services/vite-config.js +1 -1
  459. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  460. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  461. package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.d.ts +6 -0
  462. package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.js +1 -1
  463. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +2 -2
  464. package/dist/react-sdk/application-runtime/integration/integration-mode.d.ts +30 -0
  465. package/dist/react-sdk/application-runtime/integration/integration-mode.js +1 -1
  466. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +20 -6
  467. package/dist/react-sdk/application-runtime/session/actions.d.ts +2 -1
  468. package/dist/react-sdk/application-runtime/session/actions.js +1 -1
  469. package/dist/react-sdk/application-runtime/session/initialize.js +1 -1
  470. package/dist/react-sdk/application-runtime/session/selectors.d.ts +2 -0
  471. package/dist/react-sdk/application-runtime/session/selectors.js +1 -1
  472. package/dist/react-sdk/application-runtime/session/session-service.d.ts +64 -2
  473. package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
  474. package/dist/react-sdk/application-runtime/session/session-token.d.ts +8 -0
  475. package/dist/react-sdk/application-runtime/session/session-token.js +1 -1
  476. package/dist/react-sdk/application-runtime/session/types.d.ts +6 -1
  477. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  478. package/dist/react-sdk/domain-context/index.d.ts +3 -2
  479. package/dist/react-sdk/domain-context/index.js +1 -1
  480. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
  481. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
  482. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
  483. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
  484. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  485. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  486. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  487. package/dist/react-sdk/session/AccessDeniedAdminPage.d.ts +13 -0
  488. package/dist/react-sdk/session/AccessDeniedAdminPage.js +1 -0
  489. package/dist/react-sdk/session/AccessDeniedPage.d.ts +20 -0
  490. package/dist/react-sdk/session/AccessDeniedPage.js +1 -0
  491. package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
  492. package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
  493. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  494. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  495. package/dist/react-sdk/session/index.d.ts +3 -0
  496. package/dist/react-sdk/session/index.js +1 -1
  497. package/dist/react-sdk/session/server-sign-in-support.d.ts +16 -0
  498. package/dist/react-sdk/session/server-sign-in-support.js +1 -0
  499. package/dist/react-sdk/session/sign-in-address.d.ts +18 -0
  500. package/dist/react-sdk/session/sign-in-address.js +1 -0
  501. package/dist/react-sdk/session/studio-frame.d.ts +14 -0
  502. package/dist/react-sdk/session/studio-frame.js +1 -0
  503. package/dist/react-sdk/session/use-sign-in.d.ts +51 -0
  504. package/dist/react-sdk/session/use-sign-in.js +1 -0
  505. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  506. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  507. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
  508. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  509. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  510. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  511. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  512. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  513. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  514. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  515. package/dist/webhook/builders/auth-handler-builder.d.ts +21 -1
  516. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  517. package/dist/webhook/builders/common.d.ts +9 -0
  518. package/dist/webhook/builders/webhook-builder.d.ts +18 -0
  519. package/dist/webhook/builders/webhook-builder.js +1 -1
  520. package/package.json +5 -4
  521. package/schema/domain-spec.json +224 -65
  522. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/assistant.js +0 -43
  523. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
  524. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.d.ts +0 -14
  525. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.js +0 -4
  526. package/dist/domain/extensions/view-controls.d.ts +0 -25
  527. package/dist/domain/extensions/view-controls.js +0 -1
@@ -11,6 +11,7 @@ The Phoenix CLI (`phoenix` command) is the unified tool for all configurator dev
11
11
  - [SDK Development](#sdk-development)
12
12
  - [Utilities](#utilities)
13
13
  - [Deployment](#deployment)
14
+ - [SDK Builders](#sdk-builders)
14
15
 
15
16
  ## Starting a New Project
16
17
 
@@ -33,7 +34,7 @@ pnpm phoenix dev
33
34
  1. Refuses to run when a `spec/` folder already exists, so it never touches an existing project.
34
35
  2. Writes a `package.json` when the folder has none, and an existing one is kept, as long as it depends on the SDK. Either way, `package.json` gains the entries it lacks, and an entry it already has stays as it is:
35
36
  - the CLI's SDK version, in a new `package.json`;
36
- - every package the SDK requires as a peer, at the version [`phoenix deps`](#phoenix-deps) writes: the lowest of the SDK's range, with the `@types/*` packages in `devDependencies`. A peer the project declares in any dependency field counts, whatever its version. `@clerk/clerk-react` is not among them, because the starter spec does not set `useClerk`;
37
+ - every package the SDK requires as a peer, at the version [`phoenix deps`](#phoenix-deps) writes: the lowest of the SDK's range, with the `@types/*` packages in `devDependencies`. A peer the project declares in any dependency field counts, whatever its version. `@clerk/clerk-react` is not among them, because the starter spec does not set `access: legacy-clerk`;
37
38
  - `eslint` and `prettier` in `devDependencies`, at the versions the SDK runs itself, so an editor formats and lints with the same versions as `phoenix check`.
38
39
 
39
40
  With these, the install gives the project everything `phoenix dev`, `build` and `check` need. `init` writes no `packageManager` field and no package-manager settings: a project that installs with pnpm 11 adds the settings in [Package manager](?path=/docs/phoenix-project-structure--docs#package-manager) itself.
@@ -69,18 +70,20 @@ Set `PHOENIX_TELEMETRY_DISABLED=1` to opt out. The opted-out CLI neither sends t
69
70
 
70
71
  ### Which project `phoenix dev` develops in
71
72
 
72
- The starter `spec/application.yaml` starts with `project: default`. `project` names the server project the application is developed in: a project slug, or `default` for the default project of the workspace you are signed in to. `phoenix dev` resolves the project in this order:
73
+ `project` in `spec/application.yaml` names the server project the application is developed and deployed in, by its slug. The starter spec that `phoenix init` writes has no `project` line. `phoenix dev` and `phoenix deploy` choose the project in this order:
73
74
 
74
- 1. `--projectSlug`
75
- 2. `PROJECT_SLUG` in `.env`
76
- 3. `project` in the spec
75
+ 1. `--project <slug>`. `phoenix dev` also accepts `--projectSlug`, and reads `PROJECT_SLUG` in `.env` after the flags; `phoenix deploy` does not read `PROJECT_SLUG`. A project named this way wins over the spec, and the CLI says so when the spec names another one.
76
+ 2. `project` in the spec. A spec without `project`, or one that still says `project: default`, names no project: `default` is not a project slug, and no project can be created with it.
77
+ 3. The projects your sign-in or token can reach, which `phoenix whoami` lists by workspace. In a terminal the CLI shows them in a select, even when there is only one, and then asks whether to write `project: <slug>` into `spec/application.yaml`. Without a terminal (a coding agent, CI or piped input) it uses the only project it can reach and prints the `project: <slug>` line to add; when it can reach several, it stops and lists their slugs by workspace. When it can reach none, it stops and tells you to create a project in Studio or ask a workspace administrator for access.
77
78
 
78
- `phoenix dev` fails when none of them names a project. The field is read only by the CLI and never reaches the built application.
79
+ A project is named by its slug. When you can reach projects with the same slug in two workspaces, the slug alone is refused with the names that tell them apart, `<project>--<workspace>` (for example `shop--acme`), and the select shows those names; use one with `--project` or as `project:` in the spec. It names the project of that workspace only.
80
+
81
+ When `--project` names a project and the spec names none, the CLI offers to save it the same way: in a terminal it asks, without one it prints the line to add. The spec is written only when you answer yes. The field is read only by the CLI and never reaches the built application.
79
82
 
80
83
  ### How `phoenix dev` authenticates
81
84
 
82
- - **Signed in with `phoenix login`** (SDK-builder workspaces): nothing else is needed. On start, `phoenix dev` asks the server for your development environment in the project; the server creates it on the first run. Every user gets their own development environment, so teammates don't overwrite each other's schema or webhook tunnel. The server comes from `--serverUrl`, then `SERVER_URL` in `.env`, then the region (`--region` or `PHOENIX_REGION`, default `eu`). `phoenix dev` hands that server to the preview as `SERVER_URL`, so the preview talks to the server the development deployment was prepared on even without a `.env`, and prints the preview address as `Preview: <url>` once the dev server is up (also written to `.phoenix/phoenix-dev.log`).
83
- - **With a Studio development environment**: create the project and a development environment in PHX Studio and paste its `.env` block (`SERVER_URL`, `PROJECT_SLUG`, `ENVIRONMENT_SLUG`, `DEVELOPMENT_KEY`) into `.env`. A `DEVELOPMENT_KEY` always takes precedence over the sign-in, and `PROJECT_SLUG` overrides the starter spec's `project: default`, which a development key cannot resolve.
85
+ - **Signed in with `phoenix login`**: nothing else is needed. `phoenix dev` uses the saved sign-in only and does not read `PHOENIX_API_TOKEN`. On start, `phoenix dev` asks the server for your development environment in the project; the server creates it on the first run. Every user gets their own development environment, so teammates don't overwrite each other's schema or webhook tunnel. The server comes from the same rule as for the other sign-in commands, see [Which server the CLI talks to](#which-server-the-cli-talks-to). When `PHOENIX_API_TOKEN` is set, `phoenix dev` says that it ignores it. `phoenix dev` hands that server to the preview as `SERVER_URL`, so the preview talks to the server the development deployment was prepared on even without a `.env`, and prints the preview address as `Preview: <url>` once the dev server is up (also written to `.phoenix/phoenix-dev.log`).
86
+ - **With a Studio development environment**: create the project and a development environment in PHX Studio and paste its `.env` block (`SERVER_URL`, `PROJECT_SLUG`, `ENVIRONMENT_SLUG`, `DEVELOPMENT_KEY`) into `.env`. A `DEVELOPMENT_KEY` always takes precedence over the sign-in. A development key lists no projects to choose from, so the project must be named by `PROJECT_SLUG`, a flag or the spec.
84
87
 
85
88
  ## Local Development Setup
86
89
 
@@ -208,7 +211,7 @@ spec/application.yaml → Server prepares environment → CLI writes the generat
208
211
  | -------- | ---------------- | --------------------------------------------- |
209
212
  | `dev` | `phoenix dev` | Dev server with hot reload |
210
213
  | `build` | `phoenix build` | Production build |
211
- | `deploy` | `phoenix deploy` | Build and publish the project |
214
+ | `deploy` | `phoenix deploy` | Build and publish the project into a preview |
212
215
  | `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
213
216
  | `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
214
217
 
@@ -238,7 +241,7 @@ These are automatically computed by the server and written to the generated env
238
241
  | `DD_SERVICE_NAME` | Datadog service name |
239
242
  | `TERRAFORM_BACKEND_BUCKET` | Terraform backend bucket |
240
243
 
241
- **Conditional Clerk/OAuth variables** (generated when `useClerk` is enabled in `spec/application.yaml`):
244
+ **Conditional Clerk/OAuth variables** (generated when `spec/application.yaml` sets `access: legacy-clerk`):
242
245
 
243
246
  - `CLERK_PUBLISHABLE_KEY`
244
247
  - `CLERK_API_KEY`
@@ -299,7 +302,7 @@ The frontend reads these at runtime from the generated config:
299
302
  | `DEPLOYMENT_RESOURCES_PATH` | No | `deployment-resources` |
300
303
  | Clerk vars (if enabled) | Yes | — |
301
304
 
302
- A development environment keeps the AI assistant's conversation when the assistant setup (manifest, instructions, AI settings) changes, and applies the new setup from the next message on. Set `ASSISTANT_STRICT_THREADS=true` in `.env` to try the behavior of every other environment locally, where a changed setup locks the conversation and the next message continues it in a summarized one. The variable has no effect outside a development environment.
305
+ A development environment keeps the AI assistant's conversation when the assistant setup (manifest, instructions, AI settings) changes, and applies the new setup from the next message on. Set `ASSISTANT_STRICT_THREADS=true` in `.env` to try the behavior of every other environment locally, where a changed setup locks the conversation and the next message continues it in a summarized one. The variable has no effect outside a development environment. See [When the setup changes](?path=/docs/phoenix-assistant-instructions-and-ai-settings--docs#when-the-setup-changes).
303
306
 
304
307
  ### Precedence
305
308
 
@@ -309,6 +312,8 @@ Environment variables are resolved in this order (highest to lowest priority):
309
312
  2. [The generated env file](#the-generated-env-file): `.env.generated` in the project root when the project has one, otherwise `.phoenix/.env.generated`
310
313
  3. `.env` (manual overrides)
311
314
 
315
+ [`PHOENIX_API_TOKEN`](#phoenix_api_token) is the exception: `phoenix deploy` and `phoenix whoami` read it from the process environment only.
316
+
312
317
  ### Generated Config Files
313
318
 
314
319
  The Phoenix CLI auto-generates config files that read these variables:
@@ -324,20 +329,21 @@ Starts the full development environment: Vite dev server, development webhook tu
324
329
 
325
330
  When it runs as the signed-in Studio user, `phoenix dev` starts in **agent mode**, for projects an AI agent builds. The editor still runs, so the inspect commands work, but its UI is hidden and the preview shows only the configurator. Every dev error that would show a detailed error page or Vite's error overlay shows an "Agent at work" screen instead, with no error details. The details go to the terminal and `.phoenix/phoenix-dev.log`. A corner badge shows when the latest change didn't build, and the page recovers by itself after the next successful rebuild. With a development key, `--local` or an offline persistence mode, dev keeps the visible editor and the detailed error pages. Agent mode comes from the credentials alone: `--editor` and `--no-editor`, or `ENABLE_EDITOR` in the environment or `.env`, keep their meaning on every route, the editor or the configurator alone with the detailed error pages; the value development preparation writes into the generated env file does not count for dev. `phoenix sync`, `build` and `clean` keep an agent-mode page that dev generated unless the flag or `ENABLE_EDITOR` in the environment or `.env` says otherwise; without one they choose as before, with the generated env file's `ENABLE_EDITOR` ahead of `.env`.
326
331
 
327
- | Flag | Env Variable | Default | Description |
328
- | ----------------------- | ------------------ | -------------------- | ------------------------------------------------------------------------------- |
329
- | `--workspace` | — | from `.phoenix.json` | Override workspace mode |
330
- | `--editor` | `ENABLE_EDITOR` | see agent mode above | Show the editor (`true`) or the configurator alone (`false`) |
331
- | `--editorWsPort` | `EDITOR_WS_PORT` | `3020` | Editor WebSocket port |
332
- | `--debug` | `DEBUG` | `false` | Verbose logging |
333
- | `--projectSlug` | `PROJECT_SLUG` | `local` | Project slug |
334
- | `--environmentSlug` | `ENVIRONMENT_SLUG` | package.json name | Environment slug |
335
- | `--withLingui` | `WITH_LINGUI` | `false` | Enable i18n extraction/compilation and watch i18n sources during dev |
336
- | `--persistence` | `PERSISTENCE_MODE` | `server` | Persistence mode |
337
- | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache, and prepare the development deployment again |
338
- | `--serverUrl` | `SERVER_URL` | the region's server | Phoenix server URL |
339
- | `--region` | `PHOENIX_REGION` | `eu` | Region of the signed-in workspace, used when no server URL is set |
340
- | `--skipUpload` / `--su` | `SKIP_UPLOAD` | `false` | Skip the S3 asset upload when the development deployment is prepared at startup |
332
+ | Flag | Env Variable | Default | Description |
333
+ | ------------------- | ------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------------- |
334
+ | `--workspace` | — | from `.phoenix.json` | Override workspace mode |
335
+ | `--editor` | `ENABLE_EDITOR` | see agent mode above | Show the editor (`true`) or the configurator alone (`false`) |
336
+ | `--editorWsPort` | `EDITOR_WS_PORT` | `3020` | Editor WebSocket port |
337
+ | `--debug` | `DEBUG` | `false` | Verbose logging |
338
+ | `--project` | — | — | Slug of the project to develop in, instead of `project` of the spec |
339
+ | `--projectSlug` | `PROJECT_SLUG` | `local` with `--local`; the package name in offline modes | Same as `--project` |
340
+ | `--environmentSlug` | `ENVIRONMENT_SLUG` | package.json name | Environment slug |
341
+ | `--withLingui` | `WITH_LINGUI` | `false` | Enable i18n extraction/compilation and watch i18n sources during dev |
342
+ | `--persistence` | `PERSISTENCE_MODE` | `server` | Persistence mode |
343
+ | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache, and prepare the development deployment again |
344
+ | `--serverUrl` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL |
345
+ | `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Region you are signed in to |
346
+ | `--skipUpload` | `SKIP_UPLOAD` | `false` | Skip the S3 asset upload when the development deployment is prepared at startup |
341
347
 
342
348
  With the application-spec pipeline, `phoenix dev` creates an empty `src/` folder when the project has none, so that it rebuilds when the first source file, such as `src/webhooks/index.ts`, is added.
343
349
 
@@ -345,7 +351,7 @@ By default, with the application-spec pipeline, `phoenix dev` bootstraps missing
345
351
 
346
352
  The SDK's own Lingui CLI uses the configuration generated in `.phoenix/.linguirc`, both for `--withLingui` and when `phoenix sync` and `phoenix build` extract and compile the catalogs; see [Root Level Files](?path=/docs/phoenix-project-structure--docs#root-level-files). The dev server and `phoenix build` compile the Lingui macros (`msg`, `t`, `Trans` and the others, imported from `@lingui/core/macro`, `@lingui/react/macro` or `@lingui/macro`) with the SDK's own Lingui macro plugin and the same configuration, so the project needs neither `babel-plugin-macros` nor `@lingui/macro` for them. Babel macros of other packages are not compiled.
347
353
 
348
- In `server` persistence mode the project comes from `--projectSlug`, `PROJECT_SLUG` or `project` in the spec, and the credential from `DEVELOPMENT_KEY` or the `phoenix login` sign-in; see [Starting a New Project](#starting-a-new-project). When signed in, the environment is always your own development environment and `--environmentSlug` is ignored.
354
+ In `server` persistence mode the project comes from `--project` or `--projectSlug`, `PROJECT_SLUG`, `project` in the spec or, when signed in, the projects you can reach (see [Which project `phoenix dev` develops in](#which-project-phoenix-dev-develops-in)), and the credential from `DEVELOPMENT_KEY` or the `phoenix login` sign-in; see [Starting a New Project](#starting-a-new-project). When signed in, the environment is always your own development environment and `--environmentSlug` is ignored.
349
355
 
350
356
  The dev server watches for changes in:
351
357
 
@@ -459,7 +465,7 @@ With the application-spec pipeline, sync never writes `package.json`. Before it
459
465
 
460
466
  ### `phoenix deps`
461
467
 
462
- Brings `package.json` in line with the SDK's peer dependencies: the packages the SDK's code imports and the project installs next to it, so the project and the SDK share one copy. The `peerDependencies` of the installed `@salsita-ai/sdk` decide which packages and which versions. `@clerk/clerk-react` is needed only when the spec sets `useClerk`.
468
+ Brings `package.json` in line with the SDK's peer dependencies: the packages the SDK's code imports and the project installs next to it, so the project and the SDK share one copy. The `peerDependencies` of the installed `@salsita-ai/sdk` decide which packages and which versions. `@clerk/clerk-react` is needed only when the spec sets `access: legacy-clerk`.
463
469
 
464
470
  ```bash
465
471
  pnpm phoenix deps
@@ -753,42 +759,69 @@ For full deployment documentation including CI/CD integration, environment manag
753
759
 
754
760
  ## SDK Builders
755
761
 
756
- SDK-builder workspaces sign the CLI in with a personal API token instead of project keys, and deploy by uploading the project. See [SDK Builder Workflow](?path=/docs/phoenix-sdk-builder-workflow--docs) for the whole flow.
762
+ SDK builders sign the CLI in with an API token instead of project keys, and deploy by uploading the project. A token is one of three kinds: a personal token from `phoenix login`, which follows your access across all your workspaces; a workspace-bound token from the older `phoenix login <workspace>`; or a deploy-only automation token for CI, passed as [`PHOENIX_API_TOKEN`](#phoenix_api_token). See [SDK Builder Workflow](?path=/docs/phoenix-sdk-builder-workflow--docs) for the whole flow.
757
763
 
758
- ### `phoenix login <customer>`
764
+ ### `phoenix login [workspace]`
759
765
 
760
- Signs the CLI in to the SDK-builder workspace `<customer>`:
766
+ Signs the CLI in to your Phoenix account. Run it without an argument: the token is personal, follows your current access across all your SDK-builder workspaces, and needs no workspace slug.
761
767
 
762
- 1. Opens Studio, where you name the token and approve the sign-in (use `--no-open` to only print the link). CLI sign-in requires an active workspace membership with either workspace Superadmin or at least one project Superadmin assignment. The token follows your current access: workspace Superadmins can work with every project, while project Superadmins can work only with their assigned projects. The page shows the workspace, your account, the computer the CLI runs on and how long the link still works. The CLI suggests the name `phoenix CLI on <computer>`; change it so you can tell your sign-ins apart later.
768
+ 1. Opens Studio, where you name the token and approve the sign-in (use `--no-open` to only print the link). Approving needs only an active account; developing and deploying need a current project Superadmin grant or workspace Superadmin membership, and the token follows that access as it changes. The page shows your account, the computer the CLI runs on and how long the link still works. The CLI suggests the name `phoenix CLI on <computer>`; change it so you can tell your sign-ins apart later.
763
769
  2. Studio sends a one-time code back to the CLI on `127.0.0.1`.
764
770
  3. The CLI exchanges the code for a token with the name you approved, and sends the browser back to Studio, which confirms the sign-in.
765
771
 
766
772
  **Deny** in Studio stops the CLI at once: it exits with `The sign-in was denied in Studio` and no token is created. The link works for five minutes and only for the CLI that printed it; after that, Studio shows that it no longer works and the CLI gives up.
767
773
 
768
- The token is stored in `~/.phoenix/credentials.json`, readable only by you, per server, together with the Studio URL of the sign-in; `PHOENIX_CREDENTIALS_FILE` moves the file. The token works until you revoke it. Signing in again to the same server revokes the token it replaces; the CLI warns if the server could not revoke it.
774
+ The token is stored in `~/.phoenix/credentials.json`, readable only by you, with one entry per server, together with the Studio URL of the sign-in; `PHOENIX_CREDENTIALS_FILE` moves the file. The token works until you revoke it. Signing in again to the same server revokes the token it replaces; when the server could not revoke it, the CLI warns and names Studio's **Tokens** page, where you can revoke it yourself.
775
+
776
+ | Flag | Env | Default | Description |
777
+ | ---------------------- | ---------------- | -------------------------------------------- | ------------------------------------------------ |
778
+ | `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Phoenix region to sign in to: `eu` or `us` |
779
+ | `--serverUrl` / `--su` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL, for a local or custom server |
780
+ | `--studioUrl` | — | the Studio of the server | Studio URL matching the server |
781
+ | `--open` | — | `true` | Open the approval page in your browser |
782
+
783
+ The CLI prints the server it signs in to, and refuses a server and a Studio that do not belong to the same installation; this holds for the older workspace form too, whose Studio is a subdomain of the server's Studio. The Studio is known only for the server of a region, so a local or custom server needs `--studioUrl`.
769
784
 
770
- | Flag | Default | Description |
771
- | ---------------------- | ------------------------------------ | ------------------------------------------------ |
772
- | `--region` | `eu` | Phoenix region of the workspace: `eu` or `us` |
773
- | `--serverUrl` / `--su` | the region's server | Phoenix server URL, for a local or custom server |
774
- | `--studioUrl` | the workspace's Studio in the region | Studio URL of the workspace |
775
- | `--open` | `true` | Open the approval page in your browser |
785
+ #### Which server the CLI talks to
776
786
 
777
- The sign-in follows the region, not the `SERVER_URL` in a project's `.env`: that variable names the server of the project's own environment. The CLI prints the server it signs in to.
787
+ `login`, `dev` (when signed in), `deploy`, `whoami`, `logout` and `feedback` choose the server by one rule: a flag (`--serverUrl`, else `--region`), then `SERVER_URL`, then `PHOENIX_REGION`, each from the environment or `.env`, then the server of your current saved sign-in, then the `eu` region. The current saved sign-in is the most recent `phoenix login`; after `phoenix logout` of it, the most recent of the remaining sign-ins takes over. So after `phoenix login --region us`, a plain `phoenix deploy` goes to the US server. A `SERVER_URL` in a project's `.env` steers all of these commands in that folder.
778
788
 
779
- For a local server, pass both URLs: `phoenix login <customer> --serverUrl http://localhost:3000 --studioUrl http://localhost:5500`.
789
+ When the chosen server holds no sign-in, the error lists the servers that do and the flag that selects each.
790
+
791
+ For a local server, pass both URLs: `phoenix login --serverUrl http://localhost:3000 --studioUrl http://localhost:5500`.
792
+
793
+ `phoenix login <workspace>` is the older form. It still works and issues a token bound to that one workspace, approved in the workspace's own Studio (`--studioUrl` then defaults to it) by a member with workspace Superadmin or at least one project Superadmin assignment. With it, the project must belong to that workspace. It shares the one saved sign-in per server with the personal form, so each replaces the other. Studio and these pages show only plain `phoenix login`; prefer it.
780
794
 
781
795
  ### `phoenix logout`
782
796
 
783
- Revokes the token on the server and removes it from the credentials file. `--region` (default `eu`) or `--serverUrl` selects the server, as for `login`. When the server can't be reached, the token is still removed locally, and the CLI warns that it stays valid on the server.
797
+ Revokes the saved token on the server and removes it from the credentials file. The server is chosen as described in [Which server the CLI talks to](#which-server-the-cli-talks-to). When the server can't be reached, the token is still removed locally, and the CLI warns that it stays valid on the server and names Studio's **Tokens** page, where you can revoke it. `logout` acts only on the saved sign-in: it never revokes the token in `PHOENIX_API_TOKEN` and says so when the variable is set, and prints `Not signed in to <server>.` when there is no saved sign-in.
798
+
799
+ ### `phoenix whoami`
800
+
801
+ Shows what the credential the CLI would use can reach. It prints the account's email (its id on a server older than API 1.85.0), where the credential comes from (the saved sign-in with its file, or `PHOENIX_API_TOKEN`), whether it is personal or bound to a workspace, the server, and one line per workspace, `Name (slug): project slugs`; these are the slugs to put into `project` in the spec. For an automation token it also prints the token's actions and whether its scope is one project or the workspace. In a project folder it also says whether the credential can reach the `project` of the spec, which is the way to check where `phoenix deploy` would go without deploying.
802
+
803
+ ```bash
804
+ phoenix whoami
805
+ ```
806
+
807
+ The server is chosen as described in [Which server the CLI talks to](#which-server-the-cli-talks-to).
808
+
809
+ ### `PHOENIX_API_TOKEN`
810
+
811
+ For CI, create an automation token on Studio's **Tokens** page and pass it in the process environment as `PHOENIX_API_TOKEN`; see [Automation tokens](?path=/docs/phoenix-sdk-builder-workflow--docs#automation-tokens). An automation token is deploy only and is scoped to one project or one workspace.
812
+
813
+ - `phoenix deploy` and `phoenix whoami` read the variable, and it takes precedence over the saved sign-in; both name it as the credential. `phoenix dev`, `phoenix feedback`, `phoenix login` and `phoenix logout` ignore it and use the saved sign-in; `dev`, `feedback` and `logout` print one line that says so.
814
+ - It is read only from the process environment, never from `.env` or the generated env file, and is never written to the credentials file.
815
+ - An empty or malformed value stops the command; it does not fall back to the saved sign-in. When the server refuses the token, signing in again does not help: set the variable to a valid token, or unset it to use your saved sign-in.
816
+ - A deploy that runs with it prints no `Follow the build in Studio` link, because the link comes from the saved sign-in.
784
817
 
785
818
  ### `phoenix deploy`
786
819
 
787
- Deploys to `project` in `spec/application.yaml` within the workspace selected by `phoenix login`. Omitted or `default` means that workspace's original default project; an explicit slug must belong to the workspace. Deploy does not use the dev command's `--projectSlug` or `PROJECT_SLUG` overrides. After staff move a project, sign in to its new workspace and set its actual slug in the spec. The selected project needs a ready `production` environment. For a nondefault project, the CLI checks server API 1.61.0 or newer before uploading, so an older server cannot silently deploy it to the default project. Studio build links retain the selected project.
820
+ Deploys to the project chosen as described in [Which project `phoenix dev` develops in](#which-project-phoenix-dev-develops-in): `--project <slug>`, then `project` in `spec/application.yaml`, then the projects the sign-in or token can reach. The project is the slug of one the credential can manage, in whichever of your workspaces owns it; [`phoenix whoami`](#phoenix-whoami) lists those slugs. Deploy does not read `PROJECT_SLUG` or `--projectSlug`, so the `.env` block of a development environment cannot redirect it. An automation token and the older workspace-bound sign-in (`phoenix login <workspace>`) belong to one workspace: with them the project must belong to that workspace. In CI with a deploy token (`PHOENIX_API_TOKEN`), a token limited to one project needs nothing more; a token for a whole workspace with several projects needs the project named in the spec or with `--project`. The project's storage must be ready. For a project other than the workspace's initial one, which carries the workspace's slug, the CLI checks server API 1.61.0 or newer before uploading, so an older server cannot silently deploy it to the initial project. Studio build links retain the selected project.
788
821
 
789
- Validates the spec, packs and uploads the project, starts its build on the server and follows it until the configurator is live. Before the upload the server compares the domain model with the deployed one: a model that changed under an already deployed model version is refused with the reason, and needs a new model version and a [migration](?path=/docs/phoenix-migrations--docs). Before packing, it also refuses a `pnpm-workspace.yaml` whose `allowBuilds` leaves a package undecided, an entry that is neither `true` nor `false`, such as the placeholder pnpm 11 writes for a build script it skipped, because the platform build stops on it; the message names the packages. Once the build starts it prints `Follow the build in Studio: <url>`, the build's page in the Studio you signed in through; a sign-in stored by an older CLI has no Studio URL, so sign in again to get the link. It prints `Your configurator is live at <url>` when deployment succeeds. `--region` or `--serverUrl` selects the server, as for `login`; `--no-wait` returns as soon as the build starts.
822
+ A deploy builds into a **preview** of the project, never into production: production changes only when a preview build is promoted in Studio, or rolled back there to an earlier build. Without `--env` it builds into `preview`, which the deploy creates when the project has none (and says so), as long as the project is below its workspace plan's preview limit (three on Trial, Basic and Beta). After `preview` is deleted, deploys without `--env` are refused until its removal has finished, so name another preview with `--env`. `--env <name>` builds into another preview of the project, which must exist: `--env` never creates one, and an unknown name, `production` or a preview being deleted stops the deploy before packing, with the project's previews. Automation tokens and older SDKs follow the same rule. The CLI needs server API 1.93.0 or newer, because an older server would build into production; it stops before packing otherwise.
790
823
 
791
- A follow-up evaluation hint is addressed to coding agents; you can ignore it when running the command manually.
824
+ Validates the spec, packs and uploads the project, starts its build on the server and follows it until the preview's configurator is live. Before packing it prints where the deploy goes and as whom: the server, the workspace with its slug, the project, the environment, the account and the credential source. A project the credential cannot reach stops the deploy there, with the project slugs it can reach in each workspace. A preview replaces a stored schema that changed under the same model version, because its saved configurations are test data; promoting such a build to production is refused, because production never replaces a schema, and needs a new model version and a [migration](?path=/docs/phoenix-migrations--docs). Before packing, it also refuses a `pnpm-workspace.yaml` whose `allowBuilds` leaves a package undecided, an entry that is neither `true` nor `false`, such as the placeholder pnpm 11 writes for a build script it skipped, because the platform build stops on it; the message names the packages. Builds of one preview run one at a time: a build started while another one of the preview runs waits, and the deploy prints `Build #54 is queued behind build #53 in preview` once, and again when the build ahead changes, then follows it as usual. At most three builds wait per environment; a further deploy is refused before the upload. Once the build starts it prints `Build #<n> started in <preview>` and `Follow the build in Studio: <url>`, the build's page in the Studio you signed in through; a sign-in stored by an older CLI has no Studio URL, so sign in again to get the link, and a deploy that runs with `PHOENIX_API_TOKEN` prints none. It prints `Your configurator is live at <url>` when deployment succeeds. The server is chosen as described in [Which server the CLI talks to](#which-server-the-cli-talks-to); `--no-wait` returns as soon as the build starts or joins the queue, after printing the queue line and the Studio link.
792
825
 
793
826
  Project-owned records under `.phoenix/workspace/` and client documents under `docs/`, such as the
794
827
  rendered specification PDFs, are included in the private source archive and can be downloaded with
@@ -799,13 +832,13 @@ and exclusions for dependencies, generated files, environment files and macOS me
799
832
  `.phoenix`, `.phoenix/workspace` and `docs` paths must be real directories, and linked or special
800
833
  files are rejected. Keep their contents suitable for everyone authorized to download the sources.
801
834
 
802
- To keep the conversation that led to a build, place a reviewed UTF-8 transcript in `conversation.log` at the project root before deploying. Deploy automatically includes it in the private source archive. Download the build's sources from Studio to read it; access is the same as for the rest of that build's sources. The build extractor skips the log, so it is not an application build input or a public asset. Missing logs produce a warning and deployment continues. Directories, links and special files at that path are rejected.
835
+ To keep the conversation that led to a build, place a reviewed UTF-8 transcript in `conversation.log` at the project root before deploying. Deploy automatically includes it in the private source archive. Download the build's sources from Studio to read it; access is the same as for the rest of that build's sources. The build extractor skips the log, so it is not an application build input or a public asset. Without a log, deploy simply continues. Directories, links and special files at that path are rejected.
803
836
 
804
837
  Review and redact credentials or unrelated sensitive content before uploading the transcript. The CLI uploads the file as supplied; it does not collect conversation history, redact content, check freshness or verify completeness. Remove the file from the project root to deploy without it. The log counts toward the source archive's existing size limits; there is no separate conversation upload or viewer.
805
838
 
806
839
  ### `phoenix feedback [message]`
807
840
 
808
- Sends feedback about the SDK, the CLI, the documentation or Studio to the Phoenix team. It needs `phoenix login`: the server records the workspace, user and API token of the sign-in, so the message itself needs no introduction.
841
+ Sends feedback about the SDK, the CLI, the documentation or Studio to the Phoenix team. It needs the saved `phoenix login` sign-in, not `PHOENIX_API_TOKEN`: the server records the user and API token of the sign-in and the workspace of the project, so the message itself needs no introduction.
809
842
 
810
843
  ```bash
811
844
  phoenix feedback "phoenix build reports a missing entity when a module file is empty" --type bug
@@ -814,17 +847,17 @@ phoenix feedback --file report.txt --type bug
814
847
 
815
848
  Pass the message as the argument for a short note, or `--file` for a longer report: the content of the file is the message, read as UTF-8, so quotes, backticks and new lines arrive unchanged. Giving both, or neither, is an error.
816
849
 
817
- | Flag | Env | Default | Description |
818
- | ---------------------- | -------------- | ----------------------------- | --------------------------------------------------------- |
819
- | `--file` | — | — | Text file that holds the message, instead of the argument |
820
- | `--type` | — | `other` | What the feedback is about: `bug`, `idea` or `other` |
821
- | `--contact` | — | — | How to reach you, when you want a reply |
822
- | `--agent` | — | — | Name of the coding agent submitting the feedback |
823
- | `--projectSlug` / `-p` | `PROJECT_SLUG` | `project` of the spec, if any | Workspace project the feedback is about |
824
- | `--region` | — | `eu` | Phoenix region of the workspace: `eu` or `us` |
825
- | `--serverUrl` / `--su` | — | the region's server | Phoenix server URL, for a local or custom server |
826
-
827
- A message holds at most 100,000 characters, from the argument or from the file. Besides the message and the flags, the CLI sends only the SDK version, the operating system and the Node.js version; no file of the project is attached, and the Phoenix team reads a build's sources through the build's page in Studio. The project must belong to the signed-in workspace, otherwise the server refuses the feedback; without a project, the feedback is sent on its own.
850
+ | Flag | Env | Default | Description |
851
+ | ---------------------- | ---------------- | -------------------------------------------- | --------------------------------------------------------- |
852
+ | `--file` | — | — | Text file that holds the message, instead of the argument |
853
+ | `--type` | — | `other` | What the feedback is about: `bug`, `idea` or `other` |
854
+ | `--contact` | — | — | How to reach you, when you want a reply |
855
+ | `--agent` | — | — | Name of the coding agent submitting the feedback |
856
+ | `--projectSlug` / `-p` | `PROJECT_SLUG` | `project` of the spec, if it names one | Workspace project the feedback is about |
857
+ | `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Phoenix region you are signed in to: `eu` or `us` |
858
+ | `--serverUrl` / `--su` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL, for a local or custom server |
859
+
860
+ A message holds at most 100,000 characters, from the argument or from the file. Besides the message and the flags, the CLI sends only the SDK version, the operating system and the Node.js version; no file of the project is attached, and the Phoenix team reads a build's sources through the build's page in Studio. The project must be one the sign-in can manage, otherwise the server refuses the feedback. A personal sign-in needs a project, from the spec or `--projectSlug`; with a workspace-bound sign-in, feedback without a project is sent on its own.
828
861
 
829
862
  Review the message before sending and omit secrets, credentials and personal data. The command needs a server with API 1.40.0 or newer; a message over 5000 characters needs API 1.43.0 or newer.
830
863
 
@@ -439,12 +439,15 @@ Handlers respond to application events and process backend tasks.
439
439
 
440
440
  **Event Handlers** are application lifecycle handlers for frontend events. They include `createCollectFrontendDataHandler()` for finalization data collection, `createOnGoToIndexHandler()` for navigation interception, and other lifecycle hooks.
441
441
 
442
+ **Access Handlers** customise the sign-in the `access` mode builds into the webhook: `phx.access.createChunkScopesHandler()`, `createVisitorHandler()`, in `access: invited` and `public-with-sign-in` `createSignedInHandler()` and, in `access: custom`, `createCodeHandler()`, `createRefreshHandler()` and `createAnonymousHandler()`. See [Webhooks - Auth Hook](?path=/docs/phoenix-webhooks--docs#auth-hook).
443
+
442
444
  **Webhook Handlers** are server-side task handlers for configuration finalization. Built with `phx.webhooks.finalizeHandlerBuilder`. They chain tasks like PDF generation, email sending, image rendering, and CSV export. These run on the backend after user submits configuration.
443
445
 
444
446
  | Purpose | Location | Example Files |
445
447
  | ---------------- | ------------------------ | ------------------------------------------------------- |
446
448
  | Event Handlers | `src/handlers/` | `collect-frontend-data.ts`, `GetResourcesMapHandler.ts` |
447
- | Webhook Handlers | `src/webhooks/handlers/` | `auth-handler.ts`, finalize handlers |
449
+ | Access Handlers | `src/handlers/` | `chunk-scopes.ts`, `visitor.ts` |
450
+ | Webhook Handlers | `src/webhooks/handlers/` | finalize handlers |
448
451
 
449
452
  ### Admin Interface
450
453
 
@@ -558,12 +561,12 @@ The `application.yaml` file contains global application-level settings. These fi
558
561
 
559
562
  ### Core Application
560
563
 
561
- | Field | Type | Description |
562
- | -------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
563
- | `project` | `string` | Server project for `phoenix dev` and `phoenix deploy`: a project slug, or `default` for the signed-in workspace’s default project. The dev command allows `--projectSlug` and `PROJECT_SLUG` overrides; deploy reads the spec directly |
564
- | `applicationVersion` | `string` | Semantic version (`x.y.z`) exported as `ApplicationVersion` constant, stored on the deployment record and named in the banner comment of built bundles |
565
- | `webComponentTag` | `string` | Custom HTML web component tag name for embedding |
566
- | `pageTitle` | `string` | Browser page title |
564
+ | Field | Type | Description |
565
+ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
566
+ | `project` | `string` | Server project for `phoenix dev` and `phoenix deploy`: a project slug. `--project` overrides it on both commands, and dev also takes `--projectSlug` and `PROJECT_SLUG`. When neither names a project, the commands choose from the projects the sign-in can reach |
567
+ | `applicationVersion` | `string` | Semantic version (`x.y.z`) exported as `ApplicationVersion` constant, stored on the deployment record and named in the banner comment of built bundles |
568
+ | `webComponentTag` | `string` | Custom HTML web component tag name for embedding |
569
+ | `pageTitle` | `string` | Browser page title |
567
570
 
568
571
  ### Internationalization
569
572
 
@@ -574,12 +577,14 @@ The `application.yaml` file contains global application-level settings. These fi
574
577
 
575
578
  ### Authentication & Access Control
576
579
 
577
- | Field | Type | Description |
578
- | --------------- | ---------- | ------------------------------------------------------- |
579
- | `useAuthHook` | `boolean` | Enable authentication hook integration |
580
- | `useClerk` | `boolean` | Enable Clerk auth provider (auto-enables `useAuthHook`) |
581
- | `acl` | `object` | Access control list defining permissions |
582
- | `acl.canCreate` | `string[]` | Roles that can create configurations |
580
+ | Field | Type | Description |
581
+ | --------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
582
+ | `access` | `string` | Who can open the configurator and who signs its users in: `public` (default), `invited`, `public-with-sign-in`, `custom` or `legacy-clerk` |
583
+ | `useAuthHook` | `boolean` | Deprecated: `true` is replaced by `access: custom`, `false` by `access: public` |
584
+ | `useClerk` | `boolean` | Deprecated: replaced by `access: legacy-clerk` |
585
+ | `useCognito` | `boolean` | Deprecated: replaced by `access: invited`, or `access: public-with-sign-in` in a project with `src/webhooks/index.ts` |
586
+ | `acl` | `object` | Access control list defining permissions |
587
+ | `acl.canCreate` | `string[]` | Roles that can create configurations |
583
588
 
584
589
  ### Workspace & Data
585
590
 
@@ -588,6 +593,16 @@ The `application.yaml` file contains global application-level settings. These fi
588
593
  | `workspace` | `boolean` | Enable multi-user workspace collaboration |
589
594
  | `collectFinalizeData` | `boolean` | Collect data during finalization |
590
595
 
596
+ ### 3D Assets
597
+
598
+ `gltfDecoderWorkerLimit` and `exportPixelRatio` apply only to projects built with the application-spec pipeline.
599
+
600
+ | Field | Type | Description |
601
+ | ------------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
602
+ | `gltfDecoder` | `'wasm'\|'js'` | Draco decoder build (default: `wasm`); see [CSP](?path=/docs/phoenix-csp--docs) |
603
+ | `gltfDecoderWorkerLimit` | positive integer | Most Draco decoder workers alive at once (default: `4`). Each worker holds its own decoder heap, so a lower limit saves memory on phones with large models at the cost of decode speed |
604
+ | `exportPixelRatio` | positive number | Pixel ratio image captures render at (default: the device pixel ratio). A lower ratio keeps the canvas smaller during a capture, but postprocessing effects, glass transmission and `PointsMaterial` point sizes then render at that ratio in the exported image |
605
+
591
606
  ### UI Configuration
592
607
 
593
608
  | Field | Type | Description |
@@ -668,7 +683,7 @@ env:
668
683
  ### Example application.yaml
669
684
 
670
685
  ```yaml
671
- project: default
686
+ project: my-configurator
672
687
  applicationVersion: '1.0.0'
673
688
  webComponentTag: 'my-configurator'
674
689
  pageTitle: 'Product Configurator'
@@ -678,7 +693,7 @@ availableLocales:
678
693
  - de
679
694
  - fr
680
695
 
681
- useClerk: true
696
+ access: legacy-clerk
682
697
  sessionData:
683
698
  type: object
684
699
  properties:
@@ -87,7 +87,7 @@ $data:
87
87
 
88
88
  ### System Chunk
89
89
 
90
- The `system` chunk is auto-generated with scope `"public"`. It contains presets and recipes, is always accessible, and cannot be defined by users. The auth handler builder **automatically adds** the system chunk scope to every successful session, even when `withPublishedChunkScopes()` is not configured.
90
+ The `system` chunk is auto-generated with scope `"public"`. It contains presets and recipes, is always accessible, and cannot be defined by users. The auth hook **automatically adds** the system chunk scope to every successful session, even when the project has no chunk scopes handler.
91
91
 
92
92
  ### Publish Flow
93
93
 
@@ -201,8 +201,8 @@ Chunked publishing uses **scopes** to control which sessions can access which ch
201
201
 
202
202
  ```mermaid
203
203
  flowchart LR
204
- A["Auth handler
205
- withPublishedChunkScopes()"] --> B["Session JWT
204
+ A["Chunk scopes handler
205
+ src/handlers/"] --> B["Session JWT
206
206
  chunkScopes field"]
207
207
  B --> C["Chunk request"]
208
208
  C --> D{Scope match?}
@@ -210,33 +210,26 @@ flowchart LR
210
210
  D -->|No| F["403 Forbidden"]
211
211
  ```
212
212
 
213
- ### Auth Handler
213
+ ### Chunk Scopes Handler
214
214
 
215
- Register a scope resolver via `withPublishedChunkScopes()` on the auth handler builder:
215
+ Register a scope resolver in a file in `src/handlers/` that default-exports `phx.access.createChunkScopesHandler`. It applies in every access mode:
216
216
 
217
217
  ```typescript
218
- // src/webhooks/handlers/auth-handler.ts
219
- export const authHandler = phx.webhooks.authHandlerBuilder
220
- .withClerkCodeHandler()
221
- .withClerkRefreshHandler()
222
- .withAnonymousHandler(async () => ({
223
- success: true,
224
- data: {},
225
- role: 'anonymous',
226
- }))
227
- .withPublishedChunkScopes(({ role }) => {
228
- if (role === 'admin' || role === 'superadmin') {
229
- return ['dealer', 'admin']
230
- }
218
+ // src/handlers/chunk-scopes.ts
219
+ export default phx.access.createChunkScopesHandler(({ role }) => {
220
+ if (role === 'admin' || role === 'superadmin') {
221
+ return ['dealer', 'admin']
222
+ }
231
223
 
232
- return []
233
- })
234
- .build()
224
+ return []
225
+ })
235
226
  ```
236
227
 
237
- The resolver receives `{ role, data }` and returns `readonly string[]` of scope values. The returned scopes are stored in the session JWT as `chunkScopes`.
228
+ The resolver receives `{ role, data }`, the role the session was granted and its final session data, and returns `readonly string[]` of scope values. The returned scopes are stored in the session JWT as `chunkScopes`.
229
+
230
+ > **Note:** The system chunk scope (`"public"`) is automatically injected into every successful sign-in — you do not need to return it from the resolver. Every session always has access to the system chunk (presets and recipes).
238
231
 
239
- > **Note:** The system chunk scope (`"public"`) is automatically injected into every successful auth-handler response — you do not need to return it from the resolver. Every session always has access to the system chunk (presets and recipes).
232
+ A project on the deprecated `phx.webhooks.authHandlerBuilder` can still register the resolver with `withPublishedChunkScopes()`, which wins over a chunk scopes handler file.
240
233
 
241
234
  **Scope resolver patterns:**
242
235
 
@@ -248,21 +241,21 @@ The resolver receives `{ role, data }` and returns `readonly string[]` of scope
248
241
 
249
242
  ### Studio Embedded Admin
250
243
 
251
- The embedded admin in Studio does not use the project's auth-handler scope resolver. Studio must be able to manage all published data configured by the project, so it uses the deployed embedded module as its source of truth:
244
+ The embedded admin in Studio does not use the project's chunk scopes handler. Studio must be able to manage all published data configured by the project, so it uses the deployed embedded module as its source of truth:
252
245
 
253
246
  1. Studio loads the embedded admin module and reads `config.chunks`, which is generated from the YAML `chunks` section.
254
247
  2. Studio deduplicates every configured scope, including the generated `system` chunk's `"public"` scope.
255
248
  3. The admin-only Studio endpoint generates both the Configurator and Admin session tokens with the complete scope set in `chunkScopes`.
256
249
  4. Studio mounts the embedded admin only after both scoped tokens are available.
257
250
 
258
- This behavior is specific to authenticated Studio admins. Configurator sessions continue to receive scopes from `withPublishedChunkScopes()`.
251
+ This behavior is specific to authenticated Studio admins. Configurator sessions continue to receive scopes from the chunk scopes handler.
259
252
 
260
253
  ### Scope Matching
261
254
 
262
255
  Access is granted when the session's `chunkScopes` array **includes** the chunk's scope string. This is a simple membership check, not hierarchical.
263
256
 
264
- - If no scope resolver is configured, auth-handler sessions contain only the automatically injected `"public"` scope
265
- - The system chunk scope (`"public"`) is **always auto-injected** — every auth-handler session can access the system chunk
257
+ - If no chunk scopes handler or resolver is configured, sessions contain only the automatically injected `"public"` scope
258
+ - The system chunk scope (`"public"`) is **always auto-injected** — every session can access the system chunk
266
259
  - Scope values are arbitrary strings; the resolver controls the vocabulary
267
260
 
268
261
  ## Frontend Runtime
@@ -441,7 +434,7 @@ export default phx.domain.implementCustomExpressions({
441
434
  - **`$data` requires chunks** — defining `$data` entries auto-enables chunked mode
442
435
  - **Scopes** control access via simple membership check against session `chunkScopes`
443
436
  - **System chunk** is auto-generated (`scope: "public"`) and contains presets/recipes — its scope is auto-injected into every session
444
- - **`withPublishedChunkScopes()`** on the auth handler assigns scopes to sessions (system chunk scope is always included automatically)
437
+ - **`phx.access.createChunkScopesHandler()`** in `src/handlers/` assigns scopes to sessions (system chunk scope is always included automatically)
445
438
  - **Studio embedded admin** receives every scope from the deployed YAML-generated `config.chunks`
446
439
  - **`createFilterPublishedChunksHandler()`** overrides default scope-based frontend filtering
447
440
  - **`initialPublishedData`** provides fallback data derived from domain spec `values`