@wildo-ai/saas-frontend-lib 1.1.17 → 1.1.18
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/LICENSE +114 -26
- package/LICENSE.enterprise +129 -0
- package/dist/esm/companion-exports.d.ts +5 -2
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js +4 -2
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/components/actions/action-bar.d.ts +16 -1
- package/dist/esm/components/actions/action-bar.d.ts.map +1 -1
- package/dist/esm/components/actions/action-bar.js.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js +6 -14
- package/dist/esm/components/app/AppLayout_AuthenticatedRoute.js.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_DecisionInbox.js +2 -4
- package/dist/esm/components/app/AppLayout_DecisionInbox.js.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.d.ts.map +1 -1
- package/dist/esm/components/app/AppLayout_Home.js +14 -7
- package/dist/esm/components/app/AppLayout_Home.js.map +1 -1
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts +13 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.d.ts.map +1 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js +16 -0
- package/dist/esm/components/app/AppLayout_IdentityPortalContainer.js.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts +10 -0
- package/dist/esm/components/app/DecisionInboxSection.d.ts.map +1 -0
- package/dist/esm/components/app/DecisionInboxSection.js +15 -0
- package/dist/esm/components/app/DecisionInboxSection.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts +13 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js +28 -0
- package/dist/esm/components/app/IdentityPortalLayout_AuthenticatedRoute.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts +10 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js +40 -0
- package/dist/esm/components/app/IdentityPortalPage_Home.js.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts +16 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.d.ts.map +1 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js +41 -0
- package/dist/esm/components/app/IdentityPortalPage_SettingsDestination.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts +15 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js +268 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js +35 -0
- package/dist/esm/components/auth/Auth_DecisionEmailAnswer.labels.js.map +1 -0
- package/dist/esm/components/auth/Auth_Main.d.ts.map +1 -1
- package/dist/esm/components/auth/Auth_Main.js +5 -0
- package/dist/esm/components/auth/Auth_Main.js.map +1 -1
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts +19 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js +156 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts +3 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.d.ts.map +1 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js +107 -0
- package/dist/esm/components/auth/Auth_OAuthDeviceVerification.labels.js.map +1 -0
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts +31 -10
- package/dist/esm/components/auth/StepUpAuthDialog.d.ts.map +1 -1
- package/dist/esm/components/auth/StepUpAuthDialog.js +81 -17
- package/dist/esm/components/auth/StepUpAuthDialog.js.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.d.ts.map +1 -1
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js +19 -0
- package/dist/esm/components/auth/admin-config/AppPage_SecuritySettings.labels.js.map +1 -1
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_DecisionEmailAnswer.js.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts +11 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.d.ts.map +1 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js +25 -0
- package/dist/esm/components/auth/pages/AuthPage_OAuthDeviceVerification.js.map +1 -0
- package/dist/esm/components/billing/billing-pricing-table.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-pricing-table.js +40 -7
- package/dist/esm/components/billing/billing-pricing-table.js.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-subscription-status.js +9 -1
- package/dist/esm/components/billing/billing-subscription-status.js.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.d.ts.map +1 -1
- package/dist/esm/components/billing/billing-usage-dashboard.js +3 -2
- package/dist/esm/components/billing/billing-usage-dashboard.js.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/AutomaticDisplayer.js +7 -2
- package/dist/esm/components/data-display/AutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/DisplayField.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayField.js +67 -45
- package/dist/esm/components/data-display/DisplayField.js.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js +4 -1
- package/dist/esm/components/data-display/DisplayFieldEditable.js.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +16 -6
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +3 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/feedback/empty-state-marker.d.ts +16 -0
- package/dist/esm/components/feedback/empty-state-marker.d.ts.map +1 -0
- package/dist/esm/components/feedback/empty-state-marker.js +16 -0
- package/dist/esm/components/feedback/empty-state-marker.js.map +1 -0
- package/dist/esm/components/feedback/empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/empty-state.js +2 -1
- package/dist/esm/components/feedback/empty-state.js.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts +7 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.d.ts.map +1 -1
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js +8 -2
- package/dist/esm/components/feedback/features/feature-unavailable-prompt.js.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.d.ts.map +1 -1
- package/dist/esm/components/feedback/resource-empty-state.js +2 -1
- package/dist/esm/components/feedback/resource-empty-state.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +25 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +14 -9
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +30 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js +4 -1
- package/dist/esm/components/flows-actors/flow-node.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/flow-step-visuals.js +8 -2
- package/dist/esm/components/flows-actors/flow-step-visuals.js.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/human-decision-form.js +4 -1
- package/dist/esm/components/flows-actors/human-decision-form.js.map +1 -1
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/Form.d.ts.map +1 -1
- package/dist/esm/components/form/Form.js +1 -0
- package/dist/esm/components/form/Form.js.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutomatedArrayField.js +7 -4
- package/dist/esm/components/form/automated/AutomatedArrayField.js.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.d.ts.map +1 -1
- package/dist/esm/components/form/automated/AutosaveContext.js +8 -0
- package/dist/esm/components/form/automated/AutosaveContext.js.map +1 -1
- package/dist/esm/components/form/automated/FormField.d.ts +5 -3
- package/dist/esm/components/form/automated/FormField.d.ts.map +1 -1
- package/dist/esm/components/form/automated/FormField.js +38 -13
- package/dist/esm/components/form/automated/FormField.js.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +31 -18
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.d.ts +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js +1 -1
- package/dist/esm/components/form/fields/form-field-file-provider-constraints.frontend.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.d.ts +5 -7
- package/dist/esm/components/form/validation-errors/form-validation.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/form-validation.js +7 -22
- package/dist/esm/components/form/validation-errors/form-validation.js.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts +25 -2
- package/dist/esm/components/form/validation-errors/getFieldError.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/getFieldError.js +29 -2
- package/dist/esm/components/form/validation-errors/getFieldError.js.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js +3 -0
- package/dist/esm/components/form/validation-errors/resource-error-notification-context.utils.js.map +1 -1
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts +9 -0
- package/dist/esm/components/form/validation-errors/save-attempt.d.ts.map +1 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js +42 -0
- package/dist/esm/components/form/validation-errors/save-attempt.js.map +1 -0
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js +3 -1
- package/dist/esm/components/form/validation-errors/unstarted-field-visit.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts +2 -2
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js +3 -0
- package/dist/esm/components/form/validation-errors/validate-fields-and-show-errors.js.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.d.ts.map +1 -1
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js +5 -3
- package/dist/esm/components/navigation/app-level/useMenuBarBehavior.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts +19 -0
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +47 -11
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js +17 -7
- package/dist/esm/components/resources/ResourceLayout_InsertedViews.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_List.js +13 -6
- package/dist/esm/components/resources/ResourceLayout_List.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_Search.js +12 -8
- package/dist/esm/components/resources/ResourceLayout_Search.js.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js +11 -4
- package/dist/esm/components/resources/ResourceOwnedViewEmbeds.js.map +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.d.ts +1 -1
- package/dist/esm/components/resources/embeds/RelatedResourceSections.js.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts +5 -5
- package/dist/esm/components/resources/embeds/ResourceEmbeds.d.ts.map +1 -1
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js +21 -14
- package/dist/esm/components/resources/embeds/ResourceEmbeds.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +40 -4
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/FormLayout.js +22 -6
- package/dist/esm/components/resources/skeleton/FormLayout.js.map +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.d.ts +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js +1 -1
- package/dist/esm/components/resources/skeleton/ResourceHeaderTitle.js.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts +21 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.d.ts.map +1 -1
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js +53 -9
- package/dist/esm/components/resources/skeleton/SectionFieldsContext.js.map +1 -1
- package/dist/esm/components/settings/SettingsHub.d.ts +15 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +14 -4
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts +3 -2
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js +4 -3
- package/dist/esm/components/views/chart-dashboard/ChartDashboard.js.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.d.ts.map +1 -1
- package/dist/esm/components/views/chart-dashboard/useChartDashboardLayout.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts +33 -0
- package/dist/esm/components/views/chart-view/ChartKpiFigure.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js +63 -4
- package/dist/esm/components/views/chart-view/ChartKpiFigure.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.js +33 -7
- package/dist/esm/components/views/chart-view/ChartView.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.labels.js +69 -3
- package/dist/esm/components/views/chart-view/ChartView.labels.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js +2 -1
- package/dist/esm/components/views/chart-view/ChartView.lazy.js.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/ChartWidget.js +12 -4
- package/dist/esm/components/views/chart-view/ChartWidget.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts +8 -0
- package/dist/esm/components/views/chart-view/chart-export.utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/chart-export.utils.js +15 -25
- package/dist/esm/components/views/chart-view/chart-export.utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.d.ts.map +1 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js +6 -0
- package/dist/esm/components/views/chart-view/chart-view-defaults.js.map +1 -0
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts +35 -9
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js +69 -21
- package/dist/esm/components/views/chart-view/option-builder/builder-utils.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js +6 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/bar-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/composed.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js +2 -2
- package/dist/esm/components/views/chart-view/option-builder/builders/heatmap.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js +7 -7
- package/dist/esm/components/views/chart-view/option-builder/builders/line-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js +6 -8
- package/dist/esm/components/views/chart-view/option-builder/builders/pie-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js +4 -1
- package/dist/esm/components/views/chart-view/option-builder/builders/statistical-family.builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.d.ts.map +1 -1
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js +13 -13
- package/dist/esm/components/views/chart-view/option-builder/echarts-option-builder.js.map +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.d.ts +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js +1 -1
- package/dist/esm/components/views/chart-view/useResourceChartData.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +6 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts +7 -0
- package/dist/esm/components/views/execution-view/ExecutionView.d.ts.map +1 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js +11 -1
- package/dist/esm/components/views/execution-view/ExecutionView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +7 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +6 -2
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts +7 -0
- package/dist/esm/components/views/full-custom-view/FullCustomView.d.ts.map +1 -1
- package/dist/esm/components/views/full-custom-view/FullCustomView.js +8 -3
- package/dist/esm/components/views/full-custom-view/FullCustomView.js.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts +7 -0
- package/dist/esm/components/views/onboarding-view/OnboardingView.d.ts.map +1 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js +11 -1
- package/dist/esm/components/views/onboarding-view/OnboardingView.js.map +1 -1
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.d.ts +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js +2 -2
- package/dist/esm/core/app-shell/AppShellBuildingBlocks.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +4 -4
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +3 -3
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts +45 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.d.ts.map +1 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js +72 -0
- package/dist/esm/core/app-shell/useIdentityPortalShellLayout.js.map +1 -0
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js +4 -3
- package/dist/esm/core/automated-layout/automated-layout.frontend.schemas.js.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts +15 -8
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js +22 -21
- package/dist/esm/core/automated-layout/automated-layout.frontend.utils.js.map +1 -1
- package/dist/esm/core/billing/BillingContext.d.ts +27 -4
- package/dist/esm/core/billing/BillingContext.d.ts.map +1 -1
- package/dist/esm/core/billing/BillingContext.js +61 -2
- package/dist/esm/core/billing/BillingContext.js.map +1 -1
- package/dist/esm/core/billing/useBillingAction.d.ts.map +1 -1
- package/dist/esm/core/billing/useBillingAction.js +3 -2
- package/dist/esm/core/billing/useBillingAction.js.map +1 -1
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts +19 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.d.ts.map +1 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js +23 -0
- package/dist/esm/core/components-registry/RegisteredComponentRoot.js.map +1 -0
- package/dist/esm/core/components-registry/register-framework-layouts.d.ts.map +1 -1
- package/dist/esm/core/components-registry/register-framework-layouts.js +4 -0
- package/dist/esm/core/components-registry/register-framework-layouts.js.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts +159 -0
- package/dist/esm/core/config/app-configuration-frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/app-configuration-frontend.schemas.js +68 -3
- package/dist/esm/core/config/app-configuration-frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/app-level-components.frontend.schemas.d.ts +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js +2 -2
- package/dist/esm/core/config/app-level-components.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts +59 -18
- package/dist/esm/core/config/chart-view.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/chart-view.frontend.schemas.js +42 -7
- package/dist/esm/core/config/chart-view.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +8 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js +1 -0
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js +1 -1
- package/dist/esm/core/config/decision-inbox-capability.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts +6 -0
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +12 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/execution-view.schemas.d.ts +1 -1
- package/dist/esm/core/config/execution-view.schemas.js.map +1 -1
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts +17 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.d.ts.map +1 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js +64 -0
- package/dist/esm/core/config/identity-portal-settings.frontend.js.map +1 -0
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts +8 -8
- package/dist/esm/core/config/launcher-items.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/launcher-items.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js +1 -1
- package/dist/esm/core/config/settings-hub-gating.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +17 -6
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useSettingsHubConfig.js +1 -0
- package/dist/esm/core/config/useSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts +7 -0
- package/dist/esm/core/config/useVisibleSettingsHubConfig.d.ts.map +1 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js +9 -1
- package/dist/esm/core/config/useVisibleSettingsHubConfig.js.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts +7 -1
- package/dist/esm/core/config/verify-launcher-content.d.ts.map +1 -1
- package/dist/esm/core/config/verify-launcher-content.js +31 -0
- package/dist/esm/core/config/verify-launcher-content.js.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.d.ts.map +1 -1
- package/dist/esm/core/errors/GlobalErrorHandler.js +10 -0
- package/dist/esm/core/errors/GlobalErrorHandler.js.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.d.ts.map +1 -1
- package/dist/esm/core/errors/backend-refusal.frontend.js.map +1 -1
- package/dist/esm/core/events/NotificationContext.d.ts.map +1 -1
- package/dist/esm/core/events/NotificationContext.js +19 -2
- package/dist/esm/core/events/NotificationContext.js.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts +21 -2
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js +25 -4
- package/dist/esm/core/events/notification-display-policy.frontend.schemas.js.map +1 -1
- package/dist/esm/core/execution/useExecution.d.ts +3 -3
- package/dist/esm/core/execution/useExecution.js.map +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.d.ts +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js +1 -1
- package/dist/esm/core/external-providers/ConsentBasedProviderSdks.js.map +1 -1
- package/dist/esm/core/features/FeatureGate.d.ts +13 -1
- package/dist/esm/core/features/FeatureGate.d.ts.map +1 -1
- package/dist/esm/core/features/FeatureGate.js +6 -1
- package/dist/esm/core/features/FeatureGate.js.map +1 -1
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts +28 -0
- package/dist/esm/core/features/InPlaceFeatureLock.d.ts.map +1 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js +49 -0
- package/dist/esm/core/features/InPlaceFeatureLock.js.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts +12 -0
- package/dist/esm/core/features/PlanRefusalPrompt.d.ts.map +1 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js +90 -0
- package/dist/esm/core/features/PlanRefusalPrompt.js.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts +39 -0
- package/dist/esm/core/features/RequiredFeaturesGate.d.ts.map +1 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js +51 -0
- package/dist/esm/core/features/RequiredFeaturesGate.js.map +1 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts +6 -0
- package/dist/esm/core/features/feature-unavailability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js +27 -10
- package/dist/esm/core/features/feature-unavailability.frontend.utils.js.map +1 -1
- package/dist/esm/core/features/plan-refusal.frontend.d.ts +43 -0
- package/dist/esm/core/features/plan-refusal.frontend.d.ts.map +1 -0
- package/dist/esm/core/features/plan-refusal.frontend.js +67 -0
- package/dist/esm/core/features/plan-refusal.frontend.js.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts +21 -0
- package/dist/esm/core/features/required-features-gate-presentation.d.ts.map +1 -0
- package/dist/esm/core/features/required-features-gate-presentation.js +26 -0
- package/dist/esm/core/features/required-features-gate-presentation.js.map +1 -0
- package/dist/esm/core/features/useFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useFeatureAvailability.js +4 -0
- package/dist/esm/core/features/useFeatureAvailability.js.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts +2 -0
- package/dist/esm/core/features/useOperationFeatureAvailability.d.ts.map +1 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js +6 -1
- package/dist/esm/core/features/useOperationFeatureAvailability.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +11 -0
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +117 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.d.ts.map +1 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js +3 -1
- package/dist/esm/core/guidance/renderers/GuidanceAnnouncement.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +28 -9
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.d.ts → core/navigation/chart-read-gate.d.ts} +11 -7
- package/dist/esm/core/navigation/chart-read-gate.d.ts.map +1 -0
- package/dist/esm/{components/views/chart-dashboard/chart-dashboard.utils.js → core/navigation/chart-read-gate.js} +27 -11
- package/dist/esm/core/navigation/chart-read-gate.js.map +1 -0
- package/dist/esm/core/navigation/home-resolution.d.ts +36 -0
- package/dist/esm/core/navigation/home-resolution.d.ts.map +1 -0
- package/dist/esm/core/navigation/home-resolution.js +46 -0
- package/dist/esm/core/navigation/home-resolution.js.map +1 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts +2 -34
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +13 -18
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-runtime-availability.js +7 -2
- package/dist/esm/core/navigation/launcher-runtime-availability.js.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.d.ts +2 -2
- package/dist/esm/core/navigation/primary-destination-layout.d.ts.map +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js +1 -1
- package/dist/esm/core/navigation/primary-destination-layout.js.map +1 -1
- package/dist/esm/core/navigation/useChartReadDecision.d.ts +26 -0
- package/dist/esm/core/navigation/useChartReadDecision.d.ts.map +1 -0
- package/dist/esm/core/navigation/useChartReadDecision.js +58 -0
- package/dist/esm/core/navigation/useChartReadDecision.js.map +1 -0
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationConfigurationPresence.js.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.d.ts.map +1 -1
- package/dist/esm/core/navigation/useCurrentOrganizationHoldsUnrevokedScimToken.js.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.d.ts +21 -0
- package/dist/esm/core/navigation/view-title-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/view-title-resolution.js +25 -0
- package/dist/esm/core/navigation/view-title-resolution.js.map +1 -1
- package/dist/esm/core/navigation/viewer-field-reader.d.ts +81 -0
- package/dist/esm/core/navigation/viewer-field-reader.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-field-reader.js +113 -0
- package/dist/esm/core/navigation/viewer-field-reader.js.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts +40 -0
- package/dist/esm/core/navigation/viewer-roles.d.ts.map +1 -0
- package/dist/esm/core/navigation/viewer-roles.js +26 -0
- package/dist/esm/core/navigation/viewer-roles.js.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts +32 -0
- package/dist/esm/core/requests/user-interaction-clock.d.ts.map +1 -0
- package/dist/esm/core/requests/user-interaction-clock.js +47 -0
- package/dist/esm/core/requests/user-interaction-clock.js.map +1 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.d.ts.map +1 -1
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js +2 -0
- package/dist/esm/core/requests/websockets/WebSocketEventBridge.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +27 -6
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +30 -7
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js +13 -0
- package/dist/esm/core/requests/wildo-http-client.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.d.ts.map +1 -1
- package/dist/esm/core/resources/hooks/useOperationEnabled.js +4 -0
- package/dist/esm/core/resources/hooks/useOperationEnabled.js.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-addressability.frontend.utils.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts +29 -23
- package/dist/esm/core/resources/resources.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/resources/resources.frontend.schemas.js +20 -20
- package/dist/esm/core/resources/resources.frontend.schemas.js.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.d.ts.map +1 -1
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js +4 -0
- package/dist/esm/core/resources/rmm/ResourceMutationManager.js.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.d.ts.map +1 -1
- package/dist/esm/core/resources/useResourceOperationActions.js +7 -7
- package/dist/esm/core/resources/useResourceOperationActions.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +11 -33
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +15 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +41 -23
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts +20 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.d.ts.map +1 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js +31 -0
- package/dist/esm/core/runtime/IdentityPortalRouter.js.map +1 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts +9 -0
- package/dist/esm/core/runtime/domain-module.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js +3 -2
- package/dist/esm/core/runtime/domain-module.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts +21 -0
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.d.ts.map +1 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js +19 -1
- package/dist/esm/core/runtime/frontend-companion-resource-inputs.js.map +1 -1
- package/dist/esm/core/runtime/identity-routes.d.ts +13 -0
- package/dist/esm/core/runtime/identity-routes.d.ts.map +1 -0
- package/dist/esm/core/runtime/identity-routes.js +50 -0
- package/dist/esm/core/runtime/identity-routes.js.map +1 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +19 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +20 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts +3 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/runtime/runtime.frontend.schemas.js +2 -0
- package/dist/esm/core/runtime/runtime.frontend.schemas.js.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts +7 -0
- package/dist/esm/core/runtime/start-application.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/start-application.frontend.service.js +4 -2
- package/dist/esm/core/runtime/start-application.frontend.service.js.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.d.ts.map +1 -1
- package/dist/esm/core/security/AuthSessionContext.js +4 -0
- package/dist/esm/core/security/AuthSessionContext.js.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.d.ts +3 -2
- package/dist/esm/core/security/StepUpAuthContext.d.ts.map +1 -1
- package/dist/esm/core/security/StepUpAuthContext.js +7 -2
- package/dist/esm/core/security/StepUpAuthContext.js.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts +13 -2
- package/dist/esm/core/security/federated-reauthentication.frontend.d.ts.map +1 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js +21 -1
- package/dist/esm/core/security/federated-reauthentication.frontend.js.map +1 -1
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts +24 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.d.ts.map +1 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js +37 -0
- package/dist/esm/core/security/useAuthenticatedRouteEntry.js.map +1 -0
- package/dist/esm/core/ui/design-token.utils.d.ts +9 -0
- package/dist/esm/core/ui/design-token.utils.d.ts.map +1 -1
- package/dist/esm/core/ui/design-token.utils.js +24 -3
- package/dist/esm/core/ui/design-token.utils.js.map +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.d.ts +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js +1 -1
- package/dist/esm/core/ui/themes/focus-indicator.js.map +1 -1
- package/dist/esm/core/ui/ui.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/index.d.ts +14 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/testing/mock-builders.d.ts +1 -1
- package/dist/esm/testing/mock-builders.d.ts.map +1 -1
- package/dist/esm/testing/mock-builders.js +1 -0
- package/dist/esm/testing/mock-builders.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -6
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.d.ts.map +0 -1
- package/dist/esm/components/views/chart-dashboard/chart-dashboard.utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowsActorsContext.js","sourceRoot":"","sources":["../../../../src/core/flows-actors/FlowsActorsContext.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,QAAQ,EAAa,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3G,OAAO,EAKL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAGlB,6CAA6C,EAI7C,4CAA4C,EAE5C,8BAA8B,EAM9B,kBAAkB,EAGlB,iCAAiC,EAKjC,kBAAkB,EAGlB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AACpG,OAAO,EAA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ACV,cAAc;QACd,iBAAiB;QACjB,cAAc;QACd,eAAe;QACf,cAAc;QACd,YAAY;QACZ,SAAS;QACT,cAAc;QACd,wBAAwB;QACxB,iBAAiB;QACjB,kBAAkB;KACnB,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAEvT,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC7C,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { createContext, useState, ReactNode, useMemo, useEffect, useCallback, useRef } from 'react';\nimport {\n FlowActorSystem_FrontendInfo,\n FlowsActors_FrontendInfoResponse,\n type FlowsActors_AutonomousAgent_FrontendInfo,\n type FlowsActors_ChatAgent_FrontendInfo,\n MAIN_API_BASE_PATH,\n ManualControllerRouteKey,\n CoreWebSocketEvent,\n type FlowsActors_ConversationExecution,\n type FlowsActors_ConversationHistoryResponse,\n FlowsActors_ConversationHistoryResponseSchema,\n type WS_FlowsActorsStartPayload,\n type WS_FlowsActorsStartedPayload,\n type WS_FlowsActorsMessagePayload,\n WS_FlowsActorsApprovalAnnouncementDataSchema,\n type WS_FlowsActorsApprovalAnnouncementData,\n FlowsActors_ExecutionErrorCode,\n type WS_FlowsActorsApprovalModificationRefusal,\n type WS_FlowsActorsApprovalResponsePayload,\n type WS_FlowsActorsCancelPayload,\n type WS_FlowsActorsCompletedPayload,\n type WS_FlowsActorsTurnUsage,\n FlowsActors_Status,\n type FlowsActors_MessageContentType,\n type WS_FlowsActorsErrorPayload,\n canonicalizeFlowsActorsContextRef,\n type HumanDecision_RouteKind,\n type HumanDecision_Presentation,\n type HumanDecision_Request,\n type HumanDecision_AnswerValue,\n AskPersonOptionRef,\n type WorkUnitRef,\n type ResourceOperationRiskLevel,\n buildManualControllerRoutePath,\n} from '@wildo-ai/saas-models';\nimport type { SerializableZodSchema } from '@wildo-ai/zod-decorators';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { errorManagement } from '~wildo-frontend-lib/core/errors/error-management.frontend.service';\nimport { useApplication } from '~wildo-frontend-lib/core/runtime/useApplication';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { useWebSocket } from '~wildo-frontend-lib/core/requests/websockets/useWebSocket';\nimport { readJsonResponse } from '~wildo-frontend-lib/core/requests/json-response-reading.frontend';\nimport { useEmitLoadingScope } from '~wildo-frontend-lib/core/loading/useEmitLoadingScope';\nimport { ContextLoadingIdentifier } from '~wildo-frontend-lib/core/loading/loading-types.frontend.schemas';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\nconst logDebug: (message: string, context?: Record<string, unknown>) => void = logger.debugByType('FlowsActorsContext');\nlogger.setDebugTypeLogging('FlowsActorsContext', false);\n\nconst MAX_MESSAGES_PER_EXECUTION: number = 500;\n\ntype ExecutionMessage = FlowsActorsExecution['messages'][number];\n\nfunction appendMessages(existing: ExecutionMessage[], ...newMsgs: ExecutionMessage[]): ExecutionMessage[] {\n const combined = [...existing, ...newMsgs];\n return combined.length > MAX_MESSAGES_PER_EXECUTION\n ? combined.slice(combined.length - MAX_MESSAGES_PER_EXECUTION)\n : combined;\n}\n\n/**\n * Merge one streamed message event into the list. When the event carries a\n * `messageId` matching an existing message, that message is updated in place:\n * a delta event (`isFinal !== true`) appends its `content`; the terminal event\n * (`isFinal === true`) replaces `content` with the authoritative full text (and\n * adopts its rendered `type`, e.g. text → markdown). Events without a known\n * `messageId` are appended as new entries (one-shot / legacy behavior).\n */\nfunction mergeStreamedMessage(\n existing: ExecutionMessage[],\n incoming: ExecutionMessage,\n isFinal: boolean,\n): ExecutionMessage[] {\n if (incoming.messageId) {\n const index = existing.findIndex(m => m.messageId === incoming.messageId);\n if (index >= 0) {\n const updated = [...existing];\n const prev = updated[index];\n updated[index] = {\n ...prev,\n type: incoming.type,\n content: isFinal ? incoming.content : prev.content + incoming.content,\n data: incoming.data ?? prev.data,\n timestamp: incoming.timestamp,\n };\n return updated;\n }\n }\n return appendMessages(existing, incoming);\n}\n\n/**\n * How a turn stands in THIS CLIENT — its view of a turn, which is not the server's run status.\n *\n * Kept distinct on purpose (#2524): the client knows states the server never holds — STARTING (the start is sent and\n * not yet acknowledged), and an ERROR it detects itself when the socket drops — and the server knows states the\n * client never shows (READY, ABORTED). The WIRE speaks the server's vocabulary (`FlowsActors_Status` on\n * `FLOWS_ACTORS_COMPLETED`), and {@link turnStatusFromServer} is the ONE place that reads it into this one.\n */\nexport enum FlowsActorsExecutionStatus {\n IDLE = 'idle',\n STARTING = 'starting',\n RUNNING = 'running',\n AWAITING_APPROVAL = 'awaiting_approval',\n COMPLETED = 'completed',\n /** The person stopped the turn (#2524). Not an error: nothing failed, and the turn's thread continues. */\n CANCELLED = 'cancelled',\n ERROR = 'error',\n}\n\n/**\n * The client's turn status for a status the server ENDED a turn with (`FLOWS_ACTORS_COMPLETED.status`). Total over the\n * server vocabulary, so a status added to it is a compile error here rather than a turn the client never settles.\n */\nconst TURN_STATUS_FROM_SERVER: Record<FlowsActors_Status, FlowsActorsExecutionStatus> = {\n [FlowsActors_Status.COMPLETED]: FlowsActorsExecutionStatus.COMPLETED,\n [FlowsActors_Status.CANCELLED]: FlowsActorsExecutionStatus.CANCELLED,\n [FlowsActors_Status.AWAITING_APPROVAL]: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n [FlowsActors_Status.PROCESSING]: FlowsActorsExecutionStatus.RUNNING,\n [FlowsActors_Status.PENDING]: FlowsActorsExecutionStatus.STARTING,\n [FlowsActors_Status.READY]: FlowsActorsExecutionStatus.STARTING,\n // A run the server ended without completing it, whatever the reason, is an error to the person watching it.\n [FlowsActors_Status.FAILED]: FlowsActorsExecutionStatus.ERROR,\n [FlowsActors_Status.ABORTED]: FlowsActorsExecutionStatus.ERROR,\n};\n\n/** Read a server run status into the client's turn status — the one mapping (#2524). */\nexport function turnStatusFromServer(status: FlowsActors_Status): FlowsActorsExecutionStatus {\n return TURN_STATUS_FROM_SERVER[status] ?? FlowsActorsExecutionStatus.ERROR;\n}\n\n/**\n * The one mapping from a server approval announcement to the client's pending decision — shared by the\n * live socket handler and the history seeding (#1601), so a decision reached either way renders and\n * answers identically.\n *\n * It carries the announcement's typed state and no sentence (#3201). The card words the decision itself, from its\n * presentation's title (`describeHumanDecisionCard`'s phrase) and the tool's title in `flows_actors_tools`, in the\n * reader's language. It used to carry the server's English `Waiting for approval to run \"<tool>\".` as\n * `actionDescription`, which the card rendered as written, naming the tool by its identifier.\n */\nfunction pendingApprovalFromAnnouncement(\n announcement: WS_FlowsActorsApprovalAnnouncementData,\n): NonNullable<FlowsActorsExecution['pendingApproval']> {\n const { approvalId, decisionRef, routeKind, toolName, toolArgs, toolInputSchema, requestedAt, expiresAt, reasonCodes, riskLevel, question, presentation, presentationId } = announcement;\n return {\n approvalId,\n ...(riskLevel ? { riskLevel } : {}),\n toolName,\n toolArgs,\n // A descriptor the transport does not re-validate (#587) — typed here for the editor, which falls\n // back to raw JSON for any shape it cannot render as fields.\n toolInputSchema: toolInputSchema as SerializableZodSchema | undefined,\n requestedAt: new Date(requestedAt),\n expiresAt: expiresAt ? new Date(expiresAt) : undefined,\n decisionRef,\n routeKind,\n ...(reasonCodes && reasonCodes.length > 0 ? { reasonCodes } : {}),\n ...(question ? { question } : {}),\n ...(presentation ? { presentation } : {}),\n ...(presentationId ? { presentationId } : {}),\n };\n}\n\n/**\n * Active Execution State\n */\nexport interface FlowsActorsExecution {\n executionId: string;\n systemRef: string;\n status: FlowsActorsExecutionStatus;\n messages: Array<{\n /** The message vocabulary's VALUE (`FlowsActors_MessageContentType`), the wire's `messageType`. */\n type: `${FlowsActors_MessageContentType}`;\n content: string;\n data?: Record<string, unknown>;\n timestamp: Date;\n /**\n * Correlation id for streamed messages. Consecutive `messageId`-sharing\n * events belong to one logical message: non-final events append their\n * delta to `content`; the final event replaces `content` with the full text.\n * Absent for one-shot messages (each is its own entry).\n */\n messageId?: string;\n }>;\n /**\n * The decision a paused turn is waiting on, read from `WS_FlowsActorsApprovalAnnouncementData` — carried in the `data`\n * bag of a PROGRESS message: tool name, tool arguments, timing, the isolation axis (#528), and the risk the call's\n * approval gate declares (#2526).\n */\n pendingApproval?: {\n approvalId: string;\n /**\n * The risk the call's approval gate DECLARES (`humanApproval.riskLevel`), as the decision's inbox card carries it\n * (#2526). Absent when the gate declares none; a surface then shows no risk claim, because nothing declared one.\n */\n riskLevel?: ResourceOperationRiskLevel;\n expiresAt?: Date;\n /** The tool call being gated, and its arguments — the structured thing being approved. */\n toolName?: string;\n toolArgs?: Record<string, unknown>;\n /**\n * The gated tool's input schema as a serialized descriptor (#587), so an editor can offer the\n * tool's fields. A rendering hint only — the server re-validates every modification.\n */\n toolInputSchema?: SerializableZodSchema;\n /**\n * The server's refusal of the approver's last edit, when it refused one (#587). The approval is\n * still pending when this is set: a refused modification leaves the pause standing, so the\n * surface keeps the decision on screen with the reason instead of dropping it.\n *\n * STRUCTURED, not the server's sentence (#1186): the card renders a label per reason, naming the\n * tool and the offending arguments as parameters. A server that sent no structure (older than the\n * field) yields an empty `reason`, which the card reads as \"refused, reason not stated\".\n */\n modificationRefusal?: WS_FlowsActorsApprovalModificationRefusal;\n /** The arguments the approver submitted in that refused edit, so the editor reopens on them (#587). */\n rejectedToolArgs?: Record<string, unknown>;\n /**\n * What the server built for the person to read (#2903): the arguments as strings it already projected, which the card\n * renders verbatim. Absent on a turn paused before decisions were routed.\n */\n presentation?: HumanDecision_Presentation;\n /** The presentation's id, echoed on the answer: the server refuses an answer that does not name what it was given on. */\n presentationId?: string;\n requestedAt?: Date;\n /**\n * The decision's one id (#1594), ECHOED back on the answer. The server addresses the decision by\n * it and reads everything else — owner, credential, agent instance — off the row.\n */\n decisionRef?: string;\n /**\n * Who answers it (#1594). Anything but OWNER is answered by a reviewer from their inbox, and the person\n * whose conversation this is may not answer it — so a surface shows it as waiting rather than offering\n * buttons the server would refuse. Absent means OWNER (a pause raised before routes existed).\n */\n routeKind?: HumanDecision_RouteKind;\n /**\n * The reason codes the answer may carry (#1921) — the application's declared vocabulary, offered when the approver\n * changes or rejects the call. Absent when the application declares none.\n */\n reasonCodes?: readonly string[];\n /**\n * Set when the server refused the last answer's reason code (#1921): the pause stands, the approval is back on\n * screen, and the card says the reason was not one the application offers. Cleared by the next answer.\n */\n reasonCodeRefused?: boolean;\n /**\n * The QUESTION, when the paused call is the agent asking its person (#2720): its questions, its two answers and the\n * form they are asked through. Answered with `answerQuestion`, never approved.\n */\n question?: HumanDecision_Request;\n };\n /** Set when the last error is recoverable (UI can offer a retry action) */\n recoverable?: boolean;\n /**\n * The approval this client last ANSWERED, kept until the server's reaction is known (#587).\n *\n * Answering clears `pendingApproval` at once, which is right when the decision lands. But a refused\n * modification leaves the server's pause standing, and without this the surface would have nothing to\n * put back on screen — the approval would vanish while still waiting. `submittedToolArgs` is what the\n * approver authored, so a restored editor reopens on their edit rather than on the model's call.\n */\n answeredApproval?: {\n approval: NonNullable<FlowsActorsExecution['pendingApproval']>;\n submittedToolArgs?: Record<string, unknown>;\n };\n duration?: number;\n /** The tokens the turn spent — present only for a person who may read model cost (#2524). */\n usage?: WS_FlowsActorsTurnUsage;\n errorCode?: string;\n}\n\n/**\n * FlowsActors Context Type\n */\nexport interface FlowsActorsContextType {\n /** Available frontend-visible FlowActorSystems */\n systems: FlowActorSystem_FrontendInfo[];\n\n /**\n * The autonomous agents the application declares (#1611), in declaration order — the closed set an\n * organization OAuth client may be bound to, so a binding form offers these rather than free text (#1812).\n * Empty until the first fetch settles, and when the application declares none.\n */\n autonomousAgents: FlowsActors_AutonomousAgent_FrontendInfo[];\n\n /**\n * The chat agents the application declares (#2665), in declaration order — the closed set an organization's chat\n * setting may name. Empty until the first fetch settles, and when the application declares none.\n */\n chatAgents: FlowsActors_ChatAgent_FrontendInfo[];\n\n /**\n * The chat connections an organization may choose an agent for (#2665): the application's providers enabled here\n * with a chat endpoint (`slack`, `microsoft-teams-bot`). Empty until the first fetch settles, and when there is none.\n */\n chatConnectionRefs: string[];\n\n /**\n * Ask for the agent declarations — {@link autonomousAgents}, {@link chatAgents} and {@link chatConnectionRefs} — to be\n * loaded, whatever else this application renders.\n *\n * The provider bootstraps `/flows-actors/frontend-info` only when the application configures a flows/actors\n * VIEW (pinned: an application with no chat surface makes no such request). Neither an autonomous agent nor a chat\n * agent needs a view, so a surface that needs the declarations (the OAuth client binding form, #1812; the chat\n * settings form, #2665) calls this instead. It fetches once per sign-in, and does nothing when a fetch already ran or\n * cannot run yet (signed out, no backend endpoint, no http client). Idempotent, so call it from an effect.\n */\n requestAgentDeclarations: () => void;\n\n /** Loading state */\n isLoading: boolean;\n\n /** Error state */\n error: Error | null;\n\n /** Active executions */\n executions: Map<string, FlowsActorsExecution>;\n\n /** Start a new execution (fire-and-forget via WebSocket; returns local executionId) */\n /**\n * Send a turn. A new `executionId` opens a thread; an existing one continues it. The optional\n * identifiers are folded into the thread's `contextRef` on open (see `fetchConversationHistory`).\n *\n * `options.caseRef` (#1598) names the case the thread works on — a row of a resource declared `workUnit: true` —\n * so the model calls it makes are attributed to that case. Read when the thread OPENS; a later turn keeps the\n * thread's case. The server admits it only if the caller can read that row.\n */\n startExecution: (\n systemRef: string,\n initialInput?: Record<string, unknown>,\n existingExecutionId?: string,\n extraContextResourceIdentifiers?: Record<string, string>,\n /**\n * `messageId`: the id the person's message is stored under (#2525 review N1). A page drawing the message before the\n * record holds it mints one, and recognises the stored message by it.\n */\n options?: { caseRef?: WorkUnitRef; messageId?: string },\n ) => string | null;\n\n /** Respond to an approval request (fire-and-forget via WebSocket) */\n /**\n * `modifiedToolArgs` (#566) replaces the arguments the agent proposed. Absent means \"run the call\n * as proposed\"; the server validates the edit against the tool's own schema and refuses through\n * `FLOWS_ACTORS_ERROR` with the approval left pending.\n */\n /** `reasonCode` is one of the approval's `reasonCodes` (#1921), given when the approver changes or rejects the call. */\n respondToApproval: (executionId: string, approvalId: string, approved: boolean, comment?: string, modifiedToolArgs?: Record<string, unknown>, reasonCode?: string) => void;\n\n /**\n * Answer the paused turn's QUESTION (#2720): the option chosen and, when it sends answers, one value per question as\n * its JSON (what `HumanDecisionForm` reads). The server checks the values with the question's own form and refuses\n * through `FLOWS_ACTORS_ERROR` with the question left pending.\n */\n answerQuestion: (executionId: string, optionRef: string, values: readonly { ref: string; value: HumanDecision_AnswerValue }[], comment?: string) => void;\n\n /**\n * Stop the person's own running turn (#2524). The server ends it CANCELLED, keeping what it had produced, and the\n * turn settles on `FLOWS_ACTORS_COMPLETED` like any other — nothing is settled here, so a stop that races the turn's\n * own end cannot leave the two disagreeing.\n */\n cancelExecution: (executionId: string) => void;\n\n /** Remove a completed/errored execution from state */\n clearExecution: (executionId: string) => void;\n\n /** Get execution by ID (reads from ref; consume `executions` to re-render on changes) */\n getExecution: (executionId: string) => FlowsActorsExecution | undefined;\n\n /** Get system by ref */\n getSystem: (systemRef: string) => FlowActorSystem_FrontendInfo | undefined;\n\n /** Refresh systems from backend */\n refreshSystems: () => Promise<void>;\n\n /**\n * The caller's OWN persisted threads for a system, server-authoritative (the executions resource, USER_SELF-scoped to\n * the caller): what repopulates the discussion list and the transcripts on a fresh page load. With\n * `contextResourceIdentifiers`, only the threads opened in that context — the same identifiers passed to\n * `startExecution`, canonicalised the same way — which is how a surface hosting one system for several subjects keeps\n * them apart.\n *\n * Reads a PAGE (#2528): the newest threads, or with `before` (the oldest `createdAt` a host already holds) the ones\n * before it, inclusive — so a host keeps each `executionId` once. `hasOlder` says whether another page remains.\n *\n * Resolves an empty page when there are none, or when the backend has no flows-actors history surface (feature\n * absent), and `undefined` when the read FAILED (#2525 review M4). The two must not look alike: a host re-reads after\n * every turn, and treating a failure as \"no threads\" emptied its discussion list and transcript — under the very\n * outage that had just ended the turn. Keep the last good list on `undefined`.\n */\n fetchConversationHistory: (\n systemRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n page?: { readonly before?: string },\n ) => Promise<FlowsActors_ConversationHistoryResponse | undefined>;\n\n /**\n * ONE of the caller's own threads, read by id (#4013): the one a link named, which may be older than the newest page a\n * host holds. Read through the same confined history route, so with `contextResourceIdentifiers` it answers only a\n * thread opened in that context, exactly as a page would list it.\n *\n * Resolves the thread, `null` when the caller has no such thread here (deleted, someone else's, another system or\n * context), and `undefined` when the read FAILED: as for a page, the two must not look alike.\n */\n fetchConversation: (\n systemRef: string,\n contextResourceIdentifiers: Record<string, string> | undefined,\n executionId: string,\n ) => Promise<FlowsActors_ConversationExecution | null | undefined>;\n\n /**\n * Delete ONE of the caller's own persisted conversations (a discussion). Runs\n * under the caller's auth, so the executions resource's USER_SELF owner filter\n * only ever deletes the caller's own row. Resolves once the server confirms.\n */\n deleteConversation: (executionId: string) => Promise<void>;\n}\n\n/**\n * FlowsActors Context\n * @internal - Use useFlowsActors() hook instead of accessing this directly\n */\nexport const FlowsActorsContext: React.Context<FlowsActorsContextType | undefined> = createContext<FlowsActorsContextType | undefined>(undefined);\n\n/**\n * FlowsActors Provider\n *\n * Manages:\n * - Available FlowActorSystems (fetched at startup)\n * - Active execution state\n * - WebSocket communication for real-time updates\n */\nexport const FlowsActorsProvider: React.FC<{ children: ReactNode }> = ({ children }) => {\n const { appConfig, frontendConfiguration, httpClient } = useApplication();\n const userOrgs = useUserOrgs();\n const appScope = useAppScopeSafe();\n const { on, emit, isConnected } = useWebSocket();\n const hasInitializedRef = useRef(false);\n const hasConfiguredFlowsActorsViews = (frontendConfiguration?.flowsActorsViews?.length ?? 0) > 0;\n\n const [systems, setSystems] = useState<FlowActorSystem_FrontendInfo[]>([]);\n const [autonomousAgents, setAutonomousAgents] = useState<FlowsActors_AutonomousAgent_FrontendInfo[]>([]);\n const [chatAgents, setChatAgents] = useState<FlowsActors_ChatAgent_FrontendInfo[]>([]);\n const [chatConnectionRefs, setChatConnectionRefs] = useState<string[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [executions, setExecutions] = useState<Map<string, FlowsActorsExecution>>(new Map());\n // L-2.b: explicit \"has the registry ever completed at least one successful\n // fetch\" marker, distinct from `systems.length > 0` (an empty registry is\n // still a successful fetch — the backend may legitimately ship zero\n // flow-actor systems for a given app, and we don't want every refresh of an\n // empty registry to render as INITIAL phase).\n const [hasCompletedFetch, setHasCompletedFetch] = useState(false);\n\n useEmitLoadingScope({\n identifier: ContextLoadingIdentifier.FLOWS_ACTORS,\n isLoading,\n hasLoadedOnce: hasCompletedFetch,\n });\n const executionsRef = useRef(executions);\n executionsRef.current = executions;\n\n const updateExecution = useCallback((\n executionId: string,\n updater: (execution: FlowsActorsExecution) => FlowsActorsExecution,\n ): void => {\n setExecutions(prev => {\n const existing = prev.get(executionId);\n if (!existing) return prev;\n const next = new Map(prev);\n next.set(executionId, updater(existing));\n return next;\n });\n }, []);\n\n /**\n * Fetch frontend-visible systems from backend\n */\n const refreshSystems = useCallback(async () => {\n if (!appConfig?.runtime?.endPoints?.main_backend_api) {\n logDebug('Cannot refresh systems - API endpoint not configured');\n return;\n }\n\n if (!httpClient) {\n logDebug('Cannot refresh systems - httpClient not available');\n return;\n }\n\n setIsLoading(true);\n setError(null);\n\n try {\n // Use httpClient which handles authentication automatically. The path is\n // built from the shared route registry (same source the backend controller\n // registers with) so both sides stay in lockstep under MAIN_API_BASE_PATH.\n const data = await httpClient.get<FlowsActors_FrontendInfoResponse>(\n `${MAIN_API_BASE_PATH}${buildManualControllerRoutePath(ManualControllerRouteKey.FLOWS_ACTORS_FRONTEND_INFO)}`\n );\n setSystems(data.systems);\n setAutonomousAgents(data.autonomousAgents);\n setChatAgents(data.chatAgents);\n setChatConnectionRefs(data.chatConnectionRefs);\n setHasCompletedFetch(true);\n\n logDebug('Systems refreshed', { count: data.systems.length });\n\n } catch (err) {\n if (errorManagement.isNotFoundError(err)) {\n logDebug('FlowsActors backend support not available - skipping systems bootstrap');\n setSystems([]);\n setAutonomousAgents([]);\n setChatAgents([]);\n setChatConnectionRefs([]);\n setError(null);\n setHasCompletedFetch(true);\n return;\n }\n\n const error = err instanceof Error ? err : new Error('Unknown error');\n setError(error);\n logDebug('Failed to refresh systems', { error: error.message });\n } finally {\n setIsLoading(false);\n }\n }, [appConfig?.runtime?.endPoints?.main_backend_api, httpClient]);\n\n /**\n * Fetch the caller's persisted conversation history for a system. Runs under\n * the caller's own auth (httpClient), so the executions resource's USER_SELF\n * owner filter restricts rows to the caller's threads. A missing backend\n * surface (feature absent) resolves to `[]`, never an error.\n */\n const readConversationHistory = useCallback(async (\n systemRef: string,\n contextResourceIdentifiers: Record<string, string> | undefined,\n page: { readonly before?: string; readonly executionId?: string },\n ): Promise<FlowsActors_ConversationHistoryResponse | undefined> => {\n if (!httpClient) {\n logDebug('Cannot fetch conversation history - httpClient not available');\n return undefined;\n }\n try {\n const basePath = `${MAIN_API_BASE_PATH}${buildManualControllerRoutePath(ManualControllerRouteKey.FLOWS_ACTORS_HISTORY)}`;\n const contextRef = contextResourceIdentifiers === undefined\n ? undefined\n : canonicalizeFlowsActorsContextRef({\n ...(appScope?.currentOrganizationId ? { organizationId: appScope.currentOrganizationId } : {}),\n ...contextResourceIdentifiers,\n });\n const query = `?systemRef=${encodeURIComponent(systemRef)}${contextRef === undefined ? '' : `&contextRef=${encodeURIComponent(contextRef)}`}`\n + (page.before ? `&before=${encodeURIComponent(page.before)}` : '')\n + (page.executionId ? `&executionId=${encodeURIComponent(page.executionId)}` : '');\n // Its dates restored (#3478): the history's message dates arrive as RFC 3339 strings.\n const data: FlowsActors_ConversationHistoryResponse = readJsonResponse(FlowsActors_ConversationHistoryResponseSchema, await httpClient.get<unknown>(`${basePath}${query}`));\n logDebug('Conversation history fetched', { systemRef, count: data.executions.length });\n /*\n * A thread whose turn is paused on a decision becomes an execution here, carrying that\n * decision (#1601). The pause is announced only over the live socket, so a page that loaded\n * after it — a reload, a second tab, a restart — had a thread waiting on an answer and nothing\n * to answer it with: the creator saw their message sit unanswered. The history route now\n * returns the same announcement the socket carried, and it is folded through the same mapping.\n *\n * A live entry is never replaced: the socket is the fresher source for a turn this page is\n * watching, and a seeded copy could revive a decision this client just answered. Except one: an\n * entry in ERROR with DECISION_PENDING, which says only \"the thread waits for a decision this\n * page does not hold\", so the stored decision is the fresher of the two. It arrives two ways: a\n * message this page sent was refused (#2721 review F-2), or a turn this page was watching ended\n * because another turn's decision now holds the thread (#2721 re-review N-1), including the turn\n * this page resumed by answering. That last case cannot revive the answered decision: the event\n * names the decision that waits (`waitingDecisionRef`), the error arm records the entry only when\n * it is NOT the decision the page holds (re-review R-2), and the row history returns holds that\n * waiting decision, not the answered one.\n */\n const paused = data.executions.filter((row) => row.pendingApproval !== undefined);\n if (paused.length > 0) {\n setExecutions((prev) => {\n let next: Map<string, FlowsActorsExecution> | undefined;\n for (const row of paused) {\n const live = prev.get(row.executionId);\n // #2903: an answer refused as stale leaves the decision waiting as it is NOW, which only the stored row says.\n // #2923: so does an answer refused for carrying no step-up the decision requires.\n const refusedForAnUnheldDecision = live?.status === FlowsActorsExecutionStatus.ERROR\n && (live.errorCode === FlowsActors_ExecutionErrorCode.DECISION_PENDING\n || live.errorCode === FlowsActors_ExecutionErrorCode.DECISION_PRESENTATION_STALE\n || live.errorCode === FlowsActors_ExecutionErrorCode.DECISION_STEP_UP_REQUIRED);\n if ((live && !refusedForAnUnheldDecision) || row.pendingApproval === undefined) continue;\n next ??= new Map(prev);\n next.set(row.executionId, {\n executionId: row.executionId,\n systemRef: row.systemRef,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n messages: [],\n pendingApproval: pendingApprovalFromAnnouncement(row.pendingApproval),\n });\n }\n return next ?? prev;\n });\n }\n return { executions: data.executions, hasOlder: data.hasOlder === true };\n } catch (err) {\n if (errorManagement.isNotFoundError(err)) {\n logDebug('FlowsActors history surface not available - returning empty history', { systemRef });\n return { executions: [], hasOlder: false };\n }\n // A failed read is not an empty history: the host keeps what it last read (#2525 review M4).\n logger.warn('Failed to fetch conversation history', { systemRef, error: err instanceof Error ? err.message : 'unknown' });\n return undefined;\n }\n }, [httpClient, appScope?.currentOrganizationId]);\n\n const fetchConversationHistory = useCallback((\n systemRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n page?: { readonly before?: string },\n ) => readConversationHistory(systemRef, contextResourceIdentifiers, page?.before ? { before: page.before } : {}), [readConversationHistory]);\n\n const fetchConversation = useCallback(async (\n systemRef: string,\n contextResourceIdentifiers: Record<string, string> | undefined,\n executionId: string,\n ): Promise<FlowsActors_ConversationExecution | null | undefined> => {\n const page = await readConversationHistory(systemRef, contextResourceIdentifiers, { executionId });\n if (page === undefined) return undefined;\n return page.executions.find((thread) => thread.executionId === executionId) ?? null;\n }, [readConversationHistory]);\n\n /**\n * Delete one of the caller's persisted conversations. Owner-scoped server-side\n * (USER_SELF), so a user can only delete their own discussion.\n */\n const deleteConversation = useCallback(async (executionId: string): Promise<void> => {\n if (!httpClient) {\n logDebug('Cannot delete conversation - httpClient not available');\n return;\n }\n const basePath = `${MAIN_API_BASE_PATH}${buildManualControllerRoutePath(ManualControllerRouteKey.FLOWS_ACTORS_HISTORY)}`;\n await httpClient.delete(`${basePath}?executionId=${encodeURIComponent(executionId)}`);\n logDebug('Conversation deleted', { executionId });\n }, [httpClient]);\n\n /**\n * Start a new execution via WebSocket (fire-and-forget).\n * Errors are delivered asynchronously via FLOWS_ACTORS_STARTED / FLOWS_ACTORS_ERROR events.\n */\n const startExecution = useCallback((\n systemRef: string,\n initialInput?: Record<string, unknown>,\n existingExecutionId?: string,\n extraContextResourceIdentifiers?: Record<string, string>,\n options?: { caseRef?: WorkUnitRef; messageId?: string },\n ): string | null => {\n if (!isConnected) {\n logDebug('Cannot start execution — WebSocket not connected', { systemRef });\n return null;\n }\n\n // Reuse the id to CONTINUE a discussion (one execution = one thread); mint a\n // new one to start a fresh discussion.\n const executionId = existingExecutionId ?? crypto.randomUUID();\n logDebug('Starting execution', { systemRef, executionId, hasInput: !!initialInput, isContinuation: !!existingExecutionId });\n\n /*\n * The scope's own identifiers first, the caller's on top: a surface that hosts one system for\n * several subjects (a tool pointed at one application at a time) names the subject here, and\n * the backend folds the whole set into the thread's `contextRef`, which `fetchConversationHistory`\n * lists by when handed the same identifiers.\n */\n const contextResourceIdentifiers: Record<string, string> = {};\n if (appScope?.currentOrganizationId) {\n contextResourceIdentifiers.organizationId = appScope.currentOrganizationId;\n }\n Object.assign(contextResourceIdentifiers, extraContextResourceIdentifiers ?? {});\n\n setExecutions(prev => {\n const next = new Map(prev);\n // Reset messages every turn: the live execution holds ONLY the current\n // turn's streamed reply. Prior turns of a continued thread live in the\n // view's transcript, so keeping them here would make the streamed bubble\n // replay the whole thread (duplicate content).\n next.set(executionId, {\n executionId,\n systemRef,\n status: FlowsActorsExecutionStatus.STARTING,\n messages: [],\n });\n return next;\n });\n\n emit<WS_FlowsActorsStartPayload>(CoreWebSocketEvent.FLOWS_ACTORS_START, {\n systemRef,\n executionId,\n contextResourceIdentifiers,\n initialInput,\n ...(options?.caseRef ? { caseRef: options.caseRef } : {}),\n ...(options?.messageId ? { messageId: options.messageId } : {}),\n });\n\n return executionId;\n }, [isConnected, emit, appScope?.currentOrganizationId]);\n\n /**\n * Respond to an approval request via WebSocket (fire-and-forget).\n * The resumed turn sends no FLOWS_ACTORS_STARTED: it continues the paused turn, streams to the conversation's\n * owner, and ends on FLOWS_ACTORS_COMPLETED (completed, cancelled) or FLOWS_ACTORS_ERROR.\n */\n const respondToApproval = useCallback((\n executionId: string,\n approvalId: string,\n approved: boolean,\n comment?: string,\n modifiedToolArgs?: Record<string, unknown>,\n reasonCode?: string,\n ): void => {\n const execution = executionsRef.current.get(executionId);\n if (!execution) {\n logDebug('Cannot respond to approval — execution not found', { executionId, approvalId });\n return;\n }\n\n if (!isConnected) {\n logDebug('Cannot respond to approval — WebSocket not connected', { executionId, approvalId });\n return;\n }\n\n logDebug('Responding to approval', { executionId, approvalId, approved, modified: modifiedToolArgs !== undefined });\n\n emit<WS_FlowsActorsApprovalResponsePayload>(CoreWebSocketEvent.FLOWS_ACTORS_APPROVAL_RESPONSE, {\n systemRef: execution.systemRef,\n executionId,\n approvalId,\n approved,\n comment,\n /*\n * The decision's id, echoed (#1594). The server addresses the answer by it and reads the owner,\n * credential and agent instance off the row — so nothing here can point the answer at a different\n * conversation, and a reviewer answering someone else's decision reaches it.\n */\n ...(execution.pendingApproval?.decisionRef ? { decisionRef: execution.pendingApproval.decisionRef } : {}),\n // #2903: the presentation this answer was given on. The server refuses an answer naming none, or a stale one.\n ...(execution.pendingApproval?.presentationId ? { presentationId: execution.pendingApproval.presentationId } : {}),\n /*\n * The arguments the approver AUTHORED (#566), when they edited the proposed call.\n *\n * Sent only when present. Sending `{}` for an unedited approval would reach the server as a\n * modification the tool's schema then rejects, turning every ordinary approval into a\n * refusal — the mirror of the defect that made this field necessary.\n */\n ...(modifiedToolArgs ? { modifiedToolArgs } : {}),\n // Why the approver changed or rejected the call (#1921), one of the application's declared codes. The server\n // checks it against the same vocabulary and refuses an undeclared one, leaving the pause standing.\n ...(reasonCode ? { reasonCode } : {}),\n });\n\n updateExecution(executionId, exec => ({\n ...exec,\n status: approved ? FlowsActorsExecutionStatus.RUNNING : exec.status,\n // The refusal an earlier answer met is answered by this one: a later pause must not inherit its code (#2525).\n errorCode: undefined,\n recoverable: undefined,\n pendingApproval: undefined,\n // Kept until the server reacts: a REFUSED modification leaves the pause standing, and this is\n // what the error handler restores — with the arguments the approver submitted (#587).\n answeredApproval: exec.pendingApproval\n ? { approval: exec.pendingApproval, ...(modifiedToolArgs ? { submittedToolArgs: modifiedToolArgs } : {}) }\n : undefined,\n }));\n }, [isConnected, emit, updateExecution]);\n\n const answerQuestion = useCallback((\n executionId: string,\n optionRef: string,\n values: readonly { ref: string; value: HumanDecision_AnswerValue }[],\n comment?: string,\n ): void => {\n const execution = executionsRef.current.get(executionId);\n const pending = execution?.pendingApproval;\n if (!execution || !pending?.question || !pending.decisionRef || !isConnected) {\n logDebug('Cannot answer a question — no paused question, or the WebSocket is not connected', { executionId });\n return;\n }\n const sendsAnswers = optionRef === AskPersonOptionRef.ANSWER;\n emit<WS_FlowsActorsApprovalResponsePayload>(CoreWebSocketEvent.FLOWS_ACTORS_APPROVAL_RESPONSE, {\n systemRef: execution.systemRef,\n executionId,\n approvalId: pending.approvalId,\n decisionRef: pending.decisionRef,\n // #2903: the presentation this answer was given on.\n ...(pending.presentationId ? { presentationId: pending.presentationId } : {}),\n // Not read for a question: the answer below is what settles it. Sent because the payload requires a verdict.\n approved: sendsAnswers,\n answer: { decisionId: pending.decisionRef, optionRef, values: [...values] },\n // A note in the person's own words travels with the answer, or with the decline, to the agent.\n ...(comment ? { comment } : {}),\n });\n updateExecution(executionId, exec => ({\n ...exec,\n status: FlowsActorsExecutionStatus.RUNNING,\n errorCode: undefined,\n recoverable: undefined,\n pendingApproval: undefined,\n // Kept until the server reacts: an answer its form refuses leaves the question pending, and this restores it.\n answeredApproval: exec.pendingApproval ? { approval: exec.pendingApproval } : undefined,\n }));\n }, [isConnected, emit, updateExecution]);\n\n /**\n * Get execution by ID\n */\n const getExecution = useCallback((executionId: string): FlowsActorsExecution | undefined => {\n return executionsRef.current.get(executionId);\n }, []);\n\n /**\n * Get system by ref\n */\n const getSystem = useCallback((systemRef: string): FlowActorSystem_FrontendInfo | undefined => {\n return systems.find(s => s.ref === systemRef);\n }, [systems]);\n\n const cancelExecution = useCallback((executionId: string): void => {\n const execution = executionsRef.current.get(executionId);\n if (!execution || !isConnected) return;\n emit<WS_FlowsActorsCancelPayload>(CoreWebSocketEvent.FLOWS_ACTORS_CANCEL, { systemRef: execution.systemRef, executionId });\n }, [isConnected, emit]);\n\n const clearExecution = useCallback((executionId: string): void => {\n setExecutions(prev => {\n if (!prev.has(executionId)) return prev;\n const next = new Map(prev);\n next.delete(executionId);\n return next;\n });\n }, []);\n\n /**\n * Initialize on mount when authenticated\n */\n useEffect(() => {\n if (userOrgs.isAuthenticated()) {\n return;\n }\n\n hasInitializedRef.current = false;\n setSystems([]);\n setAutonomousAgents([]);\n setChatAgents([]);\n setChatConnectionRefs([]);\n setError(null);\n setExecutions(new Map());\n }, [userOrgs]);\n\n const requestAgentDeclarations = useCallback((): void => {\n if (\n hasInitializedRef.current\n || !appConfig?.runtime?.endPoints?.main_backend_api\n || !httpClient\n || !userOrgs.isAuthenticated()\n ) {\n return;\n }\n hasInitializedRef.current = true;\n void refreshSystems();\n }, [appConfig?.runtime?.endPoints?.main_backend_api, httpClient, userOrgs, refreshSystems]);\n\n useEffect(() => {\n if (\n !hasInitializedRef.current\n && hasConfiguredFlowsActorsViews\n && appConfig?.runtime?.endPoints?.main_backend_api\n && httpClient\n && userOrgs.isAuthenticated()\n ) {\n hasInitializedRef.current = true;\n refreshSystems();\n }\n }, [\n appConfig?.runtime?.endPoints?.main_backend_api,\n hasConfiguredFlowsActorsViews,\n httpClient,\n userOrgs,\n refreshSystems,\n ]);\n\n /**\n * A dropped socket ENDS every turn still in flight on it.\n *\n * The server emits a turn's events to the socket that started it (`conversational-execution`'s\n * emitter is bound to that socket), so once it drops, no `STARTED`, `MESSAGE`, `COMPLETED` or\n * `ERROR` for that turn can ever arrive — not after a reconnect either, which opens a different\n * socket. Before this, a turn sent into a companion that restarted a second later stayed `STARTING`\n * for good: the page showed neither the question nor an error, and the composer sat on its stop\n * button (measured for eight minutes on the creation workbench, 2026-09-24, #1464).\n *\n * Only `STARTING` and `RUNNING` end. A turn `AWAITING_APPROVAL` is a persisted suspension the person\n * answers later, over whatever socket is live then, so a drop does not end it. The error is\n * RECOVERABLE and names its cause with a CLIENT-DETECTED code, carrying no text of its own: every\n * surface already words an errored turn, and a surviving server still completes and persists the\n * turn, which the thread's history then shows.\n */\n const wasConnectedRef = useRef(isConnected);\n useEffect(() => {\n const dropped = wasConnectedRef.current && !isConnected;\n wasConnectedRef.current = isConnected;\n if (!dropped) return;\n setExecutions(prev => {\n let next: Map<string, FlowsActorsExecution> | null = null;\n for (const [executionId, execution] of prev) {\n if (execution.status !== FlowsActorsExecutionStatus.STARTING && execution.status !== FlowsActorsExecutionStatus.RUNNING) continue;\n next ??= new Map(prev);\n next.set(executionId, {\n ...execution,\n status: FlowsActorsExecutionStatus.ERROR,\n recoverable: true,\n errorCode: FlowsActors_ExecutionErrorCode.CONNECTION_LOST,\n });\n }\n return next ?? prev;\n });\n }, [isConnected]);\n\n /**\n * WebSocket event listeners for FlowsActors inbound events.\n * Follows the WebSocketEventBridge pattern: subscribe on connect, cleanup on disconnect.\n */\n useEffect(() => {\n if (!isConnected) {\n return;\n }\n\n const unsubStarted = on<WS_FlowsActorsStartedPayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_STARTED,\n (payload) => {\n logDebug('Execution started', { executionId: payload.executionId });\n // Only ever a success: a turn that could not start reports on FLOWS_ACTORS_ERROR (#2524).\n updateExecution(payload.executionId, exec => ({\n ...exec,\n status: FlowsActorsExecutionStatus.RUNNING,\n }));\n }\n );\n\n const unsubMessage = on<WS_FlowsActorsMessagePayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_MESSAGE,\n (payload) => {\n logDebug('Execution message', { executionId: payload.executionId, type: payload.messageType, messageId: payload.messageId, isFinal: payload.isFinal });\n\n /*\n * A pause is announced HERE, inside a PROGRESS message's `data` bag — never on a separate\n * approval-request event, which nothing emitted and #2524 removed. Parsed rather than key-picked, so\n * the browser and the producer share one named contract; a bag that is not an announcement\n * simply fails the parse and the message is stored like any other (#528).\n */\n const announcement = WS_FlowsActorsApprovalAnnouncementDataSchema.safeParse(payload.data);\n if (announcement.success) {\n const { approvalId, toolName } = announcement.data;\n logDebug('Approval requested', { executionId: payload.executionId, approvalId, toolName });\n updateExecution(payload.executionId, exec => ({\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n // A new pause supersedes whatever this client answered before it.\n answeredApproval: undefined,\n // The typed announcement only: the card words it in the reader's language (#3201). The PROGRESS text is\n // the tool's name, never a sentence to render.\n pendingApproval: pendingApprovalFromAnnouncement(announcement.data),\n }));\n }\n\n updateExecution(payload.executionId, exec => ({\n ...exec,\n messages: mergeStreamedMessage(\n exec.messages,\n {\n type: payload.messageType,\n content: payload.content,\n data: payload.data,\n timestamp: payload.timestamp instanceof Date ? payload.timestamp : new Date(payload.timestamp),\n messageId: payload.messageId,\n },\n payload.isFinal === true,\n ),\n }));\n }\n );\n\n const unsubCompleted = on<WS_FlowsActorsCompletedPayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_COMPLETED,\n (payload) => {\n logDebug('Execution completed', { executionId: payload.executionId, status: payload.status, duration: payload.duration });\n // The server's run status, read through the one mapping (#2524): COMPLETED, or CANCELLED when the person\n // stopped it. A failure never arrives here — it reports on FLOWS_ACTORS_ERROR with its reason.\n updateExecution(payload.executionId, exec => ({\n ...exec,\n status: turnStatusFromServer(payload.status),\n pendingApproval: undefined,\n duration: payload.duration,\n ...(payload.usage ? { usage: payload.usage } : {}),\n }));\n }\n );\n\n const unsubError = on<WS_FlowsActorsErrorPayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_ERROR,\n (payload) => {\n logDebug('Execution error', { executionId: payload.executionId, errorCode: payload.errorCode, recoverable: payload.recoverable });\n updateExecution(payload.executionId, exec => {\n /*\n * A refused MODIFICATION is not a failed turn (#587). The server leaves the pause standing and\n * says so with `recoverable: true`, so the decision goes back on screen — with the reason, and\n * with the arguments the approver submitted — instead of vanishing while the server still\n * waits for it. Treating it as ERROR is what made the approval disappear on every refusal.\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_MODIFICATION_REJECTED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: payload.approvalModificationRefusal ?? { reason: '' },\n rejectedToolArgs: exec.answeredApproval.submittedToolArgs,\n // A refusal of THIS answer, not the reason code of an earlier one (#1921).\n reasonCodeRefused: undefined,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * A reason code the application does not declare is refused while the pause stands (#1921). The approval goes\n * back on screen as it was asked, and the card says why in its own labels — the server's English sentence is\n * not appended to the conversation, because words a reader sees come from the label tree.\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_REASON_CODE_REJECTED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: undefined,\n rejectedToolArgs: undefined,\n reasonCodeRefused: true,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * A decision refused by the application's consent requirement is not a failed turn either (#534). The\n * server checks the requirement BEFORE it releases the pause, so the approval still stands and can be\n * answered once the person has recorded their consent: it goes back on screen with its `errorCode`, which\n * the conversation thread words (`consentRequired`) above the decision rather than as an argument-edit error.\n * The server's English `errorMessage` is not appended to the turn: it is no reply, and no translator reaches\n * it (#2525).\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.SERVICE_CONSENT_REQUIRED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n // Restored as it was ASKED, not as it was last refused: an earlier refused edit's error must not\n // reappear, and the arguments just submitted reopen the editor (#534 fourth review F5).\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: undefined,\n rejectedToolArgs: exec.answeredApproval.submittedToolArgs,\n reasonCodeRefused: undefined,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * DECISION_PENDING is not this tab's failure either (#2721 review F-2). It arrives for a message refused\n * because the thread waits for a decision, and as the END of a turn whose own end was not written because\n * another turn's decision now holds the thread (#2721 re-review N-1). It reaches every tab of the owner's\n * room, so a tab that holds THAT decision — asked, or answered and awaiting the server — keeps it exactly as\n * it is: the decision is the thread's state, and clearing it here took the card away from the one tab that\n * could act on it. Any other tab records it as ERROR, worded by `decisionPending`, and its history reload\n * restores the waiting decision over it (`fetchConversationHistory`). That includes a tab holding a\n * DIFFERENT decision (#2721 re-review R-2): the tab that answered D1 while another door's turn paused the\n * thread on D2, or a second tab still showing the settled D1. Kept, either stayed RUNNING or on a dead card,\n * and history could not help, since it never replaces an entry it does not see as refused.\n */\n const heldDecisionRef = exec.pendingApproval?.decisionRef ?? exec.answeredApproval?.approval.decisionRef;\n if (payload.errorCode === FlowsActors_ExecutionErrorCode.DECISION_PENDING\n && heldDecisionRef !== undefined && heldDecisionRef === payload.waitingDecisionRef) {\n return exec;\n }\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.ERROR,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: undefined,\n answeredApproval: undefined,\n };\n });\n }\n );\n\n return () => {\n unsubStarted();\n unsubMessage();\n unsubCompleted();\n unsubError();\n };\n }, [isConnected, on, updateExecution]);\n\n const contextValue = useMemo<FlowsActorsContextType>(() => ({\n systems,\n autonomousAgents,\n chatAgents,\n chatConnectionRefs,\n requestAgentDeclarations,\n isLoading,\n error,\n executions,\n startExecution,\n respondToApproval,\n answerQuestion,\n cancelExecution,\n clearExecution,\n getExecution,\n getSystem,\n refreshSystems,\n fetchConversationHistory,\n fetchConversation,\n deleteConversation,\n }), [systems, autonomousAgents, chatAgents, chatConnectionRefs, requestAgentDeclarations, isLoading, error, executions, startExecution, respondToApproval, answerQuestion, cancelExecution, clearExecution, getExecution, getSystem, refreshSystems, fetchConversationHistory, fetchConversation, deleteConversation]);\n\n return (\n <FlowsActorsContext.Provider value={contextValue}>\n {children}\n </FlowsActorsContext.Provider>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"FlowsActorsContext.js","sourceRoot":"","sources":["../../../../src/core/flows-actors/FlowsActorsContext.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,QAAQ,EAAa,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3G,OAAO,EAKL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAGlB,6CAA6C,EAI7C,4CAA4C,EAE5C,8BAA8B,EAM9B,kBAAkB,EAIlB,mCAAmC,EACnC,wBAAwB,EACxB,iCAAiC,EAKjC,kBAAkB,EAGlB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,2DAA2D,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kEAAkE,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iEAAiE,CAAC;AAE3G,MAAM,MAAM,GAA0B,qBAAqB,CAAC,SAAS,EAAE,CAAC;AACxE,MAAM,QAAQ,GAAiE,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;AACxH,MAAM,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAExD,MAAM,0BAA0B,GAAW,GAAG,CAAC;AAI/C,SAAS,cAAc,C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AAI,IAAI,CAAC;YACtB,CAAC,CAAC,CAAC;QACL,CAAC,CACF,CAAC;QAEF,OAAO,GAAG,EAAE;YACV,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;YACf,cAAc,EAAE,CAAC;YACjB,UAAU,EAAE,CAAC;YACb,YAAY,EAAE,CAAC;QACjB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAG,OAAO,CAAyB,GAAG,EAAE,CAAC,CAAC;QAC1D,OAAO;QACP,gBAAgB;QAChB,oBAAoB;QACpB,UAAU;QACV,kBAAkB;QAClB,wBAAwB;QACxB,SAAS;QACT,KAAK;QACL,UAAU;QACV,cAAc;QACd,iBAAiB;QACjB,cAAc;QACd,eAAe;QACf,cAAc;QACd,YAAY;QACZ,SAAS;QACT,cAAc;QACd,wBAAwB;QACxB,iBAAiB;QACjB,kBAAkB;KACnB,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAE7U,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC7C,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { createContext, useState, ReactNode, useMemo, useEffect, useCallback, useRef } from 'react';\nimport {\n FlowActorSystem_FrontendInfo,\n FlowsActors_FrontendInfoResponse,\n type FlowsActors_AutonomousAgent_FrontendInfo,\n type FlowsActors_ChatAgent_FrontendInfo,\n MAIN_API_BASE_PATH,\n ManualControllerRouteKey,\n CoreWebSocketEvent,\n type FlowsActors_ConversationExecution,\n type FlowsActors_ConversationHistoryResponse,\n FlowsActors_ConversationHistoryResponseSchema,\n type WS_FlowsActorsStartPayload,\n type WS_FlowsActorsStartedPayload,\n type WS_FlowsActorsMessagePayload,\n WS_FlowsActorsApprovalAnnouncementDataSchema,\n type WS_FlowsActorsApprovalAnnouncementData,\n FlowsActors_ExecutionErrorCode,\n type WS_FlowsActorsApprovalModificationRefusal,\n type WS_FlowsActorsApprovalResponsePayload,\n type WS_FlowsActorsCancelPayload,\n type WS_FlowsActorsCompletedPayload,\n type WS_FlowsActorsTurnUsage,\n FlowsActors_Status,\n type FlowsActors_MessageContentType,\n type WS_FlowsActorsErrorPayload,\n type WS_SystemErrorPayload,\n WS_InboundEventRefusedDetailsSchema,\n WebSocketSystemErrorCode,\n canonicalizeFlowsActorsContextRef,\n type HumanDecision_RouteKind,\n type HumanDecision_Presentation,\n type HumanDecision_Request,\n type HumanDecision_AnswerValue,\n AskPersonOptionRef,\n type WorkUnitRef,\n type ResourceOperationRiskLevel,\n buildManualControllerRoutePath,\n} from '@wildo-ai/saas-models';\nimport type { SerializableZodSchema } from '@wildo-ai/zod-decorators';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\nimport { errorManagement } from '~wildo-frontend-lib/core/errors/error-management.frontend.service';\nimport { useApplication } from '~wildo-frontend-lib/core/runtime/useApplication';\nimport { useUserOrgs } from '~wildo-frontend-lib/core/security/useUserOrgs';\nimport { useAppScopeSafe } from '~wildo-frontend-lib/core/scope/useAppScope';\nimport { useWebSocket } from '~wildo-frontend-lib/core/requests/websockets/useWebSocket';\nimport { readJsonResponse } from '~wildo-frontend-lib/core/requests/json-response-reading.frontend';\nimport { useEmitLoadingScope } from '~wildo-frontend-lib/core/loading/useEmitLoadingScope';\nimport { ContextLoadingIdentifier } from '~wildo-frontend-lib/core/loading/loading-types.frontend.schemas';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\nconst logDebug: (message: string, context?: Record<string, unknown>) => void = logger.debugByType('FlowsActorsContext');\nlogger.setDebugTypeLogging('FlowsActorsContext', false);\n\nconst MAX_MESSAGES_PER_EXECUTION: number = 500;\n\ntype ExecutionMessage = FlowsActorsExecution['messages'][number];\n\nfunction appendMessages(existing: ExecutionMessage[], ...newMsgs: ExecutionMessage[]): ExecutionMessage[] {\n const combined = [...existing, ...newMsgs];\n return combined.length > MAX_MESSAGES_PER_EXECUTION\n ? combined.slice(combined.length - MAX_MESSAGES_PER_EXECUTION)\n : combined;\n}\n\n/**\n * Merge one streamed message event into the list. When the event carries a\n * `messageId` matching an existing message, that message is updated in place:\n * a delta event (`isFinal !== true`) appends its `content`; the terminal event\n * (`isFinal === true`) replaces `content` with the authoritative full text (and\n * adopts its rendered `type`, e.g. text → markdown). Events without a known\n * `messageId` are appended as new entries (one-shot / legacy behavior).\n */\nfunction mergeStreamedMessage(\n existing: ExecutionMessage[],\n incoming: ExecutionMessage,\n isFinal: boolean,\n): ExecutionMessage[] {\n if (incoming.messageId) {\n const index = existing.findIndex(m => m.messageId === incoming.messageId);\n if (index >= 0) {\n const updated = [...existing];\n const prev = updated[index];\n updated[index] = {\n ...prev,\n type: incoming.type,\n content: isFinal ? incoming.content : prev.content + incoming.content,\n data: incoming.data ?? prev.data,\n timestamp: incoming.timestamp,\n };\n return updated;\n }\n }\n return appendMessages(existing, incoming);\n}\n\n/**\n * How a turn stands in THIS CLIENT — its view of a turn, which is not the server's run status.\n *\n * Kept distinct on purpose (#2524): the client knows states the server never holds — STARTING (the start is sent and\n * not yet acknowledged), and an ERROR it detects itself when the socket drops — and the server knows states the\n * client never shows (READY, ABORTED). The WIRE speaks the server's vocabulary (`FlowsActors_Status` on\n * `FLOWS_ACTORS_COMPLETED`), and {@link turnStatusFromServer} is the ONE place that reads it into this one.\n */\nexport enum FlowsActorsExecutionStatus {\n IDLE = 'idle',\n STARTING = 'starting',\n RUNNING = 'running',\n AWAITING_APPROVAL = 'awaiting_approval',\n COMPLETED = 'completed',\n /** The person stopped the turn (#2524). Not an error: nothing failed, and the turn's thread continues. */\n CANCELLED = 'cancelled',\n ERROR = 'error',\n}\n\n/**\n * The client's turn status for a status the server ENDED a turn with (`FLOWS_ACTORS_COMPLETED.status`). Total over the\n * server vocabulary, so a status added to it is a compile error here rather than a turn the client never settles.\n */\nconst TURN_STATUS_FROM_SERVER: Record<FlowsActors_Status, FlowsActorsExecutionStatus> = {\n [FlowsActors_Status.COMPLETED]: FlowsActorsExecutionStatus.COMPLETED,\n [FlowsActors_Status.CANCELLED]: FlowsActorsExecutionStatus.CANCELLED,\n [FlowsActors_Status.AWAITING_APPROVAL]: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n [FlowsActors_Status.PROCESSING]: FlowsActorsExecutionStatus.RUNNING,\n [FlowsActors_Status.PENDING]: FlowsActorsExecutionStatus.STARTING,\n [FlowsActors_Status.READY]: FlowsActorsExecutionStatus.STARTING,\n // A run the server ended without completing it, whatever the reason, is an error to the person watching it.\n [FlowsActors_Status.FAILED]: FlowsActorsExecutionStatus.ERROR,\n [FlowsActors_Status.ABORTED]: FlowsActorsExecutionStatus.ERROR,\n};\n\n/** Read a server run status into the client's turn status — the one mapping (#2524). */\nexport function turnStatusFromServer(status: FlowsActors_Status): FlowsActorsExecutionStatus {\n return TURN_STATUS_FROM_SERVER[status] ?? FlowsActorsExecutionStatus.ERROR;\n}\n\n/**\n * The one mapping from a server approval announcement to the client's pending decision — shared by the\n * live socket handler and the history seeding (#1601), so a decision reached either way renders and\n * answers identically.\n *\n * It carries the announcement's typed state and no sentence (#3201). The card words the decision itself, from its\n * presentation's title (`describeHumanDecisionCard`'s phrase) and the tool's title in `flows_actors_tools`, in the\n * reader's language. It used to carry the server's English `Waiting for approval to run \"<tool>\".` as\n * `actionDescription`, which the card rendered as written, naming the tool by its identifier.\n */\nfunction pendingApprovalFromAnnouncement(\n announcement: WS_FlowsActorsApprovalAnnouncementData,\n): NonNullable<FlowsActorsExecution['pendingApproval']> {\n const { approvalId, decisionRef, routeKind, toolName, toolArgs, toolInputSchema, requestedAt, expiresAt, reasonCodes, riskLevel, question, presentation, presentationId } = announcement;\n return {\n approvalId,\n ...(riskLevel ? { riskLevel } : {}),\n toolName,\n toolArgs,\n // A descriptor the transport does not re-validate (#587) — typed here for the editor, which falls\n // back to raw JSON for any shape it cannot render as fields.\n toolInputSchema: toolInputSchema as SerializableZodSchema | undefined,\n requestedAt: new Date(requestedAt),\n expiresAt: expiresAt ? new Date(expiresAt) : undefined,\n decisionRef,\n routeKind,\n ...(reasonCodes && reasonCodes.length > 0 ? { reasonCodes } : {}),\n ...(question ? { question } : {}),\n ...(presentation ? { presentation } : {}),\n ...(presentationId ? { presentationId } : {}),\n };\n}\n\n/**\n * Active Execution State\n */\nexport interface FlowsActorsExecution {\n executionId: string;\n systemRef: string;\n status: FlowsActorsExecutionStatus;\n messages: Array<{\n /** The message vocabulary's VALUE (`FlowsActors_MessageContentType`), the wire's `messageType`. */\n type: `${FlowsActors_MessageContentType}`;\n content: string;\n data?: Record<string, unknown>;\n timestamp: Date;\n /**\n * Correlation id for streamed messages. Consecutive `messageId`-sharing\n * events belong to one logical message: non-final events append their\n * delta to `content`; the final event replaces `content` with the full text.\n * Absent for one-shot messages (each is its own entry).\n */\n messageId?: string;\n }>;\n /**\n * The decision a paused turn is waiting on, read from `WS_FlowsActorsApprovalAnnouncementData` — carried in the `data`\n * bag of a PROGRESS message: tool name, tool arguments, timing, the isolation axis (#528), and the risk the call's\n * approval gate declares (#2526).\n */\n pendingApproval?: {\n approvalId: string;\n /**\n * The risk the call's approval gate DECLARES (`humanApproval.riskLevel`), as the decision's inbox card carries it\n * (#2526). Absent when the gate declares none; a surface then shows no risk claim, because nothing declared one.\n */\n riskLevel?: ResourceOperationRiskLevel;\n expiresAt?: Date;\n /** The tool call being gated, and its arguments — the structured thing being approved. */\n toolName?: string;\n toolArgs?: Record<string, unknown>;\n /**\n * The gated tool's input schema as a serialized descriptor (#587), so an editor can offer the\n * tool's fields. A rendering hint only — the server re-validates every modification.\n */\n toolInputSchema?: SerializableZodSchema;\n /**\n * The server's refusal of the approver's last edit, when it refused one (#587). The approval is\n * still pending when this is set: a refused modification leaves the pause standing, so the\n * surface keeps the decision on screen with the reason instead of dropping it.\n *\n * STRUCTURED, not the server's sentence (#1186): the card renders a label per reason, naming the\n * tool and the offending arguments as parameters. A server that sent no structure (older than the\n * field) yields an empty `reason`, which the card reads as \"refused, reason not stated\".\n */\n modificationRefusal?: WS_FlowsActorsApprovalModificationRefusal;\n /** The arguments the approver submitted in that refused edit, so the editor reopens on them (#587). */\n rejectedToolArgs?: Record<string, unknown>;\n /**\n * What the server built for the person to read (#2903): the arguments as strings it already projected, which the card\n * renders verbatim. Absent on a turn paused before decisions were routed.\n */\n presentation?: HumanDecision_Presentation;\n /** The presentation's id, echoed on the answer: the server refuses an answer that does not name what it was given on. */\n presentationId?: string;\n requestedAt?: Date;\n /**\n * The decision's one id (#1594), ECHOED back on the answer. The server addresses the decision by\n * it and reads everything else — owner, credential, agent instance — off the row.\n */\n decisionRef?: string;\n /**\n * Who answers it (#1594). Anything but OWNER is answered by a reviewer from their inbox, and the person\n * whose conversation this is may not answer it — so a surface shows it as waiting rather than offering\n * buttons the server would refuse. Absent means OWNER (a pause raised before routes existed).\n */\n routeKind?: HumanDecision_RouteKind;\n /**\n * The reason codes the answer may carry (#1921) — the application's declared vocabulary, offered when the approver\n * changes or rejects the call. Absent when the application declares none.\n */\n reasonCodes?: readonly string[];\n /**\n * Set when the server refused the last answer's reason code (#1921): the pause stands, the approval is back on\n * screen, and the card says the reason was not one the application offers. Cleared by the next answer.\n */\n reasonCodeRefused?: boolean;\n /**\n * Set when the server refused the last answer as an approval of a HIGH or CRITICAL call that stated no reason\n * (`APPROVAL_REASON_REQUIRED`): the pause stands, the approval is back on screen, and the card says an approval of\n * this call needs the approver's reason. Cleared by the next answer.\n */\n approvalReasonRequired?: boolean;\n /**\n * The QUESTION, when the paused call is the agent asking its person (#2720): its questions, its two answers and the\n * form they are asked through. Answered with `answerQuestion`, never approved.\n */\n question?: HumanDecision_Request;\n };\n /** Set when the last error is recoverable (UI can offer a retry action) */\n recoverable?: boolean;\n /**\n * The approval this client last ANSWERED, kept until the server's reaction is known (#587).\n *\n * Answering clears `pendingApproval` at once, which is right when the decision lands. But a refused\n * modification leaves the server's pause standing, and without this the surface would have nothing to\n * put back on screen — the approval would vanish while still waiting. `submittedToolArgs` is what the\n * approver authored, so a restored editor reopens on their edit rather than on the model's call.\n */\n answeredApproval?: {\n approval: NonNullable<FlowsActorsExecution['pendingApproval']>;\n submittedToolArgs?: Record<string, unknown>;\n };\n duration?: number;\n /** The tokens the turn spent — present only for a person who may read model cost (#2524). */\n usage?: WS_FlowsActorsTurnUsage;\n errorCode?: string;\n}\n\n/**\n * FlowsActors Context Type\n */\nexport interface FlowsActorsContextType {\n /** Available frontend-visible FlowActorSystems */\n systems: FlowActorSystem_FrontendInfo[];\n\n /**\n * The autonomous agents the application declares (#1611), in declaration order — the closed set an\n * organization OAuth client may be bound to, so a binding form offers these rather than free text (#1812).\n * Empty until the first fetch settles, and when the application declares none.\n */\n autonomousAgents: FlowsActors_AutonomousAgent_FrontendInfo[];\n\n /**\n * The flows that run as an organization's machine (a schedule, a resource event), by ref: with {@link autonomousAgents},\n * the closed set an organization OAuth client may be bound to. Empty until the first fetch settles, and when there is none.\n */\n machineBoundFlowRefs: string[];\n\n /**\n * The chat agents the application declares (#2665), in declaration order — the closed set an organization's chat\n * setting may name. Empty until the first fetch settles, and when the application declares none.\n */\n chatAgents: FlowsActors_ChatAgent_FrontendInfo[];\n\n /**\n * The chat connections an organization may choose an agent for (#2665): the application's providers enabled here\n * with a chat endpoint (`slack`, `microsoft-teams-bot`). Empty until the first fetch settles, and when there is none.\n */\n chatConnectionRefs: string[];\n\n /**\n * Ask for the agent declarations — {@link autonomousAgents}, {@link chatAgents} and {@link chatConnectionRefs} — to be\n * loaded, whatever else this application renders.\n *\n * The provider bootstraps `/flows-actors/frontend-info` only when the application configures a flows/actors\n * VIEW (pinned: an application with no chat surface makes no such request). Neither an autonomous agent nor a chat\n * agent needs a view, so a surface that needs the declarations (the OAuth client binding form, #1812; the chat\n * settings form, #2665) calls this instead. It fetches once per sign-in, and does nothing when a fetch already ran or\n * cannot run yet (signed out, no backend endpoint, no http client). Idempotent, so call it from an effect.\n */\n requestAgentDeclarations: () => void;\n\n /** Loading state */\n isLoading: boolean;\n\n /** Error state */\n error: Error | null;\n\n /** Active executions */\n executions: Map<string, FlowsActorsExecution>;\n\n /** Start a new execution (fire-and-forget via WebSocket; returns local executionId) */\n /**\n * Send a turn. A new `executionId` opens a thread; an existing one continues it. The optional\n * identifiers are folded into the thread's `contextRef` on open (see `fetchConversationHistory`).\n *\n * `options.caseRef` (#1598) names the case the thread works on — a row of a resource declared `workUnit: true` —\n * so the model calls it makes are attributed to that case. Read when the thread OPENS; a later turn keeps the\n * thread's case. The server admits it only if the caller can read that row.\n */\n startExecution: (\n systemRef: string,\n initialInput?: Record<string, unknown>,\n existingExecutionId?: string,\n extraContextResourceIdentifiers?: Record<string, string>,\n /**\n * `messageId`: the id the person's message is stored under (#2525 review N1). A page drawing the message before the\n * record holds it mints one, and recognises the stored message by it.\n */\n options?: { caseRef?: WorkUnitRef; messageId?: string },\n ) => string | null;\n\n /** Respond to an approval request (fire-and-forget via WebSocket) */\n /**\n * `modifiedToolArgs` (#566) replaces the arguments the agent proposed. Absent means \"run the call\n * as proposed\"; the server validates the edit against the tool's own schema and refuses through\n * `FLOWS_ACTORS_ERROR` with the approval left pending.\n */\n /** `reasonCode` is one of the approval's `reasonCodes` (#1921), given when the approver changes or rejects the call. */\n respondToApproval: (executionId: string, approvalId: string, approved: boolean, comment?: string, modifiedToolArgs?: Record<string, unknown>, reasonCode?: string) => void;\n\n /**\n * Answer the paused turn's QUESTION (#2720): the option chosen and, when it sends answers, one value per question as\n * its JSON (what `HumanDecisionForm` reads). The server checks the values with the question's own form and refuses\n * through `FLOWS_ACTORS_ERROR` with the question left pending.\n */\n answerQuestion: (executionId: string, optionRef: string, values: readonly { ref: string; value: HumanDecision_AnswerValue }[], comment?: string) => void;\n\n /**\n * Stop the person's own running turn (#2524). The server ends it CANCELLED, keeping what it had produced, and the\n * turn settles on `FLOWS_ACTORS_COMPLETED` like any other — nothing is settled here, so a stop that races the turn's\n * own end cannot leave the two disagreeing.\n */\n cancelExecution: (executionId: string) => void;\n\n /** Remove a completed/errored execution from state */\n clearExecution: (executionId: string) => void;\n\n /** Get execution by ID (reads from ref; consume `executions` to re-render on changes) */\n getExecution: (executionId: string) => FlowsActorsExecution | undefined;\n\n /** Get system by ref */\n getSystem: (systemRef: string) => FlowActorSystem_FrontendInfo | undefined;\n\n /** Refresh systems from backend */\n refreshSystems: () => Promise<void>;\n\n /**\n * The caller's OWN persisted threads for a system, server-authoritative (the executions resource, USER_SELF-scoped to\n * the caller): what repopulates the discussion list and the transcripts on a fresh page load. With\n * `contextResourceIdentifiers`, only the threads opened in that context — the same identifiers passed to\n * `startExecution`, canonicalised the same way — which is how a surface hosting one system for several subjects keeps\n * them apart.\n *\n * Reads a PAGE (#2528): the newest threads, or with `before` (the oldest `createdAt` a host already holds) the ones\n * before it, inclusive — so a host keeps each `executionId` once. `hasOlder` says whether another page remains.\n *\n * Resolves an empty page when there are none, or when the backend has no flows-actors history surface (feature\n * absent), and `undefined` when the read FAILED (#2525 review M4). The two must not look alike: a host re-reads after\n * every turn, and treating a failure as \"no threads\" emptied its discussion list and transcript — under the very\n * outage that had just ended the turn. Keep the last good list on `undefined`.\n */\n fetchConversationHistory: (\n systemRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n page?: { readonly before?: string },\n ) => Promise<FlowsActors_ConversationHistoryResponse | undefined>;\n\n /**\n * ONE of the caller's own threads, read by id (#4013): the one a link named, which may be older than the newest page a\n * host holds. Read through the same confined history route, so with `contextResourceIdentifiers` it answers only a\n * thread opened in that context, exactly as a page would list it.\n *\n * Resolves the thread, `null` when the caller has no such thread here (deleted, someone else's, another system or\n * context), and `undefined` when the read FAILED: as for a page, the two must not look alike.\n */\n fetchConversation: (\n systemRef: string,\n contextResourceIdentifiers: Record<string, string> | undefined,\n executionId: string,\n ) => Promise<FlowsActors_ConversationExecution | null | undefined>;\n\n /**\n * Delete ONE of the caller's own persisted conversations (a discussion). Runs\n * under the caller's auth, so the executions resource's USER_SELF owner filter\n * only ever deletes the caller's own row. Resolves once the server confirms.\n */\n deleteConversation: (executionId: string) => Promise<void>;\n}\n\n/**\n * FlowsActors Context\n * @internal - Use useFlowsActors() hook instead of accessing this directly\n */\nexport const FlowsActorsContext: React.Context<FlowsActorsContextType | undefined> = createContext<FlowsActorsContextType | undefined>(undefined);\n\n/**\n * FlowsActors Provider\n *\n * Manages:\n * - Available FlowActorSystems (fetched at startup)\n * - Active execution state\n * - WebSocket communication for real-time updates\n */\nexport const FlowsActorsProvider: React.FC<{ children: ReactNode }> = ({ children }) => {\n const { appConfig, frontendConfiguration, httpClient } = useApplication();\n const userOrgs = useUserOrgs();\n const appScope = useAppScopeSafe();\n const { on, emit, isConnected } = useWebSocket();\n const hasInitializedRef = useRef(false);\n const hasConfiguredFlowsActorsViews = (frontendConfiguration?.flowsActorsViews?.length ?? 0) > 0;\n\n const [systems, setSystems] = useState<FlowActorSystem_FrontendInfo[]>([]);\n const [autonomousAgents, setAutonomousAgents] = useState<FlowsActors_AutonomousAgent_FrontendInfo[]>([]);\n const [machineBoundFlowRefs, setMachineBoundFlowRefs] = useState<string[]>([]);\n const [chatAgents, setChatAgents] = useState<FlowsActors_ChatAgent_FrontendInfo[]>([]);\n const [chatConnectionRefs, setChatConnectionRefs] = useState<string[]>([]);\n const [isLoading, setIsLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [executions, setExecutions] = useState<Map<string, FlowsActorsExecution>>(new Map());\n // L-2.b: explicit \"has the registry ever completed at least one successful\n // fetch\" marker, distinct from `systems.length > 0` (an empty registry is\n // still a successful fetch — the backend may legitimately ship zero\n // flow-actor systems for a given app, and we don't want every refresh of an\n // empty registry to render as INITIAL phase).\n const [hasCompletedFetch, setHasCompletedFetch] = useState(false);\n\n useEmitLoadingScope({\n identifier: ContextLoadingIdentifier.FLOWS_ACTORS,\n isLoading,\n hasLoadedOnce: hasCompletedFetch,\n });\n const executionsRef = useRef(executions);\n executionsRef.current = executions;\n\n const updateExecution = useCallback((\n executionId: string,\n updater: (execution: FlowsActorsExecution) => FlowsActorsExecution,\n ): void => {\n setExecutions(prev => {\n const existing = prev.get(executionId);\n if (!existing) return prev;\n const next = new Map(prev);\n next.set(executionId, updater(existing));\n return next;\n });\n }, []);\n\n /**\n * Fetch frontend-visible systems from backend\n */\n const refreshSystems = useCallback(async () => {\n if (!appConfig?.runtime?.endPoints?.main_backend_api) {\n logDebug('Cannot refresh systems - API endpoint not configured');\n return;\n }\n\n if (!httpClient) {\n logDebug('Cannot refresh systems - httpClient not available');\n return;\n }\n\n setIsLoading(true);\n setError(null);\n\n try {\n // Use httpClient which handles authentication automatically. The path is\n // built from the shared route registry (same source the backend controller\n // registers with) so both sides stay in lockstep under MAIN_API_BASE_PATH.\n const data = await httpClient.get<FlowsActors_FrontendInfoResponse>(\n `${MAIN_API_BASE_PATH}${buildManualControllerRoutePath(ManualControllerRouteKey.FLOWS_ACTORS_FRONTEND_INFO)}`\n );\n setSystems(data.systems);\n setAutonomousAgents(data.autonomousAgents);\n setMachineBoundFlowRefs(data.machineBoundFlowRefs);\n setChatAgents(data.chatAgents);\n setChatConnectionRefs(data.chatConnectionRefs);\n setHasCompletedFetch(true);\n\n logDebug('Systems refreshed', { count: data.systems.length });\n\n } catch (err) {\n if (errorManagement.isNotFoundError(err)) {\n logDebug('FlowsActors backend support not available - skipping systems bootstrap');\n setSystems([]);\n setAutonomousAgents([]);\n setChatAgents([]);\n setChatConnectionRefs([]);\n setError(null);\n setHasCompletedFetch(true);\n return;\n }\n\n const error = err instanceof Error ? err : new Error('Unknown error');\n setError(error);\n logDebug('Failed to refresh systems', { error: error.message });\n } finally {\n setIsLoading(false);\n }\n }, [appConfig?.runtime?.endPoints?.main_backend_api, httpClient]);\n\n /**\n * Fetch the caller's persisted conversation history for a system. Runs under\n * the caller's own auth (httpClient), so the executions resource's USER_SELF\n * owner filter restricts rows to the caller's threads. A missing backend\n * surface (feature absent) resolves to `[]`, never an error.\n */\n const readConversationHistory = useCallback(async (\n systemRef: string,\n contextResourceIdentifiers: Record<string, string> | undefined,\n page: { readonly before?: string; readonly executionId?: string },\n ): Promise<FlowsActors_ConversationHistoryResponse | undefined> => {\n if (!httpClient) {\n logDebug('Cannot fetch conversation history - httpClient not available');\n return undefined;\n }\n try {\n const basePath = `${MAIN_API_BASE_PATH}${buildManualControllerRoutePath(ManualControllerRouteKey.FLOWS_ACTORS_HISTORY)}`;\n const contextRef = contextResourceIdentifiers === undefined\n ? undefined\n : canonicalizeFlowsActorsContextRef({\n ...(appScope?.currentOrganizationId ? { organizationId: appScope.currentOrganizationId } : {}),\n ...contextResourceIdentifiers,\n });\n const query = `?systemRef=${encodeURIComponent(systemRef)}${contextRef === undefined ? '' : `&contextRef=${encodeURIComponent(contextRef)}`}`\n + (page.before ? `&before=${encodeURIComponent(page.before)}` : '')\n + (page.executionId ? `&executionId=${encodeURIComponent(page.executionId)}` : '');\n // Its dates restored (#3478): the history's message dates arrive as RFC 3339 strings.\n const data: FlowsActors_ConversationHistoryResponse = readJsonResponse(FlowsActors_ConversationHistoryResponseSchema, await httpClient.get<unknown>(`${basePath}${query}`));\n logDebug('Conversation history fetched', { systemRef, count: data.executions.length });\n /*\n * A thread whose turn is paused on a decision becomes an execution here, carrying that\n * decision (#1601). The pause is announced only over the live socket, so a page that loaded\n * after it — a reload, a second tab, a restart — had a thread waiting on an answer and nothing\n * to answer it with: the creator saw their message sit unanswered. The history route now\n * returns the same announcement the socket carried, and it is folded through the same mapping.\n *\n * A live entry is never replaced: the socket is the fresher source for a turn this page is\n * watching, and a seeded copy could revive a decision this client just answered. Except one: an\n * entry in ERROR with DECISION_PENDING, which says only \"the thread waits for a decision this\n * page does not hold\", so the stored decision is the fresher of the two. It arrives two ways: a\n * message this page sent was refused (#2721 review F-2), or a turn this page was watching ended\n * because another turn's decision now holds the thread (#2721 re-review N-1), including the turn\n * this page resumed by answering. That last case cannot revive the answered decision: the event\n * names the decision that waits (`waitingDecisionRef`), the error arm records the entry only when\n * it is NOT the decision the page holds (re-review R-2), and the row history returns holds that\n * waiting decision, not the answered one.\n */\n const paused = data.executions.filter((row) => row.pendingApproval !== undefined);\n if (paused.length > 0) {\n setExecutions((prev) => {\n let next: Map<string, FlowsActorsExecution> | undefined;\n for (const row of paused) {\n const live = prev.get(row.executionId);\n // #2903: an answer refused as stale leaves the decision waiting as it is NOW, which only the stored row says.\n // #2923: so does an answer refused for carrying no step-up the decision requires.\n const refusedForAnUnheldDecision = live?.status === FlowsActorsExecutionStatus.ERROR\n && (live.errorCode === FlowsActors_ExecutionErrorCode.DECISION_PENDING\n || live.errorCode === FlowsActors_ExecutionErrorCode.DECISION_PRESENTATION_STALE\n || live.errorCode === FlowsActors_ExecutionErrorCode.DECISION_STEP_UP_REQUIRED);\n if ((live && !refusedForAnUnheldDecision) || row.pendingApproval === undefined) continue;\n next ??= new Map(prev);\n next.set(row.executionId, {\n executionId: row.executionId,\n systemRef: row.systemRef,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n messages: [],\n pendingApproval: pendingApprovalFromAnnouncement(row.pendingApproval),\n });\n }\n return next ?? prev;\n });\n }\n return { executions: data.executions, hasOlder: data.hasOlder === true };\n } catch (err) {\n if (errorManagement.isNotFoundError(err)) {\n logDebug('FlowsActors history surface not available - returning empty history', { systemRef });\n return { executions: [], hasOlder: false };\n }\n // A failed read is not an empty history: the host keeps what it last read (#2525 review M4).\n logger.warn('Failed to fetch conversation history', { systemRef, error: err instanceof Error ? err.message : 'unknown' });\n return undefined;\n }\n }, [httpClient, appScope?.currentOrganizationId]);\n\n const fetchConversationHistory = useCallback((\n systemRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n page?: { readonly before?: string },\n ) => readConversationHistory(systemRef, contextResourceIdentifiers, page?.before ? { before: page.before } : {}), [readConversationHistory]);\n\n const fetchConversation = useCallback(async (\n systemRef: string,\n contextResourceIdentifiers: Record<string, string> | undefined,\n executionId: string,\n ): Promise<FlowsActors_ConversationExecution | null | undefined> => {\n const page = await readConversationHistory(systemRef, contextResourceIdentifiers, { executionId });\n if (page === undefined) return undefined;\n return page.executions.find((thread) => thread.executionId === executionId) ?? null;\n }, [readConversationHistory]);\n\n /**\n * Delete one of the caller's persisted conversations. Owner-scoped server-side\n * (USER_SELF), so a user can only delete their own discussion.\n */\n const deleteConversation = useCallback(async (executionId: string): Promise<void> => {\n if (!httpClient) {\n logDebug('Cannot delete conversation - httpClient not available');\n return;\n }\n const basePath = `${MAIN_API_BASE_PATH}${buildManualControllerRoutePath(ManualControllerRouteKey.FLOWS_ACTORS_HISTORY)}`;\n await httpClient.delete(`${basePath}?executionId=${encodeURIComponent(executionId)}`);\n logDebug('Conversation deleted', { executionId });\n }, [httpClient]);\n\n /**\n * Start a new execution via WebSocket (fire-and-forget).\n * Errors are delivered asynchronously via FLOWS_ACTORS_STARTED / FLOWS_ACTORS_ERROR events.\n */\n const startExecution = useCallback((\n systemRef: string,\n initialInput?: Record<string, unknown>,\n existingExecutionId?: string,\n extraContextResourceIdentifiers?: Record<string, string>,\n options?: { caseRef?: WorkUnitRef; messageId?: string },\n ): string | null => {\n if (!isConnected) {\n logDebug('Cannot start execution — WebSocket not connected', { systemRef });\n return null;\n }\n\n // Reuse the id to CONTINUE a discussion (one execution = one thread); mint a\n // new one to start a fresh discussion.\n const executionId = existingExecutionId ?? crypto.randomUUID();\n logDebug('Starting execution', { systemRef, executionId, hasInput: !!initialInput, isContinuation: !!existingExecutionId });\n\n /*\n * The scope's own identifiers first, the caller's on top: a surface that hosts one system for\n * several subjects (a tool pointed at one application at a time) names the subject here, and\n * the backend folds the whole set into the thread's `contextRef`, which `fetchConversationHistory`\n * lists by when handed the same identifiers.\n */\n const contextResourceIdentifiers: Record<string, string> = {};\n if (appScope?.currentOrganizationId) {\n contextResourceIdentifiers.organizationId = appScope.currentOrganizationId;\n }\n Object.assign(contextResourceIdentifiers, extraContextResourceIdentifiers ?? {});\n\n setExecutions(prev => {\n const next = new Map(prev);\n // Reset messages every turn: the live execution holds ONLY the current\n // turn's streamed reply. Prior turns of a continued thread live in the\n // view's transcript, so keeping them here would make the streamed bubble\n // replay the whole thread (duplicate content).\n next.set(executionId, {\n executionId,\n systemRef,\n status: FlowsActorsExecutionStatus.STARTING,\n messages: [],\n });\n return next;\n });\n\n emit<WS_FlowsActorsStartPayload>(CoreWebSocketEvent.FLOWS_ACTORS_START, {\n systemRef,\n executionId,\n contextResourceIdentifiers,\n initialInput,\n ...(options?.caseRef ? { caseRef: options.caseRef } : {}),\n ...(options?.messageId ? { messageId: options.messageId } : {}),\n });\n\n return executionId;\n }, [isConnected, emit, appScope?.currentOrganizationId]);\n\n /**\n * Respond to an approval request via WebSocket (fire-and-forget).\n * The resumed turn sends no FLOWS_ACTORS_STARTED: it continues the paused turn, streams to the conversation's\n * owner, and ends on FLOWS_ACTORS_COMPLETED (completed, cancelled) or FLOWS_ACTORS_ERROR.\n */\n const respondToApproval = useCallback((\n executionId: string,\n approvalId: string,\n approved: boolean,\n comment?: string,\n modifiedToolArgs?: Record<string, unknown>,\n reasonCode?: string,\n ): void => {\n const execution = executionsRef.current.get(executionId);\n if (!execution) {\n logDebug('Cannot respond to approval — execution not found', { executionId, approvalId });\n return;\n }\n\n if (!isConnected) {\n logDebug('Cannot respond to approval — WebSocket not connected', { executionId, approvalId });\n return;\n }\n\n logDebug('Responding to approval', { executionId, approvalId, approved, modified: modifiedToolArgs !== undefined });\n\n emit<WS_FlowsActorsApprovalResponsePayload>(CoreWebSocketEvent.FLOWS_ACTORS_APPROVAL_RESPONSE, {\n systemRef: execution.systemRef,\n executionId,\n approvalId,\n approved,\n comment,\n /*\n * The decision's id, echoed (#1594). The server addresses the answer by it and reads the owner,\n * credential and agent instance off the row — so nothing here can point the answer at a different\n * conversation, and a reviewer answering someone else's decision reaches it.\n */\n ...(execution.pendingApproval?.decisionRef ? { decisionRef: execution.pendingApproval.decisionRef } : {}),\n // #2903: the presentation this answer was given on. The server refuses an answer naming none, or a stale one.\n ...(execution.pendingApproval?.presentationId ? { presentationId: execution.pendingApproval.presentationId } : {}),\n /*\n * The arguments the approver AUTHORED (#566), when they edited the proposed call.\n *\n * Sent only when present. Sending `{}` for an unedited approval would reach the server as a\n * modification the tool's schema then rejects, turning every ordinary approval into a\n * refusal — the mirror of the defect that made this field necessary.\n */\n ...(modifiedToolArgs ? { modifiedToolArgs } : {}),\n // Why the approver changed or rejected the call (#1921), one of the application's declared codes. The server\n // checks it against the same vocabulary and refuses an undeclared one, leaving the pause standing.\n ...(reasonCode ? { reasonCode } : {}),\n });\n\n updateExecution(executionId, exec => ({\n ...exec,\n status: approved ? FlowsActorsExecutionStatus.RUNNING : exec.status,\n // The refusal an earlier answer met is answered by this one: a later pause must not inherit its code (#2525).\n errorCode: undefined,\n recoverable: undefined,\n pendingApproval: undefined,\n // Kept until the server reacts: a REFUSED modification leaves the pause standing, and this is\n // what the error handler restores — with the arguments the approver submitted (#587).\n answeredApproval: exec.pendingApproval\n ? { approval: exec.pendingApproval, ...(modifiedToolArgs ? { submittedToolArgs: modifiedToolArgs } : {}) }\n : undefined,\n }));\n }, [isConnected, emit, updateExecution]);\n\n const answerQuestion = useCallback((\n executionId: string,\n optionRef: string,\n values: readonly { ref: string; value: HumanDecision_AnswerValue }[],\n comment?: string,\n ): void => {\n const execution = executionsRef.current.get(executionId);\n const pending = execution?.pendingApproval;\n if (!execution || !pending?.question || !pending.decisionRef || !isConnected) {\n logDebug('Cannot answer a question — no paused question, or the WebSocket is not connected', { executionId });\n return;\n }\n const sendsAnswers = optionRef === AskPersonOptionRef.ANSWER;\n emit<WS_FlowsActorsApprovalResponsePayload>(CoreWebSocketEvent.FLOWS_ACTORS_APPROVAL_RESPONSE, {\n systemRef: execution.systemRef,\n executionId,\n approvalId: pending.approvalId,\n decisionRef: pending.decisionRef,\n // #2903: the presentation this answer was given on.\n ...(pending.presentationId ? { presentationId: pending.presentationId } : {}),\n // Not read for a question: the answer below is what settles it. Sent because the payload requires a verdict.\n approved: sendsAnswers,\n answer: { decisionId: pending.decisionRef, optionRef, values: [...values] },\n // A note in the person's own words travels with the answer, or with the decline, to the agent.\n ...(comment ? { comment } : {}),\n });\n updateExecution(executionId, exec => ({\n ...exec,\n status: FlowsActorsExecutionStatus.RUNNING,\n errorCode: undefined,\n recoverable: undefined,\n pendingApproval: undefined,\n // Kept until the server reacts: an answer its form refuses leaves the question pending, and this restores it.\n answeredApproval: exec.pendingApproval ? { approval: exec.pendingApproval } : undefined,\n }));\n }, [isConnected, emit, updateExecution]);\n\n /**\n * Get execution by ID\n */\n const getExecution = useCallback((executionId: string): FlowsActorsExecution | undefined => {\n return executionsRef.current.get(executionId);\n }, []);\n\n /**\n * Get system by ref\n */\n const getSystem = useCallback((systemRef: string): FlowActorSystem_FrontendInfo | undefined => {\n return systems.find(s => s.ref === systemRef);\n }, [systems]);\n\n const cancelExecution = useCallback((executionId: string): void => {\n const execution = executionsRef.current.get(executionId);\n if (!execution || !isConnected) return;\n emit<WS_FlowsActorsCancelPayload>(CoreWebSocketEvent.FLOWS_ACTORS_CANCEL, { systemRef: execution.systemRef, executionId });\n }, [isConnected, emit]);\n\n const clearExecution = useCallback((executionId: string): void => {\n setExecutions(prev => {\n if (!prev.has(executionId)) return prev;\n const next = new Map(prev);\n next.delete(executionId);\n return next;\n });\n }, []);\n\n /**\n * Initialize on mount when authenticated\n */\n useEffect(() => {\n if (userOrgs.isAuthenticated()) {\n return;\n }\n\n hasInitializedRef.current = false;\n setSystems([]);\n setAutonomousAgents([]);\n setChatAgents([]);\n setChatConnectionRefs([]);\n setError(null);\n setExecutions(new Map());\n }, [userOrgs]);\n\n const requestAgentDeclarations = useCallback((): void => {\n if (\n hasInitializedRef.current\n || !appConfig?.runtime?.endPoints?.main_backend_api\n || !httpClient\n || !userOrgs.isAuthenticated()\n ) {\n return;\n }\n hasInitializedRef.current = true;\n void refreshSystems();\n }, [appConfig?.runtime?.endPoints?.main_backend_api, httpClient, userOrgs, refreshSystems]);\n\n useEffect(() => {\n if (\n !hasInitializedRef.current\n && hasConfiguredFlowsActorsViews\n && appConfig?.runtime?.endPoints?.main_backend_api\n && httpClient\n && userOrgs.isAuthenticated()\n ) {\n hasInitializedRef.current = true;\n refreshSystems();\n }\n }, [\n appConfig?.runtime?.endPoints?.main_backend_api,\n hasConfiguredFlowsActorsViews,\n httpClient,\n userOrgs,\n refreshSystems,\n ]);\n\n /**\n * A dropped socket ENDS every turn still in flight on it.\n *\n * The server emits a turn's events to the socket that started it (`conversational-execution`'s\n * emitter is bound to that socket), so once it drops, no `STARTED`, `MESSAGE`, `COMPLETED` or\n * `ERROR` for that turn can ever arrive — not after a reconnect either, which opens a different\n * socket. Before this, a turn sent into a companion that restarted a second later stayed `STARTING`\n * for good: the page showed neither the question nor an error, and the composer sat on its stop\n * button (measured for eight minutes on the creation workbench, 2026-09-24, #1464).\n *\n * Only `STARTING` and `RUNNING` end. A turn `AWAITING_APPROVAL` is a persisted suspension the person\n * answers later, over whatever socket is live then, so a drop does not end it. The error is\n * RECOVERABLE and names its cause with a CLIENT-DETECTED code, carrying no text of its own: every\n * surface already words an errored turn, and a surviving server still completes and persists the\n * turn, which the thread's history then shows.\n */\n const wasConnectedRef = useRef(isConnected);\n useEffect(() => {\n const dropped = wasConnectedRef.current && !isConnected;\n wasConnectedRef.current = isConnected;\n if (!dropped) return;\n setExecutions(prev => {\n let next: Map<string, FlowsActorsExecution> | null = null;\n for (const [executionId, execution] of prev) {\n if (execution.status !== FlowsActorsExecutionStatus.STARTING && execution.status !== FlowsActorsExecutionStatus.RUNNING) continue;\n next ??= new Map(prev);\n next.set(executionId, {\n ...execution,\n status: FlowsActorsExecutionStatus.ERROR,\n recoverable: true,\n errorCode: FlowsActors_ExecutionErrorCode.CONNECTION_LOST,\n });\n }\n return next ?? prev;\n });\n }, [isConnected]);\n\n /**\n * WebSocket event listeners for FlowsActors inbound events.\n * Follows the WebSocketEventBridge pattern: subscribe on connect, cleanup on disconnect.\n */\n useEffect(() => {\n if (!isConnected) {\n return;\n }\n\n const unsubStarted = on<WS_FlowsActorsStartedPayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_STARTED,\n (payload) => {\n logDebug('Execution started', { executionId: payload.executionId });\n // Only ever a success: a turn that could not start reports on FLOWS_ACTORS_ERROR (#2524).\n updateExecution(payload.executionId, exec => ({\n ...exec,\n status: FlowsActorsExecutionStatus.RUNNING,\n // A turn this tab ended on a refusal that was not its own (#4510) started after all: its code goes with it.\n errorCode: undefined,\n recoverable: undefined,\n }));\n }\n );\n\n const unsubMessage = on<WS_FlowsActorsMessagePayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_MESSAGE,\n (payload) => {\n logDebug('Execution message', { executionId: payload.executionId, type: payload.messageType, messageId: payload.messageId, isFinal: payload.isFinal });\n\n /*\n * A pause is announced HERE, inside a PROGRESS message's `data` bag — never on a separate\n * approval-request event, which nothing emitted and #2524 removed. Parsed rather than key-picked, so\n * the browser and the producer share one named contract; a bag that is not an announcement\n * simply fails the parse and the message is stored like any other (#528).\n */\n const announcement = WS_FlowsActorsApprovalAnnouncementDataSchema.safeParse(payload.data);\n if (announcement.success) {\n const { approvalId, toolName } = announcement.data;\n logDebug('Approval requested', { executionId: payload.executionId, approvalId, toolName });\n updateExecution(payload.executionId, exec => ({\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n // A new pause supersedes whatever this client answered before it, and the code an earlier refusal left (#4510).\n answeredApproval: undefined,\n errorCode: undefined,\n recoverable: undefined,\n // The typed announcement only: the card words it in the reader's language (#3201). The PROGRESS text is\n // the tool's name, never a sentence to render.\n pendingApproval: pendingApprovalFromAnnouncement(announcement.data),\n }));\n }\n\n updateExecution(payload.executionId, exec => ({\n ...exec,\n /*\n * A message of the resumed turn means the answer LANDED (#4510): it no longer counts as \"answered, not landed\"\n * for a refusal of another answer, and a decision this tab put back on screen for a refusal that was not its\n * own goes away again. An announcement already settled both above.\n */\n ...(announcement.success ? {} : {\n answeredApproval: undefined,\n ...(exec.errorCode === FlowsActors_ExecutionErrorCode.EVENT_REFUSED && exec.status === FlowsActorsExecutionStatus.AWAITING_APPROVAL\n ? { status: FlowsActorsExecutionStatus.RUNNING, pendingApproval: undefined, errorCode: undefined, recoverable: undefined }\n : {}),\n }),\n messages: mergeStreamedMessage(\n exec.messages,\n {\n type: payload.messageType,\n content: payload.content,\n data: payload.data,\n timestamp: payload.timestamp instanceof Date ? payload.timestamp : new Date(payload.timestamp),\n messageId: payload.messageId,\n },\n payload.isFinal === true,\n ),\n }));\n }\n );\n\n const unsubCompleted = on<WS_FlowsActorsCompletedPayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_COMPLETED,\n (payload) => {\n logDebug('Execution completed', { executionId: payload.executionId, status: payload.status, duration: payload.duration });\n // The server's run status, read through the one mapping (#2524): COMPLETED, or CANCELLED when the person\n // stopped it. A failure never arrives here — it reports on FLOWS_ACTORS_ERROR with its reason.\n updateExecution(payload.executionId, exec => ({\n ...exec,\n status: turnStatusFromServer(payload.status),\n pendingApproval: undefined,\n // The turn ended, so no answer of it is still waiting to land (#4510).\n answeredApproval: undefined,\n duration: payload.duration,\n ...(payload.usage ? { usage: payload.usage } : {}),\n }));\n }\n );\n\n const unsubError = on<WS_FlowsActorsErrorPayload>(\n CoreWebSocketEvent.FLOWS_ACTORS_ERROR,\n (payload) => {\n logDebug('Execution error', { executionId: payload.executionId, errorCode: payload.errorCode, recoverable: payload.recoverable });\n updateExecution(payload.executionId, exec => {\n /*\n * A refused MODIFICATION is not a failed turn (#587). The server leaves the pause standing and\n * says so with `recoverable: true`, so the decision goes back on screen — with the reason, and\n * with the arguments the approver submitted — instead of vanishing while the server still\n * waits for it. Treating it as ERROR is what made the approval disappear on every refusal.\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_MODIFICATION_REJECTED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: payload.approvalModificationRefusal ?? { reason: '' },\n rejectedToolArgs: exec.answeredApproval.submittedToolArgs,\n // A refusal of THIS answer, not the reason code of an earlier one (#1921).\n reasonCodeRefused: undefined,\n approvalReasonRequired: undefined,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * A reason code the application does not declare is refused while the pause stands (#1921). The approval goes\n * back on screen as it was asked, and the card says why in its own labels — the server's English sentence is\n * not appended to the conversation, because words a reader sees come from the label tree.\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_REASON_CODE_REJECTED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: undefined,\n rejectedToolArgs: undefined,\n reasonCodeRefused: true,\n approvalReasonRequired: undefined,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * An approval of a HIGH or CRITICAL call that stated no reason is refused while the pause stands. The approval\n * goes back on screen as it was asked, and the card says in its own labels that approving it needs a reason; its\n * confirmation asks for one.\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_REASON_REQUIRED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: undefined,\n rejectedToolArgs: undefined,\n reasonCodeRefused: undefined,\n approvalReasonRequired: true,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * A decision refused by the application's consent requirement is not a failed turn either (#534). The\n * server checks the requirement BEFORE it releases the pause, so the approval still stands and can be\n * answered once the person has recorded their consent: it goes back on screen with its `errorCode`, which\n * the conversation thread words (`consentRequired`) above the decision rather than as an argument-edit error.\n * The server's English `errorMessage` is not appended to the turn: it is no reply, and no translator reaches\n * it (#2525).\n */\n if (\n payload.recoverable\n && payload.errorCode === FlowsActors_ExecutionErrorCode.SERVICE_CONSENT_REQUIRED\n && exec.answeredApproval\n ) {\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n // Restored as it was ASKED, not as it was last refused: an earlier refused edit's error must not\n // reappear, and the arguments just submitted reopen the editor (#534 fourth review F5).\n pendingApproval: {\n ...exec.answeredApproval.approval,\n modificationRefusal: undefined,\n rejectedToolArgs: exec.answeredApproval.submittedToolArgs,\n reasonCodeRefused: undefined,\n approvalReasonRequired: undefined,\n },\n answeredApproval: undefined,\n };\n }\n /*\n * DECISION_PENDING is not this tab's failure either (#2721 review F-2). It arrives for a message refused\n * because the thread waits for a decision, and as the END of a turn whose own end was not written because\n * another turn's decision now holds the thread (#2721 re-review N-1). It reaches every tab of the owner's\n * room, so a tab that holds THAT decision — asked, or answered and awaiting the server — keeps it exactly as\n * it is: the decision is the thread's state, and clearing it here took the card away from the one tab that\n * could act on it. Any other tab records it as ERROR, worded by `decisionPending`, and its history reload\n * restores the waiting decision over it (`fetchConversationHistory`). That includes a tab holding a\n * DIFFERENT decision (#2721 re-review R-2): the tab that answered D1 while another door's turn paused the\n * thread on D2, or a second tab still showing the settled D1. Kept, either stayed RUNNING or on a dead card,\n * and history could not help, since it never replaces an entry it does not see as refused.\n */\n const heldDecisionRef = exec.pendingApproval?.decisionRef ?? exec.answeredApproval?.approval.decisionRef;\n /*\n * A refused answer that leaves the decision standing (a reason code it does not offer, a high-stakes approval with\n * no stated reason) reaches every tab of the answerer's room. A tab still SHOWING the card, with no answer of its\n * own in flight, keeps it as it is: the decision still waits, and ending the turn there would take the card\n * away from a tab that can answer it. The answering tab was restored above.\n */\n if (payload.recoverable\n && (payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_REASON_REQUIRED\n || payload.errorCode === FlowsActors_ExecutionErrorCode.APPROVAL_REASON_CODE_REJECTED)\n && exec.pendingApproval !== undefined && exec.answeredApproval === undefined) {\n return exec;\n }\n if (payload.errorCode === FlowsActors_ExecutionErrorCode.DECISION_PENDING\n && heldDecisionRef !== undefined && heldDecisionRef === payload.waitingDecisionRef) {\n return exec;\n }\n return {\n ...exec,\n status: FlowsActorsExecutionStatus.ERROR,\n recoverable: payload.recoverable,\n errorCode: payload.errorCode,\n pendingApproval: undefined,\n answeredApproval: undefined,\n };\n });\n }\n );\n\n /*\n * An event of the person's that the server's admission refused (#4510, the code #4490 added). It never ran, and no\n * flows-actors event will follow it, so the state it left is corrected here. The refusal names only the EVENT: the\n * server's seam is generic and never reads a payload, so the turns are found by STATE, which is an approximation:\n * the server decides each event on its own, so another turn in the same state may have been admitted. Each\n * correction therefore heals itself on that turn's next event: a STARTED puts a wrongly ended turn back to RUNNING\n * (and clears the code), and a reply streaming on a wrongly restored decision takes the decision off screen again.\n * And an answer stops counting as \"not landed\" at the first event of its resumed turn (`answeredApproval` cleared).\n * - a refused message: every turn still STARTING ends as a recoverable error, worded \"send it again\";\n * - a refused answer, approval or denial or a question's answer: every decision answered and not yet landed goes\n * back on screen as it was asked (an edit the person submitted to a tool's arguments reopens the editor; a\n * question's typed values are not kept), with the code the thread words above it; the decision still waits;\n * - a refused stop: nothing, since the stop changed nothing here; the turn goes on and reports its own end.\n */\n const unsubRefused = on<WS_SystemErrorPayload>(\n CoreWebSocketEvent.SYSTEM_ERROR,\n (payload) => {\n if (payload?.code !== WebSocketSystemErrorCode.INBOUND_EVENT_REFUSED) return;\n const details = WS_InboundEventRefusedDetailsSchema.safeParse(payload.details);\n const event = details.success ? details.data.event : undefined;\n logDebug('A conversation event was refused by the server', { event });\n if (event !== CoreWebSocketEvent.FLOWS_ACTORS_START && event !== CoreWebSocketEvent.FLOWS_ACTORS_APPROVAL_RESPONSE) return;\n setExecutions(prev => {\n let next: Map<string, FlowsActorsExecution> | null = null;\n for (const [executionId, execution] of prev) {\n if (event === CoreWebSocketEvent.FLOWS_ACTORS_START && execution.status === FlowsActorsExecutionStatus.STARTING) {\n next ??= new Map(prev);\n next.set(executionId, { ...execution, status: FlowsActorsExecutionStatus.ERROR, recoverable: true, errorCode: FlowsActors_ExecutionErrorCode.EVENT_REFUSED });\n } else if (\n event === CoreWebSocketEvent.FLOWS_ACTORS_APPROVAL_RESPONSE\n && execution.answeredApproval\n && execution.pendingApproval === undefined\n // An approval sets RUNNING; a denial leaves the turn AWAITING_APPROVAL (`respondToApproval`).\n && (execution.status === FlowsActorsExecutionStatus.RUNNING || execution.status === FlowsActorsExecutionStatus.AWAITING_APPROVAL)\n ) {\n next ??= new Map(prev);\n next.set(executionId, {\n ...execution,\n status: FlowsActorsExecutionStatus.AWAITING_APPROVAL,\n recoverable: true,\n errorCode: FlowsActors_ExecutionErrorCode.EVENT_REFUSED,\n pendingApproval: {\n ...execution.answeredApproval.approval,\n modificationRefusal: undefined,\n rejectedToolArgs: execution.answeredApproval.submittedToolArgs,\n reasonCodeRefused: undefined,\n approvalReasonRequired: undefined,\n },\n answeredApproval: undefined,\n });\n }\n }\n return next ?? prev;\n });\n }\n );\n\n return () => {\n unsubStarted();\n unsubMessage();\n unsubCompleted();\n unsubError();\n unsubRefused();\n };\n }, [isConnected, on, updateExecution]);\n\n const contextValue = useMemo<FlowsActorsContextType>(() => ({\n systems,\n autonomousAgents,\n machineBoundFlowRefs,\n chatAgents,\n chatConnectionRefs,\n requestAgentDeclarations,\n isLoading,\n error,\n executions,\n startExecution,\n respondToApproval,\n answerQuestion,\n cancelExecution,\n clearExecution,\n getExecution,\n getSystem,\n refreshSystems,\n fetchConversationHistory,\n fetchConversation,\n deleteConversation,\n }), [systems, autonomousAgents, machineBoundFlowRefs, chatAgents, chatConnectionRefs, requestAgentDeclarations, isLoading, error, executions, startExecution, respondToApproval, answerQuestion, cancelExecution, clearExecution, getExecution, getSystem, refreshSystems, fetchConversationHistory, fetchConversation, deleteConversation]);\n\n return (\n <FlowsActorsContext.Provider value={contextValue}>\n {children}\n </FlowsActorsContext.Provider>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuidanceAnnouncement.d.ts","sourceRoot":"","sources":["../../../../../src/core/guidance/renderers/GuidanceAnnouncement.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAsB,MAAM,OAAO,CAAC;AAS3C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"GuidanceAnnouncement.d.ts","sourceRoot":"","sources":["../../../../../src/core/guidance/renderers/GuidanceAnnouncement.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAsB,MAAM,OAAO,CAAC;AAS3C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAYvG,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAqEvE,CAAC"}
|
|
@@ -14,6 +14,8 @@ import { ButtonSize } from '@wildo-ai/presets-components-models';
|
|
|
14
14
|
import { useIconRegistry } from '../../../core/icons/useIconRegistry.js';
|
|
15
15
|
import { IconSize, StandardIconReference } from '../../../core/icons/icon-registry.frontend.schemas.js';
|
|
16
16
|
import { useI18n } from '../../../core/i18n/useI18n.js';
|
|
17
|
+
/** The close button's placement: an item of the alert's flex row (top-aligned, never shrunk), not an overlay on it. */
|
|
18
|
+
const ANNOUNCEMENT_DISMISS_CLASS = 'self-start shrink-0 -my-1 -me-1';
|
|
17
19
|
const VARIANT_MAP = {
|
|
18
20
|
[OnboardingVariant.INFO]: 'info',
|
|
19
21
|
[OnboardingVariant.SUCCESS]: 'success',
|
|
@@ -36,6 +38,6 @@ export const GuidanceAnnouncement = ({ element, t, onAction, onDismiss, }) => {
|
|
|
36
38
|
const actionLabel = t('actionLabel');
|
|
37
39
|
const actionRef = el.actionRef;
|
|
38
40
|
const icon = el.icon;
|
|
39
|
-
return (_jsxs(Alert, { variant: VARIANT_MAP[variant], role: "status", className: "pointer-events-auto
|
|
41
|
+
return (_jsxs(Alert, { variant: VARIANT_MAP[variant], role: "status", className: "pointer-events-auto", children: [icon && (_jsx("span", { className: "text-xl leading-none shrink-0 mt-0.5", "aria-hidden": "true", children: icon })), _jsxs("div", { className: "flex-1 min-w-0", children: [title && _jsx(AlertTitle, { children: title }), content && _jsx(AlertDescription, { children: content }), actionLabel && actionRef && (_jsx("div", { className: "mt-3", children: _jsx(Button, { size: ButtonSize.SM, onClick: () => onAction(actionRef), children: actionLabel }) }))] }), dismissible && (_jsx(Button, { variant: ButtonVariants_Variant.GHOST, size: ButtonSize.ICON_SM, onClick: handleDismiss, "aria-label": tComponent(FrontendComponentType.GUIDANCE_ANNOUNCEMENT, 'dismiss'), className: ANNOUNCEMENT_DISMISS_CLASS, children: renderIcon(StandardIconReference.CLOSE, { size: IconSize.SM }) }))] }));
|
|
40
42
|
};
|
|
41
43
|
//# sourceMappingURL=GuidanceAnnouncement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuidanceAnnouncement.js","sourceRoot":"","sources":["../../../../../src/core/guidance/renderers/GuidanceAnnouncement.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AAEH,OAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gB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ACR,EAED,eAAK,SAAS,EAAC,gBAAgB,aAC5B,KAAK,IAAI,KAAC,UAAU,cAAE,KAAK,GAAc,EACzC,OAAO,IAAI,KAAC,gBAAgB,cAAE,OAAO,GAAoB,EAEzD,WAAW,IAAI,SAAS,IAAI,CAC3B,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,MAAM,IAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,YAC5D,WAAW,GACL,GACL,CACP,IACG,EAOL,WAAW,IAAI,CACd,KAAC,MAAM,IACL,OAAO,EAAE,sBAAsB,CAAC,KAAK,EACrC,IAAI,EAAE,UAAU,CAAC,OAAO,EACxB,OAAO,EAAE,aAAa,gBACV,UAAU,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,SAAS,CAAC,EAC9E,SAAS,EAAE,0BAA0B,YAEpC,UAAU,CAAC,qBAAqB,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,GACxD,CACV,IACK,CACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * GuidanceAnnouncement — Announcement renderer with icon support.\n *\n * Uses the engine Alert component for theme-compliant variant styling,\n * and Button for actions/dismiss.\n */\n\nimport React, { useCallback } from 'react';\nimport { OnboardingVariant } from '@wildo-ai/saas-models';\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { Alert, AlertTitle, AlertDescription } from '~wildo-frontend-lib/components/overlays/containers/alert';\nimport { Button, ButtonVariants_Variant } from '~wildo-frontend-lib/components/actions/button';\nimport { ButtonSize } from '@wildo-ai/presets-components-models';\nimport { useIconRegistry } from '~wildo-frontend-lib/core/icons/useIconRegistry';\nimport { IconSize, StandardIconReference } from '~wildo-frontend-lib/core/icons/icon-registry.frontend.schemas';\nimport { useI18n } from '~wildo-frontend-lib/core/i18n/useI18n';\nimport type { GuidanceElementRendererProps } from '~wildo-frontend-lib/core/guidance/GuidanceRenderer';\n\n/** The close button's placement: an item of the alert's flex row (top-aligned, never shrunk), not an overlay on it. */\nconst ANNOUNCEMENT_DISMISS_CLASS = 'self-start shrink-0 -my-1 -me-1';\n\nconst VARIANT_MAP: Record<OnboardingVariant, 'info' | 'success' | 'warning' | 'destructive'> = {\n [OnboardingVariant.INFO]: 'info',\n [OnboardingVariant.SUCCESS]: 'success',\n [OnboardingVariant.WARNING]: 'warning',\n [OnboardingVariant.ERROR]: 'destructive',\n};\n\nexport const GuidanceAnnouncement: React.FC<GuidanceElementRendererProps> = ({\n element,\n t,\n onAction,\n onDismiss,\n}) => {\n const { tComponent, isReady } = useI18n({ component: FrontendComponentType.GUIDANCE_ANNOUNCEMENT });\n const { renderIcon } = useIconRegistry();\n\n const handleDismiss = useCallback(() => {\n onDismiss(element.ref);\n }, [onDismiss, element.ref]);\n\n if (!isReady) return null;\n\n const el = element as Extract<typeof element, { type: 'announcement' }>;\n\n const variant = el.variant ?? OnboardingVariant.INFO;\n const dismissible = el.dismissible ?? true;\n\n const title = t('title');\n const content = t('content');\n const actionLabel = t('actionLabel');\n const actionRef = el.actionRef;\n const icon = el.icon;\n\n return (\n <Alert\n variant={VARIANT_MAP[variant]}\n role=\"status\"\n className=\"pointer-events-auto\"\n >\n {icon && (\n <span className=\"text-xl leading-none shrink-0 mt-0.5\" aria-hidden=\"true\">\n {icon}\n </span>\n )}\n\n <div className=\"flex-1 min-w-0\">\n {title && <AlertTitle>{title}</AlertTitle>}\n {content && <AlertDescription>{content}</AlertDescription>}\n\n {actionLabel && actionRef && (\n <div className=\"mt-3\">\n <Button size={ButtonSize.SM} onClick={() => onAction(actionRef)}>\n {actionLabel}\n </Button>\n </div>\n )}\n </div>\n\n {/*\n * The close button is the LAST ITEM of the alert's flex row, top-aligned and never shrunk, so the row reserves its\n * width and the text wraps before it. It was positioned absolutely over the alert's corner, which reserved nothing:\n * a title long enough to reach the end ran under it (#4744, Wonder Todos' \"Welcome To Wonder Todos\").\n */}\n {dismissible && (\n <Button\n variant={ButtonVariants_Variant.GHOST}\n size={ButtonSize.ICON_SM}\n onClick={handleDismiss}\n aria-label={tComponent(FrontendComponentType.GUIDANCE_ANNOUNCEMENT, 'dismiss')}\n className={ANNOUNCEMENT_DISMISS_CLASS}\n >\n {renderIcon(StandardIconReference.CLOSE, { size: IconSize.SM })}\n </Button>\n )}\n </Alert>\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationContentAreas.d.ts","sourceRoot":"","sources":["../../../../src/core/navigation/NavigationContentAreas.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EACL,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAsB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NavigationContentAreas.d.ts","sourceRoot":"","sources":["../../../../src/core/navigation/NavigationContentAreas.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EACL,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAsB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAUhF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAyB,0BAA0B,EAAsG,MAAM,sBAAsB,CAAC;AA0EhO,UAAU,2BAA2B;IACnC,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAeD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAgElF;AA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js';
|
|
17
17
|
import { useResponsiveZoneMigration } from './useResponsiveZoneMigration.js';
|
|
18
18
|
import { NavigationUtils } from './navigation.utils.js';
|
|
19
|
+
import { useResolvedHome } from './home-resolution.js';
|
|
19
20
|
import { useNavigationController } from './useNavigationController.js';
|
|
20
21
|
import { useHostedPaneRouteSync, useSettingsHubOverlaySync, useStructuralZoneBackForwardSync } from './useNavigationRouterSync.js';
|
|
21
22
|
import { NavigationZone, NavigationContentType } from './navigation.schemas.js';
|
|
@@ -24,6 +25,8 @@ import { useUI } from '../../core/ui/useUI.js';
|
|
|
24
25
|
import { useI18n } from '../../core/i18n/useI18n.js';
|
|
25
26
|
import { resolveComponentLabel } from '../../core/i18n/component-label-resolution.utils.js';
|
|
26
27
|
import { useResourceRegistry } from '../../core/resources/useResourceRegistry.js';
|
|
28
|
+
import { ViewNotFound } from '../../components/views/ViewNotFound.js';
|
|
29
|
+
import { ChartReadDecision, useChartReadDecision } from './useChartReadDecision.js';
|
|
27
30
|
import { resolveExecutionViewDefinition } from '../../core/config/execution-view.schemas.js';
|
|
28
31
|
import { useOverlayTitle } from './useOverlayTitle.js';
|
|
29
32
|
import { useZoneEntryOrganizationHold } from './useZoneEntryOrganizationHold.js';
|
|
@@ -50,6 +53,7 @@ import { SettingsHub } from '../../components/settings/SettingsHub.js';
|
|
|
50
53
|
import { EnginePageRef } from '../../core/config/launcher-items.frontend.schemas.js';
|
|
51
54
|
import { CommonRoutePaths } from '../../core/runtime/routes.frontend.definitions.js';
|
|
52
55
|
import { ComponentRegistryService } from '../../core/components-registry/component-registry.frontend.service.js';
|
|
56
|
+
import { RegisteredComponentRoot } from '../../core/components-registry/RegisteredComponentRoot.js';
|
|
53
57
|
import { ComponentNotInjected } from '../../core/components-registry/ComponentNotInjected.js';
|
|
54
58
|
import { FeatureRouteGuard } from '../../core/features/FeatureRouteGuard.js';
|
|
55
59
|
import { resolveInsertedChartView } from '../../core/config/chart-view.frontend.schemas.js';
|
|
@@ -175,6 +179,19 @@ const LinkedCompositeView = ({ content, zone, initiator, entryId }) => {
|
|
|
175
179
|
: undefined), [content.linkedConversationId, dropLinkedConversation, entryId]);
|
|
176
180
|
return (_jsx(CompositeView, { viewRef: content.viewRef, contextResourceIdentifiers: content.contextResourceIdentifiers, navigationZone: zone, navigationInitiator: initiator, linkedConversation: linkedConversation }));
|
|
177
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* A chart in a navigation zone (the page a chart route pushes, a pane, an overlay) is drawn only for a viewer the
|
|
184
|
+
* backend's chart gate would answer (#4252): "not found" when it would refuse, the same as for a chart that does not
|
|
185
|
+
* exist, and nothing while the viewer's roles load. A component of its own so the decision's hook is never conditional.
|
|
186
|
+
*/
|
|
187
|
+
function ChartReadGate({ chartDefinition, viewRef, children }) {
|
|
188
|
+
const decision = useChartReadDecision(chartDefinition);
|
|
189
|
+
if (decision === ChartReadDecision.REFUSED)
|
|
190
|
+
return _jsx(ViewNotFound, { viewKind: "chart", viewRef: viewRef });
|
|
191
|
+
if (decision === ChartReadDecision.PENDING)
|
|
192
|
+
return null;
|
|
193
|
+
return _jsx(_Fragment, { children: children });
|
|
194
|
+
}
|
|
178
195
|
export const NavigationContentRenderer = ({ content, zone, initiator, entryId }) => {
|
|
179
196
|
const { tComponent, isReady } = useI18n({ component: FrontendComponentType.HIGH_LEVEL_VIEWS_CHART });
|
|
180
197
|
const { registry } = useResourceRegistry();
|
|
@@ -194,13 +211,13 @@ export const NavigationContentRenderer = ({ content, zone, initiator, entryId })
|
|
|
194
211
|
return null;
|
|
195
212
|
const insertedChartRequiredFeatures = content.runtimeDescriptor?.chartDefinition.requiredFeatures
|
|
196
213
|
?? content.viewDefinition?.chartDefinition.requiredFeatures;
|
|
214
|
+
const resolvedChartDefinition = content.runtimeDescriptor?.chartDefinition
|
|
215
|
+
?? content.viewDefinition?.chartDefinition
|
|
216
|
+
?? resolveInsertedChartView({ viewRef: content.viewRef, registry })?.chartView.chartDefinition;
|
|
197
217
|
const requiredFeatures = insertedChartRequiredFeatures
|
|
198
218
|
?? content.requiredFeatures
|
|
199
|
-
??
|
|
200
|
-
|
|
201
|
-
registry,
|
|
202
|
-
})?.chartView.chartDefinition.requiredFeatures;
|
|
203
|
-
return (_jsx(React.Suspense, { fallback: _jsx("div", { role: "status", "aria-live": "polite", className: "p-container text-center text-muted-foreground", children: _jsx("span", { className: "sr-only", children: tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, 'loading') }) }), children: _jsx(FeatureRouteGuard, { requiredFeatures: requiredFeatures, children: _jsx(ChartView, { viewRef: content.viewRef, viewDefinition: content.viewDefinition, contextResourceIdentifiers: content.contextResourceIdentifiers, urlParamValues: content.urlParamValues, runtimeDescriptor: content.runtimeDescriptor }) }) }, contentKey));
|
|
219
|
+
?? resolvedChartDefinition?.requiredFeatures;
|
|
220
|
+
return (_jsx(ChartReadGate, { chartDefinition: resolvedChartDefinition, viewRef: content.viewRef, children: _jsx(React.Suspense, { fallback: _jsx("div", { role: "status", "aria-live": "polite", className: "p-container text-center text-muted-foreground", children: _jsx("span", { className: "sr-only", children: tComponent(FrontendComponentType.HIGH_LEVEL_VIEWS_CHART, 'loading') }) }), children: _jsx(FeatureRouteGuard, { requiredFeatures: requiredFeatures, children: _jsx(ChartView, { viewRef: content.viewRef, viewDefinition: content.viewDefinition, contextResourceIdentifiers: content.contextResourceIdentifiers, urlParamValues: content.urlParamValues, runtimeDescriptor: content.runtimeDescriptor }) }) }) }, contentKey));
|
|
204
221
|
}
|
|
205
222
|
if (content.contentType === NavigationContentType.FULL_CUSTOM_VIEW) {
|
|
206
223
|
return (_jsx(FullCustomView, { viewRef: content.viewRef, contextResourceIdentifiers: content.contextResourceIdentifiers, navigationZone: zone }, contentKey));
|
|
@@ -216,7 +233,7 @@ export const NavigationContentRenderer = ({ content, zone, initiator, entryId })
|
|
|
216
233
|
if (!CustomComponent) {
|
|
217
234
|
return (_jsx(ComponentNotInjected, { componentType: content.componentRef, componentName: content.componentRef }));
|
|
218
235
|
}
|
|
219
|
-
return (_jsx(React.Suspense, { fallback: _jsx("div", { className: "h-8 animate-pulse motion-reduce:animate-none bg-muted rounded", "aria-hidden": "true" }), children: _jsx(CustomComponent, { contextResourceIdentifiers: content.contextResourceIdentifiers }) }, contentKey));
|
|
236
|
+
return (_jsx(React.Suspense, { fallback: _jsx("div", { className: "h-8 animate-pulse motion-reduce:animate-none bg-muted rounded", "aria-hidden": "true" }), children: _jsx(RegisteredComponentRoot, { componentRef: content.componentRef, children: _jsx(CustomComponent, { contextResourceIdentifiers: content.contextResourceIdentifiers }) }) }, contentKey));
|
|
220
237
|
}
|
|
221
238
|
if (content.contentType === NavigationContentType.ENGINE_PAGE) {
|
|
222
239
|
// Total over the engine pages, so a page added to `EnginePageRef` cannot be routed and then drawn as nothing (#2527).
|
|
@@ -1040,7 +1057,9 @@ export const NavigationContentAreas = ({ routerChildren }) => {
|
|
|
1040
1057
|
const { dismissZone } = useNavigationController();
|
|
1041
1058
|
const { setContentAreaWidth } = useNavigationState();
|
|
1042
1059
|
const { regionProps, resizeHandleLabel } = useZoneAccessibleNames();
|
|
1043
|
-
const { navigationLayout: resolvedNavigationLayout, UIConfig, shellAppearance, compositeViews
|
|
1060
|
+
const { navigationLayout: resolvedNavigationLayout, UIConfig, shellAppearance, compositeViews } = useUI();
|
|
1061
|
+
// The home THIS viewer opens on (#4576), so a composite home's layout declarations are those of their audience's view.
|
|
1062
|
+
const { home: resolvedHome } = useResolvedHome();
|
|
1044
1063
|
const location = useLocation();
|
|
1045
1064
|
/*
|
|
1046
1065
|
* An EXECUTION_VIEW destination (a resource-owned execution canvas opened from its record's launcher)
|
|
@@ -1091,7 +1110,7 @@ export const NavigationContentAreas = ({ routerChildren }) => {
|
|
|
1091
1110
|
/*
|
|
1092
1111
|
* A COMPOSITE HOME is a destination primary's STACK never receives (#1278).
|
|
1093
1112
|
*
|
|
1094
|
-
* `
|
|
1113
|
+
* The viewer's resolved composite home (`useResolvedHome`) renders its view in place at `/`, as the router's own
|
|
1095
1114
|
* children, so `getTopContent(PRIMARY)` answers for a stack the home never wrote to — and every
|
|
1096
1115
|
* layout declaration that view carries (`adjacentZoneOnEmpty`, and the two geometry fields) was
|
|
1097
1116
|
* therefore unreadable on the one URL the application opens at. The fallback names the destination
|
|
@@ -1105,7 +1124,7 @@ export const NavigationContentAreas = ({ routerChildren }) => {
|
|
|
1105
1124
|
* destination that is not the home's own engine page.
|
|
1106
1125
|
*/
|
|
1107
1126
|
const primaryTopContent = resolveHomeCompositeDestination({
|
|
1108
|
-
homeCompositeViewRef:
|
|
1127
|
+
homeCompositeViewRef: resolvedHome?.compositeViewReference,
|
|
1109
1128
|
isAppRootPath: location.pathname === '/',
|
|
1110
1129
|
primaryStackTop,
|
|
1111
1130
|
}) ?? primaryStackTop;
|