@salsita-ai/sdk 0.50.0-develop.f03b563886 → 0.50.0-develop.f81ab6ac76

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 (975) hide show
  1. package/README.md +19 -14
  2. package/dist/admin/default-admin-elements.d.ts +9 -0
  3. package/dist/admin/default-admin-elements.js +1 -0
  4. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  5. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  6. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  7. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  8. package/dist/admin/default-elements/index.d.ts +2 -0
  9. package/dist/admin/default-elements/index.js +1 -0
  10. package/dist/admin/index.d.ts +1 -0
  11. package/dist/admin/index.js +1 -1
  12. package/dist/application-spec/caching/content-diff.js +1 -1
  13. package/dist/application-spec/core/application-file.d.ts +0 -2
  14. package/dist/application-spec/core/application-file.js +1 -1
  15. package/dist/application-spec/core/components/component-filter.d.ts +53 -0
  16. package/dist/application-spec/core/components/component-filter.js +1 -0
  17. package/dist/application-spec/core/components/index.d.ts +2 -0
  18. package/dist/application-spec/core/components/index.js +1 -0
  19. package/dist/application-spec/core/components/sdk-code-ref.d.ts +9 -0
  20. package/dist/application-spec/core/components/sdk-code-ref.js +1 -0
  21. package/dist/application-spec/core/enhanced-json-value.d.ts +0 -68
  22. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  23. package/dist/application-spec/core/expressions/index.d.ts +2 -0
  24. package/dist/application-spec/core/expressions/index.js +1 -0
  25. package/dist/application-spec/core/expressions/relation-expression-params.d.ts +11 -0
  26. package/dist/application-spec/core/expressions/sdk-expression-implementation.d.ts +24 -0
  27. package/dist/application-spec/core/expressions/sdk-expression-implementation.js +1 -0
  28. package/dist/application-spec/core/index.d.ts +2 -0
  29. package/dist/application-spec/core/index.js +1 -1
  30. package/dist/application-spec/core/json-value.d.ts +1 -1
  31. package/dist/application-spec/{core → enhanced-json}/eval-to-constant.d.ts +1 -1
  32. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  33. package/dist/application-spec/enhanced-json/index.js +1 -0
  34. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  35. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  36. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  37. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  38. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  39. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  40. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  41. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  42. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  43. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  44. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  45. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  46. package/dist/application-spec/errors/diagnostic-codes.d.ts +14 -0
  47. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  48. package/dist/application-spec/errors/diagnostic-messages.d.ts +17 -0
  49. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  50. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  51. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  52. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  53. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  54. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  55. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  56. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  57. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  58. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  59. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  60. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  61. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  62. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  63. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  64. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  65. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  66. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  67. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  68. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  69. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  70. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  71. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  72. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  73. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  74. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  75. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  76. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  77. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +69 -73
  78. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +8 -0
  79. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  80. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  81. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  82. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  83. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  84. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  85. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  86. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  87. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  88. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  89. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  90. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  91. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  92. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  93. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  94. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  95. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  96. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +31 -0
  97. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +1 -0
  98. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  99. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  100. package/dist/application-spec/generate-application/code/templates/index.d.ts +3 -10
  101. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  102. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  103. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  104. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  105. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  106. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  107. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  108. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  109. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +1 -1
  110. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  111. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  112. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  113. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  114. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +31 -14
  115. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -4
  116. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  117. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  118. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  119. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  120. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  121. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  122. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  123. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  124. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  125. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  126. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  127. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  128. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  129. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  130. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  131. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  132. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  133. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  134. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  135. package/dist/application-spec/generate-application/index.d.ts +2 -0
  136. package/dist/application-spec/generate-application/index.js +1 -1
  137. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -4
  138. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  139. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +8 -3
  140. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  141. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  142. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +19 -7
  143. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  144. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +6 -4
  145. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  146. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +7 -4
  147. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  148. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  149. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +43 -0
  150. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  151. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  152. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  153. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  154. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  155. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +16 -0
  156. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  157. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  158. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  159. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  160. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  161. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  162. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  163. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  164. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +2 -1
  165. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  166. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +5 -1
  167. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  168. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  169. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +7 -4
  170. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  171. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +9 -5
  172. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  173. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +3 -1
  174. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  175. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  176. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  177. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  178. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  179. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  180. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  181. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  182. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.js +1 -0
  183. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  184. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  185. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  186. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  187. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +27 -0
  188. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  189. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  190. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  191. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +68 -0
  192. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  193. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  194. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  195. package/dist/application-spec/index.d.ts +1 -0
  196. package/dist/application-spec/index.js +1 -1
  197. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  198. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  199. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  200. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  201. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  202. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  203. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  204. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  205. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  206. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +16 -3
  207. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  208. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  209. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  210. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  211. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  212. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  213. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  214. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  215. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  216. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  217. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  218. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  219. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  220. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  221. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  222. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  223. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  224. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  225. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  226. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  227. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  228. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  229. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  230. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  231. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +1 -9
  232. package/dist/application-spec/parse-application-files/spec/components/component-entry.js +1 -1
  233. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +1 -54
  234. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  235. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  236. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  237. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  238. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  239. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -1
  240. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  241. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  242. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  243. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +6 -0
  244. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  245. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +7 -4
  246. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  247. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  248. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  249. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  250. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.js +1 -0
  251. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  252. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  253. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +1 -28
  254. package/dist/application-spec/parse-application-files/spec/expressions/expression.js +1 -1
  255. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -3
  256. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  257. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  258. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  259. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  260. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +3 -1
  261. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  262. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +2 -2
  263. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  264. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +7 -2
  265. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  266. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  267. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  268. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  269. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  270. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  271. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  272. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  273. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  274. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  275. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  276. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  277. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  278. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  279. package/dist/client/phoenix-api.d.ts +463 -0
  280. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  281. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  282. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  283. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +38 -1
  284. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  285. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +7 -1
  286. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  287. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  288. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  289. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  290. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +20 -4
  291. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  292. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  293. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  294. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +2 -2
  295. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  296. package/dist/configurator/common/configurator-interface.d.ts +35 -1
  297. package/dist/configurator/common/configurator-interface.js +1 -1
  298. package/dist/configurator/common/index.d.ts +3 -1
  299. package/dist/configurator/common/index.js +1 -1
  300. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  301. package/dist/configurator/common/use-reset-camera.js +1 -0
  302. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +12 -0
  303. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  304. package/dist/configurator/configuration-not-found-page/index.d.ts +1 -0
  305. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  306. package/dist/configurator/configurator-context/PresetSelectionProvider.js +1 -1
  307. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +1 -1
  308. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  309. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  310. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  311. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  312. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  313. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  314. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  315. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  316. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  317. package/dist/configurator/pages/RootPage.js +1 -1
  318. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  319. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  320. package/dist/configurator/pages/default-configurator-elements.d.ts +11 -0
  321. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  322. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  323. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  324. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  325. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  326. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  327. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  328. package/dist/configurator/pages/default-elements/index.d.ts +4 -0
  329. package/dist/configurator/pages/default-elements/index.js +1 -0
  330. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  331. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  332. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  333. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  334. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  335. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  336. package/dist/configurator/pages/index.d.ts +1 -0
  337. package/dist/configurator/pages/index.js +1 -1
  338. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  339. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  340. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  341. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  342. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  343. package/dist/configurator/preset-screen-elements/index.js +1 -0
  344. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  345. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  346. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  347. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  348. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  349. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  350. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  351. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  352. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  353. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  354. package/dist/configurator/ui/assistant/AssistantChips.d.ts +8 -2
  355. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  356. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  357. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  358. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  359. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  360. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  361. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  362. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  363. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  364. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  365. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  366. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  367. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  368. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  369. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  370. package/dist/configurator/ui/assistant/form/built-in-form-registry.d.ts +10 -0
  371. package/dist/configurator/ui/assistant/form/built-in-form-registry.js +1 -0
  372. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  373. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  374. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  375. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  376. package/dist/configurator/ui/assistant/form/form-element-definition.d.ts +14 -0
  377. package/dist/configurator/ui/assistant/form/form-element-definition.js +1 -0
  378. package/dist/configurator/ui/assistant/form/form-model.d.ts +38 -0
  379. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  380. package/dist/configurator/ui/assistant/form/form-registry.d.ts +31 -0
  381. package/dist/configurator/ui/assistant/form/form-registry.js +8 -0
  382. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  383. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  384. package/dist/configurator/ui/assistant/form/index.d.ts +2 -0
  385. package/dist/configurator/ui/assistant/form/index.js +1 -0
  386. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +9 -0
  387. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  388. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  389. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  390. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +3 -0
  391. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  392. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +3 -0
  393. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  394. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +3 -0
  395. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  396. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +3 -0
  397. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  398. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +34 -0
  399. package/dist/configurator/ui/assistant/form-elements/form-element-props.js +1 -0
  400. package/dist/configurator/ui/assistant/form-elements/index.d.ts +5 -0
  401. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  402. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  403. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  404. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  405. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  406. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  407. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  408. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  409. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  410. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  411. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  412. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  413. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  414. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  415. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  416. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  417. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  418. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +11 -0
  419. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  420. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  421. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  422. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +2 -0
  423. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  424. package/dist/configurator/ui/assistant/thread-items.d.ts +8 -1
  425. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  426. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  427. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  428. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  429. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  430. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  431. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  432. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  433. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  434. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  435. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  436. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  437. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  438. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  439. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  440. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  441. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  442. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  443. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  444. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  445. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  446. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  447. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  448. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  449. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  450. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  451. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  452. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  453. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  454. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  455. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  456. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  457. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  458. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  459. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  460. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  461. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  462. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  463. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  464. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  465. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  466. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  467. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  468. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  469. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  470. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  471. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  472. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  473. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  474. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  475. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  476. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  477. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  478. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  479. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  480. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  481. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  482. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  483. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  484. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  485. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -2
  486. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  487. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  488. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  489. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  490. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  491. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  492. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  493. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  494. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  495. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -0
  496. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  497. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  498. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  499. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  500. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  501. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +16 -19
  502. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  503. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  504. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  505. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  506. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  507. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  508. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  509. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  510. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  511. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  512. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  513. package/dist/docs/fabs/basic.mdx +2 -2
  514. package/dist/docs/index.json +42 -1
  515. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  516. package/dist/docs/layouts/custom-layout.mdx +2435 -0
  517. package/dist/docs/layouts/header/fixed.mdx +2 -2
  518. package/dist/docs/layouts/header/floating.mdx +2 -2
  519. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  520. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  521. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  522. package/dist/docs/other-features/not-found-404.mdx +1 -1
  523. package/dist/docs/other-features/side-effects.mdx +8 -11
  524. package/dist/docs/other-features/transformers.mdx +4 -0
  525. package/dist/docs/other-features/violation-messages.mdx +52 -56
  526. package/dist/docs/phoenix/application-states.mdx +9 -7
  527. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  528. package/dist/docs/phoenix/components.mdx +6 -0
  529. package/dist/docs/phoenix/configurator-interface.mdx +267 -81
  530. package/dist/docs/phoenix/deployments.mdx +2 -6
  531. package/dist/docs/phoenix/domain-model.mdx +6 -0
  532. package/dist/docs/phoenix/finalization.mdx +1 -1
  533. package/dist/docs/phoenix/getting-started.mdx +7 -4
  534. package/dist/docs/phoenix/layout-slots.mdx +116 -0
  535. package/dist/docs/phoenix/localization.mdx +10 -6
  536. package/dist/docs/phoenix/migration-guide.mdx +24 -11
  537. package/dist/docs/phoenix/phoenix-cli.mdx +88 -44
  538. package/dist/docs/phoenix/project-structure.mdx +80 -36
  539. package/dist/docs/phoenix/quickstart.mdx +9 -9
  540. package/dist/docs/phoenix/sdk-builder-workflow.mdx +8 -8
  541. package/dist/docs/phoenix/testing.mdx +148 -0
  542. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  543. package/dist/docs/phoenix/webhooks.mdx +23 -6
  544. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -11
  545. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  546. package/dist/domain/admin-domain/index.js +1 -1
  547. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  548. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  549. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  550. package/dist/domain/application/application-config.d.ts +8 -5
  551. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  552. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  553. package/dist/domain/application/assistant/assistant-form-elements.d.ts +28 -0
  554. package/dist/domain/application/assistant/assistant-form-elements.js +1 -0
  555. package/dist/domain/application/assistant/assistant-manifest.d.ts +9 -1
  556. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +38 -2
  557. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  558. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  559. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  560. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  561. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  562. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  563. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  564. package/dist/domain/application/assistant/index.d.ts +8 -1
  565. package/dist/domain/application/assistant/index.js +1 -1
  566. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  567. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  568. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  569. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  570. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  571. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  572. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  573. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  574. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  575. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  576. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -2
  577. package/dist/domain/application/configurator-builder.d.ts +5 -2
  578. package/dist/domain/application/configurator-builder.js +1 -1
  579. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  580. package/dist/domain/application/index.d.ts +0 -4
  581. package/dist/domain/application/index.js +1 -1
  582. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  583. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  584. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  585. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  586. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  587. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +1 -1
  588. package/dist/domain/application/published-data/map-published-data.d.ts +7 -3
  589. package/dist/domain/core/component/domain-component-optic.d.ts +11 -19
  590. package/dist/domain/core/component/domain-component-optic.js +2 -2
  591. package/dist/domain/core/component/legacy-filter.d.ts +2 -17
  592. package/dist/domain/core/component/system-component-filter.d.ts +36 -18
  593. package/dist/domain/core/expression/constant-expressions.d.ts +16 -8
  594. package/dist/domain/core/expression/constant-expressions.js +1 -1
  595. package/dist/domain/core/expression/custom-expression.d.ts +17 -4
  596. package/dist/domain/core/expression/custom-expression.js +1 -1
  597. package/dist/domain/core/expression/expression.d.ts +1 -2
  598. package/dist/domain/core/invariant/custom-invariants.d.ts +6 -14
  599. package/dist/domain/core/invariant/invariants.d.ts +1 -4
  600. package/dist/domain/core/invariant/violation.d.ts +50 -2
  601. package/dist/domain/core/invariant/violation.js +1 -1
  602. package/dist/domain/core/model/model.d.ts +1 -1
  603. package/dist/domain/core/recipe/recipes.d.ts +18 -50
  604. package/dist/domain/core/recipe/recipes.js +1 -1
  605. package/dist/domain/core/relation/all-of-type-relation.d.ts +8 -21
  606. package/dist/domain/core/relation/all-of-type-relation.js +1 -1
  607. package/dist/domain/core/relation/direct-relation.d.ts +13 -24
  608. package/dist/domain/core/relation/index.d.ts +0 -1
  609. package/dist/domain/core/relation/indirect-relation.d.ts +12 -67
  610. package/dist/domain/core/relation/indirect-relation.js +1 -1
  611. package/dist/domain/core/relation/relation-factory.d.ts +19 -15
  612. package/dist/domain/core/relation/relation-factory.js +1 -1
  613. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  614. package/dist/domain/core/state/migrations.d.ts +14 -45
  615. package/dist/domain/core/state/migrations.js +1 -1
  616. package/dist/domain/core/state/state.d.ts +1 -1
  617. package/dist/domain/domain-builder.d.ts +1 -1
  618. package/dist/domain/domain-builder.js +1 -1
  619. package/dist/domain/domain-context/action-system/action-system.d.ts +1 -1
  620. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  621. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  622. package/dist/domain/domain-context/action-system/index.js +1 -0
  623. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  624. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  625. package/dist/domain/domain-context/create-transformer.d.ts +1 -1
  626. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +2 -2
  627. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  628. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  629. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  630. package/dist/domain/domain-context/domain-context-systems.d.ts +7 -7
  631. package/dist/domain/domain-context/index.d.ts +8 -17
  632. package/dist/domain/domain-context/index.js +1 -1
  633. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  634. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  635. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -3
  636. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  637. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +1 -1
  638. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  639. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  640. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +1 -1
  641. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  642. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +2 -2
  643. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +2 -2
  644. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +2 -2
  645. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  646. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  647. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +2 -2
  648. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  649. package/dist/domain/domain-context/store-system/index.js +1 -0
  650. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  651. package/dist/domain/domain-context/store-system/store-system.d.ts +1 -3
  652. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  653. package/dist/domain/domain-context/store-system/system-state.d.ts +1 -1
  654. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  655. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +5 -7
  656. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  657. package/dist/domain/domain-context/transformers/chain-builder.d.ts +1 -1
  658. package/dist/domain/domain-context/transformers/context.d.ts +1 -1
  659. package/dist/domain/domain-context/transformers/context.js +1 -1
  660. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  661. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  662. package/dist/domain/domain-context/transformers/index.js +1 -1
  663. package/dist/domain/domain-context/transformers/when-builder.d.ts +2 -3
  664. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  665. package/dist/domain/domain-context/undo-system.d.ts +29 -2
  666. package/dist/domain/domain-context/undo-system.js +1 -1
  667. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  668. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  669. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  670. package/dist/domain/domain-runtime/access/types.js +1 -1
  671. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  672. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +17 -22
  673. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  674. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  675. package/dist/domain/domain-runtime/domain-runtime.d.ts +76 -60
  676. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +19 -0
  677. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  678. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  679. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  680. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  681. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  682. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  683. package/dist/domain/domain-runtime/errors/index.js +1 -0
  684. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  685. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  686. package/dist/domain/domain-runtime/index.d.ts +1 -0
  687. package/dist/domain/domain-runtime/index.js +1 -1
  688. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  689. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  690. package/dist/domain/domain-runtime/spec/index.d.ts +2 -5
  691. package/dist/domain/domain-runtime/spec/index.js +1 -1
  692. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  693. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  694. package/dist/domain/{application → domain-runtime/spec/module-checks}/element-registration.d.ts +14 -13
  695. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  696. package/dist/domain/{application → domain-runtime/spec/module-checks}/handler-registration.d.ts +1 -1
  697. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  698. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +8 -0
  699. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  700. package/dist/domain/{project-modules → domain-runtime/spec/module-checks}/project-modules.d.ts +8 -1
  701. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  702. package/dist/domain/domain-runtime/spec/{resolve-action-modules.d.ts → module-checks/resolve-action-modules.d.ts} +2 -2
  703. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  704. package/dist/domain/domain-runtime/spec/{resolve-component-optic-modules.d.ts → module-checks/resolve-component-optic-modules.d.ts} +2 -2
  705. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  706. package/dist/domain/domain-runtime/spec/{resolve-expression-modules.d.ts → module-checks/resolve-expression-modules.d.ts} +2 -2
  707. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  708. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  709. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  710. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  711. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  712. package/dist/domain/domain-runtime/spec/selectors.d.ts +5 -6
  713. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  714. package/dist/domain/domain-runtime/spec/types.d.ts +5 -2
  715. package/dist/domain/extensions/attribute-switch.d.ts +1 -1
  716. package/dist/domain/extensions/attribute-switch.js +1 -1
  717. package/dist/domain/extensions/canvas-config.d.ts +1 -1
  718. package/dist/domain/extensions/client-side-image.d.ts +2 -2
  719. package/dist/domain/extensions/client-side-image.js +1 -1
  720. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +2 -2
  721. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +2 -2
  722. package/dist/domain/extensions/editable-angle-indicator.d.ts +1 -1
  723. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +1 -1
  724. package/dist/domain/extensions/editable-offset-indicator.d.ts +1 -1
  725. package/dist/domain/extensions/editable-offset-indicator.js +1 -1
  726. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -1
  727. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -1
  728. package/dist/domain/extensions/horizontal-tabs.d.ts +2 -2
  729. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +1 -1
  730. package/dist/domain/extensions/navigation-steps.d.ts +2 -2
  731. package/dist/domain/extensions/offset-indicator.js +1 -1
  732. package/dist/domain/extensions/rotation-handle.d.ts +2 -2
  733. package/dist/domain/extensions/save-template-thumbnail.d.ts +2 -2
  734. package/dist/domain/extensions/save-template-thumbnail.js +1 -1
  735. package/dist/domain/extensions/scene-entity-animation.js +1 -1
  736. package/dist/domain/index.d.ts +0 -1
  737. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  738. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  739. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +28 -19
  740. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  741. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  742. package/dist/domain/mocks/create-mock-domain.js +1 -1
  743. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  744. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  745. package/dist/domain/mocks/create-test-application-config.js +1 -0
  746. package/dist/domain/mocks/index.d.ts +1 -0
  747. package/dist/domain/mocks/index.js +1 -1
  748. package/dist/domain/projections/blender-projections/blender-projections.d.ts +1 -2
  749. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  750. package/dist/domain/projections/collision-projections.d.ts +1 -1
  751. package/dist/domain/projections/composition-projections.d.ts +1 -1
  752. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  753. package/dist/domain/projections/position-projections.d.ts +1 -1
  754. package/dist/domain/projections/projected-entities-projections.d.ts +1 -1
  755. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  756. package/dist/domain/projections/validation-projections.d.ts +2 -2
  757. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  758. package/dist/domain/system-components/application-config.d.ts +2 -2
  759. package/dist/domain/system-components/child-entity-selection.js +1 -1
  760. package/dist/domain/system-components/collision-box-geometry.d.ts +4 -2
  761. package/dist/domain/system-components/collision-geometry.d.ts +4 -2
  762. package/dist/domain/system-components/collision-point-geometry.d.ts +4 -2
  763. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  764. package/dist/domain/system-components/common/recipes.d.ts +21 -3
  765. package/dist/domain/system-components/common/recipes.js +1 -1
  766. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  767. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  768. package/dist/domain/system-components/constraint.d.ts +10 -23
  769. package/dist/domain/system-components/drag-handle.d.ts +1 -1
  770. package/dist/domain/system-components/drag-handle.js +1 -1
  771. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  772. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  773. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  774. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  775. package/dist/domain/system-components/hotspot-drag-handle.d.ts +1 -1
  776. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  777. package/dist/domain/system-components/material-swatch.js +1 -1
  778. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  779. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  780. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  781. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  782. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  783. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  784. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  785. package/dist/domain/utils/eval-cache.d.ts +1 -1
  786. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  787. package/dist/editor/Editor.d.ts +7 -0
  788. package/dist/editor/Editor.js +1 -1
  789. package/dist/editor/domain-editors/use-implementation-files.d.ts +1 -2
  790. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  791. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  792. package/dist/editor/mocks/EditorMockContext.js +1 -1
  793. package/dist/globals/index.d.ts +2 -0
  794. package/dist/i18n/locales/cs/messages.js +1 -1
  795. package/dist/i18n/locales/da/messages.js +1 -1
  796. package/dist/i18n/locales/de/messages.js +1 -1
  797. package/dist/i18n/locales/de-AT/messages.js +1 -1
  798. package/dist/i18n/locales/en/messages.js +1 -1
  799. package/dist/i18n/locales/en-AU/messages.js +1 -1
  800. package/dist/i18n/locales/en-GB/messages.js +1 -1
  801. package/dist/i18n/locales/es/messages.js +1 -1
  802. package/dist/i18n/locales/fr/messages.js +1 -1
  803. package/dist/i18n/locales/hu/messages.js +1 -1
  804. package/dist/i18n/locales/it/messages.js +1 -1
  805. package/dist/i18n/locales/nl/messages.js +1 -1
  806. package/dist/i18n/locales/pl/messages.js +1 -1
  807. package/dist/i18n/locales/pt/messages.js +1 -1
  808. package/dist/i18n/locales/ro/messages.js +1 -1
  809. package/dist/i18n/locales/sk/messages.js +1 -1
  810. package/dist/i18n/locales/tr/messages.js +1 -1
  811. package/dist/legacy/domain-cli/gen/configurator-builder.js +13 -12
  812. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  813. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  814. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  815. package/dist/legacy/domain-cli/gen/invariants.js +3 -4
  816. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  817. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  818. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  819. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +160 -148
  820. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  821. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  822. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  823. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +7 -0
  824. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  825. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +15 -14
  826. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +14 -12
  827. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +14 -13
  828. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +13 -11
  829. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  830. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  831. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +0 -2
  832. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  833. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  834. package/dist/phoenix/application-spec/generate-project-files.d.ts +0 -2
  835. package/dist/phoenix/application-spec/project-files.js +1 -1
  836. package/dist/phoenix/bin.d.ts +2 -0
  837. package/dist/phoenix/bin.js +2 -0
  838. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  839. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  840. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  841. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  842. package/dist/phoenix/check-configs/index.d.ts +8 -0
  843. package/dist/phoenix/check-configs/index.js +1 -0
  844. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  845. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  846. package/dist/phoenix/cli.d.ts +0 -1
  847. package/dist/phoenix/cli.js +1 -2
  848. package/dist/phoenix/commands/build.js +1 -1
  849. package/dist/phoenix/commands/check.js +1 -1
  850. package/dist/phoenix/commands/clean.js +1 -1
  851. package/dist/phoenix/commands/deploy.js +2 -2
  852. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  853. package/dist/phoenix/commands/deps/deps.js +3 -0
  854. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  855. package/dist/phoenix/commands/deps/index.js +1 -0
  856. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  857. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  858. package/dist/phoenix/commands/dev.js +5 -5
  859. package/dist/phoenix/commands/fix.js +1 -1
  860. package/dist/phoenix/commands/index.d.ts +1 -0
  861. package/dist/phoenix/commands/index.js +1 -1
  862. package/dist/phoenix/commands/init.d.ts +17 -5
  863. package/dist/phoenix/commands/init.js +1 -1
  864. package/dist/phoenix/commands/link.js +1 -1
  865. package/dist/phoenix/commands/prettier.js +1 -1
  866. package/dist/phoenix/commands/sync.js +1 -1
  867. package/dist/phoenix/commands/unlink.js +1 -1
  868. package/dist/phoenix/services/application-spec-project-watcher.d.ts +2 -2
  869. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  870. package/dist/phoenix/services/lingui.d.ts +8 -0
  871. package/dist/phoenix/services/lingui.js +1 -1
  872. package/dist/phoenix/services/source-archive.d.ts +1 -0
  873. package/dist/phoenix/services/source-archive.js +1 -1
  874. package/dist/phoenix/services/swc.js +1 -1
  875. package/dist/phoenix/services/vite-config.js +1 -1
  876. package/dist/phoenix/utils/git/index.d.ts +1 -0
  877. package/dist/phoenix/utils/git/index.js +1 -0
  878. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  879. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  880. package/dist/phoenix/utils/index.d.ts +5 -2
  881. package/dist/phoenix/utils/index.js +1 -1
  882. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  883. package/dist/phoenix/utils/node-version/index.js +1 -0
  884. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  885. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  886. package/dist/phoenix/utils/package-info.d.ts +0 -9
  887. package/dist/phoenix/utils/package-info.js +1 -1
  888. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  889. package/dist/phoenix/utils/package-manager/index.js +1 -0
  890. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  891. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  892. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  893. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  894. package/dist/phoenix/utils/run-command.d.ts +11 -0
  895. package/dist/phoenix/utils/run-command.js +1 -1
  896. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  897. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  898. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  899. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  900. package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.d.ts +2 -0
  901. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  902. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  903. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  904. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +2 -0
  905. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  906. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  907. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +53 -36
  908. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  909. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  910. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  911. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  912. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +9 -9
  913. package/dist/react-sdk/domain-context/index.d.ts +4 -1
  914. package/dist/react-sdk/domain-context/index.js +1 -1
  915. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  916. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  917. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  918. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  919. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  920. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  921. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  922. package/dist/react-sdk/handlers/index.d.ts +1 -0
  923. package/dist/react-sdk/handlers/index.js +1 -1
  924. package/dist/react-sdk/handlers/use-finalize-action.d.ts +31 -0
  925. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  926. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  927. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  928. package/dist/ui-sdk/theme/types.d.ts +1 -1
  929. package/dist/webhook/builders/webhook-builder.js +1 -1
  930. package/package.json +48 -36
  931. package/schema/domain-spec.json +1201 -217
  932. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  933. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  934. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  935. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -94
  936. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  937. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  938. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  939. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  940. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  941. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  942. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  943. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  944. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  945. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  946. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  947. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  948. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  949. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  950. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  951. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  952. package/dist/configurator/common/frontend-analytics.js +0 -1
  953. package/dist/domain/application/element-registration.js +0 -1
  954. package/dist/domain/application/handler-registration.js +0 -1
  955. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -23
  956. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  957. package/dist/domain/application/resource-builder.d.ts +0 -13
  958. package/dist/domain/application/resource-builder.js +0 -1
  959. package/dist/domain/core/relation/relation-implementation.d.ts +0 -7
  960. package/dist/domain/domain-runtime/spec/invariant-builder.d.ts +0 -61
  961. package/dist/domain/domain-runtime/spec/invariant-builder.js +0 -1
  962. package/dist/domain/domain-runtime/spec/resolve-action-modules.js +0 -1
  963. package/dist/domain/domain-runtime/spec/resolve-component-optic-modules.js +0 -1
  964. package/dist/domain/domain-runtime/spec/resolve-expression-modules.js +0 -1
  965. package/dist/domain/domain-runtime/spec/resolve-invariant-modules.d.ts +0 -6
  966. package/dist/domain/domain-runtime/spec/resolve-invariant-modules.js +0 -1
  967. package/dist/domain/project-modules/index.d.ts +0 -1
  968. package/dist/domain/project-modules/index.js +0 -1
  969. package/dist/domain/project-modules/project-modules.js +0 -1
  970. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  971. package/dist/phoenix/commands/generate-project-files.js +0 -1
  972. /package/dist/{domain/core/relation/relation-implementation.js → application-spec/core/expressions/relation-expression-params.js} +0 -0
  973. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  974. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  975. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
