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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (520) hide show
  1. package/README.md +10 -3
  2. package/dist/application-spec/errors/diagnostic-codes.d.ts +6 -0
  3. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  4. package/dist/application-spec/errors/diagnostic-messages.d.ts +7 -1
  5. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  6. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  7. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  8. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
  9. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
  10. package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
  11. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
  12. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
  13. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
  14. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
  15. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +1 -4
  16. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +2 -2
  17. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
  18. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +26 -29
  19. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
  20. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  21. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +11 -12
  22. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  23. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +3 -2
  24. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +13 -11
  25. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  26. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  27. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  28. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
  29. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +16 -0
  30. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  31. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +47 -0
  32. package/dist/application-spec/generate-application/code/templates/skills/features/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
  33. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +15 -0
  34. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
  35. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
  36. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
  37. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
  38. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
  39. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
  40. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  42. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
  43. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +1 -1
  44. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -1
  45. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
  46. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  47. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  48. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  49. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  50. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +23 -0
  51. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
  52. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
  53. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
  54. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
  55. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
  56. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
  57. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
  58. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  59. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  60. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
  61. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  62. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
  63. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
  64. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  65. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  66. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
  67. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
  68. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
  70. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +7 -6
  71. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
  72. package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
  73. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +1 -0
  74. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  75. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  76. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  77. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +42 -5
  78. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  79. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +4 -3
  80. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  81. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  82. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  83. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  84. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +2 -2
  85. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  86. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
  87. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
  88. package/dist/application-spec/webhook-boundary.js +1 -1
  89. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  90. package/dist/client/cli-client/cli-api-client.js +1 -0
  91. package/dist/client/cli-client/index.d.ts +2 -0
  92. package/dist/client/cli-client/index.js +1 -0
  93. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  94. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  95. package/dist/client/index.d.ts +1 -0
  96. package/dist/client/index.js +1 -1
  97. package/dist/client/phoenix-api.d.ts +5290 -1754
  98. package/dist/configurator/ConfiguratorApp.js +1 -1
  99. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
  100. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  101. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  102. package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
  103. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  104. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
  105. package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
  106. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
  107. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
  108. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +44 -0
  109. package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
  110. package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
  111. package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
  112. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
  113. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
  114. package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
  115. package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
  116. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +7 -4
  117. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +91 -33
  118. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  119. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +12 -17
  120. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -1
  121. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +43 -37
  122. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  123. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +2 -0
  124. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
  125. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +29 -0
  126. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +2 -0
  127. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
  128. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
  129. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  130. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  131. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +14 -4
  132. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  133. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
  134. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  135. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +38 -9
  136. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  137. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
  138. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
  139. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
  140. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
  141. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
  142. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
  143. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +5 -4
  144. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  145. package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
  146. package/dist/configurator/common/configurator-interface.d.ts +9 -7
  147. package/dist/configurator/common/configurator-interface.js +1 -1
  148. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  149. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  150. package/dist/configurator/ui/assistant/AssistantChips.d.ts +5 -5
  151. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  152. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +4 -3
  153. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  154. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +6 -4
  155. package/dist/configurator/ui/assistant/AssistantThread.d.ts +10 -2
  156. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  157. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
  158. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
  159. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +6 -5
  160. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  161. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
  162. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  163. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  164. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  165. package/dist/configurator/ui/assistant/annotation/index.d.ts +0 -1
  166. package/dist/configurator/ui/assistant/annotation/index.js +1 -1
  167. package/dist/configurator/ui/assistant/assistant-failure.d.ts +6 -4
  168. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  169. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
  170. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +1 -1
  171. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
  172. package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
  173. package/dist/configurator/ui/assistant/drawing/index.js +1 -1
  174. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -1
  175. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
  176. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
  177. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +1 -1
  178. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  179. package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
  180. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
  181. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  182. package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
  183. package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
  184. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
  185. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
  186. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
  187. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
  188. package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
  189. package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
  190. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +7 -4
  191. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
  192. package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
  193. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
  194. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
  195. package/dist/configurator/ui/assistant/form-elements/index.d.ts +2 -3
  196. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  197. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
  198. package/dist/configurator/ui/assistant/index.d.ts +2 -2
  199. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
  200. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
  201. package/dist/configurator/ui/assistant/reference-link/index.d.ts +2 -1
  202. package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
  203. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
  204. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
  205. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  206. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
  207. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  208. package/dist/configurator/ui/assistant/thread-items.d.ts +2 -2
  209. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  210. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +2 -1
  211. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  212. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
  213. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
  214. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
  215. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
  216. package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
  217. package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
  218. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  219. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  220. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  221. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  222. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  223. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  224. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  225. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  226. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  227. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  228. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  229. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  230. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  231. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  232. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  233. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  234. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  235. package/dist/configurator/ui/index.d.ts +1 -1
  236. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  237. package/dist/docs/index.json +22 -2
  238. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  239. package/dist/docs/layouts/presets/custom.mdx +1 -0
  240. package/dist/docs/layouts/preview/always.mdx +22 -0
  241. package/dist/docs/layouts/view-controls.mdx +2 -0
  242. package/dist/docs/other-features/domain-actions.mdx +10 -11
  243. package/dist/docs/other-features/violation-messages.mdx +3 -1
  244. package/dist/docs/phoenix/application-states.mdx +1 -1
  245. package/dist/docs/phoenix/configurator-interface.mdx +81 -35
  246. package/dist/docs/phoenix/data-sources.mdx +1 -1
  247. package/dist/docs/phoenix/getting-started.mdx +1 -1
  248. package/dist/docs/phoenix/layout-slots.mdx +1 -1
  249. package/dist/docs/phoenix/migrations.mdx +1 -1
  250. package/dist/docs/phoenix/phoenix-cli.mdx +89 -53
  251. package/dist/docs/phoenix/project-structure.mdx +7 -7
  252. package/dist/docs/phoenix/sdk-builder-workflow.mdx +56 -27
  253. package/dist/docs/phoenix/sessions-and-access.mdx +9 -6
  254. package/dist/docs/phoenix/theming.mdx +5 -9
  255. package/dist/docs/phoenix/webhooks.mdx +55 -3
  256. package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
  257. package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
  258. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  259. package/dist/docs/ux-guidelines/overview.mdx +11 -9
  260. package/dist/domain/application/application-config.d.ts +5 -0
  261. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  262. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  263. package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
  264. package/dist/domain/application/assistant/assistant-selection.js +1 -0
  265. package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
  266. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
  267. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  268. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +14 -2
  269. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  270. package/dist/domain/application/assistant/index.d.ts +5 -1
  271. package/dist/domain/application/assistant/index.js +1 -1
  272. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
  273. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
  274. package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
  275. package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
  276. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  277. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +17 -1
  278. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  279. package/dist/domain/application/assistant-field-options.d.ts +2 -0
  280. package/dist/domain/application/assistant-field-options.js +1 -1
  281. package/dist/domain/application/assistant-mutations.d.ts +17 -11
  282. package/dist/domain/application/assistant-mutations.js +1 -1
  283. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  284. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  285. package/dist/domain/application/configurator-builder.d.ts +8 -0
  286. package/dist/domain/application/configurator-builder.js +1 -1
  287. package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
  288. package/dist/domain/available-system-components/available-system-components.js +1 -1
  289. package/dist/domain/core/action/action.d.ts +0 -49
  290. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  291. package/dist/domain/core/component/system-component-filter.js +1 -1
  292. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  293. package/dist/domain/core/component/view-state-component.js +1 -1
  294. package/dist/domain/core/domain-factory.d.ts +2 -3
  295. package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
  296. package/dist/domain/core/invariant/control-violation-hints.js +1 -0
  297. package/dist/domain/core/invariant/index.d.ts +1 -0
  298. package/dist/domain/core/invariant/index.js +1 -1
  299. package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
  300. package/dist/domain/domain-builder/domain-builder.js +1 -1
  301. package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
  302. package/dist/domain/domain-context/index.d.ts +0 -1
  303. package/dist/domain/domain-context/index.js +1 -1
  304. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  305. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  306. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  307. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +1 -1
  308. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  309. package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
  310. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -6
  311. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  312. package/dist/domain/domain-runtime/domain-runtime.d.ts +13 -19
  313. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  314. package/dist/domain/domain-runtime/index.d.ts +0 -1
  315. package/dist/domain/domain-runtime/index.js +1 -1
  316. package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
  317. package/dist/domain/domain-runtime/spec/index.js +1 -1
  318. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  319. package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
  320. package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
  321. package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
  322. package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
  323. package/dist/domain/extensions/assistant/index.d.ts +1 -0
  324. package/dist/domain/extensions/assistant/index.js +1 -0
  325. package/dist/domain/extensions/index.d.ts +1 -1
  326. package/dist/domain/extensions/index.js +1 -1
  327. package/dist/domain/index.d.ts +1 -1
  328. package/dist/domain/index.js +1 -1
  329. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +6 -8
  330. package/dist/domain/spec/modules/index.d.ts +0 -1
  331. package/dist/domain/spec/modules/index.js +1 -1
  332. package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
  333. package/dist/domain/spec/phx/phx-domain.js +1 -1
  334. package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
  335. package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
  336. package/dist/domain/spec/runtime/create-application.d.ts +5 -2
  337. package/dist/domain/spec/runtime/create-application.js +1 -1
  338. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
  339. package/dist/domain/spec/sections/app-metadata.d.ts +1 -0
  340. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +28 -1
  341. package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
  342. package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
  343. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +30 -2
  344. package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
  345. package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
  346. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
  347. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
  348. package/dist/domain/spec/sections/assistant/index.d.ts +3 -1
  349. package/dist/domain/system-components/index.d.ts +1 -0
  350. package/dist/domain/system-components/index.js +1 -1
  351. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  352. package/dist/domain/system-components/navigation/index.js +1 -0
  353. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  354. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  355. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  356. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  357. package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
  358. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  359. package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
  360. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  361. package/dist/extras/cognito/index.d.ts +1 -0
  362. package/dist/extras/cognito/index.js +1 -0
  363. package/dist/i18n/locales/cs/messages.js +1 -1
  364. package/dist/i18n/locales/da/messages.js +1 -1
  365. package/dist/i18n/locales/de/messages.js +1 -1
  366. package/dist/i18n/locales/de-AT/messages.js +1 -1
  367. package/dist/i18n/locales/en/messages.js +1 -1
  368. package/dist/i18n/locales/en-AU/messages.js +1 -1
  369. package/dist/i18n/locales/en-GB/messages.js +1 -1
  370. package/dist/i18n/locales/es/messages.js +1 -1
  371. package/dist/i18n/locales/fr/messages.js +1 -1
  372. package/dist/i18n/locales/hu/messages.js +1 -1
  373. package/dist/i18n/locales/it/messages.js +1 -1
  374. package/dist/i18n/locales/nl/messages.js +1 -1
  375. package/dist/i18n/locales/pl/messages.js +1 -1
  376. package/dist/i18n/locales/pt/messages.js +1 -1
  377. package/dist/i18n/locales/ro/messages.js +1 -1
  378. package/dist/i18n/locales/sk/messages.js +1 -1
  379. package/dist/i18n/locales/tr/messages.js +1 -1
  380. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  381. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  382. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  383. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +24 -2
  384. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  385. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  386. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  387. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  388. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  389. package/dist/phoenix/application-spec/index.d.ts +1 -1
  390. package/dist/phoenix/application-spec/index.js +1 -1
  391. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
  392. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  393. package/dist/phoenix/cli.js +1 -1
  394. package/dist/phoenix/commands/account/index.d.ts +1 -0
  395. package/dist/phoenix/commands/account/index.js +1 -0
  396. package/dist/phoenix/commands/account/whoami.d.ts +10 -0
  397. package/dist/phoenix/commands/account/whoami.js +4 -0
  398. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  399. package/dist/phoenix/commands/deploy.d.ts +7 -2
  400. package/dist/phoenix/commands/deploy.js +8 -2
  401. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  402. package/dist/phoenix/commands/feedback.d.ts +2 -2
  403. package/dist/phoenix/commands/feedback.js +1 -1
  404. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  405. package/dist/phoenix/commands/index.d.ts +1 -0
  406. package/dist/phoenix/commands/index.js +1 -1
  407. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  408. package/dist/phoenix/commands/init.d.ts +2 -2
  409. package/dist/phoenix/commands/init.js +1 -1
  410. package/dist/phoenix/commands/login.d.ts +6 -3
  411. package/dist/phoenix/commands/login.js +3 -3
  412. package/dist/phoenix/commands/logout.js +1 -1
  413. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  414. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  415. package/dist/phoenix/services/cli-credentials.d.ts +26 -7
  416. package/dist/phoenix/services/cli-credentials.js +2 -2
  417. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  418. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  419. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  420. package/dist/phoenix/services/cli-server/index.js +1 -0
  421. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
  422. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  423. package/dist/phoenix/services/development-credential.js +1 -1
  424. package/dist/phoenix/services/index.d.ts +4 -2
  425. package/dist/phoenix/services/index.js +1 -1
  426. package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
  427. package/dist/phoenix/services/phoenix-regions.js +1 -1
  428. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  429. package/dist/phoenix/services/session/phoenix-application.js +1 -1
  430. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  431. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  432. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  433. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  434. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  435. package/dist/phoenix/services/spec-project/index.js +1 -0
  436. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  437. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  438. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  439. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  440. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  441. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  442. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
  443. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
  444. package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
  445. package/dist/phoenix/services/variant-file-session.js +1 -1
  446. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  447. package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
  448. package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
  449. package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
  450. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  451. package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
  452. package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
  453. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
  454. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
  455. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
  456. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
  457. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
  458. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
  459. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
  460. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
  461. package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
  462. package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
  463. package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
  464. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  465. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  466. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  467. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
  468. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
  469. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  470. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +14 -16
  471. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  472. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +5 -6
  473. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
  474. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  475. package/dist/react-sdk/domain-context/index.d.ts +1 -1
  476. package/dist/react-sdk/domain-context/index.js +1 -1
  477. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  478. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  479. package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
  480. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  481. package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
  482. package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
  483. package/dist/react-sdk/preset-selection/index.d.ts +2 -1
  484. package/dist/react-sdk/preset-selection/index.js +1 -1
  485. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
  486. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
  487. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  488. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  489. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  490. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  491. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  492. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  493. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  494. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  495. package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
  496. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  497. package/dist/webhook/builders/common.d.ts +3 -1
  498. package/dist/webhook/builders/webhook-builder.d.ts +5 -0
  499. package/dist/webhook/builders/webhook-builder.js +1 -1
  500. package/package.json +9 -4
  501. package/schema/domain-spec.json +440 -53
  502. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
  503. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
  504. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
  505. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
  506. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -68
  507. package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
  508. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -61
  509. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
  510. package/dist/domain/domain-context/action-system/action-system.d.ts +0 -64
  511. package/dist/domain/domain-context/action-system/action-system.js +0 -1
  512. package/dist/domain/domain-context/action-system/index.d.ts +0 -1
  513. package/dist/domain/domain-context/action-system/index.js +0 -1
  514. package/dist/domain/domain-runtime/action-factory.d.ts +0 -11
  515. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
  516. package/dist/domain/extensions/view-controls.d.ts +0 -25
  517. package/dist/domain/extensions/view-controls.js +0 -1
  518. package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
  519. /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
  520. /package/dist/{domain/domain-runtime → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
@@ -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
 
@@ -23,7 +24,8 @@ npx -p @salsita-ai/sdk@canary phoenix init my-configurator
23
24
  cd my-configurator
24
25
  pnpm install
25
26
  pnpm phoenix sync
26
- pnpm phoenix login <workspace>
27
+ pnpm phoenix login
28
+ # Set project to its explicit slug in spec/application.yaml
27
29
  pnpm phoenix dev
28
30
  ```
29
31
 
@@ -52,7 +54,7 @@ Aliases are recorded as their canonical command names. Delivery failures never c
52
54
 
53
55
  Before a successful `phoenix login`, telemetry uses only random anonymous identifiers. Failed login attempts remain anonymous. The CLI stores an installation UUID, work-session UUID and last activity time in `~/.phoenix/telemetry.json`; a work session continues while commands occur less than 30 minutes apart.
54
56
 
55
- After a successful login, the login completion and later commands from that installation include the stable authenticated builder user ID and the internal workspace UUID. Amplitude uses the unchanged installation ID to associate the earlier anonymous command path with that user. A later successful login replaces the stored user and workspace association. The state file never contains a login token, email address, machine fingerprint, project path or project content. Because the installation ID belongs to the operating-system user profile, people who share that profile also share its command history and latest association.
57
+ After a successful login, the login completion and later commands from that installation include the stable authenticated builder user ID. Workspace-bound login also associates its internal workspace UUID; personal login clears that workspace association. Amplitude uses the unchanged installation ID to associate the earlier anonymous command path with that user. A later successful login replaces the stored user and workspace association. The state file never contains a login token, email address, machine fingerprint, project path or project content. Because the installation ID belongs to the operating-system user profile, people who share that profile also share its command history and latest association.
56
58
 
57
59
  The events contain only:
58
60
 
@@ -68,18 +70,20 @@ Set `PHOENIX_TELEMETRY_DISABLED=1` to opt out. The opted-out CLI neither sends t
68
70
 
69
71
  ### Which project `phoenix dev` develops in
70
72
 
71
- 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:
72
74
 
73
- 1. `--projectSlug`
74
- 2. `PROJECT_SLUG` in `.env`
75
- 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.
76
78
 
77
- `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.
78
82
 
79
83
  ### How `phoenix dev` authenticates
80
84
 
81
- - **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`).
82
- - **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.
83
87
 
84
88
  ## Local Development Setup
85
89
 
@@ -207,7 +211,7 @@ spec/application.yaml → Server prepares environment → CLI writes the generat
207
211
  | -------- | ---------------- | --------------------------------------------- |
208
212
  | `dev` | `phoenix dev` | Dev server with hot reload |
209
213
  | `build` | `phoenix build` | Production build |
210
- | `deploy` | `phoenix deploy` | Build and publish the project |
214
+ | `deploy` | `phoenix deploy` | Build and publish the project into a preview |
211
215
  | `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
212
216
  | `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
213
217
 
@@ -308,6 +312,8 @@ Environment variables are resolved in this order (highest to lowest priority):
308
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`
309
313
  3. `.env` (manual overrides)
310
314
 
315
+ [`PHOENIX_API_TOKEN`](#phoenix_api_token) is the exception: `phoenix deploy` and `phoenix whoami` read it from the process environment only.
316
+
311
317
  ### Generated Config Files
312
318
 
313
319
  The Phoenix CLI auto-generates config files that read these variables:
@@ -323,20 +329,21 @@ Starts the full development environment: Vite dev server, development webhook tu
323
329
 
324
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`.
325
331
 
326
- | Flag | Env Variable | Default | Description |
327
- | ----------------------- | ------------------ | -------------------- | ------------------------------------------------------------------------------- |
328
- | `--workspace` | — | from `.phoenix.json` | Override workspace mode |
329
- | `--editor` | `ENABLE_EDITOR` | see agent mode above | Show the editor (`true`) or the configurator alone (`false`) |
330
- | `--editorWsPort` | `EDITOR_WS_PORT` | `3020` | Editor WebSocket port |
331
- | `--debug` | `DEBUG` | `false` | Verbose logging |
332
- | `--projectSlug` | `PROJECT_SLUG` | `local` | Project slug |
333
- | `--environmentSlug` | `ENVIRONMENT_SLUG` | package.json name | Environment slug |
334
- | `--withLingui` | `WITH_LINGUI` | `false` | Enable i18n extraction/compilation and watch i18n sources during dev |
335
- | `--persistence` | `PERSISTENCE_MODE` | `server` | Persistence mode |
336
- | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache, and prepare the development deployment again |
337
- | `--serverUrl` | `SERVER_URL` | the region's server | Phoenix server URL |
338
- | `--region` | `PHOENIX_REGION` | `eu` | Region of the signed-in workspace, used when no server URL is set |
339
- | `--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 |
340
347
 
341
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.
342
349
 
@@ -344,7 +351,7 @@ By default, with the application-spec pipeline, `phoenix dev` bootstraps missing
344
351
 
345
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.
346
353
 
347
- 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.
348
355
 
349
356
  The dev server watches for changes in:
350
357
 
@@ -752,40 +759,69 @@ For full deployment documentation including CI/CD integration, environment manag
752
759
 
753
760
  ## SDK Builders
754
761
 
755
- 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.
756
763
 
757
- ### `phoenix login <customer>`
764
+ ### `phoenix login [workspace]`
758
765
 
759
- 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.
760
767
 
761
- 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.
762
769
  2. Studio sends a one-time code back to the CLI on `127.0.0.1`.
763
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.
764
771
 
765
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.
766
773
 
767
- 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 **CLI 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`.
768
784
 
769
- | Flag | Default | Description |
770
- | ---------------------- | ------------------------------------ | ------------------------------------------------ |
771
- | `--region` | `eu` | Phoenix region of the workspace: `eu` or `us` |
772
- | `--serverUrl` / `--su` | the region's server | Phoenix server URL, for a local or custom server |
773
- | `--studioUrl` | the workspace's Studio in the region | Studio URL of the workspace |
774
- | `--open` | `true` | Open the approval page in your browser |
785
+ #### Which server the CLI talks to
775
786
 
776
- 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.
777
788
 
778
- 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.
779
794
 
780
795
  ### `phoenix logout`
781
796
 
782
- 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 **CLI 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 **CLI 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.
783
817
 
784
818
  ### `phoenix deploy`
785
819
 
786
- 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.
821
+
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 has fewer than three previews. 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.
787
823
 
788
- 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.
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.
789
825
 
790
826
  A follow-up evaluation hint is addressed to coding agents; you can ignore it when running the command manually.
791
827
 
@@ -804,7 +840,7 @@ Review and redact credentials or unrelated sensitive content before uploading th
804
840
 
805
841
  ### `phoenix feedback [message]`
806
842
 
807
- 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.
843
+ 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.
808
844
 
809
845
  ```bash
810
846
  phoenix feedback "phoenix build reports a missing entity when a module file is empty" --type bug
@@ -813,17 +849,17 @@ phoenix feedback --file report.txt --type bug
813
849
 
814
850
  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.
815
851
 
816
- | Flag | Env | Default | Description |
817
- | ---------------------- | -------------- | ----------------------------- | --------------------------------------------------------- |
818
- | `--file` | — | — | Text file that holds the message, instead of the argument |
819
- | `--type` | — | `other` | What the feedback is about: `bug`, `idea` or `other` |
820
- | `--contact` | — | — | How to reach you, when you want a reply |
821
- | `--agent` | — | — | Name of the coding agent submitting the feedback |
822
- | `--projectSlug` / `-p` | `PROJECT_SLUG` | `project` of the spec, if any | Workspace project the feedback is about |
823
- | `--region` | — | `eu` | Phoenix region of the workspace: `eu` or `us` |
824
- | `--serverUrl` / `--su` | — | the region's server | Phoenix server URL, for a local or custom server |
825
-
826
- 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.
852
+ | Flag | Env | Default | Description |
853
+ | ---------------------- | ---------------- | -------------------------------------------- | --------------------------------------------------------- |
854
+ | `--file` | — | — | Text file that holds the message, instead of the argument |
855
+ | `--type` | — | `other` | What the feedback is about: `bug`, `idea` or `other` |
856
+ | `--contact` | — | — | How to reach you, when you want a reply |
857
+ | `--agent` | — | — | Name of the coding agent submitting the feedback |
858
+ | `--projectSlug` / `-p` | `PROJECT_SLUG` | `project` of the spec, if it names one | Workspace project the feedback is about |
859
+ | `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Phoenix region you are signed in to: `eu` or `us` |
860
+ | `--serverUrl` / `--su` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL, for a local or custom server |
861
+
862
+ 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.
827
863
 
828
864
  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.
829
865
 
@@ -558,12 +558,12 @@ The `application.yaml` file contains global application-level settings. These fi
558
558
 
559
559
  ### Core Application
560
560
 
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 |
561
+ | Field | Type | Description |
562
+ | -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
563
+ | `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 |
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 |
567
567
 
568
568
  ### Internationalization
569
569
 
@@ -668,7 +668,7 @@ env:
668
668
  ### Example application.yaml
669
669
 
670
670
  ```yaml
671
- project: default
671
+ project: my-configurator
672
672
  applicationVersion: '1.0.0'
673
673
  webComponentTag: 'my-configurator'
674
674
  pageTitle: 'Product Configurator'
@@ -2,14 +2,14 @@
2
2
 
3
3
  An SDK-builder workspace lets you build configurators from application specs and develop and deploy them from your terminal. You don't need a repository, a CI pipeline, project keys or a development key. You write `spec/` and `src/`, run `phoenix dev` to develop and `phoenix deploy` to go live, and the platform builds and deploys the project for you.
4
4
 
5
- Your workspace comes with one project and one `production` environment. Its first deployment is a hello-world configurator, so you have a live link before you change anything.
5
+ Your workspace starts with one project, which has a `production` environment; staff can add more projects. A new project starts empty: setting it up takes about a minute, and nothing is live until your first `phoenix deploy`, which also creates the address your configurator is served at.
6
6
 
7
- Your workspace's Studio shows the setup, the link to your configurator and the setup steps with your workspace filled in. If the first deployment fails, Studio shows why and lets you retry it.
7
+ Your workspace's Studio shows the setup, the setup steps with your project filled in and, once you have deployed, the link to your configurator. If the setup fails, Studio shows why and lets you retry it with **Retry setup**.
8
8
 
9
9
  ## Before you start
10
10
 
11
11
  - **Package access:** `@salsita-ai/sdk` is public on npm; any package manager downloads it without a registry token.
12
- - **Workspace details:** you need your workspace slug and its Phoenix region (`eu` or `us`), which you also received with your workspace.
12
+ - **Workspace details:** you need the Phoenix region of your workspace (`eu` or `us`), which you received with it. The project slug to deploy to is shown in Studio.
13
13
  - **Tools:** Node.js and a package manager. The commands below use pnpm; with npm, run `npm install` and `npx phoenix …` instead, with Yarn `yarn phoenix …`, with Bun `bunx phoenix …`.
14
14
  - **SDK build:** during the internal beta, use the `canary` build of the SDK, as the commands below do. It is published from every change to the platform, so it is newer than the last release.
15
15
 
@@ -28,28 +28,46 @@ pnpm phoenix sync
28
28
 
29
29
  Phoenix writes no package-manager settings. With pnpm 11, add a `pnpm-workspace.yaml` that allows the build scripts of the SDK's dependencies before the first install; [Package manager](?path=/docs/phoenix-project-structure--docs#package-manager) has the file.
30
30
 
31
- The starter `spec/application.yaml` begins with `project: default`, which means the default project of the workspace you sign in to. To develop and deploy another project in that workspace, set `project` to its actual slug. Staff can create or move projects into your workspace; choose the project in Studio's **Project** selector to see its overview, builds, environment variables and allowed sites.
31
+ The starter `spec/application.yaml` names no project. After `phoenix login`, `phoenix dev` and `phoenix deploy` work in the project that `--project <slug>` names, else the one `project` in the spec names. With neither, in a terminal they let you select one of the projects your account can reach and offer to write `project: <slug>` into the spec; without a terminal they use the only project you can reach and print the line to add, or stop and list the projects when there are several. To develop and deploy another project, set `project` to its actual slug. Staff can create projects in your workspace, and workspace superadmins create them in Studio; choose the project in Studio's **Project** selector to see its overview, builds, environment variables and allowed sites. The selector lists each project's slug, and the overview of a live project shows the `project: <slug>` line and the sign-in and deploy commands under **Deploy from the CLI**.
32
32
 
33
33
  ## 2. Sign in
34
34
 
35
35
  ```bash
36
- pnpm phoenix login <workspace>
36
+ pnpm phoenix login
37
37
  ```
38
38
 
39
- `phoenix login` opens Studio, where you name the token and approve the sign-in. Only a super admin of the workspace can open Studio, so only a super admin can approve it. The CLI suggests `phoenix CLI on <computer>`; a name of your own, such as its purpose and the machine, tells your tokens apart later. Studio sends a one-time code back to the CLI on `127.0.0.1`, the CLI exchanges it for a personal token and returns the browser to Studio, which confirms the sign-in. The code only works for the CLI that asked for it and expires after five minutes. **Deny** stops the waiting CLI at once and creates no token. Use `--no-open` to print the link instead of opening a browser.
39
+ `phoenix login` opens Studio, where you name the token and approve the sign-in. The approval page shows who signs in, the computer the CLI runs on, when the link expires and what the sign-in can reach: every project of the workspaces where you are a Superadmin, and the projects you manage elsewhere. You can approve a personal sign-in before receiving project access, and the page then says that it cannot develop or deploy anything yet; developing and deploying require a current project Superadmin grant or workspace Superadmin membership. The CLI suggests `phoenix CLI on <computer>`; a name of your own, such as its purpose and the machine, tells your tokens apart later. Studio sends a one-time code back to the CLI on `127.0.0.1`, the CLI exchanges it for a personal token and returns the browser to Studio, which confirms the sign-in. The code only works for the CLI that asked for it and expires after five minutes. **Deny** stops the waiting CLI at once and creates no token. Use `--no-open` to print the link instead of opening a browser.
40
40
 
41
- The CLI stores the token in `~/.phoenix/credentials.json`, readable only by you, with one entry per server. `PHOENIX_CREDENTIALS_FILE` moves the file. The token acts for you in your workspace until you revoke it. It stops working when you are removed from the workspace or banned.
41
+ The CLI stores the token in `~/.phoenix/credentials.json`, readable only by you, with one entry per server. `PHOENIX_CREDENTIALS_FILE` moves the file. The token follows your current access across SDK-builder workspaces until you revoke it. Removing workspace membership or a project grant immediately removes access to that target; disabling your account blocks the token. `pnpm phoenix whoami` shows the current accessible projects. The legacy `phoenix login <workspace>` command still issues a workspace-bound token. Tokens cannot manage users, roles or other tokens.
42
42
 
43
43
  `pnpm phoenix logout` revokes the token and removes it from the file. Studio's **CLI tokens** page lists your tokens by the names you gave them, with when they were last used, and revokes any of them, for example one left on another computer. A revoked token leaves the list.
44
44
 
45
- `login`, `logout` and `deploy` follow the region, not the `SERVER_URL` in the project's `.env`. `dev` follows the region too when `.env` has no `SERVER_URL`:
45
+ `login`, `dev`, `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. After `phoenix login --region us`, the other commands therefore reach the US server without a flag. `whoami` shows the account, the server and whether the project of the current folder is reachable, and `deploy` prints the same target before it packs:
46
46
 
47
- | Flag | Default | Description |
48
- | ---------------------- | ------------------------------------ | ------------------------------------------------ |
49
- | `--region` | `eu` | Phoenix region of the workspace: `eu` or `us` |
50
- | `--serverUrl` / `--su` | the region's server | Phoenix server URL, for a local or custom server |
51
- | `--studioUrl` | the workspace's Studio in the region | Studio URL of the workspace (`login`) |
52
- | `--open` | `true` | Open the approval page in your browser (`login`) |
47
+ | Flag | Default | Description |
48
+ | ---------------------- | -------------------------------------------- | ------------------------------------------------ |
49
+ | `--region` | your saved sign-in, else `eu` | Phoenix region to sign in to: `eu` or `us` |
50
+ | `--serverUrl` / `--su` | your saved sign-in, else the region's server | Phoenix server URL, for a local or custom server |
51
+ | `--studioUrl` | the Studio of the server | Studio URL matching the server (`login`) |
52
+ | `--open` | `true` | Open the approval page in your browser (`login`) |
53
+
54
+ ## Automation tokens
55
+
56
+ In Studio's **CLI tokens** page, choose **Create automation token**. Choose one project (the default) or the current workspace and give the token a name. Save the secret when it appears: it is shown only once. Scope and deploy-only permissions are immutable; revoke and replace a token to change them.
57
+
58
+ Supply `PHOENIX_API_TOKEN` through your CI secret store in the process environment, then run `phoenix whoami --region <region>` or `phoenix deploy --region <region>`. The variable takes precedence over saved login for these two commands. It is never saved to the credentials file, read from dotenv files, or included in generated project environment variables. An empty or malformed value fails without falling back to saved login. `phoenix logout` still revokes the saved interactive login; revoke automation credentials in Studio.
59
+
60
+ A token limited to one project deploys to that project with no further setting. A token for a whole workspace with several projects needs the project named, with `project: <project-slug>` in `spec/application.yaml` or `--project <project-slug>`: without a terminal, deploy stops and lists the projects instead of choosing one.
61
+
62
+ Automation tokens use `phxa_` and require server API 1.76.0 or later. They can upload sources, start builds and read status/logs within their scope; they cannot develop, submit feedback or administer users, roles or tokens. `whoami` shows only scoped projects. A token belongs to its workspace or to the one project it is scoped to, not to the person who created it: it keeps working when that person leaves the workspace, is suspended or changes role, so CI keeps deploying. Only a workspace Superadmin can create a workspace-wide token, which reaches every project of the workspace, including ones created later. Revocation takes effect on the next request, and a token stops working while its workspace is suspended. A project token stays bound to its original workspace and cannot access a project moved out of it. Existing personal and workspace login tokens keep their behavior.
63
+
64
+ ## Team token administration
65
+
66
+ **Your CLI sign-ins** shows your own personal credentials, and above them the workspaces and projects they reach; every sign-in acts as you, so they all reach the same projects. Without a Builder workspace you find and revoke your sign-ins on your account screen instead. **Automation tokens** shows every automation token you manage, including the ones you created: workspace Superadmins see and revoke all automation tokens of the workspace, project Superadmins those restricted to a project they manage. The creator of a token has no special rights over it; each row names its creator and says when that person is no longer a member. Workspace Superadmins can also revoke other members' legacy workspace login tokens. Revoke stops the whole token; it does not remove membership or alter other tokens. The confirmation shows the scope, the creator and the last use.
67
+
68
+ Removing a member stops their CLI sign-ins in the workspace. The automation tokens they created keep working, and the person may still hold a copy of the secrets: the Remove member dialog lists those tokens and offers to revoke them with the removal.
69
+
70
+ Applicable broader workspace and cross-workspace personal tokens are shown read-only with a generic name, hint and local applicability. Their original names and global last-use timestamps are hidden to protect unrelated work. Only tokens wholly within your authority show full names and usage. Cross-workspace personal CLI credentials can be revoked only by their owners. Remove someone's workspace membership or project grant to stop those credentials accessing that target. Staff use **Customer → API tokens** for Cognito Builder customers without joining their workspace. Partial revocation of a broader token and administrative audit history are unavailable. Use **Load more tokens** to see further credentials; a failed page load keeps the rows already shown so you can retry.
53
71
 
54
72
  ## 3. Develop
55
73
 
@@ -57,9 +75,9 @@ The CLI stores the token in `~/.phoenix/credentials.json`, readable only by you,
57
75
  pnpm phoenix dev
58
76
  ```
59
77
 
60
- Signed in, `phoenix dev` needs no `.env` and nothing set up in Studio. When it starts, it asks the server for your development environment in the project the spec names. The server creates that environment the first time and finds it again on every later run. `phoenix dev` prints the workspace, project and environment it works in, prepares a development deployment there and opens the webhook tunnel, as for any Phoenix project (see [Phoenix CLI](?path=/docs/phoenix-phoenix-cli--docs)). It then prints the address of the preview as `Preview: <url>`; the preview talks to the server the deployment was prepared on.
78
+ Signed in, `phoenix dev` needs no `.env` and nothing set up in Studio beyond access to the project. When it starts, it asks the server for your development environment in the project the spec names. The server creates that environment the first time and finds it again on every later run. `phoenix dev` prints the project and environment it works in, prepares a development deployment there and opens the webhook tunnel, as for any Phoenix project (see [Phoenix CLI](?path=/docs/phoenix-phoenix-cli--docs)). It then prints the address of the preview as `Preview: <url>`; the preview talks to the server the deployment was prepared on.
61
79
 
62
- Every user who signs the CLI in gets their own development environment, so a teammate (a super admin of the workspace, like you) who clones the project and signs in doesn't overwrite your schema or take over your webhooks. The development environment is separate from `production`: nothing you do in `phoenix dev` changes the live configurator.
80
+ Every user who signs the CLI in gets their own development environment, so a teammate with access to the project who clones it and signs in doesn't overwrite your schema or take over your webhooks. The development environment is separate from `production`: nothing you do in `phoenix dev` changes the live configurator.
63
81
 
64
82
  `pnpm phoenix dev --persistence local-storage` still runs the project without any server, with state kept in the browser.
65
83
 
@@ -67,26 +85,37 @@ Every user who signs the CLI in gets their own development environment, so a tea
67
85
 
68
86
  ```bash
69
87
  pnpm phoenix deploy
88
+ pnpm phoenix deploy --env staging
70
89
  ```
71
90
 
91
+ `phoenix deploy` builds into a **preview**, never into production. Every new project has `production` and a preview called `preview`; you can have up to three previews and create or delete them in Studio (the environment picker's **New preview**, or Project settings). Without `--env` the deploy builds into `preview`, and creates it when your project has none. `--env <name>` builds into another preview that already exists. Production changes only when you **promote** a preview build in Studio, or roll it back to an earlier build (see Roll back production below).
92
+
72
93
  `phoenix deploy` goes through these steps:
73
94
 
74
95
  1. It validates the application spec.
75
96
  2. It packs the project files: the `.yaml` files in `spec`, everything in `src`, `mocks`, `assets`, `public` and `templates`, and `package.json`, `tsconfig.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, `.gitignore`, `CLAUDE.md` and `.cursor/rules/phoenix.mdc`. Project-owned `.phoenix/workspace/` records and the client documents in `docs/` also travel in the private source archive; they are excluded from build inputs and public assets. Other `.phoenix` contents, every `node_modules` and `__generated` folder, every `.DS_Store` and `._*` file and every `.env` and `.env.*` file are left out.
76
- 3. It asks the server for a build. The server compares your domain model with the deployed one and refuses, before anything is uploaded, a model that changed under an already deployed model version; see [Migrations](?path=/docs/phoenix-migrations--docs).
97
+ 3. It asks the server for a build in the preview. A preview replaces a stored schema that changed under the same model version, because its saved configurations are test data; production does not, so promoting such a build is refused (see [Migrations](?path=/docs/phoenix-migrations--docs)).
77
98
  4. It uploads the archive, which may be up to 200 MB.
78
- 5. It starts the build, prints a link to the build's page in Studio and follows the build until your configurator is live, then prints its URL.
99
+ 5. It starts the build, prints its number and a link to the build's page in Studio and follows the build until the preview is live, then prints its URL. Builds of one preview run one at a time: a build started while another runs there waits in a queue, first in, first out, and starts by itself; the deploy says what it waits for. At most three builds wait per environment.
79
100
 
80
101
  On the server, the install runs pnpm. It follows your `pnpm-lock.yaml` and `pnpm-workspace.yaml` when the project has them, so a pnpm project gets the same build scripts and package versions as on your computer; without them, pnpm resolves `package.json` with the settings the SDK needs. The build runs without platform secrets. It sees only your own environment variables and the public platform values, the [build environment](?path=/docs/phoenix-phoenix-cli--docs) that `phoenix deployment:build-envs` writes. The trusted deploy step then publishes the frontend, webhooks and assets.
81
102
 
82
- If the build fails, is cancelled or takes too long, `phoenix deploy` prints the end of the build log and exits with an error. `--no-wait` returns as soon as the build starts.
103
+ If the build fails, is cancelled or takes too long, `phoenix deploy` prints the end of the build log and exits with an error. `--no-wait` returns as soon as the build starts or joins the queue.
104
+
105
+ ### Promote to production
106
+
107
+ Check the preview, then choose **Promote #N to production** on the preview's overview or the build's page. Production builds the same uploaded files again with production's environment variables, and keeps serving its current build until the new one is live; a promotion that fails before it switches production's frontend changes nothing there. The dialog shows what production serves now, whether production accepts the build's data schema (a changed model under the same version is refused, as above) and the variables the preview sets that production does not. The first promotion also sets up production's hosting, which takes a few minutes longer. Every promotion is a build in production that names the preview build it came from.
83
108
 
84
109
  Studio's **Builds & deployments** page lists your builds, 20 to a page, and shows which one your configurator serves. Filter it to the live build or to the builds that failed. Each build shows its progress, its error and the full build log while it runs, and who deployed it with which CLI token.
85
110
 
86
- **Rebuild** on a build's page builds the files uploaded with that build again, with your environment variables as they are now, without a new `phoenix deploy`. Use it after changing a variable, or when a build failed for a reason on our side. If the rebuild succeeds it goes live, so rebuilding an older build rolls production back to it.
111
+ **Rebuild** on a build's page builds the files uploaded with that build again, with your environment variables as they are now, without a new `phoenix deploy`. Use it after changing a variable, or when a build failed for a reason on our side. If the rebuild succeeds it goes live. A rebuild waits for a running build of the same environment.
87
112
 
88
113
  `phoenix deploy` refuses symlinks, hard-linked files and other special files among the project files, because builds only accept regular files. Packing uses the system `tar`, which macOS, Linux and Windows 10 or later all include. The build runner checks the uploaded archive again and keeps only project files, so a file outside the list above never reaches the build.
89
114
 
115
+ ### Roll back production
116
+
117
+ When a promotion goes wrong, choose **Roll back** on production's overview, in the header for the build that was live before, or on an earlier row of **Production deployments**. The earlier build goes live again in about a minute, without a new build and with the variables it was built with; it doesn't count toward your builds, and the build it replaces stays in the history, so you can make it live again the same way. Production serves its current build until the switch is done. You can roll back to the ten newest production builds whose files are kept. Production can't roll back while a production build runs or waits, including one that has run for over 45 minutes and could still finish, for up to 90 minutes after it started. When the earlier build uses a lower data-model version, the dialog warns that configurations saved by the newer build stay stored but won't open until production runs that version again.
118
+
90
119
  ## Send feedback
91
120
 
92
121
  Tell us what is broken, confusing or missing, from wherever you are:
@@ -97,11 +126,11 @@ Tell us what is broken, confusing or missing, from wherever you are:
97
126
 
98
127
  ## Known limits
99
128
 
100
- - You can deploy once the selected project's production setup is ready. Until then, `phoenix deploy` tells you that project's setup is incomplete.
101
- - The first deployment is the starter, so the starter's model is version 1 in production. Replacing it with your own model needs the starter's model kept as `v1` and a migration to version 2; [Migrations](?path=/docs/phoenix-migrations--docs) shows the migration for replacing a model entirely.
102
- - Each project uses its `production` environment and has a development environment per user. Creating or moving projects requires staff.
103
- - `phoenix deploy` reads `project` from the application spec. Omitted or `default` selects the workspace’s original default project. After moving a project into another workspace, sign in to that workspace and set the actual moved project slug before deploying. Targeting a nondefault project requires server API 1.61.0 or newer; the CLI stops before upload if the server cannot confirm support.
104
- - Only `phoenix dev` works from the sign-in. `phoenix deployment:prepare-dev` still needs the `.env` block of a Studio development environment.
129
+ - You can deploy and run `phoenix dev` once the selected project is set up, about a minute after it is created. Until then, both tell you the project is still being set up; if the setup failed, they tell you to retry it in Studio.
130
+ - The model of your first promotion is version 1 in production; there is nothing to migrate from. Only a project whose production was first deployed as the hello-world starter, in the early beta, has the starter's model as version 1: replacing it with your own model needs the starter's model kept as `v1` and a migration to version 2, and [Migrations](?path=/docs/phoenix-migrations--docs) shows the migration for replacing a model entirely.
131
+ - Each project has its `production`, up to three previews and a development environment per user. A deleted preview's name cannot be reused until its removal has finished. Staff can create projects in your workspace, and workspace superadmins create them in Studio; a project cannot move to another workspace.
132
+ - `phoenix deploy` deploys to the project `--project` or `project` of the application spec names, or else to one of the projects the sign-in can reach, as `phoenix dev` does; it does not read `PROJECT_SLUG`. `project: default` names no project. When a slug is in several of your workspaces, name the project as `<project>--<workspace>`. Targeting a project other than the workspace's initial one requires server API 1.61.0 or newer; the CLI stops before upload if the server cannot confirm support.
133
+ - Of the development commands, only `phoenix dev` works from the sign-in. `phoenix deployment:prepare-dev` still needs the `.env` block of a Studio development environment.
105
134
  - Every deploy uploads the whole project; there are no incremental uploads.
106
- - Your own environment variables are set in Studio under Environment, by a super admin of the workspace, and apply from the next deploy. After a change, **Redeploy #N now** there rebuilds your live build with the new values, without a new `phoenix deploy`; it appears once your own build is live. `phoenix dev` doesn't receive them: your development environment has its own variables. A build reads them from `process.env`; a webhook reads the ones the spec declares under `env.webhook`, through `phx.webhooksEnv` (see [Webhooks](?path=/docs/phoenix-webhooks--docs)). They can't use platform names such as `LAMBDA_FUNCTION_NAME`, the `AWS_` prefix, the identity provider settings such as `CLERK_API_KEY`, or names the CLI and the deploy tooling read themselves, such as `SERVER_URL` or `NODE_OPTIONS`; Studio refuses those names.
107
- - Only super admins of a workspace can open its Studio. Admins and users see a page that says so.
135
+ - Your own environment variables are set in Studio under Environment, by a workspace Superadmin or a Superadmin of the project. A preview's apply from its next deploy; production's apply from the next promotion, and rolling back keeps the values each build was made with. After a change, **Redeploy #N now** there rebuilds your live build with the new values, without a new `phoenix deploy`; it appears once your own build is live. `phoenix dev` doesn't receive them: your development environment has its own variables. A build reads them from `process.env`; a webhook reads the ones the spec declares under `env.webhook`, through `phx.webhooksEnv` (see [Webhooks](?path=/docs/phoenix-webhooks--docs)). They can't use platform names such as `LAMBDA_FUNCTION_NAME`, the `AWS_` prefix, the identity provider settings such as `CLERK_API_KEY`, or names the CLI and the deploy tooling read themselves, such as `SERVER_URL` or `NODE_OPTIONS`; Studio refuses those names.
136
+ - Every active member of a workspace can open its Studio for their account and their own CLI tokens. The project pages and the CLI need a workspace Superadmin, who reaches every project, or a project Superadmin grant; the Admin and User roles alone give neither.
@@ -81,15 +81,18 @@ When chunked publishing is configured, session tokens may also contain a `chunkS
81
81
 
82
82
  Configurator and admin session tokens can carry a `sub` claim naming the user the session belongs to. Per-user server data, such as assistant threads, is keyed on it. It is for the server only: the SDK does not expose it in `sessionPayload`, so do not key frontend data on it. The server builds it from the source of the id, so an id sent by the browser can never pass as a signed-in user:
83
83
 
84
- | `sub` | When |
85
- | ------------------ | ------------------------------------------------------------------------------------------- |
86
- | `clerk-<id>` | The auth handler builder's Clerk handlers signed the user in; `<id>` is the Clerk user id. |
87
- | `custom-<id>` | Any other auth handler returned `userId`; `<id>` is that value. |
88
- | `anonymous-<uuid>` | No auth hook, or the handler returned no `userId`; `<uuid>` is the browser's anonymous id. |
89
- | `studio-<id>` | Studio minted the token for its signed-in user (embedded admin, edit and preview sessions). |
84
+ | `sub` | When |
85
+ | ------------------ | ---------------------------------------------------------------------------------------------------------------- |
86
+ | `clerk-<id>` | The auth handler builder's Clerk handlers signed the user in; `<id>` is the Clerk user id. |
87
+ | `phoenix-<id>` | The shared Cognito flow resolved a Phoenix account and current project grant; `<id>` is its stable account UUID. |
88
+ | `custom-<id>` | Any other auth handler returned `userId`; `<id>` is that value. |
89
+ | `anonymous-<uuid>` | No auth hook, or the handler returned no `userId`; `<uuid>` is the browser's anonymous id. |
90
+ | `studio-<id>` | Studio minted the token for its signed-in user (embedded admin, edit and preview sessions). |
90
91
 
91
92
  The browser's anonymous id is a random UUID the SDK keeps under the localStorage key `configurator-user-id` and sends with every session authentication, so one browser is one anonymous user. It is separate from the analytics `user_id`. When storage is unavailable, the id lasts for the page's lifetime.
92
93
 
94
+ For shared Cognito sign-in, provider configuration, role gates and revocation, see **[Webhooks — Cognito configurator sign-in](?path=/docs/phoenix-webhooks--docs#cognito-configurator-sign-in)**.
95
+
93
96
  A signed-in user therefore keeps the same identity across browsers, while an anonymous one is tied to the browser. A custom refresh handler must return `userId` again, or the renewed session becomes the browser's anonymous user. Return `userId` from your handlers as shown in **[Webhooks - Custom auth handlers](?path=/docs/phoenix-webhooks--docs#custom-auth-handlers)**.
94
97
 
95
98
  ### Studio Embedded Admin Sessions
@@ -1,16 +1,12 @@
1
1
  # Theming
2
2
 
3
- The SDK uses MUI 5's theming system with pre-configured themes that handle all styling needs.
3
+ Use Phoenix themes to give the configurator consistent brand colors, typography and component styling. Start from a preset and customize it for the product's visual identity.
4
4
 
5
- > **☝️ For FS developers, your focus should be on functionality, not styling details**
5
+ ## Choosing the customization
6
6
 
7
- ## Best Practices
8
-
9
- 1. **Don't Waste Time on UI Details**<br />
10
- Make it work and let the cleaning lady (UI Dev) match the designs.
11
-
12
- 2. **Avoid Theme Style Overrides**<br />
13
- When you need different styling, raise a flag to create proper props or variants rather than overriding styles.
7
+ - Use theme options for shared colors, typography, shape and component defaults or style overrides.
8
+ - Use a custom project layout when the page composition or interaction layout needs to change; see [Custom layout](../?path=/docs/layouts-custom-layout--docs).
9
+ - Keep focus, disabled, error and phone states legible when customizing the appearance.
14
10
 
15
11
  ## YAML Configuration
16
12