@salsita-ai/sdk 0.50.0-develop.b5468d6828 → 0.50.0-develop.b7caacb493

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 (963) hide show
  1. package/README.md +8 -4
  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/errors/diagnostic-codes.d.ts +14 -0
  16. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  17. package/dist/application-spec/errors/diagnostic-messages.d.ts +15 -1
  18. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  19. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  20. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  21. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  22. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  23. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  24. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  25. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  26. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +10 -14
  27. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  28. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  29. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  30. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  31. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  32. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  33. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  34. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  35. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  36. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  37. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  38. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  39. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  40. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  41. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  42. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  43. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +6 -6
  44. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +59 -63
  45. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +8 -0
  46. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  47. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  48. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +13 -13
  49. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  50. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  51. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +2 -1
  52. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  53. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  54. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  55. package/dist/application-spec/generate-application/code/templates/gitignore.js +1 -3
  56. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  57. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  58. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  59. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  60. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  61. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  62. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  63. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  64. package/dist/application-spec/generate-application/code/templates/index.d.ts +2 -2
  65. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  66. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  67. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  68. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  69. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  70. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  71. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +1 -1
  72. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  73. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +3 -3
  74. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  75. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  76. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +26 -8
  77. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  78. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  79. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  80. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  81. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  82. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  83. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  84. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  85. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  86. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  87. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  88. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  89. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  90. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  91. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  92. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  93. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  94. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  95. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  96. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  97. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  98. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  99. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  100. package/dist/application-spec/generate-application/index.d.ts +1 -0
  101. package/dist/application-spec/generate-application/index.js +1 -1
  102. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -4
  103. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  104. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +7 -5
  105. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  106. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  107. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  108. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  109. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +24 -9
  110. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  111. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +70 -0
  112. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  113. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -5
  114. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  115. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +7 -6
  116. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  117. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  118. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  119. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  120. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  121. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  122. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +2 -2
  123. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  124. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +2 -1
  125. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  126. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +2 -1
  127. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  128. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +3 -0
  129. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  130. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  131. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +15 -6
  132. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  133. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +9 -5
  134. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  135. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +3 -1
  136. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  137. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  138. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +3 -3
  139. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  140. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  141. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  142. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  143. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  144. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.js +1 -0
  145. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  146. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  147. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  148. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  149. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  150. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  151. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  152. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  153. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  154. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  155. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +103 -0
  156. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  157. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  158. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  159. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +18 -0
  160. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  161. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  162. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  163. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  164. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +33 -3
  165. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  166. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  167. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  168. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  169. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  170. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  171. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  172. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  173. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  174. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  175. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  176. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  177. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  178. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  179. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  180. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  181. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  182. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  183. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  184. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  185. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  186. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  187. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  188. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  189. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  190. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  191. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  192. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  193. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  194. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +6 -0
  195. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  196. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +7 -4
  197. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  198. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  199. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  200. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  201. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.js +1 -0
  202. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  203. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  204. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +6 -2
  205. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  206. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +3 -1
  207. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  208. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +2 -2
  209. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  210. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  211. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  212. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  213. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  214. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  215. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  216. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  217. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  218. package/dist/client/phoenix-api.d.ts +367 -0
  219. package/dist/configurator/ConfiguratorApp.js +1 -1
  220. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  221. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  222. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  223. package/dist/configurator/app-loader-content/index.js +1 -0
  224. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  225. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +11 -4
  226. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  227. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +33 -7
  228. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  229. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  230. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  231. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  232. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  233. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  234. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  235. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  236. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  237. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  238. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +14 -1
  239. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  240. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +46 -5
  241. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  242. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  243. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  244. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  245. package/dist/configurator/common/configurator-interface.d.ts +121 -6
  246. package/dist/configurator/common/configurator-interface.js +1 -1
  247. package/dist/configurator/common/index.d.ts +2 -2
  248. package/dist/configurator/common/index.js +1 -1
  249. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  250. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  251. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  252. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  253. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  254. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  255. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  256. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  257. package/dist/configurator/configurator-context/PresetSelectionProvider.js +1 -1
  258. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  259. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  260. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  261. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +10 -0
  262. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  263. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  264. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  265. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  266. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  267. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  268. package/dist/configurator/configurator-error-page/index.js +1 -0
  269. package/dist/configurator/index.d.ts +10 -0
  270. package/dist/configurator/index.js +1 -1
  271. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  272. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  273. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  274. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +3 -2
  275. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  276. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  277. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  278. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  279. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  280. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  281. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  282. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  283. package/dist/configurator/pages/RootPage.js +1 -1
  284. package/dist/configurator/pages/default-configurator-elements.d.ts +7 -1
  285. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  286. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  287. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  288. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  289. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  290. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  291. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  292. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  293. package/dist/configurator/pages/default-elements/index.js +1 -0
  294. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  295. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  296. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  297. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  298. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  299. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  300. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  301. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  302. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  303. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  304. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  305. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  306. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  307. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  308. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  309. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  310. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  311. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  312. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  313. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  314. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  315. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  316. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  317. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  318. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  319. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  320. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  321. package/dist/configurator/preset-screen-elements/index.js +1 -0
  322. package/dist/configurator/scene/index.d.ts +1 -0
  323. package/dist/configurator/scene/index.js +1 -1
  324. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  325. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  326. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  327. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  328. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  329. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  330. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  331. package/dist/configurator/toolbar-actions/index.js +1 -0
  332. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  333. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  334. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  335. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  336. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  337. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  338. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  339. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  340. package/dist/configurator/ui/assistant/AssistantChips.d.ts +3 -2
  341. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  342. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  343. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  344. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  345. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  346. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  347. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  348. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  349. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  350. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  351. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  352. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +1 -1
  353. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  354. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +1 -1
  355. package/dist/configurator/ui/assistant/entity-link/index.d.ts +0 -1
  356. package/dist/configurator/ui/assistant/entity-link/index.js +1 -1
  357. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  358. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  359. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  360. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  361. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  362. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  363. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  364. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  365. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  366. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  367. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  368. package/dist/configurator/ui/assistant/form/index.js +1 -0
  369. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  370. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  371. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  372. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  373. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  374. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  375. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  376. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  377. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  378. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  379. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  380. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  381. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  382. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  383. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  384. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  385. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  386. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  387. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  388. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  389. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  390. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  391. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  392. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  393. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  394. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  395. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  396. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  397. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  398. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  399. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  400. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  401. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  402. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  403. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  404. package/dist/configurator/ui/assistant/form-elements/form-element-props.js +1 -0
  405. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  406. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  407. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  408. package/dist/configurator/ui/assistant/index.js +1 -1
  409. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  410. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  411. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  412. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  413. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  414. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  415. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  416. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  417. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  418. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  419. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  420. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  421. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  422. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  423. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  424. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  425. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  426. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  427. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  428. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  429. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  430. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  431. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  432. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  433. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +14 -0
  434. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  435. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  436. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  437. package/dist/configurator/ui/assistant/thread-items.d.ts +8 -1
  438. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  439. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  440. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  441. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  442. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  443. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  444. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  445. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  446. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  447. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  448. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  449. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  450. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  451. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  452. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +1 -1
  453. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  454. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +1 -1
  455. package/dist/configurator/ui/index.d.ts +1 -0
  456. package/dist/configurator/ui/index.js +1 -1
  457. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  458. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  459. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  460. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  461. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  462. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  463. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  464. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  465. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  466. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  467. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  468. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  469. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  470. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  471. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  472. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  473. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  474. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  475. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  476. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  477. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  478. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  479. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  480. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  481. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  482. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  483. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  484. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  485. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  486. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  487. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  488. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  489. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  490. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  491. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  492. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  493. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  494. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  495. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  496. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  497. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  498. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  499. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  500. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  501. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  502. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  503. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  504. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  505. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  506. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  507. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  508. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  509. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  510. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  511. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  512. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  513. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  514. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  515. package/dist/configurator/ui/preset-layout/index.js +1 -1
  516. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  517. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  518. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  519. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  520. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  521. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  522. package/dist/docs/fabs/basic.mdx +6 -2
  523. package/dist/docs/index.json +95 -1
  524. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  525. package/dist/docs/layouts/custom-layout.mdx +637 -165
  526. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  527. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  528. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  529. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  530. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  531. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  532. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  533. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  534. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  535. package/dist/docs/other-features/error-5xx.mdx +1 -1
  536. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  537. package/dist/docs/other-features/not-found-404.mdx +1 -1
  538. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  539. package/dist/docs/phoenix/components.mdx +6 -0
  540. package/dist/docs/phoenix/configurator-interface.mdx +223 -59
  541. package/dist/docs/phoenix/domain-model.mdx +2 -0
  542. package/dist/docs/phoenix/finalization.mdx +1 -1
  543. package/dist/docs/phoenix/getting-started.mdx +5 -3
  544. package/dist/docs/phoenix/layout-slots.mdx +23 -23
  545. package/dist/docs/phoenix/localization.mdx +6 -2
  546. package/dist/docs/phoenix/migration-guide.mdx +12 -10
  547. package/dist/docs/phoenix/phoenix-cli.mdx +31 -16
  548. package/dist/docs/phoenix/project-structure.mdx +52 -30
  549. package/dist/docs/phoenix/quickstart.mdx +7 -7
  550. package/dist/docs/phoenix/sdk-builder-workflow.mdx +7 -7
  551. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  552. package/dist/docs/phoenix/testing.mdx +8 -0
  553. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  554. package/dist/domain/application/assistant/assistant-manifest.d.ts +16 -1
  555. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +8 -1
  556. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  557. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  558. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  559. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  560. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  561. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  562. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  563. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  564. package/dist/domain/application/assistant/form/index.js +1 -0
  565. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  566. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  567. package/dist/domain/application/assistant/index.d.ts +2 -1
  568. package/dist/domain/application/assistant/index.js +1 -1
  569. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  570. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +2 -0
  571. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  572. package/dist/domain/application/assistant-recipe-groups.d.ts +3 -1
  573. package/dist/domain/application/standard-properties.js +1 -1
  574. package/dist/domain/application/web-component-property.d.ts +3 -1
  575. package/dist/domain/application/web-component-property.js +1 -1
  576. package/dist/domain/available-system-components.d.ts +1 -1
  577. package/dist/domain/available-system-components.js +1 -1
  578. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  579. package/dist/domain/domain-builder.d.ts +9 -3
  580. package/dist/domain/domain-builder.js +1 -1
  581. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  582. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  583. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  584. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  585. package/dist/domain/domain-runtime/domain-runtime.d.ts +26 -0
  586. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  587. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  588. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +2 -0
  589. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -1
  590. package/dist/domain/domain-runtime/index.d.ts +1 -1
  591. package/dist/domain/domain-runtime/index.js +1 -1
  592. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  593. package/dist/domain/domain-runtime/spec/index.js +1 -1
  594. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  595. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +27 -12
  596. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  597. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  598. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  599. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  600. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  601. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  602. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  603. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  604. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  605. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  606. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  607. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  608. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  609. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  610. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  611. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  612. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  613. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  614. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  615. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  616. package/dist/domain/extensions/{client-side-image.d.ts → export-images/client-side-image.d.ts} +2 -2
  617. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  618. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  619. package/dist/domain/extensions/export-images/index.js +1 -0
  620. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +2 -2
  621. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  622. package/dist/domain/extensions/index.d.ts +1 -2
  623. package/dist/domain/extensions/index.js +1 -1
  624. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -0
  625. package/dist/domain/system-components/child-entity-selection.js +1 -1
  626. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  627. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  628. package/dist/editor/Editor.d.ts +7 -0
  629. package/dist/editor/Editor.js +1 -1
  630. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  631. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  632. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  633. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  634. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  635. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  636. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  637. package/dist/editor/mocks/EditorMockContext.js +1 -1
  638. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  639. package/dist/i18n/locales/cs/messages.js +1 -1
  640. package/dist/i18n/locales/da/messages.js +1 -1
  641. package/dist/i18n/locales/de/messages.js +1 -1
  642. package/dist/i18n/locales/de-AT/messages.js +1 -1
  643. package/dist/i18n/locales/en/messages.js +1 -1
  644. package/dist/i18n/locales/en-AU/messages.js +1 -1
  645. package/dist/i18n/locales/en-GB/messages.js +1 -1
  646. package/dist/i18n/locales/es/messages.js +1 -1
  647. package/dist/i18n/locales/fr/messages.js +1 -1
  648. package/dist/i18n/locales/hu/messages.js +1 -1
  649. package/dist/i18n/locales/it/messages.js +1 -1
  650. package/dist/i18n/locales/nl/messages.js +1 -1
  651. package/dist/i18n/locales/pl/messages.js +1 -1
  652. package/dist/i18n/locales/pt/messages.js +1 -1
  653. package/dist/i18n/locales/ro/messages.js +1 -1
  654. package/dist/i18n/locales/sk/messages.js +1 -1
  655. package/dist/i18n/locales/tr/messages.js +1 -1
  656. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  657. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  658. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +95 -80
  659. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  660. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  661. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  662. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  663. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +11 -5
  664. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +10 -11
  665. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +9 -10
  666. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  667. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  668. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +0 -2
  669. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  670. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  671. package/dist/phoenix/application-spec/generate-project-files.d.ts +0 -2
  672. package/dist/phoenix/application-spec/project-files.js +1 -1
  673. package/dist/phoenix/bin.d.ts +2 -0
  674. package/dist/phoenix/bin.js +2 -0
  675. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  676. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  677. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  678. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  679. package/dist/phoenix/check-configs/index.d.ts +8 -0
  680. package/dist/phoenix/check-configs/index.js +1 -0
  681. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  682. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  683. package/dist/phoenix/cli.d.ts +0 -1
  684. package/dist/phoenix/cli.js +1 -2
  685. package/dist/phoenix/commands/build.js +1 -1
  686. package/dist/phoenix/commands/check.js +1 -1
  687. package/dist/phoenix/commands/clean.js +1 -1
  688. package/dist/phoenix/commands/deploy.js +2 -2
  689. package/dist/phoenix/commands/deps/deps.d.ts +22 -1
  690. package/dist/phoenix/commands/deps/deps.js +2 -2
  691. package/dist/phoenix/commands/deps/index.d.ts +1 -1
  692. package/dist/phoenix/commands/deps/index.js +1 -1
  693. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -1
  694. package/dist/phoenix/commands/dev.js +4 -4
  695. package/dist/phoenix/commands/fix.js +1 -1
  696. package/dist/phoenix/commands/init.d.ts +17 -5
  697. package/dist/phoenix/commands/init.js +1 -1
  698. package/dist/phoenix/commands/link.js +1 -1
  699. package/dist/phoenix/commands/prettier.js +1 -1
  700. package/dist/phoenix/commands/sync.js +1 -1
  701. package/dist/phoenix/commands/unlink.js +1 -1
  702. package/dist/phoenix/services/application-spec-project-watcher.d.ts +0 -2
  703. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  704. package/dist/phoenix/services/lingui.d.ts +8 -0
  705. package/dist/phoenix/services/lingui.js +1 -1
  706. package/dist/phoenix/services/swc.js +1 -1
  707. package/dist/phoenix/services/vite-config.js +1 -1
  708. package/dist/phoenix/utils/index.d.ts +3 -2
  709. package/dist/phoenix/utils/index.js +1 -1
  710. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  711. package/dist/phoenix/utils/node-version/index.js +1 -0
  712. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  713. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  714. package/dist/phoenix/utils/package-info.d.ts +0 -9
  715. package/dist/phoenix/utils/package-info.js +1 -1
  716. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  717. package/dist/phoenix/utils/package-manager/index.js +1 -0
  718. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  719. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  720. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  721. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  722. package/dist/phoenix/utils/run-command.d.ts +11 -0
  723. package/dist/phoenix/utils/run-command.js +1 -1
  724. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  725. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  726. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  727. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  728. package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.d.ts +4 -0
  729. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  730. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  731. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  732. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  733. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  734. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  735. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  736. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  737. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  738. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  739. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  740. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  741. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  742. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  743. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  744. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  745. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  746. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  747. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  748. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  749. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  750. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  751. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  752. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  753. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  754. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  755. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +5 -0
  756. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  757. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  758. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  759. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  760. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  761. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  762. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  763. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  764. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  765. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  766. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  767. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  768. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  769. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  770. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  771. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  772. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  773. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  774. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  775. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  776. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  777. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  778. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  779. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  780. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  781. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  782. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  783. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  784. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  785. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  786. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  787. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  788. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  789. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  790. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  791. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  792. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  793. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  794. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  795. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  796. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  797. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  798. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  799. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  800. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  801. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  802. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  803. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  804. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  805. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  806. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  807. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  808. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  809. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  810. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  811. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  812. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  813. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +296 -4
  814. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  815. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  816. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  817. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  818. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  819. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  820. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  821. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  822. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  823. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +15 -4
  824. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -1
  825. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  826. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  827. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  828. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  829. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  830. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  831. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  832. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  833. package/dist/react-sdk/domain-context/index.d.ts +7 -0
  834. package/dist/react-sdk/domain-context/index.js +1 -1
  835. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  836. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  837. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  838. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  839. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  840. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  841. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  842. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  843. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  844. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  845. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  846. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  847. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  848. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  849. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  850. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  851. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  852. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  853. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  854. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  855. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  856. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  857. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  858. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  859. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  860. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  861. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  862. package/dist/react-sdk/handlers/index.d.ts +6 -0
  863. package/dist/react-sdk/handlers/index.js +1 -1
  864. package/dist/{configurator/common → react-sdk/handlers}/use-finalize-action.d.ts +3 -2
  865. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  866. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  867. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  868. package/dist/react-sdk/index.d.ts +2 -0
  869. package/dist/react-sdk/index.js +1 -1
  870. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  871. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  872. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  873. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  874. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  875. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  876. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  877. package/dist/react-sdk/loading-state/index.js +1 -1
  878. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  879. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  880. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  881. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  882. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  883. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  884. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  885. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  886. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  887. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  888. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  889. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  890. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  891. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  892. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  893. package/dist/react-sdk/page-elements/index.js +1 -0
  894. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  895. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  896. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  897. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  898. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  899. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  900. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  901. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  902. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  903. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  904. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  905. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  906. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  907. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  908. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  909. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  910. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  911. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  912. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  913. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  914. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  915. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  916. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  917. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  918. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  919. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  920. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  921. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  922. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  923. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  924. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  925. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  926. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  927. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  928. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  929. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  930. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  931. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  932. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  933. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  934. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  935. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  936. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  937. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  938. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  939. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  940. package/dist/ui-sdk/theme/types.d.ts +5 -1
  941. package/package.json +29 -11
  942. package/schema/domain-spec.json +226 -8
  943. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  944. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  945. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  946. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  947. package/dist/configurator/common/use-finalize-action.js +0 -1
  948. package/dist/configurator/ui/assistant/entity-link/entity-link-target.d.ts +0 -5
  949. package/dist/configurator/ui/assistant/entity-link/entity-link-target.js +0 -1
  950. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  951. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  952. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  953. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  954. package/dist/domain/extensions/client-side-image.js +0 -1
  955. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  956. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  957. package/dist/phoenix/commands/generate-project-files.js +0 -1
  958. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  959. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  960. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  961. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  962. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  963. /package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.js +0 -0
