@stigmer/react 1.0.4 → 2.0.1
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/__tests__/hooks.test.js +17 -0
- package/__tests__/hooks.test.js.map +1 -1
- package/__tests__/runner-adapter.test.d.ts +2 -0
- package/__tests__/runner-adapter.test.d.ts.map +1 -0
- package/__tests__/runner-adapter.test.js +153 -0
- package/__tests__/runner-adapter.test.js.map +1 -0
- package/activity/__tests__/useRecentActivity-optimistic.test.d.ts +2 -0
- package/activity/__tests__/useRecentActivity-optimistic.test.d.ts.map +1 -0
- package/activity/__tests__/useRecentActivity-optimistic.test.js +139 -0
- package/activity/__tests__/useRecentActivity-optimistic.test.js.map +1 -0
- package/activity/__tests__/useRecentActivity.test.d.ts +2 -0
- package/activity/__tests__/useRecentActivity.test.d.ts.map +1 -0
- package/activity/__tests__/useRecentActivity.test.js +107 -0
- package/activity/__tests__/useRecentActivity.test.js.map +1 -0
- package/activity/index.d.ts +1 -1
- package/activity/index.d.ts.map +1 -1
- package/activity/index.js.map +1 -1
- package/activity/types.d.ts +3 -2
- package/activity/types.d.ts.map +1 -1
- package/activity/useRecentActivity.d.ts +26 -14
- package/activity/useRecentActivity.d.ts.map +1 -1
- package/activity/useRecentActivity.js +59 -61
- package/activity/useRecentActivity.js.map +1 -1
- package/agent/AgentDetailView.d.ts.map +1 -1
- package/agent/AgentDetailView.js +3 -2
- package/agent/AgentDetailView.js.map +1 -1
- package/billing/CreditLedgerTable.d.ts.map +1 -1
- package/billing/CreditLedgerTable.js +15 -6
- package/billing/CreditLedgerTable.js.map +1 -1
- package/billing/__tests__/CreditLedgerTable.test.d.ts +2 -0
- package/billing/__tests__/CreditLedgerTable.test.d.ts.map +1 -0
- package/billing/__tests__/CreditLedgerTable.test.js +74 -0
- package/billing/__tests__/CreditLedgerTable.test.js.map +1 -0
- package/billing/useCreditLedger.d.ts +8 -1
- package/billing/useCreditLedger.d.ts.map +1 -1
- package/billing/useCreditLedger.js +6 -3
- package/billing/useCreditLedger.js.map +1 -1
- package/composer/ComposerToolbar.d.ts +8 -1
- package/composer/ComposerToolbar.d.ts.map +1 -1
- package/composer/ComposerToolbar.js +4 -2
- package/composer/ComposerToolbar.js.map +1 -1
- package/composer/ContextChip.d.ts +1 -1
- package/composer/ContextChip.d.ts.map +1 -1
- package/composer/ContextChip.js +0 -1
- package/composer/ContextChip.js.map +1 -1
- package/composer/SessionComposer.d.ts +20 -17
- package/composer/SessionComposer.d.ts.map +1 -1
- package/composer/SessionComposer.js +67 -227
- package/composer/SessionComposer.js.map +1 -1
- package/composer/__tests__/ComposerToolbar-directAction.test.d.ts +2 -0
- package/composer/__tests__/ComposerToolbar-directAction.test.d.ts.map +1 -0
- package/composer/__tests__/ComposerToolbar-directAction.test.js +64 -0
- package/composer/__tests__/ComposerToolbar-directAction.test.js.map +1 -0
- package/composer/__tests__/SessionComposer-contract.test.d.ts +2 -0
- package/composer/__tests__/SessionComposer-contract.test.d.ts.map +1 -0
- package/composer/__tests__/SessionComposer-contract.test.js +87 -0
- package/composer/__tests__/SessionComposer-contract.test.js.map +1 -0
- package/composer/__tests__/SessionComposer-fileref.test.d.ts +2 -0
- package/composer/__tests__/SessionComposer-fileref.test.d.ts.map +1 -0
- package/composer/__tests__/SessionComposer-fileref.test.js +132 -0
- package/composer/__tests__/SessionComposer-fileref.test.js.map +1 -0
- package/composer/__tests__/useComposer.test.d.ts +2 -0
- package/composer/__tests__/useComposer.test.d.ts.map +1 -0
- package/composer/__tests__/useComposer.test.js +139 -0
- package/composer/__tests__/useComposer.test.js.map +1 -0
- package/composer/icons.d.ts +0 -1
- package/composer/icons.d.ts.map +1 -1
- package/composer/icons.js +0 -3
- package/composer/icons.js.map +1 -1
- package/environment/EnvironmentPicker.d.ts +35 -0
- package/environment/EnvironmentPicker.d.ts.map +1 -0
- package/environment/EnvironmentPicker.js +90 -0
- package/environment/EnvironmentPicker.js.map +1 -0
- package/environment/index.d.ts +2 -0
- package/environment/index.d.ts.map +1 -1
- package/environment/index.js +1 -0
- package/environment/index.js.map +1 -1
- package/execution/MessageThread.d.ts +13 -1
- package/execution/MessageThread.d.ts.map +1 -1
- package/execution/MessageThread.js +9 -8
- package/execution/MessageThread.js.map +1 -1
- package/execution/SubAgentSection.d.ts.map +1 -1
- package/execution/SubAgentSection.js +24 -9
- package/execution/SubAgentSection.js.map +1 -1
- package/execution/ThreadSelectionContext.d.ts +17 -0
- package/execution/ThreadSelectionContext.d.ts.map +1 -0
- package/execution/ThreadSelectionContext.js +18 -0
- package/execution/ThreadSelectionContext.js.map +1 -0
- package/execution/ToolCallItem.d.ts.map +1 -1
- package/execution/ToolCallItem.js +12 -3
- package/execution/ToolCallItem.js.map +1 -1
- package/execution/UsageWidget.d.ts.map +1 -1
- package/execution/UsageWidget.js +1 -1
- package/execution/UsageWidget.js.map +1 -1
- package/execution/__tests__/MessageThread.test.d.ts +2 -0
- package/execution/__tests__/MessageThread.test.d.ts.map +1 -0
- package/execution/__tests__/MessageThread.test.js +164 -0
- package/execution/__tests__/MessageThread.test.js.map +1 -0
- package/execution/__tests__/thread-keys.test.js +91 -0
- package/execution/__tests__/thread-keys.test.js.map +1 -1
- package/execution/tool-categories.d.ts +8 -1
- package/execution/tool-categories.d.ts.map +1 -1
- package/execution/tool-categories.js +13 -0
- package/execution/tool-categories.js.map +1 -1
- package/execution/useCreateAgentExecution.d.ts +19 -0
- package/execution/useCreateAgentExecution.d.ts.map +1 -1
- package/execution/useCreateAgentExecution.js +5 -1
- package/execution/useCreateAgentExecution.js.map +1 -1
- package/execution/useThreadSelection.d.ts +35 -0
- package/execution/useThreadSelection.d.ts.map +1 -0
- package/execution/useThreadSelection.js +65 -0
- package/execution/useThreadSelection.js.map +1 -0
- package/execution-target-context.d.ts +24 -0
- package/execution-target-context.d.ts.map +1 -0
- package/execution-target-context.js +27 -0
- package/execution-target-context.js.map +1 -0
- package/file-reference/FileReferenceChipList.d.ts +40 -0
- package/file-reference/FileReferenceChipList.d.ts.map +1 -0
- package/file-reference/FileReferenceChipList.js +52 -0
- package/file-reference/FileReferenceChipList.js.map +1 -0
- package/file-reference/__tests__/FileReferenceChipList.test.d.ts +2 -0
- package/file-reference/__tests__/FileReferenceChipList.test.d.ts.map +1 -0
- package/file-reference/__tests__/FileReferenceChipList.test.js +48 -0
- package/file-reference/__tests__/FileReferenceChipList.test.js.map +1 -0
- package/file-reference/__tests__/useFileReferences.test.d.ts +2 -0
- package/file-reference/__tests__/useFileReferences.test.d.ts.map +1 -0
- package/file-reference/__tests__/useFileReferences.test.js +90 -0
- package/file-reference/__tests__/useFileReferences.test.js.map +1 -0
- package/file-reference/index.d.ts +3 -0
- package/file-reference/index.d.ts.map +1 -0
- package/file-reference/index.js +3 -0
- package/file-reference/index.js.map +1 -0
- package/file-reference/useFileReferences.d.ts +25 -0
- package/file-reference/useFileReferences.d.ts.map +1 -0
- package/file-reference/useFileReferences.js +36 -0
- package/file-reference/useFileReferences.js.map +1 -0
- package/github/__tests__/parseGitUrl.test.d.ts +2 -0
- package/github/__tests__/parseGitUrl.test.d.ts.map +1 -0
- package/github/__tests__/parseGitUrl.test.js +47 -0
- package/github/__tests__/parseGitUrl.test.js.map +1 -0
- package/github/__tests__/useGitHubTreeLister.test.d.ts +2 -0
- package/github/__tests__/useGitHubTreeLister.test.d.ts.map +1 -0
- package/github/__tests__/useGitHubTreeLister.test.js +112 -0
- package/github/__tests__/useGitHubTreeLister.test.js.map +1 -0
- package/github/index.d.ts +2 -0
- package/github/index.d.ts.map +1 -1
- package/github/index.js +2 -0
- package/github/index.js.map +1 -1
- package/github/parseGitUrl.d.ts +22 -0
- package/github/parseGitUrl.d.ts.map +1 -0
- package/github/parseGitUrl.js +18 -0
- package/github/parseGitUrl.js.map +1 -0
- package/github/useGitHubTreeLister.d.ts +23 -0
- package/github/useGitHubTreeLister.d.ts.map +1 -0
- package/github/useGitHubTreeLister.js +63 -0
- package/github/useGitHubTreeLister.js.map +1 -0
- package/iam-policy/PermissionGate.d.ts +51 -0
- package/iam-policy/PermissionGate.d.ts.map +1 -0
- package/iam-policy/PermissionGate.js +39 -0
- package/iam-policy/PermissionGate.js.map +1 -0
- package/iam-policy/SharePanel.d.ts +37 -0
- package/iam-policy/SharePanel.d.ts.map +1 -0
- package/iam-policy/SharePanel.js +59 -0
- package/iam-policy/SharePanel.js.map +1 -0
- package/iam-policy/index.d.ts +4 -0
- package/iam-policy/index.d.ts.map +1 -1
- package/iam-policy/index.js +4 -0
- package/iam-policy/index.js.map +1 -1
- package/iam-policy/useCheckPermission.d.ts +48 -0
- package/iam-policy/useCheckPermission.d.ts.map +1 -0
- package/iam-policy/useCheckPermission.js +101 -0
- package/iam-policy/useCheckPermission.js.map +1 -0
- package/iam-policy/useShareFlow.d.ts +72 -0
- package/iam-policy/useShareFlow.d.ts.map +1 -0
- package/iam-policy/useShareFlow.js +101 -0
- package/iam-policy/useShareFlow.js.map +1 -0
- package/index.d.ts +17 -15
- package/index.d.ts.map +1 -1
- package/index.js +19 -10
- package/index.js.map +1 -1
- package/internal/ResizableSplit.d.ts +61 -0
- package/internal/ResizableSplit.d.ts.map +1 -0
- package/internal/ResizableSplit.js +113 -0
- package/internal/ResizableSplit.js.map +1 -0
- package/internal/VirtualizedThread.d.ts +2 -1
- package/internal/VirtualizedThread.d.ts.map +1 -1
- package/internal/VirtualizedThread.js +2 -2
- package/internal/VirtualizedThread.js.map +1 -1
- package/internal/__tests__/ResizableSplit.test.d.ts +2 -0
- package/internal/__tests__/ResizableSplit.test.d.ts.map +1 -0
- package/internal/__tests__/ResizableSplit.test.js +118 -0
- package/internal/__tests__/ResizableSplit.test.js.map +1 -0
- package/internal/__tests__/useFetch-identity-reset.test.d.ts +2 -0
- package/internal/__tests__/useFetch-identity-reset.test.d.ts.map +1 -0
- package/internal/__tests__/useFetch-identity-reset.test.js +281 -0
- package/internal/__tests__/useFetch-identity-reset.test.js.map +1 -0
- package/internal/file-tree/FileTreeNode.d.ts +42 -0
- package/internal/file-tree/FileTreeNode.d.ts.map +1 -0
- package/internal/file-tree/FileTreeNode.js +40 -0
- package/internal/file-tree/FileTreeNode.js.map +1 -0
- package/internal/file-tree/__tests__/FileTreeNode-drag.test.d.ts +2 -0
- package/internal/file-tree/__tests__/FileTreeNode-drag.test.d.ts.map +1 -0
- package/internal/file-tree/__tests__/FileTreeNode-drag.test.js +55 -0
- package/internal/file-tree/__tests__/FileTreeNode-drag.test.js.map +1 -0
- package/internal/file-tree/__tests__/buildFileTree.test.d.ts +2 -0
- package/internal/file-tree/__tests__/buildFileTree.test.d.ts.map +1 -0
- package/internal/file-tree/__tests__/buildFileTree.test.js +102 -0
- package/internal/file-tree/__tests__/buildFileTree.test.js.map +1 -0
- package/internal/file-tree/__tests__/filterFileTree.test.d.ts +2 -0
- package/internal/file-tree/__tests__/filterFileTree.test.d.ts.map +1 -0
- package/internal/file-tree/__tests__/filterFileTree.test.js +120 -0
- package/internal/file-tree/__tests__/filterFileTree.test.js.map +1 -0
- package/internal/file-tree/filterFileTree.d.ts +17 -0
- package/internal/file-tree/filterFileTree.d.ts.map +1 -0
- package/internal/file-tree/filterFileTree.js +45 -0
- package/internal/file-tree/filterFileTree.js.map +1 -0
- package/internal/file-tree/index.d.ts +6 -0
- package/internal/file-tree/index.d.ts.map +1 -0
- package/internal/file-tree/index.js +4 -0
- package/internal/file-tree/index.js.map +1 -0
- package/internal/file-tree/tree-node.d.ts +21 -0
- package/internal/file-tree/tree-node.d.ts.map +1 -0
- package/internal/file-tree/tree-node.js +40 -0
- package/internal/file-tree/tree-node.js.map +1 -0
- package/internal/store/__tests__/selection-store.test.d.ts +2 -0
- package/internal/store/__tests__/selection-store.test.d.ts.map +1 -0
- package/internal/store/__tests__/selection-store.test.js +93 -0
- package/internal/store/__tests__/selection-store.test.js.map +1 -0
- package/internal/store/__tests__/workflow-execution-event-store.test.d.ts +2 -0
- package/internal/store/__tests__/workflow-execution-event-store.test.d.ts.map +1 -0
- package/internal/store/__tests__/workflow-execution-event-store.test.js +215 -0
- package/internal/store/__tests__/workflow-execution-event-store.test.js.map +1 -0
- package/internal/store/index.d.ts +2 -0
- package/internal/store/index.d.ts.map +1 -1
- package/internal/store/index.js +1 -0
- package/internal/store/index.js.map +1 -1
- package/internal/store/selection-store.d.ts +53 -0
- package/internal/store/selection-store.d.ts.map +1 -0
- package/internal/store/selection-store.js +88 -0
- package/internal/store/selection-store.js.map +1 -0
- package/internal/store/structural-share.d.ts +1 -1
- package/internal/store/structural-share.d.ts.map +1 -1
- package/internal/store/structural-share.js +2 -3
- package/internal/store/structural-share.js.map +1 -1
- package/internal/store/workflow-execution-event-store.d.ts +4 -0
- package/internal/store/workflow-execution-event-store.d.ts.map +1 -1
- package/internal/store/workflow-execution-event-store.js +33 -1
- package/internal/store/workflow-execution-event-store.js.map +1 -1
- package/internal/useFetch.d.ts.map +1 -1
- package/internal/useFetch.js +27 -8
- package/internal/useFetch.js.map +1 -1
- package/internal/validate.d.ts +27 -0
- package/internal/validate.d.ts.map +1 -0
- package/internal/validate.js +49 -0
- package/internal/validate.js.map +1 -0
- package/invitation/InvitationRedemption.d.ts +31 -11
- package/invitation/InvitationRedemption.d.ts.map +1 -1
- package/invitation/InvitationRedemption.js +29 -16
- package/invitation/InvitationRedemption.js.map +1 -1
- package/invitation/__tests__/useCreateInvitation.test.d.ts +2 -0
- package/invitation/__tests__/useCreateInvitation.test.d.ts.map +1 -0
- package/invitation/__tests__/useCreateInvitation.test.js +152 -0
- package/invitation/__tests__/useCreateInvitation.test.js.map +1 -0
- package/library/InstanceVisibilitySelector.d.ts +50 -0
- package/library/InstanceVisibilitySelector.d.ts.map +1 -0
- package/library/InstanceVisibilitySelector.js +160 -0
- package/library/InstanceVisibilitySelector.js.map +1 -0
- package/library/index.d.ts +2 -0
- package/library/index.d.ts.map +1 -1
- package/library/index.js +1 -0
- package/library/index.js.map +1 -1
- package/library/useUpdateVisibility.d.ts +8 -5
- package/library/useUpdateVisibility.d.ts.map +1 -1
- package/library/useUpdateVisibility.js +16 -4
- package/library/useUpdateVisibility.js.map +1 -1
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js +3 -2
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/organization/CreateOrganizationForm.d.ts.map +1 -1
- package/organization/CreateOrganizationForm.js +18 -21
- package/organization/CreateOrganizationForm.js.map +1 -1
- package/package.json +7 -5
- package/provider.d.ts +38 -1
- package/provider.d.ts.map +1 -1
- package/provider.js +4 -2
- package/provider.js.map +1 -1
- package/resource-creation/index.d.ts +2 -0
- package/resource-creation/index.d.ts.map +1 -1
- package/resource-creation/index.js +1 -0
- package/resource-creation/index.js.map +1 -1
- package/resource-creation/templates/index.d.ts +2 -0
- package/resource-creation/templates/index.d.ts.map +1 -1
- package/resource-creation/templates/index.js +1 -0
- package/resource-creation/templates/index.js.map +1 -1
- package/resource-creation/templates/workflow-templates.d.ts +26 -0
- package/resource-creation/templates/workflow-templates.d.ts.map +1 -0
- package/resource-creation/templates/workflow-templates.js +1236 -0
- package/resource-creation/templates/workflow-templates.js.map +1 -0
- package/resource-detail/Section.d.ts +3 -1
- package/resource-detail/Section.d.ts.map +1 -1
- package/resource-detail/Section.js +2 -2
- package/resource-detail/Section.js.map +1 -1
- package/resource-detail/types.d.ts +1 -1
- package/resource-detail/useDeleteResource.d.ts +1 -1
- package/resource-detail/useDeleteResource.d.ts.map +1 -1
- package/resource-detail/useDeleteResource.js +0 -5
- package/resource-detail/useDeleteResource.js.map +1 -1
- package/runner-adapter.d.ts +40 -0
- package/runner-adapter.d.ts.map +1 -0
- package/runner-adapter.js +20 -0
- package/runner-adapter.js.map +1 -0
- package/session/NewSessionViewer.d.ts +91 -0
- package/session/NewSessionViewer.d.ts.map +1 -0
- package/session/NewSessionViewer.js +97 -0
- package/session/NewSessionViewer.js.map +1 -0
- package/session/SessionViewer.d.ts +97 -0
- package/session/SessionViewer.d.ts.map +1 -0
- package/session/SessionViewer.js +156 -0
- package/session/SessionViewer.js.map +1 -0
- package/session/__tests__/execution-target.test.d.ts +2 -0
- package/session/__tests__/execution-target.test.d.ts.map +1 -0
- package/session/__tests__/execution-target.test.js +34 -0
- package/session/__tests__/execution-target.test.js.map +1 -0
- package/session/__tests__/session-spec-converters.test.js +1 -3
- package/session/__tests__/session-spec-converters.test.js.map +1 -1
- package/session/__tests__/useCreateSession.test.js +88 -0
- package/session/__tests__/useCreateSession.test.js.map +1 -1
- package/session/__tests__/useNewSessionFlow.test.js +45 -38
- package/session/__tests__/useNewSessionFlow.test.js.map +1 -1
- package/session/__tests__/useSessionUsage.test.d.ts +2 -0
- package/session/__tests__/useSessionUsage.test.d.ts.map +1 -0
- package/session/__tests__/useSessionUsage.test.js +146 -0
- package/session/__tests__/useSessionUsage.test.js.map +1 -0
- package/session/execution-target.d.ts +20 -0
- package/session/execution-target.d.ts.map +1 -0
- package/session/execution-target.js +26 -0
- package/session/execution-target.js.map +1 -0
- package/session/index.d.ts +9 -0
- package/session/index.d.ts.map +1 -1
- package/session/index.js +7 -0
- package/session/index.js.map +1 -1
- package/session/inspector/ArtifactsTab.d.ts +16 -0
- package/session/inspector/ArtifactsTab.d.ts.map +1 -0
- package/session/inspector/ArtifactsTab.js +28 -0
- package/session/inspector/ArtifactsTab.js.map +1 -0
- package/session/inspector/ChangesTab.d.ts +14 -0
- package/session/inspector/ChangesTab.d.ts.map +1 -0
- package/session/inspector/ChangesTab.js +20 -0
- package/session/inspector/ChangesTab.js.map +1 -0
- package/session/inspector/InspectTab.d.ts +13 -0
- package/session/inspector/InspectTab.d.ts.map +1 -0
- package/session/inspector/InspectTab.js +19 -0
- package/session/inspector/InspectTab.js.map +1 -0
- package/session/inspector/PlanTab.d.ts +15 -0
- package/session/inspector/PlanTab.d.ts.map +1 -0
- package/session/inspector/PlanTab.js +19 -0
- package/session/inspector/PlanTab.js.map +1 -0
- package/session/inspector/SessionInspector.d.ts +59 -0
- package/session/inspector/SessionInspector.d.ts.map +1 -0
- package/session/inspector/SessionInspector.js +53 -0
- package/session/inspector/SessionInspector.js.map +1 -0
- package/session/inspector/SetupTab.d.ts +43 -0
- package/session/inspector/SetupTab.d.ts.map +1 -0
- package/session/inspector/SetupTab.js +76 -0
- package/session/inspector/SetupTab.js.map +1 -0
- package/session/inspector/UsageTab.d.ts +13 -0
- package/session/inspector/UsageTab.d.ts.map +1 -0
- package/session/inspector/UsageTab.js +19 -0
- package/session/inspector/UsageTab.js.map +1 -0
- package/session/inspector/WorkspaceTab.d.ts +35 -0
- package/session/inspector/WorkspaceTab.d.ts.map +1 -0
- package/session/inspector/WorkspaceTab.js +75 -0
- package/session/inspector/WorkspaceTab.js.map +1 -0
- package/session/inspector/__tests__/useSessionInspector.test.d.ts +2 -0
- package/session/inspector/__tests__/useSessionInspector.test.d.ts.map +1 -0
- package/session/inspector/__tests__/useSessionInspector.test.js +195 -0
- package/session/inspector/__tests__/useSessionInspector.test.js.map +1 -0
- package/session/inspector/index.d.ts +19 -0
- package/session/inspector/index.d.ts.map +1 -0
- package/session/inspector/index.js +10 -0
- package/session/inspector/index.js.map +1 -0
- package/session/inspector/useSessionInspector.d.ts +45 -0
- package/session/inspector/useSessionInspector.d.ts.map +1 -0
- package/session/inspector/useSessionInspector.js +115 -0
- package/session/inspector/useSessionInspector.js.map +1 -0
- package/session/useCreateSession.d.ts +13 -8
- package/session/useCreateSession.d.ts.map +1 -1
- package/session/useCreateSession.js +15 -3
- package/session/useCreateSession.js.map +1 -1
- package/session/useNewSessionFlow.d.ts +17 -9
- package/session/useNewSessionFlow.d.ts.map +1 -1
- package/session/useNewSessionFlow.js +8 -37
- package/session/useNewSessionFlow.js.map +1 -1
- package/session/useSessionConversation.d.ts +9 -0
- package/session/useSessionConversation.d.ts.map +1 -1
- package/session/useSessionConversation.js +5 -4
- package/session/useSessionConversation.js.map +1 -1
- package/session/useSessionPageFlow.d.ts +9 -0
- package/session/useSessionPageFlow.d.ts.map +1 -1
- package/session/useSessionPageFlow.js +5 -1
- package/session/useSessionPageFlow.js.map +1 -1
- package/session/useSessionUsage.d.ts +16 -5
- package/session/useSessionUsage.d.ts.map +1 -1
- package/session/useSessionUsage.js +66 -23
- package/session/useSessionUsage.js.map +1 -1
- package/skill/SkillDetailView.d.ts.map +1 -1
- package/skill/SkillDetailView.js +3 -2
- package/skill/SkillDetailView.js.map +1 -1
- package/skill/SkillFileBrowser.js +2 -46
- package/skill/SkillFileBrowser.js.map +1 -1
- package/src/__tests__/hooks.test.tsx +28 -0
- package/src/__tests__/runner-adapter.test.tsx +203 -0
- package/src/activity/__tests__/useRecentActivity-optimistic.test.tsx +175 -0
- package/src/activity/__tests__/useRecentActivity.test.ts +133 -0
- package/src/activity/index.ts +1 -0
- package/src/activity/types.ts +3 -2
- package/src/activity/useRecentActivity.ts +86 -92
- package/src/agent/AgentDetailView.tsx +18 -9
- package/src/billing/CreditLedgerTable.tsx +14 -16
- package/src/billing/__tests__/CreditLedgerTable.test.tsx +100 -0
- package/src/billing/useCreditLedger.ts +17 -4
- package/src/composer/ComposerToolbar.tsx +38 -8
- package/src/composer/ContextChip.tsx +1 -2
- package/src/composer/SessionComposer.tsx +105 -440
- package/src/composer/__tests__/ComposerToolbar-directAction.test.tsx +89 -0
- package/src/composer/__tests__/SessionComposer-contract.test.tsx +126 -0
- package/src/composer/__tests__/SessionComposer-fileref.test.tsx +190 -0
- package/src/composer/__tests__/useComposer.test.ts +192 -0
- package/src/composer/icons.tsx +0 -27
- package/src/environment/EnvironmentPicker.tsx +308 -0
- package/src/environment/index.ts +2 -0
- package/src/execution/MessageThread.tsx +24 -4
- package/src/execution/SubAgentSection.tsx +46 -7
- package/src/execution/ThreadSelectionContext.tsx +20 -0
- package/src/execution/ToolCallItem.tsx +40 -2
- package/src/execution/UsageWidget.tsx +9 -2
- package/src/execution/__tests__/MessageThread.test.tsx +271 -0
- package/src/execution/__tests__/thread-keys.test.ts +104 -0
- package/src/execution/tool-categories.ts +16 -0
- package/src/execution/useCreateAgentExecution.ts +24 -1
- package/src/execution/useThreadSelection.ts +95 -0
- package/src/execution-target-context.ts +32 -0
- package/src/file-reference/FileReferenceChipList.tsx +148 -0
- package/src/file-reference/__tests__/FileReferenceChipList.test.tsx +94 -0
- package/src/file-reference/__tests__/useFileReferences.test.ts +121 -0
- package/src/file-reference/index.ts +2 -0
- package/src/file-reference/useFileReferences.ts +55 -0
- package/src/github/__tests__/parseGitUrl.test.ts +54 -0
- package/src/github/__tests__/useGitHubTreeLister.test.ts +164 -0
- package/src/github/index.ts +3 -0
- package/src/github/parseGitUrl.ts +28 -0
- package/src/github/useGitHubTreeLister.ts +92 -0
- package/src/iam-policy/PermissionGate.ts +69 -0
- package/src/iam-policy/SharePanel.tsx +245 -0
- package/src/iam-policy/index.ts +16 -0
- package/src/iam-policy/useCheckPermission.ts +133 -0
- package/src/iam-policy/useShareFlow.ts +182 -0
- package/src/index.ts +121 -49
- package/src/internal/ResizableSplit.tsx +221 -0
- package/src/internal/VirtualizedThread.tsx +3 -1
- package/src/internal/__tests__/ResizableSplit.test.tsx +156 -0
- package/src/internal/__tests__/useFetch-identity-reset.test.ts +387 -0
- package/src/internal/file-tree/FileTreeNode.tsx +123 -0
- package/src/internal/file-tree/__tests__/FileTreeNode-drag.test.tsx +81 -0
- package/src/internal/file-tree/__tests__/buildFileTree.test.ts +117 -0
- package/src/internal/file-tree/__tests__/filterFileTree.test.ts +141 -0
- package/src/internal/file-tree/filterFileTree.ts +54 -0
- package/src/internal/file-tree/index.ts +5 -0
- package/src/internal/file-tree/tree-node.ts +51 -0
- package/src/internal/store/__tests__/selection-store.test.ts +115 -0
- package/src/internal/store/__tests__/workflow-execution-event-store.test.ts +280 -0
- package/src/internal/store/index.ts +3 -0
- package/src/internal/store/selection-store.ts +112 -0
- package/src/internal/store/structural-share.ts +2 -3
- package/src/internal/store/workflow-execution-event-store.ts +38 -1
- package/src/internal/useFetch.ts +28 -8
- package/src/internal/validate.ts +65 -0
- package/src/invitation/InvitationRedemption.tsx +72 -45
- package/src/invitation/__tests__/useCreateInvitation.test.tsx +189 -0
- package/src/library/InstanceVisibilitySelector.tsx +323 -0
- package/src/library/index.ts +3 -0
- package/src/library/useUpdateVisibility.ts +23 -5
- package/src/mcp-server/McpServerDetailView.tsx +18 -9
- package/src/organization/CreateOrganizationForm.tsx +36 -27
- package/src/provider.tsx +59 -14
- package/src/resource-creation/index.ts +2 -0
- package/src/resource-creation/templates/index.ts +2 -0
- package/src/resource-creation/templates/workflow-templates.ts +1263 -0
- package/src/resource-detail/Section.tsx +21 -13
- package/src/resource-detail/types.ts +1 -1
- package/src/resource-detail/useDeleteResource.ts +1 -6
- package/src/runner-adapter.ts +47 -0
- package/src/session/NewSessionViewer.tsx +287 -0
- package/src/session/SessionViewer.tsx +506 -0
- package/src/session/__tests__/execution-target.test.ts +45 -0
- package/src/session/__tests__/session-spec-converters.test.ts +1 -3
- package/src/session/__tests__/useCreateSession.test.tsx +123 -0
- package/src/session/__tests__/useNewSessionFlow.test.tsx +61 -50
- package/src/session/__tests__/useSessionUsage.test.ts +180 -0
- package/src/session/execution-target.ts +39 -0
- package/src/session/index.ts +30 -0
- package/src/session/inspector/ArtifactsTab.tsx +77 -0
- package/src/session/inspector/ChangesTab.tsx +42 -0
- package/src/session/inspector/InspectTab.tsx +57 -0
- package/src/session/inspector/PlanTab.tsx +31 -0
- package/src/session/inspector/SessionInspector.tsx +153 -0
- package/src/session/inspector/SetupTab.tsx +342 -0
- package/src/session/inspector/UsageTab.tsx +32 -0
- package/src/session/inspector/WorkspaceTab.tsx +245 -0
- package/src/session/inspector/__tests__/useSessionInspector.test.ts +266 -0
- package/src/session/inspector/index.ts +36 -0
- package/src/session/inspector/useSessionInspector.ts +171 -0
- package/src/session/useCreateSession.ts +30 -11
- package/src/session/useNewSessionFlow.ts +23 -42
- package/src/session/useSessionConversation.ts +14 -4
- package/src/session/useSessionPageFlow.ts +16 -1
- package/src/session/useSessionUsage.ts +93 -30
- package/src/skill/SkillDetailView.tsx +18 -9
- package/src/skill/SkillFileBrowser.tsx +2 -113
- package/src/styles.css +31 -0
- package/src/tabs/Tabs.tsx +2 -1
- package/src/workflow/CanvasActionsContext.ts +14 -0
- package/src/workflow/CanvasContextMenu.tsx +274 -25
- package/src/workflow/CanvasTransitionEdge.tsx +149 -31
- package/src/workflow/ExecutionActiveTaskIndicator.tsx +158 -0
- package/src/workflow/ExecutionSummaryWidget.tsx +2 -6
- package/src/workflow/TaskPickerPopover.tsx +89 -77
- package/src/workflow/ViewYamlDialog.tsx +149 -0
- package/src/workflow/WorkflowArchitectDialog.tsx +25 -5
- package/src/workflow/WorkflowCanvasEditor.tsx +187 -2
- package/src/workflow/WorkflowCanvasInner.tsx +5 -4
- package/src/workflow/WorkflowCodePreviewGraph.tsx +130 -0
- package/src/workflow/WorkflowDetailView.tsx +537 -198
- package/src/workflow/WorkflowDiffGraph.tsx +172 -0
- package/src/workflow/WorkflowEditorView.tsx +123 -4
- package/src/workflow/WorkflowExecutionArtifactPanel.tsx +1 -6
- package/src/workflow/WorkflowExecutionCostPanel.tsx +3 -14
- package/src/workflow/WorkflowExecutionGraph.tsx +414 -0
- package/src/workflow/WorkflowExecutionHeader.tsx +19 -17
- package/src/workflow/WorkflowExecutionTaskPanel.tsx +1 -7
- package/src/workflow/WorkflowExecutionTimeline.tsx +24 -3
- package/src/workflow/WorkflowExecutionTimelineEvent.tsx +43 -46
- package/src/workflow/WorkflowExecutionViewer.tsx +394 -50
- package/src/workflow/WorkflowExplainDialog.tsx +228 -0
- package/src/workflow/WorkflowGraphFullscreenDialog.tsx +125 -0
- package/src/workflow/WorkflowGraphModeContext.tsx +46 -0
- package/src/workflow/WorkflowInspectorPanel.tsx +106 -497
- package/src/workflow/WorkflowNode.tsx +151 -0
- package/src/workflow/WorkflowNodePopover.tsx +168 -0
- package/src/workflow/WorkflowOverviewGraph.tsx +267 -0
- package/src/workflow/WorkflowOverviewSummary.tsx +119 -0
- package/src/workflow/WorkflowRefinePanel.tsx +42 -5
- package/src/workflow/WorkflowRepairCard.tsx +27 -5
- package/src/workflow/WorkflowRunDialog.tsx +10 -0
- package/src/workflow/WorkflowRunForm.tsx +106 -35
- package/src/workflow/WorkflowTaskApprovalCard.tsx +337 -0
- package/src/workflow/WorkflowTaskApprovalSummary.tsx +289 -0
- package/src/workflow/WorkflowVersionBadge.tsx +87 -0
- package/src/workflow/WorkflowVersionDiffViewer.tsx +211 -0
- package/src/workflow/WorkflowVersionTimeline.tsx +298 -0
- package/src/workflow/WorkflowVersionsTab.tsx +92 -0
- package/src/workflow/__tests__/ExecutionInspector.test.tsx +127 -0
- package/src/workflow/__tests__/WorkflowArchitectDialog.test.tsx +158 -0
- package/src/workflow/__tests__/WorkflowRefinePanel.test.tsx +176 -0
- package/src/workflow/__tests__/WorkflowRepairCard.test.tsx +199 -0
- package/src/workflow/__tests__/WorkflowTaskApprovalCard.test.tsx +281 -0
- package/src/workflow/__tests__/WorkflowTaskApprovalSummary.test.tsx +148 -0
- package/src/workflow/__tests__/agent-call-live-experience.test.ts +441 -0
- package/src/workflow/__tests__/branch-commands.test.ts +206 -0
- package/src/workflow/__tests__/caption-dimensions.test.ts +105 -0
- package/src/workflow/__tests__/clipboard.test.ts +213 -0
- package/src/workflow/__tests__/cncf-yaml-to-graph.test.ts +524 -0
- package/src/workflow/__tests__/context-menu-logic.test.ts +109 -0
- package/src/workflow/__tests__/derive-execution-overlays.test.ts +413 -0
- package/src/workflow/__tests__/derive-task-detail.test.ts +1187 -0
- package/src/workflow/__tests__/derive-waterfall-entries.test.ts +521 -0
- package/src/workflow/__tests__/execution-graph.test.ts +308 -0
- package/src/workflow/__tests__/execution-inspector.test.tsx +332 -0
- package/src/workflow/__tests__/extract-workflow-yaml.test.ts +152 -0
- package/src/workflow/__tests__/format-utils.test.ts +159 -0
- package/src/workflow/__tests__/inspector-commands.test.ts +128 -0
- package/src/workflow/__tests__/inspector-forms.test.tsx +131 -0
- package/src/workflow/__tests__/inspector-tabs.test.ts +116 -0
- package/src/workflow/__tests__/kind-metadata.test.ts +98 -0
- package/src/workflow/__tests__/motion-preference.test.ts +47 -0
- package/src/workflow/__tests__/node-popover.test.ts +145 -0
- package/src/workflow/__tests__/node-shell.test.ts +259 -0
- package/src/workflow/__tests__/overview-graph.test.ts +93 -0
- package/src/workflow/__tests__/overview-summary.test.ts +83 -0
- package/src/workflow/__tests__/shortcut-registry.test.ts +136 -0
- package/src/workflow/__tests__/structured-data-viewer.test.tsx +624 -0
- package/src/workflow/__tests__/t09-branch-management.test.ts +541 -0
- package/src/workflow/__tests__/task-type-visual-registry.test.ts +121 -0
- package/src/workflow/__tests__/useActiveTaskName.test.ts +91 -0
- package/src/workflow/__tests__/useDiagnoseExecutionFlow.test.tsx +499 -0
- package/src/workflow/__tests__/useExecutionAnnouncements.test.ts +122 -0
- package/src/workflow/__tests__/useFollowExecution.test.ts +192 -0
- package/src/workflow/__tests__/useRefineWorkflowFlow.test.tsx +478 -0
- package/src/workflow/__tests__/useRunWorkflowFlow.test.tsx +483 -0
- package/src/workflow/__tests__/useWorkflowArchitectFlow.test.tsx +505 -0
- package/src/workflow/__tests__/useWorkflowExecution.test.tsx +329 -0
- package/src/workflow/__tests__/useWorkflowExecutionActions.test.tsx +280 -0
- package/src/workflow/__tests__/useWorkflowExecutionEventStream.test.tsx +419 -0
- package/src/workflow/__tests__/workflow-instance-hooks.test.tsx +202 -0
- package/src/workflow/__tests__/workflow-summary-panel.test.tsx +95 -0
- package/src/workflow/__tests__/workflow-uses-trigger-input.test.ts +164 -0
- package/src/workflow/__tests__/workflow-yaml-diff.test.ts +129 -0
- package/src/workflow/architect-response-schema.ts +69 -0
- package/src/workflow/canvas-constants.ts +18 -0
- package/src/workflow/clipboard.ts +189 -0
- package/src/workflow/cncf-yaml-to-graph.ts +430 -0
- package/src/workflow/diff/DiffSummaryBar.tsx +64 -0
- package/src/workflow/diff/__tests__/build-diff-graph.test.ts +174 -0
- package/src/workflow/diff/__tests__/graph-diff.test.ts +329 -0
- package/src/workflow/diff/build-diff-graph.ts +83 -0
- package/src/workflow/diff/graph-diff.ts +213 -0
- package/src/workflow/diff/index.ts +11 -0
- package/src/workflow/diff/types.ts +36 -0
- package/src/workflow/execution/derive-execution-overlays.ts +255 -0
- package/src/workflow/execution/derive-waterfall-entries.ts +377 -0
- package/src/workflow/execution/index.ts +21 -0
- package/src/workflow/execution/useWaterfallEntries.ts +124 -0
- package/src/workflow/execution-comparison/ComparisonSummaryCards.tsx +127 -0
- package/src/workflow/execution-comparison/ExecutionComparisonPicker.tsx +240 -0
- package/src/workflow/execution-comparison/ExecutionComparisonView.tsx +154 -0
- package/src/workflow/execution-comparison/TaskComparisonTable.tsx +272 -0
- package/src/workflow/execution-comparison/__tests__/derive-execution-comparison.test.ts +308 -0
- package/src/workflow/execution-comparison/derive-execution-comparison.ts +146 -0
- package/src/workflow/execution-comparison/index.ts +23 -0
- package/src/workflow/execution-comparison/types.ts +57 -0
- package/src/workflow/execution-comparison/useExecutionComparison.ts +87 -0
- package/src/workflow/execution-history/ExecutionFilterBar.tsx +298 -0
- package/src/workflow/execution-history/ExecutionHistoryTable.tsx +454 -0
- package/src/workflow/execution-history/FailureAnalysisPanel.tsx +216 -0
- package/src/workflow/execution-history/HealthMetricsStrip.tsx +161 -0
- package/src/workflow/execution-history/WorkflowExecutionHistory.tsx +118 -0
- package/src/workflow/execution-history/__tests__/derive-execution-row.test.ts +338 -0
- package/src/workflow/execution-history/__tests__/derive-failure-analysis.test.ts +163 -0
- package/src/workflow/execution-history/derive-execution-row.ts +231 -0
- package/src/workflow/execution-history/derive-failure-analysis.ts +111 -0
- package/src/workflow/execution-history/index.ts +47 -0
- package/src/workflow/execution-history/useExecutionHistoryData.ts +103 -0
- package/src/workflow/execution-inspector/AgentCallTab.tsx +169 -0
- package/src/workflow/execution-inspector/ErrorTab.tsx +110 -0
- package/src/workflow/execution-inspector/EventLogTab.tsx +79 -0
- package/src/workflow/execution-inspector/ExecutionInspector.tsx +312 -0
- package/src/workflow/execution-inspector/InputOutputTab.tsx +325 -0
- package/src/workflow/execution-inspector/RetriesTab.tsx +68 -0
- package/src/workflow/execution-inspector/StructuredDataViewer.tsx +532 -0
- package/src/workflow/execution-inspector/SummaryTab.tsx +62 -0
- package/src/workflow/execution-inspector/derive-task-detail.ts +552 -0
- package/src/workflow/execution-inspector/index.ts +14 -0
- package/src/workflow/execution-inspector/useExecutionTaskDetail.ts +55 -0
- package/src/workflow/format-utils.ts +123 -0
- package/src/workflow/graph-commands.ts +1127 -0
- package/src/workflow/index.ts +419 -3
- package/src/workflow/inspector/EdgeInspector.tsx +73 -0
- package/src/workflow/inspector/ExecutionInspectorAdapter.tsx +40 -0
- package/src/workflow/inspector/InspectorHeader.tsx +265 -0
- package/src/workflow/inspector/InspectorShell.tsx +248 -0
- package/src/workflow/inspector/NestedTaskList.tsx +137 -0
- package/src/workflow/inspector/SentinelInspector.tsx +35 -0
- package/src/workflow/inspector/WorkflowSummaryPanel.tsx +264 -0
- package/src/workflow/inspector/forms/AgentCallForm.tsx +367 -0
- package/src/workflow/inspector/forms/HttpCallForm.tsx +252 -0
- package/src/workflow/inspector/index.ts +63 -0
- package/src/workflow/inspector/tabs/AdvancedTab.tsx +95 -0
- package/src/workflow/inspector/tabs/BranchesTab.tsx +389 -0
- package/src/workflow/inspector/tabs/CatchTab.tsx +190 -0
- package/src/workflow/inspector/tabs/ConfigureTab.tsx +116 -0
- package/src/workflow/inspector/tabs/DataTab.tsx +59 -0
- package/src/workflow/inspector/tabs/DocsTab.tsx +75 -0
- package/src/workflow/inspector/tabs/IterationTab.tsx +240 -0
- package/src/workflow/inspector/tabs/RuntimeTab.tsx +283 -0
- package/src/workflow/inspector/task-to-yaml.ts +70 -0
- package/src/workflow/inspector/types.ts +83 -0
- package/src/workflow/inspector/useInspectorTabs.ts +119 -0
- package/src/workflow/inspector/useNestedTaskEditor.ts +108 -0
- package/src/workflow/instance/CreateWorkflowInstanceDialog.tsx +258 -0
- package/src/workflow/instance/WorkflowInstanceDetailPanel.tsx +358 -0
- package/src/workflow/instance/WorkflowInstanceEmptyState.tsx +85 -0
- package/src/workflow/instance/WorkflowInstanceList.tsx +307 -0
- package/src/workflow/instance/index.ts +8 -0
- package/src/workflow/instance/useCreateWorkflowInstance.ts +68 -0
- package/src/workflow/instance/useDeleteWorkflowInstance.ts +70 -0
- package/src/workflow/instance/useUpdateWorkflowInstance.ts +66 -0
- package/src/workflow/instance/useWorkflowInstance.ts +50 -0
- package/src/workflow/internal/workflowToInput.ts +96 -0
- package/src/workflow/kind-metadata.ts +108 -0
- package/src/workflow/layout/__tests__/dagre-layout-engine.test.ts +127 -0
- package/src/workflow/layout/__tests__/layout-postprocessor.test.ts +148 -0
- package/src/workflow/layout/__tests__/port-assignment.test.ts +239 -0
- package/src/workflow/layout/__tests__/registry-dimensions.test.ts +137 -0
- package/src/workflow/layout/__tests__/useElkLayoutEngine.test.ts +152 -0
- package/src/workflow/layout/__tests__/workflow-preprocessor.test.ts +167 -0
- package/src/workflow/layout/apply-dagre-layout.ts +54 -0
- package/src/workflow/layout/dagre-layout-engine.ts +93 -0
- package/src/workflow/layout/elk-layout-engine.ts +125 -0
- package/src/workflow/layout/elkjs.d.ts +35 -0
- package/src/workflow/layout/index.ts +55 -0
- package/src/workflow/layout/layout-postprocessor.ts +197 -0
- package/src/workflow/layout/port-assignment.ts +171 -0
- package/src/workflow/layout/registry-dimensions.ts +30 -0
- package/src/workflow/layout/types.ts +200 -0
- package/src/workflow/layout/use-workflow-layout.ts +163 -0
- package/src/workflow/layout/useElkLayoutEngine.ts +112 -0
- package/src/workflow/layout/workflow-preprocessor.ts +226 -0
- package/src/workflow/motion-preference.ts +49 -0
- package/src/workflow/node-shell/BranchBadge.tsx +125 -0
- package/src/workflow/node-shell/DiffBadge.tsx +72 -0
- package/src/workflow/node-shell/ExecutionBadge.tsx +170 -0
- package/src/workflow/node-shell/NodeActions.tsx +314 -0
- package/src/workflow/node-shell/NodeContent.tsx +93 -0
- package/src/workflow/node-shell/NodeHandles.tsx +213 -0
- package/src/workflow/node-shell/NodeShell.tsx +266 -0
- package/src/workflow/node-shell/index.ts +17 -0
- package/src/workflow/node-shell/shape-paths.ts +140 -0
- package/src/workflow/picker/BranchAddPopover.tsx +239 -0
- package/src/workflow/picker/__tests__/compatibility.test.ts +107 -0
- package/src/workflow/picker/__tests__/insertion-context.test.ts +87 -0
- package/src/workflow/picker/__tests__/recents.test.ts +96 -0
- package/src/workflow/picker/__tests__/suggestions.test.ts +132 -0
- package/src/workflow/picker/compatibility.ts +107 -0
- package/src/workflow/picker/index.ts +14 -0
- package/src/workflow/picker/insertion-context.ts +80 -0
- package/src/workflow/picker/recents.ts +89 -0
- package/src/workflow/picker/suggestions.ts +217 -0
- package/src/workflow/picker/usePickerData.ts +171 -0
- package/src/workflow/shortcut-registry.ts +140 -0
- package/src/workflow/task-type-visual-registry.ts +222 -0
- package/src/workflow/templates/WorkflowTemplateCard.tsx +176 -0
- package/src/workflow/templates/WorkflowTemplateGallery.tsx +221 -0
- package/src/workflow/templates/WorkflowTemplatePreview.tsx +320 -0
- package/src/workflow/templates/__tests__/derive-template-metadata.test.ts +328 -0
- package/src/workflow/templates/__tests__/workflow-template-gallery.test.ts +147 -0
- package/src/workflow/templates/derive-template-metadata.ts +150 -0
- package/src/workflow/templates/index.ts +20 -0
- package/src/workflow/templates/types.ts +86 -0
- package/src/workflow/topologyFromTasks.ts +134 -0
- package/src/workflow/useActiveTaskName.ts +80 -0
- package/src/workflow/useCanvasKeyboardShortcuts.ts +39 -0
- package/src/workflow/useDiagnoseExecutionFlow.ts +28 -5
- package/src/workflow/useExecutionAnnouncements.ts +62 -0
- package/src/workflow/useExplainWorkflowFlow.ts +182 -0
- package/src/workflow/useFollowExecution.ts +240 -0
- package/src/workflow/useInstanceEnvKeys.ts +94 -0
- package/src/workflow/useRefineWorkflowFlow.ts +28 -5
- package/src/workflow/useRunWorkflowFlow.ts +69 -5
- package/src/workflow/useUpdateWorkflow.ts +55 -0
- package/src/workflow/useWorkflowArchitectFlow.ts +33 -9
- package/src/workflow/useWorkflowCanvas.ts +399 -83
- package/src/workflow/useWorkflowDashboardSummary.ts +20 -5
- package/src/workflow/useWorkflowDiffGraph.ts +161 -0
- package/src/workflow/useWorkflowEditor.ts +14 -3
- package/src/workflow/useWorkflowExecution.ts +35 -0
- package/src/workflow/useWorkflowExecutionActions.ts +87 -13
- package/src/workflow/useWorkflowExecutionEventStream.ts +74 -0
- package/src/workflow/useWorkflowExecutionGraph.ts +411 -0
- package/src/workflow/useWorkflowExecutionList.ts +43 -11
- package/src/workflow/useWorkflowOverviewGraph.ts +93 -0
- package/src/workflow/useWorkflowSave.ts +11 -2
- package/src/workflow/useWorkflowTopology.ts +1 -15
- package/src/workflow/useWorkflowVersion.ts +120 -0
- package/src/workflow/useWorkflowVersionDiff.ts +120 -0
- package/src/workflow/useWorkflowVersions.ts +162 -0
- package/src/workflow/waterfall/WaterfallBar.tsx +167 -0
- package/src/workflow/waterfall/WaterfallRow.tsx +112 -0
- package/src/workflow/waterfall/WaterfallScale.tsx +52 -0
- package/src/workflow/waterfall/WaterfallTimeline.tsx +137 -0
- package/src/workflow/waterfall/WaterfallTooltip.tsx +74 -0
- package/src/workflow/waterfall/index.ts +5 -0
- package/src/workflow/workflow-graph-conversions.ts +54 -22
- package/src/workflow/workflow-uses-trigger-input.ts +58 -0
- package/src/workspace/WorkspaceEditor.tsx +30 -75
- package/src/workspace/WorkspaceEntryFiles.tsx +196 -0
- package/src/workspace/WorkspaceFileLister.ts +34 -0
- package/src/workspace/__tests__/WorkspaceEditor-initialPanel.test.tsx +165 -0
- package/src/workspace/__tests__/useWorkspaceFiles.test.ts +186 -0
- package/src/workspace/__tests__/useWorkspaceSources.test.tsx +146 -0
- package/src/workspace/index.ts +16 -0
- package/src/workspace/useRecentWorkspaces.ts +33 -33
- package/src/workspace/useWorkspaceEntries.ts +13 -8
- package/src/workspace/useWorkspaceFiles.ts +136 -0
- package/src/workspace/useWorkspaceSources.ts +83 -0
- package/styles.css +1 -1
- package/tabs/Tabs.d.ts.map +1 -1
- package/tabs/Tabs.js +2 -2
- package/tabs/Tabs.js.map +1 -1
- package/workflow/CanvasActionsContext.d.ts +23 -0
- package/workflow/CanvasActionsContext.d.ts.map +1 -1
- package/workflow/CanvasActionsContext.js.map +1 -1
- package/workflow/CanvasContextMenu.d.ts +27 -0
- package/workflow/CanvasContextMenu.d.ts.map +1 -1
- package/workflow/CanvasContextMenu.js +36 -17
- package/workflow/CanvasContextMenu.js.map +1 -1
- package/workflow/CanvasTransitionEdge.d.ts +7 -4
- package/workflow/CanvasTransitionEdge.d.ts.map +1 -1
- package/workflow/CanvasTransitionEdge.js +89 -9
- package/workflow/CanvasTransitionEdge.js.map +1 -1
- package/workflow/ExecutionActiveTaskIndicator.d.ts +32 -0
- package/workflow/ExecutionActiveTaskIndicator.d.ts.map +1 -0
- package/workflow/ExecutionActiveTaskIndicator.js +62 -0
- package/workflow/ExecutionActiveTaskIndicator.js.map +1 -0
- package/workflow/ExecutionSummaryWidget.d.ts.map +1 -1
- package/workflow/ExecutionSummaryWidget.js +2 -8
- package/workflow/ExecutionSummaryWidget.js.map +1 -1
- package/workflow/TaskPickerPopover.d.ts +6 -0
- package/workflow/TaskPickerPopover.d.ts.map +1 -1
- package/workflow/TaskPickerPopover.js +36 -35
- package/workflow/TaskPickerPopover.js.map +1 -1
- package/workflow/ViewYamlDialog.d.ts +23 -0
- package/workflow/ViewYamlDialog.d.ts.map +1 -0
- package/workflow/ViewYamlDialog.js +75 -0
- package/workflow/ViewYamlDialog.js.map +1 -0
- package/workflow/WorkflowArchitectDialog.d.ts.map +1 -1
- package/workflow/WorkflowArchitectDialog.js +4 -2
- package/workflow/WorkflowArchitectDialog.js.map +1 -1
- package/workflow/WorkflowCanvasEditor.d.ts +7 -0
- package/workflow/WorkflowCanvasEditor.d.ts.map +1 -1
- package/workflow/WorkflowCanvasEditor.js +125 -4
- package/workflow/WorkflowCanvasEditor.js.map +1 -1
- package/workflow/WorkflowCanvasInner.d.ts +2 -2
- package/workflow/WorkflowCanvasInner.d.ts.map +1 -1
- package/workflow/WorkflowCanvasInner.js +4 -5
- package/workflow/WorkflowCanvasInner.js.map +1 -1
- package/workflow/WorkflowCodePreviewGraph.d.ts +16 -0
- package/workflow/WorkflowCodePreviewGraph.d.ts.map +1 -0
- package/workflow/WorkflowCodePreviewGraph.js +64 -0
- package/workflow/WorkflowCodePreviewGraph.js.map +1 -0
- package/workflow/WorkflowDetailView.d.ts +60 -3
- package/workflow/WorkflowDetailView.d.ts.map +1 -1
- package/workflow/WorkflowDetailView.js +140 -71
- package/workflow/WorkflowDetailView.js.map +1 -1
- package/workflow/WorkflowDiffGraph.d.ts +26 -0
- package/workflow/WorkflowDiffGraph.d.ts.map +1 -0
- package/workflow/WorkflowDiffGraph.js +74 -0
- package/workflow/WorkflowDiffGraph.js.map +1 -0
- package/workflow/WorkflowEditorView.d.ts +7 -0
- package/workflow/WorkflowEditorView.d.ts.map +1 -1
- package/workflow/WorkflowEditorView.js +29 -4
- package/workflow/WorkflowEditorView.js.map +1 -1
- package/workflow/WorkflowExecutionArtifactPanel.d.ts.map +1 -1
- package/workflow/WorkflowExecutionArtifactPanel.js +1 -8
- package/workflow/WorkflowExecutionArtifactPanel.js.map +1 -1
- package/workflow/WorkflowExecutionCostPanel.d.ts.map +1 -1
- package/workflow/WorkflowExecutionCostPanel.js +2 -15
- package/workflow/WorkflowExecutionCostPanel.js.map +1 -1
- package/workflow/WorkflowExecutionGraph.d.ts +73 -0
- package/workflow/WorkflowExecutionGraph.d.ts.map +1 -0
- package/workflow/WorkflowExecutionGraph.js +187 -0
- package/workflow/WorkflowExecutionGraph.js.map +1 -0
- package/workflow/WorkflowExecutionHeader.d.ts +2 -9
- package/workflow/WorkflowExecutionHeader.d.ts.map +1 -1
- package/workflow/WorkflowExecutionHeader.js +9 -22
- package/workflow/WorkflowExecutionHeader.js.map +1 -1
- package/workflow/WorkflowExecutionTaskPanel.d.ts.map +1 -1
- package/workflow/WorkflowExecutionTaskPanel.js +1 -9
- package/workflow/WorkflowExecutionTaskPanel.js.map +1 -1
- package/workflow/WorkflowExecutionTimeline.d.ts +7 -1
- package/workflow/WorkflowExecutionTimeline.d.ts.map +1 -1
- package/workflow/WorkflowExecutionTimeline.js +4 -3
- package/workflow/WorkflowExecutionTimeline.js.map +1 -1
- package/workflow/WorkflowExecutionTimelineEvent.d.ts +4 -0
- package/workflow/WorkflowExecutionTimelineEvent.d.ts.map +1 -1
- package/workflow/WorkflowExecutionTimelineEvent.js +18 -53
- package/workflow/WorkflowExecutionTimelineEvent.js.map +1 -1
- package/workflow/WorkflowExecutionViewer.d.ts +7 -0
- package/workflow/WorkflowExecutionViewer.d.ts.map +1 -1
- package/workflow/WorkflowExecutionViewer.js +121 -7
- package/workflow/WorkflowExecutionViewer.js.map +1 -1
- package/workflow/WorkflowExplainDialog.d.ts +24 -0
- package/workflow/WorkflowExplainDialog.d.ts.map +1 -0
- package/workflow/WorkflowExplainDialog.js +62 -0
- package/workflow/WorkflowExplainDialog.js.map +1 -0
- package/workflow/WorkflowGraphFullscreenDialog.d.ts +29 -0
- package/workflow/WorkflowGraphFullscreenDialog.d.ts.map +1 -0
- package/workflow/WorkflowGraphFullscreenDialog.js +41 -0
- package/workflow/WorkflowGraphFullscreenDialog.js.map +1 -0
- package/workflow/WorkflowGraphModeContext.d.ts +35 -0
- package/workflow/WorkflowGraphModeContext.d.ts.map +1 -0
- package/workflow/WorkflowGraphModeContext.js +25 -0
- package/workflow/WorkflowGraphModeContext.js.map +1 -0
- package/workflow/WorkflowInspectorPanel.d.ts +44 -6
- package/workflow/WorkflowInspectorPanel.d.ts.map +1 -1
- package/workflow/WorkflowInspectorPanel.js +55 -143
- package/workflow/WorkflowInspectorPanel.js.map +1 -1
- package/workflow/WorkflowNode.d.ts +20 -0
- package/workflow/WorkflowNode.d.ts.map +1 -0
- package/workflow/WorkflowNode.js +67 -0
- package/workflow/WorkflowNode.js.map +1 -0
- package/workflow/WorkflowNodePopover.d.ts +28 -0
- package/workflow/WorkflowNodePopover.d.ts.map +1 -0
- package/workflow/WorkflowNodePopover.js +90 -0
- package/workflow/WorkflowNodePopover.js.map +1 -0
- package/workflow/WorkflowOverviewGraph.d.ts +41 -0
- package/workflow/WorkflowOverviewGraph.d.ts.map +1 -0
- package/workflow/WorkflowOverviewGraph.js +123 -0
- package/workflow/WorkflowOverviewGraph.js.map +1 -0
- package/workflow/WorkflowOverviewSummary.d.ts +20 -0
- package/workflow/WorkflowOverviewSummary.d.ts.map +1 -0
- package/workflow/WorkflowOverviewSummary.js +54 -0
- package/workflow/WorkflowOverviewSummary.js.map +1 -0
- package/workflow/WorkflowRefinePanel.d.ts +6 -1
- package/workflow/WorkflowRefinePanel.d.ts.map +1 -1
- package/workflow/WorkflowRefinePanel.js +12 -2
- package/workflow/WorkflowRefinePanel.js.map +1 -1
- package/workflow/WorkflowRepairCard.d.ts.map +1 -1
- package/workflow/WorkflowRepairCard.js +3 -1
- package/workflow/WorkflowRepairCard.js.map +1 -1
- package/workflow/WorkflowRunDialog.d.ts +6 -1
- package/workflow/WorkflowRunDialog.d.ts.map +1 -1
- package/workflow/WorkflowRunDialog.js +2 -2
- package/workflow/WorkflowRunDialog.js.map +1 -1
- package/workflow/WorkflowRunForm.d.ts +28 -4
- package/workflow/WorkflowRunForm.d.ts.map +1 -1
- package/workflow/WorkflowRunForm.js +32 -10
- package/workflow/WorkflowRunForm.js.map +1 -1
- package/workflow/WorkflowTaskApprovalCard.d.ts +70 -0
- package/workflow/WorkflowTaskApprovalCard.d.ts.map +1 -0
- package/workflow/WorkflowTaskApprovalCard.js +105 -0
- package/workflow/WorkflowTaskApprovalCard.js.map +1 -0
- package/workflow/WorkflowTaskApprovalSummary.d.ts +54 -0
- package/workflow/WorkflowTaskApprovalSummary.d.ts.map +1 -0
- package/workflow/WorkflowTaskApprovalSummary.js +110 -0
- package/workflow/WorkflowTaskApprovalSummary.js.map +1 -0
- package/workflow/WorkflowVersionBadge.d.ts +32 -0
- package/workflow/WorkflowVersionBadge.d.ts.map +1 -0
- package/workflow/WorkflowVersionBadge.js +39 -0
- package/workflow/WorkflowVersionBadge.js.map +1 -0
- package/workflow/WorkflowVersionDiffViewer.d.ts +32 -0
- package/workflow/WorkflowVersionDiffViewer.d.ts.map +1 -0
- package/workflow/WorkflowVersionDiffViewer.js +73 -0
- package/workflow/WorkflowVersionDiffViewer.js.map +1 -0
- package/workflow/WorkflowVersionTimeline.d.ts +39 -0
- package/workflow/WorkflowVersionTimeline.d.ts.map +1 -0
- package/workflow/WorkflowVersionTimeline.js +103 -0
- package/workflow/WorkflowVersionTimeline.js.map +1 -0
- package/workflow/WorkflowVersionsTab.d.ts +25 -0
- package/workflow/WorkflowVersionsTab.d.ts.map +1 -0
- package/workflow/WorkflowVersionsTab.js +33 -0
- package/workflow/WorkflowVersionsTab.js.map +1 -0
- package/workflow/__tests__/ExecutionInspector.test.d.ts +2 -0
- package/workflow/__tests__/ExecutionInspector.test.d.ts.map +1 -0
- package/workflow/__tests__/ExecutionInspector.test.js +91 -0
- package/workflow/__tests__/ExecutionInspector.test.js.map +1 -0
- package/workflow/__tests__/WorkflowArchitectDialog.test.d.ts +2 -0
- package/workflow/__tests__/WorkflowArchitectDialog.test.d.ts.map +1 -0
- package/workflow/__tests__/WorkflowArchitectDialog.test.js +126 -0
- package/workflow/__tests__/WorkflowArchitectDialog.test.js.map +1 -0
- package/workflow/__tests__/WorkflowRefinePanel.test.d.ts +2 -0
- package/workflow/__tests__/WorkflowRefinePanel.test.d.ts.map +1 -0
- package/workflow/__tests__/WorkflowRefinePanel.test.js +138 -0
- package/workflow/__tests__/WorkflowRefinePanel.test.js.map +1 -0
- package/workflow/__tests__/WorkflowRepairCard.test.d.ts +2 -0
- package/workflow/__tests__/WorkflowRepairCard.test.d.ts.map +1 -0
- package/workflow/__tests__/WorkflowRepairCard.test.js +158 -0
- package/workflow/__tests__/WorkflowRepairCard.test.js.map +1 -0
- package/workflow/__tests__/WorkflowTaskApprovalCard.test.d.ts +2 -0
- package/workflow/__tests__/WorkflowTaskApprovalCard.test.d.ts.map +1 -0
- package/workflow/__tests__/WorkflowTaskApprovalCard.test.js +221 -0
- package/workflow/__tests__/WorkflowTaskApprovalCard.test.js.map +1 -0
- package/workflow/__tests__/WorkflowTaskApprovalSummary.test.d.ts +2 -0
- package/workflow/__tests__/WorkflowTaskApprovalSummary.test.d.ts.map +1 -0
- package/workflow/__tests__/WorkflowTaskApprovalSummary.test.js +94 -0
- package/workflow/__tests__/WorkflowTaskApprovalSummary.test.js.map +1 -0
- package/workflow/__tests__/agent-call-live-experience.test.d.ts +11 -0
- package/workflow/__tests__/agent-call-live-experience.test.d.ts.map +1 -0
- package/workflow/__tests__/agent-call-live-experience.test.js +379 -0
- package/workflow/__tests__/agent-call-live-experience.test.js.map +1 -0
- package/workflow/__tests__/branch-commands.test.d.ts +2 -0
- package/workflow/__tests__/branch-commands.test.d.ts.map +1 -0
- package/workflow/__tests__/branch-commands.test.js +165 -0
- package/workflow/__tests__/branch-commands.test.js.map +1 -0
- package/workflow/__tests__/caption-dimensions.test.d.ts +2 -0
- package/workflow/__tests__/caption-dimensions.test.d.ts.map +1 -0
- package/workflow/__tests__/caption-dimensions.test.js +89 -0
- package/workflow/__tests__/caption-dimensions.test.js.map +1 -0
- package/workflow/__tests__/clipboard.test.d.ts +2 -0
- package/workflow/__tests__/clipboard.test.d.ts.map +1 -0
- package/workflow/__tests__/clipboard.test.js +172 -0
- package/workflow/__tests__/clipboard.test.js.map +1 -0
- package/workflow/__tests__/cncf-yaml-to-graph.test.d.ts +2 -0
- package/workflow/__tests__/cncf-yaml-to-graph.test.d.ts.map +1 -0
- package/workflow/__tests__/cncf-yaml-to-graph.test.js +479 -0
- package/workflow/__tests__/cncf-yaml-to-graph.test.js.map +1 -0
- package/workflow/__tests__/context-menu-logic.test.d.ts +2 -0
- package/workflow/__tests__/context-menu-logic.test.d.ts.map +1 -0
- package/workflow/__tests__/context-menu-logic.test.js +97 -0
- package/workflow/__tests__/context-menu-logic.test.js.map +1 -0
- package/workflow/__tests__/derive-execution-overlays.test.d.ts +2 -0
- package/workflow/__tests__/derive-execution-overlays.test.d.ts.map +1 -0
- package/workflow/__tests__/derive-execution-overlays.test.js +338 -0
- package/workflow/__tests__/derive-execution-overlays.test.js.map +1 -0
- package/workflow/__tests__/derive-task-detail.test.d.ts +2 -0
- package/workflow/__tests__/derive-task-detail.test.d.ts.map +1 -0
- package/workflow/__tests__/derive-task-detail.test.js +1035 -0
- package/workflow/__tests__/derive-task-detail.test.js.map +1 -0
- package/workflow/__tests__/derive-waterfall-entries.test.d.ts +2 -0
- package/workflow/__tests__/derive-waterfall-entries.test.d.ts.map +1 -0
- package/workflow/__tests__/derive-waterfall-entries.test.js +419 -0
- package/workflow/__tests__/derive-waterfall-entries.test.js.map +1 -0
- package/workflow/__tests__/execution-graph.test.d.ts +2 -0
- package/workflow/__tests__/execution-graph.test.d.ts.map +1 -0
- package/workflow/__tests__/execution-graph.test.js +251 -0
- package/workflow/__tests__/execution-graph.test.js.map +1 -0
- package/workflow/__tests__/execution-inspector.test.d.ts +2 -0
- package/workflow/__tests__/execution-inspector.test.d.ts.map +1 -0
- package/workflow/__tests__/execution-inspector.test.js +248 -0
- package/workflow/__tests__/execution-inspector.test.js.map +1 -0
- package/workflow/__tests__/extract-workflow-yaml.test.d.ts +2 -0
- package/workflow/__tests__/extract-workflow-yaml.test.d.ts.map +1 -0
- package/workflow/__tests__/extract-workflow-yaml.test.js +135 -0
- package/workflow/__tests__/extract-workflow-yaml.test.js.map +1 -0
- package/workflow/__tests__/format-utils.test.d.ts +2 -0
- package/workflow/__tests__/format-utils.test.d.ts.map +1 -0
- package/workflow/__tests__/format-utils.test.js +128 -0
- package/workflow/__tests__/format-utils.test.js.map +1 -0
- package/workflow/__tests__/inspector-commands.test.d.ts +2 -0
- package/workflow/__tests__/inspector-commands.test.d.ts.map +1 -0
- package/workflow/__tests__/inspector-commands.test.js +110 -0
- package/workflow/__tests__/inspector-commands.test.js.map +1 -0
- package/workflow/__tests__/inspector-forms.test.d.ts +2 -0
- package/workflow/__tests__/inspector-forms.test.d.ts.map +1 -0
- package/workflow/__tests__/inspector-forms.test.js +114 -0
- package/workflow/__tests__/inspector-forms.test.js.map +1 -0
- package/workflow/__tests__/inspector-tabs.test.d.ts +2 -0
- package/workflow/__tests__/inspector-tabs.test.d.ts.map +1 -0
- package/workflow/__tests__/inspector-tabs.test.js +81 -0
- package/workflow/__tests__/inspector-tabs.test.js.map +1 -0
- package/workflow/__tests__/kind-metadata.test.d.ts +2 -0
- package/workflow/__tests__/kind-metadata.test.d.ts.map +1 -0
- package/workflow/__tests__/kind-metadata.test.js +80 -0
- package/workflow/__tests__/kind-metadata.test.js.map +1 -0
- package/workflow/__tests__/motion-preference.test.d.ts +2 -0
- package/workflow/__tests__/motion-preference.test.d.ts.map +1 -0
- package/workflow/__tests__/motion-preference.test.js +42 -0
- package/workflow/__tests__/motion-preference.test.js.map +1 -0
- package/workflow/__tests__/node-popover.test.d.ts +2 -0
- package/workflow/__tests__/node-popover.test.d.ts.map +1 -0
- package/workflow/__tests__/node-popover.test.js +130 -0
- package/workflow/__tests__/node-popover.test.js.map +1 -0
- package/workflow/__tests__/node-shell.test.d.ts +2 -0
- package/workflow/__tests__/node-shell.test.d.ts.map +1 -0
- package/workflow/__tests__/node-shell.test.js +210 -0
- package/workflow/__tests__/node-shell.test.js.map +1 -0
- package/workflow/__tests__/overview-graph.test.d.ts +2 -0
- package/workflow/__tests__/overview-graph.test.d.ts.map +1 -0
- package/workflow/__tests__/overview-graph.test.js +83 -0
- package/workflow/__tests__/overview-graph.test.js.map +1 -0
- package/workflow/__tests__/overview-summary.test.d.ts +2 -0
- package/workflow/__tests__/overview-summary.test.d.ts.map +1 -0
- package/workflow/__tests__/overview-summary.test.js +73 -0
- package/workflow/__tests__/overview-summary.test.js.map +1 -0
- package/workflow/__tests__/shortcut-registry.test.d.ts +2 -0
- package/workflow/__tests__/shortcut-registry.test.d.ts.map +1 -0
- package/workflow/__tests__/shortcut-registry.test.js +111 -0
- package/workflow/__tests__/shortcut-registry.test.js.map +1 -0
- package/workflow/__tests__/structured-data-viewer.test.d.ts +2 -0
- package/workflow/__tests__/structured-data-viewer.test.d.ts.map +1 -0
- package/workflow/__tests__/structured-data-viewer.test.js +438 -0
- package/workflow/__tests__/structured-data-viewer.test.js.map +1 -0
- package/workflow/__tests__/t09-branch-management.test.d.ts +2 -0
- package/workflow/__tests__/t09-branch-management.test.d.ts.map +1 -0
- package/workflow/__tests__/t09-branch-management.test.js +433 -0
- package/workflow/__tests__/t09-branch-management.test.js.map +1 -0
- package/workflow/__tests__/task-type-visual-registry.test.d.ts +2 -0
- package/workflow/__tests__/task-type-visual-registry.test.d.ts.map +1 -0
- package/workflow/__tests__/task-type-visual-registry.test.js +99 -0
- package/workflow/__tests__/task-type-visual-registry.test.js.map +1 -0
- package/workflow/__tests__/useActiveTaskName.test.d.ts +2 -0
- package/workflow/__tests__/useActiveTaskName.test.d.ts.map +1 -0
- package/workflow/__tests__/useActiveTaskName.test.js +80 -0
- package/workflow/__tests__/useActiveTaskName.test.js.map +1 -0
- package/workflow/__tests__/useDiagnoseExecutionFlow.test.d.ts +2 -0
- package/workflow/__tests__/useDiagnoseExecutionFlow.test.d.ts.map +1 -0
- package/workflow/__tests__/useDiagnoseExecutionFlow.test.js +363 -0
- package/workflow/__tests__/useDiagnoseExecutionFlow.test.js.map +1 -0
- package/workflow/__tests__/useExecutionAnnouncements.test.d.ts +2 -0
- package/workflow/__tests__/useExecutionAnnouncements.test.d.ts.map +1 -0
- package/workflow/__tests__/useExecutionAnnouncements.test.js +85 -0
- package/workflow/__tests__/useExecutionAnnouncements.test.js.map +1 -0
- package/workflow/__tests__/useFollowExecution.test.d.ts +2 -0
- package/workflow/__tests__/useFollowExecution.test.d.ts.map +1 -0
- package/workflow/__tests__/useFollowExecution.test.js +130 -0
- package/workflow/__tests__/useFollowExecution.test.js.map +1 -0
- package/workflow/__tests__/useRefineWorkflowFlow.test.d.ts +2 -0
- package/workflow/__tests__/useRefineWorkflowFlow.test.d.ts.map +1 -0
- package/workflow/__tests__/useRefineWorkflowFlow.test.js +367 -0
- package/workflow/__tests__/useRefineWorkflowFlow.test.js.map +1 -0
- package/workflow/__tests__/useRunWorkflowFlow.test.d.ts +2 -0
- package/workflow/__tests__/useRunWorkflowFlow.test.d.ts.map +1 -0
- package/workflow/__tests__/useRunWorkflowFlow.test.js +385 -0
- package/workflow/__tests__/useRunWorkflowFlow.test.js.map +1 -0
- package/workflow/__tests__/useWorkflowArchitectFlow.test.d.ts +2 -0
- package/workflow/__tests__/useWorkflowArchitectFlow.test.d.ts.map +1 -0
- package/workflow/__tests__/useWorkflowArchitectFlow.test.js +376 -0
- package/workflow/__tests__/useWorkflowArchitectFlow.test.js.map +1 -0
- package/workflow/__tests__/useWorkflowExecution.test.d.ts +2 -0
- package/workflow/__tests__/useWorkflowExecution.test.d.ts.map +1 -0
- package/workflow/__tests__/useWorkflowExecution.test.js +229 -0
- package/workflow/__tests__/useWorkflowExecution.test.js.map +1 -0
- package/workflow/__tests__/useWorkflowExecutionActions.test.d.ts +2 -0
- package/workflow/__tests__/useWorkflowExecutionActions.test.d.ts.map +1 -0
- package/workflow/__tests__/useWorkflowExecutionActions.test.js +191 -0
- package/workflow/__tests__/useWorkflowExecutionActions.test.js.map +1 -0
- package/workflow/__tests__/useWorkflowExecutionEventStream.test.d.ts +2 -0
- package/workflow/__tests__/useWorkflowExecutionEventStream.test.d.ts.map +1 -0
- package/workflow/__tests__/useWorkflowExecutionEventStream.test.js +291 -0
- package/workflow/__tests__/useWorkflowExecutionEventStream.test.js.map +1 -0
- package/workflow/__tests__/workflow-instance-hooks.test.d.ts +2 -0
- package/workflow/__tests__/workflow-instance-hooks.test.d.ts.map +1 -0
- package/workflow/__tests__/workflow-instance-hooks.test.js +153 -0
- package/workflow/__tests__/workflow-instance-hooks.test.js.map +1 -0
- package/workflow/__tests__/workflow-summary-panel.test.d.ts +2 -0
- package/workflow/__tests__/workflow-summary-panel.test.d.ts.map +1 -0
- package/workflow/__tests__/workflow-summary-panel.test.js +85 -0
- package/workflow/__tests__/workflow-summary-panel.test.js.map +1 -0
- package/workflow/__tests__/workflow-uses-trigger-input.test.d.ts +2 -0
- package/workflow/__tests__/workflow-uses-trigger-input.test.d.ts.map +1 -0
- package/workflow/__tests__/workflow-uses-trigger-input.test.js +144 -0
- package/workflow/__tests__/workflow-uses-trigger-input.test.js.map +1 -0
- package/workflow/__tests__/workflow-yaml-diff.test.d.ts +2 -0
- package/workflow/__tests__/workflow-yaml-diff.test.d.ts.map +1 -0
- package/workflow/__tests__/workflow-yaml-diff.test.js +110 -0
- package/workflow/__tests__/workflow-yaml-diff.test.js.map +1 -0
- package/workflow/architect-response-schema.d.ts +34 -0
- package/workflow/architect-response-schema.d.ts.map +1 -0
- package/workflow/architect-response-schema.js +66 -0
- package/workflow/architect-response-schema.js.map +1 -0
- package/workflow/canvas-constants.d.ts +16 -0
- package/workflow/canvas-constants.d.ts.map +1 -1
- package/workflow/canvas-constants.js +10 -0
- package/workflow/canvas-constants.js.map +1 -1
- package/workflow/clipboard.d.ts +46 -0
- package/workflow/clipboard.d.ts.map +1 -0
- package/workflow/clipboard.js +133 -0
- package/workflow/clipboard.js.map +1 -0
- package/workflow/cncf-yaml-to-graph.d.ts +19 -0
- package/workflow/cncf-yaml-to-graph.d.ts.map +1 -0
- package/workflow/cncf-yaml-to-graph.js +368 -0
- package/workflow/cncf-yaml-to-graph.js.map +1 -0
- package/workflow/diff/DiffSummaryBar.d.ts +11 -0
- package/workflow/diff/DiffSummaryBar.d.ts.map +1 -0
- package/workflow/diff/DiffSummaryBar.js +16 -0
- package/workflow/diff/DiffSummaryBar.js.map +1 -0
- package/workflow/diff/__tests__/build-diff-graph.test.d.ts +2 -0
- package/workflow/diff/__tests__/build-diff-graph.test.d.ts.map +1 -0
- package/workflow/diff/__tests__/build-diff-graph.test.js +115 -0
- package/workflow/diff/__tests__/build-diff-graph.test.js.map +1 -0
- package/workflow/diff/__tests__/graph-diff.test.d.ts +2 -0
- package/workflow/diff/__tests__/graph-diff.test.d.ts.map +1 -0
- package/workflow/diff/__tests__/graph-diff.test.js +196 -0
- package/workflow/diff/__tests__/graph-diff.test.js.map +1 -0
- package/workflow/diff/build-diff-graph.d.ts +25 -0
- package/workflow/diff/build-diff-graph.d.ts.map +1 -0
- package/workflow/diff/build-diff-graph.js +60 -0
- package/workflow/diff/build-diff-graph.js.map +1 -0
- package/workflow/diff/graph-diff.d.ts +27 -0
- package/workflow/diff/graph-diff.d.ts.map +1 -0
- package/workflow/diff/graph-diff.js +168 -0
- package/workflow/diff/graph-diff.js.map +1 -0
- package/workflow/diff/index.d.ts +5 -0
- package/workflow/diff/index.d.ts.map +1 -0
- package/workflow/diff/index.js +4 -0
- package/workflow/diff/index.js.map +1 -0
- package/workflow/diff/types.d.ts +36 -0
- package/workflow/diff/types.d.ts.map +1 -0
- package/workflow/diff/types.js +2 -0
- package/workflow/diff/types.js.map +1 -0
- package/workflow/execution/derive-execution-overlays.d.ts +51 -0
- package/workflow/execution/derive-execution-overlays.d.ts.map +1 -0
- package/workflow/execution/derive-execution-overlays.js +166 -0
- package/workflow/execution/derive-execution-overlays.js.map +1 -0
- package/workflow/execution/derive-waterfall-entries.d.ts +85 -0
- package/workflow/execution/derive-waterfall-entries.d.ts.map +1 -0
- package/workflow/execution/derive-waterfall-entries.js +268 -0
- package/workflow/execution/derive-waterfall-entries.js.map +1 -0
- package/workflow/execution/index.d.ts +4 -0
- package/workflow/execution/index.d.ts.map +1 -0
- package/workflow/execution/index.js +4 -0
- package/workflow/execution/index.js.map +1 -0
- package/workflow/execution/useWaterfallEntries.d.ts +25 -0
- package/workflow/execution/useWaterfallEntries.d.ts.map +1 -0
- package/workflow/execution/useWaterfallEntries.js +67 -0
- package/workflow/execution/useWaterfallEntries.js.map +1 -0
- package/workflow/execution-comparison/ComparisonSummaryCards.d.ts +15 -0
- package/workflow/execution-comparison/ComparisonSummaryCards.d.ts.map +1 -0
- package/workflow/execution-comparison/ComparisonSummaryCards.js +66 -0
- package/workflow/execution-comparison/ComparisonSummaryCards.js.map +1 -0
- package/workflow/execution-comparison/ExecutionComparisonPicker.d.ts +27 -0
- package/workflow/execution-comparison/ExecutionComparisonPicker.d.ts.map +1 -0
- package/workflow/execution-comparison/ExecutionComparisonPicker.js +116 -0
- package/workflow/execution-comparison/ExecutionComparisonPicker.js.map +1 -0
- package/workflow/execution-comparison/ExecutionComparisonView.d.ts +36 -0
- package/workflow/execution-comparison/ExecutionComparisonView.d.ts.map +1 -0
- package/workflow/execution-comparison/ExecutionComparisonView.js +50 -0
- package/workflow/execution-comparison/ExecutionComparisonView.js.map +1 -0
- package/workflow/execution-comparison/TaskComparisonTable.d.ts +18 -0
- package/workflow/execution-comparison/TaskComparisonTable.d.ts.map +1 -0
- package/workflow/execution-comparison/TaskComparisonTable.js +81 -0
- package/workflow/execution-comparison/TaskComparisonTable.js.map +1 -0
- package/workflow/execution-comparison/__tests__/derive-execution-comparison.test.d.ts +2 -0
- package/workflow/execution-comparison/__tests__/derive-execution-comparison.test.d.ts.map +1 -0
- package/workflow/execution-comparison/__tests__/derive-execution-comparison.test.js +263 -0
- package/workflow/execution-comparison/__tests__/derive-execution-comparison.test.js.map +1 -0
- package/workflow/execution-comparison/derive-execution-comparison.d.ts +14 -0
- package/workflow/execution-comparison/derive-execution-comparison.d.ts.map +1 -0
- package/workflow/execution-comparison/derive-execution-comparison.js +120 -0
- package/workflow/execution-comparison/derive-execution-comparison.js.map +1 -0
- package/workflow/execution-comparison/index.d.ts +8 -0
- package/workflow/execution-comparison/index.d.ts.map +1 -0
- package/workflow/execution-comparison/index.js +7 -0
- package/workflow/execution-comparison/index.js.map +1 -0
- package/workflow/execution-comparison/types.d.ts +56 -0
- package/workflow/execution-comparison/types.d.ts.map +1 -0
- package/workflow/execution-comparison/types.js +2 -0
- package/workflow/execution-comparison/types.js.map +1 -0
- package/workflow/execution-comparison/useExecutionComparison.d.ts +43 -0
- package/workflow/execution-comparison/useExecutionComparison.d.ts.map +1 -0
- package/workflow/execution-comparison/useExecutionComparison.js +46 -0
- package/workflow/execution-comparison/useExecutionComparison.js.map +1 -0
- package/workflow/execution-history/ExecutionFilterBar.d.ts +27 -0
- package/workflow/execution-history/ExecutionFilterBar.d.ts.map +1 -0
- package/workflow/execution-history/ExecutionFilterBar.js +118 -0
- package/workflow/execution-history/ExecutionFilterBar.js.map +1 -0
- package/workflow/execution-history/ExecutionHistoryTable.d.ts +44 -0
- package/workflow/execution-history/ExecutionHistoryTable.d.ts.map +1 -0
- package/workflow/execution-history/ExecutionHistoryTable.js +206 -0
- package/workflow/execution-history/ExecutionHistoryTable.js.map +1 -0
- package/workflow/execution-history/FailureAnalysisPanel.d.ts +31 -0
- package/workflow/execution-history/FailureAnalysisPanel.d.ts.map +1 -0
- package/workflow/execution-history/FailureAnalysisPanel.js +64 -0
- package/workflow/execution-history/FailureAnalysisPanel.js.map +1 -0
- package/workflow/execution-history/HealthMetricsStrip.d.ts +28 -0
- package/workflow/execution-history/HealthMetricsStrip.d.ts.map +1 -0
- package/workflow/execution-history/HealthMetricsStrip.js +62 -0
- package/workflow/execution-history/HealthMetricsStrip.js.map +1 -0
- package/workflow/execution-history/WorkflowExecutionHistory.d.ts +42 -0
- package/workflow/execution-history/WorkflowExecutionHistory.d.ts.map +1 -0
- package/workflow/execution-history/WorkflowExecutionHistory.js +55 -0
- package/workflow/execution-history/WorkflowExecutionHistory.js.map +1 -0
- package/workflow/execution-history/__tests__/derive-execution-row.test.d.ts +2 -0
- package/workflow/execution-history/__tests__/derive-execution-row.test.d.ts.map +1 -0
- package/workflow/execution-history/__tests__/derive-execution-row.test.js +276 -0
- package/workflow/execution-history/__tests__/derive-execution-row.test.js.map +1 -0
- package/workflow/execution-history/__tests__/derive-failure-analysis.test.d.ts +2 -0
- package/workflow/execution-history/__tests__/derive-failure-analysis.test.d.ts.map +1 -0
- package/workflow/execution-history/__tests__/derive-failure-analysis.test.js +132 -0
- package/workflow/execution-history/__tests__/derive-failure-analysis.test.js.map +1 -0
- package/workflow/execution-history/derive-execution-row.d.ts +71 -0
- package/workflow/execution-history/derive-execution-row.d.ts.map +1 -0
- package/workflow/execution-history/derive-execution-row.js +143 -0
- package/workflow/execution-history/derive-execution-row.js.map +1 -0
- package/workflow/execution-history/derive-failure-analysis.d.ts +40 -0
- package/workflow/execution-history/derive-failure-analysis.d.ts.map +1 -0
- package/workflow/execution-history/derive-failure-analysis.js +64 -0
- package/workflow/execution-history/derive-failure-analysis.js.map +1 -0
- package/workflow/execution-history/index.d.ts +9 -0
- package/workflow/execution-history/index.d.ts.map +1 -0
- package/workflow/execution-history/index.js +9 -0
- package/workflow/execution-history/index.js.map +1 -0
- package/workflow/execution-history/useExecutionHistoryData.d.ts +52 -0
- package/workflow/execution-history/useExecutionHistoryData.d.ts.map +1 -0
- package/workflow/execution-history/useExecutionHistoryData.js +44 -0
- package/workflow/execution-history/useExecutionHistoryData.js.map +1 -0
- package/workflow/execution-inspector/AgentCallTab.d.ts +21 -0
- package/workflow/execution-inspector/AgentCallTab.d.ts.map +1 -0
- package/workflow/execution-inspector/AgentCallTab.js +36 -0
- package/workflow/execution-inspector/AgentCallTab.js.map +1 -0
- package/workflow/execution-inspector/ErrorTab.d.ts +9 -0
- package/workflow/execution-inspector/ErrorTab.d.ts.map +1 -0
- package/workflow/execution-inspector/ErrorTab.js +29 -0
- package/workflow/execution-inspector/ErrorTab.js.map +1 -0
- package/workflow/execution-inspector/EventLogTab.d.ts +11 -0
- package/workflow/execution-inspector/EventLogTab.d.ts.map +1 -0
- package/workflow/execution-inspector/EventLogTab.js +47 -0
- package/workflow/execution-inspector/EventLogTab.js.map +1 -0
- package/workflow/execution-inspector/ExecutionInspector.d.ts +52 -0
- package/workflow/execution-inspector/ExecutionInspector.d.ts.map +1 -0
- package/workflow/execution-inspector/ExecutionInspector.js +140 -0
- package/workflow/execution-inspector/ExecutionInspector.js.map +1 -0
- package/workflow/execution-inspector/InputOutputTab.d.ts +20 -0
- package/workflow/execution-inspector/InputOutputTab.d.ts.map +1 -0
- package/workflow/execution-inspector/InputOutputTab.js +124 -0
- package/workflow/execution-inspector/InputOutputTab.js.map +1 -0
- package/workflow/execution-inspector/RetriesTab.d.ts +7 -0
- package/workflow/execution-inspector/RetriesTab.d.ts.map +1 -0
- package/workflow/execution-inspector/RetriesTab.js +11 -0
- package/workflow/execution-inspector/RetriesTab.js.map +1 -0
- package/workflow/execution-inspector/StructuredDataViewer.d.ts +25 -0
- package/workflow/execution-inspector/StructuredDataViewer.d.ts.map +1 -0
- package/workflow/execution-inspector/StructuredDataViewer.js +201 -0
- package/workflow/execution-inspector/StructuredDataViewer.js.map +1 -0
- package/workflow/execution-inspector/SummaryTab.d.ts +7 -0
- package/workflow/execution-inspector/SummaryTab.d.ts.map +1 -0
- package/workflow/execution-inspector/SummaryTab.js +10 -0
- package/workflow/execution-inspector/SummaryTab.js.map +1 -0
- package/workflow/execution-inspector/derive-task-detail.d.ts +121 -0
- package/workflow/execution-inspector/derive-task-detail.d.ts.map +1 -0
- package/workflow/execution-inspector/derive-task-detail.js +352 -0
- package/workflow/execution-inspector/derive-task-detail.js.map +1 -0
- package/workflow/execution-inspector/index.d.ts +4 -0
- package/workflow/execution-inspector/index.d.ts.map +1 -0
- package/workflow/execution-inspector/index.js +4 -0
- package/workflow/execution-inspector/index.js.map +1 -0
- package/workflow/execution-inspector/useExecutionTaskDetail.d.ts +38 -0
- package/workflow/execution-inspector/useExecutionTaskDetail.d.ts.map +1 -0
- package/workflow/execution-inspector/useExecutionTaskDetail.js +37 -0
- package/workflow/execution-inspector/useExecutionTaskDetail.js.map +1 -0
- package/workflow/format-utils.d.ts +61 -0
- package/workflow/format-utils.d.ts.map +1 -0
- package/workflow/format-utils.js +127 -0
- package/workflow/format-utils.js.map +1 -0
- package/workflow/graph-commands.d.ts +268 -0
- package/workflow/graph-commands.d.ts.map +1 -1
- package/workflow/graph-commands.js +977 -0
- package/workflow/graph-commands.js.map +1 -1
- package/workflow/index.d.ts +57 -4
- package/workflow/index.d.ts.map +1 -1
- package/workflow/index.js +82 -1
- package/workflow/index.js.map +1 -1
- package/workflow/inspector/EdgeInspector.d.ts +17 -0
- package/workflow/inspector/EdgeInspector.d.ts.map +1 -0
- package/workflow/inspector/EdgeInspector.js +16 -0
- package/workflow/inspector/EdgeInspector.js.map +1 -0
- package/workflow/inspector/ExecutionInspectorAdapter.d.ts +26 -0
- package/workflow/inspector/ExecutionInspectorAdapter.d.ts.map +1 -0
- package/workflow/inspector/ExecutionInspectorAdapter.js +23 -0
- package/workflow/inspector/ExecutionInspectorAdapter.js.map +1 -0
- package/workflow/inspector/InspectorHeader.d.ts +25 -0
- package/workflow/inspector/InspectorHeader.d.ts.map +1 -0
- package/workflow/inspector/InspectorHeader.js +82 -0
- package/workflow/inspector/InspectorHeader.js.map +1 -0
- package/workflow/inspector/InspectorShell.d.ts +35 -0
- package/workflow/inspector/InspectorShell.d.ts.map +1 -0
- package/workflow/inspector/InspectorShell.js +80 -0
- package/workflow/inspector/InspectorShell.js.map +1 -0
- package/workflow/inspector/NestedTaskList.d.ts +32 -0
- package/workflow/inspector/NestedTaskList.d.ts.map +1 -0
- package/workflow/inspector/NestedTaskList.js +27 -0
- package/workflow/inspector/NestedTaskList.js.map +1 -0
- package/workflow/inspector/SentinelInspector.d.ts +15 -0
- package/workflow/inspector/SentinelInspector.d.ts.map +1 -0
- package/workflow/inspector/SentinelInspector.js +18 -0
- package/workflow/inspector/SentinelInspector.js.map +1 -0
- package/workflow/inspector/WorkflowSummaryPanel.d.ts +20 -0
- package/workflow/inspector/WorkflowSummaryPanel.d.ts.map +1 -0
- package/workflow/inspector/WorkflowSummaryPanel.js +79 -0
- package/workflow/inspector/WorkflowSummaryPanel.js.map +1 -0
- package/workflow/inspector/forms/AgentCallForm.d.ts +21 -0
- package/workflow/inspector/forms/AgentCallForm.d.ts.map +1 -0
- package/workflow/inspector/forms/AgentCallForm.js +95 -0
- package/workflow/inspector/forms/AgentCallForm.js.map +1 -0
- package/workflow/inspector/forms/HttpCallForm.d.ts +17 -0
- package/workflow/inspector/forms/HttpCallForm.d.ts.map +1 -0
- package/workflow/inspector/forms/HttpCallForm.js +86 -0
- package/workflow/inspector/forms/HttpCallForm.js.map +1 -0
- package/workflow/inspector/index.d.ts +36 -0
- package/workflow/inspector/index.d.ts.map +1 -0
- package/workflow/inspector/index.js +30 -0
- package/workflow/inspector/index.js.map +1 -0
- package/workflow/inspector/tabs/AdvancedTab.d.ts +18 -0
- package/workflow/inspector/tabs/AdvancedTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/AdvancedTab.js +24 -0
- package/workflow/inspector/tabs/AdvancedTab.js.map +1 -0
- package/workflow/inspector/tabs/BranchesTab.d.ts +18 -0
- package/workflow/inspector/tabs/BranchesTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/BranchesTab.js +125 -0
- package/workflow/inspector/tabs/BranchesTab.js.map +1 -0
- package/workflow/inspector/tabs/CatchTab.d.ts +19 -0
- package/workflow/inspector/tabs/CatchTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/CatchTab.js +62 -0
- package/workflow/inspector/tabs/CatchTab.js.map +1 -0
- package/workflow/inspector/tabs/ConfigureTab.d.ts +23 -0
- package/workflow/inspector/tabs/ConfigureTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/ConfigureTab.js +39 -0
- package/workflow/inspector/tabs/ConfigureTab.js.map +1 -0
- package/workflow/inspector/tabs/DataTab.d.ts +16 -0
- package/workflow/inspector/tabs/DataTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/DataTab.js +23 -0
- package/workflow/inspector/tabs/DataTab.js.map +1 -0
- package/workflow/inspector/tabs/DocsTab.d.ts +15 -0
- package/workflow/inspector/tabs/DocsTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/DocsTab.js +17 -0
- package/workflow/inspector/tabs/DocsTab.js.map +1 -0
- package/workflow/inspector/tabs/IterationTab.d.ts +21 -0
- package/workflow/inspector/tabs/IterationTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/IterationTab.js +80 -0
- package/workflow/inspector/tabs/IterationTab.js.map +1 -0
- package/workflow/inspector/tabs/RuntimeTab.d.ts +21 -0
- package/workflow/inspector/tabs/RuntimeTab.d.ts.map +1 -0
- package/workflow/inspector/tabs/RuntimeTab.js +66 -0
- package/workflow/inspector/tabs/RuntimeTab.js.map +1 -0
- package/workflow/inspector/task-to-yaml.d.ts +11 -0
- package/workflow/inspector/task-to-yaml.d.ts.map +1 -0
- package/workflow/inspector/task-to-yaml.js +65 -0
- package/workflow/inspector/task-to-yaml.js.map +1 -0
- package/workflow/inspector/types.d.ts +76 -0
- package/workflow/inspector/types.d.ts.map +1 -0
- package/workflow/inspector/types.js +2 -0
- package/workflow/inspector/types.js.map +1 -0
- package/workflow/inspector/useInspectorTabs.d.ts +38 -0
- package/workflow/inspector/useInspectorTabs.d.ts.map +1 -0
- package/workflow/inspector/useInspectorTabs.js +68 -0
- package/workflow/inspector/useInspectorTabs.js.map +1 -0
- package/workflow/inspector/useNestedTaskEditor.d.ts +26 -0
- package/workflow/inspector/useNestedTaskEditor.d.ts.map +1 -0
- package/workflow/inspector/useNestedTaskEditor.js +75 -0
- package/workflow/inspector/useNestedTaskEditor.js.map +1 -0
- package/workflow/instance/CreateWorkflowInstanceDialog.d.ts +24 -0
- package/workflow/instance/CreateWorkflowInstanceDialog.d.ts.map +1 -0
- package/workflow/instance/CreateWorkflowInstanceDialog.js +78 -0
- package/workflow/instance/CreateWorkflowInstanceDialog.js.map +1 -0
- package/workflow/instance/WorkflowInstanceDetailPanel.d.ts +26 -0
- package/workflow/instance/WorkflowInstanceDetailPanel.d.ts.map +1 -0
- package/workflow/instance/WorkflowInstanceDetailPanel.js +92 -0
- package/workflow/instance/WorkflowInstanceDetailPanel.js.map +1 -0
- package/workflow/instance/WorkflowInstanceEmptyState.d.ts +15 -0
- package/workflow/instance/WorkflowInstanceEmptyState.d.ts.map +1 -0
- package/workflow/instance/WorkflowInstanceEmptyState.js +19 -0
- package/workflow/instance/WorkflowInstanceEmptyState.js.map +1 -0
- package/workflow/instance/WorkflowInstanceList.d.ts +33 -0
- package/workflow/instance/WorkflowInstanceList.d.ts.map +1 -0
- package/workflow/instance/WorkflowInstanceList.js +67 -0
- package/workflow/instance/WorkflowInstanceList.js.map +1 -0
- package/workflow/instance/index.d.ts +9 -0
- package/workflow/instance/index.d.ts.map +1 -0
- package/workflow/instance/index.js +9 -0
- package/workflow/instance/index.js.map +1 -0
- package/workflow/instance/useCreateWorkflowInstance.d.ts +37 -0
- package/workflow/instance/useCreateWorkflowInstance.d.ts.map +1 -0
- package/workflow/instance/useCreateWorkflowInstance.js +48 -0
- package/workflow/instance/useCreateWorkflowInstance.js.map +1 -0
- package/workflow/instance/useDeleteWorkflowInstance.d.ts +39 -0
- package/workflow/instance/useDeleteWorkflowInstance.d.ts.map +1 -0
- package/workflow/instance/useDeleteWorkflowInstance.js +46 -0
- package/workflow/instance/useDeleteWorkflowInstance.js.map +1 -0
- package/workflow/instance/useUpdateWorkflowInstance.d.ts +35 -0
- package/workflow/instance/useUpdateWorkflowInstance.d.ts.map +1 -0
- package/workflow/instance/useUpdateWorkflowInstance.js +46 -0
- package/workflow/instance/useUpdateWorkflowInstance.js.map +1 -0
- package/workflow/instance/useWorkflowInstance.d.ts +27 -0
- package/workflow/instance/useWorkflowInstance.d.ts.map +1 -0
- package/workflow/instance/useWorkflowInstance.js +23 -0
- package/workflow/instance/useWorkflowInstance.js.map +1 -0
- package/workflow/internal/workflowToInput.d.ts +12 -0
- package/workflow/internal/workflowToInput.d.ts.map +1 -0
- package/workflow/internal/workflowToInput.js +73 -0
- package/workflow/internal/workflowToInput.js.map +1 -0
- package/workflow/kind-metadata.d.ts +23 -0
- package/workflow/kind-metadata.d.ts.map +1 -0
- package/workflow/kind-metadata.js +98 -0
- package/workflow/kind-metadata.js.map +1 -0
- package/workflow/layout/__tests__/dagre-layout-engine.test.d.ts +2 -0
- package/workflow/layout/__tests__/dagre-layout-engine.test.d.ts.map +1 -0
- package/workflow/layout/__tests__/dagre-layout-engine.test.js +105 -0
- package/workflow/layout/__tests__/dagre-layout-engine.test.js.map +1 -0
- package/workflow/layout/__tests__/layout-postprocessor.test.d.ts +2 -0
- package/workflow/layout/__tests__/layout-postprocessor.test.d.ts.map +1 -0
- package/workflow/layout/__tests__/layout-postprocessor.test.js +123 -0
- package/workflow/layout/__tests__/layout-postprocessor.test.js.map +1 -0
- package/workflow/layout/__tests__/port-assignment.test.d.ts +2 -0
- package/workflow/layout/__tests__/port-assignment.test.d.ts.map +1 -0
- package/workflow/layout/__tests__/port-assignment.test.js +200 -0
- package/workflow/layout/__tests__/port-assignment.test.js.map +1 -0
- package/workflow/layout/__tests__/registry-dimensions.test.d.ts +2 -0
- package/workflow/layout/__tests__/registry-dimensions.test.d.ts.map +1 -0
- package/workflow/layout/__tests__/registry-dimensions.test.js +104 -0
- package/workflow/layout/__tests__/registry-dimensions.test.js.map +1 -0
- package/workflow/layout/__tests__/useElkLayoutEngine.test.d.ts +2 -0
- package/workflow/layout/__tests__/useElkLayoutEngine.test.d.ts.map +1 -0
- package/workflow/layout/__tests__/useElkLayoutEngine.test.js +106 -0
- package/workflow/layout/__tests__/useElkLayoutEngine.test.js.map +1 -0
- package/workflow/layout/__tests__/workflow-preprocessor.test.d.ts +2 -0
- package/workflow/layout/__tests__/workflow-preprocessor.test.d.ts.map +1 -0
- package/workflow/layout/__tests__/workflow-preprocessor.test.js +138 -0
- package/workflow/layout/__tests__/workflow-preprocessor.test.js.map +1 -0
- package/workflow/layout/apply-dagre-layout.d.ts +15 -0
- package/workflow/layout/apply-dagre-layout.d.ts.map +1 -0
- package/workflow/layout/apply-dagre-layout.js +44 -0
- package/workflow/layout/apply-dagre-layout.js.map +1 -0
- package/workflow/layout/dagre-layout-engine.d.ts +15 -0
- package/workflow/layout/dagre-layout-engine.d.ts.map +1 -0
- package/workflow/layout/dagre-layout-engine.js +75 -0
- package/workflow/layout/dagre-layout-engine.js.map +1 -0
- package/workflow/layout/elk-layout-engine.d.ts +38 -0
- package/workflow/layout/elk-layout-engine.d.ts.map +1 -0
- package/workflow/layout/elk-layout-engine.js +68 -0
- package/workflow/layout/elk-layout-engine.js.map +1 -0
- package/workflow/layout/index.d.ts +15 -0
- package/workflow/layout/index.d.ts.map +1 -0
- package/workflow/layout/index.js +28 -0
- package/workflow/layout/index.js.map +1 -0
- package/workflow/layout/layout-postprocessor.d.ts +23 -0
- package/workflow/layout/layout-postprocessor.d.ts.map +1 -0
- package/workflow/layout/layout-postprocessor.js +147 -0
- package/workflow/layout/layout-postprocessor.js.map +1 -0
- package/workflow/layout/port-assignment.d.ts +20 -0
- package/workflow/layout/port-assignment.d.ts.map +1 -0
- package/workflow/layout/port-assignment.js +124 -0
- package/workflow/layout/port-assignment.js.map +1 -0
- package/workflow/layout/registry-dimensions.d.ts +22 -0
- package/workflow/layout/registry-dimensions.d.ts.map +1 -0
- package/workflow/layout/registry-dimensions.js +28 -0
- package/workflow/layout/registry-dimensions.js.map +1 -0
- package/workflow/layout/types.d.ts +158 -0
- package/workflow/layout/types.d.ts.map +1 -0
- package/workflow/layout/types.js +2 -0
- package/workflow/layout/types.js.map +1 -0
- package/workflow/layout/use-workflow-layout.d.ts +47 -0
- package/workflow/layout/use-workflow-layout.d.ts.map +1 -0
- package/workflow/layout/use-workflow-layout.js +95 -0
- package/workflow/layout/use-workflow-layout.js.map +1 -0
- package/workflow/layout/useElkLayoutEngine.d.ts +57 -0
- package/workflow/layout/useElkLayoutEngine.d.ts.map +1 -0
- package/workflow/layout/useElkLayoutEngine.js +64 -0
- package/workflow/layout/useElkLayoutEngine.js.map +1 -0
- package/workflow/layout/workflow-preprocessor.d.ts +30 -0
- package/workflow/layout/workflow-preprocessor.d.ts.map +1 -0
- package/workflow/layout/workflow-preprocessor.js +170 -0
- package/workflow/layout/workflow-preprocessor.js.map +1 -0
- package/workflow/motion-preference.d.ts +23 -0
- package/workflow/motion-preference.d.ts.map +1 -0
- package/workflow/motion-preference.js +48 -0
- package/workflow/motion-preference.js.map +1 -0
- package/workflow/node-shell/BranchBadge.d.ts +17 -0
- package/workflow/node-shell/BranchBadge.d.ts.map +1 -0
- package/workflow/node-shell/BranchBadge.js +65 -0
- package/workflow/node-shell/BranchBadge.js.map +1 -0
- package/workflow/node-shell/DiffBadge.d.ts +15 -0
- package/workflow/node-shell/DiffBadge.d.ts.map +1 -0
- package/workflow/node-shell/DiffBadge.js +38 -0
- package/workflow/node-shell/DiffBadge.js.map +1 -0
- package/workflow/node-shell/ExecutionBadge.d.ts +37 -0
- package/workflow/node-shell/ExecutionBadge.d.ts.map +1 -0
- package/workflow/node-shell/ExecutionBadge.js +74 -0
- package/workflow/node-shell/ExecutionBadge.js.map +1 -0
- package/workflow/node-shell/NodeActions.d.ts +19 -0
- package/workflow/node-shell/NodeActions.d.ts.map +1 -0
- package/workflow/node-shell/NodeActions.js +138 -0
- package/workflow/node-shell/NodeActions.js.map +1 -0
- package/workflow/node-shell/NodeContent.d.ts +20 -0
- package/workflow/node-shell/NodeContent.d.ts.map +1 -0
- package/workflow/node-shell/NodeContent.js +34 -0
- package/workflow/node-shell/NodeContent.js.map +1 -0
- package/workflow/node-shell/NodeHandles.d.ts +21 -0
- package/workflow/node-shell/NodeHandles.d.ts.map +1 -0
- package/workflow/node-shell/NodeHandles.js +103 -0
- package/workflow/node-shell/NodeHandles.js.map +1 -0
- package/workflow/node-shell/NodeShell.d.ts +30 -0
- package/workflow/node-shell/NodeShell.d.ts.map +1 -0
- package/workflow/node-shell/NodeShell.js +112 -0
- package/workflow/node-shell/NodeShell.js.map +1 -0
- package/workflow/node-shell/index.d.ts +9 -0
- package/workflow/node-shell/index.d.ts.map +1 -0
- package/workflow/node-shell/index.js +9 -0
- package/workflow/node-shell/index.js.map +1 -0
- package/workflow/node-shell/shape-paths.d.ts +51 -0
- package/workflow/node-shell/shape-paths.d.ts.map +1 -0
- package/workflow/node-shell/shape-paths.js +117 -0
- package/workflow/node-shell/shape-paths.js.map +1 -0
- package/workflow/picker/BranchAddPopover.d.ts +33 -0
- package/workflow/picker/BranchAddPopover.d.ts.map +1 -0
- package/workflow/picker/BranchAddPopover.js +90 -0
- package/workflow/picker/BranchAddPopover.js.map +1 -0
- package/workflow/picker/__tests__/compatibility.test.d.ts +2 -0
- package/workflow/picker/__tests__/compatibility.test.d.ts.map +1 -0
- package/workflow/picker/__tests__/compatibility.test.js +93 -0
- package/workflow/picker/__tests__/compatibility.test.js.map +1 -0
- package/workflow/picker/__tests__/insertion-context.test.d.ts +2 -0
- package/workflow/picker/__tests__/insertion-context.test.d.ts.map +1 -0
- package/workflow/picker/__tests__/insertion-context.test.js +67 -0
- package/workflow/picker/__tests__/insertion-context.test.js.map +1 -0
- package/workflow/picker/__tests__/recents.test.d.ts +2 -0
- package/workflow/picker/__tests__/recents.test.d.ts.map +1 -0
- package/workflow/picker/__tests__/recents.test.js +81 -0
- package/workflow/picker/__tests__/recents.test.js.map +1 -0
- package/workflow/picker/__tests__/suggestions.test.d.ts +2 -0
- package/workflow/picker/__tests__/suggestions.test.d.ts.map +1 -0
- package/workflow/picker/__tests__/suggestions.test.js +111 -0
- package/workflow/picker/__tests__/suggestions.test.js.map +1 -0
- package/workflow/picker/compatibility.d.ts +32 -0
- package/workflow/picker/compatibility.d.ts.map +1 -0
- package/workflow/picker/compatibility.js +75 -0
- package/workflow/picker/compatibility.js.map +1 -0
- package/workflow/picker/index.d.ts +11 -0
- package/workflow/picker/index.d.ts.map +1 -0
- package/workflow/picker/index.js +6 -0
- package/workflow/picker/index.js.map +1 -0
- package/workflow/picker/insertion-context.d.ts +46 -0
- package/workflow/picker/insertion-context.d.ts.map +1 -0
- package/workflow/picker/insertion-context.js +46 -0
- package/workflow/picker/insertion-context.js.map +1 -0
- package/workflow/picker/recents.d.ts +36 -0
- package/workflow/picker/recents.d.ts.map +1 -0
- package/workflow/picker/recents.js +74 -0
- package/workflow/picker/recents.js.map +1 -0
- package/workflow/picker/suggestions.d.ts +21 -0
- package/workflow/picker/suggestions.d.ts.map +1 -0
- package/workflow/picker/suggestions.js +196 -0
- package/workflow/picker/suggestions.js.map +1 -0
- package/workflow/picker/usePickerData.d.ts +50 -0
- package/workflow/picker/usePickerData.d.ts.map +1 -0
- package/workflow/picker/usePickerData.js +112 -0
- package/workflow/picker/usePickerData.js.map +1 -0
- package/workflow/shortcut-registry.d.ts +59 -0
- package/workflow/shortcut-registry.d.ts.map +1 -0
- package/workflow/shortcut-registry.js +83 -0
- package/workflow/shortcut-registry.js.map +1 -0
- package/workflow/task-type-visual-registry.d.ts +70 -0
- package/workflow/task-type-visual-registry.d.ts.map +1 -0
- package/workflow/task-type-visual-registry.js +129 -0
- package/workflow/task-type-visual-registry.js.map +1 -0
- package/workflow/templates/WorkflowTemplateCard.d.ts +16 -0
- package/workflow/templates/WorkflowTemplateCard.d.ts.map +1 -0
- package/workflow/templates/WorkflowTemplateCard.js +55 -0
- package/workflow/templates/WorkflowTemplateCard.js.map +1 -0
- package/workflow/templates/WorkflowTemplateGallery.d.ts +22 -0
- package/workflow/templates/WorkflowTemplateGallery.d.ts.map +1 -0
- package/workflow/templates/WorkflowTemplateGallery.js +70 -0
- package/workflow/templates/WorkflowTemplateGallery.js.map +1 -0
- package/workflow/templates/WorkflowTemplatePreview.d.ts +19 -0
- package/workflow/templates/WorkflowTemplatePreview.d.ts.map +1 -0
- package/workflow/templates/WorkflowTemplatePreview.js +124 -0
- package/workflow/templates/WorkflowTemplatePreview.js.map +1 -0
- package/workflow/templates/__tests__/derive-template-metadata.test.d.ts +2 -0
- package/workflow/templates/__tests__/derive-template-metadata.test.d.ts.map +1 -0
- package/workflow/templates/__tests__/derive-template-metadata.test.js +317 -0
- package/workflow/templates/__tests__/derive-template-metadata.test.js.map +1 -0
- package/workflow/templates/__tests__/workflow-template-gallery.test.d.ts +2 -0
- package/workflow/templates/__tests__/workflow-template-gallery.test.d.ts.map +1 -0
- package/workflow/templates/__tests__/workflow-template-gallery.test.js +119 -0
- package/workflow/templates/__tests__/workflow-template-gallery.test.js.map +1 -0
- package/workflow/templates/derive-template-metadata.d.ts +13 -0
- package/workflow/templates/derive-template-metadata.d.ts.map +1 -0
- package/workflow/templates/derive-template-metadata.js +134 -0
- package/workflow/templates/derive-template-metadata.js.map +1 -0
- package/workflow/templates/index.d.ts +10 -0
- package/workflow/templates/index.d.ts.map +1 -0
- package/workflow/templates/index.js +8 -0
- package/workflow/templates/index.js.map +1 -0
- package/workflow/templates/types.d.ts +54 -0
- package/workflow/templates/types.d.ts.map +1 -0
- package/workflow/templates/types.js +24 -0
- package/workflow/templates/types.js.map +1 -0
- package/workflow/topologyFromTasks.d.ts +14 -0
- package/workflow/topologyFromTasks.d.ts.map +1 -0
- package/workflow/topologyFromTasks.js +111 -0
- package/workflow/topologyFromTasks.js.map +1 -0
- package/workflow/useActiveTaskName.d.ts +35 -0
- package/workflow/useActiveTaskName.d.ts.map +1 -0
- package/workflow/useActiveTaskName.js +52 -0
- package/workflow/useActiveTaskName.js.map +1 -0
- package/workflow/useCanvasKeyboardShortcuts.d.ts +7 -1
- package/workflow/useCanvasKeyboardShortcuts.d.ts.map +1 -1
- package/workflow/useCanvasKeyboardShortcuts.js +34 -1
- package/workflow/useCanvasKeyboardShortcuts.js.map +1 -1
- package/workflow/useDiagnoseExecutionFlow.d.ts.map +1 -1
- package/workflow/useDiagnoseExecutionFlow.js +26 -5
- package/workflow/useDiagnoseExecutionFlow.js.map +1 -1
- package/workflow/useExecutionAnnouncements.d.ts +12 -0
- package/workflow/useExecutionAnnouncements.d.ts.map +1 -0
- package/workflow/useExecutionAnnouncements.js +50 -0
- package/workflow/useExecutionAnnouncements.js.map +1 -0
- package/workflow/useExplainWorkflowFlow.d.ts +41 -0
- package/workflow/useExplainWorkflowFlow.d.ts.map +1 -0
- package/workflow/useExplainWorkflowFlow.js +117 -0
- package/workflow/useExplainWorkflowFlow.js.map +1 -0
- package/workflow/useFollowExecution.d.ts +114 -0
- package/workflow/useFollowExecution.d.ts.map +1 -0
- package/workflow/useFollowExecution.js +137 -0
- package/workflow/useFollowExecution.js.map +1 -0
- package/workflow/useInstanceEnvKeys.d.ts +22 -0
- package/workflow/useInstanceEnvKeys.d.ts.map +1 -0
- package/workflow/useInstanceEnvKeys.js +67 -0
- package/workflow/useInstanceEnvKeys.js.map +1 -0
- package/workflow/useRefineWorkflowFlow.d.ts.map +1 -1
- package/workflow/useRefineWorkflowFlow.js +27 -5
- package/workflow/useRefineWorkflowFlow.js.map +1 -1
- package/workflow/useRunWorkflowFlow.d.ts +21 -0
- package/workflow/useRunWorkflowFlow.d.ts.map +1 -1
- package/workflow/useRunWorkflowFlow.js +31 -4
- package/workflow/useRunWorkflowFlow.js.map +1 -1
- package/workflow/useUpdateWorkflow.d.ts +24 -0
- package/workflow/useUpdateWorkflow.d.ts.map +1 -0
- package/workflow/useUpdateWorkflow.js +35 -0
- package/workflow/useUpdateWorkflow.js.map +1 -0
- package/workflow/useWorkflowArchitectFlow.d.ts.map +1 -1
- package/workflow/useWorkflowArchitectFlow.js +27 -7
- package/workflow/useWorkflowArchitectFlow.js.map +1 -1
- package/workflow/useWorkflowCanvas.d.ts +45 -1
- package/workflow/useWorkflowCanvas.d.ts.map +1 -1
- package/workflow/useWorkflowCanvas.js +274 -76
- package/workflow/useWorkflowCanvas.js.map +1 -1
- package/workflow/useWorkflowDashboardSummary.d.ts +15 -3
- package/workflow/useWorkflowDashboardSummary.d.ts.map +1 -1
- package/workflow/useWorkflowDashboardSummary.js +14 -5
- package/workflow/useWorkflowDashboardSummary.js.map +1 -1
- package/workflow/useWorkflowDiffGraph.d.ts +41 -0
- package/workflow/useWorkflowDiffGraph.d.ts.map +1 -0
- package/workflow/useWorkflowDiffGraph.js +115 -0
- package/workflow/useWorkflowDiffGraph.js.map +1 -0
- package/workflow/useWorkflowEditor.d.ts +4 -0
- package/workflow/useWorkflowEditor.d.ts.map +1 -1
- package/workflow/useWorkflowEditor.js +10 -3
- package/workflow/useWorkflowEditor.js.map +1 -1
- package/workflow/useWorkflowExecution.d.ts.map +1 -1
- package/workflow/useWorkflowExecution.js +30 -0
- package/workflow/useWorkflowExecution.js.map +1 -1
- package/workflow/useWorkflowExecutionActions.d.ts +38 -3
- package/workflow/useWorkflowExecutionActions.d.ts.map +1 -1
- package/workflow/useWorkflowExecutionActions.js +22 -5
- package/workflow/useWorkflowExecutionActions.js.map +1 -1
- package/workflow/useWorkflowExecutionEventStream.d.ts +21 -0
- package/workflow/useWorkflowExecutionEventStream.d.ts.map +1 -1
- package/workflow/useWorkflowExecutionEventStream.js +66 -0
- package/workflow/useWorkflowExecutionEventStream.js.map +1 -1
- package/workflow/useWorkflowExecutionGraph.d.ts +82 -0
- package/workflow/useWorkflowExecutionGraph.d.ts.map +1 -0
- package/workflow/useWorkflowExecutionGraph.js +256 -0
- package/workflow/useWorkflowExecutionGraph.js.map +1 -0
- package/workflow/useWorkflowExecutionList.d.ts +34 -0
- package/workflow/useWorkflowExecutionList.d.ts.map +1 -1
- package/workflow/useWorkflowExecutionList.js +2 -9
- package/workflow/useWorkflowExecutionList.js.map +1 -1
- package/workflow/useWorkflowOverviewGraph.d.ts +42 -0
- package/workflow/useWorkflowOverviewGraph.d.ts.map +1 -0
- package/workflow/useWorkflowOverviewGraph.js +51 -0
- package/workflow/useWorkflowOverviewGraph.js.map +1 -0
- package/workflow/useWorkflowSave.d.ts +6 -1
- package/workflow/useWorkflowSave.d.ts.map +1 -1
- package/workflow/useWorkflowSave.js +4 -1
- package/workflow/useWorkflowSave.js.map +1 -1
- package/workflow/useWorkflowTopology.d.ts.map +1 -1
- package/workflow/useWorkflowTopology.js +1 -21
- package/workflow/useWorkflowTopology.js.map +1 -1
- package/workflow/useWorkflowVersion.d.ts +36 -0
- package/workflow/useWorkflowVersion.d.ts.map +1 -0
- package/workflow/useWorkflowVersion.js +86 -0
- package/workflow/useWorkflowVersion.js.map +1 -0
- package/workflow/useWorkflowVersionDiff.d.ts +33 -0
- package/workflow/useWorkflowVersionDiff.d.ts.map +1 -0
- package/workflow/useWorkflowVersionDiff.js +91 -0
- package/workflow/useWorkflowVersionDiff.js.map +1 -0
- package/workflow/useWorkflowVersions.d.ts +44 -0
- package/workflow/useWorkflowVersions.d.ts.map +1 -0
- package/workflow/useWorkflowVersions.js +102 -0
- package/workflow/useWorkflowVersions.js.map +1 -0
- package/workflow/waterfall/WaterfallBar.d.ts +19 -0
- package/workflow/waterfall/WaterfallBar.d.ts.map +1 -0
- package/workflow/waterfall/WaterfallBar.js +70 -0
- package/workflow/waterfall/WaterfallBar.js.map +1 -0
- package/workflow/waterfall/WaterfallRow.d.ts +18 -0
- package/workflow/waterfall/WaterfallRow.d.ts.map +1 -0
- package/workflow/waterfall/WaterfallRow.js +45 -0
- package/workflow/waterfall/WaterfallRow.js.map +1 -0
- package/workflow/waterfall/WaterfallScale.d.ts +14 -0
- package/workflow/waterfall/WaterfallScale.d.ts.map +1 -0
- package/workflow/waterfall/WaterfallScale.js +22 -0
- package/workflow/waterfall/WaterfallScale.js.map +1 -0
- package/workflow/waterfall/WaterfallTimeline.d.ts +46 -0
- package/workflow/waterfall/WaterfallTimeline.d.ts.map +1 -0
- package/workflow/waterfall/WaterfallTimeline.js +60 -0
- package/workflow/waterfall/WaterfallTimeline.js.map +1 -0
- package/workflow/waterfall/WaterfallTooltip.d.ts +15 -0
- package/workflow/waterfall/WaterfallTooltip.d.ts.map +1 -0
- package/workflow/waterfall/WaterfallTooltip.js +20 -0
- package/workflow/waterfall/WaterfallTooltip.js.map +1 -0
- package/workflow/waterfall/index.d.ts +6 -0
- package/workflow/waterfall/index.d.ts.map +1 -0
- package/workflow/waterfall/index.js +6 -0
- package/workflow/waterfall/index.js.map +1 -0
- package/workflow/workflow-graph-conversions.d.ts +44 -1
- package/workflow/workflow-graph-conversions.d.ts.map +1 -1
- package/workflow/workflow-graph-conversions.js +13 -26
- package/workflow/workflow-graph-conversions.js.map +1 -1
- package/workflow/workflow-uses-trigger-input.d.ts +14 -0
- package/workflow/workflow-uses-trigger-input.d.ts.map +1 -0
- package/workflow/workflow-uses-trigger-input.js +51 -0
- package/workflow/workflow-uses-trigger-input.js.map +1 -0
- package/workspace/WorkspaceEditor.d.ts +13 -27
- package/workspace/WorkspaceEditor.d.ts.map +1 -1
- package/workspace/WorkspaceEditor.js +17 -21
- package/workspace/WorkspaceEditor.js.map +1 -1
- package/workspace/WorkspaceEntryFiles.d.ts +22 -0
- package/workspace/WorkspaceEntryFiles.d.ts.map +1 -0
- package/workspace/WorkspaceEntryFiles.js +58 -0
- package/workspace/WorkspaceEntryFiles.js.map +1 -0
- package/workspace/WorkspaceFileLister.d.ts +31 -0
- package/workspace/WorkspaceFileLister.d.ts.map +1 -0
- package/workspace/WorkspaceFileLister.js +2 -0
- package/workspace/WorkspaceFileLister.js.map +1 -0
- package/workspace/__tests__/WorkspaceEditor-initialPanel.test.d.ts +2 -0
- package/workspace/__tests__/WorkspaceEditor-initialPanel.test.d.ts.map +1 -0
- package/workspace/__tests__/WorkspaceEditor-initialPanel.test.js +82 -0
- package/workspace/__tests__/WorkspaceEditor-initialPanel.test.js.map +1 -0
- package/workspace/__tests__/useWorkspaceFiles.test.d.ts +2 -0
- package/workspace/__tests__/useWorkspaceFiles.test.d.ts.map +1 -0
- package/workspace/__tests__/useWorkspaceFiles.test.js +128 -0
- package/workspace/__tests__/useWorkspaceFiles.test.js.map +1 -0
- package/workspace/__tests__/useWorkspaceSources.test.d.ts +2 -0
- package/workspace/__tests__/useWorkspaceSources.test.d.ts.map +1 -0
- package/workspace/__tests__/useWorkspaceSources.test.js +98 -0
- package/workspace/__tests__/useWorkspaceSources.test.js.map +1 -0
- package/workspace/index.d.ts +7 -0
- package/workspace/index.d.ts.map +1 -1
- package/workspace/index.js +3 -0
- package/workspace/index.js.map +1 -1
- package/workspace/useRecentWorkspaces.d.ts +8 -8
- package/workspace/useRecentWorkspaces.d.ts.map +1 -1
- package/workspace/useRecentWorkspaces.js +31 -31
- package/workspace/useRecentWorkspaces.js.map +1 -1
- package/workspace/useWorkspaceEntries.d.ts +1 -7
- package/workspace/useWorkspaceEntries.d.ts.map +1 -1
- package/workspace/useWorkspaceEntries.js +10 -1
- package/workspace/useWorkspaceEntries.js.map +1 -1
- package/workspace/useWorkspaceFiles.d.ts +42 -0
- package/workspace/useWorkspaceFiles.d.ts.map +1 -0
- package/workspace/useWorkspaceFiles.js +90 -0
- package/workspace/useWorkspaceFiles.js.map +1 -0
- package/workspace/useWorkspaceSources.d.ts +54 -0
- package/workspace/useWorkspaceSources.d.ts.map +1 -0
- package/workspace/useWorkspaceSources.js +51 -0
- package/workspace/useWorkspaceSources.js.map +1 -0
- package/runner/RunnerDetailView.d.ts +0 -44
- package/runner/RunnerDetailView.d.ts.map +0 -1
- package/runner/RunnerDetailView.js +0 -154
- package/runner/RunnerDetailView.js.map +0 -1
- package/runner/RunnerFileBrowser.d.ts +0 -43
- package/runner/RunnerFileBrowser.d.ts.map +0 -1
- package/runner/RunnerFileBrowser.js +0 -149
- package/runner/RunnerFileBrowser.js.map +0 -1
- package/runner/RunnerListPanel.d.ts +0 -95
- package/runner/RunnerListPanel.d.ts.map +0 -1
- package/runner/RunnerListPanel.js +0 -280
- package/runner/RunnerListPanel.js.map +0 -1
- package/runner/RunnerPicker.d.ts +0 -54
- package/runner/RunnerPicker.d.ts.map +0 -1
- package/runner/RunnerPicker.js +0 -135
- package/runner/RunnerPicker.js.map +0 -1
- package/runner/WorkspaceRunnerSelector.d.ts +0 -36
- package/runner/WorkspaceRunnerSelector.d.ts.map +0 -1
- package/runner/WorkspaceRunnerSelector.js +0 -63
- package/runner/WorkspaceRunnerSelector.js.map +0 -1
- package/runner/__tests__/phase.test.d.ts +0 -2
- package/runner/__tests__/phase.test.d.ts.map +0 -1
- package/runner/__tests__/phase.test.js +0 -37
- package/runner/__tests__/phase.test.js.map +0 -1
- package/runner/__tests__/useDeleteRunner.test.d.ts +0 -2
- package/runner/__tests__/useDeleteRunner.test.d.ts.map +0 -1
- package/runner/__tests__/useDeleteRunner.test.js +0 -108
- package/runner/__tests__/useDeleteRunner.test.js.map +0 -1
- package/runner/__tests__/useLaunchLocalRunner.test.d.ts +0 -2
- package/runner/__tests__/useLaunchLocalRunner.test.d.ts.map +0 -1
- package/runner/__tests__/useLaunchLocalRunner.test.js +0 -161
- package/runner/__tests__/useLaunchLocalRunner.test.js.map +0 -1
- package/runner/__tests__/useRunnerFileBrowser.test.d.ts +0 -2
- package/runner/__tests__/useRunnerFileBrowser.test.d.ts.map +0 -1
- package/runner/__tests__/useRunnerFileBrowser.test.js +0 -179
- package/runner/__tests__/useRunnerFileBrowser.test.js.map +0 -1
- package/runner/__tests__/useRunnerList.test.d.ts +0 -2
- package/runner/__tests__/useRunnerList.test.d.ts.map +0 -1
- package/runner/__tests__/useRunnerList.test.js +0 -68
- package/runner/__tests__/useRunnerList.test.js.map +0 -1
- package/runner/__tests__/useStopRunner.test.d.ts +0 -2
- package/runner/__tests__/useStopRunner.test.d.ts.map +0 -1
- package/runner/__tests__/useStopRunner.test.js +0 -114
- package/runner/__tests__/useStopRunner.test.js.map +0 -1
- package/runner/index.d.ts +0 -28
- package/runner/index.d.ts.map +0 -1
- package/runner/index.js +0 -15
- package/runner/index.js.map +0 -1
- package/runner/phase.d.ts +0 -45
- package/runner/phase.d.ts.map +0 -1
- package/runner/phase.js +0 -79
- package/runner/phase.js.map +0 -1
- package/runner/shared.d.ts +0 -31
- package/runner/shared.d.ts.map +0 -1
- package/runner/shared.js +0 -55
- package/runner/shared.js.map +0 -1
- package/runner/useDeleteRunner.d.ts +0 -36
- package/runner/useDeleteRunner.d.ts.map +0 -1
- package/runner/useDeleteRunner.js +0 -42
- package/runner/useDeleteRunner.js.map +0 -1
- package/runner/useLaunchLocalRunner.d.ts +0 -93
- package/runner/useLaunchLocalRunner.d.ts.map +0 -1
- package/runner/useLaunchLocalRunner.js +0 -82
- package/runner/useLaunchLocalRunner.js.map +0 -1
- package/runner/useRunner.d.ts +0 -37
- package/runner/useRunner.d.ts.map +0 -1
- package/runner/useRunner.js +0 -24
- package/runner/useRunner.js.map +0 -1
- package/runner/useRunnerCredential.d.ts +0 -66
- package/runner/useRunnerCredential.d.ts.map +0 -1
- package/runner/useRunnerCredential.js +0 -50
- package/runner/useRunnerCredential.js.map +0 -1
- package/runner/useRunnerFileBrowser.d.ts +0 -78
- package/runner/useRunnerFileBrowser.d.ts.map +0 -1
- package/runner/useRunnerFileBrowser.js +0 -215
- package/runner/useRunnerFileBrowser.js.map +0 -1
- package/runner/useRunnerList.d.ts +0 -70
- package/runner/useRunnerList.d.ts.map +0 -1
- package/runner/useRunnerList.js +0 -43
- package/runner/useRunnerList.js.map +0 -1
- package/runner/useStopRunner.d.ts +0 -53
- package/runner/useStopRunner.d.ts.map +0 -1
- package/runner/useStopRunner.js +0 -50
- package/runner/useStopRunner.js.map +0 -1
- package/src/runner/RunnerDetailView.tsx +0 -410
- package/src/runner/RunnerFileBrowser.tsx +0 -603
- package/src/runner/RunnerListPanel.tsx +0 -761
- package/src/runner/RunnerPicker.tsx +0 -321
- package/src/runner/WorkspaceRunnerSelector.tsx +0 -180
- package/src/runner/__tests__/phase.test.ts +0 -39
- package/src/runner/__tests__/useDeleteRunner.test.tsx +0 -150
- package/src/runner/__tests__/useLaunchLocalRunner.test.tsx +0 -248
- package/src/runner/__tests__/useRunnerFileBrowser.test.tsx +0 -256
- package/src/runner/__tests__/useRunnerList.test.tsx +0 -96
- package/src/runner/__tests__/useStopRunner.test.tsx +0 -154
- package/src/runner/index.ts +0 -65
- package/src/runner/phase.ts +0 -84
- package/src/runner/shared.tsx +0 -124
- package/src/runner/useDeleteRunner.ts +0 -67
- package/src/runner/useLaunchLocalRunner.ts +0 -156
- package/src/runner/useRunner.ts +0 -59
- package/src/runner/useRunnerCredential.ts +0 -89
- package/src/runner/useRunnerFileBrowser.ts +0 -344
- package/src/runner/useRunnerList.ts +0 -106
- package/src/runner/useStopRunner.ts +0 -92
- package/src/workflow/CanvasTaskNode.tsx +0 -372
- package/src/workflow/WorkflowTopologyGraph.tsx +0 -250
- package/workflow/CanvasTaskNode.d.ts +0 -21
- package/workflow/CanvasTaskNode.d.ts.map +0 -1
- package/workflow/CanvasTaskNode.js +0 -125
- package/workflow/CanvasTaskNode.js.map +0 -1
- package/workflow/WorkflowTopologyGraph.d.ts +0 -22
- package/workflow/WorkflowTopologyGraph.d.ts.map +0 -1
- package/workflow/WorkflowTopologyGraph.js +0 -123
- package/workflow/WorkflowTopologyGraph.js.map +0 -1
|
@@ -0,0 +1,1187 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import type { WorkflowExecutionEvent } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/event_pb";
|
|
3
|
+
import type { WorkflowTask } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
|
|
4
|
+
import type { DerivedTaskState } from "../../internal/store/workflow-execution-event-store";
|
|
5
|
+
import { deriveTaskDetail } from "../execution-inspector/derive-task-detail";
|
|
6
|
+
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// Helpers
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
function makeEvent(
|
|
12
|
+
taskName: string,
|
|
13
|
+
seq: number,
|
|
14
|
+
occurredAt: string,
|
|
15
|
+
payload: { case: string; value: unknown },
|
|
16
|
+
): WorkflowExecutionEvent {
|
|
17
|
+
return {
|
|
18
|
+
eventId: `evt-${seq}`,
|
|
19
|
+
eventType: 0,
|
|
20
|
+
sequenceNumber: BigInt(seq),
|
|
21
|
+
occurredAt,
|
|
22
|
+
taskName,
|
|
23
|
+
payload,
|
|
24
|
+
$typeName:
|
|
25
|
+
"ai.stigmer.agentic.workflowexecution.v1.WorkflowExecutionEvent",
|
|
26
|
+
$unknown: undefined,
|
|
27
|
+
} as unknown as WorkflowExecutionEvent;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function makeSnapshot(overrides: Partial<WorkflowTask>): WorkflowTask {
|
|
31
|
+
return {
|
|
32
|
+
taskId: "task-1",
|
|
33
|
+
taskName: "my-task",
|
|
34
|
+
taskType: 0,
|
|
35
|
+
status: 0,
|
|
36
|
+
startedAt: "",
|
|
37
|
+
completedAt: "",
|
|
38
|
+
error: "",
|
|
39
|
+
artifactIds: [],
|
|
40
|
+
costMicros: BigInt(0),
|
|
41
|
+
inputTokens: BigInt(0),
|
|
42
|
+
outputTokens: BigInt(0),
|
|
43
|
+
$typeName: "ai.stigmer.agentic.workflowexecution.v1.WorkflowTask",
|
|
44
|
+
$unknown: undefined,
|
|
45
|
+
...overrides,
|
|
46
|
+
} as unknown as WorkflowTask;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function makeDerived(overrides: Partial<DerivedTaskState>): DerivedTaskState {
|
|
50
|
+
return {
|
|
51
|
+
taskName: "my-task",
|
|
52
|
+
taskKind: 0 as any,
|
|
53
|
+
status: "pending",
|
|
54
|
+
durationMs: 0,
|
|
55
|
+
costMicros: BigInt(0),
|
|
56
|
+
tokensUsed: BigInt(0),
|
|
57
|
+
attemptNumber: 1,
|
|
58
|
+
error: "",
|
|
59
|
+
childExecutionId: "",
|
|
60
|
+
agentSlug: "",
|
|
61
|
+
currentToolName: "",
|
|
62
|
+
messagesCount: 0,
|
|
63
|
+
toolCallsCount: 0,
|
|
64
|
+
...overrides,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
// Tests
|
|
70
|
+
// ---------------------------------------------------------------------------
|
|
71
|
+
|
|
72
|
+
describe("deriveTaskDetail", () => {
|
|
73
|
+
// 1. Returns null when no data
|
|
74
|
+
it("returns null when no events, no snapshot, and no derived state", () => {
|
|
75
|
+
const result = deriveTaskDetail("missing-task", [], undefined, undefined);
|
|
76
|
+
expect(result).toBeNull();
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("returns null when events exist but none match the task name", () => {
|
|
80
|
+
const events = [
|
|
81
|
+
makeEvent("other-task", 1, "2026-01-01T00:00:00Z", {
|
|
82
|
+
case: "taskStarted",
|
|
83
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
84
|
+
}),
|
|
85
|
+
];
|
|
86
|
+
const result = deriveTaskDetail("missing-task", events, undefined, undefined);
|
|
87
|
+
expect(result).toBeNull();
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// 2. Completed task with snapshot
|
|
91
|
+
it("returns a completed task detail from snapshot with startedAt/completedAt", () => {
|
|
92
|
+
const snapshot = makeSnapshot({
|
|
93
|
+
startedAt: "2026-01-01T00:00:00Z",
|
|
94
|
+
completedAt: "2026-01-01T00:00:05Z",
|
|
95
|
+
});
|
|
96
|
+
const derived = makeDerived({
|
|
97
|
+
status: "completed",
|
|
98
|
+
durationMs: 5000,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
102
|
+
|
|
103
|
+
expect(result).not.toBeNull();
|
|
104
|
+
expect(result!.taskName).toBe("my-task");
|
|
105
|
+
expect(result!.status).toBe("completed");
|
|
106
|
+
expect(result!.summary.startedAt).toBe("2026-01-01T00:00:00Z");
|
|
107
|
+
expect(result!.summary.completedAt).toBe("2026-01-01T00:00:05Z");
|
|
108
|
+
expect(result!.summary.durationMs).toBe(5000);
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// 3. Completed task with cost and tokens from snapshot
|
|
112
|
+
it("populates cost and tokens from snapshot", () => {
|
|
113
|
+
const snapshot = makeSnapshot({
|
|
114
|
+
costMicros: BigInt(15000),
|
|
115
|
+
inputTokens: BigInt(500),
|
|
116
|
+
outputTokens: BigInt(300),
|
|
117
|
+
});
|
|
118
|
+
const derived = makeDerived({ status: "completed" });
|
|
119
|
+
|
|
120
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
121
|
+
|
|
122
|
+
expect(result).not.toBeNull();
|
|
123
|
+
expect(result!.summary.costMicros).toBe(BigInt(15000));
|
|
124
|
+
expect(result!.summary.inputTokens).toBe(BigInt(500));
|
|
125
|
+
expect(result!.summary.outputTokens).toBe(BigInt(300));
|
|
126
|
+
expect(result!.summary.totalTokens).toBe(BigInt(800));
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
// 4. Input from snapshot
|
|
130
|
+
it("derives input from snapshot when snapshot.input is a JsonObject", () => {
|
|
131
|
+
const snapshot = makeSnapshot({
|
|
132
|
+
input: { prompt: "hello" } as any,
|
|
133
|
+
artifactIds: ["art-1", "art-2"],
|
|
134
|
+
});
|
|
135
|
+
const derived = makeDerived({ status: "completed" });
|
|
136
|
+
|
|
137
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
138
|
+
|
|
139
|
+
expect(result).not.toBeNull();
|
|
140
|
+
expect(result!.input).not.toBeNull();
|
|
141
|
+
expect(result!.input!.source).toBe("snapshot");
|
|
142
|
+
expect(result!.input!.data).toEqual({ prompt: "hello" });
|
|
143
|
+
expect(result!.input!.artifactIds).toEqual(["art-1", "art-2"]);
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
// 5. Output from snapshot
|
|
147
|
+
it("derives output from snapshot when snapshot.output is a JsonObject", () => {
|
|
148
|
+
const snapshot = makeSnapshot({
|
|
149
|
+
output: { result: "world" } as any,
|
|
150
|
+
});
|
|
151
|
+
const derived = makeDerived({ status: "completed" });
|
|
152
|
+
|
|
153
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
154
|
+
|
|
155
|
+
expect(result).not.toBeNull();
|
|
156
|
+
expect(result!.output).not.toBeNull();
|
|
157
|
+
expect(result!.output!.source).toBe("snapshot");
|
|
158
|
+
expect(result!.output!.data).toEqual({ result: "world" });
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// 6. Input from event summary fallback
|
|
162
|
+
it("derives input from taskStarted inputSummary when snapshot has no input", () => {
|
|
163
|
+
const snapshot = makeSnapshot({});
|
|
164
|
+
const derived = makeDerived({ status: "completed" });
|
|
165
|
+
const events = [
|
|
166
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
167
|
+
case: "taskStarted",
|
|
168
|
+
value: {
|
|
169
|
+
taskKind: 1,
|
|
170
|
+
attemptNumber: 1,
|
|
171
|
+
inputSummary: { truncated: "input data" },
|
|
172
|
+
},
|
|
173
|
+
}),
|
|
174
|
+
];
|
|
175
|
+
|
|
176
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
177
|
+
|
|
178
|
+
expect(result).not.toBeNull();
|
|
179
|
+
expect(result!.input).not.toBeNull();
|
|
180
|
+
expect(result!.input!.source).toBe("event-summary");
|
|
181
|
+
expect(result!.input!.data).toEqual({ truncated: "input data" });
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
// 7. Output from event summary fallback
|
|
185
|
+
it("derives output from taskCompleted outputSummary when snapshot has no output", () => {
|
|
186
|
+
const snapshot = makeSnapshot({});
|
|
187
|
+
const derived = makeDerived({ status: "completed" });
|
|
188
|
+
const events = [
|
|
189
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
190
|
+
case: "taskCompleted",
|
|
191
|
+
value: {
|
|
192
|
+
taskKind: 1,
|
|
193
|
+
durationMs: BigInt(1000),
|
|
194
|
+
costMicros: BigInt(0),
|
|
195
|
+
tokensUsed: BigInt(0),
|
|
196
|
+
outputSummary: { answer: "42" },
|
|
197
|
+
},
|
|
198
|
+
}),
|
|
199
|
+
];
|
|
200
|
+
|
|
201
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
202
|
+
|
|
203
|
+
expect(result).not.toBeNull();
|
|
204
|
+
expect(result!.output).not.toBeNull();
|
|
205
|
+
expect(result!.output!.source).toBe("event-summary");
|
|
206
|
+
expect(result!.output!.data).toEqual({ answer: "42" });
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
// 8. No input/output available
|
|
210
|
+
it("returns null for input and output when neither snapshot nor events have data", () => {
|
|
211
|
+
const snapshot = makeSnapshot({});
|
|
212
|
+
const derived = makeDerived({ status: "running" });
|
|
213
|
+
|
|
214
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
215
|
+
|
|
216
|
+
expect(result).not.toBeNull();
|
|
217
|
+
expect(result!.input).toBeNull();
|
|
218
|
+
expect(result!.output).toBeNull();
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
// 9. Failed task with error
|
|
222
|
+
it("populates error detail from the latest taskFailed event", () => {
|
|
223
|
+
const derived = makeDerived({ status: "failed" });
|
|
224
|
+
const events = [
|
|
225
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
226
|
+
case: "taskStarted",
|
|
227
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
228
|
+
}),
|
|
229
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
230
|
+
case: "taskFailed",
|
|
231
|
+
value: {
|
|
232
|
+
taskKind: 1,
|
|
233
|
+
attemptNumber: 1,
|
|
234
|
+
maxAttempts: 3,
|
|
235
|
+
willRetry: false,
|
|
236
|
+
error: "connection timeout",
|
|
237
|
+
durationMs: BigInt(1000),
|
|
238
|
+
},
|
|
239
|
+
}),
|
|
240
|
+
];
|
|
241
|
+
|
|
242
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
243
|
+
|
|
244
|
+
expect(result).not.toBeNull();
|
|
245
|
+
expect(result!.error).not.toBeNull();
|
|
246
|
+
expect(result!.error!.message).toBe("connection timeout");
|
|
247
|
+
expect(result!.error!.attemptNumber).toBe(1);
|
|
248
|
+
expect(result!.error!.maxAttempts).toBe(3);
|
|
249
|
+
expect(result!.error!.willRetry).toBe(false);
|
|
250
|
+
expect(result!.error!.durationMs).toBe(1000);
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
it("uses the latest failure when multiple taskFailed events exist", () => {
|
|
254
|
+
const derived = makeDerived({ status: "failed" });
|
|
255
|
+
const events = [
|
|
256
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
257
|
+
case: "taskFailed",
|
|
258
|
+
value: {
|
|
259
|
+
taskKind: 1,
|
|
260
|
+
attemptNumber: 1,
|
|
261
|
+
maxAttempts: 3,
|
|
262
|
+
willRetry: true,
|
|
263
|
+
error: "first error",
|
|
264
|
+
durationMs: BigInt(500),
|
|
265
|
+
},
|
|
266
|
+
}),
|
|
267
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:05Z", {
|
|
268
|
+
case: "taskFailed",
|
|
269
|
+
value: {
|
|
270
|
+
taskKind: 1,
|
|
271
|
+
attemptNumber: 2,
|
|
272
|
+
maxAttempts: 3,
|
|
273
|
+
willRetry: false,
|
|
274
|
+
error: "second error",
|
|
275
|
+
durationMs: BigInt(700),
|
|
276
|
+
},
|
|
277
|
+
}),
|
|
278
|
+
];
|
|
279
|
+
|
|
280
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
281
|
+
|
|
282
|
+
expect(result!.error!.message).toBe("second error");
|
|
283
|
+
expect(result!.error!.attemptNumber).toBe(2);
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
// 10. Retried task
|
|
287
|
+
it("builds retry history from multiple starts, failures, and retryings", () => {
|
|
288
|
+
const derived = makeDerived({
|
|
289
|
+
status: "completed",
|
|
290
|
+
attemptNumber: 3,
|
|
291
|
+
});
|
|
292
|
+
const events = [
|
|
293
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
294
|
+
case: "taskStarted",
|
|
295
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
296
|
+
}),
|
|
297
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
298
|
+
case: "taskFailed",
|
|
299
|
+
value: {
|
|
300
|
+
taskKind: 1,
|
|
301
|
+
attemptNumber: 1,
|
|
302
|
+
maxAttempts: 3,
|
|
303
|
+
willRetry: true,
|
|
304
|
+
error: "attempt 1 failed",
|
|
305
|
+
durationMs: BigInt(1000),
|
|
306
|
+
},
|
|
307
|
+
}),
|
|
308
|
+
makeEvent("my-task", 3, "2026-01-01T00:00:02Z", {
|
|
309
|
+
case: "taskRetrying",
|
|
310
|
+
value: { failedAttempt: 1, nextAttempt: 2, delayMs: BigInt(500) },
|
|
311
|
+
}),
|
|
312
|
+
makeEvent("my-task", 4, "2026-01-01T00:00:03Z", {
|
|
313
|
+
case: "taskStarted",
|
|
314
|
+
value: { taskKind: 1, attemptNumber: 2 },
|
|
315
|
+
}),
|
|
316
|
+
makeEvent("my-task", 5, "2026-01-01T00:00:04Z", {
|
|
317
|
+
case: "taskFailed",
|
|
318
|
+
value: {
|
|
319
|
+
taskKind: 1,
|
|
320
|
+
attemptNumber: 2,
|
|
321
|
+
maxAttempts: 3,
|
|
322
|
+
willRetry: true,
|
|
323
|
+
error: "attempt 2 failed",
|
|
324
|
+
durationMs: BigInt(800),
|
|
325
|
+
},
|
|
326
|
+
}),
|
|
327
|
+
makeEvent("my-task", 6, "2026-01-01T00:00:05Z", {
|
|
328
|
+
case: "taskRetrying",
|
|
329
|
+
value: { failedAttempt: 2, nextAttempt: 3, delayMs: BigInt(1000) },
|
|
330
|
+
}),
|
|
331
|
+
makeEvent("my-task", 7, "2026-01-01T00:00:06Z", {
|
|
332
|
+
case: "taskStarted",
|
|
333
|
+
value: { taskKind: 1, attemptNumber: 3 },
|
|
334
|
+
}),
|
|
335
|
+
makeEvent("my-task", 8, "2026-01-01T00:00:08Z", {
|
|
336
|
+
case: "taskCompleted",
|
|
337
|
+
value: {
|
|
338
|
+
taskKind: 1,
|
|
339
|
+
durationMs: BigInt(2000),
|
|
340
|
+
costMicros: BigInt(100),
|
|
341
|
+
tokensUsed: BigInt(50),
|
|
342
|
+
},
|
|
343
|
+
}),
|
|
344
|
+
];
|
|
345
|
+
|
|
346
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
347
|
+
|
|
348
|
+
expect(result).not.toBeNull();
|
|
349
|
+
expect(result!.retries).not.toBeNull();
|
|
350
|
+
expect(result!.retries!.currentAttempt).toBe(3);
|
|
351
|
+
expect(result!.retries!.attempts).toHaveLength(3);
|
|
352
|
+
|
|
353
|
+
const [a1, a2, a3] = result!.retries!.attempts;
|
|
354
|
+
|
|
355
|
+
expect(a1.attemptNumber).toBe(1);
|
|
356
|
+
expect(a1.status).toBe("failed");
|
|
357
|
+
expect(a1.error).toBe("attempt 1 failed");
|
|
358
|
+
expect(a1.durationMs).toBe(1000);
|
|
359
|
+
expect(a1.delayBeforeMs).toBe(500);
|
|
360
|
+
|
|
361
|
+
expect(a2.attemptNumber).toBe(2);
|
|
362
|
+
expect(a2.status).toBe("failed");
|
|
363
|
+
expect(a2.error).toBe("attempt 2 failed");
|
|
364
|
+
expect(a2.durationMs).toBe(800);
|
|
365
|
+
expect(a2.delayBeforeMs).toBe(1000);
|
|
366
|
+
|
|
367
|
+
expect(a3.attemptNumber).toBe(3);
|
|
368
|
+
expect(a3.status).toBe("completed");
|
|
369
|
+
expect(a3.error).toBe("");
|
|
370
|
+
expect(a3.durationMs).toBe(2000);
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
it("returns null retries when only a single start and no failures", () => {
|
|
374
|
+
const events = [
|
|
375
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
376
|
+
case: "taskStarted",
|
|
377
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
378
|
+
}),
|
|
379
|
+
];
|
|
380
|
+
const derived = makeDerived({ status: "running" });
|
|
381
|
+
|
|
382
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
383
|
+
|
|
384
|
+
expect(result).not.toBeNull();
|
|
385
|
+
expect(result!.retries).toBeNull();
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
// 11. Agent call task — full lifecycle
|
|
389
|
+
it("builds agentCall from agentCallStarted + agentCallProgress + agentCallCompleted", () => {
|
|
390
|
+
const derived = makeDerived({ status: "completed" });
|
|
391
|
+
const events = [
|
|
392
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
393
|
+
case: "agentCallStarted",
|
|
394
|
+
value: {
|
|
395
|
+
childExecutionId: "exec-child-1",
|
|
396
|
+
agentSlug: "my-agent",
|
|
397
|
+
messageSummary: "summarized",
|
|
398
|
+
},
|
|
399
|
+
}),
|
|
400
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
401
|
+
case: "agentCallProgress",
|
|
402
|
+
value: {
|
|
403
|
+
childExecutionId: "exec-child-1",
|
|
404
|
+
agentPhase: 2,
|
|
405
|
+
currentToolName: "web-search",
|
|
406
|
+
tokensConsumed: BigInt(1000),
|
|
407
|
+
messagesCount: 5,
|
|
408
|
+
toolCallsCount: 3,
|
|
409
|
+
},
|
|
410
|
+
}),
|
|
411
|
+
makeEvent("my-task", 3, "2026-01-01T00:00:05Z", {
|
|
412
|
+
case: "agentCallCompleted",
|
|
413
|
+
value: {
|
|
414
|
+
durationMs: BigInt(5000),
|
|
415
|
+
tokensConsumed: BigInt(2000),
|
|
416
|
+
costMicros: BigInt(500),
|
|
417
|
+
error: "",
|
|
418
|
+
agentPhase: 3,
|
|
419
|
+
},
|
|
420
|
+
}),
|
|
421
|
+
];
|
|
422
|
+
|
|
423
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
424
|
+
|
|
425
|
+
expect(result).not.toBeNull();
|
|
426
|
+
expect(result!.agentCall).not.toBeNull();
|
|
427
|
+
expect(result!.agentCall!.childExecutionId).toBe("exec-child-1");
|
|
428
|
+
expect(result!.agentCall!.agentSlug).toBe("my-agent");
|
|
429
|
+
expect(result!.agentCall!.agentPhase).toBe("3");
|
|
430
|
+
expect(result!.agentCall!.messagesCount).toBe(5);
|
|
431
|
+
expect(result!.agentCall!.toolCallsCount).toBe(3);
|
|
432
|
+
expect(result!.agentCall!.tokensConsumed).toBe(BigInt(2000));
|
|
433
|
+
expect(result!.agentCall!.costMicros).toBe(BigInt(500));
|
|
434
|
+
expect(result!.agentCall!.error).toBe("");
|
|
435
|
+
expect(result!.agentCall!.currentToolName).toBe("web-search");
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
// 12. Agent call without completion
|
|
439
|
+
it("builds partial agentCall from agentCallStarted + agentCallProgress only", () => {
|
|
440
|
+
const derived = makeDerived({ status: "running" });
|
|
441
|
+
const events = [
|
|
442
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
443
|
+
case: "agentCallStarted",
|
|
444
|
+
value: {
|
|
445
|
+
childExecutionId: "exec-child-2",
|
|
446
|
+
agentSlug: "partial-agent",
|
|
447
|
+
messageSummary: "",
|
|
448
|
+
},
|
|
449
|
+
}),
|
|
450
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
451
|
+
case: "agentCallProgress",
|
|
452
|
+
value: {
|
|
453
|
+
childExecutionId: "exec-child-2",
|
|
454
|
+
agentPhase: 1,
|
|
455
|
+
currentToolName: "file-read",
|
|
456
|
+
tokensConsumed: BigInt(750),
|
|
457
|
+
messagesCount: 2,
|
|
458
|
+
toolCallsCount: 1,
|
|
459
|
+
},
|
|
460
|
+
}),
|
|
461
|
+
];
|
|
462
|
+
|
|
463
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
464
|
+
|
|
465
|
+
expect(result).not.toBeNull();
|
|
466
|
+
expect(result!.agentCall).not.toBeNull();
|
|
467
|
+
expect(result!.agentCall!.childExecutionId).toBe("exec-child-2");
|
|
468
|
+
expect(result!.agentCall!.agentSlug).toBe("partial-agent");
|
|
469
|
+
expect(result!.agentCall!.agentPhase).toBe("1");
|
|
470
|
+
expect(result!.agentCall!.tokensConsumed).toBe(BigInt(750));
|
|
471
|
+
expect(result!.agentCall!.costMicros).toBe(BigInt(0));
|
|
472
|
+
expect(result!.agentCall!.error).toBe("");
|
|
473
|
+
expect(result!.agentCall!.currentToolName).toBe("file-read");
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
it("uses childExecutionId from agentCallProgress when agentCallStarted has empty ID", () => {
|
|
477
|
+
const derived = makeDerived({ status: "running" });
|
|
478
|
+
const events = [
|
|
479
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
480
|
+
case: "agentCallStarted",
|
|
481
|
+
value: {
|
|
482
|
+
childExecutionId: "",
|
|
483
|
+
agentSlug: "my-agent",
|
|
484
|
+
messageSummary: "",
|
|
485
|
+
},
|
|
486
|
+
}),
|
|
487
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
488
|
+
case: "agentCallProgress",
|
|
489
|
+
value: {
|
|
490
|
+
childExecutionId: "aex_late_arrival",
|
|
491
|
+
agentPhase: 1,
|
|
492
|
+
currentToolName: "web-search",
|
|
493
|
+
tokensConsumed: BigInt(500),
|
|
494
|
+
messagesCount: 3,
|
|
495
|
+
toolCallsCount: 1,
|
|
496
|
+
},
|
|
497
|
+
}),
|
|
498
|
+
];
|
|
499
|
+
|
|
500
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
501
|
+
expect(result!.agentCall).not.toBeNull();
|
|
502
|
+
expect(result!.agentCall!.childExecutionId).toBe("aex_late_arrival");
|
|
503
|
+
expect(result!.agentCall!.agentSlug).toBe("my-agent");
|
|
504
|
+
expect(result!.agentCall!.currentToolName).toBe("web-search");
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
it("returns null agentCall when no agentCallStarted event exists", () => {
|
|
508
|
+
const derived = makeDerived({ status: "running" });
|
|
509
|
+
const events = [
|
|
510
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
511
|
+
case: "taskStarted",
|
|
512
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
513
|
+
}),
|
|
514
|
+
];
|
|
515
|
+
|
|
516
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
517
|
+
expect(result!.agentCall).toBeNull();
|
|
518
|
+
});
|
|
519
|
+
|
|
520
|
+
// 12b. Snapshot metadata fallback — when agent_call events are missing
|
|
521
|
+
// (e.g., transient emission failure) but the task snapshot metadata
|
|
522
|
+
// contains agent_execution_id, buildAgentCall() falls back to it.
|
|
523
|
+
it("builds agentCall from snapshot metadata when no agent events exist (fallback path)", () => {
|
|
524
|
+
const snapshot = makeSnapshot({
|
|
525
|
+
taskName: "my-task",
|
|
526
|
+
metadata: { agent_execution_id: "aex_01abc123", token_attribution: "total_only", tool_call_count: 7 } as any,
|
|
527
|
+
});
|
|
528
|
+
const derived = makeDerived({
|
|
529
|
+
status: "completed",
|
|
530
|
+
taskKind: 13 as any, // WorkflowTaskKind.agent_call
|
|
531
|
+
});
|
|
532
|
+
const events = [
|
|
533
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
534
|
+
case: "taskStarted",
|
|
535
|
+
value: { taskKind: 13, attemptNumber: 1 },
|
|
536
|
+
}),
|
|
537
|
+
makeEvent("my-task", 2, "2026-01-01T00:01:00Z", {
|
|
538
|
+
case: "taskCompleted",
|
|
539
|
+
value: {
|
|
540
|
+
taskKind: 13,
|
|
541
|
+
durationMs: BigInt(60000),
|
|
542
|
+
costMicros: BigInt(5000),
|
|
543
|
+
tokensUsed: BigInt(10000),
|
|
544
|
+
},
|
|
545
|
+
}),
|
|
546
|
+
];
|
|
547
|
+
|
|
548
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
549
|
+
|
|
550
|
+
expect(result!.agentCall).not.toBeNull();
|
|
551
|
+
expect(result!.agentCall!.childExecutionId).toBe("aex_01abc123");
|
|
552
|
+
expect(result!.agentCall!.toolCallsCount).toBe(7);
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
it("returns null agentCall for non-agent tasks even when snapshot has metadata", () => {
|
|
556
|
+
const snapshot = makeSnapshot({
|
|
557
|
+
taskName: "my-task",
|
|
558
|
+
metadata: { some_key: "some_value" } as any,
|
|
559
|
+
});
|
|
560
|
+
const derived = makeDerived({
|
|
561
|
+
status: "completed",
|
|
562
|
+
taskKind: 3 as any, // http_call
|
|
563
|
+
});
|
|
564
|
+
const events = [
|
|
565
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
566
|
+
case: "taskStarted",
|
|
567
|
+
value: { taskKind: 3, attemptNumber: 1 },
|
|
568
|
+
}),
|
|
569
|
+
makeEvent("my-task", 2, "2026-01-01T00:01:00Z", {
|
|
570
|
+
case: "taskCompleted",
|
|
571
|
+
value: {
|
|
572
|
+
taskKind: 3,
|
|
573
|
+
durationMs: BigInt(500),
|
|
574
|
+
costMicros: BigInt(0),
|
|
575
|
+
tokensUsed: BigInt(0),
|
|
576
|
+
},
|
|
577
|
+
}),
|
|
578
|
+
];
|
|
579
|
+
|
|
580
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
581
|
+
expect(result!.agentCall).toBeNull();
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
// 13. Approval requested
|
|
585
|
+
it("populates approval from approvalRequested event", () => {
|
|
586
|
+
const derived = makeDerived({ status: "waiting_approval" });
|
|
587
|
+
const events = [
|
|
588
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
589
|
+
case: "approvalRequested",
|
|
590
|
+
value: {
|
|
591
|
+
prompt: "Deploy to production?",
|
|
592
|
+
approvers: ["admin@co.com", "lead@co.com"],
|
|
593
|
+
timeoutSeconds: 3600,
|
|
594
|
+
outcomes: [
|
|
595
|
+
{ name: "approve", label: "Approve" },
|
|
596
|
+
{ name: "reject", label: "Reject" },
|
|
597
|
+
],
|
|
598
|
+
formSchema: { type: "object" },
|
|
599
|
+
},
|
|
600
|
+
}),
|
|
601
|
+
];
|
|
602
|
+
|
|
603
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
604
|
+
|
|
605
|
+
expect(result).not.toBeNull();
|
|
606
|
+
expect(result!.approval).not.toBeNull();
|
|
607
|
+
expect(result!.approval!.prompt).toBe("Deploy to production?");
|
|
608
|
+
expect(result!.approval!.approvers).toEqual(["admin@co.com", "lead@co.com"]);
|
|
609
|
+
expect(result!.approval!.outcomes).toEqual([
|
|
610
|
+
{ name: "approve", label: "Approve" },
|
|
611
|
+
{ name: "reject", label: "Reject" },
|
|
612
|
+
]);
|
|
613
|
+
expect(result!.approval!.formSchema).toEqual({ type: "object" });
|
|
614
|
+
expect(result!.approval!.timeoutSeconds).toBe(3600);
|
|
615
|
+
expect(result!.approval!.decision).toBeNull();
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
// 14. Approval resolved — event-only (the brief "finalizing" window before
|
|
619
|
+
// the task-output snapshot reflects the decision)
|
|
620
|
+
it("populates approval decision from the event when the task output is not yet available", () => {
|
|
621
|
+
const derived = makeDerived({ status: "running" });
|
|
622
|
+
const events = [
|
|
623
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
624
|
+
case: "approvalRequested",
|
|
625
|
+
value: {
|
|
626
|
+
prompt: "Deploy?",
|
|
627
|
+
approvers: ["admin"],
|
|
628
|
+
timeoutSeconds: 60,
|
|
629
|
+
outcomes: [{ name: "approve", label: "Approve" }],
|
|
630
|
+
formSchema: null,
|
|
631
|
+
},
|
|
632
|
+
}),
|
|
633
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:30Z", {
|
|
634
|
+
case: "approvalResolved",
|
|
635
|
+
value: {
|
|
636
|
+
action: 1,
|
|
637
|
+
resolvedBy: "admin",
|
|
638
|
+
comment: "from event",
|
|
639
|
+
waitDurationMs: BigInt(30000),
|
|
640
|
+
},
|
|
641
|
+
}),
|
|
642
|
+
];
|
|
643
|
+
|
|
644
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
645
|
+
|
|
646
|
+
expect(result!.approval).not.toBeNull();
|
|
647
|
+
expect(result!.approval!.decision).not.toBeNull();
|
|
648
|
+
// No task output snapshot yet: outcome is empty (consumers show a
|
|
649
|
+
// "finalizing" affordance), reviewer/comment come from the event.
|
|
650
|
+
expect(result!.approval!.decision!.outcome).toBe("");
|
|
651
|
+
expect(result!.approval!.decision!.reviewer).toBe("admin");
|
|
652
|
+
expect(result!.approval!.decision!.comment).toBe("from event");
|
|
653
|
+
expect(result!.approval!.decision!.waitDurationMs).toBe(30000);
|
|
654
|
+
expect(result!.approval!.decision!.formData).toBeNull();
|
|
655
|
+
expect(result!.approval!.decision!.autoResolved).toBe(false);
|
|
656
|
+
});
|
|
657
|
+
|
|
658
|
+
// 14b. Approval resolved — sourced from the canonical task-output record
|
|
659
|
+
it("sources the approval decision from the task-output snapshot", () => {
|
|
660
|
+
const derived = makeDerived({ status: "completed" });
|
|
661
|
+
const events = [
|
|
662
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
663
|
+
case: "approvalRequested",
|
|
664
|
+
value: {
|
|
665
|
+
prompt: "Deploy?",
|
|
666
|
+
approvers: ["admin"],
|
|
667
|
+
timeoutSeconds: 60,
|
|
668
|
+
outcomes: [{ name: "approve", label: "Approve Plan" }],
|
|
669
|
+
formSchema: null,
|
|
670
|
+
},
|
|
671
|
+
}),
|
|
672
|
+
];
|
|
673
|
+
const snapshot = makeSnapshot({
|
|
674
|
+
output: {
|
|
675
|
+
outcome: "approve",
|
|
676
|
+
reviewer: "alice",
|
|
677
|
+
responded_at: "2026-01-01T00:00:45Z",
|
|
678
|
+
comment: "ship it",
|
|
679
|
+
form_data: { feedback: "great plan" },
|
|
680
|
+
} as unknown as WorkflowTask["output"],
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
684
|
+
|
|
685
|
+
expect(result!.approval!.decision).not.toBeNull();
|
|
686
|
+
expect(result!.approval!.decision!.outcome).toBe("approve");
|
|
687
|
+
expect(result!.approval!.decision!.reviewer).toBe("alice");
|
|
688
|
+
expect(result!.approval!.decision!.respondedAt).toBe("2026-01-01T00:00:45Z");
|
|
689
|
+
expect(result!.approval!.decision!.comment).toBe("ship it");
|
|
690
|
+
expect(result!.approval!.decision!.formData).toEqual({ feedback: "great plan" });
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
// 14c. Snapshot wins over event for overlapping fields
|
|
694
|
+
it("prefers the task-output snapshot over the event for overlapping fields", () => {
|
|
695
|
+
const derived = makeDerived({ status: "completed" });
|
|
696
|
+
const events = [
|
|
697
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
698
|
+
case: "approvalRequested",
|
|
699
|
+
value: {
|
|
700
|
+
prompt: "Deploy?",
|
|
701
|
+
approvers: [],
|
|
702
|
+
timeoutSeconds: 0,
|
|
703
|
+
outcomes: [],
|
|
704
|
+
formSchema: null,
|
|
705
|
+
},
|
|
706
|
+
}),
|
|
707
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:30Z", {
|
|
708
|
+
case: "approvalResolved",
|
|
709
|
+
value: {
|
|
710
|
+
action: 1,
|
|
711
|
+
resolvedBy: "bot",
|
|
712
|
+
comment: "from event",
|
|
713
|
+
waitDurationMs: BigInt(12000),
|
|
714
|
+
},
|
|
715
|
+
}),
|
|
716
|
+
];
|
|
717
|
+
const snapshot = makeSnapshot({
|
|
718
|
+
output: {
|
|
719
|
+
outcome: "approve",
|
|
720
|
+
reviewer: "alice",
|
|
721
|
+
comment: "from snapshot",
|
|
722
|
+
} as unknown as WorkflowTask["output"],
|
|
723
|
+
});
|
|
724
|
+
|
|
725
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
726
|
+
|
|
727
|
+
expect(result!.approval!.decision!.outcome).toBe("approve");
|
|
728
|
+
expect(result!.approval!.decision!.reviewer).toBe("alice"); // snapshot wins
|
|
729
|
+
expect(result!.approval!.decision!.comment).toBe("from snapshot"); // snapshot wins
|
|
730
|
+
expect(result!.approval!.decision!.waitDurationMs).toBe(12000); // event fills the gap
|
|
731
|
+
});
|
|
732
|
+
|
|
733
|
+
// 14d. Auto-resolved + ignores internal routing keys
|
|
734
|
+
it("reads auto_resolved and ignores internal keys in the task output", () => {
|
|
735
|
+
const derived = makeDerived({ status: "completed" });
|
|
736
|
+
const events = [
|
|
737
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
738
|
+
case: "approvalRequested",
|
|
739
|
+
value: {
|
|
740
|
+
prompt: "Deploy?",
|
|
741
|
+
approvers: [],
|
|
742
|
+
timeoutSeconds: 0,
|
|
743
|
+
outcomes: [],
|
|
744
|
+
formSchema: null,
|
|
745
|
+
},
|
|
746
|
+
}),
|
|
747
|
+
];
|
|
748
|
+
const snapshot = makeSnapshot({
|
|
749
|
+
output: {
|
|
750
|
+
outcome: "approve",
|
|
751
|
+
auto_resolved: true,
|
|
752
|
+
__flow_directive__: "gatherMore",
|
|
753
|
+
} as unknown as WorkflowTask["output"],
|
|
754
|
+
});
|
|
755
|
+
|
|
756
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
757
|
+
|
|
758
|
+
expect(result!.approval!.decision!.outcome).toBe("approve");
|
|
759
|
+
expect(result!.approval!.decision!.autoResolved).toBe(true);
|
|
760
|
+
});
|
|
761
|
+
|
|
762
|
+
it("returns null approval when no approvalRequested event exists", () => {
|
|
763
|
+
const derived = makeDerived({ status: "running" });
|
|
764
|
+
const events = [
|
|
765
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
766
|
+
case: "taskStarted",
|
|
767
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
768
|
+
}),
|
|
769
|
+
];
|
|
770
|
+
|
|
771
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
772
|
+
expect(result!.approval).toBeNull();
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
// 15. Skipped task
|
|
776
|
+
it("handles skipped task with taskSkipped event", () => {
|
|
777
|
+
const derived = makeDerived({ status: "skipped" });
|
|
778
|
+
const events = [
|
|
779
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
780
|
+
case: "taskSkipped",
|
|
781
|
+
value: { taskKind: 2, reason: "condition not met" },
|
|
782
|
+
}),
|
|
783
|
+
];
|
|
784
|
+
|
|
785
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
786
|
+
|
|
787
|
+
expect(result).not.toBeNull();
|
|
788
|
+
expect(result!.status).toBe("skipped");
|
|
789
|
+
expect(result!.error).toBeNull();
|
|
790
|
+
});
|
|
791
|
+
|
|
792
|
+
// 16. Waiting approval status
|
|
793
|
+
it("reflects waiting_approval status from derived state", () => {
|
|
794
|
+
const derived = makeDerived({ status: "waiting_approval" });
|
|
795
|
+
|
|
796
|
+
const result = deriveTaskDetail("my-task", [], undefined, derived);
|
|
797
|
+
|
|
798
|
+
expect(result).not.toBeNull();
|
|
799
|
+
expect(result!.status).toBe("waiting_approval");
|
|
800
|
+
});
|
|
801
|
+
|
|
802
|
+
// 17. Event log filtering
|
|
803
|
+
it("filters eventLog to only contain events for the given task", () => {
|
|
804
|
+
const events = [
|
|
805
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
806
|
+
case: "taskStarted",
|
|
807
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
808
|
+
}),
|
|
809
|
+
makeEvent("other-task", 2, "2026-01-01T00:00:01Z", {
|
|
810
|
+
case: "taskStarted",
|
|
811
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
812
|
+
}),
|
|
813
|
+
makeEvent("my-task", 3, "2026-01-01T00:00:02Z", {
|
|
814
|
+
case: "taskCompleted",
|
|
815
|
+
value: {
|
|
816
|
+
taskKind: 1,
|
|
817
|
+
durationMs: BigInt(2000),
|
|
818
|
+
costMicros: BigInt(0),
|
|
819
|
+
tokensUsed: BigInt(0),
|
|
820
|
+
},
|
|
821
|
+
}),
|
|
822
|
+
];
|
|
823
|
+
const derived = makeDerived({ status: "completed" });
|
|
824
|
+
|
|
825
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
826
|
+
|
|
827
|
+
expect(result).not.toBeNull();
|
|
828
|
+
expect(result!.eventLog).toHaveLength(2);
|
|
829
|
+
expect(result!.eventLog.every((e) => e.taskName === "my-task")).toBe(true);
|
|
830
|
+
});
|
|
831
|
+
|
|
832
|
+
// 18. Summary prefers snapshot for tokens (split)
|
|
833
|
+
it("uses snapshot inputTokens + outputTokens when both are available", () => {
|
|
834
|
+
const snapshot = makeSnapshot({
|
|
835
|
+
inputTokens: BigInt(200),
|
|
836
|
+
outputTokens: BigInt(300),
|
|
837
|
+
});
|
|
838
|
+
const derived = makeDerived({
|
|
839
|
+
status: "completed",
|
|
840
|
+
tokensUsed: BigInt(999),
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
844
|
+
|
|
845
|
+
expect(result).not.toBeNull();
|
|
846
|
+
expect(result!.summary.inputTokens).toBe(BigInt(200));
|
|
847
|
+
expect(result!.summary.outputTokens).toBe(BigInt(300));
|
|
848
|
+
expect(result!.summary.totalTokens).toBe(BigInt(500));
|
|
849
|
+
});
|
|
850
|
+
|
|
851
|
+
// 19. Summary falls back to derived tokens
|
|
852
|
+
it("uses derived.tokensUsed as totalTokens when snapshot has zero tokens", () => {
|
|
853
|
+
const snapshot = makeSnapshot({
|
|
854
|
+
inputTokens: BigInt(0),
|
|
855
|
+
outputTokens: BigInt(0),
|
|
856
|
+
});
|
|
857
|
+
const derived = makeDerived({
|
|
858
|
+
status: "completed",
|
|
859
|
+
tokensUsed: BigInt(1234),
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
863
|
+
|
|
864
|
+
expect(result).not.toBeNull();
|
|
865
|
+
expect(result!.summary.inputTokens).toBe(BigInt(0));
|
|
866
|
+
expect(result!.summary.outputTokens).toBe(BigInt(0));
|
|
867
|
+
expect(result!.summary.totalTokens).toBe(BigInt(1234));
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
// ---------------------------------------------------------------------------
|
|
871
|
+
// Additional edge-case coverage
|
|
872
|
+
// ---------------------------------------------------------------------------
|
|
873
|
+
|
|
874
|
+
it("derives taskKind from derived state over events", () => {
|
|
875
|
+
const derived = makeDerived({ taskKind: 5 as any });
|
|
876
|
+
const events = [
|
|
877
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
878
|
+
case: "taskStarted",
|
|
879
|
+
value: { taskKind: 3, attemptNumber: 1 },
|
|
880
|
+
}),
|
|
881
|
+
];
|
|
882
|
+
|
|
883
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
884
|
+
|
|
885
|
+
expect(result).not.toBeNull();
|
|
886
|
+
expect(result!.taskKind).toBe(5);
|
|
887
|
+
});
|
|
888
|
+
|
|
889
|
+
it("falls back to event taskKind when derived state is undefined", () => {
|
|
890
|
+
const events = [
|
|
891
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
892
|
+
case: "taskStarted",
|
|
893
|
+
value: { taskKind: 7, attemptNumber: 1 },
|
|
894
|
+
}),
|
|
895
|
+
];
|
|
896
|
+
|
|
897
|
+
const result = deriveTaskDetail("my-task", events, undefined, undefined);
|
|
898
|
+
|
|
899
|
+
expect(result).not.toBeNull();
|
|
900
|
+
expect(result!.taskKind).toBe(7);
|
|
901
|
+
});
|
|
902
|
+
|
|
903
|
+
it("defaults taskKind to unspecified (0) when no source provides it", () => {
|
|
904
|
+
const snapshot = makeSnapshot({});
|
|
905
|
+
const result = deriveTaskDetail("my-task", [], snapshot, undefined);
|
|
906
|
+
|
|
907
|
+
expect(result).not.toBeNull();
|
|
908
|
+
expect(result!.taskKind).toBe(0);
|
|
909
|
+
});
|
|
910
|
+
|
|
911
|
+
it("defaults status to pending when derivedState is undefined", () => {
|
|
912
|
+
const snapshot = makeSnapshot({});
|
|
913
|
+
const result = deriveTaskDetail("my-task", [], snapshot, undefined);
|
|
914
|
+
|
|
915
|
+
expect(result!.status).toBe("pending");
|
|
916
|
+
});
|
|
917
|
+
|
|
918
|
+
it("takes startedAt from events when snapshot has no startedAt", () => {
|
|
919
|
+
const snapshot = makeSnapshot({ startedAt: "" });
|
|
920
|
+
const events = [
|
|
921
|
+
makeEvent("my-task", 1, "2026-01-01T12:00:00Z", {
|
|
922
|
+
case: "taskStarted",
|
|
923
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
924
|
+
}),
|
|
925
|
+
];
|
|
926
|
+
const derived = makeDerived({ status: "running" });
|
|
927
|
+
|
|
928
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
929
|
+
|
|
930
|
+
expect(result!.summary.startedAt).toBe("2026-01-01T12:00:00Z");
|
|
931
|
+
});
|
|
932
|
+
|
|
933
|
+
it("prefers snapshot costMicros over derived costMicros", () => {
|
|
934
|
+
const snapshot = makeSnapshot({ costMicros: BigInt(999) });
|
|
935
|
+
const derived = makeDerived({
|
|
936
|
+
status: "completed",
|
|
937
|
+
costMicros: BigInt(111),
|
|
938
|
+
});
|
|
939
|
+
|
|
940
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
941
|
+
|
|
942
|
+
expect(result!.summary.costMicros).toBe(BigInt(999));
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
it("falls back to derived costMicros when snapshot has none", () => {
|
|
946
|
+
const derived = makeDerived({
|
|
947
|
+
status: "completed",
|
|
948
|
+
costMicros: BigInt(222),
|
|
949
|
+
});
|
|
950
|
+
|
|
951
|
+
const result = deriveTaskDetail("my-task", [], undefined, derived);
|
|
952
|
+
|
|
953
|
+
expect(result!.summary.costMicros).toBe(BigInt(222));
|
|
954
|
+
});
|
|
955
|
+
|
|
956
|
+
it("takes attemptNumber from derived over events", () => {
|
|
957
|
+
const derived = makeDerived({ attemptNumber: 4 });
|
|
958
|
+
const events = [
|
|
959
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
960
|
+
case: "taskStarted",
|
|
961
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
962
|
+
}),
|
|
963
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
964
|
+
case: "taskStarted",
|
|
965
|
+
value: { taskKind: 1, attemptNumber: 2 },
|
|
966
|
+
}),
|
|
967
|
+
];
|
|
968
|
+
|
|
969
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
970
|
+
|
|
971
|
+
expect(result!.summary.attemptNumber).toBe(4);
|
|
972
|
+
});
|
|
973
|
+
|
|
974
|
+
it("falls back to event start count for attemptNumber when derived is undefined", () => {
|
|
975
|
+
const events = [
|
|
976
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
977
|
+
case: "taskStarted",
|
|
978
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
979
|
+
}),
|
|
980
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
981
|
+
case: "taskStarted",
|
|
982
|
+
value: { taskKind: 1, attemptNumber: 2 },
|
|
983
|
+
}),
|
|
984
|
+
];
|
|
985
|
+
|
|
986
|
+
const result = deriveTaskDetail("my-task", events, undefined, undefined);
|
|
987
|
+
|
|
988
|
+
expect(result!.summary.attemptNumber).toBe(2);
|
|
989
|
+
});
|
|
990
|
+
|
|
991
|
+
it("snapshot input with empty object is treated as no input", () => {
|
|
992
|
+
const snapshot = makeSnapshot({
|
|
993
|
+
input: {} as any,
|
|
994
|
+
});
|
|
995
|
+
const derived = makeDerived({ status: "completed" });
|
|
996
|
+
|
|
997
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
998
|
+
expect(result!.input).toBeNull();
|
|
999
|
+
});
|
|
1000
|
+
|
|
1001
|
+
it("snapshot output with empty object is treated as no output", () => {
|
|
1002
|
+
const snapshot = makeSnapshot({
|
|
1003
|
+
output: {} as any,
|
|
1004
|
+
});
|
|
1005
|
+
const derived = makeDerived({ status: "completed" });
|
|
1006
|
+
|
|
1007
|
+
const result = deriveTaskDetail("my-task", [], snapshot, derived);
|
|
1008
|
+
expect(result!.output).toBeNull();
|
|
1009
|
+
});
|
|
1010
|
+
|
|
1011
|
+
it("handles approval with no formSchema", () => {
|
|
1012
|
+
const derived = makeDerived({ status: "waiting_approval" });
|
|
1013
|
+
const events = [
|
|
1014
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1015
|
+
case: "approvalRequested",
|
|
1016
|
+
value: {
|
|
1017
|
+
prompt: "Continue?",
|
|
1018
|
+
approvers: [],
|
|
1019
|
+
timeoutSeconds: 0,
|
|
1020
|
+
outcomes: [],
|
|
1021
|
+
formSchema: undefined,
|
|
1022
|
+
},
|
|
1023
|
+
}),
|
|
1024
|
+
];
|
|
1025
|
+
|
|
1026
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
1027
|
+
expect(result!.approval).not.toBeNull();
|
|
1028
|
+
expect(result!.approval!.formSchema).toBeNull();
|
|
1029
|
+
expect(result!.approval!.outcomes).toEqual([]);
|
|
1030
|
+
expect(result!.approval!.decision).toBeNull();
|
|
1031
|
+
});
|
|
1032
|
+
|
|
1033
|
+
it("only returns a non-null result when snapshot alone is provided", () => {
|
|
1034
|
+
const snapshot = makeSnapshot({ startedAt: "2026-01-01T00:00:00Z" });
|
|
1035
|
+
|
|
1036
|
+
const result = deriveTaskDetail("my-task", [], snapshot, undefined);
|
|
1037
|
+
|
|
1038
|
+
expect(result).not.toBeNull();
|
|
1039
|
+
expect(result!.taskName).toBe("my-task");
|
|
1040
|
+
expect(result!.status).toBe("pending");
|
|
1041
|
+
expect(result!.summary.startedAt).toBe("2026-01-01T00:00:00Z");
|
|
1042
|
+
});
|
|
1043
|
+
|
|
1044
|
+
it("only returns a non-null result when derived state alone is provided", () => {
|
|
1045
|
+
const derived = makeDerived({ status: "running", durationMs: 1500 });
|
|
1046
|
+
|
|
1047
|
+
const result = deriveTaskDetail("my-task", [], undefined, derived);
|
|
1048
|
+
|
|
1049
|
+
expect(result).not.toBeNull();
|
|
1050
|
+
expect(result!.taskName).toBe("my-task");
|
|
1051
|
+
expect(result!.status).toBe("running");
|
|
1052
|
+
expect(result!.summary.durationMs).toBe(1500);
|
|
1053
|
+
});
|
|
1054
|
+
|
|
1055
|
+
it("only returns a non-null result when matching events alone are provided", () => {
|
|
1056
|
+
const events = [
|
|
1057
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1058
|
+
case: "taskStarted",
|
|
1059
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
1060
|
+
}),
|
|
1061
|
+
];
|
|
1062
|
+
|
|
1063
|
+
const result = deriveTaskDetail("my-task", events, undefined, undefined);
|
|
1064
|
+
|
|
1065
|
+
expect(result).not.toBeNull();
|
|
1066
|
+
expect(result!.taskName).toBe("my-task");
|
|
1067
|
+
expect(result!.status).toBe("pending");
|
|
1068
|
+
});
|
|
1069
|
+
|
|
1070
|
+
it("returns error as null when no taskFailed events exist", () => {
|
|
1071
|
+
const events = [
|
|
1072
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1073
|
+
case: "taskStarted",
|
|
1074
|
+
value: { taskKind: 1, attemptNumber: 1 },
|
|
1075
|
+
}),
|
|
1076
|
+
];
|
|
1077
|
+
const derived = makeDerived({ status: "running" });
|
|
1078
|
+
|
|
1079
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
1080
|
+
expect(result!.error).toBeNull();
|
|
1081
|
+
});
|
|
1082
|
+
|
|
1083
|
+
it("agent call phase falls back to progress phase when completed has no phase", () => {
|
|
1084
|
+
const derived = makeDerived({ status: "completed" });
|
|
1085
|
+
const events = [
|
|
1086
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1087
|
+
case: "agentCallStarted",
|
|
1088
|
+
value: {
|
|
1089
|
+
childExecutionId: "exec-1",
|
|
1090
|
+
agentSlug: "agent-x",
|
|
1091
|
+
messageSummary: "",
|
|
1092
|
+
},
|
|
1093
|
+
}),
|
|
1094
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:01Z", {
|
|
1095
|
+
case: "agentCallProgress",
|
|
1096
|
+
value: {
|
|
1097
|
+
childExecutionId: "",
|
|
1098
|
+
agentPhase: 4,
|
|
1099
|
+
currentToolName: "grep",
|
|
1100
|
+
tokensConsumed: BigInt(100),
|
|
1101
|
+
messagesCount: 1,
|
|
1102
|
+
toolCallsCount: 1,
|
|
1103
|
+
},
|
|
1104
|
+
}),
|
|
1105
|
+
];
|
|
1106
|
+
|
|
1107
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
1108
|
+
expect(result!.agentCall!.agentPhase).toBe("4");
|
|
1109
|
+
});
|
|
1110
|
+
|
|
1111
|
+
it("agent call with error from completion", () => {
|
|
1112
|
+
const derived = makeDerived({ status: "failed" });
|
|
1113
|
+
const events = [
|
|
1114
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1115
|
+
case: "agentCallStarted",
|
|
1116
|
+
value: {
|
|
1117
|
+
childExecutionId: "exec-err",
|
|
1118
|
+
agentSlug: "agent-y",
|
|
1119
|
+
messageSummary: "",
|
|
1120
|
+
},
|
|
1121
|
+
}),
|
|
1122
|
+
makeEvent("my-task", 2, "2026-01-01T00:00:05Z", {
|
|
1123
|
+
case: "agentCallCompleted",
|
|
1124
|
+
value: {
|
|
1125
|
+
durationMs: BigInt(5000),
|
|
1126
|
+
tokensConsumed: BigInt(0),
|
|
1127
|
+
costMicros: BigInt(0),
|
|
1128
|
+
error: "agent crashed",
|
|
1129
|
+
agentPhase: 0,
|
|
1130
|
+
},
|
|
1131
|
+
}),
|
|
1132
|
+
];
|
|
1133
|
+
|
|
1134
|
+
const result = deriveTaskDetail("my-task", events, undefined, derived);
|
|
1135
|
+
expect(result!.agentCall!.error).toBe("agent crashed");
|
|
1136
|
+
});
|
|
1137
|
+
|
|
1138
|
+
it("input prefers snapshot data over event summary when both exist", () => {
|
|
1139
|
+
const snapshot = makeSnapshot({
|
|
1140
|
+
input: { full: "data" } as any,
|
|
1141
|
+
artifactIds: ["a1"],
|
|
1142
|
+
});
|
|
1143
|
+
const derived = makeDerived({ status: "completed" });
|
|
1144
|
+
const events = [
|
|
1145
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1146
|
+
case: "taskStarted",
|
|
1147
|
+
value: {
|
|
1148
|
+
taskKind: 1,
|
|
1149
|
+
attemptNumber: 1,
|
|
1150
|
+
inputSummary: { truncated: "summary" },
|
|
1151
|
+
},
|
|
1152
|
+
}),
|
|
1153
|
+
];
|
|
1154
|
+
|
|
1155
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
1156
|
+
|
|
1157
|
+
expect(result!.input!.source).toBe("snapshot");
|
|
1158
|
+
expect(result!.input!.data).toEqual({ full: "data" });
|
|
1159
|
+
expect(result!.input!.summary).toEqual({ truncated: "summary" });
|
|
1160
|
+
expect(result!.input!.artifactIds).toEqual(["a1"]);
|
|
1161
|
+
});
|
|
1162
|
+
|
|
1163
|
+
it("output prefers snapshot data over event summary when both exist", () => {
|
|
1164
|
+
const snapshot = makeSnapshot({
|
|
1165
|
+
output: { full: "result" } as any,
|
|
1166
|
+
});
|
|
1167
|
+
const derived = makeDerived({ status: "completed" });
|
|
1168
|
+
const events = [
|
|
1169
|
+
makeEvent("my-task", 1, "2026-01-01T00:00:00Z", {
|
|
1170
|
+
case: "taskCompleted",
|
|
1171
|
+
value: {
|
|
1172
|
+
taskKind: 1,
|
|
1173
|
+
durationMs: BigInt(100),
|
|
1174
|
+
costMicros: BigInt(0),
|
|
1175
|
+
tokensUsed: BigInt(0),
|
|
1176
|
+
outputSummary: { summary: "brief" },
|
|
1177
|
+
},
|
|
1178
|
+
}),
|
|
1179
|
+
];
|
|
1180
|
+
|
|
1181
|
+
const result = deriveTaskDetail("my-task", events, snapshot, derived);
|
|
1182
|
+
|
|
1183
|
+
expect(result!.output!.source).toBe("snapshot");
|
|
1184
|
+
expect(result!.output!.data).toEqual({ full: "result" });
|
|
1185
|
+
expect(result!.output!.summary).toEqual({ summary: "brief" });
|
|
1186
|
+
});
|
|
1187
|
+
});
|