@burdenoff/fluidgrids-fe-sdk 2026.1112.11 → 2026.1113.2

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.
Files changed (127) hide show
  1. package/dist/{AiStudioPage-Q3455WO6.js → AiStudioPage-5KYZ8r8-.js} +464 -7
  2. package/dist/{ApprovalInboxPage-Bb8H9ruw.js → ApprovalInboxPage-BsJX4osU.js} +4 -3
  3. package/dist/{ConnectionFormDialog-Bg9_OdHX.js → ConnectionFormDialog-Dr1-CTan.js} +2 -1
  4. package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
  5. package/dist/{DataSinkDashboardPage-B5bqPnUn.js → DataSinkDashboardPage-8ZDn85e2.js} +1 -1
  6. package/dist/{DataTablesPage-Zz23QZQp.js → DataTablesPage-BBvABuxE.js} +5 -4
  7. package/dist/{EntityTagPicker-CuZAMby_.js → EntityTagPicker-BppBSEJk.js} +2 -2
  8. package/dist/{ExecutionDetailPage-UyXErYuS.js → ExecutionDetailPage-BXDF2eoT.js} +1601 -31
  9. package/dist/ExecutionsListDocument-CzdLPpj5.js +1259 -0
  10. package/dist/{ExecutionsListPage-CUJQA0Vk.js → ExecutionsListPage--4BthM8L.js} +286 -12
  11. package/dist/FailureTriagePanel-B5WCSRFo.js +1252 -0
  12. package/dist/{FluidGridsProvider-CGi9a1So.js → FluidGridsProvider-Dc_Jhtch.js} +8666 -8734
  13. package/dist/{HistoryPage-DLqmeQ12.js → HistoryPage-BvFk2m1m.js} +4 -3
  14. package/dist/{InsightsPage-CqtPCpj7.js → InsightsPage-Dwmb02F6.js} +2682 -5
  15. package/dist/{MissingNodesInstallModal-Df4fEAnr.js → MissingNodesInstallModal-Cze674hp.js} +2 -2
  16. package/dist/{NodesPage-YQ-hP60x.js → NodesPage-C5Dq-ru-.js} +3 -2
  17. package/dist/{OpenTemplateAsCodeButton-BmuHhDRr.js → OpenTemplateAsCodeButton-8MZHih6I.js} +2 -2
  18. package/dist/{PaidTemplateConfirm-BTrK35af.js → PaidTemplateConfirm-0G-gv29n.js} +1 -1
  19. package/dist/{PublishCustomNodeAction-5XXnSA3H.js → PublishCustomNodeAction-OOY35dUv.js} +1 -1
  20. package/dist/QuotaExhaustedDialog-wvu_-WJ-.js +55 -0
  21. package/dist/{RunnerStatusPill-Ctg4TJcP.js → RunnerStatusPill-Bh7mEsPh.js} +2 -1
  22. package/dist/{RunnersPage-CAt4YDhB.js → RunnersPage-DHeuUDil.js} +2 -2
  23. package/dist/{SettingsPage-CVvaQ_g9.js → SettingsPage-CfjXiGpb.js} +694 -14
  24. package/dist/{TagFilterSelect-DcusTt1p.js → TagFilterSelect-CAShgvbS.js} +1 -1
  25. package/dist/{TaskQueuesPage-C2dkenVF.js → TaskQueuesPage--Mmn36b-.js} +3 -3
  26. package/dist/{TemplateCard-DFbYdC2c.js → TemplateCard-BA_9em22.js} +644 -352
  27. package/dist/{TemplateConfigurationModal-Dw2UgWYF.js → TemplateConfigurationModal-BT3PaR0O.js} +4 -3
  28. package/dist/{TemplateDetailPanel-DDySr7_1.js → TemplateDetailPanel-BxFNnlXm.js} +2 -1
  29. package/dist/{TemplatePreview-D8zWdTGv.js → TemplatePreview-Bagja6WN.js} +7 -7
  30. package/dist/{TemplatesPage-XCwxJjN6.js → TemplatesPage-CAajpJ5w.js} +711 -6
  31. package/dist/{VariablesPage-DpiLh99E.js → VariablesPage-CgUBKhAe.js} +3 -3
  32. package/dist/{VersionDiffDialog-c27yet_-.js → VersionDiffDialog-D9W5Fm56.js} +233 -129
  33. package/dist/VersionLifecycleBar-DuphLOT0.js +131 -0
  34. package/dist/{WorkflowBuilder-CXqwzR7a.js → WorkflowBuilder-DMpSPElu.js} +16 -13
  35. package/dist/{WorkflowBuilder-BaNAX7Nk.js → WorkflowBuilder-v8h8skwG.js} +5 -5
  36. package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
  37. package/dist/WorkflowEditLeaseStatusDocument-Dp62med3.js +627 -0
  38. package/dist/WorkflowProposalCard-zCdUpCk8.js +249 -0
  39. package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
  40. package/dist/{WorkflowSearchRedirect-DsQ71VcC.js → WorkflowSearchRedirect-G78lINAE.js} +1 -1
  41. package/dist/{WorkflowShareDialog-BRwTF9QB.js → WorkflowShareDialog-B7VOgr4-.js} +304 -3
  42. package/dist/WorkflowVersionsDocument-CfPMloRW.js +3195 -0
  43. package/dist/{WorkflowsList-DQW-WLl5.js → WorkflowsList-CPYzfE4K.js} +11 -9
  44. package/dist/agent-form-D0uLvzx4.js +718 -0
  45. package/dist/{agentTools-edsllozS.js → agentTools-DTXUqtfu.js} +4 -4
  46. package/dist/api-BZVyX5d2.js +2286 -0
  47. package/dist/api-BqA-f-AD.js +8064 -0
  48. package/dist/app-BJUvugPM.js +3813 -0
  49. package/dist/assert-rules-CPNrO44K.js +318 -0
  50. package/dist/attach-node-helpers-CNsYtLOR.js +32 -0
  51. package/dist/badge-CXfPhoMH.js +26 -0
  52. package/dist/{canvasNoteTools-DzNTcQGo.js → canvasNoteTools-DmfZwtnL.js} +3 -3
  53. package/dist/{channel-CZ70oI81.js → channel-DtF1n_ab.js} +1 -1
  54. package/dist/client-Ctl4jmY3.js +127 -0
  55. package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
  56. package/dist/{code-editor-field-B2l-B8in.js → code-editor-field-Cv907s3W.js} +2 -2
  57. package/dist/{codec-client-CJ95Rmqo.js → codec-client-CAYl6j46.js} +2 -1
  58. package/dist/conditionBuilder-D8aLGL1w.js +1134 -0
  59. package/dist/config-X97zrIvn.js +600 -0
  60. package/dist/{definition-canvas-Bshn_dSP.js → definition-canvas-DL25_6NH.js} +1 -1
  61. package/dist/{dialog-Cjb4lB4D.js → dialog-BVd152GS.js} +3 -14
  62. package/dist/durable-nodes-DXCCQYWD.js +81 -0
  63. package/dist/errors-xPZ-IbQd.js +142 -0
  64. package/dist/executions.js +2 -2
  65. package/dist/{flow-builder-B2JGvYeK.js → flow-builder-Dv5fWJ6F.js} +9781 -8416
  66. package/dist/{node-registry-refresh-Dy0uRg9f.js → global-client-DP_Wxe5t.js} +2 -27
  67. package/dist/global-operations-7pvXw_j9.js +145 -0
  68. package/dist/history.js +1 -1
  69. package/dist/{index-ChYBGz_a.d.ts → index-DtMUtXNq.d.ts} +306 -246
  70. package/dist/index.d.ts +2 -2
  71. package/dist/index.js +4404 -47
  72. package/dist/input-ChT6Q-Pr.js +17 -0
  73. package/dist/logs-panel-DtG93ocy.js +342 -0
  74. package/dist/mapping-colors-BIX_YeCQ.js +48 -0
  75. package/dist/{node-detail-view-BDXhEGVD.js → node-detail-view-BKI_2kM6.js} +12 -11
  76. package/dist/{node-editor-tab-body-DBnsqYUK.js → node-editor-tab-body-Cc1MWEFR.js} +3 -3
  77. package/dist/{node-operation-selection-DAbS6jSY.js → node-operation-selection-Czeeb2D4.js} +2 -139
  78. package/dist/node-registry-refresh-s3okf83X.js +27 -0
  79. package/dist/nodes.js +1 -1
  80. package/dist/notesKey-5EaREBGA.js +12 -0
  81. package/dist/observability.d.ts +1 -1
  82. package/dist/observability.js +2 -2
  83. package/dist/{popover-Cl7_tXph.js → popover-DDv7J1Kl.js} +717 -6
  84. package/dist/{quick-config-panel-C_Z0RXEG.js → quick-config-panel-BPCRfqWI.js} +4 -4
  85. package/dist/read-only-context-Dt9N9SIG.js +18 -0
  86. package/dist/{schedule-panel-CFAKmrBH.js → schedule-panel-C1KwfLCE.js} +197 -79
  87. package/dist/settings.js +1 -1
  88. package/dist/{shared-CMfn30xT.js → shared-Ctl9ZHo1.js} +2 -1
  89. package/dist/{sidebar-node-editor-DZZlDElK.js → sidebar-node-editor-d9Rlq5pU.js} +4 -4
  90. package/dist/sticky-notes-23j-wL6Q.js +96 -0
  91. package/dist/template-code-dqRunGOv.js +184 -0
  92. package/dist/template-preview-C01KV277.js +29 -0
  93. package/dist/templates.js +2 -2
  94. package/dist/token-refresh-link-BjN7H4qA.js +291 -0
  95. package/dist/useAgentDefinitions-ZKX2N9aP.js +3101 -0
  96. package/dist/useConnections-BlB0gbOB.js +931 -0
  97. package/dist/useDurableParity-BgLH_SCF.js +2088 -0
  98. package/dist/{useEntityTags-BpDeLhzV.js → useEntityTags-4iW6UTly.js} +227 -3
  99. package/dist/{useExecutions-D2iKpt1Z.js → useExecutions-Bm7q_UwN.js} +6 -3
  100. package/dist/useGlobalStoreClient-DMTrywdX.js +24 -0
  101. package/dist/{useHumanRequests-ZiR0sSzS.js → useHumanRequests-DwG2tQ3f.js} +2 -1
  102. package/dist/{useObservability-DIhzs9F-.js → useObservability-DPATdbw7.js} +4 -2
  103. package/dist/{useRunHistory-BhVY82Pg.js → useRunHistory-CGfjCsJ3.js} +1122 -4
  104. package/dist/{useVariables-2ddyJX4a.js → useVariables-DFdZofLQ.js} +2 -1
  105. package/dist/{useWorkflowCodeExport-BXy4NPsE.js → useWorkflowCodeExport-D_mCuhKP.js} +289 -4
  106. package/dist/useWorkflowOrganization-r5FWNBs6.js +1690 -0
  107. package/dist/useWorkflowProposal-Bh2_qjmM.js +7478 -0
  108. package/dist/{useWorkflows-Clsu0o8t.js → useWorkflows-aqVD7kGa.js} +694 -4
  109. package/dist/workflow-builder.js +5 -5
  110. package/dist/{workflow-code-transfer-DemcCpOv.js → workflow-code-transfer-5C0HUzae.js} +1 -53
  111. package/dist/workflow-host.js +4 -2
  112. package/dist/workflow-pages.d.ts +1 -1
  113. package/dist/workflow-pages.js +19 -19
  114. package/dist/workflow-preview.js +3 -2
  115. package/dist/workflows-list.js +1 -1
  116. package/package.json +1 -1
  117. package/dist/FailureTriagePanel-BjatYyAa.js +0 -311
  118. package/dist/WorkflowProposalCard-BvmJ5ea8.js +0 -1245
  119. package/dist/agent-form-Bfvm32j1.js +0 -83
  120. package/dist/api-Dw8nfVRD.js +0 -55
  121. package/dist/api-m8hX_l2k.js +0 -224
  122. package/dist/client-C9XSzSXr.js +0 -1147
  123. package/dist/graphql-operation-types-DZVhCBEi.js +0 -52817
  124. package/dist/useAgentDefinitions-B4sw7bLw.js +0 -550
  125. package/dist/useConnections-Cs7LCWEM.js +0 -401
  126. package/dist/useDurableParity-jtqJF547.js +0 -504
  127. package/dist/useWorkflowOrganization-C4y6BOnN.js +0 -282
