@salsita-ai/sdk 0.50.0-develop.d81d7591c5 → 0.50.0-develop.d9534cf412

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 (2411) hide show
  1. package/README.md +25 -16
  2. package/dist/admin/AdminShell.js +1 -1
  3. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  4. package/dist/admin/default-admin-elements.d.ts +9 -0
  5. package/dist/admin/default-admin-elements.js +1 -0
  6. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  7. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  8. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  9. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  10. package/dist/admin/default-elements/index.d.ts +2 -0
  11. package/dist/admin/default-elements/index.js +1 -0
  12. package/dist/admin/index.d.ts +1 -0
  13. package/dist/admin/index.js +1 -1
  14. package/dist/admin/legacy-admin/Application.js +1 -1
  15. package/dist/application/index.d.ts +1 -0
  16. package/dist/application/index.js +1 -1
  17. package/dist/application/mount-application.d.ts +1 -1
  18. package/dist/application/mount-application.js +1 -1
  19. package/dist/application/mount-configurator.d.ts +19 -0
  20. package/dist/application/mount-configurator.js +1 -0
  21. package/dist/application/mounted-application-runtime.d.ts +4 -0
  22. package/dist/application/mounted-application-runtime.js +1 -0
  23. package/dist/application/register-web-component.d.ts +2 -0
  24. package/dist/application/register-web-component.js +1 -0
  25. package/dist/application-spec/caching/content-diff.js +1 -1
  26. package/dist/application-spec/core/application-file.d.ts +0 -2
  27. package/dist/application-spec/core/application-file.js +1 -1
  28. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -99
  29. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  30. package/dist/application-spec/core/index.d.ts +1 -1
  31. package/dist/application-spec/core/index.js +1 -1
  32. package/dist/application-spec/core/json-schema.d.ts +2 -52
  33. package/dist/application-spec/core/json-value.d.ts +1 -1
  34. package/dist/application-spec/core/markers/index.d.ts +1 -1
  35. package/dist/application-spec/core/markers/index.js +1 -1
  36. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  37. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  38. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  39. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  40. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  41. package/dist/application-spec/enhanced-json/eval-to-constant.d.ts +14 -0
  42. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  43. package/dist/application-spec/enhanced-json/index.js +1 -0
  44. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  45. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  46. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  47. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  48. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  49. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  50. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  51. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  52. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  53. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  54. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  55. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  56. package/dist/application-spec/errors/diagnostic-codes.d.ts +31 -1
  57. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  58. package/dist/application-spec/errors/diagnostic-messages.d.ts +42 -2
  59. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  60. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  61. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  62. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  63. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  64. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  65. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  66. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  67. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  68. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  69. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  70. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  71. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  72. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  73. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  74. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  75. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  76. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  77. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  78. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  79. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  80. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  81. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  82. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  83. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  84. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  85. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  86. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  87. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  88. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  89. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  90. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  91. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  92. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +72 -76
  93. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +9 -1
  94. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  95. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  96. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  97. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  98. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  99. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  102. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  103. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  104. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  105. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  106. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  107. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  108. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  109. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  110. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  111. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  112. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  113. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  114. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  115. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  116. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  117. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  118. package/dist/application-spec/generate-application/code/templates/index.d.ts +5 -16
  119. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  120. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  121. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  122. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  123. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  124. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  125. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  126. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  127. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +66 -42
  128. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  129. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  130. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  131. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  132. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  133. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  134. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +42 -18
  135. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +6 -8
  136. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  137. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  138. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  139. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  140. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  141. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  142. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  143. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  144. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  145. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  146. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  147. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  148. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  149. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +4 -5
  150. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  151. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  152. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +4 -3
  153. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  154. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  155. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  156. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  157. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  158. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  159. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  160. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  161. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  162. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  163. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  164. package/dist/application-spec/generate-application/index.d.ts +4 -0
  165. package/dist/application-spec/generate-application/index.js +1 -1
  166. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -5
  167. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  168. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +12 -4
  169. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  170. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  171. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  172. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  173. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +35 -10
  174. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  175. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  176. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  177. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -6
  178. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  179. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +12 -7
  180. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  181. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  182. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  183. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  184. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  185. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  186. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +42 -0
  187. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  188. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  189. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  190. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  191. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  192. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +15 -0
  193. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  194. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  195. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  196. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  197. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  198. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  199. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  200. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  201. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  202. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
  203. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  204. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  205. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  206. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +3 -2
  207. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  208. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +6 -3
  209. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  210. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  211. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +14 -6
  212. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  213. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +10 -7
  214. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  215. package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +2 -3
  216. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +4 -2
  217. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  218. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  219. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  220. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  221. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  222. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  223. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  224. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  225. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  226. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  227. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  228. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  229. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  230. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  231. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  232. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  233. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  234. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  235. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +168 -0
  236. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  237. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  238. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  239. package/dist/application-spec/index.d.ts +1 -0
  240. package/dist/application-spec/index.js +1 -1
  241. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  242. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  243. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  244. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  245. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  246. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  247. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  248. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  249. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  250. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  251. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  252. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  253. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  254. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  255. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  256. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  257. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  258. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +72 -24
  259. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  260. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  261. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  262. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  263. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  264. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  265. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  266. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  267. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  268. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  269. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  270. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  271. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  272. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  273. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  274. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  275. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  276. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  277. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  278. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  279. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  280. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  281. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  282. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  283. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  284. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  285. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  286. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  287. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  288. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  289. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  290. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  291. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +3 -62
  292. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  293. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  294. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  295. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  296. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  297. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  298. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  299. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  300. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  301. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  302. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  303. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +8 -3
  304. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  305. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +9 -7
  306. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  307. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  308. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  309. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  310. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  311. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  312. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +12 -30
  313. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  314. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -2
  315. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  316. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  317. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  318. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +5 -3
  319. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  320. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  321. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +6 -16
  322. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  323. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  324. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  325. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -26
  326. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  327. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  328. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  329. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  330. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  331. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  332. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  333. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  334. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  335. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  336. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  337. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  338. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  339. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  340. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  341. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  342. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  343. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  344. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  345. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  346. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  347. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  348. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  349. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  350. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  351. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  352. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  353. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  354. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  355. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  356. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  357. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  358. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  359. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  360. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  361. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  362. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  363. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  364. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  365. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  366. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  367. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  368. package/dist/client/authorized-client.d.ts +5 -1
  369. package/dist/client/authorized-client.js +1 -1
  370. package/dist/client/contract.d.ts +63 -0
  371. package/dist/client/contract.js +1 -1
  372. package/dist/client/index.d.ts +2 -2
  373. package/dist/client/index.js +1 -1
  374. package/dist/client/local-authorized-client.d.ts +5 -1
  375. package/dist/client/local-authorized-client.js +1 -1
  376. package/dist/client/memory-authorized-client.d.ts +6 -1
  377. package/dist/client/memory-authorized-client.js +1 -1
  378. package/dist/client/phoenix-api.d.ts +1201 -267
  379. package/dist/configurator/ConfiguratorApp.js +1 -1
  380. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  381. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  382. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  383. package/dist/configurator/app-loader-content/index.js +1 -0
  384. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  385. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  386. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  387. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +189 -6
  388. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  389. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +58 -9
  390. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  391. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  392. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  393. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  394. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  395. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  396. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  397. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  398. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  399. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  400. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  401. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -55
  402. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  403. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +85 -7
  404. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  405. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  406. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  407. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  408. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  409. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  410. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  411. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +2 -2
  412. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +2 -2
  413. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  414. package/dist/configurator/common/configurator-interface.d.ts +145 -5
  415. package/dist/configurator/common/configurator-interface.js +1 -1
  416. package/dist/configurator/common/index.d.ts +3 -1
  417. package/dist/configurator/common/index.js +1 -1
  418. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  419. package/dist/configurator/common/use-reset-camera.js +1 -0
  420. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  421. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  422. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  423. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  424. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  425. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  426. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  427. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  428. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  429. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  430. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  431. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  432. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  433. package/dist/configurator/configurator-context/index.d.ts +0 -5
  434. package/dist/configurator/configurator-context/index.js +1 -1
  435. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  436. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  437. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  438. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  439. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  440. package/dist/configurator/configurator-error-page/index.js +1 -0
  441. package/dist/configurator/index.d.ts +10 -0
  442. package/dist/configurator/index.js +1 -1
  443. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  444. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  445. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  446. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  447. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  448. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  449. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  450. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  451. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  452. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  453. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  454. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  455. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  456. package/dist/configurator/pages/RootPage.js +1 -1
  457. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  458. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  459. package/dist/configurator/pages/default-configurator-elements.d.ts +17 -0
  460. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  461. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  462. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  463. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  464. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  465. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  466. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  467. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  468. package/dist/configurator/pages/default-elements/index.js +1 -0
  469. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  470. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  471. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  472. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  473. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  474. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  475. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  476. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  477. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  478. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  479. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  480. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  481. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  482. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  483. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  484. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  485. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  486. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  487. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  488. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  489. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.d.ts +5 -0
  490. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.js +1 -0
  491. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  492. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  493. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  494. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  495. package/dist/configurator/pages/error-boundaries/index.d.ts +1 -0
  496. package/dist/configurator/pages/error-boundaries/index.js +1 -1
  497. package/dist/configurator/pages/index.d.ts +1 -0
  498. package/dist/configurator/pages/index.js +1 -1
  499. package/dist/configurator/pages/provider-slots/ConfiguratorResponsiveProvider.d.ts +12 -0
  500. package/dist/configurator/pages/provider-slots/ConfiguratorResponsiveProvider.js +1 -0
  501. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.d.ts +3 -0
  502. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.js +1 -0
  503. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.d.ts +3 -0
  504. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.js +1 -0
  505. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.d.ts +3 -0
  506. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.js +1 -0
  507. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.d.ts +3 -0
  508. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.js +1 -0
  509. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.d.ts +3 -0
  510. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.js +1 -0
  511. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.d.ts +3 -0
  512. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.js +1 -0
  513. package/dist/configurator/pages/provider-slots/index.d.ts +6 -0
  514. package/dist/configurator/pages/provider-slots/index.js +1 -0
  515. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.d.ts +2 -0
  516. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.js +1 -0
  517. package/dist/configurator/pages/ui-elements/configurator-ui-elements.d.ts +3 -0
  518. package/dist/configurator/pages/ui-elements/configurator-ui-elements.js +1 -0
  519. package/dist/configurator/pages/ui-elements/index.d.ts +2 -0
  520. package/dist/configurator/pages/ui-elements/index.js +1 -0
  521. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  522. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  523. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  524. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  525. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  526. package/dist/configurator/preset-screen-elements/index.js +1 -0
  527. package/dist/configurator/scene/index.d.ts +1 -0
  528. package/dist/configurator/scene/index.js +1 -1
  529. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  530. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  531. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  532. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  533. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  534. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  535. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  536. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  537. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  538. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  539. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  540. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  541. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  542. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  543. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  544. package/dist/configurator/toolbar-actions/index.js +1 -0
  545. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  546. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  547. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  548. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  549. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  550. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  551. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  552. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  553. package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -3
  554. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  555. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +8 -1
  556. package/dist/configurator/ui/assistant/AssistantComposer.js +2 -1
  557. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  558. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  559. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  560. package/dist/configurator/ui/assistant/AssistantThread.d.ts +6 -2
  561. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  562. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  563. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  564. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  565. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  566. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  567. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  568. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +11 -0
  569. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
  570. package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
  571. package/dist/configurator/ui/assistant/attachments/index.js +1 -0
  572. package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +19 -0
  573. package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
  574. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  575. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  576. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  577. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  578. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  579. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  580. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  581. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  582. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  583. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  584. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  585. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  586. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  587. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  588. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  589. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  590. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  591. package/dist/configurator/ui/assistant/form/index.js +1 -0
  592. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  593. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  594. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  595. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  596. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  597. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  598. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  599. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  600. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  601. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  602. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  603. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  604. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  605. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  606. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  607. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  608. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  609. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  610. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  611. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  612. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  613. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  614. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  615. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  616. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  617. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  618. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  619. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  620. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  621. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  622. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  623. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  624. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  625. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  626. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  627. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  628. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  629. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  630. package/dist/configurator/ui/assistant/index.js +1 -1
  631. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  632. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  633. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  634. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  635. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  636. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  637. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  638. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  639. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  640. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  641. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  642. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  643. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  644. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  645. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  646. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  647. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  648. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  649. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  650. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  651. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  652. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  653. package/dist/configurator/ui/assistant/screenshots/index.d.ts +3 -0
  654. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  655. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  656. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  657. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  658. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  659. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  660. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  661. package/dist/configurator/ui/assistant/thread-items.d.ts +23 -3
  662. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  663. package/dist/configurator/ui/assistant/tool-chip.d.ts +19 -9
  664. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  665. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  666. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  667. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  668. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  669. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  670. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  671. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  672. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  673. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  674. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  675. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  676. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  677. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  678. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  679. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  680. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  681. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  682. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  683. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  684. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  685. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  686. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  687. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  688. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  689. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  690. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  691. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  692. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  693. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  694. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  695. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  696. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  697. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  698. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  699. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  700. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  701. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  702. package/dist/configurator/ui/index.d.ts +1 -0
  703. package/dist/configurator/ui/index.js +1 -1
  704. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  705. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  706. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  707. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  708. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  709. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  710. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  711. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  712. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  713. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  714. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  715. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  716. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  717. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  718. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  719. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  720. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  721. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  722. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  723. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  724. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  725. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  726. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  727. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  728. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  729. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  730. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  731. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  732. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  733. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  734. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  735. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  736. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  737. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  738. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  739. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  740. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  741. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  742. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  743. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  744. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  745. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  746. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  747. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  748. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  749. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  750. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  751. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  752. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  753. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  754. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  755. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  756. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  757. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  758. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  759. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  760. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  761. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  762. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  763. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  764. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  765. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  766. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  767. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  768. package/dist/configurator/ui/preset-layout/index.js +1 -1
  769. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  770. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  771. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  772. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  773. package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
  774. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +16 -19
  775. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  776. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  777. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  778. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  779. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  780. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  781. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  782. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  783. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  784. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  785. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  786. package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
  787. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  788. package/dist/docs/fabs/basic.mdx +6 -2
  789. package/dist/docs/index.json +136 -1
  790. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  791. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  792. package/dist/docs/layouts/custom-layout.mdx +2597 -0
  793. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  794. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  795. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  796. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  797. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  798. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  799. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  800. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  801. package/dist/docs/layouts/header/fixed.mdx +2 -2
  802. package/dist/docs/layouts/header/floating.mdx +2 -2
  803. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  804. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  805. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  806. package/dist/docs/other-features/error-5xx.mdx +1 -1
  807. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  808. package/dist/docs/other-features/not-found-404.mdx +1 -1
  809. package/dist/docs/other-features/side-effects.mdx +8 -11
  810. package/dist/docs/other-features/transformers.mdx +4 -0
  811. package/dist/docs/other-features/violation-messages.mdx +52 -56
  812. package/dist/docs/phoenix/application-states.mdx +9 -7
  813. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  814. package/dist/docs/phoenix/components.mdx +6 -0
  815. package/dist/docs/phoenix/configurator-interface.mdx +402 -81
  816. package/dist/docs/phoenix/deployments.mdx +3 -7
  817. package/dist/docs/phoenix/domain-model.mdx +10 -1
  818. package/dist/docs/phoenix/expression-context.mdx +11 -3
  819. package/dist/docs/phoenix/finalization.mdx +1 -1
  820. package/dist/docs/phoenix/getting-started.mdx +7 -4
  821. package/dist/docs/phoenix/layout-slots.mdx +137 -0
  822. package/dist/docs/phoenix/localization.mdx +10 -6
  823. package/dist/docs/phoenix/migration-guide.mdx +27 -14
  824. package/dist/docs/phoenix/phoenix-cli.mdx +148 -68
  825. package/dist/docs/phoenix/project-structure.mdx +85 -37
  826. package/dist/docs/phoenix/quickstart.mdx +9 -9
  827. package/dist/docs/phoenix/sdk-builder-workflow.mdx +21 -19
  828. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  829. package/dist/docs/phoenix/testing.mdx +153 -0
  830. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  831. package/dist/docs/phoenix/webhooks.mdx +31 -6
  832. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  833. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  834. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  835. package/dist/domain/admin-domain/__generated/model/versions/v1.d.ts +1 -1
  836. package/dist/domain/admin-domain/__generated/model/versions/v2.d.ts +1 -1
  837. package/dist/domain/admin-domain/__generated/model/versions/v3.d.ts +1 -1
  838. package/dist/domain/admin-domain/__generated/model/versions/v4.d.ts +1 -1
  839. package/dist/domain/admin-domain/__generated/model/versions/v5.d.ts +1 -1
  840. package/dist/domain/admin-domain/__generated/model/versions/v6.d.ts +2 -2
  841. package/dist/domain/admin-domain/__generated/model/versions/v6.js +1 -1
  842. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -14
  843. package/dist/domain/admin-domain/implementation/common-admin-migrations.d.ts +1 -1
  844. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  845. package/dist/domain/admin-domain/index.d.ts +9 -5
  846. package/dist/domain/admin-domain/index.js +1 -1
  847. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  848. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  849. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  850. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  851. package/dist/domain/application/application-config.d.ts +15 -50
  852. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  853. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  854. package/dist/domain/application/assistant/assistant-manifest.d.ts +40 -5
  855. package/dist/domain/application/assistant/assistant-manifest.js +1 -1
  856. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +48 -9
  857. package/dist/domain/application/assistant/assistant-value-type.js +1 -1
  858. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  859. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  860. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  861. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  862. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  863. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  864. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  865. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  866. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  867. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  868. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  869. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  870. package/dist/domain/application/assistant/form/index.js +1 -0
  871. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +4 -11
  872. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  873. package/dist/domain/application/assistant/index.d.ts +8 -2
  874. package/dist/domain/application/assistant/index.js +1 -1
  875. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  876. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  877. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  878. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  879. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  880. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  881. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  882. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  883. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  884. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  885. package/dist/domain/application/assistant-field-options.d.ts +1 -2
  886. package/dist/domain/application/assistant-mutations.d.ts +2 -4
  887. package/dist/domain/application/assistant-mutations.js +1 -1
  888. package/dist/domain/application/assistant-recipe-groups.d.ts +5 -7
  889. package/dist/domain/application/configurator-builder.d.ts +12 -3
  890. package/dist/domain/application/configurator-builder.js +1 -1
  891. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  892. package/dist/domain/application/index.d.ts +3 -7
  893. package/dist/domain/application/index.js +1 -1
  894. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  895. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  896. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  897. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  898. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  899. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  900. package/dist/domain/application/published-data/create-finalize-admin-domain.d.ts +1 -2
  901. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  902. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  903. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  904. package/dist/domain/application/published-data/map-published-data.d.ts +7 -4
  905. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  906. package/dist/domain/application/standard-properties.js +1 -1
  907. package/dist/domain/application/web-component-property.d.ts +3 -1
  908. package/dist/domain/application/web-component-property.js +1 -1
  909. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  910. package/dist/domain/available-system-components/available-system-components.js +1 -0
  911. package/dist/domain/available-system-components/index.d.ts +1 -0
  912. package/dist/domain/available-system-components/index.js +1 -0
  913. package/dist/domain/core/action/action-factory.d.ts +11 -0
  914. package/dist/domain/core/action/action.d.ts +71 -0
  915. package/dist/domain/core/action/action.js +1 -0
  916. package/dist/domain/core/action/index.d.ts +2 -0
  917. package/dist/domain/core/action/index.js +1 -0
  918. package/dist/domain/core/component/component-reader-types.d.ts +43 -0
  919. package/dist/domain/core/component/component-reader-types.js +1 -0
  920. package/dist/domain/core/component/debug-state-component.d.ts +14 -0
  921. package/dist/domain/core/component/debug-state-component.js +1 -0
  922. package/dist/domain/core/component/domain-component-optic.d.ts +65 -0
  923. package/dist/domain/core/component/domain-component-optic.js +16 -0
  924. package/dist/domain/core/component/drag-state-component.d.ts +16 -0
  925. package/dist/domain/core/component/drag-state-component.js +1 -0
  926. package/dist/domain/core/component/export-state-component.d.ts +15 -0
  927. package/dist/domain/core/component/export-state-component.js +1 -0
  928. package/dist/domain/core/component/fullscreen-state-component.d.ts +14 -0
  929. package/dist/domain/core/component/fullscreen-state-component.js +1 -0
  930. package/dist/domain/core/component/group-components-by-entity-id-and-name.d.ts +8 -0
  931. package/dist/domain/core/component/group-components-by-entity-id-and-name.js +1 -0
  932. package/dist/domain/core/component/hover-state-component.d.ts +14 -0
  933. package/dist/domain/core/component/hover-state-component.js +1 -0
  934. package/dist/domain/core/component/index.d.ts +18 -0
  935. package/dist/domain/core/component/index.js +1 -0
  936. package/dist/domain/core/component/legacy-filter.d.ts +498 -0
  937. package/dist/domain/core/component/navigation-state-component.d.ts +15 -0
  938. package/dist/domain/core/component/navigation-state-component.js +1 -0
  939. package/dist/domain/core/component/selection-state-component.d.ts +14 -0
  940. package/dist/domain/core/component/selection-state-component.js +1 -0
  941. package/dist/domain/core/component/system-component-builder.d.ts +11 -0
  942. package/dist/domain/core/component/system-component-builder.js +1 -0
  943. package/dist/domain/core/component/system-component-filter.d.ts +811 -0
  944. package/dist/domain/core/component/system-virtual-entity.js +1 -0
  945. package/dist/domain/core/component/tool-state-component.d.ts +14 -0
  946. package/dist/domain/core/component/tool-state-component.js +1 -0
  947. package/dist/domain/core/component/updates.d.ts +123 -0
  948. package/dist/domain/core/component/view-state-component.d.ts +14 -0
  949. package/dist/domain/core/component/view-state-component.js +1 -0
  950. package/dist/domain/core/component/viewport-state-component.d.ts +29 -0
  951. package/dist/domain/core/component/viewport-state-component.js +1 -0
  952. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  953. package/dist/domain/core/data-schema/data-cell-value.js +1 -0
  954. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  955. package/dist/domain/core/data-schema/data-schema-array-field.js +1 -0
  956. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  957. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  958. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  959. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  960. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  961. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  962. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  963. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  964. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  965. package/dist/domain/core/data-schema/data-schema.js +1 -0
  966. package/dist/domain/core/data-schema/index.d.ts +7 -0
  967. package/dist/domain/core/data-schema/index.js +1 -0
  968. package/dist/domain/core/domain-factory.d.ts +4 -5
  969. package/dist/domain/core/domain.d.ts +4 -5
  970. package/dist/domain/core/domain.js +1 -1
  971. package/dist/domain/core/emission/index.d.ts +8 -0
  972. package/dist/domain/core/emission/index.js +1 -0
  973. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  974. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  975. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  976. package/dist/domain/core/emission/state-emission.js +1 -0
  977. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  978. package/dist/domain/core/emission/state-update-emission.js +1 -0
  979. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  980. package/dist/domain/core/emission/state-validation-result.js +1 -0
  981. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  982. package/dist/domain/core/emission/transformation-log.js +1 -0
  983. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  984. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  985. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  986. package/dist/domain/core/emission/transformer-log.js +1 -0
  987. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  988. package/dist/domain/core/emission/transformer-phase.js +1 -0
  989. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  990. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  991. package/dist/domain/core/expression/constant-expressions.d.ts +16 -0
  992. package/dist/domain/core/expression/constant-expressions.js +1 -0
  993. package/dist/domain/core/expression/custom-expression.d.ts +25 -0
  994. package/dist/domain/core/expression/custom-expression.js +1 -0
  995. package/dist/domain/core/expression/expression.d.ts +46 -0
  996. package/dist/domain/core/expression/expression.js +1 -0
  997. package/dist/domain/core/expression/index.d.ts +4 -0
  998. package/dist/domain/core/expression/index.js +1 -0
  999. package/dist/domain/core/index.d.ts +13 -15
  1000. package/dist/domain/core/index.js +1 -1
  1001. package/dist/domain/core/invariant/builtin-invariant.d.ts +5 -0
  1002. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  1003. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  1004. package/dist/domain/core/invariant/index.d.ts +5 -0
  1005. package/dist/domain/core/invariant/index.js +1 -0
  1006. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  1007. package/dist/domain/core/invariant/invariants.js +1 -0
  1008. package/dist/domain/core/invariant/violation-component.js +1 -0
  1009. package/dist/domain/core/invariant/violation.d.ts +133 -0
  1010. package/dist/domain/core/invariant/violation.js +1 -0
  1011. package/dist/domain/core/model/component.d.ts +46 -0
  1012. package/dist/domain/core/model/index.d.ts +6 -0
  1013. package/dist/domain/core/model/index.js +1 -0
  1014. package/dist/domain/core/model/model.d.ts +127 -0
  1015. package/dist/domain/core/model/reflection.d.ts +114 -0
  1016. package/dist/domain/core/model/reflection.js +1 -0
  1017. package/dist/domain/core/recipe/index.d.ts +1 -0
  1018. package/dist/domain/core/recipe/index.js +1 -0
  1019. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  1020. package/dist/domain/core/recipe/recipes.js +1 -0
  1021. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  1022. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  1023. package/dist/domain/core/relation/component-factories.d.ts +14 -0
  1024. package/dist/domain/core/relation/component-factories.js +1 -0
  1025. package/dist/domain/core/relation/composed-of.d.ts +12 -0
  1026. package/dist/domain/core/relation/composed-of.js +1 -0
  1027. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  1028. package/dist/domain/core/relation/index.d.ts +8 -0
  1029. package/dist/domain/core/relation/index.js +1 -0
  1030. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  1031. package/dist/domain/core/relation/indirect-relation.js +1 -0
  1032. package/dist/domain/core/relation/reference-component.d.ts +17 -0
  1033. package/dist/domain/core/relation/reference-component.js +1 -0
  1034. package/dist/domain/core/relation/reference-field.d.ts +7 -0
  1035. package/dist/domain/core/relation/reference-field.js +1 -0
  1036. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  1037. package/dist/domain/core/relation/relation-factory.js +1 -0
  1038. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  1039. package/dist/domain/core/state/id-sequence.d.ts +15 -0
  1040. package/dist/domain/core/state/id-sequence.js +1 -0
  1041. package/dist/domain/core/state/index.d.ts +3 -0
  1042. package/dist/domain/core/state/index.js +1 -0
  1043. package/dist/domain/core/state/migrations.d.ts +67 -0
  1044. package/dist/domain/core/state/migrations.js +1 -0
  1045. package/dist/domain/core/state/state.d.ts +9 -0
  1046. package/dist/domain/domain-builder/domain-builder.d.ts +46 -0
  1047. package/dist/domain/domain-builder/domain-builder.js +1 -0
  1048. package/dist/domain/domain-builder/index.d.ts +1 -0
  1049. package/dist/domain/domain-builder/index.js +1 -0
  1050. package/dist/domain/domain-context/action-system/action-system.d.ts +2 -4
  1051. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  1052. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  1053. package/dist/domain/domain-context/action-system/index.js +1 -0
  1054. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  1055. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  1056. package/dist/domain/domain-context/create-transformer.d.ts +2 -2
  1057. package/dist/domain/domain-context/dimension-system/dimension-state.js +1 -1
  1058. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  1059. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  1060. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  1061. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  1062. package/dist/domain/domain-context/domain-context-systems.d.ts +8 -10
  1063. package/dist/domain/domain-context/index.d.ts +8 -18
  1064. package/dist/domain/domain-context/index.js +1 -1
  1065. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  1066. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  1067. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +5 -8
  1068. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  1069. package/dist/domain/domain-context/navigation-system/navigation-updates.d.ts +1 -12
  1070. package/dist/domain/domain-context/navigation-system/navigation-updates.js +1 -1
  1071. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +2 -2
  1072. package/dist/domain/domain-context/navigation-system/selection-transformers.js +1 -1
  1073. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  1074. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  1075. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -4
  1076. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  1077. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +3 -3
  1078. package/dist/domain/domain-context/relation-transformers/cascade-deletes.js +1 -1
  1079. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +3 -3
  1080. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  1081. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +3 -3
  1082. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  1083. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  1084. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  1085. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +3 -3
  1086. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  1087. package/dist/domain/domain-context/store-system/apply-updates.d.ts +1 -3
  1088. package/dist/domain/domain-context/store-system/apply-updates.js +1 -1
  1089. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  1090. package/dist/domain/domain-context/store-system/index.js +1 -0
  1091. package/dist/domain/domain-context/store-system/next-domain-entity-id.d.ts +1 -13
  1092. package/dist/domain/domain-context/store-system/next-domain-entity-id.js +1 -1
  1093. package/dist/domain/domain-context/store-system/reconcile-projected-entities.d.ts +1 -2
  1094. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  1095. package/dist/domain/domain-context/store-system/store-system.d.ts +7 -39
  1096. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  1097. package/dist/domain/domain-context/store-system/system-state.d.ts +2 -4
  1098. package/dist/domain/domain-context/store-system/system-state.js +1 -1
  1099. package/dist/domain/domain-context/transformers/actions-builder.d.ts +1 -2
  1100. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  1101. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +6 -10
  1102. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  1103. package/dist/domain/domain-context/transformers/chain-builder.d.ts +2 -2
  1104. package/dist/domain/domain-context/transformers/context.d.ts +2 -7
  1105. package/dist/domain/domain-context/transformers/context.js +1 -1
  1106. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -5
  1107. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  1108. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  1109. package/dist/domain/domain-context/transformers/index.js +1 -1
  1110. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  1111. package/dist/domain/domain-context/transformers/then-builder.js +1 -1
  1112. package/dist/domain/domain-context/transformers/when-builder.d.ts +3 -9
  1113. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  1114. package/dist/domain/domain-context/undo-system.d.ts +29 -3
  1115. package/dist/domain/domain-context/undo-system.js +1 -1
  1116. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  1117. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  1118. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  1119. package/dist/domain/domain-runtime/access/types.js +1 -1
  1120. package/dist/domain/domain-runtime/application.d.ts +39 -0
  1121. package/dist/domain/domain-runtime/application.js +1 -0
  1122. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  1123. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  1124. package/dist/domain/domain-runtime/domain-context/component-reader.d.ts +1 -4
  1125. package/dist/domain/domain-runtime/domain-context/component-reader.js +1 -1
  1126. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  1127. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  1128. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  1129. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  1130. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  1131. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  1132. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +20 -25
  1133. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  1134. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  1135. package/dist/domain/domain-runtime/domain-runtime.d.ts +128 -72
  1136. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  1137. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  1138. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  1139. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +21 -0
  1140. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  1141. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  1142. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  1143. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  1144. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  1145. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  1146. package/dist/domain/domain-runtime/errors/index.js +1 -0
  1147. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  1148. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  1149. package/dist/domain/domain-runtime/index.d.ts +2 -0
  1150. package/dist/domain/domain-runtime/index.js +1 -1
  1151. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  1152. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  1153. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  1154. package/dist/domain/domain-runtime/spec/index.js +1 -1
  1155. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  1156. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  1157. package/dist/domain/domain-runtime/spec/memoize-expression.d.ts +16 -0
  1158. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +125 -0
  1159. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  1160. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  1161. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  1162. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.d.ts +34 -0
  1163. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  1164. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +10 -0
  1165. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  1166. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  1167. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  1168. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +32 -0
  1169. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  1170. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  1171. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  1172. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  1173. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  1174. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +14 -0
  1175. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  1176. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  1177. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  1178. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  1179. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  1180. package/dist/domain/domain-runtime/spec/prepare-action-implementations.d.ts +15 -0
  1181. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  1182. package/dist/domain/domain-runtime/spec/prepare-domain-expressions.d.ts +16 -0
  1183. package/dist/domain/domain-runtime/spec/selectors.d.ts +8 -7
  1184. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  1185. package/dist/domain/domain-runtime/spec/types.d.ts +6 -4
  1186. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  1187. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  1188. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  1189. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  1190. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  1191. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  1192. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  1193. package/dist/domain/extensions/angle-indicator.d.ts +21 -0
  1194. package/dist/domain/extensions/angle-indicator.js +1 -0
  1195. package/dist/domain/extensions/attribute-switch.d.ts +8 -0
  1196. package/dist/domain/extensions/attribute-switch.js +1 -0
  1197. package/dist/domain/extensions/autorotate-camera-component.d.ts +19 -0
  1198. package/dist/domain/extensions/autorotate-camera-component.js +1 -0
  1199. package/dist/domain/extensions/basic-sidebar-footer.d.ts +8 -0
  1200. package/dist/domain/extensions/basic-sidebar-footer.js +1 -0
  1201. package/dist/domain/extensions/camera-based-hidden-entity-object.js +1 -0
  1202. package/dist/domain/extensions/camera-based-hidden-entity.js +1 -0
  1203. package/dist/domain/extensions/canvas-config.d.ts +87 -0
  1204. package/dist/domain/extensions/canvas-config.js +1 -0
  1205. package/dist/domain/extensions/canvas-custom-environment.js +1 -0
  1206. package/dist/domain/extensions/canvas-padding.d.ts +25 -0
  1207. package/dist/domain/extensions/canvas-padding.js +1 -0
  1208. package/dist/domain/extensions/canvas-preset-environment.d.ts +37 -0
  1209. package/dist/domain/extensions/canvas-preset-environment.js +1 -0
  1210. package/dist/domain/extensions/child-entity-recipe-hierarchy.d.ts +21 -0
  1211. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  1212. package/dist/domain/extensions/color-value.js +1 -0
  1213. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +292 -0
  1214. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  1215. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +607 -0
  1216. package/dist/domain/extensions/common/index.d.ts +4 -0
  1217. package/dist/domain/extensions/common/index.js +1 -0
  1218. package/dist/domain/extensions/custom-header.d.ts +11 -0
  1219. package/dist/domain/extensions/custom-header.js +1 -0
  1220. package/dist/domain/extensions/custom-price-footer.js +1 -0
  1221. package/dist/domain/extensions/custom-sidebar-footer.d.ts +11 -0
  1222. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  1223. package/dist/domain/extensions/dimension-indicator.d.ts +31 -0
  1224. package/dist/domain/extensions/dimension-indicator.js +1 -0
  1225. package/dist/domain/extensions/editable-angle-indicator.d.ts +39 -0
  1226. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  1227. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +43 -0
  1228. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  1229. package/dist/domain/extensions/editable-offset-indicator.d.ts +42 -0
  1230. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  1231. package/dist/domain/extensions/editable-size-indicator.d.ts +39 -0
  1232. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  1233. package/dist/domain/extensions/entity-header.d.ts +22 -0
  1234. package/dist/domain/extensions/entity-header.js +1 -0
  1235. package/dist/domain/extensions/exit-tool-mode-fab.d.ts +25 -0
  1236. package/dist/domain/extensions/exit-tool-mode-fab.js +1 -0
  1237. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +30 -0
  1238. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  1239. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  1240. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  1241. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  1242. package/dist/domain/extensions/export-images/index.js +1 -0
  1243. package/dist/domain/extensions/export-images/save-template-thumbnail.d.ts +14 -0
  1244. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  1245. package/dist/domain/extensions/finalize-action.d.ts +20 -0
  1246. package/dist/domain/extensions/finalize-action.js +1 -0
  1247. package/dist/domain/extensions/finalize-component.js +1 -0
  1248. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  1249. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  1250. package/dist/domain/extensions/fixed-header.d.ts +10 -0
  1251. package/dist/domain/extensions/fixed-header.js +1 -0
  1252. package/dist/domain/extensions/floating-header.d.ts +10 -0
  1253. package/dist/domain/extensions/floating-header.js +1 -0
  1254. package/dist/domain/extensions/hidden-header.d.ts +8 -0
  1255. package/dist/domain/extensions/hidden-header.js +1 -0
  1256. package/dist/domain/extensions/hidden-sidebar-footer.d.ts +21 -0
  1257. package/dist/domain/extensions/hidden-sidebar-footer.js +1 -0
  1258. package/dist/domain/extensions/horizontal-tabs.d.ts +28 -0
  1259. package/dist/domain/extensions/horizontal-tabs.js +1 -0
  1260. package/dist/domain/extensions/index.d.ts +68 -0
  1261. package/dist/domain/extensions/index.js +1 -0
  1262. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +31 -0
  1263. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  1264. package/dist/domain/extensions/multilingual-text-value.js +1 -0
  1265. package/dist/domain/extensions/navigation-steps.d.ts +19 -0
  1266. package/dist/domain/extensions/navigation-steps.js +1 -0
  1267. package/dist/domain/extensions/offset-anchors.d.ts +20 -0
  1268. package/dist/domain/extensions/offset-anchors.js +1 -0
  1269. package/dist/domain/extensions/offset-indicator.d.ts +83 -0
  1270. package/dist/domain/extensions/offset-indicator.js +1 -0
  1271. package/dist/domain/extensions/offset.d.ts +31 -0
  1272. package/dist/domain/extensions/offset.js +1 -0
  1273. package/dist/domain/extensions/other-action.d.ts +14 -0
  1274. package/dist/domain/extensions/other-action.js +1 -0
  1275. package/dist/domain/extensions/property-page.d.ts +16 -0
  1276. package/dist/domain/extensions/property-page.js +1 -0
  1277. package/dist/domain/extensions/read-sidebar-footer.d.ts +8 -0
  1278. package/dist/domain/extensions/read-sidebar-footer.js +1 -0
  1279. package/dist/domain/extensions/replace-entity-recipe-hierarchy.d.ts +21 -0
  1280. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  1281. package/dist/domain/extensions/rotatable.js +1 -0
  1282. package/dist/domain/extensions/rotation-handle.d.ts +53 -0
  1283. package/dist/domain/extensions/rotation-handle.js +1 -0
  1284. package/dist/domain/extensions/scene-entity-add-fab.d.ts +32 -0
  1285. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  1286. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  1287. package/dist/domain/extensions/scene-entity-control.js +1 -0
  1288. package/dist/domain/extensions/scene-entity-delete-fab.d.ts +19 -0
  1289. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  1290. package/dist/domain/extensions/scene-entity-floor-object.js +1 -0
  1291. package/dist/domain/extensions/scene-entity-html-hotspot.d.ts +27 -0
  1292. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  1293. package/dist/domain/extensions/scene-entity-navigation-hotspot.d.ts +20 -0
  1294. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  1295. package/dist/domain/extensions/scene-entity-object-html-hotspot.d.ts +31 -0
  1296. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  1297. package/dist/domain/extensions/scene-entity-select-hotspot.d.ts +5 -0
  1298. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  1299. package/dist/domain/extensions/scene-entity-wall-object.js +1 -0
  1300. package/dist/domain/extensions/selectable-component.js +1 -0
  1301. package/dist/domain/extensions/sidebar-tabs.d.ts +29 -0
  1302. package/dist/domain/extensions/sidebar-tabs.js +1 -0
  1303. package/dist/domain/extensions/simple-summary.js +1 -0
  1304. package/dist/domain/extensions/size.d.ts +21 -0
  1305. package/dist/domain/extensions/size.js +1 -0
  1306. package/dist/domain/extensions/sketching-draw.d.ts +17 -0
  1307. package/dist/domain/extensions/sketching-draw.js +1 -0
  1308. package/dist/domain/extensions/sketching-edit.d.ts +28 -0
  1309. package/dist/domain/extensions/sketching-edit.js +1 -0
  1310. package/dist/domain/extensions/summary-component.js +1 -0
  1311. package/dist/domain/extensions/text-value.js +1 -0
  1312. package/dist/domain/extensions/tool-controls.js +1 -0
  1313. package/dist/domain/extensions/tool-menu-fab.d.ts +40 -0
  1314. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  1315. package/dist/domain/extensions/toolbar.d.ts +13 -0
  1316. package/dist/domain/extensions/toolbar.js +1 -0
  1317. package/dist/domain/extensions/universal-sidebar-footer.d.ts +12 -0
  1318. package/dist/domain/extensions/universal-sidebar-footer.js +1 -0
  1319. package/dist/domain/extensions/view-controls.js +1 -0
  1320. package/dist/domain/index.d.ts +4 -34
  1321. package/dist/domain/index.js +1 -1
  1322. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  1323. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  1324. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +37 -19
  1325. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  1326. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  1327. package/dist/domain/mocks/create-mock-domain.js +1 -1
  1328. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  1329. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  1330. package/dist/domain/mocks/create-test-application-config.js +1 -0
  1331. package/dist/domain/mocks/index.d.ts +1 -0
  1332. package/dist/domain/mocks/index.js +1 -1
  1333. package/dist/domain/projections/blender-projections/blender-projections.d.ts +2 -3
  1334. package/dist/domain/projections/blender-projections/blender-projections.js +1 -1
  1335. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  1336. package/dist/domain/projections/collision-projections.d.ts +1 -1
  1337. package/dist/domain/projections/composition-projections.d.ts +1 -1
  1338. package/dist/domain/projections/composition-projections.js +1 -1
  1339. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  1340. package/dist/domain/projections/index.d.ts +1 -1
  1341. package/dist/domain/projections/position-projections.d.ts +1 -1
  1342. package/dist/domain/projections/projected-entities-projections.d.ts +2 -3
  1343. package/dist/domain/projections/snap-matching.d.ts +1 -2
  1344. package/dist/domain/projections/snap-utils.d.ts +1 -2
  1345. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  1346. package/dist/domain/projections/validation-projections.d.ts +3 -20
  1347. package/dist/domain/projections/validation-projections.js +1 -1
  1348. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  1349. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  1350. package/dist/domain/spec/application/admin-pages-section.js +1 -0
  1351. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  1352. package/dist/domain/spec/application/admin-pages.js +1 -0
  1353. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  1354. package/dist/domain/spec/application/admin-states.js +1 -0
  1355. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  1356. package/dist/domain/spec/application/configurator-states.js +1 -0
  1357. package/dist/domain/spec/application/index.d.ts +5 -0
  1358. package/dist/domain/spec/application/index.js +1 -0
  1359. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  1360. package/dist/domain/spec/components/bindings/index.js +1 -0
  1361. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  1362. package/dist/domain/spec/components/bindings/read-binding.js +1 -0
  1363. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  1364. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  1365. package/dist/domain/spec/components/component-entry.d.ts +90 -0
  1366. package/dist/domain/spec/components/component-entry.js +1 -0
  1367. package/dist/domain/spec/components/component-filter.d.ts +54 -0
  1368. package/dist/domain/spec/components/component-filter.js +1 -0
  1369. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  1370. package/dist/domain/spec/components/component-filters.js +1 -0
  1371. package/dist/domain/spec/components/components.d.ts +4 -0
  1372. package/dist/domain/spec/components/components.js +1 -0
  1373. package/dist/domain/spec/components/index.d.ts +6 -0
  1374. package/dist/domain/spec/components/index.js +1 -0
  1375. package/dist/domain/spec/components/sdk-code-ref.d.ts +9 -0
  1376. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  1377. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  1378. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  1379. package/dist/domain/spec/enhanced-json/index.js +1 -0
  1380. package/dist/domain/spec/expressions/expression.d.ts +49 -0
  1381. package/dist/domain/spec/expressions/expression.js +1 -0
  1382. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  1383. package/dist/domain/spec/expressions/expressions.js +1 -0
  1384. package/dist/domain/spec/expressions/index.d.ts +5 -0
  1385. package/dist/domain/spec/expressions/index.js +1 -0
  1386. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  1387. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  1388. package/dist/domain/spec/expressions/relation-expression-params.d.ts +11 -0
  1389. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  1390. package/dist/domain/spec/expressions/sdk-expression-implementation.d.ts +24 -0
  1391. package/dist/domain/spec/index.d.ts +9 -0
  1392. package/dist/domain/spec/index.js +1 -0
  1393. package/dist/domain/spec/invariants/index.d.ts +2 -0
  1394. package/dist/domain/spec/invariants/index.js +1 -0
  1395. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  1396. package/dist/domain/spec/invariants/invariant.js +1 -0
  1397. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  1398. package/dist/domain/spec/invariants/invariants.js +1 -0
  1399. package/dist/domain/spec/json-schema.d.ts +52 -0
  1400. package/dist/domain/spec/json-schema.js +1 -0
  1401. package/dist/domain/spec/markers/index.d.ts +3 -0
  1402. package/dist/domain/spec/markers/index.js +1 -0
  1403. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  1404. package/dist/domain/spec/markers/msg-marker.js +1 -0
  1405. package/dist/domain/spec/model/aliases.d.ts +9 -0
  1406. package/dist/domain/spec/model/aliases.js +1 -0
  1407. package/dist/domain/spec/model/common-types.d.ts +15 -0
  1408. package/dist/domain/spec/model/common-types.js +1 -0
  1409. package/dist/domain/spec/model/defaults.d.ts +33 -0
  1410. package/dist/domain/spec/model/defaults.js +1 -0
  1411. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  1412. package/dist/domain/spec/model/entity-types.js +1 -0
  1413. package/dist/domain/spec/model/index.d.ts +7 -0
  1414. package/dist/domain/spec/model/index.js +1 -0
  1415. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  1416. package/dist/domain/spec/model/model-version-key.js +1 -0
  1417. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  1418. package/dist/domain/spec/model/names/action-name.js +1 -0
  1419. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  1420. package/dist/domain/spec/model/names/alias-name.js +1 -0
  1421. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  1422. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  1423. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  1424. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  1425. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  1426. package/dist/domain/spec/model/names/expression-name.js +1 -0
  1427. package/dist/domain/spec/model/names/index.d.ts +9 -0
  1428. package/dist/domain/spec/model/names/index.js +1 -0
  1429. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  1430. package/dist/domain/spec/model/names/instance-name.js +1 -0
  1431. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  1432. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  1433. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  1434. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  1435. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  1436. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  1437. package/dist/domain/spec/model/presets.d.ts +30 -0
  1438. package/dist/domain/spec/model/presets.js +1 -0
  1439. package/dist/domain/spec/sections/actions.d.ts +23 -0
  1440. package/dist/domain/spec/sections/actions.js +1 -0
  1441. package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
  1442. package/dist/domain/spec/sections/app-metadata.js +1 -0
  1443. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  1444. package/dist/domain/spec/sections/application-version.js +1 -0
  1445. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  1446. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  1447. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  1448. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  1449. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  1450. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  1451. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  1452. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  1453. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  1454. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  1455. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  1456. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  1457. package/dist/domain/spec/sections/index.d.ts +9 -0
  1458. package/dist/domain/spec/sections/index.js +1 -0
  1459. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  1460. package/dist/domain/spec/sections/infra/acl.js +1 -0
  1461. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  1462. package/dist/domain/spec/sections/infra/index.js +1 -0
  1463. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  1464. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  1465. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  1466. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  1467. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  1468. package/dist/domain/spec/sections/state-value.js +1 -0
  1469. package/dist/domain/spec/sections/theme.d.ts +10 -0
  1470. package/dist/domain/spec/sections/theme.js +1 -0
  1471. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  1472. package/dist/domain/spec/sections/transformers.js +1 -0
  1473. package/dist/domain/spec/sections/ui.d.ts +12 -0
  1474. package/dist/domain/spec/sections/ui.js +1 -0
  1475. package/dist/domain/system-components/admin-sidebar.d.ts +1 -1
  1476. package/dist/domain/system-components/admin-sidebar.js +1 -1
  1477. package/dist/domain/system-components/angle-dimension.js +1 -1
  1478. package/dist/domain/system-components/application-config.d.ts +3 -3
  1479. package/dist/domain/system-components/application-config.js +1 -1
  1480. package/dist/domain/system-components/attribute-selection.js +1 -1
  1481. package/dist/domain/system-components/bounding-box-component.d.ts +1 -1
  1482. package/dist/domain/system-components/bounding-box-component.js +1 -1
  1483. package/dist/domain/system-components/bounding-sphere-component.d.ts +1 -1
  1484. package/dist/domain/system-components/bounding-sphere-component.js +1 -1
  1485. package/dist/domain/system-components/child-entity-recipes.d.ts +1 -1
  1486. package/dist/domain/system-components/child-entity-recipes.js +1 -1
  1487. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  1488. package/dist/domain/system-components/child-entity-selection.js +1 -1
  1489. package/dist/domain/system-components/collision-box-geometry.d.ts +5 -3
  1490. package/dist/domain/system-components/collision-box-geometry.js +1 -1
  1491. package/dist/domain/system-components/collision-geometries.d.ts +1 -1
  1492. package/dist/domain/system-components/collision-geometry.d.ts +5 -3
  1493. package/dist/domain/system-components/collision-geometry.js +1 -1
  1494. package/dist/domain/system-components/collision-point-geometry.d.ts +5 -3
  1495. package/dist/domain/system-components/collision-point-geometry.js +1 -1
  1496. package/dist/domain/system-components/common/index.d.ts +0 -4
  1497. package/dist/domain/system-components/common/index.js +1 -1
  1498. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  1499. package/dist/domain/system-components/common/recipes.d.ts +21 -4
  1500. package/dist/domain/system-components/common/recipes.js +1 -1
  1501. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  1502. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  1503. package/dist/domain/system-components/constraint.d.ts +11 -24
  1504. package/dist/domain/system-components/constraint.js +1 -1
  1505. package/dist/domain/system-components/create-blueprint.d.ts +1 -1
  1506. package/dist/domain/system-components/custom-scene-entity.d.ts +1 -1
  1507. package/dist/domain/system-components/custom-scene-entity.js +1 -1
  1508. package/dist/domain/system-components/detail.js +1 -1
  1509. package/dist/domain/system-components/distance-dimension-select.d.ts +1 -1
  1510. package/dist/domain/system-components/distance-dimension-select.js +1 -1
  1511. package/dist/domain/system-components/distance-dimension.d.ts +1 -1
  1512. package/dist/domain/system-components/distance-dimension.js +1 -1
  1513. package/dist/domain/system-components/drag-handle.d.ts +2 -2
  1514. package/dist/domain/system-components/drag-handle.js +1 -1
  1515. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  1516. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  1517. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  1518. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  1519. package/dist/domain/system-components/generic-dimension.d.ts +1 -1
  1520. package/dist/domain/system-components/generic-dimension.js +1 -1
  1521. package/dist/domain/system-components/hidden-entity.js +1 -1
  1522. package/dist/domain/system-components/hotspot-drag-handle.d.ts +2 -3
  1523. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  1524. package/dist/domain/system-components/index.d.ts +0 -68
  1525. package/dist/domain/system-components/index.js +1 -1
  1526. package/dist/domain/system-components/material-override-property-transition.js +1 -1
  1527. package/dist/domain/system-components/material-override-transformer.js +1 -1
  1528. package/dist/domain/system-components/material-swatch.js +1 -1
  1529. package/dist/domain/system-components/navigation-page.js +1 -1
  1530. package/dist/domain/system-components/navigation-panel-list.js +1 -1
  1531. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  1532. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  1533. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  1534. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  1535. package/dist/domain/system-components/pivot-point.d.ts +1 -1
  1536. package/dist/domain/system-components/pivot-point.js +1 -1
  1537. package/dist/domain/system-components/price.js +1 -1
  1538. package/dist/domain/system-components/projected-entities.d.ts +1 -1
  1539. package/dist/domain/system-components/projected-entities.js +1 -1
  1540. package/dist/domain/system-components/replace-entity-recipes.d.ts +1 -1
  1541. package/dist/domain/system-components/replace-entity-recipes.js +1 -1
  1542. package/dist/domain/system-components/scene-entity-ambient-light.js +1 -1
  1543. package/dist/domain/system-components/scene-entity-box-object.js +1 -1
  1544. package/dist/domain/system-components/scene-entity-directional-light.js +1 -1
  1545. package/dist/domain/system-components/scene-entity-local-material-override.js +1 -1
  1546. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  1547. package/dist/domain/system-components/scene-entity-material-override.js +1 -1
  1548. package/dist/domain/system-components/scene-entity-object-clip.js +1 -1
  1549. package/dist/domain/system-components/scene-entity-object-decal.js +1 -1
  1550. package/dist/domain/system-components/scene-entity-object-group.js +1 -1
  1551. package/dist/domain/system-components/scene-entity-object-local-material-override.js +1 -1
  1552. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  1553. package/dist/domain/system-components/scene-entity-object-material-override.js +1 -1
  1554. package/dist/domain/system-components/scene-entity-object-properties.js +1 -1
  1555. package/dist/domain/system-components/scene-entity-object-remote-material-override.js +1 -1
  1556. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  1557. package/dist/domain/system-components/scene-entity-object-text-decal.js +1 -1
  1558. package/dist/domain/system-components/scene-entity-object-transformer.js +1 -1
  1559. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  1560. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.js +1 -1
  1561. package/dist/domain/system-components/scene-entity-object.js +1 -1
  1562. package/dist/domain/system-components/scene-entity-point-light.js +1 -1
  1563. package/dist/domain/system-components/scene-entity-properties.js +1 -1
  1564. package/dist/domain/system-components/scene-entity-rect-area-light.js +1 -1
  1565. package/dist/domain/system-components/scene-entity-remote-material-override.js +1 -1
  1566. package/dist/domain/system-components/scene-entity-remote-object.js +1 -1
  1567. package/dist/domain/system-components/scene-entity-spot-light.js +1 -1
  1568. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  1569. package/dist/domain/system-components/scene-entity-transimissive-material-override.js +1 -1
  1570. package/dist/domain/system-components/sketching-line.d.ts +1 -1
  1571. package/dist/domain/system-components/sketching-line.js +1 -1
  1572. package/dist/domain/system-components/sketching-rectangle.d.ts +1 -1
  1573. package/dist/domain/system-components/sketching-rectangle.js +1 -1
  1574. package/dist/domain/system-components/sketching.d.ts +1 -1
  1575. package/dist/domain/system-components/sketching.js +1 -1
  1576. package/dist/domain/system-components/snap-axis.d.ts +1 -1
  1577. package/dist/domain/system-components/snap-axis.js +1 -1
  1578. package/dist/domain/system-components/snap-edge.d.ts +1 -1
  1579. package/dist/domain/system-components/snap-edge.js +1 -1
  1580. package/dist/domain/system-components/snap-plane.d.ts +1 -1
  1581. package/dist/domain/system-components/snap-plane.js +1 -1
  1582. package/dist/domain/system-components/snap-point.d.ts +1 -1
  1583. package/dist/domain/system-components/snap-point.js +1 -1
  1584. package/dist/domain/system-components/static-orthographic-camera-component.d.ts +1 -1
  1585. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  1586. package/dist/domain/system-components/static-perspective-camera-component.d.ts +1 -1
  1587. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  1588. package/dist/domain/system-definitions.js +1 -1
  1589. package/dist/domain/utils/eval-cache.d.ts +2 -3
  1590. package/dist/domain/utils/index.d.ts +2 -0
  1591. package/dist/domain/utils/index.js +1 -0
  1592. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  1593. package/dist/domain/utils/memo-eval.d.ts +2 -4
  1594. package/dist/editor/Editor.d.ts +7 -0
  1595. package/dist/editor/Editor.js +1 -1
  1596. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  1597. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  1598. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  1599. package/dist/editor/domain-editors/use-implementation-files.d.ts +7 -16
  1600. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  1601. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  1602. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  1603. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  1604. package/dist/editor/mocks/EditorMockContext.js +1 -1
  1605. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  1606. package/dist/globals/index.d.ts +2 -0
  1607. package/dist/i18n/locales/cs/messages.js +1 -1
  1608. package/dist/i18n/locales/da/messages.js +1 -1
  1609. package/dist/i18n/locales/de/messages.js +1 -1
  1610. package/dist/i18n/locales/de-AT/messages.js +1 -1
  1611. package/dist/i18n/locales/en/messages.js +1 -1
  1612. package/dist/i18n/locales/en-AU/messages.js +1 -1
  1613. package/dist/i18n/locales/en-GB/messages.js +1 -1
  1614. package/dist/i18n/locales/es/messages.js +1 -1
  1615. package/dist/i18n/locales/fr/messages.js +1 -1
  1616. package/dist/i18n/locales/hu/messages.js +1 -1
  1617. package/dist/i18n/locales/it/messages.js +1 -1
  1618. package/dist/i18n/locales/nl/messages.js +1 -1
  1619. package/dist/i18n/locales/pl/messages.js +1 -1
  1620. package/dist/i18n/locales/pt/messages.js +1 -1
  1621. package/dist/i18n/locales/ro/messages.js +1 -1
  1622. package/dist/i18n/locales/sk/messages.js +1 -1
  1623. package/dist/i18n/locales/tr/messages.js +1 -1
  1624. package/dist/legacy/domain-cli/gen/configurator-builder.js +13 -12
  1625. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  1626. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  1627. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  1628. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  1629. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  1630. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  1631. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  1632. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +176 -148
  1633. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  1634. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  1635. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  1636. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  1637. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -0
  1638. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  1639. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  1640. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  1641. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +15 -14
  1642. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +14 -12
  1643. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +14 -13
  1644. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +13 -11
  1645. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  1646. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.d.ts +1 -0
  1647. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.js +1 -1
  1648. package/dist/legacy/webhook-cli/lambda-local/index.js +1 -1
  1649. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  1650. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  1651. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -2
  1652. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  1653. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  1654. package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -2
  1655. package/dist/phoenix/application-spec/index.d.ts +1 -0
  1656. package/dist/phoenix/application-spec/index.js +1 -1
  1657. package/dist/phoenix/application-spec/project-files.js +1 -1
  1658. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
  1659. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  1660. package/dist/phoenix/bin.d.ts +2 -0
  1661. package/dist/phoenix/bin.js +2 -0
  1662. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  1663. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  1664. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  1665. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  1666. package/dist/phoenix/check-configs/index.d.ts +8 -0
  1667. package/dist/phoenix/check-configs/index.js +1 -0
  1668. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  1669. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  1670. package/dist/phoenix/cli.d.ts +0 -1
  1671. package/dist/phoenix/cli.js +1 -2
  1672. package/dist/phoenix/commands/activate-deployment.js +1 -1
  1673. package/dist/phoenix/commands/build.js +1 -1
  1674. package/dist/phoenix/commands/changelog.js +1 -1
  1675. package/dist/phoenix/commands/check.js +1 -1
  1676. package/dist/phoenix/commands/clean.js +1 -1
  1677. package/dist/phoenix/commands/cleanup-environment.js +2 -2
  1678. package/dist/phoenix/commands/create-environment.js +1 -1
  1679. package/dist/phoenix/commands/data.js +1 -1
  1680. package/dist/phoenix/commands/deploy.js +2 -2
  1681. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  1682. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  1683. package/dist/phoenix/commands/deps/deps.js +3 -0
  1684. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  1685. package/dist/phoenix/commands/deps/index.js +1 -0
  1686. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  1687. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  1688. package/dist/phoenix/commands/dev.js +4 -5
  1689. package/dist/phoenix/commands/docs.js +1 -1
  1690. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  1691. package/dist/phoenix/commands/fix.js +1 -1
  1692. package/dist/phoenix/commands/index.d.ts +1 -0
  1693. package/dist/phoenix/commands/index.js +1 -1
  1694. package/dist/phoenix/commands/init.d.ts +17 -5
  1695. package/dist/phoenix/commands/init.js +1 -1
  1696. package/dist/phoenix/commands/inspect-assets.js +1 -1
  1697. package/dist/phoenix/commands/link.js +1 -1
  1698. package/dist/phoenix/commands/list-environments.js +1 -1
  1699. package/dist/phoenix/commands/login.d.ts +4 -1
  1700. package/dist/phoenix/commands/login.js +2 -2
  1701. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  1702. package/dist/phoenix/commands/prettier.js +1 -1
  1703. package/dist/phoenix/commands/register-deployment.js +1 -1
  1704. package/dist/phoenix/commands/scene.js +1 -1
  1705. package/dist/phoenix/commands/screenshot.js +1 -1
  1706. package/dist/phoenix/commands/state.js +1 -1
  1707. package/dist/phoenix/commands/story-build.js +3 -3
  1708. package/dist/phoenix/commands/story-create.js +1 -1
  1709. package/dist/phoenix/commands/story-dev.js +2 -2
  1710. package/dist/phoenix/commands/sync.js +1 -1
  1711. package/dist/phoenix/commands/unlink.js +1 -1
  1712. package/dist/phoenix/commands/variants.js +1 -1
  1713. package/dist/phoenix/editor-server/commands-router.js +1 -1
  1714. package/dist/phoenix/editor-server/editor-server.d.ts +2 -13
  1715. package/dist/phoenix/editor-server/editor-server.js +1 -1
  1716. package/dist/phoenix/editor-server/spec-router.js +1 -1
  1717. package/dist/phoenix/editor-server/trpc.d.ts +2 -12
  1718. package/dist/phoenix/lingui/index.d.ts +1 -0
  1719. package/dist/phoenix/lingui/index.js +1 -0
  1720. package/dist/phoenix/lingui/lingui.d.ts +18 -0
  1721. package/dist/phoenix/lingui/lingui.js +1 -0
  1722. package/dist/phoenix/scripts/build-admin.js +1 -1
  1723. package/dist/phoenix/services/application-spec-project-watcher.d.ts +13 -8
  1724. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  1725. package/dist/phoenix/services/cli-credentials.d.ts +3 -0
  1726. package/dist/phoenix/services/cli-credentials.js +1 -1
  1727. package/dist/phoenix/services/cli-exit.d.ts +5 -0
  1728. package/dist/phoenix/services/cli-exit.js +1 -0
  1729. package/dist/phoenix/services/deployment/deployment-preparation-service.d.ts +28 -0
  1730. package/dist/phoenix/services/deployment/deployment-preparation-service.js +1 -0
  1731. package/dist/phoenix/services/deployment/generated-env-markers.d.ts +8 -0
  1732. package/dist/phoenix/services/deployment/generated-env-markers.js +1 -0
  1733. package/dist/phoenix/services/deployment/index.d.ts +2 -0
  1734. package/dist/phoenix/services/deployment/index.js +1 -0
  1735. package/dist/phoenix/services/index.d.ts +5 -1
  1736. package/dist/phoenix/services/index.js +1 -1
  1737. package/dist/phoenix/services/lingui-watcher.js +1 -1
  1738. package/dist/phoenix/services/phoenix-store.d.ts +3 -0
  1739. package/dist/phoenix/services/phoenix-store.js +1 -1
  1740. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  1741. package/dist/phoenix/services/session/editor-server-handle.d.ts +5 -0
  1742. package/dist/phoenix/services/session/editor-server-handle.js +1 -0
  1743. package/dist/phoenix/services/session/index.d.ts +2 -0
  1744. package/dist/phoenix/services/session/index.js +1 -0
  1745. package/dist/phoenix/services/session/phoenix-application.d.ts +82 -0
  1746. package/dist/phoenix/services/session/phoenix-application.js +2 -0
  1747. package/dist/phoenix/services/source-archive.d.ts +1 -0
  1748. package/dist/phoenix/services/source-archive.js +1 -1
  1749. package/dist/phoenix/services/swc.js +1 -1
  1750. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
  1751. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
  1752. package/dist/phoenix/services/telemetry/index.d.ts +3 -0
  1753. package/dist/phoenix/services/telemetry/index.js +1 -0
  1754. package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
  1755. package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
  1756. package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
  1757. package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
  1758. package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
  1759. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
  1760. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
  1761. package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
  1762. package/dist/phoenix/services/vite-config.js +1 -1
  1763. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  1764. package/dist/phoenix/services/webhook-service/tunnel.d.ts +1 -0
  1765. package/dist/phoenix/services/webhook-service/tunnel.js +1 -1
  1766. package/dist/phoenix/utils/git/index.d.ts +1 -0
  1767. package/dist/phoenix/utils/git/index.js +1 -0
  1768. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  1769. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  1770. package/dist/phoenix/utils/index.d.ts +5 -2
  1771. package/dist/phoenix/utils/index.js +1 -1
  1772. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1773. package/dist/phoenix/utils/node-version/index.js +1 -0
  1774. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1775. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1776. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1777. package/dist/phoenix/utils/package-info.js +1 -1
  1778. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1779. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1780. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1781. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1782. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1783. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1784. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1785. package/dist/phoenix/utils/run-command.js +1 -1
  1786. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1787. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1788. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1789. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1790. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  1791. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.d.ts +52 -0
  1792. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  1793. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1794. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1795. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1796. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  1797. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1798. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1799. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1800. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1801. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1802. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1803. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1804. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1805. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1806. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1807. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1808. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1809. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1810. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1811. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1812. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1813. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1814. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1815. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1816. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1817. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1818. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1819. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1820. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1821. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  1822. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1823. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1824. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1825. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1826. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1827. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1828. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1829. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1830. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1831. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1832. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1833. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1834. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1835. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1836. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1837. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1838. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1839. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1840. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1841. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1842. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1843. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1844. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1845. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1846. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1847. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1848. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1849. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1850. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1851. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1852. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1853. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1854. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1855. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1856. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1857. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1858. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1859. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1860. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1861. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1862. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1863. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1864. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1865. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1866. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1867. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1868. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1869. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1870. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1871. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1872. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1873. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1874. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1875. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1876. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1877. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1878. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1879. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1880. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +366 -46
  1881. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1882. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.d.ts +11 -0
  1883. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  1884. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.d.ts +9 -0
  1885. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  1886. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  1887. package/dist/react-sdk/configurator-routing/index.js +1 -0
  1888. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.d.ts +11 -0
  1889. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  1890. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.d.ts +7 -0
  1891. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.js +1 -0
  1892. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.d.ts +14 -0
  1893. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.js +1 -0
  1894. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.d.ts +18 -0
  1895. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.js +1 -0
  1896. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.d.ts +5 -0
  1897. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.js +1 -0
  1898. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.d.ts +17 -0
  1899. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.js +1 -0
  1900. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.d.ts +5 -0
  1901. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.js +1 -0
  1902. package/dist/react-sdk/configurator-ui-elements/index.d.ts +6 -0
  1903. package/dist/react-sdk/configurator-ui-elements/index.js +1 -0
  1904. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1905. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  1906. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1907. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1908. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  1909. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1910. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  1911. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  1912. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  1913. package/dist/react-sdk/domain-application-context/index.js +1 -1
  1914. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1915. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1916. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1917. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1918. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  1919. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  1920. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +10 -9
  1921. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1922. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1923. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1924. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1925. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1926. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1927. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1928. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  1929. package/dist/react-sdk/domain-context/index.js +1 -1
  1930. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1931. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1932. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1933. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1934. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1935. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1936. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1937. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  1938. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1939. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1940. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1941. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1942. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1943. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1944. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1945. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1946. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1947. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1948. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  1949. package/dist/react-sdk/elements/PhoenixEntityElement.js +1 -1
  1950. package/dist/react-sdk/elements/PhoenixLayoutElement.js +1 -1
  1951. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1952. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1953. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1954. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1955. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1956. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1957. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1958. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1959. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1960. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1961. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1962. package/dist/react-sdk/handlers/index.js +1 -1
  1963. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  1964. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1965. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1966. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1967. package/dist/react-sdk/index.d.ts +9 -0
  1968. package/dist/react-sdk/index.js +1 -1
  1969. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  1970. package/dist/react-sdk/integration/index.d.ts +1 -0
  1971. package/dist/react-sdk/integration/index.js +1 -0
  1972. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  1973. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  1974. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  1975. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  1976. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  1977. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1978. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1979. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1980. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1981. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1982. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1983. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1984. package/dist/react-sdk/loading-state/index.js +1 -1
  1985. package/dist/react-sdk/loading-state/loading-state-hooks.d.ts +22 -0
  1986. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1987. package/dist/react-sdk/notifications/index.d.ts +1 -0
  1988. package/dist/react-sdk/notifications/index.js +1 -0
  1989. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  1990. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  1991. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1992. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1993. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1994. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1995. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1996. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1997. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1998. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1999. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  2000. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  2001. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  2002. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  2003. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  2004. package/dist/react-sdk/page-elements/index.js +1 -0
  2005. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  2006. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  2007. package/dist/react-sdk/preset-selection/index.js +1 -0
  2008. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.d.ts +11 -0
  2009. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.js +1 -0
  2010. package/dist/react-sdk/provider-slots/configurator-provider-slot.d.ts +24 -0
  2011. package/dist/react-sdk/provider-slots/configurator-provider-slot.js +1 -0
  2012. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.d.ts +5 -0
  2013. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.js +1 -0
  2014. package/dist/react-sdk/provider-slots/index.d.ts +3 -0
  2015. package/dist/react-sdk/provider-slots/index.js +1 -0
  2016. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  2017. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  2018. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  2019. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  2020. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  2021. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  2022. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  2023. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  2024. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  2025. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  2026. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  2027. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  2028. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  2029. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  2030. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  2031. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  2032. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  2033. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  2034. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  2035. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  2036. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  2037. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  2038. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  2039. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  2040. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  2041. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  2042. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  2043. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  2044. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  2045. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  2046. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  2047. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  2048. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  2049. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  2050. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  2051. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  2052. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  2053. package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
  2054. package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
  2055. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  2056. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  2057. package/dist/ui-sdk/icons/__generated/index.d.ts +6 -0
  2058. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  2059. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  2060. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  2061. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  2062. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  2063. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  2064. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  2065. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  2066. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  2067. package/dist/ui-sdk/theme/types.d.ts +5 -1
  2068. package/dist/watch/glob-matcher.d.ts +4 -4
  2069. package/dist/watch/glob-matcher.js +1 -1
  2070. package/dist/watch/watch.d.ts +4 -4
  2071. package/dist/watch/watch.js +1 -1
  2072. package/dist/webhook/builders/common.d.ts +5 -0
  2073. package/dist/webhook/builders/webhook-builder.js +1 -1
  2074. package/package.json +58 -36
  2075. package/schema/domain-spec.json +1359 -217
  2076. package/dist/application-spec/core/eval-to-constant.d.ts +0 -14
  2077. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  2078. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  2079. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  2080. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  2081. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  2082. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  2083. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  2084. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  2085. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  2086. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  2087. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  2088. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  2089. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  2090. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  2091. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  2092. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  2093. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  2094. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  2095. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  2096. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  2097. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +0 -98
  2098. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +0 -70
  2099. package/dist/configurator/common/frontend-analytics.d.ts +0 -46
  2100. package/dist/configurator/common/frontend-analytics.js +0 -1
  2101. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  2102. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  2103. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  2104. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  2105. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  2106. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  2107. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  2108. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  2109. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.d.ts +0 -11
  2110. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  2111. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.d.ts +0 -10
  2112. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  2113. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  2114. package/dist/configurator/configurator-context/configurator-routing/index.js +0 -1
  2115. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.d.ts +0 -9
  2116. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  2117. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  2118. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  2119. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  2120. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  2121. package/dist/domain/actions/action-factory.d.ts +0 -11
  2122. package/dist/domain/actions/prepare-action-implementations.d.ts +0 -15
  2123. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  2124. package/dist/domain/application/element-registration.d.ts +0 -110
  2125. package/dist/domain/application/element-registration.js +0 -1
  2126. package/dist/domain/application/handler-registration.d.ts +0 -34
  2127. package/dist/domain/application/handler-registration.js +0 -1
  2128. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -23
  2129. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  2130. package/dist/domain/application/resource-builder.d.ts +0 -13
  2131. package/dist/domain/application/resource-builder.js +0 -1
  2132. package/dist/domain/available-system-components.d.ts +0 -11
  2133. package/dist/domain/available-system-components.js +0 -1
  2134. package/dist/domain/components/component-reader-types.d.ts +0 -44
  2135. package/dist/domain/components/debug-state-component.d.ts +0 -14
  2136. package/dist/domain/components/debug-state-component.js +0 -1
  2137. package/dist/domain/components/domain-component-optic.d.ts +0 -79
  2138. package/dist/domain/components/domain-component-optic.js +0 -16
  2139. package/dist/domain/components/drag-state-component.d.ts +0 -16
  2140. package/dist/domain/components/drag-state-component.js +0 -1
  2141. package/dist/domain/components/export-state-component.d.ts +0 -15
  2142. package/dist/domain/components/export-state-component.js +0 -1
  2143. package/dist/domain/components/fullscreen-state-component.d.ts +0 -14
  2144. package/dist/domain/components/fullscreen-state-component.js +0 -1
  2145. package/dist/domain/components/group-components-by-entity-id-and-name.d.ts +0 -9
  2146. package/dist/domain/components/group-components-by-entity-id-and-name.js +0 -1
  2147. package/dist/domain/components/hover-state-component.d.ts +0 -14
  2148. package/dist/domain/components/hover-state-component.js +0 -1
  2149. package/dist/domain/components/index.d.ts +0 -2
  2150. package/dist/domain/components/index.js +0 -1
  2151. package/dist/domain/components/legacy-filter.d.ts +0 -513
  2152. package/dist/domain/components/navigation-state-component.d.ts +0 -15
  2153. package/dist/domain/components/navigation-state-component.js +0 -1
  2154. package/dist/domain/components/selection-state-component.d.ts +0 -14
  2155. package/dist/domain/components/selection-state-component.js +0 -1
  2156. package/dist/domain/components/system-component-builder.d.ts +0 -12
  2157. package/dist/domain/components/system-component-builder.js +0 -1
  2158. package/dist/domain/components/system-component-filter.d.ts +0 -793
  2159. package/dist/domain/components/system-virtual-entity.js +0 -1
  2160. package/dist/domain/components/tool-state-component.d.ts +0 -14
  2161. package/dist/domain/components/tool-state-component.js +0 -1
  2162. package/dist/domain/components/updates.d.ts +0 -124
  2163. package/dist/domain/components/view-state-component.d.ts +0 -14
  2164. package/dist/domain/components/view-state-component.js +0 -1
  2165. package/dist/domain/components/viewport-state-component.d.ts +0 -29
  2166. package/dist/domain/components/viewport-state-component.js +0 -1
  2167. package/dist/domain/core/action.d.ts +0 -67
  2168. package/dist/domain/core/component.d.ts +0 -46
  2169. package/dist/domain/core/expression.d.ts +0 -50
  2170. package/dist/domain/core/migrations.d.ts +0 -99
  2171. package/dist/domain/core/migrations.js +0 -1
  2172. package/dist/domain/core/model.d.ts +0 -127
  2173. package/dist/domain/core/reflection.d.ts +0 -114
  2174. package/dist/domain/core/reflection.js +0 -1
  2175. package/dist/domain/core/state.d.ts +0 -10
  2176. package/dist/domain/domain-builder.d.ts +0 -49
  2177. package/dist/domain/domain-builder.js +0 -1
  2178. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -57
  2179. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  2180. package/dist/domain/expressions/constant-expressions.d.ts +0 -9
  2181. package/dist/domain/expressions/constant-expressions.js +0 -1
  2182. package/dist/domain/expressions/custom-expression.d.ts +0 -13
  2183. package/dist/domain/expressions/custom-expression.js +0 -1
  2184. package/dist/domain/expressions/index.d.ts +0 -1
  2185. package/dist/domain/expressions/index.js +0 -1
  2186. package/dist/domain/expressions/memoize-expression.d.ts +0 -17
  2187. package/dist/domain/expressions/prepare-domain-expressions.d.ts +0 -16
  2188. package/dist/domain/invariants/builtin-invariant.d.ts +0 -5
  2189. package/dist/domain/invariants/custom-invariants.d.ts +0 -22
  2190. package/dist/domain/invariants/custom-invariants.js +0 -1
  2191. package/dist/domain/invariants/invariants.d.ts +0 -77
  2192. package/dist/domain/invariants/invariants.js +0 -1
  2193. package/dist/domain/invariants/violation-component.js +0 -1
  2194. package/dist/domain/invariants/violation.d.ts +0 -85
  2195. package/dist/domain/invariants/violation.js +0 -1
  2196. package/dist/domain/project-modules/index.d.ts +0 -1
  2197. package/dist/domain/project-modules/index.js +0 -1
  2198. package/dist/domain/project-modules/project-modules.d.ts +0 -41
  2199. package/dist/domain/project-modules/project-modules.js +0 -1
  2200. package/dist/domain/relations/all-of-type-relation.d.ts +0 -33
  2201. package/dist/domain/relations/all-of-type-relation.js +0 -1
  2202. package/dist/domain/relations/component-factories.d.ts +0 -15
  2203. package/dist/domain/relations/component-factories.js +0 -1
  2204. package/dist/domain/relations/composed-of.d.ts +0 -12
  2205. package/dist/domain/relations/composed-of.js +0 -1
  2206. package/dist/domain/relations/direct-relation.d.ts +0 -29
  2207. package/dist/domain/relations/indirect-relation.d.ts +0 -81
  2208. package/dist/domain/relations/indirect-relation.js +0 -1
  2209. package/dist/domain/relations/reference-component.d.ts +0 -18
  2210. package/dist/domain/relations/reference-component.js +0 -1
  2211. package/dist/domain/relations/reference-field.d.ts +0 -7
  2212. package/dist/domain/relations/relation-factory.d.ts +0 -19
  2213. package/dist/domain/relations/relation-factory.js +0 -1
  2214. package/dist/domain/relations/relation-implementation.d.ts +0 -8
  2215. package/dist/domain/system-components/angle-indicator.d.ts +0 -21
  2216. package/dist/domain/system-components/angle-indicator.js +0 -1
  2217. package/dist/domain/system-components/attribute-switch.d.ts +0 -8
  2218. package/dist/domain/system-components/attribute-switch.js +0 -1
  2219. package/dist/domain/system-components/autorotate-camera-component.d.ts +0 -19
  2220. package/dist/domain/system-components/autorotate-camera-component.js +0 -1
  2221. package/dist/domain/system-components/basic-sidebar-footer.d.ts +0 -8
  2222. package/dist/domain/system-components/basic-sidebar-footer.js +0 -1
  2223. package/dist/domain/system-components/camera-based-hidden-entity-object.js +0 -1
  2224. package/dist/domain/system-components/camera-based-hidden-entity.js +0 -1
  2225. package/dist/domain/system-components/canvas-config.d.ts +0 -87
  2226. package/dist/domain/system-components/canvas-config.js +0 -1
  2227. package/dist/domain/system-components/canvas-custom-environment.js +0 -1
  2228. package/dist/domain/system-components/canvas-padding.d.ts +0 -25
  2229. package/dist/domain/system-components/canvas-padding.js +0 -1
  2230. package/dist/domain/system-components/canvas-preset-environment.d.ts +0 -37
  2231. package/dist/domain/system-components/canvas-preset-environment.js +0 -1
  2232. package/dist/domain/system-components/child-entity-recipe-hierarchy.d.ts +0 -21
  2233. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  2234. package/dist/domain/system-components/client-side-image.d.ts +0 -14
  2235. package/dist/domain/system-components/client-side-image.js +0 -1
  2236. package/dist/domain/system-components/color-value.js +0 -1
  2237. package/dist/domain/system-components/common/angle-indicator-schema.d.ts +0 -292
  2238. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  2239. package/dist/domain/system-components/common/dimension-indicator-schema.d.ts +0 -607
  2240. package/dist/domain/system-components/custom-header.d.ts +0 -11
  2241. package/dist/domain/system-components/custom-header.js +0 -1
  2242. package/dist/domain/system-components/custom-price-footer.js +0 -1
  2243. package/dist/domain/system-components/custom-sidebar-footer.d.ts +0 -11
  2244. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  2245. package/dist/domain/system-components/dimension-indicator.d.ts +0 -31
  2246. package/dist/domain/system-components/dimension-indicator.js +0 -1
  2247. package/dist/domain/system-components/editable-angle-indicator.d.ts +0 -38
  2248. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  2249. package/dist/domain/system-components/editable-distance-dimension-indicator.d.ts +0 -42
  2250. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  2251. package/dist/domain/system-components/editable-offset-indicator.d.ts +0 -41
  2252. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  2253. package/dist/domain/system-components/editable-size-indicator.d.ts +0 -38
  2254. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  2255. package/dist/domain/system-components/entity-header.d.ts +0 -22
  2256. package/dist/domain/system-components/entity-header.js +0 -1
  2257. package/dist/domain/system-components/exit-tool-mode-fab.d.ts +0 -25
  2258. package/dist/domain/system-components/exit-tool-mode-fab.js +0 -1
  2259. package/dist/domain/system-components/finalize-action.d.ts +0 -20
  2260. package/dist/domain/system-components/finalize-action.js +0 -1
  2261. package/dist/domain/system-components/finalize-component.js +0 -1
  2262. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  2263. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  2264. package/dist/domain/system-components/fixed-header.d.ts +0 -10
  2265. package/dist/domain/system-components/fixed-header.js +0 -1
  2266. package/dist/domain/system-components/floating-header.d.ts +0 -10
  2267. package/dist/domain/system-components/floating-header.js +0 -1
  2268. package/dist/domain/system-components/hidden-header.d.ts +0 -8
  2269. package/dist/domain/system-components/hidden-header.js +0 -1
  2270. package/dist/domain/system-components/hidden-sidebar-footer.d.ts +0 -21
  2271. package/dist/domain/system-components/hidden-sidebar-footer.js +0 -1
  2272. package/dist/domain/system-components/horizontal-tabs.d.ts +0 -28
  2273. package/dist/domain/system-components/horizontal-tabs.js +0 -1
  2274. package/dist/domain/system-components/list-selector-dimension-indicator.d.ts +0 -30
  2275. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  2276. package/dist/domain/system-components/multilingual-text-value.js +0 -1
  2277. package/dist/domain/system-components/navigation-steps.d.ts +0 -19
  2278. package/dist/domain/system-components/navigation-steps.js +0 -1
  2279. package/dist/domain/system-components/offset-anchors.d.ts +0 -20
  2280. package/dist/domain/system-components/offset-anchors.js +0 -1
  2281. package/dist/domain/system-components/offset-indicator.d.ts +0 -84
  2282. package/dist/domain/system-components/offset-indicator.js +0 -1
  2283. package/dist/domain/system-components/offset.d.ts +0 -31
  2284. package/dist/domain/system-components/offset.js +0 -1
  2285. package/dist/domain/system-components/other-action.d.ts +0 -14
  2286. package/dist/domain/system-components/other-action.js +0 -1
  2287. package/dist/domain/system-components/property-page.d.ts +0 -16
  2288. package/dist/domain/system-components/property-page.js +0 -1
  2289. package/dist/domain/system-components/read-sidebar-footer.d.ts +0 -8
  2290. package/dist/domain/system-components/read-sidebar-footer.js +0 -1
  2291. package/dist/domain/system-components/replace-entity-recipe-hierarchy.d.ts +0 -21
  2292. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  2293. package/dist/domain/system-components/rotatable.js +0 -1
  2294. package/dist/domain/system-components/rotation-handle.d.ts +0 -53
  2295. package/dist/domain/system-components/rotation-handle.js +0 -1
  2296. package/dist/domain/system-components/save-template-thumbnail.d.ts +0 -14
  2297. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  2298. package/dist/domain/system-components/scene-entity-add-fab.d.ts +0 -32
  2299. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  2300. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  2301. package/dist/domain/system-components/scene-entity-control.js +0 -1
  2302. package/dist/domain/system-components/scene-entity-delete-fab.d.ts +0 -19
  2303. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  2304. package/dist/domain/system-components/scene-entity-floor-object.js +0 -1
  2305. package/dist/domain/system-components/scene-entity-html-hotspot.d.ts +0 -27
  2306. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  2307. package/dist/domain/system-components/scene-entity-navigation-hotspot.d.ts +0 -20
  2308. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  2309. package/dist/domain/system-components/scene-entity-object-html-hotspot.d.ts +0 -31
  2310. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  2311. package/dist/domain/system-components/scene-entity-select-hotspot.d.ts +0 -5
  2312. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  2313. package/dist/domain/system-components/scene-entity-wall-object.js +0 -1
  2314. package/dist/domain/system-components/selectable-component.js +0 -1
  2315. package/dist/domain/system-components/sidebar-tabs.d.ts +0 -29
  2316. package/dist/domain/system-components/sidebar-tabs.js +0 -1
  2317. package/dist/domain/system-components/simple-summary.js +0 -1
  2318. package/dist/domain/system-components/size.d.ts +0 -21
  2319. package/dist/domain/system-components/size.js +0 -1
  2320. package/dist/domain/system-components/sketching-draw.d.ts +0 -17
  2321. package/dist/domain/system-components/sketching-draw.js +0 -1
  2322. package/dist/domain/system-components/sketching-edit.d.ts +0 -28
  2323. package/dist/domain/system-components/sketching-edit.js +0 -1
  2324. package/dist/domain/system-components/summary-component.js +0 -1
  2325. package/dist/domain/system-components/text-value.js +0 -1
  2326. package/dist/domain/system-components/tool-controls.js +0 -1
  2327. package/dist/domain/system-components/tool-menu-fab.d.ts +0 -40
  2328. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  2329. package/dist/domain/system-components/toolbar.d.ts +0 -13
  2330. package/dist/domain/system-components/toolbar.js +0 -1
  2331. package/dist/domain/system-components/universal-sidebar-footer.d.ts +0 -12
  2332. package/dist/domain/system-components/universal-sidebar-footer.js +0 -1
  2333. package/dist/domain/system-components/view-controls.js +0 -1
  2334. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  2335. package/dist/phoenix/commands/generate-project-files.js +0 -1
  2336. package/dist/phoenix/commands/generated-env-markers.d.ts +0 -7
  2337. package/dist/phoenix/commands/generated-env-markers.js +0 -1
  2338. package/dist/phoenix/services/lingui.d.ts +0 -7
  2339. package/dist/phoenix/services/lingui.js +0 -1
  2340. package/dist/phoenix/services/phoenix-application.d.ts +0 -21
  2341. package/dist/phoenix/services/phoenix-application.js +0 -1
  2342. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  2343. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  2344. package/dist/react-sdk/loading-state/LoadingStateProvider.d.ts +0 -31
  2345. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  2346. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  2347. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  2348. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  2349. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  2350. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
  2351. /package/dist/{domain/components/component-reader-types.js → application-spec/generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  2352. /package/dist/{domain/core/action.js → application-spec/parse-application-files/spec/expressions/expression-read.js} +0 -0
  2353. /package/dist/{domain/relations/reference-field.js → configurator/ui/assistant/form/form-model.js} +0 -0
  2354. /package/dist/{domain/relations/relation-implementation.js → configurator/ui/assistant/form/form-state.js} +0 -0
  2355. /package/dist/{domain/core/expression.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  2356. /package/dist/domain/{actions → core/action}/action-factory.js +0 -0
  2357. /package/dist/domain/{components → core/component}/legacy-filter.js +0 -0
  2358. /package/dist/domain/{components → core/component}/system-component-filter.js +0 -0
  2359. /package/dist/domain/{components → core/component}/system-virtual-entity.d.ts +0 -0
  2360. /package/dist/domain/{components → core/component}/updates.js +0 -0
  2361. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  2362. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  2363. /package/dist/domain/core/{alias.d.ts → model/alias.d.ts} +0 -0
  2364. /package/dist/domain/core/{alias.js → model/alias.js} +0 -0
  2365. /package/dist/domain/core/{common-definitions.d.ts → model/common-definitions.d.ts} +0 -0
  2366. /package/dist/domain/core/{common-definitions.js → model/common-definitions.js} +0 -0
  2367. /package/dist/domain/core/{component.js → model/component.js} +0 -0
  2368. /package/dist/domain/core/{model.js → model/model.js} +0 -0
  2369. /package/dist/domain/core/{preset.d.ts → model/preset.d.ts} +0 -0
  2370. /package/dist/domain/core/{preset.js → model/preset.js} +0 -0
  2371. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  2372. /package/dist/domain/core/{state.js → state/state.js} +0 -0
  2373. /package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.js +0 -0
  2374. /package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  2375. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  2376. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  2377. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  2378. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  2379. /package/dist/domain/{system-components → extensions}/common/dimension-indicator-schema.js +0 -0
  2380. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  2381. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  2382. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  2383. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  2384. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  2385. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  2386. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  2387. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  2388. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  2389. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  2390. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  2391. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  2392. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  2393. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  2394. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  2395. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  2396. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  2397. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  2398. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  2399. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
  2400. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  2401. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  2402. /package/dist/{application-spec/parse-application-files/spec/components/component-entry.js → domain/spec/components/sdk-code-ref.js} +0 -0
  2403. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → domain/spec/expressions/sdk-expression-implementation.js} +0 -0
  2404. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  2405. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  2406. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  2407. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  2408. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  2409. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  2410. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  2411. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -1 +1 @@
1
- import{readFileSync as e}from"fs";import{dirname as t,join as o}from"path";import{fileURLToPath as r}from"url";import{truncateAtWord as n}from"../scripts/docs-utils.js";let s=o(t(r(import.meta.url)),"../.."),a=o(s,"docs/index.json");export const flattenDocs=e=>{let t=[],o=e=>{for(let r of e)t.push(...r.docs),o(r.subcategories)};return o(e),t};export const findCategory=(e,t)=>{let o=t.toLowerCase(),r=e=>{for(let t of e){if(t.name.toLowerCase()===o)return t;let e=r(t.subcategories);if(e)return e}};return r(e)};let c=e=>{let t=e.docs.length;for(let o of e.subcategories)t+=c(o);return t};export const formatIndex=e=>{let t=flattenDocs(e.categories).length,o=[`Phoenix SDK Documentation (${t} docs)`,"","Browse SDK docs for guides on domain model, components, layouts, 3D scene,","webhooks, and more. Use flags below to search, read, or browse by category.","","Categories:"];for(let t of e.categories){let e=c(t),r=t.subcategories.length>0?` (${t.subcategories.map(e=>e.name).join(", ")})`:"";o.push(` ${t.name} — ${e} docs${r}`)}return o.push("","Usage:"," pnpm phoenix docs -s 'snackbar' Search all doc content"," pnpm phoenix docs --dir Print docs directory for grep"," pnpm phoenix docs -l List all doc paths",' pnpm phoenix docs -l | grep "camera" Search doc titles'," pnpm phoenix docs -r <path> Read a doc (raw MDX to stdout)",' pnpm phoenix docs -r <path> | grep "ex" Search within a doc'," pnpm phoenix docs -c Phoenix Browse docs in a category"),o.join("\n")};export const formatDocPaths=e=>flattenDocs(e.categories).map(e=>`${e.path} ${e.title}`).join("\n");export const searchDocs=(e,t,o)=>{let r=o.toLowerCase();return flattenDocs(e.categories).map(e=>{let n=t(e.path).split("\n").flatMap((e,t)=>{let n=e.toLowerCase().indexOf(r);return n>=0?[{line:t+1,text:e,matchIndex:n,matchLength:o.length}]:[]}),s=[e.title,e.description,...e.category].some(e=>e.toLowerCase().includes(r));return{entry:e,matches:n,matchCount:n.length+Number(s),metadataMatch:s}}).filter(e=>e.matchCount>0).sort((e,t)=>t.matchCount-e.matchCount||e.entry.path.localeCompare(t.entry.path))};export const formatSearchResults=(e,t={})=>{let{maxSnippets:o=3,maxLineLength:r=120}=t;return e.map(e=>{let t=[`${e.entry.path} ${e.entry.title}`],s=e.matches.slice(0,o);for(let e of s){let o=e.text.trim(),s=e.text.length-e.text.trimStart().length,a=Math.max(0,e.matchIndex-s),c=n(o,r),i=o.slice(a,a+e.matchLength);if(c.toLowerCase().includes(i.toLowerCase())){t.push(` L${e.line}: ${c}`);continue}let l=Math.max(1,r-6),h=Math.min(e.matchLength,l),p=Math.min(Math.max(0,a-Math.floor((l-h)/2)),Math.max(0,o.length-l)),m=Math.min(o.length,p+l),d=p>0?"...":"",f=m<o.length?"...":"";t.push(` L${e.line}: ${d}${o.slice(p,m)}${f}`)}let a=e.matches.length-s.length;return a>0&&t.push(` (+${a} more)`),t.join("\n")}).join("\n\n")};export const formatCategory=e=>{let t=c(e),o=[`${e.name} (${t} docs)`,""],r=(e,t)=>{let s=" ".repeat(t);for(let t of e.docs){let e=t.description?` — ${n(t.description,60)}`:"";o.push(`${s}${t.title}${e}`),o.push(`${s} ${t.path}`)}for(let n of e.subcategories){let e=c(n);o.push(`${s}${n.name} (${e} docs)`),r(n,t+1)}};return r(e,1),o.join("\n")};export const runDocsCommand=async(t,r)=>{let{logger:n}=r;try{if(t.dir)return void console.log(o(s,"docs"));let r=e(a,"utf-8"),c=JSON.parse(r);if(t.list)return void console.log(formatDocPaths(c));if(t.search){let r=searchDocs(c,t=>e(o(s,t),"utf-8"),t.search);0===r.length&&(n.error(`No docs match "${t.search}"`),process.exit(1)),console.log(formatSearchResults(r));return}if(t.read){let r=o(s,t.read),n=e(r,"utf-8");console.log(n);return}if(t.category){let e=findCategory(c.categories,t.category);if(!e){n.error(`Category "${t.category}" not found`);let e=c.categories.map(e=>e.name);n.info(`Available categories: ${e.join(", ")}`),process.exit(1)}console.log(formatCategory(e));return}console.log(formatIndex(c))}catch(e){throw e instanceof Error&&"code"in e&&"ENOENT"===e.code&&(n.error("Docs index not found. Run docs generation first (pnpm run generate:docs-index)"),process.exit(1)),e}};
1
+ import{readFileSync as e}from"fs";import{dirname as t,join as o}from"path";import{fileURLToPath as r}from"url";import{truncateAtWord as n}from"../scripts/docs-utils.js";import{exitCli as a}from"../services/index.js";let s=o(t(r(import.meta.url)),"../.."),c=o(s,"docs/index.json");export const flattenDocs=e=>{let t=[],o=e=>{for(let r of e)t.push(...r.docs),o(r.subcategories)};return o(e),t};export const findCategory=(e,t)=>{let o=t.toLowerCase(),r=e=>{for(let t of e){if(t.name.toLowerCase()===o)return t;let e=r(t.subcategories);if(e)return e}};return r(e)};let i=e=>{let t=e.docs.length;for(let o of e.subcategories)t+=i(o);return t};export const formatIndex=e=>{let t=flattenDocs(e.categories).length,o=[`Phoenix SDK Documentation (${t} docs)`,"","Browse SDK docs for guides on domain model, components, layouts, 3D scene,","webhooks, and more. Use flags below to search, read, or browse by category.","","Categories:"];for(let t of e.categories){let e=i(t),r=t.subcategories.length>0?` (${t.subcategories.map(e=>e.name).join(", ")})`:"";o.push(` ${t.name} — ${e} docs${r}`)}return o.push("","Usage:"," pnpm phoenix docs -s 'snackbar' Search all doc content"," pnpm phoenix docs --dir Print docs directory for grep"," pnpm phoenix docs -l List all doc paths",' pnpm phoenix docs -l | grep "camera" Search doc titles'," pnpm phoenix docs -r <path> Read a doc (raw MDX to stdout)",' pnpm phoenix docs -r <path> | grep "ex" Search within a doc'," pnpm phoenix docs -c Phoenix Browse docs in a category"),o.join("\n")};export const formatDocPaths=e=>flattenDocs(e.categories).map(e=>`${e.path} ${e.title}`).join("\n");export const searchDocs=(e,t,o)=>{let r=o.toLowerCase();return flattenDocs(e.categories).map(e=>{let n=t(e.path).split("\n").flatMap((e,t)=>{let n=e.toLowerCase().indexOf(r);return n>=0?[{line:t+1,text:e,matchIndex:n,matchLength:o.length}]:[]}),a=[e.title,e.description,...e.category].some(e=>e.toLowerCase().includes(r));return{entry:e,matches:n,matchCount:n.length+Number(a),metadataMatch:a}}).filter(e=>e.matchCount>0).sort((e,t)=>t.matchCount-e.matchCount||e.entry.path.localeCompare(t.entry.path))};export const formatSearchResults=(e,t={})=>{let{maxSnippets:o=3,maxLineLength:r=120}=t;return e.map(e=>{let t=[`${e.entry.path} ${e.entry.title}`],a=e.matches.slice(0,o);for(let e of a){let o=e.text.trim(),a=e.text.length-e.text.trimStart().length,s=Math.max(0,e.matchIndex-a),c=n(o,r),i=o.slice(s,s+e.matchLength);if(c.toLowerCase().includes(i.toLowerCase())){t.push(` L${e.line}: ${c}`);continue}let l=Math.max(1,r-6),h=Math.min(e.matchLength,l),p=Math.min(Math.max(0,s-Math.floor((l-h)/2)),Math.max(0,o.length-l)),m=Math.min(o.length,p+l),d=p>0?"...":"",f=m<o.length?"...":"";t.push(` L${e.line}: ${d}${o.slice(p,m)}${f}`)}let s=e.matches.length-a.length;return s>0&&t.push(` (+${s} more)`),t.join("\n")}).join("\n\n")};export const formatCategory=e=>{let t=i(e),o=[`${e.name} (${t} docs)`,""],r=(e,t)=>{let a=" ".repeat(t);for(let t of e.docs){let e=t.description?` — ${n(t.description,60)}`:"";o.push(`${a}${t.title}${e}`),o.push(`${a} ${t.path}`)}for(let n of e.subcategories){let e=i(n);o.push(`${a}${n.name} (${e} docs)`),r(n,t+1)}};return r(e,1),o.join("\n")};export const runDocsCommand=async(t,r)=>{let{logger:n}=r;try{if(t.dir)return void console.log(o(s,"docs"));let r=e(c,"utf-8"),i=JSON.parse(r);if(t.list)return void console.log(formatDocPaths(i));if(t.search){let r=searchDocs(i,t=>e(o(s,t),"utf-8"),t.search);if(0===r.length){n.error(`No docs match "${t.search}"`),await a(1);return}console.log(formatSearchResults(r));return}if(t.read){let r=o(s,t.read),n=e(r,"utf-8");console.log(n);return}if(t.category){let e=findCategory(i.categories,t.category);if(!e){n.error(`Category "${t.category}" not found`);let e=i.categories.map(e=>e.name);n.info(`Available categories: ${e.join(", ")}`),await a(1);return}console.log(formatCategory(e));return}console.log(formatIndex(i))}catch(e){if(e instanceof Error&&"code"in e&&"ENOENT"===e.code){n.error("Docs index not found. Run docs generation first (pnpm run generate:docs-index)"),await a(1);return}throw e}};
@@ -1 +1 @@
1
- import{createApiBaseClient as e}from"#package/client";import{readUploadLinks as t,uploadFilesWithPresignedUrls as i}from"../utils/index.js";export const runFinishDeploymentCommand=async(o,s)=>{let{logger:a}=s;try{a.step("Finishing deployment");let{uuid:s,uploadLinksFile:n,apiKey:l,projectKey:r,projectSlug:p,lambdaUrl:d,serverUrl:c,skipUpload:m}=o;if(a.debug(`Using deployment ID: ${s}`),a.debug(`Upload links file: ${n}, project: ${p}, lambda: ${d}`),m)a.info("Skipping upload (skipUpload flag set)");else{let e=await t(n,{logger:a});a.info("Uploading files to S3..."),await i(e,{logger:a})}a.info("Activating deployment..."),a.debug(`Creating API client for server: ${c}`);let f=e(c),{error:y}=await f.POST("/deployments/{deploymentId}/activate",{params:{path:{deploymentId:s}},headers:{"x-api-key":l,"x-project-key":r,"x-project-slug":p},body:{lambdaUrl:d}});if(y)throw Error(`Failed to activate deployment with server: ${y.message}`);a.info("Deployment activated successfully"),a.success("Deployment finished successfully!")}catch(e){a.error(`Deployment finish failed: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{createApiBaseClient as e}from"#package/client";import{exitCli as t}from"../services/index.js";import{readUploadLinks as i,uploadFilesWithPresignedUrls as o}from"../utils/index.js";export const runFinishDeploymentCommand=async(a,s)=>{let{logger:n}=s;try{n.step("Finishing deployment");let{uuid:t,uploadLinksFile:s,apiKey:l,projectKey:r,projectSlug:p,lambdaUrl:d,serverUrl:m,skipUpload:c}=a;if(n.debug(`Using deployment ID: ${t}`),n.debug(`Upload links file: ${s}, project: ${p}, lambda: ${d}`),c)n.info("Skipping upload (skipUpload flag set)");else{let e=await i(s,{logger:n});n.info("Uploading files to S3..."),await o(e,{logger:n})}n.info("Activating deployment..."),n.debug(`Creating API client for server: ${m}`);let f=e(m),{error:y}=await f.POST("/deployments/{deploymentId}/activate",{params:{path:{deploymentId:t}},headers:{"x-api-key":l,"x-project-key":r,"x-project-slug":p},body:{lambdaUrl:d}});if(y)throw Error(`Failed to activate deployment with server: ${y.message}`);n.info("Deployment activated successfully"),n.success("Deployment finished successfully!")}catch(e){n.error(`Deployment finish failed: ${e instanceof Error?e.message:String(e)}`,e),await t(1)}};
@@ -1 +1 @@
1
- import{runCommand as t}from"../utils/index.js";import{formatFiles as e}from"./prettier.js";export const runFixCommand=async(i,r)=>{let{logger:s}=r,o=!0===i.lint||!0===i.format,n=!o||!0===i.lint,c=!o||!0===i.format;try{s.step("Running fixes"),n&&await t({command:"eslint",args:["src","--fix"],description:"ESLint fix",quiet:!0},{logger:s}),c&&(s.step("Prettier fix"),await e(".",{logger:s}),s.success("Prettier fix completed")),s.success("Fixes completed!")}catch(t){s.error(`Fix failed: ${t instanceof Error?t.message:String(t)}`,t),process.exit(1)}};
1
+ import{eslintConfigArgs as e}from"../check-configs/index.js";import{exitCli as t}from"../services/index.js";import{runSdkTool as i}from"../utils/index.js";import{formatFiles as r}from"./prettier.js";export const runFixCommand=async(s,o)=>{let{logger:n}=o,a=!0===s.lint||!0===s.format,c=!a||!0===s.lint,m=!a||!0===s.format;try{n.step("Running fixes"),c&&await i({tool:{packageName:"eslint",binName:"eslint"},args:["src","--fix","--no-error-on-unmatched-pattern",...e()],description:"ESLint fix",quiet:!0},{logger:n}),m&&(n.step("Prettier fix"),await r(".",{logger:n}),n.success("Prettier fix completed")),n.success("Fixes completed!")}catch(e){n.error(`Fix failed: ${e instanceof Error?e.message:String(e)}`,e),await t(1)}};
@@ -12,6 +12,7 @@ export { prepareDevelopmentEnvironment } from '../services/prepare-development-e
12
12
  export { prepareLocalEnvironment } from './prepare-local-environment-command.js';
13
13
  export { runFinishDeploymentCommand } from './finish-deployment-command.js';
14
14
  export { runDeploymentBuildEnvsCommand } from './deployment-build-envs-command.js';
15
+ export { findSdkPeerMismatches, runDepsCommand } from './deps/index.js';
15
16
  export { runDevCommand } from './dev.js';
16
17
  export { runFixCommand } from './fix.js';
17
18
  export { runLinkCommand } from './link.js';
@@ -1 +1 @@
1
- export{runBuildCommand}from"./build.js";export{runCheckCommand}from"./check.js";export{runCleanCommand}from"./clean.js";export{runActivateDeploymentCommand}from"./activate-deployment.js";export{runCreateEnvironmentCommand}from"./create-environment.js";export{runCleanupEnvironmentCommand}from"./cleanup-environment.js";export{runListEnvironmentsCommand}from"./list-environments.js";export{runRegisterDeploymentCommand}from"./register-deployment.js";export{runPrepareDeploymentCommand}from"./prepare-deployment-command.js";export{prepareDevelopmentEnvironment}from"../services/prepare-development-environment.js";export{prepareLocalEnvironment}from"./prepare-local-environment-command.js";export{runFinishDeploymentCommand}from"./finish-deployment-command.js";export{runDeploymentBuildEnvsCommand}from"./deployment-build-envs-command.js";export{runDevCommand}from"./dev.js";export{runFixCommand}from"./fix.js";export{runLinkCommand}from"./link.js";export{runUnlinkCommand}from"./unlink.js";export{runPrepareCiCommand}from"./prepare-ci.js";export{runStoryCommand}from"./story.js";export{runStoryBuildCommand}from"./story-build.js";export{runStoryCreateCommand}from"./story-create.js";export{runStoryDevCommand}from"./story-dev.js";export{runInitCommand}from"./init.js";export{runSyncCommand}from"./sync.js";export{runChangelogCommand}from"./changelog.js";export{runDocsCommand}from"./docs.js";export{runInspectAssetsCommand}from"./inspect-assets.js";export{runScreenshotCommand}from"./screenshot.js";export{runStateCommand}from"./state.js";export{runDataCommand}from"./data.js";export{runSceneCommand}from"./scene.js";export{runVariantsCommand}from"./variants.js";export{runLoginCommand}from"./login.js";export{runLogoutCommand}from"./logout.js";export{runDeployCommand}from"./deploy.js";export{runFeedbackCommand}from"./feedback.js";export{runExtractSourcesCommand}from"./extract-sources-command.js";
1
+ export{runBuildCommand}from"./build.js";export{runCheckCommand}from"./check.js";export{runCleanCommand}from"./clean.js";export{runActivateDeploymentCommand}from"./activate-deployment.js";export{runCreateEnvironmentCommand}from"./create-environment.js";export{runCleanupEnvironmentCommand}from"./cleanup-environment.js";export{runListEnvironmentsCommand}from"./list-environments.js";export{runRegisterDeploymentCommand}from"./register-deployment.js";export{runPrepareDeploymentCommand}from"./prepare-deployment-command.js";export{prepareDevelopmentEnvironment}from"../services/prepare-development-environment.js";export{prepareLocalEnvironment}from"./prepare-local-environment-command.js";export{runFinishDeploymentCommand}from"./finish-deployment-command.js";export{runDeploymentBuildEnvsCommand}from"./deployment-build-envs-command.js";export{findSdkPeerMismatches,runDepsCommand}from"./deps/index.js";export{runDevCommand}from"./dev.js";export{runFixCommand}from"./fix.js";export{runLinkCommand}from"./link.js";export{runUnlinkCommand}from"./unlink.js";export{runPrepareCiCommand}from"./prepare-ci.js";export{runStoryCommand}from"./story.js";export{runStoryBuildCommand}from"./story-build.js";export{runStoryCreateCommand}from"./story-create.js";export{runStoryDevCommand}from"./story-dev.js";export{runInitCommand}from"./init.js";export{runSyncCommand}from"./sync.js";export{runChangelogCommand}from"./changelog.js";export{runDocsCommand}from"./docs.js";export{runInspectAssetsCommand}from"./inspect-assets.js";export{runScreenshotCommand}from"./screenshot.js";export{runStateCommand}from"./state.js";export{runDataCommand}from"./data.js";export{runSceneCommand}from"./scene.js";export{runVariantsCommand}from"./variants.js";export{runLoginCommand}from"./login.js";export{runLogoutCommand}from"./logout.js";export{runDeployCommand}from"./deploy.js";export{runFeedbackCommand}from"./feedback.js";export{runExtractSourcesCommand}from"./extract-sources-command.js";
@@ -1,15 +1,27 @@
1
1
  import type { CommandContext } from './types.js';
2
+ /**
3
+ * The versions of the tools the SDK runs itself and editors load from the project, taken from the SDK's own
4
+ * `dependencies`, so the editor and `phoenix check` use the same release.
5
+ */
6
+ export interface EditorToolVersions {
7
+ readonly eslint: string;
8
+ readonly prettier: string;
9
+ }
2
10
  export interface InitCommandProps {
3
11
  readonly sdkVersion: string;
12
+ readonly editorToolVersions: EditorToolVersions;
4
13
  /** Directory to initialize; defaults to the working directory. */
5
14
  readonly projectRoot?: string;
6
15
  }
7
16
  /**
8
- * Starts a Phoenix project: writes a `package.json` that depends on this CLI's SDK version when the folder has none,
9
- * the starter spec and the pnpm settings the first install needs, and switches the project to the application-spec
10
- * pipeline. It touches no server and asks
11
- * nothing: the starter spec names the default project of whichever workspace the developer signs in to, and
12
- * everything else is generated by sync or the build.
17
+ * Starts a Phoenix project: writes a `package.json` that depends on this CLI's SDK version when the folder has none
18
+ * and the starter spec, and switches the project to the application-spec pipeline. The project's `package.json` gains
19
+ * what it does not have yet: the SDK's required peers, ESLint and Prettier, and the `dev`, `build`, `deploy`, `check`
20
+ * and `fix` scripts. An entry the project already has stays as it is. It writes no package-manager settings or
21
+ * `packageManager` field: the project installs with any package manager, and its maintainer owns those settings.
22
+ * The next steps it prints name the package manager that ran it. It touches no server and asks nothing: the starter
23
+ * spec names the default project of whichever workspace the developer signs in to, and everything else is generated
24
+ * by sync or the build.
13
25
  *
14
26
  * Refuses when a `spec/` folder exists, and when an existing `package.json` does not depend on the SDK.
15
27
  */
@@ -1 +1 @@
1
- import{existsSync as e}from"fs";import{mkdir as n,readFile as t,writeFile as i}from"fs/promises";import{basename as o,dirname as r,join as p}from"path";import{ensureWorkspaceInstallSettings as a}from"../utils/index.js";import{starterSpecFiles as s}from"./init-starter-spec.js";let c="@salsita-ai/sdk",l=async e=>{let n=`Install the SDK first (\`pnpm add ${c}\`), then rerun \`pnpm phoenix init\`.`,i=JSON.parse(await t(e,"utf-8"));if("object"!=typeof i||null===i||Array.isArray(i))throw Error(`phoenix init could not read package.json because it is not a JSON object. ${n}`);if(!["dependencies","devDependencies"].some(e=>{let n=Reflect.get(i,e);return"object"==typeof n&&null!==n&&c in n}))throw Error(`phoenix init found no ${c} dependency in package.json. ${n}`);return{...i}},d=async e=>{for(let t of s){let o=p(e,t.path);await n(r(o),{recursive:!0}),await i(o,t.content)}},m=async(e,n)=>{let t=n.phoenix;await i(e,JSON.stringify({...n,phoenix:{..."object"==typeof t&&null!==t?t:{},applicationFlow:!0}},null,2)+"\n")};export const runInitCommand=async(t,{logger:i})=>{var r,s;let f,u=t.projectRoot??process.cwd(),h=p(u,"package.json");if(e(p(u,"spec")))throw Error("phoenix init found an existing spec/ folder. init only starts new projects, and writing a starter spec would overwrite or mix with the existing one. To update an existing project, run `pnpm phoenix sync`; to start over, run init in an empty project folder.");let w=e(h)?await l(h):(r=u,s=t.sdkVersion,{name:(f=o(r).toLowerCase().replace(/[^a-z0-9._-]+/g,"-").replace(/^[._-]+|[-]+$/g,"")).length>0?f:"phoenix-configurator",private:!0,type:"module",dependencies:{[c]:s},devDependencies:{"@lingui/cli":"5.9.5","@lingui/swc-plugin":"5.11.0"}});i.step(`Writing the starter project to ${u}`),await n(u,{recursive:!0}),await d(u),await m(h,w),a(u),i.success(`Phoenix project created in ${u}.`),i.info("\nNext steps, in the project folder:\n pnpm install\n pnpm phoenix sync\n pnpm phoenix login <workspace>\n pnpm phoenix dev\n pnpm phoenix deploy\n\nDeveloping against a Studio development environment instead? Paste its .env block into .env before phoenix dev.")};
1
+ import{existsSync as e}from"fs";import{mkdir as t,readFile as i,writeFile as n}from"fs/promises";import{basename as o,dirname as r,join as a}from"path";import{findPackageManagerCommands as s}from"../utils/index.js";import{addMissingDependencies as p,addMissingSdkPeers as c}from"./deps/index.js";import{starterSpecFiles as d}from"./init-starter-spec.js";let l="@salsita-ai/sdk",h={dev:"phoenix dev",build:"phoenix build",deploy:"phoenix deploy",check:"phoenix check",fix:"phoenix fix"},f=(e,t)=>void 0===e?`\`phoenix ${t}\` through your package manager`:`\`${e.phoenix(t)}\``,u=async(e,t)=>{let n=void 0===t?`add ${l} with your package manager`:`\`${t.add(l)}\``,o=`Install the SDK first (${n}), then rerun ${f(t,"init")}.`,r=JSON.parse(await i(e,"utf-8"));if("object"!=typeof r||null===r||Array.isArray(r))throw Error(`phoenix init could not read package.json because it is not a JSON object. ${o}`);if(!["dependencies","devDependencies"].some(e=>{let t=Reflect.get(r,e);return"object"==typeof t&&null!==t&&l in t}))throw Error(`phoenix init found no ${l} dependency in package.json. ${o}`);return{...r}},m=async e=>{for(let i of d){let o=a(e,i.path);await t(r(o),{recursive:!0}),await n(o,i.content)}},x=async(e,t,i)=>{let o=t.phoenix,r=t.scripts,a="object"==typeof r&&null!==r?r:{},s=Object.fromEntries(Object.entries(h).filter(([e])=>!(e in a))),d=p(c({...t,scripts:{...a,...s}},{useClerk:!1}),Object.entries(i).map(([e,t])=>({name:e,version:t,field:"devDependencies"})));await n(e,JSON.stringify({...d,phoenix:{..."object"==typeof o&&null!==o?o:{},applicationFlow:!0}},null,2)+"\n")};export const runInitCommand=async(i,{logger:n})=>{var r,p;let c,d,h=i.projectRoot??process.cwd(),g=a(h,"package.json"),j=s(process.env.npm_config_user_agent);if(e(a(h,"spec")))throw Error(`phoenix init found an existing spec/ folder. init only starts new projects, and writing a starter spec would overwrite or mix with the existing one. To update an existing project, run ${f(j,"sync")}; to start over, run init in an empty project folder.`);let y=e(g)?await u(g,j):(r=h,p=i.sdkVersion,{name:(c=o(r).toLowerCase().replace(/[^a-z0-9._-]+/g,"-").replace(/^[._-]+|[-]+$/g,"")).length>0?c:"phoenix-configurator",private:!0,type:"module",scripts:{},dependencies:{[l]:p}});n.step(`Writing the starter project to ${h}`),await t(h,{recursive:!0}),await m(h),await x(g,y,i.editorToolVersions),n.success(`Phoenix project created in ${h}.`),n.info(["",...(d=["sync","login <workspace>","dev","deploy"],void 0===j?["Next steps, in the project folder, through your package manager:"," install the dependencies",...d.map(e=>` phoenix ${e}`)]:["Next steps, in the project folder:",` ${j.install}`,...d.map(e=>` ${j.phoenix(e)}`)]),"","Developing against a Studio development environment instead? Paste its .env block into .env before phoenix dev."].join("\n"))};
@@ -1 +1 @@
1
- import{globby as e}from"globby";import{resolve as o}from"path";import{inspectGltfFile as t}from"./gltf-inspector.js";let n=e=>e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;export const formatSummary=e=>{let o=[`File: ${e.filePath}`,`Size: ${n(e.fileSize)}${e.fileSize>0xa00000?" (large file)":""}`,`Format: ${e.format} ${e.version}`,`Generator: ${e.generator}`];return e.extensions.length>0&&o.push(`Extensions: ${e.extensions.join(", ")}`),e.dracoCompressed&&o.push("Note: Draco-compressed meshes (vertex data not decoded)"),o.join("\n")};let r=e=>String(Math.round(1e3*e)/1e3),a=e=>`[${e.map(r).join(", ")}]`,i=(e,o)=>0===o||Math.abs(e)<.01*o,s=(e,o)=>o>0&&Math.abs(Math.abs(e)-o/2)<.01*o,l=e=>{let o,t,n,l=e.children.length>0?` [${e.children.join(", ")}]`:"",m=` ${e.name} (${e.type})${l}`;if((0!==(o=e.translation)[0]||0!==o[1]||0!==o[2])&&(m+=` pos=${a(e.translation)}`),(0!==(t=e.rotation)[0]||0!==t[1]||0!==t[2]||1!==t[3])&&(m+=` rot=${a(e.rotation)}`),(1!==(n=e.scale)[0]||1!==n[1]||1!==n[2])&&(m+=` scale=${a(e.scale)}`),e.morphTargets.length>0&&(m+=` morphs=${e.morphTargets.join(",")}`),e.boundingBox){let o=e.boundingBox.dimensions,t=e.boundingBox.originOffset,n=((e,o)=>{let t=i(e[0],o[0]),n=i(e[1],o[1]),r=i(e[2],o[2]);if(t&&n&&r)return"center";let a=s(e[1],o[1])?e[1]>0?"bottom":"top":"",l=s(e[0],o[0]),m=s(e[2],o[2]),f=t&&r?"center":l&&m?"corner":l||m?"edge":"";return a&&f?`${a}-${f}`:a||f||"offset"})(t,o);m+=` bounds=${r(o[0])}x${r(o[1])}x${r(o[2])} origin=${n} ${a(t)}`}return m};export const formatNodes=e=>0===e.length?"Nodes: (none)":[`Nodes (${e.length}):`,...e.map(l)].join("\n");export const formatMaterials=e=>0===e.length?"Materials: (none)":[`Materials (${e.length}):`,...e.map(e=>` ${e.name}`)].join("\n");export const formatMorphTargets=e=>{if(0===e.size)return"Morph Targets: (none)";let o=["Morph Targets:"];for(let[t,n]of e)o.push(` ${t}: ${n.join(", ")}`);return o.join("\n")};export const formatAnimations=e=>0===e.length?"Animations: (none)":[`Animations (${e.length}):`,...e.map(e=>` ${e.name} (${e.duration}s, ${e.channelCount} channels)`)].join("\n");export const formatFullReport=e=>[formatSummary(e),"",formatNodes(e.nodes),"",formatMaterials(e.materials),"",formatMorphTargets(e.morphTargets),"",formatAnimations(e.animations)].join("\n");export const formatSummaryTable=e=>{let o="File Size Nodes Materials Morphs Animations",t="─".repeat(o.length);return[o,t,...e.map(e=>{let o=[...e.morphTargets.values()].reduce((e,o)=>e+o.length,0);return[e.filePath.padEnd(40),n(e.fileSize).padStart(10),String(e.nodes.length).padStart(7),String(e.materials.length).padStart(10),String(o).padStart(8),String(e.animations.length).padStart(11)].join("")})].join("\n")};let m=e=>({...e,morphTargets:Object.fromEntries(e.morphTargets)});export const runInspectAssetsCommand=async(n,r)=>{let{logger:a}=r;try{if(n.file){let e=o(n.file),r=await t(e);if(n.json)return void console.log(JSON.stringify(m(r),null,2));if(n.objects)return void console.log(formatNodes(r.nodes));if(n.materials)return void console.log(formatMaterials(r.materials));if(n.morphs)return void console.log(formatMorphTargets(r.morphTargets));if(n.animations)return void console.log(formatAnimations(r.animations));console.log(formatFullReport(r));return}let r=await e("public/**/*.{glb,gltf}");if(0===r.length)return void a.warn("No glTF/GLB files found in public/");let i=[];for(let e of r)try{i.push(await t(o(e)))}catch(o){a.error(`Failed to parse ${e}`,o)}if(0===i.length)return void a.warn("No files could be parsed");if(n.json)return void console.log(JSON.stringify(i.map(m),null,2));if(n.objects){let e=i.flatMap(e=>e.nodes.map(o=>`${e.filePath}: ${o.name} (${o.type})`));console.log(e.join("\n"));return}if(n.materials){let e=i.flatMap(e=>e.materials.map(o=>`${e.filePath}: ${o.name}`));console.log(e.join("\n"));return}if(n.morphs){let e=[];for(let o of i)for(let[t,n]of o.morphTargets)e.push(`${o.filePath}: ${t} → ${n.join(", ")}`);if(0===e.length)return void a.info("No morph targets found in any file");console.log(e.join("\n"));return}if(n.animations){let e=i.flatMap(e=>e.animations.map(o=>`${e.filePath}: ${o.name} (${o.duration}s, ${o.channelCount} ch)`));if(0===e.length)return void a.info("No animations found in any file");console.log(e.join("\n"));return}console.log(formatSummaryTable(i))}catch(e){e instanceof Error?a.error(e.message):a.error("Unexpected error during asset inspection",e),process.exit(1)}};
1
+ import{globby as e}from"globby";import{resolve as o}from"path";import{exitCli as t}from"../services/index.js";import{inspectGltfFile as n}from"./gltf-inspector.js";let r=e=>e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`;export const formatSummary=e=>{let o=[`File: ${e.filePath}`,`Size: ${r(e.fileSize)}${e.fileSize>0xa00000?" (large file)":""}`,`Format: ${e.format} ${e.version}`,`Generator: ${e.generator}`];return e.extensions.length>0&&o.push(`Extensions: ${e.extensions.join(", ")}`),e.dracoCompressed&&o.push("Note: Draco-compressed meshes (vertex data not decoded)"),o.join("\n")};let a=e=>String(Math.round(1e3*e)/1e3),i=e=>`[${e.map(a).join(", ")}]`,s=(e,o)=>0===o||Math.abs(e)<.01*o,l=(e,o)=>o>0&&Math.abs(Math.abs(e)-o/2)<.01*o,m=e=>{let o,t,n,r=e.children.length>0?` [${e.children.join(", ")}]`:"",m=` ${e.name} (${e.type})${r}`;if((0!==(o=e.translation)[0]||0!==o[1]||0!==o[2])&&(m+=` pos=${i(e.translation)}`),(0!==(t=e.rotation)[0]||0!==t[1]||0!==t[2]||1!==t[3])&&(m+=` rot=${i(e.rotation)}`),(1!==(n=e.scale)[0]||1!==n[1]||1!==n[2])&&(m+=` scale=${i(e.scale)}`),e.morphTargets.length>0&&(m+=` morphs=${e.morphTargets.join(",")}`),e.boundingBox){let o=e.boundingBox.dimensions,t=e.boundingBox.originOffset,n=((e,o)=>{let t=s(e[0],o[0]),n=s(e[1],o[1]),r=s(e[2],o[2]);if(t&&n&&r)return"center";let a=l(e[1],o[1])?e[1]>0?"bottom":"top":"",i=l(e[0],o[0]),m=l(e[2],o[2]),f=t&&r?"center":i&&m?"corner":i||m?"edge":"";return a&&f?`${a}-${f}`:a||f||"offset"})(t,o);m+=` bounds=${a(o[0])}x${a(o[1])}x${a(o[2])} origin=${n} ${i(t)}`}return m};export const formatNodes=e=>0===e.length?"Nodes: (none)":[`Nodes (${e.length}):`,...e.map(m)].join("\n");export const formatMaterials=e=>0===e.length?"Materials: (none)":[`Materials (${e.length}):`,...e.map(e=>` ${e.name}`)].join("\n");export const formatMorphTargets=e=>{if(0===e.size)return"Morph Targets: (none)";let o=["Morph Targets:"];for(let[t,n]of e)o.push(` ${t}: ${n.join(", ")}`);return o.join("\n")};export const formatAnimations=e=>0===e.length?"Animations: (none)":[`Animations (${e.length}):`,...e.map(e=>` ${e.name} (${e.duration}s, ${e.channelCount} channels)`)].join("\n");export const formatFullReport=e=>[formatSummary(e),"",formatNodes(e.nodes),"",formatMaterials(e.materials),"",formatMorphTargets(e.morphTargets),"",formatAnimations(e.animations)].join("\n");export const formatSummaryTable=e=>{let o="File Size Nodes Materials Morphs Animations",t="─".repeat(o.length);return[o,t,...e.map(e=>{let o=[...e.morphTargets.values()].reduce((e,o)=>e+o.length,0);return[e.filePath.padEnd(40),r(e.fileSize).padStart(10),String(e.nodes.length).padStart(7),String(e.materials.length).padStart(10),String(o).padStart(8),String(e.animations.length).padStart(11)].join("")})].join("\n")};let f=e=>({...e,morphTargets:Object.fromEntries(e.morphTargets)});export const runInspectAssetsCommand=async(r,a)=>{let{logger:i}=a;try{if(r.file){let e=o(r.file),t=await n(e);if(r.json)return void console.log(JSON.stringify(f(t),null,2));if(r.objects)return void console.log(formatNodes(t.nodes));if(r.materials)return void console.log(formatMaterials(t.materials));if(r.morphs)return void console.log(formatMorphTargets(t.morphTargets));if(r.animations)return void console.log(formatAnimations(t.animations));console.log(formatFullReport(t));return}let t=await e("public/**/*.{glb,gltf}");if(0===t.length)return void i.warn("No glTF/GLB files found in public/");let a=[];for(let e of t)try{a.push(await n(o(e)))}catch(o){i.error(`Failed to parse ${e}`,o)}if(0===a.length)return void i.warn("No files could be parsed");if(r.json)return void console.log(JSON.stringify(a.map(f),null,2));if(r.objects){let e=a.flatMap(e=>e.nodes.map(o=>`${e.filePath}: ${o.name} (${o.type})`));console.log(e.join("\n"));return}if(r.materials){let e=a.flatMap(e=>e.materials.map(o=>`${e.filePath}: ${o.name}`));console.log(e.join("\n"));return}if(r.morphs){let e=[];for(let o of a)for(let[t,n]of o.morphTargets)e.push(`${o.filePath}: ${t} → ${n.join(", ")}`);if(0===e.length)return void i.info("No morph targets found in any file");console.log(e.join("\n"));return}if(r.animations){let e=a.flatMap(e=>e.animations.map(o=>`${e.filePath}: ${o.name} (${o.duration}s, ${o.channelCount} ch)`));if(0===e.length)return void i.info("No animations found in any file");console.log(e.join("\n"));return}console.log(formatSummaryTable(a))}catch(e){e instanceof Error?i.error(e.message):i.error("Unexpected error during asset inspection",e),await t(1)}};
@@ -1 +1 @@
1
- import{relative as e,resolve as t}from"path";import{addWorkspaceOverrides as a,getSdkPackages as i,getWorkspaceDir as n,runCommand as o}from"../utils/index.js";export const runLinkCommand=async(s,r)=>{let{logger:c}=r,l=s.sdkPath??"../configurator-phoenix";try{c.step("Linking local SDK packages");let s=t(l);c.debug(`SDK path: ${s}`);let r=i(s);c.debug(`Found ${r.length} packages to link`);let p=n(),g={};r.forEach(({name:t,path:a})=>{let i=e(p,a);g[t]=`file:${i}`,c.debug(` ${t} -> ${i}`)}),a(g),c.success(`Linked ${r.length} SDK packages`),await o({command:"pnpm",args:["install","--config.optimistic-repeat-install=false"],description:"Installing packages",quiet:!0},{logger:c}),c.info("\nNext step:"),c.info(" Run: phoenix dev")}catch(e){throw c.error(`Failed to link SDK packages: ${e instanceof Error?e.message:String(e)}. The SDK path must contain a packages/libs directory. Use --sdk-path flag to specify correct SDK location.`,e),e}};
1
+ import{relative as e,resolve as t}from"path";import{addWorkspaceOverrides as o,assertPnpmProject as r,getSdkPackages as a,getWorkspaceDir as n}from"../utils/index.js";export const runLinkCommand=async(s,i)=>{let{logger:c}=i,l=s.sdkPath??"../configurator-phoenix";try{r({projectRoot:process.cwd(),command:"link"})}catch(e){throw c.error(e instanceof Error?e.message:String(e)),e}try{c.step("Linking local SDK packages");let r=t(l);c.debug(`SDK path: ${r}`);let s=a(r);c.debug(`Found ${s.length} packages to link`);let i=n(),p={};s.forEach(({name:t,path:o})=>{let r=e(i,o);p[t]=`file:${r}`,c.debug(` ${t} -> ${r}`)}),o(p),c.success(`Linked ${s.length} SDK packages`),c.info("\nNext steps:\n pnpm install --config.optimistic-repeat-install=false\n phoenix dev")}catch(e){throw c.error(`Failed to link SDK packages: ${e instanceof Error?e.message:String(e)}. The SDK path must contain a packages/libs directory. Use --sdk-path flag to specify correct SDK location.`,e),e}};
@@ -1 +1 @@
1
- import{runCommand as e}from"../utils/index.js";export const runListEnvironmentsCommand=async(n,r)=>{let{logger:t}=r;try{t.warn("DEPRECATED: environment:list command is deprecated, switch to a new workflow and use the prepare environment flow instead"),t.step("Listing deployment environments");let r=["list"];n?.server&&r.push("--server",`"${n.server}"`),n?.apiKey&&r.push("--apiKey",`"${n.apiKey}"`),await e({command:"deployment-cli",args:r,description:"Listing environments"},{logger:t})}catch(e){t.error(`Failed to list environments: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{exitCli as e}from"../services/index.js";import{runCommand as n}from"../utils/index.js";export const runListEnvironmentsCommand=async(r,t)=>{let{logger:i}=t;try{i.warn("DEPRECATED: environment:list command is deprecated, switch to a new workflow and use the prepare environment flow instead"),i.step("Listing deployment environments");let e=["list"];r?.server&&e.push("--server",`"${r.server}"`),r?.apiKey&&e.push("--apiKey",`"${r.apiKey}"`),await n({command:"deployment-cli",args:e,description:"Listing environments"},{logger:i})}catch(n){i.error(`Failed to list environments: ${n instanceof Error?n.message:String(n)}`,n),await e(1)}};
@@ -37,5 +37,8 @@ export declare const startLoginCallbackListener: (props: LoginCallbackListenerPr
37
37
  * one-time code to this CLI's loopback listener, and the CLI exchanges it with its PKCE verifier for an API token.
38
38
  * The browser waits on the callback meanwhile and ends on Studio's page for the outcome.
39
39
  */
40
- export declare const runLoginCommand: (props: LoginCommandProps, { logger }: CommandContext) => Promise<void>;
40
+ export declare const runLoginCommand: (props: LoginCommandProps, { logger }: CommandContext) => Promise<{
41
+ userId: string;
42
+ workspaceId: string;
43
+ } | undefined>;
41
44
  export {};
@@ -1,4 +1,4 @@
1
- import{spawn as e}from"node:child_process";import{createHash as t,randomBytes as r}from"node:crypto";import{createServer as o}from"node:http";import{hostname as n}from"node:os";import{createApiBaseClient as s}from"#package/client";import{getServerCredentials as i,saveServerCredentials as a}from"../services/index.js";let l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=(e,t)=>`<!doctype html><html><head><meta charset="utf-8"><title>${e}</title></head><body style="font-family:system-ui,sans-serif;display:grid;place-items:center;height:100vh;margin:0"><main style="text-align:center"><h1>${e}</h1><p>${t.replace(/[&<>"']/g,e=>l[e]??e)}</p></main></body></html>`,d=(e,t,r,o)=>new Promise(n=>{e.destroyed?n():(e.once("close",n),e.writeHead(t,{...r,connection:"close"}).end(o))});export const startLoginCallbackListener=async e=>{let{state:t,studioUrl:r,customer:n}=e,s=(e,t)=>{let o=new URL(e,r);return o.searchParams.set("customer",n),t&&o.searchParams.set("name",t),o.toString()},i=null,a=!1,l=new Promise((e,t)=>{i={resolve:e,reject:t}}),m=o((e,r)=>{let o=new URL(e.url??"/","http://127.0.0.1"),n=o.searchParams.get("code"),l="access_denied"===o.searchParams.get("error");if("/callback"!==o.pathname)return void r.writeHead(404).end();if(o.searchParams.get("state")!==t||a||!n&&!l){d(r,400,{"content-type":"text/html"},c("Sign-in failed","This response does not belong to the waiting CLI. Run phoenix login again.")),a||i?.reject(Error("The sign-in response did not match this CLI session. Run `phoenix login` again."));return}if(a=!0,l||!n)return void d(r,302,{location:s("/builder/cli-login/denied",null)}).then(()=>{i?.reject(Error("The sign-in was denied in Studio. Run `phoenix login` again to sign in."))});let m=o.searchParams.get("name");i?.resolve({code:n,tokenName:m,finish:e=>e.signedIn?d(r,302,{location:s("/builder/cli-login/done",m)}):d(r,200,{"content-type":"text/html"},c("Sign-in failed",e.message))})}),h=await new Promise((e,t)=>{m.once("error",t),m.listen(0,"127.0.0.1",()=>{let r=m.address();null===r||"string"==typeof r?t(Error("The login callback listener did not get a port. Run `phoenix login` again.")):e(r.port)})}),u=setTimeout(()=>{i?.reject(Error("Nobody approved the sign-in within 5 minutes. Run `phoenix login` again."))},3e5);return{port:h,callback:l,close:()=>{clearTimeout(u),m.close()}}};let m=async(e,t)=>{try{let{error:r,response:o}=await s(e).DELETE("/auth/token",{headers:{authorization:`Bearer ${t}`,"content-type":null}});return r&&401!==o.status?r.message:null}catch(e){return e instanceof Error?e.message:String(e)}},h=async(e,t)=>{let{data:r,error:o}=await s(e.serverUrl).POST("/auth/token",{body:t});if(o||!r)throw Error(`The server did not accept the sign-in: ${o?.message??"no response"}`);if(r.customer.slug!==e.customer)throw await m(e.serverUrl,r.token),Error(`The sign-in was approved in workspace "${r.customer.slug}", not "${e.customer}". Check --region or --studioUrl and run \`phoenix login ${e.customer}\` again.`);let n=await i(e.serverUrl),l=await a(e.serverUrl,{token:r.token,userId:r.userId,customerSlug:r.customer.slug,customerName:r.customer.name,studioUrl:e.studioUrl,createdAt:new Date().toISOString()}),c=n?await m(e.serverUrl,n.token):null;return{customerName:r.customer.name,path:l,revokeError:c}};export const runLoginCommand=async(o,{logger:s})=>{let i=r(32).toString("base64url"),a=t("sha256").update(i).digest("base64url"),l=r(16).toString("base64url"),c=n(),d=`phoenix CLI on ${c}`,m=await startLoginCallbackListener({state:l,studioUrl:o.studioUrl,customer:o.customer});try{let t=new URL("/builder/cli-login",o.studioUrl);t.searchParams.set("customer",o.customer),t.searchParams.set("port",String(m.port)),t.searchParams.set("state",l),t.searchParams.set("challenge",a),t.searchParams.set("name",d),t.searchParams.set("host",c),t.searchParams.set("started",String(Date.now())),s.step(`Signing in to workspace "${o.customer}" on ${o.serverUrl}`),s.info(`Approve the CLI in your browser:
1
+ import{spawn as e}from"node:child_process";import{createHash as t,randomBytes as r}from"node:crypto";import{createServer as o}from"node:http";import{hostname as n}from"node:os";import{z as s}from"zod";import{createApiBaseClient as i}from"#package/client";import{getServerCredentials as a,saveServerCredentials as l}from"../services/index.js";let c=s.string().uuid(),d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=(e,t)=>`<!doctype html><html><head><meta charset="utf-8"><title>${e}</title></head><body style="font-family:system-ui,sans-serif;display:grid;place-items:center;height:100vh;margin:0"><main style="text-align:center"><h1>${e}</h1><p>${t.replace(/[&<>"']/g,e=>d[e]??e)}</p></main></body></html>`,u=(e,t,r,o)=>new Promise(n=>{e.destroyed?n():(e.once("close",n),e.writeHead(t,{...r,connection:"close"}).end(o))});export const startLoginCallbackListener=async e=>{let{state:t,studioUrl:r,customer:n}=e,s=(e,t)=>{let o=new URL(e,r);return o.searchParams.set("customer",n),t&&o.searchParams.set("name",t),o.toString()},i=null,a=!1,l=new Promise((e,t)=>{i={resolve:e,reject:t}}),c=o((e,r)=>{let o=new URL(e.url??"/","http://127.0.0.1"),n=o.searchParams.get("code"),l="access_denied"===o.searchParams.get("error");if("/callback"!==o.pathname)return void r.writeHead(404).end();if(o.searchParams.get("state")!==t||a||!n&&!l){u(r,400,{"content-type":"text/html"},m("Sign-in failed","This response does not belong to the waiting CLI. Run phoenix login again.")),a||i?.reject(Error("The sign-in response did not match this CLI session. Run `phoenix login` again."));return}if(a=!0,l||!n)return void u(r,302,{location:s("/builder/cli-login/denied",null)}).then(()=>{i?.reject(Error("The sign-in was denied in Studio. Run `phoenix login` again to sign in."))});let c=o.searchParams.get("name");i?.resolve({code:n,tokenName:c,finish:e=>e.signedIn?u(r,302,{location:s("/builder/cli-login/done",c)}):u(r,200,{"content-type":"text/html"},m("Sign-in failed",e.message))})}),d=await new Promise((e,t)=>{c.once("error",t),c.listen(0,"127.0.0.1",()=>{let r=c.address();null===r||"string"==typeof r?t(Error("The login callback listener did not get a port. Run `phoenix login` again.")):e(r.port)})}),h=setTimeout(()=>{i?.reject(Error("Nobody approved the sign-in within 5 minutes. Run `phoenix login` again."))},3e5);return{port:d,callback:l,close:()=>{clearTimeout(h),c.close()}}};let h=async(e,t)=>{try{let{error:r,response:o}=await i(e).DELETE("/auth/token",{headers:{authorization:`Bearer ${t}`,"content-type":null}});return r&&401!==o.status?r.message:null}catch(e){return e instanceof Error?e.message:String(e)}},g=async(e,t)=>{let{data:r,error:o}=await i(e.serverUrl).POST("/auth/token",{body:t});if(o||!r)throw Error(`The server did not accept the sign-in: ${o?.message??"no response"}`);if(r.customer.slug!==e.customer)throw await h(e.serverUrl,r.token),Error(`The sign-in was approved in workspace "${r.customer.slug}", not "${e.customer}". Check --region or --studioUrl and run \`phoenix login ${e.customer}\` again.`);let n=await a(e.serverUrl),s=c.safeParse(r.customer.id),d=await l(e.serverUrl,{token:r.token,userId:r.userId,...s.success?{customerId:s.data}:{},customerSlug:r.customer.slug,customerName:r.customer.name,studioUrl:e.studioUrl,createdAt:new Date().toISOString()}),m=n?await h(e.serverUrl,n.token):null;return{customerName:r.customer.name,path:d,revokeError:m,telemetryAssociation:s.success?{userId:r.userId,workspaceId:s.data}:void 0}};export const runLoginCommand=async(o,{logger:s})=>{let i=r(32).toString("base64url"),a=t("sha256").update(i).digest("base64url"),l=r(16).toString("base64url"),c=n(),d=`phoenix CLI on ${c}`,m=await startLoginCallbackListener({state:l,studioUrl:o.studioUrl,customer:o.customer});try{let t=new URL("/builder/cli-login",o.studioUrl);t.searchParams.set("customer",o.customer),t.searchParams.set("port",String(m.port)),t.searchParams.set("state",l),t.searchParams.set("challenge",a),t.searchParams.set("name",d),t.searchParams.set("host",c),t.searchParams.set("started",String(Date.now())),s.step(`Signing in to workspace "${o.customer}" on ${o.serverUrl}`),s.info(`Approve the CLI in your browser:
2
2
 
3
3
  ${t.toString()}
4
- `),o.open&&(t=>{let[r,o]="darwin"===process.platform?["open",[t]]:"win32"===process.platform?["rundll32",["url.dll,FileProtocolHandler",t]]:["xdg-open",[t]];e(r,o,{stdio:"ignore",detached:!0}).on("error",()=>void 0).unref()})(t.toString());let r=await m.callback;try{let e=await h(o,{code:r.code,codeVerifier:i,port:m.port,name:d});e.revokeError&&s.warn(`The server did not revoke the token this sign-in replaces (${e.revokeError}). It stays valid on the server. Contact Phoenix support to revoke it.`),await r.finish({signedIn:!0}),s.success(`Signed in to ${e.customerName}. The token is stored in ${e.path}; revoke it with phoenix logout.`)}catch(e){throw await r.finish({signedIn:!1,message:e instanceof Error?e.message:String(e)}),e}}finally{m.close()}};
4
+ `),o.open&&(t=>{let[r,o]="darwin"===process.platform?["open",[t]]:"win32"===process.platform?["rundll32",["url.dll,FileProtocolHandler",t]]:["xdg-open",[t]];e(r,o,{stdio:"ignore",detached:!0}).on("error",()=>void 0).unref()})(t.toString());let r=await m.callback;try{let e=await g(o,{code:r.code,codeVerifier:i,port:m.port,name:d});return e.revokeError&&s.warn(`The server did not revoke the token this sign-in replaces (${e.revokeError}). It stays valid on the server. Contact Phoenix support to revoke it.`),await r.finish({signedIn:!0}),s.success(`Signed in to ${e.customerName}. The token is stored in ${e.path}; revoke it with phoenix logout.`),e.telemetryAssociation}catch(e){throw await r.finish({signedIn:!1,message:e instanceof Error?e.message:String(e)}),e}}finally{m.close()}};
@@ -1,2 +1,2 @@
1
- import{writeFile as e}from"fs/promises";import{createApiBaseClient as t}from"#package/client";import{resolveApplicationSpecDeploymentData as a}from"../application-spec/index.js";import{formatEnvContent as r,formatEnvLine as i}from"../utils/index.js";export const runPrepareDeploymentCommand=async(s,n)=>{let{logger:o}=n;try{o.step("Preparing deployment");let{apiKey:n,projectKey:l,projectSlug:p,projectRef:c,projectSha:m,environmentSlug:d,outFile:h,skipUpload:u,overrideSchema:f,uploadLinksFile:g,serverUrl:v}=s;o.info(`Preparing deployment for project "${p}", environment "${d}"`);let b=t(v);o.debug(`Using server URL: ${v}`);let y=await a({skipUpload:u,logger:o});if(y.assistantSetup){let{sdl:e,prompt:t,instructions:a}=y.assistantSetup,r=t.length+e.length+(a?.length??0);o.info(`Assistant GraphQL schema:
2
- ${e}`),o.info(`Assistant prompt of this deployment (generated prompt, schema and instructions): ${r} characters`)}o.info("Preparing deployment on server...");let{data:w,error:S}=await b.POST("/environments/prepare",{body:{projectSlug:p,environmentSlug:d,applicationVersion:y.applicationVersion,projectRef:c,projectSha:m,publishedDataHash:y.publishedDataHash,useAuthHook:y.useAuthHook,overrideSchema:f,configurationSchema:{version:y.schemaVersion,schema:y.schema},adminConfigurationSchema:y.adminSchema?{schema:y.adminSchema,version:y.adminSchemaVersion}:void 0,chat:y.chat,embeddings:y.embeddings,...y.assistant?{assistant:!0}:{},acl:{canCreate:y.aclCanCreate},privateFiles:[...y.assets.privateFilePaths],publicFiles:[...y.assets.publicFilePaths]},headers:{"x-api-key":n,"x-project-key":l,"x-project-slug":p}});if(S)throw Error(`Failed to prepare deployment with server: ${S.message}`);if(!w)throw Error("No data returned from server");o.debug("Deployment prepared on server");let{baseDomain:F,isCustomDomain:P}=w,U=w.environmentVariables,k=w.privateUploadUrls,$=w.publicUploadUrls;if(!U||!k||!$)throw Error("Incomplete data returned from server");try{let t=[r(U),i("BASE_DOMAIN",String(F)),i("IS_CUSTOM_DOMAIN",String(P))].join("\n");await e(h,t+"\n"),o.debug(`Environment variables written to ${h}`)}catch(e){throw Error("Failed to write environment variables to file")}try{if(u)await e(g,JSON.stringify({privateFiles:[],publicFiles:[]},null,2)),o.debug("Upload links file cleared (upload was skipped)");else{let t={privateFiles:[...y.assets.privateFilesFullPaths].map(e=>({localPath:e,uploadUrl:k[e.replace(/^assets\/private\//,"")]})),publicFiles:[...y.assets.publicFilesFullPaths].map(e=>({localPath:e,uploadUrl:$[e.replace(/^assets\/public\//,"")]}))};await e(g,JSON.stringify(t,null,2)),o.debug(`Upload links written to ${g}`),o.info('Run "finish" command to upload files and activate the deployment')}}catch(e){throw Error("Failed to write upload links to file")}o.success("Deployment prepared successfully!")}catch(e){o.error(`Deployment preparation failed: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{writeFile as e}from"fs/promises";import{createApiBaseClient as a}from"#package/client";import{resolveApplicationSpecDeploymentData as t}from"../application-spec/index.js";import{exitCli as r}from"../services/index.js";import{formatEnvContent as i,formatEnvLine as s}from"../utils/index.js";export const runPrepareDeploymentCommand=async(n,o)=>{let{logger:l}=o;try{l.step("Preparing deployment");let{apiKey:r,projectKey:o,projectSlug:p,projectRef:c,projectSha:m,environmentSlug:d,outFile:h,skipUpload:u,overrideSchema:f,uploadLinksFile:g,serverUrl:v}=n;l.info(`Preparing deployment for project "${p}", environment "${d}"`);let b=a(v);l.debug(`Using server URL: ${v}`);let y=await t({skipUpload:u,logger:l});if(y.assistantSetup){let{sdl:e,prompt:a,instructions:t}=y.assistantSetup,r=a.length+e.length+(t?.length??0);l.info(`Assistant GraphQL schema:
2
+ ${e}`),l.info(`Assistant prompt of this deployment (generated prompt, schema and instructions): ${r} characters`)}l.info("Preparing deployment on server...");let{data:w,error:S}=await b.POST("/environments/prepare",{body:{projectSlug:p,environmentSlug:d,applicationVersion:y.applicationVersion,projectRef:c,projectSha:m,publishedDataHash:y.publishedDataHash,useAuthHook:y.useAuthHook,overrideSchema:f,configurationSchema:{version:y.schemaVersion,schema:y.schema},adminConfigurationSchema:y.adminSchema?{schema:y.adminSchema,version:y.adminSchemaVersion}:void 0,chat:y.chat,embeddings:y.embeddings,...y.assistant?{assistant:!0}:{},acl:{canCreate:y.aclCanCreate},privateFiles:[...y.assets.privateFilePaths],publicFiles:[...y.assets.publicFilePaths]},headers:{"x-api-key":r,"x-project-key":o,"x-project-slug":p}});if(S)throw Error(`Failed to prepare deployment with server: ${S.message}`);if(!w)throw Error("No data returned from server");l.debug("Deployment prepared on server");let{baseDomain:F,isCustomDomain:P}=w,U=w.environmentVariables,k=w.privateUploadUrls,$=w.publicUploadUrls;if(!U||!k||!$)throw Error("Incomplete data returned from server");try{let a=[i(U),s("BASE_DOMAIN",String(F)),s("IS_CUSTOM_DOMAIN",String(P))].join("\n");await e(h,a+"\n"),l.debug(`Environment variables written to ${h}`)}catch(e){throw Error("Failed to write environment variables to file")}try{if(u)await e(g,JSON.stringify({privateFiles:[],publicFiles:[]},null,2)),l.debug("Upload links file cleared (upload was skipped)");else{let a={privateFiles:[...y.assets.privateFilesFullPaths].map(e=>({localPath:e,uploadUrl:k[e.replace(/^assets\/private\//,"")]})),publicFiles:[...y.assets.publicFilesFullPaths].map(e=>({localPath:e,uploadUrl:$[e.replace(/^assets\/public\//,"")]}))};await e(g,JSON.stringify(a,null,2)),l.debug(`Upload links written to ${g}`),l.info('Run "finish" command to upload files and activate the deployment')}}catch(e){throw Error("Failed to write upload links to file")}l.success("Deployment prepared successfully!")}catch(e){l.error(`Deployment preparation failed: ${e instanceof Error?e.message:String(e)}`,e),await r(1)}};
@@ -1 +1 @@
1
- import{readFile as t,writeFile as e}from"fs/promises";import{globby as o}from"globby";import{resolve as r}from"path";import*as i from"prettier";let a=["**/node_modules/**","**/dist/**","**/.git/**","**/webhooks/index.ts`","**/frontend-configurator.ts`","**/frontend-admin.ts`","**/frontend-embedded-admin.ts`","pnpm-lock.yaml",".linguirc"];export const formatFiles=async(n,f)=>{let{logger:l}=f,s=await o("."===n?"**/*":n,{gitignore:!0,ignore:a}),c=0;for(let o of s)try{let a=r(o),n=await t(a,"utf-8"),f=await i.resolveConfig(a);if((await i.getFileInfo(a)).ignored)continue;let l=await i.format(n,{...f,filepath:a});l!==n&&(await e(a,l,"utf-8"),c++)}catch(t){}c>0&&l.info(`Formatted ${c} file${1!==c?"s":""}`)};export const checkFiles=async(e,n)=>{let{logger:f}=n,l=await o("."===e?"**/*":e,{gitignore:!0,ignore:a}),s=[];for(let e of l)try{let o=r(e),a=await t(o,"utf-8"),n=await i.resolveConfig(o);if((await i.getFileInfo(o)).ignored)continue;await i.check(a,{...n,filepath:o})||s.push(e)}catch(t){}return!(s.length>0)||(f.error(`Found ${s.length} unformatted file${1!==s.length?"s":""}:`),s.forEach(t=>{console.error(` - ${t}`)}),!1)};
1
+ import{readFile as t,writeFile as o}from"fs/promises";import{globby as e}from"globby";import{resolve as r}from"path";import*as i from"prettier";import{prettierrc as a}from"@salsita-ai/common/prettier";let n=["**/node_modules/**","**/dist/**","**/.git/**","**/.phoenix/**","**/locales/*/*.ts","pnpm-lock.yaml","pnpm-workspace.yaml","package-lock.json","npm-shrinkwrap.json","yarn.lock",".yarnrc.yml","bun.lock","bun.lockb",".linguirc"];export const formatFiles=async(l,f)=>{let{logger:c}=f,s=await e("."===l?"**/*":l,{gitignore:!0,ignore:n}),m=0;for(let e of s)try{let n=r(e),l=await t(n,"utf-8"),f=await i.resolveConfig(n)??a;if((await i.getFileInfo(n)).ignored)continue;let c=await i.format(l,{...f,filepath:n});c!==l&&(await o(n,c,"utf-8"),m++)}catch(t){}m>0&&c.info(`Formatted ${m} file${1!==m?"s":""}`)};export const checkFiles=async(o,l)=>{let{logger:f}=l,c=await e("."===o?"**/*":o,{gitignore:!0,ignore:n}),s=[];for(let o of c)try{let e=r(o),n=await t(e,"utf-8"),l=await i.resolveConfig(e)??a;if((await i.getFileInfo(e)).ignored)continue;await i.check(n,{...l,filepath:e})||s.push(o)}catch(t){}return!(s.length>0)||(f.error(`Found ${s.length} unformatted file${1!==s.length?"s":""}:`),s.forEach(t=>{console.error(` - ${t}`)}),!1)};
@@ -1 +1 @@
1
- import{runCommand as e}from"../utils/index.js";export const runRegisterDeploymentCommand=async(t,i)=>{let{logger:r}=i;try{r.warn("DEPRECATED: deployment:register command is deprecated, switch to a new workflow and use deployment:prepare and deployment:finish instead"),r.step("Registering deployment");let i=["register"];t?.server&&i.push("--server",`"${t.server}"`),t?.apiKey&&i.push("--apiKey",`"${t.apiKey}"`),t?.outFile&&i.push("--outFile",`"${t.outFile}"`),t?.skipUpload&&i.push("--skipUpload"),t?.activate===void 0||t.activate||i.push("--activate","false"),t?.overrideSchema&&i.push("--overrideSchema"),i.push("--configPath",'"./.phoenix/phoenix.config.ts"'),await e({command:"deployment-cli",args:i,description:"Registering deployment"},{logger:r}),r.success("Deployment registered successfully!")}catch(e){r.error(`Deployment registration failed: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{exitCli as e}from"../services/index.js";import{runCommand as i}from"../utils/index.js";export const runRegisterDeploymentCommand=async(t,r)=>{let{logger:s}=r;try{s.warn("DEPRECATED: deployment:register command is deprecated, switch to a new workflow and use deployment:prepare and deployment:finish instead"),s.step("Registering deployment");let e=["register"];t?.server&&e.push("--server",`"${t.server}"`),t?.apiKey&&e.push("--apiKey",`"${t.apiKey}"`),t?.outFile&&e.push("--outFile",`"${t.outFile}"`),t?.skipUpload&&e.push("--skipUpload"),t?.activate===void 0||t.activate||e.push("--activate","false"),t?.overrideSchema&&e.push("--overrideSchema"),e.push("--configPath",'"./.phoenix/phoenix.config.ts"'),await i({command:"deployment-cli",args:e,description:"Registering deployment"},{logger:s}),s.success("Deployment registered successfully!")}catch(i){s.error(`Deployment registration failed: ${i instanceof Error?i.message:String(i)}`,i),await e(1)}};
@@ -1 +1 @@
1
- import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{writeFile as o}from"fs/promises";import{resolve as i}from"path";import s from"ws";export const runSceneCommand=async(n,c)=>{let{logger:l}=c,a=n.port??"3020",p=n.pretty??!0,m=t({url:`ws://localhost:${a}`,WebSocket:s}),f=e({links:[r({client:m})]});try{let e=await f.getEditorScene.mutate(),t=JSON.stringify(e,null,p?2:void 0);if(n.output){let e=i(n.output);await o(e,t,"utf-8"),l.success(`Scene saved: ${e}`)}else console.log(t)}catch(e){if(e instanceof Error){let t=e.cause;null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code&&(l.error("Dev server not running. Start with `phoenix dev`"),process.exit(1)),l.error(e.message)}else l.error(`Scene command failed: ${String(e)}`);process.exit(1)}finally{await m.close()}};
1
+ import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{writeFile as o}from"fs/promises";import{resolve as i}from"path";import n from"ws";import{exitCli as s}from"../services/index.js";export const runSceneCommand=async(a,c)=>{let{logger:l}=c,m=a.port??"3020",f=a.pretty??!0,p=t({url:`ws://localhost:${m}`,WebSocket:n}),u=e({links:[r({client:p})]});try{let e=await u.getEditorScene.mutate(),t=JSON.stringify(e,null,f?2:void 0);if(a.output){let e=i(a.output);await o(e,t,"utf-8"),l.success(`Scene saved: ${e}`)}else console.log(t)}catch(e){if(e instanceof Error){let t=e.cause;if(null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code){l.error("Dev server not running. Start with `phoenix dev`"),await s(1);return}l.error(e.message)}else l.error(`Scene command failed: ${String(e)}`);await s(1)}finally{await p.close()}};
@@ -1 +1 @@
1
- import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{resolve as o}from"path";import s from"ws";export const runScreenshotCommand=async(n,c)=>{let{logger:i}=c,a=n.port??"3020",l=n.output??"./screenshot.png",p=n.width??1920,h=n.height??1080,m=n.format?.toUpperCase()??"PNG";"PNG"!==m&&"JPEG"!==m&&(i.error(`Invalid format: ${m}. Use PNG or JPEG`),process.exit(1));let f=t({url:`ws://localhost:${a}`,WebSocket:s}),u=e({links:[r({client:f})]});try{let e=await u.takeScreenshot.mutate({width:p,height:h,fileFormat:m,output:o(l)});console.log(`Screenshot saved: ${e.filePath}`)}catch(e){if(e instanceof Error){let t=e.cause;null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code&&(i.error("Dev server not running. Start with `phoenix dev`"),process.exit(1)),i.error(e.message)}else i.error(`Screenshot failed: ${String(e)}`);process.exit(1)}finally{await f.close()}};
1
+ import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{resolve as o}from"path";import a from"ws";import{exitCli as i}from"../services/index.js";export const runScreenshotCommand=async(n,s)=>{let{logger:c}=s,l=n.port??"3020",p=n.output??"./screenshot.png",f=n.width??1920,h=n.height??1080,m=n.format?.toUpperCase()??"PNG";if("PNG"!==m&&"JPEG"!==m){c.error(`Invalid format: ${m}. Use PNG or JPEG`),await i(1);return}let u=t({url:`ws://localhost:${l}`,WebSocket:a}),d=e({links:[r({client:u})]});try{let e=await d.takeScreenshot.mutate({width:f,height:h,fileFormat:m,output:o(p)});console.log(`Screenshot saved: ${e.filePath}`)}catch(e){if(e instanceof Error){let t=e.cause;if(null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code){c.error("Dev server not running. Start with `phoenix dev`"),await i(1);return}c.error(e.message)}else c.error(`Screenshot failed: ${String(e)}`);await i(1)}finally{await u.close()}};
@@ -1 +1 @@
1
- import{createTRPCClient as t,createWSClient as e,wsLink as o}from"@trpc/client";import{writeFile as r}from"fs/promises";import{resolve as i}from"path";import s from"ws";let n=["entities","navigation","validation"];export const runStateCommand=async(a,l)=>{let{logger:c}=l,p=a.port??"3020",m=a.pretty??!0,f=a.sections?a.sections.split(",").map(t=>t.trim()):[...n],u=f.filter(t=>!n.includes(t));u.length>0&&(c.error(`Invalid sections: ${u.join(", ")}. Valid: ${n.join(", ")}`),process.exit(1));let d=e({url:`ws://localhost:${p}`,WebSocket:s}),S=t({links:[o({client:d})]});try{let t=await S.getEditorState.mutate({sections:f}),e=JSON.stringify(t,null,m?2:void 0);if(a.output){let t=i(a.output);await r(t,e,"utf-8"),c.success(`State saved: ${t}`)}else console.log(e)}catch(t){if(t instanceof Error){let e=t.cause;null!=e&&"object"==typeof e&&"code"in e&&"ECONNREFUSED"===e.code&&(c.error("Dev server not running. Start with `phoenix dev`"),process.exit(1)),c.error(t.message)}else c.error(`State command failed: ${String(t)}`);process.exit(1)}finally{await d.close()}};
1
+ import{createTRPCClient as t,createWSClient as e,wsLink as i}from"@trpc/client";import{writeFile as r}from"fs/promises";import{resolve as o}from"path";import a from"ws";import{exitCli as n}from"../services/index.js";let s=["entities","navigation","validation"];export const runStateCommand=async(l,c)=>{let{logger:m}=c,f=l.port??"3020",p=l.pretty??!0,u=l.sections?l.sections.split(",").map(t=>t.trim()):[...s],d=u.filter(t=>!s.includes(t));if(d.length>0){m.error(`Invalid sections: ${d.join(", ")}. Valid: ${s.join(", ")}`),await n(1);return}let v=e({url:`ws://localhost:${f}`,WebSocket:a}),w=t({links:[i({client:v})]});try{let t=await w.getEditorState.mutate({sections:u}),e=JSON.stringify(t,null,p?2:void 0);if(l.output){let t=o(l.output);await r(t,e,"utf-8"),m.success(`State saved: ${t}`)}else console.log(e)}catch(t){if(t instanceof Error){let e=t.cause;if(null!=e&&"object"==typeof e&&"code"in e&&"ECONNREFUSED"===e.code){m.error("Dev server not running. Start with `phoenix dev`"),await n(1);return}m.error(t.message)}else m.error(`State command failed: ${String(t)}`);await n(1)}finally{await v.close()}};
@@ -1,3 +1,3 @@
1
- import r from"promise-queue";import{generateApplicationSpecStory as e}from"../application-spec/generate-application-spec-story.js";import{resolveGlobToDirectories as o}from"./resolve-story-directories.js";export const buildStoryInDirectory=async(r,o)=>{let{logger:t}=o;t.step(`Building Storybook example in ${r.targetDir}`),await e(r.targetDir,o),t.success(`Completed building Storybook example in ${r.targetDir}`)};export const runStoryBuildCommand=async(e,t)=>{let{logger:i}=t;try{let s=await o(e.folder,e.baseDir);if(0===s.length){let r=e.baseDir?`${e.baseDir}/${e.folder}`:e.folder;i.error(`No directories found matching pattern: ${r}. The pattern did not match any directories in the base directory, ensure the base directory exists and contains matching folders.`),process.exit(1)}console.log(`
2
- Found ${s.length} matching ${1===s.length?"directory":"directories"}:
3
- `),s.forEach(r=>{console.log(` - ${r}`)}),console.log("");let n=new r(4,1/0),a=[];if(await Promise.all(s.map(async r=>{try{await n.add(()=>buildStoryInDirectory({targetDir:r},t)),console.log("")}catch(e){i.error(`Failed to build story in ${r}: ${e instanceof Error?e.message:String(e)}`),console.log(e),a.push({dir:r,error:e instanceof Error?e:Error(String(e))})}})),a.length>0)throw i.error(`Failed to build ${a.length} ${1===a.length?"story":"stories"}:`),a.forEach(r=>{i.error(` - ${r.dir}: ${r.error.message}`)}),Error("Failed to build stories");i.success(`Completed building ${s.length} ${1===s.length?"story":"stories"}!`)}catch(r){throw i.error(`Story build failed: ${r instanceof Error?r.message:String(r)}`),r}};
1
+ import r from"promise-queue";import{generateApplicationSpecStory as e}from"../application-spec/generate-application-spec-story.js";import{exitCli as o}from"../services/index.js";import{resolveGlobToDirectories as t}from"./resolve-story-directories.js";export const buildStoryInDirectory=async(r,o)=>{let{logger:t}=o;t.step(`Building Storybook example in ${r.targetDir}`),await e(r.targetDir,o),t.success(`Completed building Storybook example in ${r.targetDir}`)};export const runStoryBuildCommand=async(e,i)=>{let{logger:s}=i;try{let n=await t(e.folder,e.baseDir);if(0===n.length){let r=e.baseDir?`${e.baseDir}/${e.folder}`:e.folder;s.error(`No directories found matching pattern: ${r}. The pattern did not match any directories in the base directory, ensure the base directory exists and contains matching folders.`),await o(1);return}console.log(`
2
+ Found ${n.length} matching ${1===n.length?"directory":"directories"}:
3
+ `),n.forEach(r=>{console.log(` - ${r}`)}),console.log("");let a=new r(4,1/0),l=[];if(await Promise.all(n.map(async r=>{try{await a.add(()=>buildStoryInDirectory({targetDir:r},i)),console.log("")}catch(e){s.error(`Failed to build story in ${r}: ${e instanceof Error?e.message:String(e)}`),console.log(e),l.push({dir:r,error:e instanceof Error?e:Error(String(e))})}})),l.length>0)throw s.error(`Failed to build ${l.length} ${1===l.length?"story":"stories"}:`),l.forEach(r=>{s.error(` - ${r.dir}: ${r.error.message}`)}),Error("Failed to build stories");s.success(`Completed building ${n.length} ${1===n.length?"story":"stories"}!`)}catch(r){throw s.error(`Story build failed: ${r instanceof Error?r.message:String(r)}`),r}};
@@ -1 +1 @@
1
- import{basename as r,join as e}from"path";import{generateInitialStory as t}from"../story-scaffolding/index.js";import{askQuestion as o,exists as s,toPascalCase as a}from"../utils/index.js";import{buildStoryInDirectory as i}from"./story-build.js";export const runStoryCreateCommand=async(n={},c)=>{let{logger:m}=c;try{m.step("Creating new Storybook example");let y=n.name;if(!y)for(;!y;){let r=await o('Enter the story name (e.g., "my-feature" or "MyFeature"): ');if(!r||0===r.trim().length){m.error("Story name is required");continue}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(r)){m.error("Story name must start with a letter and contain only letters, numbers, hyphens, and underscores");continue}y=r.trim()}y||(m.error("Story name is required"),process.exit(1)),await s(e(process.cwd(),`src/${y}`))&&(m.error(`Story ${y} already exists`),process.exit(1));let l=e(process.cwd(),`src/examples/${y}`),d=a(r(l));await t(l,d),await i({targetDir:l},c),m.success(`Story created successfully in ${l}!`)}catch(r){m.error(`Story creation failed: ${r instanceof Error?r.message:String(r)}`,r),process.exit(1)}};
1
+ import{basename as r,join as e}from"path";import{exitCli as t}from"../services/index.js";import{generateInitialStory as a}from"../story-scaffolding/index.js";import{askQuestion as o,exists as i,toPascalCase as s}from"../utils/index.js";import{buildStoryInDirectory as n}from"./story-build.js";export const runStoryCreateCommand=async(m={},c)=>{let{logger:y}=c;try{y.step("Creating new Storybook example");let f=m.name;if(!f)for(;!f;){let r=await o('Enter the story name (e.g., "my-feature" or "MyFeature"): ');if(!r||0===r.trim().length){y.error("Story name is required");continue}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(r)){y.error("Story name must start with a letter and contain only letters, numbers, hyphens, and underscores");continue}f=r.trim()}if(!f){y.error("Story name is required"),await t(1);return}if(await i(e(process.cwd(),`src/${f}`))){y.error(`Story ${f} already exists`),await t(1);return}let l=e(process.cwd(),`src/examples/${f}`),u=s(r(l));await a(l,u),await n({targetDir:l},c),y.success(`Story created successfully in ${l}!`)}catch(r){y.error(`Story creation failed: ${r instanceof Error?r.message:String(r)}`,r),await t(1)}};
@@ -1,2 +1,2 @@
1
- import{globby as e}from"globby";import{rmSync as r}from"node:fs";import{mkdir as o,writeFile as t}from"node:fs/promises";import{dirname as s,resolve as i}from"node:path";import{startEditorServer as a}from"../editor-server/index.js";import{ApplicationSpecStoryWatcher as n}from"../services/application-spec-story-watcher.js";import{STORY_DEV_MARKER_PATH as l,readActiveStoryDevMarker as c}from"../services/index.js";import{MockTemplateWatcher as p}from"../services/mock-template-watcher.js";import{PhoenixApplication as d}from"../services/phoenix-application.js";import{PhoenixPubSub as f}from"../services/phoenix-pubsub.js";import{PhoenixStore as m}from"../services/phoenix-store.js";import{resolveGlobToDirectories as w}from"./resolve-story-directories.js";import{runStoryBuildCommand as g}from"./story-build.js";let u=async(r,o)=>{let t=o?i(process.cwd(),o):s(r),a=new Set([r,...(await e(`*/${l}`,{cwd:t,absolute:!0})).map(e=>s(s(e)))]);return(await Promise.all([...a].map(c))).find(e=>null!==e)??null},y=async(e,r)=>{let a=i(e,l),n={projectRoot:e,pid:process.pid,port:r};return await o(s(a),{recursive:!0}),await t(a,`${JSON.stringify(n)}
2
- `),a},h=async(e,o)=>{let t=await w(e.folder,e.baseDir),[s]=t,i=e.editorWsPort??3120;if(!s||1!==t.length)throw Error(`Story dev requires exactly one existing story folder, but "${e.folder}" resolved ${t.length}. Pass one concrete folder and check the base directory.`);let l=await u(s,e.baseDir);if(l)throw Error(`Story dev is already running for "${l.projectRoot}" (PID ${l.pid}) on port ${l.port}. Stop that process before starting another story.`);let c=await y(s,i),h=()=>r(c,{force:!0});process.once("exit",h);let v=new f,b=null,S=null,$=null,x=!1,j=async()=>{if(!x){for(let e of(x=!0,process.off("exit",h),[{name:"story source watcher",close:()=>$?.close()},{name:"mock-template watcher",close:()=>S?.close()},{name:"editor server",close:()=>b?.close()}]))try{await e.close()}catch(r){o.logger.warn(`Failed to close the story-dev ${e.name}: ${r instanceof Error?r.message:String(r)}. The process will continue shutting down.`)}r(c,{force:!0})}};try{return o.logger.step(`Building application-spec story in ${s}`),await g({folder:s,baseDir:e.baseDir},o),b=a({port:i,projectRoot:s,application:new d({store:new m,pubsub:v,variantPreviews:void 0}),logger:o.logger,storyMode:!0}),await b.ready,(S=new p({projectRoot:s,pubsub:v,logger:o.logger})).start(),($=new n({projectRoot:s,pubsub:v,logger:o.logger})).start(),o.logger.success(`Story dev is running for ${s}`),o.logger.info(`Editor WebSocket: ws://localhost:${i}`),o.logger.info("Source changes update the editor without regenerating Storybook files."),{markerPath:c,close:j}}catch(e){throw await j(),e}};export const runStoryDevCommand=async(e,r)=>{let o;if(o=e.folder,/[*?[\]{}()!]/.test(o))throw Error(`Story dev accepts one concrete story folder, but "${e.folder}" contains glob syntax. Pass a folder name without wildcards.`);let t=await h(e,r),s=null,i=new Promise(e=>{s=e}),a=()=>s?.();process.once("SIGINT",a),process.once("SIGTERM",a),e.shutdownSignal?.addEventListener("abort",a,{once:!0}),e.shutdownSignal?.aborted&&a();try{await i}finally{process.off("SIGINT",a),process.off("SIGTERM",a),e.shutdownSignal?.removeEventListener("abort",a),await t.close()}};
1
+ import{globby as e}from"globby";import{rmSync as r}from"node:fs";import{mkdir as o,writeFile as t}from"node:fs/promises";import{dirname as s,resolve as i}from"node:path";import{startEditorServer as a}from"../editor-server/index.js";import{PhoenixApplication as n,STORY_DEV_MARKER_PATH as l,readActiveStoryDevMarker as c}from"../services/index.js";import{resolveGlobToDirectories as d}from"./resolve-story-directories.js";import{runStoryBuildCommand as f}from"./story-build.js";let p=async(r,o)=>{let t=o?i(process.cwd(),o):s(r),a=new Set([r,...(await e(`*/${l}`,{cwd:t,absolute:!0})).map(e=>s(s(e)))]);return(await Promise.all([...a].map(c))).find(e=>null!==e)??null},w=async(e,r)=>{let a=i(e,l),n={projectRoot:e,pid:process.pid,port:r};return await o(s(a),{recursive:!0}),await t(a,`${JSON.stringify(n)}
2
+ `),a},g=async(e,o)=>{let t=await d(e.folder,e.baseDir),[s]=t,i=e.editorWsPort??3120;if(!s||1!==t.length)throw Error(`Story dev requires exactly one existing story folder, but "${e.folder}" resolved ${t.length}. Pass one concrete folder and check the base directory.`);let l=await p(s,e.baseDir);if(l)throw Error(`Story dev is already running for "${l.projectRoot}" (PID ${l.pid}) on port ${l.port}. Stop that process before starting another story.`);let c=await w(s,i),g=()=>r(c,{force:!0});process.once("exit",g);let m=new n({projectRoot:s,mode:"story",development:void 0,editorPort:i},{logger:o.logger,createEditorServer:a,onProjectPrepared:()=>{},onStartupFailure:()=>{},onBrowserConsole:()=>{}}),y=!1,u=async()=>{y||(y=!0,process.off("exit",g),await m.close(),r(c,{force:!0}))};try{return o.logger.step(`Building application-spec story in ${s}`),await f({folder:s,baseDir:e.baseDir},o),await m.start(),o.logger.success(`Story dev is running for ${s}`),o.logger.info(`Editor WebSocket: ws://localhost:${i}`),o.logger.info("Source changes update the editor without regenerating Storybook files."),{markerPath:c,close:u}}catch(e){throw await u(),e}};export const runStoryDevCommand=async(e,r)=>{let o;if(o=e.folder,/[*?[\]{}()!]/.test(o))throw Error(`Story dev accepts one concrete story folder, but "${e.folder}" contains glob syntax. Pass a folder name without wildcards.`);let t=await g(e,r),s=null,i=new Promise(e=>{s=e}),a=()=>s?.();process.once("SIGINT",a),process.once("SIGTERM",a),e.shutdownSignal?.addEventListener("abort",a,{once:!0}),e.shutdownSignal?.aborted&&a();try{await i}finally{process.off("SIGINT",a),process.off("SIGTERM",a),e.shutdownSignal?.removeEventListener("abort",a),await t.close()}};
@@ -1 +1 @@
1
- import{ensureWorkspaceInstallSettings as e,runCommand as s}from"../utils/index.js";import{generateProjectFilesAndInstallDependencies as c}from"./generate-project-files.js";export const runSyncCommand=async(t,i)=>{let{logger:r}=i,{sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,force:m=!1,analyze:u=!1}=t;try{r.step("Syncing Phoenix project files"),e(process.cwd()),await s({command:"pnpm",args:["install"],description:"Installing packages",quiet:!0},{logger:r}),r.step("Building project files"),await c({sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,inlineTemplates:!0,force:m,analyze:u},i),r.success("Project files built successfully"),r.success("Sync completed successfully!")}catch(e){r.error(`Sync failed: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{generateProjectFiles as e,logDiagnostics as s}from"../application-spec/index.js";import{exitCli as c}from"../services/index.js";export const runSyncCommand=async(i,r)=>{let{logger:t}=r,{sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,force:f=!1,analyze:m=!1}=i;try{t.step("Syncing Phoenix project files"),t.step("Building project files");let{diagnostics:c}=await e({sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,inlineTemplates:!0,force:f,analyze:m},r);s(c,t),t.success("Project files built successfully"),t.success("Sync completed successfully!")}catch(e){t.error(`Sync failed: ${e instanceof Error?e.message:String(e)}`,e),await c(1)}};
@@ -1 +1 @@
1
- import{getLocalOverrides as n,removeWorkspaceOverrides as e,runCommand as i}from"../utils/index.js";export const runUnlinkCommand=async a=>{let{logger:s}=a;try{s.step("Unlinking local SDK packages");let a=n();if(0===a.length)return void s.info("No linked SDK packages found");s.debug(`Found ${a.length} linked packages`),a.forEach(n=>{s.debug(` Unlinked ${n}`)}),e(a),s.success(`Unlinked ${a.length} SDK packages`),await i({command:"pnpm",args:["install","--config.optimistic-repeat-install=false"],description:"Installing packages",quiet:!0},{logger:s}),s.info("\nNext step:"),s.info(" Run: phoenix dev")}catch(n){throw s.error(`Failed to unlink SDK packages: ${n instanceof Error?n.message:String(n)}. pnpm-workspace.yaml may be missing or invalid. Check that an overrides section exists in pnpm-workspace.yaml.`),n}};
1
+ import{assertPnpmProject as n,getLocalOverrides as e,removeWorkspaceOverrides as r}from"../utils/index.js";export const runUnlinkCommand=async o=>{let{logger:i}=o;try{n({projectRoot:process.cwd(),command:"unlink"})}catch(n){throw i.error(n instanceof Error?n.message:String(n)),n}try{i.step("Unlinking local SDK packages");let n=e();if(0===n.length)return void i.info("No linked SDK packages found");i.debug(`Found ${n.length} linked packages`),n.forEach(n=>{i.debug(` Unlinked ${n}`)}),r(n),i.success(`Unlinked ${n.length} SDK packages`),i.info("\nNext steps:\n pnpm install --config.optimistic-repeat-install=false\n phoenix dev")}catch(n){throw i.error(`Failed to unlink SDK packages: ${n instanceof Error?n.message:String(n)}. pnpm-workspace.yaml may be missing or invalid. Check that an overrides section exists in pnpm-workspace.yaml.`),n}};
@@ -1 +1 @@
1
- import{createTRPCClient as e,createWSClient as t,wsLink as o}from"@trpc/client";import{existsSync as r,readFileSync as i,readdirSync as n,rmSync as a,statSync as s}from"fs";import{isAbsolute as l,join as c,relative as p,resolve as d,sep as h}from"path";import f from"ws";import{toPosixPath as w}from"../utils/path.js";let m=".phoenix",u="variants",v=".variant.js",g=".html",y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$=e=>{let t=e?.trim();return""===t?void 0:t},b=e=>$(e?.replace(/&(?:amp|lt|gt|quot|#39);/g,e=>y[e]??e)),C=(e,t)=>{let o=e.match(RegExp(`export\\s+const\\s+${t}\\s*=\\s*(['"\`])((?:\\\\.|(?!\\1).)*)\\1`))?.[2];return $(o?.replace(/\\(.)/g,"$1"))};export const readVariantSet=e=>{let t=d(e.projectRoot,m),o=c(t,u),a=d(e.projectRoot,e.directory),f=p(o,a),y=`${m}/${u}/<name>/`;if(""===f||".."===f||f.startsWith(`..${h}`)||l(f))throw Error(`Cannot preview ${e.directory}: the dev server only shows options from a folder of their own below ${m}/${u}/. Write the option files to ${y} and pass that folder`);if(!r(a)||!s(a).isDirectory())throw Error(`Cannot preview ${e.directory}: there is no such folder. Write one ${v} or ${g} file per option to ${y} first`);let $=n(a),E=Math.round(Math.max(0,...$.map(e=>s(c(a,e)).mtimeMs))),x=$.filter(e=>e.endsWith(v)||e.endsWith(g)).sort().map(e=>(e=>{let{webRoot:t,directory:o,name:r,version:n}=e,a=c(o,r),s=i(a,"utf8"),l=`/${w(p(t,a)).split("/").map(encodeURIComponent).join("/")}`,d=r.endsWith(v),h=r.slice(0,-(d?v:g).length),f=s.match(/<meta\b[^>]*\bname=(["'])description\1[^>]*>/i)?.[0];return{id:h,kind:d?"script":"page",label:(d?C(s,"title"):b(s.match(/<title[^>]*>([^<]*)<\/title>/i)?.[1]))??h,description:(d?C(s,"description"):b(f?.match(/\bcontent=(["'])(.*?)\1/i)?.[2]))??"",url:`${l}?t=${n}`}})({webRoot:t,directory:a,name:e,version:E}));if(0===x.length)throw Error(`Cannot preview ${e.directory}: it holds no ${v} or ${g} file, so there is no option to show. Write one file per option; any other file is a helper the options share`);let R=x.find((e,t)=>x.findIndex(t=>t.id===e.id)!==t);if(R)throw Error(`Cannot preview ${e.directory}: two options are named "${R.id}", and the answer names an option by its file name without the suffix. Rename one of the files`);return{directory:a,variantsRoot:o,options:x}};let E=r=>{let i=t({url:`ws://localhost:${r}`,WebSocket:f});return{wsClient:i,client:e({links:[o({client:i})]})}},x=e=>{console.log(JSON.stringify(e,null,2))},R=async e=>{let{wsClient:t,client:o}=E(e);try{let{closed:e}=await o.closeVariantPreview.mutate();x({status:"closed",message:e?"The open preview was closed.":"No preview was open."})}finally{await t.close()}},S=async(e,t,o,i)=>{let{wsClient:s,client:l}=E(t.port);try{let s=await l.previewVariants.mutate({title:t.title??"Which option do you prefer?",description:t.description??"",variants:[...e.options],timeoutMs:o});if("waiting"===s.status)return void x({status:"waiting",message:"The preview is still open and nothing was picked yet. Run the same command again to keep waiting."});if("closed"===s.status)return void x({status:"closed",message:"The preview was closed before an answer was given. The option folder is kept."});await l.claimVariantChoice.mutate({requestId:s.requestId});let c=e.options.find(e=>e.id===s.choice);if(x({status:"chosen",choice:s.choice,label:c?.label??"Original"}),!t.keep)try{a(e.directory,{recursive:!0,force:!0}),r(e.variantsRoot)&&0===n(e.variantsRoot).length&&a(e.variantsRoot,{recursive:!0,force:!0})}catch(t){i.logger.warn(`Could not remove ${e.directory} after the answer: ${t instanceof Error?t.message:String(t)}. Remove the folder yourself`)}}finally{await s.close()}};export const runVariantsCommand=async(e,t)=>{let{logger:o}=t;try{if(e.close)return void await R(e.port);if(void 0===e.directory)throw Error(`Cannot preview without a folder: the options to show are read from it. Pass ${m}/${u}/<name>/, or --close to close the open preview`);let o=(e=>{let t=Math.round((e??540)*1e3);if(!Number.isFinite(t)||t<=0)throw Error(`Cannot wait for ${e} seconds: --timeout is how long the command waits for the answer. Pass a positive number of seconds`);if(t>0x7fffffff)throw Error(`Cannot wait for ${e} seconds: a wait is at most ${Math.floor(2147483.647)} seconds. Pass a smaller --timeout and run the command again while it answers "waiting"`);return t})(e.timeout),r=readVariantSet({projectRoot:process.cwd(),directory:e.directory});await S(r,e,o,t)}catch(e){o.error((e=>{let t;if(!(e instanceof Error))return`Variant preview failed: ${String(e)}`;let o=e.cause;return null!=o&&"object"==typeof o&&"code"in o&&"ECONNREFUSED"===o.code?"Dev server not running. Start with `phoenix dev`":"object"==typeof(t="data"in e?e.data:void 0)&&null!==t&&"code"in t&&"NOT_FOUND"===t.code?"Cannot preview: the dev server that is running has no variant previews, because it runs the legacy pipeline or an older SDK. Variant previews need `phoenix dev` of a project on the application-spec pipeline, started with this SDK version":e.message})(e)),process.exit(1)}};
1
+ import{createTRPCClient as e,createWSClient as t,wsLink as o}from"@trpc/client";import{existsSync as r,readFileSync as i,readdirSync as n,rmSync as a,statSync as s}from"fs";import{isAbsolute as l,join as c,relative as p,resolve as d,sep as h}from"path";import f from"ws";import{exitCli as w}from"../services/index.js";import{toPosixPath as m}from"../utils/path.js";let u=".phoenix",v="variants",g=".variant.js",y=".html",$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},b=e=>{let t=e?.trim();return""===t?void 0:t},C=e=>b(e?.replace(/&(?:amp|lt|gt|quot|#39);/g,e=>$[e]??e)),E=(e,t)=>{let o=e.match(RegExp(`export\\s+const\\s+${t}\\s*=\\s*(['"\`])((?:\\\\.|(?!\\1).)*)\\1`))?.[2];return b(o?.replace(/\\(.)/g,"$1"))};export const readVariantSet=e=>{let t=d(e.projectRoot,u),o=c(t,v),a=d(e.projectRoot,e.directory),f=p(o,a),w=`${u}/${v}/<name>/`;if(""===f||".."===f||f.startsWith(`..${h}`)||l(f))throw Error(`Cannot preview ${e.directory}: the dev server only shows options from a folder of their own below ${u}/${v}/. Write the option files to ${w} and pass that folder`);if(!r(a)||!s(a).isDirectory())throw Error(`Cannot preview ${e.directory}: there is no such folder. Write one ${g} or ${y} file per option to ${w} first`);let $=n(a),b=Math.round(Math.max(0,...$.map(e=>s(c(a,e)).mtimeMs))),x=$.filter(e=>e.endsWith(g)||e.endsWith(y)).sort().map(e=>(e=>{let{webRoot:t,directory:o,name:r,version:n}=e,a=c(o,r),s=i(a,"utf8"),l=`/${m(p(t,a)).split("/").map(encodeURIComponent).join("/")}`,d=r.endsWith(g),h=r.slice(0,-(d?g:y).length),f=s.match(/<meta\b[^>]*\bname=(["'])description\1[^>]*>/i)?.[0];return{id:h,kind:d?"script":"page",label:(d?E(s,"title"):C(s.match(/<title[^>]*>([^<]*)<\/title>/i)?.[1]))??h,description:(d?E(s,"description"):C(f?.match(/\bcontent=(["'])(.*?)\1/i)?.[2]))??"",url:`${l}?t=${n}`}})({webRoot:t,directory:a,name:e,version:b}));if(0===x.length)throw Error(`Cannot preview ${e.directory}: it holds no ${g} or ${y} file, so there is no option to show. Write one file per option; any other file is a helper the options share`);let R=x.find((e,t)=>x.findIndex(t=>t.id===e.id)!==t);if(R)throw Error(`Cannot preview ${e.directory}: two options are named "${R.id}", and the answer names an option by its file name without the suffix. Rename one of the files`);return{directory:a,variantsRoot:o,options:x}};let x=r=>{let i=t({url:`ws://localhost:${r}`,WebSocket:f});return{wsClient:i,client:e({links:[o({client:i})]})}},R=e=>{console.log(JSON.stringify(e,null,2))},j=async e=>{let{wsClient:t,client:o}=x(e);try{let{closed:e}=await o.closeVariantPreview.mutate();R({status:"closed",message:e?"The open preview was closed.":"No preview was open."})}finally{await t.close()}},S=async(e,t,o,i)=>{let{wsClient:s,client:l}=x(t.port);try{let s=await l.previewVariants.mutate({title:t.title??"Which option do you prefer?",description:t.description??"",variants:[...e.options],timeoutMs:o});if("waiting"===s.status)return void R({status:"waiting",message:"The preview is still open and nothing was picked yet. Run the same command again to keep waiting."});if("closed"===s.status)return void R({status:"closed",message:"The preview was closed before an answer was given. The option folder is kept."});await l.claimVariantChoice.mutate({requestId:s.requestId});let c=e.options.find(e=>e.id===s.choice);if(R({status:"chosen",choice:s.choice,label:c?.label??"Original"}),!t.keep)try{a(e.directory,{recursive:!0,force:!0}),r(e.variantsRoot)&&0===n(e.variantsRoot).length&&a(e.variantsRoot,{recursive:!0,force:!0})}catch(t){i.logger.warn(`Could not remove ${e.directory} after the answer: ${t instanceof Error?t.message:String(t)}. Remove the folder yourself`)}}finally{await s.close()}};export const runVariantsCommand=async(e,t)=>{let{logger:o}=t;try{if(e.close)return void await j(e.port);if(void 0===e.directory)throw Error(`Cannot preview without a folder: the options to show are read from it. Pass ${u}/${v}/<name>/, or --close to close the open preview`);let o=(e=>{let t=Math.round((e??540)*1e3);if(!Number.isFinite(t)||t<=0)throw Error(`Cannot wait for ${e} seconds: --timeout is how long the command waits for the answer. Pass a positive number of seconds`);if(t>0x7fffffff)throw Error(`Cannot wait for ${e} seconds: a wait is at most ${Math.floor(2147483.647)} seconds. Pass a smaller --timeout and run the command again while it answers "waiting"`);return t})(e.timeout),r=readVariantSet({projectRoot:process.cwd(),directory:e.directory});await S(r,e,o,t)}catch(e){o.error((e=>{let t;if(!(e instanceof Error))return`Variant preview failed: ${String(e)}`;let o=e.cause;return null!=o&&"object"==typeof o&&"code"in o&&"ECONNREFUSED"===o.code?"Dev server not running. Start with `phoenix dev`":"object"==typeof(t="data"in e?e.data:void 0)&&null!==t&&"code"in t&&"NOT_FOUND"===t.code?"Cannot preview: the dev server that is running has no variant previews, because it runs the legacy pipeline or an older SDK. Variant previews need `phoenix dev` of a project on the application-spec pipeline, started with this SDK version":e.message})(e)),await w(1)}};
@@ -1 +1 @@
1
- import{observable as e}from"@trpc/server/observable";import{writeFile as t}from"fs/promises";import{resolve as r}from"path";import{filter as s,firstValueFrom as n,timeout as o}from"rxjs";import{z as i}from"zod";import{LOG_STREAMS as u}from"../services/log-bus.js";import{publicProcedure as a,router as l}from"./trpc.js";let b=i.enum(["all",...u]),c=e=>{if(!e.variantPreviews)throw Error("Cannot preview variants: this session cannot rewrite project files, because it is not `phoenix dev`. Run `phoenix dev` in the project and try again");return e.variantPreviews};export const commandsRouter=l({getLogs:a.input(i.object({stream:b,beforeSeq:i.number().int().positive().optional(),limit:i.number().int().positive().max(500).default(200)})).query(({input:e,ctx:t})=>{if(!t.logBus)return{entries:[],hasMore:!1,counts:null};let r=t.logBus.query(e);return{entries:r.entries,hasMore:r.hasMore,counts:t.logBus.allCounts()}}),onLog:a.subscription(({ctx:t})=>e(e=>t.logBus?t.logBus.subscribe(t=>{e.next(t)}):()=>{})),getTunnelState:a.query(({ctx:e})=>e.tunnelMonitor?{state:e.tunnelMonitor.state(),entries:e.tunnelMonitor.summaries()}:{state:null,entries:[]}),getTunnelRequest:a.input(i.object({seq:i.number().int().positive()})).query(({ctx:e,input:t})=>e.tunnelMonitor?.entry(t.seq)??null),onTunnelEvent:a.subscription(({ctx:t})=>e(e=>t.tunnelMonitor?t.tunnelMonitor.subscribe(t=>{e.next(t)}):()=>{})),takeScreenshot:a.input(i.object({width:i.number().int().positive(),height:i.number().int().positive(),fileFormat:i.enum(["PNG","JPEG"]),output:i.string()})).mutation(async({input:e,ctx:i})=>{let u;if(0===i.pubsub.screenshotRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let a=crypto.randomUUID(),l=n(i.pubsub.screenshotResult$.pipe(s(e=>e.requestId===a),o(3e4)));i.pubsub.screenshotRequest$.next({requestId:a,width:e.width,height:e.height,fileFormat:e.fileFormat});try{u=await l}catch{throw Error("Screenshot timed out. Ensure configurator is fully loaded")}let b=r(e.output),c=Buffer.from(u.imageBase64,"base64");try{await t(b,c)}catch(e){throw Error(`Failed to save screenshot: ${e instanceof Error?e.message:String(e)}`)}return{filePath:b}}),onScreenshotRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.screenshotRequest$.subscribe({next:r=>{t.logger.debug(`Emitting screenshot request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`Screenshot request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("Screenshot request subscription unsubscribed"),r.unsubscribe()}})),submitScreenshot:a.input(i.object({requestId:i.string(),imageBase64:i.string(),fileFormat:i.enum(["PNG","JPEG"])})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received screenshot result for request: ${e.requestId}`),t.pubsub.screenshotResult$.next({requestId:e.requestId,imageBase64:e.imageBase64,fileFormat:e.fileFormat})}),reportBrowserConsole:a.input(i.object({level:i.enum(["error","warn","info"]),message:i.string(),source:i.string().optional(),timestamp:i.string().optional()})).mutation(({input:e,ctx:t})=>{if(!t.logBus){let r=e.source?`browser:${e.source}`:"browser";t.logger.warn(`[${r}] ${e.message}`)}t.pubsub.browserConsole$.next({level:e.level,message:e.message,source:e.source,timestamp:e.timestamp})}),onBrowserConsole:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.browserConsole$.subscribe({next:t=>{e.next(t)},error:r=>{t.logger.error(`Browser console subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{r.unsubscribe()}})),getEditorState:a.input(i.object({sections:i.array(i.enum(["entities","navigation","validation"])).optional()})).mutation(async({input:e,ctx:t})=>{let r;if(0===t.pubsub.stateRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let i=crypto.randomUUID(),u=e.sections??["entities","navigation","validation"],a=n(t.pubsub.stateResult$.pipe(s(e=>e.requestId===i),o(1e4)));t.pubsub.stateRequest$.next({requestId:i,sections:u});try{r=await a}catch{throw Error("State request timed out. Ensure configurator is fully loaded")}return r.state}),onStateRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.stateRequest$.subscribe({next:r=>{t.logger.debug(`Emitting state request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`State request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("State request subscription unsubscribed"),r.unsubscribe()}})),submitEditorState:a.input(i.object({requestId:i.string(),state:i.object({lifecycle:i.object({domainLoaded:i.boolean(),domainContextReady:i.boolean(),configuratorReady:i.boolean(),sessionAuthenticated:i.boolean(),editorMode:i.boolean()}),entities:i.array(i.record(i.unknown())).nullable(),navigation:i.record(i.unknown()).nullable(),validation:i.record(i.unknown()).nullable()})})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received editor state for request: ${e.requestId}`),t.pubsub.stateResult$.next({requestId:e.requestId,state:e.state})}),getEditorData:a.mutation(async({ctx:e})=>{let t;if(0===e.pubsub.dataRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let r=crypto.randomUUID(),i=n(e.pubsub.dataResult$.pipe(s(e=>e.requestId===r),o(1e4)));e.pubsub.dataRequest$.next({requestId:r});try{t=await i}catch{throw Error("Data request timed out. Ensure configurator is fully loaded")}return t.data}),onDataRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.dataRequest$.subscribe({next:r=>{t.logger.debug(`Emitting data request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`Data request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("Data request subscription unsubscribed"),r.unsubscribe()}})),submitEditorData:a.input(i.object({requestId:i.string(),data:i.object({publishedData:i.record(i.unknown()).nullable(),frontendData:i.record(i.unknown()).nullable(),backendData:i.record(i.unknown()).nullable(),sessionData:i.record(i.unknown()).nullable(),accessData:i.record(i.unknown()).nullable(),webComponentProperties:i.record(i.unknown()).nullable()})})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received editor data for request: ${e.requestId}`),t.pubsub.dataResult$.next({requestId:e.requestId,data:e.data})}),getEditorScene:a.mutation(async({ctx:e})=>{let t;if(0===e.pubsub.sceneRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let r=crypto.randomUUID(),i=n(e.pubsub.sceneResult$.pipe(s(e=>e.requestId===r),o(1e4)));e.pubsub.sceneRequest$.next({requestId:r});try{t=await i}catch{throw Error("Scene request timed out. Ensure configurator is fully loaded")}return t.scene}),onSceneRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.sceneRequest$.subscribe({next:r=>{t.logger.debug(`Emitting scene request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`Scene request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("Scene request subscription unsubscribed"),r.unsubscribe()}})),submitEditorScene:a.input(i.object({requestId:i.string(),scene:i.record(i.unknown()).nullable()})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received editor scene for request: ${e.requestId}`),t.pubsub.sceneResult$.next({requestId:e.requestId,scene:e.scene})}),previewVariants:a.input(i.object({title:i.string(),description:i.string(),variants:i.array(i.object({id:i.string(),kind:i.enum(["script","page"]),label:i.string(),description:i.string(),url:i.string().refine(e=>{try{let t=decodeURIComponent(new URL(e,"http://variant.invalid").pathname);return e.startsWith("/variants/")&&t.startsWith("/variants/")&&!t.includes("\\")&&!t.split("/").some(e=>"."===e||".."===e)}catch{return!1}},"Option URLs must stay below /variants/; use a file from the variant set")})).min(1),timeoutMs:i.number().int().positive().max(0x7fffffff)})).mutation(({input:e,ctx:t})=>c(t).open(e)),onVariantPreview:a.subscription(({ctx:t})=>e(e=>{let r=t.variantPreviews;if(!r)return e.next(null),()=>void 0;let s=r.request$.subscribe(t=>{e.next(t)});return()=>{s.unsubscribe()}})),getVariantBaseline:a.input(i.object({requestId:i.string()})).query(({input:e,ctx:t})=>c(t).getBaseline(e.requestId)),applyVariantFiles:a.input(i.object({requestId:i.string(),choice:i.string().nullable(),files:i.array(i.object({fileName:i.string(),content:i.string().nullable()}))})).mutation(({input:e,ctx:t})=>c(t).applyFiles(e)),submitVariantChoice:a.input(i.object({requestId:i.string(),choice:i.string().nullable()})).mutation(({input:e,ctx:t})=>c(t).submit(e)),closeVariantPreview:a.mutation(({ctx:e})=>e.variantPreviews?.close()??Promise.resolve({closed:!1})),claimVariantChoice:a.input(i.object({requestId:i.string()})).mutation(({input:e,ctx:t})=>{t.variantPreviews?.claim(e.requestId)})});
1
+ import{observable as e}from"@trpc/server/observable";import{writeFile as t}from"fs/promises";import{resolve as r}from"path";import{filter as s,firstValueFrom as n,timeout as o}from"rxjs";import{z as i}from"zod";import{LOG_STREAMS as u}from"../services/log-bus.js";import{publicProcedure as a,router as l}from"./trpc.js";let c=i.enum(["all",...u]),b=e=>{if(!e.application.variantPreviews)throw Error("Cannot preview variants: this session cannot rewrite project files, because it is not `phoenix dev`. Run `phoenix dev` in the project and try again");return e.application.variantPreviews};export const commandsRouter=l({getLogs:a.input(i.object({stream:c,beforeSeq:i.number().int().positive().optional(),limit:i.number().int().positive().max(500).default(200)})).query(({input:e,ctx:t})=>{if(!t.application.logs)return{entries:[],hasMore:!1,counts:null};let r=t.application.logs.query(e);return{entries:r.entries,hasMore:r.hasMore,counts:t.application.logs.allCounts()}}),onLog:a.subscription(({ctx:t})=>e(e=>t.application.logs?t.application.logs.subscribe(t=>{e.next(t)}):()=>{})),getTunnelState:a.query(({ctx:e})=>e.application.tunnelMonitor?{state:e.application.tunnelMonitor.state(),entries:e.application.tunnelMonitor.summaries()}:{state:null,entries:[]}),getTunnelRequest:a.input(i.object({seq:i.number().int().positive()})).query(({ctx:e,input:t})=>e.application.tunnelMonitor?.entry(t.seq)??null),onTunnelEvent:a.subscription(({ctx:t})=>e(e=>t.application.tunnelMonitor?t.application.tunnelMonitor.subscribe(t=>{e.next(t)}):()=>{})),takeScreenshot:a.input(i.object({width:i.number().int().positive(),height:i.number().int().positive(),fileFormat:i.enum(["PNG","JPEG"]),output:i.string()})).mutation(async({input:e,ctx:i})=>{let u;if(0===i.pubsub.screenshotRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let a=crypto.randomUUID(),l=n(i.pubsub.screenshotResult$.pipe(s(e=>e.requestId===a),o(3e4)));i.pubsub.screenshotRequest$.next({requestId:a,width:e.width,height:e.height,fileFormat:e.fileFormat});try{u=await l}catch{throw Error("Screenshot timed out. Ensure configurator is fully loaded")}let c=r(e.output),b=Buffer.from(u.imageBase64,"base64");try{await t(c,b)}catch(e){throw Error(`Failed to save screenshot: ${e instanceof Error?e.message:String(e)}`)}return{filePath:c}}),onScreenshotRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.screenshotRequest$.subscribe({next:r=>{t.logger.debug(`Emitting screenshot request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`Screenshot request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("Screenshot request subscription unsubscribed"),r.unsubscribe()}})),submitScreenshot:a.input(i.object({requestId:i.string(),imageBase64:i.string(),fileFormat:i.enum(["PNG","JPEG"])})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received screenshot result for request: ${e.requestId}`),t.pubsub.screenshotResult$.next({requestId:e.requestId,imageBase64:e.imageBase64,fileFormat:e.fileFormat})}),reportBrowserConsole:a.input(i.object({level:i.enum(["error","warn","info"]),message:i.string(),source:i.string().optional(),timestamp:i.string().optional()})).mutation(({input:e,ctx:t})=>{if(!t.application.logs){let r=e.source?`browser:${e.source}`:"browser";t.logger.warn(`[${r}] ${e.message}`)}t.pubsub.browserConsole$.next({level:e.level,message:e.message,source:e.source,timestamp:e.timestamp})}),onBrowserConsole:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.browserConsole$.subscribe({next:t=>{e.next(t)},error:r=>{t.logger.error(`Browser console subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{r.unsubscribe()}})),getEditorState:a.input(i.object({sections:i.array(i.enum(["entities","navigation","validation"])).optional()})).mutation(async({input:e,ctx:t})=>{let r;if(0===t.pubsub.stateRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let i=crypto.randomUUID(),u=e.sections??["entities","navigation","validation"],a=n(t.pubsub.stateResult$.pipe(s(e=>e.requestId===i),o(1e4)));t.pubsub.stateRequest$.next({requestId:i,sections:u});try{r=await a}catch{throw Error("State request timed out. Ensure configurator is fully loaded")}return r.state}),onStateRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.stateRequest$.subscribe({next:r=>{t.logger.debug(`Emitting state request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`State request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("State request subscription unsubscribed"),r.unsubscribe()}})),submitEditorState:a.input(i.object({requestId:i.string(),state:i.object({lifecycle:i.object({domainLoaded:i.boolean(),domainContextReady:i.boolean(),configuratorReady:i.boolean(),sessionAuthenticated:i.boolean(),editorMode:i.boolean()}),entities:i.array(i.record(i.unknown())).nullable(),navigation:i.record(i.unknown()).nullable(),validation:i.record(i.unknown()).nullable()})})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received editor state for request: ${e.requestId}`),t.pubsub.stateResult$.next({requestId:e.requestId,state:e.state})}),getEditorData:a.mutation(async({ctx:e})=>{let t;if(0===e.pubsub.dataRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let r=crypto.randomUUID(),i=n(e.pubsub.dataResult$.pipe(s(e=>e.requestId===r),o(1e4)));e.pubsub.dataRequest$.next({requestId:r});try{t=await i}catch{throw Error("Data request timed out. Ensure configurator is fully loaded")}return t.data}),onDataRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.dataRequest$.subscribe({next:r=>{t.logger.debug(`Emitting data request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`Data request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("Data request subscription unsubscribed"),r.unsubscribe()}})),submitEditorData:a.input(i.object({requestId:i.string(),data:i.object({publishedData:i.record(i.unknown()).nullable(),frontendData:i.record(i.unknown()).nullable(),backendData:i.record(i.unknown()).nullable(),sessionData:i.record(i.unknown()).nullable(),accessData:i.record(i.unknown()).nullable(),webComponentProperties:i.record(i.unknown()).nullable()})})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received editor data for request: ${e.requestId}`),t.pubsub.dataResult$.next({requestId:e.requestId,data:e.data})}),getEditorScene:a.mutation(async({ctx:e})=>{let t;if(0===e.pubsub.sceneRequest$.observers.length)throw Error("No editor connected. Open the configurator in a browser");let r=crypto.randomUUID(),i=n(e.pubsub.sceneResult$.pipe(s(e=>e.requestId===r),o(1e4)));e.pubsub.sceneRequest$.next({requestId:r});try{t=await i}catch{throw Error("Scene request timed out. Ensure configurator is fully loaded")}return t.scene}),onSceneRequest:a.subscription(({ctx:t})=>e(e=>{let r=t.pubsub.sceneRequest$.subscribe({next:r=>{t.logger.debug(`Emitting scene request to subscriber: ${r.requestId}`),e.next(r)},error:r=>{t.logger.error(`Scene request subject error: ${r instanceof Error?r.message:String(r)}`),e.error(r)}});return()=>{t.logger.debug("Scene request subscription unsubscribed"),r.unsubscribe()}})),submitEditorScene:a.input(i.object({requestId:i.string(),scene:i.record(i.unknown()).nullable()})).mutation(({input:e,ctx:t})=>{t.logger.debug(`Received editor scene for request: ${e.requestId}`),t.pubsub.sceneResult$.next({requestId:e.requestId,scene:e.scene})}),previewVariants:a.input(i.object({title:i.string(),description:i.string(),variants:i.array(i.object({id:i.string(),kind:i.enum(["script","page"]),label:i.string(),description:i.string(),url:i.string().refine(e=>{try{let t=decodeURIComponent(new URL(e,"http://variant.invalid").pathname);return e.startsWith("/variants/")&&t.startsWith("/variants/")&&!t.includes("\\")&&!t.split("/").some(e=>"."===e||".."===e)}catch{return!1}},"Option URLs must stay below /variants/; use a file from the variant set")})).min(1),timeoutMs:i.number().int().positive().max(0x7fffffff)})).mutation(({input:e,ctx:t})=>b(t).open(e)),onVariantPreview:a.subscription(({ctx:t})=>e(e=>{let r=t.application.variantPreviews;if(!r)return e.next(null),()=>void 0;let s=r.request$.subscribe(t=>{e.next(t)});return()=>{s.unsubscribe()}})),getVariantBaseline:a.input(i.object({requestId:i.string()})).query(({input:e,ctx:t})=>b(t).getBaseline(e.requestId)),applyVariantFiles:a.input(i.object({requestId:i.string(),choice:i.string().nullable(),files:i.array(i.object({fileName:i.string(),content:i.string().nullable()}))})).mutation(({input:e,ctx:t})=>b(t).applyFiles(e)),submitVariantChoice:a.input(i.object({requestId:i.string(),choice:i.string().nullable()})).mutation(({input:e,ctx:t})=>b(t).submit(e)),closeVariantPreview:a.mutation(({ctx:e})=>e.application.variantPreviews?.close()??Promise.resolve({closed:!1})),claimVariantChoice:a.input(i.object({requestId:i.string()})).mutation(({input:e,ctx:t})=>{t.application.variantPreviews?.claim(e.requestId)})});
@@ -1,20 +1,9 @@
1
- import type { LogBus } from '../services/log-bus.js';
2
- import type { PhoenixApplication } from '../services/phoenix-application.js';
3
- import type { WebhookTunnelMonitor } from '../services/webhook-tunnel-monitor.js';
1
+ import type { EditorServerHandle, PhoenixApplication } from '../services/index.js';
4
2
  import type { Logger } from '../utils/index.js';
5
3
  export interface EditorServerOptions {
6
4
  readonly port: number;
7
- readonly projectRoot: string;
8
5
  readonly application: PhoenixApplication;
9
6
  readonly logger: Logger;
10
7
  readonly debug?: boolean;
11
- /** Bound to this dev session; absent for offline and story sessions. */
12
- readonly prepareDeployment?: () => Promise<void>;
13
- readonly storyMode?: boolean;
14
- readonly logBus?: LogBus;
15
- readonly tunnelMonitor?: WebhookTunnelMonitor;
16
8
  }
17
- export declare const startEditorServer: ({ port, projectRoot, application, logger, prepareDeployment, storyMode, logBus, tunnelMonitor, }: EditorServerOptions) => {
18
- ready: Promise<void>;
19
- close: () => Promise<void>;
20
- };
9
+ export declare const startEditorServer: ({ port, application, logger }: EditorServerOptions) => EditorServerHandle;
@@ -1 +1 @@
1
- import{applyWSSHandler as e}from"@trpc/server/adapters/ws";import{WebSocketServer as r}from"ws";import{appRouter as o}from"./editor-router.js";export const startEditorServer=({port:n,projectRoot:t,application:i,logger:s,prepareDeployment:c,storyMode:l,logBus:a,tunnelMonitor:f})=>{let m=new r({port:n}),u=e({wss:m,router:o,createContext:()=>({projectRoot:t,pubsub:i.pubsub,variantPreviews:i.variantPreviews,logger:s,prepareDeployment:c,storyMode:l,logBus:a,tunnelMonitor:f})});m.on("connection",(e,r)=>{let o=r.headers.origin??"unknown";s.info(`WS connected (clients: ${m.clients.size}, origin: ${o})`),e.on("error",e=>{s.warn(`WS error: ${e.message}`)}),e.once("close",(e,r)=>{s.info(`WS disconnected (clients: ${m.clients.size}, code: ${e}, reason: ${r.toString()||"none"})`)})}),m.on("error",e=>{s.error(`WebSocket server error: ${e.message}`)});let w=new Promise((e,r)=>{let o=()=>{m.off("error",t),s.info(`WebSocket Server listening on ws://localhost:${n}`),e()},t=e=>{m.off("listening",o),r(e)};m.once("listening",o),m.once("error",t)}),d=null;return{ready:w,close:()=>d||(s.info("Shutting down WebSocket server"),u.broadcastReconnectNotification(),d=new Promise((e,r)=>{let o=setTimeout(()=>{for(let e of m.clients)e.terminate()},3e3);m.close(n=>{clearTimeout(o),n?r(n):e()})}))}};
1
+ import{applyWSSHandler as e}from"@trpc/server/adapters/ws";import{WebSocketServer as o}from"ws";import{appRouter as r}from"./editor-router.js";export const startEditorServer=({port:t,application:n,logger:i})=>{let s=new o({port:t}),c=e({wss:s,router:r,createContext:()=>({projectRoot:n.projectRoot,pubsub:n.pubsub,application:n,logger:i})});s.on("connection",(e,o)=>{let r=o.headers.origin??"unknown";i.info(`WS connected (clients: ${s.clients.size}, origin: ${r})`),e.on("error",e=>{i.warn(`WS error: ${e.message}`)}),e.once("close",(e,o)=>{i.info(`WS disconnected (clients: ${s.clients.size}, code: ${e}, reason: ${o.toString()||"none"})`)})}),s.on("error",e=>{i.error(`WebSocket server error: ${e.message}`)});let l=new Promise((e,o)=>{let r=()=>{s.off("error",n),i.info(`WebSocket Server listening on ws://localhost:${t}`),e()},n=e=>{s.off("listening",r),o(e)};s.once("listening",r),s.once("error",n)}),a=null;return{ready:l,close:()=>a||(i.info("Shutting down WebSocket server"),c.broadcastReconnectNotification(),a=new Promise((e,o)=>{let r=setTimeout(()=>{for(let e of s.clients)e.terminate()},3e3);s.close(t=>{clearTimeout(r),t?o(t):e()})}))}};
@@ -1 +1 @@
1
- import{TRPCError as e}from"@trpc/server";import{observable as o}from"@trpc/server/observable";import{writeFile as t}from"fs/promises";import{join as r}from"path";import{z as i}from"zod";import{readApplicationFiles as s}from"../application-spec/index.js";import{exists as p}from"../utils/index.js";import{publicProcedure as a,router as n}from"./trpc.js";export const specRouter=n({getEditorConfig:a.query(()=>({specSync:!0})),prepareDeployment:a.mutation(async({ctx:o})=>{if(o.variantPreviews?.isOpen)throw new e({code:"BAD_REQUEST",message:"Deployment preparation is disabled during variant previews. Close the preview first."});if(o.storyMode)throw new e({code:"BAD_REQUEST",message:"Deployment preparation is disabled in Storybook story mode."});if(!o.prepareDeployment)throw new e({code:"BAD_REQUEST",message:"Deployment preparation requires a deployment configuration outside story mode."});await o.prepareDeployment()}),requestSpecFiles:a.mutation(async({ctx:e})=>{let o=e.storyMode?await s({projectRoot:e.projectRoot,envs:{}}):await s();e.pubsub.specFile$.next({rawProjectFiles:o,projectRoot:e.projectRoot})}),save:a.input(i.array(i.object({fileName:i.string(),content:i.string()}))).mutation(async({ctx:o,input:i})=>{if(o.variantPreviews?.isOpen)throw new e({code:"BAD_REQUEST",message:"Close the variant preview before editing source files."});for(let e of i){let i=r(o.projectRoot,e.fileName),s=r(o.projectRoot,e.fileName.split("/").slice(0,-1).join("/"));await p(s)&&await t(i,e.content)}}),onSpecChange:a.subscription(({ctx:e})=>o(o=>{let t=e.pubsub.specFile$.subscribe(e=>{o.next(e)});return()=>{t.unsubscribe()}}))});
1
+ import{TRPCError as e}from"@trpc/server";import{observable as o}from"@trpc/server/observable";import{writeFile as t}from"fs/promises";import{join as i}from"path";import{z as r}from"zod";import{readApplicationFiles as p}from"../application-spec/index.js";import{exists as a}from"../utils/index.js";import{publicProcedure as s,router as n}from"./trpc.js";export const specRouter=n({getEditorConfig:s.query(()=>({specSync:!0})),prepareDeployment:s.mutation(async({ctx:o})=>{if(o.application.variantPreviews?.isOpen)throw new e({code:"BAD_REQUEST",message:"Deployment preparation is disabled during variant previews. Close the preview first."});if("story"===o.application.mode)throw new e({code:"BAD_REQUEST",message:"Deployment preparation is disabled in Storybook story mode."});if(!o.application.deploymentPreparation)throw new e({code:"BAD_REQUEST",message:"Deployment preparation requires a deployment configuration outside story mode."});await o.application.deploymentPreparation.prepare()}),requestSpecFiles:s.mutation(async({ctx:e})=>{let o="story"===e.application.mode?await p({projectRoot:e.projectRoot,envs:{}}):await p();e.pubsub.specFile$.next({rawProjectFiles:o,projectRoot:e.projectRoot})}),save:s.input(r.array(r.object({fileName:r.string(),content:r.string()}))).mutation(async({ctx:o,input:r})=>{if(o.application.variantPreviews?.isOpen)throw new e({code:"BAD_REQUEST",message:"Close the variant preview before editing source files."});for(let e of r){let r=i(o.projectRoot,e.fileName),p=i(o.projectRoot,e.fileName.split("/").slice(0,-1).join("/"));await a(p)&&await t(r,e.content)}}),onSpecChange:s.subscription(({ctx:e})=>o(o=>{let t=e.pubsub.specFile$.subscribe(e=>{o.next(e)});return()=>{t.unsubscribe()}}))});
@@ -1,21 +1,11 @@
1
- import type { LogBus } from '../services/log-bus.js';
1
+ import type { PhoenixApplication } from '../services/index.js';
2
2
  import type { PhoenixPubSub } from '../services/phoenix-pubsub.js';
3
- import type { VariantPreviewService } from '../services/variant-preview-service.js';
4
- import type { WebhookTunnelMonitor } from '../services/webhook-tunnel-monitor.js';
5
3
  import type { Logger } from '../utils/index.js';
6
4
  export type Context = {
7
5
  readonly projectRoot: string;
8
6
  readonly pubsub: PhoenixPubSub;
9
7
  readonly logger: Logger;
10
- /** The session's variant comparison; absent where project files cannot be rewritten, such as story-dev. */
11
- readonly variantPreviews: VariantPreviewService | undefined;
12
- /** Bound to this dev session; absent for offline and story sessions. */
13
- readonly prepareDeployment?: () => Promise<void>;
14
- readonly storyMode?: boolean;
15
- /** Dev-server log buffer backing the editor Logs panel; absent in story mode. */
16
- readonly logBus?: LogBus;
17
- /** Dev-process tunnel state backing the editor Webhook Tunnel panel. */
18
- readonly tunnelMonitor?: WebhookTunnelMonitor;
8
+ readonly application: PhoenixApplication;
19
9
  };
20
10
  export declare const router: import("@trpc/server").TRPCRouterBuilder<{
21
11
  ctx: Context;
@@ -0,0 +1 @@
1
+ export { LINGUI_CONFIG_PATH, bootstrapLinguiCatalogs, compileLingui, extractAndCompileLingui } from './lingui.js';
@@ -0,0 +1 @@
1
+ export{LINGUI_CONFIG_PATH,bootstrapLinguiCatalogs,compileLingui,extractAndCompileLingui}from"./lingui.js";
@@ -0,0 +1,18 @@
1
+ import { type Logger } from '../utils/index.js';
2
+ /**
3
+ * The project's Lingui configuration, which sync generates, relative to the project root. The Lingui
4
+ * CLI is given this path and Vite loads its plugins from a fresh snapshot of this file, so a
5
+ * `.linguirc` that earlier SDK versions left in the project root is not read. The Lingui CLI searches
6
+ * the working directory instead only when the named file is missing; generation writes it with the rest
7
+ * of `.phoenix/` before Phoenix runs Lingui or Vite. Missing-catalog bootstrap compiles with a temporary
8
+ * copy that stages output while keeping every locale available for fallback reads.
9
+ */
10
+ export declare const LINGUI_CONFIG_PATH = ".phoenix/.linguirc";
11
+ interface LinguiCommandContext {
12
+ readonly logger: Logger;
13
+ }
14
+ export declare const compileLingui: (context: LinguiCommandContext) => Promise<void>;
15
+ export declare const extractAndCompileLingui: (context: LinguiCommandContext) => Promise<void>;
16
+ /** Creates only catalogs missing from a project's generated domain imports; continuous updates stay opt-in. */
17
+ export declare const bootstrapLinguiCatalogs: (locales: readonly string[], context: LinguiCommandContext) => Promise<void>;
18
+ export {};
@@ -0,0 +1 @@
1
+ import{constants as i}from"node:fs";import{copyFile as a,mkdir as t,mkdtemp as e,readFile as o,rm as n,writeFile as s}from"node:fs/promises";import{dirname as r,join as l}from"node:path";import{exists as c,runSdkTool as g}from"../utils/index.js";export const LINGUI_CONFIG_PATH=".phoenix/.linguirc";let p=async i=>{await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["extract","--config",LINGUI_CONFIG_PATH],description:"Extracting i18n messages",quiet:!0,extraEnv:{LC_ALL:"en_US.UTF-8"}},i)};export const compileLingui=async i=>{await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["compile","--config",LINGUI_CONFIG_PATH],description:"Compiling i18n messages",quiet:!0},i)};export const extractAndCompileLingui=async i=>{await p(i),await compileLingui(i)};export const bootstrapLinguiCatalogs=async(p,m)=>{let u,f=(await Promise.all(p.map(async i=>await c(`src/locales/${i}/messages.ts`)?[]:[i]))).flat();if(0!==f.length)try{m.logger.info(`Bootstrapping missing i18n catalogs: ${f.join(", ")}`);let n=(await Promise.all(f.map(async i=>await c(`src/locales/${i}/messages.po`)?[]:[i]))).flat();n.length>0&&await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["extract","--config",LINGUI_CONFIG_PATH,"--locale",n.join(",")],description:"Extracting missing i18n catalogs",quiet:!0,extraEnv:{LC_ALL:"en_US.UTF-8"}},m);let p=JSON.parse(await o(LINGUI_CONFIG_PATH,"utf-8"));if("object"!=typeof p||null===p||Array.isArray(p))throw Error(`${LINGUI_CONFIG_PATH} is not a configuration object`);u=await e(".phoenix/lingui-bootstrap-");let N=l(u,".linguirc");for(let e of(await s(N,JSON.stringify({...p,catalogsMergePath:l(u,"compiled","{locale}","messages").replaceAll("\\","/")})),await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["compile","--config",N],description:"Compiling missing i18n catalogs",quiet:!0},m),f)){let o=l("src","locales",e,"messages.ts");await t(r(o),{recursive:!0}),await a(l(u,"compiled",e,"messages.ts"),o,i.COPYFILE_EXCL)}}catch(i){throw Error(`Cannot bootstrap i18n catalogs for ${f.join(", ")}: ${i instanceof Error?i.message:String(i)}. Fix the reported Lingui error and restart phoenix dev, or run phoenix sync to update all catalogs.`,{cause:i})}finally{void 0!==u&&await n(u,{recursive:!0,force:!0})}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node --stack-size=8192
2
- import{mkdir as e,readFile as o,rm as a,writeFile as r}from"node:fs/promises";import{dirname as t,join as i}from"node:path";import{format as s}from"prettier";import{prettierrc as n}from"@salsita-ai/common/prettier";import{buildPhoenixDefinitions as m,generateStandaloneCommonAdminFiles as c,parseCommonAdminSpec as p}from"#package/application-spec";import{getAllPhxDefinitions as l}from"#package/domain";import{swcEvalExpressionParser as d}from"../application-spec/swc-module-analyzer.js";let f=async e=>{try{return await o(e,"utf-8")}catch{return}},w=async(e,o)=>{let a=await s(o,{...n,filepath:e});await f(e)!==a&&await r(e,a)},v="./src/domain/admin-domain/__generated",h=m(l()),u=p(h,{evalExpressionParser:d});if(!u.ok)throw console.error(u.errors),Error("Common admin application spec contains errors");let j=c({enhancedModelImportPaths:{domainModel:"../../core/model.js",model:"./model/index.js",violation:"../../invariants/violation.js"},phxDefinitions:h,spec:u.value,versionImportPaths:{model:"../../../../core/model.js",reflection:"../../../../core/reflection.js"}});await e(v,{recursive:!0}),await Promise.all(j.map(async o=>{let a=i(v,o.path);await e(t(a),{recursive:!0}),await w(a,o.content)})),await a(i(v,"presets.ts"),{force:!0});
2
+ import{mkdir as e,readFile as r,rm as a,writeFile as o}from"node:fs/promises";import{dirname as i,join as t}from"node:path";import{format as n}from"prettier";import{prettierrc as s}from"@salsita-ai/common/prettier";import{buildPhoenixDefinitions as m,generateStandaloneCommonAdminFiles as c,parseCommonAdminSpec as p}from"#package/application-spec";import{getAllPhxDefinitions as l}from"#package/domain";import{swcEvalExpressionParser as d}from"../application-spec/swc-module-analyzer.js";let f=async e=>{try{return await r(e,"utf-8")}catch{return}},w=async(e,r)=>{let a=await n(r,{...s,filepath:e});await f(e)!==a&&await o(e,a)},h="./src/domain/admin-domain/__generated",u=m(l()),v=p(u,{evalExpressionParser:d});if(!v.ok)throw console.error(v.errors),Error("Common admin application spec contains errors");let j=c({enhancedModelImportPaths:{domainModel:"../../core/index.js",model:"./model/index.js",violation:"../../core/index.js"},phxDefinitions:u,spec:v.value,versionImportPaths:{model:"../../../../core/index.js",reflection:"../../../../core/index.js"}});await e(h,{recursive:!0}),await Promise.all(j.map(async r=>{let a=t(h,r.path);await e(i(a),{recursive:!0}),await w(a,r.content)})),await a(t(h,"presets.ts"),{force:!0});