@@ -14,7 +14,9 @@ The Phoenix CLI (`phoenix` command) is the unified tool for all configurator dev
14
14
 
15
15
  ## Starting a New Project
16
16
 
17
- `phoenix init [folder]` starts a configurator project in `[folder]` (default: the working directory):
17
+ The SDK and its CLI run on Node.js 22.13 or newer, the range declared in `engines.node` of `@salsita-ai/sdk`. On an older Node.js, `phoenix` stops before it runs a command, names the running version and the required range, and exits with a non-zero code. The legacy binaries run no such check; package managers warn about the range when the SDK is installed.
18
+
19
+ `phoenix init [folder]` starts a configurator project in `[folder]` (default: the working directory). The project installs with any package manager. The commands on this page use pnpm; with npm, run `npm install` and `npx phoenix sync`, with Yarn `yarn phoenix sync`, with Bun `bunx phoenix sync`:
18
20
 
19
21
  ```bash
20
22
  npx -p @salsita-ai/sdk@canary phoenix init my-configurator
@@ -28,11 +30,17 @@ pnpm phoenix dev
28
30
  `phoenix init`:
29
31
 
30
32
  1. Refuses to run when a `spec/` folder already exists, so it never touches an existing project.
31
- 2. Writes a `package.json` that depends on the CLI's SDK version when the folder has none. An existing `package.json` is kept, as long as it depends on the SDK.
32
- 3. Writes a starter spec (`spec/application.yaml`, `spec/configurator.yaml`) with one resizable, recolorable box, and switches `package.json` to the application-spec pipeline.
33
- 4. Writes `pnpm-workspace.yaml` with the pnpm settings the first install needs: the build scripts of the SDK's dependencies are allowed or denied, and `@salsita-ai/*` packages are exempt from pnpm's minimum release age. A project inside a pnpm monorepo gets no file; the workspace root holds these settings.
33
+ 2. Writes a `package.json` when the folder has none, and an existing one is kept, as long as it depends on the SDK. Either way, `package.json` gains the entries it lacks, and an entry it already has stays as it is:
34
+ - the CLI's SDK version, in a new `package.json`;
35
+ - every package the SDK requires as a peer, at the version [`phoenix deps`](#phoenix-deps) writes: the lowest of the SDK's range, with the `@types/*` packages in `devDependencies`. A peer the project declares in any dependency field counts, whatever its version. `@clerk/clerk-react` is not among them, because the starter spec does not set `useClerk`;
36
+ - `eslint` and `prettier` in `devDependencies`, at the versions the SDK runs itself, so an editor formats and lints with the same versions as `phoenix check`.
37
+
38
+ With these, the install gives the project everything `phoenix dev`, `build` and `check` need. `init` writes no `packageManager` field and no package-manager settings: a project that installs with pnpm 11 adds the settings in [Package manager](?path=/docs/phoenix-project-structure--docs#package-manager) itself.
34
39
 
35
- It asks nothing, writes no `.env` and contacts no server. `phoenix sync` then generates every other project file, including `AGENTS.md` and the agent skills described in [Project Structure](?path=/docs/phoenix-project-structure--docs).
40
+ 3. Adds the `dev`, `build`, `deploy`, `check` and `fix` scripts to `package.json` (see [Project Scripts](#project-scripts)). A script the project already has under one of those names keeps its command.
41
+ 4. Writes a starter spec (`spec/application.yaml`, `spec/configurator.yaml`) with one resizable, recolorable box, and switches `package.json` to the application-spec pipeline.
42
+
43
+ The next steps it prints use the package manager you ran it with, or name none when it cannot tell. It asks nothing, writes no `.env` and contacts no server. `phoenix sync` then generates every other project file, including the agent skills described in [Project Structure](?path=/docs/phoenix-project-structure--docs). The `.gitignore` is among them only when the folder is inside a git repository, so run `git init` before the first sync, or sync again after it.
36
44
 
37
45
  ### Which project `phoenix dev` develops in
38
46
 
@@ -114,8 +122,6 @@ For quick local development without a server, use:
114
122
 
115
123
  ```bash
116
124
  phoenix dev --persistence local-storage
117
- # or use the shortcut script:
118
- pnpm dev:local
119
125
  ```
120
126
 
121
127
  **Important:** The server must be running before `deployment:prepare-local` when using `server` persistence mode.
@@ -136,53 +142,56 @@ The same streams are available in the editor's **Logs** sidebar panel with per-s
136
142
 
137
143
  ### `phoenix check`
138
144
 
139
- Runs all code quality checks in sequence:
145
+ Runs all code quality checks in sequence, with the TypeScript compiler, ESLint and Prettier the SDK installs as its own dependencies, so the versions in the project's `package.json` do not decide them:
140
146
 
141
- 1. **TypeScript** — Type checking with `tsc`
142
- 2. **ESLint** — Linting rules
143
- 3. **Prettier** — Code formatting
147
+ 1. **TypeScript** — Type checking with the SDK's `tsc` (TypeScript 7), with the project's root `tsconfig.json`, or with `.phoenix/tsconfig.json` when the project has none (see [Project Structure](?path=/docs/phoenix-project-structure--docs#root-level-files))
148
+ 2. **ESLint** — Linting rules, over `src/`; a project with no files there passes. ESLint uses the project's `eslint.config.js`, or the SDK's configuration when the project has none; its type-aware rules then read the same TypeScript configuration as the type check
149
+ 3. **Prettier** — Code formatting, with the project's Prettier configuration, or the SDK's when the project has none
144
150
 
145
151
  ### `phoenix fix`
146
152
 
147
- Auto-fixes ESLint and Prettier issues. Equivalent to running `eslint --fix` and `prettier --write` together.
153
+ Auto-fixes ESLint and Prettier issues, with the same tools and configurations as `phoenix check`. Equivalent to running the SDK's `eslint --fix` and `prettier --write` together.
148
154
 
149
155
  ## Environment Variables
150
156
 
151
- When you run `deployment:prepare-local` or `deployment:prepare`, the CLI communicates with the Phoenix server, which generates environment variables and writes them to `.env.generated`.
157
+ When you run `deployment:prepare-local` or `deployment:prepare`, the CLI communicates with the Phoenix server, which generates environment variables and writes them to `.env.generated`. `phoenix dev` does the same for its development deployment when it starts.
158
+
159
+ ### The generated env file
160
+
161
+ A project has one generated env file. Phoenix keeps it in `.phoenix/`, as `.phoenix/.env.generated`, unless the project has a `.env.generated` in its root, which then is the one that counts.
162
+
163
+ - `phoenix dev` reads and writes `.phoenix/.env.generated` in a project without a root `.env.generated`, and creates no file in the project root. In a project that has a root `.env.generated`, it reads and writes that file and `.phoenix/.env.generated` is not used.
164
+ - The deployment and environment commands (`deployment:prepare`, `deployment:prepare-dev`, `deployment:prepare-local`, `deployment:build-envs` and the others with an `--outFile` option) write `.env.generated` in the project root unless `--outFile` or `OUT_FILE` names another file. Deploy pipelines read it there. Once one of them has written it, `phoenix dev` and `phoenix build` use it.
165
+ - Everything that reads environment variables follows the same rule: the root `.env.generated` when it exists, otherwise `.phoenix/.env.generated`. The two files are never merged.
166
+ - `phoenix clean` removes `.phoenix/` and with it `.phoenix/.env.generated`; the next `phoenix dev` prepares the development deployment again. A root `.env.generated` stays.
167
+
168
+ This holds for a project on the application-spec pipeline. In a project on the legacy pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `phoenix dev` always reads and writes `.env.generated` in the project root.
152
169
 
153
170
  ### Data Flow
154
171
 
155
172
  ```
156
- spec/application.yaml → Server prepares environment → CLI writes .env.generated → Frontend/Webhooks read it
173
+ spec/application.yaml → Server prepares environment → CLI writes the generated env file → Frontend/Webhooks read it
157
174
  ```
158
175
 
159
176
  ### Project Scripts
160
177
 
161
- When you run `phoenix sync` or `phoenix clean`, the CLI auto-generates standardized scripts in your `package.json`. These scripts are enforced — they cannot be overridden by custom scripts with the same name.
162
-
163
- | Script | Command | Purpose |
164
- | -------------------------- | ------------------------------------------------------- | --------------------------------------------- |
165
- | `dev` | `phoenix dev` | Dev server with hot reload |
166
- | `dev:local` | `phoenix dev --persistence local-storage` | Dev without server dependency |
167
- | `build` | `phoenix build` | Production build |
168
- | `clean` | `phoenix clean` | Clean all artifacts and rebuild |
169
- | `sync` | `phoenix sync` | Sync generated code and dependencies |
170
- | `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
171
- | `ts:check` | `phoenix check` | Alias for `check` |
172
- | `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
173
- | `lint:fix` | `eslint src --fix` | ESLint fix only |
174
- | `prettify:fix` | `prettier --write .` | Prettier fix only |
175
- | `verify:fix` | `phoenix build && phoenix fix && phoenix check --types` | Build, fix, then type-check |
176
- | `test` | `vitest --passWithNoTests run` | Run tests |
177
- | `test:watch` | `vitest` | Tests in watch mode |
178
- | `prepare:ci` | `phoenix prepare:ci` | CI environment setup |
179
- | `deployment:prepare-local` | `phoenix deployment:prepare-local` | Prepare local environment |
180
-
181
- Custom scripts you add to `package.json` are preserved during sync. Deprecated scripts (like `environment:create`, `deployment:register`) are automatically removed.
178
+ `phoenix init` writes five scripts into `package.json`, each a shortcut for the CLI command of the same name:
179
+
180
+ | Script | Command | Purpose |
181
+ | -------- | ---------------- | --------------------------------------------- |
182
+ | `dev` | `phoenix dev` | Dev server with hot reload |
183
+ | `build` | `phoenix build` | Production build |
184
+ | `deploy` | `phoenix deploy` | Build and publish the project |
185
+ | `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
186
+ | `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
187
+
188
+ The scripts are yours: change, rename or delete them, and add your own. `phoenix sync` and `phoenix clean` leave the `scripts` section of `package.json` as it is, so they add no script, restore none you removed and remove none. Every CLI command also runs without a script, through your package manager: `pnpm phoenix <command>`, `npx phoenix <command>`, `yarn phoenix <command>` or `bunx phoenix <command>`.
189
+
190
+ A project may have other scripts than these five, such as `sync`, `test` or `verify:fix`; they are its own and stay as they are. All of this holds for a project on the application-spec pipeline, which `phoenix init` selects. In a project on the legacy pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `phoenix sync` and `phoenix clean` write their own set of scripts into `package.json` on every run, over scripts of the same name.
182
191
 
183
192
  ### Server-Generated Variables
184
193
 
185
- These are automatically computed by the server and written to `.env.generated`:
194
+ These are automatically computed by the server and written to the generated env file:
186
195
 
187
196
  | Variable | Purpose |
188
197
  | -------------------------------- | ------------------------------------------------------- |
@@ -231,7 +240,7 @@ A build pipeline that receives the source archive of a [`phoenix deploy`](#phoen
231
240
  - it refuses an archive over 200 MB, one that extracts to more than 1 GB, or one with more than 100,000 files;
232
241
  - it refuses links, special files, absolute paths, paths that leave the folder, names with control characters, and entries that repeat or collide with an earlier one;
233
242
  - it refuses an archive it cannot read to the end, such as a truncated upload;
234
- - it extracts only project files, the same set `phoenix deploy` packs, and reports the entries it left out.
243
+ - it extracts only project files and reports the entries it left out, including the optional `conversation.log` that deploy keeps in the private archive for review.
235
244
 
236
245
  `<folder>` must be new or empty. When the command refuses an archive, it removes the folder, so a partly extracted project is never built.
237
246
 
@@ -270,7 +279,7 @@ A development environment keeps the AI assistant's conversation when the assista
270
279
  Environment variables are resolved in this order (highest to lowest priority):
271
280
 
272
281
  1. Process environment variables (shell)
273
- 2. `.env.generated` (created by deployment commands)
282
+ 2. [The generated env file](#the-generated-env-file): `.env.generated` in the project root when the project has one, otherwise `.phoenix/.env.generated`
274
283
  3. `.env` (manual overrides)
275
284
 
276
285
  ### Generated Config Files
@@ -301,13 +310,18 @@ Starts the full development environment: Vite dev server, development webhook tu
301
310
  | `--region` | `PHOENIX_REGION` | `eu` | Region of the signed-in workspace, used when no server URL is set |
302
311
  | `--skipUpload` / `--su` | `SKIP_UPLOAD` | `false` | Skip the S3 asset upload when the development deployment is prepared at startup |
303
312
 
313
+ 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.
314
+
315
+ With the application-spec pipeline, the SDK's own Lingui CLI runs with the configuration 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.
316
+
304
317
  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.
305
318
 
306
319
  The dev server watches for changes in:
307
320
 
308
321
  - `spec/**/*.yaml` — Domain specification files
309
322
  - `src/**/*.{ts,tsx,yaml,yml,json,html,css}` — Source files
310
- - `.env`, `.env.generated` — Environment files (triggers full Vite restart)
323
+ - `.env` — Environment file; a change restarts the Vite dev server
324
+ - `.env.generated`, `.phoenix/.env.generated` — Generated env files; a change rebuilds the project files. Only a file that exists when `phoenix dev` starts is watched: a root `.env.generated` that a deployment command creates while dev runs is not watched; restart `phoenix dev` to use it.
311
325
 
312
326
  When linked SDK packages are detected (`phoenix link`), changes to SDK dist files are also watched.
313
327
 
@@ -389,7 +403,7 @@ Set initial values from a local production build with roughly 5–10% headroom t
389
403
 
390
404
  ### `phoenix clean`
391
405
 
392
- Removes all build artifacts (`.phoenix/`, `node_modules/`), reinstalls dependencies, and rebuilds all generated files from scratch. Use this when:
406
+ Removes `.phoenix/` and regenerates all project files from scratch. It installs nothing and leaves `node_modules/` as it is; to reinstall too, delete `node_modules/` and install with your package manager. In a project on the legacy pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `phoenix clean` also removes `node_modules/` and runs `pnpm install`. Use this when:
393
407
 
394
408
  - Generated files are corrupted or out of sync
395
409
  - After major SDK version upgrades
@@ -397,12 +411,36 @@ Removes all build artifacts (`.phoenix/`, `node_modules/`), reinstalls dependenc
397
411
 
398
412
  ### `phoenix sync`
399
413
 
400
- Syncs project dependencies and regenerates all project files without building Vite bundles or webhooks. Faster than `clean` — use this for routine updates after changing spec files or upgrading dependencies. Before installing, it adds the pnpm settings `phoenix init` writes to a standalone project's `pnpm-workspace.yaml` when they are missing; values you set there are kept.
414
+ Regenerates all project files without building Vite bundles or webhooks. Faster than `clean` — use this for routine updates after changing spec files or updating the SDK. It installs nothing: install with your package manager before syncing, after any change to `package.json`. It writes no package-manager settings; `pnpm-workspace.yaml` is the project's own. In a project on the legacy pipeline, `phoenix sync` runs `pnpm install` first.
415
+
416
+ With the application-spec pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `.gitignore` is written only when the project is inside a git repository: the project folder or one of its parent folders holds a `.git` entry. Outside a repository, sync neither creates the file nor changes one that is already there, and the same holds for `dev`, `build` and `clean`. Run `git init` before the first sync, or sync again after it, to get the file. The legacy pipeline writes `.gitignore` in every project.
417
+
418
+ With the application-spec pipeline, sync never writes `package.json`. Before it generates any file, it checks that `package.json` declares every peer of the installed SDK at a version inside the SDK's range, and stops with a non-zero exit code when it does not. The message lists each peer that fails, with the range the SDK needs and the version found, or `missing`, and names the fix: run [`phoenix deps`](#phoenix-deps), then install with your package manager. `phoenix build`, `phoenix clean` and `phoenix dev` make the same check, and so does the platform build of [`phoenix deploy`](#phoenix-deploy). `phoenix dev` stops when the check fails at start; on a rebuild it reports the failure like a spec error and keeps running. [Dependencies](?path=/docs/phoenix-project-structure--docs#dependencies) has the rules. The legacy pipeline merges the SDK's dependencies into `package.json` on every sync.
401
419
 
402
420
  | Flag | Env Variable | Default | Description |
403
421
  | ---------------- | --------------- | ------- | ------------------------------ |
404
422
  | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache |
405
423
 
424
+ ### `phoenix deps`
425
+
426
+ Brings `package.json` in line with the SDK's peer dependencies: the packages the SDK's code imports and the project installs next to it, so the project and the SDK share one copy. The `peerDependencies` of the installed `@salsita-ai/sdk` decide which packages and which versions. `@clerk/clerk-react` is needed only when the spec sets `useClerk`.
427
+
428
+ ```bash
429
+ pnpm phoenix deps
430
+ pnpm install
431
+ ```
432
+
433
+ Run it after every SDK update: `phoenix sync`, `dev` and `build` stop while `package.json` does not declare the SDK's peers (see [`phoenix sync`](#phoenix-sync)).
434
+
435
+ - A missing peer is added at the lowest version of the SDK's range, as an exact version, in alphabetical order: type packages (`@types/*`) to `devDependencies`, the others to `dependencies`.
436
+ - A peer declared with a version range whose lowest version falls outside the SDK's range is set to the lowest version of the SDK's range, in the field that declares it. The output says when that is a downgrade.
437
+ - A peer declared with a specifier that is not a version range, such as `workspace:`, `npm:`, `catalog:`, `file:`, `link:` or a git URL, stays as it is.
438
+ - `@salsita-ai/common`, `@salsita-ai/contracts`, `@salsita-ai/platform-project-sdk`, `@salsita-ai/platform-common` and `@salsita-ai/platform-contracts` are removed, because `@salsita-ai/sdk` replaces them. No other entry is removed.
439
+
440
+ Every other part of `package.json` keeps its order and formatting. `phoenix deps` installs nothing: it lists each change and names the install of the package manager you ran it with as the next step, or says that nothing needed to change. Running it again changes nothing. It reads the spec to learn whether the project uses Clerk, so it stops with the spec's errors when the spec does not parse.
441
+
442
+ This holds for a project on the application-spec pipeline. In a project on the legacy pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `phoenix deps` changes nothing and says that `phoenix sync` manages the dependencies.
443
+
406
444
  ### Current and legacy project tooling
407
445
 
408
446
  Use the `phoenix` binary for projects that still use domain-spec generation. The CLI selects a
@@ -577,10 +615,11 @@ Generated projects carry the `phoenix-variants` agent skill, which tells coding
577
615
 
578
616
  ### `phoenix link`
579
617
 
580
- Link a local copy of the Phoenix SDK for development. This creates symlinks so that changes to the SDK source are reflected in your project without publishing.
618
+ An internal tool for working on the SDK itself, and pnpm only: in a project with another package manager's lockfile and no `pnpm-lock.yaml`, it stops and changes nothing. Link a local copy of the Phoenix SDK for development in a project installed with pnpm. It writes a `file:` override for each SDK package into `pnpm-workspace.yaml`, so that after the next install changes to the SDK source are reflected in your project without publishing. It installs nothing; run the install it prints next:
581
619
 
582
620
  ```bash
583
621
  phoenix link --sdk-path ../configurator-phoenix
622
+ pnpm install --config.optimistic-repeat-install=false
584
623
  ```
585
624
 
586
625
  | Flag | Default | Description |
@@ -591,10 +630,11 @@ When linked, `phoenix dev` automatically watches for changes in the linked SDK's
591
630
 
592
631
  ### `phoenix unlink`
593
632
 
594
- Remove the local SDK linking and restore normal package resolution.
633
+ Remove the local SDK linking: it deletes the overrides `phoenix link` wrote. Like `phoenix link`, it is an internal tool and pnpm only. It installs nothing; the install it prints restores normal package resolution:
595
634
 
596
635
  ```bash
597
636
  phoenix unlink
637
+ pnpm install --config.optimistic-repeat-install=false
598
638
  ```
599
639
 
600
640
  ## Utilities
@@ -710,7 +750,11 @@ Revokes the token on the server and removes it from the credentials file. `--reg
710
750
 
711
751
  ### `phoenix deploy`
712
752
 
713
- Validates the spec, adds the pnpm settings `phoenix init` writes to `pnpm-workspace.yaml` when they are missing, 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). 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. After `Your configurator is live at <url>` it prints one line for coding agents, which tells them to offer the run evaluation of the `phoenix-feedback` skill once you have nothing more to build; you can ignore it when you run the command yourself. `--region` or `--serverUrl` selects the server, as for `login`; `--no-wait` returns as soon as the build starts.
753
+ 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). 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. After `Your configurator is live at <url>` it prints one line for coding agents, which tells them to offer the run evaluation of the `phoenix-feedback` skill once you have nothing more to build; you can ignore it when you run the command yourself. `--region` or `--serverUrl` selects the server, as for `login`; `--no-wait` returns as soon as the build starts.
754
+
755
+ To keep the conversation that led to a build, place a reviewed UTF-8 transcript in `conversation.log` at the project root before deploying. Deploy automatically includes it in the private source archive. Download the build's sources from Studio to read it; access is the same as for the rest of that build's sources. The build extractor skips the log, so it is not an application build input or a public asset. Missing logs produce a warning and deployment continues. Directories, links and special files at that path are rejected.
756
+
757
+ The Phoenix agent skill explains how to prepare the transcript: prefer a native session export; otherwise mark a reconstruction as incomplete. Preserve available user/assistant messages and tool calls, cap individual tool results at 16 KiB with explicit truncation markers, and reference images rather than embedding them. Include the agent, export time, source and known omissions. Review and redact credentials or unrelated sensitive content before approving upload. The CLI uploads the file as supplied; it does not collect agent history, redact content, check freshness or verify completeness. Remove the file from the project root to deploy without it. The log counts toward the source archive's existing size limits; there is no separate conversation upload or viewer.
714
758
 
715
759
  ### `phoenix feedback [message]`
716
760
 
@@ -44,7 +44,7 @@ project-root/
44
44
  | `invariants/` | Domain constraints |
45
45
  | `transformers/` | Data transformation logic |
46
46
  | `handlers/` | Event & lifecycle handlers |
47
- | `webhooks/` | Webhook implementations |
47
+ | `webhooks/` | Webhook implementations, entered through `index.ts` |
48
48
  | `migrations/` | Data schema migrations (v\*.ts) - auto-created based on model versions |
49
49
  | `locales/` | Locale catalogs (`.po` sources; compiled `.ts`, do not edit) |
50
50
  | `_*` | Shared code folders at any depth (not auto-imported) |
@@ -53,7 +53,11 @@ Every file in `components/`, `elements/`, `expressions/`, `actions/`, `invariant
53
53
  (and their `admin/` counterparts) is imported by its location, so its default export must be what that folder's `phx`
54
54
  factory returns, or an array of those. A file that exports anything else, such as a plain React component in
55
55
  `elements/`, stops the application at start with an `Invalid default export in <file>` error that names the expected
56
- shape. Keep plain components and helpers in a `_*` folder.
56
+ shape. When several files in `handlers/`, `elements/`, `transformers/`, `components/`, `admin/elements/` and
57
+ `admin/components/` are wrong, the error lists all of them, one numbered line per file. Keep plain components and helpers in a `_*` folder.
58
+
59
+ With the application-spec pipeline, sync does not write `src/webhooks/index.ts`, and a project without it gets a
60
+ built-in webhook; see [Webhook Entry Point](?path=/docs/phoenix-webhooks--docs#webhook-entry-point).
57
61
 
58
62
  ### Admin Folders (src/admin/)
59
63
 
@@ -132,18 +136,37 @@ export default [CabinetModule, DrawerModule, ShelfModule]
132
136
 
133
137
  Phoenix auto-flattens both patterns during build. Use array exports when logically grouping related items in one file.
134
138
 
135
- ## Dependencies Merging
139
+ ## Dependencies
140
+
141
+ In a project on the application-spec pipeline, `package.json` is the project's own: `phoenix sync`, `phoenix dev` and `phoenix build` never write it. The SDK lists the packages its code imports from the project's install as peer dependencies (React, three.js, MUI, Lingui and others), and the project declares them next to `@salsita-ai/sdk`. [`phoenix deps`](?path=/docs/phoenix-phoenix-cli--docs#phoenix-deps) adds the missing ones and moves out-of-range ones into the SDK's range; run it, then install, after every SDK update. With pnpm, and the same through any other package manager (`npm install`, `npx phoenix deps` with npm):
142
+
143
+ ```bash
144
+ pnpm add @salsita-ai/sdk@<version>
145
+ pnpm phoenix deps
146
+ pnpm install
147
+ pnpm phoenix sync
148
+ ```
149
+
150
+ `phoenix sync`, `phoenix dev` and `phoenix build`, also on the platform when a deploy builds, check `package.json` before they generate any file. When a peer is missing, or declared at a version whose lowest match falls outside the SDK's range, they stop and list each such peer with the range the SDK needs and what `package.json` declares. A peer counts in `dependencies`, `devDependencies` or `optionalDependencies`, and a specifier that is not a version range, such as `workspace:` or `link:`, counts as declared. Add your own dependencies to `package.json` as usual; Phoenix leaves them, the Node.js and package-manager versions and the rest of the file as you wrote them.
136
151
 
137
- When running `phx sync` or `phx build`, Phoenix manages `package.json` dependencies:
152
+ In a project on the legacy pipeline (see [Current and legacy project tooling](?path=/docs/phoenix-phoenix-cli--docs#current-and-legacy-project-tooling)), `phoenix sync` and `phoenix build` merge the SDK's required dependencies into `package.json` instead, at exact versions over the ones you set, and keep every other dependency.
138
153
 
139
- | Behavior | Description |
140
- | --------------------- | -------------------------------------------------------------- |
141
- | Phoenix deps override | Required Phoenix dependencies override user-specified versions |
142
- | Versions pinned | All Phoenix deps use exact versions (no ^ or ~) |
143
- | User deps preserved | Non-conflicting user dependencies are kept |
144
- | Manual deps safe | Dependencies not in Phoenix's required list remain untouched |
154
+ ### Package manager
155
+
156
+ A project installs with any package manager: pnpm, npm, Yarn or Bun. Phoenix writes no package-manager settings and no `packageManager` field; the lockfile, `pnpm-workspace.yaml`, `.npmrc` and `.yarnrc.yml` are the project's own. Run `phoenix` through the package manager the project uses, such as `pnpm phoenix sync` or `npx phoenix sync`.
157
+
158
+ A project that installs with pnpm 11 needs a `pnpm-workspace.yaml` in its root before the first install. pnpm 11 stops an install until every dependency build script is allowed or denied, and the SDK's dependencies have three. Its default minimum release age also refuses a package published only recently, so the exclusion lets the project install an SDK build on the day it is released; it is optional:
159
+
160
+ ```yaml
161
+ allowBuilds:
162
+ '@swc/core': true
163
+ esbuild: true
164
+ es5-ext: false
165
+ minimumReleaseAgeExclude:
166
+ - '@salsita-ai/*'
167
+ ```
145
168
 
146
- To add custom dependencies, add them normally to `package.json`. Phoenix preserves them unless they conflict with required framework dependencies.
169
+ The file is yours to extend, for example to allow the build script of a dependency you add. In a pnpm monorepo, these settings go into the workspace root's `pnpm-workspace.yaml`. [`phoenix deploy`](?path=/docs/phoenix-phoenix-cli--docs#phoenix-deploy) packs `pnpm-lock.yaml` and `pnpm-workspace.yaml` when the project has them, and the platform build, which installs with pnpm, follows them.
147
170
 
148
171
  ## Global Interfaces
149
172
 
@@ -176,51 +199,68 @@ type CustomMaterial = Phx['AdminModel']['CustomMaterial']
176
199
 
177
200
  ### Root Level Files
178
201
 
179
- | File | Auto-Generated? | Notes |
180
- | ------------------------------------------------------ | --------------- | -------------------------------------- |
181
- | `package.json` | Partially | Dependencies merged, scripts preserved |
182
- | `tsconfig.json` | Yes | Managed by Phoenix |
183
- | `eslint.config.js` | Yes | Managed by Phoenix |
184
- | `prettier.config.js` | Yes | Managed by Phoenix |
185
- | `.prettierignore` | Yes | Managed by Phoenix |
186
- | `.linguirc` | Yes | Managed by Phoenix |
187
- | `.nvmrc` | Yes | Managed by Phoenix |
188
- | `.gitignore` | Partially | User entries between markers preserved |
189
- | `.env` | No | Git-ignored, local config |
190
- | `.env.example` | No | Template for env vars |
191
- | `.env.generated` | Yes | Auto-generated IDs, git-ignored |
192
- | `README.md` | No | Project documentation |
193
- | `AGENTS.md` | Once | Coding-agent instructions, yours after |
194
- | `.claude/skills/phoenix*/`, `.agents/skills/phoenix*/` | Yes | Phoenix agent skills |
202
+ | File | Auto-Generated? | Notes |
203
+ | ------------------------------------------------------ | --------------- | ------------------------------------- |
204
+ | `package.json` | No | Yours; see Dependencies |
205
+ | `tsconfig.json` | Once | Yours; see below |
206
+ | `eslint.config.js` | Once | Yours; see below |
207
+ | `prettier.config.js` | Once | Yours; see below |
208
+ | `.prettierignore` | No | Optional and your own; see below |
209
+ | `pnpm-workspace.yaml` | No | Only with pnpm; see Package manager |
210
+ | `.gitignore` | Partially | Only in a git repository; see Markers |
211
+ | `.env` | No | Git-ignored, local config |
212
+ | `.env.example` | No | Template for env vars |
213
+ | `.env.generated` | Yes | Optional, git-ignored; see below |
214
+ | `README.md` | No | Project documentation |
215
+ | `AGENTS.md` | No | Your own coding-agent instructions |
216
+ | `.claude/skills/phoenix*/`, `.agents/skills/phoenix*/` | Yes | Phoenix agent skills |
217
+
218
+ Sync does not write `README.md`, `AGENTS.md`, `.env.example`, `.env.ci` or the `README.md` files in `assets/public/` and `assets/private/`. Earlier SDK versions wrote them once; a project that has them keeps them, and they are yours to edit.
219
+
220
+ Phoenix keeps the generated env file, with the IDs and values of the prepared deployment, in `.phoenix/` unless the project has a `.env.generated` in its root, which then is the one that counts. `phoenix dev` creates no `.env.generated` in the project root; the deployment and environment commands write it there. See [The generated env file](?path=/docs/phoenix-phoenix-cli--docs#the-generated-env-file).
221
+
222
+ With the application-spec pipeline (see [Current and legacy project tooling](?path=/docs/phoenix-phoenix-cli--docs#current-and-legacy-project-tooling)), Phoenix does not write a `.prettierignore`, and a fresh clone or CI checkout of a project has none. `phoenix check` and `phoenix fix` do not read one: they skip `.phoenix/`, `dist/`, the compiled catalogs in `src/locales/` and `.linguirc` on their own, and the package manager's files in the project root, which belong to whichever package manager the project uses: `pnpm-lock.yaml`, `pnpm-workspace.yaml`, `package-lock.json`, `npm-shrinkwrap.json`, `yarn.lock`, `.yarnrc.yml`, `bun.lock` and `bun.lockb`. A project that runs Prettier directly, as `prettier --check .` or from an editor, can add its own `.prettierignore`. To commit it, add a `!.prettierignore` line after the Phoenix block of `.gitignore`, because that block lists the file. The legacy pipeline writes `.prettierignore` on every sync.
223
+
224
+ With the application-spec pipeline, the project's TypeScript settings are in `.phoenix/tsconfig.json`, which sync rewrites with the rest of `.phoenix/`. The root `tsconfig.json` is the one editors and tools find: sync writes it only when the project has none, as a single line that extends the generated settings, and it is yours to commit and to add to:
225
+
226
+ ```json
227
+ { "extends": "./.phoenix/tsconfig.json" }
228
+ ```
229
+
230
+ The only root `tsconfig.json` sync replaces is the full file earlier SDK versions generated there, recognised by its settings; any other stays as it is. `phoenix dev`, `phoenix build` and the webhook bundle do not resolve `paths` aliases, so an alias added to the root file passes `phoenix check` and fails the build. `phoenix check` type-checks with the root `tsconfig.json`, or with `.phoenix/tsconfig.json` when the project has none. The legacy pipeline writes the full `tsconfig.json` on every sync.
231
+
232
+ With the application-spec pipeline, sync writes `eslint.config.js` and `prettier.config.js` only when the project has none, each re-exporting the SDK's shared configuration so editors find it. They are yours to commit and to change. The only ones sync replaces are the files earlier SDK versions generated there; any other stays as it is. `phoenix check` and `phoenix fix` lint and format with the project's files, and with the SDK's configurations when a file is missing (see [`phoenix check`](?path=/docs/phoenix-phoenix-cli--docs#phoenix-check)). Sync formats the files it generates in the project root, such as the agent skills, with the same Prettier configuration, so `phoenix check` accepts them; while the project's configuration cannot be loaded, as before the first install, they get the SDK's settings. The legacy pipeline writes both files on every sync.
233
+
234
+ With the application-spec pipeline, the Lingui configuration is `.phoenix/.linguirc`, which sync rewrites with the rest of `.phoenix/` from `availableLocales` in `spec/application.yaml`. Phoenix passes that file to Lingui every time it extracts or compiles the catalogs and to its Vite builds, so a `.linguirc` in the project root is not read and can be deleted. To run Lingui yourself, name the file: `npx lingui extract --config .phoenix/.linguirc`, from the project root. The legacy pipeline writes `.linguirc` in the project root on every sync.
195
235
 
196
236
  ### DO NOT EDIT (Fully Auto-Generated)
197
237
 
198
- - **Everything in `.phoenix/`** - Completely regenerated on each build. The one exception is `.phoenix/variants/`, where a coding agent writes the option files for `phoenix variants`; a rebuild keeps it
199
- - `tsconfig.json`, `eslint.config.js`, `prettier.config.js`, `.prettierignore`
200
- - `.linguirc`, `.nvmrc`
238
+ - **Everything in `.phoenix/`** - Completely regenerated on each build. The exceptions are `.phoenix/variants/`, where a coding agent writes the option files for `phoenix variants`, and `.phoenix/.env.generated`, the generated env file of `phoenix dev`; a rebuild keeps both
201
239
  - `src/locales/**/*.ts` - Compiled from `.po` catalogs
202
240
  - `.env.generated`
203
241
  - `phoenix` and `phoenix-*` skill folders under `.claude/skills/` and `.agents/skills/` — rewritten on every sync with anything else inside them removed, and other `phoenix`-prefixed skill folders are removed; to customise a skill, copy it to a folder whose name does not start with `phoenix`
204
242
 
205
243
  ### Agent Guidance
206
244
 
207
- Coding agents (Claude Code, Codex, Cursor) read `AGENTS.md` and the Phoenix agent skills. `AGENTS.md` is written once with the build commands, the do-not-edit list and a pointer to the skills; after that it is yours. The `phoenix`, `phoenix-cli`, `phoenix-feedback` and `phoenix-review` skills carry the SDK conventions, CLI tooling and review checklist, and the `phoenix-create-configurator` skill walks the agent from your product documents and assets to a reviewed configurator in five stages. The `phoenix-variants` skill has the agent show you several options over the dev preview when a decision is a matter of taste, and build the one you pick. Phoenix keeps them in step with the installed SDK, including the reference files inside a skill folder. During the internal beta, a project created from a canary build of the SDK gets one more section in the `phoenix` skill: once per conversation the agent checks for a newer canary and, after telling you, updates the project's SDK and runs `phoenix sync`. Other skill folders are never touched.
245
+ Coding agents (Claude Code, Codex, Cursor) read the Phoenix agent skills. An `AGENTS.md` is yours to add for your own instructions; sync does not write one. The `phoenix`, `phoenix-cli`, `phoenix-feedback` and `phoenix-review` skills carry the SDK conventions, CLI tooling and review checklist, and the `phoenix-create-configurator` skill walks the agent from your product documents and assets to a reviewed configurator in five stages. The `phoenix-variants` skill has the agent show you several options over the dev preview when a decision is a matter of taste, and build the one you pick. Phoenix keeps them in step with the installed SDK, including the reference files inside a skill folder. During the internal beta, a project created from a canary build of the SDK gets one more section in the `phoenix` skill: once per conversation the agent checks for a newer canary and, after telling you, updates the project's SDK, runs `phoenix deps`, installs, then runs `phoenix sync`. Other skill folders are never touched.
208
246
 
209
247
  Projects created by earlier SDK versions had this guidance in `CLAUDE.md`, `.cursor/rules/phoenix.mdc` and `commands/review.md`. Sync removes the SDK block from the first two, keeps your own text around it, deletes a file that held nothing else, and deletes the review commands; use the `phoenix-review` skill instead of `/review`.
210
248
 
211
249
  ### Markers for Partial Auto-Generation
212
250
 
213
- `.gitignore` preserves custom entries between markers:
251
+ `.gitignore` holds the Phoenix entries between two marker lines. Sync rewrites that block and keeps everything outside it. With the application-spec pipeline the block does not list the files sync writes once, `tsconfig.json`, `eslint.config.js` and `prettier.config.js`, so a project commits them:
214
252
 
215
253
  ```gitignore