@@ -1,33 +1,35 @@
1
1
  "use client";
2
2
  import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
3
- import { c as errorAdvice, d as NodeStatusBadge, i as useRunPending, l as needsReconnect, n as useDurableParityRunFields, o as ConfirmStopRunDialog, r as useRunMetadata, t as setRunVersioningOverride, u as ExecutionStatusBadge } from "./useDurableParity-jtqJF547.js";
3
+ import { c as errorAdvice, d as NodeStatusBadge, i as useRunPending, l as needsReconnect, n as useDurableParityRunFields, o as ConfirmStopRunDialog, r as useRunMetadata, t as setRunVersioningOverride, u as ExecutionStatusBadge } from "./useDurableParity-BgLH_SCF.js";
4
4
  import { n as formatRunVersion, r as nodeDisplayTitle, t as buildNodeDisplayMap } from "./run-display-BycKYSU0.js";
5
5
  import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
6
- import { s as isAgentNodeType } from "./agent-form-Bfvm32j1.js";
7
- import { En as canSignalRun, L as describeRunError, On as durableInterfaceOf, R as describeRunStep, dn as nodeStateDurationMs, fn as runDurationMs, jn as runSignalTargets, un as formatElapsedMs } from "./FluidGridsProvider-CGi9a1So.js";
6
+ import { c as RunLogAppendedDocument, l as RunLogsDocument, s as isAgentNodeType } from "./agent-form-D0uLvzx4.js";
7
+ import { C as describeRunStep, S as describeRunError, Xt as nodeStateDurationMs, Yt as formatElapsedMs, Zt as runDurationMs, dn as canSignalRun, gn as runSignalTargets, pn as durableInterfaceOf } from "./FluidGridsProvider-Dc_Jhtch.js";
8
8
  import { n as useFgAskable, r as useFgAskableSelection } from "./askAboutBridge-BV8m95kk.js";
9
9
  import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
10
10
  import { t as TechnicalDetails } from "./TechnicalDetails-D4xGy201.js";
11
- import { _ as shortRunId, g as runChainLinks, h as parseMetadataDefinition, m as overrideRequestOf, n as useExecution, p as callbackTone, r as useExecutionActions, s as buildRetryTriggerInput, t as useAutoRefresh } from "./useExecutions-D2iKpt1Z.js";
11
+ import { _ as shortRunId, g as runChainLinks, h as parseMetadataDefinition, m as overrideRequestOf, n as useExecution, p as callbackTone, r as useExecutionActions, s as buildRetryTriggerInput, t as useAutoRefresh } from "./useExecutions-Bm7q_UwN.js";
12
12
  import { t as RunActionsMenu } from "./RunActionsMenu-BE_1r3bF.js";
13
- import { _ as throwIfResultError, m as describeOperationError, n as getFluidGridsClient, r as getFluidGridsClientSafe, x as getFluidGridsConfig } from "./client-C9XSzSXr.js";
14
- import { Cn as RunLogsDocument, Qr as WorkflowRunHierarchyDocument, ft as ExplainRunDocument, o as AgentStepUpdatedDocument, pn as RunAiUsageDocument, s as AgentTraceDocument, xn as RunLogAppendedDocument } from "./graphql-operation-types-DZVhCBEi.js";
13
+ import { n as getFluidGridsClient, r as getFluidGridsClientSafe } from "./client-Ctl4jmY3.js";
14
+ import { o as throwIfResultError, t as describeOperationError } from "./errors-xPZ-IbQd.js";
15
+ import { r as getFluidGridsConfig } from "./config-X97zrIvn.js";
15
16
  import { i as SdkPermissionButton, s as useFluidGridsPermission, t as FLUIDGRIDS_PERMISSIONS } from "./constants-dcxg6zG6.js";
16
- import { t as EntityTagPicker } from "./EntityTagPicker-CuZAMby_.js";
17
- import { a as useRecipientLabel, n as ApprovalApprovers, t as channelLabel } from "./channel-CZ70oI81.js";
18
- import { r as useRunHumanRequests } from "./useHumanRequests-ZiR0sSzS.js";
19
- import { a as encodedPayloadBytes, f as EffectBadge, h as useRunPolicyDecisions, i as decodePayloads, l as formatBudgetUsd, n as checkCodecServerUrl, o as isEncodedPayload, r as containsEncodedPayload, t as CodecServerError } from "./codec-client-CJ95Rmqo.js";
20
- import { n as useWorkflowProposal, o as canSaveRunAsTestCase, r as saveRunAsTestCase, t as WorkflowProposalCard } from "./WorkflowProposalCard-BvmJ5ea8.js";
17
+ import { t as EntityTagPicker } from "./EntityTagPicker-BppBSEJk.js";
18
+ import { a as useRecipientLabel, n as ApprovalApprovers, t as channelLabel } from "./channel-DtF1n_ab.js";
19
+ import { r as useRunHumanRequests } from "./useHumanRequests-DwG2tQ3f.js";
20
+ import { a as encodedPayloadBytes, f as EffectBadge, h as useRunPolicyDecisions, i as decodePayloads, l as formatBudgetUsd, n as checkCodecServerUrl, o as isEncodedPayload, r as containsEncodedPayload, t as CodecServerError } from "./codec-client-CAYl6j46.js";
21
+ import { _ as agentLiveReplyState, a as canSaveRunAsTestCase, g as useAgentTokenStream, n as saveRunAsTestCase, t as useWorkflowProposal, v as agentTokenStreamsFor } from "./useWorkflowProposal-Bh2_qjmM.js";
22
+ import { t as WorkflowProposalCard } from "./WorkflowProposalCard-zCdUpCk8.js";
21
23
  import { t as AiCreditBalanceSlot } from "./aiCreditsBridge-BuE92tKo.js";
