@salsita-ai/sdk 0.50.0-develop.ca72986c39 → 0.50.0-develop.cba048b0d7

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 (1313) hide show
  1. package/README.md +9 -5
  2. package/dist/admin/default-admin-elements.d.ts +9 -0
  3. package/dist/admin/default-admin-elements.js +1 -0
  4. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  5. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  6. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  7. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  8. package/dist/admin/default-elements/index.d.ts +2 -0
  9. package/dist/admin/default-elements/index.js +1 -0
  10. package/dist/admin/index.d.ts +1 -0
  11. package/dist/admin/index.js +1 -1
  12. package/dist/application/index.d.ts +1 -0
  13. package/dist/application/index.js +1 -1
  14. package/dist/application/mount-application.d.ts +1 -1
  15. package/dist/application/mount-application.js +1 -1
  16. package/dist/application/mount-configurator.d.ts +19 -0
  17. package/dist/application/mount-configurator.js +1 -0
  18. package/dist/application/mounted-application-runtime.d.ts +4 -0
  19. package/dist/application/mounted-application-runtime.js +1 -0
  20. package/dist/application/register-web-component.d.ts +2 -0
  21. package/dist/application/register-web-component.js +1 -0
  22. package/dist/application-spec/caching/content-diff.js +1 -1
  23. package/dist/application-spec/core/application-file.d.ts +0 -2
  24. package/dist/application-spec/core/application-file.js +1 -1
  25. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -31
  26. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  27. package/dist/application-spec/core/index.d.ts +1 -3
  28. package/dist/application-spec/core/index.js +1 -1
  29. package/dist/application-spec/core/json-schema.d.ts +2 -52
  30. package/dist/application-spec/core/markers/index.d.ts +1 -1
  31. package/dist/application-spec/core/markers/index.js +1 -1
  32. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  33. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  34. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  35. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  36. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  37. package/dist/application-spec/errors/diagnostic-codes.d.ts +22 -1
  38. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  39. package/dist/application-spec/errors/diagnostic-messages.d.ts +30 -2
  40. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  41. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  42. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  43. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  44. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  45. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  46. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  47. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  48. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +10 -14
  49. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  50. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  51. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  52. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  53. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  54. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  55. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  56. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  57. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  58. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  59. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  60. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  61. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  62. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  63. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  64. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  65. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +6 -6
  66. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +59 -63
  67. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +8 -0
  68. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  69. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  70. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +13 -13
  71. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  72. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  73. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +2 -1
  74. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  75. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  76. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  77. package/dist/application-spec/generate-application/code/templates/gitignore.js +1 -3
  78. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  79. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  80. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  81. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  82. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  83. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  84. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  85. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  86. package/dist/application-spec/generate-application/code/templates/index.d.ts +4 -8
  87. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  88. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  89. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  90. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  91. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  92. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  93. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +1 -1
  94. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  95. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +3 -3
  96. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  97. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  98. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  99. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  100. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +27 -9
  101. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  102. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  103. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  104. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  105. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  106. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  107. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  108. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  109. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  110. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  111. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  112. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  113. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  114. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  115. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  116. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  117. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  118. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  119. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  120. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  121. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  122. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  123. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  124. package/dist/application-spec/generate-application/index.d.ts +2 -0
  125. package/dist/application-spec/generate-application/index.js +1 -1
  126. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -5
  127. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  128. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +9 -5
  129. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  130. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  131. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  132. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  133. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +29 -9
  134. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  135. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  136. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  137. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -6
  138. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  139. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +9 -6
  140. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  141. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  142. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  143. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  144. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  145. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  146. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +1 -2
  147. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +1 -1
  148. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -1
  149. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +1 -2
  150. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -1
  151. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  152. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  153. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  154. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  155. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +2 -2
  156. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
  157. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  158. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  159. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  160. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +3 -2
  161. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  162. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +4 -2
  163. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  164. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  165. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +14 -6
  166. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  167. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +10 -7
  168. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  169. package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +2 -3
  170. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +4 -2
  171. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  172. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  173. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +3 -3
  174. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  175. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  176. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  177. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  178. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  179. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  180. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  181. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  182. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  183. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  184. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  185. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  186. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  187. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  188. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  189. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +168 -0
  190. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  191. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  192. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  193. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +18 -0
  194. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  195. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  196. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  197. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  198. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  199. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  200. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  201. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  202. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  203. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  204. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  205. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  206. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +58 -23
  207. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  208. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  209. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  210. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  211. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  212. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  213. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  214. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  215. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  216. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  217. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  218. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  219. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  220. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  221. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  222. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  223. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  224. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  225. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  226. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  227. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  228. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  229. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  230. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  231. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  232. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  233. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  234. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  235. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  236. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  237. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  238. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +4 -10
  239. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  240. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  241. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  242. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  243. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  244. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  245. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  246. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  247. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  248. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  249. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +8 -3
  250. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  251. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +9 -7
  252. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  253. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  254. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  255. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  256. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  257. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  258. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +12 -30
  259. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  260. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  261. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  262. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  263. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +5 -3
  264. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  265. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  266. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +6 -16
  267. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  268. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  269. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  270. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -31
  271. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  272. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  273. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  274. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  275. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  276. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  277. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  278. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  279. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  280. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  281. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  282. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  283. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  284. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  285. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  286. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  287. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  288. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  289. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  290. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  291. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  292. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  293. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  294. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  295. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  296. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  297. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  298. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  299. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  300. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  301. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  302. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  303. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  304. package/dist/client/authorized-client.d.ts +3 -1
  305. package/dist/client/authorized-client.js +1 -1
  306. package/dist/client/contract.d.ts +17 -0
  307. package/dist/client/index.d.ts +1 -1
  308. package/dist/client/local-authorized-client.d.ts +3 -1
  309. package/dist/client/local-authorized-client.js +1 -1
  310. package/dist/client/memory-authorized-client.d.ts +4 -1
  311. package/dist/client/memory-authorized-client.js +1 -1
  312. package/dist/client/phoenix-api.d.ts +228 -0
  313. package/dist/configurator/ConfiguratorApp.js +1 -1
  314. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  315. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  316. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  317. package/dist/configurator/app-loader-content/index.js +1 -0
  318. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  319. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +24 -4
  320. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  321. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -9
  322. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  323. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  324. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  325. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  326. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  327. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  328. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  329. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  330. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  331. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  332. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -55
  333. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  334. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +67 -5
  335. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  336. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  337. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  338. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  339. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  340. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  341. package/dist/configurator/common/configurator-interface.d.ts +121 -6
  342. package/dist/configurator/common/configurator-interface.js +1 -1
  343. package/dist/configurator/common/index.d.ts +2 -2
  344. package/dist/configurator/common/index.js +1 -1
  345. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  346. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  347. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  348. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  349. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  350. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  351. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  352. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  353. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  354. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  355. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  356. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  357. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  358. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +10 -0
  359. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  360. package/dist/configurator/configurator-context/index.d.ts +0 -5
  361. package/dist/configurator/configurator-context/index.js +1 -1
  362. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  363. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  364. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  365. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  366. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  367. package/dist/configurator/configurator-error-page/index.js +1 -0
  368. package/dist/configurator/index.d.ts +10 -0
  369. package/dist/configurator/index.js +1 -1
  370. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  371. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  372. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  373. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +3 -2
  374. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  375. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  376. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  377. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  378. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  379. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  380. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  381. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  382. package/dist/configurator/pages/RootPage.js +1 -1
  383. package/dist/configurator/pages/default-configurator-elements.d.ts +7 -1
  384. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  385. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  386. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  387. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  388. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  389. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  390. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  391. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  392. package/dist/configurator/pages/default-elements/index.js +1 -0
  393. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  394. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  395. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  396. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  397. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  398. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  399. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  400. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  401. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  402. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  403. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  404. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  405. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  406. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  407. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  408. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  409. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  410. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  411. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  412. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  413. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  414. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  415. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  416. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  417. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  418. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  419. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  420. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  421. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  422. package/dist/configurator/preset-screen-elements/index.js +1 -0
  423. package/dist/configurator/scene/index.d.ts +1 -0
  424. package/dist/configurator/scene/index.js +1 -1
  425. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  426. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  427. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  428. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  429. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  430. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  431. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  432. package/dist/configurator/toolbar-actions/index.js +1 -0
  433. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  434. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  435. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  436. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  437. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  438. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  439. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  440. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  441. package/dist/configurator/ui/assistant/AssistantChips.d.ts +3 -2
  442. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  443. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  444. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  445. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  446. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  447. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  448. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  449. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  450. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  451. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  452. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  453. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +1 -1
  454. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  455. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +1 -1
  456. package/dist/configurator/ui/assistant/entity-link/index.d.ts +0 -1
  457. package/dist/configurator/ui/assistant/entity-link/index.js +1 -1
  458. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  459. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  460. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  461. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  462. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  463. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  464. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  465. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  466. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  467. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  468. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  469. package/dist/configurator/ui/assistant/form/index.js +1 -0
  470. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  471. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  472. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  473. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  474. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  475. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  476. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  477. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  478. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  479. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  480. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  481. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  482. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  483. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  484. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  485. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  486. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  487. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  488. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  489. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  490. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  491. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  492. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  493. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  494. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  495. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  496. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  497. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  498. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  499. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  500. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  501. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  502. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  503. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  504. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  505. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  506. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  507. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  508. package/dist/configurator/ui/assistant/index.js +1 -1
  509. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  510. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  511. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  512. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  513. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  514. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  515. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  516. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  517. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  518. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  519. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  520. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  521. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  522. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  523. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  524. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  525. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  526. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  527. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  528. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  529. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  530. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  531. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  532. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  533. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  534. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  535. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  536. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  537. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  538. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  539. package/dist/configurator/ui/assistant/thread-items.d.ts +8 -1
  540. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  541. package/dist/configurator/ui/assistant/tool-chip.d.ts +19 -9
  542. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  543. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  544. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  545. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  546. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  547. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  548. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  549. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  550. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  551. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  552. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  553. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  554. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  555. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  556. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  557. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  558. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  559. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  560. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +1 -1
  561. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  562. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +1 -1
  563. package/dist/configurator/ui/index.d.ts +1 -0
  564. package/dist/configurator/ui/index.js +1 -1
  565. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  566. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  567. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  568. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  569. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  570. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  571. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  572. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  573. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  574. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  575. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  576. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  577. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  578. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  579. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  580. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  581. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  582. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  583. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  584. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  585. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  586. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  587. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  588. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  589. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  590. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  591. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  592. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  593. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  594. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  595. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  596. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  597. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  598. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  599. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  600. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  601. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  602. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  603. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  604. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  605. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  606. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  607. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  608. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  609. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  610. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  611. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  612. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  613. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  614. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  615. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  616. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  617. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  618. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  619. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  620. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  621. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  622. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  623. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  624. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  625. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  626. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  627. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  628. package/dist/configurator/ui/preset-layout/index.js +1 -1
  629. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  630. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  631. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  632. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  633. package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
  634. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  635. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  636. package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
  637. package/dist/docs/fabs/basic.mdx +6 -2
  638. package/dist/docs/index.json +95 -1
  639. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  640. package/dist/docs/layouts/custom-layout.mdx +637 -165
  641. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  642. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  643. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  644. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  645. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  646. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  647. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  648. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  649. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  650. package/dist/docs/other-features/error-5xx.mdx +1 -1
  651. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  652. package/dist/docs/other-features/not-found-404.mdx +1 -1
  653. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  654. package/dist/docs/phoenix/components.mdx +6 -0
  655. package/dist/docs/phoenix/configurator-interface.mdx +223 -59
  656. package/dist/docs/phoenix/domain-model.mdx +6 -1
  657. package/dist/docs/phoenix/finalization.mdx +1 -1
  658. package/dist/docs/phoenix/getting-started.mdx +5 -3
  659. package/dist/docs/phoenix/layout-slots.mdx +44 -23
  660. package/dist/docs/phoenix/localization.mdx +6 -2
  661. package/dist/docs/phoenix/migration-guide.mdx +12 -10
  662. package/dist/docs/phoenix/phoenix-cli.mdx +44 -20
  663. package/dist/docs/phoenix/project-structure.mdx +57 -31
  664. package/dist/docs/phoenix/quickstart.mdx +7 -7
  665. package/dist/docs/phoenix/sdk-builder-workflow.mdx +13 -11
  666. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  667. package/dist/docs/phoenix/testing.mdx +8 -0
  668. package/dist/docs/phoenix/webhooks.mdx +5 -1
  669. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  670. package/dist/domain/application/application-config.d.ts +6 -24
  671. package/dist/domain/application/assistant/assistant-manifest.d.ts +29 -4
  672. package/dist/domain/application/assistant/assistant-manifest.js +1 -1
  673. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +12 -9
  674. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  675. package/dist/domain/application/assistant/build-assistant-lenses.js +1 -1
  676. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  677. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  678. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  679. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  680. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  681. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  682. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  683. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  684. package/dist/domain/application/assistant/form/index.js +1 -0
  685. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  686. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  687. package/dist/domain/application/assistant/index.d.ts +4 -3
  688. package/dist/domain/application/assistant/index.js +1 -1
  689. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  690. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +4 -4
  691. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  692. package/dist/domain/application/assistant-mutations.js +1 -1
  693. package/dist/domain/application/assistant-recipe-groups.d.ts +3 -1
  694. package/dist/domain/application/configurator-builder.d.ts +7 -1
  695. package/dist/domain/application/configurator-builder.js +1 -1
  696. package/dist/domain/application/index.d.ts +1 -1
  697. package/dist/domain/application/index.js +1 -1
  698. package/dist/domain/application/standard-properties.js +1 -1
  699. package/dist/domain/application/web-component-property.d.ts +3 -1
  700. package/dist/domain/application/web-component-property.js +1 -1
  701. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  702. package/dist/domain/available-system-components/available-system-components.js +1 -0
  703. package/dist/domain/available-system-components/index.d.ts +1 -0
  704. package/dist/domain/available-system-components/index.js +1 -0
  705. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  706. package/dist/domain/{domain-builder.d.ts → domain-builder/domain-builder.d.ts} +11 -5
  707. package/dist/domain/domain-builder/domain-builder.js +1 -0
  708. package/dist/domain/domain-builder/index.d.ts +1 -0
  709. package/dist/domain/domain-builder/index.js +1 -0
  710. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  711. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  712. package/dist/domain/domain-runtime/application.d.ts +39 -0
  713. package/dist/domain/domain-runtime/application.js +1 -0
  714. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  715. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  716. package/dist/domain/domain-runtime/domain-runtime.d.ts +44 -4
  717. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  718. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  719. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  720. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +2 -0
  721. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -1
  722. package/dist/domain/domain-runtime/index.d.ts +2 -1
  723. package/dist/domain/domain-runtime/index.js +1 -1
  724. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  725. package/dist/domain/domain-runtime/spec/index.js +1 -1
  726. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  727. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +27 -12
  728. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  729. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  730. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  731. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  732. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  733. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  734. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  735. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  736. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  737. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  738. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  739. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  740. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  741. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  742. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  743. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  744. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  745. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  746. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  747. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  748. package/dist/domain/extensions/{client-side-image.d.ts → export-images/client-side-image.d.ts} +2 -2
  749. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  750. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  751. package/dist/domain/extensions/export-images/index.js +1 -0
  752. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +2 -2
  753. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  754. package/dist/domain/extensions/index.d.ts +1 -2
  755. package/dist/domain/extensions/index.js +1 -1
  756. package/dist/domain/index.d.ts +3 -2
  757. package/dist/domain/index.js +1 -1
  758. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -0
  759. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  760. package/dist/domain/spec/application/admin-pages-section.js +1 -0
  761. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  762. package/dist/domain/spec/application/admin-pages.js +1 -0
  763. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  764. package/dist/domain/spec/application/admin-states.js +1 -0
  765. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  766. package/dist/domain/spec/application/configurator-states.js +1 -0
  767. package/dist/domain/spec/application/index.d.ts +5 -0
  768. package/dist/domain/spec/application/index.js +1 -0
  769. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  770. package/dist/domain/spec/components/bindings/index.js +1 -0
  771. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  772. package/dist/domain/spec/components/bindings/read-binding.js +1 -0
  773. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  774. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  775. package/dist/{application-spec/parse-application-files → domain}/spec/components/component-entry.d.ts +3 -3
  776. package/dist/domain/spec/components/component-entry.js +1 -0
  777. package/dist/{application-spec/core → domain/spec}/components/component-filter.d.ts +3 -2
  778. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  779. package/dist/domain/spec/components/component-filters.js +1 -0
  780. package/dist/domain/spec/components/components.d.ts +4 -0
  781. package/dist/domain/spec/components/components.js +1 -0
  782. package/dist/domain/spec/components/index.d.ts +6 -0
  783. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  784. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  785. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  786. package/dist/domain/spec/enhanced-json/index.js +1 -0
  787. package/dist/{application-spec/parse-application-files → domain}/spec/expressions/expression.d.ts +9 -3
  788. package/dist/domain/spec/expressions/expression.js +1 -0
  789. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  790. package/dist/domain/spec/expressions/expressions.js +1 -0
  791. package/dist/domain/spec/expressions/index.d.ts +5 -0
  792. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  793. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  794. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  795. package/dist/domain/spec/index.d.ts +9 -0
  796. package/dist/domain/spec/index.js +1 -0
  797. package/dist/domain/spec/invariants/index.d.ts +2 -0
  798. package/dist/domain/spec/invariants/index.js +1 -0
  799. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  800. package/dist/domain/spec/invariants/invariant.js +1 -0
  801. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  802. package/dist/domain/spec/invariants/invariants.js +1 -0
  803. package/dist/domain/spec/json-schema.d.ts +52 -0
  804. package/dist/domain/spec/json-schema.js +1 -0
  805. package/dist/domain/spec/markers/index.d.ts +3 -0
  806. package/dist/domain/spec/markers/index.js +1 -0
  807. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  808. package/dist/domain/spec/markers/msg-marker.js +1 -0
  809. package/dist/domain/spec/model/aliases.d.ts +9 -0
  810. package/dist/domain/spec/model/aliases.js +1 -0
  811. package/dist/domain/spec/model/common-types.d.ts +15 -0
  812. package/dist/domain/spec/model/common-types.js +1 -0
  813. package/dist/domain/spec/model/defaults.d.ts +33 -0
  814. package/dist/domain/spec/model/defaults.js +1 -0
  815. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  816. package/dist/domain/spec/model/entity-types.js +1 -0
  817. package/dist/domain/spec/model/index.d.ts +7 -0
  818. package/dist/domain/spec/model/index.js +1 -0
  819. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  820. package/dist/domain/spec/model/model-version-key.js +1 -0
  821. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  822. package/dist/domain/spec/model/names/action-name.js +1 -0
  823. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  824. package/dist/domain/spec/model/names/alias-name.js +1 -0
  825. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  826. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  827. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  828. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  829. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  830. package/dist/domain/spec/model/names/expression-name.js +1 -0
  831. package/dist/domain/spec/model/names/index.d.ts +9 -0
  832. package/dist/domain/spec/model/names/index.js +1 -0
  833. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  834. package/dist/domain/spec/model/names/instance-name.js +1 -0
  835. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  836. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  837. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  838. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  839. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  840. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  841. package/dist/domain/spec/model/presets.d.ts +30 -0
  842. package/dist/domain/spec/model/presets.js +1 -0
  843. package/dist/domain/spec/sections/actions.d.ts +23 -0
  844. package/dist/domain/spec/sections/actions.js +1 -0
  845. package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
  846. package/dist/domain/spec/sections/app-metadata.js +1 -0
  847. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  848. package/dist/domain/spec/sections/application-version.js +1 -0
  849. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  850. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  851. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  852. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  853. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  854. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  855. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  856. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  857. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  858. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  859. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  860. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  861. package/dist/domain/spec/sections/index.d.ts +9 -0
  862. package/dist/domain/spec/sections/index.js +1 -0
  863. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  864. package/dist/domain/spec/sections/infra/acl.js +1 -0
  865. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  866. package/dist/domain/spec/sections/infra/index.js +1 -0
  867. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  868. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  869. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  870. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  871. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  872. package/dist/domain/spec/sections/state-value.js +1 -0
  873. package/dist/domain/spec/sections/theme.d.ts +10 -0
  874. package/dist/domain/spec/sections/theme.js +1 -0
  875. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  876. package/dist/domain/spec/sections/transformers.js +1 -0
  877. package/dist/domain/spec/sections/ui.d.ts +12 -0
  878. package/dist/domain/spec/sections/ui.js +1 -0
  879. package/dist/domain/system-components/child-entity-selection.js +1 -1
  880. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  881. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  882. package/dist/domain/system-definitions.js +1 -1
  883. package/dist/domain/utils/index.d.ts +2 -0
  884. package/dist/domain/utils/index.js +1 -0
  885. package/dist/editor/Editor.d.ts +7 -0
  886. package/dist/editor/Editor.js +1 -1
  887. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  888. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  889. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  890. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  891. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  892. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  893. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  894. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  895. package/dist/editor/mocks/EditorMockContext.js +1 -1
  896. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  897. package/dist/i18n/locales/cs/messages.js +1 -1
  898. package/dist/i18n/locales/da/messages.js +1 -1
  899. package/dist/i18n/locales/de/messages.js +1 -1
  900. package/dist/i18n/locales/de-AT/messages.js +1 -1
  901. package/dist/i18n/locales/en/messages.js +1 -1
  902. package/dist/i18n/locales/en-AU/messages.js +1 -1
  903. package/dist/i18n/locales/en-GB/messages.js +1 -1
  904. package/dist/i18n/locales/es/messages.js +1 -1
  905. package/dist/i18n/locales/fr/messages.js +1 -1
  906. package/dist/i18n/locales/hu/messages.js +1 -1
  907. package/dist/i18n/locales/it/messages.js +1 -1
  908. package/dist/i18n/locales/nl/messages.js +1 -1
  909. package/dist/i18n/locales/pl/messages.js +1 -1
  910. package/dist/i18n/locales/pt/messages.js +1 -1
  911. package/dist/i18n/locales/ro/messages.js +1 -1
  912. package/dist/i18n/locales/sk/messages.js +1 -1
  913. package/dist/i18n/locales/tr/messages.js +1 -1
  914. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  915. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  916. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +95 -80
  917. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  918. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  919. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  920. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  921. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +11 -5
  922. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +10 -11
  923. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +9 -10
  924. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  925. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  926. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -2
  927. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  928. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  929. package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -2
  930. package/dist/phoenix/application-spec/index.d.ts +1 -0
  931. package/dist/phoenix/application-spec/index.js +1 -1
  932. package/dist/phoenix/application-spec/project-files.js +1 -1
  933. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
  934. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  935. package/dist/phoenix/bin.d.ts +2 -0
  936. package/dist/phoenix/bin.js +2 -0
  937. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  938. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  939. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  940. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  941. package/dist/phoenix/check-configs/index.d.ts +8 -0
  942. package/dist/phoenix/check-configs/index.js +1 -0
  943. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  944. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  945. package/dist/phoenix/cli.d.ts +0 -1
  946. package/dist/phoenix/cli.js +1 -2
  947. package/dist/phoenix/commands/build.js +1 -1
  948. package/dist/phoenix/commands/check.js +1 -1
  949. package/dist/phoenix/commands/clean.js +1 -1
  950. package/dist/phoenix/commands/deploy.js +2 -2
  951. package/dist/phoenix/commands/deps/deps.d.ts +22 -1
  952. package/dist/phoenix/commands/deps/deps.js +2 -2
  953. package/dist/phoenix/commands/deps/index.d.ts +1 -1
  954. package/dist/phoenix/commands/deps/index.js +1 -1
  955. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -1
  956. package/dist/phoenix/commands/dev.js +5 -5
  957. package/dist/phoenix/commands/fix.js +1 -1
  958. package/dist/phoenix/commands/generated-env-markers.d.ts +1 -0
  959. package/dist/phoenix/commands/generated-env-markers.js +1 -1
  960. package/dist/phoenix/commands/index.d.ts +1 -1
  961. package/dist/phoenix/commands/index.js +1 -1
  962. package/dist/phoenix/commands/init.d.ts +17 -5
  963. package/dist/phoenix/commands/init.js +1 -1
  964. package/dist/phoenix/commands/link.js +1 -1
  965. package/dist/phoenix/commands/prettier.js +1 -1
  966. package/dist/phoenix/commands/sync.js +1 -1
  967. package/dist/phoenix/commands/unlink.js +1 -1
  968. package/dist/phoenix/lingui/index.d.ts +1 -0
  969. package/dist/phoenix/lingui/index.js +1 -0
  970. package/dist/phoenix/lingui/lingui.d.ts +18 -0
  971. package/dist/phoenix/lingui/lingui.js +1 -0
  972. package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -3
  973. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  974. package/dist/phoenix/services/index.d.ts +1 -0
  975. package/dist/phoenix/services/index.js +1 -1
  976. package/dist/phoenix/services/lingui-watcher.js +1 -1
  977. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  978. package/dist/phoenix/services/swc.js +1 -1
  979. package/dist/phoenix/services/vite-config.js +1 -1
  980. package/dist/phoenix/utils/index.d.ts +3 -2
  981. package/dist/phoenix/utils/index.js +1 -1
  982. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  983. package/dist/phoenix/utils/node-version/index.js +1 -0
  984. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  985. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  986. package/dist/phoenix/utils/package-info.d.ts +0 -9
  987. package/dist/phoenix/utils/package-info.js +1 -1
  988. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  989. package/dist/phoenix/utils/package-manager/index.js +1 -0
  990. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  991. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  992. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  993. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  994. package/dist/phoenix/utils/run-command.d.ts +11 -0
  995. package/dist/phoenix/utils/run-command.js +1 -1
  996. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  997. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  998. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  999. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1000. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  1001. package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.d.ts +4 -0
  1002. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1003. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1004. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1005. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  1006. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1007. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1008. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1009. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1010. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1011. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1012. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1013. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1014. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1015. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1016. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1017. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1018. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1019. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1020. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1021. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1022. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1023. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1024. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1025. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1026. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1027. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1028. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1029. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1030. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +5 -0
  1031. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1032. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1033. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1034. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1035. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1036. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1037. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1038. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1039. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1040. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1041. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1042. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1043. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1044. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1045. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1046. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1047. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1048. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1049. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1050. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1051. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1052. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1053. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1054. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1055. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1056. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1057. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1058. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1059. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1060. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1061. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1062. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1063. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1064. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1065. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1066. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1067. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1068. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1069. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1070. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1071. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1072. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1073. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1074. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1075. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1076. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1077. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1078. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1079. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1080. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1081. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1082. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1083. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1084. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1085. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1086. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1087. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1088. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +313 -10
  1089. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1090. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/ConfiguratorRoutingProvider.d.ts +1 -1
  1091. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  1092. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/OnGoToIndexHandler.d.ts +1 -2
  1093. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  1094. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  1095. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/index.js +1 -1
  1096. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/use-power-routing-lifecycle.d.ts +2 -0
  1097. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  1098. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1099. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  1100. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1101. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1102. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  1103. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1104. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  1105. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  1106. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  1107. package/dist/react-sdk/domain-application-context/index.js +1 -1
  1108. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1109. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1110. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1111. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1112. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +15 -4
  1113. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -1
  1114. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  1115. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1116. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1117. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1118. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1119. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1120. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1121. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1122. package/dist/react-sdk/domain-context/index.d.ts +7 -0
  1123. package/dist/react-sdk/domain-context/index.js +1 -1
  1124. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1125. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1126. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1127. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1128. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1129. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1130. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1131. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1132. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1133. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1134. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1135. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1136. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1137. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1138. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1139. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1140. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1141. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1142. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1143. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1144. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1145. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1146. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1147. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1148. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1149. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1150. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1151. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1152. package/dist/react-sdk/handlers/index.js +1 -1
  1153. package/dist/{configurator/common → react-sdk/handlers}/use-finalize-action.d.ts +3 -2
  1154. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1155. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1156. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1157. package/dist/react-sdk/index.d.ts +7 -0
  1158. package/dist/react-sdk/index.js +1 -1
  1159. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  1160. package/dist/react-sdk/integration/index.d.ts +1 -0
  1161. package/dist/react-sdk/integration/index.js +1 -0
  1162. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  1163. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  1164. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  1165. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  1166. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  1167. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1168. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1169. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1170. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1171. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1172. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1173. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1174. package/dist/react-sdk/loading-state/index.js +1 -1
  1175. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  1176. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1177. package/dist/react-sdk/notifications/index.d.ts +1 -0
  1178. package/dist/react-sdk/notifications/index.js +1 -0
  1179. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  1180. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  1181. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1182. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1183. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1184. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1185. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1186. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1187. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1188. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1189. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  1190. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  1191. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  1192. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  1193. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  1194. package/dist/react-sdk/page-elements/index.js +1 -0
  1195. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  1196. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  1197. package/dist/react-sdk/preset-selection/index.js +1 -0
  1198. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1199. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1200. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1201. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1202. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1203. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1204. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1205. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1206. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1207. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1208. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1209. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1210. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1211. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1212. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1213. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1214. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1215. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1216. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1217. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1218. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1219. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1220. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1221. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1222. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1223. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1224. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  1225. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1226. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1227. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1228. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1229. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1230. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  1231. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  1232. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1233. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1234. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1235. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1236. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  1237. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1238. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1239. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1240. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1241. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1242. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1243. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1244. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1245. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1246. package/dist/ui-sdk/theme/types.d.ts +5 -1
  1247. package/dist/watch/glob-matcher.d.ts +4 -4
  1248. package/dist/watch/glob-matcher.js +1 -1
  1249. package/dist/watch/watch.d.ts +4 -4
  1250. package/dist/watch/watch.js +1 -1
  1251. package/package.json +29 -11
  1252. package/schema/domain-spec.json +226 -8
  1253. package/dist/application-spec/core/components/index.d.ts +0 -2
  1254. package/dist/application-spec/core/expressions/index.d.ts +0 -2
  1255. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1256. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1257. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1258. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1259. package/dist/configurator/common/use-finalize-action.js +0 -1
  1260. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  1261. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  1262. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  1263. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  1264. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  1265. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  1266. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  1267. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  1268. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  1269. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  1270. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  1271. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  1272. package/dist/configurator/ui/assistant/entity-link/entity-link-target.d.ts +0 -5
  1273. package/dist/configurator/ui/assistant/entity-link/entity-link-target.js +0 -1
  1274. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1275. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1276. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1277. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1278. package/dist/domain/available-system-components.d.ts +0 -11
  1279. package/dist/domain/available-system-components.js +0 -1
  1280. package/dist/domain/domain-builder.js +0 -1
  1281. package/dist/domain/extensions/client-side-image.js +0 -1
  1282. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  1283. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  1284. package/dist/phoenix/commands/generate-project-files.js +0 -1
  1285. package/dist/phoenix/services/lingui.d.ts +0 -7
  1286. package/dist/phoenix/services/lingui.js +0 -1
  1287. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  1288. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  1289. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  1290. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  1291. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  1292. /package/dist/application-spec/{core/expressions/relation-expression-params.js → generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  1293. /package/dist/application-spec/parse-application-files/spec/{components/component-entry.js → expressions/expression-read.js} +0 -0
  1294. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  1295. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  1296. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  1297. /package/dist/{application-spec/core → domain/spec}/components/component-filter.js +0 -0
  1298. /package/dist/{application-spec/core → domain/spec}/components/index.js +0 -0
  1299. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.d.ts +0 -0
  1300. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.js +0 -0
  1301. /package/dist/{application-spec/core → domain/spec}/expressions/index.js +0 -0
  1302. /package/dist/{application-spec/core → domain/spec}/expressions/relation-expression-params.d.ts +0 -0
  1303. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.d.ts +0 -0
  1304. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.js +0 -0
  1305. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  1306. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  1307. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  1308. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  1309. /package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.js +0 -0
  1310. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  1311. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  1312. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  1313. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -0,0 +1,168 @@
1
+ import type { Acl, Actions, AdminPages, AdminStates, AppMetadata, AssistantResolvedManifest, Chunks, CommonTypes, Components, ConfiguratorStates, Defaults, EntityOrAliasName, EntityTypeName, EntityTypes, Expressions, Invariants, JsonSchema, ModelVersionKey, ParsedDataSpecEntries, Presets, ResourceEntry, SpecAliases, SpecResourcesConfig, SpecTransformers, Theme, Ui } from '#package/domain';
2
+ /**
3
+ * The part of a parsed entity schema the runtime reads: the entity type and the schema of its
4
+ * shape, from which it builds the entity's reflection. The full schema with `id` and `type` is
5
+ * only registered with a deployment, and the compiled shape validators only check presets and
6
+ * defaults while parsing.
7
+ */
8
+ export interface RuntimeEntitySchema {
9
+ readonly entityType: EntityTypeName;
10
+ readonly shapeSchema: JsonSchema;
11
+ }
12
+ /**
13
+ * The part of a parsed model version the runtime reads: the entity types, the aliases, the common
14
+ * types and the schema of every entity's shape. The shapes and the resolved shapes only serve the
15
+ * parser and the type generator, except the runtime schemas of the latest version's shapes (see
16
+ * `RuntimeLatestModelVersion`).
17
+ */
18
+ export interface RuntimeModelVersion {
19
+ readonly versionKey: ModelVersionKey;
20
+ readonly entityTypes: EntityTypes;
21
+ /** Entity types allowed as preset root — members of the RootEntity alias, or all entity types if no RootEntity alias. */
22
+ readonly rootEntityTypes: readonly EntityTypeName[];
23
+ readonly aliases: SpecAliases;
24
+ readonly commonTypes: CommonTypes;
25
+ readonly entitySchemas: readonly RuntimeEntitySchema[];
26
+ }
27
+ /**
28
+ * The latest model version of a domain as the runtime reads it: a model version plus the runtime
29
+ * schema of every shape, which `phx.domain.model` reflects as `<Name>Shape`.
30
+ */
31
+ export interface RuntimeLatestModelVersion extends RuntimeModelVersion {
32
+ readonly shapes: ReadonlyMap<EntityOrAliasName, RuntimeShapeSchema>;
33
+ }
34
+ /** The part of a parsed shape the runtime reads: its name and its runtime JSON schema. */
35
+ export interface RuntimeShapeSchema {
36
+ readonly name: EntityOrAliasName;
37
+ readonly runtimeSchema: JsonSchema;
38
+ }
39
+ /**
40
+ * One model version of a domain as the runtime reads it, with the migration file that leads to it.
41
+ * `version` is the integer version number (1, 2, 3, …), `key` is always `v{N}`, never `latest`,
42
+ * `isLatest` marks the version of the `latest` model key, and `migrationFile` is the path of the
43
+ * migration file, present from v2 on.
44
+ */
45
+ export interface RuntimeResolvedModelVersion {
46
+ readonly version: number;
47
+ readonly key: string;
48
+ readonly isLatest: boolean;
49
+ readonly modelVersion: RuntimeModelVersion;
50
+ readonly migrationFile: string | undefined;
51
+ }
52
+ /**
53
+ * Every model version of a domain as the runtime reads it; it builds the domain's migrations from
54
+ * them. `latestVersion` is the integer of the `latest` key, and `versionedModels` is sorted
55
+ * ascending by version number.
56
+ */
57
+ export interface RuntimeResolvedVersions {
58
+ readonly latestVersion: number;
59
+ readonly versionedModels: readonly RuntimeResolvedModelVersion[];
60
+ }
61
+ /** The model of a domain as the runtime reads it: the latest version and every earlier one. */
62
+ interface RuntimeDomainModel {
63
+ readonly latestModel: RuntimeLatestModelVersion;
64
+ readonly resolvedVersions: RuntimeResolvedVersions;
65
+ }
66
+ /** The part of a parsed data schema the runtime reads: the JSON schema it validates the data with. */
67
+ export interface RuntimeDataSchemaEntry {
68
+ readonly runtimeSchema: JsonSchema;
69
+ }
70
+ /**
71
+ * The data schemas as the runtime reads them: the JSON schema of each kind of data and the hash of
72
+ * the published data. The enhanced schemas, with Phoenix references, only serve the type generator.
73
+ */
74
+ export interface RuntimeDataSchemas {
75
+ readonly publishedData: RuntimeDataSchemaEntry;
76
+ readonly publishedDataHash: string;
77
+ readonly sessionData: RuntimeDataSchemaEntry;
78
+ readonly frontendData: RuntimeDataSchemaEntry;
79
+ readonly backendData: RuntimeDataSchemaEntry | undefined;
80
+ readonly finalizeData: RuntimeDataSchemaEntry;
81
+ readonly prefetchedFinalizeData: RuntimeDataSchemaEntry;
82
+ readonly finalizeResult: RuntimeDataSchemaEntry;
83
+ readonly callbackData: RuntimeDataSchemaEntry;
84
+ }
85
+ /**
86
+ * The assistant as the runtime reads it: its resolved manifest. The parsed assistant schema the
87
+ * manifest is resolved from only serves the parser.
88
+ */
89
+ export type RuntimeAssistantSpec = {
90
+ readonly resolved: AssistantResolvedManifest;
91
+ } | null;
92
+ /**
93
+ * The data spec as the runtime reads it: the data entries and their chunks. The data entries and
94
+ * admin data pages the parser derives from them only serve the admin spec and the type generator.
95
+ */
96
+ export interface RuntimeDataSpec {
97
+ /** Validated entries grouped by their source `$data` subsection for generated SDK config. */
98
+ readonly entries: ParsedDataSpecEntries;
99
+ /** Validated published-data chunks, including the auto-injected `system` chunk when needed. */
100
+ readonly chunks: Chunks;
101
+ }
102
+ /**
103
+ * The configurator part of the runtime spec. It leaves out the configuration schema and its
104
+ * version, which only a deployment registers, and the assistant's server settings (instructions
105
+ * and AI settings), which must never reach the browser of a customer.
106
+ */
107
+ export interface RuntimeConfiguratorSpec extends RuntimeDomainModel {
108
+ readonly components: Components;
109
+ readonly presets: Presets;
110
+ readonly expressions: Expressions;
111
+ readonly actions: Actions;
112
+ readonly invariants: Invariants;
113
+ readonly defaults: Defaults;
114
+ readonly states: ConfiguratorStates;
115
+ readonly theme: Theme;
116
+ readonly ui: Ui;
117
+ readonly transformers: SpecTransformers;
118
+ readonly dataSchemas: RuntimeDataSchemas;
119
+ readonly assistant: RuntimeAssistantSpec;
120
+ }
121
+ /**
122
+ * The admin part of the runtime spec. It leaves out the configuration schema and its version, which
123
+ * only a deployment registers.
124
+ */
125
+ export interface RuntimeAdminSpec extends RuntimeDomainModel {
126
+ readonly components: Components;
127
+ readonly presets: Presets;
128
+ readonly expressions: Expressions;
129
+ readonly invariants: Invariants;
130
+ readonly defaults: Defaults;
131
+ readonly states: AdminStates;
132
+ readonly adminPages: AdminPages;
133
+ }
134
+ /**
135
+ * The infrastructure settings the runtime reads: access control and resources. The environment
136
+ * variable declarations only drive the generated environment readers.
137
+ */
138
+ export interface RuntimeInfra {
139
+ readonly acl: Acl;
140
+ readonly resources: readonly ResourceEntry[] | undefined;
141
+ readonly resourcesConfig: SpecResourcesConfig | undefined;
142
+ }
143
+ /**
144
+ * The parsed application spec as the runtime reads it: what `ApplicationRuntime` builds the
145
+ * configurator and admin runtimes from, and the sections an application needs besides its domains
146
+ * (data spec, app metadata, resources, access control, user interface settings, webhook data
147
+ * schemas, admin pages). `phoenix sync` and `phoenix build` write it to
148
+ * `.phoenix/application-spec.json` with `encodeRuntimeSpec`.
149
+ *
150
+ * Its sections are the spec data types of `domain`, the types the parser produces, so a parsed
151
+ * `ApplicationSpec` is assignable to it. It leaves out what only the parser, the type generator or
152
+ * a deployment use, and holds plain data, Maps and Sets only, so it can be encoded as JSON.
153
+ */
154
+ export interface RuntimeSpec {
155
+ readonly appMetadata: AppMetadata;
156
+ readonly dataSpec: RuntimeDataSpec;
157
+ readonly configurator: RuntimeConfiguratorSpec;
158
+ readonly admin: RuntimeAdminSpec;
159
+ readonly infra: RuntimeInfra;
160
+ }
161
+ /**
162
+ * Takes from a parsed application spec the part the runtime reads. It reuses the sections it keeps
163
+ * whole, and builds trimmed copies of the model versions, data schemas, assistant and data spec
164
+ * without what the runtime does not read. It takes any `RuntimeSpec`, which a parsed
165
+ * `ApplicationSpec` is, and copies only what the type declares.
166
+ */
167
+ export declare const toRuntimeSpec: (spec: RuntimeSpec) => RuntimeSpec;
168
+ export {};
@@ -0,0 +1 @@
1
+ let e=e=>({versionKey:e.versionKey,entityTypes:e.entityTypes,rootEntityTypes:e.rootEntityTypes,aliases:e.aliases,commonTypes:e.commonTypes,entitySchemas:e.entitySchemas.map(e=>({entityType:e.entityType,shapeSchema:e.shapeSchema}))}),s=e=>({runtimeSchema:e.runtimeSchema}),a=s=>{let a;return{latestModel:{...e(a=s.latestModel),shapes:new Map([...a.shapes].map(([e,s])=>[e,{name:s.name,runtimeSchema:s.runtimeSchema}]))},resolvedVersions:{latestVersion:s.resolvedVersions.latestVersion,versionedModels:s.resolvedVersions.versionedModels.map(s=>({version:s.version,key:s.key,isLatest:s.isLatest,migrationFile:s.migrationFile,modelVersion:e(s.modelVersion)}))}}};export const toRuntimeSpec=e=>{let t,{configurator:n,admin:i,infra:r}=e;return{configurator:{components:n.components,presets:n.presets,expressions:n.expressions,actions:n.actions,invariants:n.invariants,dataSchemas:{publishedDataHash:(t=n.dataSchemas).publishedDataHash,publishedData:s(t.publishedData),sessionData:s(t.sessionData),frontendData:s(t.frontendData),backendData:t.backendData&&s(t.backendData),finalizeData:s(t.finalizeData),prefetchedFinalizeData:s(t.prefetchedFinalizeData),finalizeResult:s(t.finalizeResult),callbackData:s(t.callbackData)},defaults:n.defaults,states:n.states,theme:n.theme,ui:n.ui,transformers:n.transformers,assistant:n.assistant&&{resolved:n.assistant.resolved},...a(n)},admin:{components:i.components,presets:i.presets,expressions:i.expressions,invariants:i.invariants,defaults:i.defaults,states:i.states,adminPages:i.adminPages,...a(i)},appMetadata:e.appMetadata,infra:{acl:r.acl,resources:r.resources,resourcesConfig:r.resourcesConfig},dataSpec:{entries:e.dataSpec.entries,chunks:e.dataSpec.chunks}}};
@@ -0,0 +1,40 @@
1
+ import type { MemoEvalPlan } from '#package/domain';
2
+ /**
3
+ * The id under which the generated `.phoenix/spec-code.ts` holds one piece of code written in YAML,
4
+ * and under which the runtime looks it up. Ids are unique within one domain; the configurator and
5
+ * the admin domain each have their own map.
6
+ *
7
+ * An id is computed from what the runtime spec already carries, by the functions of this file, on
8
+ * both sides: the generator that writes the closures and the runtime that reads them. It names the
9
+ * entity or alias that owns the code, the expression or the component instance, the position of the
10
+ * code inside that one value, and a hash of the code's text. So it stays the same when anything
11
+ * else in the spec changes, and it changes whenever the code itself changes: a module generated from
12
+ * another version of the spec does not hold it, and the runtime compiles the text instead of running
13
+ * the wrong closure.
14
+ */
15
+ export type SpecCodeId = string;
16
+ /**
17
+ * The part of an id that names a value expression: `KitchenRange.$maxWidth`. Its constant, when it
18
+ * is one, shares the plan and so the ids.
19
+ */
20
+ export declare const specCodeExpressionKey: (typeOrAlias: string, expressionName: string) => string;
21
+ /**
22
+ * The part of an id that names a component instance: `KitchenRange.main:detail`. The component
23
+ * belongs to it because an instance name is unique per component, not per entity: one entity can
24
+ * attach `main` of several components.
25
+ */
26
+ export declare const specCodeComponentKey: (typeOrAlias: string, instanceName: string, componentName: string) => string;
27
+ /**
28
+ * The id of each dependency of a plan, by dependency index: `<key>#<n>@<hash>` for the `n`-th
29
+ * `$eval` dependency, `undefined` for a read. `key` is the expression or component key of the value
30
+ * the plan builds. The ordinal counts the plan's `$eval` dependencies only, so a `$read` added to
31
+ * the same value does not renumber them.
32
+ */
33
+ export declare const specCodeEvalIds: (plan: MemoEvalPlan, key: string) => ReadonlyArray<SpecCodeId | undefined>;
34
+ /**
35
+ * Id of the `$eval` of one filter criterion of a component instance:
36
+ * `KitchenRange.label:textValue#filter0.active@<hash>`. `componentKey` comes from
37
+ * {@link specCodeComponentKey}; `branch` is the index of the filter among the `$or` alternatives,
38
+ * 0 when the filter has none; `code` is the criterion's code.
39
+ */
40
+ export declare const specCodeFilterId: (componentKey: string, branch: number, criterion: string, code: string) => SpecCodeId;
@@ -0,0 +1 @@
1
+ let e=e=>{let t=e.trim(),o=0x811c9dc5;for(let e=0;e<t.length;e++)o^=t.charCodeAt(e),o=Math.imul(o,0x1000193)>>>0;return o.toString(16).padStart(8,"0")};export const specCodeExpressionKey=(e,t)=>`${e}.${t}`;export const specCodeComponentKey=(e,t,o)=>`${e}.${t}:${o}`;export const specCodeEvalIds=(t,o)=>{let r=0;return t.deps.map(t=>"eval"===t.kind?`${o}#${r++}@${e(t.code)}`:void 0)};export const specCodeFilterId=(t,o,r,d)=>`${t}#filter${o}.${r}@${e(d)}`;
@@ -80,6 +80,24 @@ export type CategorizedFiles = Branded<'CategorizedFiles', {
80
80
  * any other root `tsconfig.json` is the project's own and is left as it is.
81
81
  */
82
82
  readonly hasEarlierGeneratedTsconfig: boolean;
83
+ /**
84
+ * One-time migration: true only on a checkout's first sync with an SDK that contains this field;
85
+ * delete it once projects have synced with such an SDK.
86
+ *
87
+ * Whether the project's root `eslint.config.js` is the file earlier SDK versions generated on
88
+ * every sync, before it became the project's. Generation reads it to replace that file once with
89
+ * the current one; any other root `eslint.config.js` is the project's own and is left as it is.
90
+ */
91
+ readonly hasEarlierGeneratedEslintConfig: boolean;
92
+ /**
93
+ * One-time migration: true only on a checkout's first sync with an SDK that contains this field;
94
+ * delete it once projects have synced with such an SDK.
95
+ *
96
+ * Whether the project's root `prettier.config.js` is the file earlier SDK versions generated on
97
+ * every sync, before it became the project's. Generation reads it to replace that file once with
98
+ * the current one; any other root `prettier.config.js` is the project's own and is left as it is.
99
+ */
100
+ readonly hasEarlierGeneratedPrettierConfig: boolean;
83
101
  readonly customCode: readonly CategorizedFile[];
84
102
  readonly customCodeChanged: boolean;
85
103
  readonly envs: Record<string, unknown>;
@@ -1 +1 @@
1
- import e from"lodash-es/isEqual.js";import{Branded as n}from"@salsita-ai/common/utils";import{computeFileDepHashes as s}from"../../caching/index.js";import{DiagnosticCode as o,diagnosticMessages as i}from"../../errors/index.js";import{isEarlierGeneratedTsconfig as a}from"./earlier-generated-tsconfig.js";import{findWebhookHandlerRegistration as t}from"./module-analysis.js";import{findWebhookSafetyViolation as r}from"./webhook-safety.js";export const buildProjectFileIndex=e=>new Map([...e.spec,...e.expressions,...e.actions,...e.handlers,...e.elements,...e.transformers,...e.components,...e.invariants,...e.migrations,...e.adminMigrations,...e.adminExpressions,...e.adminInvariants,...e.adminComponents,...e.adminElements,...e.webhooks,...e.locales,...e.mockTemplates,...e.projectFiles,...e.customCode].map(e=>[e.file.name,e]));let m=e=>/\/_[^/]+\//.test(e),l=[{path:"spec/",key:"spec"},{path:"src/admin/expressions/",key:"adminExpressions"},{path:"src/admin/invariants/",key:"adminInvariants"},{path:"src/admin/components/",key:"adminComponents"},{path:"src/admin/elements/",key:"adminElements"},{path:"src/admin/migrations/",key:"adminMigrations"},{path:"src/expressions/",key:"expressions"},{path:"src/actions/",key:"actions"},{path:"src/handlers/",key:"handlers"},{path:"src/elements/",key:"elements"},{path:"src/transformers/",key:"transformers"},{path:"src/components/",key:"components"},{path:"src/invariants/",key:"invariants"},{path:"src/migrations/",key:"migrations"},{path:"src/webhooks/",key:"webhooks"},{path:"src/locales/",key:"locales"},{path:"mocks/",key:"mockTemplates"}],d="tsconfig.json",c=new Set(["package.json",".gitignore",d,"CLAUDE.md",".cursor/rules/phoenix.mdc"]),p=new Set(["migrations","adminMigrations"]),h=l.filter(({path:e,key:n})=>e.startsWith("src/")&&p.has(n)),f=(e,n)=>{let s=e.slice(n.length).split("/");return!(s.length<=1)&&s.slice(0,-1).some(e=>!e.startsWith("_"))},g=/\.(ts|tsx|js|jsx)$/,u=(e,n)=>{if("components"===e||"adminComponents"===e)return n.hasUseWebhookDirective?{membership:"pinned",logSuffix:"webhook ('use webhook' directive)"}:{membership:"frontend",logSuffix:"frontend only (no 'use webhook' directive)"};if("handlers"===e){let e=t(n);return void 0!==e?{membership:"named-handler",logSuffix:`webhook (the ${e} registration)`}:n.hasUseWebhookDirective?{membership:"pinned",logSuffix:"webhook ('use webhook' directive)"}:{membership:"frontend",logSuffix:"frontend only (not a named handler or pin)"}}};export const CategorizedFiles=(t,p,k,b)=>{let C={spec:[],expressions:[],actions:[],handlers:[],elements:[],transformers:[],components:[],invariants:[],migrations:[],adminMigrations:[],adminExpressions:[],adminInvariants:[],adminComponents:[],adminElements:[],webhooks:[],locales:[],mockTemplates:[],projectFiles:[],customCode:[]},v=[];for(let e of t.files){if("text"!==e.kind)continue;if(m(e.name)){C.customCode.push({file:e,category:"customCode"});continue}if(c.has(e.name)){C.projectFiles.push({file:e,category:"projectFiles"});continue}let n=!1;for(let{path:s,key:o}of l)if(e.name.startsWith(s)){C[o].push({file:e,category:o}),n=!0;break}n||v.push(e.name)}for(let e of v)e.startsWith("src/")&&k.error(o.UNKNOWN_SRC_PATH,i.UNKNOWN_SRC_PATH(e));for(let{path:e,key:n}of h)for(let s of C[n])f(s.file.name,e)&&k.error(o.INVALID_SUBDIRECTORY,i.INVALID_SUBDIRECTORY(s.file.name,e));let x=C.webhooks.some(e=>"src/webhooks/index.ts"===e.file.name);if(C.webhooks.length>0&&!x&&k.error(o.MISSING_WEBHOOK_INDEX,i.MISSING_WEBHOOK_INDEX()),k.hasErrors)return;let y=C.projectFiles.find(e=>e.file.name===d),E=void 0!==y&&a(y.file.content),I=[];for(let e of Object.values(C))for(let n of e)I.push(n.file.name);let w=s(t,I),{analyzer:S,logger:j}=b,F=p.createBuilder("categorizedFiles/moduleAnalysis",{build:e=>{try{return{analysis:S(e.name,e.content)}}catch(e){return{error:e instanceof Error?e.message:String(e)}}},getKey:e=>e.name,compare:(e,n)=>e.content===n.content}),_=new Set,M=e=>{if(!g.test(e.name))return;_.add(e.name);let n=F.build({name:e.name,content:e.content}).output;return void 0!==n.error?void k.error(o.MODULE_ANALYSIS_FAILED,i[o.MODULE_ANALYSIS_FAILED](e.name,n.error)):n.analysis},O={},N={};for(let[e,s]of Object.entries(C)){let o=p.createBuilder(`categorizedFiles/${e}`,{build:e=>e,getKey:e=>e.name,compare:(e,n)=>e.depHash===n.depHash}),i=new Set;O[e]=s.map(e=>{let s=w[e.file.name]??{deps:[],hash:""},{changed:a}=o.build({name:e.file.name,depHash:s.hash});i.add(e.file.name);let t=M(e.file),r=void 0===t?void 0:u(e.category,t);return void 0!==r&&j.debug(`Webhook membership: ${e.file.name} -> ${r.logSuffix}`),n({file:e.file,category:e.category,deps:s.deps,depHash:s.hash,changed:a,analysis:t,webhookMembership:r?.membership})}),N[e]=o.cleanup(i)}F.cleanup(_);let A=(e,n)=>n.some(e=>e.changed)||!0===N[e],T=p.createBuilder("categorizedFiles/envs",{build:e=>e.envs,getKey:()=>"singleton",compare:(n,s)=>e(n.envs,s.envs)}).build({envs:t.envs}),D=n({spec:O.spec,specChanged:A("spec",O.spec),expressions:O.expressions,expressionsChanged:A("expressions",O.expressions),actions:O.actions,actionsChanged:A("actions",O.actions),handlers:O.handlers,handlersChanged:A("handlers",O.handlers),elements:O.elements,elementsChanged:A("elements",O.elements),transformers:O.transformers,transformersChanged:A("transformers",O.transformers),components:O.components,componentsChanged:A("components",O.components),invariants:O.invariants,invariantsChanged:A("invariants",O.invariants),migrations:O.migrations,migrationsChanged:A("migrations",O.migrations),adminMigrations:O.adminMigrations,adminMigrationsChanged:A("adminMigrations",O.adminMigrations),adminExpressions:O.adminExpressions,adminExpressionsChanged:A("adminExpressions",O.adminExpressions),adminInvariants:O.adminInvariants,adminInvariantsChanged:A("adminInvariants",O.adminInvariants),adminComponents:O.adminComponents,adminComponentsChanged:A("adminComponents",O.adminComponents),adminElements:O.adminElements,adminElementsChanged:A("adminElements",O.adminElements),webhooks:O.webhooks,webhooksChanged:A("webhooks",O.webhooks),hasWebhookEntry:x,locales:O.locales,localesChanged:A("locales",O.locales),mockTemplates:O.mockTemplates,mockTemplatesChanged:A("mockTemplates",O.mockTemplates),projectFiles:O.projectFiles,projectFilesChanged:A("projectFiles",O.projectFiles),hasEarlierGeneratedTsconfig:E,customCode:O.customCode,customCodeChanged:A("customCode",O.customCode),envs:T.output,envsChanged:T.changed}),W=buildProjectFileIndex(D);for(let e of W.values()){if("pinned"!==e.webhookMembership&&"named-handler"!==e.webhookMembership)continue;let n=r(e,W);void 0!==n&&k.error(o.WEBHOOK_UNSAFE_IMPORT,i[o.WEBHOOK_UNSAFE_IMPORT](n.fileName,n.inclusionReason,n.importer,n.specifier))}return D};
1
+ import e from"lodash-es/isEqual.js";import{Branded as n}from"@salsita-ai/common/utils";import{computeFileDepHashes as s}from"../../caching/index.js";import{DiagnosticCode as o,diagnosticMessages as i}from"../../errors/index.js";import{isEarlierGeneratedEslintConfig as t,isEarlierGeneratedPrettierConfig as a}from"./earlier-generated-editor-configs.js";import{isEarlierGeneratedTsconfig as r}from"./earlier-generated-tsconfig.js";import{findWebhookHandlerRegistration as m}from"./module-analysis.js";import{findWebhookSafetyViolation as l}from"./webhook-safety.js";export const buildProjectFileIndex=e=>new Map([...e.spec,...e.expressions,...e.actions,...e.handlers,...e.elements,...e.transformers,...e.components,...e.invariants,...e.migrations,...e.adminMigrations,...e.adminExpressions,...e.adminInvariants,...e.adminComponents,...e.adminElements,...e.webhooks,...e.locales,...e.mockTemplates,...e.projectFiles,...e.customCode].map(e=>[e.file.name,e]));let d=e=>/\/_[^/]+\//.test(e),c=[{path:"spec/",key:"spec"},{path:"src/admin/expressions/",key:"adminExpressions"},{path:"src/admin/invariants/",key:"adminInvariants"},{path:"src/admin/components/",key:"adminComponents"},{path:"src/admin/elements/",key:"adminElements"},{path:"src/admin/migrations/",key:"adminMigrations"},{path:"src/expressions/",key:"expressions"},{path:"src/actions/",key:"actions"},{path:"src/handlers/",key:"handlers"},{path:"src/elements/",key:"elements"},{path:"src/transformers/",key:"transformers"},{path:"src/components/",key:"components"},{path:"src/invariants/",key:"invariants"},{path:"src/migrations/",key:"migrations"},{path:"src/webhooks/",key:"webhooks"},{path:"src/locales/",key:"locales"},{path:"mocks/",key:"mockTemplates"}],p="tsconfig.json",h="eslint.config.js",f="prettier.config.js",g=new Set([".gitignore",p,h,f,"CLAUDE.md",".cursor/rules/phoenix.mdc"]),u=new Set(["migrations","adminMigrations"]),k=c.filter(({path:e,key:n})=>e.startsWith("src/")&&u.has(n)),b=(e,n)=>{let s=e.slice(n.length).split("/");return!(s.length<=1)&&s.slice(0,-1).some(e=>!e.startsWith("_"))},C=/\.(ts|tsx|js|jsx)$/,v=(e,n)=>{if("components"===e||"adminComponents"===e)return n.hasUseWebhookDirective?{membership:"pinned",logSuffix:"webhook ('use webhook' directive)"}:{membership:"frontend",logSuffix:"frontend only (no 'use webhook' directive)"};if("handlers"===e){let e=m(n);return void 0!==e?{membership:"named-handler",logSuffix:`webhook (the ${e} registration)`}:n.hasUseWebhookDirective?{membership:"pinned",logSuffix:"webhook ('use webhook' directive)"}:{membership:"frontend",logSuffix:"frontend only (not a named handler or pin)"}}};export const CategorizedFiles=(m,u,x,y)=>{let E={spec:[],expressions:[],actions:[],handlers:[],elements:[],transformers:[],components:[],invariants:[],migrations:[],adminMigrations:[],adminExpressions:[],adminInvariants:[],adminComponents:[],adminElements:[],webhooks:[],locales:[],mockTemplates:[],projectFiles:[],customCode:[]},j=[];for(let e of m.files){if("text"!==e.kind)continue;if(d(e.name)){E.customCode.push({file:e,category:"customCode"});continue}if(g.has(e.name)){E.projectFiles.push({file:e,category:"projectFiles"});continue}let n=!1;for(let{path:s,key:o}of c)if(e.name.startsWith(s)){E[o].push({file:e,category:o}),n=!0;break}n||j.push(e.name)}for(let e of j)e.startsWith("src/")&&x.error(o.UNKNOWN_SRC_PATH,i.UNKNOWN_SRC_PATH(e));for(let{path:e,key:n}of k)for(let s of E[n])b(s.file.name,e)&&x.error(o.INVALID_SUBDIRECTORY,i.INVALID_SUBDIRECTORY(s.file.name,e));let I=E.webhooks.some(e=>"src/webhooks/index.ts"===e.file.name);if(E.webhooks.length>0&&!I&&x.error(o.MISSING_WEBHOOK_INDEX,i.MISSING_WEBHOOK_INDEX()),x.hasErrors)return;let w=E.projectFiles.find(e=>e.file.name===p),S=void 0!==w&&r(w.file.content),F=E.projectFiles.find(e=>e.file.name===h),_=void 0!==F&&t(F.file.content),M=E.projectFiles.find(e=>e.file.name===f),O=void 0!==M&&a(M.file.content),N=[];for(let e of Object.values(E))for(let n of e)N.push(n.file.name);let A=s(m,N),{analyzer:T,logger:D}=y,W=u.createBuilder("categorizedFiles/moduleAnalysis",{build:e=>{try{return{analysis:T(e.name,e.content)}}catch(e){return{error:e instanceof Error?e.message:String(e)}}},getKey:e=>e.name,compare:(e,n)=>e.content===n.content}),U=new Set,H=e=>{if(!C.test(e.name))return;U.add(e.name);let n=W.build({name:e.name,content:e.content}).output;return void 0!==n.error?void x.error(o.MODULE_ANALYSIS_FAILED,i[o.MODULE_ANALYSIS_FAILED](e.name,n.error)):n.analysis},B={},K={};for(let[e,s]of Object.entries(E)){let o=u.createBuilder(`categorizedFiles/${e}`,{build:e=>e,getKey:e=>e.name,compare:(e,n)=>e.depHash===n.depHash}),i=new Set;B[e]=s.map(e=>{let s=A[e.file.name]??{deps:[],hash:""},{changed:t}=o.build({name:e.file.name,depHash:s.hash});i.add(e.file.name);let a=H(e.file),r=void 0===a?void 0:v(e.category,a);return void 0!==r&&D.debug(`Webhook membership: ${e.file.name} -> ${r.logSuffix}`),n({file:e.file,category:e.category,deps:s.deps,depHash:s.hash,changed:t,analysis:a,webhookMembership:r?.membership})}),K[e]=o.cleanup(i)}W.cleanup(U);let L=(e,n)=>n.some(e=>e.changed)||!0===K[e],R=u.createBuilder("categorizedFiles/envs",{build:e=>e.envs,getKey:()=>"singleton",compare:(n,s)=>e(n.envs,s.envs)}).build({envs:m.envs}),P=n({spec:B.spec,specChanged:L("spec",B.spec),expressions:B.expressions,expressionsChanged:L("expressions",B.expressions),actions:B.actions,actionsChanged:L("actions",B.actions),handlers:B.handlers,handlersChanged:L("handlers",B.handlers),elements:B.elements,elementsChanged:L("elements",B.elements),transformers:B.transformers,transformersChanged:L("transformers",B.transformers),components:B.components,componentsChanged:L("components",B.components),invariants:B.invariants,invariantsChanged:L("invariants",B.invariants),migrations:B.migrations,migrationsChanged:L("migrations",B.migrations),adminMigrations:B.adminMigrations,adminMigrationsChanged:L("adminMigrations",B.adminMigrations),adminExpressions:B.adminExpressions,adminExpressionsChanged:L("adminExpressions",B.adminExpressions),adminInvariants:B.adminInvariants,adminInvariantsChanged:L("adminInvariants",B.adminInvariants),adminComponents:B.adminComponents,adminComponentsChanged:L("adminComponents",B.adminComponents),adminElements:B.adminElements,adminElementsChanged:L("adminElements",B.adminElements),webhooks:B.webhooks,webhooksChanged:L("webhooks",B.webhooks),hasWebhookEntry:I,locales:B.locales,localesChanged:L("locales",B.locales),mockTemplates:B.mockTemplates,mockTemplatesChanged:L("mockTemplates",B.mockTemplates),projectFiles:B.projectFiles,projectFilesChanged:L("projectFiles",B.projectFiles),hasEarlierGeneratedTsconfig:S,hasEarlierGeneratedEslintConfig:_,hasEarlierGeneratedPrettierConfig:O,customCode:B.customCode,customCodeChanged:L("customCode",B.customCode),envs:R.output,envsChanged:R.changed}),$=buildProjectFileIndex(P);for(let e of $.values()){if("pinned"!==e.webhookMembership&&"named-handler"!==e.webhookMembership)continue;let n=l(e,$);void 0!==n&&x.error(o.WEBHOOK_UNSAFE_IMPORT,i[o.WEBHOOK_UNSAFE_IMPORT](n.fileName,n.inclusionReason,n.importer,n.specifier))}return P};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * One-time migration, see the top of this module: true only before a checkout's first sync with this SDK.
3
+ *
4
+ * Whether the content of a project's root `eslint.config.js` is the file earlier SDK versions
5
+ * generated. Whitespace, semicolons and the quote style do not count; any other difference makes the
6
+ * file the project's own.
7
+ */
8
+ export declare const isEarlierGeneratedEslintConfig: (content: string) => boolean;
9
+ /**
10
+ * One-time migration, see the top of this module: true only before a checkout's first sync with this SDK.
11
+ *
12
+ * Whether the content of a project's root `prettier.config.js` is the file earlier SDK versions
13
+ * generated. Whitespace, semicolons and the quote style do not count; any other difference makes the
14
+ * file the project's own.
15
+ */
16
+ export declare const isEarlierGeneratedPrettierConfig: (content: string) => boolean;
@@ -0,0 +1,9 @@
1
+ let e=`/**
2
+ * Auto-generated file.
3
+ * Do not modify this file manually.
4
+ * Version: 1
5
+ */`,t=["@salsita-ai/sdk/common","@salsita-ai/platform-common","@salsita-ai/common"],a=(a,r)=>t.map(t=>`${e}
6
+ import { ${a} } from '${t}/${r}'
7
+
8
+ export default ${a}
9
+ `),r=e=>e.replace(/\s+/g,"").replace(/;/g,"").replace(/"/g,"'"),i=new Set(a("eslintrc","eslint").map(r)),o=new Set(a("prettierrc","prettier").map(r));export const isEarlierGeneratedEslintConfig=e=>i.has(r(e));export const isEarlierGeneratedPrettierConfig=e=>o.has(r(e));
@@ -1,13 +1,22 @@
1
1
  import { Branded } from '@salsita-ai/common/utils';
2
+ import type { AssistantAiSettings } from '@salsita-ai/contracts/assistant';
2
3
  import type { ParseContext } from '../../core/index.js';
3
4
  import type { RawAssistant } from '../raw-spec/index.js';
4
5
  import type { ClassifiedSpecFile } from './classified-spec-file.js';
5
6
  /**
6
- * The singular `assistant` manifest after merge, or `null` when no spec file declares one. `origin`
7
- * names the declaring spec file so manifest diagnostics point at it.
7
+ * The assistant manifest merged from every spec file that declares an `assistant` block. Each file
8
+ * may leave `ai` out, but the merged manifest has it: the deployment cannot run its assistant
9
+ * without the provider, model tier and reasoning level.
10
+ */
11
+ export type MergedAssistantManifest = RawAssistant & {
12
+ readonly ai: AssistantAiSettings;
13
+ };
14
+ /**
15
+ * The `assistant` manifest merged from every spec file that declares an `assistant` block, or `null`
16
+ * when none does or when none of them declares `ai`. Manifest diagnostics raised after the merge
17
+ * carry the YAML path but no file, as in every other merged section.
8
18
  */
9
19
  export type MergedAssistant = Branded<'MergedAssistant', {
10
- readonly manifest: RawAssistant | null;
11
- readonly origin: string | null;
20
+ readonly manifest: MergedAssistantManifest | null;
12
21
  }>;
13
22
  export declare const MergedAssistant: (files: readonly ClassifiedSpecFile[], ctx: ParseContext) => MergedAssistant;
@@ -1 +1 @@
1
- import{Branded as t}from"@salsita-ai/common/utils";import{DiagnosticCode as n,diagnosticMessages as o}from"../../errors/index.js";export const MergedAssistant=(r,i)=>{let s,e=null;for(let t of r)if(void 0!==t.content.assistant){if(s){i.error(n.CONFLICTING_ASSISTANT,o.CONFLICTING_ASSISTANT(s,t.name));continue}s=t.name,e=t.content.assistant}return t({manifest:e,origin:s??null})};
1
+ import{Branded as e}from"@salsita-ai/common/utils";import{DiagnosticCode as t,diagnosticMessages as s}from"../../errors/index.js";let i=(e,i,n,r)=>{let l=i.flatMap(e=>{let t=n(e.manifest);return t?[{file:e.file,entries:t}]:[]});if(0===l.length)return;let a={},o=new Map;for(let{file:i,entries:n}of l)for(let[l,f]of Object.entries(n)){let n=o.get(l);if(n){r.at("assistant",e,l).error(t.ASSISTANT_MERGE_CONFLICT,s.ASSISTANT_MERGE_CONFLICT(e,l,n,i));continue}o.set(l,i),a[l]=f}return a},n=(e,i,n,r)=>{let l,a;for(let o of i){let i=n(o.manifest);if(void 0!==i){if(l){r.at("assistant",e).error(t.DUPLICATE_ASSISTANT_FIELD,s.DUPLICATE_ASSISTANT_FIELD(e,l,o.file));continue}l=o.file,a=i}}return a};export const MergedAssistant=(r,l)=>{let a=r.flatMap(e=>e.content.assistant?[{file:e.name,manifest:e.content.assistant}]:[]);if(0===a.length)return e({manifest:null});let o={entities:i("entities",a,e=>e.entities,l),deletable:i("deletable",a,e=>e.deletable,l),writable:i("writable",a,e=>e.writable,l),childRecipes:i("childRecipes",a,e=>e.childRecipes,l),replaceRecipes:i("replaceRecipes",a,e=>e.replaceRecipes,l),actions:i("actions",a,e=>e.actions,l),screenshots:i("screenshots",a,e=>e.screenshots,l),formElements:i("formElements",a,e=>e.formElements,l),lenses:n("lenses",a,e=>e.lenses,l),instructions:n("instructions",a,e=>e.instructions,l),ai:n("ai",a,e=>e.ai,l)},{ai:f}=o;return f?e({manifest:{...o,ai:f}}):(l.at("assistant","ai").error(t.ASSISTANT_MISSING_AI,s.ASSISTANT_MISSING_AI()),e({manifest:null}))};
@@ -1,8 +1,7 @@
1
1
  import { Branded } from '@salsita-ai/common/utils';
2
+ import type { Acl, ResourceEntry, SpecResourcesConfig } from '#package/domain';
2
3
  import type { ParseContext } from '../../core/index.js';
3
- import type { AclRole } from '../raw-spec/raw-acl.js';
4
4
  import type { RawEnvVarEntry } from '../raw-spec/raw-env.js';
5
- import type { RawResourceEntry } from '../raw-spec/raw-resources.js';
6
5
  import type { ClassifiedSpecFile } from './classified-spec-file.js';
7
6
  /** Merged infrastructure settings (env, ACL, resources). */
8
7
  export type MergedInfra = Branded<'MergedInfra', {
@@ -10,14 +9,8 @@ export type MergedInfra = Branded<'MergedInfra', {
10
9
  readonly frontend?: Readonly<Record<string, RawEnvVarEntry>>;
11
10
  readonly webhook?: Readonly<Record<string, RawEnvVarEntry>>;
12
11
  };
13
- readonly acl: {
14
- readonly canCreate: readonly AclRole[];
15
- };
16
- readonly resources?: readonly RawResourceEntry[];
17
- readonly resourcesConfig?: {
18
- readonly baseResourcesUrl?: string;
19
- readonly prefetchTextureUrls?: readonly string[];
20
- readonly deploymentQueryDisabled?: boolean;
21
- };
12
+ readonly acl: Acl;
13
+ readonly resources?: readonly ResourceEntry[];
14
+ readonly resourcesConfig?: SpecResourcesConfig;
22
15
  }>;
23
16
  export declare const MergedInfra: (files: readonly ClassifiedSpecFile[], ctx: ParseContext) => MergedInfra;
@@ -1,10 +1,8 @@
1
1
  import { Branded } from '@salsita-ai/common/utils';
2
+ import type { TransformerEntry } from '#package/domain';
2
3
  import type { ParseContext } from '../../core/index.js';
3
4
  import type { ClassifiedSpecFile } from './classified-spec-file.js';
4
- export interface TransformerEntry {
5
- readonly name: string;
6
- readonly priority?: number;
7
- }
5
+ export type { TransformerEntry } from '#package/domain';
8
6
  /** Merged transformers. The "transformers" section is singular — only one file may declare it. */
9
7
  export type MergedTransformers = Branded<'MergedTransformers', readonly TransformerEntry[]>;
10
8
  export declare const MergedTransformers: (files: readonly ClassifiedSpecFile[], ctx: ParseContext) => MergedTransformers;
@@ -1 +1 @@
1
- import{Branded as e}from"@salsita-ai/common/utils";import{ParseContext as s}from"../core/index.js";import{CategorizedFiles as t}from"./categorize/index.js";import{MergedSpec as i}from"./merge/index.js";import{RawSpecFiles as r}from"./raw-spec/parse-raw-spec.js";import{RawMockTemplates as p}from"./raw-spec/raw-mock-templates.js";import{ResolvedSpecFiles as a}from"./resolve/index.js";import{ApplicationSpec as o}from"./spec/index.js";export const parseApplicationFiles=(l,n)=>{let{rawProjectFiles:m,phxDefinitions:c}=l,{evalExpressionParser:d,referenceStore:f,parsingContext:F}=n,u=F??new s,S=u.startSpan("parseApplicationFiles","build","parse-application-files.ts"),g=t(m,f,u,n);if(!g)return S(),u.toResult(void 0);let w=u.startSpan("RawSpecFiles","parseApplicationFiles","parse-raw-spec.ts"),A=r(g.spec,u);w();let R=u.startSpan("RawMockTemplates","parseApplicationFiles","raw-mock-templates.ts"),j=p(g.mockTemplates,u);if(R(),!A)return S(),u.toResult(void 0);let v=u.startSpan("ResolvedSpecFiles","parseApplicationFiles","resolved-spec-files.ts"),x=a(A,m,u);v();let k=u.startSpan("MergedSpec","parseApplicationFiles","merged-spec.ts"),M=i(x,u);if(k(),u.hasErrors)return S(),u.toResult(void 0);let T=u.startSpan("ApplicationSpec","parseApplicationFiles","application-spec.ts"),b=o({merged:M,migrationFiles:g.migrations,adminMigrationFiles:g.adminMigrations,transformerFiles:g.transformers.map(e=>e.file.name),phxDefinitions:c,evalExpressionParser:d},u);return(T(),b)?(S(),u.toResult(e({rawProjectFiles:m,categorizedFiles:g,rawMockTemplates:j,applicationSpec:b}))):(S(),u.toResult(void 0))};
1
+ import{Branded as e}from"@salsita-ai/common/utils";import{ParseContext as s}from"../core/index.js";import{DiagnosticCode as t,diagnosticMessages as r}from"../errors/index.js";import{CategorizedFiles as i}from"./categorize/index.js";import{MergedSpec as a}from"./merge/index.js";import{RawSpecFiles as p}from"./raw-spec/parse-raw-spec.js";import{RawMockTemplates as o}from"./raw-spec/raw-mock-templates.js";import{ResolvedSpecFiles as l}from"./resolve/index.js";import{ApplicationSpec as n}from"./spec/index.js";export const parseApplicationFiles=(m,c)=>{let{rawProjectFiles:d,phxDefinitions:f}=m,{evalExpressionParser:u,referenceStore:F,parsingContext:A}=c,g=A??new s,w=g.startSpan("parseApplicationFiles","build","parse-application-files.ts"),R=i(d,F,g,c);if(!R)return w(),g.toResult(void 0);let S=g.startSpan("RawSpecFiles","parseApplicationFiles","parse-raw-spec.ts"),T=p(R.spec,g);S();let j=g.startSpan("RawMockTemplates","parseApplicationFiles","raw-mock-templates.ts"),O=o(R.mockTemplates,g);if(j(),!T)return w(),g.toResult(void 0);let k=g.startSpan("ResolvedSpecFiles","parseApplicationFiles","resolved-spec-files.ts"),v=l(T,d,g);k();let x=g.startSpan("MergedSpec","parseApplicationFiles","merged-spec.ts"),H=a(v,g);if(x(),g.hasErrors)return w(),g.toResult(void 0);let E=g.startSpan("ApplicationSpec","parseApplicationFiles","application-spec.ts"),M=n({merged:H,migrationFiles:R.migrations,adminMigrationFiles:R.adminMigrations,transformerFiles:R.transformers.map(e=>e.file.name),phxDefinitions:f,evalExpressionParser:u},g);return(E(),M)?(!R.hasWebhookEntry&&(M.appMetadata.useAuthHook||M.appMetadata.useClerk)&&g.warning(t.AUTH_WITHOUT_PROJECT_WEBHOOK,r.AUTH_WITHOUT_PROJECT_WEBHOOK()),w(),g.toResult(e({rawProjectFiles:d,categorizedFiles:R,rawMockTemplates:O,applicationSpec:M}))):(w(),g.toResult(void 0))};
@@ -1 +1 @@
1
- import{parse as r}from"yaml";import{Branded as e}from"@salsita-ai/common/utils";import{DiagnosticCode as t,diagnosticMessages as n}from"../../errors/index.js";export const parseYamlSpecFile=(o,a)=>{try{let i=r(o.file.content,{merge:!0});if(null===i)return a.warning(t.EMPTY_SPEC_FILE,n.EMPTY_SPEC_FILE()),e({name:o.file.name,content:{}});if("object"!=typeof i||Array.isArray(i))return void a.error(t.YAML_PARSE_ERROR,n.YAML_PARSE_ERROR("File did not parse to an object"));return e({name:o.file.name,content:i})}catch(r){a.error(t.YAML_PARSE_ERROR,n.YAML_PARSE_ERROR(r instanceof Error?r.message:String(r)));return}};
1
+ import{parse as r}from"yaml";import{Branded as e}from"@salsita-ai/common/utils";import{DiagnosticCode as t,diagnosticMessages as n}from"../../errors/index.js";let o=(r,e,i)=>{if("number"==typeof r)return!Number.isFinite(r)&&(i.at(...e).error(t.NON_FINITE_NUMBER,n.NON_FINITE_NUMBER(e.join("."),String(r))),!0);if("object"!=typeof r||null===r)return!1;let a=!1;for(let[t,n]of Object.entries(r))a=o(n,[...e,t],i)||a;return a};export const parseYamlSpecFile=(i,a)=>{try{let E=r(i.file.content,{merge:!0});if(null===E)return a.warning(t.EMPTY_SPEC_FILE,n.EMPTY_SPEC_FILE()),e({name:i.file.name,content:{}});if("object"!=typeof E||Array.isArray(E))return void a.error(t.YAML_PARSE_ERROR,n.YAML_PARSE_ERROR("File did not parse to an object"));if(o(E,[],a))return;return e({name:i.file.name,content:E})}catch(r){a.error(t.YAML_PARSE_ERROR,n.YAML_PARSE_ERROR(r instanceof Error?r.message:String(r)));return}};
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const aclRoles: readonly ['anonymous', 'user', 'admin', 'superadmin'];
3
- export type AclRole = (typeof aclRoles)[number];
2
+ import { type AclRole } from '#package/domain';
3
+ export { type AclRole, aclRoles } from '#package/domain';
4
4
  export type RawAcl = {
5
5
  readonly canCreate?: readonly AclRole[];
6
6
  };
@@ -1 +1 @@
1
- import{z as o}from"zod";export const aclRoles=["anonymous","user","admin","superadmin"];export const rawAclSchema=o.object({canCreate:o.array(o.enum(aclRoles)).optional()});
1
+ import{z as o}from"zod";import{aclRoles as a}from"#package/domain";export{aclRoles}from"#package/domain";export const rawAclSchema=o.object({canCreate:o.array(o.enum(a)).optional()});
@@ -1,26 +1,5 @@
1
1
  import { z } from 'zod';
2
- export interface RawAdminPages {
3
- readonly presets?: boolean | {
4
- readonly categoryNavigationState?: string;
5
- readonly presetNavigationState?: string;
6
- };
7
- readonly recipes?: ReadonlyArray<{
8
- readonly name: string;
9
- readonly navigationState?: string;
10
- }>;
11
- readonly pages?: ReadonlyArray<{
12
- readonly key: string;
13
- readonly title: string;
14
- readonly icon?: string;
15
- readonly navigationState?: string;
16
- readonly entity?: string;
17
- readonly component?: string;
18
- readonly actionsComponent?: string;
19
- readonly connectedDataEntry?: string;
20
- readonly sidebar?: {
21
- readonly title: string;
22
- readonly component: string;
23
- };
24
- }>;
25
- }
2
+ import type { AdminPagesSection } from '#package/domain';
3
+ /** The `$adminPages` section of an admin spec file as written; see {@link AdminPagesSection} in `domain`. */
4
+ export type RawAdminPages = AdminPagesSection;
26
5
  export declare const rawAdminPagesSchema: z.ZodType<RawAdminPages, z.ZodTypeDef, unknown>;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { type AssistantAiSettings } from '@salsita-ai/contracts/assistant';
3
- import { ASSISTANT_HINTS } from '#package/domain';
3
+ import { ASSISTANT_HINTS, type AssistantFormAttribute, type AssistantFormRole } from '#package/domain';
4
4
  /**
5
5
  * One whitelisted field in the assistant manifest. `description` overrides the JSON Schema
6
6
  * description of the shape property; `as` exposes the field under a different GraphQL name; `lenses`
@@ -12,6 +12,21 @@ export interface RawAssistantField {
12
12
  readonly as?: string;
13
13
  readonly lenses?: readonly string[];
14
14
  }
15
+ /**
16
+ * One of the project's own elements of an assistant form, keyed under `assistant.formElements` by
17
+ * its tag, and implemented by the component a file in `src/elements/` registers under the same name
18
+ * with `phx.frontend.createAssistantFormElement`. `role` decides the props the component gets, how
19
+ * the form collects it into the answer and where the prompt lists it, with `description` after its
20
+ * signature. `attributes` are flat scalars beside the built-in `label`, each a JSON Schema of the
21
+ * keywords `AssistantFormAttribute` allows, and `required` names those the model must write. An
22
+ * option or an input that takes a `value` declares it like any other attribute.
23
+ */
24
+ export interface RawAssistantFormElement {
25
+ readonly description: string;
26
+ readonly role: AssistantFormRole;
27
+ readonly attributes?: Readonly<Record<string, AssistantFormAttribute>>;
28
+ readonly required?: readonly string[];
29
+ }
15
30
  /**
16
31
  * One lens of the assistant `lenses` map, keyed by the name the agent spreads it by: a named
17
32
  * selection made of the `entities` entries tagged with that name. `description` tells the agent when
@@ -42,12 +57,15 @@ export type AssistantHint = (typeof ASSISTANT_HINTS)[number];
42
57
  * system component `componentType` on the entity type. It generates the `<field>Options` edge under
43
58
  * `meta`, named by `as` when given, and makes `modify<Type>` reject a value outside the choices
44
59
  * unless `validate` is `false`. `allowDryRuns: false` turns the dry-run of the choices off, for
45
- * fields with too many of them to try out. The component is named explicitly and never inferred from
46
- * a `$bind`.
60
+ * fields with too many of them to try out. `componentType` and `instanceName` are given together or
61
+ * not at all: without them the component is the one `materialSwatch`, `attributeSelection` or
62
+ * `distanceDimensionSelect` instance on the entity type, or on an alias containing it, that writes
63
+ * the field through `$bind` or `$write`. Naming it chooses between several such instances, or gives
64
+ * the agent another list than the user's control shows.
47
65
  */
48
66
  export interface RawAssistantFieldOptions {
49
- readonly componentType: AssistantOptionComponentType;
50
- readonly instanceName: string;
67
+ readonly componentType?: AssistantOptionComponentType;
68
+ readonly instanceName?: string;
51
69
  readonly as?: string;
52
70
  readonly validate?: boolean;
53
71
  readonly allowDryRuns?: boolean;
@@ -55,30 +73,26 @@ export interface RawAssistantFieldOptions {
55
73
  }
56
74
  /**
57
75
  * One writable field of the assistant `writable` map. An empty entry (`width:` in YAML) declares the
58
- * stored field writable; `options` links it to the component that holds its choices.
76
+ * stored field writable, linked to the component that holds its choices when one instance writes it;
77
+ * `options` sets up that link, and `options: null` declares the field without one.
59
78
  */
60
79
  export interface RawAssistantWritableField {
61
- readonly options?: RawAssistantFieldOptions;
80
+ readonly options?: RawAssistantFieldOptions | null;
62
81
  }
63
82
  /**
64
83
  * One recipe group of the assistant `childRecipes` or `replaceRecipes` map, keyed by the instance
65
- * name of a `childEntityRecipes` or a `replaceEntityRecipes` component. `as` is the id the agent addresses the group by, the instance name
66
- * by default; `description` replaces the component's group description; `allowDryRuns: false` turns
67
- * the dry-run of the group's recipes off, for groups too large to try out. An empty entry
68
- * (`cabinets:` in YAML) exposes the group with its defaults.
84
+ * name of a `childEntityRecipes` or a `replaceEntityRecipes` component. It becomes a field of the
85
+ * entity type's `<Type>ChildRecipes` or `<Type>ReplaceRecipes` type, named by `as`, the instance
86
+ * name by default, which is also the id the agent passes to `addChild` or `replaceEntity`.
87
+ * `description` describes that field; `allowDryRuns: false` turns the dry-run of the group's recipes
88
+ * off, for groups too large to try out; `hints` say when the agent can reuse what it read. An empty
89
+ * entry (`cabinets:` in YAML) exposes the group with its defaults.
69
90
  */
70
91
  export interface RawAssistantRecipeGroup {
71
92
  readonly as?: string;
72
93
  readonly description?: string;
73
94
  readonly allowDryRuns?: boolean;
74
- }
75
- /**
76
- * The recipes of one entity type or alias in the assistant `childRecipes` or `replaceRecipes` map:
77
- * its recipe groups under `groups`, and the `hints` that hold for the whole edge of the type.
78
- */
79
- export interface RawAssistantRecipes {
80
95
  readonly hints?: readonly AssistantHint[];
81
- readonly groups: Readonly<Record<string, RawAssistantRecipeGroup | null>>;
82
96
  }
83
97
  /**
84
98
  * One entry of the assistant `actions` map, keyed by the name of an action declared under the
@@ -90,6 +104,16 @@ export interface RawAssistantAction {
90
104
  readonly description?: string;
91
105
  readonly as?: string;
92
106
  }
107
+ /**
108
+ * One view of the assistant `screenshots` map, keyed by the instance name of an `agentScreenshot`
109
+ * component: it lets the agent take a screenshot of the entity from that view under `meta`.
110
+ * `description` tells the agent what the view shows; `as` is the name the agent asks for the view
111
+ * by, the instance name by default.
112
+ */
113
+ export interface RawAssistantScreenshot {
114
+ readonly description: string;
115
+ readonly as?: string;
116
+ }
93
117
  /**
94
118
  * Experimental assistant manifest authored under the `assistant` root key. `entities` whitelists the
95
119
  * stored fields the generated GraphQL schema exposes, keyed by entity type or alias name and then by
@@ -100,8 +124,15 @@ export interface RawAssistantAction {
100
124
  * entity type or alias, the `childEntityRecipes` groups whose recipes the agent may list and add
101
125
  * with `addChild`. `replaceRecipes` names, per entity type or alias, the `replaceEntityRecipes`
102
126
  * groups whose recipes the agent may list and replace the entity by with `replaceEntity`. `actions`
103
- * names the declared actions the agent may run as custom mutations. Nothing is exposed without an
104
- * entry. `lenses` declares the named selections that `entities` entries are tagged with.
127
+ * names the declared actions the agent may run as custom mutations. `screenshots` names, per entity
128
+ * type or alias, the `agentScreenshot` views the agent may take a screenshot of the entity from.
129
+ * Nothing is exposed without an entry. `lenses` declares the named selections that `entities`
130
+ * entries are tagged with, and `formElements` the project's own elements of the forms the agent
131
+ * asks the user with.
132
+ *
133
+ * The manifest can be split across spec files: each section keyed by entity type, action or form
134
+ * element name merges per key, while `ai`, `instructions` and `lenses` are declared in one file
135
+ * each, and `ai` in exactly one.
105
136
  *
106
137
  * `ai` and `instructions` are for the server only: the provider, model tier and reasoning level the
107
138
  * deployment's assistant runs with, and the integrator's own guidance for it, appended to the system
@@ -111,11 +142,15 @@ export interface RawAssistant {
111
142
  readonly entities?: Readonly<Record<string, Readonly<Record<string, RawAssistantField | null>>>>;
112
143
  readonly deletable?: Readonly<Record<string, RawAssistantDeletable | null>>;
113
144
  readonly writable?: Readonly<Record<string, Readonly<Record<string, RawAssistantWritableField | null>>>>;
114
- readonly childRecipes?: Readonly<Record<string, RawAssistantRecipes>>;
115
- readonly replaceRecipes?: Readonly<Record<string, RawAssistantRecipes>>;
145
+ readonly childRecipes?: Readonly<Record<string, Readonly<Record<string, RawAssistantRecipeGroup | null>>>>;
146
+ readonly replaceRecipes?: Readonly<Record<string, Readonly<Record<string, RawAssistantRecipeGroup | null>>>>;
116
147
  readonly actions?: Readonly<Record<string, RawAssistantAction | null>>;
148
+ readonly screenshots?: Readonly<Record<string, Readonly<Record<string, RawAssistantScreenshot>>>>;
117
149
  readonly lenses?: Readonly<Record<string, RawAssistantLens>>;
150
+ readonly formElements?: Readonly<Record<string, RawAssistantFormElement>>;
118
151
  readonly instructions?: string;
119
- readonly ai: AssistantAiSettings;
152
+ readonly ai?: AssistantAiSettings;
120
153
  }
154
+ /** A GraphQL name the schema may use for a field or type: letters, digits and `_`, not starting with a digit or `__`. */
155
+ export declare const GRAPHQL_NAME_PATTERN: RegExp;
121
156
  export declare const rawAssistantSchema: z.ZodType<RawAssistant>;