@wildo-ai/saas-frontend-lib 1.1.13 → 1.1.15
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/DisplayValueDispatcher.d.ts.map +1 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js +17 -1
- package/dist/esm/components/data-display/DisplayValueDispatcher.js.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +22 -0
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.d.ts.map +1 -1
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.js +5 -2
- package/dist/esm/components/data-display/external-data-provenance/external-data-provenance.frontend.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/form/automated/ResourceAutomatedForm.d.ts.map +1 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js +20 -1
- package/dist/esm/components/form/automated/ResourceAutomatedForm.js.map +1 -1
- package/dist/esm/components/form/chromes/FormFieldChrome.js +1 -1
- package/dist/esm/components/form/chromes/FormFieldChrome.js.map +1 -1
- package/dist/esm/components/form/chromes/field-control-aria.d.ts +8 -1
- package/dist/esm/components/form/chromes/field-control-aria.d.ts.map +1 -1
- package/dist/esm/components/form/chromes/field-control-aria.js +19 -2
- package/dist/esm/components/form/chromes/field-control-aria.js.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.d.ts +5 -0
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.d.ts.map +1 -1
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.js +6 -2
- package/dist/esm/components/form/validation-errors/validate-field-url.frontend.js.map +1 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.js +8 -1
- package/dist/esm/components/resources/ResourceCollectionBody_Table.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js +2 -2
- package/dist/esm/components/resources/ResourceLayout_DangerZone.js.map +1 -1
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js +2 -2
- package/dist/esm/components/resources/ResourceLayout_RecordSharing.js.map +1 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.d.ts.map +1 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.js +6 -1
- package/dist/esm/components/resources/ResourceListItemRenderer.js.map +1 -1
- package/dist/esm/components/resources/skeleton/DisplayLayout.js +2 -2
- package/dist/esm/components/resources/skeleton/DisplayLayout.js.map +1 -1
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.d.ts.map +1 -1
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js +71 -16
- package/dist/esm/components/resources-fields/_presets/resource-reference/ResourceFieldDisplayPreset_ResourceReference_Default.js.map +1 -1
- package/dist/esm/components/sections/surface.d.ts +12 -0
- package/dist/esm/components/sections/surface.d.ts.map +1 -1
- package/dist/esm/components/sections/surface.js +14 -0
- package/dist/esm/components/sections/surface.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js +3 -2
- package/dist/esm/core/app-shell/shell-motion/shell-motion-origins.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts +15 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js +29 -0
- package/dist/esm/core/app-shell/shell-motion/shell-motion-vocabulary.js.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.d.ts.map +1 -1
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js +2 -2
- package/dist/esm/core/app-shell/shell-motion/use-shell-motion.js.map +1 -1
- package/dist/esm/core/branding/useBrandPresentation.d.ts.map +1 -1
- package/dist/esm/core/branding/useBrandPresentation.js +17 -6
- package/dist/esm/core/branding/useBrandPresentation.js.map +1 -1
- package/dist/esm/core/events/events.frontend.schemas.d.ts +40 -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/execution/useExecutionResourceOperationContextBuilder.d.ts.map +1 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.js +11 -1
- package/dist/esm/core/execution/useExecutionResourceOperationContextBuilder.js.map +1 -1
- package/dist/esm/core/i18n/I18nContext.d.ts.map +1 -1
- package/dist/esm/core/i18n/I18nContext.js +8 -2
- package/dist/esm/core/i18n/I18nContext.js.map +1 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.d.ts.map +1 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.js +6 -1
- package/dist/esm/core/i18n/component-label-resolution.utils.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts +0 -15
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js +102 -5
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.js +12 -3
- package/dist/esm/core/monitoring/analytics/AnalyticsEventBridge.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContext.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContext.js +60 -17
- package/dist/esm/core/navigation/NavigationContext.js.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.d.ts +29 -0
- package/dist/esm/core/navigation/launcher-resolution.d.ts.map +1 -1
- package/dist/esm/core/navigation/launcher-resolution.js +31 -0
- package/dist/esm/core/navigation/launcher-resolution.js.map +1 -1
- package/dist/esm/core/navigation/navigation-controller-internals.d.ts +48 -0
- package/dist/esm/core/navigation/navigation-controller-internals.d.ts.map +1 -1
- package/dist/esm/core/navigation/navigation-controller-internals.js +56 -3
- package/dist/esm/core/navigation/navigation-controller-internals.js.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js +30 -2
- package/dist/esm/core/navigation/useNavigationRouterSync.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/route-parent-relocation.frontend.utils.d.ts +44 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.d.ts.map +1 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.js +63 -0
- package/dist/esm/core/resources/route-parent-relocation.frontend.utils.js.map +1 -0
- package/dist/esm/core/resources/useOperationDirectExecution.d.ts.map +1 -1
- package/dist/esm/core/resources/useOperationDirectExecution.js +45 -6
- package/dist/esm/core/resources/useOperationDirectExecution.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +18 -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/security/UserOrgsContext.d.ts +6 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.js +87 -10
- 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/core/ui/inner-control-activation.utils.d.ts +16 -0
- package/dist/esm/core/ui/inner-control-activation.utils.d.ts.map +1 -0
- package/dist/esm/core/ui/inner-control-activation.utils.js +44 -0
- package/dist/esm/core/ui/inner-control-activation.utils.js.map +1 -0
- 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 +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-config.labels.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/agent-config.labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAA4B,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE1I,2EAA2E;AAC3E,6EAA6E;AAC7E,+EAA+E;AAE/E,MAAM,CAAC,MAAM,2BAA2B,GAA0B;IAChE,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,2CAA2C,EAAE;IAC/F,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,wCAAwC,EAAE;IAC5G,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,qCAAqC,EAAE;IAChG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,yDAAyD,EAAE;IACnH,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,kCAAkC,EAAE;IAC7F,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,oCAAoC,EAAE;IACjG,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,qCAAqC,EAAE;IACpG,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,qCAAqC,EAAE;IACjG,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,CAAC,K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AE,6CAA6C;QACtD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,4BAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KACjF;CACF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,yBAAyB,EAAE,2BAA2B,CAAC,CAAC","sourcesContent":["import { FrontendComponentType, LabelKind, type LabellingUnitaryDef, registerComponentLabels } 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\nexport const LowLevelAiAgentConfigLabels: LabellingUnitaryDef[] = [\n { ref: 'title', kind: LabelKind.HEADING, purpose: 'Heading for the agent configuration panel' },\n { ref: 'searchPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder for the agent search input' },\n { ref: 'noAgents', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when no agents are configured' },\n { ref: 'noMatch', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when no agents match the current search or filter' },\n { ref: 'statusActive', kind: LabelKind.MESSAGE, purpose: 'Status badge for an active agent' },\n { ref: 'statusInactive', kind: LabelKind.MESSAGE, purpose: 'Status badge for an inactive agent' },\n { ref: 'statusDeprecated', kind: LabelKind.MESSAGE, purpose: 'Status badge for a deprecated agent' },\n { ref: 'skillGeneration', kind: LabelKind.LABEL, purpose: 'Agent skill: generating new content' },\n { ref: 'skillAnalysis', kind: LabelKind.LABEL, purpose: 'Agent skill: analyzing inputs' },\n { ref: 'skillTransformation', kind: LabelKind.LABEL, purpose: 'Agent skill: transforming data from one form to another' },\n { ref: 'skillDecision', kind: LabelKind.LABEL, purpose: 'Agent skill: making decisions' },\n { ref: 'skillChat', kind: LabelKind.LABEL, purpose: 'Agent skill: conversational chat' },\n { ref: 'skillCustom', kind: LabelKind.LABEL, purpose: 'Agent skill: a custom-defined capability' },\n { ref: 'allStatuses', kind: LabelKind.LABEL, purpose: 'Filter option showing agents of every status' },\n { ref: 'allSkills', kind: LabelKind.LABEL, purpose: 'Filter option showing agents with any skill' },\n { ref: 'identity', kind: LabelKind.HEADING, purpose: 'Heading for the agent identity section of the prompt spec' },\n { ref: 'role', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s role in its identity' },\n { ref: 'persona', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s persona' },\n { ref: 'goal', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s overarching goal' },\n { ref: 'constraints', kind: LabelKind.HEADING, purpose: 'Heading for the agent constraints section' },\n { ref: 'constraintSecurity', kind: LabelKind.LABEL, purpose: 'Constraint category: security' },\n { ref: 'constraintSafety', kind: LabelKind.LABEL, purpose: 'Constraint category: safety' },\n { ref: 'constraintPrivacy', kind: LabelKind.LABEL, purpose: 'Constraint category: privacy' },\n { ref: 'constraintScope', kind: LabelKind.LABEL, purpose: 'Constraint category: scope boundaries' },\n { ref: 'constraintCompliance', kind: LabelKind.LABEL, purpose: 'Constraint category: regulatory compliance' },\n { ref: 'violationRefuse', kind: LabelKind.LABEL, purpose: 'Violation handling: refuse to act on the request' },\n { ref: 'violationWarn', kind: LabelKind.LABEL, purpose: 'Violation handling: warn but continue' },\n { ref: 'violationLog', kind: LabelKind.LABEL, purpose: 'Violation handling: log the violation' },\n { ref: 'instructions', kind: LabelKind.HEADING, purpose: 'Heading for the agent instructions section' },\n { ref: 'hints', kind: LabelKind.LABEL, purpose: 'Label for optional hints guiding the agent' },\n { ref: 'outOfScope', kind: LabelKind.LABEL, purpose: 'Label for topics/actions explicitly out of the agent\\'s scope' },\n { ref: 'examples', kind: LabelKind.HEADING, purpose: 'Heading for the agent few-shot examples section' },\n { ref: 'exampleInput', kind: LabelKind.LABEL, purpose: 'Label for the input of a few-shot example' },\n { ref: 'exampleOutput', kind: LabelKind.LABEL, purpose: 'Label for the expected output of a few-shot example' },\n { ref: 'exampleExplanation', kind: LabelKind.LABEL, purpose: 'Label for the explanation of a few-shot example' },\n { ref: 'output', kind: LabelKind.HEADING, purpose: 'Heading for the agent output specification section' },\n { ref: 'outputType', kind: LabelKind.LABEL, purpose: 'Label for the expected output data type' },\n { ref: 'outputFormat', kind: LabelKind.LABEL, purpose: 'Label for the required output format' },\n { ref: 'outputLength', kind: LabelKind.LABEL, purpose: 'Label for the target output length' },\n { ref: 'outputReasoning', kind: LabelKind.LABEL, purpose: 'Label for whether the agent should expose its reasoning' },\n { ref: 'requiredSections', kind: LabelKind.LABEL, purpose: 'Label for sections the output must include' },\n { ref: 'uncertainty', kind: LabelKind.HEADING, purpose: 'Heading for the agent uncertainty-handling section' },\n { ref: 'policyAsk', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: ask the user for clarification' },\n { ref: 'policyInfer', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: infer a reasonable answer' },\n { ref: 'policyConservative', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: take the conservative option' },\n { ref: 'policyFail', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: fail rather than guess' },\n { ref: 'confidenceThreshold', kind: LabelKind.LABEL, purpose: 'Label for the minimum confidence the agent requires to act' },\n { ref: 'style', kind: LabelKind.HEADING, purpose: 'Heading for the agent style/tone section' },\n { ref: 'verbosity', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s output verbosity setting' },\n { ref: 'tone', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s tone setting' },\n { ref: 'curation', kind: LabelKind.HEADING, purpose: 'Heading for the agent context-curation section' },\n { ref: 'maxItems', kind: LabelKind.LABEL, purpose: 'Label for the maximum number of curated context items' },\n { ref: 'minRelevance', kind: LabelKind.LABEL, purpose: 'Label for the minimum relevance score for curated items' },\n { ref: 'maxTokens', kind: LabelKind.LABEL, purpose: 'Label for the maximum token budget for curated context' },\n { ref: 'metadata', kind: LabelKind.HEADING, purpose: 'Heading for the agent metadata section' },\n { ref: 'version', kind: LabelKind.LABEL, purpose: 'Label for the agent configuration version' },\n { ref: 'author', kind: LabelKind.LABEL, purpose: 'Label for the agent configuration author' },\n { ref: 'lastModified', kind: LabelKind.LABEL, purpose: 'Label for when the agent configuration was last modified' },\n { ref: 'changelog', kind: LabelKind.LABEL, purpose: 'Label for the agent configuration changelog' },\n { ref: 'capabilities', kind: LabelKind.HEADING, purpose: 'Heading for the agent capabilities section' },\n { ref: 'tools', kind: LabelKind.LABEL, purpose: 'Label for the tools available to the agent' },\n { ref: 'functionRefs', kind: LabelKind.LABEL, purpose: 'Label for the function references the agent can call' },\n // 'is configured to reach', never 'can use' (#560): this heading sits on a card built from STATIC\n // capabilities, and an agent's usable MCP tools are fewer whenever a server is unreachable, a\n // credential is unavailable or the outbound guard refuses the target. The words must describe a\n // CONFIGURATION, so they cannot be read as the resolved function-tool list beside them.\n { ref: 'mcpRefs', kind: LabelKind.LABEL, purpose: 'Label for the MCP servers this agent is configured to reach (a declared configuration, not a list of tools it can currently call)' },\n { ref: 'noCapabilities', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when the agent has no capabilities configured' },\n { ref: 'booleanYes', kind: LabelKind.LABEL, purpose: 'Affirmative value shown for a boolean agent attribute' },\n { ref: 'booleanNo', kind: LabelKind.LABEL, purpose: 'Negative value shown for a boolean agent attribute' },\n { ref: 'model', kind: LabelKind.LABEL, purpose: 'Label for the underlying model the agent uses' },\n { ref: 'operationKey', kind: LabelKind.LABEL, purpose: 'Label for the operation key that routes the agent\\'s model call' },\n { ref: 'seed', kind: LabelKind.LABEL, purpose: 'Label for the deterministic generation seed' },\n {\n ref: 'agentCount',\n kind: LabelKind.LABEL,\n purpose: 'Count of agents currently shown in the list',\n params: [{ key: 'count', meaning: 'number of agents displayed', isCount: true }],\n },\n];\nregisterComponentLabels(FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG, LowLevelAiAgentConfigLabels);\n"]}
|
|
1
|
+
{"version":3,"file":"agent-config.labels.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/agent-config.labels.ts"],"names":[],"m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4BAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KACjF;CACF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,yBAAyB,EAAE,2BAA2B,CAAC,CAAC","sourcesContent":["import { FrontendComponentType, LabelKind, type LabellingUnitaryDef, registerComponentLabels } 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\nexport const LowLevelAiAgentConfigLabels: LabellingUnitaryDef[] = [\n { ref: 'title', kind: LabelKind.HEADING, purpose: 'Heading for the agent configuration panel' },\n { ref: 'searchPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder for the agent search input' },\n { ref: 'noAgents', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when no agents are configured' },\n { ref: 'noMatch', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when no agents match the current search or filter' },\n { ref: 'statusActive', kind: LabelKind.MESSAGE, purpose: 'Status badge for an active agent' },\n { ref: 'statusInactive', kind: LabelKind.MESSAGE, purpose: 'Status badge for an inactive agent' },\n { ref: 'statusDeprecated', kind: LabelKind.MESSAGE, purpose: 'Status badge for a deprecated agent' },\n { ref: 'skillGeneration', kind: LabelKind.LABEL, purpose: 'Agent skill: generating new content' },\n { ref: 'skillAnalysis', kind: LabelKind.LABEL, purpose: 'Agent skill: analyzing inputs' },\n { ref: 'skillTransformation', kind: LabelKind.LABEL, purpose: 'Agent skill: transforming data from one form to another' },\n { ref: 'skillDecision', kind: LabelKind.LABEL, purpose: 'Agent skill: making decisions' },\n { ref: 'skillChat', kind: LabelKind.LABEL, purpose: 'Agent skill: conversational chat' },\n { ref: 'skillCustom', kind: LabelKind.LABEL, purpose: 'Agent skill: a custom-defined capability' },\n { ref: 'allStatuses', kind: LabelKind.LABEL, purpose: 'Filter option showing agents of every status' },\n { ref: 'allSkills', kind: LabelKind.LABEL, purpose: 'Filter option showing agents with any skill' },\n { ref: 'identity', kind: LabelKind.HEADING, purpose: 'Heading for the agent identity section of the prompt spec' },\n { ref: 'role', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s role in its identity' },\n { ref: 'persona', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s persona' },\n { ref: 'goal', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s overarching goal' },\n { ref: 'constraints', kind: LabelKind.HEADING, purpose: 'Heading for the agent constraints section' },\n { ref: 'constraintSecurity', kind: LabelKind.LABEL, purpose: 'Constraint category: security' },\n { ref: 'constraintSafety', kind: LabelKind.LABEL, purpose: 'Constraint category: safety' },\n { ref: 'constraintPrivacy', kind: LabelKind.LABEL, purpose: 'Constraint category: privacy' },\n { ref: 'constraintScope', kind: LabelKind.LABEL, purpose: 'Constraint category: scope boundaries' },\n { ref: 'constraintCompliance', kind: LabelKind.LABEL, purpose: 'Constraint category: regulatory compliance' },\n { ref: 'violationRefuse', kind: LabelKind.LABEL, purpose: 'Violation handling: refuse to act on the request' },\n { ref: 'violationWarn', kind: LabelKind.LABEL, purpose: 'Violation handling: warn but continue' },\n { ref: 'violationLog', kind: LabelKind.LABEL, purpose: 'Violation handling: log the violation' },\n { ref: 'instructions', kind: LabelKind.HEADING, purpose: 'Heading for the agent instructions section' },\n { ref: 'hints', kind: LabelKind.LABEL, purpose: 'Label for optional hints guiding the agent' },\n { ref: 'outOfScope', kind: LabelKind.LABEL, purpose: 'Label for topics/actions explicitly out of the agent\\'s scope' },\n { ref: 'examples', kind: LabelKind.HEADING, purpose: 'Heading for the agent few-shot examples section' },\n { ref: 'exampleInput', kind: LabelKind.LABEL, purpose: 'Label for the input of a few-shot example' },\n { ref: 'exampleOutput', kind: LabelKind.LABEL, purpose: 'Label for the expected output of a few-shot example' },\n { ref: 'exampleExplanation', kind: LabelKind.LABEL, purpose: 'Label for the explanation of a few-shot example' },\n { ref: 'output', kind: LabelKind.HEADING, purpose: 'Heading for the agent output specification section' },\n { ref: 'outputType', kind: LabelKind.LABEL, purpose: 'Label for the expected output data type' },\n { ref: 'outputFormat', kind: LabelKind.LABEL, purpose: 'Label for the required output format' },\n { ref: 'outputLength', kind: LabelKind.LABEL, purpose: 'Label for the target output length' },\n { ref: 'outputReasoning', kind: LabelKind.LABEL, purpose: 'Label for whether the agent should expose its reasoning' },\n { ref: 'requiredSections', kind: LabelKind.LABEL, purpose: 'Label for sections the output must include' },\n { ref: 'uncertainty', kind: LabelKind.HEADING, purpose: 'Heading for the agent uncertainty-handling section' },\n { ref: 'policyAsk', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: ask the user for clarification' },\n { ref: 'policyInfer', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: infer a reasonable answer' },\n { ref: 'policyConservative', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: take the conservative option' },\n { ref: 'policyFail', kind: LabelKind.LABEL, purpose: 'Uncertainty policy: fail rather than guess' },\n { ref: 'confidenceThreshold', kind: LabelKind.LABEL, purpose: 'Label for the minimum confidence the agent requires to act' },\n { ref: 'style', kind: LabelKind.HEADING, purpose: 'Heading for the agent style/tone section' },\n { ref: 'verbosity', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s output verbosity setting' },\n { ref: 'tone', kind: LabelKind.LABEL, purpose: 'Label for the agent\\'s tone setting' },\n { ref: 'curation', kind: LabelKind.HEADING, purpose: 'Heading for the agent context-curation section' },\n { ref: 'maxItems', kind: LabelKind.LABEL, purpose: 'Label for the maximum number of curated context items' },\n { ref: 'minRelevance', kind: LabelKind.LABEL, purpose: 'Label for the minimum relevance score for curated items' },\n { ref: 'maxTokens', kind: LabelKind.LABEL, purpose: 'Label for the maximum token budget for curated context' },\n { ref: 'metadata', kind: LabelKind.HEADING, purpose: 'Heading for the agent metadata section' },\n { ref: 'version', kind: LabelKind.LABEL, purpose: 'Label for the agent configuration version' },\n { ref: 'author', kind: LabelKind.LABEL, purpose: 'Label for the agent configuration author' },\n { ref: 'lastModified', kind: LabelKind.LABEL, purpose: 'Label for when the agent configuration was last modified' },\n { ref: 'changelog', kind: LabelKind.LABEL, purpose: 'Label for the agent configuration changelog' },\n { ref: 'capabilities', kind: LabelKind.HEADING, purpose: 'Heading for the agent capabilities section' },\n { ref: 'tools', kind: LabelKind.LABEL, purpose: 'Label for the tools available to the agent' },\n { ref: 'functionRefs', kind: LabelKind.LABEL, purpose: 'Label for the function references the agent can call' },\n // 'is configured to reach', never 'can use' (#560): this heading sits on a card built from STATIC\n // capabilities, and an agent's usable MCP tools are fewer whenever a server is unreachable, a\n // credential is unavailable or the outbound guard refuses the target. The words must describe a\n // CONFIGURATION, so they cannot be read as the resolved function-tool list beside them.\n { ref: 'mcpRefs', kind: LabelKind.LABEL, purpose: 'Label for the MCP servers this agent is configured to reach (a declared configuration, not a list of tools it can currently call)' },\n // #3930: the same 'configured to', for the same reason as `mcpRefs`.\n { ref: 'remoteAgentRefs', kind: LabelKind.LABEL, purpose: 'Label for the remote agents (other parties\\' A2A agents) this agent is configured to delegate tasks to (a declared configuration, not a list of tools it can currently call)' },\n { ref: 'noCapabilities', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when the agent has no capabilities configured' },\n { ref: 'booleanYes', kind: LabelKind.LABEL, purpose: 'Affirmative value shown for a boolean agent attribute' },\n { ref: 'booleanNo', kind: LabelKind.LABEL, purpose: 'Negative value shown for a boolean agent attribute' },\n { ref: 'model', kind: LabelKind.LABEL, purpose: 'Label for the underlying model the agent uses' },\n { ref: 'operationKey', kind: LabelKind.LABEL, purpose: 'Label for the operation key that routes the agent\\'s model call' },\n { ref: 'seed', kind: LabelKind.LABEL, purpose: 'Label for the deterministic generation seed' },\n {\n ref: 'agentCount',\n kind: LabelKind.LABEL,\n purpose: 'Count of agents currently shown in the list',\n params: [{ key: 'count', meaning: 'number of agents displayed', isCount: true }],\n },\n];\nregisterComponentLabels(FrontendComponentType.LOW_LEVEL_AI_AGENT_CONFIG, LowLevelAiAgentConfigLabels);\n"]}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type AI_ApprovalReasonCodeOption, type AI_ApprovalRequestProps, type AI_ApprovalQueueProps, type AI_DecisionQuestion } from "../../components/ai-elements/decision/approval";
|
|
3
|
-
import { AGENT_WORK_REASON_CODE_VOCABULARY, ApplicationConfigVocabulary, HumanDecision_RequesterKind, type HumanDecision_PendingCard, type HumanDecision_Request } from "@wildo-ai/saas-models";
|
|
3
|
+
import { AGENT_WORK_REASON_CODE_VOCABULARY, ApplicationConfigVocabulary, HumanDecision_RequesterKind, type HumanDecision_ActOutcome, type HumanDecision_PendingCard, type HumanDecision_Request } from "@wildo-ai/saas-models";
|
|
4
|
+
/**
|
|
5
|
+
* What an act came to, in the approval's own labels. Total over the outcome vocabulary, so an outcome added
|
|
6
|
+
* tomorrow is a compile error here rather than a silent act. `toolLabel` is the card's tool, in the words the card shows
|
|
7
|
+
* it in, for the notices that name it. Exported for the pins that hold it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function noticeOfOutcome(outcome: HumanDecision_ActOutcome, t: (labelRef: string, params?: Record<string, string>) => string, toolLabel?: string): string | undefined;
|
|
4
10
|
/**
|
|
5
11
|
* The reason picker's options (#1921): each declared code with its word from `system_enums.AgentWorkReasonCode.<code>`.
|
|
6
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../../../src/components/flows-actors/approval.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAE1B,KAAK,mBAAmB,EACzB,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAQ3B,2BAA2B,
|
|
1
|
+
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../../../src/components/flows-actors/approval.tsx"],"names":[],"mappings":"AAEA,O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,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,CAKtI;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwKlG"}
|
|
@@ -7,7 +7,7 @@ import { PendingDecisionsReadState, usePendingDecisions } from "../../core/flows
|
|
|
7
7
|
import { useFlowsActors } from "../../core/flows-actors/useFlowsActors.js";
|
|
8
8
|
import { FrontendComponentType, LabellingTypes, ResourceOperationTextSlot } from "@wildo-ai/presets-components-models";
|
|
9
9
|
import { useI18n } from "../../core/i18n/useI18n.js";
|
|
10
|
-
import { describeApprovalModificationRefusal } from "../../components/flows-actors/approval-modification-refusal.utils.js";
|
|
10
|
+
import { APPROVAL_MODIFICATION_REFUSAL_LABEL_REF, describeApprovalModificationRefusal } from "../../components/flows-actors/approval-modification-refusal.utils.js";
|
|
11
11
|
import { DecisionApprovalSeal } from "../../components/data-display/approval-seal.js";
|
|
12
12
|
/** How many decisions answered in this inbox keep their seal shown under it, newest first (#2913). */
|
|
13
13
|
const DECIDED_SEALS_SHOWN = 5;
|
|
@@ -28,9 +28,10 @@ const DECIDED_SEALS_SHOWN = 5;
|
|
|
28
28
|
//===============================================================
|
|
29
29
|
/**
|
|
30
30
|
* What an act came to, in the approval's own labels. Total over the outcome vocabulary, so an outcome added
|
|
31
|
-
* tomorrow is a compile error here rather than a silent act.
|
|
31
|
+
* tomorrow is a compile error here rather than a silent act. `toolLabel` is the card's tool, in the words the card shows
|
|
32
|
+
* it in, for the notices that name it. Exported for the pins that hold it.
|
|
32
33
|
*/
|
|
33
|
-
function noticeOfOutcome(outcome, t) {
|
|
34
|
+
export function noticeOfOutcome(outcome, t, toolLabel) {
|
|
34
35
|
// #3316: the arguments a refusal is about, by name: the inbox has no error payload, and the values may all be valid.
|
|
35
36
|
const named = { arguments: (outcome.argumentNames ?? []).join(', ') || t("noticeTheseArguments") };
|
|
36
37
|
const byKind = {
|
|
@@ -54,7 +55,7 @@ function noticeOfOutcome(outcome, t) {
|
|
|
54
55
|
: outcome.reason === HumanDecision_RefusalReason.CREDENTIAL_NOT_ACCEPTED
|
|
55
56
|
? t("noticeCredentialNotAccepted", named)
|
|
56
57
|
: outcome.reason === HumanDecision_RefusalReason.CALL_CANNOT_RUN
|
|
57
|
-
? t
|
|
58
|
+
? callCannotRunNotice(outcome, t, toolLabel)
|
|
58
59
|
: outcome.reason === HumanDecision_RefusalReason.ARGUMENTS_CANNOT_BE_CORRECTED
|
|
59
60
|
? t("noticeArgumentsCannotBeCorrected", named)
|
|
60
61
|
: t("noticeModificationRejected"),
|
|
@@ -65,6 +66,19 @@ function noticeOfOutcome(outcome, t) {
|
|
|
65
66
|
};
|
|
66
67
|
return byKind[outcome.kind];
|
|
67
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* #3965: why a call cannot run as things stand, in the label the conversation's card shows for the same refusal: an agent
|
|
71
|
+
* suspended, a policy tightened and an agent gone each have their own remedy, and `call_cannot_run` alone names none of
|
|
72
|
+
* them. A refusal this bundle does not know (a newer server), or none (an older one), keeps the generic notice.
|
|
73
|
+
*/
|
|
74
|
+
function callCannotRunNotice(outcome, t, toolLabel) {
|
|
75
|
+
const labelRef = outcome.callRefusalReason !== undefined && Object.hasOwn(APPROVAL_MODIFICATION_REFUSAL_LABEL_REF, outcome.callRefusalReason)
|
|
76
|
+
? APPROVAL_MODIFICATION_REFUSAL_LABEL_REF[outcome.callRefusalReason]
|
|
77
|
+
: undefined;
|
|
78
|
+
if (labelRef === undefined)
|
|
79
|
+
return t("noticeCallCannotRun");
|
|
80
|
+
return t(labelRef, { toolName: toolLabel ?? '', arguments: (outcome.argumentNames ?? []).join(', ') });
|
|
81
|
+
}
|
|
68
82
|
/**
|
|
69
83
|
* The presentation a card was read on (#2903), echoed on its answer: the server rebuilds the decision's presentation and
|
|
70
84
|
* refuses an answer naming none, or one that is no longer current, so what is sealed is what this reviewer read.
|
|
@@ -380,6 +394,8 @@ export function FlowsActors_ApprovalQueue(props) {
|
|
|
380
394
|
*/
|
|
381
395
|
const [decided, setDecided] = React.useState([]);
|
|
382
396
|
const cardTitles = React.useRef(new Map());
|
|
397
|
+
// #3965: each card's tool, in its words, for a notice that names it.
|
|
398
|
+
const cardToolLabels = React.useRef(new Map());
|
|
383
399
|
const run = React.useCallback(async (decisionRef, decisionAct, request) => {
|
|
384
400
|
setProcessing((previous) => new Set(previous).add(decisionRef));
|
|
385
401
|
const title = cardTitles.current.get(decisionRef);
|
|
@@ -388,7 +404,7 @@ export function FlowsActors_ApprovalQueue(props) {
|
|
|
388
404
|
if (decisionAct === HumanDecision_Act.ANSWER && outcome.kind === HumanDecision_ActOutcomeKind.APPLIED) {
|
|
389
405
|
setDecided((previous) => [{ decisionRef, ...(title ? { title } : {}) }, ...previous.filter((entry) => entry.decisionRef !== decisionRef)].slice(0, DECIDED_SEALS_SHOWN));
|
|
390
406
|
}
|
|
391
|
-
const notice = noticeOfOutcome(outcome, t);
|
|
407
|
+
const notice = noticeOfOutcome(outcome, t, cardToolLabels.current.get(decisionRef));
|
|
392
408
|
setNotices((previous) => {
|
|
393
409
|
const next = new Map(previous);
|
|
394
410
|
if (notice === undefined)
|
|
@@ -450,6 +466,7 @@ export function FlowsActors_ApprovalQueue(props) {
|
|
|
450
466
|
argumentsSchema: card.toolInputSchema,
|
|
451
467
|
})), [decisions, reassignCandidates, notices, t, roleLabel, toolLabel, operationLabel, tSystemEnum, formatDateTime]);
|
|
452
468
|
cardTitles.current = new Map(items.flatMap((item) => (typeof item.actionDescription === 'string' ? [[item.approvalId, item.actionDescription]] : [])));
|
|
469
|
+
cardToolLabels.current = new Map(items.flatMap((item) => (item.toolLabel ? [[item.approvalId, item.toolLabel]] : [])));
|
|
453
470
|
/**
|
|
454
471
|
* An answer in the one answer shape: the option chosen, and no values. Which option refs "approve" and "deny" mean
|
|
455
472
|
* depends on the decision's plane — a tool approval's, or a representative admission's (#1612) — so the card decides.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/approval.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GAQjB,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,2BAA2B,EAC3B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,uCAAuC,EACvC,kBAAkB,EAClB,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,GAM7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAC3H,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAGtF,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAA;AACtH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,oBAAoB,EAAE,MAAM,2DAA2D,CAAC;AAEjG,sGAAsG;AACtG,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAE9B,iEAAiE;AACjE,kCAAkC;AAClC,EAAE;AACF,oEAAoE;AACpE,EAAE;AACF,2GAA2G;AAC3G,2GAA2G;AAC3G,+CAA+C;AAC/C,EAAE;AACF,mHAAmH;AACnH,qHAAqH;AACrH,qHAAqH;AACrH,sHAAsH;AACtH,4FAA4F;AAC5F,iEAAiE;AAEjE;;;GAGG;AACH,SAAS,eAAe,CACtB,OAAi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CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAChK,YAAY,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,WAAW,EAAE,EAAE,aAAa,EAAE,CAAC,EACrH,aAAa,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,EACzF,aAAa,EAAE,UAAyB;gBACxC,2GAA2G;gBAC3G,SAAS,EAAE,SAAS,KAAK,yBAAyB,CAAC,OAAO,EAC1D,UAAU,EAAE,SAAS,KAAK,yBAAyB,CAAC,MAAM,EAC1D,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,KAC9B,KAAK,GACT,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,KAAC,oBAAoB,IAAyB,WAAW,EAAE,KAAK,CAAC,WAAW,KAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAAxG,KAAK,CAAC,WAAW,CAA2F,CACxI,CAAC,IACC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n AI_ApprovalRequest,\n AI_ApprovalQueue,\n type AI_ApprovalQueueItem,\n type AI_ApprovalReasonCodeOption,\n type AI_ApprovalReassignCandidate,\n type AI_ApprovalRequestProps,\n type AI_ApprovalQueueProps,\n type AI_DecisionAnswerValue,\n type AI_DecisionQuestion,\n} from \"~wildo-frontend-lib/components/ai-elements/decision/approval\";\nimport {\n AGENT_WORK_REASON_CODE_VOCABULARY,\n ApplicationConfigVocabulary,\n FlowsActorsToolLabelSlot,\n flowsActorsToolLabelKey,\n flowsActorsToolLabelScope,\n HumanDecision_Act,\n HumanDecision_ActOutcomeKind,\n HumanDecision_Plane,\n HumanDecision_RefusalReason,\n HumanDecision_RequesterKind,\n HumanDecision_RouteKind,\n HumanDecisionPhraseKind,\n HUMAN_DECISION_INBOX_FOCUS_PARAM,\n HUMAN_DECISION_VERDICT_OPTIONS_BY_PLANE,\n ReviewDeadlineKind,\n describeHumanDecisionCard,\n humanDecisionAsksItsOwnQuestion,\n humanDecisionOptionPhrase,\n humanDecisionPresentedRowsOf,\n type HumanDecisionPhrase,\n type HumanDecision_ActOutcome,\n type HumanDecision_ActRequest,\n type HumanDecision_PendingCard,\n type HumanDecision_Request,\n} from \"@wildo-ai/saas-models\";\nimport { PendingDecisionsReadState, usePendingDecisions } from \"~wildo-frontend-lib/core/flows-actors/usePendingDecisions\";\nimport { useFlowsActors } from \"~wildo-frontend-lib/core/flows-actors/useFlowsActors\";\nimport type { ComponentProps } from \"react\";\nimport type { SerializableZodSchema } from \"@wildo-ai/zod-decorators\";\nimport { FrontendComponentType, LabellingTypes, ResourceOperationTextSlot } from \"@wildo-ai/presets-components-models\"\nimport { useI18n } from \"~wildo-frontend-lib/core/i18n/useI18n\";\nimport { describeApprovalModificationRefusal } from \"~wildo-frontend-lib/components/flows-actors/approval-modification-refusal.utils\";\nimport { DecisionApprovalSeal } from \"~wildo-frontend-lib/components/data-display/approval-seal\";\n\n/** How many decisions answered in this inbox keep their seal shown under it, newest first (#2913). */\nconst DECIDED_SEALS_SHOWN = 5;\n\n//===============================================================\n// Flows-Actors Approval Wrappers\n//\n// Thin context-wired wrappers over the preset decision components.\n//\n// - FlowsActors_ApprovalRequest answers a decision IN its conversation, over the socket the turn runs on.\n// - FlowsActors_ApprovalQueue is the person's INBOX: every decision they may act on, read from the server\n// (#1594 D6), answered and moved over REST.\n//\n// A decision with options of its OWN — an actor system's question, with its fields — is answered in the inbox too\n// (#2526): its card carries the request, and the inbox draws its options in place of Approve and Deny and sends the\n// chosen one, with the field values, in the one answer shape. Two standalone wrappers that answered such a decision\n// outside any list (FlowsActors_DecisionRequest, FlowsActors_HumanInputRequest) had no consumer and were folded into\n// this one path; since #2539 an application raises those decisions on its own actor plane.\n//===============================================================\n\n/**\n * What an act came to, in the approval's own labels. Total over the outcome vocabulary, so an outcome added\n * tomorrow is a compile error here rather than a silent act.\n */\nfunction noticeOfOutcome(\n outcome: HumanDecision_ActOutcome,\n t: (labelRef: string, params?: Record<string, string>) => string,\n): string | undefined {\n // #3316: the arguments a refusal is about, by name: the inbox has no error payload, and the values may all be valid.\n const named = { arguments: (outcome.argumentNames ?? []).join(', ') || t(\"noticeTheseArguments\") };\n const byKind: Readonly<Record<HumanDecision_ActOutcomeKind, string | undefined>> = {\n [HumanDecision_ActOutcomeKind.APPLIED]: undefined,\n // An admitted person's refused clock act names why (#1628); anything else stays one undisclosing notice.\n // #2903: the request changed since it was read; the list just re-read shows it as it is now.\n [HumanDecision_ActOutcomeKind.NOT_ACTIONABLE]: outcome.reason === HumanDecision_RefusalReason.PRESENTATION_STALE ? t(\"noticePresentationStale\")\n : outcome.reason === HumanDecision_RefusalReason.CLOCK_ALREADY_PAUSED ? t(\"noticeClockAlreadyPaused\")\n : outcome.reason === HumanDecision_RefusalReason.CLOCK_NOT_PAUSED ? t(\"noticeClockNotPaused\")\n : outcome.reason === HumanDecision_RefusalReason.PAUSE_STATE_NOT_DECLARED ? t(\"noticePauseStateNotDeclared\")\n : t(\"noticeNotActionable\"),\n [HumanDecision_ActOutcomeKind.LAPSED]: t(\"noticeLapsed\"),\n [HumanDecision_ActOutcomeKind.REQUESTER_AUTHORITY_LAPSED]: t(\"noticeRequesterAuthorityLapsed\"),\n // An edit pointing the call at a record the answerer may not reach says so (#2734): the inbox gets no error payload,\n // only the outcome, so its reason is what tells a representative to put the arguments back.\n // Likewise a call that would not run as read (#3295): the values may be valid, so \"refused\" alone says nothing.\n [HumanDecision_ActOutcomeKind.MODIFICATION_REJECTED]: outcome.reason === HumanDecision_RefusalReason.EDITED_CALL_NOT_REACHABLE\n ? t(\"noticeEditedCallNotReachable\", named)\n : outcome.reason === HumanDecision_RefusalReason.CALL_NOT_RUN_AS_READ\n ? t(\"noticeCallNotRunAsRead\", named)\n : outcome.reason === HumanDecision_RefusalReason.CREDENTIAL_NOT_ACCEPTED\n ? t(\"noticeCredentialNotAccepted\", named)\n : outcome.reason === HumanDecision_RefusalReason.CALL_CANNOT_RUN\n ? t(\"noticeCallCannotRun\")\n : outcome.reason === HumanDecision_RefusalReason.ARGUMENTS_CANNOT_BE_CORRECTED\n ? t(\"noticeArgumentsCannotBeCorrected\", named)\n : t(\"noticeModificationRejected\"),\n [HumanDecision_ActOutcomeKind.REASON_CODE_REJECTED]: t(\"noticeReasonCodeRejected\"),\n [HumanDecision_ActOutcomeKind.CONSENT_REQUIRED]: t(\"noticeConsentRequired\"),\n [HumanDecision_ActOutcomeKind.TARGET_REFUSED]: outcome.reason === HumanDecision_RefusalReason.NO_TARGET ? t(\"noticeNoEscalationTarget\") : t(\"noticeTargetRefused\"),\n [HumanDecision_ActOutcomeKind.SUPERSEDED]: t(\"noticeSuperseded\"),\n };\n return byKind[outcome.kind];\n}\n\n/**\n * The presentation a card was read on (#2903), echoed on its answer: the server rebuilds the decision's presentation and\n * refuses an answer naming none, or one that is no longer current, so what is sealed is what this reviewer read.\n */\nfunction presentationEchoOf(decisions: readonly HumanDecision_PendingCard[], decisionRef: string): Pick<HumanDecision_ActRequest, 'presentationId'> {\n const presentationId = decisions.find((card) => card.decisionRef === decisionRef)?.presentationId;\n return presentationId ? { presentationId } : {};\n}\n\n/**\n * The reason picker's options (#1921): each declared code with its word from `system_enums.AgentWorkReasonCode.<code>`.\n *\n * The codes are the APPLICATION's (`agentWorkReview.reasonCodes`); their words live under the framework's named\n * vocabulary, where the labelling pipeline plans one key per declared code. A code nobody has worded yet shows as the\n * code itself — `tSystemEnum` answers the raw value on a miss — which is a missing label that looks missing, never words\n * invented from the identifier. Exported for the pin that holds that fallback.\n */\nexport function describeReasonCodeOptions(\n reasonCodes: readonly string[] | undefined,\n tSystemEnum: (enumName: typeof AGENT_WORK_REASON_CODE_VOCABULARY, enumValue: string) => string,\n): AI_ApprovalReasonCodeOption[] | undefined {\n if (!reasonCodes || reasonCodes.length === 0) return undefined;\n return reasonCodes.map((code) => ({ value: code, label: tSystemEnum(AGENT_WORK_REASON_CODE_VOCABULARY, code) }));\n}\n\n/**\n * A gate's pause states as the words a reviewer reads (#1864): each state's word under the framework's named vocabulary\n * `system_enums.HumanDecisionPauseState.<state>`, which the labelling pipeline plans from every gate's declared\n * `pauseStates`. A state nobody has worded yet shows as itself — `tSystemEnum` answers the raw value on a miss — a\n * missing label that looks missing. Exported for the pin that holds it.\n */\nexport function describePauseState(\n pauseState: string,\n tSystemEnum: (enumName: ApplicationConfigVocabulary.HUMAN_DECISION_PAUSE_STATE, enumValue: string) => string,\n): string {\n return tSystemEnum(ApplicationConfigVocabulary.HUMAN_DECISION_PAUSE_STATE, pauseState);\n}\n\n/**\n * The label namespaces the approval wrappers read beyond their own component: the reason codes' (#1921) and pause\n * states' (#1864) words, and the roles' (#2526 review F3) — the holder line names a role, and `roles` is not an eager\n * section, so without it every ROLE card named the role by its key.\n */\nconst APPROVAL_LABEL_NAMESPACES = [LabellingTypes.SYSTEM_ENUMS, LabellingTypes.ROLES];\n/** The chat card holds a tool approval, never an operation approval, so it loads no resource's operation titles. */\nconst NO_OPERATION_RESOURCES: readonly string[] = [];\n\n//===============================================================\n// FlowsActors_ApprovalRequest\n//\n// A decision answered in the conversation it was raised in.\n//===============================================================\n\nexport type FlowsActors_ApprovalRequestProps = Omit<\n AI_ApprovalRequestProps,\n \"approvalId\" | \"actionDescription\" | \"riskLevel\" | \"onApprove\" | \"onDeny\" | \"onEscalate\" | \"answerable\"\n> & {\n executionId: string;\n};\n\nexport function FlowsActors_ApprovalRequest({\n executionId,\n ...props\n}: FlowsActors_ApprovalRequestProps): React.JSX.Element | null {\n const { executions, respondToApproval, answerQuestion } = useFlowsActors();\n const [processingId, setProcessingId] = React.useState<string | null>(null);\n /**\n * #2913: the decision this card answered, kept once the card's pending decision clears so the card shows its seal in\n * its place. `shown` is what the card showed when it was answered: its decision and its title.\n */\n const [answered, setAnswered] = React.useState<{ readonly decisionRef: string; readonly title: string } | null>(null);\n const shown = React.useRef<{ readonly decisionRef: string; readonly title: string } | null>(null);\n const execution = executions.get(executionId);\n const pendingApproval = execution?.pendingApproval;\n // The paused tool's title is loaded with the card's own words, so the card names the call as the inbox does.\n const pendingToolName = pendingApproval?.toolName;\n const toolNames = React.useMemo(() => (pendingToolName ? [pendingToolName] : []), [pendingToolName]);\n const { t, roleLabel, toolLabel, operationLabel, tComponent, tSystemEnum } = useHumanDecisionWords(toolNames, NO_OPERATION_RESOURCES);\n\n // Every hook runs BEFORE the early return below. React requires the same hooks on every render, and the render\n // that clears `pendingApproval` — the moment a decision is answered — used to run three fewer (#534 fourth\n // review F1).\n const handleApprove = React.useCallback((id: string, comment?: string, modifiedToolArgs?: Record<string, unknown>, reasonCode?: string) => {\n setProcessingId(id);\n setAnswered(shown.current);\n // The reason rides only when given, so an answer without one keeps the call shape it always had.\n respondToApproval(executionId, id, true, comment, modifiedToolArgs, ...(reasonCode ? [reasonCode] : []));\n }, [executionId, respondToApproval]);\n\n const handleDeny = React.useCallback((id: string, comment?: string, reasonCode?: string) => {\n setProcessingId(id);\n setAnswered(shown.current);\n if (reasonCode) respondToApproval(executionId, id, false, comment, undefined, reasonCode);\n else respondToApproval(executionId, id, false, comment);\n }, [executionId, respondToApproval]);\n\n // #2720: the agent's QUESTION is answered with the person's values, or declined — never approved.\n const handleAnswer = React.useCallback((id: string, optionRef: string, values: readonly AI_DecisionAnswerValue[], comment?: string) => {\n setProcessingId(id);\n setAnswered(shown.current);\n answerQuestion(executionId, optionRef, values, comment);\n }, [executionId, answerQuestion]);\n const approvalWord = React.useCallback(\n (labelRef: string) => tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, labelRef as never),\n [tComponent],\n );\n\n // A decision answered and then handed BACK arrives as a new pending approval — a refused edit (#587), or a\n // decision the consent requirement refused (#534). Whatever this component recorded as in flight has been\n // answered, so the decision is answerable again instead of staying disabled until the view remounts.\n React.useEffect(() => {\n setProcessingId(null);\n }, [pendingApproval]);\n\n if (!execution || !pendingApproval) {\n // Answered here and gone from the pending state: the seal of that answer, signed seconds later (#2913). A decision that\n // sealed nothing (or one answered by someone else) answers 404, and the card draws nothing, as before.\n return answered ? <DecisionApprovalSeal decisionRef={answered.decisionRef} description={answered.title} /> : null;\n }\n\n const {\n approvalId, riskLevel, expiresAt, toolName, toolArgs, toolInputSchema, modificationRefusal,\n rejectedToolArgs, routeKind, reasonCodes, reasonCodeRefused, question, presentation,\n } = pendingApproval;\n /*\n * The card's title, in this reader's words (#3201): the decision's presentation when the server sealed one, else the\n * tool-approval title every decision surface derives (`describeHumanDecisionCard`), worded exactly as the inbox words\n * the same decision. The pause carries typed state only: the server's English `Waiting for approval to run \"<tool>\".`,\n * built from the tool's IDENTIFIER and rendered here as written, is gone from the announcement.\n */\n const actionDescription = wordHumanDecisionPhrase(\n presentation?.title ?? describeHumanDecisionCard({ plane: HumanDecision_Plane.CONVERSATIONAL, toolName: toolName ?? '' }).title,\n t, roleLabel, toolLabel, operationLabel,\n );\n shown.current = pendingApproval.decisionRef ? { decisionRef: pendingApproval.decisionRef, title: actionDescription } : null;\n /*\n * Only an OWNER-routed decision is answered here. One routed to an assignee or a role is answered by a\n * reviewer from their inbox, and the person whose conversation this is may not answer it (separation of\n * duties, #1594) — so it shows as waiting, with nothing to press that the server would refuse.\n *\n * There is no Escalate here either. It used to send a DENIAL prefixed `[ESCALATED]`, which refused the call\n * and escalated nothing; an OWNER route cannot be escalated at all, and a reviewer escalates from the inbox.\n */\n const answerable = routeKind === undefined || routeKind === HumanDecision_RouteKind.OWNER;\n\n if (question) {\n // #2720: the agent asks its person. Its questions, through their form, in place of the call and its arguments.\n return (\n <AI_ApprovalRequest\n approvalId={approvalId}\n actionDescription={question.title}\n executionId={executionId}\n systemRef={execution.systemRef}\n expiresAt={expiresAt}\n answerable={answerable}\n question={humanDecisionQuestionOf(question, approvalWord)}\n onAnswer={handleAnswer}\n isProcessing={processingId === approvalId}\n {...props}\n />\n );\n }\n\n return (\n <AI_ApprovalRequest\n approvalId={approvalId}\n actionDescription={actionDescription}\n riskLevel={riskLevel}\n executionId={executionId}\n systemRef={execution.systemRef}\n expiresAt={expiresAt}\n answerable={answerable}\n // A refused reason code leaves the approval standing (#1921): it is back on screen, and says why in its own labels.\n actionNotice={!answerable\n ? tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, \"awaitingReview\")\n : reasonCodeRefused ? tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, \"noticeReasonCodeRejected\") : undefined}\n reasonCodeOptions={answerable ? describeReasonCodeOptions(reasonCodes, tSystemEnum) : undefined}\n /*\n * The tool call is WHAT is being approved, and until #528 it did not reach the browser at all.\n * `toolArgs` are the proposed arguments — a person approving \"rename this record\" is approving\n * a specific new title, and an approval surface that hides them is asking for a signature on an\n * unread document.\n *\n * #566 built the carrier for an edited call: the payload takes `modifiedToolArgs`, the server\n * re-validates them against the tool's own `inputSchema`, re-signs the approval over them and\n * records that the decider changed them. So the editor is offered here, where the decision is\n * answered — never where it is only shown.\n */\n allowArgumentModification={answerable}\n toolName={toolName}\n // The call's line names the tool by its title, as the card's title does (#3201).\n toolLabel={toolName ? toolLabel(toolName) : undefined}\n executionContext={toolArgs}\n // #2903: the arguments as the server presented them, rendered verbatim: what the person reads is what is sealed.\n // #2914: then the values of the record the approval covers, which the seal binds too.\n presentedArguments={pendingApproval.presentation ? humanDecisionPresentedRowsOf(pendingApproval.presentation) : undefined}\n argumentsSchema={toolInputSchema}\n // The refusal in the approval's own labels, naming the tool and the offending arguments (#1186).\n argumentModificationError={modificationRefusal\n ? describeApprovalModificationRefusal(modificationRefusal, (labelRef, params) => tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, labelRef, params))\n : undefined}\n rejectedArguments={rejectedToolArgs}\n onApprove={handleApprove}\n onDeny={handleDeny}\n // Released by the effect above whenever the approval is handed back. Not released while the socket is\n // disconnected: `respondToApproval` then sends nothing and leaves the approval exactly as it was, so its\n // identity never changes — a stuck state that predates #534 and is cured by the view remounting.\n isProcessing={processingId === approvalId}\n {...props}\n />\n );\n}\n\n//===============================================================\n// FlowsActors_ApprovalQueue\n//\n// The person's inbox: every decision they may act on, from the server.\n//===============================================================\n\n/**\n * Who holds a listed decision now, in the approval's own words (#2526). Total over the route vocabulary.\n *\n * The inbox lists only decisions the viewer may ANSWER (#1594 I3), so an ASSIGNEE card is always assigned to the\n * viewer: \"you claimed it\" when they took it from a role, \"assigned to you\" when a resolver, a reassignment or an\n * escalation put it there. A decision a colleague claimed is not in the viewer's list at all. A ROLE card names the role\n * in the roles tree's words, never its key. Exported for the pin that holds it.\n */\nexport function describeDecisionHolder(\n route: HumanDecision_PendingCard['route'],\n t: (labelRef: string, params?: Record<string, string>) => string,\n roleLabel: (roleKey: string) => string,\n formatDateTime: (value: Date | string) => string,\n): string | undefined {\n const byKind: Readonly<Record<HumanDecision_RouteKind, () => string | undefined>> = {\n [HumanDecision_RouteKind.OWNER]: () => t(\"holderOwner\"),\n [HumanDecision_RouteKind.ASSIGNEE]: () => (route.claimedAt ? t(\"holderClaimedByYou\", { when: formatDateTime(route.claimedAt) }) : t(\"holderAssignedToYou\")),\n // A ROLE route always names its role (a gate without one stops the application at startup); none means no line.\n [HumanDecision_RouteKind.ROLE]: () => (route.eligibleRole ? t(\"holderRole\", { role: roleLabel(route.eligibleRole) }) : undefined),\n };\n return byKind[route.kind]();\n}\n\n/**\n * Who raised a listed decision, when that is worth saying (#2526). Total over the requester vocabulary.\n *\n * A person's own request needs no line: the holder line already says whose conversation it is when it is the viewer's,\n * and naming another person by id would show an identifier (naming people is #1852). What a reviewer must not miss is\n * a request with NO person behind it — an autonomous agent, raised by a machine — or one raised through an application a\n * person connected, which resumes only while that delegation holds.\n */\nconst REQUESTER_LABEL: Readonly<Record<HumanDecision_RequesterKind, string | undefined>> = {\n [HumanDecision_RequesterKind.USER]: undefined,\n [HumanDecision_RequesterKind.MACHINE]: \"requesterAutonomousAgent\",\n [HumanDecision_RequesterKind.DELEGATED_CLIENT]: \"requesterConnectedApplication\",\n};\n\nexport function describeDecisionRequester(\n requesterKind: HumanDecision_RequesterKind,\n t: (labelRef: string) => string,\n): string | undefined {\n const labelRef = REQUESTER_LABEL[requesterKind];\n return labelRef ? t(labelRef) : undefined;\n}\n\n/**\n * A phrase of the shared wording (`describeHumanDecisionCard`), in this inbox's words: an approval label through `t`, a\n * role through the roles label tree, a tool through its title in the tool label tree (#2551), a resource operation\n * through its title in the resource label tree (#2288), a host's own words as written.\n */\nfunction wordHumanDecisionPhrase(\n phrase: HumanDecisionPhrase,\n t: (labelRef: string, params?: Record<string, string>) => string,\n roleLabel: (roleKey: string) => string,\n toolLabel: (toolName: string) => string,\n // With no wording function, the operation's label key: a missing label looks missing.\n operationLabel: (resourceType: string, operationIdentifier: string) => string = (resourceType, operationIdentifier) =>\n `${LabellingTypes.RESOURCES}.${resourceType}.operations.${operationIdentifier}.${ResourceOperationTextSlot.TITLE}`,\n): string {\n switch (phrase.kind) {\n case HumanDecisionPhraseKind.LABEL:\n return phrase.params\n ? t(phrase.labelRef, Object.fromEntries(Object.entries(phrase.params).map(([key, value]) => [key, typeof value === 'object' ? wordHumanDecisionPhrase(value, t, roleLabel, toolLabel, operationLabel) : String(value)])))\n : t(phrase.labelRef);\n case HumanDecisionPhraseKind.ROLE:\n return roleLabel(phrase.roleKey);\n case HumanDecisionPhraseKind.TOOL:\n return toolLabel(phrase.toolName);\n case HumanDecisionPhraseKind.RESOURCE_OPERATION:\n return operationLabel(phrase.resourceType, phrase.operationIdentifier);\n case HumanDecisionPhraseKind.TEXT:\n return phrase.text;\n default: {\n const unhandled: never = phrase;\n return unhandled;\n }\n }\n}\n\n/**\n * What one inbox card SAYS, from the wording every decision surface shares (`describeHumanDecisionCard`): the same\n * line a chat card posted for this decision carries. A tool approval also shows the tool and its proposed arguments;\n * a representative admission (#1612) and a card asking its own question show none — there is no tool call.\n */\nfunction describeInboxCard(\n card: HumanDecision_PendingCard,\n t: (labelRef: string, params?: Record<string, string>) => string,\n roleLabel: (roleKey: string) => string = (roleKey) => roleKey,\n toolLabel: (toolName: string) => string = (toolName) => toolName,\n operationLabel?: (resourceType: string, operationIdentifier: string) => string,\n): Pick<AI_ApprovalQueueItem, 'actionDescription' | 'toolName' | 'toolLabel' | 'executionContext' | 'presentedArguments'> {\n // #2903: the values as the server presented them, rendered verbatim, so what the reviewer reads is what is sealed.\n // #2914: with the values of the record the approval covers.\n const presented = card.presentation ? { presentedArguments: humanDecisionPresentedRowsOf(card.presentation) } : {};\n const actionDescription = wordHumanDecisionPhrase(card.presentation?.title ?? describeHumanDecisionCard(card).title, t, roleLabel, toolLabel, operationLabel);\n // #2288: an operation approval shows the values the requester sent, as a tool approval shows its arguments.\n if (card.plane === HumanDecision_Plane.OPERATION_APPROVAL && card.operationApproval) {\n return { actionDescription, executionContext: card.operationApproval.requestedValues, ...presented };\n }\n const isRepresentativeAdmission = card.plane === HumanDecision_Plane.REPRESENTATIVE_ADMISSION && !!card.representativeAdmission;\n if (isRepresentativeAdmission || humanDecisionAsksItsOwnQuestion(card)) return { actionDescription };\n return { actionDescription, toolName: card.toolName, toolLabel: toolLabel(card.toolName), executionContext: card.toolArgs, ...presented };\n}\n\n/**\n * A request as the card asks it: its reason, its options and its fields with their form. An option the engine wrote is\n * worded by the approval label it names (`labelRef`, #2754), through `word` in this reader's language; any other option\n * carries the words its host wrote. The decision is the shared wording's (`humanDecisionOptionPhrase`), so the chat card,\n * the inbox and a notice cannot word one option two ways.\n */\nexport function humanDecisionQuestionOf(request: HumanDecision_Request, word: (labelRef: string) => string): AI_DecisionQuestion {\n return {\n description: request.description,\n options: request.options.map((option) => ({\n ref: option.ref,\n // An option phrase is a label or text: no role and no tool to word, so both pass through.\n label: wordHumanDecisionPhrase(humanDecisionOptionPhrase(option), word, (roleKey) => roleKey, (toolName) => toolName),\n intent: option.intent,\n ...(option.description ? { description: option.description } : {}),\n })),\n fields: request.fields,\n ...(request.form ? { form: request.form } : {}),\n };\n}\n\n/**\n * A card's own question, when it asks one (#2526): the request it carries, on a plane whose options are not the inbox's\n * Approve and Deny — or, on a plane that has those, a request that asks FIELDS, which only an agent's question to its\n * person does (#2720). `undefined` for a request the inbox words itself.\n */\nexport function decisionQuestionOf(card: Pick<HumanDecision_PendingCard, 'plane' | 'request'>, word: (labelRef: string) => string): AI_DecisionQuestion | undefined {\n if (!card.request) return undefined;\n if (!humanDecisionAsksItsOwnQuestion(card)) return undefined;\n // An option is worded by the label it names, on any plane (#2754): an agent's question and a flow's person step name\n // theirs. A host that named its own options keeps its words, whatever refs it chose (#2720 review L6).\n return humanDecisionQuestionOf(card.request, word);\n}\n\nexport type FlowsActors_ApprovalQueueProps = Omit<\n AI_ApprovalQueueProps,\n | \"items\" | \"onApprove\" | \"onDeny\" | \"onEscalate\" | \"onAnswer\" | \"onClaim\" | \"onUnclaim\" | \"onReassignOpen\" | \"onReassign\" | \"onPauseClock\" | \"onResumeClock\"\n | \"processingIds\" | \"isLoading\" | \"loadFailed\" | \"onRetry\"\n>;\n\n/**\n * The words a pending decision is read in, for every surface that shows one: an approval label through `t`, a role\n * through the roles label tree, a tool through its title in the tool label tree (#2551), a resource operation through its\n * title. The inbox and the chat card (#3201) both word a decision through these, so the two cannot read one decision two\n * ways, and neither shows a sentence the server wrote.\n *\n * `toolNames` and `operationResources` name the label scopes to load, so the titles are there when the card renders.\n */\nfunction useHumanDecisionWords(toolNames: readonly string[], operationResources: readonly string[]) {\n const labelKeys = React.useMemo(\n () => [...APPROVAL_LABEL_NAMESPACES, ...toolNames.map(flowsActorsToolLabelScope), ...operationResources.map((type) => `${LabellingTypes.RESOURCES}.${type}`)],\n [toolNames, operationResources],\n );\n const { t: tKey, tComponent, tRole, tSystemEnum, tResourceOperation, formatDateTime } = useI18n({ component: FrontendComponentType.LOW_LEVEL_AI_APPROVAL, keys: labelKeys });\n const t = React.useCallback(\n (labelRef: string, params?: Record<string, string>) => tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, labelRef as never, params),\n [tComponent],\n );\n // A role is worded by the roles label tree, never shown as its identifier.\n const roleLabel = React.useCallback((roleKey: string) => (tRole ? tRole(roleKey, 'label') : roleKey), [tRole]);\n // A tool by its title, as the conversation names the same call; a tool with no words yet by its name.\n const toolLabel = React.useCallback((toolName: string) => {\n const key = flowsActorsToolLabelKey(toolName, FlowsActorsToolLabelSlot.TITLE);\n const resolved = tKey(key);\n return resolved === key || resolved.length === 0 ? toolName : resolved;\n }, [tKey]);\n // An operation by its title, as the application names it everywhere; with no title generated, its key (missing looks missing).\n const operationLabel = React.useCallback(\n (resourceType: string, operationIdentifier: string) => tResourceOperation(resourceType, operationIdentifier, ResourceOperationTextSlot.TITLE),\n [tResourceOperation],\n );\n return { t, roleLabel, toolLabel, operationLabel, tComponent, tSystemEnum, formatDateTime };\n}\n\n/**\n * The inbox's cards with the one a link named first (#2923): a chat card that cannot answer a decision links to it here\n * (`humanDecisionInboxPathOf`), and the person lands on it. The others keep their order.\n */\nexport function withFocusedDecisionFirst<T extends { readonly decisionRef: string }>(cards: readonly T[], search: string): readonly T[] {\n const focused = new URLSearchParams(search).get(HUMAN_DECISION_INBOX_FOCUS_PARAM);\n if (!focused) return cards;\n const named = cards.filter((card) => card.decisionRef === focused);\n return named.length === 0 ? cards : [...named, ...cards.filter((card) => card.decisionRef !== focused)];\n}\n\nexport function FlowsActors_ApprovalQueue(props: FlowsActors_ApprovalQueueProps): React.JSX.Element {\n const { decisions: listed, readState, refresh, act, candidates } = usePendingDecisions();\n // #2923: a link to one decision lists it first.\n const decisions = React.useMemo(() => withFocusedDecisionFirst(listed, window.location.search), [listed]);\n // The words of every tool a listed decision would run (#2551), loaded with the inbox's own.\n const toolNames = React.useMemo(() => [...new Set(decisions.map((card) => card.toolName).filter((name): name is string => !!name))].sort(), [decisions]);\n // #2288: the resources whose held operations are listed, so each operation is named by its title.\n const operationResources = React.useMemo(\n () => [...new Set(decisions.map((card) => card.operationApproval?.resourceType).filter((type): type is string => !!type))].sort(),\n [decisions],\n );\n const { t, roleLabel, toolLabel, operationLabel, tSystemEnum, formatDateTime } = useHumanDecisionWords(toolNames, operationResources);\n // Keyed by decisionRef: a decision is in flight from the act until its outcome returns.\n const [processing, setProcessing] = React.useState<ReadonlySet<string>>(() => new Set());\n const [notices, setNotices] = React.useState<ReadonlyMap<string, string>>(() => new Map());\n const [reassignCandidates, setReassignCandidates] = React.useState<ReadonlyMap<string, readonly AI_ApprovalReassignCandidate[]>>(() => new Map());\n /**\n * #2913: the decisions this person answered here. An answered card leaves the pending list, so its seal is shown under\n * the list instead: signed seconds after the answer, then current or not over the record it is about. Each keeps the\n * title its card showed, read from `cardTitles` when the answer was sent.\n */\n const [decided, setDecided] = React.useState<ReadonlyArray<{ readonly decisionRef: string; readonly title?: string }>>([]);\n const cardTitles = React.useRef<ReadonlyMap<string, string>>(new Map());\n\n const run = React.useCallback(async (decisionRef: string, decisionAct: HumanDecision_Act, request: HumanDecision_ActRequest) => {\n setProcessing((previous) => new Set(previous).add(decisionRef));\n const title = cardTitles.current.get(decisionRef);\n try {\n const outcome = await act(decisionRef, decisionAct, request);\n if (decisionAct === HumanDecision_Act.ANSWER && outcome.kind === HumanDecision_ActOutcomeKind.APPLIED) {\n setDecided((previous) => [{ decisionRef, ...(title ? { title } : {}) }, ...previous.filter((entry) => entry.decisionRef !== decisionRef)].slice(0, DECIDED_SEALS_SHOWN));\n }\n const notice = noticeOfOutcome(outcome, t);\n setNotices((previous) => {\n const next = new Map(previous);\n if (notice === undefined) next.delete(decisionRef); else next.set(decisionRef, notice);\n return next;\n });\n } catch {\n // Not an outcome the server reported (a network failure): say it did not take, and leave it answerable.\n setNotices((previous) => new Map(previous).set(decisionRef, t(\"noticeNotActionable\")));\n } finally {\n setProcessing((previous) => {\n const next = new Set(previous);\n next.delete(decisionRef);\n return next;\n });\n }\n }, [act, t]);\n\n const items: AI_ApprovalQueueItem[] = React.useMemo(() => decisions.map((card) => ({\n approvalId: card.decisionRef,\n executionId: card.executionId,\n systemRef: card.systemRef,\n // #2526: the assistant by its own name, never its identifier; the risk the call's GATE declares, absent when none.\n systemName: card.systemDisplayName,\n riskLevel: card.riskLevel,\n // #2526: a decision asking its own question is answered by its own options.\n question: decisionQuestionOf(card, t),\n holderNotice: describeDecisionHolder(card.route, t, roleLabel, formatDateTime),\n requesterNotice: describeDecisionRequester(card.requesterKind, t),\n ...describeInboxCard(card, t, roleLabel, toolLabel, operationLabel),\n expiresAt: card.expiresAt ? new Date(card.expiresAt) : undefined,\n createdAt: new Date(card.requestedAt),\n // Only the acts the server says this person may perform — computed with the rule every act is checked by.\n // The inbox's Escalate names nobody, so it is offered only where the gate declares where escalations go;\n // handing it to a person of the reviewer's choosing is Reassign.\n canEscalate: card.permittedActs.includes(HumanDecision_Act.ESCALATE) && card.declaresEscalationTarget,\n canClaim: card.permittedActs.includes(HumanDecision_Act.CLAIM),\n canUnclaim: card.permittedActs.includes(HumanDecision_Act.UNCLAIM),\n canReassign: card.permittedActs.includes(HumanDecision_Act.REASSIGN),\n reassignCandidates: reassignCandidates.get(card.decisionRef),\n actionNotice: notices.get(card.decisionRef),\n // #1628 — the next deadline, or why its deadlines are paused; Pause only with a declared reason to name.\n canPauseClock: card.permittedActs.includes(HumanDecision_Act.PAUSE_CLOCK) && !card.clockPause && card.pauseStates.length > 0,\n canResumeClock: card.permittedActs.includes(HumanDecision_Act.RESUME_CLOCK) && !!card.clockPause,\n // A pause state is the APPLICATION's identifier, shown as its word (#1864) — see `describePauseState`.\n pauseStateOptions: card.pauseStates.map((pauseState) => ({ value: pauseState, label: describePauseState(pauseState, tSystemEnum) })),\n deadlineNotice: card.nextDeadline\n ? t(card.nextDeadline.kind === ReviewDeadlineKind.CLAIM ? \"deadlineClaimBy\" : \"deadlineDecisionBy\", { when: formatDateTime(card.nextDeadline.dueAt) })\n : undefined,\n clockPausedNotice: card.clockPause ? t(\"clockPausedIn\", { pauseState: describePauseState(card.clockPause.pauseStateRef, tSystemEnum) }) : undefined,\n // #1921 — the reviewer may give a reason from the application's vocabulary when correcting the agent, and may\n // CORRECT it by editing the call: the act request carries `modifiedToolArgs`, which the server re-validates against\n // the tool's own schema. Only on a tool approval — a representative admission has no call to edit and no agent to correct.\n reasonCodeOptions: describeReasonCodeOptions(card.reasonCodes, tSystemEnum),\n allowArgumentModification: card.plane === HumanDecision_Plane.CONVERSATIONAL,\n argumentsSchema: card.toolInputSchema as SerializableZodSchema | undefined,\n })), [decisions, reassignCandidates, notices, t, roleLabel, toolLabel, operationLabel, tSystemEnum, formatDateTime]);\n cardTitles.current = new Map(items.flatMap((item) => (typeof item.actionDescription === 'string' ? [[item.approvalId, item.actionDescription] as const] : [])));\n\n /**\n * An answer in the one answer shape: the option chosen, and no values. Which option refs \"approve\" and \"deny\" mean\n * depends on the decision's plane — a tool approval's, or a representative admission's (#1612) — so the card decides.\n */\n const answer = React.useCallback((decisionRef: string, approve: boolean, comment?: string, modifiedToolArgs?: Record<string, unknown>, reasonCode?: string) => {\n const plane = decisions.find((card) => card.decisionRef === decisionRef)?.plane;\n const options = plane ? HUMAN_DECISION_VERDICT_OPTIONS_BY_PLANE[plane] : undefined;\n if (!options) {\n // A plane whose options this inbox does not offer: say it cannot be answered here, and send nothing.\n setNotices((previous) => new Map(previous).set(decisionRef, t(\"noticeNotActionable\")));\n return;\n }\n const optionRef = approve ? options.approve : options.deny;\n void run(decisionRef, HumanDecision_Act.ANSWER, {\n answer: { decisionId: decisionRef, optionRef, values: [] },\n // #2903: the presentation the reviewer read; the server refuses an answer naming none, or one no longer current.\n ...presentationEchoOf(decisions, decisionRef),\n ...(comment ? { reason: comment } : {}),\n // Only when the reviewer edited the call: an absent field means \"run it as proposed\" (#566).\n ...(modifiedToolArgs ? { modifiedToolArgs } : {}),\n // Why the reviewer corrected the agent (#1921); refused with REASON_CODE_REJECTED unless the application declares it.\n ...(reasonCode ? { reasonCode } : {}),\n });\n }, [run, decisions, t]);\n\n const handleReassignOpen = React.useCallback((decisionRef: string) => {\n setReassignCandidates((previous) => {\n const next = new Map(previous);\n next.delete(decisionRef);\n return next;\n });\n void candidates(decisionRef)\n .then((people) => setReassignCandidates((previous) => new Map(previous).set(\n decisionRef,\n // The membership's email is how a same-organization reviewer tells people apart; it is data, not a label.\n people.map((person) => ({ value: person.userId, label: person.email ?? person.userId })),\n )))\n .catch(() => setReassignCandidates((previous) => new Map(previous).set(decisionRef, [])));\n }, [candidates]);\n\n return (\n <>\n <AI_ApprovalQueue\n items={items}\n onApprove={(decisionRef, comment, modifiedToolArgs, reasonCode) => answer(decisionRef, true, comment, modifiedToolArgs, reasonCode)}\n onDeny={(decisionRef, comment, reasonCode) => answer(decisionRef, false, comment, undefined, reasonCode)}\n onEscalate={(decisionRef, comment) => void run(decisionRef, HumanDecision_Act.ESCALATE, comment ? { reason: comment } : {})}\n // #2526: the option the reviewer chose and the values it carries, in the one answer shape the server checks against\n // the decision's own request (an option it never offered, or values an option does not take, is refused).\n onAnswer={(decisionRef, optionRef, values, comment, reasonCode) => void run(decisionRef, HumanDecision_Act.ANSWER, {\n answer: { decisionId: decisionRef, optionRef, values: [...values] },\n ...presentationEchoOf(decisions, decisionRef),\n ...(comment ? { reason: comment } : {}),\n // #2539: an actor question that reviews an agent's work may carry a declared reason, as a tool approval does.\n ...(reasonCode ? { reasonCode } : {}),\n })}\n onClaim={(decisionRef) => void run(decisionRef, HumanDecision_Act.CLAIM, {})}\n onUnclaim={(decisionRef) => void run(decisionRef, HumanDecision_Act.UNCLAIM, {})}\n onReassignOpen={handleReassignOpen}\n onReassign={(decisionRef, targetUserId, comment) => void run(decisionRef, HumanDecision_Act.REASSIGN, { targetUserId, ...(comment ? { reason: comment } : {}) })}\n onPauseClock={(decisionRef, pauseStateRef) => void run(decisionRef, HumanDecision_Act.PAUSE_CLOCK, { pauseStateRef })}\n onResumeClock={(decisionRef) => void run(decisionRef, HumanDecision_Act.RESUME_CLOCK, {})}\n processingIds={processing as Set<string>}\n // #2526: a read still settling, and a read that failed, are states the inbox SHOWS — never an empty inbox.\n isLoading={readState === PendingDecisionsReadState.LOADING}\n loadFailed={readState === PendingDecisionsReadState.FAILED}\n onRetry={() => { void refresh(); }}\n {...props}\n />\n {decided.map((entry) => (\n <DecisionApprovalSeal key={entry.decisionRef} decisionRef={entry.decisionRef} {...(entry.title ? { description: entry.title } : {})} />\n ))}\n </>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"approval.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/approval.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GAQjB,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,2BAA2B,EAC3B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,uCAAuC,EACvC,kBAAkB,EAClB,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,GAM7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAC3H,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAGtF,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAA;AACtH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,uCAAuC,EAAE,mCAAmC,E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B,EAClC,UAAU,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE,EAAE,YAAY,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAChK,YAAY,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,WAAW,EAAE,EAAE,aAAa,EAAE,CAAC,EACrH,aAAa,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,EACzF,aAAa,EAAE,UAAyB;gBACxC,2GAA2G;gBAC3G,SAAS,EAAE,SAAS,KAAK,yBAAyB,CAAC,OAAO,EAC1D,UAAU,EAAE,SAAS,KAAK,yBAAyB,CAAC,MAAM,EAC1D,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,KAC9B,KAAK,GACT,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACtB,KAAC,oBAAoB,IAAyB,WAAW,EAAE,KAAK,CAAC,WAAW,KAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAAxG,KAAK,CAAC,WAAW,CAA2F,CACxI,CAAC,IACC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n AI_ApprovalRequest,\n AI_ApprovalQueue,\n type AI_ApprovalQueueItem,\n type AI_ApprovalReasonCodeOption,\n type AI_ApprovalReassignCandidate,\n type AI_ApprovalRequestProps,\n type AI_ApprovalQueueProps,\n type AI_DecisionAnswerValue,\n type AI_DecisionQuestion,\n} from \"~wildo-frontend-lib/components/ai-elements/decision/approval\";\nimport {\n AGENT_WORK_REASON_CODE_VOCABULARY,\n ApplicationConfigVocabulary,\n FlowsActorsToolLabelSlot,\n flowsActorsToolLabelKey,\n flowsActorsToolLabelScope,\n HumanDecision_Act,\n HumanDecision_ActOutcomeKind,\n HumanDecision_Plane,\n HumanDecision_RefusalReason,\n HumanDecision_RequesterKind,\n HumanDecision_RouteKind,\n HumanDecisionPhraseKind,\n HUMAN_DECISION_INBOX_FOCUS_PARAM,\n HUMAN_DECISION_VERDICT_OPTIONS_BY_PLANE,\n ReviewDeadlineKind,\n describeHumanDecisionCard,\n humanDecisionAsksItsOwnQuestion,\n humanDecisionOptionPhrase,\n humanDecisionPresentedRowsOf,\n type HumanDecisionPhrase,\n type HumanDecision_ActOutcome,\n type HumanDecision_ActRequest,\n type HumanDecision_PendingCard,\n type HumanDecision_Request,\n} from \"@wildo-ai/saas-models\";\nimport { PendingDecisionsReadState, usePendingDecisions } from \"~wildo-frontend-lib/core/flows-actors/usePendingDecisions\";\nimport { useFlowsActors } from \"~wildo-frontend-lib/core/flows-actors/useFlowsActors\";\nimport type { ComponentProps } from \"react\";\nimport type { SerializableZodSchema } from \"@wildo-ai/zod-decorators\";\nimport { FrontendComponentType, LabellingTypes, ResourceOperationTextSlot } from \"@wildo-ai/presets-components-models\"\nimport { useI18n } from \"~wildo-frontend-lib/core/i18n/useI18n\";\nimport { APPROVAL_MODIFICATION_REFUSAL_LABEL_REF, describeApprovalModificationRefusal } from \"~wildo-frontend-lib/components/flows-actors/approval-modification-refusal.utils\";\nimport { DecisionApprovalSeal } from \"~wildo-frontend-lib/components/data-display/approval-seal\";\n\n/** How many decisions answered in this inbox keep their seal shown under it, newest first (#2913). */\nconst DECIDED_SEALS_SHOWN = 5;\n\n//===============================================================\n// Flows-Actors Approval Wrappers\n//\n// Thin context-wired wrappers over the preset decision components.\n//\n// - FlowsActors_ApprovalRequest answers a decision IN its conversation, over the socket the turn runs on.\n// - FlowsActors_ApprovalQueue is the person's INBOX: every decision they may act on, read from the server\n// (#1594 D6), answered and moved over REST.\n//\n// A decision with options of its OWN — an actor system's question, with its fields — is answered in the inbox too\n// (#2526): its card carries the request, and the inbox draws its options in place of Approve and Deny and sends the\n// chosen one, with the field values, in the one answer shape. Two standalone wrappers that answered such a decision\n// outside any list (FlowsActors_DecisionRequest, FlowsActors_HumanInputRequest) had no consumer and were folded into\n// this one path; since #2539 an application raises those decisions on its own actor plane.\n//===============================================================\n\n/**\n * What an act came to, in the approval's own labels. Total over the outcome vocabulary, so an outcome added\n * tomorrow is a compile error here rather than a silent act. `toolLabel` is the card's tool, in the words the card shows\n * it in, for the notices that name it. Exported for the pins that hold it.\n */\nexport function noticeOfOutcome(\n outcome: HumanDecision_ActOutcome,\n t: (labelRef: string, params?: Record<string, string>) => string,\n toolLabel?: string,\n): string | undefined {\n // #3316: the arguments a refusal is about, by name: the inbox has no error payload, and the values may all be valid.\n const named = { arguments: (outcome.argumentNames ?? []).join(', ') || t(\"noticeTheseArguments\") };\n const byKind: Readonly<Record<HumanDecision_ActOutcomeKind, string | undefined>> = {\n [HumanDecision_ActOutcomeKind.APPLIED]: undefined,\n // An admitted person's refused clock act names why (#1628); anything else stays one undisclosing notice.\n // #2903: the request changed since it was read; the list just re-read shows it as it is now.\n [HumanDecision_ActOutcomeKind.NOT_ACTIONABLE]: outcome.reason === HumanDecision_RefusalReason.PRESENTATION_STALE ? t(\"noticePresentationStale\")\n : outcome.reason === HumanDecision_RefusalReason.CLOCK_ALREADY_PAUSED ? t(\"noticeClockAlreadyPaused\")\n : outcome.reason === HumanDecision_RefusalReason.CLOCK_NOT_PAUSED ? t(\"noticeClockNotPaused\")\n : outcome.reason === HumanDecision_RefusalReason.PAUSE_STATE_NOT_DECLARED ? t(\"noticePauseStateNotDeclared\")\n : t(\"noticeNotActionable\"),\n [HumanDecision_ActOutcomeKind.LAPSED]: t(\"noticeLapsed\"),\n [HumanDecision_ActOutcomeKind.REQUESTER_AUTHORITY_LAPSED]: t(\"noticeRequesterAuthorityLapsed\"),\n // An edit pointing the call at a record the answerer may not reach says so (#2734): the inbox gets no error payload,\n // only the outcome, so its reason is what tells a representative to put the arguments back.\n // Likewise a call that would not run as read (#3295): the values may be valid, so \"refused\" alone says nothing.\n [HumanDecision_ActOutcomeKind.MODIFICATION_REJECTED]: outcome.reason === HumanDecision_RefusalReason.EDITED_CALL_NOT_REACHABLE\n ? t(\"noticeEditedCallNotReachable\", named)\n : outcome.reason === HumanDecision_RefusalReason.CALL_NOT_RUN_AS_READ\n ? t(\"noticeCallNotRunAsRead\", named)\n : outcome.reason === HumanDecision_RefusalReason.CREDENTIAL_NOT_ACCEPTED\n ? t(\"noticeCredentialNotAccepted\", named)\n : outcome.reason === HumanDecision_RefusalReason.CALL_CANNOT_RUN\n ? callCannotRunNotice(outcome, t, toolLabel)\n : outcome.reason === HumanDecision_RefusalReason.ARGUMENTS_CANNOT_BE_CORRECTED\n ? t(\"noticeArgumentsCannotBeCorrected\", named)\n : t(\"noticeModificationRejected\"),\n [HumanDecision_ActOutcomeKind.REASON_CODE_REJECTED]: t(\"noticeReasonCodeRejected\"),\n [HumanDecision_ActOutcomeKind.CONSENT_REQUIRED]: t(\"noticeConsentRequired\"),\n [HumanDecision_ActOutcomeKind.TARGET_REFUSED]: outcome.reason === HumanDecision_RefusalReason.NO_TARGET ? t(\"noticeNoEscalationTarget\") : t(\"noticeTargetRefused\"),\n [HumanDecision_ActOutcomeKind.SUPERSEDED]: t(\"noticeSuperseded\"),\n };\n return byKind[outcome.kind];\n}\n\n/**\n * #3965: why a call cannot run as things stand, in the label the conversation's card shows for the same refusal: an agent\n * suspended, a policy tightened and an agent gone each have their own remedy, and `call_cannot_run` alone names none of\n * them. A refusal this bundle does not know (a newer server), or none (an older one), keeps the generic notice.\n */\nfunction callCannotRunNotice(\n outcome: HumanDecision_ActOutcome,\n t: (labelRef: string, params?: Record<string, string>) => string,\n toolLabel: string | undefined,\n): string {\n const labelRef = outcome.callRefusalReason !== undefined && Object.hasOwn(APPROVAL_MODIFICATION_REFUSAL_LABEL_REF, outcome.callRefusalReason)\n ? APPROVAL_MODIFICATION_REFUSAL_LABEL_REF[outcome.callRefusalReason as keyof typeof APPROVAL_MODIFICATION_REFUSAL_LABEL_REF]\n : undefined;\n if (labelRef === undefined) return t(\"noticeCallCannotRun\");\n return t(labelRef, { toolName: toolLabel ?? '', arguments: (outcome.argumentNames ?? []).join(', ') });\n}\n\n/**\n * The presentation a card was read on (#2903), echoed on its answer: the server rebuilds the decision's presentation and\n * refuses an answer naming none, or one that is no longer current, so what is sealed is what this reviewer read.\n */\nfunction presentationEchoOf(decisions: readonly HumanDecision_PendingCard[], decisionRef: string): Pick<HumanDecision_ActRequest, 'presentationId'> {\n const presentationId = decisions.find((card) => card.decisionRef === decisionRef)?.presentationId;\n return presentationId ? { presentationId } : {};\n}\n\n/**\n * The reason picker's options (#1921): each declared code with its word from `system_enums.AgentWorkReasonCode.<code>`.\n *\n * The codes are the APPLICATION's (`agentWorkReview.reasonCodes`); their words live under the framework's named\n * vocabulary, where the labelling pipeline plans one key per declared code. A code nobody has worded yet shows as the\n * code itself — `tSystemEnum` answers the raw value on a miss — which is a missing label that looks missing, never words\n * invented from the identifier. Exported for the pin that holds that fallback.\n */\nexport function describeReasonCodeOptions(\n reasonCodes: readonly string[] | undefined,\n tSystemEnum: (enumName: typeof AGENT_WORK_REASON_CODE_VOCABULARY, enumValue: string) => string,\n): AI_ApprovalReasonCodeOption[] | undefined {\n if (!reasonCodes || reasonCodes.length === 0) return undefined;\n return reasonCodes.map((code) => ({ value: code, label: tSystemEnum(AGENT_WORK_REASON_CODE_VOCABULARY, code) }));\n}\n\n/**\n * A gate's pause states as the words a reviewer reads (#1864): each state's word under the framework's named vocabulary\n * `system_enums.HumanDecisionPauseState.<state>`, which the labelling pipeline plans from every gate's declared\n * `pauseStates`. A state nobody has worded yet shows as itself — `tSystemEnum` answers the raw value on a miss — a\n * missing label that looks missing. Exported for the pin that holds it.\n */\nexport function describePauseState(\n pauseState: string,\n tSystemEnum: (enumName: ApplicationConfigVocabulary.HUMAN_DECISION_PAUSE_STATE, enumValue: string) => string,\n): string {\n return tSystemEnum(ApplicationConfigVocabulary.HUMAN_DECISION_PAUSE_STATE, pauseState);\n}\n\n/**\n * The label namespaces the approval wrappers read beyond their own component: the reason codes' (#1921) and pause\n * states' (#1864) words, and the roles' (#2526 review F3) — the holder line names a role, and `roles` is not an eager\n * section, so without it every ROLE card named the role by its key.\n */\nconst APPROVAL_LABEL_NAMESPACES = [LabellingTypes.SYSTEM_ENUMS, LabellingTypes.ROLES];\n/** The chat card holds a tool approval, never an operation approval, so it loads no resource's operation titles. */\nconst NO_OPERATION_RESOURCES: readonly string[] = [];\n\n//===============================================================\n// FlowsActors_ApprovalRequest\n//\n// A decision answered in the conversation it was raised in.\n//===============================================================\n\nexport type FlowsActors_ApprovalRequestProps = Omit<\n AI_ApprovalRequestProps,\n \"approvalId\" | \"actionDescription\" | \"riskLevel\" | \"onApprove\" | \"onDeny\" | \"onEscalate\" | \"answerable\"\n> & {\n executionId: string;\n};\n\nexport function FlowsActors_ApprovalRequest({\n executionId,\n ...props\n}: FlowsActors_ApprovalRequestProps): React.JSX.Element | null {\n const { executions, respondToApproval, answerQuestion } = useFlowsActors();\n const [processingId, setProcessingId] = React.useState<string | null>(null);\n /**\n * #2913: the decision this card answered, kept once the card's pending decision clears so the card shows its seal in\n * its place. `shown` is what the card showed when it was answered: its decision and its title.\n */\n const [answered, setAnswered] = React.useState<{ readonly decisionRef: string; readonly title: string } | null>(null);\n const shown = React.useRef<{ readonly decisionRef: string; readonly title: string } | null>(null);\n const execution = executions.get(executionId);\n const pendingApproval = execution?.pendingApproval;\n // The paused tool's title is loaded with the card's own words, so the card names the call as the inbox does.\n const pendingToolName = pendingApproval?.toolName;\n const toolNames = React.useMemo(() => (pendingToolName ? [pendingToolName] : []), [pendingToolName]);\n const { t, roleLabel, toolLabel, operationLabel, tComponent, tSystemEnum } = useHumanDecisionWords(toolNames, NO_OPERATION_RESOURCES);\n\n // Every hook runs BEFORE the early return below. React requires the same hooks on every render, and the render\n // that clears `pendingApproval` — the moment a decision is answered — used to run three fewer (#534 fourth\n // review F1).\n const handleApprove = React.useCallback((id: string, comment?: string, modifiedToolArgs?: Record<string, unknown>, reasonCode?: string) => {\n setProcessingId(id);\n setAnswered(shown.current);\n // The reason rides only when given, so an answer without one keeps the call shape it always had.\n respondToApproval(executionId, id, true, comment, modifiedToolArgs, ...(reasonCode ? [reasonCode] : []));\n }, [executionId, respondToApproval]);\n\n const handleDeny = React.useCallback((id: string, comment?: string, reasonCode?: string) => {\n setProcessingId(id);\n setAnswered(shown.current);\n if (reasonCode) respondToApproval(executionId, id, false, comment, undefined, reasonCode);\n else respondToApproval(executionId, id, false, comment);\n }, [executionId, respondToApproval]);\n\n // #2720: the agent's QUESTION is answered with the person's values, or declined — never approved.\n const handleAnswer = React.useCallback((id: string, optionRef: string, values: readonly AI_DecisionAnswerValue[], comment?: string) => {\n setProcessingId(id);\n setAnswered(shown.current);\n answerQuestion(executionId, optionRef, values, comment);\n }, [executionId, answerQuestion]);\n const approvalWord = React.useCallback(\n (labelRef: string) => tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, labelRef as never),\n [tComponent],\n );\n\n // A decision answered and then handed BACK arrives as a new pending approval — a refused edit (#587), or a\n // decision the consent requirement refused (#534). Whatever this component recorded as in flight has been\n // answered, so the decision is answerable again instead of staying disabled until the view remounts.\n React.useEffect(() => {\n setProcessingId(null);\n }, [pendingApproval]);\n\n if (!execution || !pendingApproval) {\n // Answered here and gone from the pending state: the seal of that answer, signed seconds later (#2913). A decision that\n // sealed nothing (or one answered by someone else) answers 404, and the card draws nothing, as before.\n return answered ? <DecisionApprovalSeal decisionRef={answered.decisionRef} description={answered.title} /> : null;\n }\n\n const {\n approvalId, riskLevel, expiresAt, toolName, toolArgs, toolInputSchema, modificationRefusal,\n rejectedToolArgs, routeKind, reasonCodes, reasonCodeRefused, question, presentation,\n } = pendingApproval;\n /*\n * The card's title, in this reader's words (#3201): the decision's presentation when the server sealed one, else the\n * tool-approval title every decision surface derives (`describeHumanDecisionCard`), worded exactly as the inbox words\n * the same decision. The pause carries typed state only: the server's English `Waiting for approval to run \"<tool>\".`,\n * built from the tool's IDENTIFIER and rendered here as written, is gone from the announcement.\n */\n const actionDescription = wordHumanDecisionPhrase(\n presentation?.title ?? describeHumanDecisionCard({ plane: HumanDecision_Plane.CONVERSATIONAL, toolName: toolName ?? '' }).title,\n t, roleLabel, toolLabel, operationLabel,\n );\n shown.current = pendingApproval.decisionRef ? { decisionRef: pendingApproval.decisionRef, title: actionDescription } : null;\n /*\n * Only an OWNER-routed decision is answered here. One routed to an assignee or a role is answered by a\n * reviewer from their inbox, and the person whose conversation this is may not answer it (separation of\n * duties, #1594) — so it shows as waiting, with nothing to press that the server would refuse.\n *\n * There is no Escalate here either. It used to send a DENIAL prefixed `[ESCALATED]`, which refused the call\n * and escalated nothing; an OWNER route cannot be escalated at all, and a reviewer escalates from the inbox.\n */\n const answerable = routeKind === undefined || routeKind === HumanDecision_RouteKind.OWNER;\n\n if (question) {\n // #2720: the agent asks its person. Its questions, through their form, in place of the call and its arguments.\n return (\n <AI_ApprovalRequest\n approvalId={approvalId}\n actionDescription={question.title}\n executionId={executionId}\n systemRef={execution.systemRef}\n expiresAt={expiresAt}\n answerable={answerable}\n question={humanDecisionQuestionOf(question, approvalWord)}\n onAnswer={handleAnswer}\n isProcessing={processingId === approvalId}\n {...props}\n />\n );\n }\n\n return (\n <AI_ApprovalRequest\n approvalId={approvalId}\n actionDescription={actionDescription}\n riskLevel={riskLevel}\n executionId={executionId}\n systemRef={execution.systemRef}\n expiresAt={expiresAt}\n answerable={answerable}\n // A refused reason code leaves the approval standing (#1921): it is back on screen, and says why in its own labels.\n actionNotice={!answerable\n ? tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, \"awaitingReview\")\n : reasonCodeRefused ? tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, \"noticeReasonCodeRejected\") : undefined}\n reasonCodeOptions={answerable ? describeReasonCodeOptions(reasonCodes, tSystemEnum) : undefined}\n /*\n * The tool call is WHAT is being approved, and until #528 it did not reach the browser at all.\n * `toolArgs` are the proposed arguments — a person approving \"rename this record\" is approving\n * a specific new title, and an approval surface that hides them is asking for a signature on an\n * unread document.\n *\n * #566 built the carrier for an edited call: the payload takes `modifiedToolArgs`, the server\n * re-validates them against the tool's own `inputSchema`, re-signs the approval over them and\n * records that the decider changed them. So the editor is offered here, where the decision is\n * answered — never where it is only shown.\n */\n allowArgumentModification={answerable}\n toolName={toolName}\n // The call's line names the tool by its title, as the card's title does (#3201).\n toolLabel={toolName ? toolLabel(toolName) : undefined}\n executionContext={toolArgs}\n // #2903: the arguments as the server presented them, rendered verbatim: what the person reads is what is sealed.\n // #2914: then the values of the record the approval covers, which the seal binds too.\n presentedArguments={pendingApproval.presentation ? humanDecisionPresentedRowsOf(pendingApproval.presentation) : undefined}\n argumentsSchema={toolInputSchema}\n // The refusal in the approval's own labels, naming the tool and the offending arguments (#1186).\n argumentModificationError={modificationRefusal\n ? describeApprovalModificationRefusal(modificationRefusal, (labelRef, params) => tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, labelRef, params))\n : undefined}\n rejectedArguments={rejectedToolArgs}\n onApprove={handleApprove}\n onDeny={handleDeny}\n // Released by the effect above whenever the approval is handed back. Not released while the socket is\n // disconnected: `respondToApproval` then sends nothing and leaves the approval exactly as it was, so its\n // identity never changes — a stuck state that predates #534 and is cured by the view remounting.\n isProcessing={processingId === approvalId}\n {...props}\n />\n );\n}\n\n//===============================================================\n// FlowsActors_ApprovalQueue\n//\n// The person's inbox: every decision they may act on, from the server.\n//===============================================================\n\n/**\n * Who holds a listed decision now, in the approval's own words (#2526). Total over the route vocabulary.\n *\n * The inbox lists only decisions the viewer may ANSWER (#1594 I3), so an ASSIGNEE card is always assigned to the\n * viewer: \"you claimed it\" when they took it from a role, \"assigned to you\" when a resolver, a reassignment or an\n * escalation put it there. A decision a colleague claimed is not in the viewer's list at all. A ROLE card names the role\n * in the roles tree's words, never its key. Exported for the pin that holds it.\n */\nexport function describeDecisionHolder(\n route: HumanDecision_PendingCard['route'],\n t: (labelRef: string, params?: Record<string, string>) => string,\n roleLabel: (roleKey: string) => string,\n formatDateTime: (value: Date | string) => string,\n): string | undefined {\n const byKind: Readonly<Record<HumanDecision_RouteKind, () => string | undefined>> = {\n [HumanDecision_RouteKind.OWNER]: () => t(\"holderOwner\"),\n [HumanDecision_RouteKind.ASSIGNEE]: () => (route.claimedAt ? t(\"holderClaimedByYou\", { when: formatDateTime(route.claimedAt) }) : t(\"holderAssignedToYou\")),\n // A ROLE route always names its role (a gate without one stops the application at startup); none means no line.\n [HumanDecision_RouteKind.ROLE]: () => (route.eligibleRole ? t(\"holderRole\", { role: roleLabel(route.eligibleRole) }) : undefined),\n };\n return byKind[route.kind]();\n}\n\n/**\n * Who raised a listed decision, when that is worth saying (#2526). Total over the requester vocabulary.\n *\n * A person's own request needs no line: the holder line already says whose conversation it is when it is the viewer's,\n * and naming another person by id would show an identifier (naming people is #1852). What a reviewer must not miss is\n * a request with NO person behind it — an autonomous agent, raised by a machine — or one raised through an application a\n * person connected, which resumes only while that delegation holds.\n */\nconst REQUESTER_LABEL: Readonly<Record<HumanDecision_RequesterKind, string | undefined>> = {\n [HumanDecision_RequesterKind.USER]: undefined,\n [HumanDecision_RequesterKind.MACHINE]: \"requesterAutonomousAgent\",\n [HumanDecision_RequesterKind.DELEGATED_CLIENT]: \"requesterConnectedApplication\",\n};\n\nexport function describeDecisionRequester(\n requesterKind: HumanDecision_RequesterKind,\n t: (labelRef: string) => string,\n): string | undefined {\n const labelRef = REQUESTER_LABEL[requesterKind];\n return labelRef ? t(labelRef) : undefined;\n}\n\n/**\n * A phrase of the shared wording (`describeHumanDecisionCard`), in this inbox's words: an approval label through `t`, a\n * role through the roles label tree, a tool through its title in the tool label tree (#2551), a resource operation\n * through its title in the resource label tree (#2288), a host's own words as written.\n */\nfunction wordHumanDecisionPhrase(\n phrase: HumanDecisionPhrase,\n t: (labelRef: string, params?: Record<string, string>) => string,\n roleLabel: (roleKey: string) => string,\n toolLabel: (toolName: string) => string,\n // With no wording function, the operation's label key: a missing label looks missing.\n operationLabel: (resourceType: string, operationIdentifier: string) => string = (resourceType, operationIdentifier) =>\n `${LabellingTypes.RESOURCES}.${resourceType}.operations.${operationIdentifier}.${ResourceOperationTextSlot.TITLE}`,\n): string {\n switch (phrase.kind) {\n case HumanDecisionPhraseKind.LABEL:\n return phrase.params\n ? t(phrase.labelRef, Object.fromEntries(Object.entries(phrase.params).map(([key, value]) => [key, typeof value === 'object' ? wordHumanDecisionPhrase(value, t, roleLabel, toolLabel, operationLabel) : String(value)])))\n : t(phrase.labelRef);\n case HumanDecisionPhraseKind.ROLE:\n return roleLabel(phrase.roleKey);\n case HumanDecisionPhraseKind.TOOL:\n return toolLabel(phrase.toolName);\n case HumanDecisionPhraseKind.RESOURCE_OPERATION:\n return operationLabel(phrase.resourceType, phrase.operationIdentifier);\n case HumanDecisionPhraseKind.TEXT:\n return phrase.text;\n default: {\n const unhandled: never = phrase;\n return unhandled;\n }\n }\n}\n\n/**\n * What one inbox card SAYS, from the wording every decision surface shares (`describeHumanDecisionCard`): the same\n * line a chat card posted for this decision carries. A tool approval also shows the tool and its proposed arguments;\n * a representative admission (#1612) and a card asking its own question show none — there is no tool call.\n */\nfunction describeInboxCard(\n card: HumanDecision_PendingCard,\n t: (labelRef: string, params?: Record<string, string>) => string,\n roleLabel: (roleKey: string) => string = (roleKey) => roleKey,\n toolLabel: (toolName: string) => string = (toolName) => toolName,\n operationLabel?: (resourceType: string, operationIdentifier: string) => string,\n): Pick<AI_ApprovalQueueItem, 'actionDescription' | 'toolName' | 'toolLabel' | 'executionContext' | 'presentedArguments'> {\n // #2903: the values as the server presented them, rendered verbatim, so what the reviewer reads is what is sealed.\n // #2914: with the values of the record the approval covers.\n const presented = card.presentation ? { presentedArguments: humanDecisionPresentedRowsOf(card.presentation) } : {};\n const actionDescription = wordHumanDecisionPhrase(card.presentation?.title ?? describeHumanDecisionCard(card).title, t, roleLabel, toolLabel, operationLabel);\n // #2288: an operation approval shows the values the requester sent, as a tool approval shows its arguments.\n if (card.plane === HumanDecision_Plane.OPERATION_APPROVAL && card.operationApproval) {\n return { actionDescription, executionContext: card.operationApproval.requestedValues, ...presented };\n }\n const isRepresentativeAdmission = card.plane === HumanDecision_Plane.REPRESENTATIVE_ADMISSION && !!card.representativeAdmission;\n if (isRepresentativeAdmission || humanDecisionAsksItsOwnQuestion(card)) return { actionDescription };\n return { actionDescription, toolName: card.toolName, toolLabel: toolLabel(card.toolName), executionContext: card.toolArgs, ...presented };\n}\n\n/**\n * A request as the card asks it: its reason, its options and its fields with their form. An option the engine wrote is\n * worded by the approval label it names (`labelRef`, #2754), through `word` in this reader's language; any other option\n * carries the words its host wrote. The decision is the shared wording's (`humanDecisionOptionPhrase`), so the chat card,\n * the inbox and a notice cannot word one option two ways.\n */\nexport function humanDecisionQuestionOf(request: HumanDecision_Request, word: (labelRef: string) => string): AI_DecisionQuestion {\n return {\n description: request.description,\n options: request.options.map((option) => ({\n ref: option.ref,\n // An option phrase is a label or text: no role and no tool to word, so both pass through.\n label: wordHumanDecisionPhrase(humanDecisionOptionPhrase(option), word, (roleKey) => roleKey, (toolName) => toolName),\n intent: option.intent,\n ...(option.description ? { description: option.description } : {}),\n })),\n fields: request.fields,\n ...(request.form ? { form: request.form } : {}),\n };\n}\n\n/**\n * A card's own question, when it asks one (#2526): the request it carries, on a plane whose options are not the inbox's\n * Approve and Deny — or, on a plane that has those, a request that asks FIELDS, which only an agent's question to its\n * person does (#2720). `undefined` for a request the inbox words itself.\n */\nexport function decisionQuestionOf(card: Pick<HumanDecision_PendingCard, 'plane' | 'request'>, word: (labelRef: string) => string): AI_DecisionQuestion | undefined {\n if (!card.request) return undefined;\n if (!humanDecisionAsksItsOwnQuestion(card)) return undefined;\n // An option is worded by the label it names, on any plane (#2754): an agent's question and a flow's person step name\n // theirs. A host that named its own options keeps its words, whatever refs it chose (#2720 review L6).\n return humanDecisionQuestionOf(card.request, word);\n}\n\nexport type FlowsActors_ApprovalQueueProps = Omit<\n AI_ApprovalQueueProps,\n | \"items\" | \"onApprove\" | \"onDeny\" | \"onEscalate\" | \"onAnswer\" | \"onClaim\" | \"onUnclaim\" | \"onReassignOpen\" | \"onReassign\" | \"onPauseClock\" | \"onResumeClock\"\n | \"processingIds\" | \"isLoading\" | \"loadFailed\" | \"onRetry\"\n>;\n\n/**\n * The words a pending decision is read in, for every surface that shows one: an approval label through `t`, a role\n * through the roles label tree, a tool through its title in the tool label tree (#2551), a resource operation through its\n * title. The inbox and the chat card (#3201) both word a decision through these, so the two cannot read one decision two\n * ways, and neither shows a sentence the server wrote.\n *\n * `toolNames` and `operationResources` name the label scopes to load, so the titles are there when the card renders.\n */\nfunction useHumanDecisionWords(toolNames: readonly string[], operationResources: readonly string[]) {\n const labelKeys = React.useMemo(\n () => [...APPROVAL_LABEL_NAMESPACES, ...toolNames.map(flowsActorsToolLabelScope), ...operationResources.map((type) => `${LabellingTypes.RESOURCES}.${type}`)],\n [toolNames, operationResources],\n );\n const { t: tKey, tComponent, tRole, tSystemEnum, tResourceOperation, formatDateTime } = useI18n({ component: FrontendComponentType.LOW_LEVEL_AI_APPROVAL, keys: labelKeys });\n const t = React.useCallback(\n (labelRef: string, params?: Record<string, string>) => tComponent(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, labelRef as never, params),\n [tComponent],\n );\n // A role is worded by the roles label tree, never shown as its identifier.\n const roleLabel = React.useCallback((roleKey: string) => (tRole ? tRole(roleKey, 'label') : roleKey), [tRole]);\n // A tool by its title, as the conversation names the same call; a tool with no words yet by its name.\n const toolLabel = React.useCallback((toolName: string) => {\n const key = flowsActorsToolLabelKey(toolName, FlowsActorsToolLabelSlot.TITLE);\n const resolved = tKey(key);\n return resolved === key || resolved.length === 0 ? toolName : resolved;\n }, [tKey]);\n // An operation by its title, as the application names it everywhere; with no title generated, its key (missing looks missing).\n const operationLabel = React.useCallback(\n (resourceType: string, operationIdentifier: string) => tResourceOperation(resourceType, operationIdentifier, ResourceOperationTextSlot.TITLE),\n [tResourceOperation],\n );\n return { t, roleLabel, toolLabel, operationLabel, tComponent, tSystemEnum, formatDateTime };\n}\n\n/**\n * The inbox's cards with the one a link named first (#2923): a chat card that cannot answer a decision links to it here\n * (`humanDecisionInboxPathOf`), and the person lands on it. The others keep their order.\n */\nexport function withFocusedDecisionFirst<T extends { readonly decisionRef: string }>(cards: readonly T[], search: string): readonly T[] {\n const focused = new URLSearchParams(search).get(HUMAN_DECISION_INBOX_FOCUS_PARAM);\n if (!focused) return cards;\n const named = cards.filter((card) => card.decisionRef === focused);\n return named.length === 0 ? cards : [...named, ...cards.filter((card) => card.decisionRef !== focused)];\n}\n\nexport function FlowsActors_ApprovalQueue(props: FlowsActors_ApprovalQueueProps): React.JSX.Element {\n const { decisions: listed, readState, refresh, act, candidates } = usePendingDecisions();\n // #2923: a link to one decision lists it first.\n const decisions = React.useMemo(() => withFocusedDecisionFirst(listed, window.location.search), [listed]);\n // The words of every tool a listed decision would run (#2551), loaded with the inbox's own.\n const toolNames = React.useMemo(() => [...new Set(decisions.map((card) => card.toolName).filter((name): name is string => !!name))].sort(), [decisions]);\n // #2288: the resources whose held operations are listed, so each operation is named by its title.\n const operationResources = React.useMemo(\n () => [...new Set(decisions.map((card) => card.operationApproval?.resourceType).filter((type): type is string => !!type))].sort(),\n [decisions],\n );\n const { t, roleLabel, toolLabel, operationLabel, tSystemEnum, formatDateTime } = useHumanDecisionWords(toolNames, operationResources);\n // Keyed by decisionRef: a decision is in flight from the act until its outcome returns.\n const [processing, setProcessing] = React.useState<ReadonlySet<string>>(() => new Set());\n const [notices, setNotices] = React.useState<ReadonlyMap<string, string>>(() => new Map());\n const [reassignCandidates, setReassignCandidates] = React.useState<ReadonlyMap<string, readonly AI_ApprovalReassignCandidate[]>>(() => new Map());\n /**\n * #2913: the decisions this person answered here. An answered card leaves the pending list, so its seal is shown under\n * the list instead: signed seconds after the answer, then current or not over the record it is about. Each keeps the\n * title its card showed, read from `cardTitles` when the answer was sent.\n */\n const [decided, setDecided] = React.useState<ReadonlyArray<{ readonly decisionRef: string; readonly title?: string }>>([]);\n const cardTitles = React.useRef<ReadonlyMap<string, string>>(new Map());\n // #3965: each card's tool, in its words, for a notice that names it.\n const cardToolLabels = React.useRef<ReadonlyMap<string, string>>(new Map());\n\n const run = React.useCallback(async (decisionRef: string, decisionAct: HumanDecision_Act, request: HumanDecision_ActRequest) => {\n setProcessing((previous) => new Set(previous).add(decisionRef));\n const title = cardTitles.current.get(decisionRef);\n try {\n const outcome = await act(decisionRef, decisionAct, request);\n if (decisionAct === HumanDecision_Act.ANSWER && outcome.kind === HumanDecision_ActOutcomeKind.APPLIED) {\n setDecided((previous) => [{ decisionRef, ...(title ? { title } : {}) }, ...previous.filter((entry) => entry.decisionRef !== decisionRef)].slice(0, DECIDED_SEALS_SHOWN));\n }\n const notice = noticeOfOutcome(outcome, t, cardToolLabels.current.get(decisionRef));\n setNotices((previous) => {\n const next = new Map(previous);\n if (notice === undefined) next.delete(decisionRef); else next.set(decisionRef, notice);\n return next;\n });\n } catch {\n // Not an outcome the server reported (a network failure): say it did not take, and leave it answerable.\n setNotices((previous) => new Map(previous).set(decisionRef, t(\"noticeNotActionable\")));\n } finally {\n setProcessing((previous) => {\n const next = new Set(previous);\n next.delete(decisionRef);\n return next;\n });\n }\n }, [act, t]);\n\n const items: AI_ApprovalQueueItem[] = React.useMemo(() => decisions.map((card) => ({\n approvalId: card.decisionRef,\n executionId: card.executionId,\n systemRef: card.systemRef,\n // #2526: the assistant by its own name, never its identifier; the risk the call's GATE declares, absent when none.\n systemName: card.systemDisplayName,\n riskLevel: card.riskLevel,\n // #2526: a decision asking its own question is answered by its own options.\n question: decisionQuestionOf(card, t),\n holderNotice: describeDecisionHolder(card.route, t, roleLabel, formatDateTime),\n requesterNotice: describeDecisionRequester(card.requesterKind, t),\n ...describeInboxCard(card, t, roleLabel, toolLabel, operationLabel),\n expiresAt: card.expiresAt ? new Date(card.expiresAt) : undefined,\n createdAt: new Date(card.requestedAt),\n // Only the acts the server says this person may perform — computed with the rule every act is checked by.\n // The inbox's Escalate names nobody, so it is offered only where the gate declares where escalations go;\n // handing it to a person of the reviewer's choosing is Reassign.\n canEscalate: card.permittedActs.includes(HumanDecision_Act.ESCALATE) && card.declaresEscalationTarget,\n canClaim: card.permittedActs.includes(HumanDecision_Act.CLAIM),\n canUnclaim: card.permittedActs.includes(HumanDecision_Act.UNCLAIM),\n canReassign: card.permittedActs.includes(HumanDecision_Act.REASSIGN),\n reassignCandidates: reassignCandidates.get(card.decisionRef),\n actionNotice: notices.get(card.decisionRef),\n // #1628 — the next deadline, or why its deadlines are paused; Pause only with a declared reason to name.\n canPauseClock: card.permittedActs.includes(HumanDecision_Act.PAUSE_CLOCK) && !card.clockPause && card.pauseStates.length > 0,\n canResumeClock: card.permittedActs.includes(HumanDecision_Act.RESUME_CLOCK) && !!card.clockPause,\n // A pause state is the APPLICATION's identifier, shown as its word (#1864) — see `describePauseState`.\n pauseStateOptions: card.pauseStates.map((pauseState) => ({ value: pauseState, label: describePauseState(pauseState, tSystemEnum) })),\n deadlineNotice: card.nextDeadline\n ? t(card.nextDeadline.kind === ReviewDeadlineKind.CLAIM ? \"deadlineClaimBy\" : \"deadlineDecisionBy\", { when: formatDateTime(card.nextDeadline.dueAt) })\n : undefined,\n clockPausedNotice: card.clockPause ? t(\"clockPausedIn\", { pauseState: describePauseState(card.clockPause.pauseStateRef, tSystemEnum) }) : undefined,\n // #1921 — the reviewer may give a reason from the application's vocabulary when correcting the agent, and may\n // CORRECT it by editing the call: the act request carries `modifiedToolArgs`, which the server re-validates against\n // the tool's own schema. Only on a tool approval — a representative admission has no call to edit and no agent to correct.\n reasonCodeOptions: describeReasonCodeOptions(card.reasonCodes, tSystemEnum),\n allowArgumentModification: card.plane === HumanDecision_Plane.CONVERSATIONAL,\n argumentsSchema: card.toolInputSchema as SerializableZodSchema | undefined,\n })), [decisions, reassignCandidates, notices, t, roleLabel, toolLabel, operationLabel, tSystemEnum, formatDateTime]);\n cardTitles.current = new Map(items.flatMap((item) => (typeof item.actionDescription === 'string' ? [[item.approvalId, item.actionDescription] as const] : [])));\n cardToolLabels.current = new Map(items.flatMap((item) => (item.toolLabel ? [[item.approvalId, item.toolLabel] as const] : [])));\n\n /**\n * An answer in the one answer shape: the option chosen, and no values. Which option refs \"approve\" and \"deny\" mean\n * depends on the decision's plane — a tool approval's, or a representative admission's (#1612) — so the card decides.\n */\n const answer = React.useCallback((decisionRef: string, approve: boolean, comment?: string, modifiedToolArgs?: Record<string, unknown>, reasonCode?: string) => {\n const plane = decisions.find((card) => card.decisionRef === decisionRef)?.plane;\n const options = plane ? HUMAN_DECISION_VERDICT_OPTIONS_BY_PLANE[plane] : undefined;\n if (!options) {\n // A plane whose options this inbox does not offer: say it cannot be answered here, and send nothing.\n setNotices((previous) => new Map(previous).set(decisionRef, t(\"noticeNotActionable\")));\n return;\n }\n const optionRef = approve ? options.approve : options.deny;\n void run(decisionRef, HumanDecision_Act.ANSWER, {\n answer: { decisionId: decisionRef, optionRef, values: [] },\n // #2903: the presentation the reviewer read; the server refuses an answer naming none, or one no longer current.\n ...presentationEchoOf(decisions, decisionRef),\n ...(comment ? { reason: comment } : {}),\n // Only when the reviewer edited the call: an absent field means \"run it as proposed\" (#566).\n ...(modifiedToolArgs ? { modifiedToolArgs } : {}),\n // Why the reviewer corrected the agent (#1921); refused with REASON_CODE_REJECTED unless the application declares it.\n ...(reasonCode ? { reasonCode } : {}),\n });\n }, [run, decisions, t]);\n\n const handleReassignOpen = React.useCallback((decisionRef: string) => {\n setReassignCandidates((previous) => {\n const next = new Map(previous);\n next.delete(decisionRef);\n return next;\n });\n void candidates(decisionRef)\n .then((people) => setReassignCandidates((previous) => new Map(previous).set(\n decisionRef,\n // The membership's email is how a same-organization reviewer tells people apart; it is data, not a label.\n people.map((person) => ({ value: person.userId, label: person.email ?? person.userId })),\n )))\n .catch(() => setReassignCandidates((previous) => new Map(previous).set(decisionRef, [])));\n }, [candidates]);\n\n return (\n <>\n <AI_ApprovalQueue\n items={items}\n onApprove={(decisionRef, comment, modifiedToolArgs, reasonCode) => answer(decisionRef, true, comment, modifiedToolArgs, reasonCode)}\n onDeny={(decisionRef, comment, reasonCode) => answer(decisionRef, false, comment, undefined, reasonCode)}\n onEscalate={(decisionRef, comment) => void run(decisionRef, HumanDecision_Act.ESCALATE, comment ? { reason: comment } : {})}\n // #2526: the option the reviewer chose and the values it carries, in the one answer shape the server checks against\n // the decision's own request (an option it never offered, or values an option does not take, is refused).\n onAnswer={(decisionRef, optionRef, values, comment, reasonCode) => void run(decisionRef, HumanDecision_Act.ANSWER, {\n answer: { decisionId: decisionRef, optionRef, values: [...values] },\n ...presentationEchoOf(decisions, decisionRef),\n ...(comment ? { reason: comment } : {}),\n // #2539: an actor question that reviews an agent's work may carry a declared reason, as a tool approval does.\n ...(reasonCode ? { reasonCode } : {}),\n })}\n onClaim={(decisionRef) => void run(decisionRef, HumanDecision_Act.CLAIM, {})}\n onUnclaim={(decisionRef) => void run(decisionRef, HumanDecision_Act.UNCLAIM, {})}\n onReassignOpen={handleReassignOpen}\n onReassign={(decisionRef, targetUserId, comment) => void run(decisionRef, HumanDecision_Act.REASSIGN, { targetUserId, ...(comment ? { reason: comment } : {}) })}\n onPauseClock={(decisionRef, pauseStateRef) => void run(decisionRef, HumanDecision_Act.PAUSE_CLOCK, { pauseStateRef })}\n onResumeClock={(decisionRef) => void run(decisionRef, HumanDecision_Act.RESUME_CLOCK, {})}\n processingIds={processing as Set<string>}\n // #2526: a read still settling, and a read that failed, are states the inbox SHOWS — never an empty inbox.\n isLoading={readState === PendingDecisionsReadState.LOADING}\n loadFailed={readState === PendingDecisionsReadState.FAILED}\n onRetry={() => { void refresh(); }}\n {...props}\n />\n {decided.map((entry) => (\n <DecisionApprovalSeal key={entry.decisionRef} decisionRef={entry.decisionRef} {...(entry.title ? { description: entry.title } : {})} />\n ))}\n </>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceAutomatedForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/automated/ResourceAutomatedForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAyF,MAAM,OAAO,CAAC;AAE9G,OAAO,EAAE,aAAa,EAA+B,MAAM,iBAAiB,CAAC;AAkD7E,OAAO,EAAqG,eAAe,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC9K,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAgC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"ResourceAutomatedForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/automated/ResourceAutomatedForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAyF,MAAM,OAAO,CAAC;AAE9G,OAAO,EAAE,aAAa,EAA+B,MAAM,iBAAiB,CAAC;AAkD7E,OAAO,EAAqG,eAAe,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC9K,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAgC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AAsDjH,OAAO,EAIL,KAAK,8BAA8B,EACpC,MAAM,+EAA+E,CAAC;AA4GvF,MAAM,WAAW,0BAA0B;IACzC,sEAAsE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AC;QACxB,4CAA4C;QAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IAEF;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,CACd,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAAE,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,oEAAoE;IACpE,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;;;;;;;;;OAYG;IACH,8BAA8B,CAAC,EAAE,8BAA8B,CAAC;CACjE;AA4MD,wBAAgB,qBAAqB,CAAC,EACpC,eAAe,EACf,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAgB,EAChB,SAAS,EACT,cAAc,EACd,gBAAuB,EACvB,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EAAE,iBAAiB,EAChC,qBAAqB,EACrB,cAAc,EACd,8BAA8B,EAAE,oCAAoC,GACrE,EAAE,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAm7FvD"}
|
|
@@ -59,6 +59,7 @@ import { isLiteralCoreResourceOperation, isRiskyResourceOperation, isSingleResou
|
|
|
59
59
|
import { pickPreferredOperationForCoreSemanticAddressability } from '../../../core/resources/resource-addressability.frontend.utils.js';
|
|
60
60
|
import { useOperationEnabled } from '../../../core/resources/hooks/useOperationEnabled.js';
|
|
61
61
|
import { frontendResourceUtils, FrontendResourceUtils } from '../../../core/resources/frontend-resource.utils.js';
|
|
62
|
+
import { readRequestFieldRowFields, resolveRouteParentRelocation, rowValuesSetByRequest } from '../../../core/resources/route-parent-relocation.frontend.utils.js';
|
|
62
63
|
import { resolveRelationshipWriteSurface, } from '../../../core/resources/relationship-surface-runtime.frontend.utils.js';
|
|
63
64
|
import { useEventBus } from '../../../core/events/useEventBus.js';
|
|
64
65
|
import { useResourceOperationOutcomeEmitter } from '../../../core/resources/useResourceOperationOutcomeEmitter.js';
|
|
@@ -1657,11 +1658,25 @@ export function ResourceAutomatedForm({ resourceContext, onSuccess, onError, onC
|
|
|
1657
1658
|
let result;
|
|
1658
1659
|
// RMM path: queue full submit (cancelPendingAutosavesRef already called rmm.cancelPendingMutations())
|
|
1659
1660
|
if (rmm) {
|
|
1661
|
+
/*
|
|
1662
|
+
* A write that moves the row out of a parent the route is scoped by (a todo moved out of the list it was opened
|
|
1663
|
+
* in) is not read back: the read is addressed under that parent, which answers 404 once the row has left, and a
|
|
1664
|
+
* failed read-back strips the answer and schedules recovery reads of the same dead address (#3860). The written
|
|
1665
|
+
* row is the answer instead, and the host opens it where it now is (`useOperationDirectExecution`).
|
|
1666
|
+
*/
|
|
1667
|
+
const movesRowOutOfRoute = isUpdateLikeOperation && resolveRouteParentRelocation({
|
|
1668
|
+
resourceType,
|
|
1669
|
+
contextResourceIdentifiers: contextResourceIdentifiersWithResourceId,
|
|
1670
|
+
rowValues: rowValuesSetByRequest(data, readRequestFieldRowFields(operation)),
|
|
1671
|
+
registry,
|
|
1672
|
+
}) !== undefined;
|
|
1660
1673
|
const mutationResult = await rmm.queueMutation(data, {
|
|
1661
1674
|
type: MutationType.SUBMIT,
|
|
1662
1675
|
priority: MutationPriority.HIGH,
|
|
1663
1676
|
source: { type: MutationSourceType.FORM, subscriberId: 'submit' },
|
|
1664
|
-
transportOverride:
|
|
1677
|
+
transportOverride: movesRowOutOfRoute
|
|
1678
|
+
? { ...currentOperationTransportOverride, readBackOnSuccess: false }
|
|
1679
|
+
: currentOperationTransportOverride,
|
|
1665
1680
|
});
|
|
1666
1681
|
if (!mutationResult.success) {
|
|
1667
1682
|
if (isConflictMutationFailure(mutationResult)) {
|
|
@@ -1808,7 +1823,11 @@ export function ResourceAutomatedForm({ resourceContext, onSuccess, onError, onC
|
|
|
1808
1823
|
}, [
|
|
1809
1824
|
assertRMMAvailableForDefaultUpdateLikeMutation,
|
|
1810
1825
|
contextFieldValues,
|
|
1826
|
+
contextResourceIdentifiersWithResourceId,
|
|
1811
1827
|
currentOperationTransportOverride,
|
|
1828
|
+
isUpdateLikeOperation,
|
|
1829
|
+
registry,
|
|
1830
|
+
resourceType,
|
|
1812
1831
|
injectServerErrors,
|
|
1813
1832
|
mergeRequestDataWithBulkSelection,
|
|
1814
1833
|
operationIdentifier,
|