216
- # phoenix-start
254
+ # ===== BEGIN PHOENIX AUTO-GENERATED =====
217
255
  # ... Phoenix-managed ignores ...
218
- # phoenix-end
256
+ # ===== END PHOENIX AUTO-GENERATED =====
219
257
 
220
- # Your custom ignores below (preserved)
258
+ # Your custom ignores (preserved)
221
259
  my-custom-folder/
222
260
  ```
223
261
 
262
+ With the application-spec pipeline (see [Current and legacy project tooling](?path=/docs/phoenix-phoenix-cli--docs#current-and-legacy-project-tooling)), sync writes `.gitignore` only when the project is inside a git repository: the project folder or one of its parent folders holds a `.git` entry. Outside a repository it neither creates the file nor changes one that is already there. Run `git init` before the first sync, or sync again after it, to get the file. The legacy pipeline writes the file in every project.
263
+
224
264
  ### Safe to Edit
225
265
 
226
266
  - `src/` (except compiled `src/locales/**/*.ts` files)
@@ -232,6 +272,8 @@ my-custom-folder/
232
272
  - `templates/`
233
273
  - `package.json` (scripts section, custom dependencies)
234
274
  - `.env`, `.env.example`, `.env.ci`
275
+ - `tsconfig.json` (application-spec pipeline; keep it extending `.phoenix/tsconfig.json`)
276
+ - `eslint.config.js`, `prettier.config.js` (application-spec pipeline; sync writes them once, and they are the project's afterwards)
235
277
  - `README.md`, `AGENTS.md`
236
278
 
237
279
  ## File Naming Conventions
@@ -339,6 +381,8 @@ project-root/
339
381
  │ ├── admin-interface.ts # Admin interface types
340
382
  │ ├── i18n.ts # i18n initialization
341
383
  │ ├── globals.d.ts # Global type definitions
384
+ │ ├── tsconfig.json # TypeScript settings, extended by the root tsconfig.json
385
+ │ ├── .linguirc # Lingui configuration
342
386
  │ ├── index.html # Configurator HTML entry
343
387
  │ └── admin.html # Admin HTML entry
344
388
  │
@@ -502,7 +546,7 @@ Assets are split between two locations with different deployment strategies:
502
546
 
503
547
  Localization files enable multi-language support in your configurator.
504
548
 
505
- Translatable messages are authored in TypeScript and TSX source files using `@lingui/macro`.
549
+ Translatable messages are authored in TypeScript and TSX source files using Lingui's macros: `msg` from `@lingui/core/macro` and `<Trans>` from `@lingui/react/macro`.
506
550
 
507
551
  Locale catalogs live in `src/locales/<lang>/`. Phoenix creates and updates the `messages.po` source catalogs; edit their `msgstr` values to provide translations. The `messages.ts` files are compiled from those catalogs and must not be edited directly.
508
552
 
@@ -15,7 +15,7 @@ Build a working office desk configurator from an empty folder. You will describe
15
15
 
16
16
  ## Before you start
17
17
 
18
- Use Node.js 24 and pnpm 11. The tutorial uses the office desk model served by this documentation site at `/models/office-desk.gltf`; download it first. Real client projects normally start from `phoenix init`. This tutorial creates the four essential files by hand so you can see what Phoenix owns.
18
+ Use Node.js 24 and any package manager; the commands below use pnpm, and with pnpm 11 the project also needs the `pnpm-workspace.yaml` in [Package manager](?path=/docs/phoenix-project-structure--docs#package-manager). The tutorial uses the office desk model served by this documentation site at `/models/office-desk.gltf`; download it first. Real client projects normally start from `phoenix init`. This tutorial creates the four essential files by hand so you can see what Phoenix owns.
19
19
 
20
20
  ## Step 0 — Create the project
21
21
 
@@ -40,17 +40,13 @@ Now add these four files.
40
40
  "dependencies": {
41
41
  "@salsita-ai/sdk": "0.48.0"
42
42
  },
43
- "devDependencies": {
44
- "@lingui/cli": "5.9.5",
45
- "@lingui/swc-plugin": "5.11.0"
46
- },
47
43
  "phoenix": {
48
44
  "applicationFlow": true
49
45
  }
50
46
  }
51
47
  ```
