@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
|
@@ -39,4 +39,4 @@ export const authHandler = phx.webhooks.authHandlerBuilder
|
|
|
39
39
|
})
|
|
40
40
|
.withAnonymousHandler(async () => ({ success: true, role: 'anonymous', data: { customerGroup: 'retail' } }))
|
|
41
41
|
.build()
|
|
42
|
-
\`\`\``;export const generatePhoenixWebhookAuthenticationFeature=()=>e({path:"features/webhooks/authentication.md",title:"Authentication",summary:"The auth hook: code, refresh, anonymous and Clerk flows, roles, session data and expiry; read when the configurator signs users in or treats some of them differently.",whenToUse:"Read when configurator users sign in, arrive from a host application, need different roles or prices, or when anonymous access must be refused.",capabilities:"### When the hook runs\n\n- With `useAuthHook: true` every configurator session starts with a call to the hook. Without it every configurator user gets an anonymous session and the hook never runs. Clerk sign-in needs `useClerk: true` as well, which adds the Clerk credentials to the webhook.\n- Build the hook with `phx.webhooks.authHandlerBuilder` and register it with `withAuthHook` in the [entry](entry-and-environment.md). What the browser sends picks the flow:\n - **Code** — a host application's backend deposited its token with the platform and handed the configurator a one-time code. `withCodeHandler` receives `{ accessToken, refreshToken?, idToken? }` and decides who the configurator user is.\n - **Refresh** — the session expired and the browser holds a refresh token an earlier answer returned. `withRefreshHandler` receives `{ refreshToken }`.\n - **Anonymous** — neither. `withAnonymousHandler` grants or refuses a session to configurator users who are not signed in; without it their sessions fail.\n- `withClerkCodeHandler()`, `withClerkSessionHandler()` and `withClerkRefreshHandler()` add the Clerk flows, which are tried before the custom handlers. The session handler rejects banned Clerk users.\n- Under `phoenix dev` the hook has 15 seconds to answer.\n\n### What a handler returns\n\n- `{ success: false }` refuses the session. `{ success: true, role, data }` grants it:\n - `role` — `anonymous`, `user`, `admin` or `superadmin`. The admin roles also open Project Admin.\n - `data` — the session data, validated strictly against the spec's `sessionData` schema. The schema declares no required properties, because Admin and preset sessions carry no custom session data, so code reading it handles a missing field. Later webhook calls read it as `data.sessionPayload`, and the configurator reads it as session data. It is readable in the browser, so it never holds a credential configurator users must not see, such as an API key.\n - `userId` — the stable id of the person, so their configurations and assistant threads follow them.\n - `refreshToken` — returned to the browser for the refresh flow; return one only together with a refresh handler.\n - `expirationTime` — when the session ends, as a Unix timestamp in seconds, not a duration. Leave it out: the three-hour default is what the platform's session tracking assumes, so change it only when the client needs other session lengths.\n- `withPublishedChunkScopes(({ role, data }) => [...])` grants the published-data chunk scopes a session may read; `public` is always granted. Read `docs/phoenix/publishing.mdx` before scoping chunks.",example:s,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/sessions-and-access.mdx` — sessions, roles, the session user and access to configurations.\n- `docs/phoenix/clerk-sign-in.mdx` — Clerk sign-in, its handlers and pages.\n- `docs/phoenix/integration/authentication-internal.mdx` and `authentication-external.mdx` — a host application signing its users in with a code.",phxMembers:["webhooks.authHandlerBuilder"]});
|
|
42
|
+
\`\`\``;export const generatePhoenixWebhookAuthenticationFeature=()=>e({path:"features/webhooks/authentication.md",title:"Authentication",summary:"The auth hook: code, refresh, anonymous and Clerk flows, roles, session data and expiry; read when the configurator signs users in or treats some of them differently.",whenToUse:"Read when configurator users sign in, arrive from a host application, need different roles or prices, or when anonymous access must be refused.",capabilities:"### When the hook runs\n\n- With `useAuthHook: true` every configurator session starts with a call to the hook. Without it every configurator user gets an anonymous session and the hook never runs. Clerk sign-in needs `useClerk: true` as well, which adds the Clerk credentials to the webhook.\n- Build the hook with `phx.webhooks.authHandlerBuilder` and register it with `withAuthHook` in the [entry](entry-and-environment.md). What the browser sends picks the flow:\n - **Code** — a host application's backend deposited its token with the platform and handed the configurator a one-time code. `withCodeHandler` receives `{ accessToken, refreshToken?, idToken? }` and decides who the configurator user is.\n - **Refresh** — the session expired and the browser holds a refresh token an earlier answer returned. `withRefreshHandler` receives `{ refreshToken }`.\n - **Anonymous** — neither. `withAnonymousHandler` grants or refuses a session to configurator users who are not signed in; without it their sessions fail.\n- `withClerkCodeHandler()`, `withClerkSessionHandler()` and `withClerkRefreshHandler()` add the Clerk flows, which are tried before the custom handlers. The session handler rejects banned Clerk users.\n- `useCognito: true` selects shared Phoenix sign-in for Cognito SDK Builder workspaces, enables generated redirect pages and the auth hook, and accepts current project grant roles and membership tags. It conflicts with `useClerk`. Without a project webhook it refuses anonymous sessions; custom hooks can add `withAnonymousHandler`. `withCognitoHandlers()` enables this flow on a manually assembled builder. See the Cognito section of `docs/phoenix/webhooks.mdx` for its session schema and fifteen-minute authentication limit.\n- Under `phoenix dev` the hook has 15 seconds to answer.\n\n### What a handler returns\n\n- `{ success: false }` refuses the session. `{ success: true, role, data }` grants it:\n - `role` — `anonymous`, `user`, `admin` or `superadmin`. The admin roles also open Project Admin.\n - `data` — the session data, validated strictly against the spec's `sessionData` schema. The schema declares no required properties, because Admin and preset sessions carry no custom session data, so code reading it handles a missing field. Later webhook calls read it as `data.sessionPayload`, and the configurator reads it as session data. It is readable in the browser, so it never holds a credential configurator users must not see, such as an API key.\n - `userId` — the stable id of the person, so their configurations and assistant threads follow them.\n - `refreshToken` — returned to the browser for the refresh flow; return one only together with a refresh handler.\n - `expirationTime` — when the session ends, as a Unix timestamp in seconds, not a duration. Leave it out: the three-hour default is what the platform's session tracking assumes, so change it only when the client needs other session lengths.\n- `withPublishedChunkScopes(({ role, data }) => [...])` grants the published-data chunk scopes a session may read; `public` is always granted. Read `docs/phoenix/publishing.mdx` before scoping chunks.",example:s,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/sessions-and-access.mdx` — sessions, roles, the session user and access to configurations.\n- `docs/phoenix/clerk-sign-in.mdx` — Clerk sign-in, its handlers and pages.\n- `docs/phoenix/integration/authentication-internal.mdx` and `authentication-external.mdx` — a host application signing its users in with a code.",phxMembers:["webhooks.authHandlerBuilder"]});
|
|
@@ -35,4 +35,4 @@ export default phx.webhooks.webhookBuilder
|
|
|
35
35
|
.withFetchBackendData(fetchBackendData)
|
|
36
36
|
.withConfiguratorFinalize(quoteFinalization)
|
|
37
37
|
.build()
|
|
38
|
-
\`\`\``;export const generatePhoenixWebhookEntryFeature=()=>e({path:"features/webhooks/entry-and-environment.md",title:"Webhook entry and environment",summary:"`src/webhooks/index.ts`, which project code runs on the server, browser-import limits and `env.webhook` variables; read when creating the webhook, adding server code or a secret, or fixing a webhook parse or build error.",whenToUse:"Read when the project needs server-side code — sign-in, backend data, finalization — or a credential, or when parsing or the build names a webhook file.",capabilities:"### The entry\n\n- The webhook is the project's server side: one bundle the platform calls for sign-in, backend data, finalization and its callback, Admin publishing and assistant setup. A deployed environment runs it as a cloud function; `phoenix dev` runs it on the developer's machine through the development tunnel.\n- `src/webhooks/index.ts` is the entry and default-exports `phx.webhooks.webhookBuilder` with its hooks, then `.build()`. Only that file is imported; other files in `src/webhooks/` run when it imports them. Files in `src/webhooks/` without an `index.ts` fail with `MISSING_WEBHOOK_INDEX`.\n- The builder takes `withAuthHook` ([Authentication](authentication.md)), `withFetchBackendData` ([Backend data](backend-data.md)) and `withConfiguratorFinalize` ([Finalization](finalization.md)). Register only what the project uses. The SDK adds [Admin publishing](publishing.md) itself, and [assistant setup](assistant-setup.md) when the spec configures the assistant.\n-
|
|
38
|
+
\`\`\``;export const generatePhoenixWebhookEntryFeature=()=>e({path:"features/webhooks/entry-and-environment.md",title:"Webhook entry and environment",summary:"`src/webhooks/index.ts`, which project code runs on the server, browser-import limits and `env.webhook` variables; read when creating the webhook, adding server code or a secret, or fixing a webhook parse or build error.",whenToUse:"Read when the project needs server-side code — sign-in, backend data, finalization — or a credential, or when parsing or the build names a webhook file.",capabilities:"### The entry\n\n- The webhook is the project's server side: one bundle the platform calls for sign-in, backend data, finalization and its callback, configuration insights evaluation, Admin publishing and assistant setup. A deployed environment runs it as a cloud function; `phoenix dev` runs it on the developer's machine through the development tunnel.\n- `src/webhooks/index.ts` is the entry and default-exports `phx.webhooks.webhookBuilder` with its hooks, then `.build()`. Only that file is imported; other files in `src/webhooks/` run when it imports them. Files in `src/webhooks/` without an `index.ts` fail with `MISSING_WEBHOOK_INDEX`.\n- The builder takes `withAuthHook` ([Authentication](authentication.md)), `withFetchBackendData` ([Backend data](backend-data.md)) and `withConfiguratorFinalize` ([Finalization](finalization.md)). Register only what the project uses. The SDK adds [Admin publishing](publishing.md) itself, and [assistant setup](../assistant/session-setup.md) when the spec configures the assistant.\n- `withConfigurationInsights(fields)` publishes explicitly selected scalar expressions for Studio. Each field supplies `id`, `label`, `description`, `expression` (such as `$price`), `version` and `type` (`number`, `category` or `boolean`); money also supplies `currency` and `taxBasis`. Use only deterministic expressions over saved entities and published catalog data. Session, frontend and live backend dependencies are unsupported. Ask the Phoenix team to enable Configuration insights for the project in System Studio before finalizing. It defaults off. Enabling it does not backfill older finalizations. The server evaluates against the deployment and catalog versions captured when finalization is accepted, outside the finalization request. Mutable development tunnels and historical finalizations without provenance cannot produce verified values. Do not expose personal data through these fields.\n- With `useCognito: true`, the built-in webhook authenticates invited Phoenix accounts and refuses anonymous sessions. Otherwise, without an entry the SDK builds a webhook that signs every configurator user in anonymously. `useAuthHook: true` or `useClerk: true` without an entry reports `AUTH_WITHOUT_PROJECT_WEBHOOK`.\n- A hook that throws answers with an error: the sign-in, the finalization or the publish fails. Its message reaches the server log, not the configurator user, so log what went wrong with the `logger` each hook receives.\n\n### Project code in the webhook\n\n- The spec's domain, expressions and invariants also run in the webhook. Action implementation modules load and execute only in the browser, including assistant custom mutations; assistant setup uses their shared schemas. Components, admin components and handlers are frontend-only by default.\n- A handler module that calls `phx.domain.createAssistantSetupHandler` or one of the `phx.domain.admin` publishing and validation factories joins the webhook automatically. The call is detected literally, so do not alias it.\n- Make `'use webhook'` the first statement of another component or handler the server needs, such as one that prepares the scene for server rendering. Leading comments may precede it.\n- An included file and every local file it imports must not import the browser SDK entry points (`admin`, `application`, `configurator`, `editor`, `react`, `ui`, `extras/clerk`, `extras/cognito`) or style, font and image files. Type-only imports are allowed. For files included by `'use webhook'` or a detected handler registration, parsing reports `WEBHOOK_UNSAFE_IMPORT` with the import chain. Action implementations load only in the browser and are not part of webhook assembly. Move logic both sides need into a module without them, and keep rendering in a frontend-only file.\n\n### Environment variables and secrets\n\n- Declare variables under `env.webhook`: `type` is `bool`, `str`, `num` or `url`, with an optional `default`, `devDefault` (the value under `phoenix dev`) and `required`. A variable that is neither required nor defaulted is `undefined` when unset. Read them as `phx.webhooksEnv.NAME`.\n- Values are fixed when the webhook is built: a changed value needs a restart of `phoenix dev` locally and a new deploy on an environment. Deployed builds take values from the environment variables a workspace or project Superadmin sets in Studio; `phoenix dev` takes them from `.env`, which is not committed.\n- Keep credentials in the webhook. Session data, backend data and the finalization result all reach the browser, and `env.frontend` values are public.\n- `budgets.webhookGzipMb` fails the build when the compressed webhook grows past it; `phoenix build --onlyWebhook` builds the webhook alone.",example:t,documentation:"Read with `pnpm phoenix docs -r <path>`:\n\n- `docs/phoenix/webhooks.mdx` — the entry, the built-in webhook and environment variables.\n- `docs/phoenix/webhook-membership.mdx` — which files join the webhook and the server-safe import rule.\n- `docs/phoenix/sdk-builder-workflow.mdx` — setting environment variables in Studio.",phxMembers:["webhooks.webhookBuilder"]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createPhoenixIndexGuide as e}from"../../guide.js";import{
|
|
1
|
+
import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixWebhookAuthenticationFeature as t}from"./authentication.js";import{generatePhoenixWebhookBackendDataFeature as n}from"./backend-data.js";import{generatePhoenixWebhookEntryFeature as o}from"./entry-and-environment.js";import{generatePhoenixWebhookFinalizationFeature as i}from"./finalization.js";import{generatePhoenixPublishingFeature as a}from"./publishing.js";import{generatePhoenixTaskGuides as r}from"./tasks/index.js";export const generatePhoenixWebhooksGuides=()=>{let s=r(),h=[o(),t(),n(),i(),...s.slice(0,1),a()];return[e({path:"features/webhooks/index.md",title:"Webhooks",summary:"Server-side project code: the webhook entry and environment, sign-in, backend data, finalization and its tasks and Admin publishing; read when the configurator needs the server.",intro:"The webhook is the project's server side: `src/webhooks/index.ts` and the handler modules that join it run on the platform and hold the project's credentials, which never reach the browser. The platform calls it to sign configurator users in, to fetch backend data, to finalize a configuration and return its result, to publish Admin content and to set up the assistant ([Session setup](../assistant/session-setup.md)). Start from [Webhook entry and environment](entry-and-environment.md), then read only the guide for the hook at hand.",guides:h,notes:["## The examples\n\nThe guides build one quote configurator for a `Chair` with a `label`, a `finish` and a `width`: each example is a file of that project, and the files fit together. Take the pattern, not the names."]}),...h,...s.slice(1)]};
|
|
@@ -18,7 +18,7 @@ export interface PhoenixGuide {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* A member of the `phx` global a generated project declares, named by its namespace and member, such as
|
|
21
|
-
* `frontend.useTabNavigation` or `
|
|
21
|
+
* `frontend.useTabNavigation` or `frontend.implementActions`.
|
|
22
22
|
*
|
|
23
23
|
* The `phx` global is the public interface the guidance teaches. Every member has exactly one feature guide as its
|
|
24
24
|
* home, which teaches it as `phx.<namespace>.<member>`, or a recorded reason why no guide teaches it yet.
|
package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{renderAgentSkill as e}from"./agent-skill.js";import{generatePhoenixCliCore as o,generatePhoenixSdkCore as t,generatePhoenixWorkflowCore as r}from"./core/index.js";import{generatePhoenixFeatureGuides as n}from"./features/index.js";import{createPhoenixIndexGuide as s}from"./guide.js";import{generatePhoenixAssetConversion as i,
|
|
1
|
+
import{renderAgentSkill as e}from"./agent-skill.js";import{generatePhoenixCliCore as o,generatePhoenixSdkCore as t,generatePhoenixWorkflowCore as r}from"./core/index.js";import{generatePhoenixFeatureGuides as n}from"./features/index.js";import{createPhoenixIndexGuide as s}from"./guide.js";import{generatePhoenixAssetConversion as i,generatePhoenixAssistantConfiguration as a,generatePhoenixBeta as d,generatePhoenixFeedbackGuides as c,generatePhoenixFinalization as h,generatePhoenixFirstDraftGuides as l,generatePhoenixModelMigration as u,generatePhoenixReviewGuides as p,generatePhoenixSceneRealism as m,generatePhoenixSpecificationGuides as f}from"./processes/index.js";export const generatePhoenixSkillBundle=w=>{let g=[r(),t(),o()],x=[l(),f(),[h()],[i()],[m()],[a()],[u()],p(),c(),[d(w)]],k=s({path:"processes/index.md",title:"Processes",summary:"Procedures summarized by outcome and when to use them.",intro:"Read the procedure or section whose outcome the task needs. The [workflow](../core/workflow.md) owns strategy, preferences and effort; processes supply the execution.",guides:x.flatMap(e=>e.slice(0,1)),notes:[]}),y=n();return{content:e({name:"phoenix",description:"Build, change, inspect, deploy or review a Phoenix configurator project. Use for all Phoenix project work, including a first draft of a new project, visual alternatives and platform feedback.",sections:[`# Phoenix
|
|
2
2
|
|
|
3
3
|
Use the required core to choose how to work, then load task details only when they apply.`,`## Required reading
|
|
4
4
|
|
|
5
5
|
Before Phoenix work, read these three core guides in order:
|
|
6
6
|
|
|
7
|
-
${
|
|
7
|
+
${g.map((e,o)=>`${o+1}. [${e.title}](${e.path}) — ${e.summary}.`).join("\n")}
|
|
8
8
|
|
|
9
9
|
The core governs every task; reading the workflow does not mean executing every stage. Reuse the core while it remains in context and unchanged, and read it again when context is lost or sync or an SDK update changes it.`,`## Optional guidance
|
|
10
10
|
|
|
11
11
|
- [Processes](processes/index.md) — procedures summarized by outcome and when to use them.
|
|
12
12
|
- [Features](features/index.md) — what Phoenix capabilities support, their constraints and canonical SDK documentation.
|
|
13
13
|
|
|
14
|
-
Follow only the destinations the task needs; a link does not require reading its whole subtree.`]}),references:[...
|
|
14
|
+
Follow only the destinations the task needs; a link does not require reading its whole subtree.`]}),references:[...g,k,...x.flat(),...y].map(({path:e,content:o})=>({path:e,content:o}))}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createPhoenixProcessGuide as e}from"../guide.js";let t=`Conversion is part of the product's appearance, not a preliminary chore: a converted model that is misplaced, incomplete or stripped of its detail is a visible defect, and the client sees it before anything else.
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../guide.js";let t=`Conversion is part of the product's appearance, not a preliminary chore: a converted model that is misplaced, incomplete or stripped of its detail is a visible defect, and the client sees it before anything else. If a requested realism improvement or a specific material/contact defect remains within scope, [scene realism](scene-realism.md) offers optional refinement guidance; conversion alone does not call for that pass.
|
|
2
2
|
|
|
3
3
|
### Write a script, not a sequence of one-off fixes
|
|
4
4
|
|
|
@@ -19,5 +19,5 @@ Reduce geometry per part, never uniformly across a model. A single ratio removes
|
|
|
19
19
|
|
|
20
20
|
### Verify every model, not the first one
|
|
21
21
|
|
|
22
|
-
Inspect each converted model with the [asset inspection](../features/inspection.md) tooling, and check every requirement above for every model in the set. A batch that reuses a script verified on one file still needs each result looked at: source files in one delivery frequently differ in origin, scale and structure.`,
|
|
23
|
-
- Divergences from published figures are reported to the client, not silently adopted.`;export const generatePhoenixAssetConversion=()=>e({path:"processes/asset-conversion.md",title:"Asset conversion",summary:"Convert and verify supplied 3D models with a reproducible script; read when supplied models need conversion or repair before configuration.",whenToUse:"When supplied models need conversion or repair before they can be configured. A [first draft](first-draft/direction.md) converts only its representative model, or builds a labeled stand-in when no model is supplied.",steps:t,doneWhen:
|
|
22
|
+
Inspect each converted model with the [asset inspection](../features/inspection.md) tooling, and check every requirement above for every model in the set. A batch that reuses a script verified on one file still needs each result looked at: source files in one delivery frequently differ in origin, scale and structure.`,a=`- Every model in scope is converted by the committed script and inspected against each requirement.
|
|
23
|
+
- Divergences from published figures are reported to the client, not silently adopted.`;export const generatePhoenixAssetConversion=()=>e({path:"processes/asset-conversion.md",title:"Asset conversion",summary:"Convert and verify supplied 3D models with a reproducible script; read when supplied models need conversion or repair before configuration.",whenToUse:"When supplied models need conversion or repair before they can be configured. A [first draft](first-draft/direction.md) converts only its representative model, or builds a labeled stand-in when no model is supplied.",steps:t,doneWhen:a,example:"For a set of chairs, parameterize the conversion for the source units, the ground contact and separately configurable upholstery and frame materials. Run the same script for every supplied chair and inspect each output; a valid first model does not validate the rest."});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../guide.js";let t=`- Each way the UI changes the configuration that the assistant should support maps to a write, a recipe, a deletion or an action, and each action has a stated reason a standard way does not fit.
|
|
2
|
+
- Refactors that would make the standard way work were suggested to the client, and their decision is recorded.
|
|
3
|
+
- The client's typical requests run in the assistant's thread without failed changes, and each screenshot view shows what the assistant needs to check.`;export const generatePhoenixAssistantConfiguration=()=>e({path:"processes/assistant-configuration.md",title:"Assistant configuration",summary:"Survey how the configurator changes, choose standard ways before actions, build the `assistant` section and check it as the assistant sees it; read when setting up the assistant or extending what it can do.",whenToUse:"Use when the client wants the AI assistant in their configurator, or wants it to read or change more. A wording fix in a description or in `instructions` needs only [reading and changing](../features/assistant/reading-and-changing.md).",steps:"### Survey how the configurator changes\n\nRead `docs/phoenix/assistant/overview.mdx` with `pnpm phoenix docs -r <path>` for how the section, the assistant's schema and the panel connect. Then, before you write the `assistant` section, read the model, its relations and controls. List every way the UI creates, replaces, moves or deletes entities, and note how each one works: a recipe control, a plain field write, a creation in custom code, a drag handle, a sketch tool or a builder behind a button. Note also where the assistant would read its facts, such as catalog data or a price. This survey usually takes longer than the section itself, and it decides most of it.\n\nTake axes, units and placement from the code that places parts, not from field names. A field called `length` can run along any axis.\n\n### Choose and agree the approach\n\nFor each path, choose a standard write, a recipe or an action as [reading and changing](../features/assistant/reading-and-changing.md) describes. When a small refactor would let a recipe or a plain write replace an action, suggest it to the client. Explain what changes for them, usually nothing visible, and what it saves: the assistant previews and compares standard changes, while it has to learn an action from its description alone. Keep the client's decision. A refactor that would change how users work, such as placement that follows the camera, stays theirs to choose.\n\nAgree with the client what the assistant should be able to do first. A small useful assistant that reads the configuration and makes the common changes is a better first step than complete coverage.\n\n### Build in layers\n\nStart with `ai`, which the client chooses, and `instructions` that say in a few sentences what the product is and how the assistant should behave. Then add what the assistant reads and the standard changes. Then add the option lists, screenshots and navigation, and finally the actions the survey called for. Run `pnpm phoenix dev` after each layer: section diagnostics name the key to fix. Write descriptions in the client's product terms, with units and axes, and keep rules that span entities in `instructions`.\n\n### Check it as the assistant sees it\n\nLook at each screenshot view's image as the assistant receives it, not only its spec; the panel never shows it. Development browsers rarely offer WebMCP, so install a stub right after the page navigates, before the configuration loads: `document.modelContext = { registerTool: tool => { window.tools[tool.name] = tool } }` with `window.tools = {}`. Then `await window.tools.configurator_query.execute({ operations: [{ query }] })` with a query of `meta { screenshot(view: …) { image } }` returns the image as base64. Check that the product fills the frame and that nothing hides the parts the assistant must check.\n\nThen try the client's typical requests in the assistant panel, from a first message to a finished design. A project layout has no panel unless it keeps the built-in sidebar, so use its own thread, or ask the client to add one first ([Panel](../features/assistant/panel.md)). Read the conversation for failed tool rounds, parameter names the model guessed wrong on first use, values the assistant reads as opaque JSON, and repeated reads of lists that never change. Fix the section or a description rather than adding instructions that work around it.",doneWhen:t,example:'A desk configurator adds drawers from a recipe control, sets the leg finish with a custom control, and places lamps from a catalog page with a creation in custom code, at the point the camera looks at. The survey maps drawers to `childRecipes` and the leg finish to `writable`, with an assistant-only `attributeSelection` list. For the lamps, suggest a recipe group per lamp category, with placement moved to a transformer that finds a free spot on the desk. If the client keeps the camera placement for mouse users, add an `addLamp` action that computes the spot itself. Then check the top view\'s image, and run "add two drawers and a lamp on the left" in the panel.'});
|
|
@@ -4,4 +4,32 @@ import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`Draft feedback
|
|
|
4
4
|
- **Misleading guidance** — a doc page, a Phoenix guide or an error message pointed the wrong way, or did not say what was needed.
|
|
5
5
|
- **Missing feature** — something the SDK does not support forced a workaround, or a routine task took far more steps than it should.
|
|
6
6
|
|
|
7
|
-
Do not draft feedback for problems in this project's own specs or code, for a suspicion that is not checked, or twice for the same problem. For a finished run, use [Evaluate the run](evaluate.md) instead
|
|
7
|
+
Do not draft feedback for problems in this project's own specs or code, for a suspicion that is not checked, or twice for the same problem. For a finished run, use [Evaluate the run](evaluate.md) instead.`,o=`Write one draft per distinct problem, as plain text with the labels below, in this order, so the Phoenix team reads every report the same way. Keep every label; write \`none\` or \`not deployed yet\` where there is nothing to put.
|
|
8
|
+
|
|
9
|
+
\`\`\`text
|
|
10
|
+
Build: <build id> <Studio build page link>
|
|
11
|
+
Configurator: <live configurator link>
|
|
12
|
+
|
|
13
|
+
What I was doing:
|
|
14
|
+
<the task and the step you were on>
|
|
15
|
+
|
|
16
|
+
What happened and what I expected:
|
|
17
|
+
<what you ran or called, the result you got, and the result you expected>
|
|
18
|
+
|
|
19
|
+
Exact error or agent output:
|
|
20
|
+
<the error text or the output, copied unchanged>
|
|
21
|
+
|
|
22
|
+
Workaround:
|
|
23
|
+
<what you did instead, or none>
|
|
24
|
+
|
|
25
|
+
Conversation log:
|
|
26
|
+
<the conversation condensed to the turns that matter: what the client asked, what you tried, what failed>
|
|
27
|
+
\`\`\`
|
|
28
|
+
|
|
29
|
+
- **Build** is the latest build of this project, whose sources show the problem. \`pnpm phoenix deploy\` prints it as \`Build #<n> started in <preview>\` and its page, whose address carries the build id, as \`Follow the build in Studio: <url>\`. When that line is missing, use the build page URL from Studio for the project shown by \`phoenix whoami\`; do not infer a workspace from a personal login. Never invent a build id: when the project was not deployed, write \`not deployed yet\`.
|
|
30
|
+
- **Configurator** is the preview's live address \`pnpm phoenix deploy\` prints once the build is live.
|
|
31
|
+
- The team downloads the build's sources from its Studio page, so do not paste whole files; quote only the lines that show the problem.
|
|
32
|
+
- Quote errors and output exactly. A report that paraphrases an error cannot be searched for.
|
|
33
|
+
- Condense the conversation log rather than dumping it: keep the client's requests, the decisions and the failures, and leave out tool output the other sections already carry.
|
|
34
|
+
|
|
35
|
+
Then follow [Approve and send](send.md).`;export const generatePhoenixFeedbackReport=()=>e({path:"processes/feedback/report.md",title:"Report a problem",summary:"A verified SDK bug, misleading guidance or missing capability, drafted for the Phoenix team; read when such a problem affects the work.",whenToUse:t,steps:o,doneWhen:"- Each distinct, verified problem has one draft with every label filled or marked `none`.\n- The drafts went through [Approve and send](send.md).",example:"When `pnpm phoenix variants` rejects a script that only edits `src/elements/`, confirm the script follows the documented contract, then draft a bug with the exact rejection message, the script's relevant lines and `not deployed yet` for the build."});
|
package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createPhoenixProcessGuide as e}from"../guide.js";let a=`- Each agreed action works end to end
|
|
2
|
-
- Real messages or orders were sent only with the client's authorization.`;export const generatePhoenixFinalization=()=>e({path:"processes/finalization.md",title:"Finalization",summary:"Implement the agreed completion journey: summary PDFs, emails, sharing, quotes, orders or other integrations; read when a configuration needs an ending or an integration.",whenToUse:"When the configuration journey needs an ending: saving, sharing, a summary PDF, an email, a quote, an order or another integration. A [first draft](first-draft/build.md)
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../guide.js";let a=`- Each agreed action works end to end, and its success and failure paths are visible; any delivery or integration awaiting verification remains explicitly pending.
|
|
2
|
+
- Real messages or orders were sent only with the client's authorization.`;export const generatePhoenixFinalization=()=>e({path:"processes/finalization.md",title:"Finalization",summary:"Implement the agreed completion journey: summary PDFs, emails, sharing, quotes, orders or other integrations; read when a configuration needs an ending or an integration.",whenToUse:"When the configuration journey needs an ending: saving, sharing, a summary PDF, an email, a quote, an order or another integration. A [first draft](first-draft/build.md) reaches this once its configuration is stable and finalization serves the intended outcome.",steps:"1. Agree what completing means: what is collected, what is submitted and where, what the configurator user receives, and how progress, success, failure and recovery look. Discover requirements early when they affect earlier design decisions, and implement them here.\n2. Declare each completion as a `finalizeAction` component with `variant` `primary` or `secondary` and a handler registered with `phx.frontend.createPhoenixHandler`. Render the actions in the project layout with `phx.frontend.useFinalizeActions()`, as [Finalization actions](../features/custom-layout/finalization-actions.md) describes.\n3. Implement the server side in the project webhook as [Finalization](../features/webhooks/finalization.md) describes: a finalize handler registered with `withConfiguratorFinalize`, the [tasks](../features/webhooks/tasks/index.md) the journey needs, such as a configuration link, a PDF and an email, and a callback that returns the result. Images rendered by the configurator, described in `docs/other-features/client-side-rendering/declarative.mdx`, embed in PDFs without server rendering. Mail clients drop `data:` images and CSS filters, and signed file links expire after 30 minutes, so an email attaches its product images and loads its logo from `assets/public/` in a version made for the background it sits on ([Email](../features/webhooks/tasks/email.md)).\n4. Exercise the form and its validation, progress and recovery in the browser; check generated outputs and links in their intended viewing mode. Test payloads and delivery outcomes separately, without sending real messages or creating real orders unless the client authorizes it. Report which parts were verified: a working form or mocked handler does not establish successful delivery. Keep unfinished rules and provisional prices identifiable, so nothing produces a misleading real quote or order.",doneWhen:a,example:"For a summary with email: the primary action generates a configuration link and two configurator renders, builds a branded PDF and offers it for download; the secondary action opens a form for an email address and sends the same PDF and images. Test the email with the client's own address after they agree, and simulate a delivery failure to check recovery."});
|
|
@@ -1,25 +1,39 @@
|
|
|
1
|
-
import{createPhoenixProcessGuide as e}from"../../guide.js";let
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../../guide.js";let n=`### Understand and build the core journey
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Build on the branded slice to support the representative buyer task, using the Phoenix journey guidance: read \`docs/ux-guidelines/designing-the-configuration-journey.mdx\` with \`pnpm phoenix docs -r <path>\` and its relevant topic pages. Establish enough understanding of the product's parts, relationships, editing scopes and constraints to design that task; exhaustive catalog discovery can wait. Read the [SDK guidance](../../core/sdk.md) and relevant feature guides for the Phoenix mechanisms the interaction needs before implementing it.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Design the buyer journey as a separate task: the slice demonstrated the look and basic behavior, not an approved UX. Reconsider its provisional controls, selection and action placement against the representative task rather than simply adding options to its layout. For each main action, decide its scope, target and placement using the journey guidance. Evaluate positional construction actions in the scene, separately from scene selection; explain a panel-based choice when it serves the task better. Develop one recommended interaction design that includes the construction and editing behaviors that could change that recommendation. Use [Custom project layout](../../features/custom-layout/index.md) and relevant layout gallery examples, preserving canvas, safe-area, messages and read-mode behavior. Apply the supplied or chosen branding. Compare approaches only when [Visual choices](../../core/workflow.md#visual-choices) identifies a meaningful tradeoff.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **App loader** — replace the loading overlay's content with \`phx.frontend.createAppLoader()\`: the logo, a short brand animation and progress from the loading phases.
|
|
7
|
+
### Review before recommending
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
Review the core journey against all three: the product definition and its rules, Phoenix UX guidelines, and the relevant Phoenix platform contracts. This review is required before presenting the recommendation; the initial slice's lightweight treatment does not extend to the core journey. A focused self-review is sufficient by default; use the [review strategy](../../core/workflow.md#review-strategy) for depth and any additional review.
|
|
10
|
+
|
|
11
|
+
Exercise the representative task and any known constraint case through the controls on desktop and phone. Assess action placement, selection, global versus per-part editing and scrolling. Trace the implemented interactions to their owning Phoenix feature guides and check their contracts, including navigation and message handling; working React controls alone do not establish platform alignment. Fix findings and explain intentional departures. In the client-facing result, distinguish interactions exercised in the browser from rules checked only in code and remaining gaps; keep claims specific to the paths and screen sizes actually tested. When comparing approaches, exercise the same task in each. Present the working recommendation with its tradeoffs and ask for feedback; client feedback refines the reviewed design.
|
|
12
|
+
|
|
13
|
+
Describe the resulting patterns in the [UX specification](../specification/ux-specification.md) and render its PDF. Record explicit choices and rationale in the project record; accepting an approach does not imply approval of every implementation detail.
|
|
14
|
+
|
|
15
|
+
### Continue in useful increments
|
|
16
|
+
|
|
17
|
+
After feedback on the core journey, recommend the next useful task and follow [Building in increments](../../core/workflow.md#building-in-increments). Preserve the verified interactions and keep remaining scope in the product definition. Use reversible defaults and keep going; record them in the product definition rather than asking now. Add pricing, more options and the finishing features below when they serve the next agreed outcome, rather than expanding to the full range automatically.
|
|
11
18
|
|
|
12
|
-
|
|
19
|
+
When pricing is the next agreed increment after core-journey feedback, replace the placeholder with the supplied rules and verify totals as options change. Use [Expressions](../../features/domain-model/expressions.md) for calculated prices and [State slices](../../features/state/slices.md) to display them from committed configuration state; a custom price-footer example concerns presentation, not the pricing rules. If pricing information is missing, keep the placeholder clearly labeled and record the gap.
|
|
13
20
|
|
|
14
|
-
|
|
21
|
+
Before presenting each increment, exercise the changed interactions and affected parts of the representative journey on desktop and phone, including any added starting, loading or finalization features. Check controls, scene and summary remain consistent, framing and materials still work, and ordinary option edits preserve the camera view. Fix failures and report the paths, screen sizes and remaining gaps as above.
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
### Brand the first moments
|
|
24
|
+
|
|
25
|
+
Choose finishing features that help the journey; a single starting configuration may need no preset chooser.
|
|
26
|
+
|
|
27
|
+
- **Preset screen** — if the journey uses a preset screen, make its first impression count. Replace it with \`phx.frontend.createPresetUi()\` in the chosen branding, offering two or three meaningful starting configurations as large, well-lit renders, with the brand's typography, a deliberate composition and a little motion. \`pnpm phoenix screenshot\` captures only the state the preview shows, so open each preset in the preview with browser automation before capturing it; without automation, use a branded placeholder and say so at the handoff. Keep the preview-mode branch of the SDK example \`docs/layouts/presets/custom.mdx\`, read with \`pnpm phoenix docs -r <path>\`.
|
|
28
|
+
- **App loader** — replace the loading overlay's content with \`phx.frontend.createAppLoader()\`: the logo, a short brand animation and progress from the loading phases.
|
|
29
|
+
|
|
30
|
+
[Project pages](../../features/custom-layout/pages.md) has the contracts of both, and [Presets](../../features/application-states/presets.md) how the starting configurations are defined.
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
### Finalization when useful
|
|
20
33
|
|
|
21
|
-
|
|
34
|
+
Once the configuration is stable, add finalization when it serves the intended outcome, following [Finalization](../finalization.md). A branded summary PDF can support a quote or handover; an email form can send it when that is useful. Neither is a default requirement for every draft. Otherwise record finalization as deferred or unnecessary for this outcome.
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
- The
|
|
25
|
-
-
|
|
36
|
+
When included, test the PDF with configuration images, chosen options and any price visibly marked provisional while it is. Send a test email only to an address the client gives, after their yes; until then, report the email action as untested.`,t=`- The core journey has been reviewed against product rules, Phoenix UX guidelines and platform contracts, and findings addressed.
|
|
37
|
+
- The representative journey and any known constraint behavior work in the running preview on desktop and phone, in the chosen branding and layout.
|
|
38
|
+
- Included finishing features work; any email test awaits explicit authorization or has passed with it. Deferred or unnecessary finalization is recorded.
|
|
39
|
+
- Remaining scope and provisional items are recorded in the product definition and the project record.`;export const generatePhoenixFirstDraftBuild=()=>e({path:"processes/first-draft/build.md",title:"Build",summary:"Develop and review the core journey, then continue in useful increments; read after presenting the branded working slice.",whenToUse:"After [Direction](direction.md) presents the branded working slice. Develop and review the core journey, then iterate toward a useful draft ready for handoff.",steps:n,doneWhen:t,example:"For the modular cabinet, develop a task that adds a taller column, stacks a box, changes one door and removes a column, including an archive restriction. Review product rules, editing scope and Phoenix implementation before recommending the design. Verify that adding and removing boxes keeps the editing context clear, changing one door leaves other doors unchanged, and archive restrictions explain how to continue. After client feedback, add pricing as a next increment and verify totals as the arrangement changes. If the journey uses a preset screen, add meaningful starting configurations. Add a branded loader. If buyers need a quote summary, add and test its PDF after those interactions work; leave email for a later increment unless it serves the agreed outcome."});
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`### Intake
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use supplied descriptions, assets and references first; ask for whatever exists when nothing was supplied. Take branding from the client's website when available. Summarize the product briefly, then capture the [product definition](../specification/product-definition.md), including known product facts and provisional assumptions; render its PDF at handoff. Ask with a recommendation when a missing answer materially affects the interaction being built now and has no reasonable reversible default. Otherwise use a provisional default, record it and continue. Exhaustive catalogs, pricing and rules unrelated to the journey can wait.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### Three branding directions
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Prepare three distinct standalone HTML brand sheets in one comparison using [Variants](../../features/variants.md). Vary composition, typography, color emphasis and scene mood, using product imagery and representative interface styling. These sheets establish visual identity, not the configurator workflow; a working configurator is not needed yet. Ground them in the supplied product and brand references; an existing brand keeps its identity across all three. Use [Branding](../specification/branding.md) for the brand details. This is the first planned feedback point: present the sheets using [Visual choices](../../core/workflow.md#visual-choices), explain their differences, recommend one and ask the client to choose.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Run the comparison with \`--keep\`. After the client chooses, save the chosen HTML sheet as the branding source, render its PDF and remove the completed variants folder. Then build the working slice in that direction. An already explicitly chosen direction stays settled. Interaction alternatives later remain optional under [Visual choices](../../core/workflow.md#visual-choices).
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Working slice
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Create an impressive first result quickly: the client’s recognizable product, presented in their branding, with a simple interaction that works. Keep functional scope narrow so you can focus on visual quality and responsiveness. Use reversible defaults rather than delaying this moment for design decisions; the broader buyer journey comes afterward.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Build one basic product interaction with the [SDK guidance](../../core/sdk.md), such as changing a finish on a representative starting configuration. Include selection only when that interaction needs it, and enforce the known constraints that affect it. For a basic editable option, use the YAML binding and control-hook example in [Custom controls](../../features/domain-controls/custom-controls.md#example); compose it in the [layout skeleton](../../features/custom-layout/scene-and-safe-area.md). Read other feature guides only for behavior this path needs. Keep scene and controls consistent. Use a clearly labeled placeholder price; implement pricing during Build.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Use a minimal scene and usable provisional controls. Full catalog coverage and finalization wait; apply branding before the first presentation. Exercise this narrow path through its controls and fix failures before expanding it. Keep the preview running while you work; present the verified slice with branding applied, without asking the client to accept its provisional UX.
|
|
18
|
+
|
|
19
|
+
- **Supplied model** — inspect the representative model with [Asset inspection](../../features/inspection.md). Load a usable GLB with the model-loading and positioning examples in \`docs/3d-scene/rendering/basic.mdx\`; for editable finishes, use \`docs/3d-scene/materials/override.mdx\`. Read these with \`pnpm phoenix docs -r <path>\`. Follow [Asset conversion](../asset-conversion.md) when conversion or repair is needed; process only the models this slice uses.
|
|
18
20
|
- **No model** — build a stand-in with three.js primitives exported to glTF, or with Blender when it is installed. Match the proportions of any photo or drawing, give each configurable part its own material, rest it on the floor and tell the client it is a stand-in.
|
|
19
21
|
|
|
20
22
|
### Scene and camera
|
|
21
23
|
|
|
22
|
-
The scene sells the product, and a little care here shows in every later screenshot.
|
|
24
|
+
The scene sells the product, and a little care here shows in every later screenshot. Style it in the chosen branding direction and look at the result in the preview before moving on:
|
|
23
25
|
|
|
24
26
|
- **Setting** — a simple environment: a floor or plinth the product rests on and a soft backdrop or room in the brand's scene colors, rather than an empty void or a busy interior.
|
|
25
27
|
- **Light** — an environment map gives materials their reflections; when it washes the product out, lower its intensity or the exposure rather than removing it. Add a key light with soft shadows, so the product sits on the floor. A custom environment component replaces the default lighting entirely.
|
|
26
28
|
- **Materials** — each surface should read as what it is made of, such as stone, wood, lacquer or fabric. Flat plastic usually means missing reflections or a texture at the wrong scale.
|
|
27
29
|
- **Camera** — fit the product when the configuration loads or a preset opens, not on every change: a camera that refits on mesh changes jumps on every option, slider step and drag, and throws away the view the configurator user chose. Set distance and angle limits and a comfortable default distance; a separate phone camera helps when one framing does not suit both.
|
|
28
30
|
|
|
29
|
-
Read with \`pnpm phoenix docs -r <path>\`: \`docs/3d-scene/cameras/fit-root.mdx\`, \`docs/3d-scene/cameras/locks.mdx\`, the pages in \`docs/3d-scene/rendering/lights/\` and \`docs/3d-scene/rendering/soft-shadows.mdx\`; the gallery layouts
|
|
30
|
-
|
|
31
|
-
### Layout options
|
|
31
|
+
Read with \`pnpm phoenix docs -r <path>\`: \`docs/3d-scene/cameras/fit-root.mdx\`, \`docs/3d-scene/cameras/locks.mdx\`, the pages in \`docs/3d-scene/rendering/lights/\` and \`docs/3d-scene/rendering/soft-shadows.mdx\`; the layout gallery in \`docs/layouts/gallery/\` shows complete scenes.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
### Present the working slice
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Show the working slice in the chosen branding. Tell the client this is an initial visual preview: it establishes the look and demonstrates a small working interaction; the broader interaction design and product logic will be built next. Name what already works without implying the full configurator is implemented. Its controls are provisional; this presentation is progress, not an interaction-design approval gate. Next, develop the core journey in [Build](build.md), unless the client redirects.`,n=`- The branded slice works through its actual controls, with feedback for constraints affecting that interaction and a labeled placeholder price.
|
|
36
|
+
- The client chose from three HTML brand sheets, or had already explicitly chosen one; it is applied to the slice and its source and PDF are saved.
|
|
37
|
+
- The product definition records known facts, sources, assumptions and remaining scope.
|
|
38
|
+
- The client can see the working slice and understands that the core journey comes next.`;export const generatePhoenixFirstDraftDirection=()=>e({path:"processes/first-draft/direction.md",title:"Direction",summary:"Three HTML branding proposals, followed by a narrow branded working interaction; read at the start of a first draft.",whenToUse:"Use this guide at the start of a first draft, after opening the preview for the client as described in [Local development](../../core/cli.md#keep-the-preview-in-front-of-the-client).",steps:t,doneWhen:n,example:"For a modular cabinet, first present three HTML brand sheets, recommend one and wait for the choice. Save the chosen source and PDF. Then show one cabinet with a working finish choice. Verify the path with provisional controls and placeholder pricing. Present this branded slice as a visual preview, then design the construction journey in Build."});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixFirstDraftBuild as
|
|
1
|
+
import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixFirstDraftBuild as t}from"./build.js";import{generatePhoenixFirstDraftDirection as n}from"./direction.js";import{generatePhoenixFirstDraftHandoff as o}from"./handoff.js";export const generatePhoenixFirstDraftGuides=()=>{let r=[n(),t(),o()];return[e({path:"processes/first-draft/index.md",title:"First draft",summary:"A fast, convincing first version of a new project: chosen branding and UX, a working product journey, relevant finishing features and an offer to deploy; read for a new project, not for an existing one.",intro:`The first thing a new client sees. Across the client choices and feedback pauses, aim for a branded, working configurator with a chosen look and UX, a representative product journey and finishing features that serve its outcome, ready to deploy as a first live version and as good looking as the time allows. It is meant for a new project; an existing project continues in normal mode.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Start with three standalone HTML brand sheets for the client to choose. Save the chosen direction and build a narrow working interaction in that branding; an already explicitly chosen direction stays settled. Present that slice as an initial visual preview. Then separately design the core buyer journey and review it against product rules, Phoenix UX guidelines and platform contracts before recommending the design. Continue with feedback and useful increments. Beyond that branding choice, interaction alternatives are a technique for meaningful tradeoffs, not a mandatory stage. Speed comes from limiting scope; reversible defaults cover nonblocking unknowns. The stages usually run in order. Note in the project record which stage the draft reached, so a resumed session continues the draft instead of switching to normal mode; the handoff marks the draft complete.`,guides:r,notes:[]}),...r]};
|
|
@@ -2,8 +2,8 @@ import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`The handoff is
|
|
|
2
2
|
|
|
3
3
|
1. Render the product definition PDF from its current source, then present the draft in a few lines: what the client can try, with the preview and the documents in \`docs/\` opened or linked. Name what is provisional in a sentence, such as a stand-in model or prices, and point to the product definition for the rest rather than listing every default.
|
|
4
4
|
2. Ask what they think and what they would change first. Fix small requests now; add larger ones to the next increments.
|
|
5
|
-
3. Once their reaction is in, offer to deploy the draft as a first live version, following [Deployment](../../core/cli.md#deployment), and deploy after a yes. When the deploy is refused because a model is already deployed, such as the starter, follow [Model migration](../model-migration.md).
|
|
5
|
+
3. Once their reaction is in, offer to deploy the draft as a first live version, following [Deployment](../../core/cli.md#deployment), and deploy after a yes. A new project has nothing deployed, so the draft's model becomes v1. When the deploy is refused because a model is already deployed, such as the hello-world starter of an early beta project, follow [Model migration](../model-migration.md).
|
|
6
6
|
4. At a natural pause, ask about the [preferences](../../core/workflow.md#preferences), with a recommendation, and record the answers.
|
|
7
|
-
5.
|
|
7
|
+
5. Refresh the [next increments](../../core/workflow.md#building-in-increments) in the project record, usually the rest of the range and its rules, and recommend the first in terms of the client's product.`,n=`- The client has seen the draft and answered whether to deploy; the deploy went live or was declined.
|
|
8
8
|
- The client's reactions and preferences are recorded in the project record, which marks the first draft complete.
|
|
9
|
-
- The next increments are in the project record, the client knows the recommended first one, and the project continues in normal mode.`;export const generatePhoenixFirstDraftHandoff=()=>e({path:"processes/first-draft/handoff.md",title:"Handoff",summary:"Present the draft, then over the next messages offer a first live deployment, agree preferences and the next increments, and move to normal mode; read when the build works.",whenToUse:"When the first-draft [Build](build.md) works. The handoff ends the first draft; the project continues in normal mode, deployed or not.",steps:t,doneWhen:n,example:'The first message: "Your first draft is open in the preview.
|
|
9
|
+
- The next increments are in the project record, the client knows the recommended first one, and the project continues in normal mode.`;export const generatePhoenixFirstDraftHandoff=()=>e({path:"processes/first-draft/handoff.md",title:"Handoff",summary:"Present the draft, then over the next messages offer a first live deployment, agree preferences and the next increments, and move to normal mode; read when the build works.",whenToUse:"When the first-draft [Build](build.md) works. The handoff ends the first draft; the project continues in normal mode, deployed or not.",steps:t,doneWhen:n,example:'The first message: "Your first draft is open in the preview. Select a shelf, change its finish and try adding one where the spacing limit applies. The cabinet is a stand-in until we have your model; the product definition lists what is still open. What do you think, and what would you change first?" The deploy offer and the question about working style come in later messages, once this one is answered.'});
|
package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from './first-draft/index.js';
|
|
|
2
2
|
export * from './specification/index.js';
|
|
3
3
|
export * from './finalization.js';
|
|
4
4
|
export * from './asset-conversion.js';
|
|
5
|
+
export * from './scene-realism.js';
|
|
6
|
+
export * from './assistant-configuration.js';
|
|
5
7
|
export * from './model-migration.js';
|
|
6
8
|
export * from './review/index.js';
|
|
7
9
|
export * from './feedback/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./first-draft/index.js";export*from"./specification/index.js";export*from"./finalization.js";export*from"./asset-conversion.js";export*from"./model-migration.js";export*from"./review/index.js";export*from"./feedback/index.js";export*from"./beta.js";
|
|
1
|
+
export*from"./first-draft/index.js";export*from"./specification/index.js";export*from"./finalization.js";export*from"./asset-conversion.js";export*from"./scene-realism.js";export*from"./assistant-configuration.js";export*from"./model-migration.js";export*from"./review/index.js";export*from"./feedback/index.js";export*from"./beta.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createPhoenixProcessGuide as e}from"../guide.js";export const generatePhoenixModelMigration=()=>e({path:"processes/model-migration.md",title:"Model migration",summary:"Preserve deployed model versions and migrate saved configurations; read when changing a domain model that has already been deployed.",whenToUse:"When changing a domain model that has already been deployed, including replacing
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../guide.js";export const generatePhoenixModelMigration=()=>e({path:"processes/model-migration.md",title:"Model migration",summary:"Preserve deployed model versions and migrate saved configurations; read when changing a domain model that has already been deployed.",whenToUse:"When changing a domain model that has already been deployed, including replacing the starter model an early beta project was first deployed with, after a [first draft](first-draft/handoff.md); a promotion refused for a changed model leads here too.",steps:"A model version that production serves cannot change, because buyers' saved configurations depend on it. `pnpm phoenix deploy` builds into a preview, which replaces a changed schema because its saved configurations are test data, so a deploy does not show it; promoting the build to production in Studio is refused when the model differs from the one production already has under the same version. The version is not written anywhere: `model.latest` is always the highest numbered version plus one, so a spec with only `latest` is v1, and `applicationVersion` plays no part. `pnpm phoenix dev` accepts every model change, so a working local preview, or a deployed preview, does not show that promoting to production will pass. Adding a version is a model change, so restart dev and open the new preview address, as [Local development](../core/cli.md#keep-the-preview-in-front-of-the-client) describes.\n\n### Change a deployed model\n\nTo change a model that has been deployed as v<N>:\n\n1. Keep the deployed model, unchanged, as `model.v<N>` in the spec. A file of its own, such as `spec/model-v<N>.yaml`, keeps `latest` readable.\n2. Make the change in `model.latest`, which is now v<N+1>.\n3. Add `src/migrations/v<N+1>.ts` exporting `migrateToV<N+1>`. It receives the saved entities of v<N> and returns entities that are valid in v<N+1>; `ModelV<N>` and `ModelV<N+1>` are generated global namespaces.\n\nThe admin model is versioned on its own, under `src/admin/migrations/`, with its types in `AdminV<N>`.\n\n### Replace the starter\n\nA new project starts empty, so the model of its first deploy is v1 and nothing needs replacing. Only a project whose production was first deployed as the hello-world starter, in the early beta, has the starter's `Box` model as v1 in production. When the real model replaces it, keep the starter's model as `model.v1` and define the real model in `latest`. Configurations saved from the starter are not worth converting, so the migration returns the starting state of the new model, the `initialDomainEntities` of its preset, and drops the boxes:\n\n```typescript\n// src/migrations/v2.ts\nimport type { Migration } from '@salsita-ai/sdk/domain'\n\nexport const migrateToV2: Migration<ModelV1.AnyDomainEntity, ModelV2.AnyDomainEntity> = () => [\n // the entities of the new model's preset\n]\n```\n\nAn entity of a type the new version no longer has must not stay in the returned state. An entity id starts with its type (`Box-1`), so an entity that keeps its data under a new type name needs a new id, and every relation pointing at it rewritten. Read `docs/phoenix/migrations.mdx` with `pnpm phoenix docs -r docs/phoenix/migrations.mdx` before writing any other migration.",doneWhen:"- The deployed model is kept unchanged under its version, the change is in `model.latest`, and a migration converts saved configurations.\n- A configuration saved with the previous version loads after the change.",example:"When a deployed starter `Box` model is replaced by a chair, keep the starter as `model.v1`, make the chair model `latest` (v2) and implement `migrateToV2` returning the chair preset's entities. Load a configuration saved from the starter to verify that it opens as the default chair."});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`Review the running configurator against the product references and representative states, beyond the state used during implementation. [Visual inspection](visual-inspection.md) covers the state just changed; this pass checks fidelity and composition across the relevant states.
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../../guide.js";let t=`Review the running configurator against the product references and representative states, beyond the state used during implementation. [Visual inspection](visual-inspection.md) covers the state just changed; this pass checks fidelity and composition across the relevant states. For an evidenced material, contact or grounding defect selected for correction, [scene realism](../scene-realism.md) offers optional guidance; this review does not itself start a realism pass.
|
|
2
2
|
|
|
3
3
|
### Roles
|
|
4
4
|
|
|
@@ -43,4 +43,4 @@ Use the scope and effort the workflow selected: one review pass, a challenge of
|
|
|
43
43
|
### When the tools are not there
|
|
44
44
|
|
|
45
45
|
When an independent pass would help but tools are unavailable, work through the packet as an own review and disclose the limitation. Without browser automation, \`phoenix screenshot\` captures the canvas but not the interface around it, and \`phoenix inspect:state\` and \`phoenix inspect:scene\` only read, so no state other than the default can be reached. Review what can be reached and name what went unchecked rather than reporting a clean result.`,a=`- Every state in the packet was inspected, and each candidate is confirmed, refuted or unresolved with its evidence.
|
|
46
|
-
- Confirmed defects are fixed or reported as deferred, and taste notes are listed for the client.`;export const generatePhoenixAppearanceReview=()=>e({path:"processes/review/appearance.md",title:"Appearance review",summary:"Fidelity and composition across representative states, with an evidence packet and challenged candidates; read before hand-over and after changes that add, remove or swap parts.",whenToUse:"
|
|
46
|
+
- Confirmed defects are fixed or reported as deferred, and taste notes are listed for the client.`;export const generatePhoenixAppearanceReview=()=>e({path:"processes/review/appearance.md",title:"Appearance review",summary:"Fidelity and composition across representative states, with an evidence packet and challenged candidates; read before hand-over and after changes that add, remove or swap parts.",whenToUse:"After the initial working slice, before hand-over and after an increment that adds, removes or swaps a part, with scope and independence chosen by the [review strategy](../../core/workflow.md#review-strategy). Composition between parts is where appearance defects concentrate, and an inspection of a single state cannot see it. The initial working slice needs no appearance review.",steps:t,doneWhen:a,example:"For a chair with optional casters, inspect the default and the caster-equipped state. A caster floating above the floor is an evidenced defect; preferring a darker finish is a taste note for the client."});
|
package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createPhoenixProcessGuide as e}from"../../guide.js";let n=`- Every checklist that concerns the change was applied, and the project checks and dev log were checked.
|
|
2
|
-
- The findings are reported in the format above, or "No issues found" says what was checked.`;export const generatePhoenixCodeReview=()=>e({path:"processes/review/code.md",title:"Code review",summary:"Phoenix bindings, domain behavior, types and runtime checks with a findings report; read for changed specs or code before committing.",whenToUse:"Before committing changed specs or code, with scope, effort and reviewer chosen by the [review strategy](../../core/workflow.md#review-strategy).",steps:'Check the changed behavior for correctness, Phoenix pattern violations and security issues; apply only the checklists that concern the change.\n\n### Procedure\n\n1. Get the diff of the selected work, including its affected callers and generated output.\n2. Identify which spec and source areas changed.\n3. Run the relevant project checks, including `pnpm phoenix build` when the change affects production output.\n4. When `phoenix dev` is running, check `.phoenix/phoenix-dev.log` for runtime errors.\n5. Report the findings in the format below.\n\n### Domain model (`spec/*.yaml`)\n\n- [ ] Relations define parent-child ownership correctly (1-N, 0-1)\n- [ ] Expressions have matching implementations in `src/expressions/`\n- [ ] Invariants have matching implementations in `src/invariants/`\n- [ ] Actions declared under `actions:` have matching implementations in `src/actions/` (a missing one stops the application at start; it is not a type error)\n- [ ] Component bindings use correct entity types or aliases\n- [ ] `$read`, `$write` and `$bind` reference valid properties or expressions\n- [ ] A deployed model is unchanged under its version: the change is in `model.latest`, the deployed model is kept as `model.v<N>`, and `src/migrations/v<N+1>.ts` migrates saved configurations\n\n### Expressions, actions and invariants\n\n- [ ] Use `phx.domain.implementCustomExpressions()
|
|
2
|
+
- The findings are reported in the format above, or "No issues found" says what was checked.`;export const generatePhoenixCodeReview=()=>e({path:"processes/review/code.md",title:"Code review",summary:"Phoenix bindings, domain behavior, types and runtime checks with a findings report; read for changed specs or code before committing.",whenToUse:"Before committing changed specs or code, with scope, effort and reviewer chosen by the [review strategy](../../core/workflow.md#review-strategy).",steps:'Check the changed behavior for correctness, Phoenix pattern violations and security issues; apply only the checklists that concern the change.\n\n### Procedure\n\n1. Get the diff of the selected work, including its affected callers and generated output.\n2. Identify which spec and source areas changed.\n3. Run the relevant project checks, including `pnpm phoenix build` when the change affects production output.\n4. When `phoenix dev` is running, check `.phoenix/phoenix-dev.log` for runtime errors.\n5. Report the findings in the format below.\n\n### Domain model (`spec/*.yaml`)\n\n- [ ] Relations define parent-child ownership correctly (1-N, 0-1)\n- [ ] Expressions have matching implementations in `src/expressions/`\n- [ ] Invariants have matching implementations in `src/invariants/`\n- [ ] Actions declared under `actions:` have matching implementations in `src/actions/` (a missing one stops the application at start; it is not a type error)\n- [ ] Component bindings use correct entity types or aliases\n- [ ] `$read`, `$write` and `$bind` reference valid properties or expressions\n- [ ] A deployed model is unchanged under its version: the change is in `model.latest`, the deployed model is kept as `model.v<N>`, and `src/migrations/v<N+1>.ts` migrates saved configurations\n\n### Expressions, actions and invariants\n\n- [ ] Use `phx.domain.implementCustomExpressions()` and `implementCustomInvariants()` for domain code, and `phx.frontend.implementActions()` for actions\n- [ ] Actions only prepare: they return updates, plus a `readResult` reader when they declare a result, never stage or commit, and throw messages that say what to send instead\n- [ ] Expression names prefixed with `$` in YAML match the implementation\n- [ ] Expressions have no side effects; they are pure computed values\n- [ ] Invariant violations return proper severity and messages\n\n### Components (`src/components/`, `spec/components.yaml`)\n\n- [ ] Custom components use `memoEval` with correct dependency arrays\n- [ ] Scene objects built in code rebuild only when their shape changes and release the geometry, materials and textures a rebuild replaces ([Scene objects built in code](../../features/scene-objects.md))\n- [ ] Component attachment uses `withEntity()` or `withAlias()` correctly\n- [ ] Filters use `withGradualFilter()` with static criteria first for performance\n- [ ] No unnecessary React re-renders: stable object references through `memoEval`\n- [ ] Export pattern: a default export of a single component or an array\n\n### Assistant setup (`src/handlers/`)\n\n- [ ] At most one `phx.domain.createAssistantSetupHandler`, synchronous, pure and deterministic over manifest and session inputs\n- [ ] Only removes original declaration entries, exposes descriptions and restriction flags, and rejects immutable keys\n- [ ] Narrows fields on the declaring alias before expansion; runs in browser execution and the webhook; browser GraphQL, tools and change recording use session narrowing while UI keeps pure spec selectors; empty instructions clear the baseline in both runs\n\n### Webhooks (`src/webhooks/`)\n\n[Webhooks](../../features/webhooks/index.md) has the rules behind these checks.\n\n- [ ] `src/webhooks/index.ts` default-exports the `phx.webhooks.webhookBuilder` result; other webhook files are reached through its imports\n- [ ] Credentials come from `env.webhook` through `phx.webhooksEnv`; none is hard-coded or returned in session data, backend data or the finalization result\n- [ ] Webhook files and what they import use no browser SDK entry points or style, font and image files\n- [ ] Every declared resource has a task producing it, and every task includes only declared resources\n- [ ] A task that does not apply to a request returns `null`; a callback that misses a resource throws a message naming it\n- [ ] Emails, HTTP requests and orders go to test recipients and endpoints until the client authorizes real ones\n\n### TypeScript and React\n\n- [ ] No `any` type usage; use proper types or generics\n- [ ] No `as` type casts; use type guards or discriminated unions\n- [ ] `readonly` on type and interface fields\n- [ ] Exhaustive pattern matching where appropriate\n- [ ] `useEffect` cleanup for subscriptions, timers and listeners\n- [ ] Correct dependency arrays, without missing or unnecessary dependencies\n- [ ] Memoization (`useMemo`, `useCallback`) for expensive computations\n- [ ] No direct DOM manipulation (`innerHTML`, `document.querySelector`)\n- [ ] Newlines between logical sections; no commented-out code without an explanation\n- [ ] Error messages say what went wrong, why, and how to fix it\n\n### Generated files and runtime\n\n- [ ] No edits to generated files: `.phoenix/` outside the project-owned `.phoenix/workspace/` and `.phoenix/variants/`, and compiled `src/locales/*.ts`\n- [ ] No errors in `.phoenix/phoenix-dev.log` after the change (`grep ERROR .phoenix/phoenix-dev.log`), including `[browser]` console entries\n- [ ] Spec parsing succeeds without warnings\n\n### Report format\n\n```\n# Code review report\n\n**Files reviewed**: <count>\n\n## Findings\n\n### Critical\n- **[<file_path>:<line>]** <title>\n - **Issue**: <description>\n - **Rule**: <which rule or pattern is violated>\n - **Remediation**: <how to fix>\n\n### High\n...\n\n### Medium\n...\n\n### Low\n...\n\n## Summary\n- Critical: N | High: N | Medium: N | Low: N\n- **Overall assessment**: <one or two sentences>\n```\n\nOmit a severity section without findings. Without any findings, state "No issues found" with a brief note on what was checked.',doneWhen:n,example:"After adding a finish control to a repeated chair part, verify that its binding targets the selected part, that changing it preserves the other parts, and that the rendered material matches the selected value."});
|
package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixAppearanceReview as
|
|
1
|
+
import{createPhoenixIndexGuide as e}from"../../guide.js";import{generatePhoenixAppearanceReview as r}from"./appearance.js";import{generatePhoenixCodeReview as o}from"./code.js";import{generatePhoenixHandOverReview as i}from"./hand-over.js";import{generatePhoenixVisualInspection as t}from"./visual-inspection.js";export const generatePhoenixReviewGuides=()=>{let s=[o(),t(),r(),i()];return[e({path:"processes/review/index.md",title:"Review",summary:"Review changed code, rendered output or the complete configurator; read when the review strategy calls for a focused review, or before committing or hand-over.",intro:"The [workflow](../../core/workflow.md#review-strategy) selects scope, effort and independence. Choose the slices that can establish the changed result; this index does not require all four for every task. The initial working slice skips formal reviews; the core journey receives the focused review described in first-draft Build.",guides:s,notes:[]}),...s]};
|
|
@@ -10,4 +10,4 @@ Inspect and report:
|
|
|
10
10
|
This covers what follows from the change just made, in the current state. Fidelity against the client's material, control density and states not yet opened belong to [Appearance review](appearance.md).
|
|
11
11
|
|
|
12
12
|
Report deferred defects as defects. Do not call work done, verified or complete while any point is unchecked or failing: say which, and recommend fixing it now or later.`,a=`- Each point has an observation from the rendered preview, or the change is stated to have no rendered effect.
|
|
13
|
-
- The result is appended to the project changelog with the increment it belongs to and the viewport used.`;export const generatePhoenixVisualInspection=()=>e({path:"processes/review/visual-inspection.md",title:"Visual inspection",summary:"Geometry, materials and light, response and loading in the changed state; read when a change can alter the canvas or the interface.",whenToUse:"Whenever a change can alter what the canvas or the interface shows: geometry, materials, scene, layout, controls or the data behind any of them. When a change cannot affect the rendered result, say so rather than passing over this silently.
|
|
13
|
+
- The result is appended to the project changelog with the increment it belongs to and the viewport used.`;export const generatePhoenixVisualInspection=()=>e({path:"processes/review/visual-inspection.md",title:"Visual inspection",summary:"Geometry, materials and light, response and loading in the changed state; read when a change can alter the canvas or the interface.",whenToUse:"Whenever a change can alter what the canvas or the interface shows: geometry, materials, scene, layout, controls or the data behind any of them. When a change cannot affect the rendered result, say so rather than passing over this silently. The initial working slice uses scoped testing; the core journey and subsequent increments follow the [review strategy](../../core/workflow.md#review-strategy).",steps:t,doneWhen:a,example:"After adding a leg finish to a table, open the table at desktop width: the legs meet the floor and the shadow lies under them, all four legs change finish together with the control, and the first frame appears after about two seconds behind the branded loader."});
|
package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import{createPhoenixProcessGuide as e}from"../guide.js";let a=`### Find the visible problem
|
|
2
|
+
|
|
3
|
+
Compare a baseline view with the client's references. Prioritize the largest visible issue at the normal viewing distance. For a broad realism request, identify the main problems in lighting, materials and contact shading, and assess whether ambient occlusion (AO) would help. For a specific correction, stay with that problem. Preserve the chosen finish; reference photographs do not authorize new colours or textures.
|
|
4
|
+
|
|
5
|
+
Check geometry, normals, UVs and the material actually rendered, including overrides, before adding effects. Distinguish self-occlusion, grounding and directional cast shadows; AO cannot replace cast shadows or repair a silhouette or an unsuitable reflection. Use [asset inspection](../features/inspection.md) when those inputs are uncertain.
|
|
6
|
+
|
|
7
|
+
### Choose a proportionate fix
|
|
8
|
+
|
|
9
|
+
Consider the plausible ways to improve the scene. Try the options suited to the areas with room for improvement, compare their results, and keep the changes that meaningfully improve the overall appearance relative to their cost and complexity. For baking, prefer reusable part bakes and contact profiles over whole-configuration bakes. Compare their download and memory cost with the rendering and maintenance cost of dynamic effects. Baking is an option to evaluate, not a required output. Trial costly techniques on one representative part before expanding.
|
|
10
|
+
|
|
11
|
+
Bake only relationships that stay valid during configuration. Keep contact widths in physical units as parts resize; attach optional-part shading to its placement and visibility. Rectangular masks fit rectangular contacts, not arbitrary curved surfaces. Avoid uniformly outlining panels or multiplying overlapping shadows. Prefer material occlusion inputs; a dark overlay also affects direct light and is a contact-darkening approximation, not material AO. Keep highlights and fixed lighting directions out of interchangeable finishes, and avoid opaque darkening on glass.
|
|
12
|
+
|
|
13
|
+
Keep source assets intact and bakes reproducible. An AO or UV addition should preserve geometry, normals, morphs and material assignments; avoid unnecessary model round-trips. Follow [asset conversion](asset-conversion.md) when an asset needs preparation.
|
|
14
|
+
|
|
15
|
+
### Use supported Phoenix paths
|
|
16
|
+
|
|
17
|
+
Check the installed SDK before ruling out a capability. Read the material override documentation with \`pnpm phoenix docs -r 'docs/3d-scene/materials/override.mdx'\`; inspect the relevant schema and implementation if support remains unclear. A missing UV channel is an asset-preparation issue, not proof that Phoenix lacks AO.
|
|
18
|
+
|
|
19
|
+
- **Materials** — local and remote overrides support \`aoMapUrl\` and \`aoMapIntensity\`. Replacing a material can lose authored maps. Local overrides can select \`materialType: physical\`; remote overrides depend on the loaded material class.
|
|
20
|
+
- **Mapping** — override repeat, offset and rotation apply to each supplied map; there is no independent AO transform or UV-channel selector. Preserve authored glTF occlusion mapping or use a custom material when separate mapping is needed. Sample AO as non-color data.
|
|
21
|
+
- **Custom geometry** — [scene objects built in code](../features/scene-objects.md) covers geometry, updates and resource ownership. Contact patches and configuration-time baking are project techniques, not built-in baking services; use them when simpler supported paths are insufficient.
|
|
22
|
+
|
|
23
|
+
### Compare and stop
|
|
24
|
+
|
|
25
|
+
Use [visual inspection](review/visual-inspection.md) for matching before/after views, changing one contributing factor at a time. Toggle AO separately when judging contact shading. Check affected configurations, especially size extremes and optional-part removal, for stretched shadows, outlines or artifacts. Confirm each test configuration actually applied before judging its render. Tests support these checks but do not establish visual quality. A full [appearance review](review/appearance.md) follows its own trigger.
|
|
26
|
+
|
|
27
|
+
Stop when the agreed visual target is met. Explain what is baked, approximated or rendered at runtime, and what remains unverified. Remove temporary tuning controls and replaced effects; retain reproducible assets.`,t=`- Matching views demonstrate the agreed improvement without new artifacts or an unintended finish change.
|
|
28
|
+
- Shading remains valid in the affected configurations checked; remaining issues and unverified states are disclosed.
|
|
29
|
+
- Any bakes used are reproducible and preserve the source asset's geometry and material contracts.`;export const generatePhoenixSceneRealism=()=>e({path:"processes/scene-realism.md",title:"Scene realism",summary:"Optional material, contact and grounding refinement; read for a requested realism improvement or a specific evidenced defect within the agreed scope.",whenToUse:"Make scenes convincing through resizing, finish changes and optional parts, with low runtime cost and complexity. Use this optional guide for requested realism work or an evidenced defect within scope. Routine scene work and hand-over do not trigger a pass. Keep satisfactory or deferred appearance settled, and use the scope and effort chosen by the [workflow](../core/workflow.md).",steps:a,doneWhen:t,example:"For a resizable cabinet with an optional bracket, first compare the lighting, finish and joint shading. If a lighting correction resolves the problem, stop. If contacts still look flat, assess reusable AO with the rendered material and its UVs. A tiling finish and separately unwrapped AO need independent mapping. Keep bracket shading tied to the bracket, then compare narrow and wide cabinets with the bracket present and absent. Removing it should remove its shadow, not the cabinet's own occlusion."});
|