22
- import { a as fetchRunFailureClusters, i as dismissRunFailureCluster, r as OPEN_STATUSES, t as BUCKET_LABELS } from "./FailureTriagePanel-BjatYyAa.js";
23
- import { a as useDurableRunFields, i as useDeterminismStatus, n as SignalRunDialog, o as useRunStackTrace, r as terminateDurableRun, s as RunHistoryView, t as useRunHistory } from "./useRunHistory-BhVY82Pg.js";
24
+ import { a as fetchRunFailureClusters, i as dismissRunFailureCluster, r as OPEN_STATUSES, t as BUCKET_LABELS } from "./FailureTriagePanel-B5WCSRFo.js";
25
+ import { a as useDurableRunFields, i as useDeterminismStatus, n as SignalRunDialog, o as useRunStackTrace, r as terminateDurableRun, s as RunHistoryView, t as useRunHistory } from "./useRunHistory-CGfjCsJ3.js";
24
26
  import { $P as VersioningBehavior, FI as WorkflowUpdateWaitFor, L as AgentStepKind, _I as WorkflowQueryRejectCondition, jd as ErrorType } from "./graphql-types-v6CTGwA0.js";
25
27
  import { a as formatTokens, d as formatMicroUsd, o as modelLabel, r as aiCost } from "./ai-usage-bmUn-gJP.js";
26
28
  import { _ as useWorkflowTestsEnabled, l as useDurableFunctionNodesEnabled, m as usePhaseCFlags, u as useDurableParityEnabled } from "./feature-flags-B_b8PJ6Z.js";
27
- import { A as revokeSignalToken, B as updateActivityOptions, D as resetActivities, E as queryRun, N as sendRunUpdate, O as resetRun, R as unpauseActivities, S as fetchSignalTokens, V as upsertRunSearchAttributes, _ as fetchPauseRules, b as fetchRunUpdate, d as failActivityById, g as fetchCodecServerSettings, i as completeActivityById, k as resetRunToLastCleanTask, s as createSignalToken, v as fetchRunControlFields, w as pauseActivities, y as fetchRunHistoryArchive } from "./api-m8hX_l2k.js";
28
- import { a as fetchTaskQueueStats } from "./api-Dw8nfVRD.js";
29
- import { a as RUN_CONTROL_DIALOG_STYLE, c as parseJsonInput, i as NativeSelect, l as parseJsonObjectInput, n as JsonBlock, o as StatusPill, r as JsonField, s as newRunControlId, t as FieldError, u as useResource } from "./shared-CMfn30xT.js";
30
- import { v as useWorkflowVersions } from "./useWorkflows-Clsu0o8t.js";
29
+ import { A as revokeSignalToken, B as updateActivityOptions, D as resetActivities, E as queryRun, N as sendRunUpdate, O as resetRun, R as unpauseActivities, S as fetchSignalTokens, V as upsertRunSearchAttributes, _ as fetchPauseRules, b as fetchRunUpdate, d as failActivityById, g as fetchCodecServerSettings, i as completeActivityById, k as resetRunToLastCleanTask, s as createSignalToken, v as fetchRunControlFields, w as pauseActivities, y as fetchRunHistoryArchive } from "./api-BqA-f-AD.js";
30
+ import { a as fetchTaskQueueStats } from "./api-BZVyX5d2.js";
31
+ import { a as RUN_CONTROL_DIALOG_STYLE, c as parseJsonInput, i as NativeSelect, l as parseJsonObjectInput, n as JsonBlock, o as StatusPill, r as JsonField, s as newRunControlId, t as FieldError, u as useResource } from "./shared-Ctl9ZHo1.js";
32
+ import { v as useWorkflowVersions } from "./useWorkflows-aqVD7kGa.js";
31
33
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
32
34
  import { Link, useNavigate, useParams, useSearchParams } from "react-router";
33
35
  import { Icon } from "@iconify/react";
@@ -40,6 +42,1430 @@ import { FlaskConical } from "lucide-react";
40
42
  import { buildActorFallback, useActorProfiles } from "@burdenoff/fe-libs/shared";
41
43
  import ReactMarkdown from "react-markdown";
42
44
 
