@wildo-ai/saas-frontend-lib 1.1.14 → 1.1.16
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/dist/esm/components/ai-elements/meta/agent-wrappers.d.ts +1 -0
- package/dist/esm/components/ai-elements/meta/agent-wrappers.d.ts.map +1 -1
- package/dist/esm/components/ai-elements/meta/agent-wrappers.js.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts +38 -0
- package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -0
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js +106 -0
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -0
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +22 -0
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/flows-actors/agent-config.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/agent-config.labels.js +2 -0
- package/dist/esm/components/flows-actors/agent-config.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +7 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +22 -5
- 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 +3 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/task-detail.d.ts +12 -1
- package/dist/esm/components/flows-actors/task-detail.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/task-detail.js +2 -2
- package/dist/esm/components/flows-actors/task-detail.js.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts +79 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +271 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts +3 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js +66 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js.map +1 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +6 -0
- package/dist/esm/components/settings/SettingsHub.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 +12 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts +57 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts.map +1 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js +136 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js.map +1 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +20 -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 +139 -22
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js +5 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts +4 -0
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js +19 -0
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts +26 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts.map +1 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js +3 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js.map +1 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map +1 -1
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js +1 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +19 -0
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +23 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js +3 -0
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +12 -0
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js +12 -0
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/events/events.frontend.schemas.d.ts +56 -0
- package/dist/esm/core/events/events.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/events.frontend.schemas.js +24 -1
- package/dist/esm/core/events/events.frontend.schemas.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +10 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +12 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/flows-actors/conversation-history.model.d.ts +19 -1
- package/dist/esm/core/flows-actors/conversation-history.model.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/conversation-history.model.js +45 -4
- package/dist/esm/core/flows-actors/conversation-history.model.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js +50 -18
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts +0 -5
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +27 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/core/navigation/navigation.schemas.d.ts +20 -0
- package/dist/esm/core/navigation/navigation.schemas.d.ts.map +1 -1
- package/dist/esm/core/navigation/navigation.schemas.js +4 -0
- package/dist/esm/core/navigation/navigation.schemas.js.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js +5 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +20 -1
- 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 +25 -0
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.d.ts +6 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.js +11 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.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/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +2 -1
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +12 -3
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +6 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +7 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts +6 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.js +35 -11
- package/dist/esm/core/security/UserOrgsContext.js.map +1 -1
- package/dist/esm/core/security/consent-gate.frontend.utils.d.ts +17 -5
- package/dist/esm/core/security/consent-gate.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/security/consent-gate.frontend.utils.js +16 -7
- package/dist/esm/core/security/consent-gate.frontend.utils.js.map +1 -1
- package/dist/esm/core/security/useConsentGateBehavior.js +1 -1
- package/dist/esm/core/security/useConsentGateBehavior.js.map +1 -1
- package/dist/esm/core/security/useGrantedConsentPurposes.js +1 -1
- package/dist/esm/core/security/useGrantedConsentPurposes.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowsActorsView.labels.js","sourceRoot":"","sources":["../../../../../src/components/views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E,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,4FAA4F,EAAE;IACxJ,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,wFAAwF,EAAE;IACxJ,EAAE,GAAG,EAAE,yBAAyB,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,mJAAmJ,EAAE;IAC7N,EAAE,GAAG,EAAE,qBAAqB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,yDAAyD,EAAE;IACzH,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,gEAAgE,EAAE;IAC/H,EAAE,GAAG,EAAE,0BAA0B,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,kGAAkG,EAAE;IAC7K,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,sDAAsD,EAAE;IAChH,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,8BAA8B,EAAE;CACvF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,6BAA6B,EAAE,+BAA+B,CAAC,CAAC","sourcesContent":["import {\n FrontendComponentType,\n LabelKind,\n type LabellingUnitaryDef,\n registerComponentLabels,\n} from '@wildo-ai/presets-components-models';\n\n// Companion-only label metadata for this component: keys + params + (where\n// authored) per-key purpose / kind / variable meaning. Statically scanned by\n// the dev companion; NOT imported at runtime, so it never ships in the bundle.\n\n/**\n * The VIEW's words: its header, its notices, its placeholder and empty-state prompt. The conversation's words — the\n * discussion list, the working line, tool calls, stopped / failed / interrupted notices, Send and Stop — belong to the\n * surface that draws them, `LOW_LEVEL_AI_CONVERSATION_THREAD` (#2525).\n */\nexport const HighLevelViewsFlowsActorsLabels: LabellingUnitaryDef[] = [\n { ref: 'title', kind: LabelKind.HEADING, purpose: 'Heading for the flows-and-actors graph view' },\n { ref: 'description', kind: LabelKind.DESCRIPTION, purpose: 'Supporting description for the flows-and-actors graph view' },\n { ref: 'loading', kind: LabelKind.MESSAGE, purpose: 'Status shown in place of the chat while the available assistants are still being fetched' },\n { ref: 'unavailable', kind: LabelKind.MESSAGE, purpose: 'Notice shown in place of the chat when no assistant is available to the current user in this context' },\n {\n ref: 'promptPlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose: 'Placeholder of the message input, inviting the user to ask the named assistant something',\n params: [{ key: 'assistant', meaning: 'Display name of the assistant the message will be sent to' }],\n },\n { ref: 'emptyStateDescription', kind: LabelKind.DESCRIPTION, purpose: 'Prompt shown in an empty discussion when the assistant declares no description of its own' },\n { ref: 'statusWorking', kind: LabelKind.LABEL, purpose: 'Header status shown beside the assistant name while it has a reply in progress' },\n { ref: 'statusReady', kind: LabelKind.LABEL, purpose: 'Header status shown beside the assistant name when it is idle and can take a message' },\n // #2842: reporting an agent's reply. The categories are worded by the report resource's own field, not here.\n { ref: 'reportReply', kind: LabelKind.TOOLTIP, purpose: 'Tooltip and accessible name of the small action under an assistant reply that opens the dialog to report the reply as wrong, harmful or inappropriate' },\n { ref: 'replyReported', kind: LabelKind.TOOLTIP, purpose: 'Tooltip of the same action once the person has reported this reply, saying it was reported' },\n { ref: 'reportDialogTitle', kind: LabelKind.HEADING, purpose: 'Title of the dialog in which a person reports an assistant reply to their organization' },\n { ref: 'reportDialogDescription', kind: LabelKind.DESCRIPTION, purpose: 'Explains that the organization administrators will review the report and that the report points to the reply rather than copying the conversation' },\n { ref: 'reportCategoryLabel', kind: LabelKind.LABEL, purpose: 'Label above the choice of what was wrong with the reply' },\n { ref: 'reportCommentLabel', kind: LabelKind.LABEL, purpose: 'Label of the optional comment the person may add to the report' },\n { ref: 'reportCommentPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the optional comment, inviting the person to say what happened in their own words' },\n { ref: 'reportCancel', kind: LabelKind.BUTTON, purpose: 'Button that closes the report dialog without sending' },\n { ref: 'reportSend', kind: LabelKind.BUTTON, purpose: 'Button that sends the report' },\n];\nregisterComponentLabels(FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS, HighLevelViewsFlowsActorsLabels);\n"]}
|
|
1
|
+
{"version":3,"file":"FlowsActorsView.labels.js","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/FlowsActorsView.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,SAAS,EAET,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAE7C,2EAA2E;AAC3E,6EAA6E;AAC7E,+EAA+E;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0B;IACpE,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,6CAA6C,EAAE;IACjG,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,4DAA4D,EAAE;IAC1H,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,0FAA0F,EAAE;IAChJ,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,sGAAsG,EAAE;IAChK;QACE,GAAG,EAAE,mBAAmB;QACxB,IAAI,EAAE,SAAS,CAAC,WAAW;QAC3B,OAAO,EAAE,0FAA0F;QACnG,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,2DAA2D,EAAE,CAAC;KACrG;IACD;QACE,GAAG,EAAE,+BAA+B;QACpC,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,qUAAqU;KAC/U;IACD,EAAE,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AAuB,CAAC,qBAAqB,CAAC,6BAA6B,EAAE,+BAA+B,CAAC,CAAC","sourcesContent":["import {\n FrontendComponentType,\n LabelKind,\n type LabellingUnitaryDef,\n registerComponentLabels,\n} from '@wildo-ai/presets-components-models';\n\n// Companion-only label metadata for this component: keys + params + (where\n// authored) per-key purpose / kind / variable meaning. Statically scanned by\n// the dev companion; NOT imported at runtime, so it never ships in the bundle.\n\n/**\n * The VIEW's words: its header, its notices, its placeholder and empty-state prompt. The conversation's words — the\n * discussion list, the working line, tool calls, stopped / failed / interrupted notices, Send and Stop — belong to the\n * surface that draws them, `LOW_LEVEL_AI_CONVERSATION_THREAD` (#2525).\n */\nexport const HighLevelViewsFlowsActorsLabels: LabellingUnitaryDef[] = [\n { ref: 'title', kind: LabelKind.HEADING, purpose: 'Heading for the flows-and-actors graph view' },\n { ref: 'description', kind: LabelKind.DESCRIPTION, purpose: 'Supporting description for the flows-and-actors graph view' },\n { ref: 'loading', kind: LabelKind.MESSAGE, purpose: 'Status shown in place of the chat while the available assistants are still being fetched' },\n { ref: 'unavailable', kind: LabelKind.MESSAGE, purpose: 'Notice shown in place of the chat when no assistant is available to the current user in this context' },\n {\n ref: 'promptPlaceholder',\n kind: LabelKind.PLACEHOLDER,\n purpose: 'Placeholder of the message input, inviting the user to ask the named assistant something',\n params: [{ key: 'assistant', meaning: 'Display name of the assistant the message will be sent to' }],\n },\n {\n ref: 'linkedConversationUnavailable',\n kind: LabelKind.MESSAGE,\n purpose: 'Notice shown when the person followed a link (from a notification or an email) to one of their conversations and it cannot be opened: it may have been deleted, or belong to an organization they can no longer enter. Shown above a new conversation in the chat, or alone on the page the link opened. Do not say it was deleted.',\n },\n { ref: 'emptyStateDescription', kind: LabelKind.DESCRIPTION, purpose: 'Prompt shown in an empty discussion when the assistant declares no description of its own' },\n { ref: 'statusWorking', kind: LabelKind.LABEL, purpose: 'Header status shown beside the assistant name while it has a reply in progress' },\n { ref: 'statusReady', kind: LabelKind.LABEL, purpose: 'Header status shown beside the assistant name when it is idle and can take a message' },\n // #2842: reporting an agent's reply. The categories are worded by the report resource's own field, not here.\n { ref: 'reportReply', kind: LabelKind.TOOLTIP, purpose: 'Tooltip and accessible name of the small action under an assistant reply that opens the dialog to report the reply as wrong, harmful or inappropriate' },\n { ref: 'replyReported', kind: LabelKind.TOOLTIP, purpose: 'Tooltip of the same action once the person has reported this reply, saying it was reported' },\n { ref: 'reportDialogTitle', kind: LabelKind.HEADING, purpose: 'Title of the dialog in which a person reports an assistant reply to their organization' },\n { ref: 'reportDialogDescription', kind: LabelKind.DESCRIPTION, purpose: 'Explains that the organization administrators will review the report and that the report points to the reply rather than copying the conversation' },\n { ref: 'reportCategoryLabel', kind: LabelKind.LABEL, purpose: 'Label above the choice of what was wrong with the reply' },\n { ref: 'reportCommentLabel', kind: LabelKind.LABEL, purpose: 'Label of the optional comment the person may add to the report' },\n { ref: 'reportCommentPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the optional comment, inviting the person to say what happened in their own words' },\n { ref: 'reportCancel', kind: LabelKind.BUTTON, purpose: 'Button that closes the report dialog without sending' },\n { ref: 'reportSend', kind: LabelKind.BUTTON, purpose: 'Button that sends the report' },\n];\nregisterComponentLabels(FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS, HighLevelViewsFlowsActorsLabels);\n"]}
|
|
@@ -8,6 +8,10 @@ export declare function heldConversationKey(userId: string | null, systemRef: st
|
|
|
8
8
|
export declare function readHeldConversation(key: string): string | null;
|
|
9
9
|
/** Forgets every held selection. For a test that mounts views across cases and must not inherit an earlier one. */
|
|
10
10
|
export declare function forgetHeldConversations(): void;
|
|
11
|
+
/** The identity of one link: the navigation entry that carries it, and the conversation it names. */
|
|
12
|
+
export declare function linkedConversationIdentity(entryKey: string | undefined, executionId: string): string;
|
|
13
|
+
export declare function isLinkedConversationSettled(identity: string): boolean;
|
|
14
|
+
export declare function markLinkedConversationSettled(identity: string): void;
|
|
11
15
|
/** Holds `executionId` under `key`; `null` (a new conversation) holds nothing. */
|
|
12
16
|
export declare function holdConversation(key: string, executionId: string | null): void;
|
|
13
17
|
//# sourceMappingURL=held-conversation-selection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"held-conversation-selection.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/held-conversation-selection.ts"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzH;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE/D;AAED,mHAAmH;AACnH,wBAAgB,uBAAuB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"held-conversation-selection.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/held-conversation-selection.ts"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzH;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAE/D;AAED,mHAAmH;AACnH,wBAAgB,uBAAuB,IAAI,IAAI,CAG9C;AAWD,qGAAqG;AACrG,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEpG;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAEpE;AAED,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAG9E"}
|
|
@@ -33,6 +33,25 @@ export function readHeldConversation(key) {
|
|
|
33
33
|
/** Forgets every held selection. For a test that mounts views across cases and must not inherit an earlier one. */
|
|
34
34
|
export function forgetHeldConversations() {
|
|
35
35
|
heldSelections.clear();
|
|
36
|
+
settledLinks.clear();
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The links a view has already SETTLED (#4013), by the identity its host gives the link (`linkedConversationIdentity`).
|
|
40
|
+
* Kept here, outside any view instance, for the same reason as the held selection: the navigation entry that carries a
|
|
41
|
+
* link keeps it after the view settles it, and a REMOUNT of that entry (a zone migration at a breakpoint, an
|
|
42
|
+
* organization hold) would otherwise apply it again over the conversation the person moved to. Memory only, like the
|
|
43
|
+
* held selection; a later visit to the conversation link is a new navigation entry, so a new identity, and is applied.
|
|
44
|
+
*/
|
|
45
|
+
const settledLinks = new Set();
|
|
46
|
+
/** The identity of one link: the navigation entry that carries it, and the conversation it names. */
|
|
47
|
+
export function linkedConversationIdentity(entryKey, executionId) {
|
|
48
|
+
return `${entryKey ?? ''}\u0000${executionId}`;
|
|
49
|
+
}
|
|
50
|
+
export function isLinkedConversationSettled(identity) {
|
|
51
|
+
return settledLinks.has(identity);
|
|
52
|
+
}
|
|
53
|
+
export function markLinkedConversationSettled(identity) {
|
|
54
|
+
settledLinks.add(identity);
|
|
36
55
|
}
|
|
37
56
|
/** Holds `executionId` under `key`; `null` (a new conversation) holds nothing. */
|
|
38
57
|
export function holdConversation(key, executionId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"held-conversation-selection.js","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/held-conversation-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAqB,EAAE,SAAiB,EAAE,UAAkB,EAAE,OAAe;IAC/G,OAAO,GAAG,MAAM,IAAI,EAAE,SAAS,SAAS,SAAS,UAAU,SAAS,OAAO,EAAE,CAAC;AAChF,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,oBAAoB,CAAC,GAAW;IAC9C,OAAO,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;AACzC,CAAC;AAED,mHAAmH;AACnH,MAAM,UAAU,uBAAuB;IACrC,cAAc,CAAC,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"held-conversation-selection.js","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/held-conversation-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAqB,EAAE,SAAiB,EAAE,UAAkB,EAAE,OAAe;IAC/G,OAAO,GAAG,MAAM,IAAI,EAAE,SAAS,SAAS,SAAS,UAAU,SAAS,OAAO,EAAE,CAAC;AAChF,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,oBAAoB,CAAC,GAAW;IAC9C,OAAO,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;AACzC,CAAC;AAED,mHAAmH;AACnH,MAAM,UAAU,uBAAuB;IACrC,cAAc,CAAC,KAAK,EAAE,CAAC;IACvB,YAAY,CAAC,KAAK,EAAE,CAAC;AACvB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU,CAAC;AAEvC,qGAAqG;AACrG,MAAM,UAAU,0BAA0B,CAAC,QAA4B,EAAE,WAAmB;IAC1F,OAAO,GAAG,QAAQ,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,QAAgB;IAC1D,OAAO,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,QAAgB;IAC5D,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,gBAAgB,CAAC,GAAW,EAAE,WAA0B;IACtE,IAAI,WAAW;QAAE,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;;QACjD,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAClC,CAAC","sourcesContent":["/**\n * The conversation a person last had open in a conversational view, kept while the view is not mounted.\n *\n * Why it exists: a view hosted in the utility panel is unmounted whenever the panel closes, and the panel closes each\n * time the person follows a record the assistant showed (`useUtilityPanelBehavior`). Without this, every record they\n * looked at sent them back to an empty new conversation, and the one they were in had to be found again in the list.\n *\n * It covers EVERY host of the view, by decision: the page (`/flows-actors/<viewRef>`) reopens on the conversation the\n * person left too, and a view opened on a case resumes that case's conversation. Returning to where one was is what a\n * conversation surface does; a new conversation is one click away (`New`). The panel and the page share a key, so\n * both may show the same thread, which is the same thread on the server either way.\n *\n * What it is NOT:\n * - Not a record. It lives in memory for the page's life and is never stored. The transcript's authority stays the\n * server (`fetchConversationHistory`); this only says which thread was on screen.\n * - Not an access decision. It is keyed by the person, so a different person signing in on the same page gets\n * nothing, and a thread it names that the person cannot read is simply not found and dropped\n * (`ChatWorkspace`'s restore check).\n */\nconst heldSelections = new Map<string, string>();\n\n/**\n * One selection per person, per actor system, per context the view partitions its threads by, and per CASE the view is\n * opened on: every turn of a case view is costed to that case (#2549), so a conversation held from the plain view must\n * never come back inside a case view and be continued under the case.\n */\nexport function heldConversationKey(userId: string | null, systemRef: string, contextKey: string, caseKey: string): string {\n return `${userId ?? ''}\\u0000${systemRef}\\u0000${contextKey}\\u0000${caseKey}`;\n}\n\n/** The conversation held under `key`, or `null` for a new one. */\nexport function readHeldConversation(key: string): string | null {\n return heldSelections.get(key) ?? null;\n}\n\n/** Forgets every held selection. For a test that mounts views across cases and must not inherit an earlier one. */\nexport function forgetHeldConversations(): void {\n heldSelections.clear();\n settledLinks.clear();\n}\n\n/**\n * The links a view has already SETTLED (#4013), by the identity its host gives the link (`linkedConversationIdentity`).\n * Kept here, outside any view instance, for the same reason as the held selection: the navigation entry that carries a\n * link keeps it after the view settles it, and a REMOUNT of that entry (a zone migration at a breakpoint, an\n * organization hold) would otherwise apply it again over the conversation the person moved to. Memory only, like the\n * held selection; a later visit to the conversation link is a new navigation entry, so a new identity, and is applied.\n */\nconst settledLinks = new Set<string>();\n\n/** The identity of one link: the navigation entry that carries it, and the conversation it names. */\nexport function linkedConversationIdentity(entryKey: string | undefined, executionId: string): string {\n return `${entryKey ?? ''}\\u0000${executionId}`;\n}\n\nexport function isLinkedConversationSettled(identity: string): boolean {\n return settledLinks.has(identity);\n}\n\nexport function markLinkedConversationSettled(identity: string): void {\n settledLinks.add(identity);\n}\n\n/** Holds `executionId` under `key`; `null` (a new conversation) holds nothing. */\nexport function holdConversation(key: string, executionId: string | null): void {\n if (executionId) heldSelections.set(key, executionId);\n else heldSelections.delete(key);\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A conversation a link asked a view to open (#4013), as the page that received the link hands it on: the
|
|
4
|
+
* conversation, what to call once it is settled (opened, found unavailable, or left for another), and what
|
|
5
|
+
* distinguishes this link from another naming the same conversation (the navigation entry that carries it).
|
|
6
|
+
*/
|
|
7
|
+
export interface LinkedConversationRequest {
|
|
8
|
+
readonly conversationId: string;
|
|
9
|
+
readonly onSettled: () => void;
|
|
10
|
+
readonly linkKey?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A linked conversation a HOST passes to the conversation it renders without naming it in props (#4043): a resource
|
|
14
|
+
* composite view that declares `conversationSystemRef` provides it around its own component, and the `FlowsActorsView`
|
|
15
|
+
* of that system inside takes it. `systemRef` is the declared system, so a view of another system rendered in the same
|
|
16
|
+
* page never takes a conversation that is not its own. A view given `linkedConversationId` in props ignores it.
|
|
17
|
+
*
|
|
18
|
+
* Why a context rather than a prop the host's component forwards: the host is the application's own component, and the
|
|
19
|
+
* engine is what knows a link arrived. A prop would make every such component re-implement the link (read the address,
|
|
20
|
+
* drop it once settled), and one that forgot would open the record's newest conversation instead, with nothing to say so.
|
|
21
|
+
*/
|
|
22
|
+
export interface HostedLinkedConversation extends LinkedConversationRequest {
|
|
23
|
+
readonly systemRef: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const HostedLinkedConversationContext: React.Context<HostedLinkedConversation>;
|
|
26
|
+
//# sourceMappingURL=linked-conversation.context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-conversation.context.d.ts","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/linked-conversation.context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,+BAA+B,yCAA6D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-conversation.context.js","sourceRoot":"","sources":["../../../../../src/components/views/flows-actors-view/linked-conversation.context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA2B1B,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC","sourcesContent":["import React from 'react';\n\n/**\n * A conversation a link asked a view to open (#4013), as the page that received the link hands it on: the\n * conversation, what to call once it is settled (opened, found unavailable, or left for another), and what\n * distinguishes this link from another naming the same conversation (the navigation entry that carries it).\n */\nexport interface LinkedConversationRequest {\n readonly conversationId: string;\n readonly onSettled: () => void;\n readonly linkKey?: string;\n}\n\n/**\n * A linked conversation a HOST passes to the conversation it renders without naming it in props (#4043): a resource\n * composite view that declares `conversationSystemRef` provides it around its own component, and the `FlowsActorsView`\n * of that system inside takes it. `systemRef` is the declared system, so a view of another system rendered in the same\n * page never takes a conversation that is not its own. A view given `linkedConversationId` in props ignores it.\n *\n * Why a context rather than a prop the host's component forwards: the host is the application's own component, and the\n * engine is what knows a link arrived. A prop would make every such component re-implement the link (read the address,\n * drop it once settled), and one that forgot would open the record's newest conversation instead, with nothing to say so.\n */\nexport interface HostedLinkedConversation extends LinkedConversationRequest {\n readonly systemRef: string;\n}\n\nexport const HostedLinkedConversationContext = React.createContext<HostedLinkedConversation | null>(null);\n"]}
|
package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-registry-completeness.frontend.helper.d.ts","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"assert-registry-completeness.frontend.helper.d.ts","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAwI5E,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,qBAAqB,EAAE,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,0BAA0B,CAoBxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,CAAC,EAAE;IACnD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,0BAA0B,CAyB7B"}
|
|
@@ -114,6 +114,7 @@ const KNOWN_NON_REGISTERED_COMPONENT_TYPES = new Set([
|
|
|
114
114
|
FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,
|
|
115
115
|
FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,
|
|
116
116
|
FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,
|
|
117
|
+
FrontendComponentType.APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS,
|
|
117
118
|
FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,
|
|
118
119
|
FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,
|
|
119
120
|
FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,
|
package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-registry-completeness.frontend.helper.js","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,MAAM,MAAM,GAA0B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esContent":["/**\n * Tier-1 Registration Completeness Check\n *\n * Validates that every `FrontendComponentType` value that should have a\n * registered preset (Tier-1 — DI/registry-resolved) actually has one.\n *\n * Tier-2 / framework-internal / dispatcher / i18n-bundle-only slots are\n * explicitly deny-listed below. Any new addition to the enum that does\n * NOT belong on that list MUST be registered, otherwise this check fails.\n */\n\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentRegistryService } from './component-registry.frontend.service';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\n\n/**\n * Enum entries that intentionally have NO registered preset.\n *\n * Each entry MUST have a one-line justification explaining why it is not\n * registered. Categories:\n *\n * (a) i18n-bundle-only — exists for `useI18n({ component })` lookup\n * but is rendered via direct composition, not via `resolve()`.\n * (b) framework-internal — the framework ships the implementation, so no\n * preset is registered and this check must not demand one. It does NOT\n * mean unswappable: a slot in this category may still consult the\n * registry first and fall back to its built-in (see the guidance\n * renderers below). Read each entry's own justification.\n * (c) deprecated — superseded by another slot, kept only for migration.\n * (d) dispatcher — meta-slot that resolves to one of several concrete\n * slots at render time (HIGH_LEVEL_VIEWS_COMPOSITE etc.).\n * (e) orphan — historical leftover, kept on the enum for back-compat\n * of i18n keys but no longer wired to any wrapper.\n */\nconst KNOWN_NON_REGISTERED_COMPONENT_TYPES: ReadonlySet<FrontendComponentType> = new Set([\n // (a) i18n-bundle-only — ContentSectionContainer uses direct composition. (The\n // SECTION / GROUP / LEGEND slots are now registered ContentSection primitives.)\n FrontendComponentType.LOW_LEVEL_CONTENT_SECTION_CONTAINER,\n // (a) i18n-bundle-only — used by OverlayContainer direct composition\n FrontendComponentType.LOW_LEVEL_OVERLAY_CONTAINER,\n\n // (b) framework-internal — Flows-Actors orchestration shells (engine/saas-frontend-lib/src/components/flows-actors/*)\n FrontendComponentType.LOW_LEVEL_AI_FLOW_NODE,\n FrontendComponentType.LOW_LEVEL_AI_FLOW_EXECUTION,\n FrontendComponentType.LOW_LEVEL_AI_SYSTEM_CATALOG,\n FrontendComponentType.LOW_LEVEL_AI_ACTOR,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_PLAN,\n FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL,\n FrontendComponentType.LOW_LEVEL_AI_TASK_MEMORY,\n // One run's consumption (#2528): drawn in place by `FlowsActors_ExecutionUsage`, the flows-actors shells' shape.\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_USAGE,\n // A graph drawn read-only from a GraphView (#2529): composed in place by its hosts, behind the flows-actors graph door.\n FrontendComponentType.LOW_LEVEL_AI_GRAPH_VIEWER,\n FrontendComponentType.LOW_LEVEL_AI_APPROVAL,\n FrontendComponentType.LOW_LEVEL_AI_DECISION,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_STREAM,\n FrontendComponentType.LOW_LEVEL_AI_ARTIFACT_BROWSER,\n FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG,\n\n /**\n * (b) framework-internal — Guidance renderers\n * (`engine/saas-frontend-lib/src/core/guidance/renderers/*`).\n *\n * Deny-listed because the ENGINE registers no preset for them: `GuidanceRenderer` ships working\n * built-in implementations and falls back to them. That is why they belong here and why the\n * check must not demand a registration.\n *\n * They are NOT unswappable, and this entry used to say they were. `GuidanceRenderer` resolves\n * each element type through `GUIDANCE_ELEMENT_COMPONENT_TYPE` against this registry BEFORE its\n * built-in map, so an application that registers a preset under `CorePresetNames.DEFAULT` for any\n * of these types replaces that renderer — which is what the frontend-component specifications for\n * these slots have always advertised.\n */\n FrontendComponentType.GUIDANCE_CHECKLIST,\n FrontendComponentType.GUIDANCE_CHECKLIST_ITEM,\n FrontendComponentType.GUIDANCE_TOUR,\n FrontendComponentType.GUIDANCE_TOOLTIP,\n FrontendComponentType.GUIDANCE_MODAL,\n FrontendComponentType.GUIDANCE_BANNER,\n FrontendComponentType.GUIDANCE_ANNOUNCEMENT,\n FrontendComponentType.GUIDANCE_BADGE,\n FrontendComponentType.GUIDANCE_CARD,\n FrontendComponentType.GUIDANCE_SURVEY,\n FrontendComponentType.GUIDANCE_ONBOARDING_VIEW,\n\n // (b) framework-internal — Progression renderers (engine/saas-frontend-lib/src/components/progression/*)\n FrontendComponentType.PROGRESSION_MILESTONE_TRACKER,\n FrontendComponentType.PROGRESSION_ACHIEVEMENT_BADGE,\n\n // (b) framework-internal — Lifecycle renderers (composed directly in app shells)\n FrontendComponentType.LIFECYCLE_HOME_ACTIVATION_PROGRESS,\n FrontendComponentType.LIFECYCLE_HOME_WELCOME_BACK,\n FrontendComponentType.LIFECYCLE_HOME_DASHBOARD,\n\n // (d) dispatcher — meta-slots that resolve to a concrete view at render time\n FrontendComponentType.HIGH_LEVEL_VIEWS_COMPOSITE,\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FULL_CUSTOM,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,\n FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,\n // The chart dashboard's layout editor (#2299) is opened by `ChartDashboard` itself, never resolved by the registry.\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR,\n\n // (b) framework-internal — H-8: app-owned shell slots. The enum entry is\n // kept so that (1) host apps can register their own preset implementation\n // for the slot if/when they need it, and (2) i18n labels remain\n // addressable. The framework itself does not ship a default preset because\n // the layout shape is intentionally app-owned (test harness page, security\n // settings page).\n FrontendComponentType.APP_LAYOUTS_TEST_COMPONENT,\n FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS,\n // The Settings Hub + its bespoke panels are composed by the navigation\n // runtime (NavigationContentRenderer → SettingsHub) and the hub's own panel\n // resolver, NOT the ComponentRegistry. Their enum entries exist for i18n\n // label addressability + spec coverage; the framework ships no default preset.\n FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n FrontendComponentType.APP_LAYOUTS_APPEARANCE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_INVITATIONS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_BILLING_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,\n\n // (a) i18n-bundle-only — SurfaceErrorBoundary is rendered directly by `Surface` when the surface\n // policy asks for a boundary, never resolved through the registry. The enum entry exists so the\n // fallback's words are addressable labels.\n FrontendComponentType.APP_LAYOUTS_SURFACE_ERROR_BOUNDARY,\n\n // (e) orphan — H-5: FK editing AND display both flow through the\n // dedicated RESOURCES_FIELDS_RESOURCE_REFERENCE preset (registered by\n // category EDIT/DISPLAY in register-framework-layouts.ts) so there is no\n // separate FORM_FIELD / DISPLAY_FIELD wrapper to register. The enum\n // entries are kept on the schema for consumers that key i18n labels off\n // them; renaming has cross-package blast radius (presets, generated\n // specs, locale bundles), so we treat them as documented orphans rather\n // than removing them.\n FrontendComponentType.LOW_LEVEL_FORM_FIELD_FOREIGN_KEY,\n FrontendComponentType.LOW_LEVEL_DISPLAY_FIELD_FOREIGN_KEY,\n]);\n\nexport interface RegistryCompletenessReport {\n totalEnumValues: number;\n registeredCount: number;\n denyListedCount: number;\n missing: FrontendComponentType[];\n}\n\n/**\n * Compute (without throwing) the set of enum entries that should be\n * registered but are not. Useful for tests and for the boot-time check.\n */\nexport function computeRegistryCompleteness(): RegistryCompletenessReport {\n const allValues = Object.values(FrontendComponentType) as FrontendComponentType[];\n const missing: FrontendComponentType[] = [];\n let registeredCount = 0;\n\n for (const type of allValues) {\n if (KNOWN_NON_REGISTERED_COMPONENT_TYPES.has(type)) continue;\n if (ComponentRegistryService.hasComponentType(type)) {\n registeredCount += 1;\n } else {\n missing.push(type);\n }\n }\n\n return {\n totalEnumValues: allValues.length,\n registeredCount,\n denyListedCount: KNOWN_NON_REGISTERED_COMPONENT_TYPES.size,\n missing,\n };\n}\n\n/**\n * Boot-time guard.\n *\n * Call this once after every `registerDefaultPresets()` /\n * `registerFrameworkLayouts()` invocation completes during app startup.\n *\n * Behaviour:\n * - In `development`: throws a hard error listing all missing entries.\n * The developer must either register the missing component or add\n * its enum value to `KNOWN_NON_REGISTERED_COMPONENT_TYPES` with a\n * justification.\n * - In `production`: logs a warning and returns. Avoids breaking a\n * deployed app over a registration omission, but surfaces it loudly\n * in monitoring.\n *\n * @returns the same report `computeRegistryCompleteness()` returned.\n */\nexport function assertRegistryCompleteness(options?: {\n /**\n * When true, throw even outside `development`. Useful for CI / unit\n * tests that want a strict gate regardless of NODE_ENV.\n */\n strict?: boolean;\n}): RegistryCompletenessReport {\n const report = computeRegistryCompleteness();\n\n if (report.missing.length === 0) {\n return report;\n }\n\n const message =\n `[ComponentRegistry] Tier-1 completeness check failed: ${report.missing.length} ` +\n `FrontendComponentType value(s) have no registered preset.\\n\\n` +\n `Missing entries:\\n${report.missing.map(t => ` - ${t}`).join('\\n')}\\n\\n` +\n `For each missing entry you must EITHER:\\n` +\n ` (1) register a default preset in registerDefaultPresets() / registerFrameworkLayouts(); OR\\n` +\n ` (2) add the enum value to KNOWN_NON_REGISTERED_COMPONENT_TYPES in ` +\n `assert-registry-completeness.frontend.helper.ts with a one-line justification ` +\n `(Tier-1 slots resolve through the registry; Tier-2, framework-internal and i18n-bundle-only ` +\n `slots are rendered directly and are the only ones that belong in that list).`;\n\n const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development';\n if (options?.strict || isDev) {\n throw new Error(message);\n }\n\n logger.warn('component-registry.completeness-check.failed', { message, missing: report.missing });\n return report;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"assert-registry-completeness.frontend.helper.js","sourceRoot":"","sources":["../../../../src/core/components-registry/assert-registry-completeness.frontend.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6DAA6D,CAAC;AAEpG,MAAM,MAAM,GAA0B,qBAAqB,CAAC,SAAS,EAAE,CAAC;AAExE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,oCAAoC,GAAuC,IAAI,GAAG,CAAC;IACvF,+EAA+E;IAC/E,gFAAgF;IAChF,qBAAqB,CAAC,mCAAmC;IACzD,qEAAqE;IACrE,qBAAqB,CAAC,2BAA2B;IAEjD,sHAAsH;IACtH,qBAAqB,CAAC,sBAAsB;IAC5C,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,wBAAwB;IAC9C,qBAAqB,CAAC,wBAAwB;IAC9C,iHAAiH;IACjH,qBAAqB,CAAC,4BAA4B;IAClD,wHAAwH;IACxH,qBAAqB,CAAC,yBAAyB;IAC/C,qBAAqB,CAAC,qBAAqB;IAC3C,qBAAqB,CAAC,qBAAqB;IAC3C,qBAAqB,CAAC,6BAA6B;IACnD,qBAAqB,CAAC,6BAA6B;IACnD,qBAAqB,CAAC,yBAAyB;IAE/C;;;;;;;;;;;;;OAaG;IACH,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,uBAAuB;IAC7C,qBAAqB,CAAC,aAAa;IACnC,qBAAqB,CAAC,gBAAgB;IACtC,qBAAqB,CAAC,cAAc;IACpC,qBAAqB,CAAC,eAA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FAA8F;QAC9F,8EAA8E,CAAC;IAEjF,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,QAAQ,KAAK,aAAa,CAAC;IACxF,IAAI,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,8CAA8C,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Tier-1 Registration Completeness Check\n *\n * Validates that every `FrontendComponentType` value that should have a\n * registered preset (Tier-1 — DI/registry-resolved) actually has one.\n *\n * Tier-2 / framework-internal / dispatcher / i18n-bundle-only slots are\n * explicitly deny-listed below. Any new addition to the enum that does\n * NOT belong on that list MUST be registered, otherwise this check fails.\n */\n\nimport { FrontendComponentType } from '@wildo-ai/presets-components-models';\nimport { ComponentRegistryService } from './component-registry.frontend.service';\nimport { LoggerFrontendService } from '~wildo-frontend-lib/core/monitoring/logger.frontend.service';\n\nconst logger: LoggerFrontendService = LoggerFrontendService.getLogger();\n\n/**\n * Enum entries that intentionally have NO registered preset.\n *\n * Each entry MUST have a one-line justification explaining why it is not\n * registered. Categories:\n *\n * (a) i18n-bundle-only — exists for `useI18n({ component })` lookup\n * but is rendered via direct composition, not via `resolve()`.\n * (b) framework-internal — the framework ships the implementation, so no\n * preset is registered and this check must not demand one. It does NOT\n * mean unswappable: a slot in this category may still consult the\n * registry first and fall back to its built-in (see the guidance\n * renderers below). Read each entry's own justification.\n * (c) deprecated — superseded by another slot, kept only for migration.\n * (d) dispatcher — meta-slot that resolves to one of several concrete\n * slots at render time (HIGH_LEVEL_VIEWS_COMPOSITE etc.).\n * (e) orphan — historical leftover, kept on the enum for back-compat\n * of i18n keys but no longer wired to any wrapper.\n */\nconst KNOWN_NON_REGISTERED_COMPONENT_TYPES: ReadonlySet<FrontendComponentType> = new Set([\n // (a) i18n-bundle-only — ContentSectionContainer uses direct composition. (The\n // SECTION / GROUP / LEGEND slots are now registered ContentSection primitives.)\n FrontendComponentType.LOW_LEVEL_CONTENT_SECTION_CONTAINER,\n // (a) i18n-bundle-only — used by OverlayContainer direct composition\n FrontendComponentType.LOW_LEVEL_OVERLAY_CONTAINER,\n\n // (b) framework-internal — Flows-Actors orchestration shells (engine/saas-frontend-lib/src/components/flows-actors/*)\n FrontendComponentType.LOW_LEVEL_AI_FLOW_NODE,\n FrontendComponentType.LOW_LEVEL_AI_FLOW_EXECUTION,\n FrontendComponentType.LOW_LEVEL_AI_SYSTEM_CATALOG,\n FrontendComponentType.LOW_LEVEL_AI_ACTOR,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_PLAN,\n FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL,\n FrontendComponentType.LOW_LEVEL_AI_TASK_MEMORY,\n // One run's consumption (#2528): drawn in place by `FlowsActors_ExecutionUsage`, the flows-actors shells' shape.\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_USAGE,\n // A graph drawn read-only from a GraphView (#2529): composed in place by its hosts, behind the flows-actors graph door.\n FrontendComponentType.LOW_LEVEL_AI_GRAPH_VIEWER,\n FrontendComponentType.LOW_LEVEL_AI_APPROVAL,\n FrontendComponentType.LOW_LEVEL_AI_DECISION,\n FrontendComponentType.LOW_LEVEL_AI_EXECUTION_STREAM,\n FrontendComponentType.LOW_LEVEL_AI_ARTIFACT_BROWSER,\n FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG,\n\n /**\n * (b) framework-internal — Guidance renderers\n * (`engine/saas-frontend-lib/src/core/guidance/renderers/*`).\n *\n * Deny-listed because the ENGINE registers no preset for them: `GuidanceRenderer` ships working\n * built-in implementations and falls back to them. That is why they belong here and why the\n * check must not demand a registration.\n *\n * They are NOT unswappable, and this entry used to say they were. `GuidanceRenderer` resolves\n * each element type through `GUIDANCE_ELEMENT_COMPONENT_TYPE` against this registry BEFORE its\n * built-in map, so an application that registers a preset under `CorePresetNames.DEFAULT` for any\n * of these types replaces that renderer — which is what the frontend-component specifications for\n * these slots have always advertised.\n */\n FrontendComponentType.GUIDANCE_CHECKLIST,\n FrontendComponentType.GUIDANCE_CHECKLIST_ITEM,\n FrontendComponentType.GUIDANCE_TOUR,\n FrontendComponentType.GUIDANCE_TOOLTIP,\n FrontendComponentType.GUIDANCE_MODAL,\n FrontendComponentType.GUIDANCE_BANNER,\n FrontendComponentType.GUIDANCE_ANNOUNCEMENT,\n FrontendComponentType.GUIDANCE_BADGE,\n FrontendComponentType.GUIDANCE_CARD,\n FrontendComponentType.GUIDANCE_SURVEY,\n FrontendComponentType.GUIDANCE_ONBOARDING_VIEW,\n\n // (b) framework-internal — Progression renderers (engine/saas-frontend-lib/src/components/progression/*)\n FrontendComponentType.PROGRESSION_MILESTONE_TRACKER,\n FrontendComponentType.PROGRESSION_ACHIEVEMENT_BADGE,\n\n // (b) framework-internal — Lifecycle renderers (composed directly in app shells)\n FrontendComponentType.LIFECYCLE_HOME_ACTIVATION_PROGRESS,\n FrontendComponentType.LIFECYCLE_HOME_WELCOME_BACK,\n FrontendComponentType.LIFECYCLE_HOME_DASHBOARD,\n\n // (d) dispatcher — meta-slots that resolve to a concrete view at render time\n FrontendComponentType.HIGH_LEVEL_VIEWS_COMPOSITE,\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FULL_CUSTOM,\n FrontendComponentType.HIGH_LEVEL_VIEWS_FLOWS_ACTORS,\n FrontendComponentType.HIGH_LEVEL_VIEWS_EXECUTION,\n FrontendComponentType.HIGH_LEVEL_VIEWS_NOT_FOUND,\n // The chart dashboard's layout editor (#2299) is opened by `ChartDashboard` itself, never resolved by the registry.\n FrontendComponentType.HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR,\n\n // (b) framework-internal — H-8: app-owned shell slots. The enum entry is\n // kept so that (1) host apps can register their own preset implementation\n // for the slot if/when they need it, and (2) i18n labels remain\n // addressable. The framework itself does not ship a default preset because\n // the layout shape is intentionally app-owned (test harness page, security\n // settings page).\n FrontendComponentType.APP_LAYOUTS_TEST_COMPONENT,\n FrontendComponentType.APP_LAYOUTS_SECURITY_SETTINGS,\n // The Settings Hub + its bespoke panels are composed by the navigation\n // runtime (NavigationContentRenderer → SettingsHub) and the hub's own panel\n // resolver, NOT the ComponentRegistry. Their enum entries exist for i18n\n // label addressability + spec coverage; the framework ships no default preset.\n FrontendComponentType.APP_LAYOUTS_SETTINGS_HUB,\n FrontendComponentType.APP_LAYOUTS_APPEARANCE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_INVITATIONS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_BILLING_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AUTONOMOUS_AGENTS_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_MODEL_COST_BREAKDOWN_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_REPRESENTATIVE_ACTIVITY_SETTINGS,\n FrontendComponentType.APP_LAYOUTS_AGENT_WORK_EVALUATION_EXPORT_SETTINGS,\n\n // (a) i18n-bundle-only — SurfaceErrorBoundary is rendered directly by `Surface` when the surface\n // policy asks for a boundary, never resolved through the registry. The enum entry exists so the\n // fallback's words are addressable labels.\n FrontendComponentType.APP_LAYOUTS_SURFACE_ERROR_BOUNDARY,\n\n // (e) orphan — H-5: FK editing AND display both flow through the\n // dedicated RESOURCES_FIELDS_RESOURCE_REFERENCE preset (registered by\n // category EDIT/DISPLAY in register-framework-layouts.ts) so there is no\n // separate FORM_FIELD / DISPLAY_FIELD wrapper to register. The enum\n // entries are kept on the schema for consumers that key i18n labels off\n // them; renaming has cross-package blast radius (presets, generated\n // specs, locale bundles), so we treat them as documented orphans rather\n // than removing them.\n FrontendComponentType.LOW_LEVEL_FORM_FIELD_FOREIGN_KEY,\n FrontendComponentType.LOW_LEVEL_DISPLAY_FIELD_FOREIGN_KEY,\n]);\n\nexport interface RegistryCompletenessReport {\n totalEnumValues: number;\n registeredCount: number;\n denyListedCount: number;\n missing: FrontendComponentType[];\n}\n\n/**\n * Compute (without throwing) the set of enum entries that should be\n * registered but are not. Useful for tests and for the boot-time check.\n */\nexport function computeRegistryCompleteness(): RegistryCompletenessReport {\n const allValues = Object.values(FrontendComponentType) as FrontendComponentType[];\n const missing: FrontendComponentType[] = [];\n let registeredCount = 0;\n\n for (const type of allValues) {\n if (KNOWN_NON_REGISTERED_COMPONENT_TYPES.has(type)) continue;\n if (ComponentRegistryService.hasComponentType(type)) {\n registeredCount += 1;\n } else {\n missing.push(type);\n }\n }\n\n return {\n totalEnumValues: allValues.length,\n registeredCount,\n denyListedCount: KNOWN_NON_REGISTERED_COMPONENT_TYPES.size,\n missing,\n };\n}\n\n/**\n * Boot-time guard.\n *\n * Call this once after every `registerDefaultPresets()` /\n * `registerFrameworkLayouts()` invocation completes during app startup.\n *\n * Behaviour:\n * - In `development`: throws a hard error listing all missing entries.\n * The developer must either register the missing component or add\n * its enum value to `KNOWN_NON_REGISTERED_COMPONENT_TYPES` with a\n * justification.\n * - In `production`: logs a warning and returns. Avoids breaking a\n * deployed app over a registration omission, but surfaces it loudly\n * in monitoring.\n *\n * @returns the same report `computeRegistryCompleteness()` returned.\n */\nexport function assertRegistryCompleteness(options?: {\n /**\n * When true, throw even outside `development`. Useful for CI / unit\n * tests that want a strict gate regardless of NODE_ENV.\n */\n strict?: boolean;\n}): RegistryCompletenessReport {\n const report = computeRegistryCompleteness();\n\n if (report.missing.length === 0) {\n return report;\n }\n\n const message =\n `[ComponentRegistry] Tier-1 completeness check failed: ${report.missing.length} ` +\n `FrontendComponentType value(s) have no registered preset.\\n\\n` +\n `Missing entries:\\n${report.missing.map(t => ` - ${t}`).join('\\n')}\\n\\n` +\n `For each missing entry you must EITHER:\\n` +\n ` (1) register a default preset in registerDefaultPresets() / registerFrameworkLayouts(); OR\\n` +\n ` (2) add the enum value to KNOWN_NON_REGISTERED_COMPONENT_TYPES in ` +\n `assert-registry-completeness.frontend.helper.ts with a one-line justification ` +\n `(Tier-1 slots resolve through the registry; Tier-2, framework-internal and i18n-bundle-only ` +\n `slots are rendered directly and are the only ones that belong in that list).`;\n\n const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development';\n if (options?.strict || isDev) {\n throw new Error(message);\n }\n\n logger.warn('component-registry.completeness-check.failed', { message, missing: report.missing });\n return report;\n}\n"]}
|
|
@@ -121,6 +121,20 @@ export interface ResourceCompositeViewAuthoringConfig extends CompositeViewAutho
|
|
|
121
121
|
* silently.
|
|
122
122
|
*/
|
|
123
123
|
operationLike?: CoreResourceOperation;
|
|
124
|
+
/**
|
|
125
|
+
* The actor system whose conversations this view hosts ON ITS RECORD (#4043): the `systemRef` of the
|
|
126
|
+
* `FlowsActorsView` it renders with the record in that view's context.
|
|
127
|
+
*
|
|
128
|
+
* A conversation opened on a record is listed only there, so a link to it (a notice, an email: the
|
|
129
|
+
* conversation-link page) must open THIS view on that record rather than the system's standalone view, which
|
|
130
|
+
* lists another context. Declaring the system is what lets the engine find this view from a conversation, and it
|
|
131
|
+
* hands the linked conversation to the `FlowsActorsView` of that system inside it — the view's component passes
|
|
132
|
+
* nothing for it.
|
|
133
|
+
*
|
|
134
|
+
* Omitted when the view hosts no conversation. Resource composites only: an application-level view has no record,
|
|
135
|
+
* so its conversations are the standalone view's.
|
|
136
|
+
*/
|
|
137
|
+
conversationSystemRef?: string;
|
|
124
138
|
}
|
|
125
139
|
export interface CompositeViewDefinition {
|
|
126
140
|
scope: FrontendView_ScopeMode;
|
|
@@ -154,6 +168,11 @@ export interface CompositeViewDefinition {
|
|
|
154
168
|
zoneContentMaxWidth?: ResponsiveMaxWidth;
|
|
155
169
|
/** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */
|
|
156
170
|
zoneContentFillsHeight?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* See {@link ResourceCompositeViewAuthoringConfig.conversationSystemRef}. Mirrored from a RESOURCE composite's
|
|
173
|
+
* authoring by the registry, which is not Zod-parsed; an application-level definition never carries it.
|
|
174
|
+
*/
|
|
175
|
+
conversationSystemRef?: string;
|
|
157
176
|
}
|
|
158
177
|
export type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;
|
|
159
178
|
export type InsertedCompositeDeclaration = CompositeViewDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-view.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,4BAA4B,EAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,0CAA0C,EAChD,MAAM,mEAAmE,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAChE,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IACxC;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,kBAAkB,CAAC;IACzC;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,oCAAqC,SAAQ,4BAA4B;IACxF;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"composite-view.schemas.d.ts","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EAEpB,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EAGvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAKL,KAAK,4BAA4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AAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,wCAAwC;AACxC,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAA2E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composite-view.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA2B,MAAM,qCAAqC,CAAC;AAG3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,GAElB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,GAE7B,MAAM,kCAAkC,CAAC;AAmK1C,oEAAoE;AAEpE,MAAM,UAAU,2CAA2C,CAAC,OAAe;IACzE,OAAO,kCAAkC,CAAC,OAAO,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,YAAoB,EACpB,OAAe;IAEf,OAAO,aAAa,YAAY,IAAI,OAAO,EAAE,CAAC;AAChD,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CACjC,aAA+D,EAC/D,SAA8D,EAAE;IAEhE,OAAO;QACL,aAAa;QACb,GAAG,MAAM;KACV,CAAC;AACJ,CAAC;AACD,wEAAwE;AAExE,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;AAE3E,MAAM,UAAU,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AAoB,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,aAAa,CAAC;IACtF,uFAAuF;IACvF,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C;;;;;;;OAOG;IACH,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnC;;;;OAIG;IACH,aAAa,EAAE,CAAC,CAAC,GAAG,EAAE;IACtB,wGAAwG;IACxG,gBAAgB,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IACzD;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAY,CAAC,QAAQ,EAAE;IACrC;;;;;;;;OAQG;IACH,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IACzD,8GAA8G;IAC9G,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAIH,wEAAwE;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAC7D,6BAA6B,EAC7B,8BAA8B,CAC/B,CAAC;AAGF,wCAAwC;AACxC,MAAM,CAAC,MAAM,6BAA6B,GAAuC,iCAAuE,CAAC","sourcesContent":["import { RESPONSIVE_MAX_WIDTH_VALUES, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport type { DeclaredViewLabel } from './view-label-declaration.schemas';\nimport type React from 'react';\nimport { z } from 'zod';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation,\n ResourcePrimaryScope,\n RequiredFeaturesConfigSchema,\n ZoneEmptyBehavior,\n type RequiredFeaturesConfig,\n} from '@wildo-ai/saas-models';\nimport {\n FrontendView_ScopeMode,\n FrontendView_DefinitionSchema,\n buildApplicationViewTranslationRef,\n} from './views-frontend.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n createFrontendInsertedViewIdentity,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from './inserted-view.frontend.schemas';\nimport {\n FrontendResource_ParentResourceRequirementSchema,\n type FrontendResource_ParentResourceRequirement,\n} from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.authoring facet:layer:frontend facet:family:composite-view\n *\n * Resource-owned composite view: props, authoring config, definition, `defineCompositeView()` helper.\n */\nexport interface CompositeViewComponentProps {\n viewRef: string;\n viewDefinition: CompositeViewDefinition;\n}\n\n/**\n * Base authoring shape shared by both app-level and resource-level composite\n * views. Fields on this base are valid at **either** scope.\n *\n * Design decision: `operationLike` is intentionally **NOT** on this base,\n * because app-level composites have no resource operation host to be\n * rendered inside of — the field would carry no semantic weight at app\n * scope. Only the resource-scoped subtype\n * {@link ResourceCompositeViewAuthoringConfig} carries `operationLike`.\n */\nexport interface CompositeViewAuthoringConfig {\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs?: string[];\n /**\n * View-local i18n label declarations (label refs + interpolation params) for this view's OWN\n * text — the captions, KPI names and failure sentences its component renders, beyond the\n * framework's baseline `title` / `description` (and each section's pair).\n *\n * The labelling pipeline plans `composite_views.<translationRef>.<labelRef>` from each entry, so\n * the component resolves its words through the label tree and a translator can find them.\n * Without a declaration there is no key, and the only remaining option is English written into\n * the component — which no locale can translate and nobody who owns the wording can change.\n *\n * Item shape is `DeclaredViewLabel`; kept permissive like `viewComponent` — authored\n * configuration, not user input.\n */\n labels?: DeclaredViewLabel[];\n /**\n * Composite-view icon — `StandardIconReference` string or React component\n * (Lucide / custom). Mirrored from authoring → {@link CompositeViewDefinition.icon},\n * then surfaced into `CoreIconRegistry.compositeView` by the\n * `IconRegistryBridge` so navigation launchers (sidebar, command menu,\n * overlays) render the authored icon.\n */\n icon?: IconLike;\n /**\n * What happens to an ADJACENT zone (secondary / companion) this destination\n * splits into, once that zone's last content is dismissed — overriding the\n * zone's own `onEmpty` while this destination occupies primary.\n *\n * The zone-level `ZoneConfig.onEmpty` is one value for every destination that\n * splits into that zone, and destinations legitimately disagree: a LIST wants\n * the detail pane to stay put (`EMPTY_STATE`) so the layout does not reflow\n * while a reviewer steps through rows, while a CANVAS wants its width back\n * (`COLLAPSE`) the moment nothing is selected. Both share one secondary zone,\n * so without this override one of them is always wrong.\n *\n * Omitted (the common case) defers to the zone, which itself defaults to\n * `ZoneEmptyBehavior.COLLAPSE`. Resolution order is destination → zone →\n * COLLAPSE; see `resolveZoneEmptyBehavior`.\n */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /**\n * How wide this destination's content may grow in the zone, in the framework's shared width\n * vocabulary — the SAME `ResponsiveMaxWidth` a Surface, a `DisplayLayout` and a `FormLayout` use.\n *\n * Omitted (the common case) is `'content'`: capped and centred at `var(--content-max-width, 80rem)`,\n * right for a form, a list or a detail page and wrong only for content whose value IS the space it\n * occupies — a board, a wide table, a canvas — which declare `'none'`.\n */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /**\n * Whether this destination's content fills the zone's HEIGHT as well.\n *\n * `true` makes the zone's content boundary a definite-height flex column, so this view's root may use\n * `flex-1 min-h-0` and resolve against something real. Without it a canvas has no intrinsic height\n * and collapses to zero — which is why one had to hand-roll `h-[70vh]`, sizing against the WINDOW\n * rather than the container it sits in. PRIMARY only: an adjacent zone scrolls, so a filling child\n * and a scrolling parent contradict each other.\n *\n * Separate from the width above ON PURPOSE — see `zone-content-geometry.ts` for why the enum that\n * fused them could not express a capped width with a definite height.\n */\n zoneContentFillsHeight?: boolean;\n}\n\n/**\n * Resource-scoped composite view authoring. Extends the base with\n * `operationLike`, which declares the **single** resource operation host\n * this composite is rendered inside of (and therefore the access policy it\n * exhibits). Composite views are always rendered inside exactly one\n * operation host, so `operationLike` is intentionally single-valued — the\n * list analogue is reserved for execution views, which can legitimately\n * surface in several operation hosts.\n *\n * `operationLike` is the **single declarative source of truth** for\n * composite surfacing: at render time, `ResourceLayout_InsertedViews` filters\n * the resource's `compositeViews` directly by the current operation host\n * against `operationLike`. There is no operation-level view-ref list and no\n * compiled derivation — the composite declaration itself carries the link.\n */\nexport interface ResourceCompositeViewAuthoringConfig extends CompositeViewAuthoringConfig {\n /**\n * Operation host this composite is rendered inside of, and the sole\n * declarative link driving where this composite surfaces at runtime.\n *\n * Defaults to `CoreResourceOperation.READ` when omitted. This default\n * MUST match the fallback passed to `collectOperationLikeViewRefs` at the\n * specification-extraction call site — if it ever diverges, runtime host\n * rendering (which reads `operationLike` directly) and the compiled\n * specification output (which mirrors it via the collector) disagree\n * silently.\n */\n operationLike?: CoreResourceOperation;\n}\n\nexport interface CompositeViewDefinition {\n // Base FrontendView_Definition fields\n scope: FrontendView_ScopeMode;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n // CompositeView-specific fields\n ref: string;\n /** Stable translation identity used for composite-view label lookup/generation. */\n translationRef: string;\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n sectionRefs?: string[];\n /**\n * See {@link CompositeViewAuthoringConfig.labels}. Mirrored from authoring, and declared in the\n * Zod schema too — the startup config parse strips schema-unknown keys.\n */\n labels?: DeclaredViewLabel[];\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Required features for this view — gates navigation + route access */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * Composite-view icon, propagated verbatim from authoring\n * ({@link CompositeViewAuthoringConfig.icon}). The `IconRegistryBridge`\n * walks all composite-view definitions and registers their icons into\n * `CoreIconRegistry.compositeView`, keyed by `ref`.\n */\n icon?: IconLike;\n /** See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}. Mirrored from authoring. */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /** See {@link CompositeViewAuthoringConfig.zoneContentMaxWidth}. Mirrored from authoring. */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */\n zoneContentFillsHeight?: boolean;\n}\n\nexport type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;\n\nexport type InsertedCompositeDeclaration = CompositeViewDefinition;\n/** @wildo_source:part:end saas.frontend.composite-view.authoring */\n\nexport function buildApplicationCompositeViewTranslationRef(viewRef: string): string {\n return buildApplicationViewTranslationRef(viewRef);\n}\n\nexport function buildResourceCompositeViewTranslationRef(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.define-helper facet:layer:frontend facet:family:composite-view\n *\n * Authoring helper: attach a composite view component with optional\n * `sectionRefs`. This helper targets the **base** authoring shape\n * ({@link CompositeViewAuthoringConfig}) and is suitable for app-level\n * composites. Resource-scoped composites additionally support\n * {@link ResourceCompositeViewAuthoringConfig.operationLike} and are\n * usually authored as plain object literals inside\n * `ResourceCompositeViewsConfig` so authors can declare `operationLike`\n * inline.\n */\nexport function defineCompositeView(\n viewComponent: React.ComponentType<CompositeViewComponentProps>,\n config: Omit<CompositeViewAuthoringConfig, 'viewComponent'> = {},\n): CompositeViewAuthoringConfig {\n return {\n viewComponent,\n ...config,\n };\n}\n/** @wildo_source:part:end saas.frontend.composite-view.define-helper */\n\nexport const COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'composite_ctx_';\n\nexport function isStandaloneRoutableCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.APPLICATION\n );\n}\n\nexport function buildApplicationCompositeViewDefinitions(\n authoredCompositeViews: AppCompositeViewsConfig | undefined,\n): CompositeViewDefinition[] {\n if (!authoredCompositeViews) {\n return [];\n }\n\n return Object.entries(authoredCompositeViews).map(([ref, authoredView]) => ({\n ref,\n translationRef: buildApplicationCompositeViewTranslationRef(ref),\n scope: FrontendView_ScopeMode.APPLICATION,\n isAddressable: true,\n operationLike: CoreResourceOperation.READ,\n primaryScope: ResourcePrimaryScope.APPLICATION,\n sectionRefs: authoredView.sectionRefs,\n labels: authoredView.labels,\n viewComponent: authoredView.viewComponent,\n icon: authoredView.icon,\n adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,\n zoneContentMaxWidth: authoredView.zoneContentMaxWidth,\n zoneContentFillsHeight: authoredView.zoneContentFillsHeight,\n }));\n}\n\nexport function isStandaloneRoutableInsertedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.RESOURCE\n );\n}\n\nexport function isStandaloneRoutableResolvedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n if (!compositeView) {\n return false;\n }\n\n return compositeView.scope === FrontendView_ScopeMode.APPLICATION\n ? isStandaloneRoutableCompositeView(compositeView)\n : isStandaloneRoutableInsertedCompositeView(compositeView);\n}\n\nexport function buildResourceInsertedCompositeIdentity(\n resourceType: string,\n compositeView: Pick<CompositeViewDefinition, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.COMPOSITE_VIEW,\n localRef: compositeView.ref,\n });\n}\n\nexport function resolveCompositeViewDefinition(params: {\n viewRef: string | undefined;\n compositeViews?: CompositeViewDefinition[];\n registry?: FrontendResourcesRegistry;\n}): CompositeViewDefinition | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView) {\n return applicationCompositeView;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n}\n\nexport function resolveCompositeViewPrimaryScope(params: {\n viewRef: string | undefined;\n compositeViews?: Array<{ ref: string; primaryScope?: ResourcePrimaryScope }>;\n registry?: FrontendResourcesRegistry;\n}): ResourcePrimaryScope | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView?.primaryScope) {\n return applicationCompositeView.primaryScope;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef)\n ?.primaryScope;\n}\n\nexport function buildCompositeRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `/composite/${viewRef}?${search}` : `/composite/${viewRef}`;\n}\n\nexport function extractCompositeRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\n/**\n * Base fields for authored top-level composite views.\n *\n * The old GridStack/document-era composite schema has been removed. Composite\n * views are now declared as direct authored React components plus ordinary\n * routed view metadata.\n */\nexport const CompositeView_BaseFieldsSchema = z.object({\n /** Unique reference for this view */\n ref: z.string().min(1),\n /** Stable translation identity used for composite-view label lookup/generation */\n translationRef: z.string().min(1),\n /** Whether this view has its own URL route */\n isAddressable: z.boolean().default(false),\n /** Operation-like behavior for access control */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /** Primary scope for this view - determines which context identifiers are injected during navigation */\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs: z.array(z.string()).optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.labels}.\n *\n * MUST stay declared here as well as on the interface, for the reason spelled out on `icon`\n * below: the resolved frontend config is Zod-parsed at startup and a field the schema does not\n * know is silently STRIPPED — the authored declaration would never reach the labelling planner,\n * so no key would be generated and the component would render its raw key for ever.\n */\n labels: z.array(z.any()).optional(),\n /**\n * Direct authored composite view component.\n *\n * Top-level composite views are authored as direct React components.\n */\n viewComponent: z.any(),\n /** Required features for this view — gates navigation + route access via feature availability policy */\n requiredFeatures: RequiredFeaturesConfigSchema.optional(),\n /**\n * Composite-view icon (lucide component reference or StandardIconReference\n * string) — see {@link CompositeViewDefinition.icon}.\n *\n * MUST stay declared here even though the TS interface already carries it:\n * the resolved frontend config is Zod-parsed at startup\n * (`AppConfiguration_Frontend_Schema.parse`), and a field missing from this\n * schema is silently STRIPPED by that parse — authored icons then never reach\n * the `IconRegistryBridge` and every launcher renders the fallback icon.\n * (That exact drift shipped once: interface had `icon`, schema didn't.)\n * Kept permissive like `viewComponent` — authored input, not user input.\n */\n icon: z.custom<IconLike>().optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}.\n *\n * Declared here as well as on the interface for the reason spelled out on\n * `icon` directly above: the resolved frontend config is Zod-parsed at\n * startup, and a field the schema does not know is silently STRIPPED — the\n * authored value would never reach `resolveZoneEmptyBehavior` and the zone\n * default would win with nothing to show for it.\n */\n adjacentZoneOnEmpty: z.enum(ZoneEmptyBehavior).optional(),\n /** See {@link CompositeViewAuthoringConfig.zoneContentFill}. Declared here for the strip reason on `icon`. */\n zoneContentMaxWidth: z.enum(RESPONSIVE_MAX_WIDTH_VALUES).optional(),\n zoneContentFillsHeight: z.boolean().optional(),\n});\n\nexport type CompositeView_BaseFields = z.infer<typeof CompositeView_BaseFieldsSchema>;\n\n/** Combine scope discriminated union with base composite view fields */\nexport const CompositeViewDefinitionBaseSchema = z.intersection(\n FrontendView_DefinitionSchema,\n CompositeView_BaseFieldsSchema\n);\nexport type CompositeViewDefinitionBase = z.infer<typeof CompositeViewDefinitionBaseSchema>;\n\n/** Top-level composite view contract */\nexport const CompositeViewDefinitionSchema: z.ZodType<CompositeViewDefinition> = CompositeViewDefinitionBaseSchema as z.ZodType<CompositeViewDefinition>;\n"]}
|
|
1
|
+
{"version":3,"file":"composite-view.schemas.js","sourceRoot":"","sources":["../../../../src/core/config/composite-view.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAA2B,MAAM,qCAAqC,CAAC;AAG3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,qBAAqB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AC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IACzD,8GAA8G;IAC9G,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAIH,wEAAwE;AACxE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAC7D,6BAA6B,EAC7B,8BAA8B,CAC/B,CAAC;AAGF,wCAAwC;AACxC,MAAM,CAAC,MAAM,6BAA6B,GAAuC,iCAAuE,CAAC","sourcesContent":["import { RESPONSIVE_MAX_WIDTH_VALUES, type ResponsiveMaxWidth } from '@wildo-ai/presets-components-models';\nimport type { DeclaredViewLabel } from './view-label-declaration.schemas';\nimport type React from 'react';\nimport { z } from 'zod';\nimport type { IconLike } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation,\n ResourcePrimaryScope,\n RequiredFeaturesConfigSchema,\n ZoneEmptyBehavior,\n type RequiredFeaturesConfig,\n} from '@wildo-ai/saas-models';\nimport {\n FrontendView_ScopeMode,\n FrontendView_DefinitionSchema,\n buildApplicationViewTranslationRef,\n} from './views-frontend.schemas';\nimport {\n FrontendInsertedViewHostKind,\n FrontendInsertedViewKind,\n createFrontendInsertedViewIdentity,\n parseFrontendInsertedViewRef,\n type FrontendInsertedViewIdentity,\n} from './inserted-view.frontend.schemas';\nimport {\n FrontendResource_ParentResourceRequirementSchema,\n type FrontendResource_ParentResourceRequirement,\n} from '~wildo-frontend-lib/core/resources/resource-path.frontend.schemas';\nimport type { FrontendResourcesRegistry } from '~wildo-frontend-lib/core/resources/resources.frontend.schemas';\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.authoring facet:layer:frontend facet:family:composite-view\n *\n * Resource-owned composite view: props, authoring config, definition, `defineCompositeView()` helper.\n */\nexport interface CompositeViewComponentProps {\n viewRef: string;\n viewDefinition: CompositeViewDefinition;\n}\n\n/**\n * Base authoring shape shared by both app-level and resource-level composite\n * views. Fields on this base are valid at **either** scope.\n *\n * Design decision: `operationLike` is intentionally **NOT** on this base,\n * because app-level composites have no resource operation host to be\n * rendered inside of — the field would carry no semantic weight at app\n * scope. Only the resource-scoped subtype\n * {@link ResourceCompositeViewAuthoringConfig} carries `operationLike`.\n */\nexport interface CompositeViewAuthoringConfig {\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs?: string[];\n /**\n * View-local i18n label declarations (label refs + interpolation params) for this view's OWN\n * text — the captions, KPI names and failure sentences its component renders, beyond the\n * framework's baseline `title` / `description` (and each section's pair).\n *\n * The labelling pipeline plans `composite_views.<translationRef>.<labelRef>` from each entry, so\n * the component resolves its words through the label tree and a translator can find them.\n * Without a declaration there is no key, and the only remaining option is English written into\n * the component — which no locale can translate and nobody who owns the wording can change.\n *\n * Item shape is `DeclaredViewLabel`; kept permissive like `viewComponent` — authored\n * configuration, not user input.\n */\n labels?: DeclaredViewLabel[];\n /**\n * Composite-view icon — `StandardIconReference` string or React component\n * (Lucide / custom). Mirrored from authoring → {@link CompositeViewDefinition.icon},\n * then surfaced into `CoreIconRegistry.compositeView` by the\n * `IconRegistryBridge` so navigation launchers (sidebar, command menu,\n * overlays) render the authored icon.\n */\n icon?: IconLike;\n /**\n * What happens to an ADJACENT zone (secondary / companion) this destination\n * splits into, once that zone's last content is dismissed — overriding the\n * zone's own `onEmpty` while this destination occupies primary.\n *\n * The zone-level `ZoneConfig.onEmpty` is one value for every destination that\n * splits into that zone, and destinations legitimately disagree: a LIST wants\n * the detail pane to stay put (`EMPTY_STATE`) so the layout does not reflow\n * while a reviewer steps through rows, while a CANVAS wants its width back\n * (`COLLAPSE`) the moment nothing is selected. Both share one secondary zone,\n * so without this override one of them is always wrong.\n *\n * Omitted (the common case) defers to the zone, which itself defaults to\n * `ZoneEmptyBehavior.COLLAPSE`. Resolution order is destination → zone →\n * COLLAPSE; see `resolveZoneEmptyBehavior`.\n */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /**\n * How wide this destination's content may grow in the zone, in the framework's shared width\n * vocabulary — the SAME `ResponsiveMaxWidth` a Surface, a `DisplayLayout` and a `FormLayout` use.\n *\n * Omitted (the common case) is `'content'`: capped and centred at `var(--content-max-width, 80rem)`,\n * right for a form, a list or a detail page and wrong only for content whose value IS the space it\n * occupies — a board, a wide table, a canvas — which declare `'none'`.\n */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /**\n * Whether this destination's content fills the zone's HEIGHT as well.\n *\n * `true` makes the zone's content boundary a definite-height flex column, so this view's root may use\n * `flex-1 min-h-0` and resolve against something real. Without it a canvas has no intrinsic height\n * and collapses to zero — which is why one had to hand-roll `h-[70vh]`, sizing against the WINDOW\n * rather than the container it sits in. PRIMARY only: an adjacent zone scrolls, so a filling child\n * and a scrolling parent contradict each other.\n *\n * Separate from the width above ON PURPOSE — see `zone-content-geometry.ts` for why the enum that\n * fused them could not express a capped width with a definite height.\n */\n zoneContentFillsHeight?: boolean;\n}\n\n/**\n * Resource-scoped composite view authoring. Extends the base with\n * `operationLike`, which declares the **single** resource operation host\n * this composite is rendered inside of (and therefore the access policy it\n * exhibits). Composite views are always rendered inside exactly one\n * operation host, so `operationLike` is intentionally single-valued — the\n * list analogue is reserved for execution views, which can legitimately\n * surface in several operation hosts.\n *\n * `operationLike` is the **single declarative source of truth** for\n * composite surfacing: at render time, `ResourceLayout_InsertedViews` filters\n * the resource's `compositeViews` directly by the current operation host\n * against `operationLike`. There is no operation-level view-ref list and no\n * compiled derivation — the composite declaration itself carries the link.\n */\nexport interface ResourceCompositeViewAuthoringConfig extends CompositeViewAuthoringConfig {\n /**\n * Operation host this composite is rendered inside of, and the sole\n * declarative link driving where this composite surfaces at runtime.\n *\n * Defaults to `CoreResourceOperation.READ` when omitted. This default\n * MUST match the fallback passed to `collectOperationLikeViewRefs` at the\n * specification-extraction call site — if it ever diverges, runtime host\n * rendering (which reads `operationLike` directly) and the compiled\n * specification output (which mirrors it via the collector) disagree\n * silently.\n */\n operationLike?: CoreResourceOperation;\n /**\n * The actor system whose conversations this view hosts ON ITS RECORD (#4043): the `systemRef` of the\n * `FlowsActorsView` it renders with the record in that view's context.\n *\n * A conversation opened on a record is listed only there, so a link to it (a notice, an email: the\n * conversation-link page) must open THIS view on that record rather than the system's standalone view, which\n * lists another context. Declaring the system is what lets the engine find this view from a conversation, and it\n * hands the linked conversation to the `FlowsActorsView` of that system inside it — the view's component passes\n * nothing for it.\n *\n * Omitted when the view hosts no conversation. Resource composites only: an application-level view has no record,\n * so its conversations are the standalone view's.\n */\n conversationSystemRef?: string;\n}\n\nexport interface CompositeViewDefinition {\n // Base FrontendView_Definition fields\n scope: FrontendView_ScopeMode;\n parentResourcesRequirements?: FrontendResource_ParentResourceRequirement[];\n additionalResourceRequirements?: FrontendResource_ParentResourceRequirement[];\n // CompositeView-specific fields\n ref: string;\n /** Stable translation identity used for composite-view label lookup/generation. */\n translationRef: string;\n isAddressable: boolean;\n operationLike: CoreResourceOperation;\n primaryScope: ResourcePrimaryScope;\n sectionRefs?: string[];\n /**\n * See {@link CompositeViewAuthoringConfig.labels}. Mirrored from authoring, and declared in the\n * Zod schema too — the startup config parse strips schema-unknown keys.\n */\n labels?: DeclaredViewLabel[];\n viewComponent: React.ComponentType<CompositeViewComponentProps>;\n /** Required features for this view — gates navigation + route access */\n requiredFeatures?: RequiredFeaturesConfig;\n /**\n * Composite-view icon, propagated verbatim from authoring\n * ({@link CompositeViewAuthoringConfig.icon}). The `IconRegistryBridge`\n * walks all composite-view definitions and registers their icons into\n * `CoreIconRegistry.compositeView`, keyed by `ref`.\n */\n icon?: IconLike;\n /** See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}. Mirrored from authoring. */\n adjacentZoneOnEmpty?: ZoneEmptyBehavior;\n /** See {@link CompositeViewAuthoringConfig.zoneContentMaxWidth}. Mirrored from authoring. */\n zoneContentMaxWidth?: ResponsiveMaxWidth;\n /** See {@link CompositeViewAuthoringConfig.zoneContentFillsHeight}. Mirrored from authoring. */\n zoneContentFillsHeight?: boolean;\n /**\n * See {@link ResourceCompositeViewAuthoringConfig.conversationSystemRef}. Mirrored from a RESOURCE composite's\n * authoring by the registry, which is not Zod-parsed; an application-level definition never carries it.\n */\n conversationSystemRef?: string;\n}\n\nexport type AppCompositeViewsConfig = Record<string, CompositeViewAuthoringConfig>;\n\nexport type InsertedCompositeDeclaration = CompositeViewDefinition;\n/** @wildo_source:part:end saas.frontend.composite-view.authoring */\n\nexport function buildApplicationCompositeViewTranslationRef(viewRef: string): string {\n return buildApplicationViewTranslationRef(viewRef);\n}\n\nexport function buildResourceCompositeViewTranslationRef(\n resourceType: string,\n viewRef: string,\n): string {\n return `resources.${resourceType}.${viewRef}`;\n}\n\n/**\n * @wildo_source:part:start saas.frontend.composite-view.define-helper facet:layer:frontend facet:family:composite-view\n *\n * Authoring helper: attach a composite view component with optional\n * `sectionRefs`. This helper targets the **base** authoring shape\n * ({@link CompositeViewAuthoringConfig}) and is suitable for app-level\n * composites. Resource-scoped composites additionally support\n * {@link ResourceCompositeViewAuthoringConfig.operationLike} and are\n * usually authored as plain object literals inside\n * `ResourceCompositeViewsConfig` so authors can declare `operationLike`\n * inline.\n */\nexport function defineCompositeView(\n viewComponent: React.ComponentType<CompositeViewComponentProps>,\n config: Omit<CompositeViewAuthoringConfig, 'viewComponent'> = {},\n): CompositeViewAuthoringConfig {\n return {\n viewComponent,\n ...config,\n };\n}\n/** @wildo_source:part:end saas.frontend.composite-view.define-helper */\n\nexport const COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX = 'composite_ctx_';\n\nexport function isStandaloneRoutableCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.APPLICATION\n );\n}\n\nexport function buildApplicationCompositeViewDefinitions(\n authoredCompositeViews: AppCompositeViewsConfig | undefined,\n): CompositeViewDefinition[] {\n if (!authoredCompositeViews) {\n return [];\n }\n\n return Object.entries(authoredCompositeViews).map(([ref, authoredView]) => ({\n ref,\n translationRef: buildApplicationCompositeViewTranslationRef(ref),\n scope: FrontendView_ScopeMode.APPLICATION,\n isAddressable: true,\n operationLike: CoreResourceOperation.READ,\n primaryScope: ResourcePrimaryScope.APPLICATION,\n sectionRefs: authoredView.sectionRefs,\n labels: authoredView.labels,\n viewComponent: authoredView.viewComponent,\n icon: authoredView.icon,\n adjacentZoneOnEmpty: authoredView.adjacentZoneOnEmpty,\n zoneContentMaxWidth: authoredView.zoneContentMaxWidth,\n zoneContentFillsHeight: authoredView.zoneContentFillsHeight,\n }));\n}\n\nexport function isStandaloneRoutableInsertedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n return (\n compositeView?.isAddressable === true\n && compositeView.scope === FrontendView_ScopeMode.RESOURCE\n );\n}\n\nexport function isStandaloneRoutableResolvedCompositeView(\n compositeView: CompositeViewDefinition | undefined,\n): boolean {\n if (!compositeView) {\n return false;\n }\n\n return compositeView.scope === FrontendView_ScopeMode.APPLICATION\n ? isStandaloneRoutableCompositeView(compositeView)\n : isStandaloneRoutableInsertedCompositeView(compositeView);\n}\n\nexport function buildResourceInsertedCompositeIdentity(\n resourceType: string,\n compositeView: Pick<CompositeViewDefinition, 'ref'>,\n): FrontendInsertedViewIdentity {\n return createFrontendInsertedViewIdentity({\n hostKind: FrontendInsertedViewHostKind.RESOURCE,\n hostRef: resourceType,\n viewKind: FrontendInsertedViewKind.COMPOSITE_VIEW,\n localRef: compositeView.ref,\n });\n}\n\nexport function resolveCompositeViewDefinition(params: {\n viewRef: string | undefined;\n compositeViews?: CompositeViewDefinition[];\n registry?: FrontendResourcesRegistry;\n}): CompositeViewDefinition | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView) {\n return applicationCompositeView;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef);\n}\n\nexport function resolveCompositeViewPrimaryScope(params: {\n viewRef: string | undefined;\n compositeViews?: Array<{ ref: string; primaryScope?: ResourcePrimaryScope }>;\n registry?: FrontendResourcesRegistry;\n}): ResourcePrimaryScope | undefined {\n const { viewRef, compositeViews, registry } = params;\n if (!viewRef) {\n return undefined;\n }\n\n const applicationCompositeView = compositeViews?.find((candidate) => candidate.ref === viewRef);\n if (applicationCompositeView?.primaryScope) {\n return applicationCompositeView.primaryScope;\n }\n\n const insertedIdentity = parseFrontendInsertedViewRef(viewRef);\n if (\n !insertedIdentity\n || insertedIdentity.hostKind !== FrontendInsertedViewHostKind.RESOURCE\n || insertedIdentity.viewKind !== FrontendInsertedViewKind.COMPOSITE_VIEW\n ) {\n return undefined;\n }\n\n return registry?.resourceConfigurations[insertedIdentity.hostRef]\n ?.frontendConfiguration\n ?.compositeViews\n ?.find((candidate) => candidate.ref === insertedIdentity.localRef)\n ?.primaryScope;\n}\n\nexport function buildCompositeRouteUrlPath(\n viewRef: string,\n contextResourceIdentifiers?: Record<string, string>,\n): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(contextResourceIdentifiers ?? {})) {\n if (!value) {\n continue;\n }\n params.set(`${COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX}${key}`, value);\n }\n\n const search = params.toString();\n return search.length > 0 ? `/composite/${viewRef}?${search}` : `/composite/${viewRef}`;\n}\n\nexport function extractCompositeRouteContextResourceIdentifiers(\n searchParams: URLSearchParams,\n): Record<string, string> | undefined {\n const contextResourceIdentifiers: Record<string, string> = {};\n\n for (const [key, value] of searchParams.entries()) {\n if (!key.startsWith(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX) || !value) {\n continue;\n }\n contextResourceIdentifiers[key.slice(COMPOSITE_ROUTE_CONTEXT_QUERY_PARAM_PREFIX.length)] = value;\n }\n\n return Object.keys(contextResourceIdentifiers).length > 0 ? contextResourceIdentifiers : undefined;\n}\n\n/**\n * Base fields for authored top-level composite views.\n *\n * The old GridStack/document-era composite schema has been removed. Composite\n * views are now declared as direct authored React components plus ordinary\n * routed view metadata.\n */\nexport const CompositeView_BaseFieldsSchema = z.object({\n /** Unique reference for this view */\n ref: z.string().min(1),\n /** Stable translation identity used for composite-view label lookup/generation */\n translationRef: z.string().min(1),\n /** Whether this view has its own URL route */\n isAddressable: z.boolean().default(false),\n /** Operation-like behavior for access control */\n operationLike: z.enum(CoreResourceOperation).default(CoreResourceOperation.READ),\n /** Primary scope for this view - determines which context identifiers are injected during navigation */\n primaryScope: z.enum(ResourcePrimaryScope).default(ResourcePrimaryScope.ORGANIZATIONS),\n /** Companion-readable section refs used by the view's `<Section name=\"...\">` nodes. */\n sectionRefs: z.array(z.string()).optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.labels}.\n *\n * MUST stay declared here as well as on the interface, for the reason spelled out on `icon`\n * below: the resolved frontend config is Zod-parsed at startup and a field the schema does not\n * know is silently STRIPPED — the authored declaration would never reach the labelling planner,\n * so no key would be generated and the component would render its raw key for ever.\n */\n labels: z.array(z.any()).optional(),\n /**\n * Direct authored composite view component.\n *\n * Top-level composite views are authored as direct React components.\n */\n viewComponent: z.any(),\n /** Required features for this view — gates navigation + route access via feature availability policy */\n requiredFeatures: RequiredFeaturesConfigSchema.optional(),\n /**\n * Composite-view icon (lucide component reference or StandardIconReference\n * string) — see {@link CompositeViewDefinition.icon}.\n *\n * MUST stay declared here even though the TS interface already carries it:\n * the resolved frontend config is Zod-parsed at startup\n * (`AppConfiguration_Frontend_Schema.parse`), and a field missing from this\n * schema is silently STRIPPED by that parse — authored icons then never reach\n * the `IconRegistryBridge` and every launcher renders the fallback icon.\n * (That exact drift shipped once: interface had `icon`, schema didn't.)\n * Kept permissive like `viewComponent` — authored input, not user input.\n */\n icon: z.custom<IconLike>().optional(),\n /**\n * See {@link CompositeViewAuthoringConfig.adjacentZoneOnEmpty}.\n *\n * Declared here as well as on the interface for the reason spelled out on\n * `icon` directly above: the resolved frontend config is Zod-parsed at\n * startup, and a field the schema does not know is silently STRIPPED — the\n * authored value would never reach `resolveZoneEmptyBehavior` and the zone\n * default would win with nothing to show for it.\n */\n adjacentZoneOnEmpty: z.enum(ZoneEmptyBehavior).optional(),\n /** See {@link CompositeViewAuthoringConfig.zoneContentFill}. Declared here for the strip reason on `icon`. */\n zoneContentMaxWidth: z.enum(RESPONSIVE_MAX_WIDTH_VALUES).optional(),\n zoneContentFillsHeight: z.boolean().optional(),\n});\n\nexport type CompositeView_BaseFields = z.infer<typeof CompositeView_BaseFieldsSchema>;\n\n/** Combine scope discriminated union with base composite view fields */\nexport const CompositeViewDefinitionBaseSchema = z.intersection(\n FrontendView_DefinitionSchema,\n CompositeView_BaseFieldsSchema\n);\nexport type CompositeViewDefinitionBase = z.infer<typeof CompositeViewDefinitionBaseSchema>;\n\n/** Top-level composite view contract */\nexport const CompositeViewDefinitionSchema: z.ZodType<CompositeViewDefinition> = CompositeViewDefinitionBaseSchema as z.ZodType<CompositeViewDefinition>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-settings-destinations.d.ts","sourceRoot":"","sources":["../../../../src/core/config/engine-settings-destinations.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA2BrH;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,uCAAuC,CAAC;AAmDpG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,SAAS,mBAAmB,
|
|
1
|
+
{"version":3,"file":"engine-settings-destinations.d.ts","sourceRoot":"","sources":["../../../../src/core/config/engine-settings-destinations.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AA2BrH;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,uCAAuC,CAAC;AAmDpG;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,SAAS,mBAAmB,EA0vCtE,CAAC;AAGF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,qBAAqB,EAOhE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAsI1C,CAAC"}
|
|
@@ -784,6 +784,16 @@ export const ENGINE_SETTINGS_DESTINATIONS = [
|
|
|
784
784
|
requiredEngineCapabilities: [EngineCapability.AI_LLM],
|
|
785
785
|
target: { kind: SettingsSectionTargetKind.ENGINE_PANEL, panelRef: SettingsPanelRef.AUTONOMOUS_AGENTS },
|
|
786
786
|
},
|
|
787
|
+
{
|
|
788
|
+
// What the organization's declared flows and actor systems did (#3990): the runs on the actor plane, and each one's
|
|
789
|
+
// history, tasks and flow steps. Beside Agent runs and never merged into it: those are conversations, read under the
|
|
790
|
+
// execution resource's roles. Org owner/admin, the roles the route admits. NO capability gate, deliberately: a flow
|
|
791
|
+
// runs without a language model, so gating on AI_LLM would hide a flow-only application's activity.
|
|
792
|
+
ref: EngineSettingsDestinationRef.AGENT_ACTIVITY,
|
|
793
|
+
icon: StandardIconReference.ACTIVITY,
|
|
794
|
+
requiredRoles: ORG_MANAGEMENT_ROLES,
|
|
795
|
+
target: { kind: SettingsSectionTargetKind.ENGINE_PANEL, panelRef: SettingsPanelRef.AGENT_ACTIVITY },
|
|
796
|
+
},
|
|
787
797
|
{
|
|
788
798
|
// Which declared chat agent answers the organization's people on each chat connection (#2665). Org owner/admin, the
|
|
789
799
|
// roles the resource's reads and writes accept; AI_LLM, since an application with no language model has no agent to
|
|
@@ -1273,6 +1283,15 @@ export const ENGINE_SETTINGS_DESTINATIONS = [
|
|
|
1273
1283
|
operation: CoreResourceOperation.LIST,
|
|
1274
1284
|
},
|
|
1275
1285
|
},
|
|
1286
|
+
{
|
|
1287
|
+
// The same page across every organization (#3990): an application-wide read under the application's audit read
|
|
1288
|
+
// policy, so under independent approval it answers only with an access grant, and says so. Super-admin, the role the
|
|
1289
|
+
// route admits; no capability gate, for the organization entry's reason.
|
|
1290
|
+
ref: EngineSettingsDestinationRef.APPLICATION_AGENT_ACTIVITY,
|
|
1291
|
+
icon: StandardIconReference.ACTIVITY,
|
|
1292
|
+
requiredRoles: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],
|
|
1293
|
+
target: { kind: SettingsSectionTargetKind.ENGINE_PANEL, panelRef: SettingsPanelRef.APPLICATION_AGENT_ACTIVITY },
|
|
1294
|
+
},
|
|
1276
1295
|
{
|
|
1277
1296
|
// What reviewers did with agents' proposals in the application's OWN work (#2324): the application-scope decisions,
|
|
1278
1297
|
// the work no tenant owns. Only the decisions: the content-capture setting, the export authorisation and the
|
|
@@ -1500,6 +1519,8 @@ export const SCAFFOLD_SETTINGS_HUB_CONFIG = {
|
|
|
1500
1519
|
{ destinationRef: EngineSettingsDestinationRef.AGENT_RUNS, categoryRef: 'organization', groupRef: 'ai', label: 'Agent runs', order: 25 },
|
|
1501
1520
|
// Which agents run here unattended, and what stopped the ones that did not (#2528).
|
|
1502
1521
|
{ destinationRef: EngineSettingsDestinationRef.AUTONOMOUS_AGENTS, categoryRef: 'organization', groupRef: 'ai', label: 'Autonomous agents', order: 26 },
|
|
1522
|
+
// What the organization's flows and actor systems did (#3990), last in the AI group.
|
|
1523
|
+
{ destinationRef: EngineSettingsDestinationRef.AGENT_ACTIVITY, categoryRef: 'organization', groupRef: 'ai', label: 'Agent activity', order: 31 },
|
|
1503
1524
|
// Which agent answers in chat (#2665), beside the agents that run unattended. An application with no chat provider deletes it.
|
|
1504
1525
|
{ destinationRef: EngineSettingsDestinationRef.CHAT_AGENTS, categoryRef: 'organization', groupRef: 'ai', label: 'Chat agents', order: 27 },
|
|
1505
1526
|
// What the organization's agents' models may be sent and write (#2292), tightened beyond what each agent declares.
|
|
@@ -1538,6 +1559,8 @@ export const SCAFFOLD_SETTINGS_HUB_CONFIG = {
|
|
|
1538
1559
|
{ destinationRef: EngineSettingsDestinationRef.APPLICATION_AGENT_RUNS, categoryRef: 'administration', groupRef: 'ai', label: 'Agent runs', order: 20 },
|
|
1539
1560
|
// Which agents are switched off for every organization (#2843), beside what the application's agents did.
|
|
1540
1561
|
{ destinationRef: EngineSettingsDestinationRef.APPLICATION_AGENT_POLICY, categoryRef: 'administration', groupRef: 'ai', label: 'Agent policy', order: 21 },
|
|
1562
|
+
// What the flows and actor systems did in every organization (#3990), after the application's own agent runs and policy.
|
|
1563
|
+
{ destinationRef: EngineSettingsDestinationRef.APPLICATION_AGENT_ACTIVITY, categoryRef: 'administration', groupRef: 'ai', label: 'Agent activity', order: 24 },
|
|
1541
1564
|
// In the compliance group, after the rest of Administration: the requests people made about their own data that the
|
|
1542
1565
|
// operator still owes an answer to.
|
|
1543
1566
|
{ destinationRef: EngineSettingsDestinationRef.APPLICATION_DATA_SUBJECT_REQUESTS, categoryRef: 'administration', groupRef: 'compliance', label: 'Data subject requests', order: 22 },
|