@salsita-ai/sdk 0.50.0-develop.71209819cd → 0.50.0-develop.715948fb3b

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 (1407) hide show
  1. package/README.md +19 -14
  2. package/dist/admin/default-admin-elements.d.ts +9 -0
  3. package/dist/admin/default-admin-elements.js +1 -0
  4. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  5. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  6. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  7. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  8. package/dist/admin/default-elements/index.d.ts +2 -0
  9. package/dist/admin/default-elements/index.js +1 -0
  10. package/dist/admin/index.d.ts +1 -0
  11. package/dist/admin/index.js +1 -1
  12. package/dist/application/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/components/component-filter.d.ts +53 -0
  26. package/dist/application-spec/core/components/component-filter.js +1 -0
  27. package/dist/application-spec/core/components/index.d.ts +2 -0
  28. package/dist/application-spec/core/components/index.js +1 -0
  29. package/dist/application-spec/core/components/sdk-code-ref.d.ts +9 -0
  30. package/dist/application-spec/core/components/sdk-code-ref.js +1 -0
  31. package/dist/application-spec/core/enhanced-json-value.d.ts +0 -68
  32. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  33. package/dist/application-spec/core/expressions/index.d.ts +2 -0
  34. package/dist/application-spec/core/expressions/index.js +1 -0
  35. package/dist/application-spec/core/expressions/relation-expression-params.d.ts +11 -0
  36. package/dist/application-spec/core/expressions/sdk-expression-implementation.d.ts +24 -0
  37. package/dist/application-spec/core/expressions/sdk-expression-implementation.js +1 -0
  38. package/dist/application-spec/core/index.d.ts +2 -0
  39. package/dist/application-spec/core/index.js +1 -1
  40. package/dist/application-spec/core/json-value.d.ts +1 -1
  41. package/dist/application-spec/{core → enhanced-json}/eval-to-constant.d.ts +1 -1
  42. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  43. package/dist/application-spec/enhanced-json/index.js +1 -0
  44. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  45. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  46. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  47. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  48. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  49. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  50. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  51. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  52. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  53. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  54. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  55. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  56. package/dist/application-spec/errors/diagnostic-codes.d.ts +23 -0
  57. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  58. package/dist/application-spec/errors/diagnostic-messages.d.ts +27 -1
  59. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  60. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  61. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  62. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  63. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  64. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  65. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  66. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  67. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  68. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  69. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  70. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  71. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  72. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  73. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  74. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  75. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  76. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  77. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  78. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  79. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  80. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  81. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  82. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  83. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  84. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  85. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  86. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  87. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  88. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  89. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  90. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  91. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  92. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +69 -73
  93. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +8 -0
  94. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  95. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  96. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  97. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  98. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  99. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  102. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  103. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  104. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  105. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  106. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  107. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  108. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  109. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  110. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  111. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  112. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  113. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  114. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  115. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  116. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  117. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  118. package/dist/application-spec/generate-application/code/templates/index.d.ts +3 -10
  119. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  120. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  121. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  122. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  123. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  124. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  125. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  126. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  127. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +1 -1
  128. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  129. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  130. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  131. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  132. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +38 -14
  133. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -4
  134. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  135. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  136. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  137. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  138. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  139. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  140. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  141. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  142. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  143. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  144. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  145. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  146. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  147. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  148. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  149. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  150. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  151. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  152. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  153. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  154. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  155. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  156. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  157. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  158. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  159. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  160. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  161. package/dist/application-spec/generate-application/index.d.ts +4 -0
  162. package/dist/application-spec/generate-application/index.js +1 -1
  163. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -4
  164. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  165. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +12 -4
  166. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  167. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  168. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  169. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  170. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +35 -10
  171. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  172. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  173. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  174. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -5
  175. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  176. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +12 -7
  177. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  178. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  179. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  180. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  181. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  182. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  183. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +43 -0
  184. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  185. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  186. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  187. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  188. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  189. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +16 -0
  190. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  191. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  192. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  193. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  194. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  195. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  196. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  197. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  198. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  199. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  200. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +2 -1
  201. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  202. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +5 -1
  203. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  204. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  205. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +15 -6
  206. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  207. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +9 -5
  208. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  209. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +3 -1
  210. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  211. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  212. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  213. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  214. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  215. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  216. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  217. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  218. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.js +1 -0
  219. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  220. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  221. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  222. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  223. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  224. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  225. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  226. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  227. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  228. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  229. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +103 -0
  230. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  231. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  232. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  233. package/dist/application-spec/index.d.ts +1 -0
  234. package/dist/application-spec/index.js +1 -1
  235. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  236. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  237. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  238. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  239. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  240. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  241. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  242. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  243. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  244. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +47 -4
  245. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  246. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  247. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  248. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  249. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  250. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  251. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  252. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  253. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  254. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  255. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  256. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  257. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  258. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  259. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  260. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  261. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  262. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  263. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  264. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  265. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  266. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  267. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  268. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  269. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +1 -9
  270. package/dist/application-spec/parse-application-files/spec/components/component-entry.js +1 -1
  271. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +1 -54
  272. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  273. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  274. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  275. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  276. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  277. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -1
  278. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  279. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  280. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  281. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +6 -0
  282. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  283. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +7 -4
  284. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  285. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  286. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  287. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  288. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.js +1 -0
  289. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  290. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  291. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +1 -28
  292. package/dist/application-spec/parse-application-files/spec/expressions/expression.js +1 -1
  293. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -3
  294. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  295. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  296. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  297. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  298. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +3 -1
  299. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  300. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +2 -2
  301. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  302. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +7 -2
  303. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  304. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  305. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  306. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  307. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  308. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  309. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  310. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  311. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  312. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  313. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  314. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  315. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  316. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  317. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  318. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  319. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  320. package/dist/client/authorized-client.d.ts +3 -1
  321. package/dist/client/authorized-client.js +1 -1
  322. package/dist/client/contract.d.ts +17 -0
  323. package/dist/client/index.d.ts +1 -1
  324. package/dist/client/local-authorized-client.d.ts +3 -1
  325. package/dist/client/local-authorized-client.js +1 -1
  326. package/dist/client/memory-authorized-client.d.ts +4 -1
  327. package/dist/client/memory-authorized-client.js +1 -1
  328. package/dist/client/phoenix-api.d.ts +809 -118
  329. package/dist/configurator/ConfiguratorApp.js +1 -1
  330. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  331. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  332. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  333. package/dist/configurator/app-loader-content/index.js +1 -0
  334. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  335. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  336. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  337. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +54 -3
  338. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  339. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +40 -7
  340. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  341. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  342. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  343. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  344. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  345. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  346. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  347. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  348. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  349. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  350. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  351. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +14 -1
  352. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  353. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +70 -7
  354. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  355. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  356. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  357. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  358. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  359. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  360. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +2 -2
  361. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  362. package/dist/configurator/common/configurator-interface.d.ts +145 -5
  363. package/dist/configurator/common/configurator-interface.js +1 -1
  364. package/dist/configurator/common/index.d.ts +3 -1
  365. package/dist/configurator/common/index.js +1 -1
  366. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  367. package/dist/configurator/common/use-reset-camera.js +1 -0
  368. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  369. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  370. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  371. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  372. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  373. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  374. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  375. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  376. package/dist/configurator/configurator-context/PresetSelectionProvider.js +1 -1
  377. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  378. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  379. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  380. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  381. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  382. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  383. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  384. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  385. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  386. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  387. package/dist/configurator/configurator-error-page/index.js +1 -0
  388. package/dist/configurator/index.d.ts +10 -0
  389. package/dist/configurator/index.js +1 -1
  390. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  391. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  392. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  393. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  394. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  395. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  396. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  397. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  398. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  399. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  400. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  401. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  402. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  403. package/dist/configurator/pages/RootPage.js +1 -1
  404. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  405. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  406. package/dist/configurator/pages/default-configurator-elements.d.ts +13 -0
  407. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  408. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  409. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  410. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  411. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  412. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  413. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  414. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  415. package/dist/configurator/pages/default-elements/index.js +1 -0
  416. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  417. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  418. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  419. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  420. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  421. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  422. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  423. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  424. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  425. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  426. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  427. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  428. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  429. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  430. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  431. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  432. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  433. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  434. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  435. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  436. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  437. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  438. package/dist/configurator/pages/index.d.ts +1 -0
  439. package/dist/configurator/pages/index.js +1 -1
  440. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  441. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  442. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  443. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  444. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  445. package/dist/configurator/preset-screen-elements/index.js +1 -0
  446. package/dist/configurator/scene/index.d.ts +1 -0
  447. package/dist/configurator/scene/index.js +1 -1
  448. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  449. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  450. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  451. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  452. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  453. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  454. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  455. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  456. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  457. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  458. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  459. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  460. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  461. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  462. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  463. package/dist/configurator/toolbar-actions/index.js +1 -0
  464. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  465. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  466. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  467. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  468. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  469. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  470. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  471. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  472. package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -3
  473. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  474. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  475. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  476. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  477. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  478. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  479. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  480. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  481. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  482. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  483. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  484. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  485. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  486. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  487. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  488. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  489. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  490. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  491. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  492. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  493. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  494. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  495. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  496. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  497. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  498. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  499. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  500. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  501. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  502. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  503. package/dist/configurator/ui/assistant/form/index.js +1 -0
  504. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  505. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  506. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  507. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  508. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  509. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  510. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  511. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  512. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  513. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  514. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  515. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  516. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  517. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  518. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  519. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  520. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  521. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  522. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  523. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  524. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  525. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  526. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  527. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  528. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  529. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  530. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  531. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  532. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  533. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  534. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  535. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  536. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  537. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  538. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  539. package/dist/configurator/ui/assistant/form-elements/form-element-props.js +1 -0
  540. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  541. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  542. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  543. package/dist/configurator/ui/assistant/index.js +1 -1
  544. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  545. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  546. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  547. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  548. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  549. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  550. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  551. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  552. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  553. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  554. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  555. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  556. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  557. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  558. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  559. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  560. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  561. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  562. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  563. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  564. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  565. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  566. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  567. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  568. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  569. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  570. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  571. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  572. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  573. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  574. package/dist/configurator/ui/assistant/thread-items.d.ts +8 -1
  575. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  576. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  577. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  578. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  579. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  580. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  581. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  582. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  583. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  584. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  585. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  586. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  587. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  588. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  589. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  590. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  591. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  592. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  593. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  594. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  595. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  596. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  597. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  598. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  599. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  600. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  601. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  602. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  603. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  604. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  605. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  606. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  607. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  608. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  609. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  610. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  611. package/dist/configurator/ui/index.d.ts +1 -0
  612. package/dist/configurator/ui/index.js +1 -1
  613. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  614. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  615. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  616. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  617. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  618. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  619. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  620. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  621. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  622. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  623. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  624. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  625. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  626. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  627. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  628. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  629. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  630. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  631. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  632. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  633. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  634. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  635. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  636. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  637. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  638. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  639. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  640. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  641. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  642. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  643. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  644. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  645. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  646. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  647. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  648. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  649. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  650. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  651. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  652. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  653. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  654. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  655. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  656. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  657. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  658. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  659. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  660. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  661. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  662. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  663. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  664. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  665. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  666. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  667. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  668. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  669. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  670. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  671. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  672. package/dist/configurator/ui/preset-layout/index.js +1 -1
  673. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  674. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  675. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  676. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  677. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +16 -19
  678. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  679. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  680. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  681. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  682. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  683. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  684. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  685. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  686. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  687. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  688. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  689. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  690. package/dist/docs/fabs/basic.mdx +6 -2
  691. package/dist/docs/index.json +136 -1
  692. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  693. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  694. package/dist/docs/layouts/custom-layout.mdx +2597 -0
  695. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  696. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  697. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  698. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  699. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  700. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  701. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  702. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  703. package/dist/docs/layouts/header/fixed.mdx +2 -2
  704. package/dist/docs/layouts/header/floating.mdx +2 -2
  705. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  706. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  707. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  708. package/dist/docs/other-features/error-5xx.mdx +1 -1
  709. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  710. package/dist/docs/other-features/not-found-404.mdx +1 -1
  711. package/dist/docs/other-features/side-effects.mdx +8 -11
  712. package/dist/docs/other-features/transformers.mdx +4 -0
  713. package/dist/docs/other-features/violation-messages.mdx +52 -56
  714. package/dist/docs/phoenix/application-states.mdx +9 -7
  715. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  716. package/dist/docs/phoenix/components.mdx +6 -0
  717. package/dist/docs/phoenix/configurator-interface.mdx +402 -81
  718. package/dist/docs/phoenix/deployments.mdx +2 -6
  719. package/dist/docs/phoenix/domain-model.mdx +6 -0
  720. package/dist/docs/phoenix/finalization.mdx +1 -1
  721. package/dist/docs/phoenix/getting-started.mdx +7 -4
  722. package/dist/docs/phoenix/layout-slots.mdx +116 -0
  723. package/dist/docs/phoenix/localization.mdx +10 -6
  724. package/dist/docs/phoenix/migration-guide.mdx +24 -11
  725. package/dist/docs/phoenix/phoenix-cli.mdx +88 -44
  726. package/dist/docs/phoenix/project-structure.mdx +80 -36
  727. package/dist/docs/phoenix/quickstart.mdx +9 -9
  728. package/dist/docs/phoenix/sdk-builder-workflow.mdx +13 -11
  729. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  730. package/dist/docs/phoenix/testing.mdx +148 -0
  731. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  732. package/dist/docs/phoenix/webhooks.mdx +23 -6
  733. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  734. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -11
  735. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  736. package/dist/domain/admin-domain/index.js +1 -1
  737. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  738. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  739. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  740. package/dist/domain/application/application-config.d.ts +8 -5
  741. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  742. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  743. package/dist/domain/application/assistant/assistant-manifest.d.ts +25 -2
  744. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +46 -3
  745. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  746. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  747. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  748. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  749. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  750. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  751. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  752. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  753. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  754. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  755. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  756. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  757. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  758. package/dist/domain/application/assistant/form/index.js +1 -0
  759. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  760. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  761. package/dist/domain/application/assistant/index.d.ts +8 -2
  762. package/dist/domain/application/assistant/index.js +1 -1
  763. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  764. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  765. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  766. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  767. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +50 -0
  768. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  769. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  770. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  771. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  772. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  773. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -2
  774. package/dist/domain/application/configurator-builder.d.ts +11 -2
  775. package/dist/domain/application/configurator-builder.js +1 -1
  776. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  777. package/dist/domain/application/index.d.ts +1 -5
  778. package/dist/domain/application/index.js +1 -1
  779. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  780. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  781. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  782. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  783. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  784. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +1 -1
  785. package/dist/domain/application/published-data/map-published-data.d.ts +7 -3
  786. package/dist/domain/application/standard-properties.js +1 -1
  787. package/dist/domain/application/web-component-property.d.ts +3 -1
  788. package/dist/domain/application/web-component-property.js +1 -1
  789. package/dist/domain/available-system-components.d.ts +1 -1
  790. package/dist/domain/available-system-components.js +1 -1
  791. package/dist/domain/core/component/domain-component-optic.d.ts +11 -19
  792. package/dist/domain/core/component/domain-component-optic.js +2 -2
  793. package/dist/domain/core/component/legacy-filter.d.ts +2 -17
  794. package/dist/domain/core/component/system-component-filter.d.ts +36 -18
  795. package/dist/domain/core/expression/constant-expressions.d.ts +16 -8
  796. package/dist/domain/core/expression/constant-expressions.js +1 -1
  797. package/dist/domain/core/expression/custom-expression.d.ts +17 -4
  798. package/dist/domain/core/expression/custom-expression.js +1 -1
  799. package/dist/domain/core/expression/expression.d.ts +1 -2
  800. package/dist/domain/core/invariant/custom-invariants.d.ts +6 -14
  801. package/dist/domain/core/invariant/invariants.d.ts +1 -4
  802. package/dist/domain/core/invariant/violation.d.ts +50 -2
  803. package/dist/domain/core/invariant/violation.js +1 -1
  804. package/dist/domain/core/model/model.d.ts +1 -1
  805. package/dist/domain/core/recipe/recipes.d.ts +18 -50
  806. package/dist/domain/core/recipe/recipes.js +1 -1
  807. package/dist/domain/core/relation/all-of-type-relation.d.ts +8 -21
  808. package/dist/domain/core/relation/all-of-type-relation.js +1 -1
  809. package/dist/domain/core/relation/direct-relation.d.ts +13 -24
  810. package/dist/domain/core/relation/index.d.ts +0 -1
  811. package/dist/domain/core/relation/indirect-relation.d.ts +12 -67
  812. package/dist/domain/core/relation/indirect-relation.js +1 -1
  813. package/dist/domain/core/relation/relation-factory.d.ts +19 -15
  814. package/dist/domain/core/relation/relation-factory.js +1 -1
  815. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  816. package/dist/domain/core/state/migrations.d.ts +14 -45
  817. package/dist/domain/core/state/migrations.js +1 -1
  818. package/dist/domain/core/state/state.d.ts +1 -1
  819. package/dist/domain/domain-builder.d.ts +10 -4
  820. package/dist/domain/domain-builder.js +1 -1
  821. package/dist/domain/domain-context/action-system/action-system.d.ts +1 -1
  822. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  823. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  824. package/dist/domain/domain-context/action-system/index.js +1 -0
  825. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  826. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  827. package/dist/domain/domain-context/create-transformer.d.ts +1 -1
  828. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +2 -2
  829. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  830. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  831. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  832. package/dist/domain/domain-context/domain-context-systems.d.ts +7 -7
  833. package/dist/domain/domain-context/index.d.ts +8 -17
  834. package/dist/domain/domain-context/index.js +1 -1
  835. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  836. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  837. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -3
  838. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  839. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +1 -1
  840. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  841. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  842. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +1 -1
  843. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  844. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +2 -2
  845. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +2 -2
  846. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +2 -2
  847. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  848. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  849. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +2 -2
  850. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  851. package/dist/domain/domain-context/store-system/index.js +1 -0
  852. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  853. package/dist/domain/domain-context/store-system/store-system.d.ts +6 -3
  854. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  855. package/dist/domain/domain-context/store-system/system-state.d.ts +1 -1
  856. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  857. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +5 -7
  858. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  859. package/dist/domain/domain-context/transformers/chain-builder.d.ts +1 -1
  860. package/dist/domain/domain-context/transformers/context.d.ts +1 -1
  861. package/dist/domain/domain-context/transformers/context.js +1 -1
  862. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  863. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  864. package/dist/domain/domain-context/transformers/index.js +1 -1
  865. package/dist/domain/domain-context/transformers/when-builder.d.ts +2 -3
  866. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  867. package/dist/domain/domain-context/undo-system.d.ts +29 -2
  868. package/dist/domain/domain-context/undo-system.js +1 -1
  869. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  870. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  871. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  872. package/dist/domain/domain-runtime/access/types.js +1 -1
  873. package/dist/domain/domain-runtime/application.d.ts +39 -0
  874. package/dist/domain/domain-runtime/application.js +1 -0
  875. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  876. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +18 -22
  877. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  878. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  879. package/dist/domain/domain-runtime/domain-runtime.d.ts +120 -64
  880. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  881. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  882. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  883. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +21 -0
  884. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  885. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  886. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  887. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  888. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  889. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  890. package/dist/domain/domain-runtime/errors/index.js +1 -0
  891. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  892. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  893. package/dist/domain/domain-runtime/index.d.ts +2 -0
  894. package/dist/domain/domain-runtime/index.js +1 -1
  895. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  896. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  897. package/dist/domain/domain-runtime/spec/index.d.ts +2 -5
  898. package/dist/domain/domain-runtime/spec/index.js +1 -1
  899. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  900. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  901. package/dist/domain/{application → domain-runtime/spec/module-checks}/element-registration.d.ts +29 -14
  902. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  903. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  904. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  905. package/dist/domain/{application → domain-runtime/spec/module-checks}/handler-registration.d.ts +1 -1
  906. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  907. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +10 -0
  908. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  909. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  910. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  911. package/dist/domain/{project-modules → domain-runtime/spec/module-checks}/project-modules.d.ts +8 -1
  912. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  913. package/dist/domain/domain-runtime/spec/{resolve-action-modules.d.ts → module-checks/resolve-action-modules.d.ts} +2 -2
  914. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  915. package/dist/domain/domain-runtime/spec/{resolve-component-optic-modules.d.ts → module-checks/resolve-component-optic-modules.d.ts} +2 -2
  916. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  917. package/dist/domain/domain-runtime/spec/{resolve-expression-modules.d.ts → module-checks/resolve-expression-modules.d.ts} +4 -5
  918. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  919. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  920. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  921. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  922. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  923. package/dist/domain/domain-runtime/spec/selectors.d.ts +8 -7
  924. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  925. package/dist/domain/domain-runtime/spec/types.d.ts +5 -2
  926. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  927. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  928. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  929. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  930. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  931. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  932. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  933. package/dist/domain/extensions/attribute-switch.d.ts +1 -1
  934. package/dist/domain/extensions/attribute-switch.js +1 -1
  935. package/dist/domain/extensions/canvas-config.d.ts +1 -1
  936. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +2 -2
  937. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +2 -2
  938. package/dist/domain/extensions/editable-angle-indicator.d.ts +1 -1
  939. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +1 -1
  940. package/dist/domain/extensions/editable-offset-indicator.d.ts +1 -1
  941. package/dist/domain/extensions/editable-offset-indicator.js +1 -1
  942. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  943. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  944. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  945. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  946. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  947. package/dist/domain/extensions/export-images/index.js +1 -0
  948. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +4 -4
  949. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  950. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -1
  951. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -1
  952. package/dist/domain/extensions/horizontal-tabs.d.ts +2 -2
  953. package/dist/domain/extensions/index.d.ts +1 -2
  954. package/dist/domain/extensions/index.js +1 -1
  955. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +1 -1
  956. package/dist/domain/extensions/navigation-steps.d.ts +2 -2
  957. package/dist/domain/extensions/offset-indicator.js +1 -1
  958. package/dist/domain/extensions/rotation-handle.d.ts +2 -2
  959. package/dist/domain/extensions/scene-entity-animation.js +1 -1
  960. package/dist/domain/index.d.ts +0 -1
  961. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  962. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  963. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +37 -19
  964. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  965. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  966. package/dist/domain/mocks/create-mock-domain.js +1 -1
  967. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  968. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  969. package/dist/domain/mocks/create-test-application-config.js +1 -0
  970. package/dist/domain/mocks/index.d.ts +1 -0
  971. package/dist/domain/mocks/index.js +1 -1
  972. package/dist/domain/projections/blender-projections/blender-projections.d.ts +1 -2
  973. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  974. package/dist/domain/projections/collision-projections.d.ts +1 -1
  975. package/dist/domain/projections/composition-projections.d.ts +1 -1
  976. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  977. package/dist/domain/projections/position-projections.d.ts +1 -1
  978. package/dist/domain/projections/projected-entities-projections.d.ts +1 -1
  979. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  980. package/dist/domain/projections/validation-projections.d.ts +2 -2
  981. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  982. package/dist/domain/system-components/application-config.d.ts +2 -2
  983. package/dist/domain/system-components/child-entity-selection.js +1 -1
  984. package/dist/domain/system-components/collision-box-geometry.d.ts +4 -2
  985. package/dist/domain/system-components/collision-geometry.d.ts +4 -2
  986. package/dist/domain/system-components/collision-point-geometry.d.ts +4 -2
  987. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  988. package/dist/domain/system-components/common/recipes.d.ts +21 -3
  989. package/dist/domain/system-components/common/recipes.js +1 -1
  990. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  991. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  992. package/dist/domain/system-components/constraint.d.ts +10 -23
  993. package/dist/domain/system-components/drag-handle.d.ts +1 -1
  994. package/dist/domain/system-components/drag-handle.js +1 -1
  995. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  996. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  997. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  998. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  999. package/dist/domain/system-components/hotspot-drag-handle.d.ts +1 -1
  1000. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  1001. package/dist/domain/system-components/material-swatch.js +1 -1
  1002. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  1003. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  1004. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  1005. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  1006. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  1007. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  1008. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  1009. package/dist/domain/utils/eval-cache.d.ts +1 -1
  1010. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  1011. package/dist/editor/Editor.d.ts +7 -0
  1012. package/dist/editor/Editor.js +1 -1
  1013. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  1014. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  1015. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  1016. package/dist/editor/domain-editors/use-implementation-files.d.ts +7 -16
  1017. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  1018. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  1019. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  1020. package/dist/editor/mocks/EditorMockContext.js +1 -1
  1021. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  1022. package/dist/globals/index.d.ts +2 -0
  1023. package/dist/i18n/locales/cs/messages.js +1 -1
  1024. package/dist/i18n/locales/da/messages.js +1 -1
  1025. package/dist/i18n/locales/de/messages.js +1 -1
  1026. package/dist/i18n/locales/de-AT/messages.js +1 -1
  1027. package/dist/i18n/locales/en/messages.js +1 -1
  1028. package/dist/i18n/locales/en-AU/messages.js +1 -1
  1029. package/dist/i18n/locales/en-GB/messages.js +1 -1
  1030. package/dist/i18n/locales/es/messages.js +1 -1
  1031. package/dist/i18n/locales/fr/messages.js +1 -1
  1032. package/dist/i18n/locales/hu/messages.js +1 -1
  1033. package/dist/i18n/locales/it/messages.js +1 -1
  1034. package/dist/i18n/locales/nl/messages.js +1 -1
  1035. package/dist/i18n/locales/pl/messages.js +1 -1
  1036. package/dist/i18n/locales/pt/messages.js +1 -1
  1037. package/dist/i18n/locales/ro/messages.js +1 -1
  1038. package/dist/i18n/locales/sk/messages.js +1 -1
  1039. package/dist/i18n/locales/tr/messages.js +1 -1
  1040. package/dist/legacy/domain-cli/gen/configurator-builder.js +13 -12
  1041. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  1042. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  1043. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  1044. package/dist/legacy/domain-cli/gen/invariants.js +3 -4
  1045. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  1046. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  1047. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  1048. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +176 -148
  1049. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  1050. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  1051. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  1052. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  1053. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -0
  1054. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  1055. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +15 -14
  1056. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +14 -12
  1057. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +14 -13
  1058. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +13 -11
  1059. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  1060. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  1061. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +0 -2
  1062. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  1063. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  1064. package/dist/phoenix/application-spec/generate-project-files.d.ts +0 -2
  1065. package/dist/phoenix/application-spec/project-files.js +1 -1
  1066. package/dist/phoenix/bin.d.ts +2 -0
  1067. package/dist/phoenix/bin.js +2 -0
  1068. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  1069. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  1070. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  1071. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  1072. package/dist/phoenix/check-configs/index.d.ts +8 -0
  1073. package/dist/phoenix/check-configs/index.js +1 -0
  1074. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  1075. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  1076. package/dist/phoenix/cli.d.ts +0 -1
  1077. package/dist/phoenix/cli.js +1 -2
  1078. package/dist/phoenix/commands/build.js +1 -1
  1079. package/dist/phoenix/commands/check.js +1 -1
  1080. package/dist/phoenix/commands/clean.js +1 -1
  1081. package/dist/phoenix/commands/deploy.js +2 -2
  1082. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  1083. package/dist/phoenix/commands/deps/deps.js +3 -0
  1084. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  1085. package/dist/phoenix/commands/deps/index.js +1 -0
  1086. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  1087. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  1088. package/dist/phoenix/commands/dev.js +5 -5
  1089. package/dist/phoenix/commands/fix.js +1 -1
  1090. package/dist/phoenix/commands/index.d.ts +1 -0
  1091. package/dist/phoenix/commands/index.js +1 -1
  1092. package/dist/phoenix/commands/init.d.ts +17 -5
  1093. package/dist/phoenix/commands/init.js +1 -1
  1094. package/dist/phoenix/commands/link.js +1 -1
  1095. package/dist/phoenix/commands/prettier.js +1 -1
  1096. package/dist/phoenix/commands/sync.js +1 -1
  1097. package/dist/phoenix/commands/unlink.js +1 -1
  1098. package/dist/phoenix/services/application-spec-project-watcher.d.ts +2 -2
  1099. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  1100. package/dist/phoenix/services/lingui.d.ts +8 -0
  1101. package/dist/phoenix/services/lingui.js +1 -1
  1102. package/dist/phoenix/services/source-archive.d.ts +1 -0
  1103. package/dist/phoenix/services/source-archive.js +1 -1
  1104. package/dist/phoenix/services/swc.js +1 -1
  1105. package/dist/phoenix/services/vite-config.js +1 -1
  1106. package/dist/phoenix/utils/git/index.d.ts +1 -0
  1107. package/dist/phoenix/utils/git/index.js +1 -0
  1108. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  1109. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  1110. package/dist/phoenix/utils/index.d.ts +5 -2
  1111. package/dist/phoenix/utils/index.js +1 -1
  1112. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1113. package/dist/phoenix/utils/node-version/index.js +1 -0
  1114. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1115. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1116. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1117. package/dist/phoenix/utils/package-info.js +1 -1
  1118. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1119. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1120. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1121. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1122. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1123. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1124. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1125. package/dist/phoenix/utils/run-command.js +1 -1
  1126. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1127. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1128. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1129. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1130. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  1131. package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.d.ts +6 -0
  1132. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  1133. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1134. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1135. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1136. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1137. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1138. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1139. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1140. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1141. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1142. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1143. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1144. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1145. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1146. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1147. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1148. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1149. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1150. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1151. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1152. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1153. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1154. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1155. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1156. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1157. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1158. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1159. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1160. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  1161. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1162. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1163. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1164. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1165. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1166. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1167. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1168. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1169. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1170. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1171. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1172. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1173. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1174. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1175. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1176. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1177. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1178. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1179. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1180. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1181. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1182. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1183. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1184. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1185. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1186. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1187. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1188. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1189. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1190. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1191. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1192. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1193. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1194. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1195. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1196. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1197. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1198. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1199. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1200. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1201. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1202. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1203. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1204. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1205. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1206. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1207. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1208. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1209. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1210. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1211. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1212. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1213. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1214. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1215. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1216. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1217. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1218. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1219. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +366 -46
  1220. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1221. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1222. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1223. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1224. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1225. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1226. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1227. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1228. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1229. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  1230. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  1231. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +10 -9
  1232. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1233. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1234. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1235. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1236. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1237. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1238. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1239. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  1240. package/dist/react-sdk/domain-context/index.js +1 -1
  1241. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1242. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1243. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1244. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1245. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1246. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1247. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1248. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  1249. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1250. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1251. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1252. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1253. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1254. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1255. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1256. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1257. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1258. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1259. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  1260. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1261. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1262. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1263. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1264. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1265. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1266. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1267. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1268. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1269. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1270. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1271. package/dist/react-sdk/handlers/index.js +1 -1
  1272. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  1273. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1274. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1275. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1276. package/dist/react-sdk/index.d.ts +2 -0
  1277. package/dist/react-sdk/index.js +1 -1
  1278. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1279. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1280. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1281. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1282. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1283. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1284. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1285. package/dist/react-sdk/loading-state/index.js +1 -1
  1286. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  1287. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1288. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1289. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1290. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1291. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1292. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1293. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1294. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1295. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1296. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  1297. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  1298. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  1299. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  1300. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  1301. package/dist/react-sdk/page-elements/index.js +1 -0
  1302. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1303. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1304. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1305. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1306. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1307. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1308. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1309. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1310. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1311. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1312. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1313. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1314. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1315. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1316. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1317. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1318. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1319. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1320. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1321. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1322. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1323. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1324. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1325. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1326. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1327. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1328. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  1329. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1330. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1331. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1332. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1333. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1334. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1335. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1336. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1337. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1338. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  1339. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1340. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1341. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1342. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1343. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1344. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1345. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1346. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1347. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1348. package/dist/ui-sdk/theme/types.d.ts +5 -1
  1349. package/dist/webhook/builders/webhook-builder.js +1 -1
  1350. package/package.json +58 -36
  1351. package/schema/domain-spec.json +1341 -217
  1352. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  1353. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  1354. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  1355. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -94
  1356. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1357. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1358. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1359. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1360. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  1361. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  1362. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  1363. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  1364. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  1365. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  1366. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  1367. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  1368. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  1369. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  1370. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  1371. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  1372. package/dist/configurator/common/frontend-analytics.js +0 -1
  1373. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1374. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1375. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1376. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1377. package/dist/domain/application/element-registration.js +0 -1
  1378. package/dist/domain/application/handler-registration.js +0 -1
  1379. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -23
  1380. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  1381. package/dist/domain/application/resource-builder.d.ts +0 -13
  1382. package/dist/domain/application/resource-builder.js +0 -1
  1383. package/dist/domain/core/relation/relation-implementation.d.ts +0 -7
  1384. package/dist/domain/domain-runtime/spec/invariant-builder.d.ts +0 -61
  1385. package/dist/domain/domain-runtime/spec/invariant-builder.js +0 -1
  1386. package/dist/domain/domain-runtime/spec/resolve-action-modules.js +0 -1
  1387. package/dist/domain/domain-runtime/spec/resolve-component-optic-modules.js +0 -1
  1388. package/dist/domain/domain-runtime/spec/resolve-expression-modules.js +0 -1
  1389. package/dist/domain/domain-runtime/spec/resolve-invariant-modules.d.ts +0 -6
  1390. package/dist/domain/domain-runtime/spec/resolve-invariant-modules.js +0 -1
  1391. package/dist/domain/extensions/client-side-image.d.ts +0 -14
  1392. package/dist/domain/extensions/client-side-image.js +0 -1
  1393. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  1394. package/dist/domain/project-modules/index.d.ts +0 -1
  1395. package/dist/domain/project-modules/index.js +0 -1
  1396. package/dist/domain/project-modules/project-modules.js +0 -1
  1397. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  1398. package/dist/phoenix/commands/generate-project-files.js +0 -1
  1399. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  1400. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  1401. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  1402. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  1403. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  1404. /package/dist/{domain/core/relation/relation-implementation.js → application-spec/core/expressions/relation-expression-params.js} +0 -0
  1405. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  1406. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  1407. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