45
+ // src/generated/documents/wspace/AgentTraceDocument.ts
46
+ const AgentTraceDocument = {
47
+ "kind": "Document",
48
+ "definitions": [{
49
+ "kind": "OperationDefinition",
50
+ "operation": "query",
51
+ "name": {
52
+ "kind": "Name",
53
+ "value": "AgentTrace"
54
+ },
55
+ "variableDefinitions": [{
56
+ "kind": "VariableDefinition",
57
+ "variable": {
58
+ "kind": "Variable",
59
+ "name": {
60
+ "kind": "Name",
61
+ "value": "runId"
62
+ }
63
+ },
64
+ "type": {
65
+ "kind": "NonNullType",
66
+ "type": {
67
+ "kind": "NamedType",
68
+ "name": {
69
+ "kind": "Name",
70
+ "value": "ID"
71
+ }
72
+ }
73
+ },
74
+ "directives": []
75
+ }],
76
+ "directives": [],
77
+ "selectionSet": {
78
+ "kind": "SelectionSet",
79
+ "selections": [{
80
+ "kind": "Field",
81
+ "name": {
82
+ "kind": "Name",
83
+ "value": "agentTrace"
84
+ },
85
+ "arguments": [{
86
+ "kind": "Argument",
87
+ "name": {
88
+ "kind": "Name",
89
+ "value": "runId"
90
+ },
91
+ "value": {
92
+ "kind": "Variable",
93
+ "name": {
94
+ "kind": "Name",
95
+ "value": "runId"
96
+ }
97
+ }
98
+ }],
99
+ "directives": [],
100
+ "selectionSet": {
101
+ "kind": "SelectionSet",
102
+ "selections": [
103
+ {
104
+ "kind": "Field",
105
+ "name": {
106
+ "kind": "Name",
107
+ "value": "runId"
108
+ },
109
+ "arguments": [],
110
+ "directives": []
111
+ },
112
+ {
113
+ "kind": "Field",
114
+ "name": {
115
+ "kind": "Name",
116
+ "value": "dataPruned"
117
+ },
118
+ "arguments": [],
119
+ "directives": []
120
+ },
121
+ {
122
+ "kind": "Field",
123
+ "name": {
124
+ "kind": "Name",
125
+ "value": "nodes"
126
+ },
127
+ "arguments": [],
128
+ "directives": [],
129
+ "selectionSet": {
130
+ "kind": "SelectionSet",
131
+ "selections": [
132
+ {
133
+ "kind": "Field",
134
+ "name": {
135
+ "kind": "Name",
136
+ "value": "nodeId"
137
+ },
138
+ "arguments": [],
139
+ "directives": []
140
+ },
141
+ {
142
+ "kind": "Field",
143
+ "name": {
144
+ "kind": "Name",
145
+ "value": "nodeStateId"
146
+ },
147
+ "arguments": [],
148
+ "directives": []
149
+ },
150
+ {
151
+ "kind": "Field",
152
+ "name": {
153
+ "kind": "Name",
154
+ "value": "iterations"
155
+ },
156
+ "arguments": [],
157
+ "directives": [],
158
+ "selectionSet": {
159
+ "kind": "SelectionSet",
160
+ "selections": [{
161
+ "kind": "Field",
162
+ "name": {
163
+ "kind": "Name",
164
+ "value": "iteration"
165
+ },
166
+ "arguments": [],
167
+ "directives": []
168
+ }, {
169
+ "kind": "Field",
170
+ "name": {
171
+ "kind": "Name",
172
+ "value": "steps"
173
+ },
174
+ "arguments": [],
175
+ "directives": [],
176
+ "selectionSet": {
177
+ "kind": "SelectionSet",
178
+ "selections": [{
179
+ "kind": "FragmentSpread",
180
+ "name": {
181
+ "kind": "Name",
182
+ "value": "AgentStepFields"
183
+ },
184
+ "directives": []
185
+ }]
186
+ }
187
+ }]
188
+ }
189
+ }
190
+ ]
191
+ }
192
+ }
193
+ ]
194
+ }
195
+ }]
196
+ }
197
+ }, {
198
+ "kind": "FragmentDefinition",
199
+ "name": {
200
+ "kind": "Name",
201
+ "value": "AgentStepFields"
202
+ },
203
+ "variableDefinitions": [],
204
+ "typeCondition": {
205
+ "kind": "NamedType",
206
+ "name": {
207
+ "kind": "Name",
208
+ "value": "AgentStep"
209
+ }
210
+ },
211
+ "directives": [],
212
+ "selectionSet": {
213
+ "kind": "SelectionSet",
214
+ "selections": [
215
+ {
216
+ "kind": "Field",
217
+ "name": {
218
+ "kind": "Name",
219
+ "value": "id"
220
+ },
221
+ "arguments": [],
222
+ "directives": []
223
+ },
224
+ {
225
+ "kind": "Field",
226
+ "name": {
227
+ "kind": "Name",
228
+ "value": "runId"
229
+ },
230
+ "arguments": [],
231
+ "directives": []
232
+ },
233
+ {
234
+ "kind": "Field",
235
+ "name": {
236
+ "kind": "Name",
237
+ "value": "nodeId"
238
+ },
239
+ "arguments": [],
240
+ "directives": []
241
+ },
242
+ {
243
+ "kind": "Field",
244
+ "name": {
245
+ "kind": "Name",
246
+ "value": "nodeStateId"
247
+ },
248
+ "arguments": [],
249
+ "directives": []
250
+ },
251
+ {
252
+ "kind": "Field",
253
+ "name": {
254
+ "kind": "Name",
255
+ "value": "iteration"
256
+ },
257
+ "arguments": [],
258
+ "directives": []
259
+ },
260
+ {
261
+ "kind": "Field",
262
+ "name": {
263
+ "kind": "Name",
264
+ "value": "sequence"
265
+ },
266
+ "arguments": [],
267
+ "directives": []
268
+ },
269
+ {
270
+ "kind": "Field",
271
+ "name": {
272
+ "kind": "Name",
273
+ "value": "kind"
274
+ },
275
+ "arguments": [],
276
+ "directives": []
277
+ },
278
+ {
279
+ "kind": "Field",
280
+ "name": {
281
+ "kind": "Name",
282
+ "value": "toolName"
283
+ },
284
+ "arguments": [],
285
+ "directives": []
286
+ },
287
+ {
288
+ "kind": "Field",
289
+ "name": {
290
+ "kind": "Name",
291
+ "value": "toolCallId"
292
+ },
293
+ "arguments": [],
294
+ "directives": []
295
+ },
296
+ {
297
+ "kind": "Field",
298
+ "name": {
299
+ "kind": "Name",
300
+ "value": "approvalId"
301
+ },
302
+ "arguments": [],
303
+ "directives": []
304
+ },
305
+ {
306
+ "kind": "Field",
307
+ "name": {
308
+ "kind": "Name",
309
+ "value": "input"
310
+ },
311
+ "arguments": [],
312
+ "directives": []
313
+ },
314
+ {
315
+ "kind": "Field",
316
+ "name": {
317
+ "kind": "Name",
318
+ "value": "output"
319
+ },
320
+ "arguments": [],
321
+ "directives": []
322
+ },
323
+ {
324
+ "kind": "Field",
325
+ "name": {
326
+ "kind": "Name",
327
+ "value": "model"
328
+ },
329
+ "arguments": [],
330
+ "directives": []
331
+ },
332
+ {
333
+ "kind": "Field",
334
+ "name": {
335
+ "kind": "Name",
336
+ "value": "tokensIn"
337
+ },
338
+ "arguments": [],
339
+ "directives": []
340
+ },
341
+ {
342
+ "kind": "Field",
343
+ "name": {
344
+ "kind": "Name",
345
+ "value": "tokensOut"
346
+ },
347
+ "arguments": [],
348
+ "directives": []
349
+ },
350
+ {
351
+ "kind": "Field",
352
+ "name": {
353
+ "kind": "Name",
354
+ "value": "latencyMs"
355
+ },
356
+ "arguments": [],
357
+ "directives": []
358
+ },
359
+ {
360
+ "kind": "Field",
361
+ "name": {
362
+ "kind": "Name",
363
+ "value": "promptInvocationId"
364
+ },
365
+ "arguments": [],
366
+ "directives": []
367
+ },
368
+ {
369
+ "kind": "Field",
370
+ "name": {
371
+ "kind": "Name",
372
+ "value": "costMicroUsd"
373
+ },
374
+ "arguments": [],
375
+ "directives": []
376
+ },
377
+ {
378
+ "kind": "Field",
379
+ "name": {
380
+ "kind": "Name",
381
+ "value": "createdAt"
382
+ },
383
+ "arguments": [],
384
+ "directives": []
385
+ }
386
+ ]
387
+ }
388
+ }]
389
+ };
390
+
391
+ // src/generated/documents/wspace/RunAiUsageDocument.ts
392
+ const RunAiUsageDocument = {
393
+ "kind": "Document",
394
+ "definitions": [{
395
+ "kind": "OperationDefinition",
396
+ "operation": "query",
397
+ "name": {
398
+ "kind": "Name",
399
+ "value": "RunAiUsage"
400
+ },
401
+ "variableDefinitions": [{
402
+ "kind": "VariableDefinition",
403
+ "variable": {
404
+ "kind": "Variable",
405
+ "name": {
406
+ "kind": "Name",
407
+ "value": "runId"
408
+ }
409
+ },
410
+ "type": {
411
+ "kind": "NonNullType",
412
+ "type": {
413
+ "kind": "NamedType",
414
+ "name": {
415
+ "kind": "Name",
416
+ "value": "ID"
417
+ }
418
+ }
419
+ },
420
+ "directives": []
421
+ }],
422
+ "directives": [],
423
+ "selectionSet": {
424
+ "kind": "SelectionSet",
425
+ "selections": [{
426
+ "kind": "Field",
427
+ "name": {
428
+ "kind": "Name",
429
+ "value": "runAiUsage"
430
+ },
431
+ "arguments": [{
432
+ "kind": "Argument",
433
+ "name": {
434
+ "kind": "Name",
435
+ "value": "runId"
436
+ },
437
+ "value": {
438
+ "kind": "Variable",
439
+ "name": {
440
+ "kind": "Name",
441
+ "value": "runId"
442
+ }
443
+ }
444
+ }],
445
+ "directives": [],
446
+ "selectionSet": {
447
+ "kind": "SelectionSet",
448
+ "selections": [
449
+ {
450
+ "kind": "Field",
451
+ "name": {
452
+ "kind": "Name",
453
+ "value": "runId"
454
+ },
455
+ "arguments": [],
456
+ "directives": []
457
+ },
458
+ {
459
+ "kind": "Field",
460
+ "name": {
461
+ "kind": "Name",
462
+ "value": "total"
463
+ },
464
+ "arguments": [],
465
+ "directives": [],
466
+ "selectionSet": {
467
+ "kind": "SelectionSet",
468
+ "selections": [
469
+ {
470
+ "kind": "Field",
471
+ "name": {
472
+ "kind": "Name",
473
+ "value": "calls"
474
+ },
475
+ "arguments": [],
476
+ "directives": []
477
+ },
478
+ {
479
+ "kind": "Field",
480
+ "name": {
481
+ "kind": "Name",
482
+ "value": "inputTokens"
483
+ },
484
+ "arguments": [],
485
+ "directives": []
486
+ },
487
+ {
488
+ "kind": "Field",
489
+ "name": {
490
+ "kind": "Name",
491
+ "value": "outputTokens"
492
+ },
493
+ "arguments": [],
494
+ "directives": []
495
+ },
496
+ {
497
+ "kind": "Field",
498
+ "name": {
499
+ "kind": "Name",
500
+ "value": "cachedInputTokens"
501
+ },
502
+ "arguments": [],
503
+ "directives": []
504
+ },
505
+ {
506
+ "kind": "Field",
507
+ "name": {
508
+ "kind": "Name",
509
+ "value": "costMicroUsd"
510
+ },
511
+ "arguments": [],
512
+ "directives": []
513
+ },
514
+ {
515
+ "kind": "Field",
516
+ "name": {
517
+ "kind": "Name",
518
+ "value": "pricedCalls"
519
+ },
520
+ "arguments": [],
521
+ "directives": []
522
+ },
523
+ {
524
+ "kind": "Field",
525
+ "name": {
526
+ "kind": "Name",
527
+ "value": "pendingCalls"
528
+ },
529
+ "arguments": [],
530
+ "directives": []
531
+ },
532
+ {
533
+ "kind": "Field",
534
+ "name": {
535
+ "kind": "Name",
536
+ "value": "byoCalls"
537
+ },
538
+ "arguments": [],
539
+ "directives": []
540
+ },
541
+ {
542
+ "kind": "Field",
543
+ "name": {
544
+ "kind": "Name",
545
+ "value": "platformCalls"
546
+ },
547
+ "arguments": [],
548
+ "directives": []
549
+ }
550
+ ]
551
+ }
552
+ },
553
+ {
554
+ "kind": "Field",
555
+ "name": {
556
+ "kind": "Name",
557
+ "value": "lines"
558
+ },
559
+ "arguments": [],
560
+ "directives": [],
561
+ "selectionSet": {
562
+ "kind": "SelectionSet",
563
+ "selections": [
564
+ {
565
+ "kind": "Field",
566
+ "name": {
567
+ "kind": "Name",
568
+ "value": "nodeId"
569
+ },
570
+ "arguments": [],
571
+ "directives": []
572
+ },
573
+ {
574
+ "kind": "Field",
575
+ "name": {
576
+ "kind": "Name",
577
+ "value": "nodeType"
578
+ },
579
+ "arguments": [],
580
+ "directives": []
581
+ },
582
+ {
583
+ "kind": "Field",
584
+ "name": {
585
+ "kind": "Name",
586
+ "value": "operation"
587
+ },
588
+ "arguments": [],
589
+ "directives": []
590
+ },
591
+ {
592
+ "kind": "Field",
593
+ "name": {
594
+ "kind": "Name",
595
+ "value": "modelKey"
596
+ },
597
+ "arguments": [],
598
+ "directives": []
599
+ },
600
+ {
601
+ "kind": "Field",
602
+ "name": {
603
+ "kind": "Name",
604
+ "value": "providerKey"
605
+ },
606
+ "arguments": [],
607
+ "directives": []
608
+ },
609
+ {
610
+ "kind": "Field",
611
+ "name": {
612
+ "kind": "Name",
613
+ "value": "usage"
614
+ },
615
+ "arguments": [],
616
+ "directives": [],
617
+ "selectionSet": {
618
+ "kind": "SelectionSet",
619
+ "selections": [
620
+ {
621
+ "kind": "Field",
622
+ "name": {
623
+ "kind": "Name",
624
+ "value": "calls"
625
+ },
626
+ "arguments": [],
627
+ "directives": []
628
+ },
629
+ {
630
+ "kind": "Field",
631
+ "name": {
632
+ "kind": "Name",
633
+ "value": "inputTokens"
634
+ },
635
+ "arguments": [],
636
+ "directives": []
637
+ },
638
+ {
639
+ "kind": "Field",
640
+ "name": {
641
+ "kind": "Name",
642
+ "value": "outputTokens"
643
+ },
644
+ "arguments": [],
645
+ "directives": []
646
+ },
647
+ {
648
+ "kind": "Field",
649
+ "name": {
650
+ "kind": "Name",
651
+ "value": "cachedInputTokens"
652
+ },
653
+ "arguments": [],
654
+ "directives": []
655
+ },
656
+ {
657
+ "kind": "Field",
658
+ "name": {
659
+ "kind": "Name",
660
+ "value": "costMicroUsd"
661
+ },
662
+ "arguments": [],
663
+ "directives": []
664
+ },
665
+ {
666
+ "kind": "Field",
667
+ "name": {
668
+ "kind": "Name",
669
+ "value": "pricedCalls"
670
+ },
671
+ "arguments": [],
672
+ "directives": []
673
+ },
674
+ {
675
+ "kind": "Field",
676
+ "name": {
677
+ "kind": "Name",
678
+ "value": "pendingCalls"
679
+ },
680
+ "arguments": [],
681
+ "directives": []
682
+ },
683
+ {
684
+ "kind": "Field",
685
+ "name": {
686
+ "kind": "Name",
687
+ "value": "byoCalls"
688
+ },
689
+ "arguments": [],
690
+ "directives": []
691
+ },
692
+ {
693
+ "kind": "Field",
694
+ "name": {
695
+ "kind": "Name",
696
+ "value": "platformCalls"
697
+ },
698
+ "arguments": [],
699
+ "directives": []
700
+ }
701
+ ]
702
+ }
703
+ }
704
+ ]
705
+ }
706
+ }
707
+ ]
708
+ }
709
+ }]
710
+ }
711
+ }]
712
+ };
713
+
714
+ // src/generated/documents/wspace/WorkflowRunHierarchyDocument.ts
715
+ const WorkflowRunHierarchyDocument = {
716
+ "kind": "Document",
717
+ "definitions": [{
718
+ "kind": "OperationDefinition",
719
+ "operation": "query",
720
+ "name": {
721
+ "kind": "Name",
722
+ "value": "WorkflowRunHierarchy"
723
+ },
724
+ "variableDefinitions": [{
725
+ "kind": "VariableDefinition",
726
+ "variable": {
727
+ "kind": "Variable",
728
+ "name": {
729
+ "kind": "Name",
730
+ "value": "runId"
731
+ }
732
+ },
733
+ "type": {
734
+ "kind": "NonNullType",
735
+ "type": {
736
+ "kind": "NamedType",
737
+ "name": {
738
+ "kind": "Name",
739
+ "value": "ID"
740
+ }
741
+ }
742
+ },
743
+ "directives": []
744
+ }],
745
+ "directives": [],
746
+ "selectionSet": {
747
+ "kind": "SelectionSet",
748
+ "selections": [{
749
+ "kind": "Field",
750
+ "name": {
751
+ "kind": "Name",
752
+ "value": "workflowRunHierarchy"
753
+ },
754
+ "arguments": [{
755
+ "kind": "Argument",
756
+ "name": {
757
+ "kind": "Name",
758
+ "value": "runId"
759
+ },
760
+ "value": {
761
+ "kind": "Variable",
762
+ "name": {
763
+ "kind": "Name",
764
+ "value": "runId"
765
+ }
766
+ }
767
+ }],
768
+ "directives": [],
769
+ "selectionSet": {
770
+ "kind": "SelectionSet",
771
+ "selections": [
772
+ {
773
+ "kind": "Field",
774
+ "name": {
775
+ "kind": "Name",
776
+ "value": "totalDepth"
777
+ },
778
+ "arguments": [],
779
+ "directives": []
780
+ },
781
+ {
782
+ "kind": "Field",
783
+ "name": {
784
+ "kind": "Name",
785
+ "value": "truncated"
786
+ },
787
+ "arguments": [],
788
+ "directives": []
789
+ },
790
+ {
791
+ "kind": "Field",
792
+ "name": {
793
+ "kind": "Name",
794
+ "value": "root"
795
+ },
796
+ "arguments": [],
797
+ "directives": [],
798
+ "selectionSet": {
799
+ "kind": "SelectionSet",
800
+ "selections": [
801
+ {
802
+ "kind": "Field",
803
+ "name": {
804
+ "kind": "Name",
805
+ "value": "id"
806
+ },
807
+ "arguments": [],
808
+ "directives": []
809
+ },
810
+ {
811
+ "kind": "Field",
812
+ "name": {
813
+ "kind": "Name",
814
+ "value": "workflowKey"
815
+ },
816
+ "arguments": [],
817
+ "directives": []
818
+ },
819
+ {
820
+ "kind": "Field",
821
+ "name": {
822
+ "kind": "Name",
823
+ "value": "status"
824
+ },
825
+ "arguments": [],
826
+ "directives": []
827
+ },
828
+ {
829
+ "kind": "Field",
830
+ "name": {
831
+ "kind": "Name",
832
+ "value": "parentRunId"
833
+ },
834
+ "arguments": [],
835
+ "directives": []
836
+ },
837
+ {
838
+ "kind": "Field",
839
+ "name": {
840
+ "kind": "Name",
841
+ "value": "createdAt"
842
+ },
843
+ "arguments": [],
844
+ "directives": []
845
+ },
846
+ {
847
+ "kind": "Field",
848
+ "name": {
849
+ "kind": "Name",
850
+ "value": "startedAt"
851
+ },
852
+ "arguments": [],
853
+ "directives": []
854
+ },
855
+ {
856
+ "kind": "Field",
857
+ "name": {
858
+ "kind": "Name",
859
+ "value": "completedAt"
860
+ },
861
+ "arguments": [],
862
+ "directives": []
863
+ },
864
+ {
865
+ "kind": "Field",
866
+ "name": {
867
+ "kind": "Name",
868
+ "value": "workflow"
869
+ },
870
+ "arguments": [],
871
+ "directives": [],
872
+ "selectionSet": {
873
+ "kind": "SelectionSet",
874
+ "selections": [{
875
+ "kind": "Field",
876
+ "name": {
877
+ "kind": "Name",
878
+ "value": "name"
879
+ },
880
+ "arguments": [],
881
+ "directives": []
882
+ }]
883
+ }
884
+ }
885
+ ]
886
+ }
887
+ },
888
+ {
889
+ "kind": "Field",
890
+ "name": {
891
+ "kind": "Name",
892
+ "value": "descendants"
893
+ },
894
+ "arguments": [],
895
+ "directives": [],
896
+ "selectionSet": {
897
+ "kind": "SelectionSet",
898
+ "selections": [
899
+ {
900
+ "kind": "Field",
901
+ "name": {
902
+ "kind": "Name",
903
+ "value": "depth"
904
+ },
905
+ "arguments": [],
906
+ "directives": []
907
+ },
908
+ {
909
+ "kind": "Field",
910
+ "name": {
911
+ "kind": "Name",
912
+ "value": "parentNodeId"
913
+ },
914
+ "arguments": [],
915
+ "directives": []
916
+ },
917
+ {
918
+ "kind": "Field",
919
+ "name": {
920
+ "kind": "Name",
921
+ "value": "run"
922
+ },
923
+ "arguments": [],
924
+ "directives": [],
925
+ "selectionSet": {
926
+ "kind": "SelectionSet",
927
+ "selections": [
928
+ {
929
+ "kind": "Field",
930
+ "name": {
931
+ "kind": "Name",
932
+ "value": "id"
933
+ },
934
+ "arguments": [],
935
+ "directives": []
936
+ },
937
+ {
938
+ "kind": "Field",
939
+ "name": {
940
+ "kind": "Name",
941
+ "value": "workflowKey"
942
+ },
943
+ "arguments": [],
944
+ "directives": []
945
+ },
946
+ {
947
+ "kind": "Field",
948
+ "name": {
949
+ "kind": "Name",
950
+ "value": "status"
951
+ },
952
+ "arguments": [],
953
+ "directives": []
954
+ },
955
+ {
956
+ "kind": "Field",
957
+ "name": {
958
+ "kind": "Name",
959
+ "value": "parentRunId"
960
+ },
961
+ "arguments": [],
962
+ "directives": []
963
+ },
964
+ {
965
+ "kind": "Field",
966
+ "name": {
967
+ "kind": "Name",
968
+ "value": "createdAt"
969
+ },
970
+ "arguments": [],
971
+ "directives": []
972
+ },
973
+ {
974
+ "kind": "Field",
975
+ "name": {
976
+ "kind": "Name",
977
+ "value": "startedAt"
978
+ },
979
+ "arguments": [],
980
+ "directives": []
981
+ },
982
+ {
983
+ "kind": "Field",
984
+ "name": {
985
+ "kind": "Name",
986
+ "value": "completedAt"
987
+ },
988
+ "arguments": [],
989
+ "directives": []
990
+ },
991
+ {
992
+ "kind": "Field",
993
+ "name": {
994
+ "kind": "Name",
995
+ "value": "workflow"
996
+ },
997
+ "arguments": [],
998
+ "directives": [],
999
+ "selectionSet": {
1000
+ "kind": "SelectionSet",
1001
+ "selections": [{
1002
+ "kind": "Field",
1003
+ "name": {
1004
+ "kind": "Name",
1005
+ "value": "name"
1006
+ },
1007
+ "arguments": [],
1008
+ "directives": []
1009
+ }]
1010
+ }
1011
+ }
1012
+ ]
1013
+ }
1014
+ }
1015
+ ]
1016
+ }
1017
+ }
1018
+ ]
1019
+ }
1020
+ }]
1021
+ }
1022
+ }]
1023
+ };
1024
+
1025
+ // src/generated/documents/wspace/AgentStepUpdatedDocument.ts
1026
+ const AgentStepUpdatedDocument = {
1027
+ "kind": "Document",
1028
+ "definitions": [{
1029
+ "kind": "OperationDefinition",
1030
+ "operation": "subscription",
1031
+ "name": {
1032
+ "kind": "Name",
1033
+ "value": "AgentStepUpdated"
1034
+ },
1035
+ "variableDefinitions": [{
1036
+ "kind": "VariableDefinition",
1037
+ "variable": {
1038
+ "kind": "Variable",
1039
+ "name": {
1040
+ "kind": "Name",
1041
+ "value": "runId"
1042
+ }
1043
+ },
1044
+ "type": {
1045
+ "kind": "NonNullType",
1046
+ "type": {
1047
+ "kind": "NamedType",
1048
+ "name": {
1049
+ "kind": "Name",
1050
+ "value": "ID"
1051
+ }
1052
+ }
1053
+ },
1054
+ "directives": []
1055
+ }],
1056
+ "directives": [],
1057
+ "selectionSet": {
1058
+ "kind": "SelectionSet",
1059
+ "selections": [{
1060
+ "kind": "Field",
1061
+ "name": {
1062
+ "kind": "Name",
1063
+ "value": "agentStepUpdated"
1064
+ },
1065
+ "arguments": [{
1066
+ "kind": "Argument",
1067
+ "name": {
1068
+ "kind": "Name",
1069
+ "value": "runId"
1070
+ },
1071
+ "value": {
1072
+ "kind": "Variable",
1073
+ "name": {
1074
+ "kind": "Name",
1075
+ "value": "runId"
1076
+ }
1077
+ }
1078
+ }],
1079
+ "directives": [],
1080
+ "selectionSet": {
1081
+ "kind": "SelectionSet",
1082
+ "selections": [{
1083
+ "kind": "FragmentSpread",
1084
+ "name": {
1085
+ "kind": "Name",
1086
+ "value": "AgentStepFields"
1087
+ },
1088
+ "directives": []
1089
+ }]
1090
+ }
1091
+ }]
1092
+ }
1093
+ }, {
1094
+ "kind": "FragmentDefinition",
1095
+ "name": {
1096
+ "kind": "Name",
1097
+ "value": "AgentStepFields"
1098
+ },
1099
+ "variableDefinitions": [],
1100
+ "typeCondition": {
1101
+ "kind": "NamedType",
1102
+ "name": {
1103
+ "kind": "Name",
1104
+ "value": "AgentStep"
1105
+ }
1106
+ },
1107
+ "directives": [],
1108
+ "selectionSet": {
1109
+ "kind": "SelectionSet",
1110
+ "selections": [
1111
+ {
1112
+ "kind": "Field",
1113
+ "name": {
1114
+ "kind": "Name",
1115
+ "value": "id"
1116
+ },
1117
+ "arguments": [],
1118
+ "directives": []
1119
+ },
1120
+ {
1121
+ "kind": "Field",
1122
+ "name": {
1123
+ "kind": "Name",
1124
+ "value": "runId"
1125
+ },
1126
+ "arguments": [],
1127
+ "directives": []
1128
+ },
1129
+ {
1130
+ "kind": "Field",
1131
+ "name": {
1132
+ "kind": "Name",
1133
+ "value": "nodeId"
1134
+ },
1135
+ "arguments": [],
1136
+ "directives": []
1137
+ },
1138
+ {
1139
+ "kind": "Field",
1140
+ "name": {
1141
+ "kind": "Name",
1142
+ "value": "nodeStateId"
1143
+ },
1144
+ "arguments": [],
1145
+ "directives": []
1146
+ },
1147
+ {
1148
+ "kind": "Field",
1149
+ "name": {
1150
+ "kind": "Name",
1151
+ "value": "iteration"
1152
+ },
1153
+ "arguments": [],
1154
+ "directives": []
1155
+ },
1156
+ {
1157
+ "kind": "Field",
1158
+ "name": {
1159
+ "kind": "Name",
1160
+ "value": "sequence"
1161
+ },
1162
+ "arguments": [],
1163
+ "directives": []
1164
+ },
1165
+ {
1166
+ "kind": "Field",
1167
+ "name": {
1168
+ "kind": "Name",
1169
+ "value": "kind"
1170
+ },
1171
+ "arguments": [],
1172
+ "directives": []
1173
+ },
1174
+ {
1175
+ "kind": "Field",
1176
+ "name": {
1177
+ "kind": "Name",
1178
+ "value": "toolName"
1179
+ },
1180
+ "arguments": [],
1181
+ "directives": []
1182
+ },
1183
+ {
1184
+ "kind": "Field",
1185
+ "name": {
1186
+ "kind": "Name",
1187
+ "value": "toolCallId"
1188
+ },
1189
+ "arguments": [],
1190
+ "directives": []
1191
+ },
1192
+ {
1193
+ "kind": "Field",
1194
+ "name": {
1195
+ "kind": "Name",
1196
+ "value": "approvalId"
1197
+ },
1198
+ "arguments": [],
1199
+ "directives": []
1200
+ },
1201
+ {
1202
+ "kind": "Field",
1203
+ "name": {
1204
+ "kind": "Name",
1205
+ "value": "input"
1206
+ },
1207
+ "arguments": [],
1208
+ "directives": []
1209
+ },
1210
+ {
1211
+ "kind": "Field",
1212
+ "name": {
1213
+ "kind": "Name",
1214
+ "value": "output"
1215
+ },
1216
+ "arguments": [],
1217
+ "directives": []
1218
+ },
1219
+ {
1220
+ "kind": "Field",
1221
+ "name": {
1222
+ "kind": "Name",
1223
+ "value": "model"
1224
+ },
1225
+ "arguments": [],
1226
+ "directives": []
1227
+ },
1228
+ {
1229
+ "kind": "Field",
1230
+ "name": {
1231
+ "kind": "Name",
1232
+ "value": "tokensIn"
1233
+ },
1234
+ "arguments": [],
1235
+ "directives": []
1236
+ },
1237
+ {
1238
+ "kind": "Field",
1239
+ "name": {
1240
+ "kind": "Name",
1241
+ "value": "tokensOut"
1242
+ },
1243
+ "arguments": [],
1244
+ "directives": []
1245
+ },
1246
+ {
1247
+ "kind": "Field",
1248
+ "name": {
1249
+ "kind": "Name",
1250
+ "value": "latencyMs"
1251
+ },
1252
+ "arguments": [],
1253
+ "directives": []
1254
+ },
1255
+ {
1256
+ "kind": "Field",
1257
+ "name": {
1258
+ "kind": "Name",
1259
+ "value": "promptInvocationId"
1260
+ },
1261
+ "arguments": [],
1262
+ "directives": []
1263
+ },
1264
+ {
1265
+ "kind": "Field",
1266
+ "name": {
1267
+ "kind": "Name",
1268
+ "value": "costMicroUsd"
1269
+ },
1270
+ "arguments": [],
1271
+ "directives": []
1272
+ },
1273
+ {
1274
+ "kind": "Field",
1275
+ "name": {
1276
+ "kind": "Name",
1277
+ "value": "createdAt"
1278
+ },
1279
+ "arguments": [],
1280
+ "directives": []
1281
+ }
1282
+ ]
1283
+ }
1284
+ }]
1285
+ };
1286
+
1287
+ // src/generated/documents/wspace/ExplainRunDocument.ts
1288
+ const ExplainRunDocument = {
1289
+ "kind": "Document",
1290
+ "definitions": [{
1291
+ "kind": "OperationDefinition",
1292
+ "operation": "query",
1293
+ "name": {
1294
+ "kind": "Name",
1295
+ "value": "ExplainRun"
1296
+ },
1297
+ "variableDefinitions": [{
1298
+ "kind": "VariableDefinition",
1299
+ "variable": {
1300
+ "kind": "Variable",
1301
+ "name": {
1302
+ "kind": "Name",
1303
+ "value": "runId"
1304
+ }
1305
+ },
1306
+ "type": {
1307
+ "kind": "NonNullType",
1308
+ "type": {
1309
+ "kind": "NamedType",
1310
+ "name": {
1311
+ "kind": "Name",
1312
+ "value": "ID"
1313
+ }
1314
+ }
1315
+ },
1316
+ "directives": []
1317
+ }],
1318
+ "directives": [],
1319
+ "selectionSet": {
1320
+ "kind": "SelectionSet",
1321
+ "selections": [{
1322
+ "kind": "Field",
1323
+ "name": {
1324
+ "kind": "Name",
1325
+ "value": "explainRun"
1326
+ },
1327
+ "arguments": [{
1328
+ "kind": "Argument",
1329
+ "name": {
1330
+ "kind": "Name",
1331
+ "value": "runId"
1332
+ },
1333
+ "value": {
1334
+ "kind": "Variable",
1335
+ "name": {
1336
+ "kind": "Name",
1337
+ "value": "runId"
1338
+ }
1339
+ }
1340
+ }],
1341
+ "directives": [],
1342
+ "selectionSet": {
1343
+ "kind": "SelectionSet",
1344
+ "selections": [
1345
+ {
1346
+ "kind": "Field",
1347
+ "name": {
1348
+ "kind": "Name",
1349
+ "value": "runId"
1350
+ },
1351
+ "arguments": [],
1352
+ "directives": []
1353
+ },
1354
+ {
1355
+ "kind": "Field",
1356
+ "name": {
1357
+ "kind": "Name",
1358
+ "value": "workflowId"
1359
+ },
1360
+ "arguments": [],
1361
+ "directives": []
1362
+ },
1363
+ {
1364
+ "kind": "Field",
1365
+ "name": {
1366
+ "kind": "Name",
1367
+ "value": "workflowKey"
1368
+ },
1369
+ "arguments": [],
1370
+ "directives": []
1371
+ },
1372
+ {
1373
+ "kind": "Field",
1374
+ "name": {
1375
+ "kind": "Name",
1376
+ "value": "version"
1377
+ },
1378
+ "arguments": [],
1379
+ "directives": []
1380
+ },
1381
+ {
1382
+ "kind": "Field",
1383
+ "name": {
1384
+ "kind": "Name",
1385
+ "value": "status"
1386
+ },
1387
+ "arguments": [],
1388
+ "directives": []
1389
+ },
1390
+ {
1391
+ "kind": "Field",
1392
+ "name": {
1393
+ "kind": "Name",
1394
+ "value": "failed"
1395
+ },
1396
+ "arguments": [],
1397
+ "directives": []
1398
+ },
1399
+ {
1400
+ "kind": "Field",
1401
+ "name": {
1402
+ "kind": "Name",
1403
+ "value": "failingNodeId"
1404
+ },
1405
+ "arguments": [],
1406
+ "directives": []
1407
+ },
1408
+ {
1409
+ "kind": "Field",
1410
+ "name": {
1411
+ "kind": "Name",
1412
+ "value": "failingNodeType"
1413
+ },
1414
+ "arguments": [],
1415
+ "directives": []
1416
+ },
1417
+ {
1418
+ "kind": "Field",
1419
+ "name": {
1420
+ "kind": "Name",
1421
+ "value": "failingNodeLabel"
1422
+ },
1423
+ "arguments": [],
1424
+ "directives": []
1425
+ },
1426
+ {
1427
+ "kind": "Field",
1428
+ "name": {
1429
+ "kind": "Name",
1430
+ "value": "errorType"
1431
+ },
1432
+ "arguments": [],
1433
+ "directives": []
1434
+ },
1435
+ {
1436
+ "kind": "Field",
1437
+ "name": {
1438
+ "kind": "Name",
1439
+ "value": "cause"
1440
+ },
1441
+ "arguments": [],
1442
+ "directives": []
1443
+ },
1444
+ {
1445
+ "kind": "Field",
1446
+ "name": {
1447
+ "kind": "Name",
1448
+ "value": "evidence"
1449
+ },
1450
+ "arguments": [],
1451
+ "directives": []
1452
+ },
1453
+ {
1454
+ "kind": "Field",
1455
+ "name": {
1456
+ "kind": "Name",
1457
+ "value": "suggestions"
1458
+ },
1459
+ "arguments": [],
1460
+ "directives": []
1461
+ }
1462
+ ]
1463
+ }
1464
+ }]
1465
+ }
1466
+ }]
1467
+ };
1468
+
43
1469
  // src/modules/human-response/utils/answer-rows.ts
