@wildo-ai/saas-frontend-lib 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/ai-elements/meta/agent-wrappers.d.ts +1 -0
- package/dist/esm/components/ai-elements/meta/agent-wrappers.d.ts.map +1 -1
- package/dist/esm/components/ai-elements/meta/agent-wrappers.js.map +1 -1
- package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts +38 -0
- package/dist/esm/components/compliance/EmbeddedSigningFrame.d.ts.map +1 -0
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js +106 -0
- package/dist/esm/components/compliance/EmbeddedSigningFrame.js.map +1 -0
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.d.ts.map +1 -1
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js +22 -0
- package/dist/esm/components/data-display/ResourceAutomaticDisplayer.js.map +1 -1
- package/dist/esm/components/flows-actors/agent-config.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/agent-config.labels.js +2 -0
- package/dist/esm/components/flows-actors/agent-config.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.d.ts +7 -1
- package/dist/esm/components/flows-actors/approval.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.js +22 -5
- package/dist/esm/components/flows-actors/approval.js.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/approval.labels.js +3 -0
- package/dist/esm/components/flows-actors/approval.labels.js.map +1 -1
- package/dist/esm/components/flows-actors/task-detail.d.ts +12 -1
- package/dist/esm/components/flows-actors/task-detail.d.ts.map +1 -1
- package/dist/esm/components/flows-actors/task-detail.js +2 -2
- package/dist/esm/components/flows-actors/task-detail.js.map +1 -1
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts +79 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.d.ts.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js +271 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.js.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts +3 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.d.ts.map +1 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js +66 -0
- package/dist/esm/components/settings/AppPage_AgentActivitySettings.labels.js.map +1 -0
- package/dist/esm/components/settings/SettingsHub.d.ts.map +1 -1
- package/dist/esm/components/settings/SettingsHub.js +6 -0
- package/dist/esm/components/settings/SettingsHub.js.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.d.ts +6 -0
- package/dist/esm/components/views/composite-view/CompositeView.d.ts.map +1 -1
- package/dist/esm/components/views/composite-view/CompositeView.js +12 -2
- package/dist/esm/components/views/composite-view/CompositeView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts +57 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.d.ts.map +1 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js +136 -0
- package/dist/esm/components/views/flows-actors-view/ConversationLinkPage.js.map +1 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts +20 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js +139 -22
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js +5 -0
- package/dist/esm/components/views/flows-actors-view/FlowsActorsView.labels.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts +4 -0
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.d.ts.map +1 -1
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js +19 -0
- package/dist/esm/components/views/flows-actors-view/held-conversation-selection.js.map +1 -1
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts +26 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.d.ts.map +1 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js +3 -0
- package/dist/esm/components/views/flows-actors-view/linked-conversation.context.js.map +1 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.d.ts.map +1 -1
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js +1 -0
- package/dist/esm/core/components-registry/assert-registry-completeness.frontend.helper.js.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.d.ts +19 -0
- package/dist/esm/core/config/composite-view.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/composite-view.schemas.js.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.d.ts.map +1 -1
- package/dist/esm/core/config/engine-settings-destinations.js +23 -0
- package/dist/esm/core/config/engine-settings-destinations.js.map +1 -1
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js +3 -0
- package/dist/esm/core/config/settings-hub-presentation.frontend.utils.js.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts +12 -0
- package/dist/esm/core/config/settings-hub.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/config/settings-hub.frontend.schemas.js +12 -0
- package/dist/esm/core/config/settings-hub.frontend.schemas.js.map +1 -1
- package/dist/esm/core/events/events.frontend.schemas.d.ts +56 -0
- package/dist/esm/core/events/events.frontend.schemas.d.ts.map +1 -1
- package/dist/esm/core/events/events.frontend.schemas.js +24 -1
- package/dist/esm/core/events/events.frontend.schemas.js.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts +10 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/FlowsActorsContext.js +12 -3
- package/dist/esm/core/flows-actors/FlowsActorsContext.js.map +1 -1
- package/dist/esm/core/flows-actors/conversation-history.model.d.ts +19 -1
- package/dist/esm/core/flows-actors/conversation-history.model.d.ts.map +1 -1
- package/dist/esm/core/flows-actors/conversation-history.model.js +45 -4
- package/dist/esm/core/flows-actors/conversation-history.model.js.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.d.ts.map +1 -1
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js +50 -18
- package/dist/esm/core/monitoring/analytics/AnalyticsContext.js.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts +0 -5
- package/dist/esm/core/navigation/NavigationContentAreas.d.ts.map +1 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js +27 -1
- package/dist/esm/core/navigation/NavigationContentAreas.js.map +1 -1
- package/dist/esm/core/navigation/navigation.schemas.d.ts +20 -0
- package/dist/esm/core/navigation/navigation.schemas.d.ts.map +1 -1
- package/dist/esm/core/navigation/navigation.schemas.js +4 -0
- package/dist/esm/core/navigation/navigation.schemas.js.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.d.ts.map +1 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js +5 -1
- package/dist/esm/core/navigation/useNavigationRouterSync.js.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts +20 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js +25 -0
- package/dist/esm/core/requests/wildo-http-client-manual-calls.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.d.ts +6 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.js +11 -1
- package/dist/esm/core/resources/resource-read-cache.frontend.service.js.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-repository.frontend.service.js +2 -0
- package/dist/esm/core/resources/resources-repository.frontend.service.js.map +1 -1
- package/dist/esm/core/runtime/AppRouter.d.ts.map +1 -1
- package/dist/esm/core/runtime/AppRouter.js +2 -1
- package/dist/esm/core/runtime/AppRouter.js.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.d.ts.map +1 -1
- package/dist/esm/core/runtime/ApplicationMainContext.js +12 -3
- package/dist/esm/core/runtime/ApplicationMainContext.js.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts +6 -0
- package/dist/esm/core/runtime/routes.frontend.definitions.d.ts.map +1 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js +7 -1
- package/dist/esm/core/runtime/routes.frontend.definitions.js.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts +6 -1
- package/dist/esm/core/security/UserOrgsContext.d.ts.map +1 -1
- package/dist/esm/core/security/UserOrgsContext.js +35 -11
- package/dist/esm/core/security/UserOrgsContext.js.map +1 -1
- package/dist/esm/core/security/consent-gate.frontend.utils.d.ts +17 -5
- package/dist/esm/core/security/consent-gate.frontend.utils.d.ts.map +1 -1
- package/dist/esm/core/security/consent-gate.frontend.utils.js +16 -7
- package/dist/esm/core/security/consent-gate.frontend.utils.js.map +1 -1
- package/dist/esm/core/security/useConsentGateBehavior.js +1 -1
- package/dist/esm/core/security/useConsentGateBehavior.js.map +1 -1
- package/dist/esm/core/security/useGrantedConsentPurposes.js +1 -1
- package/dist/esm/core/security/useGrantedConsentPurposes.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.labels.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/approval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AAS,CAAC,WAAW,EAAE,OAAO,EAAE,wDAAwD,EAAE;IACrH,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,yIAAyI,EAAE;IACnM;QACE,GAAG,EAAE,kBAAkB;QACvB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,4DAA4D;QACrE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;KAC5E;IACD;QACE,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,6CAA6C;QACtD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAChF;IACD;QACE,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,6CAA6C;QACtD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAChF;IACD;QACE,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,2CAA2C;QACpD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAC9E;CACF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,wBAAwB,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 LowLevelAiApprovalLabels: LabellingUnitaryDef[] = [\n { ref: 'approve', kind: LabelKind.BUTTON, purpose: 'Button to approve the pending request' },\n { ref: 'deny', kind: LabelKind.BUTTON, purpose: 'Button to deny the pending request' },\n { ref: 'escalate', kind: LabelKind.BUTTON, purpose: 'Button to escalate the request to a higher approver' },\n { ref: 'queueTitle', kind: LabelKind.HEADING, purpose: 'Heading for the approval queue' },\n // #1594 — moving a decision between people, and what an act came to.\n { ref: 'claim', kind: LabelKind.BUTTON, purpose: 'Button taking a request routed to a role the person holds, so it is theirs to answer' },\n { ref: 'unclaim', kind: LabelKind.BUTTON, purpose: 'Button giving a request the person claimed back to everyone holding its role' },\n { ref: 'reassign', kind: LabelKind.BUTTON, purpose: 'Button opening a choice of who else this request should go to' },\n { ref: 'reassignTarget', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the list of people this request can be handed to' },\n { ref: 'reassignConfirm', kind: LabelKind.BUTTON, purpose: 'Button handing the request to the person chosen' },\n { ref: 'reassignNoCandidates', kind: LabelKind.MESSAGE, purpose: 'Shown when nobody else can answer this request, so it cannot be handed on' },\n // #1628 — a request's deadlines, and stopping its clocks while the reviewer waits on something outside their control.\n { ref: 'deadlineClaimBy', kind: LabelKind.MESSAGE, purpose: 'Line on a waiting request saying by when someone should take it on', params: [{ key: 'when', meaning: 'the date and time it should be taken by, already formatted for the reader' }] },\n { ref: 'deadlineDecisionBy', kind: LabelKind.MESSAGE, purpose: 'Line on a waiting request saying by when it should be answered', params: [{ key: 'when', meaning: 'the date and time it should be answered by, already formatted for the reader' }] },\n { ref: 'clockPausedIn', kind: LabelKind.MESSAGE, purpose: 'Line on a waiting request whose deadlines are paused, naming why; the request still expires at its original time', params: [{ key: 'pauseState', meaning: 'the reason the deadlines are paused, as the application names it' }] },\n { ref: 'pauseClock', kind: LabelKind.BUTTON, purpose: 'Button stopping the request\\'s deadlines while the reviewer waits on something outside their control; it does not stop the request expiring' },\n { ref: 'pauseClockState', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the list of reasons the deadlines can be paused for' },\n { ref: 'pauseClockConfirm', kind: LabelKind.BUTTON, purpose: 'Button confirming the pause for the reason chosen' },\n { ref: 'resumeClock', kind: LabelKind.BUTTON, purpose: 'Button restarting the request\\'s paused deadlines; the paused time is added to them' },\n { ref: 'noticeClockAlreadyPaused', kind: LabelKind.MESSAGE, purpose: 'Shown when the deadlines were already paused, so this pause did nothing' },\n { ref: 'noticeClockNotPaused', kind: LabelKind.MESSAGE, purpose: 'Shown when the deadlines were not paused, so there was nothing to restart' },\n { ref: 'noticePauseStateNotDeclared', kind: LabelKind.MESSAGE, purpose: 'Shown when the reason chosen for pausing is not one this request allows' },\n {\n ref: 'inboxToolCall',\n kind: LabelKind.MESSAGE,\n purpose: 'One line describing a request waiting in the inbox: an assistant is waiting for approval to run an action',\n params: [{ key: 'toolName', meaning: 'the action the assistant wants to run, in its own words (e.g. \"Reschedule a todo\"); its system name when it has no words yet' }],\n },\n {\n ref: 'inboxRepresentativeAdmission',\n kind: LabelKind.MESSAGE,\n purpose: 'One line describing a request waiting in an administrator\\'s inbox: an organization this one works with (for example a service firm) assigned one of its people to work inside this organization with a given role and scope, and they are admitted only if an administrator approves. Must name the role and the scope: they are what the approver grants',\n params: [\n { key: 'representingOrganization', meaning: 'name of the organization that assigned the person (for example a service firm)' },\n { key: 'representative', meaning: 'name of the person that organization assigned' },\n { key: 'email', meaning: 'email address of the person that organization assigned' },\n { key: 'role', meaning: 'the name of the role the person would hold in this organization (already worded)' },\n { key: 'scope', meaning: 'where in this organization the person would work: the whole organization, or a number of teams (already worded)' },\n ],\n },\n {\n ref: 'inboxOperationApproval',\n kind: LabelKind.MESSAGE,\n purpose: 'One line describing a request waiting in an approver\\'s inbox: a person asked to do something in the application (create or change a record), and it is done only if someone allowed to approve it does. The values they asked for are shown beside it',\n params: [\n { key: 'operation', meaning: 'what the person asked to do, as the application names it (e.g. \"Create supplier\")' },\n { key: 'requester', meaning: 'name of the person who asked' },\n ],\n },\n { ref: 'inboxRepresentativeAdmissionScopeOrganization', kind: LabelKind.MESSAGE, purpose: 'Noun phrase, no leading preposition, filling the scope of the inbox line for the assigned person: the whole organization (for example \"the whole organization\")' },\n {\n ref: 'inboxRepresentativeAdmissionScopeUnits',\n kind: LabelKind.MESSAGE,\n purpose: 'Noun phrase, no leading preposition, filling the scope of the inbox line for the assigned person: only some of the organization\\'s teams (for example \"3 teams\")',\n params: [{ key: 'count', meaning: 'how many teams', isCount: true }],\n },\n // #2526 — who holds a request in the inbox, and who raised it. The inbox lists only requests this person may answer.\n { ref: 'holderOwner', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying it is the person\\'s own: their assistant asked them, in their own conversation' },\n {\n ref: 'holderClaimedByYou',\n kind: LabelKind.MESSAGE,\n purpose: 'Line on a request in the inbox saying this person took it for themselves from everyone holding a role, and when; it is now theirs alone',\n params: [{ key: 'when', meaning: 'the date and time they took it, already formatted for the reader' }],\n },\n { ref: 'holderAssignedToYou', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying it was given to this person by name, to answer themselves' },\n {\n ref: 'holderRole',\n kind: LabelKind.MESSAGE,\n purpose: 'Line on a request in the inbox saying anyone holding a given role may answer it, including this person, until one of them takes it',\n params: [{ key: 'role', meaning: 'the name of the role, already worded' }],\n },\n { ref: 'requesterAutonomousAgent', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying an assistant working on its own raised it: no person asked for this action' },\n { ref: 'requesterConnectedApplication', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying a person raised it through another application they allowed to act for them' },\n { ref: 'queueLoading', kind: LabelKind.MESSAGE, purpose: 'Accessible name of the placeholder shown while the inbox is still being loaded' },\n { ref: 'queueLoadFailed', kind: LabelKind.MESSAGE, purpose: 'Shown when the inbox could not be loaded; requests may be waiting that are not shown, and any listed below may be out of date' },\n { ref: 'queueRetry', kind: LabelKind.BUTTON, purpose: 'Button loading the inbox again after it could not be loaded' },\n { ref: 'queueFilterPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the field narrowing the inbox to requests whose assistant, action or description contains the text typed' },\n // #2526 — a request that asks its own question, answered by one of its own options rather than approve or deny.\n { ref: 'confirmAnswerYes', kind: LabelKind.LABEL, purpose: 'The \"yes\" answer to a yes-or-no question a request asks' },\n { ref: 'confirmAnswerNo', kind: LabelKind.LABEL, purpose: 'The \"no\" answer to a yes-or-no question a request asks' },\n // #2720 — the assistant asks the person in the conversation; the two ways to answer it.\n { ref: 'askPersonAnswer', kind: LabelKind.BUTTON, purpose: 'Button sending the person\\'s answers to the questions the assistant asked them' },\n { ref: 'askPersonDecideForMe', kind: LabelKind.BUTTON, purpose: 'Button telling the assistant to go on without the answers and decide by itself, saying what it assumed' },\n // #2754 — a step of an automated process (a flow) asks a person questions before it goes on; the two ways to answer it.\n // Each ref is a `HumanDecision_OptionLabelRef` value the engine writes on the option.\n { ref: 'flowStepAnswer', kind: LabelKind.BUTTON, purpose: 'Button sending the person\\'s answers to the questions an automated process asked them, so the process goes on from those answers' },\n { ref: 'flowStepStop', kind: LabelKind.BUTTON, purpose: 'Button stopping the automated process that asked the questions: it ends there and does nothing after this step' },\n { ref: 'queueNoMatch', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when requests are waiting but none matches the text typed in the inbox filter' },\n { ref: 'awaitingReview', kind: LabelKind.MESSAGE, purpose: 'Shown on a request in the conversation it came from when a reviewer answers it, not the person in the conversation' },\n { ref: 'noticeNotActionable', kind: LabelKind.MESSAGE, purpose: 'Shown when the request can no longer be acted on by this person: it was settled, or is no longer theirs' },\n // #2664 S5b — what a copy of a request sent to someone's chat says once it was answered, by them or by anyone else.\n { ref: 'noticeAnswered', kind: LabelKind.MESSAGE, purpose: 'Shown in place of the answer buttons on a copy of a request sent to a person outside the application (a chat message), once the request was answered by anyone, this person included' },\n { ref: 'noticeSuperseded', kind: LabelKind.MESSAGE, purpose: 'Shown when someone else answered or moved the request a moment earlier, so this action did nothing' },\n // #2903 — what the person read is bound to the answer: a request that changed since it was shown is not answered.\n { ref: 'noticePresentationStale', kind: LabelKind.MESSAGE, purpose: 'Shown when the request changed since this person read it, so their answer was not taken: it still waits, now shown as it is, to be answered again' },\n { ref: 'noticeLapsed', kind: LabelKind.MESSAGE, purpose: 'Shown when the request expired before it was answered, so it is closed and the action did not run' },\n { ref: 'noticeRequesterAuthorityLapsed', kind: LabelKind.MESSAGE, purpose: 'Shown when the person the work was for no longer has the access it needs, so it was not run and the request is closed' },\n { ref: 'noticeTargetRefused', kind: LabelKind.MESSAGE, purpose: 'Shown when the person chosen cannot answer this request, so it stays where it was' },\n { ref: 'noticeNoEscalationTarget', kind: LabelKind.MESSAGE, purpose: 'Shown when there is nobody defined to escalate this request to, so it stays where it was; hand it to someone instead' },\n { ref: 'noticeConsentRequired', kind: LabelKind.MESSAGE, purpose: 'Shown when the person the work was for has not agreed to something this work needs; the request is still waiting' },\n { ref: 'noticeCallNotRunAsRead', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when this call would not run as shown, whether edited or as proposed, naming the arguments to look at, so nothing was approved; the request is still pending and those arguments can be corrected, or the request denied', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeArgumentsCannotBeCorrected', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when this call cannot run whatever is entered for the named arguments, so nothing was approved; the only way forward is to deny the request and ask again', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeTheseArguments', kind: LabelKind.MESSAGE, purpose: 'Stands in a decision inbox notice for the names of the arguments, when a refusal names none: a short noun phrase meaning these details' },\n { ref: 'noticeCallCannotRun', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when this call could not run as things stand now, whatever its details, for example because the assistant was switched off or a policy changed, so nothing was approved; the request is still pending, can be denied, and approving it again may work later' },\n { ref: 'noticeCredentialNotAccepted', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when an edit set or changed a credential such as a password or an API key in this action, naming the arguments, so nothing was approved; leave them as they were, or deny the request', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeModificationRejected', kind: LabelKind.MESSAGE, purpose: 'Shown when edited arguments were refused; the request is still waiting and can be answered as proposed' },\n { ref: 'noticeEditedCallNotReachable', kind: LabelKind.MESSAGE, purpose: 'Shown when the edit points the call at a record the approver may not reach, through the organization relationship they work in; the request is still waiting, and can be approved as proposed or denied, naming the arguments it is about', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeReasonCodeRejected', kind: LabelKind.MESSAGE, purpose: 'Shown when the reason given is not one the application offers; the request is still waiting and can be answered again' },\n // #1921 — why the approver changed or rejected an assistant's proposed action, chosen from the application's own reasons.\n { ref: 'reasonCode', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the optional list of reasons for changing or rejecting the assistant\\'s proposed action, as the application defines them' },\n { ref: 'reasonCodeClear', kind: LabelKind.BUTTON, purpose: 'Button removing the reason chosen, so the answer is given without one' },\n { ref: 'denyConfirm', kind: LabelKind.BUTTON, purpose: 'Button rejecting the proposed action, with the reason chosen if any' },\n { ref: 'riskLow', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares low risk' },\n { ref: 'riskMedium', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares medium risk' },\n { ref: 'riskHigh', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares high risk' },\n { ref: 'riskCritical', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares critical risk' },\n { ref: 'commentPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder for the optional approver comment field' },\n { ref: 'expiresIn', kind: LabelKind.LABEL, purpose: 'Label preceding the time remaining before the request expires' },\n { ref: 'expired', kind: LabelKind.MESSAGE, purpose: 'Marker that the approval request has expired' },\n { ref: 'toolCall', kind: LabelKind.LABEL, purpose: 'Label preceding the name of the tool call awaiting approval' },\n { ref: 'toolArguments', kind: LabelKind.LABEL, purpose: 'Label for the arguments proposed for the tool call awaiting approval' },\n { ref: 'editArguments', kind: LabelKind.BUTTON, purpose: 'Button opening an editor over the proposed tool arguments so the approver can change them before approving' },\n { ref: 'discardArgumentEdits', kind: LabelKind.BUTTON, purpose: 'Button closing the argument editor and returning to the arguments the agent proposed' },\n { ref: 'argumentsNotValidJson', kind: LabelKind.MESSAGE, purpose: 'Shown when the edited tool arguments are not a valid JSON object, so the approval cannot be submitted' },\n { ref: 'editArgumentsAsJson', kind: LabelKind.BUTTON, purpose: 'Button switching the argument editor from one field per argument to the raw JSON text of all arguments' },\n { ref: 'editArgumentsAsFields', kind: LabelKind.BUTTON, purpose: 'Button switching the argument editor from raw JSON back to one field per argument' },\n { ref: 'argumentValueNotValidJson', kind: LabelKind.MESSAGE, purpose: 'Shown under one structured argument (a list or nested value edited as JSON) whose text is not valid JSON, so the approval cannot be submitted' },\n { ref: 'argumentModificationRefused', kind: LabelKind.LABEL, purpose: 'Label preceding the reason the server refused the edited arguments; the approval is still pending and can be corrected' },\n // One label per `FlowsActors_ApprovalModificationRefusalReason` (#1186): the reason shown after `argumentModificationRefused`.\n { ref: 'refusalAgentNotRegistered', kind: LabelKind.MESSAGE, purpose: 'The agent that asked for this approval is no longer available, so this call cannot run, as proposed or edited; the only way forward is to deny it and ask again' },\n { ref: 'refusalToolNotDeclared', kind: LabelKind.MESSAGE, purpose: 'The agent no longer offers this tool, so this call cannot run, as proposed or edited; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalApprovalRouteChanged', kind: LabelKind.MESSAGE, purpose: 'The way this tool is approved changed since this action was paused, so it cannot run; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalAgentNotActive', kind: LabelKind.MESSAGE, purpose: 'The assistant that asked for this approval is no longer active, so this call cannot run; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalAgentSuspended', kind: LabelKind.MESSAGE, purpose: 'An administrator suspended the assistant that asked for this approval, so this call cannot run; deny it, or answer once the assistant is back', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalContentPolicyTightened', kind: LabelKind.MESSAGE, purpose: 'The organization tightened its content policy since this action was paused, so it cannot run; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalAgentStandingUnreadable', kind: LabelKind.MESSAGE, purpose: 'The rules this assistant answers to could not be read just now, so this call cannot run yet; try again, or deny it', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalToolNoLongerGated', kind: LabelKind.MESSAGE, purpose: 'This tool no longer needs approval, so this request is out of date; deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalArgumentsInvalid', kind: LabelKind.MESSAGE, purpose: 'The edited arguments are not valid for this tool; names the arguments to correct, and the approval is still pending', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments that need correcting' }] },\n { ref: 'refusalArgumentsCannotBeCorrected', kind: LabelKind.MESSAGE, purpose: 'This tool cannot run with the named arguments whatever is entered, so correcting them would not help; the only way forward is to deny the request and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments' }] },\n { ref: 'refusalArgumentsNotRunAsWritten', kind: LabelKind.MESSAGE, purpose: 'The edited arguments are valid, but this tool would drop, change or fill in some of them, so it would not run what the approver wrote, or a value in the call cannot be used; names those arguments, and the approval is still pending', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments the tool would not run as written' }] },\n { ref: 'refusalCredentialNotAccepted', kind: LabelKind.MESSAGE, purpose: 'A credential such as a password or an API key cannot be set or changed in this action here, because it would be stored with this request; leave the named arguments as they were, or deny the request', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments holding a credential' }] },\n { ref: 'refusalSigningKeyNotConfigured', kind: LabelKind.MESSAGE, purpose: 'Edited arguments cannot be applied because the application is not configured to re-sign approvals; approve as proposed or deny' },\n { ref: 'refusalCallNotRewritable', kind: LabelKind.MESSAGE, purpose: 'This pending call could not be updated with the edited arguments; approve it as proposed or deny it' },\n { ref: 'refusalRecordNotReachable', kind: LabelKind.MESSAGE, purpose: 'The edit points this call at a record the approver may not reach, through the organization relationship they work in; names the arguments to put back; the approval is still pending and can be approved as proposed', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments that may not be changed' }] },\n { ref: 'refusalDeliverableFileNotEditable', kind: LabelKind.MESSAGE, purpose: 'The edit replaces the file this call is about; the approver approves the file they were shown, so the named argument must be put back; the approval is still pending and can be approved as proposed or denied', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'name of the argument holding the file, which may not be changed' }] },\n { ref: 'refusalReasonUnstated', kind: LabelKind.MESSAGE, purpose: 'The edited arguments were refused without a reason this screen recognises; approve as proposed, correct and retry, or deny' },\n { ref: 'confirmTitle', kind: LabelKind.HEADING, purpose: 'Heading of the dialog confirming an answer that lets a high or critical risk request go ahead: an approval, or one of the request\\'s own options that proceeds' },\n { ref: 'confirmDescription', kind: LabelKind.DESCRIPTION, purpose: 'Body text of that confirmation dialog: answering this way lets the requested action go ahead' },\n { ref: 'confirmCancel', kind: LabelKind.BUTTON, purpose: 'Button to dismiss the confirmation dialog without acting' },\n { ref: 'confirmProceed', kind: LabelKind.BUTTON, purpose: 'Button to confirm and proceed with the approval action' },\n { ref: 'processing', kind: LabelKind.MESSAGE, purpose: 'Shown while the approval decision is being submitted' },\n { ref: 'queueEmpty', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when there are no pending approvals in the queue' },\n { ref: 'queueSortRisk', kind: LabelKind.LABEL, purpose: 'Toggle ordering the inbox by the risk declared for each request\\'s action, highest first; off, requests are ordered by soonest deadline' },\n {\n ref: 'expiresCountdown',\n kind: LabelKind.MESSAGE,\n purpose: 'Live countdown of the time left before the request expires',\n params: [{ key: 'time', meaning: 'formatted time remaining until expiry' }],\n },\n {\n ref: 'timeAgoSeconds',\n kind: LabelKind.MESSAGE,\n purpose: 'Relative timestamp expressed in seconds ago',\n params: [{ key: 'count', meaning: 'number of seconds elapsed', isCount: true }],\n },\n {\n ref: 'timeAgoMinutes',\n kind: LabelKind.MESSAGE,\n purpose: 'Relative timestamp expressed in minutes ago',\n params: [{ key: 'count', meaning: 'number of minutes elapsed', isCount: true }],\n },\n {\n ref: 'timeAgoHours',\n kind: LabelKind.MESSAGE,\n purpose: 'Relative timestamp expressed in hours ago',\n params: [{ key: 'count', meaning: 'number of hours elapsed', isCount: true }],\n },\n];\nregisterComponentLabels(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, LowLevelAiApprovalLabels);\n"]}
|
|
1
|
+
{"version":3,"file":"approval.labels.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/approval.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,wBAAwB,GAA0B;IAC7D,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,uCAAuC,EAAE;IAC5F,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,oCAAoC,EAAE;IACtF,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,E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ACD;QACE,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,6CAA6C;QACtD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAChF;IACD;QACE,GAAG,EAAE,gBAAgB;QACrB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,6CAA6C;QACtD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAChF;IACD;QACE,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,SAAS,CAAC,OAAO;QACvB,OAAO,EAAE,2CAA2C;QACpD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;KAC9E;CACF,CAAC;AACF,uBAAuB,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,wBAAwB,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 LowLevelAiApprovalLabels: LabellingUnitaryDef[] = [\n { ref: 'approve', kind: LabelKind.BUTTON, purpose: 'Button to approve the pending request' },\n { ref: 'deny', kind: LabelKind.BUTTON, purpose: 'Button to deny the pending request' },\n { ref: 'escalate', kind: LabelKind.BUTTON, purpose: 'Button to escalate the request to a higher approver' },\n { ref: 'queueTitle', kind: LabelKind.HEADING, purpose: 'Heading for the approval queue' },\n // #1594 — moving a decision between people, and what an act came to.\n { ref: 'claim', kind: LabelKind.BUTTON, purpose: 'Button taking a request routed to a role the person holds, so it is theirs to answer' },\n { ref: 'unclaim', kind: LabelKind.BUTTON, purpose: 'Button giving a request the person claimed back to everyone holding its role' },\n { ref: 'reassign', kind: LabelKind.BUTTON, purpose: 'Button opening a choice of who else this request should go to' },\n { ref: 'reassignTarget', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the list of people this request can be handed to' },\n { ref: 'reassignConfirm', kind: LabelKind.BUTTON, purpose: 'Button handing the request to the person chosen' },\n { ref: 'reassignNoCandidates', kind: LabelKind.MESSAGE, purpose: 'Shown when nobody else can answer this request, so it cannot be handed on' },\n // #1628 — a request's deadlines, and stopping its clocks while the reviewer waits on something outside their control.\n { ref: 'deadlineClaimBy', kind: LabelKind.MESSAGE, purpose: 'Line on a waiting request saying by when someone should take it on', params: [{ key: 'when', meaning: 'the date and time it should be taken by, already formatted for the reader' }] },\n { ref: 'deadlineDecisionBy', kind: LabelKind.MESSAGE, purpose: 'Line on a waiting request saying by when it should be answered', params: [{ key: 'when', meaning: 'the date and time it should be answered by, already formatted for the reader' }] },\n { ref: 'clockPausedIn', kind: LabelKind.MESSAGE, purpose: 'Line on a waiting request whose deadlines are paused, naming why; the request still expires at its original time', params: [{ key: 'pauseState', meaning: 'the reason the deadlines are paused, as the application names it' }] },\n { ref: 'pauseClock', kind: LabelKind.BUTTON, purpose: 'Button stopping the request\\'s deadlines while the reviewer waits on something outside their control; it does not stop the request expiring' },\n { ref: 'pauseClockState', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the list of reasons the deadlines can be paused for' },\n { ref: 'pauseClockConfirm', kind: LabelKind.BUTTON, purpose: 'Button confirming the pause for the reason chosen' },\n { ref: 'resumeClock', kind: LabelKind.BUTTON, purpose: 'Button restarting the request\\'s paused deadlines; the paused time is added to them' },\n { ref: 'noticeClockAlreadyPaused', kind: LabelKind.MESSAGE, purpose: 'Shown when the deadlines were already paused, so this pause did nothing' },\n { ref: 'noticeClockNotPaused', kind: LabelKind.MESSAGE, purpose: 'Shown when the deadlines were not paused, so there was nothing to restart' },\n { ref: 'noticePauseStateNotDeclared', kind: LabelKind.MESSAGE, purpose: 'Shown when the reason chosen for pausing is not one this request allows' },\n {\n ref: 'inboxToolCall',\n kind: LabelKind.MESSAGE,\n purpose: 'One line describing a request waiting in the inbox: an assistant is waiting for approval to run an action',\n params: [{ key: 'toolName', meaning: 'the action the assistant wants to run, in its own words (e.g. \"Reschedule a todo\"); its system name when it has no words yet' }],\n },\n {\n ref: 'inboxRepresentativeAdmission',\n kind: LabelKind.MESSAGE,\n purpose: 'One line describing a request waiting in an administrator\\'s inbox: an organization this one works with (for example a service firm) assigned one of its people to work inside this organization with a given role and scope, and they are admitted only if an administrator approves. Must name the role and the scope: they are what the approver grants',\n params: [\n { key: 'representingOrganization', meaning: 'name of the organization that assigned the person (for example a service firm)' },\n { key: 'representative', meaning: 'name of the person that organization assigned' },\n { key: 'email', meaning: 'email address of the person that organization assigned' },\n { key: 'role', meaning: 'the name of the role the person would hold in this organization (already worded)' },\n { key: 'scope', meaning: 'where in this organization the person would work: the whole organization, or a number of teams (already worded)' },\n ],\n },\n {\n ref: 'inboxOperationApproval',\n kind: LabelKind.MESSAGE,\n purpose: 'One line describing a request waiting in an approver\\'s inbox: a person asked to do something in the application (create or change a record), and it is done only if someone allowed to approve it does. The values they asked for are shown beside it',\n params: [\n { key: 'operation', meaning: 'what the person asked to do, as the application names it (e.g. \"Create supplier\")' },\n { key: 'requester', meaning: 'name of the person who asked' },\n ],\n },\n { ref: 'inboxRepresentativeAdmissionScopeOrganization', kind: LabelKind.MESSAGE, purpose: 'Noun phrase, no leading preposition, filling the scope of the inbox line for the assigned person: the whole organization (for example \"the whole organization\")' },\n {\n ref: 'inboxRepresentativeAdmissionScopeUnits',\n kind: LabelKind.MESSAGE,\n purpose: 'Noun phrase, no leading preposition, filling the scope of the inbox line for the assigned person: only some of the organization\\'s teams (for example \"3 teams\")',\n params: [{ key: 'count', meaning: 'how many teams', isCount: true }],\n },\n // #2526 — who holds a request in the inbox, and who raised it. The inbox lists only requests this person may answer.\n { ref: 'holderOwner', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying it is the person\\'s own: their assistant asked them, in their own conversation' },\n {\n ref: 'holderClaimedByYou',\n kind: LabelKind.MESSAGE,\n purpose: 'Line on a request in the inbox saying this person took it for themselves from everyone holding a role, and when; it is now theirs alone',\n params: [{ key: 'when', meaning: 'the date and time they took it, already formatted for the reader' }],\n },\n { ref: 'holderAssignedToYou', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying it was given to this person by name, to answer themselves' },\n {\n ref: 'holderRole',\n kind: LabelKind.MESSAGE,\n purpose: 'Line on a request in the inbox saying anyone holding a given role may answer it, including this person, until one of them takes it',\n params: [{ key: 'role', meaning: 'the name of the role, already worded' }],\n },\n { ref: 'requesterAutonomousAgent', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying an assistant working on its own raised it: no person asked for this action' },\n { ref: 'requesterConnectedApplication', kind: LabelKind.MESSAGE, purpose: 'Line on a request in the inbox saying a person raised it through another application they allowed to act for them' },\n { ref: 'queueLoading', kind: LabelKind.MESSAGE, purpose: 'Accessible name of the placeholder shown while the inbox is still being loaded' },\n { ref: 'queueLoadFailed', kind: LabelKind.MESSAGE, purpose: 'Shown when the inbox could not be loaded; requests may be waiting that are not shown, and any listed below may be out of date' },\n { ref: 'queueRetry', kind: LabelKind.BUTTON, purpose: 'Button loading the inbox again after it could not be loaded' },\n { ref: 'queueFilterPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the field narrowing the inbox to requests whose assistant, action or description contains the text typed' },\n // #2526 — a request that asks its own question, answered by one of its own options rather than approve or deny.\n { ref: 'confirmAnswerYes', kind: LabelKind.LABEL, purpose: 'The \"yes\" answer to a yes-or-no question a request asks' },\n { ref: 'confirmAnswerNo', kind: LabelKind.LABEL, purpose: 'The \"no\" answer to a yes-or-no question a request asks' },\n // #2720 — the assistant asks the person in the conversation; the two ways to answer it.\n { ref: 'askPersonAnswer', kind: LabelKind.BUTTON, purpose: 'Button sending the person\\'s answers to the questions the assistant asked them' },\n { ref: 'askPersonDecideForMe', kind: LabelKind.BUTTON, purpose: 'Button telling the assistant to go on without the answers and decide by itself, saying what it assumed' },\n // #2754 — a step of an automated process (a flow) asks a person questions before it goes on; the two ways to answer it.\n // Each ref is a `HumanDecision_OptionLabelRef` value the engine writes on the option.\n { ref: 'flowStepAnswer', kind: LabelKind.BUTTON, purpose: 'Button sending the person\\'s answers to the questions an automated process asked them, so the process goes on from those answers' },\n { ref: 'flowStepStop', kind: LabelKind.BUTTON, purpose: 'Button stopping the automated process that asked the questions: it ends there and does nothing after this step' },\n { ref: 'queueNoMatch', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when requests are waiting but none matches the text typed in the inbox filter' },\n { ref: 'awaitingReview', kind: LabelKind.MESSAGE, purpose: 'Shown on a request in the conversation it came from when a reviewer answers it, not the person in the conversation' },\n { ref: 'noticeNotActionable', kind: LabelKind.MESSAGE, purpose: 'Shown when the request can no longer be acted on by this person: it was settled, or is no longer theirs' },\n // #2664 S5b — what a copy of a request sent to someone's chat says once it was answered, by them or by anyone else.\n // #2797 — the button a copy of a request sent to a person's chat carries when it is answered in the application only\n // (it asks for values a chat button cannot carry, or more options than a card shows). A chat button holds about 75 characters.\n { ref: 'noticeOpenInApplication', kind: LabelKind.BUTTON, purpose: 'Button on a copy of a request sent to a person outside the application (a chat message) that opens the request in the application, where it is answered' },\n { ref: 'noticeAnswered', kind: LabelKind.MESSAGE, purpose: 'Shown in place of the answer buttons on a copy of a request sent to a person outside the application (a chat message), once the request was answered by anyone, this person included' },\n { ref: 'noticeSuperseded', kind: LabelKind.MESSAGE, purpose: 'Shown when someone else answered or moved the request a moment earlier, so this action did nothing' },\n // #2903 — what the person read is bound to the answer: a request that changed since it was shown is not answered.\n { ref: 'noticePresentationStale', kind: LabelKind.MESSAGE, purpose: 'Shown when the request changed since this person read it, so their answer was not taken: it still waits, now shown as it is, to be answered again' },\n { ref: 'noticeLapsed', kind: LabelKind.MESSAGE, purpose: 'Shown when the request expired before it was answered, so it is closed and the action did not run' },\n { ref: 'noticeRequesterAuthorityLapsed', kind: LabelKind.MESSAGE, purpose: 'Shown when the person the work was for no longer has the access it needs, so it was not run and the request is closed' },\n { ref: 'noticeTargetRefused', kind: LabelKind.MESSAGE, purpose: 'Shown when the person chosen cannot answer this request, so it stays where it was' },\n { ref: 'noticeNoEscalationTarget', kind: LabelKind.MESSAGE, purpose: 'Shown when there is nobody defined to escalate this request to, so it stays where it was; hand it to someone instead' },\n { ref: 'noticeConsentRequired', kind: LabelKind.MESSAGE, purpose: 'Shown when the person the work was for has not agreed to something this work needs; the request is still waiting' },\n { ref: 'noticeCallNotRunAsRead', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when this call would not run as shown, whether edited or as proposed, naming the arguments to look at, so nothing was approved; the request is still pending and those arguments can be corrected, or the request denied', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeArgumentsCannotBeCorrected', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when this call cannot run whatever is entered for the named arguments, so nothing was approved; the only way forward is to deny the request and ask again', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeTheseArguments', kind: LabelKind.MESSAGE, purpose: 'Stands in a decision inbox notice for the names of the arguments, when a refusal names none: a short noun phrase meaning these details' },\n { ref: 'noticeCallCannotRun', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when this call could not run as things stand now, whatever its details, for example because the assistant was switched off or a policy changed, so nothing was approved; the request is still pending, can be denied, and approving it again may work later' },\n { ref: 'noticeCredentialNotAccepted', kind: LabelKind.MESSAGE, purpose: 'Shown in the decision inbox when an edit set or changed a credential such as a password or an API key in this action, naming the arguments, so nothing was approved; leave them as they were, or deny the request', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeModificationRejected', kind: LabelKind.MESSAGE, purpose: 'Shown when edited arguments were refused; the request is still waiting and can be answered as proposed' },\n { ref: 'noticeEditedCallNotReachable', kind: LabelKind.MESSAGE, purpose: 'Shown when the edit points the call at a record the approver may not reach, through the organization relationship they work in; the request is still waiting, and can be approved as proposed or denied, naming the arguments it is about', params: [{ key: 'arguments', meaning: 'comma-separated names of the arguments it is about' }] },\n { ref: 'noticeReasonCodeRejected', kind: LabelKind.MESSAGE, purpose: 'Shown when the reason given is not one the application offers; the request is still waiting and can be answered again' },\n // #1921 — why the approver changed or rejected an assistant's proposed action, chosen from the application's own reasons.\n { ref: 'reasonCode', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder of the optional list of reasons for changing or rejecting the assistant\\'s proposed action, as the application defines them' },\n { ref: 'reasonCodeClear', kind: LabelKind.BUTTON, purpose: 'Button removing the reason chosen, so the answer is given without one' },\n { ref: 'denyConfirm', kind: LabelKind.BUTTON, purpose: 'Button rejecting the proposed action, with the reason chosen if any' },\n { ref: 'riskLow', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares low risk' },\n { ref: 'riskMedium', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares medium risk' },\n { ref: 'riskHigh', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares high risk' },\n { ref: 'riskCritical', kind: LabelKind.MESSAGE, purpose: 'Risk badge on a request whose action its application declares critical risk' },\n { ref: 'commentPlaceholder', kind: LabelKind.PLACEHOLDER, purpose: 'Placeholder for the optional approver comment field' },\n { ref: 'expiresIn', kind: LabelKind.LABEL, purpose: 'Label preceding the time remaining before the request expires' },\n { ref: 'expired', kind: LabelKind.MESSAGE, purpose: 'Marker that the approval request has expired' },\n { ref: 'toolCall', kind: LabelKind.LABEL, purpose: 'Label preceding the name of the tool call awaiting approval' },\n { ref: 'toolArguments', kind: LabelKind.LABEL, purpose: 'Label for the arguments proposed for the tool call awaiting approval' },\n { ref: 'editArguments', kind: LabelKind.BUTTON, purpose: 'Button opening an editor over the proposed tool arguments so the approver can change them before approving' },\n { ref: 'discardArgumentEdits', kind: LabelKind.BUTTON, purpose: 'Button closing the argument editor and returning to the arguments the agent proposed' },\n { ref: 'argumentsNotValidJson', kind: LabelKind.MESSAGE, purpose: 'Shown when the edited tool arguments are not a valid JSON object, so the approval cannot be submitted' },\n { ref: 'editArgumentsAsJson', kind: LabelKind.BUTTON, purpose: 'Button switching the argument editor from one field per argument to the raw JSON text of all arguments' },\n { ref: 'editArgumentsAsFields', kind: LabelKind.BUTTON, purpose: 'Button switching the argument editor from raw JSON back to one field per argument' },\n { ref: 'argumentValueNotValidJson', kind: LabelKind.MESSAGE, purpose: 'Shown under one structured argument (a list or nested value edited as JSON) whose text is not valid JSON, so the approval cannot be submitted' },\n { ref: 'argumentModificationRefused', kind: LabelKind.LABEL, purpose: 'Label preceding the reason the server refused the edited arguments; the approval is still pending and can be corrected' },\n // One label per `FlowsActors_ApprovalModificationRefusalReason` (#1186): the reason shown after `argumentModificationRefused`.\n { ref: 'refusalAgentNotRegistered', kind: LabelKind.MESSAGE, purpose: 'The agent that asked for this approval is no longer available, so this call cannot run, as proposed or edited; the only way forward is to deny it and ask again' },\n { ref: 'refusalToolNotDeclared', kind: LabelKind.MESSAGE, purpose: 'The agent no longer offers this tool, so this call cannot run, as proposed or edited; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalApprovalRouteChanged', kind: LabelKind.MESSAGE, purpose: 'The way this tool is approved changed since this action was paused, so it cannot run; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalAgentNotActive', kind: LabelKind.MESSAGE, purpose: 'The assistant that asked for this approval is no longer active, so this call cannot run; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalAgentSuspended', kind: LabelKind.MESSAGE, purpose: 'An administrator suspended the assistant that asked for this approval, so this call cannot run; deny it, or answer once the assistant is back', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalContentPolicyTightened', kind: LabelKind.MESSAGE, purpose: 'The organization tightened its content policy since this action was paused, so it cannot run; the only way forward is to deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalAgentStandingUnreadable', kind: LabelKind.MESSAGE, purpose: 'The rules this assistant answers to could not be read just now, so this call cannot run yet; try again, or deny it', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalToolNoLongerGated', kind: LabelKind.MESSAGE, purpose: 'This tool no longer needs approval, so this request is out of date; deny it and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }] },\n { ref: 'refusalArgumentsInvalid', kind: LabelKind.MESSAGE, purpose: 'The edited arguments are not valid for this tool; names the arguments to correct, and the approval is still pending', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments that need correcting' }] },\n { ref: 'refusalArgumentsCannotBeCorrected', kind: LabelKind.MESSAGE, purpose: 'This tool cannot run with the named arguments whatever is entered, so correcting them would not help; the only way forward is to deny the request and ask again', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments' }] },\n { ref: 'refusalArgumentsNotRunAsWritten', kind: LabelKind.MESSAGE, purpose: 'The edited arguments are valid, but this tool would drop, change or fill in some of them, so it would not run what the approver wrote, or a value in the call cannot be used; names those arguments, and the approval is still pending', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments the tool would not run as written' }] },\n { ref: 'refusalCredentialNotAccepted', kind: LabelKind.MESSAGE, purpose: 'A credential such as a password or an API key cannot be set or changed in this action here, because it would be stored with this request; leave the named arguments as they were, or deny the request', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments holding a credential' }] },\n { ref: 'refusalSigningKeyNotConfigured', kind: LabelKind.MESSAGE, purpose: 'Edited arguments cannot be applied because the application is not configured to re-sign approvals; approve as proposed or deny' },\n { ref: 'refusalCallNotRewritable', kind: LabelKind.MESSAGE, purpose: 'This pending call could not be updated with the edited arguments; approve it as proposed or deny it' },\n { ref: 'refusalRecordNotReachable', kind: LabelKind.MESSAGE, purpose: 'The edit points this call at a record the approver may not reach, through the organization relationship they work in; names the arguments to put back; the approval is still pending and can be approved as proposed', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'comma-separated names of the arguments that may not be changed' }] },\n { ref: 'refusalDeliverableFileNotEditable', kind: LabelKind.MESSAGE, purpose: 'The edit replaces the file this call is about; the approver approves the file they were shown, so the named argument must be put back; the approval is still pending and can be approved as proposed or denied', params: [{ key: 'toolName', meaning: 'name of the tool the approval is for' }, { key: 'arguments', meaning: 'name of the argument holding the file, which may not be changed' }] },\n { ref: 'refusalReasonUnstated', kind: LabelKind.MESSAGE, purpose: 'The edited arguments were refused without a reason this screen recognises; approve as proposed, correct and retry, or deny' },\n { ref: 'confirmTitle', kind: LabelKind.HEADING, purpose: 'Heading of the dialog confirming an answer that lets a high or critical risk request go ahead: an approval, or one of the request\\'s own options that proceeds' },\n { ref: 'confirmDescription', kind: LabelKind.DESCRIPTION, purpose: 'Body text of that confirmation dialog: answering this way lets the requested action go ahead' },\n { ref: 'confirmCancel', kind: LabelKind.BUTTON, purpose: 'Button to dismiss the confirmation dialog without acting' },\n { ref: 'confirmProceed', kind: LabelKind.BUTTON, purpose: 'Button to confirm and proceed with the approval action' },\n { ref: 'processing', kind: LabelKind.MESSAGE, purpose: 'Shown while the approval decision is being submitted' },\n { ref: 'queueEmpty', kind: LabelKind.EMPTY_STATE, purpose: 'Shown when there are no pending approvals in the queue' },\n { ref: 'queueSortRisk', kind: LabelKind.LABEL, purpose: 'Toggle ordering the inbox by the risk declared for each request\\'s action, highest first; off, requests are ordered by soonest deadline' },\n {\n ref: 'expiresCountdown',\n kind: LabelKind.MESSAGE,\n purpose: 'Live countdown of the time left before the request expires',\n params: [{ key: 'time', meaning: 'formatted time remaining until expiry' }],\n },\n {\n ref: 'timeAgoSeconds',\n kind: LabelKind.MESSAGE,\n purpose: 'Relative timestamp expressed in seconds ago',\n params: [{ key: 'count', meaning: 'number of seconds elapsed', isCount: true }],\n },\n {\n ref: 'timeAgoMinutes',\n kind: LabelKind.MESSAGE,\n purpose: 'Relative timestamp expressed in minutes ago',\n params: [{ key: 'count', meaning: 'number of minutes elapsed', isCount: true }],\n },\n {\n ref: 'timeAgoHours',\n kind: LabelKind.MESSAGE,\n purpose: 'Relative timestamp expressed in hours ago',\n params: [{ key: 'count', meaning: 'number of hours elapsed', isCount: true }],\n },\n];\nregisterComponentLabels(FrontendComponentType.LOW_LEVEL_AI_APPROVAL, LowLevelAiApprovalLabels);\n"]}
|
|
@@ -12,8 +12,19 @@ export declare function relationshipTargetRef(relationship: FlowsActors_Relation
|
|
|
12
12
|
* `undefined`, the target is shown by its id, so a name the host could not give looks missing rather than invented.
|
|
13
13
|
*/
|
|
14
14
|
export type AI_TaskRelationshipNamer = (relationship: FlowsActors_Relationship) => string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* What {@link AI_TaskDetail} reads of a task: every `Actors_Task` field it shows, and nothing it does not, so a host
|
|
17
|
+
* holding a task's PUBLISHED projection (the Agent activity page, #3990) passes what it has rather than inventing the
|
|
18
|
+
* fields a persisted task never stores (its memory, its initiator). A full `Actors_Task` is one.
|
|
19
|
+
*
|
|
20
|
+
* `context` is OPTIONAL: a host that withholds a task's correlation context leaves it out, and the section is not shown,
|
|
21
|
+
* where an empty context shows the section saying it is empty. Withheld and empty are different facts.
|
|
22
|
+
*/
|
|
23
|
+
export type AI_TaskDetailTask = Pick<Actors_Task, "title" | "description" | "topic" | "status" | "actors" | "input" | "output" | "relationships" | "artifacts" | "actorStates" | "startedAt" | "completedAt"> & {
|
|
24
|
+
readonly context?: Actors_Task["context"];
|
|
25
|
+
};
|
|
15
26
|
export type AI_TaskDetailProps = ComponentProps<typeof Card> & {
|
|
16
|
-
task:
|
|
27
|
+
task: AI_TaskDetailTask;
|
|
17
28
|
/** Names each relationship's target; see {@link AI_TaskRelationshipNamer}. */
|
|
18
29
|
nameOf?: AI_TaskRelationshipNamer;
|
|
19
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-detail.d.ts","sourceRoot":"","sources":["../../../../src/components/flows-actors/task-detail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAuD,MAAM,8CAA8C,CAAC;AAkBzH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAQjH;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAAM,CAUpF;AAED;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,YAAY,EAAE,wBAAwB,KAAK,MAAM,GAAG,SAAS,CAAC;AAMtG,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG;IAC7D,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"task-detail.d.ts","sourceRoot":"","sources":["../../../../src/components/flows-actors/task-detail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAuD,MAAM,8CAA8C,CAAC;AAkBzH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAQjH;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,wBAAwB,GAAG,MAA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eAAe,GAAI,iCAI7B,oBAAoB,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IA4C7C,CAAC"}
|
|
@@ -36,14 +36,14 @@ export const AI_TaskDetail = ({ task, nameOf, className, ...props }) => {
|
|
|
36
36
|
/* The topic and each relation in their vocabularies' words (#2531 review M3, #2628), never their codes. */
|
|
37
37
|
const { word: topicWord, isReady: topicWordsReady } = useVocabularyWord(ACTOR_TASK_TOPICS_VOCABULARY);
|
|
38
38
|
const { word: relationWord, isReady: relationWordsReady } = useVocabularyWord(FLOWS_ACTORS_RELATION_VOCABULARY);
|
|
39
|
-
const hasContext = Object.keys(task.context).length > 0;
|
|
39
|
+
const hasContext = task.context !== undefined && Object.keys(task.context).length > 0;
|
|
40
40
|
const hasRelationships = task.relationships.length > 0;
|
|
41
41
|
const hasArtifacts = task.artifacts && task.artifacts.length > 0;
|
|
42
42
|
if (!isReady || !topicWordsReady || !relationWordsReady)
|
|
43
43
|
return null;
|
|
44
44
|
return (
|
|
45
45
|
/* The card wears the task's status on its edge, in the same tone the badge below reads it in (#1318). */
|
|
46
|
-
_jsxs(Card, { statusEdge: flowNodeStatusIndicator(task.status), className: cn("flex flex-col", className), ...props, children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex flex-wrap items-center gap-element", children: [_jsx(Badge, { variant: "outline", className: "text-2xs", children: topicWord(task.topic) }), _jsx(AI_FlowNodeStatusBadge, { status: task.status }), _jsxs("span", { className: "flex items-center gap-1 text-2xs text-muted-foreground", children: [_jsx("span", { children: tComponent(CT, "actor") }), _jsx("span", { className: "font-mono", children: task.actors.actorRef })] })] }), _jsx(CardTitle, { className: "text-sm", children: task.title }), _jsx(CardDescription, { className: "text-xs", children: task.description })] }), _jsxs(CardContent, { className: "flex flex-col gap-card-sm", children: [task.input !== undefined && (_jsx(CollapsibleSection, { label: tComponent(CT, "input"), children: _jsx("pre", { className: "max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs", children: typeof task.input === "string" ? task.input : JSON.stringify(task.input, null, 2) }) })), task.output !== undefined && (_jsx(CollapsibleSection, { label: tComponent(CT, "output"), children: _jsx("pre", { className: "max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs", children: typeof task.output === "string" ? task.output : JSON.stringify(task.output, null, 2) }) })), _jsx(CollapsibleSection, { label: tComponent(CT, "context"), children: hasContext ? (_jsx("pre", { className: "max-h-24 overflow-auto rounded-md bg-muted p-2 text-2xs", children: JSON.stringify(task.context, null, 2) })) : (_jsx("span", { className: "text-2xs text-muted-foreground italic", children: tComponent(CT, "contextEmpty") })) }), hasRelationships && (_jsx(CollapsibleSection, { label: tComponent(CT, "relationships"), children: _jsx("div", { className: "flex flex-col gap-0.5", children: task.relationships.map((rel, i) => (_jsxs("div", { className: "flex items-center gap-element text-2xs", "data-task-relationship": rel.relation, children: [_jsx("span", { className: "shrink-0", children: relationWord(rel.relation) }), _jsx("span", { className: "text-muted-foreground truncate", children: nameOf?.(rel) ?? relationshipTargetRef(rel) })] }, i))) }) })), hasArtifacts && (_jsx(CollapsibleSection, { label: tComponent(CT, "artifacts"), children: _jsx("div", { className: "flex flex-col gap-0.5", children: task.artifacts.map((artifact, i) => (_jsxs("div", { className: "flex items-center gap-element text-2xs", children: [_jsx(Badge, { variant: "outline", className: "text-2xs", children: artifact.type }), _jsx("span", { className: "text-muted-foreground", children: artifact.name })] }, i))) }) })), task.actorStates.length > 0 && (_jsx(AI_TaskTimeline, { events: task.actorStates.flatMap((as) => as.statusChanges.map((sc) => ({
|
|
46
|
+
_jsxs(Card, { statusEdge: flowNodeStatusIndicator(task.status), className: cn("flex flex-col", className), ...props, children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex flex-wrap items-center gap-element", children: [_jsx(Badge, { variant: "outline", className: "text-2xs", children: topicWord(task.topic) }), _jsx(AI_FlowNodeStatusBadge, { status: task.status }), _jsxs("span", { className: "flex items-center gap-1 text-2xs text-muted-foreground", children: [_jsx("span", { children: tComponent(CT, "actor") }), _jsx("span", { className: "font-mono", children: task.actors.actorRef })] })] }), _jsx(CardTitle, { className: "text-sm", children: task.title }), _jsx(CardDescription, { className: "text-xs", children: task.description })] }), _jsxs(CardContent, { className: "flex flex-col gap-card-sm", children: [task.input !== undefined && (_jsx(CollapsibleSection, { label: tComponent(CT, "input"), children: _jsx("pre", { className: "max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs", children: typeof task.input === "string" ? task.input : JSON.stringify(task.input, null, 2) }) })), task.output !== undefined && (_jsx(CollapsibleSection, { label: tComponent(CT, "output"), children: _jsx("pre", { className: "max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs", children: typeof task.output === "string" ? task.output : JSON.stringify(task.output, null, 2) }) })), task.context !== undefined && _jsx(CollapsibleSection, { label: tComponent(CT, "context"), children: hasContext ? (_jsx("pre", { className: "max-h-24 overflow-auto rounded-md bg-muted p-2 text-2xs", children: JSON.stringify(task.context, null, 2) })) : (_jsx("span", { className: "text-2xs text-muted-foreground italic", children: tComponent(CT, "contextEmpty") })) }), hasRelationships && (_jsx(CollapsibleSection, { label: tComponent(CT, "relationships"), children: _jsx("div", { className: "flex flex-col gap-0.5", children: task.relationships.map((rel, i) => (_jsxs("div", { className: "flex items-center gap-element text-2xs", "data-task-relationship": rel.relation, children: [_jsx("span", { className: "shrink-0", children: relationWord(rel.relation) }), _jsx("span", { className: "text-muted-foreground truncate", children: nameOf?.(rel) ?? relationshipTargetRef(rel) })] }, i))) }) })), hasArtifacts && (_jsx(CollapsibleSection, { label: tComponent(CT, "artifacts"), children: _jsx("div", { className: "flex flex-col gap-0.5", children: task.artifacts.map((artifact, i) => (_jsxs("div", { className: "flex items-center gap-element text-2xs", children: [_jsx(Badge, { variant: "outline", className: "text-2xs", children: artifact.type }), _jsx("span", { className: "text-muted-foreground", children: artifact.name })] }, i))) }) })), task.actorStates.length > 0 && (_jsx(AI_TaskTimeline, { events: task.actorStates.flatMap((as) => as.statusChanges.map((sc) => ({
|
|
47
47
|
status: sc.status,
|
|
48
48
|
timestamp: sc.timestamp,
|
|
49
49
|
actorRef: as.actorRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-detail.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/task-detail.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzH,OAAO,EAAE,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAC1H,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,gCAAgC,EAChC,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAmD,MAAM,uBAAuB,CAAC;AAEjH,iEAAiE;AACjE,WAAW;AACX,iEAAiE;AAEjE,MAAM,EAAE,GAAG,qBAAqB,CAAC,wBAAwB,CAAC;AAE1D;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAAsC;IAC1E,QAAQ,YAAY,CAAC,IAAI,EAAE,CAAC;QAC1B,KAAK,uBAAuB,CAAC,IAAI,CAAC,CAAC,OAA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Q,CACzE,EACA,KAAK,IAAI,CACR,gBAAM,SAAS,EAAC,gCAAgC,kBAAG,KAAK,IAAQ,CACjE,IACG,EACN,eAAM,SAAS,EAAC,gCAAgC,EAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,YACvE,kBAAkB,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,GAC3D,KAbA,GAAG,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,EAAE,CAc7C,CACN,CAAC;oBACJ,CAAC,CAAC,GACC,GACM,IACT,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"~wildo-frontend-lib/components/sections/card\";\nimport { Badge } from \"~wildo-frontend-lib/components/data-display/badge\";\nimport { ScrollArea } from \"~wildo-frontend-lib/components/layout/scroll-area\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"~wildo-frontend-lib/components/sections/collapsible\";\nimport { Button, ButtonVariants_Variant } from \"~wildo-frontend-lib/components/actions/button\";\nimport { ButtonSize, FrontendComponentType } from \"@wildo-ai/presets-components-models\";\nimport { useI18n } from \"~wildo-frontend-lib/core/i18n/useI18n\";\nimport { cn } from \"~wildo-frontend-lib/core/ui/cn\";\nimport {\n ACTOR_TASK_TOPICS_VOCABULARY,\n AI_FlowNodeStatusBadge,\n FLOWS_ACTORS_RELATION_VOCABULARY,\n flowNodeStatusIndicator,\n flowsActorsStatusDotClass,\n useFlowsActorsStatusWord,\n useVocabularyWord,\n} from \"./flow-node-badges\";\nimport { FlowsActorsUIUtils } from \"./flows-actors-ui.utils\";\nimport type { ComponentProps } from \"react\";\nimport { FlowsActors_ElementKind, type Actors_Task, type FlowsActors_Relationship } from \"@wildo-ai/saas-models\";\n\n//===============================================================\n// Helpers\n//===============================================================\n\nconst CT = FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL;\n\n/**\n * The element a relationship points at, by its id: what a relationship names when its host cannot name it (#2628). Each\n * kind keeps its target in a field of its own; total over the kinds.\n */\nexport function relationshipTargetRef(relationship: FlowsActors_Relationship): string {\n switch (relationship.kind) {\n case FlowsActors_ElementKind.TASK: return relationship.taskId;\n case FlowsActors_ElementKind.PLAN_STEP: return relationship.planStepId;\n case FlowsActors_ElementKind.PLAN: return relationship.planId;\n case FlowsActors_ElementKind.ACTOR: return relationship.actorId;\n case FlowsActors_ElementKind.ACTOR_SYSTEM: return relationship.actorSystemId;\n case FlowsActors_ElementKind.FLOW: return relationship.flowId;\n case FlowsActors_ElementKind.FLOW_STEP: return relationship.stepId;\n }\n}\n\n/**\n * How a host names a relationship's target (a plan step by its name, a task by its title). Absent, or answering\n * `undefined`, the target is shown by its id, so a name the host could not give looks missing rather than invented.\n */\nexport type AI_TaskRelationshipNamer = (relationship: FlowsActors_Relationship) => string | undefined;\n\n//===============================================================\n// AI_TaskDetail\n//===============================================================\n\nexport type AI_TaskDetailProps = ComponentProps<typeof Card> & {\n task: Actors_Task;\n /** Names each relationship's target; see {@link AI_TaskRelationshipNamer}. */\n nameOf?: AI_TaskRelationshipNamer;\n};\n\nexport const AI_TaskDetail = ({\n task,\n nameOf,\n className,\n ...props\n}: AI_TaskDetailProps): React.JSX.Element | null => {\n const { tComponent, isReady, formatDateTime } = useI18n({ component: CT });\n /* The topic and each relation in their vocabularies' words (#2531 review M3, #2628), never their codes. */\n const { word: topicWord, isReady: topicWordsReady } = useVocabularyWord(ACTOR_TASK_TOPICS_VOCABULARY);\n const { word: relationWord, isReady: relationWordsReady } = useVocabularyWord(FLOWS_ACTORS_RELATION_VOCABULARY);\n\n const hasContext = Object.keys(task.context).length > 0;\n const hasRelationships = task.relationships.length > 0;\n const hasArtifacts = task.artifacts && task.artifacts.length > 0;\n\n if (!isReady || !topicWordsReady || !relationWordsReady) return null;\n\n return (\n /* The card wears the task's status on its edge, in the same tone the badge below reads it in (#1318). */\n <Card statusEdge={flowNodeStatusIndicator(task.status)} className={cn(\"flex flex-col\", className)} {...props}>\n <CardHeader>\n <div className=\"flex flex-wrap items-center gap-element\">\n <Badge variant=\"outline\" className=\"text-2xs\">{topicWord(task.topic)}</Badge>\n <AI_FlowNodeStatusBadge status={task.status} />\n {/* A label and its value side by side: the separator is layout, not punctuation written in code. */}\n <span className=\"flex items-center gap-1 text-2xs text-muted-foreground\">\n <span>{tComponent(CT, \"actor\")}</span>\n <span className=\"font-mono\">{task.actors.actorRef}</span>\n </span>\n </div>\n <CardTitle className=\"text-sm\">{task.title}</CardTitle>\n <CardDescription className=\"text-xs\">{task.description}</CardDescription>\n </CardHeader>\n\n <CardContent className=\"flex flex-col gap-card-sm\">\n {/* Input */}\n {task.input !== undefined && (\n <CollapsibleSection label={tComponent(CT, \"input\")}>\n <pre className=\"max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs\">\n {typeof task.input === \"string\" ? task.input : JSON.stringify(task.input, null, 2)}\n </pre>\n </CollapsibleSection>\n )}\n\n {/* Output */}\n {task.output !== undefined && (\n <CollapsibleSection label={tComponent(CT, \"output\")}>\n <pre className=\"max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs\">\n {typeof task.output === \"string\" ? task.output : JSON.stringify(task.output, null, 2)}\n </pre>\n </CollapsibleSection>\n )}\n\n {/* Context */}\n <CollapsibleSection label={tComponent(CT, \"context\")}>\n {hasContext ? (\n <pre className=\"max-h-24 overflow-auto rounded-md bg-muted p-2 text-2xs\">\n {JSON.stringify(task.context, null, 2)}\n </pre>\n ) : (\n <span className=\"text-2xs text-muted-foreground italic\">\n {tComponent(CT, \"contextEmpty\")}\n </span>\n )}\n </CollapsibleSection>\n\n {/* Relationships */}\n {hasRelationships && (\n <CollapsibleSection label={tComponent(CT, \"relationships\")}>\n <div className=\"flex flex-col gap-0.5\">\n {/*\n * One line per relationship (#2628): the relation in its words, then the target by the name its host\n * gives, or by its id. The kind is not shown on its own: the target names what it is.\n */}\n {task.relationships.map((rel, i) => (\n <div key={i} className=\"flex items-center gap-element text-2xs\" data-task-relationship={rel.relation}>\n <span className=\"shrink-0\">{relationWord(rel.relation)}</span>\n <span className=\"text-muted-foreground truncate\">{nameOf?.(rel) ?? relationshipTargetRef(rel)}</span>\n </div>\n ))}\n </div>\n </CollapsibleSection>\n )}\n\n {/* Artifacts */}\n {hasArtifacts && (\n <CollapsibleSection label={tComponent(CT, \"artifacts\")}>\n <div className=\"flex flex-col gap-0.5\">\n {task.artifacts!.map((artifact, i) => (\n <div key={i} className=\"flex items-center gap-element text-2xs\">\n <Badge variant=\"outline\" className=\"text-2xs\">{artifact.type}</Badge>\n <span className=\"text-muted-foreground\">{artifact.name}</span>\n </div>\n ))}\n </div>\n </CollapsibleSection>\n )}\n\n {/* Actor state timeline */}\n {task.actorStates.length > 0 && (\n <AI_TaskTimeline\n events={task.actorStates.flatMap((as) =>\n as.statusChanges.map((sc) => ({\n status: sc.status,\n timestamp: sc.timestamp,\n actorRef: as.actorRef,\n })),\n )}\n />\n )}\n\n {/* Timestamps */}\n {(task.startedAt || task.completedAt) && (\n <div className=\"flex gap-card text-2xs text-muted-foreground\">\n {task.startedAt && (\n <span className=\"flex gap-1\"><span>{tComponent(CT, \"started\")}</span><span>{FlowsActorsUIUtils.formatTimestamp(task.startedAt, formatDateTime)}</span></span>\n )}\n {task.completedAt && (\n <span className=\"flex gap-1\"><span>{tComponent(CT, \"completed\")}</span><span>{FlowsActorsUIUtils.formatTimestamp(task.completedAt, formatDateTime)}</span></span>\n )}\n {task.startedAt && (\n <span className=\"font-mono\">{FlowsActorsUIUtils.formatDuration(task.startedAt, task.completedAt)}</span>\n )}\n </div>\n )}\n </CardContent>\n </Card>\n );\n};\n\n//===============================================================\n// CollapsibleSection (internal helper)\n//===============================================================\n\nfunction CollapsibleSection({\n label,\n children,\n defaultOpen = false,\n}: {\n label: string;\n children: React.ReactNode;\n defaultOpen?: boolean;\n}): React.JSX.Element {\n return (\n <Collapsible defaultOpen={defaultOpen}>\n <CollapsibleTrigger asChild>\n <Button type=\"button\" variant={ButtonVariants_Variant.GHOST} size={ButtonSize.SM} className=\"h-auto justify-start p-0 text-xs font-medium\">\n {label}\n </Button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"mt-1\">\n {children}\n </CollapsibleContent>\n </Collapsible>\n );\n}\n\n//===============================================================\n// AI_TaskList\n//===============================================================\n\ntype SortField = \"createdAt\" | \"status\";\n\nexport type AI_TaskListProps = ComponentProps<\"div\"> & {\n tasks: Actors_Task[];\n /** Names each task's relationship targets; see {@link AI_TaskRelationshipNamer}. */\n nameOf?: AI_TaskRelationshipNamer;\n};\n\nexport const AI_TaskList = ({\n tasks,\n nameOf,\n className,\n ...props\n}: AI_TaskListProps): React.JSX.Element | null => {\n const { tComponent, isReady } = useI18n({ component: CT });\n /* The filters name each status and topic in its words (#2531 review M3), as the cards below do. */\n const { statusWord, isReady: statusWordsReady } = useFlowsActorsStatusWord();\n const { word: topicWord, isReady: topicWordsReady } = useVocabularyWord(ACTOR_TASK_TOPICS_VOCABULARY);\n const [statusFilter, setStatusFilter] = React.useState<string | null>(null);\n const [topicFilter, setTopicFilter] = React.useState<string | null>(null);\n const [sortField, setSortField] = React.useState<SortField>(\"createdAt\");\n\n const uniqueStatuses = React.useMemo(\n () => [...new Set(tasks.map((t) => t.status))],\n [tasks],\n );\n const uniqueTopics = React.useMemo(\n () => [...new Set(tasks.map((t) => t.topic))],\n [tasks],\n );\n\n const filtered = React.useMemo(() => {\n let result = tasks;\n if (statusFilter) result = result.filter((t) => t.status === statusFilter);\n if (topicFilter) result = result.filter((t) => t.topic === topicFilter);\n\n return [...result].sort((a, b) => {\n if (sortField === \"createdAt\") {\n return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();\n }\n return a.status.localeCompare(b.status);\n });\n }, [tasks, statusFilter, topicFilter, sortField]);\n\n if (!isReady || !statusWordsReady || !topicWordsReady) return null;\n\n return (\n <div className={cn(\"flex flex-col gap-card\", className)} {...props}>\n {/* Filters */}\n <div className=\"flex flex-wrap items-center gap-element\">\n <div className=\"flex items-center gap-1\">\n <span className=\"text-2xs text-muted-foreground\">{tComponent(CT, \"filterByStatus\")}</span>\n <Button\n type=\"button\"\n variant={statusFilter === null ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setStatusFilter(null)}\n >\n {tComponent(CT, \"filterAll\")}\n </Button>\n {uniqueStatuses.map((s) => (\n <Button\n key={s}\n type=\"button\"\n variant={statusFilter === s ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setStatusFilter(s === statusFilter ? null : s)}\n >\n {statusWord(s)}\n </Button>\n ))}\n </div>\n\n <div className=\"flex items-center gap-1\">\n <span className=\"text-2xs text-muted-foreground\">{tComponent(CT, \"filterByTopic\")}</span>\n <Button\n type=\"button\"\n variant={topicFilter === null ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setTopicFilter(null)}\n >\n {tComponent(CT, \"filterAll\")}\n </Button>\n {uniqueTopics.map((t) => (\n <Button\n key={t}\n type=\"button\"\n variant={topicFilter === t ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setTopicFilter(t === topicFilter ? null : t)}\n >\n {topicWord(t)}\n </Button>\n ))}\n </div>\n\n <div className=\"flex items-center gap-1\">\n <span className=\"text-2xs text-muted-foreground\">{tComponent(CT, \"sortBy\")}</span>\n <Button\n type=\"button\"\n variant={sortField === \"createdAt\" ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setSortField(\"createdAt\")}\n >\n {tComponent(CT, \"sortDate\")}\n </Button>\n <Button\n type=\"button\"\n variant={sortField === \"status\" ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setSortField(\"status\")}\n >\n {tComponent(CT, \"sortStatus\")}\n </Button>\n </div>\n </div>\n\n {/* List */}\n <ScrollArea className=\"max-h-[32rem]\">\n <div className=\"flex flex-col gap-card\">\n {filtered.length === 0 && (\n <p className=\"text-sm text-muted-foreground italic\">\n {tComponent(CT, \"noTasks\")}\n </p>\n )}\n {filtered.map((task) => (\n <AI_TaskDetail key={task._id} task={task} {...(nameOf ? { nameOf } : {})} />\n ))}\n </div>\n </ScrollArea>\n </div>\n );\n};\n\n//===============================================================\n// AI_TaskTimeline\n//===============================================================\n\nexport type AI_TaskTimelineEvent = {\n status: string;\n timestamp: string;\n actorRef?: string;\n};\n\nexport type AI_TaskTimelineProps = ComponentProps<\"div\"> & {\n events: AI_TaskTimelineEvent[];\n};\n\nexport const AI_TaskTimeline = ({\n events,\n className,\n ...props\n}: AI_TaskTimelineProps): React.JSX.Element | null => {\n const { tComponent, isReady, formatTime } = useI18n({ component: CT });\n\n const sorted = React.useMemo(\n () => [...events].sort((a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()),\n [events],\n );\n\n if (!isReady) return null;\n\n return (\n <div className={cn(\"flex flex-col gap-1\", className)} {...props}>\n <span className=\"text-xs font-medium\">\n {tComponent(CT, \"timeline\")}\n </span>\n <ScrollArea className=\"max-h-40\">\n <ol className=\"relative border-s border-border ms-3 space-y-1.5\">\n {sorted.map((event, i) => {\n const delta = i > 0\n ? FlowsActorsUIUtils.formatDuration(sorted[i - 1].timestamp, event.timestamp)\n : undefined;\n\n return (\n <li key={`${event.status}-${event.timestamp}-${i}`} className=\"ms-4\">\n <div className={cn(\"absolute -start-1.5 mt-1.5 size-3 rounded-full\", flowsActorsStatusDotClass(event.status))} />\n <div className=\"flex items-center gap-element\">\n <AI_FlowNodeStatusBadge status={event.status} />\n {event.actorRef && (\n <span className=\"text-2xs text-muted-foreground\">{event.actorRef}</span>\n )}\n {delta && (\n <span className=\"text-2xs text-muted-foreground\">+{delta}</span>\n )}\n </div>\n <time className=\"text-2xs text-muted-foreground\" dateTime={event.timestamp}>\n {FlowsActorsUIUtils.formatTimestamp(event.timestamp, formatTime)}\n </time>\n </li>\n );\n })}\n </ol>\n </ScrollArea>\n </div>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"task-detail.js","sourceRoot":"","sources":["../../../../src/components/flows-actors/task-detail.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzH,OAAO,EAAE,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAC1H,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,gCAAgC,EAChC,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAmD,MAAM,uBAAuB,CAAC;AAEjH,iEAAiE;AACjE,WAAW;AACX,iEAAiE;AAEjE,MAAM,EAAE,GA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AAgD,EAAE,yBAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAI,EACjH,eAAK,SAAS,EAAC,+BAA+B,aAC5C,KAAC,sBAAsB,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAI,EAC/C,KAAK,CAAC,QAAQ,IAAI,CACjB,eAAM,SAAS,EAAC,gCAAgC,YAAE,KAAK,CAAC,QAAQ,GAAQ,CACzE,EACA,KAAK,IAAI,CACR,gBAAM,SAAS,EAAC,gCAAgC,kBAAG,KAAK,IAAQ,CACjE,IACG,EACN,eAAM,SAAS,EAAC,gCAAgC,EAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,YACvE,kBAAkB,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,GAC3D,KAbA,GAAG,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,EAAE,CAc7C,CACN,CAAC;oBACJ,CAAC,CAAC,GACC,GACM,IACT,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"~wildo-frontend-lib/components/sections/card\";\nimport { Badge } from \"~wildo-frontend-lib/components/data-display/badge\";\nimport { ScrollArea } from \"~wildo-frontend-lib/components/layout/scroll-area\";\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"~wildo-frontend-lib/components/sections/collapsible\";\nimport { Button, ButtonVariants_Variant } from \"~wildo-frontend-lib/components/actions/button\";\nimport { ButtonSize, FrontendComponentType } from \"@wildo-ai/presets-components-models\";\nimport { useI18n } from \"~wildo-frontend-lib/core/i18n/useI18n\";\nimport { cn } from \"~wildo-frontend-lib/core/ui/cn\";\nimport {\n ACTOR_TASK_TOPICS_VOCABULARY,\n AI_FlowNodeStatusBadge,\n FLOWS_ACTORS_RELATION_VOCABULARY,\n flowNodeStatusIndicator,\n flowsActorsStatusDotClass,\n useFlowsActorsStatusWord,\n useVocabularyWord,\n} from \"./flow-node-badges\";\nimport { FlowsActorsUIUtils } from \"./flows-actors-ui.utils\";\nimport type { ComponentProps } from \"react\";\nimport { FlowsActors_ElementKind, type Actors_Task, type FlowsActors_Relationship } from \"@wildo-ai/saas-models\";\n\n//===============================================================\n// Helpers\n//===============================================================\n\nconst CT = FrontendComponentType.LOW_LEVEL_AI_TASK_DETAIL;\n\n/**\n * The element a relationship points at, by its id: what a relationship names when its host cannot name it (#2628). Each\n * kind keeps its target in a field of its own; total over the kinds.\n */\nexport function relationshipTargetRef(relationship: FlowsActors_Relationship): string {\n switch (relationship.kind) {\n case FlowsActors_ElementKind.TASK: return relationship.taskId;\n case FlowsActors_ElementKind.PLAN_STEP: return relationship.planStepId;\n case FlowsActors_ElementKind.PLAN: return relationship.planId;\n case FlowsActors_ElementKind.ACTOR: return relationship.actorId;\n case FlowsActors_ElementKind.ACTOR_SYSTEM: return relationship.actorSystemId;\n case FlowsActors_ElementKind.FLOW: return relationship.flowId;\n case FlowsActors_ElementKind.FLOW_STEP: return relationship.stepId;\n }\n}\n\n/**\n * How a host names a relationship's target (a plan step by its name, a task by its title). Absent, or answering\n * `undefined`, the target is shown by its id, so a name the host could not give looks missing rather than invented.\n */\nexport type AI_TaskRelationshipNamer = (relationship: FlowsActors_Relationship) => string | undefined;\n\n//===============================================================\n// AI_TaskDetail\n//===============================================================\n\n/**\n * What {@link AI_TaskDetail} reads of a task: every `Actors_Task` field it shows, and nothing it does not, so a host\n * holding a task's PUBLISHED projection (the Agent activity page, #3990) passes what it has rather than inventing the\n * fields a persisted task never stores (its memory, its initiator). A full `Actors_Task` is one.\n *\n * `context` is OPTIONAL: a host that withholds a task's correlation context leaves it out, and the section is not shown,\n * where an empty context shows the section saying it is empty. Withheld and empty are different facts.\n */\nexport type AI_TaskDetailTask = Pick<Actors_Task, \"title\" | \"description\" | \"topic\" | \"status\" | \"actors\" | \"input\" | \"output\" | \"relationships\" | \"artifacts\" | \"actorStates\" | \"startedAt\" | \"completedAt\">\n & { readonly context?: Actors_Task[\"context\"] };\n\nexport type AI_TaskDetailProps = ComponentProps<typeof Card> & {\n task: AI_TaskDetailTask;\n /** Names each relationship's target; see {@link AI_TaskRelationshipNamer}. */\n nameOf?: AI_TaskRelationshipNamer;\n};\n\nexport const AI_TaskDetail = ({\n task,\n nameOf,\n className,\n ...props\n}: AI_TaskDetailProps): React.JSX.Element | null => {\n const { tComponent, isReady, formatDateTime } = useI18n({ component: CT });\n /* The topic and each relation in their vocabularies' words (#2531 review M3, #2628), never their codes. */\n const { word: topicWord, isReady: topicWordsReady } = useVocabularyWord(ACTOR_TASK_TOPICS_VOCABULARY);\n const { word: relationWord, isReady: relationWordsReady } = useVocabularyWord(FLOWS_ACTORS_RELATION_VOCABULARY);\n\n const hasContext = task.context !== undefined && Object.keys(task.context).length > 0;\n const hasRelationships = task.relationships.length > 0;\n const hasArtifacts = task.artifacts && task.artifacts.length > 0;\n\n if (!isReady || !topicWordsReady || !relationWordsReady) return null;\n\n return (\n /* The card wears the task's status on its edge, in the same tone the badge below reads it in (#1318). */\n <Card statusEdge={flowNodeStatusIndicator(task.status)} className={cn(\"flex flex-col\", className)} {...props}>\n <CardHeader>\n <div className=\"flex flex-wrap items-center gap-element\">\n <Badge variant=\"outline\" className=\"text-2xs\">{topicWord(task.topic)}</Badge>\n <AI_FlowNodeStatusBadge status={task.status} />\n {/* A label and its value side by side: the separator is layout, not punctuation written in code. */}\n <span className=\"flex items-center gap-1 text-2xs text-muted-foreground\">\n <span>{tComponent(CT, \"actor\")}</span>\n <span className=\"font-mono\">{task.actors.actorRef}</span>\n </span>\n </div>\n <CardTitle className=\"text-sm\">{task.title}</CardTitle>\n <CardDescription className=\"text-xs\">{task.description}</CardDescription>\n </CardHeader>\n\n <CardContent className=\"flex flex-col gap-card-sm\">\n {/* Input */}\n {task.input !== undefined && (\n <CollapsibleSection label={tComponent(CT, \"input\")}>\n <pre className=\"max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs\">\n {typeof task.input === \"string\" ? task.input : JSON.stringify(task.input, null, 2)}\n </pre>\n </CollapsibleSection>\n )}\n\n {/* Output */}\n {task.output !== undefined && (\n <CollapsibleSection label={tComponent(CT, \"output\")}>\n <pre className=\"max-h-32 overflow-auto rounded-md bg-muted p-2 text-2xs\">\n {typeof task.output === \"string\" ? task.output : JSON.stringify(task.output, null, 2)}\n </pre>\n </CollapsibleSection>\n )}\n\n {/* Context — not shown at all when the host withheld it (see `AI_TaskDetailTask`). */}\n {task.context !== undefined && <CollapsibleSection label={tComponent(CT, \"context\")}>\n {hasContext ? (\n <pre className=\"max-h-24 overflow-auto rounded-md bg-muted p-2 text-2xs\">\n {JSON.stringify(task.context, null, 2)}\n </pre>\n ) : (\n <span className=\"text-2xs text-muted-foreground italic\">\n {tComponent(CT, \"contextEmpty\")}\n </span>\n )}\n </CollapsibleSection>}\n\n {/* Relationships */}\n {hasRelationships && (\n <CollapsibleSection label={tComponent(CT, \"relationships\")}>\n <div className=\"flex flex-col gap-0.5\">\n {/*\n * One line per relationship (#2628): the relation in its words, then the target by the name its host\n * gives, or by its id. The kind is not shown on its own: the target names what it is.\n */}\n {task.relationships.map((rel, i) => (\n <div key={i} className=\"flex items-center gap-element text-2xs\" data-task-relationship={rel.relation}>\n <span className=\"shrink-0\">{relationWord(rel.relation)}</span>\n <span className=\"text-muted-foreground truncate\">{nameOf?.(rel) ?? relationshipTargetRef(rel)}</span>\n </div>\n ))}\n </div>\n </CollapsibleSection>\n )}\n\n {/* Artifacts */}\n {hasArtifacts && (\n <CollapsibleSection label={tComponent(CT, \"artifacts\")}>\n <div className=\"flex flex-col gap-0.5\">\n {task.artifacts!.map((artifact, i) => (\n <div key={i} className=\"flex items-center gap-element text-2xs\">\n <Badge variant=\"outline\" className=\"text-2xs\">{artifact.type}</Badge>\n <span className=\"text-muted-foreground\">{artifact.name}</span>\n </div>\n ))}\n </div>\n </CollapsibleSection>\n )}\n\n {/* Actor state timeline */}\n {task.actorStates.length > 0 && (\n <AI_TaskTimeline\n events={task.actorStates.flatMap((as) =>\n as.statusChanges.map((sc) => ({\n status: sc.status,\n timestamp: sc.timestamp,\n actorRef: as.actorRef,\n })),\n )}\n />\n )}\n\n {/* Timestamps */}\n {(task.startedAt || task.completedAt) && (\n <div className=\"flex gap-card text-2xs text-muted-foreground\">\n {task.startedAt && (\n <span className=\"flex gap-1\"><span>{tComponent(CT, \"started\")}</span><span>{FlowsActorsUIUtils.formatTimestamp(task.startedAt, formatDateTime)}</span></span>\n )}\n {task.completedAt && (\n <span className=\"flex gap-1\"><span>{tComponent(CT, \"completed\")}</span><span>{FlowsActorsUIUtils.formatTimestamp(task.completedAt, formatDateTime)}</span></span>\n )}\n {task.startedAt && (\n <span className=\"font-mono\">{FlowsActorsUIUtils.formatDuration(task.startedAt, task.completedAt)}</span>\n )}\n </div>\n )}\n </CardContent>\n </Card>\n );\n};\n\n//===============================================================\n// CollapsibleSection (internal helper)\n//===============================================================\n\nfunction CollapsibleSection({\n label,\n children,\n defaultOpen = false,\n}: {\n label: string;\n children: React.ReactNode;\n defaultOpen?: boolean;\n}): React.JSX.Element {\n return (\n <Collapsible defaultOpen={defaultOpen}>\n <CollapsibleTrigger asChild>\n <Button type=\"button\" variant={ButtonVariants_Variant.GHOST} size={ButtonSize.SM} className=\"h-auto justify-start p-0 text-xs font-medium\">\n {label}\n </Button>\n </CollapsibleTrigger>\n <CollapsibleContent className=\"mt-1\">\n {children}\n </CollapsibleContent>\n </Collapsible>\n );\n}\n\n//===============================================================\n// AI_TaskList\n//===============================================================\n\ntype SortField = \"createdAt\" | \"status\";\n\nexport type AI_TaskListProps = ComponentProps<\"div\"> & {\n tasks: Actors_Task[];\n /** Names each task's relationship targets; see {@link AI_TaskRelationshipNamer}. */\n nameOf?: AI_TaskRelationshipNamer;\n};\n\nexport const AI_TaskList = ({\n tasks,\n nameOf,\n className,\n ...props\n}: AI_TaskListProps): React.JSX.Element | null => {\n const { tComponent, isReady } = useI18n({ component: CT });\n /* The filters name each status and topic in its words (#2531 review M3), as the cards below do. */\n const { statusWord, isReady: statusWordsReady } = useFlowsActorsStatusWord();\n const { word: topicWord, isReady: topicWordsReady } = useVocabularyWord(ACTOR_TASK_TOPICS_VOCABULARY);\n const [statusFilter, setStatusFilter] = React.useState<string | null>(null);\n const [topicFilter, setTopicFilter] = React.useState<string | null>(null);\n const [sortField, setSortField] = React.useState<SortField>(\"createdAt\");\n\n const uniqueStatuses = React.useMemo(\n () => [...new Set(tasks.map((t) => t.status))],\n [tasks],\n );\n const uniqueTopics = React.useMemo(\n () => [...new Set(tasks.map((t) => t.topic))],\n [tasks],\n );\n\n const filtered = React.useMemo(() => {\n let result = tasks;\n if (statusFilter) result = result.filter((t) => t.status === statusFilter);\n if (topicFilter) result = result.filter((t) => t.topic === topicFilter);\n\n return [...result].sort((a, b) => {\n if (sortField === \"createdAt\") {\n return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();\n }\n return a.status.localeCompare(b.status);\n });\n }, [tasks, statusFilter, topicFilter, sortField]);\n\n if (!isReady || !statusWordsReady || !topicWordsReady) return null;\n\n return (\n <div className={cn(\"flex flex-col gap-card\", className)} {...props}>\n {/* Filters */}\n <div className=\"flex flex-wrap items-center gap-element\">\n <div className=\"flex items-center gap-1\">\n <span className=\"text-2xs text-muted-foreground\">{tComponent(CT, \"filterByStatus\")}</span>\n <Button\n type=\"button\"\n variant={statusFilter === null ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setStatusFilter(null)}\n >\n {tComponent(CT, \"filterAll\")}\n </Button>\n {uniqueStatuses.map((s) => (\n <Button\n key={s}\n type=\"button\"\n variant={statusFilter === s ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setStatusFilter(s === statusFilter ? null : s)}\n >\n {statusWord(s)}\n </Button>\n ))}\n </div>\n\n <div className=\"flex items-center gap-1\">\n <span className=\"text-2xs text-muted-foreground\">{tComponent(CT, \"filterByTopic\")}</span>\n <Button\n type=\"button\"\n variant={topicFilter === null ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setTopicFilter(null)}\n >\n {tComponent(CT, \"filterAll\")}\n </Button>\n {uniqueTopics.map((t) => (\n <Button\n key={t}\n type=\"button\"\n variant={topicFilter === t ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setTopicFilter(t === topicFilter ? null : t)}\n >\n {topicWord(t)}\n </Button>\n ))}\n </div>\n\n <div className=\"flex items-center gap-1\">\n <span className=\"text-2xs text-muted-foreground\">{tComponent(CT, \"sortBy\")}</span>\n <Button\n type=\"button\"\n variant={sortField === \"createdAt\" ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setSortField(\"createdAt\")}\n >\n {tComponent(CT, \"sortDate\")}\n </Button>\n <Button\n type=\"button\"\n variant={sortField === \"status\" ? ButtonVariants_Variant.SECONDARY : ButtonVariants_Variant.GHOST}\n size={ButtonSize.SM}\n className=\"h-6 text-2xs\"\n onClick={() => setSortField(\"status\")}\n >\n {tComponent(CT, \"sortStatus\")}\n </Button>\n </div>\n </div>\n\n {/* List */}\n <ScrollArea className=\"max-h-[32rem]\">\n <div className=\"flex flex-col gap-card\">\n {filtered.length === 0 && (\n <p className=\"text-sm text-muted-foreground italic\">\n {tComponent(CT, \"noTasks\")}\n </p>\n )}\n {filtered.map((task) => (\n <AI_TaskDetail key={task._id} task={task} {...(nameOf ? { nameOf } : {})} />\n ))}\n </div>\n </ScrollArea>\n </div>\n );\n};\n\n//===============================================================\n// AI_TaskTimeline\n//===============================================================\n\nexport type AI_TaskTimelineEvent = {\n status: string;\n timestamp: string;\n actorRef?: string;\n};\n\nexport type AI_TaskTimelineProps = ComponentProps<\"div\"> & {\n events: AI_TaskTimelineEvent[];\n};\n\nexport const AI_TaskTimeline = ({\n events,\n className,\n ...props\n}: AI_TaskTimelineProps): React.JSX.Element | null => {\n const { tComponent, isReady, formatTime } = useI18n({ component: CT });\n\n const sorted = React.useMemo(\n () => [...events].sort((a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()),\n [events],\n );\n\n if (!isReady) return null;\n\n return (\n <div className={cn(\"flex flex-col gap-1\", className)} {...props}>\n <span className=\"text-xs font-medium\">\n {tComponent(CT, \"timeline\")}\n </span>\n <ScrollArea className=\"max-h-40\">\n <ol className=\"relative border-s border-border ms-3 space-y-1.5\">\n {sorted.map((event, i) => {\n const delta = i > 0\n ? FlowsActorsUIUtils.formatDuration(sorted[i - 1].timestamp, event.timestamp)\n : undefined;\n\n return (\n <li key={`${event.status}-${event.timestamp}-${i}`} className=\"ms-4\">\n <div className={cn(\"absolute -start-1.5 mt-1.5 size-3 rounded-full\", flowsActorsStatusDotClass(event.status))} />\n <div className=\"flex items-center gap-element\">\n <AI_FlowNodeStatusBadge status={event.status} />\n {event.actorRef && (\n <span className=\"text-2xs text-muted-foreground\">{event.actorRef}</span>\n )}\n {delta && (\n <span className=\"text-2xs text-muted-foreground\">+{delta}</span>\n )}\n </div>\n <time className=\"text-2xs text-muted-foreground\" dateTime={event.timestamp}>\n {FlowsActorsUIUtils.formatTimestamp(event.timestamp, formatTime)}\n </time>\n </li>\n );\n })}\n </ol>\n </ScrollArea>\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppPage_AgentActivitySettings — the Settings Hub "Agent activity" panel (#3990).
|
|
3
|
+
*
|
|
4
|
+
* What the application's declared FLOWS and ACTOR SYSTEMS did: the runs on the actor plane, newest first, and one run
|
|
5
|
+
* at a time, whole — how it moved, what each of its tasks was asked and produced, and for a flow the steps it went
|
|
6
|
+
* through, each with when it happened. Drawn through the engine's own flows-actors components (`AI_TaskTimeline`,
|
|
7
|
+
* `AI_TaskDetail`, `AI_FlowExecutionSummary`, `AI_FlowExecutionTimeline`), which until now only the application-creation
|
|
8
|
+
* workbench mounted, so an application's administrators had no way to read what its agents and flows did.
|
|
9
|
+
*
|
|
10
|
+
* Two scopes, passed explicitly at each mount (see `SettingsHub`):
|
|
11
|
+
* - ORGANIZATION — the organization the caller is working in, for its administrator;
|
|
12
|
+
* - APPLICATION — every organization, for the application's super-administrator: an application-wide read, so under
|
|
13
|
+
* independent approval it needs an access grant, and the panel names that step when the route asks for it.
|
|
14
|
+
*
|
|
15
|
+
* Every time is shown through `useI18n`'s formatters, so in the reading member's time zone, as record pages show it
|
|
16
|
+
* (#2242). What is NOT here, and why:
|
|
17
|
+
* - conversations (a chat, an A2A client's turn) — the Agent runs page's, under that resource's roles;
|
|
18
|
+
* - a task's MEMORY (`AI_TaskMemory`) — an application's actor runtime records none; the rows keep no memory, so there is
|
|
19
|
+
* nothing true to draw;
|
|
20
|
+
* - a live execution STREAM (`AI_ExecutionStream`) — nothing in an application streams an actor run's progress; this
|
|
21
|
+
* page reads what was recorded, and drawing the history as a stream would claim a liveness it does not have.
|
|
22
|
+
*
|
|
23
|
+
* Under the runs, the AGENT-TO-AGENT TASKS (#4024): the A2A tasks the organization's agents delegated to another
|
|
24
|
+
* party's agent, or received from one (and, on the application-wide page, the application's own machine clients'),
|
|
25
|
+
* newest first, each with its counterpart, direction, state and when it began and ended. A delegated task's state is the
|
|
26
|
+
* one the remote agent last REPORTED, shown with when it reported it: this page calls nobody. What the tasks asked and
|
|
27
|
+
* answered is not shown, nor any credential; a task one person's own credential or client opened is theirs and absent.
|
|
28
|
+
*
|
|
29
|
+
* i18n: the panel's own words are keys in `AppPage_AgentActivitySettings.labels.ts`, one per `AgentActivityRunKind`
|
|
30
|
+
* member and one per `AgentToAgentTaskDirection` member (both held total by its test). A run's status, a task's topic and a question's outcome are vocabularies their fields
|
|
31
|
+
* declare, worded from `system_enums`. Refs and ids are values, shown as they are.
|
|
32
|
+
*/
|
|
33
|
+
import React from 'react';
|
|
34
|
+
import { AgentActivityRunKind, AgentToAgentTaskDirection, type AgentActivityRunDetail, type AgentActivityTask } from '@wildo-ai/saas-models';
|
|
35
|
+
import { type AI_TaskDetailTask, type AI_TaskTimelineEvent } from '../../components/flows-actors/task-detail';
|
|
36
|
+
import { type AI_FlowExecutionTimelineEvent } from '../../components/flows-actors/flow-execution';
|
|
37
|
+
/** Whose runs the panel shows. Passed explicitly at each mount, so the call site says whose activity it is. */
|
|
38
|
+
export declare enum AgentActivityScope {
|
|
39
|
+
/** The current organization's runs, for its administrator. */
|
|
40
|
+
ORGANIZATION = "organization",
|
|
41
|
+
/** Every organization's runs, for the application's super-administrator (an application-wide read). */
|
|
42
|
+
APPLICATION = "application"
|
|
43
|
+
}
|
|
44
|
+
/** The vocabulary a question's outcome is worded in, read off the field the contract declares. */
|
|
45
|
+
export declare const DECISION_OUTCOME_VOCABULARY: string;
|
|
46
|
+
/** The vocabulary a delegated task's reported state is worded in, read off the field the contract declares. */
|
|
47
|
+
export declare const REMOTE_TASK_STATE_VOCABULARY: string;
|
|
48
|
+
/** The label key of a task direction. One key per `AgentToAgentTaskDirection` member. */
|
|
49
|
+
export declare function directionLabelKey(direction: AgentToAgentTaskDirection): string;
|
|
50
|
+
/** The label key of a run kind. One key per `AgentActivityRunKind` member. */
|
|
51
|
+
export declare function runKindLabelKey(kind: AgentActivityRunKind): string;
|
|
52
|
+
/** The run's history as the task timeline reads it: each move and its instant. */
|
|
53
|
+
export declare function runHistoryEvents(run: Pick<AgentActivityRunDetail, 'statusChanges'>): AI_TaskTimelineEvent[];
|
|
54
|
+
/**
|
|
55
|
+
* A flow run's steps as the flow timeline reads them: every node that recorded WHEN it took its status, with the name
|
|
56
|
+
* the flow declares for it. A node recorded before that instant was kept is left out and counted (`untimed`), so the
|
|
57
|
+
* page can say some steps carry no time rather than inventing one.
|
|
58
|
+
*/
|
|
59
|
+
export declare function flowRunTimeline(run: Pick<AgentActivityRunDetail, 'flowRun' | 'flowNodeNames'>): {
|
|
60
|
+
readonly events: AI_FlowExecutionTimelineEvent[];
|
|
61
|
+
readonly untimed: number;
|
|
62
|
+
};
|
|
63
|
+
/** A flow run's step counts, for the summary: only STEP nodes are steps (a trigger and a finish are not work). */
|
|
64
|
+
export declare function flowRunStepCounts(run: Pick<AgentActivityRunDetail, 'flowRun'>): {
|
|
65
|
+
readonly total: number;
|
|
66
|
+
readonly completed: number;
|
|
67
|
+
readonly failed: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* A published task as the task card reads it. Its per-task history is not stored (the run's history is drawn once,
|
|
71
|
+
* above the tasks), it names no relationships, and its correlation context is withheld, so the card shows no context
|
|
72
|
+
* section rather than an empty one.
|
|
73
|
+
*/
|
|
74
|
+
export declare function taskCardOf(task: AgentActivityTask): AI_TaskDetailTask;
|
|
75
|
+
export interface AppPage_AgentActivitySettingsProps {
|
|
76
|
+
readonly scope: AgentActivityScope;
|
|
77
|
+
}
|
|
78
|
+
export declare const AppPage_AgentActivitySettings: React.FC<AppPage_AgentActivitySettingsProps>;
|
|
79
|
+
//# sourceMappingURL=AppPage_AgentActivitySettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppPage_AgentActivitySettings.d.ts","sourceRoot":"","sources":["../../../../src/components/settings/AppPage_AgentActivitySettings.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EACL,oBAAoB,EAGpB,yBAAyB,EAOzB,KAAK,sBAAsB,EAE3B,KAAK,iBAAiB,EAGvB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EAAkC,KAAK,iBAAiB,EAAE,KAAK,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAC5J,OAAO,EAAq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