@@ -1,4 +1,5 @@
1
- import type { AssistantFieldOptions, AssistantRecipeGroup } from './assistant-manifest.js';
1
+ import type { AssistantFieldOptions, AssistantRecipeGroup, AssistantScreenshotView } from './assistant-manifest.js';
2
+ import type { AssistantFormElementDescriptor } from './form/index.js';
2
3
  /** JSON description of a scalar or recursively nested list, including nullability at each level. */
3
4
  export type AssistantValueType = {
4
5
  readonly kind: 'scalar';
@@ -15,7 +16,11 @@ export interface AssistantRelationType {
15
16
  readonly target: string;
16
17
  readonly cardinality: '1-1' | '0-1' | '0-N' | '1-N';
17
18
  }
18
- /** A field's source and resolved type, carried in the application bundle without GraphQL instances. */
19
+ /**
20
+ * A field's source and resolved type, carried in the application bundle without GraphQL instances.
21
+ * `lenses` names the lenses the field's own declaration on this alias or type tags it with; a field
22
+ * only inherited from an alias carries none here, since the alias already selects it.
23
+ */
19
24
  export interface AssistantResolvedField {
20
25
  readonly name: string;
21
26
  readonly source: string;
@@ -25,6 +30,7 @@ export interface AssistantResolvedField {
25
30
  } | AssistantRelationType;
26
31
  readonly localized: boolean;
27
32
  readonly description?: string;
33
+ readonly lenses?: readonly string[];
28
34
  }
29
35
  /** Declared UI state values used to describe the navigation query. */
30
36
  export interface AssistantStates {
@@ -34,6 +40,7 @@ export interface AssistantStates {
34
40
  }
35
41
  /** Serializable resolved whitelist from which the browser or backend constructs the assistant schema. */
36
42
  export interface AssistantResolvedManifest {
43
+ readonly declarations: AssistantDeclarations;
37
44
  readonly entityTypes: readonly string[];
38
45
  readonly aliases: Readonly<Record<string, readonly string[]>>;
39
46
  readonly exampleType?: string;
@@ -44,7 +51,16 @@ export interface AssistantResolvedManifest {
44
51
  readonly childRecipes: Readonly<Record<string, AssistantResolvedRecipes>>;
45
52
  readonly replaceRecipes: Readonly<Record<string, AssistantResolvedRecipes>>;
46
53
  readonly optionsEdges: Readonly<Record<string, readonly AssistantResolvedOptionsEdge[]>>;
54
+ /** The screenshot views of each entity type with at least one, aliases expanded, in manifest order. */
55
+ readonly screenshots: Readonly<Record<string, readonly AssistantScreenshotView[]>>;
47
56
  readonly actionFields: readonly AssistantResolvedAction[];
57
+ /** The declared lenses by name: when to use each, and how many levels its tagged relations nest. */
58
+ readonly lenses: Readonly<Record<string, {
59
+ readonly description: string;
60
+ readonly maxDepth: number;
61
+ }>>;
62
+ /** The project's own form elements, in YAML order, which the prompt lists after the built-ins and the panel renders with their registered components. */
63
+ readonly formElements: readonly AssistantFormElementDescriptor[];
48
64
  }
49
65
  /** Optional mutation input for one stored field, using its exposed name. */
50
66
  export interface AssistantWritableField {
@@ -59,7 +75,8 @@ export interface AssistantWritableType {
59
75
  readonly fields: readonly AssistantWritableField[];
60
76
  }
61
77
  /** Description hints resolved from recipe/option entries; no parse context is retained. */
62
- export type AssistantResolvedHint = 'sameForAllInstances' | 'constantDuringSession';
78
+ export declare const ASSISTANT_HINTS: readonly ['sameForAllInstances', 'constantDuringSession'];
79
+ export type AssistantResolvedHint = (typeof ASSISTANT_HINTS)[number];
63
80
  /** Recipe groups and their description hints for one entity type. */
64
81
  export interface AssistantResolvedRecipes {
65
82
  readonly groups: readonly AssistantRecipeGroup[];
@@ -93,3 +110,29 @@ export interface AssistantResolvedAction {
93
110
  }>>;
94
111
  readonly result: Readonly<Record<string, AssistantResolvedActionResult>>;
95
112
  }
113
+ /** Immutable, validated declaration bindings retained before alias expansion for session narrowing. */
114
+ export interface AssistantDeclarations {
115
+ readonly entities: Readonly<Record<string, readonly AssistantDeclaredField[]>>;
116
+ readonly enumValues: Readonly<Record<string, Readonly<Record<string, readonly string[]>>>>;
117
+ readonly deletable: readonly string[];
118
+ readonly writable: Readonly<Record<string, Readonly<Record<string, AssistantDeclaredWrite>>>>;
119
+ readonly childRecipes: Readonly<Record<string, AssistantResolvedRecipes>>;
120
+ readonly replaceRecipes: Readonly<Record<string, AssistantResolvedRecipes>>;
121
+ /** The screenshot views under the entity type or alias key that declares them. */
122
+ readonly screenshots: Readonly<Record<string, readonly AssistantScreenshotView[]>>;
123
+ }
124
+ /** An original field declaration, including metadata needed to reapply inheritance and enum descriptions. */
125
+ export interface AssistantDeclaredField extends AssistantResolvedField {
126
+ readonly describedByManifest: boolean;
127
+ readonly enumValues?: readonly string[];
128
+ readonly valueDescription?: string;
129
+ }
130
+ /** Stored-property types and component bindings, resolved separately for each concrete member. */
131
+ export interface AssistantDeclaredWrite {
132
+ readonly members: Readonly<Record<string, {
133
+ readonly exposedDescription?: string;
134
+ readonly field: AssistantWritableField;
135
+ readonly options?: AssistantResolvedOptionsEdge;
136
+ }>>;
137
+ readonly defaultOptionsName: boolean;
138
+ }
@@ -1 +1 @@
1
- export{};
1
+ export const ASSISTANT_HINTS=["sameForAllInstances","constantDuringSession"];
@@ -0,0 +1,14 @@
1
+ import { type GraphQLSchema } from 'graphql';
2
+ import type { AssistantManifest } from './assistant-manifest.js';
3
+ import type { AssistantResolvedManifest } from './assistant-resolved-manifest.js';
4
+ /**
5
+ * Generates the lens fragments of a resolved manifest for the execution schema compiled from it. A
6
+ * declared lens becomes one fragment on `AnyDomainEntity`; one that session narrowing left without a
7
+ * tagged field is dropped, so the agent is never offered a lens that selects nothing. A built-in lens
8
+ * is present only when the schema has its type. A tagged relation spreads the lens itself in the
9
+ * declarations, which GraphQL forbids, so the definitions unroll it into copies down to `maxDepth`,
10
+ * where relations select only `id`. The definitions are checked here against the execution schema,
11
+ * with every declared lens spread on one entity, so a fault in them fails the build and not the
12
+ * operations that spread them.
13
+ */
14
+ export declare const buildAssistantLenses: (resolved: AssistantResolvedManifest, schema: GraphQLSchema) => NonNullable<AssistantManifest['lenses']>;
@@ -0,0 +1,5 @@
1
+ import{NoUnusedFragmentsRule as e,parse as t,specifiedRules as i,validate as n}from"graphql";let s="AnyDomainEntity",r=[{name:"RecipeGroup",description:"A recipe group with its recipes, without their dry-runs.",selections:["groupId","name","description","recipes { ...Recipe }"]},{name:"Recipe",description:"A recipe without its dry-run.",selections:["key","name","description","imageUrl"]},{name:"FieldOption",description:"A value a field accepts, without its dry-run.",selections:["value","name","description","imageUrl","color"]},{name:"DryRun",description:"What a dry-run would do, with the ids of the entities it would change instead of the entities.",selections:["ok","deletedEntityIds","sideEffects","errors { type entityId message }","changedEntities { id }"]}],a=(e,t)=>0===t?e:`${e}__${t}`,l=e=>e.split("\n").map(e=>`# ${e}`.trimEnd()).join("\n"),o=(e,t,i)=>[`fragment ${e} on ${t} {`,...i.map(e=>` ${e}`),"}"].join("\n"),p=(e,t,i)=>{let n=e=>"edge"===e.type.kind?`${e.name} { ${i} }`:e.name;return o(e,s,["id",...t.flatMap(({typeName:e,fields:t})=>e===s?t.map(n):[`... on ${e} {`,...t.map(e=>` ${n(e)}`),"}"])])};export const buildAssistantLenses=(d,m)=>{let c=Object.entries(d.lenses).flatMap(([e,t])=>{let i=[s,...Object.keys(d.aliases).filter(e=>e!==s),...d.entityTypes].flatMap(t=>{let i=(d.fields[t]??[]).filter(t=>t.lenses?.includes(e));return i.length>0?[{typeName:t,fields:i}]:[]});return i.length>0?[{name:e,...t,conditions:i}]:[]}),$=r.filter(({name:e})=>void 0!==m.getType(e)),h=[...c.map(({name:e,description:t,maxDepth:i,conditions:n})=>{let s=n.some(({fields:e})=>e.some(e=>"edge"===e.type.kind));return`${l(s?`${t} ${`Nested relations carry the same selection up to ${i} ${1===i?"level":"levels"}, below that only \`id\`.`}`:t)}
2
+ ${p(e,n,`...${e}`)}`}),...$.map(({name:e,description:t,selections:i})=>`${l(t)}
3
+ ${o(e,e,i)}`)].join("\n\n"),u=[...c.flatMap(({name:e,maxDepth:t,conditions:i})=>Array.from({length:t+1},(n,s)=>p(a(e,s),i,s<t?`...${a(e,s+1)}`:"id"))),...$.map(({name:e,selections:t})=>o(e,e,t))].join("\n\n");if(""!==u){let s=c.length>0?`entities { ${c.map(({name:e})=>`...${e}`).join(" ")} }`:"__typename",r=n(m,t(`${u}
4
+
5
+ { ${s} }`),i.filter(t=>t!==e));if(r.length>0)throw Error(`The lens fragments generated from "assistant.lenses" are not valid GraphQL: ${[...new Set(r.map(e=>e.message))].join(" ")}`)}return{declarations:h,definitions:u}};
@@ -1 +1 @@
1
- import{GraphQLBoolean as e,GraphQLID as t,GraphQLInputObjectType as n,GraphQLInterfaceType as i,GraphQLList as r,GraphQLNonNull as s,GraphQLObjectType as o,GraphQLSchema as a,GraphQLString as p,printSchema as d,validateSchema as c}from"graphql";import{GraphQLJSON as l,createAssistantValueType as h}from"./assistant-value-type.js";let y="AnyDomainEntity",w="RootEntity",u=[["navigationState","Active navigation state.","navigationStates"],["viewState","Active view state.","viewStates"],["toolState","Active tool state.","toolStates"]],g={section:"childRecipes",mutation:"addChild"},f={section:"replaceRecipes",mutation:"replaceEntity"},m=(e,t)=>Object.entries(e).find(([e])=>e===t)?.[1],b=(e,t)=>{if(!t||0===t.length)return e;let n=`One of: ${t.map(e=>`"${e}"`).join(", ")}.`;return e?/[.!?]$/.test(e)?`${e} ${n}`:`${e}. ${n}`:n},v=({target:e,cardinality:t},n)=>{let i=n(e);switch(t){case"1-1":return new s(i);case"0-1":return i;case"0-N":case"1-N":return new s(new r(new s(i)))}},j=(e,n,i)=>{let r={id:{type:new s(t),description:i?`Unique id of the entity, assigned by the configurator, e.g. "${i}-1".`:void 0},type:{type:new s(p),description:i?`Entity type name, e.g. "${i}".`:void 0}};for(let t of e)r[t.name]={type:"edge"===t.type.kind?v(t.type,n):h(t.type.type),description:t.description};return r},$=e=>Object.fromEntries(e.map(({name:e,source:t,localized:n})=>[e,n?{source:t,localized:!0}:{source:t}])),O={sameForAllInstances:e=>`Same recipe groups and recipes for every ${e}.`,constantDuringSession:()=>"Fixed for the session."},E={sameForAllInstances:e=>`Same for every ${e}.`,constantDuringSession:()=>"Fixed for the session."},R=(e,t,n)=>e.map(e=>` ${t[e](n)}`).join(""),k=({section:e},{groups:t,hints:n},{entityType:i,purpose:o,recipeGroup:a})=>{let p=t.filter(({dryRuns:e})=>!e).map(({groupId:e})=>e);return 0===t.length?{}:{[e]:{type:new s(new r(new s(a))),description:`The recipe groups for ${o} this ${i}: ${t.map(({groupId:e})=>e).join(", ")}. A group is listed only while the configurator offers it on the entity.${p.length>0?` Recipes of these groups cannot be dry-run: ${p.join(", ")}.`:""}${R(n,O,i)}`}}},I=({entityType:e,childRecipes:t,replaceRecipes:n,optionsEdges:i},{recipeGroup:a,fieldOption:p})=>new o({name:`${e}Meta`,fields:Object.assign(k(g,t,{entityType:e,purpose:"adding children to",recipeGroup:a}),k(f,n,{entityType:e,purpose:"replacing",recipeGroup:a}),...i.map(({options:{edgeName:t,field:n,validate:i,dryRuns:o},hints:a})=>({[t]:{type:new r(new s(p)),description:`Values "${n}" accepts on this ${e}. Null when there is no choice to make.${i?"":" Not checked on write."}${o?"":" Cannot be dry-run."}${R(a,E,e)}`}})))}),T=e=>Object.entries(e).map(([e,t])=>`${e} (${t.map(({groupId:e})=>e).join(", ")})`);export const buildAssistantManifest=v=>{var O,E,R,k,N;let A,S,D,M,{entityTypes:F,aliases:W,exampleType:C,fields:q,states:x,deletableTypes:G,writableTypes:U,actionFields:K,optionsEdges:P}=v,V=Object.fromEntries(Object.entries(v.childRecipes).map(([e,t])=>[e,t.groups])),z=Object.fromEntries(Object.entries(v.replaceRecipes).map(([e,t])=>[e,t.groups])),Q=new Map,B=new Map,H=new Map,J=e=>{let[t,...n]=Object.entries(W).find(([t])=>t===e)?.[1]??[];return(t&&0===n.length?B.get(t):void 0)??H.get(e)??X},L=e=>B.get(e)??J(e),X=new i({name:y,description:"Every entity of the configuration.",fields:()=>j(q[y]??[],L,C)});for(let e of(H.set(y,X),Object.keys(W)))e!==y&&H.set(e,new i({name:e,interfaces:[X],fields:()=>j(q[e]??[],L)}));let Y={};for(let e of F){let t=[y,...Object.entries(W).filter(([t,n])=>t!==y&&n.includes(e)).map(([e])=>e)],n=q[e]??[];Y[e]=$(n),B.set(e,new o({name:e,interfaces:t.flatMap(e=>H.get(e)??[]),fields:()=>{let t=Q.get(e);return{...j(n,L),...t?{meta:{type:new s(t),description:"What can be done to this entity right now."}}:{}}}}))}let Z=(O=()=>J(H.has(w)?w:y),E=()=>J(y),A=new o({name:"DryRunError",description:"One reason a change cannot be made right now.",fields:{type:{type:new s(p),description:"Kind of the problem."},entityId:{type:t,description:"The entity the problem is on, when it is on one."},message:{type:p,description:"The problem as the user would be told it."}}}),new o({name:"DryRun",description:"What using a recipe or writing an option would do, tried out on the configuration the query reads. Nothing is changed.",fields:()=>({ok:{type:new s(e),description:"Whether the change would succeed on the configuration the query reads."},root:{type:O(),description:"The root entity of the configuration as it would be after the change; null when ok is false. Everything selected under it reads that configuration."},changedEntities:{type:new s(new r(new s(E()))),description:"Entities the change would add or modify; empty when ok is false. One whose id is not in the configuration would be added, and its real id may differ. An entity written to is listed even when its values stay the same."},deletedEntityIds:{type:new s(new r(new s(t))),description:"The ids of the entities the change would remove; empty when ok is false."},sideEffects:{type:new s(new r(new s(p))),description:"The major or unexpected things the configurator would change along with it; empty when ok is false."},errors:{type:new s(new r(new s(A))),description:"Why the change cannot be made; empty when ok is true."}})})),_={recipeGroup:(R=[...Object.keys(V).length>0?[g.mutation]:[],...Object.keys(z).length>0?[f.mutation]:[]],S=R.join(" or "),D=new o({name:"Recipe",description:`${R.includes("addChild")?"One thing that can be added to the entity (under childRecipes)":"One thing the entity can be replaced with (under replaceRecipes)"}${R.length>1?" or that it can be replaced with (under replaceRecipes)":""}.`,fields:{key:{type:new s(p),description:`Pass to ${S} as recipeKey. Valid only for the listing it came from.`},name:{type:new s(p),description:"Name shown to the user."},description:{type:p},imageUrl:{type:p,description:"Thumbnail shown to the user."},dryRun:{type:Z,description:"What using this recipe would do. Null when it cannot be tried."}}}),new o({name:"RecipeGroup",description:"A group of recipes for this entity.",fields:{groupId:{type:new s(p),description:`Pass to ${S} as recipeGroupId.`},name:{type:new s(p),description:"Name shown to the user."},description:{type:p},recipes:{type:new s(new r(new s(D)))}}})),fieldOption:new o({name:"FieldOption",description:"One value a field accepts. Writing a value outside the list is rejected unless the field description says it is not checked.",fields:{value:{type:new s(l),description:"The value to write to the field."},name:{type:p,description:"Name shown to the user."},description:{type:p},imageUrl:{type:p,description:"Image shown to the user."},color:{type:p,description:'Color shown to the user, as "#rrggbb".'},dryRun:{type:Z,description:"What writing this value would do. Null when it cannot be tried."}}})};for(let e of F){let t=m(v.childRecipes,e)??{groups:[],hints:[]},n=m(v.replaceRecipes,e)??{groups:[],hints:[]},i=m(P,e)??[];(t.groups.length>0||n.groups.length>0||i.length>0)&&Q.set(e,I({entityType:e,childRecipes:t,replaceRecipes:n,optionsEdges:i.map(t=>({...t,hints:(W[w]??[]).includes(e)?t.hints.filter(e=>"sameForAllInstances"!==e):t.hints}))},_))}let ee=new a({query:(k=J(H.has(w)?w:y),N=J(y),M=(e=>{let t={};for(let[n,i,r]of u){let o=e[r];o.length>1&&(t[n]={type:new s(p),description:b(i,o)})}if(0!==Object.keys(t).length)return new o({name:"Navigation",description:"The active UI states of the configurator.",fields:t})})(x),new o({name:"Query",fields:{root:{type:new s(k),description:"The root entity of the configuration."},entities:{type:new s(new r(N)),args:{ids:{type:new r(new s(t))}},description:"Every entity, or the given ids in order with null for an unknown id."},selectedEntity:{type:new s(N),description:"The selected entity, or the root entity when nothing is selected."},...M?{navigation:{type:new s(M)}}:{}}})),mutation:(({deletableTypes:e,writableTypes:i,childRecipes:a,replaceRecipes:d,actionFields:c,objectTypes:l,anyDomainEntity:y,targetOutputType:w})=>{let u,g;if(0!==e.length||0!==i.length||0!==Object.keys(a).length||0!==Object.keys(d).length||0!==c.length)return new o({name:"Mutation",fields:Object.assign(0===e.length?{}:{deleteEntity:{type:new s(new r(new s(t))),args:{id:{type:new s(t)}},description:`Deletes the entity and everything composed into it. Deletable types: ${e.join(", ")}. Returns the ids removed, the given one first.`}},0===(u=T(a)).length?{}:{addChild:{type:new s(new r(new s(y))),args:{parentId:{type:new s(t)},recipeGroupId:{type:new s(p)},recipeKey:{type:new s(p)}},description:`Adds a child to the entity parentId from a recipe listed under its meta { childRecipes }. Types with child recipes: ${u.join("; ")}. Returns the entities added, the recipe's own first; empty when they were removed again.`}},0===(g=T(d)).length?{}:{replaceEntity:{type:new s(new r(new s(y))),args:{entityId:{type:new s(t)},recipeGroupId:{type:new s(p)},recipeKey:{type:new s(p)}},description:`Replaces the entity entityId from a recipe listed under its meta { replaceRecipes }. Types with replace recipes: ${g.join("; ")}. The replacement is a new entity: it has a new id and the field values of its recipe, and entityId no longer exists. Returns the entities added, the replacement first; empty when they were removed again.`}},...i.flatMap(e=>{let i=l.get(e.entityType);return i?[(({entityType:e,fields:i},r)=>{let o=Object.fromEntries(i.map(({name:e,type:t,description:n})=>[e,{type:h(t),description:n}]));return{[`modify${e}`]:{type:r,args:{id:{type:new s(t)},delta:{type:new s(new n({name:`${e}Delta`,fields:o}))}},description:`Sets the fields named in delta on one ${e}. Returns the entity after the change, or null when the change removed it.`}}})(e,i)]:[]}),Object.fromEntries(c.map(e=>{var t;return[e.fieldName,{type:new s(new o({name:(t=e.fieldName,`${t.charAt(0).toUpperCase()+t.slice(1)}Result`),description:`What ${e.fieldName} returns, read from the configuration after the change.`,fields:()=>Object.fromEntries(Object.entries(e.result).map(([e,t])=>[e,{type:"edge"===t.kind?(({target:e,list:t,nullable:n},i)=>{let o=t?new r(new s(i(e))):i(e);return n?o:new s(o)})(t,w):h(t.type),description:t.description}]))})),args:Object.fromEntries(Object.entries(e.args).map(([e,t])=>[e,{type:h(t.type),description:t.description}])),description:e.description}]})))})})({deletableTypes:G,writableTypes:U,childRecipes:V,replaceRecipes:z,actionFields:K,objectTypes:B,anyDomainEntity:J(y),targetOutputType:L}),types:[...H.values(),...B.values()]}),et=c(ee);if(et.length>0)throw Error(et.map(e=>e.message).join(" "));return{sdl:d(ee),navigationFields:u.filter(([,,e])=>x[e].length>1).map(([e])=>e),fields:Y,deletableTypes:G,writableFields:Object.fromEntries(U.map(({entityType:e,fields:t})=>[e,Object.fromEntries(t.map(({name:e,property:t})=>[e,t]))])),childRecipes:V,replaceRecipes:z,fieldOptions:Object.fromEntries(F.flatMap(e=>{let t=m(P,e);return t?[[e,t.map(({options:e})=>e)]]:[]})),actions:Object.fromEntries(K.map(({fieldName:e,actionName:t})=>[e,t]))}};
1
+ import{GraphQLBoolean as e,GraphQLEnumType as t,GraphQLID as n,GraphQLInputObjectType as i,GraphQLInterfaceType as s,GraphQLList as r,GraphQLNonNull as o,GraphQLObjectType as a,GraphQLSchema as p,GraphQLString as d,printSchema as c,validateSchema as l}from"graphql";import{GraphQLJSON as h,createAssistantValueType as w}from"./assistant-value-type.js";import{buildAssistantLenses as y}from"./build-assistant-lenses.js";import{createAssistantExecutionSchema as u}from"./create-assistant-execution-schema.js";let m="AnyDomainEntity",f="RootEntity",g=[["navigationState","Active navigation state.","navigationStates"],["viewState","Active view state.","viewStates"],["toolState","Active tool state.","toolStates"]],b={section:"childRecipes",mutation:"addChild"},v={section:"replaceRecipes",mutation:"replaceEntity"},j=(e,t)=>Object.entries(e).find(([e])=>e===t)?.[1],$=(e,t)=>{if(!t||0===t.length)return e;let n=`One of: ${t.map(e=>`"${e}"`).join(", ")}.`;return e?/[.!?]$/.test(e)?`${e} ${n}`:`${e}. ${n}`:n},O=({target:e,cardinality:t},n)=>{let i=n(e);switch(t){case"1-1":return new o(i);case"0-1":return i;case"0-N":case"1-N":return new o(new r(new o(i)))}},E=(e,t,i)=>{let s={id:{type:new o(n),description:i?`Unique id of the entity, assigned by the configurator, e.g. "${i}-1".`:void 0},type:{type:new o(d),description:i?`Entity type name, e.g. "${i}".`:void 0}};for(let n of e)s[n.name]={type:"edge"===n.type.kind?O(n.type,t):w(n.type.type),description:n.description};return s},R=e=>Object.fromEntries(e.map(({name:e,source:t,localized:n})=>[e,n?{source:t,localized:!0}:{source:t}])),k={sameForAllInstances:e=>`Same recipe groups and recipes for every ${e}.`,constantDuringSession:()=>"Fixed for the session."},T={sameForAllInstances:e=>`Same for every ${e}.`,constantDuringSession:()=>"Fixed for the session."},I=(e,t,n)=>e.map(e=>` ${t[e](n)}`).join(""),N=({section:e},{groups:t,hints:n},{entityType:i,purpose:s,recipeGroup:a})=>{let p=t.filter(({dryRuns:e})=>!e).map(({groupId:e})=>e);return 0===t.length?{}:{[e]:{type:new o(new r(new o(a))),description:`The recipe groups for ${s} this ${i}: ${t.map(({groupId:e})=>e).join(", ")}. A group is listed only while the configurator offers it on the entity.${p.length>0?` Recipes of these groups cannot be dry-run: ${p.join(", ")}.`:""}${I(n,k,i)}`}}},A=({entityType:e,childRecipes:n,replaceRecipes:i,optionsEdges:s,screenshots:p},{recipeGroup:d,fieldOption:c,screenshot:l})=>new a({name:`${e}Meta`,fields:Object.assign(N(b,n,{entityType:e,purpose:"adding children to",recipeGroup:d}),N(v,i,{entityType:e,purpose:"replacing",recipeGroup:d}),...s.map(({options:{edgeName:t,field:n,validate:i,dryRuns:s},hints:a})=>({[t]:{type:new r(new o(c)),description:`Values "${n}" accepts on this ${e}. Null when there is no choice to make.${i?"":" Not checked on write."}${s?"":" Cannot be dry-run."}${I(a,T,e)}`}})),0===p.length?{}:{screenshot:{type:l,args:{view:{type:new o(new t({name:`${e}ScreenshotView`,values:Object.fromEntries(p.map(({view:e,description:t})=>[e,{description:t}]))}))}},description:"Renders this entity from a predefined view. The picture follows the tool result as an image labelled with `image`. Null when the view does not apply to this entity right now."}})}),S=e=>Object.entries(e).map(([e,t])=>`${e} (${t.map(({groupId:e})=>e).join(", ")})`);export const buildAssistantManifest=t=>{var O,k,T,I,N;let M,D,F,W,{entityTypes:x,aliases:C,exampleType:q,fields:G,states:U,deletableTypes:K,writableTypes:V,actionFields:P,optionsEdges:z}=t,L=Object.fromEntries(Object.entries(t.childRecipes).map(([e,t])=>[e,t.groups])),Q=Object.fromEntries(Object.entries(t.replaceRecipes).map(([e,t])=>[e,t.groups])),B=new Map,H=new Map,J=new Map,X=e=>{let[t,...n]=Object.entries(C).find(([t])=>t===e)?.[1]??[];return(t&&0===n.length?H.get(t):void 0)??J.get(e)??Z},Y=e=>H.get(e)??X(e),Z=new s({name:m,description:"Every entity of the configuration.",fields:()=>E(G[m]??[],Y,q)});for(let e of(J.set(m,Z),Object.keys(C)))e!==m&&J.set(e,new s({name:e,interfaces:[Z],fields:()=>E(G[e]??[],Y)}));let _={};for(let e of x){let t=[m,...Object.entries(C).filter(([t,n])=>t!==m&&n.includes(e)).map(([e])=>e)],n=G[e]??[];_[e]=R(n),H.set(e,new a({name:e,interfaces:t.flatMap(e=>J.get(e)??[]),fields:()=>{let t=B.get(e);return{...E(n,Y),...t?{meta:{type:new o(t),description:"What can be done to this entity right now."}}:{}}}}))}let ee=(O=()=>X(J.has(f)?f:m),k=()=>X(m),M=new a({name:"DryRunError",description:"One reason a change cannot be made right now.",fields:{type:{type:new o(d),description:"Kind of the problem."},entityId:{type:n,description:"The entity the problem is on, when it is on one."},message:{type:d,description:"The problem as the user would be told it."}}}),new a({name:"DryRun",description:"What using a recipe or writing an option would do, tried out on the configuration the query reads. Nothing is changed.",fields:()=>({ok:{type:new o(e),description:"Whether the change would succeed on the configuration the query reads."},root:{type:O(),description:"The root entity of the configuration as it would be after the change; null when ok is false. Everything selected under it reads that configuration."},changedEntities:{type:new o(new r(new o(k()))),description:"Entities the change would add or modify; empty when ok is false. One whose id is not in the configuration would be added, and its real id may differ. An entity written to is listed even when its values stay the same."},deletedEntityIds:{type:new o(new r(new o(n))),description:"The ids of the entities the change would remove; empty when ok is false."},sideEffects:{type:new o(new r(new o(d))),description:"The major or unexpected things the configurator would change along with it; empty when ok is false."},errors:{type:new o(new r(new o(M))),description:"Why the change cannot be made; empty when ok is true."}})})),et={recipeGroup:(T=[...Object.keys(L).length>0?[b.mutation]:[],...Object.keys(Q).length>0?[v.mutation]:[]],D=T.join(" or "),F=new a({name:"Recipe",description:`${T.includes("addChild")?"One thing that can be added to the entity (under childRecipes)":"One thing the entity can be replaced with (under replaceRecipes)"}${T.length>1?" or that it can be replaced with (under replaceRecipes)":""}.`,fields:{key:{type:new o(d),description:`Pass to ${D} as recipeKey. Valid only for the listing it came from.`},name:{type:new o(d),description:"Name shown to the user."},description:{type:d},imageUrl:{type:d,description:"Thumbnail shown to the user."},dryRun:{type:ee,description:"What using this recipe would do. Null when it cannot be tried."}}}),new a({name:"RecipeGroup",description:"A group of recipes for this entity.",fields:{groupId:{type:new o(d),description:`Pass to ${D} as recipeGroupId.`},name:{type:new o(d),description:"Name shown to the user."},description:{type:d},recipes:{type:new o(new r(new o(F)))}}})),fieldOption:new a({name:"FieldOption",description:"One value a field accepts. Writing a value outside the list is rejected unless the field description says it is not checked.",fields:{value:{type:new o(h),description:"The value to write to the field."},name:{type:d,description:"Name shown to the user."},description:{type:d},imageUrl:{type:d,description:"Image shown to the user."},color:{type:d,description:'Color shown to the user, as "#rrggbb".'},dryRun:{type:ee,description:"What writing this value would do. Null when it cannot be tried."}}}),screenshot:new a({name:"Screenshot",description:"A screenshot of an entity. The picture itself follows the tool result.",fields:{image:{type:new o(n),description:"Label of the image that follows the tool result."}}})};for(let e of x){let n=j(t.childRecipes,e)??{groups:[],hints:[]},i=j(t.replaceRecipes,e)??{groups:[],hints:[]},s=j(z,e)??[],r=j(t.screenshots,e)??[];(n.groups.length>0||i.groups.length>0||s.length>0||r.length>0)&&B.set(e,A({entityType:e,childRecipes:n,replaceRecipes:i,optionsEdges:s.map(t=>({...t,hints:(C[f]??[]).includes(e)?t.hints.filter(e=>"sameForAllInstances"!==e):t.hints})),screenshots:r},et))}let en=new p({query:(I=X(J.has(f)?f:m),N=X(m),W=(e=>{let t={};for(let[n,i,s]of g){let r=e[s];r.length>1&&(t[n]={type:new o(d),description:$(i,r)})}if(0!==Object.keys(t).length)return new a({name:"Navigation",description:"The active UI states of the configurator.",fields:t})})(U),new a({name:"Query",fields:{root:{type:new o(I),description:"The root entity of the configuration."},entities:{type:new o(new r(N)),args:{ids:{type:new r(new o(n))}},description:"Every entity, or the given ids in order with null for an unknown id."},selectedEntity:{type:new o(N),description:"The selected entity, or the root entity when nothing is selected."},...W?{navigation:{type:new o(W)}}:{}}})),mutation:(({deletableTypes:e,writableTypes:t,childRecipes:s,replaceRecipes:p,actionFields:c,objectTypes:l,anyDomainEntity:h,targetOutputType:y})=>{let u,m;if(0!==e.length||0!==t.length||0!==Object.keys(s).length||0!==Object.keys(p).length||0!==c.length)return new a({name:"Mutation",fields:Object.assign(0===e.length?{}:{deleteEntity:{type:new o(new r(new o(n))),args:{id:{type:new o(n)}},description:`Deletes the entity and everything composed into it. Deletable types: ${e.join(", ")}. Returns the ids removed, the given one first.`}},0===(u=S(s)).length?{}:{addChild:{type:new o(new r(new o(h))),args:{parentId:{type:new o(n)},recipeGroupId:{type:new o(d)},recipeKey:{type:new o(d)}},description:`Adds a child to the entity parentId from a recipe listed under its meta { childRecipes }. Types with child recipes: ${u.join("; ")}. Returns the entities added, the recipe's own first; empty when they were removed again.`}},0===(m=S(p)).length?{}:{replaceEntity:{type:new o(new r(new o(h))),args:{entityId:{type:new o(n)},recipeGroupId:{type:new o(d)},recipeKey:{type:new o(d)}},description:`Replaces the entity entityId from a recipe listed under its meta { replaceRecipes }. Types with replace recipes: ${m.join("; ")}. The replacement is a new entity: it has a new id and the field values of its recipe, and entityId no longer exists. Returns the entities added, the replacement first; empty when they were removed again.`}},...t.flatMap(e=>{let t=l.get(e.entityType);return t?[(({entityType:e,fields:t},s)=>{let r=Object.fromEntries(t.map(({name:e,type:t,description:n})=>[e,{type:w(t),description:n}]));return{[`modify${e}`]:{type:s,args:{id:{type:new o(n)},delta:{type:new o(new i({name:`${e}Delta`,fields:r}))}},description:`Sets the fields named in delta on one ${e}. Returns the entity after the change, or null when the change removed it.`}}})(e,t)]:[]}),Object.fromEntries(c.map(e=>{var t;return[e.fieldName,{type:new o(new a({name:(t=e.fieldName,`${t.charAt(0).toUpperCase()+t.slice(1)}Result`),description:`What ${e.fieldName} returns, read from the configuration after the change.`,fields:()=>Object.fromEntries(Object.entries(e.result).map(([e,t])=>[e,{type:"edge"===t.kind?(({target:e,list:t,nullable:n},i)=>{let s=t?new r(new o(i(e))):i(e);return n?s:new o(s)})(t,y):w(t.type),description:t.description}]))})),args:Object.fromEntries(Object.entries(e.args).map(([e,t])=>[e,{type:w(t.type),description:t.description}])),description:e.description}]})))})})({deletableTypes:K,writableTypes:V,childRecipes:L,replaceRecipes:Q,actionFields:P,objectTypes:H,anyDomainEntity:X(m),targetOutputType:Y}),types:[...J.values(),...H.values()]}),ei=l(en);if(ei.length>0)throw Error(ei.map(e=>e.message).join(" "));let es=c(en);return{sdl:es,navigationFields:g.filter(([,,e])=>U[e].length>1).map(([e])=>e),fields:_,deletableTypes:K,writableFields:Object.fromEntries(V.map(({entityType:e,fields:t})=>[e,Object.fromEntries(t.map(({name:e,property:t})=>[e,t]))])),childRecipes:L,replaceRecipes:Q,fieldOptions:Object.fromEntries(x.flatMap(e=>{let t=j(z,e);return t?[[e,t.map(({options:e})=>e)]]:[]})),screenshots:Object.fromEntries(x.flatMap(e=>{let n=j(t.screenshots,e);return n?[[e,n]]:[]})),actions:Object.fromEntries(P.map(({fieldName:e,actionName:t})=>[e,t])),lenses:y(t,u(es)),formElements:t.formElements}};
@@ -0,0 +1,32 @@
1
+ import { type GraphQLSchema } from 'graphql';
2
+ /** One entity type or alias exposing a field, with the field's type as the assistant schema prints it. */
3
+ export interface AssistantFieldExposure {
4
+ readonly typeName: string;
5
+ readonly type: string;
6
+ }
7
+ /**
8
+ * Entity types or aliases expose one field name in shapes no selection can hold together: a single
9
+ * entity, a list of entities and a plain value cannot share a name. GraphQL rejects every operation
10
+ * that selects the field on both, and no common type exists to widen them to. `exposures` lists the
11
+ * aliases and types that declare the field, without the members that only repeat an alias's field.
12
+ */
13
+ export declare class AssistantFieldClashError extends Error {
14
+ readonly fieldName: string;
15
+ readonly exposures: readonly AssistantFieldExposure[];
16
+ constructor(fieldName: string, exposures: readonly AssistantFieldExposure[]);
17
+ }
18
+ /**
19
+ * Compiles the schema operations are validated and executed against from the assistant SDL the agent
20
+ * reads. GraphQL requires fields selected under one name to have the same type, nullability included,
21
+ * even on entity types that can never be the same entity, so a lens or a hand-written selection that
22
+ * reaches such a field on two types would be rejected although its result is unambiguous. The
23
+ * execution schema therefore widens the type of every field name that entity types and aliases
24
+ * expose with different types, and leaves everything else as it is. It accepts every operation the
25
+ * SDL accepts and some the SDL would reject; the SDL stays the precise description of the data.
26
+ * Accepted: a widened field no longer enforces its SDL type on the value it resolves to. A null in a
27
+ * field the SDL declares non-null is returned as null instead of failing the operation, and a field
28
+ * widened to `JSON` is returned as it is, without the coercion of its scalar. Values that match their
29
+ * SDL type, which is every value a valid configuration holds, give the same result. Throws
30
+ * {@link AssistantFieldClashError} for the shapes nothing can widen.
31
+ */
32
+ export declare const createAssistantExecutionSchema: (sdl: string) => GraphQLSchema;
@@ -0,0 +1 @@
1
+ import{Kind as e,buildASTSchema as t,parse as n,print as a}from"graphql";let i="AnyDomainEntity",l="JSON",s=new Set(["Int","Float","String","Boolean","ID",l]);export class AssistantFieldClashError extends Error{fieldName;exposures;constructor(e,t){super(`The field "${e}" cannot be selected on every entity type that has it: ${t.map(({typeName:t,type:n})=>`${t}.${e} is ${n}`).join(", ")}.`),this.fieldName=e,this.exposures=t,this.name="AssistantFieldClashError"}}let r=t=>(t.kind===e.OBJECT_TYPE_DEFINITION||t.kind===e.INTERFACE_TYPE_DEFINITION)&&(t.name.value===i||(t.interfaces??[]).some(({name:e})=>e.value===i)),o=t=>t.kind===e.NON_NULL_TYPE?t.type:t,m=t=>t.kind===e.NAMED_TYPE?t.name.value:m(t.type),u=e=>a(e).replace(m(e),""),p={kind:e.NAMED_TYPE,name:{kind:e.NAME,value:l}},d=(t,n)=>{let i=n.map(({type:e})=>e);if(1===new Set(i.map(e=>a(e))).size)return;let l=i.map(e=>s.has(m(e)));if(l.every(Boolean))return 1===new Set(i.map(e=>a(o(e)))).size?"nullable":"json";if(!l.some(Boolean)){if(1===new Set(i.map(u)).size)return;if(i.every(t=>o(t).kind===e.NAMED_TYPE))return"nullable"}throw new AssistantFieldClashError(t,n.filter(({inherited:e})=>!e).map(({typeName:e,type:t})=>({typeName:e,type:a(t)})))};export const createAssistantExecutionSchema=a=>t((t=>{let n=t.definitions.filter(r),a=(e,t)=>n.some(n=>n.name.value===e&&(n.fields??[]).some(e=>e.name.value===t)),i=new Map;for(let e of n)for(let t of e.fields??[])i.set(t.name.value,[...i.get(t.name.value)??[],{typeName:e.name.value,type:t.type,inherited:(e.interfaces??[]).some(({name:e})=>a(e.value,t.name.value))}]);let s=new Map;for(let[e,t]of i){let n=d(e,t);n&&s.set(e,n)}let m=e=>{let t=s.get(e.name.value);return t?{...e,type:"json"===t?p:o(e.type)}:e},u=t.definitions.map(e=>r(e)?{...e,fields:e.fields?.map(m)}:e),f=u.some(t=>t.kind===e.SCALAR_TYPE_DEFINITION&&t.name.value===l),E=[...s.values()].includes("json");return{...t,definitions:E&&!f?[...u,{kind:e.SCALAR_TYPE_DEFINITION,name:{kind:e.NAME,value:l}}]:u}})(n(a)));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The shape of a form element's tag, and of its attributes' names: the panel reads form markup
3
+ * with lowercase tag and attribute names, so a name with an upper-case letter would never match.
4
+ */
5
+ export declare const ASSISTANT_FORM_NAME_PATTERN: RegExp;
6
+ /**
7
+ * Whether a tag is an HTML element name, which no form element may take, so that markup in a form
8
+ * is never mistaken for HTML. The spec rejects a project's element by it and the panel's registry
9
+ * refuses one, so both read the same list.
10
+ */
11
+ export declare const isHtmlElementName: (name: string) => boolean;
@@ -0,0 +1,8 @@
1
+ let e=new Set(`a abbr acronym address applet area article aside audio b base basefont bdi bdo big blink blockquote body br
2
+ button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em
3
+ embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html
4
+ i iframe image img input ins kbd keygen label legend li link main map mark marquee math menu menuitem meta
5
+ meter nav nobr noembed noframes noscript object ol optgroup option output p param picture plaintext pre
6
+ progress q rb rp rt rtc ruby s samp script search section select slot small source span strike strong style
7
+ sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr
8
+ xmp`.split(/\s+/));export const ASSISTANT_FORM_NAME_PATTERN=/^[a-z][a-z0-9-]*$/;export const isHtmlElementName=t=>e.has(t);
@@ -0,0 +1,174 @@
1
+ /**
2
+ * What an element of an assistant form collects: a `group` all its children, a `choice` exactly one
3
+ * of its options, a `choices` any number of them; an `option` is something to pick and an `input` a
4
+ * free value.
5
+ */
6
+ export type AssistantFormRole = 'group' | 'choice' | 'choices' | 'option' | 'input';
7
+ /** The type an attribute of a form element is validated and coerced to; the model writes every attribute as a string. */
8
+ export interface AssistantFormAttribute {
9
+ readonly type: 'string' | 'number' | 'integer' | 'boolean';
10
+ /** The words a string, or the numbers a number, may be; a number's are written as text in the markup. */
11
+ readonly enum?: readonly (string | number)[];
12
+ /** A JSON Schema `pattern` a string attribute must match, such as a resource path or a `#rrggbb` color. */
13
+ readonly pattern?: string;
14
+ /** The bounds a number attribute must be within, as in JSON Schema. */
15
+ readonly minimum?: number;
16
+ readonly maximum?: number;
17
+ /** The bounds of a string attribute's length, as in JSON Schema. */
18
+ readonly minLength?: number;
19
+ readonly maxLength?: number;
20
+ }
21
+ /**
22
+ * An element the assistant can write inside a ```` ```form ```` fence of its reply to ask the user
23
+ * something. The panel renders it, and the SDK prompt lists it, so the model and the panel agree on
24
+ * one set of elements: the built-ins below, followed by the project's own, which its YAML declares
25
+ * under `assistant.formElements` with the fields up to `required`.
26
+ */
27
+ export interface AssistantFormElementDescriptor {
28
+ /** The tag: lowercase, and never the name of an HTML element. */
29
+ readonly name: string;
30
+ readonly role: AssistantFormRole;
31
+ /** What the element is for, printed in the prompt after its signature. */
32
+ readonly description: string;
33
+ /**
34
+ * Attributes beyond the built-in `label`, in the order the prompt lists them. An option or an
35
+ * input that takes a `value` declares it like any other: by convention an option answers with
36
+ * it instead of its label, and an input starts with it.
37
+ */
38
+ readonly attributes: Readonly<Record<string, AssistantFormAttribute>>;
39
+ readonly required?: readonly string[];
40
+ /**
41
+ * An input the user answers with one action, such as a `confirm`: a form whose only question it
42
+ * is sends on that action, without a submit button, as a lone `choice` sends on the first pick.
43
+ */
44
+ readonly quick?: true;
45
+ /**
46
+ * The attributes an option can answer with besides `label`, in the order its component tries
47
+ * them. An option that declares them and has none of them, nor `label`, makes its form fail.
48
+ */
49
+ readonly identity?: readonly string[];
50
+ }
51
+ /** What an attribute's declaration makes of its value: one of its words, a string, a number or a boolean. */
52
+ export type AssistantFormAttributeValue<ATTRIBUTE extends AssistantFormAttribute> = ATTRIBUTE extends {
53
+ readonly enum: readonly (infer WORD)[];
54
+ } ? WORD : ATTRIBUTE['type'] extends 'string' ? string : ATTRIBUTE['type'] extends 'boolean' ? boolean : number;
55
+ type RequiredAttributeName<DESCRIPTOR> = DESCRIPTOR extends {
56
+ readonly required: readonly (infer NAME)[];
57
+ } ? NAME : never;
58
+ /**
59
+ * The attributes a form element's component gets, typed from its descriptor: the declared ones,
60
+ * optional unless `required`. The form validates the markup against the same descriptor, so the
61
+ * component can rely on these types.
62
+ */
63
+ export type AssistantFormElementAttributes<DESCRIPTOR extends AssistantFormElementDescriptor> = {
64
+ readonly [NAME in keyof DESCRIPTOR['attributes'] as NAME extends RequiredAttributeName<DESCRIPTOR> ? NAME : never]: AssistantFormAttributeValue<DESCRIPTOR['attributes'][NAME]>;
65
+ } & {
66
+ readonly [NAME in keyof DESCRIPTOR['attributes'] as NAME extends RequiredAttributeName<DESCRIPTOR> ? never : NAME]?: AssistantFormAttributeValue<DESCRIPTOR['attributes'][NAME]>;
67
+ };
68
+ /** The elements every assistant form understands, in the order the prompt lists them. */
69
+ export declare const ASSISTANT_BUILT_IN_FORM_ELEMENTS: readonly [{
70
+ readonly name: 'group';
71
+ readonly role: 'group';
72
+ readonly description: 'Puts related questions together under its label.';
73
+ readonly attributes: {};
74
+ }, {
75
+ readonly name: 'choice';
76
+ readonly role: 'choice';
77
+ readonly description: 'The user picks exactly one of its options.';
78
+ readonly attributes: {};
79
+ }, {
80
+ readonly name: 'choices';
81
+ readonly role: 'choices';
82
+ readonly description: 'The user picks any number of its options.';
83
+ readonly attributes: {};
84
+ }, {
85
+ readonly name: 'reply';
86
+ readonly role: 'option';
87
+ readonly description: 'A short answer shown as a button.';
88
+ readonly attributes: {
89
+ readonly value: {
90
+ readonly type: 'string';
91
+ };
92
+ };
93
+ }, {
94
+ readonly name: 'card';
95
+ readonly role: 'option';
96
+ readonly description: 'A tile with an optional picture over its label and a one-line `description`. `image` is a path you read on an `imageUrl` field. Without `value` or `label` it sends its `description`, or else its `image`.';
97
+ readonly attributes: {
98
+ readonly value: {
99
+ readonly type: 'string';
100
+ };
101
+ readonly description: {
102
+ readonly type: 'string';
103
+ };
104
+ readonly image: {
105
+ readonly type: 'string';
106
+ readonly pattern: string;
107
+ };
108
+ };
109
+ readonly identity: readonly ["value", "description", "image"];
110
+ }, {
111
+ readonly name: 'swatch';
112
+ readonly role: 'option';
113
+ readonly description: 'A small tile of a color or a material, without text: its label shows on hover. `color` is `#rrggbb`, as on the `color` field of an option, and `image` a path you read on an `imageUrl` field. Without `value` or `label` it sends its `color`, or else its `image`.';
114
+ readonly attributes: {
115
+ readonly value: {
116
+ readonly type: 'string';
117
+ };
118
+ readonly color: {
119
+ readonly type: 'string';
120
+ readonly pattern: '^#[0-9a-fA-F]{6}$';
121
+ };
122
+ readonly image: {
123
+ readonly type: 'string';
124
+ readonly pattern: string;
125
+ };
126
+ };
127
+ readonly identity: readonly ["value", "color", "image"];
128
+ }, {
129
+ readonly name: 'text';
130
+ readonly role: 'input';
131
+ readonly description: 'A single line the user types.';
132
+ readonly attributes: {
133
+ readonly value: {
134
+ readonly type: 'string';
135
+ };
136
+ readonly placeholder: {
137
+ readonly type: 'string';
138
+ };
139
+ };
140
+ }, {
141
+ readonly name: 'number';
142
+ readonly role: 'input';
143
+ readonly description: 'A number the user types, with a slider when both `min` and `max` are given. The answer carries the `unit`, as in `Length: 240 cm`.';
144
+ readonly attributes: {
145
+ readonly value: {
146
+ readonly type: 'number';
147
+ };
148
+ readonly min: {
149
+ readonly type: 'number';
150
+ };
151
+ readonly max: {
152
+ readonly type: 'number';
153
+ };
154
+ readonly step: {
155
+ readonly type: 'number';
156
+ };
157
+ readonly unit: {
158
+ readonly type: 'string';
159
+ };
160
+ };
161
+ }, {
162
+ readonly name: 'confirm';
163
+ readonly role: 'input';
164
+ readonly description: "A yes or no question, shown as two buttons. It answers with the user's own words for yes and no, such as `Yes` or `Ano`, and alone in a form it sends on the click.";
165
+ readonly attributes: {};
166
+ readonly quick: true;
167
+ }];
168
+ /** The name of a built-in form element. */
169
+ export type AssistantBuiltInFormElementName = (typeof ASSISTANT_BUILT_IN_FORM_ELEMENTS)[number]['name'];
170
+ /** The attributes the component of a built-in form element gets, typed from its descriptor. */
171
+ export type AssistantBuiltInFormElementAttributes<NAME extends AssistantBuiltInFormElementName> = AssistantFormElementAttributes<Extract<(typeof ASSISTANT_BUILT_IN_FORM_ELEMENTS)[number], {
172
+ readonly name: NAME;
173
+ }>>;
174
+ export {};
@@ -0,0 +1 @@
1
+ import{ASSISTANT_RESOURCE_PATH_PATTERN as e}from"./assistant-resource-path.js";export const ASSISTANT_BUILT_IN_FORM_ELEMENTS=[{name:"group",role:"group",description:"Puts related questions together under its label.",attributes:{}},{name:"choice",role:"choice",description:"The user picks exactly one of its options.",attributes:{}},{name:"choices",role:"choices",description:"The user picks any number of its options.",attributes:{}},{name:"reply",role:"option",description:"A short answer shown as a button.",attributes:{value:{type:"string"}}},{name:"card",role:"option",description:"A tile with an optional picture over its label and a one-line `description`. `image` is a path you read on an `imageUrl` field. Without `value` or `label` it sends its `description`, or else its `image`.",attributes:{value:{type:"string"},description:{type:"string"},image:{type:"string",pattern:e}},identity:["value","description","image"]},{name:"swatch",role:"option",description:"A small tile of a color or a material, without text: its label shows on hover. `color` is `#rrggbb`, as on the `color` field of an option, and `image` a path you read on an `imageUrl` field. Without `value` or `label` it sends its `color`, or else its `image`.",attributes:{value:{type:"string"},color:{type:"string",pattern:"^#[0-9a-fA-F]{6}$"},image:{type:"string",pattern:e}},identity:["value","color","image"]},{name:"text",role:"input",description:"A single line the user types.",attributes:{value:{type:"string"},placeholder:{type:"string"}}},{name:"number",role:"input",description:"A number the user types, with a slider when both `min` and `max` are given. The answer carries the `unit`, as in `Length: 240 cm`.",attributes:{value:{type:"number"},min:{type:"number"},max:{type:"number"},step:{type:"number"},unit:{type:"string"}}},{name:"confirm",role:"input",description:"A yes or no question, shown as two buttons. It answers with the user's own words for yes and no, such as `Yes` or `Ano`, and alone in a form it sends on the click.",attributes:{},quick:!0}];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A path into the project's resources, the kind stored on `imageUrl` fields: no scheme and no host,
3
+ * so resolving it never leaves the resources origin. A backslash, a control character or leading
4
+ * whitespace is refused too, because the URL parser reads a backslash as a slash and strips the
5
+ * others, which would turn `\\host` or ` //host` into an address on another host.
6
+ *
7
+ * Written as a JSON Schema `pattern`, so the `image` attribute of a form element applies the same
8
+ * rule as the images of a reply.
9
+ */
10
+ export declare const ASSISTANT_RESOURCE_PATH_PATTERN: string;
@@ -0,0 +1 @@
1
+ export const ASSISTANT_RESOURCE_PATH_PATTERN=String.raw`^(?![a-zA-Z][a-zA-Z0-9+.-]*:)(?!//)[^\s\\\x00-\x1f][^\\\x00-\x1f]*$`;
@@ -0,0 +1,4 @@
1
+ export { ASSISTANT_FORM_NAME_PATTERN, isHtmlElementName } from './assistant-form-element-name.js';
2
+ export { ASSISTANT_BUILT_IN_FORM_ELEMENTS } from './assistant-form-elements.js';
3
+ export type { AssistantBuiltInFormElementAttributes, AssistantBuiltInFormElementName, AssistantFormAttribute, AssistantFormAttributeValue, AssistantFormElementAttributes, AssistantFormElementDescriptor, AssistantFormRole, } from './assistant-form-elements.js';
4
+ export { ASSISTANT_RESOURCE_PATH_PATTERN } from './assistant-resource-path.js';
@@ -0,0 +1 @@
1
+ export{ASSISTANT_FORM_NAME_PATTERN,isHtmlElementName}from"./assistant-form-element-name.js";export{ASSISTANT_BUILT_IN_FORM_ELEMENTS}from"./assistant-form-elements.js";export{ASSISTANT_RESOURCE_PATH_PATTERN}from"./assistant-resource-path.js";
@@ -1,3 +1,6 @@
1
1
  import type { AssistantManifest } from './assistant-manifest.js';
2
+ import { type AssistantFormElementDescriptor } from './form/index.js';
3
+ /** How the prompt writes an element: its tag with each attribute and what it takes. Exported for tests. */
4
+ export declare const formElementSignature: ({ name, role, attributes }: AssistantFormElementDescriptor) => string;
2
5
  /** SDK-version conventions for using the manifest's capabilities and reading their results. */
3
6
  export declare const generateAssistantPrompt: (assistant: AssistantManifest) => string;
@@ -1 +1 @@
1
- export const generateAssistantPrompt=e=>{let t=Object.values(e.childRecipes??{}).some(e=>e.length>0),a=Object.values(e.replaceRecipes??{}).some(e=>e.length>0),n=Object.values(e.fieldOptions??{}).some(e=>e.length>0),s=Object.keys(e.actions??{}).length>0,i=(e.deletableTypes?.length??0)>0||Object.values(e.writableFields??{}).some(e=>Object.keys(e).length>0)||t||a||s,o=t||a||n,h=[...t?["`childRecipes` is what can be added to it"]:[],...a?["`replaceRecipes` what it can be replaced with"]:[],...n?["`<field>Options` the values a field accepts"]:[]],r=["`selected`",...(e.navigationFields??[]).map(e=>`\`${e}\``)].join(", ");return[["Tools","- Put related operations in one call and select only the fields you need.",...i?[`- Use a mutation inside \`query\` to answer a what-if about a change ${o?"the lists under `meta` do not show":"before making it"}.`,"- Use `apply` only for what the user asked for."]:["- Nothing in this configurator can be changed through you. Say so when the user asks for a change."],"- When an operation fails, its `errors` say why and what to send instead."],...i?[["After a change","- A change is made only when the `apply` result has `committed: true`. Otherwise `errors` or `message` says what happened; without either, nothing changed. Never say a change was made when it was not.","- `sideEffects` names the major or unexpected things the configurator changed along with your change. Tell the user about them when committed; otherwise they describe what would happen. Smaller adjustments are not listed.","- A mutation returns the state after the change: use the ids and values it returned, not the ones you sent.",...s?["- When one mutation does the whole of what the user asked, use it instead of building the same change from several others."]:[]]]:[],...o?[["What can be done to an entity",`- \`meta\` lists what is possible right now: ${h.join(", ")}. Read the list before such a change and before telling the user what is available.`,`- You can select \`dryRun\` on ${[...t||a?["recipes"]:[],...n?["options"]:[]].join(" or ")} to look ahead and pick one that meets what the user asked for. It is optional before a change.`,"- Read the lists again after a change, unless their descriptions say they stay the same."]]:[],["The `[changes]` block","- Every user message starts with it: a glimpse of what the user did in the configurator since your last turn.",`- \`[changes: none]\`, or only ${r} lines: what you know still holds. Do not query it again.`,"- Other lines are a hint at what to read again: `A` added, `D` deleted, `M` modified with the fields. Text after `#` says what caused the line; `reset: undo/redo` says the user undid or redid changes.","- Read computed fields again when a listed change may affect them.","- `[changes: unavailable]` and `[changes: too many (n)]`: read again before relying on anything you read earlier.",...i?["- Your applied changes are not listed, except those waiting for user approval: they appear once approved."]:[]],["Reading the schema","- Take ids from results.",...(e.deletableTypes?.length??0)>0||a?["- The id of a deleted or replaced entity is gone and may later be given to another entity."]:[],`- A field whose name starts with \`_\` is computed: read it${i?", never write it":""}.`,"- Numbers are in the unit the field description names. Convert when the user uses another unit."]].map(e=>e.join("\n")).join("\n\n")};
1
+ import{ASSISTANT_BUILT_IN_FORM_ELEMENTS as e}from"./form/index.js";let t=[["Containers",["group","choice","choices"]],["Options",["option"]],["Inputs",["input"]]];export const formElementSignature=({name:e,role:t,attributes:a})=>{let n=["label",...Object.entries(a).map(([e,t])=>((e,{type:t,enum:a})=>a?`${e}="${a.join("|")}"`:"string"===t?e:`${e}="<${t}>"`)(e,t))];return"option"===t||"input"===t?`<${e} ${n.join(" ")} />`:`<${e} ${n.join(" ")}>…</${e}>`};export const generateAssistantPrompt=a=>{let n,s=Object.values(a.childRecipes??{}).some(e=>e.length>0),o=Object.values(a.replaceRecipes??{}).some(e=>e.length>0),i=Object.values(a.fieldOptions??{}).some(e=>e.length>0),r=Object.keys(a.actions??{}).length>0,h=Object.values(a.screenshots??{}).some(e=>e.length>0),l=(a.deletableTypes?.length??0)>0||Object.values(a.writableFields??{}).some(e=>Object.keys(e).length>0)||s||o||r,d=s||o||i,u=[...s?["`childRecipes` is what can be added to it"]:[],...o?["`replaceRecipes` what it can be replaced with"]:[],...i?["`<field>Options` the values a field accepts"]:[]],c=["`selected`",...(a.navigationFields??[]).map(e=>`\`${e}\``)].join(", ");return[["Tools","- Put related operations in one call and select only the fields you need.",...l?[`- Use a mutation inside \`query\` to answer a what-if about a change ${d?"the lists under `meta` do not show":"before making it"}.`,"- Use `apply` only for what the user asked for."]:["- Nothing in this configurator can be changed through you. Say so when the user asks for a change."],"- When an operation fails, its `errors` say why and what to send instead."],...l?[["After a change","- A change is made only when the `apply` result has `committed: true`. Otherwise `errors` or `message` says what happened; without either, nothing changed. Never say a change was made when it was not.","- `sideEffects` names the major or unexpected things the configurator changed along with your change. Tell the user about them when committed; otherwise they describe what would happen. Smaller adjustments are not listed.","- A mutation returns the state after the change: use the ids and values it returned, not the ones you sent.",...r?["- When one mutation does the whole of what the user asked, use it instead of building the same change from several others."]:[]]]:[],...d?[["What can be done to an entity",`- \`meta\` lists what is possible right now: ${u.join(", ")}. Read the list before such a change and before telling the user what is available.`,`- You can select \`dryRun\` on ${[...s||o?["recipes"]:[],...i?["options"]:[]].join(" or ")} to look ahead and pick one that meets what the user asked for. It is optional before a change.`,"- Read the lists again after a change, unless their descriptions say they stay the same."]]:[],...h?[["Seeing the design","- `meta { screenshot(view: …) { image } }` renders an entity from one of the views its `<Type>ScreenshotView` lists. The picture follows the tool result.","- Take one when the user asks how the design looks, or when you are not sure something is laid out right: what sits where, what overlaps or lines up. Otherwise rely on the data.","- Each one costs tokens and blocks the user's configurator while it renders."]]:[],["The `[changes]` block","- Every user message starts with it: a glimpse of what the user did in the configurator since your last turn.",`- \`[changes: none]\`, or only ${c} lines: what you know still holds. Do not query it again.`,"- Other lines are a hint at what to read again: `A` added, `D` deleted, `M` modified with the fields. Text after `#` says what caused the line; `reset: undo/redo` says the user undid or redid changes.","- Read computed fields again when a listed change may affect them.","- `[changes: unavailable]` and `[changes: too many (n)]`: read again before relying on anything you read earlier.",...l?["- Your applied changes are not listed, except those waiting for user approval: they appear once approved."]:[]],["Reading the schema","- Take ids from results.",...(a.deletableTypes?.length??0)>0||o?["- The id of a deleted or replaced entity is gone and may later be given to another entity."]:[],`- A field whose name starts with \`_\` is computed: read it${l?", never write it":""}.`,"- Numbers are in the unit the field description names. Convert when the user uses another unit."],["Links","- You may link an entity of the current configuration when you speak about that very entity: `[the left burner](entity:CookingTop-1)`. It helps the user find it in the configurator.",...d?["- Whenever you name recipes or options you read from `meta`, in a list, a table or a sentence, link each one: `[Single gas burner](recipe:KitchenRange-1/top/gas_single)` or `[Oak](option:Cabinet-2/finishOptions/oak)`. The link shows the user its picture or color and its description, so never draw previews yourself. The target is the entity id, the recipe group id or the options field you read, and the key or value, each encoded as in a URL."]:[]],["Replies","- Write Markdown only, never HTML: the panel does not render it.","- An image, `![alt](path)`, is shown only when its path is relative.","- To make a warning or a key note stand out, write a GitHub alert: a blockquote whose first line is only `[!WARNING]` or `[!NOTE]`. Use it sparingly."],["Forms","- To ask the user something they answer by picking or typing, end your reply with a form: a fenced code block with the language `form`. It holds only elements, written as lowercase tags with string attributes, without Markdown or text.","- Every element takes `label`, the text the user sees; on a container or an input it also names the answer. An option or an input whose signature lists `value` takes it: an option sends it instead of its label, and an input starts with it.",'- A bare attribute in a signature takes any text, `name="<type>"` takes a value of that type written as text, such as `min="<number>"`, and `name="a|b"` takes one of the words listed.',"- Options can also stand on their own, outside a `choice` or `choices`.","- An element or attribute not listed here, or an element other than an option inside a `choice` or `choices`, makes the whole form fail.","- The answer is the user's next message. Each container or input gives a line `Label: value`, or the bare value without a label; the lines of a labelled container are indented by two spaces under it, a `choices` lists each picked option on its own line, and `—` marks what was left unanswered.",'- Example: `<choice label="Plinth"><reply label="Black" /><reply label="Oak" /></choice>` is answered with `Plinth: Oak`.',"- The chat shows the answer as the user's own message, so a `value` reads as natural words, never as an id, key or code. Give `value` only when the label alone would be unclear as an answer, and map the answer's labels back to ids yourself.",...(n=[...e,...a.formElements??[]],t.flatMap(([e,t])=>{let a=n.filter(({role:e})=>t.includes(e));return 0===a.length?[]:[`- ${e}:`,...a.map(e=>` - \`${formElementSignature(e)}\`: ${(({description:e,required:t=[]})=>0===t.length?e:`${e} Requires ${t.map(e=>`\`${e}\``).join(", ")}.`)(e)}`)]}))],...a.lenses?.declarations?[["Built-in fragments","- These fragments are already defined for every operation. Spread one by name on a field of its type, as in `field { ...FragmentName }`, instead of listing its fields.","- A fragment is a starting selection: add the other fields you need next to the spread, by name from the schema.","- Never define a fragment with one of these names.","",a.lenses.declarations]]:[]].map(e=>e.join("\n")).join("\n\n")};
@@ -1,4 +1,10 @@
1
- export type { AssistantResolvedManifest, AssistantResolvedField, AssistantValueType, AssistantRelationType, AssistantStates, AssistantWritableType, AssistantWritableField, AssistantResolvedHint, AssistantResolvedRecipes, AssistantResolvedOptionsEdge, AssistantResolvedAction, AssistantResolvedActionResult, } from './assistant-resolved-manifest.js';
1
+ export { ASSISTANT_HINTS } from './assistant-resolved-manifest.js';
2
+ export type { AssistantResolvedManifest, AssistantDeclaredField, AssistantDeclarations, AssistantDeclaredWrite, AssistantResolvedField, AssistantValueType, AssistantRelationType, AssistantStates, AssistantWritableType, AssistantWritableField, AssistantResolvedHint, AssistantResolvedRecipes, AssistantResolvedOptionsEdge, AssistantResolvedAction, AssistantResolvedActionResult, } from './assistant-resolved-manifest.js';
2
3
  export { buildAssistantManifest } from './build-assistant-manifest.js';
3
- export type { AssistantFieldSource, AssistantRecipeGroup, AssistantFieldOptions, AssistantManifest, } from './assistant-manifest.js';
4
+ export type { AssistantFieldExposure } from './create-assistant-execution-schema.js';
5
+ export { AssistantFieldClashError, createAssistantExecutionSchema } from './create-assistant-execution-schema.js';
6
+ export type { AssistantFieldSource, AssistantRecipeGroup, AssistantFieldOptions, AssistantScreenshotView, AssistantManifest, } from './assistant-manifest.js';
4
7
  export { generateAssistantPrompt } from './generate-assistant-prompt.js';
8
+ export * from './session-setup/index.js';
9
+ export { describeAssistantValues, mergeAssistantFields, resolveAssistantField } from './assistant-fields.js';
10
+ export * from './form/index.js';
@@ -1 +1 @@
1
- export{buildAssistantManifest}from"./build-assistant-manifest.js";export{generateAssistantPrompt}from"./generate-assistant-prompt.js";
1
+ export{ASSISTANT_HINTS}from"./assistant-resolved-manifest.js";export{buildAssistantManifest}from"./build-assistant-manifest.js";export{AssistantFieldClashError,createAssistantExecutionSchema}from"./create-assistant-execution-schema.js";export{generateAssistantPrompt}from"./generate-assistant-prompt.js";export*from"./session-setup/index.js";export{describeAssistantValues,mergeAssistantFields,resolveAssistantField}from"./assistant-fields.js";export*from"./form/index.js";
@@ -0,0 +1,20 @@
1
+ import type { AccessLevel, SessionRole } from '@salsita-ai/contracts/api';
2
+ import type { $DomainEntity, ActionTypes, DomainEntity } from '../../../core/index.js';
3
+ import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../../domain-runtime/index.js';
4
+ import type { AssistantSetupManifest } from './assistant-setup-manifest.js';
5
+ /** Project-defined session inputs used by browser execution and the assistant setup webhook. */
6
+ export interface AssistantSetupInputs<SESSION_DATA> {
7
+ readonly role: SessionRole;
8
+ readonly sessionData: SESSION_DATA;
9
+ readonly access: AccessLevel;
10
+ }
11
+ /** Arguments carried by the standard single-props system-handler registration. */
12
+ export interface AssistantSetupHandlerProps<SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes> {
13
+ readonly manifest: AssistantSetupManifest<ENTITIES, $MAP, ACTIONS>;
14
+ readonly inputs: AssistantSetupInputs<SESSION_DATA>;
15
+ }
16
+ /** A project setup handler is synchronous, pure and deterministic. Return null to disable the assistant. */
17
+ export type TypedCreateAssistantSetupHandler<SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes> = (fn: (manifest: AssistantSetupManifest<ENTITIES, $MAP, ACTIONS>, inputs: AssistantSetupInputs<SESSION_DATA>) => AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null) => SystemPhoenixHandlerRegistration<AssistantSetupHandlerProps<SESSION_DATA, ENTITIES, $MAP, ACTIONS>, AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null>;
18
+ export declare const createAssistantSetupHandler: <SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes>(fn: (manifest: AssistantSetupManifest<ENTITIES, $MAP, ACTIONS>, inputs: AssistantSetupInputs<SESSION_DATA>) => AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null) => SystemPhoenixHandlerRegistration<AssistantSetupHandlerProps<SESSION_DATA, ENTITIES, $MAP, ACTIONS>, AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null>;
19
+ export declare const createAssistantSetupHandlerFactory: <SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes>() => TypedCreateAssistantSetupHandler<SESSION_DATA, ENTITIES, $MAP, ACTIONS>;
20
+ export declare const isAssistantSetupHandler: (handler: Pick<HandlerRegistration<never, unknown>, 'type' | 'name'>) => handler is SystemPhoenixHandlerRegistration<AssistantSetupHandlerProps<Record<string, unknown>>, AssistantSetupManifest | null>;
@@ -0,0 +1 @@
1
+ export const createAssistantSetupHandler=t=>({type:"system",name:"AssistantSetupHandler",handler:()=>({handler:({manifest:e,inputs:s})=>t(e,s)})});export const createAssistantSetupHandlerFactory=()=>createAssistantSetupHandler;export const isAssistantSetupHandler=t=>"system"===t.type&&"AssistantSetupHandler"===t.name;
@@ -0,0 +1,10 @@
1
+ import type { AssistantResolvedManifest } from '../assistant-resolved-manifest.js';
2
+ import { type AssistantSetupManifest, type AssistantSetupSettings } from './assistant-setup-manifest.js';
3
+ /** A project returned a setup that broadens or invalidates its declared whitelist. */
4
+ export declare class AssistantSetupError extends Error {
5
+ constructor(key: string, reason: string);
6
+ }
7
+ export declare const applyAssistantSetup: (resolved: AssistantResolvedManifest, settings: AssistantSetupSettings | null, returned: AssistantSetupManifest | null) => {
8
+ readonly resolved: AssistantResolvedManifest;
9
+ readonly settings: AssistantSetupSettings | null;
10
+ } | null;
@@ -0,0 +1 @@
1
+ import{ASSISTANT_AI_PROVIDERS as e,ASSISTANT_MODEL_TIERS as t,ASSISTANT_REASONING_LEVELS as s}from"@salsita-ai/contracts/assistant";import{describeAssistantValues as i,mergeAssistantFields as n,resolveAssistantField as o}from"../assistant-fields.js";import{ASSISTANT_HINTS as r}from"../assistant-resolved-manifest.js";import{projectAssistantSetupManifest as a}from"./assistant-setup-manifest.js";export class AssistantSetupError extends Error{constructor(e,t){super(`${e}: ${t}`),this.name="AssistantSetupError"}}let l=(e,t)=>{throw new AssistantSetupError(e,t)},p=(e,t,s)=>{for(let i of((null===t||"object"!=typeof t||Array.isArray(t))&&l(s,"expected an object; omit an entry to remove it"),Object.keys(t)))Object.hasOwn(e,i)||l(`${s}.${i}`,"not declared in the spec; remove this key")},c=(e,t)=>Object.hasOwn(e,t)?e[t]:void 0,d=(e,t,s)=>(void 0!==e&&"string"!=typeof e&&l(`${s}.description`,"expected a string"),e??t),u=(e,t,s)=>(void 0!==e&&!1!==e&&l(`${s}.allowDryRuns`,"can only disable dry-runs; omit this flag or set false"),!1!==e&&t);export const applyAssistantSetup=(f,m,b)=>{if(null===b)return null;let y=a(f,m),g=f.declarations;p({entities:{},deletable:{},writable:{},childRecipes:{},replaceRecipes:{},screenshots:{},actions:{},instructions:"",ai:{}},b,"assistant"),p(y.entities,b.entities,"assistant.entities"),p(y.deletable,b.deletable,"assistant.deletable"),p(y.writable,b.writable,"assistant.writable"),p(y.actions,b.actions,"assistant.actions"),p(y.screenshots,b.screenshots,"assistant.screenshots");let h=Object.fromEntries(Object.entries(b.entities).map(([e,t])=>{let s=`assistant.entities.${e}`;p(y.entities[e],t,s);let n=g.entities[e];return[e,Object.entries(t).map(([e,t])=>{p({description:""},t,`${s}.${e}`);let o=n.find(t=>t.source===e),r=d(t.description,o.valueDescription,`${s}.${e}`);return{...o,valueDescription:r,description:i(r,o.enumValues),describedByManifest:void 0!==t.description||o.describedByManifest}})]})),v=(e,t,s)=>l(`assistant.entities.${e}`,`conflicting sources ${t} and ${s}`),$=n([],c(h,"AnyDomainEntity")??[],()=>void 0,v),w=new Map([["AnyDomainEntity",$]]);for(let e of Object.keys(f.aliases))"AnyDomainEntity"!==e&&w.set(e,n([$],c(h,e)??[],()=>void 0,v));for(let e of f.entityTypes){let t=Object.entries(f.aliases).filter(([t,s])=>"AnyDomainEntity"!==t&&s.includes(e));w.set(e,n([$,...t.map(([e])=>w.get(e)??[])],c(h,e)??[],t=>g.enumValues[e]?.[t],v))}let j=Object.fromEntries([...w].map(([e,t])=>[e,t.map(t=>o(t,c(h,e)??[]))])),O=new Map,T=new Map;for(let[e,t]of Object.entries(b.writable)){let s=`assistant.writable.${e}`;for(let[i,n]of(p(y.writable[e],t,s),Object.entries(t))){let t=`${s}.${i}`,o=g.writable[e][i];for(let[e,{field:s,options:r,exposedDescription:a}]of(p(Object.values(o.members).some(e=>e.options)?{options:{}}:{},n,t),void 0!==n.options&&(p({validate:!0,allowDryRuns:!1},n.options,`${t}.options`),void 0!==n.options.validate&&!0!==n.options.validate&&l(`${t}.options.validate`,"can only enable validation; omit this flag or set true"),u(n.options.allowDryRuns,!0,`${t}.options`)),Object.entries(o.members))){let p=c(h,e)?.find(e=>e.source===i)?.name??w.get(e)?.find(e=>e.source===i)?.name,d=p??i;void 0===p&&w.get(e)?.some(e=>e.name===i&&e.source!==i)&&l(t,`narrowing leaves ${e}.${i} bound to another read field; retain its original exposure or remove this writable property`);let f=O.get(e)??new Map;if([...f.values()].some(e=>e.name===d&&e.property!==i)&&l(t,`narrowing maps multiple writable properties to ${e}.${d}; retain their original exposures or remove the conflicting property`),f.has(i)||f.set(i,{...s,name:d,...void 0===p?{}:{description:a}}),O.set(e,f),r){let s=o.defaultOptionsName?`${d}Options`:r.options.edgeName;T.get(e)?.some(e=>e.options.edgeName===s||e.options.field===d)&&l(`${t}.options`,`narrowing duplicates options edge ${e}.${s}; retain the original field exposures or remove the conflicting writable declaration`),T.set(e,[...T.get(e)??[],{hints:r.hints,options:{...r.options,field:d,edgeName:s,validate:n.options?.validate??r.options.validate,dryRuns:u(n.options?.allowDryRuns,r.options.dryRuns,`${t}.options`)}}])}}}}for(let[e,t]of Object.entries(f.optionsEdges))for(let s of t){let t=f.writableTypes.find(t=>t.entityType===e)?.fields.find(e=>e.name===s.options.field)?.property;if(s.options.validate&&t&&O.get(e)?.has(t)&&!T.get(e)?.some(s=>s.options.field===O.get(e)?.get(t)?.name&&s.options.validate)){let s=Object.keys(b.writable).find(s=>Object.hasOwn(b.writable[s],t)&&g.writable[s]?.[t]?.members[e]);l(`assistant.writable.${s}.${t}`,`cannot remove declared validation while another declaration keeps ${e}.${t} writable; remove all writable declarations for it`)}}let x=e=>{p(y[e],b[e],`assistant.${e}`);let t=new Map;for(let[s,i]of Object.entries(b[e])){let n=`assistant.${e}.${s}`;p({groups:{}},i,n),p(y[e][s].groups,i.groups,`${n}.groups`);let o=g[e][s],a=Object.entries(i.groups).map(([e,t])=>{let s=`${n}.groups.${e}`;p({description:"",allowDryRuns:!1},t,s);let i=o.groups.find(t=>t.instanceName===e);return{...i,description:d(t.description,i.description,s),dryRuns:u(t.allowDryRuns,i.dryRuns,s)}});for(let e of f.entityTypes.includes(s)?[s]:f.aliases[s]??[]){let s=t.get(e);t.set(e,{groups:[...s?.groups??[],...a],hints:r.filter(e=>o.hints.includes(e)||s?.hints.includes(e))})}}return Object.fromEntries(f.entityTypes.flatMap(e=>{let s=t.get(e);return s?.groups.length?[[e,s]]:[]}))},E=new Map;for(let[e,t]of Object.entries(b.screenshots)){let s=`assistant.screenshots.${e}`;p(y.screenshots[e],t,s);let i=f.entityTypes.includes(e)?[e]:f.aliases[e]??[];for(let[n,o]of Object.entries(t)){let t=`${s}.${n}`;p({description:""},o,t);let r=g.screenshots[e].find(e=>e.instanceName===n),a={...r,description:d(o.description,r.description,t)??r.description};for(let e of i)E.set(e,[...E.get(e)??[],a])}}for(let[e,t]of Object.entries(b.deletable))p({},t,`assistant.deletable.${e}`);let R=new Set(Object.keys(b.deletable).flatMap(e=>f.entityTypes.includes(e)?[e]:f.aliases[e]??[])),M=f.actionFields.flatMap(e=>{let t=c(b.actions,e.actionName);if(void 0===t)return[];let s=`assistant.actions.${e.actionName}`;return p({description:""},t,s),[{...e,description:d(t.description,e.description,s)}]}),D=m;if(m){void 0!==b.ai&&p({...m.ai,maxThreadSize:void 0},b.ai,"assistant.ai");let i={...m.ai,...Object.fromEntries(Object.entries(b.ai??{}).filter(([,e])=>void 0!==e))};e.includes(i.provider)&&t.includes(i.model)&&s.includes(i.reasoning)||l("assistant.ai","expected a supported provider, model and reasoning level"),void 0!==i.maxThreadSize&&(!Number.isInteger(i.maxThreadSize)||i.maxThreadSize<=0)&&l("assistant.ai.maxThreadSize","expected a positive whole number of input tokens"),void 0!==b.instructions&&"string"!=typeof b.instructions&&l("assistant.instructions","expected a string"),D={instructions:""===b.instructions?null:b.instructions??m.instructions,ai:i}}return{resolved:{...f,fields:j,deletableTypes:f.entityTypes.filter(e=>R.has(e)),writableTypes:f.entityTypes.flatMap(e=>{let t=[...O.get(e)?.values()??[]];return t.length?[{entityType:e,fields:t}]:[]}),optionsEdges:Object.fromEntries(T),childRecipes:x("childRecipes"),replaceRecipes:x("replaceRecipes"),screenshots:Object.fromEntries(f.entityTypes.flatMap(e=>{let t=E.get(e);return t?[[e,t]]:[]})),actionFields:M},settings:D}};