44
1470
  /**
45
1471
  * What a person answered to a free-text or form ask, as label/value rows — the answer that drove
@@ -2622,7 +4048,8 @@ function toTurn(step) {
2622
4048
  input: prettyValue(step.input),
2623
4049
  reply: isRecord$1(output) ? text$1(output.content) ?? prettyValue(output.toolCalls) ?? error : prettyValue(output),
2624
4050
  metered: step.promptInvocationId !== null,
2625
- failed: error !== null
4051
+ failed: error !== null,
4052
+ partialReply: isRecord$1(output) ? text$1(output.partialContent) : null
2626
4053
  };
2627
4054
  }
2628
4055
  function toFinal(step) {
@@ -2775,7 +4202,7 @@ function stepTraceFor(nodes, nodeStateId, nodeId) {
2775
4202
  * without a step trace (recorded before it existed) falls back to the node
2776
4203
  * states the run page already polls (see utils/agent-trace.ts).
2777
4204
  */
2778
- function AgentTracePanel({ traces, nodeDisplay, usage, usageLoading, usageError, onRefreshUsage, focusNodeId, stepTraces = [], stepTraceDataPruned = false, stepTraceError = null }) {
4205
+ function AgentTracePanel({ traces, nodeDisplay, usage, usageLoading, usageError, onRefreshUsage, focusNodeId, stepTraces = [], stepTraceDataPruned = false, stepTraceError = null, liveReplies = [], runLive = false }) {
2779
4206
  const tr = useTr();
2780
4207
  const anyStepTrace = traces.some((trace) => !!stepTraceFor(stepTraces, trace.nodeStateId, trace.nodeId));
2781
4208
  return /* @__PURE__ */ jsxs("div", {
@@ -2802,6 +4229,8 @@ function AgentTracePanel({ traces, nodeDisplay, usage, usageLoading, usageError,
2802
4229
  traces.map((trace) => /* @__PURE__ */ jsx(AgentNodeCard, {
2803
4230
  trace,
2804
4231
  steps: stepTraceFor(stepTraces, trace.nodeStateId, trace.nodeId),
4232
+ liveReplies: agentTokenStreamsFor(liveReplies, trace.nodeStateId, trace.nodeId),
4233
+ runLive,
2805
4234
  title: nodeDisplayTitle(nodeDisplay[trace.nodeId], trace.nodeId),
2806
4235
  focused: !!focusNodeId && focusNodeId === trace.nodeId,
2807
4236
  tr
@@ -2981,7 +4410,8 @@ function UsageLines({ lines, nodeDisplay, tr }) {
2981
4410
  })
2982
4411
  });
2983
4412
  }
2984
- function AgentNodeCard({ trace, steps, title, focused, tr }) {
4413
+ function AgentNodeCard({ trace, steps, liveReplies, runLive, title, focused, tr }) {
4414
+ const pendingReplies = repliesWithoutStep(liveReplies, steps);
2985
4415
  const iterationCount = steps?.totals.iterations ?? trace.iterationCount;
2986
4416
  const tokensUsed = steps ? steps.totals.tokensIn + steps.totals.tokensOut : trace.tokensUsed;
2987
4417
  const toolCallCount = steps?.totals.toolCalls ?? trace.steps.length;
@@ -3081,6 +4511,15 @@ function AgentNodeCard({ trace, steps, title, focused, tr }) {
3081
4511
  }, step.index))
3082
4512
  })]
3083
4513
  }),