52
48
 
53
- Use the SDK version supplied by your team if it differs from the repository's current `0.48.0` version. `phoenix.applicationFlow` selects the application-spec project structure. The first sync uses Lingui while generating the rest of the dependencies, so its CLI and SWC plugin must also be present in the initial install.
49
+ Use the SDK version supplied by your team if it differs from the repository's current `0.48.0` version. `phoenix.applicationFlow` selects the application-spec project structure. The SDK runs its own Lingui, so the SDK is the only dependency you write by hand; `phoenix deps` adds the packages it needs next to it in the install step below. A project started with `phoenix init` gets a `package.json` that already declares them.
54
50
 
55
51
  ### `.env`
56
52
 
@@ -97,17 +93,21 @@ components:
97
93
  layout: universal
98
94
  ```
99
95
 
100
- Install the SDK, then ask Phoenix to generate the rest of the project:
96
+ Install the SDK, let it declare the packages it needs, such as React, three.js and MUI, install them, then ask Phoenix to generate the rest of the project:
101
97
 
102
98
  ```sh
103
99
  pnpm install
100
+ pnpm phoenix deps
101
+ pnpm install
104
102
  pnpm phoenix sync
105
103
  ```
106
104
 
107
- `phoenix sync` keeps `spec/` and `src/` as your authored inputs and generates the application shell, scripts, types, and `.phoenix/` implementation. Start the generated development script without a server:
105
+ `phoenix sync` stops while `package.json` lacks one of those packages; after every SDK update, run `phoenix deps` and install again (see [`phoenix deps`](?path=/docs/phoenix-phoenix-cli--docs#phoenix-deps)). With npm, the same steps are `npm install`, `npx phoenix deps`, `npm install` and `npx phoenix sync`.
106
+
107
+ `phoenix sync` keeps `spec/` and `src/` as your authored inputs and generates the application shell, types, and `.phoenix/` implementation. Start development without a server:
108
108
 
109
109
  ```sh
