@burdenoff/fluidgrids-fe-sdk 2026.1113.1 → 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-D3MAk-bs.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-Dc2QuJbL.js → DataSinkDashboardPage-8ZDn85e2.js} +1 -1
  6. package/dist/{DataTablesPage-Cv4veaKK.js → DataTablesPage-BBvABuxE.js} +5 -4
  7. package/dist/{EntityTagPicker-D8ws706D.js → EntityTagPicker-BppBSEJk.js} +2 -2
  8. package/dist/{ExecutionDetailPage-CTVGE-d-.js → ExecutionDetailPage-BXDF2eoT.js} +1444 -18
  9. package/dist/ExecutionsListDocument-CzdLPpj5.js +1259 -0
  10. package/dist/{ExecutionsListPage-J0sJPuoM.js → ExecutionsListPage--4BthM8L.js} +285 -11
  11. package/dist/FailureTriagePanel-B5WCSRFo.js +1252 -0
  12. package/dist/{FluidGridsProvider-C4FVNz0n.js → FluidGridsProvider-Dc_Jhtch.js} +8666 -8734
  13. package/dist/{HistoryPage-B9XcTPrO.js → HistoryPage-BvFk2m1m.js} +4 -3
  14. package/dist/{InsightsPage-DFOltjyj.js → InsightsPage-Dwmb02F6.js} +2682 -5
  15. package/dist/{MissingNodesInstallModal-D8H-YNCJ.js → MissingNodesInstallModal-Cze674hp.js} +2 -2
  16. package/dist/{NodesPage-YQ-hP60x.js → NodesPage-C5Dq-ru-.js} +3 -2
  17. package/dist/{OpenTemplateAsCodeButton-hH26HQCk.js → OpenTemplateAsCodeButton-8MZHih6I.js} +2 -2
  18. package/dist/{PaidTemplateConfirm-DoKWMBtR.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-DEKPCVVP.js → SettingsPage-CfjXiGpb.js} +694 -14
  24. package/dist/{TagFilterSelect-CwM2-DU6.js → TagFilterSelect-CAShgvbS.js} +1 -1
  25. package/dist/{TaskQueuesPage-Dhi6SIT4.js → TaskQueuesPage--Mmn36b-.js} +3 -3
  26. package/dist/{TemplateCard-DVSd_4zJ.js → TemplateCard-BA_9em22.js} +644 -352
  27. package/dist/{TemplateConfigurationModal-BKi1z7z7.js → TemplateConfigurationModal-BT3PaR0O.js} +4 -3
  28. package/dist/{TemplateDetailPanel-DK1gF7P5.js → TemplateDetailPanel-BxFNnlXm.js} +2 -1
  29. package/dist/{TemplatePreview-DuSX2Q7H.js → TemplatePreview-Bagja6WN.js} +7 -7
  30. package/dist/{TemplatesPage-CAWHh61l.js → TemplatesPage-CAajpJ5w.js} +711 -6
  31. package/dist/{VariablesPage-D7CoatWf.js → VariablesPage-CgUBKhAe.js} +3 -3
  32. package/dist/{VersionDiffDialog-DGwysiyE.js → VersionDiffDialog-D9W5Fm56.js} +233 -129
  33. package/dist/VersionLifecycleBar-DuphLOT0.js +131 -0
  34. package/dist/{WorkflowBuilder-DAeoQi5E.js → WorkflowBuilder-DMpSPElu.js} +16 -13
  35. package/dist/{WorkflowBuilder-BJgqDboZ.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-CMEvd_AR.js → WorkflowSearchRedirect-G78lINAE.js} +1 -1
  41. package/dist/{WorkflowShareDialog-BgHRsDP0.js → WorkflowShareDialog-B7VOgr4-.js} +304 -3
  42. package/dist/WorkflowVersionsDocument-CfPMloRW.js +3195 -0
  43. package/dist/{WorkflowsList-CcQPxWKL.js → WorkflowsList-CPYzfE4K.js} +11 -9
  44. package/dist/agent-form-D0uLvzx4.js +718 -0
  45. package/dist/{agentTools-DKpNKztf.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-C_AN79m0.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-Dt6KNWwN.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-D3Hl2AFk.js → flow-builder-Dv5fWJ6F.js} +9301 -8189
  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-CWcP-tG1.d.ts → index-DtMUtXNq.d.ts} +247 -247
  70. package/dist/index.d.ts +1 -1
  71. package/dist/index.js +4403 -46
  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-bVLeYarT.js → node-detail-view-BKI_2kM6.js} +12 -11
  76. package/dist/{node-editor-tab-body-JHHVtQgR.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-Xx3gN7vg.js → popover-DDv7J1Kl.js} +717 -6
  84. package/dist/{quick-config-panel-BvVQXuIL.js → quick-config-panel-BPCRfqWI.js} +4 -4
  85. package/dist/read-only-context-Dt9N9SIG.js +18 -0
  86. package/dist/{schedule-panel-DCb40TPN.js → schedule-panel-C1KwfLCE.js} +14 -12
  87. package/dist/settings.js +1 -1
  88. package/dist/{shared-CMfn30xT.js → shared-Ctl9ZHo1.js} +2 -1
  89. package/dist/{sidebar-node-editor-DxCWFZG2.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-Db4Pc8_M.js → useEntityTags-4iW6UTly.js} +227 -3
  99. package/dist/{useExecutions-DOpG1pUQ.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-rQmwhoZZ.js → useObservability-DPATdbw7.js} +4 -2
  103. package/dist/{useRunHistory-COn6dl7l.js → useRunHistory-CGfjCsJ3.js} +1122 -4
  104. package/dist/{useVariables-2ddyJX4a.js → useVariables-DFdZofLQ.js} +2 -1
  105. package/dist/{useWorkflowCodeExport-ZoUJKRSK.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-jOW60YmD.js → useWorkflows-aqVD7kGa.js} +694 -4
  109. package/dist/workflow-builder.js +5 -5
  110. package/dist/{workflow-code-transfer-l9wO34S0.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-BbYFYeV_.js +0 -311
  118. package/dist/WorkflowProposalCard-DGMdZC4R.js +0 -1432
  119. package/dist/agent-form-Bfvm32j1.js +0 -83
  120. package/dist/api-DQtHXbIg.js +0 -224
  121. package/dist/api-MeAm6g7E.js +0 -55
  122. package/dist/client-C9XSzSXr.js +0 -1147
  123. package/dist/graphql-operation-types-C9qbvRa8.js +0 -53122
  124. package/dist/useAgentDefinitions-_hgNCK1A.js +0 -550
  125. package/dist/useConnections-Cs7LCWEM.js +0 -401
  126. package/dist/useDurableParity-CcLeCDfv.js +0 -504
  127. package/dist/useWorkflowOrganization-QxVePSkk.js +0 -282
@@ -0,0 +1,718 @@
1
+ "use client";
2
+ // src/generated/documents/wspace/RunLogsDocument.ts
3
+ const RunLogsDocument = {
4
+ "kind": "Document",
5
+ "definitions": [{
6
+ "kind": "OperationDefinition",
7
+ "operation": "query",
8
+ "name": {
9
+ "kind": "Name",
10
+ "value": "RunLogs"
11
+ },
12
+ "variableDefinitions": [
13
+ {
14
+ "kind": "VariableDefinition",
15
+ "variable": {
16
+ "kind": "Variable",
17
+ "name": {
18
+ "kind": "Name",
19
+ "value": "runId"
20
+ }
21
+ },
22
+ "type": {
23
+ "kind": "NonNullType",
24
+ "type": {
25
+ "kind": "NamedType",
26
+ "name": {
27
+ "kind": "Name",
28
+ "value": "ID"
29
+ }
30
+ }
31
+ },
32
+ "directives": []
33
+ },
34
+ {
35
+ "kind": "VariableDefinition",
36
+ "variable": {
37
+ "kind": "Variable",
38
+ "name": {
39
+ "kind": "Name",
40
+ "value": "after"
41
+ }
42
+ },
43
+ "type": {
44
+ "kind": "NamedType",
45
+ "name": {
46
+ "kind": "Name",
47
+ "value": "String"
48
+ }
49
+ },
50
+ "directives": []
51
+ },
52
+ {
53
+ "kind": "VariableDefinition",
54
+ "variable": {
55
+ "kind": "Variable",
56
+ "name": {
57
+ "kind": "Name",
58
+ "value": "limit"
59
+ }
60
+ },
61
+ "type": {
62
+ "kind": "NamedType",
63
+ "name": {
64
+ "kind": "Name",
65
+ "value": "Int"
66
+ }
67
+ },
68
+ "directives": []
69
+ },
70
+ {
71
+ "kind": "VariableDefinition",
72
+ "variable": {
73
+ "kind": "Variable",
74
+ "name": {
75
+ "kind": "Name",
76
+ "value": "nodeId"
77
+ }
78
+ },
79
+ "type": {
80
+ "kind": "NamedType",
81
+ "name": {
82
+ "kind": "Name",
83
+ "value": "String"
84
+ }
85
+ },
86
+ "directives": []
87
+ },
88
+ {
89
+ "kind": "VariableDefinition",
90
+ "variable": {
91
+ "kind": "Variable",
92
+ "name": {
93
+ "kind": "Name",
94
+ "value": "minLevel"
95
+ }
96
+ },
97
+ "type": {
98
+ "kind": "NamedType",
99
+ "name": {
100
+ "kind": "Name",
101
+ "value": "RunLogLevel"
102
+ }
103
+ },
104
+ "directives": []
105
+ },
106
+ {
107
+ "kind": "VariableDefinition",
108
+ "variable": {
109
+ "kind": "Variable",
110
+ "name": {
111
+ "kind": "Name",
112
+ "value": "search"
113
+ }
114
+ },
115
+ "type": {
116
+ "kind": "NamedType",
117
+ "name": {
118
+ "kind": "Name",
119
+ "value": "String"
120
+ }
121
+ },
122
+ "directives": []
123
+ },
124
+ {
125
+ "kind": "VariableDefinition",
126
+ "variable": {
127
+ "kind": "Variable",
128
+ "name": {
129
+ "kind": "Name",
130
+ "value": "includeChildRuns"
131
+ }
132
+ },
133
+ "type": {
134
+ "kind": "NamedType",
135
+ "name": {
136
+ "kind": "Name",
137
+ "value": "Boolean"
138
+ }
139
+ },
140
+ "directives": []
141
+ }
142
+ ],
143
+ "directives": [],
144
+ "selectionSet": {
145
+ "kind": "SelectionSet",
146
+ "selections": [{
147
+ "kind": "Field",
148
+ "name": {
149
+ "kind": "Name",
150
+ "value": "workflowRunLogs"
151
+ },
152
+ "arguments": [
153
+ {
154
+ "kind": "Argument",
155
+ "name": {
156
+ "kind": "Name",
157
+ "value": "runId"
158
+ },
159
+ "value": {
160
+ "kind": "Variable",
161
+ "name": {
162
+ "kind": "Name",
163
+ "value": "runId"
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "kind": "Argument",
169
+ "name": {
170
+ "kind": "Name",
171
+ "value": "after"
172
+ },
173
+ "value": {
174
+ "kind": "Variable",
175
+ "name": {
176
+ "kind": "Name",
177
+ "value": "after"
178
+ }
179
+ }
180
+ },
181
+ {
182
+ "kind": "Argument",
183
+ "name": {
184
+ "kind": "Name",
185
+ "value": "limit"
186
+ },
187
+ "value": {
188
+ "kind": "Variable",
189
+ "name": {
190
+ "kind": "Name",
191
+ "value": "limit"
192
+ }
193
+ }
194
+ },
195
+ {
196
+ "kind": "Argument",
197
+ "name": {
198
+ "kind": "Name",
199
+ "value": "nodeId"
200
+ },
201
+ "value": {
202
+ "kind": "Variable",
203
+ "name": {
204
+ "kind": "Name",
205
+ "value": "nodeId"
206
+ }
207
+ }
208
+ },
209
+ {
210
+ "kind": "Argument",
211
+ "name": {
212
+ "kind": "Name",
213
+ "value": "minLevel"
214
+ },
215
+ "value": {
216
+ "kind": "Variable",
217
+ "name": {
218
+ "kind": "Name",
219
+ "value": "minLevel"
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "kind": "Argument",
225
+ "name": {
226
+ "kind": "Name",
227
+ "value": "search"
228
+ },
229
+ "value": {
230
+ "kind": "Variable",
231
+ "name": {
232
+ "kind": "Name",
233
+ "value": "search"
234
+ }
235
+ }
236
+ },
237
+ {
238
+ "kind": "Argument",
239
+ "name": {
240
+ "kind": "Name",
241
+ "value": "includeChildRuns"
242
+ },
243
+ "value": {
244
+ "kind": "Variable",
245
+ "name": {
246
+ "kind": "Name",
247
+ "value": "includeChildRuns"
248
+ }
249
+ }
250
+ }
251
+ ],
252
+ "directives": [],
253
+ "selectionSet": {
254
+ "kind": "SelectionSet",
255
+ "selections": [
256
+ {
257
+ "kind": "Field",
258
+ "name": {
259
+ "kind": "Name",
260
+ "value": "lines"
261
+ },
262
+ "arguments": [],
263
+ "directives": [],
264
+ "selectionSet": {
265
+ "kind": "SelectionSet",
266
+ "selections": [{
267
+ "kind": "FragmentSpread",
268
+ "name": {
269
+ "kind": "Name",
270
+ "value": "RunLogLineFields"
271
+ },
272
+ "directives": []
273
+ }]
274
+ }
275
+ },
276
+ {
277
+ "kind": "Field",
278
+ "name": {
279
+ "kind": "Name",
280
+ "value": "nextCursor"
281
+ },
282
+ "arguments": [],
283
+ "directives": []
284
+ },
285
+ {
286
+ "kind": "Field",
287
+ "name": {
288
+ "kind": "Name",
289
+ "value": "hasMore"
290
+ },
291
+ "arguments": [],
292
+ "directives": []
293
+ },
294
+ {
295
+ "kind": "Field",
296
+ "name": {
297
+ "kind": "Name",
298
+ "value": "limitReached"
299
+ },
300
+ "arguments": [],
301
+ "directives": []
302
+ }
303
+ ]
304
+ }
305
+ }]
306
+ }
307
+ }, {
308
+ "kind": "FragmentDefinition",
309
+ "name": {
310
+ "kind": "Name",
311
+ "value": "RunLogLineFields"
312
+ },
313
+ "variableDefinitions": [],
314
+ "typeCondition": {
315
+ "kind": "NamedType",
316
+ "name": {
317
+ "kind": "Name",
318
+ "value": "RunLogLine"
319
+ }
320
+ },
321
+ "directives": [],
322
+ "selectionSet": {
323
+ "kind": "SelectionSet",
324
+ "selections": [
325
+ {
326
+ "kind": "Field",
327
+ "name": {
328
+ "kind": "Name",
329
+ "value": "id"
330
+ },
331
+ "arguments": [],
332
+ "directives": []
333
+ },
334
+ {
335
+ "kind": "Field",
336
+ "name": {
337
+ "kind": "Name",
338
+ "value": "runId"
339
+ },
340
+ "arguments": [],
341
+ "directives": []
342
+ },
343
+ {
344
+ "kind": "Field",
345
+ "name": {
346
+ "kind": "Name",
347
+ "value": "nodeId"
348
+ },
349
+ "arguments": [],
350
+ "directives": []
351
+ },
352
+ {
353
+ "kind": "Field",
354
+ "name": {
355
+ "kind": "Name",
356
+ "value": "nodeStateId"
357
+ },
358
+ "arguments": [],
359
+ "directives": []
360
+ },
361
+ {
362
+ "kind": "Field",
363
+ "name": {
364
+ "kind": "Name",
365
+ "value": "attempt"
366
+ },
367
+ "arguments": [],
368
+ "directives": []
369
+ },
370
+ {
371
+ "kind": "Field",
372
+ "name": {
373
+ "kind": "Name",
374
+ "value": "level"
375
+ },
376
+ "arguments": [],
377
+ "directives": []
378
+ },
379
+ {
380
+ "kind": "Field",
381
+ "name": {
382
+ "kind": "Name",
383
+ "value": "stream"
384
+ },
385
+ "arguments": [],
386
+ "directives": []
387
+ },
388
+ {
389
+ "kind": "Field",
390
+ "name": {
391
+ "kind": "Name",
392
+ "value": "phase"
393
+ },
394
+ "arguments": [],
395
+ "directives": []
396
+ },
397
+ {
398
+ "kind": "Field",
399
+ "name": {
400
+ "kind": "Name",
401
+ "value": "message"
402
+ },
403
+ "arguments": [],
404
+ "directives": []
405
+ },
406
+ {
407
+ "kind": "Field",
408
+ "name": {
409
+ "kind": "Name",
410
+ "value": "data"
411
+ },
412
+ "arguments": [],
413
+ "directives": []
414
+ },
415
+ {
416
+ "kind": "Field",
417
+ "name": {
418
+ "kind": "Name",
419
+ "value": "truncated"
420
+ },
421
+ "arguments": [],
422
+ "directives": []
423
+ },
424
+ {
425
+ "kind": "Field",
426
+ "name": {
427
+ "kind": "Name",
428
+ "value": "timestamp"
429
+ },
430
+ "arguments": [],
431
+ "directives": []
432
+ }
433
+ ]
434
+ }
435
+ }]
436
+ };
437
+
438
+ // src/generated/documents/wspace/RunLogAppendedDocument.ts
439
+ const RunLogAppendedDocument = {
440
+ "kind": "Document",
441
+ "definitions": [{
442
+ "kind": "OperationDefinition",
443
+ "operation": "subscription",
444
+ "name": {
445
+ "kind": "Name",
446
+ "value": "RunLogAppended"
447
+ },
448
+ "variableDefinitions": [{
449
+ "kind": "VariableDefinition",
450
+ "variable": {
451
+ "kind": "Variable",
452
+ "name": {
453
+ "kind": "Name",
454
+ "value": "runId"
455
+ }
456
+ },
457
+ "type": {
458
+ "kind": "NonNullType",
459
+ "type": {
460
+ "kind": "NamedType",
461
+ "name": {
462
+ "kind": "Name",
463
+ "value": "ID"
464
+ }
465
+ }
466
+ },
467
+ "directives": []
468
+ }],
469
+ "directives": [],
470
+ "selectionSet": {
471
+ "kind": "SelectionSet",
472
+ "selections": [{
473
+ "kind": "Field",
474
+ "name": {
475
+ "kind": "Name",
476
+ "value": "runLogAppended"
477
+ },
478
+ "arguments": [{
479
+ "kind": "Argument",
480
+ "name": {
481
+ "kind": "Name",
482
+ "value": "runId"
483
+ },
484
+ "value": {
485
+ "kind": "Variable",
486
+ "name": {
487
+ "kind": "Name",
488
+ "value": "runId"
489
+ }
490
+ }
491
+ }],
492
+ "directives": [],
493
+ "selectionSet": {
494
+ "kind": "SelectionSet",
495
+ "selections": [{
496
+ "kind": "FragmentSpread",
497
+ "name": {
498
+ "kind": "Name",
499
+ "value": "RunLogLineFields"
500
+ },
501
+ "directives": []
502
+ }]
503
+ }
504
+ }]
505
+ }
506
+ }, {
507
+ "kind": "FragmentDefinition",
508
+ "name": {
509
+ "kind": "Name",
510
+ "value": "RunLogLineFields"
511
+ },
512
+ "variableDefinitions": [],
513
+ "typeCondition": {
514
+ "kind": "NamedType",
515
+ "name": {
516
+ "kind": "Name",
517
+ "value": "RunLogLine"
518
+ }
519
+ },
520
+ "directives": [],
521
+ "selectionSet": {
522
+ "kind": "SelectionSet",
523
+ "selections": [
524
+ {
525
+ "kind": "Field",
526
+ "name": {
527
+ "kind": "Name",
528
+ "value": "id"
529
+ },
530
+ "arguments": [],
531
+ "directives": []
532
+ },
533
+ {
534
+ "kind": "Field",
535
+ "name": {
536
+ "kind": "Name",
537
+ "value": "runId"
538
+ },
539
+ "arguments": [],
540
+ "directives": []
541
+ },
542
+ {
543
+ "kind": "Field",
544
+ "name": {
545
+ "kind": "Name",
546
+ "value": "nodeId"
547
+ },
548
+ "arguments": [],
549
+ "directives": []
550
+ },
551
+ {
552
+ "kind": "Field",
553
+ "name": {
554
+ "kind": "Name",
555
+ "value": "nodeStateId"
556
+ },
557
+ "arguments": [],
558
+ "directives": []
559
+ },
560
+ {
561
+ "kind": "Field",
562
+ "name": {
563
+ "kind": "Name",
564
+ "value": "attempt"
565
+ },
566
+ "arguments": [],
567
+ "directives": []
568
+ },
569
+ {
570
+ "kind": "Field",
571
+ "name": {
572
+ "kind": "Name",
573
+ "value": "level"
574
+ },
575
+ "arguments": [],
576
+ "directives": []
577
+ },
578
+ {
579
+ "kind": "Field",
580
+ "name": {
581
+ "kind": "Name",
582
+ "value": "stream"
583
+ },
584
+ "arguments": [],
585
+ "directives": []
586
+ },
587
+ {
588
+ "kind": "Field",
589
+ "name": {
590
+ "kind": "Name",
591
+ "value": "phase"
592
+ },
593
+ "arguments": [],
594
+ "directives": []
595
+ },
596
+ {
597
+ "kind": "Field",
598
+ "name": {
599
+ "kind": "Name",
600
+ "value": "message"
601
+ },
602
+ "arguments": [],
603
+ "directives": []
604
+ },
605
+ {
606
+ "kind": "Field",
607
+ "name": {
608
+ "kind": "Name",
609
+ "value": "data"
610
+ },
611
+ "arguments": [],
612
+ "directives": []
613
+ },
614
+ {
615
+ "kind": "Field",
616
+ "name": {
617
+ "kind": "Name",
618
+ "value": "truncated"
619
+ },
620
+ "arguments": [],
621
+ "directives": []
622
+ },
623
+ {
624
+ "kind": "Field",
625
+ "name": {
626
+ "kind": "Name",
627
+ "value": "timestamp"
628
+ },
629
+ "arguments": [],
630
+ "directives": []
631
+ }
632
+ ]
633
+ }
634
+ }]
635
+ };
636
+
637
+ // src/modules/agent-definitions/utils/agent-form.ts
638
+ const MAX_GRANT_DAYS = 365;
639
+ const MAX_TOOL_RULES = 100;
640
+ const MAX_CONNECTIONS = 100;
641
+ var AgentFormError = class extends Error {
642
+ constructor(message) {
643
+ super(message);
644
+ this.name = "AgentFormError";
645
+ }
646
+ };
647
+ function emptyAgentForm() {
648
+ return {
649
+ name: "",
650
+ description: "",
651
+ tools: [{
652
+ nodeType: "",
653
+ operations: ""
654
+ }],
655
+ connectionScope: [],
656
+ requireToolApproval: false,
657
+ status: "ACTIVE"
658
+ };
659
+ }
660
+ function agentToForm(agent) {
661
+ return {
662
+ name: agent.name,
663
+ description: agent.description ?? "",
664
+ tools: agent.toolAllowlist.length > 0 ? agent.toolAllowlist.map((rule) => ({
665
+ nodeType: rule.nodeType,
666
+ operations: rule.operations.join(", ")
667
+ })) : [{
668
+ nodeType: "",
669
+ operations: ""
670
+ }],
671
+ connectionScope: [...agent.connectionScope],
672
+ requireToolApproval: agent.requireToolApproval,
673
+ status: agent.status
674
+ };
675
+ }
676
+ function splitOperations(value) {
677
+ return [...new Set(value.split(",").map((operation) => operation.trim()).filter(Boolean))];
678
+ }
679
+ /** Validate the form and build the mutation input. Throws AgentFormError on invalid input. */
680
+ function formToInput(form) {
681
+ const name = form.name.trim();
682
+ if (name.length === 0 || name.length > 200) throw new AgentFormError("Give the agent a name of 1 to 200 characters.");
683
+ const description = form.description.trim();
684
+ if (description.length > 2e3) throw new AgentFormError("The description must be at most 2000 characters.");
685
+ const rules = form.tools.map((row) => ({
686
+ nodeType: row.nodeType.trim(),
687
+ operations: splitOperations(row.operations)
688
+ })).filter((rule) => rule.nodeType.length > 0 || rule.operations.length > 0);
689
+ if (rules.some((rule) => rule.nodeType.length === 0)) throw new AgentFormError("Every tool rule needs a node type.");
690
+ if (rules.length > 100) throw new AgentFormError(`At most ${100} tool rules.`);
691
+ const connectionScope = [...new Set(form.connectionScope.filter(Boolean))];
692
+ if (connectionScope.length > 100) throw new AgentFormError(`At most ${100} connections.`);
693
+ return {
694
+ name,
695
+ description: description || null,
696
+ toolAllowlist: rules,
697
+ connectionScope,
698
+ requireToolApproval: form.requireToolApproval,
699
+ status: form.status
700
+ };
701
+ }
702
+ /** Whole days for a grant, or an error message when out of range. */
703
+ function grantDays(value) {
704
+ const days = Number(value);
705
+ if (!Number.isInteger(days) || days < 1 || days > 365) throw new AgentFormError(`A grant lasts between 1 and ${365} days.`);
706
+ return days;
707
+ }
708
+ /** "store/slack: postMessage, listChannels" / "store/notion: any operation". */
709
+ function describeRule(rule) {
710
+ return rule.operations.length > 0 ? `${rule.nodeType}: ${rule.operations.join(", ")}` : `${rule.nodeType}: any operation`;
711
+ }
712
+ /** Whether a node type is the AI Agent node (raw types carry a `store:` prefix and an op suffix). */
713
+ function isAgentNodeType(nodeType) {
714
+ if (!nodeType) return false;
715
+ return nodeType === "store/ai-agent" || nodeType.includes("store/ai-agent");
716
+ }
717
+
718
+ export { formToInput as a, RunLogAppendedDocument as c, emptyAgentForm as i, RunLogsDocument as l, agentToForm as n, grantDays as o, describeRule as r, isAgentNodeType as s, AgentFormError as t };