@salsita-ai/sdk 0.50.0-develop.ecda3c6152 → 0.50.0-develop.eeaf6c4605
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.
- package/README.md +4 -2
- package/dist/application-spec/caching/index.d.ts +6 -1
- package/dist/application-spec/caching/index.js +1 -1
- package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +0 -19
- package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
- package/dist/application-spec/generate-application/code/templates/gitignore.js +2 -1
- package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/index.js +1 -1
- package/dist/application-spec/generate-application/code/templates/lingui-rc.js +5 -4
- package/dist/application-spec/generate-application/code/templates/skills/core/cli.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/index.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/sdk.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +150 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/workflow.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +40 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/features.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/inspection.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/inspection.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/variants.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +54 -0
- package/dist/application-spec/generate-application/code/templates/skills/guide.js +18 -0
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +12 -5
- package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +23 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/evaluate.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/evaluate.js +39 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/feedback.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/feedback.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +7 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/send.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/send.js +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +23 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +26 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +7 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +9 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/{phoenix-skill.d.ts → processes/operations.d.ts} +2 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/operations.js +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/planning.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/planning.js +5 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +46 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/hand-over.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/hand-over.js +6 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +13 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/branding.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/branding.js +20 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/catalog.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/catalog.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +22 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +25 -0
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +63 -249
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +3 -58
- package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -1
- package/dist/application-spec/generate-application/code/templates/tsconfig.js +2 -1
- package/dist/application-spec/generate-application/index.d.ts +1 -8
- package/dist/application-spec/generate-application/index.js +1 -1
- package/dist/client/authorized-client.d.ts +1 -1
- package/dist/client/contract.d.ts +4 -3
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +28 -18
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +8 -2
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
- package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
- package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -0
- package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
- package/dist/configurator/ui/assistant/AssistantComposer.js +2 -2
- package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
- package/dist/configurator/ui/assistant/AssistantThread.d.ts +4 -3
- package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
- package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +4 -1
- package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
- package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
- package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
- package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +26 -0
- package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
- package/dist/configurator/ui/assistant/popover/AssistantPopover.d.ts +24 -0
- package/dist/configurator/ui/assistant/popover/AssistantPopover.js +1 -0
- package/dist/configurator/ui/assistant/popover/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/popover/index.js +1 -0
- package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
- package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -1
- package/dist/configurator/ui/assistant/streamed-markdown.d.ts +11 -0
- package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
- package/dist/configurator/ui/assistant/tool-chip.js +1 -1
- package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +22 -0
- package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -0
- package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
- package/dist/docs/index.json +1 -1
- package/dist/docs/phoenix/getting-started.mdx +0 -2
- package/dist/docs/phoenix/migration-guide.mdx +7 -8
- package/dist/docs/phoenix/phoenix-cli.mdx +21 -12
- package/dist/docs/phoenix/project-structure.mdx +30 -35
- package/dist/docs/phoenix/sdk-builder-workflow.mdx +3 -9
- package/dist/domain/application/GetApplicationWrapperHandler.d.ts +1 -1
- package/dist/domain/application/GetThemeHandler.d.ts +1 -1
- package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
- package/dist/domain/application/application-config.d.ts +1 -3
- package/dist/domain/application/assistant/assistant-fields.d.ts +1 -1
- package/dist/domain/application/assistant/assistant-value-type.d.ts +1 -1
- package/dist/domain/application/assistant/build-assistant-lenses.d.ts +1 -2
- package/dist/domain/application/assistant/build-assistant-manifest.d.ts +1 -2
- package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +1 -2
- package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
- package/dist/domain/application/assistant/index.d.ts +0 -4
- package/dist/domain/application/assistant/index.js +1 -1
- package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +1 -1
- package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +1 -1
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +1 -1
- package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +1 -2
- package/dist/domain/application/assistant-field-options.d.ts +1 -1
- package/dist/domain/application/assistant-mutations.d.ts +1 -1
- package/dist/domain/application/assistant-recipe-groups.d.ts +1 -1
- package/dist/domain/application/configurator-builder.d.ts +1 -2
- package/dist/domain/application/create-initial-published-data.d.ts +2 -1
- package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
- package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
- package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
- package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
- package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
- package/dist/domain/domain-builder/domain-builder.d.ts +1 -1
- package/dist/domain/domain-builder/domain-builder.js +1 -1
- package/dist/domain/domain-runtime/domain-runtime.d.ts +24 -24
- package/dist/domain/domain-runtime/index.d.ts +0 -1
- package/dist/domain/domain-runtime/index.js +1 -1
- package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +1 -1
- package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -1
- package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
- package/dist/domain/domain-runtime/spec/index.js +1 -1
- package/dist/domain/domain-runtime/spec/initialize.js +1 -1
- package/dist/domain/domain-runtime/spec/{module-checks/resolve-imported-transformers.d.ts → resolve-imported-transformers.d.ts} +3 -3
- package/dist/domain/domain-runtime/spec/resolve-imported-transformers.js +1 -0
- package/dist/domain/domain-runtime/spec/selectors.d.ts +5 -5
- package/dist/domain/domain-runtime/spec/types.d.ts +2 -2
- package/dist/domain/index.d.ts +13 -1
- package/dist/domain/index.js +1 -1
- package/dist/domain/mocks/create-test-application-config.d.ts +1 -1
- package/dist/domain/spec/index.d.ts +3 -8
- package/dist/domain/spec/index.js +1 -1
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/element-registration.d.ts +1 -1
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/find-assistant-form-element-errors.d.ts +1 -1
- package/dist/domain/spec/modules/find-assistant-form-element-errors.js +1 -0
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/index.d.ts +2 -3
- package/dist/domain/spec/modules/index.js +1 -0
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/merge-expression-modules.d.ts +2 -2
- package/dist/domain/spec/modules/merge-expression-modules.js +1 -0
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/project-modules.d.ts +1 -1
- package/dist/domain/spec/modules/project-modules.js +1 -0
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-action-modules.d.ts +1 -1
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-component-optic-modules.d.ts +1 -1
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-expression-modules.d.ts +1 -1
- package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-invariant-modules.d.ts +1 -1
- package/dist/domain/spec/phx/index.d.ts +1 -0
- package/dist/domain/spec/phx/index.js +1 -0
- package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx-application-types.d.ts +1 -1
- package/dist/domain/spec/phx/phx-application-types.js +1 -0
- package/dist/domain/spec/phx/phx-domain.js +1 -0
- package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx-model.d.ts +2 -2
- package/dist/domain/spec/phx/phx-model.js +1 -0
- package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx.d.ts +1 -2
- package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/admin-runtime.d.ts +7 -6
- package/dist/domain/spec/runtime/admin-runtime/admin-runtime.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/admin-spec-runtime.d.ts +2 -2
- package/dist/domain/spec/runtime/admin-runtime/admin-spec-runtime.js +1 -0
- package/dist/domain/spec/runtime/admin-runtime/index.d.ts +2 -0
- package/dist/domain/spec/runtime/admin-runtime/index.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/states-runtime.d.ts +1 -1
- package/dist/{application-spec/generate-application → domain/spec}/runtime/application-runtime.d.ts +8 -6
- package/dist/domain/spec/runtime/application-runtime.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/application-spec-slice.d.ts +3 -1
- package/dist/domain/spec/runtime/application-spec-slice.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/configurator-runtime.d.ts +8 -10
- package/dist/domain/spec/runtime/configurator-runtime/configurator-runtime.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/configurator-spec-runtime.d.ts +2 -2
- package/dist/domain/spec/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
- package/dist/domain/spec/runtime/configurator-runtime/index.d.ts +2 -0
- package/dist/domain/spec/runtime/configurator-runtime/index.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/states-runtime.d.ts +1 -1
- package/dist/{application-spec/generate-application → domain/spec}/runtime/create-application.d.ts +3 -2
- package/dist/domain/spec/runtime/create-application.js +1 -0
- package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/expression-runtime.d.ts +5 -2
- package/dist/domain/spec/runtime/expressions/expression-runtime.js +1 -0
- package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/generate-memo-eval-plan-runtime.d.ts +2 -1
- package/dist/domain/spec/runtime/expressions/generate-memo-eval-plan-runtime.js +1 -0
- package/dist/domain/spec/runtime/expressions/index.d.ts +3 -0
- package/dist/domain/spec/runtime/expressions/index.js +1 -0
- package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/reflection-constants-runtime.d.ts +2 -1
- package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/factory-data-runtime.d.ts +4 -2
- package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/recipe-defaults.d.ts +1 -1
- package/dist/domain/spec/runtime/factory-data/recipe-defaults.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/static-violations.d.ts +2 -1
- package/dist/domain/spec/runtime/factory-data/static-violations.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/generate-runtime-instance.d.ts +1 -1
- package/dist/domain/spec/runtime/generate-runtime-instance.js +1 -0
- package/dist/domain/spec/runtime/index.d.ts +13 -0
- package/dist/domain/spec/runtime/index.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/migrations/migration-runtime.d.ts +2 -2
- package/dist/domain/spec/runtime/migrations/migration-runtime.js +1 -0
- package/dist/{application-spec/generate-application/runtime/admin-runtime → domain/spec/runtime/model}/admin-model-runtime.d.ts +4 -2
- package/dist/domain/spec/runtime/model/admin-model-runtime.js +1 -0
- package/dist/{application-spec/generate-application/runtime/configurator-runtime → domain/spec/runtime/model}/configurator-model-runtime.d.ts +4 -2
- package/dist/domain/spec/runtime/model/configurator-model-runtime.js +1 -0
- package/dist/domain/spec/runtime/model/index.d.ts +2 -0
- package/dist/domain/spec/runtime/model/index.js +1 -0
- package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/optics}/build-sdk-optic.d.ts +3 -4
- package/dist/domain/spec/runtime/optics/build-sdk-optic.js +1 -0
- package/dist/domain/spec/runtime/optics/build-user-bound-optic.d.ts +7 -0
- package/dist/domain/spec/runtime/optics/build-user-bound-optic.js +1 -0
- package/dist/domain/spec/runtime/optics/built-component-optic.d.ts +11 -0
- package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/optics}/component-optic.d.ts +4 -13
- package/dist/domain/spec/runtime/optics/index.d.ts +2 -0
- package/dist/domain/spec/runtime/optics/index.js +1 -0
- package/dist/{application-spec/caching → domain/spec/runtime}/runtime-reference-store.d.ts +1 -5
- package/dist/domain/spec/runtime/runtime-reference-store.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/actions-runtime.d.ts +3 -2
- package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/assistant-runtime.d.ts +2 -2
- package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/data-runtime.d.ts +1 -1
- package/dist/domain/spec/runtime/sections/index.d.ts +6 -0
- package/dist/domain/spec/runtime/sections/index.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/preset-runtime.d.ts +3 -2
- package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/theme-runtime.d.ts +1 -1
- package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/transformers-runtime.d.ts +2 -2
- package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/resolve-spec-code.d.ts +1 -1
- package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-runtime.d.ts +3 -3
- package/dist/domain/spec/runtime/spec-runtime.js +1 -0
- package/dist/domain/spec/runtime-spec/index.d.ts +4 -0
- package/dist/domain/spec/runtime-spec/index.js +1 -0
- package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/runtime-spec.d.ts +7 -1
- package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/spec-code-id.d.ts +1 -1
- package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.js +1 -0
- package/dist/domain/spec/sections/assistant/index.d.ts +4 -0
- package/dist/domain/spec/sections/assistant/index.js +1 -0
- package/dist/domain/spec/sections/index.d.ts +1 -0
- package/dist/domain/spec/sections/index.js +1 -1
- package/dist/i18n/locales/cs/messages.js +1 -1
- package/dist/i18n/locales/da/messages.js +1 -1
- package/dist/i18n/locales/de/messages.js +1 -1
- package/dist/i18n/locales/de-AT/messages.js +1 -1
- package/dist/i18n/locales/en/messages.js +1 -1
- package/dist/i18n/locales/en-AU/messages.js +1 -1
- package/dist/i18n/locales/en-GB/messages.js +1 -1
- package/dist/i18n/locales/es/messages.js +1 -1
- package/dist/i18n/locales/fr/messages.js +1 -1
- package/dist/i18n/locales/hu/messages.js +1 -1
- package/dist/i18n/locales/it/messages.js +1 -1
- package/dist/i18n/locales/nl/messages.js +1 -1
- package/dist/i18n/locales/pl/messages.js +1 -1
- package/dist/i18n/locales/pt/messages.js +1 -1
- package/dist/i18n/locales/ro/messages.js +1 -1
- package/dist/i18n/locales/sk/messages.js +1 -1
- package/dist/i18n/locales/tr/messages.js +1 -1
- package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
- package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
- package/dist/phoenix/application-spec/index.d.ts +1 -0
- package/dist/phoenix/application-spec/index.js +1 -1
- package/dist/phoenix/application-spec/project-files.d.ts +8 -2
- package/dist/phoenix/application-spec/project-files.js +1 -1
- package/dist/phoenix/commands/clean.js +1 -1
- package/dist/phoenix/commands/deploy.js +1 -1
- package/dist/phoenix/services/source-archive.d.ts +2 -0
- package/dist/phoenix/services/source-archive.js +1 -1
- package/dist/phoenix/services/swc.d.ts +5 -4
- package/dist/phoenix/services/swc.js +2 -2
- package/dist/ui-sdk/components/numerical-input/InputField.d.ts +2 -0
- package/dist/ui-sdk/components/numerical-input/InputField.js +1 -1
- package/dist/ui-sdk/components/numerical-input/NumericalInput.d.ts +2 -2
- package/dist/ui-sdk/components/numerical-input/Slider.d.ts +3 -1
- package/dist/ui-sdk/components/numerical-input/Slider.js +1 -1
- package/package.json +3 -3
- package/dist/application-spec/caching/runtime-reference-store.js +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.d.ts +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.d.ts +0 -3
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +0 -166
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.d.ts +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +0 -54
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.d.ts +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +0 -115
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.d.ts +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +0 -6
- package/dist/application-spec/generate-application/implementations/phx-application-types.js +0 -1
- package/dist/application-spec/generate-application/implementations/phx-domain.js +0 -1
- package/dist/application-spec/generate-application/implementations/phx-model.js +0 -1
- package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/application-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/application-spec-slice.js +0 -1
- package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/create-application.js +0 -1
- package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +0 -1
- package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +0 -1
- package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +0 -1
- package/dist/application-spec/generate-application/runtime/index.d.ts +0 -8
- package/dist/application-spec/generate-application/runtime/index.js +0 -1
- package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +0 -1
- package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +0 -8
- package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +0 -1
- package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime/sections/index.d.ts +0 -10
- package/dist/application-spec/generate-application/runtime/sections/index.js +0 -1
- package/dist/application-spec/generate-application/runtime/spec-runtime.js +0 -1
- package/dist/application-spec/generate-application/runtime-spec/index.d.ts +0 -5
- package/dist/application-spec/generate-application/runtime-spec/index.js +0 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.d.ts +0 -17
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.js +0 -1
- package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +0 -1
- package/dist/domain/domain-runtime/spec/module-checks/index.js +0 -1
- package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +0 -1
- package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +0 -1
- package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +0 -1
- /package/dist/domain/{domain-runtime → spec}/errors/implementation-error-collector.d.ts +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/implementation-error-collector.js +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/implementation-error.d.ts +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/implementation-error.js +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/implementation-errors.d.ts +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/implementation-errors.js +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/index.d.ts +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/index.js +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/to-implementation-errors.d.ts +0 -0
- /package/dist/domain/{domain-runtime → spec}/errors/to-implementation-errors.js +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/element-registration.js +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/handler-registration.d.ts +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/handler-registration.js +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-action-modules.js +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-component-optic-modules.js +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-expression-modules.js +0 -0
- /package/dist/domain/{domain-runtime/spec/module-checks → spec/modules}/resolve-invariant-modules.js +0 -0
- /package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx-domain.d.ts +0 -0
- /package/dist/{application-spec/generate-application/implementations → domain/spec/phx}/phx.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/states-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/states-runtime.js +0 -0
- /package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/expressions}/reflection-constants-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/factory-data-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/index.d.ts +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/factory-data/index.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/migrations/index.d.ts +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/migrations/index.js +0 -0
- /package/dist/{application-spec/generate-application/runtime/spec-code/spec-code-module.js → domain/spec/runtime/optics/built-component-optic.js} +0 -0
- /package/dist/{application-spec/generate-application/runtime/sections → domain/spec/runtime/optics}/component-optic.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/actions-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/assistant-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/data-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/preset-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/theme-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/transformers-runtime.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/index.d.ts +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/index.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/resolve-spec-code.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime/spec-code/spec-code-module.d.ts +0 -0
- /package/dist/domain/{application/assistant/assistant-resolved-manifest.js → spec/runtime/spec-code/spec-code-module.js} +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/decode-runtime-spec.d.ts +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/decode-runtime-spec.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encode-runtime-spec.d.ts +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encode-runtime-spec.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encoded-runtime-spec.d.ts +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/encoded-runtime-spec.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/runtime-spec.js +0 -0
- /package/dist/{application-spec/generate-application → domain/spec}/runtime-spec/spec-code-id.js +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/assistant-manifest.d.ts +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/assistant-manifest.js +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/assistant-resolved-manifest.d.ts +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-element-name.d.ts +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-element-name.js +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-elements.d.ts +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/assistant-form-elements.js +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/assistant-resource-path.d.ts +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/assistant-resource-path.js +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/index.d.ts +0 -0
- /package/dist/domain/{application → spec/sections}/assistant/form/index.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ThemeOptions } from '@mui/material';
|
|
2
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../
|
|
2
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../spec/index.js';
|
|
3
3
|
export declare const GetThemeHandlerName = "GetThemeHandler";
|
|
4
4
|
export declare const createGetThemeHandler: (fn: () => ThemeOptions) => SystemPhoenixHandlerRegistration<void, ThemeOptions>;
|
|
5
5
|
export type CreateGetThemeHandler = (fn: () => ThemeOptions) => SystemPhoenixHandlerRegistration<void, ThemeOptions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../
|
|
1
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../spec/index.js';
|
|
2
2
|
import type { WebComponentOptions } from './application-config.js';
|
|
3
3
|
export declare const createGetWebComponentOptionsHandler: (fn: () => WebComponentOptions) => SystemPhoenixHandlerRegistration<undefined, WebComponentOptions>;
|
|
4
4
|
export type CreateGetWebComponentOptionsHandler = (fn: () => WebComponentOptions) => SystemPhoenixHandlerRegistration<undefined, WebComponentOptions>;
|
|
@@ -8,9 +8,7 @@ import type { CellValue } from '@salsita-ai/contracts/webhook';
|
|
|
8
8
|
import type { AdminIntegrationService } from '#package/react-sdk';
|
|
9
9
|
import type { $DomainEntity, DataCellValue, DataSchema, DomainEntity, DomainFactory, ProductPreset } from '../core/index.js';
|
|
10
10
|
import type { AnalyticsSystem, RegistrableTransformer, TransformerFactory } from '../domain-context/index.js';
|
|
11
|
-
import type { ElementRegistration, ProjectModule } from '../
|
|
12
|
-
import type { AdminPagesSection } from '../spec/index.js';
|
|
13
|
-
import type { AssistantResolvedManifest } from './assistant/index.js';
|
|
11
|
+
import type { AdminPagesSection, AssistantResolvedManifest, ElementRegistration, ProjectModule } from '../spec/index.js';
|
|
14
12
|
import type { WebComponentEventDescriptor } from './web-component-event.js';
|
|
15
13
|
import type { WebComponentPropertyDescriptor } from './web-component-property.js';
|
|
16
14
|
type TransformerExport = ReturnType<TransformerFactory<any, any, any, any, any, any, any>> | RegistrableTransformer<any, any, any, any, any, any, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistantDeclaredField, AssistantResolvedField } from '
|
|
1
|
+
import type { AssistantDeclaredField, AssistantResolvedField } from '../../spec/index.js';
|
|
2
2
|
/** Combines the effective description with allowed string values. */
|
|
3
3
|
export declare const describeAssistantValues: (description: string | undefined, values: readonly string[] | undefined) => string | undefined;
|
|
4
4
|
/** Applies GraphQL field inheritance identically at parse time and after session narrowing. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type GraphQLInputType, type GraphQLOutputType, GraphQLScalarType } from 'graphql';
|
|
2
|
-
import type { AssistantValueType } from '
|
|
2
|
+
import type { AssistantValueType } from '../../spec/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Opaque scalar for values the assistant schema does not type: objects, custom TypeScript types and
|
|
5
5
|
* loose unions. A value is plain serializable data and passes through unchanged.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type GraphQLSchema } from 'graphql';
|
|
2
|
-
import type { AssistantManifest } from '
|
|
3
|
-
import type { AssistantResolvedManifest } from './assistant-resolved-manifest.js';
|
|
2
|
+
import type { AssistantManifest, AssistantResolvedManifest } from '../../spec/index.js';
|
|
4
3
|
/**
|
|
5
4
|
* Generates the lens fragments of a resolved manifest for the execution schema compiled from it. A
|
|
6
5
|
* declared lens becomes one fragment on `AnyDomainEntity`; one that session narrowing left without a
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AssistantManifest } from '
|
|
2
|
-
import type { AssistantResolvedManifest } from './assistant-resolved-manifest.js';
|
|
1
|
+
import type { AssistantManifest, AssistantResolvedManifest } from '../../spec/index.js';
|
|
3
2
|
/** Constructs the schema and runtime sources exclusively from serializable resolved data. */
|
|
4
3
|
export declare const buildAssistantManifest: (resolved: AssistantResolvedManifest) => Required<AssistantManifest>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type AssistantFormElementDescriptor } from './form/index.js';
|
|
1
|
+
import { type AssistantFormElementDescriptor, type AssistantManifest } from '../../spec/index.js';
|
|
3
2
|
/** How the prompt writes an element: its tag with each attribute and what it takes. Exported for tests. */
|
|
4
3
|
export declare const formElementSignature: ({ name, role, attributes }: AssistantFormElementDescriptor) => string;
|
|
5
4
|
/** SDK-version conventions for using the manifest's capabilities and reading their results. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ASSISTANT_BUILT_IN_FORM_ELEMENTS as e}from"
|
|
1
|
+
import{ASSISTANT_BUILT_IN_FORM_ELEMENTS as e}from"../../spec/index.js";let t=[["Containers",["group","choice","choices"]],["Options",["option"]],["Inputs",["input"]]];export const formElementSignature=({name:e,role:t,attributes:a})=>{let n=["label",...Object.entries(a).map(([e,t])=>((e,{type:t,enum:a})=>a?`${e}="${a.join("|")}"`:"string"===t?e:`${e}="<${t}>"`)(e,t))];return"option"===t||"input"===t?`<${e} ${n.join(" ")} />`:`<${e} ${n.join(" ")}>…</${e}>`};export const generateAssistantPrompt=a=>{let n,s=Object.values(a.childRecipes??{}).some(e=>e.length>0),o=Object.values(a.replaceRecipes??{}).some(e=>e.length>0),i=Object.values(a.fieldOptions??{}).some(e=>e.length>0),r=Object.keys(a.actions??{}).length>0,h=Object.values(a.screenshots??{}).some(e=>e.length>0),l=(a.deletableTypes?.length??0)>0||Object.values(a.writableFields??{}).some(e=>Object.keys(e).length>0)||s||o||r,d=s||o||i,u=[...s?["`childRecipes` is what can be added to it"]:[],...o?["`replaceRecipes` what it can be replaced with"]:[],...i?["`<field>Options` the values a field accepts"]:[]],c=["`selected`",...(a.navigationFields??[]).map(e=>`\`${e}\``)].join(", ");return[["Tools","- Put related operations in one call and select only the fields you need.",`- Give every ${l?"`query` and `apply` call":"`query` call"} a \`title\` of two to five words in the user's language that says what it does for them, e.g. ${l?'"Add two drawers"':'"Compare drawer prices"'}.`,...l?[`- Use a mutation inside \`query\` to answer a what-if about a change ${d?"the lists under `meta` do not show":"before making it"}.`,"- Use `apply` only for what the user asked for."]:["- Nothing in this configurator can be changed through you. Say so when the user asks for a change."],"- When an operation fails, its `errors` say why and what to send instead. A change the configuration does not allow fails with one error per reason, as the user would be told it.","- Warnings and notices never make anything fail. The root `warnings` field lists every current one, and `meta { warnings }` those of one entity, where its type has them."],...l?[["After a change","- A change is made only when the `apply` result has `committed: true`. Otherwise `errors` or `message` says what happened; without either, nothing changed. Never say a change was made when it was not.","- `sideEffects` names the major or unexpected things the configurator changed along with your change. Tell the user about them when committed; otherwise they describe what would happen. Smaller adjustments are not listed.","- `warnings` lists the warnings and notices your change newly causes. They do not block it: tell the user about them, and offer a fix when one is clear.","- A mutation returns the state after the change: use the ids and values it returned, not the ones you sent.",...r?["- When one mutation does the whole of what the user asked, use it instead of building the same change from several others."]:[]]]:[],...d?[["What can be done to an entity",`- \`meta\` lists what is possible right now: ${u.join(", ")}. Read the list before such a change and before telling the user what is available.`,`- You can select \`dryRun\` on ${[...s||o?["recipes"]:[],...i?["options"]:[]].join(" or ")} to look ahead and pick one that meets what the user asked for. It is optional before a change.`,`- Select only the ${[...s||o?["recipe groups"]:[],...i?["options edges"]:[]].join(" and ")} you need. To read again only the ones you are deciding between, pass ${[...s||o?["their `key` to `recipes(keys:)`"]:[],...i?["their `value` to `<field>Options(values:)`"]:[]].join(" or ")}.`,"- Read the lists again after a change, unless their descriptions say they stay the same."]]:[],...h?[["Seeing the design","- `meta { screenshot(view: …) { image } }` renders an entity from one of the views its `<Type>ScreenshotView` lists. The picture follows the tool result.","- Take one when the user asks how the design looks, or when you are not sure something is laid out right: what sits where, what overlaps or lines up. Otherwise rely on the data.","- Each one costs tokens and blocks the user's configurator while it renders."]]:[],["Images from the user","- The user may attach photos or reference images to a message, such as their room or a design they like.","- Sizes you read from a photo are estimates: tell the user the values you read and confirm them before you apply them."],["The `[changes]` block","- Every user message starts with it: a glimpse of what the user did in the configurator since your last turn.",`- \`[changes: none]\`, or only ${c} lines: what you know still holds. Do not query it again.`,"- Other lines are a hint at what to read again: `A` added, `D` deleted, `M` modified with the fields. Text after `#` says what caused the line; `reset: undo/redo` says the user undid or redid changes.","- Read computed fields again when a listed change may affect them.","- `[changes: unavailable]` and `[changes: too many (n)]`: read again before relying on anything you read earlier.",...l?["- Your applied changes are not listed, except those waiting for user approval: they appear once approved."]:[]],["Reading the schema","- Take ids from results.",...(a.deletableTypes?.length??0)>0||o?["- The id of a deleted or replaced entity is gone and may later be given to another entity."]:[],`- A field whose name starts with \`_\` is computed: read it${l?", never write it":""}.`,"- Numbers are in the unit the field description names. Convert when the user uses another unit."],["Links","- You may link an entity of the current configuration when you speak about that very entity: `[the left burner](entity:CookingTop-1)`. It helps the user find it in the configurator.",...d?["- Whenever you name recipes or options you read from `meta`, in a list, a table or a sentence, link each one: `[Single gas burner](recipe:KitchenRange-1/top/gas_single)` or `[Oak](option:Cabinet-2/finishOptions/oak)`. The link shows the user its picture or color and its description, so never draw previews yourself. The target is the entity id, the recipe group id or the options field you read, and the key or value, each encoded as in a URL."]:[]],["Replies","- Write Markdown only, never HTML: the panel does not render it.","- An image, ``, is shown only when its path is relative.","- To make a warning or a key note stand out, write a GitHub alert: a blockquote whose first line is only `[!WARNING]` or `[!NOTE]`. Use it sparingly."],["Forms","- To ask the user something they answer by picking or typing, end your reply with a form: a fenced code block with the language `form`. It holds only elements, written as lowercase tags with string attributes, without Markdown or text.","- Every element takes `label`, the text the user sees; on a container or an input it also names the answer. An option or an input whose signature lists `value` takes it: an option sends it instead of its label, and an input starts with it.",'- A bare attribute in a signature takes any text, `name="<type>"` takes a value of that type written as text, such as `min="<number>"`, and `name="a|b"` takes one of the words listed.',"- Options can also stand on their own, outside a `choice` or `choices`.","- An element or attribute not listed here, or an element other than an option inside a `choice` or `choices`, makes the whole form fail.","- The answer is the user's next message. Each container or input gives a line `Label: value`, or the bare value without a label; the lines of a labelled container are indented by two spaces under it, a `choices` lists each picked option on its own line, and `—` marks what was left unanswered.",'- Example: `<choice label="Plinth"><reply label="Black" /><reply label="Oak" /></choice>` is answered with `Plinth: Oak`.',"- The chat shows the answer as the user's own message, so a `value` reads as natural words, never as an id, key or code. Give `value` only when the label alone would be unclear as an answer, and map the answer's labels back to ids yourself.",...(n=[...e,...a.formElements??[]],t.flatMap(([e,t])=>{let a=n.filter(({role:e})=>t.includes(e));return 0===a.length?[]:[`- ${e}:`,...a.map(e=>` - \`${formElementSignature(e)}\`: ${(({description:e,required:t=[]})=>0===t.length?e:`${e} Requires ${t.map(e=>`\`${e}\``).join(", ")}.`)(e)}`)]}))],...a.lenses?.declarations?[["Built-in fragments","- These fragments are already defined for every operation. Spread one by name on a field of its type, as in `field { ...FragmentName }`, instead of listing its fields.","- A fragment is a starting selection: add the other fields you need next to the spread, by name from the schema.","- Never define a fragment with one of these names.","",a.lenses.declarations]]:[]].map(e=>e.join("\n")).join("\n\n")};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export { ASSISTANT_HINTS } from './assistant-manifest.js';
|
|
2
|
-
export type { AssistantResolvedManifest, AssistantDeclaredField, AssistantDeclarations, AssistantDeclaredWrite, AssistantResolvedField, AssistantValueType, AssistantRelationType, AssistantStates, AssistantWritableType, AssistantWritableField, AssistantResolvedRecipes, AssistantResolvedOptionsEdge, AssistantResolvedAction, AssistantResolvedActionResult, } from './assistant-resolved-manifest.js';
|
|
3
1
|
export { buildAssistantManifest } from './build-assistant-manifest.js';
|
|
4
2
|
export type { AssistantFieldExposure } from './create-assistant-execution-schema.js';
|
|
5
3
|
export { AssistantFieldClashError, createAssistantExecutionSchema } from './create-assistant-execution-schema.js';
|
|
6
|
-
export type { AssistantFieldSource, AssistantResolvedHint, AssistantRecipeGroup, AssistantFieldOptions, AssistantScreenshotView, AssistantManifest, } from './assistant-manifest.js';
|
|
7
4
|
export { generateAssistantPrompt } from './generate-assistant-prompt.js';
|
|
8
5
|
export * from './session-setup/index.js';
|
|
9
6
|
export { describeAssistantValues, mergeAssistantFields, resolveAssistantField } from './assistant-fields.js';
|
|
10
|
-
export * from './form/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{buildAssistantManifest}from"./build-assistant-manifest.js";export{AssistantFieldClashError,createAssistantExecutionSchema}from"./create-assistant-execution-schema.js";export{generateAssistantPrompt}from"./generate-assistant-prompt.js";export*from"./session-setup/index.js";export{describeAssistantValues,mergeAssistantFields,resolveAssistantField}from"./assistant-fields.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccessLevel, SessionRole } from '@salsita-ai/contracts/api';
|
|
2
2
|
import type { $DomainEntity, ActionTypes, DomainEntity } from '../../../core/index.js';
|
|
3
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../../
|
|
3
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../../spec/index.js';
|
|
4
4
|
import type { AssistantSetupManifest } from './assistant-setup-manifest.js';
|
|
5
5
|
/** Project-defined session inputs used by browser execution and the assistant setup webhook. */
|
|
6
6
|
export interface AssistantSetupInputs<SESSION_DATA> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistantResolvedManifest } from '
|
|
1
|
+
import type { AssistantResolvedManifest } from '../../../spec/index.js';
|
|
2
2
|
import { type AssistantSetupManifest, type AssistantSetupSettings } from './assistant-setup-manifest.js';
|
|
3
3
|
/** A project returned a setup that broadens or invalidates its declared whitelist. */
|
|
4
4
|
export declare class AssistantSetupError extends Error {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AssistantAiSettings } from '@salsita-ai/contracts/assistant';
|
|
2
2
|
import type { $DomainEntity, ActionTypes, DomainEntity } from '../../../core/index.js';
|
|
3
|
-
import type { AssistantResolvedManifest } from '
|
|
3
|
+
import type { AssistantResolvedManifest } from '../../../spec/index.js';
|
|
4
4
|
/** Declaration-shaped whitelist a project may narrow; bindings and hints stay internal. */
|
|
5
5
|
export interface AssistantSetupManifest<ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes> {
|
|
6
6
|
readonly entities: string extends keyof $MAP ? Readonly<Record<string, Readonly<Record<string, AssistantSetupField>>>> : {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { AssistantManifest } from '
|
|
2
|
-
import type { AssistantResolvedManifest } from '../assistant-resolved-manifest.js';
|
|
1
|
+
import type { AssistantManifest, AssistantResolvedManifest } from '../../../spec/index.js';
|
|
3
2
|
import type { AssistantSetupHandlerProps, TypedCreateAssistantSetupHandler } from './AssistantSetupHandler.js';
|
|
4
3
|
/** Session-derived browser manifest; a rejected setup retains its error without exposing the baseline. */
|
|
5
4
|
export interface SessionAssistantSetup {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DomainEntity, DomainEntityId, DomainState } from '../core/index.js';
|
|
2
|
+
import type { AssistantFieldOptions, AssistantManifest } from '../spec/index.js';
|
|
2
3
|
import type { AssistantRecipeContext } from './assistant-recipe-groups.js';
|
|
3
|
-
import type { AssistantFieldOptions, AssistantManifest } from './assistant/index.js';
|
|
4
4
|
type AnyDomainState = DomainState<DomainEntity<string>>;
|
|
5
5
|
/**
|
|
6
6
|
* One choice of a writable field as the assistant reads it, whatever component holds it: the value
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Localizable } from '@salsita-ai/common/utils';
|
|
2
2
|
import { type DomainEntity, type DomainState, type StateUpdate } from '../core/index.js';
|
|
3
3
|
import type { AnyActionContext } from '../domain-runtime/index.js';
|
|
4
|
-
import type { AssistantManifest } from '
|
|
4
|
+
import type { AssistantManifest } from '../spec/index.js';
|
|
5
5
|
type AnyDomainState = DomainState<DomainEntity<string>>;
|
|
6
6
|
/**
|
|
7
7
|
* Update tag of user-intended entity deletions, from the configurator's delete controls and the
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Localizable } from '@salsita-ai/common/utils';
|
|
2
2
|
import type { ComponentSnapshot, DomainEntity, DomainEntityCreation, DomainEntityId, DomainEntityReplacement, DomainState, OneComponentFilter } from '../core/index.js';
|
|
3
3
|
import type { AnyRecipeCookerSystem } from '../domain-context/index.js';
|
|
4
|
+
import type { AssistantManifest, AssistantRecipeGroup } from '../spec/index.js';
|
|
4
5
|
import type { AttributeSelectionComponent } from '../system-components/attribute-selection.js';
|
|
5
6
|
import { type ChildEntityRecipesComponent } from '../system-components/child-entity-recipes.js';
|
|
6
7
|
import type { RecipeListItem } from '../system-components/common/recipes.js';
|
|
7
8
|
import type { DistanceDimensionSelectComponent } from '../system-components/distance-dimension-select.js';
|
|
8
9
|
import type { MaterialSwatchComponent } from '../system-components/material-swatch.js';
|
|
9
10
|
import { type ReplaceEntityRecipesComponent } from '../system-components/replace-entity-recipes.js';
|
|
10
|
-
import type { AssistantManifest, AssistantRecipeGroup } from './assistant/index.js';
|
|
11
11
|
type AnyDomainState = DomainState<DomainEntity<string>>;
|
|
12
12
|
/** An update a recipe cooks to: the creation of an entity, or the replacement of the entity a replace recipe is for. */
|
|
13
13
|
type AnyRecipeUpdate = DomainEntityCreation<DomainEntity<string>, DomainEntity<string>> | DomainEntityReplacement<DomainEntity<string>>;
|
|
@@ -3,9 +3,8 @@ import type { ThemeOptions } from '@mui/material';
|
|
|
3
3
|
import type { z } from 'zod';
|
|
4
4
|
import type { FinalizeTaskResource } from '@salsita-ai/contracts/webhook';
|
|
5
5
|
import { type $DomainEntity, type DomainEntity, type DomainFactory, type EnumLike, type ProductPreset, type SchemaOfObject } from '../core/index.js';
|
|
6
|
-
import {
|
|
6
|
+
import type { AssistantResolvedManifest, ElementRegistration, HandlerRegistration, ProjectModule } from '../spec/index.js';
|
|
7
7
|
import type { AclConfig, ApplicationConfig, DataSpec, DefaultEnvs, ResourcesConfig, SpecTransformer, TransformersConfig, UserInterfaceConfig } from './application-config.js';
|
|
8
|
-
import { type AssistantResolvedManifest } from './assistant/index.js';
|
|
9
8
|
interface ConfiguratorBuilderContext<ENTITIES extends DomainEntity<string> = never, ALLOWED_ROOT_ENTITIES extends ENTITIES = never, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>> = never, NAVIGATION_STATES extends string = never, VIEW_STATES extends string = never, TOOL_STATES extends string = never, EXPORT_STATES extends string = never, PUBLISHED_DATA extends Record<string, unknown> = never, SESSION_DATA extends Record<string, unknown> = never, FRONTEND_DATA extends Record<string, unknown> = never, ADMIN_ENTITIES extends DomainEntity<string> = never, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES = never, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>> = never, ADMIN_NAVIGATION_STATES extends string = never, ADMIN_VIEW_STATES extends string = never, FINALIZE_DATA extends Record<string, unknown> = never, PREFETCHED_FINALIZE_DATA extends Record<string, unknown> = never, FINALIZE_RESULT extends Record<string, unknown> = never, CALLBACK_DATA extends Record<string, unknown> = never, RESOURCE extends string = never> {
|
|
10
9
|
version?: string;
|
|
11
10
|
textLanguages?: string[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Logger } from '@salsita-ai/common/utils';
|
|
2
2
|
import type { DomainEntity, DomainFactory, ProductPreset } from '../core/index.js';
|
|
3
|
-
import type { DomainRuntime
|
|
3
|
+
import type { DomainRuntime } from '../domain-runtime/index.js';
|
|
4
|
+
import type { HandlerRegistration } from '../spec/index.js';
|
|
4
5
|
import type { ChunksSpec, DataSpec } from './application-config.js';
|
|
5
6
|
export interface CreateInitialPublishedDataProps<PUBLISHED_DATA extends Record<string, unknown>> {
|
|
6
7
|
readonly adminDomainFactory: DomainFactory<any, any, any, PUBLISHED_DATA, any, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../
|
|
1
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../spec/index.js';
|
|
2
2
|
import type { DataRowValidator, DataRowValidatorProps, RowValidationMessage } from './validate-sheet-data.js';
|
|
3
3
|
export declare const DataRowValidatorHandlerName = "DataRowValidator";
|
|
4
4
|
export type DataRowValidatorResult = readonly RowValidationMessage[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../
|
|
1
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../spec/index.js';
|
|
2
2
|
export declare const FilterPublishedChunksHandlerName = "FilterPublishedChunks";
|
|
3
3
|
export declare const isFilterPublishedChunksHandler: (handler: HandlerRegistration<any, any>) => handler is SystemPhoenixHandlerRegistration<void, readonly string[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SheetTabData } from '@salsita-ai/contracts/webhook';
|
|
2
2
|
import type { $DomainEntity, DomainEntity, DomainState } from '../../core/index.js';
|
|
3
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../
|
|
3
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../spec/index.js';
|
|
4
4
|
import type { ChunkedPublishedData } from './map-published-chunked-data.js';
|
|
5
5
|
export type MapPublishedChunkedDataHandlerProps<ADMIN_ENTITIES extends DomainEntity<string>, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>>> = {
|
|
6
6
|
readonly entities: DomainState<ADMIN_ENTITIES>['entities'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { $DomainEntity, DomainEntity, DomainState } from '../../core/index.js';
|
|
2
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../
|
|
2
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../spec/index.js';
|
|
3
3
|
export type MapPublishedRevisionDataHandlerProps<ADMIN_ENTITIES extends DomainEntity<string>, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>>> = {
|
|
4
4
|
entities: DomainState<ADMIN_ENTITIES>['entities'];
|
|
5
5
|
adminEntity: ADMIN_$MAP[ADMIN_ALLOWED_ROOT_ENTITIES['type']];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../
|
|
1
|
+
import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../spec/index.js';
|
|
2
2
|
import type { SheetDataValidator, SheetValidationMessage, SheetValidatorProps } from './validate-sheet-data.js';
|
|
3
3
|
export declare const SheetValidatorHandlerName = "SheetValidator";
|
|
4
4
|
export type SheetValidatorResult = readonly SheetValidationMessage[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtendedJsonSchema } from '@salsita-ai/common/utils';
|
|
2
2
|
import { type $DomainEntity, type $DomainEntityReflection, type ActionDefinition, type AliasMap, type AliasedExpressions, type AnyActionImplementations, type DomainEntity, DomainFactory, type EntityByType, type EntityReflections, type MigrateFunction, type SchemaOfObject } from '../core/index.js';
|
|
3
|
-
import { type ProjectModule } from '../
|
|
3
|
+
import { type ProjectModule } from '../spec/index.js';
|
|
4
4
|
type $EntityReflections<ENTITIES extends DomainEntity<string>> = {
|
|
5
5
|
[TYPE in ENTITIES['type']]: $DomainEntityReflection<$DomainEntity<EntityByType<ENTITIES, TYPE>>>;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DomainFactory as t,createMigrateFunction as i,expandAlias as e}from"../core/index.js";import{mergeExpressionModules as s,resolveActionModules as n}from"../
|
|
1
|
+
import{DomainFactory as t,createMigrateFunction as i,expandAlias as e}from"../core/index.js";import{mergeExpressionModules as s,resolveActionModules as n}from"../spec/index.js";import{withProfilerLabel as a}from"../utils/index.js";export class DomainBuilder{entities;aliasMap;$entityReflections;allowedRootEntityTypes;implemented;modelVersion;publishedData;sessionData;frontendData;backendData;migrate;isAdminDomain;actions;actionImplementations;constructor(t,i,e,s,n,a,o,h,l,m,r,d,p,c){this.entities=t,this.aliasMap=i,this.$entityReflections=e,this.allowedRootEntityTypes=s,this.implemented=n,this.modelVersion=a,this.publishedData=o,this.sessionData=h,this.frontendData=l,this.backendData=m,this.migrate=r,this.isAdminDomain=d,this.actions=p,this.actionImplementations=c}static from(t,e,s,n,a,o,h,l,m,r){let d=i({1:t},1,{});return new DomainBuilder(t,e,s,n,{},a,o,h,l,m,d,r,{},{})}withMigrate(t){return new DomainBuilder(this.entities,this.aliasMap,this.$entityReflections,this.allowedRootEntityTypes,this.implemented,this.modelVersion,this.publishedData,this.sessionData,this.frontendData,this.backendData,t,this.isAdminDomain,this.actions,this.actionImplementations)}withExpressions(t){let i=Object.entries(t);return this.withEntityExpressions(i.flatMap(([t,i])=>e(this.aliasMap,t).flatMap(e=>Object.entries(i).map(([i,s])=>({type:e,expression:{...s,origin:{name:i,typeOrAlias:t}}})))))}withExpressionModules(t){let i=new Map(Object.entries(this.implemented).map(([t,i])=>[t,new Set(Object.keys(i))]));return this.withEntityExpressions(Object.entries(s(t,this.aliasMap,void 0,i)).flatMap(([t,i])=>Object.values(i).map(i=>({type:t,expression:i}))))}withEntityExpressions(t){let i={...this.implemented};return t.forEach(({type:t,expression:e})=>{let{name:s,typeOrAlias:n}=e.origin,o={...i[t]},h=o[s];if(h)throw Error(`Duplicate expression ${t}.${s}: The expression is defined on both ${n} and ${h.origin.typeOrAlias}, which would lead to ambiguous usage. Please ensure that expressions are only defined once.`);o[s]={...e,evaluate:a(`${t}_${s}`,e.evaluate)},i[t]=o}),new DomainBuilder(this.entities,this.aliasMap,this.$entityReflections,this.allowedRootEntityTypes,i,this.modelVersion,this.publishedData,this.sessionData,this.frontendData,this.backendData,this.migrate,this.isAdminDomain,this.actions,this.actionImplementations)}withActions(t){return new DomainBuilder(this.entities,this.aliasMap,this.$entityReflections,this.allowedRootEntityTypes,this.implemented,this.modelVersion,this.publishedData,this.sessionData,this.frontendData,this.backendData,this.migrate,this.isAdminDomain,Object.fromEntries(t.map(t=>[t.name,t])),this.actionImplementations)}withActionModules(t){return this.withActionImplementations(n(t))}withActionImplementations(t){return new DomainBuilder(this.entities,this.aliasMap,this.$entityReflections,this.allowedRootEntityTypes,this.implemented,this.modelVersion,this.publishedData,this.sessionData,this.frontendData,this.backendData,this.migrate,this.isAdminDomain,this.actions,{...this.actionImplementations,...t})}build=()=>{let e=this.implemented,s=this.migrate??i({1:this.entities},1,{});return new t({aliasMap:this.aliasMap,entityReflections:this.entities,$entityReflections:this.$entityReflections,expressions:e,allowedRootEntityTypes:this.allowedRootEntityTypes,modelVersion:this.modelVersion,migrate:s,publishedData:this.publishedData,sessionData:this.sessionData,frontendData:this.frontendData,backendData:this.backendData,isAdminDomain:this.isAdminDomain,actions:this.actions,actionImplementations:this.actionImplementations})}}
|
|
@@ -88,17 +88,17 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
|
|
|
88
88
|
selectPrefetchTextureUrls: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly string[]>;
|
|
89
89
|
selectTextLanguages: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly string[]>;
|
|
90
90
|
selectHandlerHashes: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, Record<string, string>>;
|
|
91
|
-
selectHandlers: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("
|
|
91
|
+
selectHandlers: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("../index.js").HandlerRegistration<any, any>[]>;
|
|
92
92
|
selectHandlerSlots: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, {
|
|
93
|
-
handlers: Record<string, () => import("
|
|
94
|
-
systemHandlers: Record<string, () => import("
|
|
95
|
-
systemAsyncHandlers: Record<string, () => import("
|
|
93
|
+
handlers: Record<string, () => import("../index.js").PhoenixHandlerDefinition>;
|
|
94
|
+
systemHandlers: Record<string, () => import("../index.js").SystemPhoenixHandlerDefinition<unknown, unknown>>;
|
|
95
|
+
systemAsyncHandlers: Record<string, () => import("../index.js").SystemPhoenixAsyncHandlerDefinition<unknown, unknown>>;
|
|
96
96
|
hashes: Record<string, string>;
|
|
97
97
|
}>;
|
|
98
98
|
selectElementHashes: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, Record<string, string>>;
|
|
99
|
-
selectElements: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("
|
|
99
|
+
selectElements: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("../index.js").ElementRegistration[]>;
|
|
100
100
|
selectElementSlots: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, {
|
|
101
|
-
entityElements: Record<string, (props: import("
|
|
101
|
+
entityElements: Record<string, (props: import("../index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
|
|
102
102
|
layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
|
|
103
103
|
assistantFormElements: Record<string, import("react").ComponentType<never>>;
|
|
104
104
|
hashes: Record<string, string>;
|
|
@@ -132,17 +132,17 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
|
|
|
132
132
|
getPrefetchTextureUrls: () => readonly string[];
|
|
133
133
|
getTextLanguages: () => readonly string[];
|
|
134
134
|
getHandlerHashes: () => Record<string, string>;
|
|
135
|
-
getHandlers: () => readonly import("
|
|
135
|
+
getHandlers: () => readonly import("../index.js").HandlerRegistration<any, any>[];
|
|
136
136
|
getHandlerSlots: () => {
|
|
137
|
-
handlers: Record<string, () => import("
|
|
138
|
-
systemHandlers: Record<string, () => import("
|
|
139
|
-
systemAsyncHandlers: Record<string, () => import("
|
|
137
|
+
handlers: Record<string, () => import("../index.js").PhoenixHandlerDefinition>;
|
|
138
|
+
systemHandlers: Record<string, () => import("../index.js").SystemPhoenixHandlerDefinition<unknown, unknown>>;
|
|
139
|
+
systemAsyncHandlers: Record<string, () => import("../index.js").SystemPhoenixAsyncHandlerDefinition<unknown, unknown>>;
|
|
140
140
|
hashes: Record<string, string>;
|
|
141
141
|
};
|
|
142
142
|
getElementHashes: () => Record<string, string>;
|
|
143
|
-
getElements: () => readonly import("
|
|
143
|
+
getElements: () => readonly import("../index.js").ElementRegistration[];
|
|
144
144
|
getElementSlots: () => {
|
|
145
|
-
entityElements: Record<string, (props: import("
|
|
145
|
+
entityElements: Record<string, (props: import("../index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
|
|
146
146
|
layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
|
|
147
147
|
assistantFormElements: Record<string, import("react").ComponentType<never>>;
|
|
148
148
|
hashes: Record<string, string>;
|
|
@@ -699,17 +699,17 @@ export declare const createDomainRuntime: (props: DomainRuntimeProps) => {
|
|
|
699
699
|
selectPrefetchTextureUrls: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly string[]>;
|
|
700
700
|
selectTextLanguages: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly string[]>;
|
|
701
701
|
selectHandlerHashes: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, Record<string, string>>;
|
|
702
|
-
selectHandlers: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("
|
|
702
|
+
selectHandlers: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("../index.js").HandlerRegistration<any, any>[]>;
|
|
703
703
|
selectHandlerSlots: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, {
|
|
704
|
-
handlers: Record<string, () => import("
|
|
705
|
-
systemHandlers: Record<string, () => import("
|
|
706
|
-
systemAsyncHandlers: Record<string, () => import("
|
|
704
|
+
handlers: Record<string, () => import("../index.js").PhoenixHandlerDefinition>;
|
|
705
|
+
systemHandlers: Record<string, () => import("../index.js").SystemPhoenixHandlerDefinition<unknown, unknown>>;
|
|
706
|
+
systemAsyncHandlers: Record<string, () => import("../index.js").SystemPhoenixAsyncHandlerDefinition<unknown, unknown>>;
|
|
707
707
|
hashes: Record<string, string>;
|
|
708
708
|
}>;
|
|
709
709
|
selectElementHashes: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, Record<string, string>>;
|
|
710
|
-
selectElements: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("
|
|
710
|
+
selectElements: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, readonly import("../index.js").ElementRegistration[]>;
|
|
711
711
|
selectElementSlots: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, {
|
|
712
|
-
entityElements: Record<string, (props: import("
|
|
712
|
+
entityElements: Record<string, (props: import("../index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
|
|
713
713
|
layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
|
|
714
714
|
assistantFormElements: Record<string, import("react").ComponentType<never>>;
|
|
715
715
|
hashes: Record<string, string>;
|
|
@@ -743,17 +743,17 @@ export declare const createDomainRuntime: (props: DomainRuntimeProps) => {
|
|
|
743
743
|
getPrefetchTextureUrls: () => readonly string[];
|
|
744
744
|
getTextLanguages: () => readonly string[];
|
|
745
745
|
getHandlerHashes: () => Record<string, string>;
|
|
746
|
-
getHandlers: () => readonly import("
|
|
746
|
+
getHandlers: () => readonly import("../index.js").HandlerRegistration<any, any>[];
|
|
747
747
|
getHandlerSlots: () => {
|
|
748
|
-
handlers: Record<string, () => import("
|
|
749
|
-
systemHandlers: Record<string, () => import("
|
|
750
|
-
systemAsyncHandlers: Record<string, () => import("
|
|
748
|
+
handlers: Record<string, () => import("../index.js").PhoenixHandlerDefinition>;
|
|
749
|
+
systemHandlers: Record<string, () => import("../index.js").SystemPhoenixHandlerDefinition<unknown, unknown>>;
|
|
750
|
+
systemAsyncHandlers: Record<string, () => import("../index.js").SystemPhoenixAsyncHandlerDefinition<unknown, unknown>>;
|
|
751
751
|
hashes: Record<string, string>;
|
|
752
752
|
};
|
|
753
753
|
getElementHashes: () => Record<string, string>;
|
|
754
|
-
getElements: () => readonly import("
|
|
754
|
+
getElements: () => readonly import("../index.js").ElementRegistration[];
|
|
755
755
|
getElementSlots: () => {
|
|
756
|
-
entityElements: Record<string, (props: import("
|
|
756
|
+
entityElements: Record<string, (props: import("../index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
|
|
757
757
|
layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
|
|
758
758
|
assistantFormElements: Record<string, import("react").ComponentType<never>>;
|
|
759
759
|
hashes: Record<string, string>;
|
|
@@ -2,7 +2,6 @@ export * from './domain-runtime.js';
|
|
|
2
2
|
export { type Application, applicationFromConfig } from './application.js';
|
|
3
3
|
export * from './domain-context/index.js';
|
|
4
4
|
export * from './domain-services/index.js';
|
|
5
|
-
export { type ImplementationErrorCode, type ImplementationErrorCollector, type ImplementationErrorProps, type StartupStage, ImplementationError, ImplementationErrors, createImplementationErrorCollector, isImplementationError, isImplementationErrors, toImplementationErrors, } from './errors/index.js';
|
|
6
5
|
export * from './spec/index.js';
|
|
7
6
|
export * from './environment/index.js';
|
|
8
7
|
export * from './access/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./domain-runtime.js";export{applicationFromConfig}from"./application.js";export*from"./domain-context/index.js";export*from"./domain-services/index.js";export
|
|
1
|
+
export*from"./domain-runtime.js";export{applicationFromConfig}from"./application.js";export*from"./domain-context/index.js";export*from"./domain-services/index.js";export*from"./spec/index.js";export*from"./environment/index.js";export*from"./access/index.js";export*from"./overrides/index.js";export*from"./loaded-data/index.js";export*from"./domain-data/index.js";export*from"./session-context/index.js";export*from"./web-component/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AnonymousExpression, type AnyAliasMap, type Violation } from '../../core/index.js';
|
|
2
|
-
import { type AnyInvariant, type ProjectModule } from '
|
|
2
|
+
import { type AnyInvariant, type ProjectModule } from '../../spec/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* The `$violations` expression of every entity type that has invariants, keyed by entity type.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{expandAlias as e}from"../../core/index.js";import{resolveInvariantModules as t}from"
|
|
1
|
+
import{expandAlias as e}from"../../core/index.js";import{resolveInvariantModules as t}from"../../spec/index.js";export const createViolationExpressions=(o,r,f={})=>{let i={};for(let l of[f,t(r)])for(let[t,r]of Object.entries(l))for(let f of e(o,t))i[f]=[...i[f]??[],...r];let l={};for(let[e,t]of Object.entries(i))l[e]={$violations:{evaluate:(e,o,r)=>t.flatMap(t=>t.evaluate(e,o,r)),meta:{}}};return l};
|
|
@@ -4,6 +4,6 @@ export * from './actions.js';
|
|
|
4
4
|
export * from './create-violation-expressions.js';
|
|
5
5
|
export * from './initialize.js';
|
|
6
6
|
export * from './memoize-expression.js';
|
|
7
|
-
export { type PhoenixEntityElementProps, type PhoenixEntityElementRegistration, type PhoenixLayoutElementRegistration, type PhoenixIconRegistration, type AssistantFormElementRegistration, type ElementRegistration, type CustomPhoenixEntityElementProps, type PhoenixLayoutElementDefinition, type PhoenixEntityElementDefinition, type CreateCustomPhoenixLayoutElement, type CreateCustomPhoenixEntityElement, createPhoenixLayoutElement, createPhoenixEntityElement, createCustomPhoenixLayoutElement, createCustomPhoenixEntityElement, createAssistantFormElement, findAssistantFormElementErrors, resolveElementModule, resolveElementModules, type PhoenixHandlerDefinition, type SystemPhoenixHandlerDefinition, type PhoenixHandlerRegistration, type SystemPhoenixHandlerRegistration, type SystemPhoenixAsyncHandlerDefinition, type SystemPhoenixAsyncHandlerRegistration, type HandlerRegistration, type CreatePhoenixHandler, createPhoenixHandler, createSystemPhoenixHandler, createSystemPhoenixAsyncHandler, resolveHandlerModule, resolveHandlerModules, type ProjectModule, resolveActionModules, resolveComponentOpticModules, type ExpressionModule, resolveExpressionModules, type ValuedExpressions, mergeExpressionModules, resolveImportedTransformers, resolveTransformerModule, resolveTransformerModules, resolveInvariantModules, } from './module-checks/index.js';
|
|
8
7
|
export * from './prepare-action-implementations.js';
|
|
9
8
|
export * from './prepare-domain-expressions.js';
|
|
9
|
+
export * from './resolve-imported-transformers.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./selectors.js";export*from"./actions.js";export*from"./create-violation-expressions.js";export*from"./initialize.js";export*from"./memoize-expression.js";export
|
|
1
|
+
export*from"./selectors.js";export*from"./actions.js";export*from"./create-violation-expressions.js";export*from"./initialize.js";export*from"./memoize-expression.js";export*from"./prepare-action-implementations.js";export*from"./prepare-domain-expressions.js";export*from"./resolve-imported-transformers.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SessionRole as e}from"@salsita-ai/contracts/api";import{createImplementationErrorCollector as t
|
|
1
|
+
import{SessionRole as e}from"@salsita-ai/contracts/api";import{createImplementationErrorCollector as t,resolveComponentOpticModules as a,resolveElementModule as n,resolveHandlerModule as o}from"../../spec/index.js";import{resolveImportedTransformers as i,resolveTransformerModule as s}from"./resolve-imported-transformers.js";let r=(e,t,a)=>e.flatMap(e=>a.attempt(()=>t(e),[]));export const initializeSpec=m=>{let c=m.adminDomain.presets[0];if(!c)throw Error("Cannot register application spec because admin preset is required.");let d=t(),l=r(m.handlers,o,d),p=r(m.elements,n,d),y=r(m.transformers?.importedTransformers??[],e=>[s(e)],d),u=r(m.domain.componentOptics,e=>a([e]),d),f=r(m.adminDomain.componentOptics,e=>a([e]),d);d.throwIfAny();let x=(e=>{let t={};for(let a of e)t[a.name]=(void 0)??a.name;return t})(l),v=(e=>{let t={},a=0;for(let n of e)if("assistantFormElement"!==n.type)if("entity"===n.type||"layout"===n.type)t[n.name]=(void 0)??n.name;else{let e=`icon:${a}`;t[e]=(void 0)??`${e}:${n.elements.length}`,a+=1}return t})(p),g=m.transformers?.specTransformers??[];return{version:m.version,dataConfig:m.dataSpec??null,chunks:m.chunks,publishedDataHash:m.publishedDataHash,initialPublishedData:m.initialPublishedData,canCreate:m.features?.acl?.canCreate??Object.values(e),enableAdminRelease:m.features?.enableAdminRelease??!1,textLanguages:m.domain.textLanguages??m.adminDomain.textLanguages??["en"],baseResourcesUrl:m.resources?.baseResourcesUrl??m.defaultEnvs?.resourcesUrl??"",configurator:{factory:m.domain.domainFactory,presets:m.domain.presets,aliasMap:m.domain.domainFactory.context.aliasMap,entityReflections:m.domain.domainFactory.context.entityReflections,$entityReflections:m.domain.domainFactory.context.$entityReflections,expressions:m.domain.domainFactory.context.expressions,actions:m.domain.domainFactory.context.actions,actionImplementations:m.domain.domainFactory.context.actionImplementations,allowedRootEntityTypes:m.domain.domainFactory.context.allowedRootEntityTypes,migrate:m.domain.domainFactory.context.migrate,componentOptics:u,createTransformers:e=>i(y,g,e),navigationStates:m.navigation?.navigationStates??[],viewStates:m.navigation?.viewStates??[],toolStates:m.navigation?.toolStates??[],exportStates:m.navigation?.exportStates??[],handlers:l,handlerHashes:x,elements:p,defaultElements:m.defaultElements??[],elementHashes:v,appLoader:m.ui?.appLoader??"universal",preview:m.ui?.preview??"auto",alwaysExpand:m.ui?.alwaysExpand??!1,theme:m.ui?.theme??{},assistant:m.assistant??null,deploymentQueryDisabled:m.resources?.deploymentQueryDisabled??!1,prefetchTextureUrls:m.resources?.prefetchTextureUrls??[],modelVersion:m.domain.domainFactory.modelVersion},admin:{factory:m.adminDomain.domainFactory,modelVersion:m.adminDomain.domainFactory.modelVersion,aliasMap:m.adminDomain.domainFactory.context.aliasMap,entityReflections:m.adminDomain.domainFactory.context.entityReflections,$entityReflections:m.adminDomain.domainFactory.context.$entityReflections,expressions:m.adminDomain.domainFactory.context.expressions,actions:m.adminDomain.domainFactory.context.actions,actionImplementations:m.adminDomain.domainFactory.context.actionImplementations,allowedRootEntityTypes:m.adminDomain.domainFactory.context.allowedRootEntityTypes,migrate:m.adminDomain.domainFactory.context.migrate,preset:c,componentOptics:f,navigationStates:m.adminNavigation?.navigationStates??[],viewStates:m.adminNavigation?.viewStates??[],handlers:l,handlerHashes:x,elements:p,elementHashes:v}}};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ImportedTransformer, SpecTransformer } from '
|
|
2
|
-
import type { AnyDomainContextSystems, Transformers } from '
|
|
3
|
-
import { type ProjectModule } from '
|
|
1
|
+
import type { ImportedTransformer, SpecTransformer } from '../../application/index.js';
|
|
2
|
+
import type { AnyDomainContextSystems, Transformers } from '../../domain-context/index.js';
|
|
3
|
+
import { type ProjectModule } from '../../spec/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* The transformer of one `src/transformers/` file, named after the file. The spec's `transformers` section
|
|
6
6
|
* selects a plain-function export by that name; a transformer made with `build(name)` registers under its own.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SHARED_FOLDER_HINT as r,createContractError as e,isRecord as t}from"../../spec/index.js";let o={expected:"a transformer (a function of the domain context, or an object with a register method), or an array of them",fix:`Create it with phx.frontend.transformerBuilder, ${r}.`},n=r=>"function"==typeof r||t(r)&&"function"==typeof r.register;export const resolveTransformerModule=r=>{let t;if(!(Array.isArray(t=r.exports)?t.every(n):n(t)))throw e(r,o,r.exports);return{name:r.origin.replace(/^.*\//,"").replace(/\.tsx?$/,""),transformer:r.exports}};export const resolveTransformerModules=r=>r.map(resolveTransformerModule);export const resolveImportedTransformers=(r,e,t)=>{let o=r.flatMap(({name:r,transformer:e})=>{if(Array.isArray(e))return e.map((e,o)=>{if("register"in e)return e.register(t);if("function"==typeof e)return{priority:1/0,transformer:e(t),name:`${r}[${o}]`};throw Error(`Transformer '${r}[${o}]' must be either a RegistrableTransformer (with register method) or a TransformerFactory (function)`)});if("register"in e)return e.register(t);if("function"==typeof e)return{priority:1/0,transformer:e(t),name:r};throw Error(`Transformer '${r}' must be either a RegistrableTransformer (with register method) or a TransformerFactory (function)`)}),n=[];for(let r of e){let e=o.find(e=>e.name===r.name);if(!e){let e=o.map(r=>r.name).filter(Boolean).join(", ");throw Error(`Transformer '${r.name}' not found in imported transformer files. Available transformers: ${e||"none"}`)}n.push({priority:r.priority??1/0,transformer:e.transformer,name:r.name})}return n};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { CustomPhoenixEntityElementProps, PhoenixHandlerDefinition, SystemPhoenixAsyncHandlerDefinition, SystemPhoenixHandlerDefinition } from '../../spec/index.js';
|
|
3
3
|
import type { ApplicationSpec } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Structural slice of the runtime state the spec selectors read. The selectors are keyed on this
|
|
@@ -34,7 +34,7 @@ export declare const createSpecSelectors: (context: Context) => {
|
|
|
34
34
|
selectPrefetchTextureUrls: import("@salsita-ai/common/utils").Selector<SpecSelectorState, readonly string[]>;
|
|
35
35
|
selectTextLanguages: import("@salsita-ai/common/utils").Selector<SpecSelectorState, readonly string[]>;
|
|
36
36
|
selectHandlerHashes: import("@salsita-ai/common/utils").Selector<SpecSelectorState, Record<string, string>>;
|
|
37
|
-
selectHandlers: import("@salsita-ai/common/utils").Selector<SpecSelectorState, readonly import("
|
|
37
|
+
selectHandlers: import("@salsita-ai/common/utils").Selector<SpecSelectorState, readonly import("../../index.js").HandlerRegistration<any, any>[]>;
|
|
38
38
|
selectHandlerSlots: import("@salsita-ai/common/utils").Selector<SpecSelectorState, {
|
|
39
39
|
handlers: Record<string, () => PhoenixHandlerDefinition>;
|
|
40
40
|
systemHandlers: Record<string, () => SystemPhoenixHandlerDefinition<unknown, unknown>>;
|
|
@@ -42,7 +42,7 @@ export declare const createSpecSelectors: (context: Context) => {
|
|
|
42
42
|
hashes: Record<string, string>;
|
|
43
43
|
}>;
|
|
44
44
|
selectElementHashes: import("@salsita-ai/common/utils").Selector<SpecSelectorState, Record<string, string>>;
|
|
45
|
-
selectElements: import("@salsita-ai/common/utils").Selector<SpecSelectorState, readonly import("
|
|
45
|
+
selectElements: import("@salsita-ai/common/utils").Selector<SpecSelectorState, readonly import("../../index.js").ElementRegistration[]>;
|
|
46
46
|
selectElementSlots: import("@salsita-ai/common/utils").Selector<SpecSelectorState, {
|
|
47
47
|
entityElements: Record<string, (props: CustomPhoenixEntityElementProps) => JSX.Element>;
|
|
48
48
|
layoutElements: Record<string, (props: PropsWithChildren) => JSX.Element>;
|
|
@@ -78,7 +78,7 @@ export declare const createSpecSelectors: (context: Context) => {
|
|
|
78
78
|
getPrefetchTextureUrls: () => readonly string[];
|
|
79
79
|
getTextLanguages: () => readonly string[];
|
|
80
80
|
getHandlerHashes: () => Record<string, string>;
|
|
81
|
-
getHandlers: () => readonly import("
|
|
81
|
+
getHandlers: () => readonly import("../../index.js").HandlerRegistration<any, any>[];
|
|
82
82
|
getHandlerSlots: () => {
|
|
83
83
|
handlers: Record<string, () => PhoenixHandlerDefinition>;
|
|
84
84
|
systemHandlers: Record<string, () => SystemPhoenixHandlerDefinition<unknown, unknown>>;
|
|
@@ -86,7 +86,7 @@ export declare const createSpecSelectors: (context: Context) => {
|
|
|
86
86
|
hashes: Record<string, string>;
|
|
87
87
|
};
|
|
88
88
|
getElementHashes: () => Record<string, string>;
|
|
89
|
-
getElements: () => readonly import("
|
|
89
|
+
getElements: () => readonly import("../../index.js").ElementRegistration[];
|
|
90
90
|
getElementSlots: () => {
|
|
91
91
|
entityElements: Record<string, (props: CustomPhoenixEntityElementProps) => JSX.Element>;
|
|
92
92
|
layoutElements: Record<string, (props: PropsWithChildren) => JSX.Element>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ThemeOptions } from '@mui/material';
|
|
2
2
|
import type { SessionRole } from '@salsita-ai/contracts/api';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ChunksSpec, DataSpec } from '../../application/index.js';
|
|
4
4
|
import type { ActionDefinitions, Any$EntityReflections, AnyActionImplementations, AnyAliasMap, AnyAllowedRootEntityTypes, AnyDomainComponentOptic, AnyDomainFactory, AnyEntityReflections, AnyExpressions, AnyProductPreset, DomainEntity, MigrateFunction } from '../../core/index.js';
|
|
5
5
|
import type { AnyCreateTransformersFactory } from '../../domain-context/index.js';
|
|
6
|
-
import type { ElementRegistration, HandlerRegistration } from '
|
|
6
|
+
import type { AssistantResolvedManifest, ElementRegistration, HandlerRegistration } from '../../spec/index.js';
|
|
7
7
|
export interface ApplicationConfiguratorSpec {
|
|
8
8
|
readonly modelVersion: number;
|
|
9
9
|
readonly factory: AnyDomainFactory;
|
package/dist/domain/index.d.ts
CHANGED
|
@@ -16,4 +16,16 @@ export { getAllPhxDefinitions } from './system-definitions.js';
|
|
|
16
16
|
export { availableSystemComponents, componentsByName } from './available-system-components/index.js';
|
|
17
17
|
export * from './mocks/index.js';
|
|
18
18
|
export * from './domain-runtime/index.js';
|
|
19
|
-
export * from './spec/index.js';
|
|
19
|
+
export * from './spec/application/index.js';
|
|
20
|
+
export * from './spec/components/index.js';
|
|
21
|
+
export * from './spec/enhanced-json/index.js';
|
|
22
|
+
export * from './spec/errors/index.js';
|
|
23
|
+
export * from './spec/expressions/index.js';
|
|
24
|
+
export type * from './spec/invariants/index.js';
|
|
25
|
+
export type * from './spec/json-schema.js';
|
|
26
|
+
export * from './spec/markers/index.js';
|
|
27
|
+
export type * from './spec/model/index.js';
|
|
28
|
+
export { type PhoenixEntityElementProps, type PhoenixEntityElementRegistration, type PhoenixLayoutElementRegistration, type PhoenixIconRegistration, type AssistantFormElementRegistration, type ElementRegistration, type CustomPhoenixEntityElementProps, type PhoenixLayoutElementDefinition, type PhoenixEntityElementDefinition, type CreateCustomPhoenixLayoutElement, type CreateCustomPhoenixEntityElement, createPhoenixLayoutElement, createPhoenixEntityElement, createCustomPhoenixLayoutElement, createCustomPhoenixEntityElement, createAssistantFormElement, resolveElementModule, resolveElementModules, findAssistantFormElementErrors, type PhoenixHandlerDefinition, type SystemPhoenixHandlerDefinition, type PhoenixHandlerRegistration, type SystemPhoenixHandlerRegistration, type SystemPhoenixAsyncHandlerDefinition, type SystemPhoenixAsyncHandlerRegistration, type HandlerRegistration, type CreatePhoenixHandler, createPhoenixHandler, createSystemPhoenixHandler, createSystemPhoenixAsyncHandler, resolveHandlerModule, resolveHandlerModules, type ProjectModule, resolveActionModules, resolveComponentOpticModules, type ValuedExpressions, mergeExpressionModules, type ExpressionModule, resolveExpressionModules, resolveInvariantModules, } from './spec/modules/index.js';
|
|
29
|
+
export * from './spec/runtime-spec/index.js';
|
|
30
|
+
export * from './spec/sections/index.js';
|
|
31
|
+
export { ActionsRuntime, type ApplicationModules, ApplicationRuntime, type ApplicationRuntimeResult, type ApplicationSpecSliceModules, AssistantRuntime, type ComponentOptic, ComponentOptics, DataRuntime, type ExpressionImplementations, ExpressionRuntime, FactoryDataRuntime, type InvariantImplementations, type MigrationModules, MigrationRuntime, type MissingExpression, PresetRuntime, type RecipeDefaults, RuntimeReferenceStore, type ScopedBuilder, type StaticViolations, ThemeRuntime, TransformersRuntime, applicationSpecSlice, createApplication, evaluateReflectionConstants, evaluateStaticMemoEvalPlan, findReflectionConstants, generateMemoEvalPlanRuntime, generateRuntimeInstance, isConfiguratorModelSchemaCompatible, } from './spec/runtime/index.js';
|