@salsita-ai/sdk 0.50.0-develop.11a39afa73 → 0.50.0-develop.12744a81f2
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/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/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 +1 -4
- package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +2 -2
- 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 +26 -29
- 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/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 +11 -12
- 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 +3 -2
- package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +13 -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/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
- 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/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/webhooks/authentication.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
- 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/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/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 +66 -7
- 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/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 +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/phoenix-api.d.ts +5263 -1723
- package/dist/configurator/ConfiguratorApp.js +1 -1
- 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 +7 -4
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +99 -35
- 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 +12 -17
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -1
- 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/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 +14 -4
- 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 +5 -4
- package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
- package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
- package/dist/configurator/common/configurator-interface.d.ts +9 -7
- package/dist/configurator/common/configurator-interface.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 +5 -5
- package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
- package/dist/configurator/ui/assistant/AssistantComposer.d.ts +4 -3
- package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
- package/dist/configurator/ui/assistant/AssistantPanel.d.ts +6 -4
- package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
- package/dist/configurator/ui/assistant/AssistantThread.d.ts +10 -2
- package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
- 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/editor/AnnotationComment.d.ts +6 -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/index.d.ts +0 -1
- package/dist/configurator/ui/assistant/annotation/index.js +1 -1
- package/dist/configurator/ui/assistant/assistant-failure.d.ts +6 -4
- package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
- package/dist/configurator/ui/assistant/attachments/MessageImages.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 +1 -1
- package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
- package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/drawing/index.js +1 -1
- package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -1
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
- package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
- package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
- 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/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/FormOptions.d.ts +7 -4
- package/dist/configurator/ui/assistant/form-elements/FormOptions.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 +2 -3
- package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
- package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
- package/dist/configurator/ui/assistant/index.d.ts +2 -2
- package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.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 +2 -1
- package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +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 +2 -2
- package/dist/configurator/ui/assistant/thread-items.js +1 -1
- package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +7 -1
- 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/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/MobileLayout.js +3 -3
- package/dist/configurator/ui/configurator-layout/universal/MobilePreview.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 +128 -3
- 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 +58 -62
- package/dist/docs/other-features/violation-messages.mdx +3 -1
- 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/configurator-interface.mdx +68 -39
- package/dist/docs/phoenix/data-sources.mdx +1 -1
- package/dist/docs/phoenix/getting-started.mdx +1 -1
- package/dist/docs/phoenix/layout-slots.mdx +2 -2
- package/dist/docs/phoenix/migrations.mdx +1 -1
- package/dist/docs/phoenix/phoenix-cli.mdx +90 -54
- package/dist/docs/phoenix/project-structure.mdx +17 -7
- package/dist/docs/phoenix/sdk-builder-workflow.mdx +57 -28
- package/dist/docs/phoenix/sessions-and-access.mdx +10 -7
- package/dist/docs/phoenix/theming.mdx +5 -9
- package/dist/docs/phoenix/webhook-membership.mdx +1 -1
- package/dist/docs/phoenix/webhooks.mdx +56 -4
- 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/application/application-config.d.ts +5 -0
- 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 +8 -0
- 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/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/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 -6
- package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
- package/dist/domain/domain-runtime/domain-runtime.d.ts +13 -19
- package/dist/domain/domain-runtime/domain-runtime.js +1 -1
- package/dist/domain/domain-runtime/index.d.ts +0 -1
- package/dist/domain/domain-runtime/index.js +1 -1
- package/dist/domain/domain-runtime/spec/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 +6 -8
- 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 +34 -1
- 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 +45 -4
- 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 +4 -1
- 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/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/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-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/index.d.ts +1 -1
- package/dist/phoenix/application-spec/index.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/cleanup-environment.js +1 -1
- package/dist/phoenix/commands/deploy.d.ts +7 -2
- package/dist/phoenix/commands/deploy.js +8 -2
- package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
- 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/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/development-credential.js +1 -1
- package/dist/phoenix/services/frontend-config.d.ts +2 -0
- package/dist/phoenix/services/index.d.ts +4 -2
- package/dist/phoenix/services/index.js +1 -1
- 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.js +1 -1
- 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.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/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/runtime/create-application-runtime.d.ts +14 -16
- package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
- package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +5 -6
- 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/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/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 +3 -1
- package/dist/webhook/builders/webhook-builder.d.ts +5 -0
- package/dist/webhook/builders/webhook-builder.js +1 -1
- package/package.json +9 -4
- package/schema/domain-spec.json +444 -65
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
- 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/use-end-on-unmount.js +0 -1
- package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -68
- package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
- package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -61
- package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
- package/dist/domain/domain-context/action-system/action-system.d.ts +0 -64
- 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/action-factory.d.ts +0 -11
- 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/domain-runtime → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# Reading the Configuration
|
|
2
|
+
|
|
3
|
+
Reading comes before everything else the assistant does. It reads the configuration before it changes anything, to see which choices exist, to explain a warning, to check its own work and to answer a question. An assistant that reads little can do little, however much it is allowed to change.
|
|
4
|
+
|
|
5
|
+
The agent reads only what you list in the `assistant` section, and it understands each value through the description you give it. Those descriptions are most of the work on this page.
|
|
6
|
+
|
|
7
|
+
- [Fields of an entity](#fields-of-an-entity)
|
|
8
|
+
- [Expressions and relations](#expressions-and-relations)
|
|
9
|
+
- [Several root types](#several-root-types)
|
|
10
|
+
- [Lenses: reading one aspect at once](#lenses-reading-one-aspect-at-once)
|
|
11
|
+
- [What the agent can always read](#what-the-agent-can-always-read)
|
|
12
|
+
- [Showing the user around](#showing-the-user-around)
|
|
13
|
+
|
|
14
|
+
## Fields of an entity
|
|
15
|
+
|
|
16
|
+
Start with the stored fields: the values the user sets and sees, such as a width, a color or a finish. List a field when the user could ask about it, or when the agent needs it to reason about the design. Leave out bookkeeping that means nothing to the user, such as id lists, flags for the UI and cached values.
|
|
17
|
+
|
|
18
|
+
The description matters more than the list. The agent has only the field's name, type and description to go on, so the description has to carry what a colleague would tell a newcomer:
|
|
19
|
+
|
|
20
|
+
- **The unit**, for every number.
|
|
21
|
+
- **The axis and the origin**, for every position. "Horizontal grid coordinate, increasing to the right" is enough. A bare `positionX` is not.
|
|
22
|
+
- **The product's own words**, where the stored value differs from what the user says. If the finish the catalog calls Dove is stored as `white`, say so.
|
|
23
|
+
|
|
24
|
+
#### Configure
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
assistant:
|
|
28
|
+
entities:
|
|
29
|
+
KitchenRange:
|
|
30
|
+
color:
|
|
31
|
+
description: Enamel color of the range
|
|
32
|
+
Base:
|
|
33
|
+
width:
|
|
34
|
+
description: Width of the base unit in millimeters
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
- **`entities`** takes an entity type, then the fields the agent may read on it.
|
|
38
|
+
- **`description`** is what the agent learns about the field. Without one, the agent gets the description the domain model gives the field, or none.
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary>What the agent sees</summary>
|
|
42
|
+
|
|
43
|
+
```graphql
|
|
44
|
+
type KitchenRange {
|
|
45
|
+
id: ID! # every entity has id and type
|
|
46
|
+
type: String!
|
|
47
|
+
"Enamel color of the range"
|
|
48
|
+
color: String!
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type Base {
|
|
52
|
+
id: ID!
|
|
53
|
+
type: String!
|
|
54
|
+
"Width of the base unit in millimeters"
|
|
55
|
+
width: Float!
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
A field keeps the type the model declares. A `number` is a `Float` and an `integer` is an `Int`. A string enum is a `String` whose description ends with the list of allowed values.
|
|
60
|
+
|
|
61
|
+
The guide tells the agent that a number is in the unit its description names, and to convert when the user speaks in another unit. A number without a unit in its description leaves the agent guessing.
|
|
62
|
+
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
## Expressions and relations
|
|
66
|
+
|
|
67
|
+
Much of what matters about a configuration is not stored. The price, the overall size and which part carries which are worked out by expressions and relations. Expose them. A value the configurator already works out is more reliable than one the agent derives from raw fields, and it costs the agent nothing.
|
|
68
|
+
|
|
69
|
+
A project with a well-shaped domain model already has these as business-level expressions, such as the price, the total width or the number of doors. Those are the ones to list.
|
|
70
|
+
|
|
71
|
+
#### Configure
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
assistant:
|
|
75
|
+
entities:
|
|
76
|
+
KitchenRange:
|
|
77
|
+
$price:
|
|
78
|
+
description: Indicative price of the whole range
|
|
79
|
+
$bases:
|
|
80
|
+
description: The base units of the range, left to right
|
|
81
|
+
CookingTop:
|
|
82
|
+
$linkedBase:
|
|
83
|
+
description: The cabinet that carries the component, when it needs its own
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- **A `$` entry** names an expression or a relation of the entity type. `$price` is an expression here, and `$bases` and `$linkedBase` are relations.
|
|
87
|
+
- **An expression must be declared in the spec with its type.** `$price` is declared under `expressions` with `type: number`. An expression that exists only because a component reads it has no declared type, and the build reports the entry as unknown.
|
|
88
|
+
- **A relation leads the agent to other entities.** Through `$bases` it reads the base units of the range, with the fields you listed for `Base`.
|
|
89
|
+
|
|
90
|
+
An expression declared with a TypeScript type (`tsType`) reaches the agent as untyped JSON, with no description of what is inside. In that case, write a second expression for the agent that returns plain text or a plain number, and list that one:
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
assistant:
|
|
94
|
+
entities:
|
|
95
|
+
KitchenRange:
|
|
96
|
+
$assistantStyleSummary:
|
|
97
|
+
as: _styleSummary
|
|
98
|
+
description: The style, decoration and knobs in one sentence
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
- **`as`** sets the name the agent reads the entry by. Here it hides that the expression was written for the assistant. It works on any entry, a stored field included, for a name that would mislead the agent.
|
|
102
|
+
|
|
103
|
+
<details>
|
|
104
|
+
<summary>What the agent sees</summary>
|
|
105
|
+
|
|
106
|
+
```graphql
|
|
107
|
+
type KitchenRange {
|
|
108
|
+
"Indicative price of the whole range"
|
|
109
|
+
_price: Float!
|
|
110
|
+
"The base units of the range, left to right"
|
|
111
|
+
_bases: [Base!]!
|
|
112
|
+
"The style, decoration and knobs in one sentence"
|
|
113
|
+
_styleSummary: String! # the name given with as
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
type CookingTop {
|
|
117
|
+
"The cabinet that carries the component, when it needs its own"
|
|
118
|
+
_linkedBase: Base # may be null: the relation is 0-1
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Without `as`, the `$` becomes `_`, because a GraphQL name cannot contain `$`. The guide tells the agent that a field starting with `_` is computed: it can be read and never written.
|
|
123
|
+
|
|
124
|
+
The guide also teaches the agent to look ahead. It can run a change in memory, read `_price` on the result and keep nothing. That is how it answers "what would this cost?" without a description that explains the trick.
|
|
125
|
+
|
|
126
|
+
</details>
|
|
127
|
+
|
|
128
|
+
## Several root types
|
|
129
|
+
|
|
130
|
+
Some configurators have more than one kind of root. A configurator for technical buildings may start a configuration as a walk-in building, an open frame or a compact kiosk, each its own root type with its own features. The agent cannot know in advance which kind it has in front of it, so it has to find out first.
|
|
131
|
+
|
|
132
|
+
#### Configure
|
|
133
|
+
|
|
134
|
+
```yaml
|
|
135
|
+
assistant:
|
|
136
|
+
entities:
|
|
137
|
+
WalkInBuilding:
|
|
138
|
+
wallThickness:
|
|
139
|
+
description: Thickness of the outer walls in millimeters
|
|
140
|
+
OpenFrame:
|
|
141
|
+
frameHeight:
|
|
142
|
+
description: Height of the frame in millimeters
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
- **Each root type gets its own entry**, like any other entity type. Nothing marks it as a root here: the domain model already does.
|
|
146
|
+
|
|
147
|
+
Tell the agent which kinds of root exist and how they differ. The place for that is `instructions`, the free text of the section. See [Instructions and AI Settings](?path=/docs/phoenix-assistant-instructions-and-ai-settings--docs#instructions).
|
|
148
|
+
|
|
149
|
+
<details>
|
|
150
|
+
<summary>What the agent sees</summary>
|
|
151
|
+
|
|
152
|
+
```graphql
|
|
153
|
+
type Query {
|
|
154
|
+
root: RootEntity!
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface RootEntity {
|
|
158
|
+
id: ID!
|
|
159
|
+
type: String! # "WalkInBuilding" or "OpenFrame"
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
With one root type, `root` has that type and the agent reads its fields directly. With several, `root` is the `RootEntity` interface. The agent reads `type` first and then asks for the fields of that kind, as in `root { type ... on WalkInBuilding { wallThickness } }`.
|
|
164
|
+
|
|
165
|
+
</details>
|
|
166
|
+
|
|
167
|
+
## Lenses: reading one aspect at once
|
|
168
|
+
|
|
169
|
+
A small configurator has a dozen readable fields and the agent asks for them by name. A large one has hundreds. There the agent either reads everything on every question, which is slow and costly, or picks fields one by one and misses some.
|
|
170
|
+
|
|
171
|
+
A lens fixes that. It is a named set of fields that belong to one aspect of the product, which the agent reads in one go. Typical lenses follow the way the product is talked about: the layout, the product system, the details, the price. Add lenses once the agent starts missing fields or reading too much.
|
|
172
|
+
|
|
173
|
+
#### Configure
|
|
174
|
+
|
|
175
|
+
```yaml
|
|
176
|
+
assistant:
|
|
177
|
+
lenses:
|
|
178
|
+
RangeLayout:
|
|
179
|
+
description: Use for what the range is made of and where its parts are.
|
|
180
|
+
RangeStyle:
|
|
181
|
+
description: Use for how the range looks.
|
|
182
|
+
entities:
|
|
183
|
+
KitchenRange:
|
|
184
|
+
color:
|
|
185
|
+
description: Enamel color of the range
|
|
186
|
+
lenses: [RangeStyle]
|
|
187
|
+
trim:
|
|
188
|
+
description: Metal finish of the trim
|
|
189
|
+
lenses: [RangeStyle]
|
|
190
|
+
$price:
|
|
191
|
+
description: Indicative price of the whole range
|
|
192
|
+
lenses: [RangeLayout, RangeStyle]
|
|
193
|
+
$bases:
|
|
194
|
+
description: The base units of the range, left to right
|
|
195
|
+
lenses: [RangeLayout]
|
|
196
|
+
Base:
|
|
197
|
+
width:
|
|
198
|
+
description: Width of the base unit in millimeters
|
|
199
|
+
lenses: [RangeLayout]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
- **`lenses`** declares each lens by name. Its `description` tells the agent when to use it.
|
|
203
|
+
- **`lenses: [RangeStyle]`** on an entry puts that field into the lens.
|
|
204
|
+
- **A field can be in several lenses.** The price matters whether the talk is about the layout or the look, so `$price` is in both.
|
|
205
|
+
- **A tagged relation takes the lens along.** `$bases` is tagged, so reading `RangeLayout` on the range also reads the `width` of every base unit. By default this goes one relation deep: the base units come back with their tagged fields, and a tagged relation on a base unit would return only ids. `maxDepth` on the lens raises that number.
|
|
206
|
+
|
|
207
|
+
<details>
|
|
208
|
+
<summary>What the agent sees</summary>
|
|
209
|
+
|
|
210
|
+
```graphql
|
|
211
|
+
# Use for what the range is made of and where its parts are. Nested relations carry the same selection up to 1 level, below that only `id`.
|
|
212
|
+
fragment RangeLayout on AnyDomainEntity {
|
|
213
|
+
id
|
|
214
|
+
... on KitchenRange {
|
|
215
|
+
_price
|
|
216
|
+
_bases {
|
|
217
|
+
...RangeLayout
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
... on Base {
|
|
221
|
+
width
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
# Use for how the range looks.
|
|
226
|
+
fragment RangeStyle on AnyDomainEntity {
|
|
227
|
+
id
|
|
228
|
+
... on KitchenRange {
|
|
229
|
+
color
|
|
230
|
+
trim
|
|
231
|
+
_price
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
The agent never meets the word "lens". The guide presents each one as a ready-made GraphQL fragment, something it already knows how to use. "How is it laid out?" becomes `root { ...RangeLayout }`.
|
|
237
|
+
|
|
238
|
+
The agent combines them freely. For a question that touches both aspects it reads `root { ...RangeLayout ...RangeStyle }`, and `_price` comes back once. It can also add single fields next to a fragment when it needs more.
|
|
239
|
+
|
|
240
|
+
</details>
|
|
241
|
+
|
|
242
|
+
## What the agent can always read
|
|
243
|
+
|
|
244
|
+
A few things need no entry, because every configurator has them:
|
|
245
|
+
|
|
246
|
+
- **Warnings.** The agent reads every warning and notice the configuration has right now, with the message the user would see. This is how it explains a warning and how it checks a design it just built.
|
|
247
|
+
- **The selection.** The agent knows which entity the user has selected, so "make this one wider" works.
|
|
248
|
+
- **Where the user is.** The agent knows the active step, view and tool, wherever the configurator has more than one of a kind.
|
|
249
|
+
- **What the user did in the meantime.** Each message tells the agent what changed in the configurator since its last reply, so it does not act on what it read earlier.
|
|
250
|
+
|
|
251
|
+
#### Configure
|
|
252
|
+
|
|
253
|
+
Nothing to declare. Warnings come from the invariants the spec already has, the rules that check a configuration. The agent repeats their messages, so write them the way the user should read them. See [Violation Messages](?path=/docs/other-features-violation-messages--docs).
|
|
254
|
+
|
|
255
|
+
<details>
|
|
256
|
+
<summary>What the agent sees</summary>
|
|
257
|
+
|
|
258
|
+
```graphql
|
|
259
|
+
type Query {
|
|
260
|
+
selectedEntity: AnyDomainEntity! # the root when nothing is selected
|
|
261
|
+
warnings: [JSON!]!
|
|
262
|
+
navigation: Navigation!
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
type Navigation {
|
|
266
|
+
navigationState: String! # the active step or tab
|
|
267
|
+
viewState: String!
|
|
268
|
+
toolState: String!
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
`Navigation` has a field only for a kind of state the configurator has more than one of. A configurator with a single view has no `viewState` to read.
|
|
273
|
+
|
|
274
|
+
What the user did arrives as a short block at the top of their message. Here the user selected a base unit and made it wider:
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
[changes]
|
|
278
|
+
selected: KitchenRange-1 -> Base-2
|
|
279
|
+
M Base-2
|
|
280
|
+
width: 600 -> 900
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
`M` marks a modified entity, `A` an added one and `D` a deleted one. Only the types and fields you listed under `entities` appear.
|
|
284
|
+
|
|
285
|
+
</details>
|
|
286
|
+
|
|
287
|
+
## Showing the user around
|
|
288
|
+
|
|
289
|
+
The assistant can also move the user through the configurator. It can switch to the step or tab it is talking about, change the view, and select a part so that its controls open. This keeps the chat and the screen on the same subject. In a configurator with fixed steps it also lets the assistant lead: once the layout is settled, it moves on to the product choices itself.
|
|
290
|
+
|
|
291
|
+
Expose the places a user would ask to be taken to. Describe each by what the user sees and does there, because that is what the agent uses to decide where a conversation belongs.
|
|
292
|
+
|
|
293
|
+
#### Configure
|
|
294
|
+
|
|
295
|
+
```yaml
|
|
296
|
+
assistant:
|
|
297
|
+
navigation:
|
|
298
|
+
navigationStates:
|
|
299
|
+
base-units:
|
|
300
|
+
as: BaseUnits
|
|
301
|
+
description: The page where the user adds and arranges the base units
|
|
302
|
+
viewStates:
|
|
303
|
+
Original:
|
|
304
|
+
description: The range on its own in a neutral studio
|
|
305
|
+
Kitchen:
|
|
306
|
+
description: The range fitted in a furnished kitchen
|
|
307
|
+
select:
|
|
308
|
+
Part:
|
|
309
|
+
description: Opens the controls of the base unit, cooking component or hood next to it in the scene
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
- **`navigationStates`**, **`viewStates`** and **`toolStates`** list the states of each kind the agent may switch to, by their names in the spec.
|
|
313
|
+
- **`description`** of a state is required. It says what the user sees there.
|
|
314
|
+
- **`as`** gives a state the name the agent uses for it. The agent reads and sets states as GraphQL enum values, which allow only letters, digits and `_`. A state named `base-units` is not one, so the build fails until `as` gives it a valid name.
|
|
315
|
+
- **`select`** lists the entity types, or aliases, whose entities the agent may select. `Part` is an alias here, a name the model gives to a group of entity types, so it covers every part of the range.
|
|
316
|
+
|
|
317
|
+
Two limits apply:
|
|
318
|
+
|
|
319
|
+
- **The agent goes only where the UI lets the user go right now.** A step the configurator has not unlocked yet stays locked for the agent too.
|
|
320
|
+
- **The agent selects only what the user can click.** The entity needs a `selectable` component or a `sceneEntitySelectHotspot`.
|
|
321
|
+
|
|
322
|
+
Moving the user changes nothing in the configuration. It works while the configuration is read-only, and it adds no undo step.
|
|
323
|
+
|
|
324
|
+
<details>
|
|
325
|
+
<summary>What the agent sees</summary>
|
|
326
|
+
|
|
327
|
+
```graphql
|
|
328
|
+
enum ViewState {
|
|
329
|
+
"The range on its own in a neutral studio"
|
|
330
|
+
Original
|
|
331
|
+
"The range fitted in a furnished kitchen"
|
|
332
|
+
Kitchen
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
enum NavigationState {
|
|
336
|
+
"The page where the user adds and arranges the base units"
|
|
337
|
+
BaseUnits
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
type Mutation {
|
|
341
|
+
navigate(to: NavigationState!): Navigation!
|
|
342
|
+
setView(to: ViewState!): Navigation!
|
|
343
|
+
select(id: ID!): AnyDomainEntity!
|
|
344
|
+
}
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Each kind of state gets its own enum and its own mutation: `navigate` for navigation states, `setView` for view states and `setTool` for tool states. The agent also reads which of the states can be reached right now, and whether a given entity can be selected.
|
|
348
|
+
|
|
349
|
+
</details>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Screenshots
|
|
2
|
+
|
|
3
|
+
The agent works from data: fields, expressions, warnings. Data says what the design is made of. It does not always say how the design looks, or whether the parts sit where the user meant them to. A screenshot lets the agent render the design and look at it.
|
|
4
|
+
|
|
5
|
+
This matters most after the agent built something larger. It lays out a design from a sketch, takes a picture and compares the two. It also answers "how does it look now?" with something better than a list of values.
|
|
6
|
+
|
|
7
|
+
A screenshot has a price. It costs more than a read, and the configurator is blocked for the user while it renders. The agent is told so, and to rely on the data wherever the data is enough.
|
|
8
|
+
|
|
9
|
+
- [A view the agent can look at](#a-view-the-agent-can-look-at)
|
|
10
|
+
- [Framing the picture](#framing-the-picture)
|
|
11
|
+
|
|
12
|
+
## A view the agent can look at
|
|
13
|
+
|
|
14
|
+
The agent does not point a camera. You prepare the views, and the agent picks one by its description. Prepare a view for each thing the agent should be able to check: the front for what sits where, the top for a floor plan, an angled view for the overall look.
|
|
15
|
+
|
|
16
|
+
A view belongs to an entity type. Most views show the whole product, so they belong to the root. A view can also belong to a part, and the agent then takes it of one part at a time.
|
|
17
|
+
|
|
18
|
+
#### Configure
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
components:
|
|
22
|
+
KitchenRange:
|
|
23
|
+
agentScreenshot:
|
|
24
|
+
front:
|
|
25
|
+
exportState: PdfHero
|
|
26
|
+
navigationState: Configure
|
|
27
|
+
viewState: Original
|
|
28
|
+
toolState: Default
|
|
29
|
+
width: 1024
|
|
30
|
+
height: 640
|
|
31
|
+
backgroundColor: '#FFFFFF'
|
|
32
|
+
|
|
33
|
+
assistant:
|
|
34
|
+
screenshots:
|
|
35
|
+
KitchenRange:
|
|
36
|
+
front:
|
|
37
|
+
description: The whole range from the front, with its hood
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- **`agentScreenshot`** is the component that defines a view. `front` is its instance name, and the name of the view. The [next topic](#framing-the-picture) covers its settings.
|
|
41
|
+
- **`screenshots`** takes an entity type or an alias, then the instance names of the views the agent may use.
|
|
42
|
+
- **`description`** is required. It says what the view shows, so the agent can pick the right one. With several views, also say what each is good for checking.
|
|
43
|
+
|
|
44
|
+
An entry also takes `as`, which gives the view another name for the agent.
|
|
45
|
+
|
|
46
|
+
<details>
|
|
47
|
+
<summary>What the agent sees</summary>
|
|
48
|
+
|
|
49
|
+
```graphql
|
|
50
|
+
enum KitchenRangeScreenshotView {
|
|
51
|
+
"The whole range from the front, with its hood"
|
|
52
|
+
front
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type KitchenRangeMeta {
|
|
56
|
+
screenshot(view: KitchenRangeScreenshotView!): Screenshot
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type Screenshot {
|
|
60
|
+
image: ID! # a label; the picture itself follows the result
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The views sit under `meta`, like the choices of a field. The agent asks for `root { meta { screenshot(view: front) { image } } }`. It gets a label back, and the picture arrives right after the result, under that label.
|
|
65
|
+
|
|
66
|
+
The picture shows the configuration the agent asked on. Asked on the result of a what-if, it shows the design as it would be, and nothing is kept.
|
|
67
|
+
|
|
68
|
+
</details>
|
|
69
|
+
|
|
70
|
+
## Framing the picture
|
|
71
|
+
|
|
72
|
+
A view is only useful when the picture shows what the agent has to judge. Three things decide that: where the camera is, how large the picture is, and what is in the scene.
|
|
73
|
+
|
|
74
|
+
- **The camera.** Give the view a camera that fits the whole product into the picture, whatever its size. A fixed camera cuts off a design that grew.
|
|
75
|
+
- **The size.** A picture that follows the proportions of the product wastes no space on background. A side can be 2048 pixels at most. A larger picture would not help: the AI provider scales it down before the model reads it.
|
|
76
|
+
- **The scene.** Hide what covers the parts the agent has to check, such as a roof over a floor plan. Leave out decoration that could be mistaken for part of the product.
|
|
77
|
+
|
|
78
|
+
All three hang on the export state. An export state is a named way to render the scene for a picture, apart from the live view. Cameras and other components can be limited to it with a `$filter`. See [Client Side Rendering](?path=/docs/other-features-client-side-rendering-declarative--docs).
|
|
79
|
+
|
|
80
|
+
#### Configure
|
|
81
|
+
|
|
82
|
+
```yaml
|
|
83
|
+
exportStates:
|
|
84
|
+
- Default
|
|
85
|
+
- AssistantFront
|
|
86
|
+
|
|
87
|
+
components:
|
|
88
|
+
KitchenRange:
|
|
89
|
+
agentScreenshot:
|
|
90
|
+
front:
|
|
91
|
+
exportState: AssistantFront
|
|
92
|
+
navigationState: Configure
|
|
93
|
+
viewState: Original
|
|
94
|
+
toolState: Default
|
|
95
|
+
width: 1024
|
|
96
|
+
height:
|
|
97
|
+
$read: $frontViewHeight
|
|
98
|
+
backgroundColor: '#FFFFFF'
|
|
99
|
+
fitRootPerspectiveCamera:
|
|
100
|
+
assistantFront:
|
|
101
|
+
$filter:
|
|
102
|
+
exportStates:
|
|
103
|
+
- AssistantFront
|
|
104
|
+
priority: 50
|
|
105
|
+
fov: 35
|
|
106
|
+
near: 10
|
|
107
|
+
far: 30000
|
|
108
|
+
azimuthAngle: 0
|
|
109
|
+
polarAngle: 1.5708
|
|
110
|
+
fitToBox: true
|
|
111
|
+
animateOnLoad: false
|
|
112
|
+
animateTransition: false
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
- **`exportState`** names the export state the picture renders in. It must be declared under `exportStates`. A view can reuse an export state the project already has, as the first example does with the one of a PDF image. Declare one of its own when the agent needs a different picture.
|
|
116
|
+
- **The camera** is filtered to that export state, so it is active only for this picture. `fitToBox` makes it fit the product into the frame.
|
|
117
|
+
- **`navigationState`, `viewState` and `toolState`** are the states of the UI the picture is taken in. The scene renders as it would with the configurator in those states. All three are required.
|
|
118
|
+
- **`width` and `height`** are in pixels. A fixed value above 2048 fails the build. Either can be an expression. `$frontViewHeight` is an expression of the project that follows the proportions of the range.
|
|
119
|
+
- **The picture is always a JPEG.** There is no format to choose.
|
|
120
|
+
- **`backgroundColor`** is optional.
|
|
121
|
+
|
|
122
|
+
<details>
|
|
123
|
+
<summary>What the agent sees</summary>
|
|
124
|
+
|
|
125
|
+
Nothing here changes the schema. The agent still asks for `screenshot(view: front)`, and gets a better picture.
|
|
126
|
+
|
|
127
|
+
A view can be missing or fail, and the agent is told which:
|
|
128
|
+
|
|
129
|
+
- **The view does not apply.** `screenshot` is `null` when the entity does not have the component right now, for example because a `$filter` turned it off.
|
|
130
|
+
- **The picture could not be taken.** Rendering failed. The agent is told to try again.
|
|
131
|
+
- **The picture is too large.** An expression gave a `width` or `height` above 2048. The agent is told that the screenshot is not available.
|
|
132
|
+
|
|
133
|
+
A failed screenshot fails nothing else. A change made in the same step is kept.
|
|
134
|
+
|
|
135
|
+
</details>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Security and Limits
|
|
2
|
+
|
|
3
|
+
An assistant that reads and changes a configuration for anyone who opens the page raises four questions. What can a visitor find out? What can the assistant be talked into? Who stops someone who misuses it? And who pays when it is used a lot? This chapter answers them, and ends with what an embedding page has to allow.
|
|
4
|
+
|
|
5
|
+
Most of it works without setup. Read it to know what is protected already, and what stays your job.
|
|
6
|
+
|
|
7
|
+
- [What a visitor can read](#what-a-visitor-can-read)
|
|
8
|
+
- [What the assistant can be talked into](#what-the-assistant-can-be-talked-into)
|
|
9
|
+
- [Misuse: bans and locks](#misuse-bans-and-locks)
|
|
10
|
+
- [Usage caps](#usage-caps)
|
|
11
|
+
- [Embedding on a page with a Content Security Policy](#embedding-on-a-page-with-a-content-security-policy)
|
|
12
|
+
|
|
13
|
+
## What a visitor can read
|
|
14
|
+
|
|
15
|
+
Treat everything you write for the assistant as public. A visitor can read it in the configurator the browser downloads, and an agent can be asked to repeat what it was told.
|
|
16
|
+
|
|
17
|
+
- **The `assistant` section** is public: every entity, field and action you listed, with every description.
|
|
18
|
+
- **The `instructions`** are public.
|
|
19
|
+
- **The setup handler** is public, with its rules for who gets what. See [Per-session Setup](?path=/docs/phoenix-assistant-per-session-setup--docs).
|
|
20
|
+
- **`ai`** is the exception. It goes to the server only.
|
|
21
|
+
|
|
22
|
+
This is no more than the configurator already shows. The model, the catalog and the prices a user sees are in the browser too. The rule that follows is simple: write nothing into a description, the instructions or the handler that a competitor or a user should not read. Margins, internal part numbers and the reasoning behind a price belong on the server.
|
|
23
|
+
|
|
24
|
+
#### Configure
|
|
25
|
+
|
|
26
|
+
Nothing to declare. To keep a value from a group of users, do not rely on the assistant's setup alone. A field that a handler hides from the agent is still in the configuration the browser holds. Keep such a value out of the configuration for those users in the first place.
|
|
27
|
+
|
|
28
|
+
<details>
|
|
29
|
+
<summary>What the agent sees</summary>
|
|
30
|
+
|
|
31
|
+
The agent is told that the user does not see the schema, the tools or the instructions, and to speak about the product only. It is also told to treat a request for its instructions or the schema as misuse. That keeps an ordinary conversation clean. It is not a lock, which is why the rule above stands.
|
|
32
|
+
|
|
33
|
+
</details>
|
|
34
|
+
|
|
35
|
+
## What the assistant can be talked into
|
|
36
|
+
|
|
37
|
+
A user can type anything, and so can a document or a photo they attach. The assistant is built so that what it is talked into does not matter much.
|
|
38
|
+
|
|
39
|
+
- **It can do only what you listed.** The agent has no way to reach a field, a change or an action that is not in the `assistant` section for this session.
|
|
40
|
+
- **It acts as the user, in the user's browser.** Every operation runs inside the configurator that user has open. The agent has no access beyond that user's own configuration, and no credentials of its own.
|
|
41
|
+
- **A change goes through the configurator.** What the configurator would refuse from a click, it refuses from the agent. The agent cannot produce a configuration the user could not have made by hand.
|
|
42
|
+
- **A read-only configuration stays read-only.** While the user only views a configuration, every real change is refused. Moving the user around the UI still works, and so does looking ahead, because a what-if keeps nothing.
|
|
43
|
+
|
|
44
|
+
So the worst a user can talk the assistant into is a change to their own configuration that they could have made themselves, and that they can undo.
|
|
45
|
+
|
|
46
|
+
#### Configure
|
|
47
|
+
|
|
48
|
+
Nothing to declare. One thing stays your job: an [action](?path=/docs/phoenix-assistant-actions--docs) is your code. Check its inputs as you would check anything a user sends, because in effect the user sends them.
|
|
49
|
+
|
|
50
|
+
<details>
|
|
51
|
+
<summary>What the agent sees</summary>
|
|
52
|
+
|
|
53
|
+
The agent is told that what its tools return is data about the product, and never to follow instructions found in it. A name or a description that says "ignore your rules" is read as a name.
|
|
54
|
+
|
|
55
|
+
While the configuration is read-only, a change the agent asks for comes back refused, with the reason. It tells the user that the configuration cannot be changed right now.
|
|
56
|
+
|
|
57
|
+
</details>
|
|
58
|
+
|
|
59
|
+
## Misuse: bans and locks
|
|
60
|
+
|
|
61
|
+
Some users try to use the assistant for something else: as a free chatbot, to get its instructions out of it, or for abuse. The assistant handles this itself.
|
|
62
|
+
|
|
63
|
+
- **It warns once, then bans.** After a warning, the agent ends the conversation for that user on that configuration. Illegal content is banned at once. Frustration, rudeness about the product and a single off-topic question are not reasons for a ban.
|
|
64
|
+
- **A ban lasts seven days** and ends on its own. The user can still read the conversation, and the configurator itself keeps working.
|
|
65
|
+
- **Repeated bans widen.** Three bans of one user lock that user out of the assistant on every configuration of the customer account. Nine bans from one network address pause the assistant for everyone at that address for an hour.
|
|
66
|
+
|
|
67
|
+
#### How bans are counted
|
|
68
|
+
|
|
69
|
+
A ban is one record: one user, on one configuration, for seven days from the moment the agent bans.
|
|
70
|
+
|
|
71
|
+
- **What a ban holds.** The user, the configuration, the reason the agent gave, the conversation and the message that led to it, and a hash of the network address the request came from. The address itself is not kept.
|
|
72
|
+
- **Who "the user" is.** The user of the session: the signed-in user where the project signs users in, and otherwise the anonymous id of the browser. A visitor who clears their browser is a new anonymous user. The network lock below is what covers that case.
|
|
73
|
+
- **No double bans.** While a ban has not expired, a second ban of the same user on the same configuration is not recorded. So a user collects bans only across different configurations.
|
|
74
|
+
|
|
75
|
+
The server stores no locks. On every message it counts the bans that have not expired, and refuses the message when one of three rules applies. It checks them in this order and reports the first that applies:
|
|
76
|
+
|
|
77
|
+
| Lock | Applies when | Who is refused, and where | Ends |
|
|
78
|
+
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ----------------------------------------------- |
|
|
79
|
+
| Configuration | The user has a ban on this configuration. | That user, on that configuration. | When the ban expires, after seven days. |
|
|
80
|
+
| User | The user has three or more bans at the customer account, on any of its configurations and in any of its environments. | That user, on every configuration of the account. | When fewer than three bans remain. |
|
|
81
|
+
| Network | Nine or more bans at the customer account were recorded from the same network address, and the newest of them is less than one hour old. | Everyone at that address, across the whole account. | One hour after the newest ban from the address. |
|
|
82
|
+
|
|
83
|
+
A lock refuses new messages only. The user can still read the conversation and use the configurator. In a thread of your own, `useAssistantThread` reports it as a `failure` of kind `locked` for the first two locks and `networkLocked` for the third. Neither offers a retry.
|
|
84
|
+
|
|
85
|
+
#### Configure
|
|
86
|
+
|
|
87
|
+
Nothing to declare, and nothing to switch off. If the product draws questions that look off-topic but are welcome, say so in the `instructions`, so the agent does not take them for misuse.
|
|
88
|
+
|
|
89
|
+
<details>
|
|
90
|
+
<summary>What the agent sees</summary>
|
|
91
|
+
|
|
92
|
+
The agent has a tool that bans the current user, next to the tools that read and change the configuration. Its standing rules say when to use it: warn once, ban when the user goes on, ban at once for illegal content, and never for frustration or one stray question.
|
|
93
|
+
|
|
94
|
+
A banned user's message never reaches the agent. The panel tells the user that the assistant will not continue, without offering a retry.
|
|
95
|
+
|
|
96
|
+
</details>
|
|
97
|
+
|
|
98
|
+
## Usage caps
|
|
99
|
+
|
|
100
|
+
Every message costs money at the AI provider. Two kinds of limit keep the cost bounded.
|
|
101
|
+
|
|
102
|
+
- **Hourly limits** stop runaway use within the hour: per user, per network address and per project. You can set them in the spec. See [Hourly limits](?path=/docs/phoenix-assistant-instructions-and-ai-settings--docs#hourly-limits).
|
|
103
|
+
- **Monthly caps** bound the total: one per environment and one per customer account, across all its environments. When a cap is used up, the assistant stops answering until the next month, and the panel says so.
|
|
104
|
+
|
|
105
|
+
Both count the same unit, the weighted token. It puts every kind of use on one scale:
|
|
106
|
+
|
|
107
|
+
- **One weighted token is one output token of the model behind the `advanced` tier.**
|
|
108
|
+
- **Everything else is a fraction or a multiple of that**, by what it costs next to such a token: the input the model reads, input the provider had cached, a spoken message turned into text, and a reply read aloud. Input counts as a fraction of a token, and cached input as a much smaller one.
|
|
109
|
+
- **Each model tier is counted by its own price.** A token of the `frontier` tier counts for several, and a token of the `balanced` or `fast` tier for a fraction.
|
|
110
|
+
|
|
111
|
+
#### Configure
|
|
112
|
+
|
|
113
|
+
The monthly caps are not in the spec. An environment starts at 50,000,000 weighted tokens a month and a customer account at 100,000,000. The administrators of the platform set them per environment and per account. A raised cap takes effect within a minute.
|
|
114
|
+
|
|
115
|
+
What you control is how fast the allowance is used:
|
|
116
|
+
|
|
117
|
+
- **The model tier and the reasoning level.** A higher tier uses up the allowance faster, and so does more reasoning.
|
|
118
|
+
- **`maxToolCallsPerMessage` and `maxThreadSize`.** Higher values let one request and one conversation use more.
|
|
119
|
+
- **Voice.** Speaking and listening are counted in the same allowance.
|
|
120
|
+
|
|
121
|
+
<details>
|
|
122
|
+
<summary>What the agent sees</summary>
|
|
123
|
+
|
|
124
|
+
Nothing. A message over a limit never reaches the agent.
|
|
125
|
+
|
|
126
|
+
</details>
|
|
127
|
+
|
|
128
|
+
## Embedding on a page with a Content Security Policy
|
|
129
|
+
|
|
130
|
+
A host page with a strict Content Security Policy has to allow what the assistant adds to the configurator.
|
|
131
|
+
|
|
132
|
+
- **Drawings.** The panel shows the assistant's drawings as `data:` images, so `img-src` needs `data:`.
|
|
133
|
+
- **Pictures the user attaches** are previewed as `blob:` images, so `img-src` needs `blob:`.
|
|
134
|
+
|
|
135
|
+
[CSP](?path=/docs/phoenix-csp--docs) has the complete policy for an embedded configurator, with these two included.
|
|
136
|
+
|
|
137
|
+
#### Configure
|
|
138
|
+
|
|
139
|
+
Nothing in the spec. The policy is a header of the host page.
|
|
140
|
+
|
|
141
|
+
Two browser permissions come on top, and only for a configurator inside an iframe. Embedding as a web component needs neither.
|
|
142
|
+
|
|
143
|
+
- **`allow="microphone"`** on the iframe, for [voice](?path=/docs/phoenix-assistant-the-panel--docs#voice).
|
|
144
|
+
- **`allow="tools"`** on the iframe, for [WebMCP](?path=/docs/phoenix-assistant-per-session-setup--docs#switching-the-assistant-off).
|
|
145
|
+
|
|
146
|
+
<details>
|
|
147
|
+
<summary>What the agent sees</summary>
|
|
148
|
+
|
|
149
|
+
Nothing. A drawing the page blocks is still part of the agent's reply. The agent does not learn that the user cannot see it.
|
|
150
|
+
|
|
151
|
+
</details>
|