110
- pnpm dev:local
110
+ pnpm phoenix dev --persistence local-storage
111
111
  ```
112
112
 
113
113
  Open the URL printed by the command. The application shell loads with the default `<salsita-configurator>` element and an empty 3D scene.
@@ -8,9 +8,9 @@ Your workspace's Studio shows the setup, the link to your configurator and the s
8
8
 
9
9
  ## Before you start
10
10
 
11
- - **Package access:** `@salsita-ai/sdk` is public on npm; `npx` and `pnpm install` download it without a registry token.
11
+ - **Package access:** `@salsita-ai/sdk` is public on npm; any package manager downloads it without a registry token.
12
12
  - **Workspace details:** you need your workspace slug and its Phoenix region (`eu` or `us`), which you also received with your workspace.
13
- - **Tools:** Node.js and pnpm.
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
 
16
16
  ## 1. Create a project
@@ -22,11 +22,11 @@ pnpm install
22
22
  pnpm phoenix sync
23
23
  ```
24
24
 
25
- `phoenix init [folder]` writes the starter project: `package.json`, `pnpm-workspace.yaml` and the starter spec, `spec/application.yaml` and `spec/configurator.yaml`, which describe one box you can resize and recolour. The starter depends on the same SDK version as the CLI that created it. `phoenix sync` then adds the rest of the project: package scripts, webhooks, README and lint config.
25
+ `phoenix init [folder]` writes the starter project: `package.json` and the starter spec, `spec/application.yaml` and `spec/configurator.yaml`, which describe one box you can resize and recolour. The starter depends on the same SDK version as the CLI that created it and on the packages the SDK requires next to it (React, three.js, MUI, Lingui and the others, with their type packages), with ESLint and Prettier at the versions the SDK uses itself. Its `package.json` has the `dev`, `build`, `deploy`, `check` and `fix` scripts, which are yours to change. `phoenix sync` then adds the rest of the project: the TypeScript, lint and formatting config and the agent skills. It writes no webhook code: a project without `src/webhooks/index.ts` gets a built-in webhook (see [Webhook Entry Point](?path=/docs/phoenix-webhooks--docs#webhook-entry-point)). It writes a `.gitignore` only when the folder is inside a git repository; run `git init` before the first sync, or sync again after it, to get the file.
26
26
 
27
- `init` only writes these files: it asks nothing and contacts no server. It refuses a folder that already has a `spec/` folder. A `package.json` already in the folder is kept, as long as it depends on the SDK.
27
+ `init` only writes these files: it asks nothing and contacts no server. It refuses a folder that already has a `spec/` folder. A `package.json` already in the folder is kept, as long as it depends on the SDK, and gains only the entries it lacks (see [Starting a New Project](?path=/docs/phoenix-phoenix-cli--docs#starting-a-new-project)).
28
28
 
29
- `pnpm-workspace.yaml` holds the pnpm settings the install needs: it allows the build scripts of the SDK's dependencies and exempts `@salsita-ai/*` packages from pnpm's minimum release age, so a build of the SDK published today installs. The file is yours to edit, for example to allow the build script of a dependency you add. `phoenix sync` adds these entries when they are missing and keeps the values you set. A project inside a pnpm monorepo gets no file of its own; the workspace root holds the settings.
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
31
  The starter `spec/application.yaml` begins with `project: default`, which means the default project of the workspace you sign in to. Leave it as it is; a workspace has one project.
32
32
 
@@ -61,7 +61,7 @@ Signed in, `phoenix dev` needs no `.env` and nothing set up in Studio. When it s
61
61
 
62
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.
63
63
 
64
- `pnpm dev:local` still runs the project without any server, with state kept in the browser.
64
+ `pnpm phoenix dev --persistence local-storage` still runs the project without any server, with state kept in the browser.
65
65
 
66
66
  Coding agents follow the generated `phoenix` skill: before their first change they start `phoenix dev` and open the preview in your browser, and after `phoenix deploy` starts a build they open its page in Studio.
67
67
 
@@ -76,12 +76,12 @@ pnpm phoenix deploy
76
76
  `phoenix deploy` goes through these steps:
77
77
 
78
78
  1. It validates the application spec.
79
- 2. It packs the project files: the `.yaml` files in `spec`, everything in `src`, `mocks`, `assets`, `public` and `templates`, and `package.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, `.gitignore`, `CLAUDE.md` and `.cursor/rules/phoenix.mdc`. Every `node_modules`, `.phoenix` and `__generated` folder, every `.DS_Store` and `._*` file and every `.env` and `.env.*` file are left out, at any depth.
79
+ 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`. Every `node_modules`, `.phoenix` and `__generated` folder, every `.DS_Store` and `._*` file and every `.env` and `.env.*` file are left out, at any depth.
80
80
  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).
81
81
  4. It uploads the archive, which may be up to 200 MB.
82
82
  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.
83
83
 
84
- On the server, the install follows your `pnpm-lock.yaml` and `pnpm-workspace.yaml`, so it allows the same build scripts and package versions as `pnpm install` on your computer. 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.
84
+ 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.
85
85
 
86
86
  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.
87
87