@@ -1,4 +1,4 @@
1
- import{renderAgentSkill as e}from"./agent-skill.js";let s=`Review all current git changes for correctness, Phoenix pattern violations, and security issues.
1
+ import{renderAgentSkill as e}from"./agent-skill.js";import{sdkGuidanceSections as s}from"./sdk-content.js";let i=`Review all current git changes for correctness, Phoenix pattern violations, and security issues.
2
2
 
3
3
  ## Phoenix-Specific Review
4
4
 
@@ -66,7 +66,7 @@ import{renderAgentSkill as e}from"./agent-skill.js";let s=`Review all current gi
66
66
 
67
67
  ## Auto-Generated Files — DO NOT modify
68
68
 
69
- - .phoenix/ directory (except the option files in .phoenix/variants/, which the phoenix-variants skill writes), eslint.config.js, prettier.config.js
69
+ - .phoenix/ directory (except the option files in .phoenix/variants/, which the phoenix-variants skill writes)
70
70
  - src/locales/\\*.ts files
71
71
 
72
72
  ### Runtime Verification
@@ -112,4 +112,4 @@ import{renderAgentSkill as e}from"./agent-skill.js";let s=`Review all current gi
112
112
  - **Overall assessment**: <1-2 sentence summary>
113
113
  \`\`\`
114
114
 
115
- If no findings at a severity level, omit that section. If no findings at all, state "No issues found" with a brief note on what was checked.`;export const generatePhoenixReviewSkill=()=>e({name:"phoenix-review",description:"Phoenix-specific code review checklist and report format for specs, expressions, invariants, components, webhooks, TypeScript and React code. Use when reviewing changes in this Phoenix configurator project, before committing or when asked for a code review.",sections:[s]});
115
+ If no findings at a severity level, omit that section. If no findings at all, state "No issues found" with a brief note on what was checked.`;export const generatePhoenixReviewSkill=()=>e({name:"phoenix-review",description:"Phoenix-specific code review checklist and report format for specs, expressions, invariants, components, webhooks, TypeScript and React code. Use when reviewing changes in this Phoenix configurator project, before committing or when asked for a code review.",sections:[s.packageManager,i]});
@@ -1 +1 @@
1
- import{renderAgentSkill as e}from"./agent-skill.js";import{sdkGuidanceSections as t}from"./sdk-content.js";export const followsCanaryBuilds=e=>!e.useWorkspace&&e.sdkVersion.includes("-develop.");export const generatePhoenixSkill=({checkLatestCanary:n})=>e({name:"phoenix",description:`Phoenix SDK project conventions, covering project structure, architecture principles, key patterns, file and export rules, webhook membership, versioning the domain model once it is deployed, showing the user the dev preview and the build of a deploy, the run evaluation that follows a live deploy, inspecting the rendered result, and how to search the SDK documentation${n?", and the internal-beta check for the latest canary SDK build":""}. Use before writing or changing specs or source code, or deploying this Phoenix configurator project.`,sections:[...n?["## Stay on the Latest Canary\nDuring the internal beta this project uses the `canary` build of the SDK, which is published from every change to the platform. Once per conversation, before you change anything, compare the installed version with the newest canary:\n```bash\npnpm list @salsita-ai/sdk --depth 0\nnpm view @salsita-ai/sdk@canary version\n```\nWhen they differ, tell the user which version you are moving to, then update the project and regenerate its files:\n```bash\npnpm add @salsita-ai/sdk@canary\npnpm phoenix sync\n```\n`sync` rewrites the Phoenix skills, so read the ones you use again after it. When the user runs a globally installed `phoenix`, update that too with `npm install -g @salsita-ai/sdk@canary`. If the project no longer builds after the update, stop and tell the user; the `phoenix-feedback` skill covers reporting it."]:[],t.projectStructure,t.architecturePrinciples,t.keyPatterns,t.fileConventions,t.exportRules,t.webhookMembership,t.doNotEdit,t.modelVersioning,"## Show the Preview While You Work\nThe user should see the configurator change as you build it. Before your first change in a conversation, make sure `pnpm phoenix dev` is running (start it in the background when it is not) and open the address it prints as `Preview: <url>` (also written to `.phoenix/phoenix-dev.log`) in the user's browser: `open '<url>'` on macOS, `xdg-open '<url>'` on Linux, `Start-Process '<url>'` in PowerShell, `start \"\" \"<url>\"` in cmd. Keep the quotes, the shell would otherwise read a `?` in the address as a pattern. The log keeps the lines of earlier runs, so when you have just started dev, wait for the `Preview:` line written after your start and use the last one. Open it once; the preview reloads on every change, so tell the user to keep that tab open instead of opening it again.",t.visualInspection,"## Show the Build After a Deploy\nImmediately before invoking `pnpm phoenix deploy`, refresh `conversation.log` in the project root with the current conversation. Prefer the agent application's native session export when available; do not invent an export command or scan unrelated sessions. Otherwise write the messages still available in context and label the log `reconstructed; incomplete`. Never present a compaction summary as verbatim earlier messages.\n\nUse UTF-8 text with a header naming the agent, export time, source (native export or reconstructed), covered session and known omissions. Preserve user and assistant messages in chronological order, plus tool names, arguments and results when available. Keep each tool result to at most 16 KiB of text, marking truncation explicitly; describe image attachments by reference rather than embedding binary/base64 data, and mark references whose files are not uploaded. Exclude internal instructions, hidden reasoning, credentials and unrelated sensitive content; mark redactions without repeating the removed content. Refresh the current session's log rather than appending duplicate copies or silently carrying over a previous session.\n\nShow the user the exact file to review or redact and obtain approval to include it before deploying; do not ask again when they have already approved that file. If they decline, move it out of the project root before deployment so it cannot be collected. Deploy includes the file in the build's private source archive, downloadable by those authorized to download that build's sources, and leaves it out when extracting build inputs. A missing log warns but does not block deployment. The CLI does not export, redact or validate the transcript's completeness for you.\n\n`pnpm phoenix deploy` starts a build on the server and waits for it to go live. Right after `Build <id> started` it prints `Follow the build in Studio: <url>`. Run the deploy so that you can read its output while it runs, and open that link in the user's browser, quoted as above, as soon as it appears, so they can follow the build they just triggered. When the line is missing, the sign-in is older than the link: tell the user the build is listed under Deployments in Studio, and that `pnpm phoenix login <workspace>` brings the link back.\n\nWhen the deploy reports the configurator live, load the `phoenix-feedback` skill before you write your final message and follow its \"Evaluate the Run\" section, so the user is asked about the run while they are still there. It is asked once per conversation, and only once the user has nothing more to build.","## Code Review\nUse the `phoenix-review` skill to review code changes before committing.",t.sdkDocumentation]});
1
+ import{renderAgentSkill as e}from"./agent-skill.js";import{sdkGuidanceSections as t}from"./sdk-content.js";export const followsCanaryBuilds=e=>!e.useWorkspace&&e.sdkVersion.includes("-develop.");export const generatePhoenixSkill=({checkLatestCanary:n})=>e({name:"phoenix",description:`Phoenix SDK project conventions, covering project structure, architecture principles, key patterns, file and export rules, webhook membership, versioning the domain model once it is deployed, showing the user the dev preview and the build of a deploy, the run evaluation that follows a live deploy, inspecting the rendered result, and how to search the SDK documentation${n?", and the internal-beta check for the latest canary SDK build":""}. Use before writing or changing specs or source code, or deploying this Phoenix configurator project.`,sections:[t.packageManager,...n?["## Stay on the Latest Canary\nDuring the internal beta this project uses the `canary` build of the SDK, which is published from every change to the platform. Once per conversation, before you change anything, compare the installed version, the `version` in `node_modules/@salsita-ai/sdk/package.json`, with the newest canary:\n```bash\nnpm view @salsita-ai/sdk@canary version\n```\nWhen they differ, tell the user which version you are moving to, then update the SDK, bring the packages it needs next to it in line, and regenerate the project's files:\n```bash\npnpm add @salsita-ai/sdk@canary && pnpm phoenix deps && pnpm install && pnpm phoenix sync\n```\n`sync` rewrites the Phoenix skills, so read the ones you use again after it. When the user runs a globally installed `phoenix`, update that too with `npm install -g @salsita-ai/sdk@canary`. If the project no longer builds after the update, stop and tell the user; the `phoenix-feedback` skill covers reporting it."]:[],t.projectStructure,t.architecturePrinciples,t.keyPatterns,t.fileConventions,t.exportRules,t.webhookMembership,t.doNotEdit,t.modelVersioning,"## Show the Preview While You Work\nThe user should see the configurator change as you build it. Before your first change in a conversation, make sure `pnpm phoenix dev` is running (start it in the background when it is not) and open the address it prints as `Preview: <url>` (also written to `.phoenix/phoenix-dev.log`) in the user's browser: `open '<url>'` on macOS, `xdg-open '<url>'` on Linux, `Start-Process '<url>'` in PowerShell, `start \"\" \"<url>\"` in cmd. Keep the quotes, the shell would otherwise read a `?` in the address as a pattern. The log keeps the lines of earlier runs, so when you have just started dev, wait for the `Preview:` line written after your start and use the last one. Open it once; the preview reloads on every change, so tell the user to keep that tab open instead of opening it again.",t.visualInspection,"## Show the Build After a Deploy\nImmediately before invoking `pnpm phoenix deploy`, refresh `conversation.log` in the project root with the current conversation. Prefer the agent application's native session export when available; do not invent an export command or scan unrelated sessions. Otherwise write the messages still available in context and label the log `reconstructed; incomplete`. Never present a compaction summary as verbatim earlier messages.\n\nUse UTF-8 text with a header naming the agent, export time, source (native export or reconstructed), covered session and known omissions. Preserve user and assistant messages in chronological order, plus tool names, arguments and results when available. Keep each tool result to at most 16 KiB of text, marking truncation explicitly; describe image attachments by reference rather than embedding binary/base64 data, and mark references whose files are not uploaded. Exclude internal instructions, hidden reasoning, credentials and unrelated sensitive content; mark redactions without repeating the removed content. Refresh the current session's log rather than appending duplicate copies or silently carrying over a previous session.\n\nShow the user the exact file to review or redact and obtain approval to include it before deploying; do not ask again when they have already approved that file. If they decline, move it out of the project root before deployment so it cannot be collected. Deploy includes the file in the build's private source archive, downloadable by those authorized to download that build's sources, and leaves it out when extracting build inputs. A missing log warns but does not block deployment. The CLI does not export, redact or validate the transcript's completeness for you.\n\n`pnpm phoenix deploy` starts a build on the server and waits for it to go live. Right after `Build <id> started` it prints `Follow the build in Studio: <url>`. Run the deploy so that you can read its output while it runs, and open that link in the user's browser, quoted as above, as soon as it appears, so they can follow the build they just triggered. When the line is missing, the sign-in is older than the link: tell the user the build is listed under Deployments in Studio, and that `pnpm phoenix login <workspace>` brings the link back.\n\nWhen the deploy reports the configurator live, load the `phoenix-feedback` skill before you write your final message and follow its \"Evaluate the Run\" section, so the user is asked about the run while they are still there. It is asked once per conversation, and only once the user has nothing more to build.","## Code Review\nUse the `phoenix-review` skill to review code changes before committing.",t.sdkDocumentation]});
@@ -1,6 +1,6 @@
1
- import{renderAgentSkill as e}from"./agent-skill.js";let t=`## When to Offer Options
1
+ import{renderAgentSkill as e}from"./agent-skill.js";import{sdkGuidanceSections as t}from"./sdk-content.js";let n=`## When to Offer Options
2
2
  - Offer options when the answer is a matter of taste or brand and the supplied materials do not settle it.