4514
+ pendingReplies.length > 0 && /* @__PURE__ */ jsx("ol", {
4515
+ className: "mt-4 space-y-2",
4516
+ "data-testid": "agent-live-replies",
4517
+ children: pendingReplies.map((reply) => /* @__PURE__ */ jsx(LiveReply, {
4518
+ reply,
4519
+ runLive,
4520
+ tr
4521
+ }, reply.key))
4522
+ }),
3084
4523
  trace.response && /* @__PURE__ */ jsxs("details", {
3085
4524
  className: "mt-4",
3086
4525
  open: true,
@@ -3358,18 +4797,146 @@ function ModelTurnRow({ turn, tr }) {
3358
4797
  ]
3359
4798
  }), /* @__PURE__ */ jsxs("div", {
3360
4799
  className: "space-y-2 border-t border-border-secondary px-3 py-2",
3361
- children: [/* @__PURE__ */ jsx(StepBlock, {
3362
- label: tr("fluidgrids.executions.executionDetail.agent.sentToModel", "Sent to the model"),
3363
- value: turn.input,
3364
- empty: tr("fluidgrids.executions.executionDetail.agent.stepNotRecorded", "Not recorded")
3365
- }), /* @__PURE__ */ jsx(StepBlock, {
3366
- label: tr("fluidgrids.executions.executionDetail.agent.modelReply", "Reply"),
3367
- value: turn.reply,
3368
- empty: tr("fluidgrids.executions.executionDetail.agent.stepNotRecorded", "Not recorded")
3369
- })]
4800
+ children: [
4801
+ /* @__PURE__ */ jsx(StepBlock, {
4802
+ label: tr("fluidgrids.executions.executionDetail.agent.sentToModel", "Sent to the model"),
4803
+ value: turn.input,
4804
+ empty: tr("fluidgrids.executions.executionDetail.agent.stepNotRecorded", "Not recorded")
4805
+ }),
4806
+ /* @__PURE__ */ jsx(StepBlock, {
4807
+ label: tr("fluidgrids.executions.executionDetail.agent.modelReply", "Reply"),
4808
+ value: turn.reply,
4809
+ empty: tr("fluidgrids.executions.executionDetail.agent.stepNotRecorded", "Not recorded")
4810
+ }),
4811
+ turn.partialReply && /* @__PURE__ */ jsx(StepBlock, {
4812
+ label: tr("fluidgrids.executions.executionDetail.agent.partialReply", "Partial reply before the error"),
4813
+ value: turn.partialReply,
4814
+ empty: ""
4815
+ })
4816
+ ]
3370
4817
  })]
