@salsita-ai/sdk 0.50.0-develop.6d8967bc99 → 0.50.0-develop.70dc8d05b6

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 (670) hide show
  1. package/README.md +3 -3
  2. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  3. package/dist/application-spec/errors/diagnostic-codes.d.ts +9 -0
  4. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  5. package/dist/application-spec/errors/diagnostic-messages.d.ts +12 -0
  6. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  7. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +8 -1
  8. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  9. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  10. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +56 -56
  11. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +1 -1
  12. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  13. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  14. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  15. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  16. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +11 -11
  17. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +1 -1
  18. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  19. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  20. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  21. package/dist/application-spec/generate-application/code/templates/globals.js +5 -4
  22. package/dist/application-spec/generate-application/code/templates/index.d.ts +0 -7
  23. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  24. package/dist/application-spec/generate-application/code/templates/package-json.js +1 -1
  25. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +66 -42
  26. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +8 -2
  27. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +13 -14
  28. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +6 -8
  29. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +4 -3
  30. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -2
  31. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +1 -3
  32. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +1 -3
  33. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +2 -1
  34. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  35. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +2 -4
  36. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  37. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  38. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +16 -3
  39. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  40. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  41. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  42. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +7 -2
  43. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  44. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  45. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  46. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  47. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  48. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  49. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  50. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  51. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  52. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  53. package/dist/client/authorized-client.d.ts +3 -1
  54. package/dist/client/authorized-client.js +1 -1
  55. package/dist/client/contract.d.ts +34 -0
  56. package/dist/client/contract.js +1 -1
  57. package/dist/client/index.d.ts +2 -2
  58. package/dist/client/index.js +1 -1
  59. package/dist/client/local-authorized-client.d.ts +3 -1
  60. package/dist/client/local-authorized-client.js +1 -1
  61. package/dist/client/memory-authorized-client.d.ts +3 -1
  62. package/dist/client/memory-authorized-client.js +1 -1
  63. package/dist/client/phoenix-api.d.ts +215 -2
  64. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  65. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  66. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  67. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +92 -3
  68. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  69. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  70. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +14 -4
  71. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  72. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  73. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  74. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  75. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  76. package/dist/configurator/common/configurator-interface.d.ts +5 -1
  77. package/dist/configurator/common/configurator-interface.js +1 -1
  78. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +6 -0
  79. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  80. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  81. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +2 -1
  82. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  83. package/dist/configurator/ui/assistant/AssistantThread.d.ts +6 -2
  84. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  85. package/dist/configurator/ui/assistant/thread-items.d.ts +13 -2
  86. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  87. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +1 -75
  88. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  89. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  90. package/dist/configurator/ui/configurator-layout/universal/DesktopSidebar.d.ts +92 -0
  91. package/dist/configurator/ui/configurator-layout/universal/DesktopSidebar.js +16 -0
  92. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  93. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  94. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  95. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  96. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  97. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  98. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +16 -19
  99. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  100. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  101. package/dist/docs/index.json +11 -1
  102. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  103. package/dist/docs/layouts/custom-layout.mdx +981 -0
  104. package/dist/docs/other-features/side-effects.mdx +8 -11
  105. package/dist/docs/other-features/violation-messages.mdx +52 -56
  106. package/dist/docs/phoenix/configurator-interface.mdx +105 -65
  107. package/dist/docs/phoenix/deployments.mdx +1 -1
  108. package/dist/docs/phoenix/domain-model.mdx +4 -0
  109. package/dist/docs/phoenix/expression-context.mdx +11 -3
  110. package/dist/docs/phoenix/getting-started.mdx +1 -1
  111. package/dist/docs/phoenix/phoenix-cli.mdx +43 -47
  112. package/dist/docs/phoenix/project-structure.mdx +16 -10
  113. package/dist/docs/phoenix/quickstart.mdx +2 -2
  114. package/dist/docs/phoenix/sdk-builder-workflow.mdx +8 -8
  115. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  116. package/dist/docs/phoenix/webhooks.mdx +2 -2
  117. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  118. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -11
  119. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  120. package/dist/domain/admin-domain/index.d.ts +8 -3
  121. package/dist/domain/admin-domain/index.js +1 -1
  122. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  123. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  124. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  125. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  126. package/dist/domain/application/application-config.d.ts +7 -26
  127. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  128. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  129. package/dist/domain/application/assistant/assistant-manifest.d.ts +11 -1
  130. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +38 -2
  131. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  132. package/dist/domain/application/assistant/assistant-value-type.js +1 -1
  133. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  134. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  135. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  136. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  137. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  138. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +1 -11
  139. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  140. package/dist/domain/application/assistant/index.d.ts +6 -1
  141. package/dist/domain/application/assistant/index.js +1 -1
  142. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  143. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  144. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  145. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  146. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  147. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  148. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  149. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  150. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  151. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  152. package/dist/domain/application/assistant-mutations.d.ts +2 -1
  153. package/dist/domain/application/assistant-mutations.js +1 -1
  154. package/dist/domain/application/assistant-recipe-groups.d.ts +1 -1
  155. package/dist/domain/application/configurator-builder.d.ts +2 -2
  156. package/dist/domain/application/configurator-builder.js +1 -1
  157. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  158. package/dist/domain/application/index.d.ts +2 -6
  159. package/dist/domain/application/index.js +1 -1
  160. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  161. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  162. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  163. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  164. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  165. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  166. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  167. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  168. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  169. package/dist/domain/application/published-data/map-published-data.d.ts +7 -3
  170. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  171. package/dist/domain/available-system-components.js +1 -1
  172. package/dist/domain/core/action/action-factory.d.ts +11 -0
  173. package/dist/domain/core/{action.d.ts → action/action.d.ts} +21 -16
  174. package/dist/domain/core/action/index.d.ts +2 -0
  175. package/dist/domain/core/action/index.js +1 -0
  176. package/dist/domain/core/component/domain-component-optic.d.ts +29 -40
  177. package/dist/domain/core/component/domain-component-optic.js +2 -2
  178. package/dist/domain/core/component/legacy-filter.d.ts +2 -17
  179. package/dist/domain/core/component/system-component-filter.d.ts +36 -18
  180. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  181. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  182. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  183. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  184. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  185. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  186. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  187. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  188. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  189. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  190. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  191. package/dist/domain/core/data-schema/data-schema.js +1 -0
  192. package/dist/domain/core/data-schema/index.d.ts +7 -0
  193. package/dist/domain/core/data-schema/index.js +1 -0
  194. package/dist/domain/core/domain-factory.d.ts +1 -1
  195. package/dist/domain/core/domain.d.ts +2 -2
  196. package/dist/domain/core/emission/index.d.ts +8 -0
  197. package/dist/domain/core/emission/index.js +1 -0
  198. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  199. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  200. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  201. package/dist/domain/core/emission/state-emission.js +1 -0
  202. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  203. package/dist/domain/core/emission/state-update-emission.js +1 -0
  204. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  205. package/dist/domain/core/emission/state-validation-result.js +1 -0
  206. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  207. package/dist/domain/core/emission/transformation-log.js +1 -0
  208. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  209. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  210. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  211. package/dist/domain/core/emission/transformer-log.js +1 -0
  212. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  213. package/dist/domain/core/emission/transformer-phase.js +1 -0
  214. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  215. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  216. package/dist/domain/core/expression/constant-expressions.d.ts +16 -8
  217. package/dist/domain/core/expression/constant-expressions.js +1 -1
  218. package/dist/domain/core/expression/custom-expression.d.ts +21 -8
  219. package/dist/domain/core/expression/custom-expression.js +1 -1
  220. package/dist/domain/core/expression/expression.d.ts +15 -17
  221. package/dist/domain/core/expression/index.d.ts +1 -2
  222. package/dist/domain/core/expression/index.js +1 -1
  223. package/dist/domain/core/index.d.ts +5 -1
  224. package/dist/domain/core/index.js +1 -1
  225. package/dist/domain/core/invariant/custom-invariants.d.ts +8 -16
  226. package/dist/domain/core/invariant/index.d.ts +1 -1
  227. package/dist/domain/core/invariant/index.js +1 -1
  228. package/dist/domain/core/invariant/invariants.d.ts +4 -70
  229. package/dist/domain/core/invariant/invariants.js +1 -1
  230. package/dist/domain/core/invariant/violation.d.ts +1 -1
  231. package/dist/domain/core/recipe/index.d.ts +1 -0
  232. package/dist/domain/core/recipe/index.js +1 -0
  233. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  234. package/dist/domain/core/recipe/recipes.js +1 -0
  235. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  236. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  237. package/dist/domain/{relations → core/relation}/component-factories.d.ts +1 -1
  238. package/dist/domain/core/relation/component-factories.js +1 -0
  239. package/dist/domain/{relations → core/relation}/composed-of.d.ts +1 -1
  240. package/dist/domain/core/relation/composed-of.js +1 -0
  241. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  242. package/dist/domain/core/relation/index.d.ts +8 -0
  243. package/dist/domain/core/relation/index.js +1 -0
  244. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  245. package/dist/domain/core/relation/indirect-relation.js +1 -0
  246. package/dist/domain/{relations → core/relation}/reference-component.d.ts +4 -3
  247. package/dist/domain/core/relation/reference-component.js +1 -0
  248. package/dist/domain/{relations → core/relation}/reference-field.d.ts +1 -1
  249. package/dist/domain/core/relation/reference-field.js +1 -0
  250. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  251. package/dist/domain/core/relation/relation-factory.js +1 -0
  252. package/dist/domain/core/state/migrations.d.ts +14 -45
  253. package/dist/domain/core/state/migrations.js +1 -1
  254. package/dist/domain/core/state/state.d.ts +1 -1
  255. package/dist/domain/domain-builder.d.ts +2 -5
  256. package/dist/domain/domain-builder.js +1 -1
  257. package/dist/domain/domain-context/action-system/action-system.d.ts +2 -2
  258. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  259. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  260. package/dist/domain/domain-context/action-system/index.js +1 -0
  261. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  262. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  263. package/dist/domain/domain-context/create-transformer.d.ts +1 -1
  264. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +2 -2
  265. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  266. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  267. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  268. package/dist/domain/domain-context/domain-context-systems.d.ts +7 -7
  269. package/dist/domain/domain-context/index.d.ts +8 -18
  270. package/dist/domain/domain-context/index.js +1 -1
  271. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  272. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  273. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -3
  274. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  275. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +1 -1
  276. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  277. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  278. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -3
  279. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  280. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +2 -2
  281. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +2 -2
  282. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  283. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +2 -2
  284. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  285. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  286. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  287. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +2 -2
  288. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  289. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  290. package/dist/domain/domain-context/store-system/index.js +1 -0
  291. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  292. package/dist/domain/domain-context/store-system/store-system.d.ts +2 -35
  293. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  294. package/dist/domain/domain-context/store-system/system-state.d.ts +1 -1
  295. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  296. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +5 -7
  297. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  298. package/dist/domain/domain-context/transformers/chain-builder.d.ts +1 -1
  299. package/dist/domain/domain-context/transformers/context.d.ts +2 -3
  300. package/dist/domain/domain-context/transformers/context.js +1 -1
  301. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  302. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  303. package/dist/domain/domain-context/transformers/index.js +1 -1
  304. package/dist/domain/domain-context/transformers/when-builder.d.ts +2 -3
  305. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  306. package/dist/domain/domain-context/undo-system.d.ts +2 -3
  307. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  308. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  309. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  310. package/dist/domain/domain-runtime/access/types.js +1 -1
  311. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  312. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  313. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  314. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  315. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  316. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  317. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  318. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  319. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +19 -23
  320. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  321. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  322. package/dist/domain/domain-runtime/domain-runtime.d.ts +84 -68
  323. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +19 -0
  324. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  325. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  326. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  327. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  328. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  329. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  330. package/dist/domain/domain-runtime/errors/index.js +1 -0
  331. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  332. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  333. package/dist/domain/domain-runtime/index.d.ts +1 -0
  334. package/dist/domain/domain-runtime/index.js +1 -1
  335. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  336. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  337. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  338. package/dist/domain/domain-runtime/spec/index.js +1 -1
  339. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  340. package/dist/domain/{core/expression → domain-runtime/spec}/memoize-expression.d.ts +1 -2
  341. package/dist/domain/{application → domain-runtime/spec/module-checks}/element-registration.d.ts +2 -2
  342. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  343. package/dist/domain/{application → domain-runtime/spec/module-checks}/handler-registration.d.ts +1 -1
  344. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  345. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +8 -0
  346. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  347. package/dist/domain/{project-modules → domain-runtime/spec/module-checks}/project-modules.d.ts +8 -17
  348. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  349. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  350. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  351. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  352. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  353. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +15 -0
  354. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  355. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  356. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  357. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  358. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  359. package/dist/domain/{actions → domain-runtime/spec}/prepare-action-implementations.d.ts +1 -1
  360. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  361. package/dist/domain/{core/expression → domain-runtime/spec}/prepare-domain-expressions.d.ts +1 -1
  362. package/dist/domain/domain-runtime/spec/selectors.d.ts +5 -6
  363. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  364. package/dist/domain/domain-runtime/spec/types.d.ts +3 -2
  365. package/dist/domain/{system-components → extensions}/child-entity-recipe-hierarchy.d.ts +1 -1
  366. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  367. package/dist/domain/{system-components → extensions}/common/angle-indicator-schema.d.ts +1 -1
  368. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  369. package/dist/domain/extensions/common/index.d.ts +4 -0
  370. package/dist/domain/extensions/common/index.js +1 -0
  371. package/dist/domain/{system-components → extensions}/custom-header.d.ts +1 -1
  372. package/dist/domain/extensions/custom-header.js +1 -0
  373. package/dist/domain/{system-components → extensions}/custom-price-footer.js +1 -1
  374. package/dist/domain/{system-components → extensions}/custom-sidebar-footer.d.ts +1 -1
  375. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  376. package/dist/domain/{system-components → extensions}/editable-angle-indicator.d.ts +2 -1
  377. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  378. package/dist/domain/{system-components → extensions}/editable-distance-dimension-indicator.d.ts +2 -1
  379. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  380. package/dist/domain/{system-components → extensions}/editable-offset-indicator.d.ts +2 -1
  381. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  382. package/dist/domain/{system-components → extensions}/editable-size-indicator.d.ts +2 -1
  383. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  384. package/dist/domain/{system-components → extensions}/entity-header.d.ts +1 -1
  385. package/dist/domain/extensions/entity-header.js +1 -0
  386. package/dist/domain/{system-components → extensions}/finalize-component.js +1 -1
  387. package/dist/domain/extensions/index.d.ts +69 -0
  388. package/dist/domain/extensions/index.js +1 -0
  389. package/dist/domain/{system-components → extensions}/list-selector-dimension-indicator.d.ts +2 -1
  390. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  391. package/dist/domain/{system-components → extensions}/property-page.d.ts +1 -1
  392. package/dist/domain/extensions/property-page.js +1 -0
  393. package/dist/domain/{system-components → extensions}/replace-entity-recipe-hierarchy.d.ts +1 -1
  394. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  395. package/dist/domain/{system-components → extensions}/scene-entity-add-fab.d.ts +1 -1
  396. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  397. package/dist/domain/{system-components → extensions}/scene-entity-delete-fab.d.ts +1 -1
  398. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  399. package/dist/domain/{system-components → extensions}/scene-entity-html-hotspot.d.ts +1 -1
  400. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  401. package/dist/domain/{system-components → extensions}/scene-entity-navigation-hotspot.d.ts +1 -1
  402. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  403. package/dist/domain/{system-components → extensions}/scene-entity-object-html-hotspot.d.ts +1 -1
  404. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  405. package/dist/domain/{system-components → extensions}/scene-entity-select-hotspot.d.ts +1 -1
  406. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  407. package/dist/domain/{system-components → extensions}/sketching-edit.d.ts +1 -1
  408. package/dist/domain/extensions/sketching-edit.js +1 -0
  409. package/dist/domain/{system-components → extensions}/summary-component.js +1 -1
  410. package/dist/domain/{system-components → extensions}/tool-menu-fab.d.ts +1 -1
  411. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  412. package/dist/domain/{system-components → extensions}/toolbar.d.ts +1 -1
  413. package/dist/domain/extensions/toolbar.js +1 -0
  414. package/dist/domain/index.d.ts +2 -8
  415. package/dist/domain/index.js +1 -1
  416. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  417. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  418. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +28 -19
  419. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  420. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  421. package/dist/domain/mocks/create-mock-domain.js +1 -1
  422. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  423. package/dist/domain/projections/blender-projections/blender-projections.d.ts +1 -2
  424. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  425. package/dist/domain/projections/collision-projections.d.ts +1 -1
  426. package/dist/domain/projections/composition-projections.d.ts +1 -1
  427. package/dist/domain/projections/composition-projections.js +1 -1
  428. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  429. package/dist/domain/projections/index.d.ts +1 -1
  430. package/dist/domain/projections/position-projections.d.ts +1 -1
  431. package/dist/domain/projections/projected-entities-projections.d.ts +1 -1
  432. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  433. package/dist/domain/projections/validation-projections.d.ts +3 -19
  434. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  435. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  436. package/dist/domain/system-components/common/index.d.ts +0 -4
  437. package/dist/domain/system-components/common/index.js +1 -1
  438. package/dist/domain/system-components/common/recipes.d.ts +1 -2
  439. package/dist/domain/system-components/index.d.ts +0 -68
  440. package/dist/domain/system-components/index.js +1 -1
  441. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  442. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  443. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  444. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  445. package/dist/domain/utils/eval-cache.d.ts +1 -1
  446. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  447. package/dist/domain/utils/memo-eval.d.ts +2 -2
  448. package/dist/editor/domain-editors/use-implementation-files.d.ts +1 -2
  449. package/dist/editor/mocks/EditorMockContext.js +1 -1
  450. package/dist/i18n/locales/cs/messages.js +1 -1
  451. package/dist/i18n/locales/da/messages.js +1 -1
  452. package/dist/i18n/locales/de/messages.js +1 -1
  453. package/dist/i18n/locales/de-AT/messages.js +1 -1
  454. package/dist/i18n/locales/en/messages.js +1 -1
  455. package/dist/i18n/locales/en-AU/messages.js +1 -1
  456. package/dist/i18n/locales/en-GB/messages.js +1 -1
  457. package/dist/i18n/locales/es/messages.js +1 -1
  458. package/dist/i18n/locales/fr/messages.js +1 -1
  459. package/dist/i18n/locales/hu/messages.js +1 -1
  460. package/dist/i18n/locales/it/messages.js +1 -1
  461. package/dist/i18n/locales/nl/messages.js +1 -1
  462. package/dist/i18n/locales/pl/messages.js +1 -1
  463. package/dist/i18n/locales/pt/messages.js +1 -1
  464. package/dist/i18n/locales/ro/messages.js +1 -1
  465. package/dist/i18n/locales/sk/messages.js +1 -1
  466. package/dist/i18n/locales/tr/messages.js +1 -1
  467. package/dist/legacy/domain-cli/gen/configurator-builder.js +13 -12
  468. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  469. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  470. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  471. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  472. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  473. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  474. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  475. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  476. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  477. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  478. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +1 -0
  479. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  480. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  481. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  482. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  483. package/dist/phoenix/commands/init.d.ts +4 -4
  484. package/dist/phoenix/commands/init.js +1 -1
  485. package/dist/phoenix/commands/prettier.js +1 -1
  486. package/dist/phoenix/utils/git/index.d.ts +1 -0
  487. package/dist/phoenix/utils/git/index.js +1 -0
  488. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  489. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  490. package/dist/phoenix/utils/index.d.ts +1 -0
  491. package/dist/phoenix/utils/index.js +1 -1
  492. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +2 -0
  493. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  494. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  495. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +53 -36
  496. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  497. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +9 -9
  498. package/dist/react-sdk/domain-context/index.d.ts +1 -1
  499. package/dist/react-sdk/domain-context/index.js +1 -1
  500. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +6 -0
  501. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  502. package/dist/ui-sdk/theme/types.d.ts +1 -1
  503. package/dist/webhook/builders/common.d.ts +5 -0
  504. package/dist/webhook/builders/webhook-builder.js +1 -1
  505. package/package.json +3 -3
  506. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  507. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  508. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  509. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  510. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  511. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  512. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  513. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  514. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  515. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  516. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  517. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  518. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  519. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  520. package/dist/domain/actions/action-factory.d.ts +0 -10
  521. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  522. package/dist/domain/application/element-registration.js +0 -1
  523. package/dist/domain/application/handler-registration.js +0 -1
  524. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -23
  525. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  526. package/dist/domain/application/resource-builder.d.ts +0 -13
  527. package/dist/domain/application/resource-builder.js +0 -1
  528. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -55
  529. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  530. package/dist/domain/project-modules/index.d.ts +0 -1
  531. package/dist/domain/project-modules/index.js +0 -1
  532. package/dist/domain/project-modules/project-modules.js +0 -1
  533. package/dist/domain/relations/all-of-type-relation.d.ts +0 -30
  534. package/dist/domain/relations/all-of-type-relation.js +0 -1
  535. package/dist/domain/relations/component-factories.js +0 -1
  536. package/dist/domain/relations/composed-of.js +0 -1
  537. package/dist/domain/relations/direct-relation.d.ts +0 -27
  538. package/dist/domain/relations/indirect-relation.d.ts +0 -78
  539. package/dist/domain/relations/indirect-relation.js +0 -1
  540. package/dist/domain/relations/reference-component.js +0 -1
  541. package/dist/domain/relations/relation-factory.d.ts +0 -17
  542. package/dist/domain/relations/relation-factory.js +0 -1
  543. package/dist/domain/relations/relation-implementation.d.ts +0 -5
  544. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  545. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  546. package/dist/domain/system-components/custom-header.js +0 -1
  547. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  548. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  549. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  550. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  551. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  552. package/dist/domain/system-components/entity-header.js +0 -1
  553. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  554. package/dist/domain/system-components/property-page.js +0 -1
  555. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  556. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  557. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  558. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  559. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  560. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  561. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  562. package/dist/domain/system-components/sketching-edit.js +0 -1
  563. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  564. package/dist/domain/system-components/toolbar.js +0 -1
  565. /package/dist/domain/{actions → core/action}/action-factory.js +0 -0
  566. /package/dist/domain/core/{action.js → action/action.js} +0 -0
  567. /package/dist/domain/{relations/reference-field.js → core/data-schema/data-cell-value.js} +0 -0
  568. /package/dist/domain/{relations/relation-implementation.js → core/data-schema/data-schema-array-field.js} +0 -0
  569. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  570. /package/dist/domain/{core/expression → domain-runtime/spec}/memoize-expression.js +0 -0
  571. /package/dist/domain/{core/expression → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  572. /package/dist/domain/{system-components → extensions}/angle-indicator.d.ts +0 -0
  573. /package/dist/domain/{system-components → extensions}/angle-indicator.js +0 -0
  574. /package/dist/domain/{system-components → extensions}/attribute-switch.d.ts +0 -0
  575. /package/dist/domain/{system-components → extensions}/attribute-switch.js +0 -0
  576. /package/dist/domain/{system-components → extensions}/autorotate-camera-component.d.ts +0 -0
  577. /package/dist/domain/{system-components → extensions}/autorotate-camera-component.js +0 -0
  578. /package/dist/domain/{system-components → extensions}/basic-sidebar-footer.d.ts +0 -0
  579. /package/dist/domain/{system-components → extensions}/basic-sidebar-footer.js +0 -0
  580. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  581. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.js +0 -0
  582. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  583. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.js +0 -0
  584. /package/dist/domain/{system-components → extensions}/canvas-config.d.ts +0 -0
  585. /package/dist/domain/{system-components → extensions}/canvas-config.js +0 -0
  586. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  587. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.js +0 -0
  588. /package/dist/domain/{system-components → extensions}/canvas-padding.d.ts +0 -0
  589. /package/dist/domain/{system-components → extensions}/canvas-padding.js +0 -0
  590. /package/dist/domain/{system-components → extensions}/canvas-preset-environment.d.ts +0 -0
  591. /package/dist/domain/{system-components → extensions}/canvas-preset-environment.js +0 -0
  592. /package/dist/domain/{system-components → extensions}/client-side-image.d.ts +0 -0
  593. /package/dist/domain/{system-components → extensions}/client-side-image.js +0 -0
  594. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  595. /package/dist/domain/{system-components → extensions}/color-value.js +0 -0
  596. /package/dist/domain/{system-components → extensions}/common/dimension-indicator-schema.d.ts +0 -0
  597. /package/dist/domain/{system-components → extensions}/common/dimension-indicator-schema.js +0 -0
  598. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  599. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  600. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  601. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  602. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  603. /package/dist/domain/{system-components → extensions}/dimension-indicator.d.ts +0 -0
  604. /package/dist/domain/{system-components → extensions}/dimension-indicator.js +0 -0
  605. /package/dist/domain/{system-components → extensions}/exit-tool-mode-fab.d.ts +0 -0
  606. /package/dist/domain/{system-components → extensions}/exit-tool-mode-fab.js +0 -0
  607. /package/dist/domain/{system-components → extensions}/finalize-action.d.ts +0 -0
  608. /package/dist/domain/{system-components → extensions}/finalize-action.js +0 -0
  609. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  610. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  611. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.js +0 -0
  612. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  613. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.js +0 -0
  614. /package/dist/domain/{system-components → extensions}/fixed-header.d.ts +0 -0
  615. /package/dist/domain/{system-components → extensions}/fixed-header.js +0 -0
  616. /package/dist/domain/{system-components → extensions}/floating-header.d.ts +0 -0
  617. /package/dist/domain/{system-components → extensions}/floating-header.js +0 -0
  618. /package/dist/domain/{system-components → extensions}/hidden-header.d.ts +0 -0
  619. /package/dist/domain/{system-components → extensions}/hidden-header.js +0 -0
  620. /package/dist/domain/{system-components → extensions}/hidden-sidebar-footer.d.ts +0 -0
  621. /package/dist/domain/{system-components → extensions}/hidden-sidebar-footer.js +0 -0
  622. /package/dist/domain/{system-components → extensions}/horizontal-tabs.d.ts +0 -0
  623. /package/dist/domain/{system-components → extensions}/horizontal-tabs.js +0 -0
  624. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  625. /package/dist/domain/{system-components → extensions}/multilingual-text-value.js +0 -0
  626. /package/dist/domain/{system-components → extensions}/navigation-steps.d.ts +0 -0
  627. /package/dist/domain/{system-components → extensions}/navigation-steps.js +0 -0
  628. /package/dist/domain/{system-components → extensions}/offset-anchors.d.ts +0 -0
  629. /package/dist/domain/{system-components → extensions}/offset-anchors.js +0 -0
  630. /package/dist/domain/{system-components → extensions}/offset-indicator.d.ts +0 -0
  631. /package/dist/domain/{system-components → extensions}/offset-indicator.js +0 -0
  632. /package/dist/domain/{system-components → extensions}/offset.d.ts +0 -0
  633. /package/dist/domain/{system-components → extensions}/offset.js +0 -0
  634. /package/dist/domain/{system-components → extensions}/other-action.d.ts +0 -0
  635. /package/dist/domain/{system-components → extensions}/other-action.js +0 -0
  636. /package/dist/domain/{system-components → extensions}/read-sidebar-footer.d.ts +0 -0
  637. /package/dist/domain/{system-components → extensions}/read-sidebar-footer.js +0 -0
  638. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  639. /package/dist/domain/{system-components → extensions}/rotatable.js +0 -0
  640. /package/dist/domain/{system-components → extensions}/rotation-handle.d.ts +0 -0
  641. /package/dist/domain/{system-components → extensions}/rotation-handle.js +0 -0
  642. /package/dist/domain/{system-components → extensions}/save-template-thumbnail.d.ts +0 -0
  643. /package/dist/domain/{system-components → extensions}/save-template-thumbnail.js +0 -0
  644. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  645. /package/dist/domain/{system-components → extensions}/scene-entity-animation.js +0 -0
  646. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  647. /package/dist/domain/{system-components → extensions}/scene-entity-control.js +0 -0
  648. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  649. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.js +0 -0
  650. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  651. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.js +0 -0
  652. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  653. /package/dist/domain/{system-components → extensions}/selectable-component.js +0 -0
  654. /package/dist/domain/{system-components → extensions}/sidebar-tabs.d.ts +0 -0
  655. /package/dist/domain/{system-components → extensions}/sidebar-tabs.js +0 -0
  656. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  657. /package/dist/domain/{system-components → extensions}/simple-summary.js +0 -0
  658. /package/dist/domain/{system-components → extensions}/size.d.ts +0 -0
  659. /package/dist/domain/{system-components → extensions}/size.js +0 -0
  660. /package/dist/domain/{system-components → extensions}/sketching-draw.d.ts +0 -0
  661. /package/dist/domain/{system-components → extensions}/sketching-draw.js +0 -0
  662. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  663. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  664. /package/dist/domain/{system-components → extensions}/text-value.js +0 -0
  665. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  666. /package/dist/domain/{system-components → extensions}/tool-controls.js +0 -0
  667. /package/dist/domain/{system-components → extensions}/universal-sidebar-footer.d.ts +0 -0
  668. /package/dist/domain/{system-components → extensions}/universal-sidebar-footer.js +0 -0
  669. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
  670. /package/dist/domain/{system-components → extensions}/view-controls.js +0 -0
@@ -1,36 +1,6 @@
1
1
  import{renderAgentSkill as e}from"./agent-skill.js";import{sdkGuidanceSections as t}from"./sdk-content.js";let n=`Guide the client through five stages: a representative first slice, the overall configuration flow, iterative options and features, finalization, and a complete review. Make the client comfortable, informed, and in control while taking responsibility for platform research, implementation, and verification.
2
2
 
3
- “Client” means the person creating the configurator. “Configurator user” means its intended user, such as a buyer, salesperson, or designer. Tailor the experience to that audience; do not assume a purchasing journey.`,i=`## Foundations
4
-
5
- ### Communicate the journey and expectations
6
-
7
- Explain all five stages at the start in plain language. Before each stage or increment, say what you will work on, what the client will be able to try, what remains for later, and when you will return for feedback. During longer work, give meaningful progress updates, including what is already usable.
8
-
9
- Read supplied information before asking questions. Treat an interview request as permission to gather necessary information throughout the work, not a requirement to ask about every decision before building. Use source-backed facts directly. Choose reversible design defaults yourself, state them briefly, and proceed; do not ask permission to use an illustrated starting configuration, follow supplied branding, or choose a standard Phoenix control.
10
-
11
- Before asking, decide whether the answer would materially change the work due now and whether a useful slice can proceed without it. Ask only for a blocking ambiguity, a consequential business decision needed now, or a material departure from the accepted design. Otherwise record the open issue for the relevant stage. When a question is necessary, explain its consequence and recommend an answer; keep it focused. A client's agreement should lead to the promised work, not another routine approval question. Teach relevant Phoenix approaches through the client's product, without asking them to choose SDK components or operate developer tools.
12
-
13
- At each preview, explain what changed, give a focused action to try, and recommend the next step conditional on feedback. End the turn and wait before expanding the agreed increment unless the client requested a larger autonomous batch. Let them redirect, revisit decisions, or pause; overall scope approval does not remove these feedback points.
14
-
15
- ### Study Phoenix and use its intended patterns
16
-
17
- Before generating the first slice, study the complete Phoenix documentation available for the project's installed version, including UX guidance and documented examples. Discover the full inventory with \`pnpm phoenix docs -l\` and read each document with \`pnpm phoenix docs -r <returned-path>\`; use \`pnpm phoenix docs -s '<topic>'\` to locate material again. In hosted environments, use the available documentation list/search/read tools instead. An index or search result alone is not a completed study. Track coverage in the specification so you can resume without rereading unchanged material.
18
-
19
- Use Phoenix's existing components, features, and supported workflows whenever they provide the required capability. Guide the client toward those approaches and explain their benefits. Use custom implementations only when the required capability is unavailable: verify the gap in the documentation, explain it and the proposed approach to the client, and keep the solution compatible with Phoenix's architecture. Missing documentation is not proof that a feature is unavailable.
20
-
21
- Revisit the relevant implementation examples as you build. [Phoenix UX guidance](references/phoenix-ux.md) provides navigation back to common topics; platform usage belongs in Phoenix docs rather than a parallel manual in this skill. Disclose inaccessible documentation and the resulting uncertainty instead of claiming full coverage or inventing APIs. Do not assume access to Phoenix's source repository or internal processes.
22
-
23
- ### Maintain a living Markdown specification
24
-
25
- After inspecting the materials, create \`configurator-spec.md\` in the intended project, or update its existing equivalent. Keep it outside public/user-facing assets and use it as the single record of:
26
-
27
- - Product scope, intended users, source materials, assets, and confirmed product facts.
28
- - Configurable options, dependencies, compatibility rules, dimensions, and commercial rules.
29
- - Unknowns, conflicting information, proposals, agent-chosen design defaults, and explicitly agreed provisional business assumptions, distinguished from confirmed facts and client-approved decisions.
30
- - Accepted visual direction, navigation, interaction patterns, and finalization decisions, with their rationale.
31
- - The five-stage plan, current stage, implemented and remaining scope, documentation coverage, verification results, and next increment.
32
-
33
- Update it whenever new information, a decision, or completed work changes the plan. Keep it concise and current, not a conversation transcript. Read it when resuming, inspect the existing draft, and briefly remind the client where things stand. Preserve accepted behavior and styling; explain and agree on material departures before applying them. The specification supports collaboration without making every edit an approval step.`,a=`## 1. Gather inputs and present a representative first slice
3
+ “Client” means the person creating the configurator. “Configurator user” means its intended user, such as a buyer, salesperson, or designer. Tailor the experience to that audience; do not assume a purchasing journey.`,i=`## 1. Gather inputs and present a representative first slice
34
4
 
35
5
  If no materials are supplied, explain the journey briefly and ask only for existing product documents, prices, pictures, drawings, models, or a plain-language description. Accept incomplete material; do not combine this opening with a setup questionnaire. If materials are already supplied, inspect them first.
36
6
 
@@ -38,19 +8,19 @@ Use [Product discovery](references/product-discovery.md) to extract facts and id
38
8
 
39
9
  Inspect the working environment internally: intended project, existing work, attachment access, editing, preview, and verification capabilities. Clarify ambiguous project identity before mutation. If a required capability is missing, do useful analysis, name the blocker, and distinguish a proposal from an implemented result.
40
10
 
41
- Complete the documentation study and start the specification before implementation. Explain the first slice and the likely milestones that follow. Build a limited but representative configuration with a meaningful visible interaction. Establish visual quality immediately: theme the UI for the product and brand, and give the 3D scene appropriate materials, lighting, background, and camera framing using Phoenix's supported features. The product must look right, not merely be present; apply Visual inspection before presenting the slice. Limited scope should not mean an arbitrary or visually neglected demo.
11
+ Complete the core documentation study and start the specification before implementation. Explain the first slice and the likely milestones that follow. Build a limited but representative configuration with a meaningful visible interaction. Establish visual quality immediately: theme the UI for the product and brand, and give the 3D scene appropriate materials, lighting, background, and camera framing using Phoenix's supported features. The product must look right, not merely be present; apply Visual inspection before presenting the slice. Limited scope should not mean an arbitrary or visually neglected demo.
42
12
 
43
13
  Use confirmed information and supplied assets. Keep a known arrangement when layout limits are unknown; settle only questions that block this slice. Defer quote fields, delivery areas, tax handling, and other finalization details unless they prevent this preview from being useful. An unresolved price component can remain out of the slice rather than prompting an early commercial interview. When supplied models need conversion or repair before use, follow [Asset conversion](references/asset-conversion.md). Missing assets may require an agreed temporary proxy or a non-3D draft, clearly described as such, rather than invented production geometry.
44
14
 
45
15
  Once the materials establish a usable scope, the next handoff should normally be the first preview. Announce reversible choices together and build: “I'll use the illustrated sideboard and the brief's styling, with body and door finish controls. We'll review the appearance in the preview; delivery details can wait until finalization.” Invite correction without ending the turn to seek approval of these defaults.
46
16
 
47
- Start the preview as soon as it is useful, share its address once reachable, and keep it available through subsequent work where the environment permits. Present what the client can try and seek feedback on product representation and visual direction before moving on.`,o=`## 2. Plan the complete configuration experience
17
+ Start the preview as soon as it is useful, share its address once reachable, and keep it available through subsequent work where the environment permits. Present what the client can try and seek feedback on product representation and visual direction before moving on.`,a=`## 2. Plan the complete configuration experience
48
18
 
49
19
  Identify all the main things users need to configure across the intended scope, including dependencies and unresolved areas. Group and order decisions by what users understand and choose first, and by actual product dependencies. Cover the whole experience in the plan without requiring every detailed business rule to be settled now.
50
20
 
51
21
  Use the Phoenix UX guidelines to choose the interaction model. Consider in-scene controls for actions tied to a visible part or location; use the sidebar for simpler or global options, selected-part details, and keeping track of the configuration. When there are more than a few choices, choose meaningful groups or navigation; an ordered flow should reflect a useful decision sequence, not merely the agent's interview stages. Do not force selection or assembly controls onto a simple fixed product.
52
22
 
53
- Record the proposed flow and its platform patterns in the specification. Demonstrate its structure through a representative working path in the preview rather than implementing every option or showing nonfunctional controls. Explain the complete proposed experience in product language, its key tradeoffs, and the implementation order. Get the client's feedback and agreement before expanding individual features.`,r=`## 3. Iteratively add options and features
23
+ Record the proposed flow and its platform patterns in the specification. Demonstrate its structure through a representative working path in the preview rather than implementing every option or showing nonfunctional controls. Explain the complete proposed experience in product language, its key tradeoffs, and the implementation order. Get the client's feedback and agreement before expanding individual features.`,o=`## 3. Iteratively add options and features
54
24
 
55
25
  Implement the experience plan in small, useful increments. Establish the core interactions before multiplying secondary options; revisit priorities when new facts affect feasibility or cause substantial rework. Keep all agreed scope visible in the specification until implemented or explicitly deferred by the client.
56
26
 
@@ -60,13 +30,14 @@ For each increment:
60
30
  2. Revisit the applicable Phoenix examples and implement the chosen increment within the accepted design.
61
31
  3. Exercise the new interaction and affected existing behavior in the running preview, alongside the project's relevant automated checks. Check that controls apply to existing targets, selection changes update the editing context, and global versus per-part changes behave as intended.
62
32
  4. Apply Visual inspection to the configuration that best represents the product, not only to the part you changed.
63
- 5. Update the specification and present the preview for feedback, including any verification gaps and the recommended next increment.
33
+ 5. Run [Appearance review](references/appearance-review.md) when the increment added, removed, or swapped a part, and before any hand-over.
34
+ 6. Update the specification and present the preview for feedback, including any verification gaps and the recommended next increment.
64
35
 
65
36
  Keep the domain rules, scene, selected options, dimensions, and pricing consistent as features become available. Preserve existing selections and accepted UI behavior; adding an option is not permission to redesign the experience. When an agreed rule changes, update the affected model, interface, pricing, and checks together.`,s=`## 4. Implement finalization
66
37
 
67
38
  Establish what completing the configuration means: saving, sharing, requesting a quote, ordering, or another agreed outcome. Determine the information collected, what is submitted and where, what the user receives, and how progress, success, failure, and recovery are communicated. Discover requirements earlier if they affect preceding design decisions, while keeping finalization implementation in this stage.
68
39
 
69
- Use Phoenix's supported finalization mechanisms and implement the agreed journey. Test payloads and outcomes without sending real messages or creating real orders unless explicitly authorized. Keep unfinished rules or commercial assumptions identifiable and prevent them from producing a misleading real quote or order.`,c=`## 5. Review the complete configurator and hand over
40
+ Use Phoenix's supported finalization mechanisms and implement the agreed journey. Test payloads and outcomes without sending real messages or creating real orders unless explicitly authorized. Keep unfinished rules or commercial assumptions identifiable and prevent them from producing a misleading real quote or order.`,r=`## 5. Review the complete configurator and hand over
70
41
 
71
42
  Walk through the whole journey as the intended user: start, explore and change options, recover from mistakes, and finalize. Review product representation, visual quality, flow, discoverability, contextual controls, accessibility, and desktop/mobile behavior against the specification and client feedback.
72
43
 
@@ -74,9 +45,9 @@ Check representative valid and invalid combinations, boundaries, dependent chang
74
45
 
75
46
  Fix gaps and regressions, update the specification, and present the complete experience for the client's final review. State what is implemented, what remains provisional or unverified, and whether it is a working draft or ready for its intended users. Publishing and connecting live systems remain separate actions governed by the client's authorization and the environment's rules; obtain any required approval against the concrete result.
76
47
 
77
- Once the client says they are done, or the configurator is live and they confirm the work is finished, follow the \`phoenix-feedback\` skill to interview them for an evaluation of the run. Ask for it once, and send it only with their approval.`,l=`## Verification evidence
48
+ Once the client says they are done, or the configurator is live and they confirm the work is finished, follow the \`phoenix-feedback\` skill to interview them for an evaluation of the run. Ask for it once, and send it only with their approval.`,d=`## Verification evidence
78
49
 
79
- Use the project's documented verification commands and available tools throughout. Distinguish automated checks, your actual preview observations, and client feedback. A successful build does not prove preview access or interaction quality, and neither automated checks nor interaction checks cover rendered appearance: Visual inspection is the only evidence for it. Missing browser automation need not prevent the client from using a preview: offer a focused check and record their result as client feedback. Disclose anything you cannot test; a generic “OK” is not evidence that an untested interaction works.`,d=`# Asset conversion
50
+ Use the project's documented verification commands and available tools throughout. Distinguish automated checks, your actual preview observations, and client feedback. A successful build does not prove preview access or interaction quality, and neither automated checks nor interaction checks cover rendered appearance: Visual inspection is the only evidence for it. Missing browser automation need not prevent the client from using a preview: offer a focused check and record their result as client feedback. Disclose anything you cannot test; a generic “OK” is not evidence that an untested interaction works.`,c=`# Asset conversion
80
51
 
81
52
  Supplied models usually need work before they can be configured. Conversion is part of the product's appearance, not a preliminary chore: a converted model that is misplaced, incomplete, or stripped of its detail becomes a visible defect that the client sees before anything else.
82
53
 
@@ -103,9 +74,61 @@ Keep full detail on parts that are small, curved, and always visible, such as ca
103
74
 
104
75
  ## Verify every model, not the first one
105
76
 
106
- Inspect each converted model with the project's asset inspection tooling, and check the clauses above for every model in the set. A batch that reuses a script verified on one file still needs each result looked at: source files in one delivery frequently differ in origin, scale, and structure.`,h=`# Phoenix UX guidance
77
+ Inspect each converted model with the project's asset inspection tooling, and check the clauses above for every model in the set. A batch that reuses a script verified on one file still needs each result looked at: source files in one delivery frequently differ in origin, scale, and structure.`,l=`# Appearance review
78
+
79
+ An independent reviewer opens the running configurator, tries to find everything wrong with how it looks, and hands what it finds back to you to challenge and fix. This exists because an implementer judges its own rendered output badly: it inspects the state it is already in, and it reads its own intent into what it sees. Visual inspection covers what follows from the change you just made; this covers what you failed to notice.
80
+
81
+ ## Roles
82
+
83
+ The reviewer is a fresh context with no memory of the implementation. It drives the preview itself and takes its own screenshots. It never works from screenshots you captured, because choosing what to look at is most of the judgement. It does not fix anything.
84
+
85
+ You prepare the packet, challenge every candidate it returns, fix the ones that survive, and report. A candidate you reject is recorded with the reason, never silently dropped.
86
+
87
+ ## When it runs
88
+
89
+ Before the first slice is presented, before hand-over, and after any increment that adds, removes, or swaps a part. Composition between parts is where appearance defects concentrate, and it is the one thing an inspection of a single state cannot see.
90
+
91
+ ## The packet
92
+
93
+ Give the reviewer this, and not the conversation:
94
+
95
+ 1. How to start the preview and reach it.
96
+ 2. The client's own photographs, renders, drawings, and published dimensions.
97
+ 3. The control inventory from the specification: every property, its options, and which of those options add, remove, or swap a part.
98
+ 4. The states to cover: the default, one state for every option that changes which parts are present, and the extremes of any dimension or quantity.
99
+ 5. Whatever the specification records as deferred, provisional, or unknown.
100
+
101
+ Item 4 is the point of the exercise. When the starting configuration has a part absent, the default view can never show that part, and no amount of looking at the default will reveal how it is composed.
102
+
103
+ ## What counts as a defect
104
+
105
+ A defect is anchored to a named state and a screenshot the reviewer took, and cites one of:
106
+
107
+ 1. a divergence from the client's own material or published dimensions;
108
+ 2. a violation of a requirement the specification states; or
109
+ 3. a self-evident flaw: something floating, intersecting, clipped, overlapping, missing, mis-scaled, or unreadable.
110
+
111
+ Everything else is a taste note. Collect taste notes in a separate list, each phrased as what you would change and why, and do not act on them: they are the client's call, and an implementation that chases them never finishes. Preference presented as defect is what makes an adversarial pass worthless, and it fails in both directions — a reviewer that cannot separate the two either floods you or stays silent.
112
+
113
+ Do not re-report what the specification already records as deferred. Do say when a deferred item is worse than its record suggests.
114
+
115
+ ## Challenging what comes back
116
+
117
+ For each defect, write the strongest case against it before you accept it. Is it visible in the screenshot cited? Is it caused by this build rather than by a limit of the supplied asset? Is it already recorded as deferred? Is the proposed correction the smallest one that resolves it? Record confirmed, refuted, or unresolved, with the evidence. An unresolved candidate is not a defect: if it would be serious, raise it as an open question instead of fixing speculatively.
118
+
119
+ Merge candidates that describe the same underlying failure. The same defect described in different words is not a second defect.
120
+
121
+ ## Budget
122
+
123
+ One reviewer pass, one challenge pass, and one re-inspection of the fixed defects in the states where they were found. Nothing wider unless the client asks for it. A correction that changes the agreed design is a decision for the client, not another round of review.
124
+
125
+ ## When the tools are not there
126
+
127
+ With no way to run an independent reviewer, work through the same checks yourself as a separate pass against the packet alone, and record in the report that the review was not independent.
128
+
129
+ With no browser automation, \`phoenix screenshot\` captures the canvas but not the interface around it, and \`phoenix inspect:state\` and \`phoenix inspect:scene\` only read, so no state other than the default can be reached. Review what you can reach and say which of the above went unchecked, rather than reporting a clean result.`,h=`# Phoenix UX guidance
107
130
 
108
- Use this lookup to revisit guidance after the complete documentation study required by the skill. Discover actual document paths through Phoenix docs; titles and search terms below are not paths. Read the relevant guideline and linked implementation example for the project's installed version before applying it.
131
+ Use this lookup to revisit guidance after the core documentation study required by the skill. Discover actual document paths through Phoenix docs; titles and search terms below are not paths. Read the relevant guideline and linked implementation example for the project's installed version before applying it.
109
132
 
110
133
  | Decision | Documentation to find |
111
134
  | ----------------------------------------- | --------------------------------------------------------- |
@@ -116,7 +139,8 @@ Use this lookup to revisit guidance after the complete documentation study requi
116
139
  | Editing, selection, and review modes | Interaction Modes |
117
140
  | Swatches, cards, and other controls | Choosing a Control |
118
141
  | Product visibility and selection | Canvas and Feedback, Canvas Selection, Selection Hotspots |
119
- | Add/remove actions with visual choices | FABs, childEntityRecipes, thumbnailUrl |
142
+ | Adding or removing where position matters | FABs (scene add/delete), Choosing a Control |
143
+ | Adding from a catalogue, position aside | childEntityRecipes, thumbnailUrl, Choosing a Control |
120
144
  | Contextual controls and dependent options | Component Filters, FilteredControls |
121
145
  | Keep the edited part in view | Camera Fit Selection, Camera Transitions |
122
146
  | Submission and completion | Finalization |
@@ -139,4 +163,4 @@ Keep facts traceable to sources. Geometry proves shape, not commercial availabil
139
163
  Extract available facts now; unresolved entries are not a queue of questions to ask next. Follow the skill's question threshold and defer unknowns that do not block the current work. Use reversible experience defaults without inventing business facts. When a business rule is needed now, explain the consequence and ask for the fact or an explicitly agreed provisional assumption. Continue independent work within the agreed increment; elapsed time is not agreement. For example, resolve whether a shelf is included or charged separately when implementing its pricing, not before a finish-only preview.
140
164
 
141
165
  Translate confirmed rules into representative allowed/disallowed combinations, boundary checks, and hand-calculated totals as their features are implemented.
142
- `;export const generatePhoenixCreateConfiguratorSkill=()=>e({name:"phoenix-create-configurator",description:"Guide a client from product documents and assets to a reviewed Phoenix configurator through a representative first slice, an overall experience plan, iterative implementation, and finalization. Use when creating a configurator, and for every later change that adds or reworks products, options, features or finalization, however small the increment; not for an isolated code fix.",sections:[n,i,a,o,r,s,c,t.visualInspection,l]});export const generatePhoenixCreateConfiguratorSkillReferences=()=>[{path:"references/phoenix-ux.md",content:h},{path:"references/product-discovery.md",content:p},{path:"references/asset-conversion.md",content:d}];
166
+ `;export const generatePhoenixCreateConfiguratorSkill=()=>e({name:"phoenix-create-configurator",description:"Guide a client from product documents and assets to a reviewed Phoenix configurator through a representative first slice, an overall experience plan, iterative implementation, and finalization. Use when creating a configurator, and for every later change that adds or reworks products, options, features or finalization, however small the increment; not for an isolated code fix.",sections:[n,"## Foundations\n\n### Communicate the journey and expectations\n\nExplain all five stages at the start in plain language. Before each stage or increment, say what you will work on, what the client will be able to try, what remains for later, and when you will return for feedback. During longer work, give meaningful progress updates, including what is already usable.\n\nRead supplied information before asking questions. Treat an interview request as permission to gather necessary information throughout the work, not a requirement to ask about every decision before building. Use source-backed facts directly. Choose reversible design defaults yourself, state them briefly, and proceed; do not ask permission to use an illustrated starting configuration, follow supplied branding, or choose a standard Phoenix control.\n\nBefore asking, decide whether the answer would materially change the work due now and whether a useful slice can proceed without it. Ask only for a blocking ambiguity, a consequential business decision needed now, or a material departure from the accepted design. Otherwise record the open issue for the relevant stage. When a question is necessary, explain its consequence and recommend an answer; keep it focused. A client's agreement should lead to the promised work, not another routine approval question. Teach relevant Phoenix approaches through the client's product, without asking them to choose SDK components or operate developer tools.\n\nAt each preview, explain what changed, give a focused action to try, and recommend the next step conditional on feedback. End the turn and wait before expanding the agreed increment unless the client requested a larger autonomous batch. Let them redirect, revisit decisions, or pause; overall scope approval does not remove these feedback points.\n\n### Study Phoenix and use its intended patterns\n\nStudy the documentation in two parts: a core before the first slice, and the rest keyed to what you are about to build. Take the inventory first with `pnpm phoenix docs -l`, which prints every path and title; browse one area with `pnpm phoenix docs -c '<category>'`, read a document with `pnpm phoenix docs -r <returned-path>`, and locate material again with `pnpm phoenix docs -s '<topic>'`. In hosted environments, use the available documentation list/search/read tools instead.\n\nRead the core in full before the first slice: the documents listed as Key Docs in the `phoenix` skill's SDK Documentation section, which carry getting started, the domain model, components, project structure, state, expressions, webhooks, finalization, and migrations, together with the `UX Guidelines` category. That list is maintained there; do not keep a second copy of it here.\n\nRead the rest when an increment reaches it, and before implementing that increment: the remaining `Phoenix` documents for what the increment touches, such as theming and localization when you brand or translate the interface, sharing and sessions when its users receive links, and deployments before going live; `Layouts` and `Controls` for the interface; `3d scene` for the scene; `Relations`, `Recipes & Delete`, `Fabs`, `Drag & Drop`, and `Selection & Highlight` for a product assembled from parts; `Other features` and `Integrations` for finalization and external data; `Performance` before hand-over; and `Complex Use Cases` and `Demos` as worked examples. Take the names from the inventory you listed; this version may group its documentation differently. Judge a category you are deferring by what its documents say they are for, which `pnpm phoenix docs -c '<category>'` prints, not by its name or by how many documents it holds: a small category can hold the one control the product needs.\n\nRecord in the specification which categories you have read and which ones the remaining plan still needs, so a later turn resumes instead of starting again. An index or a search result alone is not a completed study, and reading the core is not permission to skip a category when the increment that needs it arrives.\n\nUse Phoenix's existing components, features, and supported workflows whenever they provide the required capability. Guide the client toward those approaches and explain their benefits. Use custom implementations only when the required capability is unavailable: verify the gap in the documentation, explain it and the proposed approach to the client, and keep the solution compatible with Phoenix's architecture. Missing documentation is not proof that a feature is unavailable.\n\nRevisit the relevant implementation examples as you build. [Phoenix UX guidance](references/phoenix-ux.md) provides navigation back to common topics; platform usage belongs in Phoenix docs rather than a parallel manual in this skill. Disclose inaccessible documentation and the resulting uncertainty instead of claiming full coverage or inventing APIs. Do not assume access to Phoenix's source repository or internal processes.\n\n### Maintain a living Markdown specification\n\nAfter inspecting the materials, create `configurator-spec.md` in the intended project, or update its existing equivalent. Keep it outside public/user-facing assets and use it as the single record of:\n\n- Product scope, intended users, source materials, assets, and confirmed product facts.\n- Configurable options, dependencies, compatibility rules, dimensions, and commercial rules.\n- Unknowns, conflicting information, proposals, agent-chosen design defaults, and explicitly agreed provisional business assumptions, distinguished from confirmed facts and client-approved decisions.\n- Accepted visual direction, navigation, interaction patterns, and finalization decisions, with their rationale.\n- The five-stage plan, current stage, implemented and remaining scope, documentation coverage, verification results, and next increment.\n\nUpdate it whenever new information, a decision, or completed work changes the plan. Keep it concise and current, not a conversation transcript. Read it when resuming, inspect the existing draft, and briefly remind the client where things stand. Preserve accepted behavior and styling; explain and agree on material departures before applying them. The specification supports collaboration without making every edit an approval step.",i,a,o,s,r,t.visualInspection,d]});export const generatePhoenixCreateConfiguratorSkillReferences=()=>[{path:"references/phoenix-ux.md",content:h},{path:"references/product-discovery.md",content:p},{path:"references/asset-conversion.md",content:c},{path:"references/appearance-review.md",content:l}];
@@ -1,4 +1,4 @@
1
- import{renderAgentSkill as e}from"./agent-skill.js";let i=`Review all current git changes for correctness, Phoenix pattern violations, and security issues.
1
+ import{renderAgentSkill as e}from"./agent-skill.js";let s=`Review all current git changes for correctness, Phoenix pattern violations, and security issues.
2
2
 
3
3
  ## Phoenix-Specific Review
4
4
 
@@ -28,6 +28,12 @@ import{renderAgentSkill as e}from"./agent-skill.js";let i=`Review all current gi
28
28
  - [ ] No unnecessary React re-renders (stable object references via memoEval)
29
29
  - [ ] Export pattern correct: default export of single component or array
30
30
 
31
+ ### Assistant setup (src/handlers/)
32
+
33
+ - [ ] At most one phx.domain.createAssistantSetupHandler, synchronous, pure and deterministic over manifest and session inputs
34
+ - [ ] Only removes original declaration entries, exposes descriptions and restriction flags, and rejects immutable keys
35
+ - [ ] Narrows fields on the declaring alias before expansion; runs in browser execution and the webhook; browser GraphQL, tools and change recording use session narrowing while UI retains pure spec selectors; empty server instructions clear the baseline
36
+
31
37
  ### Webhooks (src/webhooks/)
32
38
 
33
39
  - [ ] Use phx.webhooks.\\*Builder pattern (finalizeHandlerBuilder, authHandlerBuilder)
@@ -106,4 +112,4 @@ import{renderAgentSkill as e}from"./agent-skill.js";let i=`Review all current gi
106
112
  - **Overall assessment**: <1-2 sentence summary>
107
113
  \`\`\`
108
114
 
109
- If no findings at a severity level, omit that section. If no findings at all, state "No issues found" with a brief note on what was checked.`;export const generatePhoenixReviewSkill=()=>e({name:"phoenix-review",description:"Phoenix-specific code review checklist and report format for specs, expressions, invariants, components, webhooks, TypeScript and React code. Use when reviewing changes in this Phoenix configurator project, before committing or when asked for a code review.",sections:[i]});
115
+ If no findings at a severity level, omit that section. If no findings at all, state "No issues found" with a brief note on what was checked.`;export const generatePhoenixReviewSkill=()=>e({name:"phoenix-review",description:"Phoenix-specific code review checklist and report format for specs, expressions, invariants, components, webhooks, TypeScript and React code. Use when reviewing changes in this Phoenix configurator project, before committing or when asked for a code review.",sections:[s]});
@@ -1,15 +1,11 @@
1
1
  /**
2
2
  * Documented Phoenix SDK guidance, one Markdown section per entry.
3
3
  *
4
- * The agent guidance shipped into generated projects — the starter `AGENTS.md` and the Phoenix-owned
5
- * agent skills — is composed from these sections, so each documented fact has exactly one home and
6
- * the generated files differ only in which sections they carry.
4
+ * The agent guidance shipped into generated projects — the Phoenix-owned agent skills — is composed
5
+ * from these sections, so each documented fact has exactly one home and the generated files differ
6
+ * only in which sections they carry.
7
7
  */
8
8
  export declare const sdkGuidanceSections: {
9
- /** Opening description of what a Phoenix configurator project is. */
10
- readonly projectIntro: `## Phoenix Configurator Project
11
-
12
- Declarative 3D product configurator built with Phoenix SDK. Domain model defined in YAML, custom logic in TypeScript.`;
13
9
  /** The three everyday `phoenix` package scripts. */
14
10
  readonly buildCommands: `## Build Commands
15
11
  - \`pnpm phoenix build\` — Full production build
@@ -30,6 +26,7 @@ Declarative 3D product configurator built with Phoenix SDK. Domain model defined
30
26
  - \`src/transformers/\` — Automatic state fixers (\`phx.frontend.transformerBuilder\`)
31
27
  - \`src/components/\` — ECS system components (\`phx.domain.attachComponent.withEntity()\`)
32
28
  - \`src/elements/\` — Page-level React components (\`phx.frontend.createCustomPhoenixLayoutElement()\`)
29
+ - A layout element named \`ConfiguratorLayout\` replaces everything the built-in layout renders for a loaded configuration, the finalize page included, so prefer arranging the layout in the spec; when you register it, mount \`LayoutSlots.SharedCanvas\` (from \`@salsita-ai/sdk/configurator\`) in it, or the app loader stays on screen, and call \`useSceneSafeArea()\` (same import) with its \`containerRef\` on the element covering the whole canvas and its \`safeAreaRef\` on the region the layout's UI leaves free, so the camera frames the scene there
33
30
  - \`src/handlers/\` — Event & lifecycle handlers
34
31
  - \`src/webhooks/\` — Server-side webhook handlers (\`phx.webhooks.*Builder\`)
35
32
  - \`src/migrations/\` — Schema version migrations (v*.ts)
@@ -70,15 +67,17 @@ The default export must be what the folder's phx factory returns (for example \`
70
67
  /** Which components and handlers are bundled into the webhook. */
71
68
  readonly webhookMembership: `## Webhook Membership
72
69
  - User-authored components, admin components, and handlers are frontend-only by default.
73
- - A handler that registers \`createMapPublishedRevisionDataHandler\`, \`createMapPublishedChunkedDataHandler\`, \`createDataRowValidatorHandler\`, or \`createSheetValidatorHandler\` is included in the webhook automatically.
70
+ - A handler that registers \`phx.domain.createAssistantSetupHandler\`, \`createMapPublishedRevisionDataHandler\`, \`createMapPublishedChunkedDataHandler\`, \`createDataRowValidatorHandler\`, or \`createSheetValidatorHandler\` is included in the webhook automatically.
71
+ - An assistant setup handler receives the declaration-shaped whitelist and { role, sessionData, access }. Keep the exact entity/alias split from YAML; inherited fields and expanded member entries are absent. Narrow original declarations, then the SDK expands them. Use project-defined role/session data for per-user customization. Keep the handler synchronous, pure and deterministic. The handler runs in the browser and webhook. Return null to disable assistant execution, or omit whitelist entries to restrict them. Button and panel visibility use spec presence; project developers own dynamic UI filtering through normal layout mechanics such as $filter. Leaves expose optional descriptions; writable options allow only validate: true and allowDryRuns: false; recipe groups allow descriptions and allowDryRuns: false. Deletable entries are {}. Names, component bindings, hints and types are internal. Omitted overrides retain baseline values. Existing entity, enhanced-entity and action types constrain the handler; no separate generated manifest types. Browser GraphQL, tools and change recording use the session-derived manifest; rejected setup fails closed. UI reads the pure spec selector. Omitted server instructions or AI fields preserve the baseline. An empty server instructions string clears it.
74
72
  - To include another component or handler in the webhook, put \`'use webhook'\` as its first statement (leading comments are allowed).
75
73
  - A webhook-included file and its runtime local-import closure must not import browser SDK entrypoints (\`application\`, \`admin\`, \`configurator\`, \`editor\`, \`react\`, \`ui\`) or style/font/image assets. Spec parsing reports the unsafe import and inclusion reason as a diagnostic.
76
74
  - Keep browser rendering in an unpinned file. Move shared server-safe logic into a separate module when both frontend and webhook code need it.`;
77
75
  /** Generated files a project must not edit. */
78
76
  readonly doNotEdit: `## Do Not Edit
79
77
  - \`.phoenix/\` directory — completely regenerated on each build. The one exception is \`.phoenix/variants/\`, where the \`phoenix-variants\` skill has you write option files; a rebuild keeps it
80
- - \`tsconfig.json\`, \`eslint.config.js\`, \`prettier.config.js\`, \`.prettierignore\`, \`.linguirc\`, \`.nvmrc\`
81
- - \`src/locales/\` .ts files — compiled from .po files`;
78
+ - \`tsconfig.json\`, \`eslint.config.js\`, \`prettier.config.js\`, \`.linguirc\`, \`.nvmrc\`
79
+ - \`src/locales/\` .ts files — compiled from .po files
80
+ - \`phoenix\` and \`phoenix-*\` folders under \`.claude/skills/\` and \`.agents/skills/\` — Phoenix rewrites its skills on every sync, removes anything else inside their folders and removes any other \`phoenix-*\` skill folder. To customise a skill, copy it to a folder whose name does not start with \`phoenix\``;
82
81
  /** When and how a deployed domain model gets a new version and a migration, with the recipe for replacing the starter. */
83
82
  readonly modelVersioning: `## Version the Domain Model Once It Is Deployed
84
83
  A deployed model version cannot change, because saved configurations depend on it. \`pnpm phoenix deploy\` is refused, before anything is uploaded, when the model differs from the one already deployed under the same version. The version is not written anywhere: \`model.latest\` is always the highest numbered version plus one, so a spec with only \`latest\` is v1, and \`applicationVersion\` plays no part. \`pnpm phoenix dev\` accepts every model change, so a working preview does not show that the deploy will pass.
@@ -284,10 +283,10 @@ Rendered appearance is a deliverable, not a side effect. Before presenting any p
284
283
  Inspect and report:
285
284
 
286
285
  1. Geometry. Every part rests on its support. Name where the product meets the ground and confirm its shadow and any selection indicator sit there too. Nothing floats, intersects, or protrudes. Scale and orientation are consistent between parts and match the stated dimensions. Each part is complete and present.
287
- 2. Fidelity. The result matches the client's own photographs, renders, and drawings where supplied. Name any divergence.
288
- 3. Response. Every configurable surface of every part reacts to its control, not only the parts you just changed.
289
- 4. Density. Every decision the user must make is reachable without hunting, and no single property's options dominate the surface holding them.
290
- 5. Loading. How long until a meaningful first frame, and whether anything indicates progress meanwhile.
286
+ 2. Response. Every configurable surface of every part reacts to its control, not only the parts you just changed.
287
+ 3. Loading. How long until a meaningful first frame, and whether anything indicates progress meanwhile.
288
+
289
+ This covers what follows from the change you just made, in the state you are already in. Fidelity against the client's own material, the density of the controls, and every state you did not open belong to an independent reviewer, which the \`phoenix-create-configurator\` skill's Appearance review covers.
291
290
 
292
291
  Report defects you are deferring as defects. Do not call work done, verified, or complete while any of the above is unchecked or failing: say which, and recommend fixing now or later.
293
292
 
@@ -1,12 +1,10 @@
1
- export const sdkGuidanceSections={projectIntro:`## Phoenix Configurator Project
2
-
3
- Declarative 3D product configurator built with Phoenix SDK. Domain model defined in YAML, custom logic in TypeScript.`,buildCommands:"## Build Commands\n- `pnpm phoenix build` — Full production build\n- `pnpm phoenix dev` — Development mode with hot reload\n- `pnpm phoenix sync` — Sync generated files without full build",devLogs:"## Dev Logs\n- `pnpm phoenix dev` writes all logs to `.phoenix/phoenix-dev.log`\n- Contains: spec parse errors, build errors, browser runtime errors, file watcher events\n- After making changes, always check the log for errors: `tail -50 .phoenix/phoenix-dev.log` or `grep ERROR .phoenix/phoenix-dev.log`\n- Rotated automatically at 10MB (`.log.1`, `.log.2` are older rotations)",projectStructure:"## Project Structure\n- `spec/` — Domain YAML specs (entities, relations, expressions, invariants, components, application config)\n- `src/expressions/` — Computed/derived entity properties (`phx.domain.implementCustomExpressions()`)\n- `src/actions/` — Domain operations declared under `actions:` in the spec (`phx.domain.implementActions()`), run by controls and exposed to the assistant\n- `src/invariants/` — Business rule constraints (`phx.domain.implementCustomInvariants()`)\n- `src/transformers/` — Automatic state fixers (`phx.frontend.transformerBuilder`)\n- `src/components/` — ECS system components (`phx.domain.attachComponent.withEntity()`)\n- `src/elements/` — Page-level React components (`phx.frontend.createCustomPhoenixLayoutElement()`)\n- `src/handlers/` — Event & lifecycle handlers\n- `src/webhooks/` — Server-side webhook handlers (`phx.webhooks.*Builder`)\n- `src/migrations/` — Schema version migrations (v*.ts)\n- `src/locales/` — Locale catalogs (authored .po sources; compiled .ts, do not edit)\n- `src/admin/` — Admin interface (mirrors main src/ structure)\n- `src/_shared/` — Shared utilities (NOT auto-imported, requires explicit imports)\n- `.phoenix/` — Auto-generated files (DO NOT EDIT, except the option files in `.phoenix/variants/`)\n- `public/` — Static assets (3D models, textures, images, HDRI maps, fonts)\n- `assets/` — Uploadable resources (PDF templates, email assets)",architecturePrinciples:"## Architecture Principles\n- YAML-first: 99% of configuration in spec/*.yaml, custom code is last resort\n- ECS pattern: entities (domain objects) + components (behavior/UI) + systems (SDK runtime)\n- Reactive state: immutable domain state flows through RxJS pipelines\n- Data binding: `$read` (read-only), `$write` (write-only), `$bind` (bidirectional) connect components to domain\n- memoEval: all component implementations must use memoEval for stable object references",keyPatterns:"## Key Patterns\n- Expressions = computed properties on entities (prefix: `$`), implemented per-entity in src/expressions/\n- Actions = named domain operations (`actions:` in YAML with `params` and `result` schemas), implemented in src/actions/, prepared through `actionSystem.prepareAction()` and exposed as assistant mutations through `assistant.actions`\n- Invariants = validation rules returning violations, static or dynamic\n- Transformers = auto-fixers maintaining consistency after state changes\n- Components defined in YAML with `$read`/`$bind` bindings, or custom in src/components/ using attachComponent builder\n- Webhooks = server-side finalization tasks (PDF, email, CSV, image rendering)\n- Filters = contextual component activation via navigationStates, viewStates, modes, selectedEntityIds",fileConventions:`## File Conventions
1
+ export const sdkGuidanceSections={buildCommands:"## Build Commands\n- `pnpm phoenix build` — Full production build\n- `pnpm phoenix dev` — Development mode with hot reload\n- `pnpm phoenix sync` — Sync generated files without full build",devLogs:"## Dev Logs\n- `pnpm phoenix dev` writes all logs to `.phoenix/phoenix-dev.log`\n- Contains: spec parse errors, build errors, browser runtime errors, file watcher events\n- After making changes, always check the log for errors: `tail -50 .phoenix/phoenix-dev.log` or `grep ERROR .phoenix/phoenix-dev.log`\n- Rotated automatically at 10MB (`.log.1`, `.log.2` are older rotations)",projectStructure:"## Project Structure\n- `spec/` — Domain YAML specs (entities, relations, expressions, invariants, components, application config)\n- `src/expressions/` — Computed/derived entity properties (`phx.domain.implementCustomExpressions()`)\n- `src/actions/` — Domain operations declared under `actions:` in the spec (`phx.domain.implementActions()`), run by controls and exposed to the assistant\n- `src/invariants/` — Business rule constraints (`phx.domain.implementCustomInvariants()`)\n- `src/transformers/` — Automatic state fixers (`phx.frontend.transformerBuilder`)\n- `src/components/` — ECS system components (`phx.domain.attachComponent.withEntity()`)\n- `src/elements/` — Page-level React components (`phx.frontend.createCustomPhoenixLayoutElement()`)\n - A layout element named `ConfiguratorLayout` replaces everything the built-in layout renders for a loaded configuration, the finalize page included, so prefer arranging the layout in the spec; when you register it, mount `LayoutSlots.SharedCanvas` (from `@salsita-ai/sdk/configurator`) in it, or the app loader stays on screen, and call `useSceneSafeArea()` (same import) with its `containerRef` on the element covering the whole canvas and its `safeAreaRef` on the region the layout's UI leaves free, so the camera frames the scene there\n- `src/handlers/` — Event & lifecycle handlers\n- `src/webhooks/` — Server-side webhook handlers (`phx.webhooks.*Builder`)\n- `src/migrations/` — Schema version migrations (v*.ts)\n- `src/locales/` — Locale catalogs (authored .po sources; compiled .ts, do not edit)\n- `src/admin/` — Admin interface (mirrors main src/ structure)\n- `src/_shared/` — Shared utilities (NOT auto-imported, requires explicit imports)\n- `.phoenix/` — Auto-generated files (DO NOT EDIT, except the option files in `.phoenix/variants/`)\n- `public/` — Static assets (3D models, textures, images, HDRI maps, fonts)\n- `assets/` — Uploadable resources (PDF templates, email assets)",architecturePrinciples:"## Architecture Principles\n- YAML-first: 99% of configuration in spec/*.yaml, custom code is last resort\n- ECS pattern: entities (domain objects) + components (behavior/UI) + systems (SDK runtime)\n- Reactive state: immutable domain state flows through RxJS pipelines\n- Data binding: `$read` (read-only), `$write` (write-only), `$bind` (bidirectional) connect components to domain\n- memoEval: all component implementations must use memoEval for stable object references",keyPatterns:"## Key Patterns\n- Expressions = computed properties on entities (prefix: `$`), implemented per-entity in src/expressions/\n- Actions = named domain operations (`actions:` in YAML with `params` and `result` schemas), implemented in src/actions/, prepared through `actionSystem.prepareAction()` and exposed as assistant mutations through `assistant.actions`\n- Invariants = validation rules returning violations, static or dynamic\n- Transformers = auto-fixers maintaining consistency after state changes\n- Components defined in YAML with `$read`/`$bind` bindings, or custom in src/components/ using attachComponent builder\n- Webhooks = server-side finalization tasks (PDF, email, CSV, image rendering)\n- Filters = contextual component activation via navigationStates, viewStates, modes, selectedEntityIds",fileConventions:`## File Conventions
4
2
  - Components: PascalCase (.tsx)
5
3
  - Utilities: kebab-case (.ts)
6
4
  - Expressions: entity-name.ts
7
5
  - Migrations: v*.ts (sequential)
8
6
  - Specs: kebab-case.yaml
9
- - Underscore folders (_shared/, _utils/) are NOT auto-imported`,exportRules:'## Export Rules\nAll files in src/expressions/, src/actions/, src/invariants/, src/transformers/, src/components/, src/handlers/, src/elements/, src/webhooks/ MUST use default exports. Can be a single item or an array. Named exports are ignored by the SDK auto-import system.\nThe default export must be what the folder\'s phx factory returns (for example `phx.frontend.createCustomPhoenixLayoutElement()` in src/elements/). Any other value, such as a plain React component, stops the application at start with an "Invalid default export in <file>" error. Put plain components and helpers in an underscore folder.',webhookMembership:"## Webhook Membership\n- User-authored components, admin components, and handlers are frontend-only by default.\n- A handler that registers `createMapPublishedRevisionDataHandler`, `createMapPublishedChunkedDataHandler`, `createDataRowValidatorHandler`, or `createSheetValidatorHandler` is included in the webhook automatically.\n- To include another component or handler in the webhook, put `'use webhook'` as its first statement (leading comments are allowed).\n- A webhook-included file and its runtime local-import closure must not import browser SDK entrypoints (`application`, `admin`, `configurator`, `editor`, `react`, `ui`) or style/font/image assets. Spec parsing reports the unsafe import and inclusion reason as a diagnostic.\n- Keep browser rendering in an unpinned file. Move shared server-safe logic into a separate module when both frontend and webhook code need it.",doNotEdit:"## Do Not Edit\n- `.phoenix/` directory — completely regenerated on each build. The one exception is `.phoenix/variants/`, where the `phoenix-variants` skill has you write option files; a rebuild keeps it\n- `tsconfig.json`, `eslint.config.js`, `prettier.config.js`, `.prettierignore`, `.linguirc`, `.nvmrc`\n- `src/locales/` .ts files — compiled from .po files",modelVersioning:"## Version the Domain Model Once It Is Deployed\nA deployed model version cannot change, because saved configurations depend on it. `pnpm phoenix deploy` is refused, before anything is uploaded, when the model differs from the one already deployed under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working preview does not show that the deploy will pass.\n\nTo change a model that has been deployed as v<N>:\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n**Replacing the starter.** When the first deployment of the workspace was the starter, its `Box` model is v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` before writing any other migration.",sdkDocumentation:'## SDK Documentation\n\nAlways search SDK docs for relevant examples before implementing Phoenix features.\n\n### Commands\n- `pnpm phoenix docs` — Full documentation index with descriptions\n- `pnpm phoenix docs -s <term>` — Search all doc content and metadata (case-insensitive)\n- `pnpm phoenix docs --dir` — Print the absolute docs directory for grep or ripgrep\n- `pnpm phoenix docs -r <path>` — Read specific doc (raw text to stdout)\n- `pnpm phoenix docs -c <category>` — List docs in a category\n- `pnpm phoenix docs -l` — List all doc paths with titles\n\n### Key Docs\n- `docs/phoenix/getting-started.mdx` — Setup, prerequisites, first project\n- `docs/phoenix/quickstart.mdx` — End-to-end tutorial building a configurator\n- `docs/phoenix/domain-model.mdx` — Entities, attributes, relations, specs\n- `docs/phoenix/components.mdx` — ECS pattern, YAML components, custom components\n- `docs/phoenix/project-structure.mdx` — Files, folders, conventions\n- `docs/phoenix/best-practices.mdx` — YAML-first, code patterns, common pitfalls\n- `docs/phoenix/state-management.mdx` — Reactive state, RxJS pipelines, data flow\n- `docs/phoenix/expression-context.mdx` — Expression API, context object, helpers\n- `docs/phoenix/webhooks.mdx` — Server-side finalization workflows\n- `docs/phoenix/finalization.mdx` — Finalization system, PDF/email/CSV generation\n- `docs/phoenix/migrations.mdx` — Schema versioning, migration files\n\n### Agent Workflow\n1. Find relevant docs by content: `pnpm phoenix docs -s \'camera\'`\n2. Read matching doc: `pnpm phoenix docs -r docs/3d-scene/cameras/transitions.mdx`\n3. Search within a doc: `pnpm phoenix docs -r <path> | grep "example"`\n4. Search titles only as a fallback: `pnpm phoenix docs -l | grep "camera"`\n5. Search generated files directly when needed: `grep -rn "camera" "$(pnpm phoenix docs --dir)"`\n6. Browse a topic area: `pnpm phoenix docs -c "Layouts"`',assetInspection:"## 3D Asset Inspection\n\nRun `pnpm phoenix inspect:assets` to discover all glTF/GLB files in `public/` and get a summary table. Use `--file <path>` for detailed single-file inspection.\n\n**When to use:** before writing YAML/code that references objectName, materialsToOverride, morphTargetInfluences, or object positioning.\n\n**What it shows per node:**\n- Name, type (Mesh/Light/Camera/Empty), children\n- Transform: `pos=`, `rot=`, `scale=` (only non-default values shown)\n- Per-node morph targets: `morphs=Width,Height`\n- Bounding box: `bounds=WxHxD` (width x height x depth in meters)\n- Origin placement: `origin=center`, `bottom-center`, `top-center`, `bottom-corner`, etc. with numerical offset\n\n**Use cases:**\n- Find exact node names for `objectName` in scene entity components\n- Find material names for `materialsToOverride`\n- Find morph target names for `morphTargetInfluences`\n- Check model dimensions (bounds) for positioning, dimension indicators, or invariants\n- Check origin placement to understand how models anchor (center vs bottom-center)\n- Use `--json` for programmatic access to all data\n\n**Flags:** `--objects`, `--materials`, `--morphs`, `--animations`, `--json`",screenshotCli:"## Screenshot CLI\n\nCapture 3D canvas screenshots from a running dev server via `pnpm phoenix screenshot`.\n\n**Prerequisites:**\n1. `phoenix dev` must be running (starts the WebSocket server on port 3020)\n2. Configurator must be open in a browser (the browser does the actual rendering)\n\n**Options:**\n- `--output, -o` — Output file path (default: `./screenshot.png`)\n- `--width, -w` — Width in pixels (default: 1920)\n- `--height` — Height in pixels (default: 1080)\n- `--format, -f` — Image format: PNG or JPEG (default: PNG)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example workflow:**\n1. Start dev server: `pnpm phoenix dev`\n2. Open configurator in browser (or via Playwright MCP)\n3. Take screenshot: `pnpm phoenix screenshot -o ./render.png -w 2560 --height 1440`\n\n**Use cases:** visual regression testing, generating product images, debugging 3D renders",inspectState:"## Inspect: State\n\nGet the current editor runtime state as JSON via `pnpm phoenix inspect:state`.\n\n**Prerequisites:** same as screenshot (dev server running + browser open)\n\n**Options:**\n- `--output, -o` — Output file path (prints to stdout if omitted)\n- `--sections, -s` — Comma-separated: entities, navigation, validation (default: all)\n- `--pretty` — Pretty-print JSON (default: true)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example:** `pnpm phoenix inspect:state -o ./state.json -s entities,navigation`\n\n**Lifecycle status:** Always included in response. Shows which systems are ready:\n- `domainLoaded` — domain data loaded\n- `domainContextReady` — domain context initialized (entities available)\n- `configuratorReady` — 3D configurator initialized\n- `sessionAuthenticated` — session service active\n- `editorMode` — editor mode enabled\n\n**Tips:** Use `--sections` to limit payload size. Pipe through `head`/`tail` for partial output (e.g., `pnpm phoenix inspect:state | head -50`).\n\n**Use cases:** AI agent context, debugging entity state, inspecting navigation/validation",inspectData:`## Inspect: Data
7
+ - Underscore folders (_shared/, _utils/) are NOT auto-imported`,exportRules:'## Export Rules\nAll files in src/expressions/, src/actions/, src/invariants/, src/transformers/, src/components/, src/handlers/, src/elements/, src/webhooks/ MUST use default exports. Can be a single item or an array. Named exports are ignored by the SDK auto-import system.\nThe default export must be what the folder\'s phx factory returns (for example `phx.frontend.createCustomPhoenixLayoutElement()` in src/elements/). Any other value, such as a plain React component, stops the application at start with an "Invalid default export in <file>" error. Put plain components and helpers in an underscore folder.',webhookMembership:"## Webhook Membership\n- User-authored components, admin components, and handlers are frontend-only by default.\n- A handler that registers `phx.domain.createAssistantSetupHandler`, `createMapPublishedRevisionDataHandler`, `createMapPublishedChunkedDataHandler`, `createDataRowValidatorHandler`, or `createSheetValidatorHandler` is included in the webhook automatically.\n- An assistant setup handler receives the declaration-shaped whitelist and { role, sessionData, access }. Keep the exact entity/alias split from YAML; inherited fields and expanded member entries are absent. Narrow original declarations, then the SDK expands them. Use project-defined role/session data for per-user customization. Keep the handler synchronous, pure and deterministic. The handler runs in the browser and webhook. Return null to disable assistant execution, or omit whitelist entries to restrict them. Button and panel visibility use spec presence; project developers own dynamic UI filtering through normal layout mechanics such as $filter. Leaves expose optional descriptions; writable options allow only validate: true and allowDryRuns: false; recipe groups allow descriptions and allowDryRuns: false. Deletable entries are {}. Names, component bindings, hints and types are internal. Omitted overrides retain baseline values. Existing entity, enhanced-entity and action types constrain the handler; no separate generated manifest types. Browser GraphQL, tools and change recording use the session-derived manifest; rejected setup fails closed. UI reads the pure spec selector. Omitted server instructions or AI fields preserve the baseline. An empty server instructions string clears it.\n- To include another component or handler in the webhook, put `'use webhook'` as its first statement (leading comments are allowed).\n- A webhook-included file and its runtime local-import closure must not import browser SDK entrypoints (`application`, `admin`, `configurator`, `editor`, `react`, `ui`) or style/font/image assets. Spec parsing reports the unsafe import and inclusion reason as a diagnostic.\n- Keep browser rendering in an unpinned file. Move shared server-safe logic into a separate module when both frontend and webhook code need it.",doNotEdit:"## Do Not Edit\n- `.phoenix/` directory — completely regenerated on each build. The one exception is `.phoenix/variants/`, where the `phoenix-variants` skill has you write option files; a rebuild keeps it\n- `tsconfig.json`, `eslint.config.js`, `prettier.config.js`, `.linguirc`, `.nvmrc`\n- `src/locales/` .ts files — compiled from .po files\n- `phoenix` and `phoenix-*` folders under `.claude/skills/` and `.agents/skills/` — Phoenix rewrites its skills on every sync, removes anything else inside their folders and removes any other `phoenix-*` skill folder. To customise a skill, copy it to a folder whose name does not start with `phoenix`",modelVersioning:"## Version the Domain Model Once It Is Deployed\nA deployed model version cannot change, because saved configurations depend on it. `pnpm phoenix deploy` is refused, before anything is uploaded, when the model differs from the one already deployed under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working preview does not show that the deploy will pass.\n\nTo change a model that has been deployed as v<N>:\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n**Replacing the starter.** When the first deployment of the workspace was the starter, its `Box` model is v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` before writing any other migration.",sdkDocumentation:'## SDK Documentation\n\nAlways search SDK docs for relevant examples before implementing Phoenix features.\n\n### Commands\n- `pnpm phoenix docs` — Full documentation index with descriptions\n- `pnpm phoenix docs -s <term>` — Search all doc content and metadata (case-insensitive)\n- `pnpm phoenix docs --dir` — Print the absolute docs directory for grep or ripgrep\n- `pnpm phoenix docs -r <path>` — Read specific doc (raw text to stdout)\n- `pnpm phoenix docs -c <category>` — List docs in a category\n- `pnpm phoenix docs -l` — List all doc paths with titles\n\n### Key Docs\n- `docs/phoenix/getting-started.mdx` — Setup, prerequisites, first project\n- `docs/phoenix/quickstart.mdx` — End-to-end tutorial building a configurator\n- `docs/phoenix/domain-model.mdx` — Entities, attributes, relations, specs\n- `docs/phoenix/components.mdx` — ECS pattern, YAML components, custom components\n- `docs/phoenix/project-structure.mdx` — Files, folders, conventions\n- `docs/phoenix/best-practices.mdx` — YAML-first, code patterns, common pitfalls\n- `docs/phoenix/state-management.mdx` — Reactive state, RxJS pipelines, data flow\n- `docs/phoenix/expression-context.mdx` — Expression API, context object, helpers\n- `docs/phoenix/webhooks.mdx` — Server-side finalization workflows\n- `docs/phoenix/finalization.mdx` — Finalization system, PDF/email/CSV generation\n- `docs/phoenix/migrations.mdx` — Schema versioning, migration files\n\n### Agent Workflow\n1. Find relevant docs by content: `pnpm phoenix docs -s \'camera\'`\n2. Read matching doc: `pnpm phoenix docs -r docs/3d-scene/cameras/transitions.mdx`\n3. Search within a doc: `pnpm phoenix docs -r <path> | grep "example"`\n4. Search titles only as a fallback: `pnpm phoenix docs -l | grep "camera"`\n5. Search generated files directly when needed: `grep -rn "camera" "$(pnpm phoenix docs --dir)"`\n6. Browse a topic area: `pnpm phoenix docs -c "Layouts"`',assetInspection:"## 3D Asset Inspection\n\nRun `pnpm phoenix inspect:assets` to discover all glTF/GLB files in `public/` and get a summary table. Use `--file <path>` for detailed single-file inspection.\n\n**When to use:** before writing YAML/code that references objectName, materialsToOverride, morphTargetInfluences, or object positioning.\n\n**What it shows per node:**\n- Name, type (Mesh/Light/Camera/Empty), children\n- Transform: `pos=`, `rot=`, `scale=` (only non-default values shown)\n- Per-node morph targets: `morphs=Width,Height`\n- Bounding box: `bounds=WxHxD` (width x height x depth in meters)\n- Origin placement: `origin=center`, `bottom-center`, `top-center`, `bottom-corner`, etc. with numerical offset\n\n**Use cases:**\n- Find exact node names for `objectName` in scene entity components\n- Find material names for `materialsToOverride`\n- Find morph target names for `morphTargetInfluences`\n- Check model dimensions (bounds) for positioning, dimension indicators, or invariants\n- Check origin placement to understand how models anchor (center vs bottom-center)\n- Use `--json` for programmatic access to all data\n\n**Flags:** `--objects`, `--materials`, `--morphs`, `--animations`, `--json`",screenshotCli:"## Screenshot CLI\n\nCapture 3D canvas screenshots from a running dev server via `pnpm phoenix screenshot`.\n\n**Prerequisites:**\n1. `phoenix dev` must be running (starts the WebSocket server on port 3020)\n2. Configurator must be open in a browser (the browser does the actual rendering)\n\n**Options:**\n- `--output, -o` — Output file path (default: `./screenshot.png`)\n- `--width, -w` — Width in pixels (default: 1920)\n- `--height` — Height in pixels (default: 1080)\n- `--format, -f` — Image format: PNG or JPEG (default: PNG)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example workflow:**\n1. Start dev server: `pnpm phoenix dev`\n2. Open configurator in browser (or via Playwright MCP)\n3. Take screenshot: `pnpm phoenix screenshot -o ./render.png -w 2560 --height 1440`\n\n**Use cases:** visual regression testing, generating product images, debugging 3D renders",inspectState:"## Inspect: State\n\nGet the current editor runtime state as JSON via `pnpm phoenix inspect:state`.\n\n**Prerequisites:** same as screenshot (dev server running + browser open)\n\n**Options:**\n- `--output, -o` — Output file path (prints to stdout if omitted)\n- `--sections, -s` — Comma-separated: entities, navigation, validation (default: all)\n- `--pretty` — Pretty-print JSON (default: true)\n- `--port` — WebSocket server port (default: 3020)\n\n**Example:** `pnpm phoenix inspect:state -o ./state.json -s entities,navigation`\n\n**Lifecycle status:** Always included in response. Shows which systems are ready:\n- `domainLoaded` — domain data loaded\n- `domainContextReady` — domain context initialized (entities available)\n- `configuratorReady` — 3D configurator initialized\n- `sessionAuthenticated` — session service active\n- `editorMode` — editor mode enabled\n\n**Tips:** Use `--sections` to limit payload size. Pipe through `head`/`tail` for partial output (e.g., `pnpm phoenix inspect:state | head -50`).\n\n**Use cases:** AI agent context, debugging entity state, inspecting navigation/validation",inspectData:`## Inspect: Data
10
8
 
11
9
  Get the current editor context data as JSON via \`pnpm phoenix inspect:data\`.
12
10
 
@@ -71,10 +69,10 @@ Rendered appearance is a deliverable, not a side effect. Before presenting any p
71
69
  Inspect and report:
72
70
 
73
71
  1. Geometry. Every part rests on its support. Name where the product meets the ground and confirm its shadow and any selection indicator sit there too. Nothing floats, intersects, or protrudes. Scale and orientation are consistent between parts and match the stated dimensions. Each part is complete and present.
74
- 2. Fidelity. The result matches the client's own photographs, renders, and drawings where supplied. Name any divergence.
75
- 3. Response. Every configurable surface of every part reacts to its control, not only the parts you just changed.
76
- 4. Density. Every decision the user must make is reachable without hunting, and no single property's options dominate the surface holding them.
77
- 5. Loading. How long until a meaningful first frame, and whether anything indicates progress meanwhile.
72
+ 2. Response. Every configurable surface of every part reacts to its control, not only the parts you just changed.
73
+ 3. Loading. How long until a meaningful first frame, and whether anything indicates progress meanwhile.
74
+
75
+ This covers what follows from the change you just made, in the state you are already in. Fidelity against the client's own material, the density of the controls, and every state you did not open belong to an independent reviewer, which the \`phoenix-create-configurator\` skill's Appearance review covers.
78
76
 
79
77
  Report defects you are deferring as defects. Do not call work done, verified, or complete while any of the above is unchecked or failing: say which, and recommend fixing now or later.
80
78
 
@@ -1,11 +1,11 @@
1
- let e=e=>`webhookHandlers${e}`;export const generateApplicationSpecWebhookBuilders=(t,o)=>{let i=t.appMetadata.useClerk?` clerk: {
1
+ let t=t=>`webhookHandlers${t}`;export const generateApplicationSpecWebhookBuilders=(e,o)=>{let i=e.appMetadata.useClerk?` clerk: {
2
2
  apiKey: phx.webhooksEnv.CLERK_API_KEY,
3
3
  authorizedParties: [phx.webhooksEnv.FRONTEND_URL, phx.webhooksEnv.RESOURCES_URL],
4
4
  jwtSecret: phx.webhooksEnv.JWT_SECRET_BASE64,
5
5
  oauthClientId: phx.webhooksEnv.OAUTH_PROVIDER_CLIENT_ID,
6
6
  oauthClientSecret: phx.webhooksEnv.OAUTH_PROVIDER_CLIENT_SECRET,
7
7
  oauthProviderBaseUrl: phx.webhooksEnv.OAUTH_PROVIDER_BASE_URL,
8
- },`:"",r=o.map((t,o)=>{let i=e(o),r=t.replace(/\.tsx?$/,".js");return`import ${i} from '../${r}'`}).join("\n"),n=o.length>0,s=o.map((t,o)=>`{ origin: '${t}', exports: ${e(o)} }`),a=`[${s.join(", ")}]`,l=n?`
8
+ },`:"",r=o.map((e,o)=>{let i=t(o),r=e.replace(/\.tsx?$/,".js");return`import ${i} from '../${r}'`}).join("\n"),n=o.length>0,s=o.map((e,o)=>`{ origin: '${e}', exports: ${t(o)} }`),a=`[${s.join(", ")}]`,l=n?`
9
9
  .withHandlers(${a})`:"";return`// Auto-generated by application-spec pipeline. Do not edit.
10
10
  import { createDomainWebhook } from '@salsita-ai/sdk/webhook'
11
11
  import type { DeploymentAssistant } from '@salsita-ai/sdk/contracts/assistant'
@@ -16,7 +16,7 @@ import { customAdminComponentOptics } from './admin-domain-code.js'
16
16
  ${r?`
17
17
  ${r}
18
18
  `:""}
19
- const $assistantServerSettings: Pick<DeploymentAssistant, 'instructions' | 'ai'> | null = ${JSON.stringify(t.configurator.assistantServerSettings?{instructions:t.configurator.assistantServerSettings.instructions??void 0,ai:t.configurator.assistantServerSettings.ai}:null)}
19
+ const $assistantServerSettings: Pick<DeploymentAssistant, 'instructions' | 'ai'> | null = ${JSON.stringify(e.configurator.assistantServerSettings?{instructions:e.configurator.assistantServerSettings.instructions??void 0,ai:e.configurator.assistantServerSettings.ai}:null)}
20
20
 
21
21
  const webhookConfiguratorBuilder = configuratorBuilder
22
22
  .withComponentOptics(customComponentOptics)
@@ -37,6 +37,7 @@ export const {
37
37
  configuratorBuilder: webhookConfiguratorBuilder,
38
38
  createI18n,
39
39
  assistantServerSettings: $assistantServerSettings,
40
+ assistantStrictThreads: phx.webhooksEnv.ASSISTANT_STRICT_THREADS,
40
41
  ${i}
41
42
  })
42
43
 
@@ -1,6 +1,6 @@
1
- import{generateEnvReader as e}from"../common/env-reader.js";import{autoHeader as r}from"../common/file-headers.js";let t={IS_DEV:{type:"bool",default:!1,devDefault:!0},AWS_S3_PUBLIC_RESOURCES_BUCKET:{type:"str",required:!0},AWS_S3_RESOURCES_REGION:{type:"str",required:!0},DEPLOYMENT_RESOURCES_PATH:{type:"str",default:"deployment-resources"}},o={CLERK_API_KEY:{type:"str",required:!0},FRONTEND_URL:{type:"str",required:!0},JWT_SECRET_BASE64:{type:"str",required:!0},OAUTH_PROVIDER_CLIENT_ID:{type:"str",required:!0},OAUTH_PROVIDER_CLIENT_SECRET:{type:"str",required:!0},OAUTH_PROVIDER_BASE_URL:{type:"str",required:!0},RESOURCES_URL:{type:"str",required:!0}};export const generateApplicationSpecWebhooksConfig=i=>{let n=i.infra.env?.webhook??{},R=i.appMetadata.useClerk?o:{},{imports:E,config:p}=e({...t,...R,...n}),s=E.length>0?`import { ${E.join(", ")} } from 'envalid'
1
+ import{generateEnvReader as e}from"../common/env-reader.js";import{autoHeader as r}from"../common/file-headers.js";let t={IS_DEV:{type:"bool",default:!1,devDefault:!0},ASSISTANT_STRICT_THREADS:{type:"bool",default:!1},AWS_S3_PUBLIC_RESOURCES_BUCKET:{type:"str",required:!0},AWS_S3_RESOURCES_REGION:{type:"str",required:!0},DEPLOYMENT_RESOURCES_PATH:{type:"str",default:"deployment-resources"}},o={CLERK_API_KEY:{type:"str",required:!0},FRONTEND_URL:{type:"str",required:!0},JWT_SECRET_BASE64:{type:"str",required:!0},OAUTH_PROVIDER_CLIENT_ID:{type:"str",required:!0},OAUTH_PROVIDER_CLIENT_SECRET:{type:"str",required:!0},OAUTH_PROVIDER_BASE_URL:{type:"str",required:!0},RESOURCES_URL:{type:"str",required:!0}};export const generateApplicationSpecWebhooksConfig=i=>{let n=i.infra.env?.webhook??{},R=i.appMetadata.useClerk?o:{},{imports:E,config:p}=e({...t,...R,...n}),_=E.length>0?`import { ${E.join(", ")} } from 'envalid'
2
2
  `:"";return`${r("webhooks.config.ts","Runtime environment config for the webhook server.")}
3
- ${s}import { createEnvReader } from '@salsita-ai/sdk/common/env'
3
+ ${_}import { createEnvReader } from '@salsita-ai/sdk/common/env'
4
4
 
5
5
  const readRuntimeConfig = createEnvReader(${p})
6
6
 
@@ -6,7 +6,6 @@ import { AdminRuntime } from './admin-runtime/admin-runtime.js';
6
6
  import { ConfiguratorRuntime } from './configurator-runtime/configurator-runtime.js';
7
7
  import { DataRuntime } from './sections/data-runtime.js';
8
8
  import type { ExpressionImplementations, InvariantImplementations, MissingExpression } from './sections/expression-runtime.js';
9
- type AnyImportedTransformer = ImportedTransformer<any, any, any, any, any, any, any>;
10
9
  /**
11
10
  * Runtime objects built from ApplicationSpec.
12
11
  * Domain-specific fields mirror ApplicationSpec configurator/admin nesting.
@@ -31,5 +30,4 @@ export type ApplicationRuntimeResult = {
31
30
  *
32
31
  * Returns an error result when declared expressions are missing implementations.
33
32
  */
34
- export declare const ApplicationRuntime: (spec: ApplicationSpec, referenceStore: RuntimeReferenceStore, implementations: ExpressionImplementations, importedTransformers: readonly AnyImportedTransformer[], invariantImplementations?: InvariantImplementations, adminImplementations?: ExpressionImplementations) => ApplicationRuntimeResult;
35
- export {};
33
+ export declare const ApplicationRuntime: (spec: ApplicationSpec, referenceStore: RuntimeReferenceStore, implementations: ExpressionImplementations, importedTransformers: readonly ImportedTransformer[], invariantImplementations?: InvariantImplementations, adminImplementations?: ExpressionImplementations) => ApplicationRuntimeResult;
@@ -11,7 +11,6 @@ import { ThemeRuntime } from '../sections/theme-runtime.js';
11
11
  import { TransformersRuntime } from '../sections/transformers-runtime.js';
12
12
  import { ConfiguratorModelRuntime } from './configurator-model-runtime.js';
13
13
  import { ConfiguratorStatesRuntime } from './states-runtime.js';
14
- type AnyImportedTransformer = ImportedTransformer<any, any, any, any, any, any, any>;
15
14
  export type ConfiguratorRuntime = Branded<'ConfiguratorRuntime', {
16
15
  readonly modelRuntime: ConfiguratorModelRuntime;
17
16
  readonly componentOptics: ComponentOptics;
@@ -30,5 +29,4 @@ export type ConfiguratorRuntimeResult = {
30
29
  readonly ok: false;
31
30
  readonly missingExpressions: readonly MissingExpression[];
32
31
  };
33
- export declare const ConfiguratorRuntime: (spec: ApplicationSpec, referenceStore: RuntimeReferenceStore, implementations: ExpressionImplementations, importedTransformers: readonly AnyImportedTransformer[], invariantImplementations?: InvariantImplementations) => ConfiguratorRuntimeResult;
34
- export {};
32
+ export declare const ConfiguratorRuntime: (spec: ApplicationSpec, referenceStore: RuntimeReferenceStore, implementations: ExpressionImplementations, importedTransformers: readonly ImportedTransformer[], invariantImplementations?: InvariantImplementations) => ConfiguratorRuntimeResult;
@@ -4,7 +4,8 @@ import type { RuntimeReferenceStore } from '../../../caching/index.js';
4
4
  import type { ComponentEntry } from '../../../parse-application-files/spec/index.js';
5
5
  import type { AdminModelRuntime } from '../admin-runtime/admin-model-runtime.js';
6
6
  import type { ConfiguratorModelRuntime } from '../configurator-runtime/configurator-model-runtime.js';
7
- type AnyComponentOptic = DomainComponentOptic<any, any, any, any, any, any, SystemComponentTypeConstraint>;
7
+ /** A component optic of any project, for any component type. */
8
+ export type AnyComponentOptic = DomainComponentOptic<any, any, any, any, any, any, SystemComponentTypeConstraint>;
8
9
  /** A single built component optic with its identifying metadata. */
9
10
  export type ComponentOptic = Branded<'ComponentOptic', {
10
11
  readonly typeOrAlias: string;
@@ -1 +1 @@
1
- import e from"lodash-es/isEqual.js";import{Branded as t}from"@salsita-ai/common/utils";import{createRelationFactory as i}from"#package/domain";import{canonicalEnhancedJsonValueKey as a}from"../../../core/index.js";import{isSdkExpressionImplementation as n}from"../../../parse-application-files/spec/index.js";import{generateMemoEvalPlanRuntime as r}from"./generate-memo-eval-plan-runtime.js";let l={},o={relation:(e,t)=>i(e.aliasMap)(t[0]),violations:(e,t)=>{let i=t[0];if("object"!=typeof i||null===i||!("entityType"in i)||"string"!=typeof i.entityType)throw Error("Cannot create the violations expression because its entityType parameter is missing. The application spec is inconsistent; rebuild it from a valid invariants declaration.");let a=i.entityType,n=Object.entries(e.invariantImplementations).flatMap(([t,i])=>{let n=e.aliasMap[t];return t===a||n?.includes(a)?i:[]});return{origin:{name:"$violations",typeOrAlias:a},evaluate:(e,t,i)=>n.flatMap(a=>a.evaluate(e,t,i)),meta:{}}}},s=e=>{let t=r(e.plan);return{origin:{name:e.name,typeOrAlias:e.entityOrAlias},evaluate:(e,i,a)=>t(a.domain.get$Entity(e,i),i,a),meta:{}}},p=e=>({...(0,o[e.kind])({aliasMap:e.aliasMap,invariantImplementations:e.invariantImplementations},e.params),origin:{name:e.name,typeOrAlias:e.entityOrAlias}});export const ExpressionRuntime=(i,r,o,m,u=l)=>{let d={};for(let[e,t]of i.latestModel.aliases)d[String(e)]=t.map(String);let f=r.createBuilder(`${m}/sdk`,{build:p,getKey:e=>`sdk::${e.entityOrAlias}::${e.name}`,compare:(t,i)=>t.kind===i.kind&&e(t.params,i.params)&&e(t.aliasMap,i.aliasMap)&&("violations"!==i.kind||t.invariantImplementations===i.invariantImplementations)}),y=r.createBuilder(`${m}/user`,{build:e=>e.impl,getKey:e=>`user::${e.entityType}::${e.name}`,compare:(e,t)=>e.impl===t.impl}),g=r.createBuilder(`${m}/value`,{build:s,getKey:e=>`value::${e.entityOrAlias}::${e.name}`,compare:(e,t)=>e.valueKey===t.valueKey}),c={},v=!1,S=new Set,b=new Set,k=new Set;for(let[e,t]of i.expressions.expressions)for(let[,i]of t){let t=d[String(e)]??[String(e)];if(n(i.implementation)){let a={entityOrAlias:String(e),name:String(i.name),kind:i.implementation.kind,params:i.implementation.params,aliasMap:d,invariantImplementations:u},n=f.build(a);for(let e of(n.changed&&(v=!0),S.add(f.getKey(a)),t))c[e]||(c[e]={}),c[e][String(i.name)]=n.output;continue}if("value"===i.implementation.kind){let n=i.implementation.value,r={entityOrAlias:String(e),name:String(i.name),valueKey:a(n),plan:i.implementation.plan},l=g.build(r);for(let e of(l.changed&&(v=!0),k.add(g.getKey(r)),t))c[e]||(c[e]={}),c[e][String(i.name)]=l.output;continue}}for(let[e,t]of Object.entries(o))for(let[i,a]of Object.entries(t)){let t={entityType:e,name:i,impl:a},n=y.build(t);n.changed&&(v=!0),b.add(y.getKey(t)),c[e]||(c[e]={}),c[e][i]=n.output}f.cleanup(S)&&(v=!0),y.cleanup(b)&&(v=!0),g.cleanup(k)&&(v=!0);let x=[];for(let[e,t]of i.expressions.entityExpressions)for(let a of t.shapeGroups){let t=i.expressions.expressions.get(a);if(t)for(let[i]of t)c[String(e)]?.[String(i)]||x.push({entityType:String(e),exprName:String(i)})}return x.length>0?{ok:!1,missing:x}:{ok:!0,runtime:t({merged:c,changed:v})}};
1
+ import e from"lodash-es/isEqual.js";import{Branded as t}from"@salsita-ai/common/utils";import{createRelationFactory as i}from"#package/domain";import{canonicalEnhancedJsonValueKey as n}from"../../../core/index.js";import{isSdkExpressionImplementation as a}from"../../../parse-application-files/spec/index.js";import{generateMemoEvalPlanRuntime as r}from"./generate-memo-eval-plan-runtime.js";let l={},o=["0-1","1-1","0-N","1-N"],s={relation:(e,t)=>{let n=t[0];if(!("object"==typeof n&&null!==n&&"kind"in n&&"target"in n&&"string"==typeof n.target&&"cardinality"in n&&o.includes(n.cardinality)&&("allOfType"===n.kind||("direct"===n.kind||"indirect"===n.kind)&&"field"in n&&"string"==typeof n.field)))throw Error("Cannot create the relation expression because its parameter is not a relation declaration. The application spec is inconsistent; rebuild it from a valid relations declaration.");return i(e.aliasMap)(n)},violations:(e,t)=>{let i=t[0];if("object"!=typeof i||null===i||!("entityType"in i)||"string"!=typeof i.entityType)throw Error("Cannot create the violations expression because its entityType parameter is missing. The application spec is inconsistent; rebuild it from a valid invariants declaration.");let n=i.entityType,a=Object.entries(e.invariantImplementations).flatMap(([t,i])=>{let a=e.aliasMap[t];return t===n||a?.includes(n)?i:[]});return{origin:{name:"$violations",typeOrAlias:n},evaluate:(e,t,i)=>a.flatMap(n=>n.evaluate(e,t,i)),meta:{}}}},p=e=>{let t=r(e.plan);return{origin:{name:e.name,typeOrAlias:e.entityOrAlias},evaluate:(e,i,n)=>t(n.domain.get$Entity(e,i),i,n),meta:{}}},m=e=>({...(0,s[e.kind])({aliasMap:e.aliasMap,invariantImplementations:e.invariantImplementations},e.params),origin:{name:e.name,typeOrAlias:e.entityOrAlias}});export const ExpressionRuntime=(i,r,o,s,d=l)=>{let u={};for(let[e,t]of i.latestModel.aliases)u[String(e)]=t.map(String);let c=r.createBuilder(`${s}/sdk`,{build:m,getKey:e=>`sdk::${e.entityOrAlias}::${e.name}`,compare:(t,i)=>t.kind===i.kind&&e(t.params,i.params)&&e(t.aliasMap,i.aliasMap)&&("violations"!==i.kind||t.invariantImplementations===i.invariantImplementations)}),f=r.createBuilder(`${s}/user`,{build:e=>e.impl,getKey:e=>`user::${e.entityType}::${e.name}`,compare:(e,t)=>e.impl===t.impl}),y=r.createBuilder(`${s}/value`,{build:p,getKey:e=>`value::${e.entityOrAlias}::${e.name}`,compare:(e,t)=>e.valueKey===t.valueKey}),g={},v=!1,S=new Set,k=new Set,b=new Set;for(let[e,t]of i.expressions.expressions)for(let[,i]of t){let t=u[String(e)]??[String(e)];if(a(i.implementation)){let n={entityOrAlias:String(e),name:String(i.name),kind:i.implementation.kind,params:i.implementation.params,aliasMap:u,invariantImplementations:d},a=c.build(n);for(let e of(a.changed&&(v=!0),S.add(c.getKey(n)),t))g[e]||(g[e]={}),g[e][String(i.name)]=a.output;continue}if("value"===i.implementation.kind){let a=i.implementation.value,r={entityOrAlias:String(e),name:String(i.name),valueKey:n(a),plan:i.implementation.plan},l=y.build(r);for(let e of(l.changed&&(v=!0),b.add(y.getKey(r)),t))g[e]||(g[e]={}),g[e][String(i.name)]=l.output;continue}}for(let[e,t]of Object.entries(o))for(let[i,n]of Object.entries(t)){let t={entityType:e,name:i,impl:n},a=f.build(t);a.changed&&(v=!0),k.add(f.getKey(t)),g[e]||(g[e]={}),g[e][i]=a.output}c.cleanup(S)&&(v=!0),f.cleanup(k)&&(v=!0),y.cleanup(b)&&(v=!0);let h=[];for(let[e,t]of i.expressions.entityExpressions)for(let n of t.shapeGroups){let t=i.expressions.expressions.get(n);if(t)for(let[i]of t)g[String(e)]?.[String(i)]||h.push({entityType:String(e),exprName:String(i)})}return h.length>0?{ok:!1,missing:h}:{ok:!0,runtime:t({merged:g,changed:v})}};
@@ -2,7 +2,6 @@ import { Branded } from '@salsita-ai/common/utils';
2
2
  import type { ImportedTransformer } from '#package/domain';
3
3
  import type { RuntimeReferenceStore } from '../../../caching/index.js';
4
4
  import type { ApplicationSpec } from '../../../parse-application-files/index.js';
5
- type AnyImportedTransformer = ImportedTransformer<any, any, any, any, any, any, any>;
6
5
  /**
7
6
  * Runtime section for transformers. Combines two sources of truth:
8
7
  * - `importedTransformers` — factory functions from src/transformers/*.ts
@@ -13,9 +12,8 @@ type AnyImportedTransformer = ImportedTransformer<any, any, any, any, any, any,
13
12
  * decide whether to push a fresh `createTransformers` factory into the registry.
14
13
  */
15
14
  export type TransformersRuntime = Branded<'TransformersRuntime', {
16
- readonly importedTransformers: readonly AnyImportedTransformer[];
15
+ readonly importedTransformers: readonly ImportedTransformer[];
17
16
  readonly specTransformers: ApplicationSpec['configurator']['transformers'];
18
17
  readonly changed: boolean;
19
18
  }>;
20
- export declare const TransformersRuntime: (spec: ApplicationSpec, referenceStore: RuntimeReferenceStore, importedTransformers: readonly AnyImportedTransformer[]) => TransformersRuntime;
21
- export {};
19
+ export declare const TransformersRuntime: (spec: ApplicationSpec, referenceStore: RuntimeReferenceStore, importedTransformers: readonly ImportedTransformer[]) => TransformersRuntime;
@@ -43,6 +43,6 @@ export declare const analyzeParsedModule: (module: Module) => ModuleAnalysis;
43
43
  /** The explicit webhook classification of one authored file. */
44
44
  export type WebhookMembership = 'pinned' | 'named-handler' | 'frontend';
45
45
  /** Handler registrations that keep implicit webhook membership for legacy-CLI parity. */
46
- export declare const WEBHOOK_HANDLER_REGISTRATIONS: readonly ['createMapPublishedRevisionDataHandler', 'createMapPublishedChunkedDataHandler', 'createDataRowValidatorHandler', 'createSheetValidatorHandler'];
46
+ export declare const WEBHOOK_HANDLER_REGISTRATIONS: readonly ['phx.domain.createAssistantSetupHandler', 'phx.domain.admin.createMapPublishedRevisionDataHandler', 'phx.domain.admin.createMapPublishedChunkedDataHandler', 'phx.domain.admin.createDataRowValidatorHandler', 'phx.domain.admin.createSheetValidatorHandler'];
47
47
  /** Returns the named webhook handler registration a handler module calls, if any. */
48
48
  export declare const findWebhookHandlerRegistration: (analysis: ModuleAnalysis) => string | undefined;
@@ -1 +1 @@
1
- import{Visitor as e}from"@swc/core/Visitor.js";export const getModuleParseOptions=()=>({syntax:"typescript",tsx:!0,target:"es2022"});let t=e=>{if("Identifier"===e.type)return e.value;if("ParenthesisExpression"===e.type)return t(e.expression);if("MemberExpression"!==e.type||"Identifier"!==e.property.type)return;let r=t(e.object);return void 0===r?void 0:`${r}.${e.property.value}`},r=e=>e.length>0&&e.every(e=>"isTypeOnly"in e&&!0===e.isTypeOnly),i=class ProjectSourceVisitor extends e{imports=[];calledMemberPaths=new Set;visitTsType(e){return e}visitImportDeclaration(e){return this.imports.push({specifier:e.source.value,typeOnly:e.typeOnly||r(e.specifiers)}),e}visitExportNamedDeclaration(e){return null!=e.source&&this.imports.push({specifier:e.source.value,typeOnly:e.typeOnly||r(e.specifiers)}),super.visitExportNamedDeclaration(e)}visitExportAllDeclaration(e){return this.imports.push({specifier:e.source.value,typeOnly:"typeOnly"in e&&!0===e.typeOnly}),e}visitCallExpression(e){var r;let i=(r=e.arguments[0]?.expression,r?.type==="StringLiteral"?r.value:r?.type==="TemplateLiteral"&&0===r.expressions.length?r.quasis[0]?.cooked??r.quasis[0]?.raw:void 0);if("Import"===e.callee.type&&void 0!==i)this.imports.push({specifier:i,typeOnly:!1});else if("Super"!==e.callee.type&&"Import"!==e.callee.type){let r=t(e.callee);void 0!==r&&this.calledMemberPaths.add(r),"require"===r&&void 0!==i&&this.imports.push({specifier:i,typeOnly:!1})}return super.visitCallExpression(e)}};export const analyzeParsedModule=e=>{let t=new i;t.visitModule(e);let r=e.body[0];return{imports:t.imports,calledMemberPaths:[...t.calledMemberPaths].sort(),hasUseWebhookDirective:r?.type==="ExpressionStatement"&&"StringLiteral"===r.expression.type&&"use webhook"===r.expression.value}};export const WEBHOOK_HANDLER_REGISTRATIONS=["createMapPublishedRevisionDataHandler","createMapPublishedChunkedDataHandler","createDataRowValidatorHandler","createSheetValidatorHandler"];export const findWebhookHandlerRegistration=e=>WEBHOOK_HANDLER_REGISTRATIONS.find(t=>e.calledMemberPaths.includes(`phx.domain.admin.${t}`));
1
+ import{Visitor as e}from"@swc/core/Visitor.js";export const getModuleParseOptions=()=>({syntax:"typescript",tsx:!0,target:"es2022"});let t=e=>{if("Identifier"===e.type)return e.value;if("ParenthesisExpression"===e.type)return t(e.expression);if("MemberExpression"!==e.type||"Identifier"!==e.property.type)return;let r=t(e.object);return void 0===r?void 0:`${r}.${e.property.value}`},r=e=>e.length>0&&e.every(e=>"isTypeOnly"in e&&!0===e.isTypeOnly),i=class ProjectSourceVisitor extends e{imports=[];calledMemberPaths=new Set;visitTsType(e){return e}visitImportDeclaration(e){return this.imports.push({specifier:e.source.value,typeOnly:e.typeOnly||r(e.specifiers)}),e}visitExportNamedDeclaration(e){return null!=e.source&&this.imports.push({specifier:e.source.value,typeOnly:e.typeOnly||r(e.specifiers)}),super.visitExportNamedDeclaration(e)}visitExportAllDeclaration(e){return this.imports.push({specifier:e.source.value,typeOnly:"typeOnly"in e&&!0===e.typeOnly}),e}visitCallExpression(e){var r;let i=(r=e.arguments[0]?.expression,r?.type==="StringLiteral"?r.value:r?.type==="TemplateLiteral"&&0===r.expressions.length?r.quasis[0]?.cooked??r.quasis[0]?.raw:void 0);if("Import"===e.callee.type&&void 0!==i)this.imports.push({specifier:i,typeOnly:!1});else if("Super"!==e.callee.type&&"Import"!==e.callee.type){let r=t(e.callee);void 0!==r&&this.calledMemberPaths.add(r),"require"===r&&void 0!==i&&this.imports.push({specifier:i,typeOnly:!1})}return super.visitCallExpression(e)}};export const analyzeParsedModule=e=>{let t=new i;t.visitModule(e);let r=e.body[0];return{imports:t.imports,calledMemberPaths:[...t.calledMemberPaths].sort(),hasUseWebhookDirective:r?.type==="ExpressionStatement"&&"StringLiteral"===r.expression.type&&"use webhook"===r.expression.value}};export const WEBHOOK_HANDLER_REGISTRATIONS=["phx.domain.createAssistantSetupHandler","phx.domain.admin.createMapPublishedRevisionDataHandler","phx.domain.admin.createMapPublishedChunkedDataHandler","phx.domain.admin.createDataRowValidatorHandler","phx.domain.admin.createSheetValidatorHandler"];export const findWebhookHandlerRegistration=e=>WEBHOOK_HANDLER_REGISTRATIONS.find(t=>e.calledMemberPaths.includes(t));