3
3
  - Do not offer options for facts (dimensions, prices, rules), for something the user already decided, or to avoid a decision you can make yourself and state.
4
4
  - One decision per set, one set open at a time. Vary one thing and keep everything else identical.
5
5
  - Usually offer two to four options; the system has no fixed option limit. Original is always available as the captured baseline.
6
- - Make the options differ in a way the UI or scene can show. Three sheens of one matte wood in soft light look the same.`;export const generatePhoenixVariantsSkill=()=>e({name:"phoenix-variants",description:"Showing the user a few options over the dev preview and getting their pick back, with the phoenix variants command. Use when a visual or interaction decision has several reasonable answers and the taste of the user decides it, such as a shape, a material setting, lighting, an environment, a control or a flow.",sections:[t,"## Choose the Kind of Option\n- Use `<id>.variant.js` to edit real frontend project files on top of one captured baseline. Use `<id>.html` for a standalone branding, layout or flow proposal rendered in an iframe.\n- Use the same mechanism for controls, layout, brand, lights, visuals, materials, positions, components, elements and transformers.\n- Keep the model, schemas, data, assistant server settings, webhooks and code shared with them, dependencies, environment and uploaded assets unchanged. The preview rejects changes needing server preparation.\n- Options reuse the already loaded configurator, one at a time. Variant transactions bypass file-watcher debounce; hot reload still takes time to apply, without a special wait for rendering to settle.",'## Write the Options\n- One folder per set: `.phoenix/variants/<name>/`, one script or HTML file per option. HTML and scripts can share a set, but option ids must be unique. Keep HTML self-contained. This folder survives rebuilds and is never committed.\n- For HTML, set `<title>` and `<meta name="description" content="...">`; choosing a page changes no source files.\n- For scripts, export `title` and `description` as plain string literals, and a default function `({ read, write, remove }) => {}`; it may be async.\n- `read(path)` returns the original baseline file contents. `write(path, contents)` replaces or creates a file; `remove(path)` deletes it. Paths are relative to the project root.\n- Scripts run once per selection in the browser and collect edits. Phoenix validates and writes the whole batch locally; it owns backups and undo. Do not perform your own filesystem or network operations.\n- Supported edits are YAML in `spec/` outside `spec/admin/`, and TypeScript under `src/components`, `transformers`, `handlers`, `elements` and `_`-prefixed shared folders. Expressions, actions and invariants run on the server too, so they cannot be edited.\n- Every option starts from the same baseline. Original restores it; switching restores files the previous option alone changed.\n- Keep the working tree untouched while comparing. Phoenix never overwrites an edit made outside the preview: it refuses to switch options over one, and when the comparison ends it leaves that file as it is and warns in the dev log.\n- Name options in the user\'s product language; explain what changes in one line.','## Run It and Wait\n```bash\npnpm phoenix variants .phoenix/variants/<name> --title \'<the question>\' --description \'<what differs between the options>\'\n```\n- `pnpm phoenix dev` must be running with the preview open in a browser. Tell the user the options are open there.\n- Put the title and the description in single quotes, so the shell passes backticks, `$` and double quotes through unchanged. In bash or zsh, write a single quote inside them as `\'\\\'\'`; in PowerShell, double it instead.\n- The command waits for the answer, 540 seconds unless `--timeout <seconds>` says otherwise, so give it a command timeout longer than that. It prints JSON:\n - `"status": "chosen"` with `choice` (the option id, or `null` for Original) and `label`;\n - `"status": "waiting"` when the wait ran out. The options stay open: run the same command again, or end your turn and run it when the user is back. An answer given in between is returned by the next run;\n - `"status": "closed"` when the preview was closed without an answer.\n- `pnpm phoenix variants --close` closes the open set when you give up on it.\n- `--port <port>` names the editor WebSocket port when `phoenix dev` does not use 3020.\n- The live configurator keeps its current configuration. Interactions still change it; restoring source files does not undo configuration changes.',"## Use the Answer\n- **Chosen:** a script's exact file edits remain in the project. For an HTML choice, implement the selected proposal using the SDK and compare the result with the page. With `choice: null`, the user chose Original and the baseline remains. Verify the result using `pnpm phoenix inspect:scene` and `pnpm phoenix screenshot`, and tell the user anything that came out differently.\n- Record the decision and its reason where the project keeps its decisions, such as `configurator-spec.md`.\n- The user confirms Original or another option; Escape and the backdrop do not close the comparison. The agent can use `--close` to restore baseline source files without an answer. The folder is removed once the user answers. Pass `--keep` when you still need the files to build from, and remove the folder yourself afterwards."]});
6
+ - Make the options differ in a way the UI or scene can show. Three sheens of one matte wood in soft light look the same.`;export const generatePhoenixVariantsSkill=()=>e({name:"phoenix-variants",description:"Showing the user a few options over the dev preview and getting their pick back, with the phoenix variants command. Use when a visual or interaction decision has several reasonable answers and the taste of the user decides it, such as a shape, a material setting, lighting, an environment, a control or a flow.",sections:[t.packageManager,n,"## Choose the Kind of Option\n- Use `<id>.variant.js` to edit real frontend project files on top of one captured baseline. Use `<id>.html` for a standalone branding, layout or flow proposal rendered in an iframe.\n- Use the same mechanism for controls, layout, brand, lights, visuals, materials, positions, components, elements and transformers.\n- Keep the model, schemas, data, assistant server settings, webhooks and code shared with them, dependencies, environment and uploaded assets unchanged. The preview rejects changes needing server preparation.\n- Options reuse the already loaded configurator, one at a time. Variant transactions bypass file-watcher debounce; hot reload still takes time to apply, without a special wait for rendering to settle.",'## Write the Options\n- One folder per set: `.phoenix/variants/<name>/`, one script or HTML file per option. HTML and scripts can share a set, but option ids must be unique. Keep HTML self-contained. This folder survives rebuilds and is never committed.\n- For HTML, set `<title>` and `<meta name="description" content="...">`; choosing a page changes no source files.\n- For scripts, export `title` and `description` as plain string literals, and a default function `({ read, write, remove }) => {}`; it may be async.\n- `read(path)` returns the original baseline file contents. `write(path, contents)` replaces or creates a file; `remove(path)` deletes it. Paths are relative to the project root.\n- Scripts run once per selection in the browser and collect edits. Phoenix validates and writes the whole batch locally; it owns backups and undo. Do not perform your own filesystem or network operations.\n- Supported edits are YAML in `spec/` outside `spec/admin/`, and TypeScript under `src/components`, `transformers`, `handlers`, `elements` and `_`-prefixed shared folders. Expressions, actions and invariants run on the server too, so they cannot be edited.\n- Every option starts from the same baseline. Original restores it; switching restores files the previous option alone changed.\n- Keep the working tree untouched while comparing. Phoenix never overwrites an edit made outside the preview: it refuses to switch options over one, and when the comparison ends it leaves that file as it is and warns in the dev log.\n- Name options in the user\'s product language; explain what changes in one line.','## Run It and Wait\n```bash\npnpm phoenix variants .phoenix/variants/<name> --title \'<the question>\' --description \'<what differs between the options>\'\n```\n- `pnpm phoenix dev` must be running with the preview open in a browser. Tell the user the options are open there.\n- Put the title and the description in single quotes, so the shell passes backticks, `$` and double quotes through unchanged. In bash or zsh, write a single quote inside them as `\'\\\'\'`; in PowerShell, double it instead.\n- The command waits for the answer, 540 seconds unless `--timeout <seconds>` says otherwise, so give it a command timeout longer than that. It prints JSON:\n - `"status": "chosen"` with `choice` (the option id, or `null` for Original) and `label`;\n - `"status": "waiting"` when the wait ran out. The options stay open: run the same command again, or end your turn and run it when the user is back. An answer given in between is returned by the next run;\n - `"status": "closed"` when the preview was closed without an answer.\n- `pnpm phoenix variants --close` closes the open set when you give up on it.\n- `--port <port>` names the editor WebSocket port when `phoenix dev` does not use 3020.\n- The live configurator keeps its current configuration. Interactions still change it; restoring source files does not undo configuration changes.',"## Use the Answer\n- **Chosen:** a script's exact file edits remain in the project. For an HTML choice, implement the selected proposal using the SDK and compare the result with the page. With `choice: null`, the user chose Original and the baseline remains. Verify the result using `pnpm phoenix inspect:scene` and `pnpm phoenix screenshot`, and tell the user anything that came out differently.\n- Record the decision and its reason where the project keeps its decisions, such as `configurator-spec.md`.\n- The user confirms Original or another option; Escape and the backdrop do not close the comparison. The agent can use `--close` to restore baseline source files without an answer. The folder is removed once the user answers. Pass `--keep` when you still need the files to build from, and remove the folder yourself afterwards."]});
@@ -6,12 +6,24 @@
6
6
  * only in which sections they carry.
7
7
  */
