@salsita-ai/sdk 0.50.0-develop.b5d443db78 → 0.50.0-develop.b5dfdd9774
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 +10 -3
- package/dist/admin/common/admin-interface.d.ts +2 -2
- package/dist/application-spec/errors/diagnostic-codes.d.ts +8 -0
- package/dist/application-spec/errors/diagnostic-codes.js +1 -1
- package/dist/application-spec/errors/diagnostic-messages.d.ts +9 -1
- package/dist/application-spec/errors/diagnostic-messages.js +1 -1
- package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
- package/dist/application-spec/generate-application/code/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +4 -3
- package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
- package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
- package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
- package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
- package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
- package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
- package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
- package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +6 -8
- package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +3 -3
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-base-configurator-builder.js +2 -1
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +38 -41
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
- package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
- package/dist/application-spec/generate-application/code/templates/editor.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/editor.js +16 -3
- package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +10 -11
- package/dist/application-spec/generate-application/code/templates/html-index.d.ts +12 -1
- package/dist/application-spec/generate-application/code/templates/html-index.js +9 -10
- package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +8 -36
- package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +15 -11
- package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +42 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.js +45 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +38 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.js +92 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.js +26 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.js +51 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.js +38 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.js +88 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.js +68 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +0 -7
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
- package/dist/application-spec/generate-application/code/templates/webhook-builders.js +7 -6
- package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
- package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
- package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +3 -0
- package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
- package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
- package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
- package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +67 -8
- package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +6 -3
- package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
- package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
- package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
- package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
- package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +7 -10
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
- package/dist/application-spec/webhook-boundary.js +1 -1
- package/dist/client/authorized-client.d.ts +1 -0
- package/dist/client/authorized-client.js +1 -1
- package/dist/client/cli-client/cli-api-client.d.ts +17 -0
- package/dist/client/cli-client/cli-api-client.js +1 -0
- package/dist/client/cli-client/index.d.ts +2 -0
- package/dist/client/cli-client/index.js +1 -0
- package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
- package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
- package/dist/client/contract.d.ts +28 -10
- package/dist/client/contract.js +1 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.js +1 -1
- package/dist/client/local-authorized-client.d.ts +1 -0
- package/dist/client/local-authorized-client.js +1 -1
- package/dist/client/memory-authorized-client.d.ts +1 -0
- package/dist/client/memory-authorized-client.js +1 -1
- package/dist/client/phoenix-api.d.ts +7503 -2093
- package/dist/client/unauthenticated-client.js +1 -1
- package/dist/configurator/ConfiguratorApp.js +1 -1
- package/dist/configurator/agent-at-work/AgentAtWorkFallback.d.ts +7 -0
- package/dist/configurator/agent-at-work/AgentAtWorkFallback.js +1 -0
- package/dist/configurator/agent-at-work/AgentAtWorkPage.d.ts +20 -0
- package/dist/configurator/agent-at-work/AgentAtWorkPage.js +1 -0
- package/dist/configurator/agent-at-work/AgentModeBadge.d.ts +11 -0
- package/dist/configurator/agent-at-work/AgentModeBadge.js +1 -0
- package/dist/configurator/agent-at-work/StudioMark.d.ts +8 -0
- package/dist/configurator/agent-at-work/StudioMark.js +1 -0
- package/dist/configurator/agent-at-work/agent-at-work-copy.d.ts +17 -0
- package/dist/configurator/agent-at-work/agent-at-work-copy.js +1 -0
- package/dist/configurator/agent-at-work/agent-at-work-styles.d.ts +23 -0
- package/dist/configurator/agent-at-work/agent-at-work-styles.js +374 -0
- package/dist/configurator/agent-at-work/index.d.ts +3 -0
- package/dist/configurator/agent-at-work/index.js +1 -0
- package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
- package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
- package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
- package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
- package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +56 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
- package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
- package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
- package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
- package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +14 -8
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.d.ts +18 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.d.ts +69 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +246 -22
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +63 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -36
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.d.ts +13 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.d.ts +7 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +3 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +33 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
- package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +18 -5
- package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +46 -12
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/index.d.ts +8 -3
- package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +11 -0
- package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/sketching-system/sketching-system.d.ts +5 -5
- package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
- package/dist/configurator/common/configurator-interface.d.ts +11 -9
- package/dist/configurator/common/configurator-interface.js +1 -1
- package/dist/configurator/index.d.ts +1 -0
- package/dist/configurator/index.js +1 -1
- package/dist/configurator/{ui/configurator-layout/universal → pages}/ExportingOverlay.d.ts +3 -2
- package/dist/configurator/pages/ExportingOverlay.js +1 -0
- package/dist/configurator/pages/InertRoot.d.ts +10 -0
- package/dist/configurator/pages/InertRoot.js +1 -0
- package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
- package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
- package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
- package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.d.ts +8 -0
- package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.js +1 -0
- package/dist/configurator/pages/error-boundaries/DevContextFallback.d.ts +4 -2
- package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
- package/dist/configurator/pages/error-boundaries/DevLoadingFallback.d.ts +6 -4
- package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
- package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
- package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
- package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
- package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
- package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
- package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
- package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
- package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
- package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
- package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
- package/dist/configurator/ui/assistant/AssistantChips.d.ts +78 -6
- package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
- package/dist/configurator/ui/assistant/AssistantComposer.d.ts +99 -1
- package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
- package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +37 -3
- package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
- package/dist/configurator/ui/assistant/AssistantPanel.d.ts +51 -4
- package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
- package/dist/configurator/ui/assistant/AssistantThread.d.ts +85 -2
- package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
- package/dist/configurator/ui/assistant/AssistantThreadItemView.d.ts +83 -6
- package/dist/configurator/ui/assistant/AssistantThreadItemView.js +1 -1
- package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +35 -1
- package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
- package/dist/configurator/ui/assistant/alert/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +34 -0
- package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -1
- package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +2 -3
- package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
- package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
- package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +59 -5
- package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +40 -5
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
- package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/annotation/index.d.ts +3 -2
- package/dist/configurator/ui/assistant/annotation/index.js +1 -1
- package/dist/configurator/ui/assistant/assistant-failure.d.ts +9 -4
- package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
- package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +49 -5
- package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
- package/dist/configurator/ui/assistant/attachments/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +7 -2
- package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -1
- package/dist/configurator/ui/assistant/composer/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/composer/index.js +1 -1
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
- package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
- package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
- package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +58 -0
- package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -0
- package/dist/configurator/ui/assistant/drawing/index.d.ts +2 -0
- package/dist/configurator/ui/assistant/drawing/index.js +1 -0
- package/dist/configurator/ui/assistant/drawing/parse-drawing.d.ts +18 -0
- package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -0
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +8 -0
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -0
- package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +35 -1
- package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
- package/dist/configurator/ui/assistant/entity-link/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +59 -2
- package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
- package/dist/configurator/ui/assistant/form/built-in-form-slots.d.ts +16 -0
- package/dist/configurator/ui/assistant/form/built-in-form-slots.js +1 -0
- package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
- package/dist/configurator/ui/assistant/form/index.d.ts +2 -1
- package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
- package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
- package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
- package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
- package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
- package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
- package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
- package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
- package/dist/configurator/ui/assistant/form/registry/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
- package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
- package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +51 -0
- package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +47 -0
- package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +43 -0
- package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +56 -2
- package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +43 -0
- package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +47 -0
- package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
- package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
- package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
- package/dist/configurator/ui/assistant/form-elements/index.d.ts +8 -9
- package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
- package/dist/configurator/ui/assistant/image-view/ImageView.d.ts +66 -0
- package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -0
- package/dist/configurator/ui/assistant/image-view/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/image-view/index.js +1 -0
- package/dist/configurator/ui/assistant/image-view/use-image-blob.d.ts +7 -0
- package/dist/configurator/ui/assistant/image-view/use-image-blob.js +1 -0
- package/dist/configurator/ui/assistant/index.d.ts +21 -10
- package/dist/configurator/ui/assistant/index.js +1 -1
- package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.d.ts +57 -0
- package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -0
- package/dist/configurator/ui/assistant/panel/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/panel/index.js +1 -0
- package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +43 -1
- package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
- package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
- package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
- package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -2
- package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
- package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +49 -2
- package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -1
- package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +34 -0
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
- package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
- package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
- package/dist/configurator/ui/assistant/thread-items.d.ts +17 -3
- package/dist/configurator/ui/assistant/thread-items.js +1 -1
- package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +32 -7
- package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
- package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
- package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
- package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
- package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
- package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
- package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
- package/dist/configurator/ui/assistant/voice/RecordingBar.d.ts +21 -0
- package/dist/configurator/ui/assistant/voice/RecordingBar.js +1 -0
- package/dist/configurator/ui/assistant/voice/ReplyPlayButton.d.ts +43 -0
- package/dist/configurator/ui/assistant/voice/ReplyPlayButton.js +1 -0
- package/dist/configurator/ui/assistant/voice/index.d.ts +4 -0
- package/dist/configurator/ui/assistant/voice/index.js +1 -0
- package/dist/configurator/ui/assistant/voice/use-voice-recording.d.ts +39 -0
- package/dist/configurator/ui/assistant/voice/use-voice-recording.js +1 -0
- package/dist/configurator/ui/assistant/voice/voice-capture.d.ts +22 -0
- package/dist/configurator/ui/assistant/voice/voice-capture.js +1 -0
- package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
- package/dist/configurator/ui/configurator-layout/index.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
- package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
- package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
- package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
- package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
- package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
- package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
- package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
- package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
- package/dist/configurator/ui/index.d.ts +1 -1
- package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
- package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
- package/dist/docs/index.json +130 -5
- package/dist/docs/integrations/woocommerce/overview.mdx +4 -2
- package/dist/docs/layouts/nested-view-controls.mdx +223 -0
- package/dist/docs/layouts/presets/custom.mdx +1 -0
- package/dist/docs/layouts/preview/always.mdx +22 -0
- package/dist/docs/layouts/view-controls.mdx +2 -0
- package/dist/docs/other-features/domain-actions.mdx +82 -55
- package/dist/docs/other-features/violation-messages.mdx +3 -1
- package/dist/docs/phoenix/admin.mdx +30 -34
- package/dist/docs/phoenix/application-states.mdx +1 -1
- package/dist/docs/phoenix/assistant/actions.mdx +183 -0
- package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
- package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
- package/dist/docs/phoenix/assistant/overview.mdx +137 -0
- package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
- package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
- package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
- package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
- package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
- package/dist/docs/phoenix/blender-rendering.mdx +3 -1
- package/dist/docs/phoenix/configurator-interface.mdx +105 -10
- package/dist/docs/phoenix/data-sources.mdx +61 -37
- package/dist/docs/phoenix/finalization.mdx +2 -1
- package/dist/docs/phoenix/getting-started.mdx +1 -1
- package/dist/docs/phoenix/integration/authentication-internal.mdx +2 -2
- package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -1
- package/dist/docs/phoenix/layout-slots.mdx +2 -2
- package/dist/docs/phoenix/localization.mdx +2 -1
- package/dist/docs/phoenix/migrations.mdx +1 -1
- package/dist/docs/phoenix/phoenix-cli.mdx +97 -57
- package/dist/docs/phoenix/project-structure.mdx +17 -7
- package/dist/docs/phoenix/sdk-builder-workflow.mdx +61 -30
- package/dist/docs/phoenix/sessions-and-access.mdx +62 -41
- package/dist/docs/phoenix/sharing.mdx +1 -1
- package/dist/docs/phoenix/theming.mdx +5 -9
- package/dist/docs/phoenix/webhook-membership.mdx +1 -1
- package/dist/docs/phoenix/webhooks.mdx +417 -241
- package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
- package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
- package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
- package/dist/docs/ux-guidelines/overview.mdx +11 -9
- package/dist/domain/admin-domain/index.d.ts +2 -2
- package/dist/domain/application/application-config.d.ts +8 -1
- package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
- package/dist/domain/application/assistant/assistant-exposure.js +1 -0
- package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
- package/dist/domain/application/assistant/assistant-selection.js +1 -0
- package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
- package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
- package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
- package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +18 -2
- package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
- package/dist/domain/application/assistant/index.d.ts +5 -1
- package/dist/domain/application/assistant/index.js +1 -1
- package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
- package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
- package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
- package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
- package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +30 -2
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
- package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
- package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
- package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
- package/dist/domain/application/assistant/session-setup/index.js +1 -1
- package/dist/domain/application/assistant-field-options.d.ts +2 -0
- package/dist/domain/application/assistant-field-options.js +1 -1
- package/dist/domain/application/assistant-mutations.d.ts +17 -11
- package/dist/domain/application/assistant-mutations.js +1 -1
- package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
- package/dist/domain/application/assistant-recipe-groups.js +1 -1
- package/dist/domain/application/configurator-builder.d.ts +45 -37
- package/dist/domain/application/configurator-builder.js +1 -1
- package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
- package/dist/domain/available-system-components/available-system-components.js +1 -1
- package/dist/domain/core/action/action.d.ts +0 -49
- package/dist/domain/core/action/index.d.ts +0 -1
- package/dist/domain/core/action/index.js +1 -1
- package/dist/domain/core/component/system-component-filter.d.ts +1 -0
- package/dist/domain/core/component/system-component-filter.js +1 -1
- package/dist/domain/core/component/view-state-component.d.ts +4 -3
- package/dist/domain/core/component/view-state-component.js +1 -1
- package/dist/domain/core/domain-factory.d.ts +2 -3
- package/dist/domain/core/index.d.ts +1 -1
- package/dist/domain/core/index.js +1 -1
- package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
- package/dist/domain/core/invariant/control-violation-hints.js +1 -0
- package/dist/domain/core/invariant/index.d.ts +1 -0
- package/dist/domain/core/invariant/index.js +1 -1
- package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
- package/dist/domain/domain-builder/domain-builder.js +1 -1
- package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
- package/dist/domain/domain-context/index.d.ts +0 -1
- package/dist/domain/domain-context/index.js +1 -1
- package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
- package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
- package/dist/domain/domain-context/transformers/when-builder.js +1 -1
- package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +1 -1
- package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
- package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
- package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -4
- package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
- package/dist/domain/domain-runtime/domain-runtime.d.ts +19 -13
- package/dist/domain/domain-runtime/domain-runtime.js +1 -1
- package/dist/domain/domain-runtime/environment/actions.d.ts +1 -0
- package/dist/domain/domain-runtime/environment/actions.js +1 -1
- package/dist/domain/domain-runtime/environment/initialize.js +1 -1
- package/dist/domain/domain-runtime/environment/selectors.d.ts +2 -0
- package/dist/domain/domain-runtime/environment/selectors.js +1 -1
- package/dist/domain/domain-runtime/environment/types.d.ts +6 -0
- package/dist/domain/domain-runtime/spec/index.d.ts +0 -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/selectors.d.ts +2 -2
- package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
- package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
- package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
- package/dist/domain/extensions/assistant/index.d.ts +1 -0
- package/dist/domain/extensions/assistant/index.js +1 -0
- package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
- package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
- package/dist/domain/extensions/index.d.ts +1 -1
- package/dist/domain/extensions/index.js +1 -1
- package/dist/domain/index.d.ts +1 -1
- package/dist/domain/index.js +1 -1
- package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -6
- package/dist/domain/spec/expressions/relation-expression-params.d.ts +1 -1
- package/dist/domain/spec/modules/index.d.ts +0 -1
- package/dist/domain/spec/modules/index.js +1 -1
- package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
- package/dist/domain/spec/phx/phx-domain.js +1 -1
- package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
- package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
- package/dist/domain/spec/runtime/create-application.d.ts +5 -2
- package/dist/domain/spec/runtime/create-application.js +1 -1
- package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
- package/dist/domain/spec/sections/actions.d.ts +3 -2
- package/dist/domain/spec/sections/app-metadata.d.ts +3 -0
- package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
- package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
- package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +35 -2
- package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
- package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
- package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +55 -13
- package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
- package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
- package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
- package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
- package/dist/domain/spec/sections/assistant/index.d.ts +5 -2
- package/dist/domain/system-components/index.d.ts +1 -0
- package/dist/domain/system-components/index.js +1 -1
- package/dist/domain/system-components/navigation/index.d.ts +1 -0
- package/dist/domain/system-components/navigation/index.js +1 -0
- package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
- package/dist/domain/system-components/navigation/view-controls.js +1 -0
- package/dist/editor/Editor.d.ts +5 -0
- package/dist/editor/Editor.js +1 -1
- package/dist/editor/EditorMode.d.ts +2 -0
- package/dist/editor/EditorMode.js +1 -1
- package/dist/editor/agent-mode/AgentModeBridge.d.ts +10 -0
- package/dist/editor/agent-mode/AgentModeBridge.js +1 -0
- package/dist/editor/agent-mode/agent-at-work-fonts.d.ts +2 -0
- package/dist/editor/agent-mode/agent-at-work-fonts.js +1 -0
- package/dist/editor/console-reporter/BrowserConsoleReporter.js +1 -1
- package/dist/editor/console-reporter/console-capture.d.ts +20 -0
- package/dist/editor/console-reporter/console-capture.js +1 -0
- package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
- package/dist/editor/domain-editors/apply-spec-update.js +1 -1
- package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
- package/dist/editor/domain-editors/use-implementation-files.js +1 -1
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/index.js +1 -1
- package/dist/editor/variants/VariantAnswerFooter.d.ts +8 -1
- package/dist/editor/variants/VariantAnswerFooter.js +1 -1
- package/dist/editor/variants/VariantPageUnavailable.d.ts +5 -0
- package/dist/editor/variants/VariantPageUnavailable.js +1 -0
- package/dist/editor/variants/VariantPreviewHandler.js +1 -1
- package/dist/editor/variants/variant-preview-fonts.d.ts +2 -0
- package/dist/editor/variants/variant-preview-fonts.js +1 -0
- package/dist/editor/variants/variant-preview-styles.d.ts +40 -48
- package/dist/editor/variants/variant-preview-styles.js +493 -1
- package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
- package/dist/extras/cognito/CognitoSignInPage.js +1 -0
- package/dist/extras/cognito/index.d.ts +1 -0
- package/dist/extras/cognito/index.js +1 -0
- package/dist/globals/index.d.ts +5 -0
- 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/legacy/deployment-cli/commands/create-environment.js +1 -1
- package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
- package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
- package/dist/legacy/domain-cli/gen/configurator-builder.js +5 -4
- package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
- package/dist/legacy/domain-cli/utils/cache.js +1 -1
- package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +25 -3
- package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
- package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
- package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
- package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
- package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
- package/dist/phoenix/application-spec/application-spec-builder.d.ts +2 -2
- package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
- package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +2 -1
- package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
- package/dist/phoenix/application-spec/generate-project-files.d.ts +4 -3
- package/dist/phoenix/application-spec/generate-project-files.js +1 -1
- package/dist/phoenix/application-spec/index.d.ts +2 -1
- package/dist/phoenix/application-spec/index.js +1 -1
- package/dist/phoenix/application-spec/read-spec-project.d.ts +1 -2
- package/dist/phoenix/application-spec/read-spec-project.js +1 -1
- package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
- package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
- package/dist/phoenix/cli.js +1 -1
- package/dist/phoenix/commands/account/index.d.ts +1 -0
- package/dist/phoenix/commands/account/index.js +1 -0
- package/dist/phoenix/commands/account/whoami.d.ts +10 -0
- package/dist/phoenix/commands/account/whoami.js +4 -0
- package/dist/phoenix/commands/build.d.ts +2 -1
- package/dist/phoenix/commands/build.js +1 -1
- package/dist/phoenix/commands/clean.d.ts +2 -1
- package/dist/phoenix/commands/clean.js +1 -1
- package/dist/phoenix/commands/cleanup-environment.js +1 -1
- package/dist/phoenix/commands/deploy.d.ts +7 -2
- package/dist/phoenix/commands/deploy.js +9 -3
- package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
- package/dist/phoenix/commands/dev.d.ts +2 -1
- package/dist/phoenix/commands/dev.js +4 -4
- package/dist/phoenix/commands/feedback.d.ts +2 -2
- package/dist/phoenix/commands/feedback.js +1 -1
- package/dist/phoenix/commands/finish-deployment-command.js +1 -1
- package/dist/phoenix/commands/index.d.ts +1 -0
- package/dist/phoenix/commands/index.js +1 -1
- package/dist/phoenix/commands/init-starter-spec.js +3 -4
- package/dist/phoenix/commands/init.d.ts +2 -2
- package/dist/phoenix/commands/init.js +1 -1
- package/dist/phoenix/commands/login.d.ts +6 -3
- package/dist/phoenix/commands/login.js +3 -3
- package/dist/phoenix/commands/logout.js +1 -1
- package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
- package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
- package/dist/phoenix/commands/sync.d.ts +2 -1
- package/dist/phoenix/commands/sync.js +1 -1
- package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
- package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
- package/dist/phoenix/services/cli-credentials.d.ts +26 -7
- package/dist/phoenix/services/cli-credentials.js +2 -2
- package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
- package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
- package/dist/phoenix/services/cli-server/index.d.ts +2 -0
- package/dist/phoenix/services/cli-server/index.js +1 -0
- package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
- package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
- package/dist/phoenix/services/dev-experience/dev-experience.d.ts +31 -0
- package/dist/phoenix/services/dev-experience/dev-experience.js +1 -0
- package/dist/phoenix/services/dev-experience/index.d.ts +3 -0
- package/dist/phoenix/services/dev-experience/index.js +1 -0
- package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.d.ts +7 -0
- package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.js +1 -0
- package/dist/phoenix/services/dev-experience/regenerated-page-experience.d.ts +24 -0
- package/dist/phoenix/services/dev-experience/regenerated-page-experience.js +1 -0
- package/dist/phoenix/services/development-credential.js +1 -1
- package/dist/phoenix/services/frontend-config.d.ts +2 -0
- package/dist/phoenix/services/index.d.ts +6 -3
- package/dist/phoenix/services/index.js +1 -1
- package/dist/phoenix/services/phoenix-pubsub.d.ts +4 -0
- package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
- package/dist/phoenix/services/phoenix-regions.js +1 -1
- package/dist/phoenix/services/prepare-development-environment.js +1 -1
- package/dist/phoenix/services/session/phoenix-application.d.ts +2 -1
- package/dist/phoenix/services/session/phoenix-application.js +2 -2
- package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
- package/dist/phoenix/services/signed-in-development-environment.js +1 -1
- package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
- package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
- package/dist/phoenix/services/spec-project/index.d.ts +3 -0
- package/dist/phoenix/services/spec-project/index.js +1 -0
- package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
- package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
- package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
- package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
- package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
- package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
- package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
- package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
- package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
- package/dist/phoenix/services/variant-file-session.js +1 -1
- package/dist/phoenix/services/vite-config.d.ts +2 -1
- package/dist/phoenix/services/vite-config.js +1 -1
- package/dist/phoenix/services/webhook-service/transport.js +1 -1
- package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
- package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
- package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
- package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
- package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
- package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
- package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
- package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
- package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
- package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +2 -0
- package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/use-environment.d.ts +7 -0
- package/dist/react-sdk/application-runtime/hooks/use-environment.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
- package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
- package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
- package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/actions.d.ts +6 -0
- package/dist/react-sdk/application-runtime/responsive/actions.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/types.d.ts +9 -0
- package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +28 -12
- package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
- package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
- package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +2 -2
- package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
- package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
- package/dist/react-sdk/domain-context/index.d.ts +3 -2
- package/dist/react-sdk/domain-context/index.js +1 -1
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
- package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
- package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
- package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
- package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
- package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
- package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
- package/dist/react-sdk/preset-selection/index.d.ts +2 -1
- package/dist/react-sdk/preset-selection/index.js +1 -1
- package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
- package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
- package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
- package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
- package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
- package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
- package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
- package/dist/ui-sdk/components/preview/Preview.js +2 -2
- package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
- package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
- package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
- package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
- package/dist/ui-sdk/icons/__generated/Microphone.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/Microphone.js +1 -0
- package/dist/ui-sdk/icons/__generated/MicrophoneSlash.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/MicrophoneSlash.js +1 -0
- package/dist/ui-sdk/icons/__generated/SpeakerHigh.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/SpeakerHigh.js +1 -0
- package/dist/ui-sdk/icons/__generated/SpeakerSlash.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/SpeakerSlash.js +1 -0
- package/dist/ui-sdk/icons/__generated/Stop.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/Stop.js +1 -0
- package/dist/ui-sdk/icons/__generated/index.d.ts +10 -0
- package/dist/ui-sdk/icons/__generated/index.js +1 -1
- package/dist/ui-sdk/icons/icons-registry.js +1 -1
- package/dist/ui-sdk/theme/types.d.ts +0 -4
- package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
- package/dist/webhook/builders/auth-handler-builder.js +1 -1
- package/dist/webhook/builders/common.d.ts +5 -3
- package/dist/webhook/builders/webhook-builder.d.ts +5 -0
- package/dist/webhook/builders/webhook-builder.js +1 -1
- package/package.json +11 -4
- package/schema/domain-spec.json +444 -65
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +0 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
- package/dist/configurator/ui/assistant/annotation/annotation-host-context.d.ts +0 -5
- package/dist/configurator/ui/assistant/annotation/annotation-host-context.js +0 -1
- package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
- package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -9
- package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
- package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -10
- package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
- package/dist/configurator/ui/assistant/theme.d.ts +0 -2
- package/dist/configurator/ui/assistant/theme.js +0 -1
- package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +0 -1
- package/dist/domain/core/action/action-factory.d.ts +0 -11
- package/dist/domain/domain-context/action-system/action-system.d.ts +0 -38
- package/dist/domain/domain-context/action-system/action-system.js +0 -1
- package/dist/domain/domain-context/action-system/index.d.ts +0 -1
- package/dist/domain/domain-context/action-system/index.js +0 -1
- package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
- package/dist/domain/extensions/view-controls.d.ts +0 -25
- package/dist/domain/extensions/view-controls.js +0 -1
- package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
- /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
- /package/dist/{domain/core/action → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
|
@@ -31,7 +31,7 @@ sessionData:
|
|
|
31
31
|
type: string
|
|
32
32
|
userRole:
|
|
33
33
|
type: string
|
|
34
|
-
enum: ['
|
|
34
|
+
enum: ['anonymous', 'user', 'admin']
|
|
35
35
|
required: []
|
|
36
36
|
additionalProperties: false
|
|
37
37
|
```
|
|
@@ -43,18 +43,28 @@ Session data properties must be optional because admin and preset sessions can c
|
|
|
43
43
|
```typescript
|
|
44
44
|
// src/webhooks/handlers/auth-handler.ts
|
|
45
45
|
export const authHandler = phx.webhooks.authHandlerBuilder
|
|
46
|
-
.withCodeHandler(async
|
|
47
|
-
|
|
46
|
+
.withCodeHandler(async ({ accessToken }, { logger }) => {
|
|
47
|
+
// USER_API_URL is declared under `env.webhook` in a spec file
|
|
48
|
+
const response = await fetch(`${phx.webhooksEnv.USER_API_URL}/me`, {
|
|
49
|
+
headers: { authorization: `Bearer ${accessToken}` },
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
if (!response.ok) {
|
|
53
|
+
logger.warn(`The user API refused the access token with status ${response.status}.`)
|
|
54
|
+
|
|
55
|
+
return { success: false }
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const userInfo: { readonly id: string; readonly role: 'user' | 'admin' } = await response.json()
|
|
48
59
|
|
|
49
60
|
return {
|
|
50
61
|
success: true,
|
|
51
62
|
data: {
|
|
52
|
-
accessToken
|
|
63
|
+
accessToken,
|
|
53
64
|
userRole: userInfo.role,
|
|
54
65
|
},
|
|
55
66
|
role: userInfo.role,
|
|
56
|
-
|
|
57
|
-
expirationTime,
|
|
67
|
+
userId: userInfo.id,
|
|
58
68
|
}
|
|
59
69
|
})
|
|
60
70
|
.build()
|
|
@@ -441,7 +451,7 @@ backendData:
|
|
|
441
451
|
|
|
442
452
|
The SDK provides comprehensive error handling for backend data:
|
|
443
453
|
|
|
444
|
-
**Missing Backend Data Schema**: If no `backendData` schema is
|
|
454
|
+
**Missing Backend Data Schema**: If no `backendData` schema is declared in a spec file (for example `spec/application.yaml`), backend data fetching is skipped entirely. The context will have `backendData: undefined`.
|
|
445
455
|
|
|
446
456
|
**Fetch Errors**: If the backend API call fails (network issues, server errors, timeouts), backend data falls back to `undefined`. The error is logged but doesn't break configurator initialization.
|
|
447
457
|
|
|
@@ -449,52 +459,66 @@ The SDK provides comprehensive error handling for backend data:
|
|
|
449
459
|
|
|
450
460
|
**API Availability**: Backend data is optional by design. Expressions should always handle the case where `ctx.backendData` is `undefined`.
|
|
451
461
|
|
|
462
|
+
**Finalization**: The webhook runs the handler again before every configurator finalization, and a failure there fails the finalization; in the browser, a failure only leaves `backendData` `undefined`. Catch what may fail in the handler and return a safe value when one exists.
|
|
463
|
+
|
|
452
464
|
### Webhook Implementation
|
|
453
465
|
|
|
454
|
-
Backend data is fetched using webhook handlers that you implement. This keeps sensitive operations on the server
|
|
466
|
+
Backend data is fetched using webhook handlers that you implement. This keeps sensitive operations on the server.
|
|
467
|
+
|
|
468
|
+
The handler reads its credentials as `phx.webhooksEnv.NAME`, never from `process.env`. Declare each variable under `env.webhook` in a spec file; its value is inlined when the webhook is built, from the environment variables a workspace or project Superadmin sets in Studio for a deployed build, and from `.env` under `phoenix dev`:
|
|
469
|
+
|
|
470
|
+
```yaml
|
|
471
|
+
# spec/application.yaml
|
|
472
|
+
env:
|
|
473
|
+
webhook:
|
|
474
|
+
PRICING_API_URL:
|
|
475
|
+
type: url
|
|
476
|
+
required: true
|
|
477
|
+
PRICING_API_KEY:
|
|
478
|
+
type: str
|
|
479
|
+
required: true
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
The handler receives `{ deploymentId, frontendUrl, frontendData?, sessionRole, sessionPayload, publishedAdminRevisionPath?, publishedChunkUrls? }` and a context with the `logger`, and returns `{ backendData }`. The SDK exports no type for it: register it inline with `phx.webhooks.webhookBuilder.withFetchBackendData(async (payload, { logger }) => ({ backendData }))`, or type a separate constant from the builder method as below:
|
|
455
483
|
|
|
456
484
|
```typescript
|
|
457
485
|
// src/webhooks/handlers/backend-data-handler.ts
|
|
458
|
-
|
|
486
|
+
type FetchBackendData = Parameters<typeof phx.webhooks.webhookBuilder.withFetchBackendData>[0]
|
|
459
487
|
|
|
460
|
-
export const backendDataHandler:
|
|
461
|
-
|
|
462
|
-
ctx,
|
|
463
|
-
e
|
|
464
|
-
) => {
|
|
465
|
-
try {
|
|
466
|
-
const userRegion = data.frontendData.currency === 'EUR' ? 'EU' : 'US'
|
|
488
|
+
export const backendDataHandler: FetchBackendData = async ({ frontendData }, { logger }) => {
|
|
489
|
+
const region = frontendData?.currency === 'EUR' ? 'EU' : 'US'
|
|
467
490
|
|
|
468
|
-
|
|
469
|
-
|
|
491
|
+
const response = await fetch(`${phx.webhooksEnv.PRICING_API_URL}/regions/${region}/prices`, {
|
|
492
|
+
headers: { authorization: `Bearer ${phx.webhooksEnv.PRICING_API_KEY}` },
|
|
493
|
+
})
|
|
470
494
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
495
|
+
if (!response.ok) {
|
|
496
|
+
// There is no safe fallback for prices, so fail: the configurator then has no backend data,
|
|
497
|
+
// and a finalization fails rather than quoting wrong prices
|
|
498
|
+
logger.error(`The pricing API answered with status ${response.status}.`)
|
|
499
|
+
throw new Error('Prices are unavailable')
|
|
500
|
+
}
|
|
474
501
|
|
|
475
|
-
|
|
476
|
-
fetchExchangeRate(userRegion, pricingApiKey),
|
|
477
|
-
fetchPricing(userRegion, inventoryApiKey),
|
|
478
|
-
])
|
|
502
|
+
const prices: { readonly exchangeRate: number; readonly materials: Record<string, number> } = await response.json()
|
|
479
503
|
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}
|
|
486
|
-
} catch (error) {
|
|
487
|
-
ctx.logger.error('Failed to fetch backend data:', error)
|
|
488
|
-
throw error
|
|
504
|
+
return {
|
|
505
|
+
backendData: {
|
|
506
|
+
exchangeRate: prices.exchangeRate,
|
|
507
|
+
pricing: prices.materials,
|
|
508
|
+
},
|
|
489
509
|
}
|
|
490
510
|
}
|
|
491
511
|
```
|
|
492
512
|
|
|
493
|
-
**Webhook Integration**:
|
|
513
|
+
**Webhook Integration**: register the handler in the webhook entry, the default export of `src/webhooks/index.ts`:
|
|
494
514
|
|
|
495
515
|
```typescript
|
|
496
516
|
// src/webhooks/index.ts
|
|
497
|
-
|
|
517
|
+
import { authHandler } from './handlers/auth-handler.js'
|
|
518
|
+
import { backendDataHandler } from './handlers/backend-data-handler.js'
|
|
519
|
+
import { configuratorFinalizeHandler } from './handlers/configurator-finalize-handler.js'
|
|
520
|
+
|
|
521
|
+
export default phx.webhooks.webhookBuilder
|
|
498
522
|
.withAuthHook(authHandler)
|
|
499
523
|
.withFetchBackendData(backendDataHandler)
|
|
500
524
|
.withConfiguratorFinalize(configuratorFinalizeHandler)
|
|
@@ -633,7 +657,7 @@ export default phx.domain.implementCustomExpressions({
|
|
|
633
657
|
$userContext: (cabinet, state, ctx) => {
|
|
634
658
|
// Safe access to multiple data sources
|
|
635
659
|
return {
|
|
636
|
-
userRole: ctx.sessionData.userRole || '
|
|
660
|
+
userRole: ctx.sessionData.userRole || 'anonymous',
|
|
637
661
|
theme: ctx.frontendData.theme || 'light',
|
|
638
662
|
hasBackendPricing: ctx.backendData?.pricing !== undefined,
|
|
639
663
|
}
|
|
@@ -292,9 +292,10 @@ export const callbackTask = phx.webhooks.callbackBuilder
|
|
|
292
292
|
// Custom workflows: third-party API calls, external system integration
|
|
293
293
|
try {
|
|
294
294
|
// Example: Submit order to external ERP system
|
|
295
|
+
// ERP_API_KEY is declared under `env.webhook` in a spec file and inlined when the webhook is built
|
|
295
296
|
await fetch('https://api.external-erp.com/orders', {
|
|
296
297
|
method: 'POST',
|
|
297
|
-
headers: { Authorization: `Bearer ${
|
|
298
|
+
headers: { Authorization: `Bearer ${phx.webhooksEnv.ERP_API_KEY}` },
|
|
298
299
|
body: JSON.stringify({
|
|
299
300
|
customerEmail: data.replayData.emailAddress,
|
|
300
301
|
configurationPdf: baseResult.pdfLink,
|
|
@@ -74,7 +74,7 @@ We assume you have working knowledge of these technologies before starting with
|
|
|
74
74
|
Start with the [Project Structure](?path=/docs/phoenix-project-structure--docs) documentation to understand how phx-cli projects are organized. This is the standard layout used for production configurators.
|
|
75
75
|
|
|
76
76
|
**Step 2: Start a Project**
|
|
77
|
-
Run `phoenix init` to get a working starter configurator, sign in with `pnpm phoenix login
|
|
77
|
+
Run `phoenix init` to get a working starter configurator, sign in with `pnpm phoenix login` or paste the `.env` block of a Studio development environment, then run `pnpm phoenix dev` to see it. See [Starting a New Project](?path=/docs/phoenix-phoenix-cli--docs#starting-a-new-project).
|
|
78
78
|
|
|
79
79
|
**Step 3: Run a Maintained Demo**
|
|
80
80
|
The starter project that `phoenix init` writes uses the current Phoenix CLI and application-spec project structure, so it is the best starting point for tracing a complete configurator; the examples throughout this documentation extend it feature by feature.
|
|
@@ -109,7 +109,7 @@ export const authHandler = phx.webhooks.authHandlerBuilder
|
|
|
109
109
|
}
|
|
110
110
|
} catch (error) {
|
|
111
111
|
ctx.logger.error('Error verifying access token', {}, error)
|
|
112
|
-
return { success: false
|
|
112
|
+
return { success: false }
|
|
113
113
|
}
|
|
114
114
|
})
|
|
115
115
|
.withRefreshHandler(async (payload, ctx) => {
|
|
@@ -126,7 +126,7 @@ export const authHandler = phx.webhooks.authHandlerBuilder
|
|
|
126
126
|
}
|
|
127
127
|
} catch (error) {
|
|
128
128
|
ctx.logger.error('Error verifying refresh token', {}, error)
|
|
129
|
-
return { success: false
|
|
129
|
+
return { success: false }
|
|
130
130
|
}
|
|
131
131
|
})
|
|
132
132
|
.build()
|
|
@@ -61,7 +61,7 @@ const components: ThemeOptions['components'] = {
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
- `styleOverrides` styles three slots: `content`, notistack's outer element; `alert`, the `Alert` with the message; and `actionButton`, a button such as **Dismiss**.
|
|
64
|
-
- `defaultProps.slotProps` passes props to the slots, such as `{ alert: { variant: 'filled' } }`, and `defaultProps.slots` replaces a slot's component. The `MuiAlert` and `MuiButton` overrides of the theme reach the snackbars too.
|
|
64
|
+
- `defaultProps.slotProps` passes props to the slots, such as `{ alert: { variant: 'filled' } }`, and `defaultProps.slots` replaces a slot's component. The `MuiAlert` and `MuiButton` overrides of the theme reach the snackbars too, except the success icon: a success snackbar shows a filled circle with a tick cut out of it whatever the theme's `MuiAlert` `iconMapping` says, and `defaultProps.slotProps.alert.iconMapping.success` replaces it. Keep `variant: 'standard'` next to it, because `slotProps` replaces the default `{ alert: { variant: 'standard' } }`.
|
|
65
65
|
- A snackbar's button is described as data, not as an element: the code that raises it passes `actionButton: { label, onClick }` to notistack's `enqueueSnackbar`, and `PhxSnackbar` renders it in the `actionButton` slot, an MUI `Button` with `color="inherit"` and `size="small"`, after the snackbar's notistack `action` if it has one. `onClick` receives the snackbar's key, to close it with `closeSnackbar`. A project's own snackbars take the same option, typed by `SnackbarActionButton` from `@salsita-ai/sdk/react`, so their buttons follow the theme; an element passed as `action` renders as it is.
|
|
66
66
|
- Where the snackbars appear is the snackbar root's job, see `DesktopSnackbarsRoot` and `MobileSnackbarsRoot`.
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ const components: ThemeOptions['components'] = {
|
|
|
69
69
|
|
|
70
70
|
| Member | Shows | Fed by | With nothing configured | Read mode |
|
|
71
71
|
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
72
|
-
| `DesktopSidebar` | The whole built-in desktop sidebar: tabs, back button, property pages and sidebar footer with their spacing, scrolling and empty states, and the assistant panel. Props: `width`, and `side` (`'start'` or `'end'`, typed `DesktopSidebarSide`; `DesktopSidebarProps` types both)
|
|
72
|
+
| `DesktopSidebar` | The whole built-in desktop sidebar: tabs, back button, property pages and sidebar footer with their spacing, scrolling and empty states, and the assistant panel, which leaves the sidebar footer usable below it. Props: `width`, and `side` (`'start'` or `'end'`, typed `DesktopSidebarSide`; `DesktopSidebarProps` types both) | The members below | As its parts | As its parts. In fullscreen it stays in place, transparent and inert |
|
|
73
73
|
| `DesktopSidebarTabs` | Tabs that switch the navigation state | The `sidebarTabs` components of the selected entity; the `horizontalTabs` component is not shown here | Nothing; also nothing while the summary is shown | No change |
|
|
74
74
|
| `useSidebarTabs()` | A hook, `{ tabs, activeTab, onChange }`: each tab is `{ label, icon, value, isActive }`, `activeTab` is the active tab's value or `'none'`, and `onChange(value)` switches to that tab's first navigation state. A project layout reads its tabs with `phx.frontend.useTabNavigation()` instead, see [Configurator Interface → Hooks for a Project Layout](?path=/docs/phoenix-configurator-interface--docs#hooks-for-a-project-layout) | As `DesktopSidebarTabs` | `tabs` is empty | No change |
|
|
75
75
|
| `DesktopSidebarBackButton` | A "Back" button. Props: the MUI `Button` props and `icon`, also settable in the theme as `PhxDesktopSidebarBackButton`; the application config's `sidebarBackIcon` takes precedence over both | The sidebar's way back: a navigation state to pop, a stacked property page, or a selected entity other than the root, unless the application config sets `showSelectionBackButton` to `false` or sets `ignoreSelectionInSidebar` | Nothing while there is no way back | No change |
|
|
@@ -503,7 +503,8 @@ export const orderHttpTask = phx.webhooks.taskFactory.createSendHttpRequestTask(
|
|
|
503
503
|
|
|
504
504
|
return {
|
|
505
505
|
type: 'SendHttpRequest',
|
|
506
|
-
url:
|
|
506
|
+
// ORDER_WEBHOOK_URL is declared under `env.webhook` in a spec file, with `type: url` and `required: true`
|
|
507
|
+
url: phx.webhooksEnv.ORDER_WEBHOOK_URL,
|
|
507
508
|
method: 'POST',
|
|
508
509
|
headers: { 'Content-Type': 'application/json' },
|
|
509
510
|
body: JSON.stringify({
|
|
@@ -118,7 +118,7 @@ const toTableId = (id: ModelV1.Box['id']) =>
|
|
|
118
118
|
|
|
119
119
|
### Replacing the Model Entirely
|
|
120
120
|
|
|
121
|
-
When the new model has nothing in common with the deployed one, there is nothing to convert. This is the case when a project
|
|
121
|
+
When the new model has nothing in common with the deployed one, there is nothing to convert. This is the case when a project whose production was first deployed as the hello-world starter, which only early beta projects were, gets its real model: the starter's `Box` model is version 1 in production, and a deployed version cannot change. A project created since starts empty, so the model of its first deploy is version 1 and needs no such migration. Keep the deployed model as `v1`, define the real model in `latest`, and let the migration return the starting state of the new model, the `initialDomainEntities` of its preset:
|
|
122
122
|
|
|
123
123
|
```typescript
|
|
124
124
|
// src/migrations/v2.ts
|
|
@@ -11,6 +11,7 @@ The Phoenix CLI (`phoenix` command) is the unified tool for all configurator dev
|
|
|
11
11
|
- [SDK Development](#sdk-development)
|
|
12
12
|
- [Utilities](#utilities)
|
|
13
13
|
- [Deployment](#deployment)
|
|
14
|
+
- [SDK Builders](#sdk-builders)
|
|
14
15
|
|
|
15
16
|
## Starting a New Project
|
|
16
17
|
|
|
@@ -23,7 +24,8 @@ npx -p @salsita-ai/sdk@canary phoenix init my-configurator
|
|
|
23
24
|
cd my-configurator
|
|
24
25
|
pnpm install
|
|
25
26
|
pnpm phoenix sync
|
|
26
|
-
pnpm phoenix login
|
|
27
|
+
pnpm phoenix login
|
|
28
|
+
# Set project to its explicit slug in spec/application.yaml
|
|
27
29
|
pnpm phoenix dev
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -52,7 +54,7 @@ Aliases are recorded as their canonical command names. Delivery failures never c
|
|
|
52
54
|
|
|
53
55
|
Before a successful `phoenix login`, telemetry uses only random anonymous identifiers. Failed login attempts remain anonymous. The CLI stores an installation UUID, work-session UUID and last activity time in `~/.phoenix/telemetry.json`; a work session continues while commands occur less than 30 minutes apart.
|
|
54
56
|
|
|
55
|
-
After a successful login, the login completion and later commands from that installation include the stable authenticated builder user ID
|
|
57
|
+
After a successful login, the login completion and later commands from that installation include the stable authenticated builder user ID. Workspace-bound login also associates its internal workspace UUID; personal login clears that workspace association. Amplitude uses the unchanged installation ID to associate the earlier anonymous command path with that user. A later successful login replaces the stored user and workspace association. The state file never contains a login token, email address, machine fingerprint, project path or project content. Because the installation ID belongs to the operating-system user profile, people who share that profile also share its command history and latest association.
|
|
56
58
|
|
|
57
59
|
The events contain only:
|
|
58
60
|
|
|
@@ -68,18 +70,20 @@ Set `PHOENIX_TELEMETRY_DISABLED=1` to opt out. The opted-out CLI neither sends t
|
|
|
68
70
|
|
|
69
71
|
### Which project `phoenix dev` develops in
|
|
70
72
|
|
|
71
|
-
|
|
73
|
+
`project` in `spec/application.yaml` names the server project the application is developed and deployed in, by its slug. The starter spec that `phoenix init` writes has no `project` line. `phoenix dev` and `phoenix deploy` choose the project in this order:
|
|
72
74
|
|
|
73
|
-
1. `--projectSlug`
|
|
74
|
-
2. `
|
|
75
|
-
3. `
|
|
75
|
+
1. `--project <slug>`. `phoenix dev` also accepts `--projectSlug`, and reads `PROJECT_SLUG` in `.env` after the flags; `phoenix deploy` does not read `PROJECT_SLUG`. A project named this way wins over the spec, and the CLI says so when the spec names another one.
|
|
76
|
+
2. `project` in the spec. A spec without `project`, or one that still says `project: default`, names no project: `default` is not a project slug, and no project can be created with it.
|
|
77
|
+
3. The projects your sign-in or token can reach, which `phoenix whoami` lists by workspace. In a terminal the CLI shows them in a select, even when there is only one, and then asks whether to write `project: <slug>` into `spec/application.yaml`. Without a terminal (a coding agent, CI or piped input) it uses the only project it can reach and prints the `project: <slug>` line to add; when it can reach several, it stops and lists their slugs by workspace. When it can reach none, it stops and tells you to create a project in Studio or ask a workspace administrator for access.
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
A project is named by its slug. When you can reach projects with the same slug in two workspaces, the slug alone is refused with the names that tell them apart, `<project>--<workspace>` (for example `shop--acme`), and the select shows those names; use one with `--project` or as `project:` in the spec. It names the project of that workspace only.
|
|
80
|
+
|
|
81
|
+
When `--project` names a project and the spec names none, the CLI offers to save it the same way: in a terminal it asks, without one it prints the line to add. The spec is written only when you answer yes. The field is read only by the CLI and never reaches the built application.
|
|
78
82
|
|
|
79
83
|
### How `phoenix dev` authenticates
|
|
80
84
|
|
|
81
|
-
- **Signed in with `phoenix login
|
|
82
|
-
- **With a Studio development environment**: create the project and a development environment in PHX Studio and paste its `.env` block (`SERVER_URL`, `PROJECT_SLUG`, `ENVIRONMENT_SLUG`, `DEVELOPMENT_KEY`) into `.env`. A `DEVELOPMENT_KEY` always takes precedence over the sign-in
|
|
85
|
+
- **Signed in with `phoenix login`**: nothing else is needed. `phoenix dev` uses the saved sign-in only and does not read `PHOENIX_API_TOKEN`. On start, `phoenix dev` asks the server for your development environment in the project; the server creates it on the first run. Every user gets their own development environment, so teammates don't overwrite each other's schema or webhook tunnel. The server comes from the same rule as for the other sign-in commands, see [Which server the CLI talks to](#which-server-the-cli-talks-to). When `PHOENIX_API_TOKEN` is set, `phoenix dev` says that it ignores it. `phoenix dev` hands that server to the preview as `SERVER_URL`, so the preview talks to the server the development deployment was prepared on even without a `.env`, and prints the preview address as `Preview: <url>` once the dev server is up (also written to `.phoenix/phoenix-dev.log`).
|
|
86
|
+
- **With a Studio development environment**: create the project and a development environment in PHX Studio and paste its `.env` block (`SERVER_URL`, `PROJECT_SLUG`, `ENVIRONMENT_SLUG`, `DEVELOPMENT_KEY`) into `.env`. A `DEVELOPMENT_KEY` always takes precedence over the sign-in. A development key lists no projects to choose from, so the project must be named by `PROJECT_SLUG`, a flag or the spec.
|
|
83
87
|
|
|
84
88
|
## Local Development Setup
|
|
85
89
|
|
|
@@ -207,7 +211,7 @@ spec/application.yaml → Server prepares environment → CLI writes the generat
|
|
|
207
211
|
| -------- | ---------------- | --------------------------------------------- |
|
|
208
212
|
| `dev` | `phoenix dev` | Dev server with hot reload |
|
|
209
213
|
| `build` | `phoenix build` | Production build |
|
|
210
|
-
| `deploy` | `phoenix deploy` | Build and publish the project
|
|
214
|
+
| `deploy` | `phoenix deploy` | Build and publish the project into a preview |
|
|
211
215
|
| `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
|
|
212
216
|
| `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
|
|
213
217
|
|
|
@@ -298,7 +302,7 @@ The frontend reads these at runtime from the generated config:
|
|
|
298
302
|
| `DEPLOYMENT_RESOURCES_PATH` | No | `deployment-resources` |
|
|
299
303
|
| Clerk vars (if enabled) | Yes | — |
|
|
300
304
|
|
|
301
|
-
A development environment keeps the AI assistant's conversation when the assistant setup (manifest, instructions, AI settings) changes, and applies the new setup from the next message on. Set `ASSISTANT_STRICT_THREADS=true` in `.env` to try the behavior of every other environment locally, where a changed setup locks the conversation and the next message continues it in a summarized one. The variable has no effect outside a development environment.
|
|
305
|
+
A development environment keeps the AI assistant's conversation when the assistant setup (manifest, instructions, AI settings) changes, and applies the new setup from the next message on. Set `ASSISTANT_STRICT_THREADS=true` in `.env` to try the behavior of every other environment locally, where a changed setup locks the conversation and the next message continues it in a summarized one. The variable has no effect outside a development environment. See [When the setup changes](?path=/docs/phoenix-assistant-instructions-and-ai-settings--docs#when-the-setup-changes).
|
|
302
306
|
|
|
303
307
|
### Precedence
|
|
304
308
|
|
|
@@ -308,12 +312,14 @@ Environment variables are resolved in this order (highest to lowest priority):
|
|
|
308
312
|
2. [The generated env file](#the-generated-env-file): `.env.generated` in the project root when the project has one, otherwise `.phoenix/.env.generated`
|
|
309
313
|
3. `.env` (manual overrides)
|
|
310
314
|
|
|
315
|
+
[`PHOENIX_API_TOKEN`](#phoenix_api_token) is the exception: `phoenix deploy` and `phoenix whoami` read it from the process environment only.
|
|
316
|
+
|
|
311
317
|
### Generated Config Files
|
|
312
318
|
|
|
313
319
|
The Phoenix CLI auto-generates config files that read these variables:
|
|
314
320
|
|
|
315
|
-
-
|
|
316
|
-
-
|
|
321
|
+
- `.phoenix/frontend.config.ts` — Frontend runtime config
|
|
322
|
+
- `.phoenix/webhooks.config.ts` — Webhook runtime config
|
|
317
323
|
|
|
318
324
|
## Development Workflow
|
|
319
325
|
|
|
@@ -321,20 +327,23 @@ The Phoenix CLI auto-generates config files that read these variables:
|
|
|
321
327
|
|
|
322
328
|
Starts the full development environment: Vite dev server, development webhook tunnel, domain-cli watcher, and editor WebSocket server.
|
|
323
329
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
|
327
|
-
|
|
|
328
|
-
| `--
|
|
329
|
-
| `--
|
|
330
|
-
| `--
|
|
331
|
-
| `--
|
|
332
|
-
| `--
|
|
333
|
-
| `--
|
|
334
|
-
| `--
|
|
335
|
-
| `--
|
|
336
|
-
| `--
|
|
337
|
-
| `--
|
|
330
|
+
When it runs as the signed-in Studio user, `phoenix dev` starts in **agent mode**, for projects an AI agent builds. The editor still runs, so the inspect commands work, but its UI is hidden and the preview shows only the configurator. Every dev error that would show a detailed error page or Vite's error overlay shows an "Agent at work" screen instead, with no error details. The details go to the terminal and `.phoenix/phoenix-dev.log`. A corner badge shows when the latest change didn't build, and the page recovers by itself after the next successful rebuild. With a development key, `--local` or an offline persistence mode, dev keeps the visible editor and the detailed error pages. Agent mode comes from the credentials alone: `--editor` and `--no-editor`, or `ENABLE_EDITOR` in the environment or `.env`, keep their meaning on every route, the editor or the configurator alone with the detailed error pages; the value development preparation writes into the generated env file does not count for dev. `phoenix sync`, `build` and `clean` keep an agent-mode page that dev generated unless the flag or `ENABLE_EDITOR` in the environment or `.env` says otherwise; without one they choose as before, with the generated env file's `ENABLE_EDITOR` ahead of `.env`.
|
|
331
|
+
|
|
332
|
+
| Flag | Env Variable | Default | Description |
|
|
333
|
+
| ------------------- | ------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
334
|
+
| `--workspace` | — | from `.phoenix.json` | Override workspace mode |
|
|
335
|
+
| `--editor` | `ENABLE_EDITOR` | see agent mode above | Show the editor (`true`) or the configurator alone (`false`) |
|
|
336
|
+
| `--editorWsPort` | `EDITOR_WS_PORT` | `3020` | Editor WebSocket port |
|
|
337
|
+
| `--debug` | `DEBUG` | `false` | Verbose logging |
|
|
338
|
+
| `--project` | — | — | Slug of the project to develop in, instead of `project` of the spec |
|
|
339
|
+
| `--projectSlug` | `PROJECT_SLUG` | `local` with `--local`; the package name in offline modes | Same as `--project` |
|
|
340
|
+
| `--environmentSlug` | `ENVIRONMENT_SLUG` | package.json name | Environment slug |
|
|
341
|
+
| `--withLingui` | `WITH_LINGUI` | `false` | Enable i18n extraction/compilation and watch i18n sources during dev |
|
|
342
|
+
| `--persistence` | `PERSISTENCE_MODE` | `server` | Persistence mode |
|
|
343
|
+
| `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache, and prepare the development deployment again |
|
|
344
|
+
| `--serverUrl` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL |
|
|
345
|
+
| `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Region you are signed in to |
|
|
346
|
+
| `--skipUpload` | `SKIP_UPLOAD` | `false` | Skip the S3 asset upload when the development deployment is prepared at startup |
|
|
338
347
|
|
|
339
348
|
With the application-spec pipeline, `phoenix dev` creates an empty `src/` folder when the project has none, so that it rebuilds when the first source file, such as `src/webhooks/index.ts`, is added.
|
|
340
349
|
|
|
@@ -342,7 +351,7 @@ By default, with the application-spec pipeline, `phoenix dev` bootstraps missing
|
|
|
342
351
|
|
|
343
352
|
The SDK's own Lingui CLI uses the configuration generated in `.phoenix/.linguirc`, both for `--withLingui` and when `phoenix sync` and `phoenix build` extract and compile the catalogs; see [Root Level Files](?path=/docs/phoenix-project-structure--docs#root-level-files). The dev server and `phoenix build` compile the Lingui macros (`msg`, `t`, `Trans` and the others, imported from `@lingui/core/macro`, `@lingui/react/macro` or `@lingui/macro`) with the SDK's own Lingui macro plugin and the same configuration, so the project needs neither `babel-plugin-macros` nor `@lingui/macro` for them. Babel macros of other packages are not compiled.
|
|
344
353
|
|
|
345
|
-
In `server` persistence mode the project comes from `--projectSlug`, `PROJECT_SLUG
|
|
354
|
+
In `server` persistence mode the project comes from `--project` or `--projectSlug`, `PROJECT_SLUG`, `project` in the spec or, when signed in, the projects you can reach (see [Which project `phoenix dev` develops in](#which-project-phoenix-dev-develops-in)), and the credential from `DEVELOPMENT_KEY` or the `phoenix login` sign-in; see [Starting a New Project](#starting-a-new-project). When signed in, the environment is always your own development environment and `--environmentSlug` is ignored.
|
|
346
355
|
|
|
347
356
|
The dev server watches for changes in:
|
|
348
357
|
|
|
@@ -487,7 +496,7 @@ run `phoenix sync` to refresh generated legacy configuration files.
|
|
|
487
496
|
|
|
488
497
|
## Inspect & Debug Tools
|
|
489
498
|
|
|
490
|
-
All inspect commands connect to the editor via WebSocket (default port `3020`).
|
|
499
|
+
All inspect commands connect to the editor via WebSocket (default port `3020`). `phoenix dev` must be running with the preview open; in agent mode the editor runs with its UI hidden and the commands work the same.
|
|
491
500
|
|
|
492
501
|
### `phoenix inspect:assets`
|
|
493
502
|
|
|
@@ -586,7 +595,7 @@ export default ({ read, write, remove }) => {
|
|
|
586
595
|
}
|
|
587
596
|
```
|
|
588
597
|
|
|
589
|
-
`read(path)` always reads the baseline. `write(path, contents)` replaces or creates a file; `remove(path)` deletes it. Scripts run in the browser and collect edits; Phoenix validates and writes the batch locally. Supported files are YAML under `spec/` outside `spec/admin/`, and TypeScript under `src/components`, `transformers`, `handlers`, `elements` and `_`-prefixed shared folders. Expressions
|
|
598
|
+
`read(path)` always reads the baseline. `write(path, contents)` replaces or creates a file; `remove(path)` deletes it. Scripts run in the browser and collect edits; Phoenix validates and writes the batch locally. Supported files are YAML under `spec/` outside `spec/admin/`, and TypeScript under `src/components`, `transformers`, `handlers`, `elements` and `_`-prefixed shared folders. Expressions and invariants also run on the server; those folders and action files are outside the supported edit surface.
|
|
590
599
|
|
|
591
600
|
For standalone UI or branding proposals, write self-contained HTML files. Each page renders in its own iframe when selected; its `<title>` names the option and `<meta name="description" content="...">` describes it. HTML and scripts may share a set if their file names give distinct option ids.
|
|
592
601
|
|
|
@@ -750,38 +759,69 @@ For full deployment documentation including CI/CD integration, environment manag
|
|
|
750
759
|
|
|
751
760
|
## SDK Builders
|
|
752
761
|
|
|
753
|
-
SDK
|
|
762
|
+
SDK builders sign the CLI in with an API token instead of project keys, and deploy by uploading the project. A token is one of three kinds: a personal token from `phoenix login`, which follows your access across all your workspaces; a workspace-bound token from the older `phoenix login <workspace>`; or a deploy-only automation token for CI, passed as [`PHOENIX_API_TOKEN`](#phoenix_api_token). See [SDK Builder Workflow](?path=/docs/phoenix-sdk-builder-workflow--docs) for the whole flow.
|
|
754
763
|
|
|
755
|
-
### `phoenix login
|
|
764
|
+
### `phoenix login [workspace]`
|
|
756
765
|
|
|
757
|
-
Signs the CLI in to the SDK-builder workspace
|
|
766
|
+
Signs the CLI in to your Phoenix account. Run it without an argument: the token is personal, follows your current access across all your SDK-builder workspaces, and needs no workspace slug.
|
|
758
767
|
|
|
759
|
-
1. Opens Studio, where you name the token and approve the sign-in (use `--no-open` to only print the link).
|
|
768
|
+
1. Opens Studio, where you name the token and approve the sign-in (use `--no-open` to only print the link). Approving needs only an active account; developing and deploying need a current project Superadmin grant or workspace Superadmin membership, and the token follows that access as it changes. The page shows your account, the computer the CLI runs on and how long the link still works. The CLI suggests the name `phoenix CLI on <computer>`; change it so you can tell your sign-ins apart later.
|
|
760
769
|
2. Studio sends a one-time code back to the CLI on `127.0.0.1`.
|
|
761
770
|
3. The CLI exchanges the code for a token with the name you approved, and sends the browser back to Studio, which confirms the sign-in.
|
|
762
771
|
|
|
763
772
|
**Deny** in Studio stops the CLI at once: it exits with `The sign-in was denied in Studio` and no token is created. The link works for five minutes and only for the CLI that printed it; after that, Studio shows that it no longer works and the CLI gives up.
|
|
764
773
|
|
|
765
|
-
The token is stored in `~/.phoenix/credentials.json`, readable only by you, per server, together with the Studio URL of the sign-in; `PHOENIX_CREDENTIALS_FILE` moves the file. The token works until you revoke it. Signing in again to the same server revokes the token it replaces; the CLI warns
|
|
774
|
+
The token is stored in `~/.phoenix/credentials.json`, readable only by you, with one entry per server, together with the Studio URL of the sign-in; `PHOENIX_CREDENTIALS_FILE` moves the file. The token works until you revoke it. Signing in again to the same server revokes the token it replaces; when the server could not revoke it, the CLI warns and names Studio's **Tokens** page, where you can revoke it yourself.
|
|
775
|
+
|
|
776
|
+
| Flag | Env | Default | Description |
|
|
777
|
+
| ---------------------- | ---------------- | -------------------------------------------- | ------------------------------------------------ |
|
|
778
|
+
| `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Phoenix region to sign in to: `eu` or `us` |
|
|
779
|
+
| `--serverUrl` / `--su` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL, for a local or custom server |
|
|
780
|
+
| `--studioUrl` | — | the Studio of the server | Studio URL matching the server |
|
|
781
|
+
| `--open` | — | `true` | Open the approval page in your browser |
|
|
782
|
+
|
|
783
|
+
The CLI prints the server it signs in to, and refuses a server and a Studio that do not belong to the same installation; this holds for the older workspace form too, whose Studio is a subdomain of the server's Studio. The Studio is known only for the server of a region, so a local or custom server needs `--studioUrl`.
|
|
784
|
+
|
|
785
|
+
#### Which server the CLI talks to
|
|
766
786
|
|
|
767
|
-
|
|
768
|
-
| ---------------------- | ------------------------------------ | ------------------------------------------------ |
|
|
769
|
-
| `--region` | `eu` | Phoenix region of the workspace: `eu` or `us` |
|
|
770
|
-
| `--serverUrl` / `--su` | the region's server | Phoenix server URL, for a local or custom server |
|
|
771
|
-
| `--studioUrl` | the workspace's Studio in the region | Studio URL of the workspace |
|
|
772
|
-
| `--open` | `true` | Open the approval page in your browser |
|
|
787
|
+
`login`, `dev` (when signed in), `deploy`, `whoami`, `logout` and `feedback` choose the server by one rule: a flag (`--serverUrl`, else `--region`), then `SERVER_URL`, then `PHOENIX_REGION`, each from the environment or `.env`, then the server of your current saved sign-in, then the `eu` region. The current saved sign-in is the most recent `phoenix login`; after `phoenix logout` of it, the most recent of the remaining sign-ins takes over. So after `phoenix login --region us`, a plain `phoenix deploy` goes to the US server. A `SERVER_URL` in a project's `.env` steers all of these commands in that folder.
|
|
773
788
|
|
|
774
|
-
|
|
789
|
+
When the chosen server holds no sign-in, the error lists the servers that do and the flag that selects each.
|
|
775
790
|
|
|
776
|
-
For a local server, pass both URLs: `phoenix login
|
|
791
|
+
For a local server, pass both URLs: `phoenix login --serverUrl http://localhost:3000 --studioUrl http://localhost:5500`.
|
|
792
|
+
|
|
793
|
+
`phoenix login <workspace>` is the older form. It still works and issues a token bound to that one workspace, approved in the workspace's own Studio (`--studioUrl` then defaults to it) by a member with workspace Superadmin or at least one project Superadmin assignment. With it, the project must belong to that workspace. It shares the one saved sign-in per server with the personal form, so each replaces the other. Studio and these pages show only plain `phoenix login`; prefer it.
|
|
777
794
|
|
|
778
795
|
### `phoenix logout`
|
|
779
796
|
|
|
780
|
-
Revokes the token on the server and removes it from the credentials file.
|
|
797
|
+
Revokes the saved token on the server and removes it from the credentials file. The server is chosen as described in [Which server the CLI talks to](#which-server-the-cli-talks-to). When the server can't be reached, the token is still removed locally, and the CLI warns that it stays valid on the server and names Studio's **Tokens** page, where you can revoke it. `logout` acts only on the saved sign-in: it never revokes the token in `PHOENIX_API_TOKEN` and says so when the variable is set, and prints `Not signed in to <server>.` when there is no saved sign-in.
|
|
798
|
+
|
|
799
|
+
### `phoenix whoami`
|
|
800
|
+
|
|
801
|
+
Shows what the credential the CLI would use can reach. It prints the account's email (its id on a server older than API 1.85.0), where the credential comes from (the saved sign-in with its file, or `PHOENIX_API_TOKEN`), whether it is personal or bound to a workspace, the server, and one line per workspace, `Name (slug): project slugs`; these are the slugs to put into `project` in the spec. For an automation token it also prints the token's actions and whether its scope is one project or the workspace. In a project folder it also says whether the credential can reach the `project` of the spec, which is the way to check where `phoenix deploy` would go without deploying.
|
|
802
|
+
|
|
803
|
+
```bash
|
|
804
|
+
phoenix whoami
|
|
805
|
+
```
|
|
806
|
+
|
|
807
|
+
The server is chosen as described in [Which server the CLI talks to](#which-server-the-cli-talks-to).
|
|
808
|
+
|
|
809
|
+
### `PHOENIX_API_TOKEN`
|
|
810
|
+
|
|
811
|
+
For CI, create an automation token on Studio's **Tokens** page and pass it in the process environment as `PHOENIX_API_TOKEN`; see [Automation tokens](?path=/docs/phoenix-sdk-builder-workflow--docs#automation-tokens). An automation token is deploy only and is scoped to one project or one workspace.
|
|
812
|
+
|
|
813
|
+
- `phoenix deploy` and `phoenix whoami` read the variable, and it takes precedence over the saved sign-in; both name it as the credential. `phoenix dev`, `phoenix feedback`, `phoenix login` and `phoenix logout` ignore it and use the saved sign-in; `dev`, `feedback` and `logout` print one line that says so.
|
|
814
|
+
- It is read only from the process environment, never from `.env` or the generated env file, and is never written to the credentials file.
|
|
815
|
+
- An empty or malformed value stops the command; it does not fall back to the saved sign-in. When the server refuses the token, signing in again does not help: set the variable to a valid token, or unset it to use your saved sign-in.
|
|
816
|
+
- A deploy that runs with it prints no `Follow the build in Studio` link, because the link comes from the saved sign-in.
|
|
781
817
|
|
|
782
818
|
### `phoenix deploy`
|
|
783
819
|
|
|
784
|
-
|
|
820
|
+
Deploys to the project chosen as described in [Which project `phoenix dev` develops in](#which-project-phoenix-dev-develops-in): `--project <slug>`, then `project` in `spec/application.yaml`, then the projects the sign-in or token can reach. The project is the slug of one the credential can manage, in whichever of your workspaces owns it; [`phoenix whoami`](#phoenix-whoami) lists those slugs. Deploy does not read `PROJECT_SLUG` or `--projectSlug`, so the `.env` block of a development environment cannot redirect it. An automation token and the older workspace-bound sign-in (`phoenix login <workspace>`) belong to one workspace: with them the project must belong to that workspace. In CI with a deploy token (`PHOENIX_API_TOKEN`), a token limited to one project needs nothing more; a token for a whole workspace with several projects needs the project named in the spec or with `--project`. The project's storage must be ready. For a project other than the workspace's initial one, which carries the workspace's slug, the CLI checks server API 1.61.0 or newer before uploading, so an older server cannot silently deploy it to the initial project. Studio build links retain the selected project.
|
|
821
|
+
|
|
822
|
+
A deploy builds into a **preview** of the project, never into production: production changes only when a preview build is promoted in Studio, or rolled back there to an earlier build. Without `--env` it builds into `preview`, which the deploy creates when the project has none (and says so), as long as the project has fewer than three previews. After `preview` is deleted, deploys without `--env` are refused until its removal has finished, so name another preview with `--env`. `--env <name>` builds into another preview of the project, which must exist: `--env` never creates one, and an unknown name, `production` or a preview being deleted stops the deploy before packing, with the project's previews. Automation tokens and older SDKs follow the same rule. The CLI needs server API 1.93.0 or newer, because an older server would build into production; it stops before packing otherwise.
|
|
823
|
+
|
|
824
|
+
Validates the spec, packs and uploads the project, starts its build on the server and follows it until the preview's configurator is live. Before packing it prints where the deploy goes and as whom: the server, the workspace with its slug, the project, the environment, the account and the credential source. A project the credential cannot reach stops the deploy there, with the project slugs it can reach in each workspace. A preview replaces a stored schema that changed under the same model version, because its saved configurations are test data; promoting such a build to production is refused, because production never replaces a schema, and needs a new model version and a [migration](?path=/docs/phoenix-migrations--docs). Before packing, it also refuses a `pnpm-workspace.yaml` whose `allowBuilds` leaves a package undecided, an entry that is neither `true` nor `false`, such as the placeholder pnpm 11 writes for a build script it skipped, because the platform build stops on it; the message names the packages. Builds of one preview run one at a time: a build started while another one of the preview runs waits, and the deploy prints `Build #54 is queued behind build #53 in preview` once, and again when the build ahead changes, then follows it as usual. At most three builds wait per environment; a further deploy is refused before the upload. Once the build starts it prints `Build #<n> started in <preview>` and `Follow the build in Studio: <url>`, the build's page in the Studio you signed in through; a sign-in stored by an older CLI has no Studio URL, so sign in again to get the link, and a deploy that runs with `PHOENIX_API_TOKEN` prints none. It prints `Your configurator is live at <url>` when deployment succeeds. The server is chosen as described in [Which server the CLI talks to](#which-server-the-cli-talks-to); `--no-wait` returns as soon as the build starts or joins the queue, after printing the queue line and the Studio link.
|
|
785
825
|
|
|
786
826
|
A follow-up evaluation hint is addressed to coding agents; you can ignore it when running the command manually.
|
|
787
827
|
|
|
@@ -800,7 +840,7 @@ Review and redact credentials or unrelated sensitive content before uploading th
|
|
|
800
840
|
|
|
801
841
|
### `phoenix feedback [message]`
|
|
802
842
|
|
|
803
|
-
Sends feedback about the SDK, the CLI, the documentation or Studio to the Phoenix team. It needs `phoenix login`: the server records the
|
|
843
|
+
Sends feedback about the SDK, the CLI, the documentation or Studio to the Phoenix team. It needs the saved `phoenix login` sign-in, not `PHOENIX_API_TOKEN`: the server records the user and API token of the sign-in and the workspace of the project, so the message itself needs no introduction.
|
|
804
844
|
|
|
805
845
|
```bash
|
|
806
846
|
phoenix feedback "phoenix build reports a missing entity when a module file is empty" --type bug
|
|
@@ -809,17 +849,17 @@ phoenix feedback --file report.txt --type bug
|
|
|
809
849
|
|
|
810
850
|
Pass the message as the argument for a short note, or `--file` for a longer report: the content of the file is the message, read as UTF-8, so quotes, backticks and new lines arrive unchanged. Giving both, or neither, is an error.
|
|
811
851
|
|
|
812
|
-
| Flag | Env
|
|
813
|
-
| ---------------------- |
|
|
814
|
-
| `--file` | —
|
|
815
|
-
| `--type` | —
|
|
816
|
-
| `--contact` | —
|
|
817
|
-
| `--agent` | —
|
|
818
|
-
| `--projectSlug` / `-p` | `PROJECT_SLUG`
|
|
819
|
-
| `--region` |
|
|
820
|
-
| `--serverUrl` / `--su` |
|
|
821
|
-
|
|
822
|
-
A message holds at most 100,000 characters, from the argument or from the file. Besides the message and the flags, the CLI sends only the SDK version, the operating system and the Node.js version; no file of the project is attached, and the Phoenix team reads a build's sources through the build's page in Studio. The project must
|
|
852
|
+
| Flag | Env | Default | Description |
|
|
853
|
+
| ---------------------- | ---------------- | -------------------------------------------- | --------------------------------------------------------- |
|
|
854
|
+
| `--file` | — | — | Text file that holds the message, instead of the argument |
|
|
855
|
+
| `--type` | — | `other` | What the feedback is about: `bug`, `idea` or `other` |
|
|
856
|
+
| `--contact` | — | — | How to reach you, when you want a reply |
|
|
857
|
+
| `--agent` | — | — | Name of the coding agent submitting the feedback |
|
|
858
|
+
| `--projectSlug` / `-p` | `PROJECT_SLUG` | `project` of the spec, if it names one | Workspace project the feedback is about |
|
|
859
|
+
| `--region` | `PHOENIX_REGION` | your saved sign-in, else `eu` | Phoenix region you are signed in to: `eu` or `us` |
|
|
860
|
+
| `--serverUrl` / `--su` | `SERVER_URL` | your saved sign-in, else the region's server | Phoenix server URL, for a local or custom server |
|
|
861
|
+
|
|
862
|
+
A message holds at most 100,000 characters, from the argument or from the file. Besides the message and the flags, the CLI sends only the SDK version, the operating system and the Node.js version; no file of the project is attached, and the Phoenix team reads a build's sources through the build's page in Studio. The project must be one the sign-in can manage, otherwise the server refuses the feedback. A personal sign-in needs a project, from the spec or `--projectSlug`; with a workspace-bound sign-in, feedback without a project is sent on its own.
|
|
823
863
|
|
|
824
864
|
Review the message before sending and omit secrets, credentials and personal data. The command needs a server with API 1.40.0 or newer; a message over 5000 characters needs API 1.43.0 or newer.
|
|
825
865
|
|