3371
4818
  });
3372
4819
  }
4820
+ /**
4821
+ * The streamed replies still worth showing: those whose iteration has no
4822
+ * model turn in the step trace yet. A finished reply with no text (a turn
4823
+ * that only asked for tools) has nothing to show.
4824
+ */
4825
+ function repliesWithoutStep(replies, steps) {
4826
+ const planned = new Set((steps?.iterations ?? []).filter((iteration) => iteration.turns.length > 0).map((iteration) => iteration.iteration));
4827
+ return replies.filter((reply) => !planned.has(reply.iteration) && (!reply.done || reply.text.length > 0 || reply.error !== null));
4828
+ }
4829
+ /** Border and note colour of a live reply in each state. */
4830
+ const LIVE_REPLY_TONE = {
4831
+ streaming: {
4832
+ border: "border-border-secondary",
4833
+ note: "text-text-secondary"
4834
+ },
4835
+ done: {
4836
+ border: "border-border-secondary",
4837
+ note: "text-text-secondary"
4838
+ },
4839
+ failed: {
4840
+ border: "border-status-error-border",
4841
+ note: "text-status-error-text"
4842
+ },
4843
+ stopped: {
4844
+ border: "border-status-warning-border",
4845
+ note: "text-status-warning-text"
4846
+ }
4847
+ };
4848
+ /** What a live reply says about its state, or null while it is being written. */
4849
+ function liveReplyNote(state, tr) {
4850
+ switch (state) {
4851
+ case "failed": return tr("fluidgrids.executions.executionDetail.agent.live.failed", "The model call failed. This is what the model wrote before it stopped.");
4852
+ case "stopped": return tr("fluidgrids.executions.executionDetail.agent.live.stopped", "The run stopped before the model finished. This is what the model wrote.");
4853
+ case "done": return tr("fluidgrids.executions.executionDetail.agent.live.done", "The model finished this reply. Its step appears here shortly.");
4854
+ case "streaming": return null;
4855
+ }
4856
+ }
4857
+ function LiveReplyHeader({ iteration, writing, tr }) {
4858
+ return /* @__PURE__ */ jsxs("div", {
4859
+ className: "flex flex-wrap items-center gap-2 text-sm",
4860
+ children: [
4861
+ /* @__PURE__ */ jsx(Icon, {
4862
+ icon: writing ? "mdi:loading" : "mdi:message-text-outline",
4863
+ width: 14,
4864
+ className: `shrink-0 text-text-secondary ${writing ? "animate-spin" : ""}`
4865
+ }),
4866
+ /* @__PURE__ */ jsx("span", {
4867
+ className: "font-medium text-text-primary",
4868
+ children: tr("fluidgrids.executions.executionDetail.agent.live.heading", "Iteration {{number}}: live reply", { number: iteration + 1 })
4869
+ }),
4870
+ writing && /* @__PURE__ */ jsx("span", {
4871
+ className: "text-xs text-text-secondary",
4872
+ children: tr("fluidgrids.executions.executionDetail.agent.live.writing", "The model is writing…")
4873
+ })
4874
+ ]
4875
+ });
4876
+ }
4877
+ function LiveReplyText({ text, writing, tr }) {
4878
+ if (!text) {
4879
+ if (!writing) return null;
4880
+ return /* @__PURE__ */ jsx("p", {
4881
+ className: "mt-2 text-xs text-text-secondary",
4882
+ children: tr("fluidgrids.executions.executionDetail.agent.live.waiting", "Waiting for the model's first words…")
4883
+ });
4884
+ }
4885
+ return /* @__PURE__ */ jsxs("pre", {
4886
+ className: "mt-2 max-h-80 overflow-auto rounded bg-background-tertiary p-2 font-mono text-xs whitespace-pre-wrap break-words text-text-primary",
4887
+ "aria-live": writing ? "polite" : "off",
4888
+ "data-testid": "agent-live-reply-text",
4889
+ children: [text, writing && /* @__PURE__ */ jsx("span", {
4890
+ "aria-hidden": "true",
4891
+ className: "animate-pulse",
4892
+ children: "▍"
4893
+ })]
4894
+ });
4895
+ }
4896
+ function LiveReply({ reply, runLive, tr }) {
4897
+ const state = agentLiveReplyState(reply, runLive);
4898
+ const writing = state === "streaming";
4899
+ const tone = LIVE_REPLY_TONE[state];
4900
+ const note = liveReplyNote(state, tr);
4901
+ return /* @__PURE__ */ jsxs("li", {
4902
+ className: `rounded border ${tone.border} p-3`,
4903
+ "data-testid": "agent-live-reply",
4904
+ "data-state": state,
4905
+ "data-node-id": reply.nodeId,
4906
+ "data-iteration": reply.iteration,
4907
+ children: [
4908
+ /* @__PURE__ */ jsx(LiveReplyHeader, {
4909
+ iteration: reply.iteration,
4910
+ writing,
4911
+ tr
4912
+ }),
4913
+ /* @__PURE__ */ jsx(LiveReplyText, {
4914
+ text: reply.text,
4915
+ writing,
4916
+ tr
4917
+ }),
4918
+ note && /* @__PURE__ */ jsx("p", {
4919
+ className: `mt-2 text-xs ${tone.note}`,
4920
+ children: note
4921
+ }),
4922
+ reply.error && /* @__PURE__ */ jsxs("p", {
4923
+ className: "mt-1 text-xs break-words text-status-error-text",
4924
+ children: [/* @__PURE__ */ jsxs("span", {
4925
+ className: "font-medium",
4926
+ children: [
4927
+ tr("fluidgrids.executions.executionDetail.agent.error", "Error"),
4928
+ ":",
4929
+ " "
4930
+ ]
4931
+ }), reply.error]
4932
+ }),
4933
+ (reply.gap || reply.truncated) && /* @__PURE__ */ jsx("p", {
4934
+ className: "mt-1 text-xs text-text-secondary",
4935
+ children: tr("fluidgrids.executions.executionDetail.agent.live.incomplete", "Part of this reply is not shown here. The step trace shows the full reply once the model finishes.")
4936
+ })
4937
+ ]
4938
+ });
4939
+ }
3373
4940
  function ToolCallRow({ call, tr }) {
3374
4941
  const waiting = !call.hasResult && call.rule === "ask";
3375
4942
  let border = "border-border-secondary";
@@ -6309,6 +7876,7 @@ function ExecutionDetailPage() {
6309
7876
  enabled: hasAgent && activeTab === "agent",
6310
7877
  live: isActive
6311
7878
  });