8
8
  export declare const sdkGuidanceSections: {
9
+ /**
10
+ * How to run the commands the skills write for pnpm through the package manager the project uses. Every skill
11
+ * that names a command carries it, because an agent loads each skill on its own.
12
+ */
13
+ readonly packageManager: `## Package Manager
14
+ The project installs with its own package manager, and the commands in this skill are written for pnpm. Run them through the package manager the project uses, which the lockfile in the project root names:
15
+ - \`pnpm-lock.yaml\`: \`pnpm phoenix <command>\`, \`pnpm install\`, \`pnpm add <package>\`
16
+ - \`package-lock.json\`: \`npx phoenix <command>\`, \`npm install\`, \`npm install <package>\`
17
+ - \`yarn.lock\`: \`yarn phoenix <command>\`, \`yarn install\`, \`yarn add <package>\`
18
+ - \`bun.lock\` or \`bun.lockb\`: \`bunx phoenix <command>\`, \`bun install\`, \`bun add <package>\`
19
+
20
+ Without a lockfile, use the package manager the \`packageManager\` field of \`package.json\` names, or ask the user.`;
9
21
  /** The everyday `phoenix` commands, and the one that brings `package.json` in line with the SDK. */
10
22
  readonly buildCommands: `## Build Commands
11
23
  - \`pnpm phoenix build\` — Full production build
12
24
  - \`pnpm phoenix dev\` — Development mode with hot reload
13
25
  - \`pnpm phoenix sync\` — Sync generated files without full build
14
- - \`pnpm phoenix deps\` — Add the SDK's missing peer dependencies to \`package.json\` and move out-of-range ones into the SDK's range; it installs nothing, so run \`pnpm install\` after it`;
26
+ - \`pnpm phoenix deps\` — Add the SDK's missing peer dependencies to \`package.json\` and move out-of-range ones into the SDK's range; it installs nothing, so install after it`;
15
27
  /** Where `phoenix dev` writes its log and how to read it. */
16
28
  readonly devLogs: `## Dev Logs
17
29
  - \`pnpm phoenix dev\` writes all logs to \`.phoenix/phoenix-dev.log\`
@@ -28,12 +40,19 @@ export declare const sdkGuidanceSections: {
28
40
  - \`src/components/\` — ECS system components (\`phx.domain.attachComponent.withEntity()\`)
29
41
  - \`src/elements/\` — Page-level React components (\`phx.frontend.createCustomPhoenixLayoutElement()\`)
30
42
  - \`ConfiguratorLayout\`: a layout element with this name replaces everything the built-in layout renders for a loaded configuration, in owner and read mode, finalization included. Prefer arranging the spec's layout components; write one for shell-level changes, such as moving the sidebar or adding an area the built-in layout has no place for
31
- - Mount \`LayoutSlots.SharedCanvas\` (from \`@salsita-ai/sdk/configurator\`) in a positioned root covering the page, or the app loader stays on screen; put the UI above it, positioned and after it in the markup. Call \`useSceneSafeArea()\` (same import) and put \`containerRef\` on the element covering the whole canvas and \`safeAreaRef\` on the region the UI leaves free, with \`pointerEvents: 'none'\`, so the camera frames the scene there
43
+ - Mount \`LayoutSlots.SharedCanvas\` (from \`@salsita-ai/sdk/configurator\`) in a positioned root covering the page; put the UI above it, positioned and after it in the markup. With the canvas mounted the app loader waits until the scene has loaded; a layout without a canvas is not held by the loader. Call \`phx.frontend.useSceneSafeArea()\` and put \`containerRef\` on the element covering the whole canvas and \`safeAreaRef\` on the region the UI leaves free, with \`pointerEvents: 'none'\`, so the camera frames the scene there
32
44
  - Sidebar moved, contents as the spec configures them: mount \`LayoutSlots.DesktopSidebar\` in a positioned container that sets its size, with \`side="start"\` on the left; \`docs/layouts/sidebar/in-a-custom-layout.mdx\` is the whole layout
33
- - Your own UI: "Hooks for a Project Layout" in \`docs/phoenix/configurator-interface.mdx\` lists the hooks with what each returns (\`pnpm phoenix docs -r docs/phoenix/configurator-interface.mdx\`), \`docs/phoenix/layout-slots.mdx\` the built-in pieces you can still mount, and \`docs/layouts/custom-layout.mdx\` is a worked example
34
- - Messages: mount \`LayoutSlots.Services\` for the built-in snackbars, or show violations, side-effect hints and errors yourself with \`phx.frontend.useConfiguratorMessages(onMessage)\`, not both. Either way mount a snackbar root (\`LayoutSlots.DesktopSnackbarsRoot\` or \`LayoutSlots.MobileSnackbarsRoot\`): save and built-in action errors are always snackbars
35
- - Finalize over the spec's \`finalizeAction\` components, each naming a handler registered with \`phx.frontend.createPhoenixHandler\`: run each with \`phx.frontend.useFinalizeAction(handler)\` in a component of its own wrapped in \`PhoenixHandlerBoundary\` (from \`@salsita-ai/sdk/react\`), or mount \`FinalizeActions\` (from \`@salsita-ai/sdk/configurator\`) for the built-in buttons. \`finalizePage\` and \`finalizeButton\` are legacy
36
- - Read mode and fullscreen are the layout's job, no hook enforces them: hide what a viewer must not change while \`phx.frontend.useAccessService().accessInfo.viewMode\` is \`true\`, and remove panels while \`phx.frontend.useIsFullscreenActive()\` is set; \`phx.frontend.useSetFullscreen()\` returns its setter
45
+ - Your own UI: "Hooks for a Project Layout" in \`docs/phoenix/configurator-interface.mdx\` lists the hooks with what each returns (\`pnpm phoenix docs -r docs/phoenix/configurator-interface.mdx\`), \`docs/phoenix/layout-slots.mdx\` the built-in pieces you can still mount, and \`docs/layouts/custom-layout.mdx\` is a worked example. Call the hooks as \`phx.frontend.useX()\`; besides those below, these are often needed: \`usePreview()\` (\`isPreview\` while the preview start screen shows), \`useCloseAction()\` (the host's close action or \`null\`), \`useActiveViewports()\` (the container's breakpoints, \`null\` until measured, \`desktop\` above 768 px: the desktop/phone switch), \`useResolveLocalizable()\` and \`useLocalizable(text)\` (spec texts to strings), \`useIsCloningAllowed()\` (a read-mode "edit a copy" action with \`LayoutSlots.CloneToEditDialog\`)
46
+ - Undo and redo: \`phx.frontend.useUndoRedo()\` returns \`{ canUndo, canRedo, undo, redo }\`; disable each button from \`canUndo\`/\`canRedo\`
47
+ - Tabs: \`phx.frontend.useTabNavigation()\` returns \`{ source, tabs, activeTab, select }\` for the spec's \`sidebarTabs\` (of the selected entity) or \`horizontalTabs\`; render \`tabs\` (each \`{ index, label, icon, state, isActive }\`, \`icon\` a PhxIcon name) and call \`select(tab.index)\` on click. Pass \`{ source: 'sidebarTabs' }\` or \`{ source: 'horizontalTabs' }\` when the layout shows one kind only. Not \`LayoutSlots.useSidebarTabs()\`: it serves the built-in sidebar and returns no tabs while its summary shows
48
+ - Steps: \`phx.frontend.useStepNavigation()\` returns \`{ steps, activeStep, activeIndex, isFirst, isLast, canGoNext, canGoPrevious, next, previous, goTo }\` for the spec's \`navigationSteps\`; render \`steps\` (each \`{ index, label, state, status }\`, \`status\` \`'complete' | 'active' | 'upcoming'\`), call \`next()\`/\`previous()\` for Back and Next and \`goTo(step.index)\` from a stepper. It enforces no order and no validity: enable only \`'complete'\` steps for an "earlier steps only" stepper, and to block moving on while the configuration has a problem, require \`phx.frontend.useStateValidity().severity !== 'warning'\` besides \`canGoNext\`: a change with a \`fixable\` or \`fatal\` violation is rejected, so the configuration is never invalid, and a \`warning\` is the problem that stays (it blocks finalizing too). \`useSteps\` and \`useHasSteps\` from \`@salsita-ai/sdk/configurator\` are deprecated
49
+ - Messages: mount \`LayoutSlots.Services\` for the built-in snackbars, or show violations, side-effect hints, errors and failed saves yourself with \`phx.frontend.useConfiguratorMessages(onMessage)\`, not both. A failed save arrives as \`saveError\`, the next successful save as \`saveRecovery\`; a layout that mounts neither shows no sign of a failed save. Either way mount a snackbar root (\`LayoutSlots.DesktopSnackbarsRoot\` or \`LayoutSlots.MobileSnackbarsRoot\`): errors of the built-in actions are always snackbars
50
+ - Finalize over the spec's \`finalizeAction\` components, each naming a handler registered with \`phx.frontend.createPhoenixHandler\`: \`phx.frontend.useFinalizeActions()\` returns \`{ actions, primary, secondary, disabled, hints }\`; render \`primary\` (and \`secondary\` in a menu or list) in a loop, each action \`{ key, label, title, icon, run, isPending, error, disabled }\`, and call \`action.run()\` on click (its promise never rejects; show \`action.error\` on failure). The configurator runs the handlers itself, outside the layout, so a handler must not rely on a provider the layout adds. For one known handler, \`phx.frontend.useFinalizeAction(handler)\` in a component wrapped in \`PhoenixHandlerBoundary\` (from \`@salsita-ai/sdk/react\`) works too; \`FinalizeActions\` (from \`@salsita-ai/sdk/configurator\`) mounts the built-in buttons. \`finalizePage\` and \`finalizeButton\` are legacy
51
+ - Read mode and fullscreen are the layout's job, no hook enforces them (\`useUndoRedo\`, \`useFinalizeActions\` and \`useStepNavigation\` included): hide undo, redo, finalization and whatever else a viewer must not change while \`phx.frontend.useAccessService().accessInfo.viewMode\` is \`true\` (tabs are navigation, so a viewer may switch them), and remove panels while \`phx.frontend.useIsFullscreenActive()\` is set; \`phx.frontend.useSetFullscreen()\` returns its setter
52
+ - \`ConfigurationNotFoundPage\`: \`phx.frontend.createConfigurationNotFoundPage(({ onBack }) => …)\` replaces the "configuration not accessible" page; show a way back only when the optional \`onBack\` is set. The not-authenticated page's default renders it too; only the admin's not-authorized page keeps the built-in page
53
+ - \`ConfiguratorErrorPage\`: \`phx.frontend.createConfiguratorErrorPage(({ reason, onRetry }) => …)\` replaces the production error page; \`reason\` is \`uncaughtError\` or \`presetCreationFailed\`. A page that throws falls back to the built-in one, and development keeps the detailed error pages, so the project page shows only in a production build. Register both pages with these helpers: \`createCustomPhoenixLayoutElement\` with the name works too, but types the component as taking only \`children\`, so the typed props do not compile there in a strict project
54
+ - \`AppLoaderContent\`: \`phx.frontend.createAppLoader(({ phases }) => …)\` replaces what the loading overlay shows (each phase \`{ id, label?, progress? }\`, the list possibly empty); Phoenix keeps the overlay itself
55
+ - Assistant form elements: an element declared under \`assistant.formElements\` (\`description\`, \`role\`, scalar \`attributes\` beside the built-in \`label\`, a \`value\` included, \`required\`) is the default export \`phx.frontend.createAssistantFormElement('name', Component)\` of one file; the name types the component's props by its role (\`AssistantFormElementProps<'name'>\`): an option reports its answer with \`onSelect(answer)\`, an input with \`onChange(state, answer)\`; and the application does not start while a declared element has no registration or a registration no declaration
37
56
  - \`src/handlers/\` — Event & lifecycle handlers
38
57
  - \`src/webhooks/\` — Server-side webhook handlers (\`phx.webhooks.*Builder\`); the webhook is the default export of \`src/webhooks/index.ts\`, which you create when the project needs its own handlers — without it the build uses a built-in inert webhook that answers only anonymous auth, so create the file before setting \`useAuthHook\` or \`useClerk\`
39
58
  - \`src/migrations/\` — Schema version migrations (v*.ts)
@@ -75,14 +94,13 @@ The default export must be what the folder's phx factory returns (for example \`
75
94
  readonly webhookMembership: `## Webhook Membership
76
95
  - User-authored components, admin components, and handlers are frontend-only by default.
77
96
  - A handler that registers \`phx.domain.createAssistantSetupHandler\`, \`createMapPublishedRevisionDataHandler\`, \`createMapPublishedChunkedDataHandler\`, \`createDataRowValidatorHandler\`, or \`createSheetValidatorHandler\` is included in the webhook automatically.
78
- - An assistant setup handler receives the declaration-shaped whitelist and { role, sessionData, access }. Keep the exact entity/alias split from YAML; inherited fields and expanded member entries are absent. Narrow original declarations, then the SDK expands them. Use project-defined role/session data for per-user customization. Keep the handler synchronous, pure and deterministic. The handler runs in the browser and webhook. Return null to disable assistant execution, or omit whitelist entries to restrict them. Button and panel visibility use spec presence; project developers own dynamic UI filtering through normal layout mechanics such as $filter. Leaves expose optional descriptions; writable options allow only validate: true and allowDryRuns: false; recipe groups allow descriptions and allowDryRuns: false. Deletable entries are {}. Names, component bindings, hints and types are internal. Omitted overrides retain baseline values. Existing entity, enhanced-entity and action types constrain the handler; no separate generated manifest types. Browser GraphQL, tools and change recording use the session-derived manifest; rejected setup fails closed. UI reads the pure spec selector. Omitted server instructions or AI fields preserve the baseline. An empty server instructions string clears it.
97
+ - An assistant setup handler receives the declaration-shaped whitelist and { role, sessionData, access }. Keep the exact entity/alias split from YAML; inherited fields and expanded member entries are absent. Narrow original declarations, then the SDK expands them. Use project-defined role/session data for per-user customization. Keep the handler synchronous, pure and deterministic. The handler runs in the browser and webhook. Return null to disable assistant execution, or omit whitelist entries to restrict them. Button and panel visibility use spec presence; project developers own dynamic UI filtering through normal layout mechanics such as $filter. Leaves expose optional descriptions; writable options allow only validate: true and allowDryRuns: false; recipe groups allow descriptions and allowDryRuns: false; screenshot views allow descriptions. Deletable entries are {}. Names, component bindings, hints and types are internal. Omitted overrides retain baseline values. Existing entity, enhanced-entity and action types constrain the handler; no separate generated manifest types. Browser GraphQL, tools and change recording use the session-derived manifest; rejected setup fails closed. UI reads the pure spec selector. Omitted server instructions or AI fields preserve the baseline. An empty server instructions string clears it.
79
98
  - To include another component or handler in the webhook, put \`'use webhook'\` as its first statement (leading comments are allowed).
80
99
  - A webhook-included file and its runtime local-import closure must not import browser SDK entrypoints (\`application\`, \`admin\`, \`configurator\`, \`editor\`, \`react\`, \`ui\`) or style/font/image assets. Spec parsing reports the unsafe import and inclusion reason as a diagnostic.
81
100
  - Keep browser rendering in an unpinned file. Move shared server-safe logic into a separate module when both frontend and webhook code need it.`;
82
101
  /** Generated files a project must not edit. */
83
102
  readonly doNotEdit: `## Do Not Edit
84
103
  - \`.phoenix/\` directory — completely regenerated on each build. The one exception is \`.phoenix/variants/\`, where the \`phoenix-variants\` skill has you write option files; a rebuild keeps it. The project's TypeScript settings come from \`.phoenix/tsconfig.json\`; the root \`tsconfig.json\` is the project's and extends it. \`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; use relative imports
85
- - \`eslint.config.js\`, \`prettier.config.js\`, \`.linguirc\`, \`.nvmrc\`
86
104
  - \`src/locales/\` .ts files — compiled from .po files
87
105
  - \`phoenix\` and \`phoenix-*\` folders under \`.claude/skills/\` and \`.agents/skills/\` — Phoenix rewrites its skills on every sync, removes anything else inside their folders and removes any other \`phoenix-*\` skill folder. To customise a skill, copy it to a folder whose name does not start with \`phoenix\``;
88
106
  /** When and how a deployed domain model gets a new version and a migration, with the recipe for replacing the starter. */
@@ -1,10 +1,10 @@
1
- export const sdkGuidanceSections={buildCommands:"## Build Commands\n- `pnpm phoenix build` — Full production build\n- `pnpm phoenix dev` — Development mode with hot reload\n- `pnpm phoenix sync` — Sync generated files without full build\n- `pnpm phoenix deps` — Add the SDK's missing peer dependencies to `package.json` and move out-of-range ones into the SDK's range; it installs nothing, so run `pnpm install` after it",devLogs:"## Dev Logs\n- `pnpm phoenix dev` writes all logs to `.phoenix/phoenix-dev.log`\n- Contains: spec parse errors, build errors, browser runtime errors, file watcher events\n- After making changes, always check the log for errors: `tail -50 .phoenix/phoenix-dev.log` or `grep ERROR .phoenix/phoenix-dev.log`\n- Rotated automatically at 10MB (`.log.1`, `.log.2` are older rotations)",projectStructure:"## Project Structure\n- `spec/` — Domain YAML specs (entities, relations, expressions, invariants, components, application config)\n- `src/expressions/` — Computed/derived entity properties (`phx.domain.implementCustomExpressions()`)\n- `src/actions/` — Domain operations declared under `actions:` in the spec (`phx.domain.implementActions()`), run by controls and exposed to the assistant\n- `src/invariants/` — Business rule constraints (`phx.domain.implementCustomInvariants()`)\n- `src/transformers/` — Automatic state fixers (`phx.frontend.transformerBuilder`)\n- `src/components/` — ECS system components (`phx.domain.attachComponent.withEntity()`)\n- `src/elements/` — Page-level React components (`phx.frontend.createCustomPhoenixLayoutElement()`)\n - `ConfiguratorLayout`: a layout element with this name replaces everything the built-in layout renders for a loaded configuration, in owner and read mode, finalization included. Prefer arranging the spec's layout components; write one for shell-level changes, such as moving the sidebar or adding an area the built-in layout has no place for\n - Mount `LayoutSlots.SharedCanvas` (from `@salsita-ai/sdk/configurator`) in a positioned root covering the page, or the app loader stays on screen; put the UI above it, positioned and after it in the markup. Call `useSceneSafeArea()` (same import) and put `containerRef` on the element covering the whole canvas and `safeAreaRef` on the region the UI leaves free, with `pointerEvents: 'none'`, so the camera frames the scene there\n - Sidebar moved, contents as the spec configures them: mount `LayoutSlots.DesktopSidebar` in a positioned container that sets its size, with `side=\"start\"` on the left; `docs/layouts/sidebar/in-a-custom-layout.mdx` is the whole layout\n - Your own UI: \"Hooks for a Project Layout\" in `docs/phoenix/configurator-interface.mdx` lists the hooks with what each returns (`pnpm phoenix docs -r docs/phoenix/configurator-interface.mdx`), `docs/phoenix/layout-slots.mdx` the built-in pieces you can still mount, and `docs/layouts/custom-layout.mdx` is a worked example\n - Messages: mount `LayoutSlots.Services` for the built-in snackbars, or show violations, side-effect hints and errors yourself with `phx.frontend.useConfiguratorMessages(onMessage)`, not both. Either way mount a snackbar root (`LayoutSlots.DesktopSnackbarsRoot` or `LayoutSlots.MobileSnackbarsRoot`): save and built-in action errors are always snackbars\n - Finalize over the spec's `finalizeAction` components, each naming a handler registered with `phx.frontend.createPhoenixHandler`: run each with `phx.frontend.useFinalizeAction(handler)` in a component of its own wrapped in `PhoenixHandlerBoundary` (from `@salsita-ai/sdk/react`), or mount `FinalizeActions` (from `@salsita-ai/sdk/configurator`) for the built-in buttons. `finalizePage` and `finalizeButton` are legacy\n - Read mode and fullscreen are the layout's job, no hook enforces them: hide what a viewer must not change while `phx.frontend.useAccessService().accessInfo.viewMode` is `true`, and remove panels while `phx.frontend.useIsFullscreenActive()` is set; `phx.frontend.useSetFullscreen()` returns its setter\n- `src/handlers/` — Event & lifecycle handlers\n- `src/webhooks/` — Server-side webhook handlers (`phx.webhooks.*Builder`); the webhook is the default export of `src/webhooks/index.ts`, which you create when the project needs its own handlers — without it the build uses a built-in inert webhook that answers only anonymous auth, so create the file before setting `useAuthHook` or `useClerk`\n- `src/migrations/` — Schema version migrations (v*.ts)\n- `src/locales/` — Locale catalogs (authored .po sources; compiled .ts, do not edit)\n- `src/admin/` — Admin interface (mirrors main src/ structure)\n- `src/_shared/` — Shared utilities (NOT auto-imported, requires explicit imports)\n- `.phoenix/` — Auto-generated files (DO NOT EDIT, except the option files in `.phoenix/variants/`)\n- `public/` — Static assets (3D models, textures, images, HDRI maps, fonts)\n- `assets/` — Uploadable resources (PDF templates, email assets)",architecturePrinciples:"## Architecture Principles\n- YAML-first: 99% of configuration in spec/*.yaml, custom code is last resort\n- ECS pattern: entities (domain objects) + components (behavior/UI) + systems (SDK runtime)\n- Reactive state: immutable domain state flows through RxJS pipelines\n- Data binding: `$read` (read-only), `$write` (write-only), `$bind` (bidirectional) connect components to domain\n- memoEval: all component implementations must use memoEval for stable object references",keyPatterns:"## Key Patterns\n- Expressions = computed properties on entities (prefix: `$`), implemented per-entity in src/expressions/\n- Actions = named domain operations (`actions:` in YAML with `params` and `result` schemas), implemented in src/actions/, prepared through `actionSystem.prepareAction()` and exposed as assistant mutations through `assistant.actions`\n- Invariants = validation rules returning violations, static or dynamic\n- Transformers = auto-fixers maintaining consistency after state changes\n- Components defined in YAML with `$read`/`$bind` bindings, or custom in src/components/ using attachComponent builder\n- Webhooks = server-side finalization tasks (PDF, email, CSV, image rendering)\n- Filters = contextual component activation via navigationStates, viewStates, modes, selectedEntityIds",fileConventions:`## File Conventions
1
+ export const sdkGuidanceSections={packageManager:"## Package Manager\nThe project installs with its own package manager, and the commands in this skill are written for pnpm. Run them through the package manager the project uses, which the lockfile in the project root names:\n- `pnpm-lock.yaml`: `pnpm phoenix <command>`, `pnpm install`, `pnpm add <package>`\n- `package-lock.json`: `npx phoenix <command>`, `npm install`, `npm install <package>`\n- `yarn.lock`: `yarn phoenix <command>`, `yarn install`, `yarn add <package>`\n- `bun.lock` or `bun.lockb`: `bunx phoenix <command>`, `bun install`, `bun add <package>`\n\nWithout a lockfile, use the package manager the `packageManager` field of `package.json` names, or ask the user.",buildCommands:"## Build Commands\n- `pnpm phoenix build` — Full production build\n- `pnpm phoenix dev` — Development mode with hot reload\n- `pnpm phoenix sync` — Sync generated files without full build\n- `pnpm phoenix deps` — Add the SDK's missing peer dependencies to `package.json` and move out-of-range ones into the SDK's range; it installs nothing, so install after it",devLogs:"## Dev Logs\n- `pnpm phoenix dev` writes all logs to `.phoenix/phoenix-dev.log`\n- Contains: spec parse errors, build errors, browser runtime errors, file watcher events\n- After making changes, always check the log for errors: `tail -50 .phoenix/phoenix-dev.log` or `grep ERROR .phoenix/phoenix-dev.log`\n- Rotated automatically at 10MB (`.log.1`, `.log.2` are older rotations)",projectStructure:"## Project Structure\n- `spec/` — Domain YAML specs (entities, relations, expressions, invariants, components, application config)\n- `src/expressions/` — Computed/derived entity properties (`phx.domain.implementCustomExpressions()`)\n- `src/actions/` — Domain operations declared under `actions:` in the spec (`phx.domain.implementActions()`), run by controls and exposed to the assistant\n- `src/invariants/` — Business rule constraints (`phx.domain.implementCustomInvariants()`)\n- `src/transformers/` — Automatic state fixers (`phx.frontend.transformerBuilder`)\n- `src/components/` — ECS system components (`phx.domain.attachComponent.withEntity()`)\n- `src/elements/` — Page-level React components (`phx.frontend.createCustomPhoenixLayoutElement()`)\n - `ConfiguratorLayout`: a layout element with this name replaces everything the built-in layout renders for a loaded configuration, in owner and read mode, finalization included. Prefer arranging the spec's layout components; write one for shell-level changes, such as moving the sidebar or adding an area the built-in layout has no place for\n - Mount `LayoutSlots.SharedCanvas` (from `@salsita-ai/sdk/configurator`) in a positioned root covering the page; put the UI above it, positioned and after it in the markup. With the canvas mounted the app loader waits until the scene has loaded; a layout without a canvas is not held by the loader. Call `phx.frontend.useSceneSafeArea()` and put `containerRef` on the element covering the whole canvas and `safeAreaRef` on the region the UI leaves free, with `pointerEvents: 'none'`, so the camera frames the scene there\n - Sidebar moved, contents as the spec configures them: mount `LayoutSlots.DesktopSidebar` in a positioned container that sets its size, with `side=\"start\"` on the left; `docs/layouts/sidebar/in-a-custom-layout.mdx` is the whole layout\n - Your own UI: \"Hooks for a Project Layout\" in `docs/phoenix/configurator-interface.mdx` lists the hooks with what each returns (`pnpm phoenix docs -r docs/phoenix/configurator-interface.mdx`), `docs/phoenix/layout-slots.mdx` the built-in pieces you can still mount, and `docs/layouts/custom-layout.mdx` is a worked example. Call the hooks as `phx.frontend.useX()`; besides those below, these are often needed: `usePreview()` (`isPreview` while the preview start screen shows), `useCloseAction()` (the host's close action or `null`), `useActiveViewports()` (the container's breakpoints, `null` until measured, `desktop` above 768 px: the desktop/phone switch), `useResolveLocalizable()` and `useLocalizable(text)` (spec texts to strings), `useIsCloningAllowed()` (a read-mode \"edit a copy\" action with `LayoutSlots.CloneToEditDialog`)\n - Undo and redo: `phx.frontend.useUndoRedo()` returns `{ canUndo, canRedo, undo, redo }`; disable each button from `canUndo`/`canRedo`\n - Tabs: `phx.frontend.useTabNavigation()` returns `{ source, tabs, activeTab, select }` for the spec's `sidebarTabs` (of the selected entity) or `horizontalTabs`; render `tabs` (each `{ index, label, icon, state, isActive }`, `icon` a PhxIcon name) and call `select(tab.index)` on click. Pass `{ source: 'sidebarTabs' }` or `{ source: 'horizontalTabs' }` when the layout shows one kind only. Not `LayoutSlots.useSidebarTabs()`: it serves the built-in sidebar and returns no tabs while its summary shows\n - Steps: `phx.frontend.useStepNavigation()` returns `{ steps, activeStep, activeIndex, isFirst, isLast, canGoNext, canGoPrevious, next, previous, goTo }` for the spec's `navigationSteps`; render `steps` (each `{ index, label, state, status }`, `status` `'complete' | 'active' | 'upcoming'`), call `next()`/`previous()` for Back and Next and `goTo(step.index)` from a stepper. It enforces no order and no validity: enable only `'complete'` steps for an \"earlier steps only\" stepper, and to block moving on while the configuration has a problem, require `phx.frontend.useStateValidity().severity !== 'warning'` besides `canGoNext`: a change with a `fixable` or `fatal` violation is rejected, so the configuration is never invalid, and a `warning` is the problem that stays (it blocks finalizing too). `useSteps` and `useHasSteps` from `@salsita-ai/sdk/configurator` are deprecated\n - Messages: mount `LayoutSlots.Services` for the built-in snackbars, or show violations, side-effect hints, errors and failed saves yourself with `phx.frontend.useConfiguratorMessages(onMessage)`, not both. A failed save arrives as `saveError`, the next successful save as `saveRecovery`; a layout that mounts neither shows no sign of a failed save. Either way mount a snackbar root (`LayoutSlots.DesktopSnackbarsRoot` or `LayoutSlots.MobileSnackbarsRoot`): errors of the built-in actions are always snackbars\n - Finalize over the spec's `finalizeAction` components, each naming a handler registered with `phx.frontend.createPhoenixHandler`: `phx.frontend.useFinalizeActions()` returns `{ actions, primary, secondary, disabled, hints }`; render `primary` (and `secondary` in a menu or list) in a loop, each action `{ key, label, title, icon, run, isPending, error, disabled }`, and call `action.run()` on click (its promise never rejects; show `action.error` on failure). The configurator runs the handlers itself, outside the layout, so a handler must not rely on a provider the layout adds. For one known handler, `phx.frontend.useFinalizeAction(handler)` in a component wrapped in `PhoenixHandlerBoundary` (from `@salsita-ai/sdk/react`) works too; `FinalizeActions` (from `@salsita-ai/sdk/configurator`) mounts the built-in buttons. `finalizePage` and `finalizeButton` are legacy\n - Read mode and fullscreen are the layout's job, no hook enforces them (`useUndoRedo`, `useFinalizeActions` and `useStepNavigation` included): hide undo, redo, finalization and whatever else a viewer must not change while `phx.frontend.useAccessService().accessInfo.viewMode` is `true` (tabs are navigation, so a viewer may switch them), and remove panels while `phx.frontend.useIsFullscreenActive()` is set; `phx.frontend.useSetFullscreen()` returns its setter\n - `ConfigurationNotFoundPage`: `phx.frontend.createConfigurationNotFoundPage(({ onBack }) => …)` replaces the \"configuration not accessible\" page; show a way back only when the optional `onBack` is set. The not-authenticated page's default renders it too; only the admin's not-authorized page keeps the built-in page\n - `ConfiguratorErrorPage`: `phx.frontend.createConfiguratorErrorPage(({ reason, onRetry }) => …)` replaces the production error page; `reason` is `uncaughtError` or `presetCreationFailed`. A page that throws falls back to the built-in one, and development keeps the detailed error pages, so the project page shows only in a production build. Register both pages with these helpers: `createCustomPhoenixLayoutElement` with the name works too, but types the component as taking only `children`, so the typed props do not compile there in a strict project\n - `AppLoaderContent`: `phx.frontend.createAppLoader(({ phases }) => …)` replaces what the loading overlay shows (each phase `{ id, label?, progress? }`, the list possibly empty); Phoenix keeps the overlay itself\n - Assistant form elements: an element declared under `assistant.formElements` (`description`, `role`, scalar `attributes` beside the built-in `label`, a `value` included, `required`) is the default export `phx.frontend.createAssistantFormElement('name', Component)` of one file; the name types the component's props by its role (`AssistantFormElementProps<'name'>`): an option reports its answer with `onSelect(answer)`, an input with `onChange(state, answer)`; and the application does not start while a declared element has no registration or a registration no declaration\n- `src/handlers/` — Event & lifecycle handlers\n- `src/webhooks/` — Server-side webhook handlers (`phx.webhooks.*Builder`); the webhook is the default export of `src/webhooks/index.ts`, which you create when the project needs its own handlers — without it the build uses a built-in inert webhook that answers only anonymous auth, so create the file before setting `useAuthHook` or `useClerk`\n- `src/migrations/` — Schema version migrations (v*.ts)\n- `src/locales/` — Locale catalogs (authored .po sources; compiled .ts, do not edit)\n- `src/admin/` — Admin interface (mirrors main src/ structure)\n- `src/_shared/` — Shared utilities (NOT auto-imported, requires explicit imports)\n- `.phoenix/` — Auto-generated files (DO NOT EDIT, except the option files in `.phoenix/variants/`)\n- `public/` — Static assets (3D models, textures, images, HDRI maps, fonts)\n- `assets/` — Uploadable resources (PDF templates, email assets)",architecturePrinciples:"## Architecture Principles\n- YAML-first: 99% of configuration in spec/*.yaml, custom code is last resort\n- ECS pattern: entities (domain objects) + components (behavior/UI) + systems (SDK runtime)\n- Reactive state: immutable domain state flows through RxJS pipelines\n- Data binding: `$read` (read-only), `$write` (write-only), `$bind` (bidirectional) connect components to domain\n- memoEval: all component implementations must use memoEval for stable object references",keyPatterns:"## Key Patterns\n- Expressions = computed properties on entities (prefix: `$`), implemented per-entity in src/expressions/\n- Actions = named domain operations (`actions:` in YAML with `params` and `result` schemas), implemented in src/actions/, prepared through `actionSystem.prepareAction()` and exposed as assistant mutations through `assistant.actions`\n- Invariants = validation rules returning violations, static or dynamic\n- Transformers = auto-fixers maintaining consistency after state changes\n- Components defined in YAML with `$read`/`$bind` bindings, or custom in src/components/ using attachComponent builder\n- Webhooks = server-side finalization tasks (PDF, email, CSV, image rendering)\n- Filters = contextual component activation via navigationStates, viewStates, modes, selectedEntityIds",fileConventions:`## File Conventions
2
2
  - Components: PascalCase (.tsx)
3
3
  - Utilities: kebab-case (.ts)
4
4
  - Expressions: entity-name.ts
5
5
  - Migrations: v*.ts (sequential)
6
6
  - Specs: kebab-case.yaml
7
- - Underscore folders (_shared/, _utils/) are NOT auto-imported`,exportRules:'## Export Rules\nAll files in src/expressions/, src/actions/, src/invariants/, src/transformers/, src/components/, src/handlers/, src/elements/, src/webhooks/ MUST use default exports. Can be a single item or an array. Named exports are ignored by the SDK auto-import system.\nThe default export must be what the folder\'s phx factory returns (for example `phx.frontend.createCustomPhoenixLayoutElement()` in src/elements/). Any other value, such as a plain React component, stops the application at start with an "Invalid default export in <file>" error. Put plain components and helpers in an underscore folder.',webhookMembership:"## Webhook Membership\n- User-authored components, admin components, and handlers are frontend-only by default.\n- A handler that registers `phx.domain.createAssistantSetupHandler`, `createMapPublishedRevisionDataHandler`, `createMapPublishedChunkedDataHandler`, `createDataRowValidatorHandler`, or `createSheetValidatorHandler` is included in the webhook automatically.\n- An assistant setup handler receives the declaration-shaped whitelist and { role, sessionData, access }. Keep the exact entity/alias split from YAML; inherited fields and expanded member entries are absent. Narrow original declarations, then the SDK expands them. Use project-defined role/session data for per-user customization. Keep the handler synchronous, pure and deterministic. The handler runs in the browser and webhook. Return null to disable assistant execution, or omit whitelist entries to restrict them. Button and panel visibility use spec presence; project developers own dynamic UI filtering through normal layout mechanics such as $filter. Leaves expose optional descriptions; writable options allow only validate: true and allowDryRuns: false; recipe groups allow descriptions and allowDryRuns: false. Deletable entries are {}. Names, component bindings, hints and types are internal. Omitted overrides retain baseline values. Existing entity, enhanced-entity and action types constrain the handler; no separate generated manifest types. Browser GraphQL, tools and change recording use the session-derived manifest; rejected setup fails closed. UI reads the pure spec selector. Omitted server instructions or AI fields preserve the baseline. An empty server instructions string clears it.\n- To include another component or handler in the webhook, put `'use webhook'` as its first statement (leading comments are allowed).\n- A webhook-included file and its runtime local-import closure must not import browser SDK entrypoints (`application`, `admin`, `configurator`, `editor`, `react`, `ui`) or style/font/image assets. Spec parsing reports the unsafe import and inclusion reason as a diagnostic.\n- Keep browser rendering in an unpinned file. Move shared server-safe logic into a separate module when both frontend and webhook code need it.",doNotEdit:"## Do Not Edit\n- `.phoenix/` directory — completely regenerated on each build. The one exception is `.phoenix/variants/`, where the `phoenix-variants` skill has you write option files; a rebuild keeps it. The project's TypeScript settings come from `.phoenix/tsconfig.json`; the root `tsconfig.json` is the project's and extends it. `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; use relative imports\n- `eslint.config.js`, `prettier.config.js`, `.linguirc`, `.nvmrc`\n- `src/locales/` .ts files — compiled from .po files\n- `phoenix` and `phoenix-*` folders under `.claude/skills/` and `.agents/skills/` — Phoenix rewrites its skills on every sync, removes anything else inside their folders and removes any other `phoenix-*` skill folder. To customise a skill, copy it to a folder whose name does not start with `phoenix`",modelVersioning:"## Version the Domain Model Once It Is Deployed\nA deployed model version cannot change, because saved configurations depend on it. `pnpm phoenix deploy` is refused, before anything is uploaded, when the model differs from the one already deployed under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working preview does not show that the deploy will pass.\n\nTo change a model that has been deployed as v<N>:\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n**Replacing the starter.** When the first deployment of the workspace was the starter, its `Box` model is v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` before writing any other migration.",sdkDocumentation:'## SDK Documentation\n\nAlways search SDK docs for relevant examples before implementing Phoenix features.\n\n### Commands\n- `pnpm phoenix docs` — Full documentation index with descriptions\n- `pnpm phoenix docs -s <term>` — Search all doc content and metadata (case-insensitive)\n- `pnpm phoenix docs --dir` — Print the absolute docs directory for grep or ripgrep\n- `pnpm phoenix docs -r <path>` — Read specific doc (raw text to stdout)\n- `pnpm phoenix docs -c <category>` — List docs in a category\n- `pnpm phoenix docs -l` — List all doc paths with titles\n\n### Key Docs\n- `docs/phoenix/getting-started.mdx` — Setup, prerequisites, first project\n- `docs/phoenix/quickstart.mdx` — End-to-end tutorial building a configurator\n- `docs/phoenix/domain-model.mdx` — Entities, attributes, relations, specs\n- `docs/phoenix/components.mdx` — ECS pattern, YAML components, custom components\n- `docs/phoenix/project-structure.mdx` — Files, folders, conventions\n- `docs/phoenix/best-practices.mdx` — YAML-first, code patterns, common pitfalls\n- `docs/phoenix/state-management.mdx` — Reactive state, RxJS pipelines, data flow\n- `docs/phoenix/expression-context.mdx` — Expression API, context object, helpers\n- `docs/phoenix/webhooks.mdx` — Server-side finalization workflows\n- `docs/phoenix/finalization.mdx` — Finalization system, PDF/email/CSV generation\n- `docs/phoenix/migrations.mdx` — Schema versioning, migration files\n\n### Agent Workflow\n1. Find relevant docs by content: `pnpm phoenix docs -s \'camera\'`\n2. Read matching doc: `pnpm phoenix docs -r docs/3d-scene/cameras/transitions.mdx`\n3. Search within a doc: `pnpm phoenix docs -r <path> | grep "example"`\n4. Search titles only as a fallback: `pnpm phoenix docs -l | grep "camera"`\n5. Search generated files directly when needed: `grep -rn "camera" "$(pnpm phoenix docs --dir)"`\n6. Browse a topic area: `pnpm phoenix docs -c "Layouts"`',assetInspection:"## 3D Asset Inspection\n\nRun `pnpm phoenix inspect:assets` to discover all glTF/GLB files in `public/` and get a summary table. Use `--file <path>` for detailed single-file inspection.\n\n**When to use:** before writing YAML/code that references objectName, materialsToOverride, morphTargetInfluences, or object positioning.\n\n**What it shows per node:**\n- Name, type (Mesh/Light/Camera/Empty), children\n- Transform: `pos=`, `rot=`, `scale=` (only non-default values shown)\n- Per-node morph targets: `morphs=Width,Height`\n- Bounding box: `bounds=WxHxD` (width x height x depth in meters)\n- Origin placement: `origin=center`, `bottom-center`, `top-center`, `bottom-corner`, etc. with numerical offset\n\n**Use cases:**\n- Find exact node names for `objectName` in scene entity components\n- Find material names for `materialsToOverride`\n- Find morph target names for `morphTargetInfluences`\n- Check model dimensions (bounds) for positioning, dimension indicators, or invariants\n- Check origin placement to understand how models anchor (center vs bottom-center)\n- Use `--json` for programmatic access to all data\n\n**Flags:** `--objects`, `--materials`, `--morphs`, `--animations`, `--json`",screenshotCli:"## Screenshot CLI\n\nCapture 3D canvas screenshots from a running dev server via `pnpm phoenix screenshot`.\n\n**Prerequisites:**\n1. `phoenix dev` must be running (starts the WebSocket server on port 3020)\n2. Configurator must be open in a browser (the browser does the actual rendering)\n\n**Options:**\n- `--output, -o` — Output file path (default: `./screenshot.png`)\n- `--width, -w` — Width in pixels (default: 1920)\n- `--height` — Height in pixels (default: 1080)\n- `--format, -f` — Image format: PNG or JPEG (default: PNG)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example workflow:**\n1. Start dev server: `pnpm phoenix dev`\n2. Open configurator in browser (or via Playwright MCP)\n3. Take screenshot: `pnpm phoenix screenshot -o ./render.png -w 2560 --height 1440`\n\n**Use cases:** visual regression testing, generating product images, debugging 3D renders",inspectState:"## Inspect: State\n\nGet the current editor runtime state as JSON via `pnpm phoenix inspect:state`.\n\n**Prerequisites:** same as screenshot (dev server running + browser open)\n\n**Options:**\n- `--output, -o` — Output file path (prints to stdout if omitted)\n- `--sections, -s` — Comma-separated: entities, navigation, validation (default: all)\n- `--pretty` — Pretty-print JSON (default: true)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example:** `pnpm phoenix inspect:state -o ./state.json -s entities,navigation`\n\n**Lifecycle status:** Always included in response. Shows which systems are ready:\n- `domainLoaded` — domain data loaded\n- `domainContextReady` — domain context initialized (entities available)\n- `configuratorReady` — 3D configurator initialized\n- `sessionAuthenticated` — session service active\n- `editorMode` — editor mode enabled\n\n**Tips:** Use `--sections` to limit payload size. Pipe through `head`/`tail` for partial output (e.g., `pnpm phoenix inspect:state | head -50`).\n\n**Use cases:** AI agent context, debugging entity state, inspecting navigation/validation",inspectData:`## Inspect: Data
7
+ - Underscore folders (_shared/, _utils/) are NOT auto-imported`,exportRules:'## Export Rules\nAll files in src/expressions/, src/actions/, src/invariants/, src/transformers/, src/components/, src/handlers/, src/elements/, src/webhooks/ MUST use default exports. Can be a single item or an array. Named exports are ignored by the SDK auto-import system.\nThe default export must be what the folder\'s phx factory returns (for example `phx.frontend.createCustomPhoenixLayoutElement()` in src/elements/). Any other value, such as a plain React component, stops the application at start with an "Invalid default export in <file>" error. Put plain components and helpers in an underscore folder.',webhookMembership:"## Webhook Membership\n- User-authored components, admin components, and handlers are frontend-only by default.\n- A handler that registers `phx.domain.createAssistantSetupHandler`, `createMapPublishedRevisionDataHandler`, `createMapPublishedChunkedDataHandler`, `createDataRowValidatorHandler`, or `createSheetValidatorHandler` is included in the webhook automatically.\n- An assistant setup handler receives the declaration-shaped whitelist and { role, sessionData, access }. Keep the exact entity/alias split from YAML; inherited fields and expanded member entries are absent. Narrow original declarations, then the SDK expands them. Use project-defined role/session data for per-user customization. Keep the handler synchronous, pure and deterministic. The handler runs in the browser and webhook. Return null to disable assistant execution, or omit whitelist entries to restrict them. Button and panel visibility use spec presence; project developers own dynamic UI filtering through normal layout mechanics such as $filter. Leaves expose optional descriptions; writable options allow only validate: true and allowDryRuns: false; recipe groups allow descriptions and allowDryRuns: false; screenshot views allow descriptions. Deletable entries are {}. Names, component bindings, hints and types are internal. Omitted overrides retain baseline values. Existing entity, enhanced-entity and action types constrain the handler; no separate generated manifest types. Browser GraphQL, tools and change recording use the session-derived manifest; rejected setup fails closed. UI reads the pure spec selector. Omitted server instructions or AI fields preserve the baseline. An empty server instructions string clears it.\n- To include another component or handler in the webhook, put `'use webhook'` as its first statement (leading comments are allowed).\n- A webhook-included file and its runtime local-import closure must not import browser SDK entrypoints (`application`, `admin`, `configurator`, `editor`, `react`, `ui`) or style/font/image assets. Spec parsing reports the unsafe import and inclusion reason as a diagnostic.\n- Keep browser rendering in an unpinned file. Move shared server-safe logic into a separate module when both frontend and webhook code need it.",doNotEdit:"## Do Not Edit\n- `.phoenix/` directory — completely regenerated on each build. The one exception is `.phoenix/variants/`, where the `phoenix-variants` skill has you write option files; a rebuild keeps it. The project's TypeScript settings come from `.phoenix/tsconfig.json`; the root `tsconfig.json` is the project's and extends it. `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; use relative imports\n- `src/locales/` .ts files — compiled from .po files\n- `phoenix` and `phoenix-*` folders under `.claude/skills/` and `.agents/skills/` — Phoenix rewrites its skills on every sync, removes anything else inside their folders and removes any other `phoenix-*` skill folder. To customise a skill, copy it to a folder whose name does not start with `phoenix`",modelVersioning:"## Version the Domain Model Once It Is Deployed\nA deployed model version cannot change, because saved configurations depend on it. `pnpm phoenix deploy` is refused, before anything is uploaded, when the model differs from the one already deployed under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working preview does not show that the deploy will pass.\n\nTo change a model that has been deployed as v<N>:\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n**Replacing the starter.** When the first deployment of the workspace was the starter, its `Box` model is v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` before writing any other migration.",sdkDocumentation:'## SDK Documentation\n\nAlways search SDK docs for relevant examples before implementing Phoenix features.\n\n### Commands\n- `pnpm phoenix docs` — Full documentation index with descriptions\n- `pnpm phoenix docs -s <term>` — Search all doc content and metadata (case-insensitive)\n- `pnpm phoenix docs --dir` — Print the absolute docs directory for grep or ripgrep\n- `pnpm phoenix docs -r <path>` — Read specific doc (raw text to stdout)\n- `pnpm phoenix docs -c <category>` — List docs in a category\n- `pnpm phoenix docs -l` — List all doc paths with titles\n\n### Key Docs\n- `docs/phoenix/getting-started.mdx` — Setup, prerequisites, first project\n- `docs/phoenix/quickstart.mdx` — End-to-end tutorial building a configurator\n- `docs/phoenix/domain-model.mdx` — Entities, attributes, relations, specs\n- `docs/phoenix/components.mdx` — ECS pattern, YAML components, custom components\n- `docs/phoenix/project-structure.mdx` — Files, folders, conventions\n- `docs/phoenix/best-practices.mdx` — YAML-first, code patterns, common pitfalls\n- `docs/phoenix/state-management.mdx` — Reactive state, RxJS pipelines, data flow\n- `docs/phoenix/expression-context.mdx` — Expression API, context object, helpers\n- `docs/phoenix/webhooks.mdx` — Server-side finalization workflows\n- `docs/phoenix/finalization.mdx` — Finalization system, PDF/email/CSV generation\n- `docs/phoenix/migrations.mdx` — Schema versioning, migration files\n\n### Agent Workflow\n1. Find relevant docs by content: `pnpm phoenix docs -s \'camera\'`\n2. Read matching doc: `pnpm phoenix docs -r docs/3d-scene/cameras/transitions.mdx`\n3. Search within a doc: `pnpm phoenix docs -r <path> | grep "example"`\n4. Search titles only as a fallback: `pnpm phoenix docs -l | grep "camera"`\n5. Search generated files directly when needed: `grep -rn "camera" "$(pnpm phoenix docs --dir)"`\n6. Browse a topic area: `pnpm phoenix docs -c "Layouts"`',assetInspection:"## 3D Asset Inspection\n\nRun `pnpm phoenix inspect:assets` to discover all glTF/GLB files in `public/` and get a summary table. Use `--file <path>` for detailed single-file inspection.\n\n**When to use:** before writing YAML/code that references objectName, materialsToOverride, morphTargetInfluences, or object positioning.\n\n**What it shows per node:**\n- Name, type (Mesh/Light/Camera/Empty), children\n- Transform: `pos=`, `rot=`, `scale=` (only non-default values shown)\n- Per-node morph targets: `morphs=Width,Height`\n- Bounding box: `bounds=WxHxD` (width x height x depth in meters)\n- Origin placement: `origin=center`, `bottom-center`, `top-center`, `bottom-corner`, etc. with numerical offset\n\n**Use cases:**\n- Find exact node names for `objectName` in scene entity components\n- Find material names for `materialsToOverride`\n- Find morph target names for `morphTargetInfluences`\n- Check model dimensions (bounds) for positioning, dimension indicators, or invariants\n- Check origin placement to understand how models anchor (center vs bottom-center)\n- Use `--json` for programmatic access to all data\n\n**Flags:** `--objects`, `--materials`, `--morphs`, `--animations`, `--json`",screenshotCli:"## Screenshot CLI\n\nCapture 3D canvas screenshots from a running dev server via `pnpm phoenix screenshot`.\n\n**Prerequisites:**\n1. `phoenix dev` must be running (starts the WebSocket server on port 3020)\n2. Configurator must be open in a browser (the browser does the actual rendering)\n\n**Options:**\n- `--output, -o` — Output file path (default: `./screenshot.png`)\n- `--width, -w` — Width in pixels (default: 1920)\n- `--height` — Height in pixels (default: 1080)\n- `--format, -f` — Image format: PNG or JPEG (default: PNG)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example workflow:**\n1. Start dev server: `pnpm phoenix dev`\n2. Open configurator in browser (or via Playwright MCP)\n3. Take screenshot: `pnpm phoenix screenshot -o ./render.png -w 2560 --height 1440`\n\n**Use cases:** visual regression testing, generating product images, debugging 3D renders",inspectState:"## Inspect: State\n\nGet the current editor runtime state as JSON via `pnpm phoenix inspect:state`.\n\n**Prerequisites:** same as screenshot (dev server running + browser open)\n\n**Options:**\n- `--output, -o` — Output file path (prints to stdout if omitted)\n- `--sections, -s` — Comma-separated: entities, navigation, validation (default: all)\n- `--pretty` — Pretty-print JSON (default: true)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example:** `pnpm phoenix inspect:state -o ./state.json -s entities,navigation`\n\n**Lifecycle status:** Always included in response. Shows which systems are ready:\n- `domainLoaded` — domain data loaded\n- `domainContextReady` — domain context initialized (entities available)\n- `configuratorReady` — 3D configurator initialized\n- `sessionAuthenticated` — session service active\n- `editorMode` — editor mode enabled\n\n**Tips:** Use `--sections` to limit payload size. Pipe through `head`/`tail` for partial output (e.g., `pnpm phoenix inspect:state | head -50`).\n\n**Use cases:** AI agent context, debugging entity state, inspecting navigation/validation",inspectData:`## Inspect: Data
8
8
 
9
9
  Get the current editor context data as JSON via \`pnpm phoenix inspect:data\`.
10
10
 
@@ -0,0 +1,58 @@
1
+ import type { ComponentEntry, Expressions } from '../../../../parse-application-files/index.js';
2
+ import { type SpecCodeId } from '../../../runtime-spec/index.js';
3
+ /**
4
+ * Where a value sits inside its target: object keys, and `0` for any item of an array (the
5
+ * generated type reads the array's item type). An empty path is the target itself.
6
+ */
7
+ export type SpecCodePath = ReadonlyArray<string | number>;
8
+ /**
9
+ * What one piece of YAML code produces, which the generated closure is typed by.
10
+ *
11
+ * - `expression`: the value of the value expression `name` of `owner`, at each of `paths`.
12
+ * - `component`: the state of the component `componentName`, at each of `paths` (one per prop the
13
+ * code fills).
14
+ * - `filter`: the value of the filter criterion `criterion`.
15
+ *
16
+ * A `$eval` that appears more than once in one value is one dependency of its plan, so it has one
17
+ * closure, which must fit every place it fills.
18
+ */
19
+ export type SpecCodeTarget = {
20
+ readonly kind: 'expression';
21
+ readonly name: string;
22
+ readonly paths: readonly SpecCodePath[];
23
+ } | {
24
+ readonly kind: 'component';
25
+ readonly componentName: string;
26
+ readonly paths: readonly SpecCodePath[];
27
+ } | {
28
+ readonly kind: 'filter';
29
+ readonly criterion: string;
30
+ };
31
+ /** One piece of code written in YAML, as the generated code module holds it. */
32
+ export interface SpecCodeEntry {
33
+ readonly id: SpecCodeId;
34
+ /** The entity or alias the code runs on: `self` is its `$` view. */
35
+ readonly owner: string;
36
+ readonly code: string;
37
+ /**
38
+ * Whether the code reads `self`. A closure that does not gets no parameter, because the projects'
39
+ * `noUnusedParameters` would reject an unused `self`.
40
+ */
41
+ readonly usesSelf: boolean;
42
+ readonly target: SpecCodeTarget;
43
+ }
44
+ /** The sections of one domain (configurator or admin) that hold code written in YAML. */
45
+ export interface SpecCodeDomain {
46
+ readonly expressions: Expressions;
47
+ readonly components: readonly ComponentEntry[];
48
+ }
49
+ /**
50
+ * Lists every piece of code written in YAML in one domain: the `$eval` of value expressions
51
+ * (constants share the plan of their expression), of component props and of filter criteria,
52
+ * including the filters the SDK adds to the admin pages. Each comes with its id, the entity or alias
53
+ * it runs on and the target that types its closure.
54
+ *
55
+ * Throws when one id names two different pieces of code: ids are built from names the parser keeps
56
+ * unique, so that is a bug.
57
+ */
58
+ export declare const collectSpecCode: (domain: SpecCodeDomain) => readonly SpecCodeEntry[];
@@ -0,0 +1 @@
1
+ import{FILTER_CRITERION_KEYS as e}from"../../../../core/index.js";import{evalCodeUsesSelf as t}from"../../../../enhanced-json/eval-code-uses-self.js";import{specCodeComponentKey as n,specCodeEvalIds as i,specCodeExpressionKey as r,specCodeFilterId as o}from"../../../runtime-spec/index.js";let l=(e,t,n)=>{if("slot"===e.kind){let i=n.get(e.depIndex)??[];i.push(t),n.set(e.depIndex,i);return}if("array"===e.kind){for(let i of e.items)l(i,[...t,0],n);return}if("object"===e.kind)for(let[i,r]of e.entries)l(r,[...t,i],n)},a=(e,n,r,o)=>{let a=new Map;l(e.template,[],a);let s=i(e,n);return e.deps.flatMap((e,n)=>{let i=s[n];return"eval"!==e.kind||void 0===i?[]:[{id:i,owner:r,code:e.code,usesSelf:t(e.code),target:o(a.get(n)??[])}]})},s=i=>{let r,l=String(i.typeOrAlias),s=n(l,String(i.instanceName),i.componentName),d=(r=String(i.typeOrAlias),i.implementation.filters.items.flatMap((n,i)=>"gradual"!==n.kind?[]:e.flatMap(e=>{let l=n[e];return l?.kind!=="eval"?[]:[{id:o(s,i,e,l.code),owner:r,code:l.code,usesSelf:t(l.code),target:{kind:"filter",criterion:e}}]})));if("userBound"!==i.implementation.kind)return d;let{componentName:p}=i;return[...a(i.implementation.plan,s,l,e=>({kind:"component",componentName:p,paths:e})),...d]},d=(e,t)=>JSON.stringify(e)===JSON.stringify(t);export const collectSpecCode=e=>{let t=new Map;for(let n of[...[...e.expressions.expressions].flatMap(([e,t])=>[...t.values()].flatMap(t=>{if("value"!==t.implementation.kind)return[];let n=String(t.name),i=r(String(e),n);return a(t.implementation.plan,i,String(e),e=>({kind:"expression",name:n,paths:e}))})),...e.components.flatMap(s)]){let e=t.get(n.id);if(void 0===e)t.set(n.id,n);else if(!d(e,n))throw Error(`Two pieces of YAML code share the spec code id "${n.id}". This is a bug in the application-spec generator.`)}return[...t.values()]};
@@ -0,0 +1,2 @@
1
+ export { generateApplicationSpecCodeFile } from './spec-code.js';
2
+ export { collectSpecCode } from './collect-spec-code.js';
@@ -0,0 +1 @@
1
+ export{generateApplicationSpecCodeFile}from"./spec-code.js";export{collectSpecCode}from"./collect-spec-code.js";
@@ -0,0 +1,18 @@
1
+ import type { ApplicationTypeImportRegistrar } from '../../common/index.js';
2
+ import { type SpecCodeDomain } from './collect-spec-code.js';
3
+ /** The two domains of a parsed spec whose YAML code the generated module holds. */
4
+ export interface SpecCodeSpec {
5
+ readonly configurator: SpecCodeDomain;
6
+ readonly admin: SpecCodeDomain;
7
+ }
8
+ /**
9
+ * Generates `.phoenix/spec-code.ts`: every piece of code written in YAML (`$eval` in value
10
+ * expressions, component props and filter criteria) as a closure, keyed by its spec code id, one
11
+ * map per domain. Each closure is typed by what it produces (the expression's type, the component
12
+ * prop's type, the filter criterion's type) and by the entity it runs on, so `phoenix check
13
+ * --types` checks the code as it checks generated domain code.
14
+ *
15
+ * Nothing imports the file yet; the runtime will look code up in it by id instead of compiling the
16
+ * text.
17
+ */
18
+ export declare const generateApplicationSpecCodeFile: (spec: SpecCodeSpec, registerApplicationTypeImports?: ApplicationTypeImportRegistrar) => string;
@@ -0,0 +1,41 @@
1
+ import{CodeImports as e,autoHeader as t,skipApplicationTypeImports as n}from"../../common/index.js";import{collectSpecCode as r}from"./collect-spec-code.js";let o="@salsita-ai/sdk/domain",s=`/**
2
+ * The type at one key of TYPE, or the item type of an array for a numeric key, taken from every
3
+ * member of a union that has it. \`unknown\` when no member has it, so that a type the path cannot
4
+ * follow loses the check instead of rejecting valid code.
5
+ */
6
+ type SpecCodeMember<TYPE, KEY> = TYPE extends readonly (infer ITEM)[]
7
+ ? KEY extends number
8
+ ? ITEM
9
+ : never
10
+ : TYPE extends object
11
+ ? KEY extends keyof TYPE
12
+ ? TYPE[KEY]
13
+ : never
14
+ : never
15
+ type SpecCodeAt<TYPE, KEY> = [SpecCodeMember<TYPE, KEY>] extends [never] ? unknown : SpecCodeMember<TYPE, KEY>`,i=`/** The value a component filter criterion yields, as \`withGradualFilter\` takes it: arrays read-only. */
16
+ type SpecCodeFilterCriterion<KEY extends keyof ComponentSystemFilterProps> =
17
+ | ([Required<ComponentSystemFilterProps>[KEY]] extends [ReadonlyArray<infer ITEM>]
18
+ ? readonly ITEM[]
19
+ : Required<ComponentSystemFilterProps>[KEY])
20
+ | undefined`,p=`/**
21
+ * Types one closure: \`self\` is the entity it runs on, and what it returns must fit TARGET. The
22
+ * result is inferred as a constant and then checked against TARGET, as the dependencies of
23
+ * \`memoEval\` are in generated domain code.
24
+ */
25
+ const code =
26
+ <SELF, TARGET>() =>
27
+ <const RESULT extends TARGET>(closure: (self: SELF) => RESULT): ((self: SELF) => RESULT) =>
28
+ closure`,a=(e,t,n)=>{if(0===t.length)return"unknown";let r=t.map(t=>(t.length>0&&(n.usesAt=!0),t.reduce((e,t)=>`SpecCodeAt<${e}, ${"number"==typeof t?"number":JSON.stringify(t)}>`,e)));return 1===r.length?r[0]:r.map(e=>`(${e})`).join(" & ")},d=(e,t,n)=>0===e.length?"{}":`{
29
+ ${e.map(e=>{let r,s,i;return t.registerOwnerTypes([`$${e.owner}`]),r=`${t.typePrefix}$${e.owner}`,s=((e,t,n,r)=>{if("filter"===e.kind)return r.usesFilter=!0,r.imports.addTypeImport(o,"ComponentSystemFilterProps"),`SpecCodeFilterCriterion<'${e.criterion}'>`;if("component"===e.kind){let t=`${e.componentName}Component`;return r.imports.addTypeImport(o,"StateOfComponent"),r.imports.addTypeImport(o,t),a(`StateOfComponent<typeof ${t}>`,e.paths,r)}return n.registerOwnerTypes([`${t}Expressions`]),a(`${n.typePrefix}${t}Expressions['${e.name}']`,e.paths,r)})(e.target,e.owner,t,n),i=e.usesSelf?`self => (${e.code}
30
+ )`:`() => (${e.code}
31
+ )`,` ${JSON.stringify(e.id)}: code<${r}, ${s}>()(${i}),`}).join("\n")}
32
+ }`;export const generateApplicationSpecCodeFile=(o,a=n)=>{let m=new e,c={imports:m,usesAt:!1,usesFilter:!1},l=r(o.configurator),y=r(o.admin),f=d(l,{typePrefix:"",registerOwnerTypes:e=>a(m,e)},c),u=d(y,{typePrefix:"Admin.",registerOwnerTypes:()=>a(m,["Admin"])},c),E=[...c.usesAt?[s]:[],...c.usesFilter?[i]:[],...l.length+y.length>0?[p]:[]];return`${t("spec-code.ts","Code written in YAML ($eval in expressions, component props and filters) as typed closures, keyed by spec code id.")}
33
+ ${m.toString()}
34
+
35
+ ${E.map(e=>`${e}
36
+
37
+ `).join("")}export const specCode = {
38
+ configurator: ${f},
39
+ admin: ${u},
40
+ }
41
+ `};
@@ -0,0 +1 @@
1
+ export { generateApplicationSpecMessagesFile } from './spec-messages.js';
@@ -0,0 +1 @@
1
+ export{generateApplicationSpecMessagesFile}from"./spec-messages.js";
@@ -0,0 +1,20 @@
1
+ import type { ComponentEntry, Defaults, Expressions, Invariants } from '../../../../parse-application-files/index.js';
2
+ /** The sections of one domain whose `$msg` texts generated domain code turns into `msg` calls. */
3
+ export interface SpecMessagesDomain {
4
+ readonly expressions: Expressions;
5
+ readonly components: readonly ComponentEntry[];
6
+ readonly invariants: Invariants;
7
+ readonly defaults: Defaults;
8
+ }
9
+ /** The two domains of a parsed spec whose texts the generated messages file holds. */
10
+ export interface SpecMessagesSpec {
11
+ readonly configurator: SpecMessagesDomain;
12
+ readonly admin: SpecMessagesDomain;
13
+ }
14
+ /**
15
+ * Generates `.phoenix/spec-messages.ts`: one `msg` call for each distinct `$msg` text of the spec
16
+ * that generated domain code turns into a `msg` call, with the same message id (`$msgId`, or the id
17
+ * Lingui generates from the text). Lingui extracts the project's catalogues from `.phoenix`, so the
18
+ * YAML texts reach them through this file. Nothing imports it.
19
+ */
20
+ export declare const generateApplicationSpecMessagesFile: (spec: SpecMessagesSpec) => string;
@@ -0,0 +1,6 @@
1
+ import{isMsgMarker as e,stringifyMsgMacroCode as t}from"../../../../core/index.js";import{CodeImports as s,autoHeader as o}from"../../common/index.js";let n=(e,t)=>{"msg"===e.kind?t.push(e.marker):"array"===e.kind?e.items.forEach(e=>n(e,t)):"object"===e.kind&&e.entries.forEach(([,e])=>n(e,t))},a=(t,s)=>{e(t)?s.push(t):Array.isArray(t)?t.forEach(e=>a(e,s)):"object"==typeof t&&null!==t&&Object.values(t).forEach(e=>a(e,s))},r=(e,t)=>{for(let s of e.expressions.expressions.values())for(let e of s.values())"value"===e.implementation.kind&&n(e.implementation.plan.template,t);for(let s of e.components)"userBound"===s.implementation.kind&&n(s.implementation.plan.template,t);for(let s of Object.values(e.invariants.entries))for(let e of Object.values(s))"static"===e.kind&&"string"!=typeof e.message&&t.push(e.message);a(e.defaults.entries,t)};export const generateApplicationSpecMessagesFile=e=>{let n=[];r(e.configurator,n),r(e.admin,n);let a=[...new Set(n.map(t))],i=new s;return a.length>0&&i.addImport("@lingui/core/macro","msg"),`${o("spec-messages.ts","The texts of the spec as msg calls, for Lingui extraction.")}
2
+ ${i.toString()}
3
+
4
+ export const specMessages = [${a.map(e=>`
5
+ ${e},`).join("")}${a.length>0?"\n":""}]
6
+ `};
@@ -1,7 +1,13 @@
1
+ import type { ApplicationSpec } from '../../../../parse-application-files/index.js';
1
2
  /**
2
3
  * Emits the story's `phx` module.
3
4
  *
4
5
  * Stories bind `phx` as a module export rather than through `globalThis`, so several stories can
5
- * run side by side on one Storybook page without sharing configurator state.
6
+ * run side by side on one Storybook page without sharing configurator state. Its type is stated from
7
+ * SDK types and the story's generated application types, as `globals.d.ts` states the global one.
8
+ *
9
+ * Each member of `phx.applicationTypes` is typed as a local declared constant, so an editor shows the
10
+ * type itself (`SchemaOfObject<never>` for data the spec leaves out), as it did when the members were
11
+ * the generated values, and not the alias as written.
6
12
  */
7
- export declare const generateApplicationSpecStoryPhxModule: () => string;
13
+ export declare const generateApplicationSpecStoryPhxModule: (spec: ApplicationSpec) => string;
@@ -1,9 +1,21 @@
1
- export const generateApplicationSpecStoryPhxModule=()=>`import { configuratorInterface } from './configurator-globals.js'
1
+ import{CodeImports as a}from"../../common/index.js";import{generatePhxTypes as t}from"../global-definition/index.js";let e=[["ApplicationVersion","string"],["PublishedDataHash","string"],...["PublishedData","SessionData","FrontendData","BackendData","FinalizeData","PrefetchedFinalizeData","FinalizeResult","CallbackData"].map(a=>[a,`SchemaOfObject<${a}>`]),...["NavigationState","ViewState","ToolState","ExportState","AdminNavigationState"].map(a=>[a,`EnumLike<${a}>`])];export const generateApplicationSpecStoryPhxModule=o=>{let i=new a,n=t(o,i);for(let a of(i.addTypeImport("@salsita-ai/sdk/domain","SchemaOfObject"),n.applicationTypeNames))i.addTypeImport("./application-types.js",a);let p=e.map(([a,t])=>`declare const phx${a}: ${t}`),r=e.map(([a])=>` ${a}: typeof phx${a}`);return`${i.toTypeOnlyString()}
2
+
3
+ import { configuratorInterface } from './configurator-globals.js'
2
4
  import { phxApplicationTypes, phxDomain } from './domain-spec.js'
3
5
 
4
- export const phx = {
6
+ ${n.declarations}
7
+
8
+ ${p.join("\n")}
9
+
10
+ export const phx: {
11
+ domain: ${n.domainType.replaceAll("\n","\n ")}
12
+ frontend: ${n.configuratorInterfaceType}
13
+ applicationTypes: {
14
+ ${r.join("\n")}
15
+ }
16
+ } = {
5
17
  domain: phxDomain,
6
18
  frontend: configuratorInterface,
7
19
  applicationTypes: phxApplicationTypes,
8
20
  }
9
- `;
21
+ `};
@@ -7,5 +7,8 @@ import type { MockTemplateDefinition } from '../../../../mock-template-definitio
7
7
  * mode change has to arrive as a fresh mount. The Storybook plugin achieves that by reloading the
8
8
  * preview whenever the story's marker appears, changes, or disappears. In a production Storybook
9
9
  * build the same module always reports `active === false`, so deployed stories stay local-mode.
10
+ *
11
+ * `ExampleApp` takes an optional `mockTemplate` key, so a story can pin the mock template it opens
12
+ * (`args: { mockTemplate: 'read' }`); the editor applies it on mount without storing it.
10
13
  */
11
14
  export declare const generateApplicationSpecStoryWrapper: (storyFolderName: string, mockTemplates: readonly MockTemplateDefinition[]) => string;
@@ -14,13 +14,14 @@ const config = configuratorConfig.withWebComponentTag(tagName).buildConfig()
14
14
 
15
15
  mountConfiguratorApplication(config)
16
16
 
17
- export const ExampleApp = () => (
17
+ export const ExampleApp = ({ mockTemplate }: { readonly mockTemplate?: string }) => (
18
18
  <Editor
19
19
  localMode={!active}
20
20
  wsUrl={wsUrl}
21
21
  initialRawProjectFiles={rawProjectFiles}
22
22
  mockTemplates={mockTemplates}
23
23
  autoApplyTemplate
24
+ initialTemplateKey={mockTemplate}
24
25
  tagName={tagName}
25
26
  enableAdmin={false}
26
27
  />
@@ -0,0 +1,25 @@
1
+ import { type EnumLike } from '#package/domain';
2
+ import type { RuntimeSpec } from '../runtime-spec/index.js';
3
+ /**
4
+ * The value of `phx.applicationTypes`: the application's version and published data hash, the JSON
5
+ * schemas of its data (`undefined` for data the spec leaves out), and its state enums.
6
+ */
7
+ export interface PhxApplicationTypes {
8
+ readonly ApplicationVersion: string;
9
+ readonly PublishedDataHash: string;
10
+ readonly PublishedData: unknown;
11
+ readonly SessionData: unknown;
12
+ readonly FrontendData: unknown;
13
+ readonly BackendData: unknown;
14
+ readonly FinalizeData: unknown;
15
+ readonly PrefetchedFinalizeData: unknown;
16
+ readonly FinalizeResult: unknown;
17
+ readonly CallbackData: unknown;
18
+ readonly NavigationState: EnumLike<string>;
19
+ readonly ViewState: EnumLike<string>;
20
+ readonly ToolState: EnumLike<string>;
21
+ readonly ExportState: EnumLike<string>;
22
+ readonly AdminNavigationState: EnumLike<string>;
23
+ }
24
+ /** Builds `phx.applicationTypes` from the spec, with the values generated `domain-spec.ts` writes. */
25
+ export declare const createPhxApplicationTypes: (spec: RuntimeSpec) => PhxApplicationTypes;
@@ -0,0 +1 @@
1
+ import{EnumReflection as a}from"#package/domain";let t=(t,e)=>new a(t,{enum:[...e]});export const createPhxApplicationTypes=a=>{let{dataSchemas:e,states:i}=a.configurator;return{ApplicationVersion:a.appMetadata.applicationVersion,PublishedDataHash:e.publishedDataHash,PublishedData:e.publishedData.runtimeSchema,SessionData:e.sessionData.runtimeSchema,FrontendData:e.frontendData.runtimeSchema,BackendData:e.backendData?.runtimeSchema,FinalizeData:e.finalizeData.runtimeSchema,PrefetchedFinalizeData:e.prefetchedFinalizeData.runtimeSchema,FinalizeResult:e.finalizeResult.runtimeSchema,CallbackData:e.callbackData.runtimeSchema,NavigationState:t("NavigationState",i.navigationStates),ViewState:t("ViewState",i.viewStates),ToolState:t("ToolState",i.toolStates),ExportState:t("ExportState",i.exportStates),AdminNavigationState:t("AdminNavigationState",a.admin.states.navigationStates)}};
@@ -0,0 +1,36 @@
1
+ import type { FactoryDataRuntime } from '../runtime/index.js';
2
+ import type { PhxModel } from './phx-model.js';
3
+ /**
4
+ * The value of `phx.domain`: the reflections and the factories project code writes its expressions,
5
+ * invariants, actions, components and recipes with, and the same for the admin domain under `admin`.
6
+ * The factories carry only the data the spec gives them (aliases, static violations, defaults); their
7
+ * types come from the project's `globals.d.ts`, which declares every member.
8
+ */
9
+ export interface PhxDomain extends PhxModel {
10
+ readonly implementCustomExpressions: unknown;
11
+ readonly implementCustomInvariants: unknown;
12
+ readonly implementActions: unknown;
13
+ readonly createAssistantSetupHandler: unknown;
14
+ readonly attachComponent: unknown;
15
+ readonly createRecipe: unknown;
16
+ readonly admin: PhxModel & {
17
+ readonly implementCustomExpressions: unknown;
18
+ readonly implementCustomInvariants: unknown;
19
+ readonly attachComponent: unknown;
20
+ readonly createMapPublishedRevisionDataHandler: unknown;
21
+ readonly createMapPublishedChunkedDataHandler: unknown;
22
+ readonly createDataRowValidatorHandler: unknown;
23
+ readonly createSheetValidatorHandler: unknown;
24
+ readonly createRecipe: unknown;
25
+ };
26
+ }
27
+ interface PhxDomainInput {
28
+ readonly model: PhxModel;
29
+ readonly factoryData: FactoryDataRuntime;
30
+ }
31
+ /**
32
+ * Builds `phx.domain` from the reflections and the factory data of both domains, with the same
33
+ * factories and the same data generated `domain-spec.ts` passes them.
34
+ */
35
+ export declare const createPhxDomain: (configurator: PhxDomainInput, admin: PhxDomainInput) => PhxDomain;
36
+ export {};