7879
+ const agentTokenStream = useAgentTokenStream(runId, { enabled: hasAgent && activeTab === "agent" && isActive });
6312
7880
  const agentTraces = useMemo(() => agentNodeTraces(orderNodesByExecution(execution?.nodeStates ?? [], execution?.triggerNodeId ?? void 0)), [execution?.nodeStates, execution?.triggerNodeId]);
6313
7881
  const activityControls = isDurableRun && phaseC.runControlDurable;
6314
7882
  const runPending = useRunPending(runId, {
@@ -7383,7 +8951,9 @@ function ExecutionDetailPage() {
7383
8951
  focusNodeId: agentFocusNodeId,
7384
8952
  stepTraces: agentStepTrace.nodes,
7385
8953
  stepTraceDataPruned: agentStepTrace.dataPruned,
7386
- stepTraceError: agentStepTrace.error
8954
+ stepTraceError: agentStepTrace.error,
8955
+ liveReplies: agentTokenStream.streams,
8956
+ runLive: isActive
7387
8957
  })]
7388
8958
  }),
7389
8959
  activeTab === "history" && isDurableRun && /* @__PURE__ */ jsxs("div", {
@@ -7524,4 +9094,4 @@ function ExecutionDetailPage() {
7524
9094
  });
7525
9095
  }
7526
9096
 
7527
- export { ExecutionDetailPage_exports as n, RunHumanRequests as r, ExecutionDetailPage as t };
9097
+ export { AgentStepUpdatedDocument as a, AgentTraceDocument as c, ExplainRunDocument as i, ExecutionDetailPage_exports as n, WorkflowRunHierarchyDocument as o, RunHumanRequests as r, RunAiUsageDocument as s, ExecutionDetailPage as t };