@invect/ui 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/demo.js CHANGED
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { $t as e, B as t, I as n, Jt as r, Kt as i, L as a, Mt as o, Pt as s, R as c, V as l, a as u, qt as d, t as f, z as p } from "./Invect-CWpIwZ5F.js";
3
- import { useCallback as m, useEffect as ee, useMemo as h, useRef as te, useState as g } from "react";
4
- import { QueryClient as _, QueryClientProvider as v } from "@tanstack/react-query";
5
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
6
- import { GraphNodeType as x } from "@invect/core/types";
7
- import { Background as S, BackgroundVariant as ne, Controls as C, ReactFlow as w, ReactFlowProvider as T } from "@xyflow/react";
2
+ import { B as e, Ft as t, H as n, Jt as r, L as i, Nt as a, R as o, V as s, Yt as c, a as l, en as u, o as d, qt as f, t as p, z as m } from "./Invect-CJSKm2Aq.js";
3
+ import { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
4
+ import { QueryClient as b, QueryClientProvider as x } from "@tanstack/react-query";
5
+ import { jsx as S, jsxs as C } from "react/jsx-runtime";
6
+ import { GraphNodeType as w } from "@invect/core/types";
7
+ import { Background as T, BackgroundVariant as E, Controls as ee, ReactFlow as te, ReactFlowProvider as D } from "@xyflow/react";
8
8
  //#region src/demo/demo-api-client.ts
9
- var E = (e = []) => ({
9
+ var O = (e = []) => ({
10
10
  data: e,
11
11
  pagination: {
12
12
  page: 1,
13
13
  limit: e.length || 20,
14
14
  totalPages: 1
15
15
  }
16
- }), D = {
16
+ }), k = {
17
17
  totalFlows: 0,
18
18
  totalRuns: 0,
19
19
  runsLast24h: 0,
@@ -22,10 +22,10 @@ var E = (e = []) => ({
22
22
  failedRunsLast24h: 0,
23
23
  runsByStatus: {},
24
24
  recentRuns: []
25
- }, O = () => {};
26
- function k(e = {}) {
25
+ }, A = () => {};
26
+ function j(e = {}) {
27
27
  let { flows: t = [], flowReactFlowData: n = {}, nodeDefinitions: r = [], agentTools: i = [], dashboardStats: a = {}, flowRuns: o = [], nodeExecutions: s = {}, credentials: c = [], chatMessages: l = {} } = e, u = {
28
- ...D,
28
+ ...k,
29
29
  totalFlows: t.length,
30
30
  totalRuns: o.length,
31
31
  runsLast24h: o.length,
@@ -35,16 +35,16 @@ function k(e = {}) {
35
35
  ...a
36
36
  }, d = {
37
37
  getBaseURL: () => "demo://mock",
38
- setBaseURL: O,
39
- setUserId: O,
38
+ setBaseURL: A,
39
+ setUserId: A,
40
40
  getDashboardStats: async () => u,
41
- getFlows: async () => E(t),
41
+ getFlows: async () => O(t),
42
42
  getFlow: async (...e) => {
43
43
  let n = e[0];
44
44
  return t.find((e) => e.id === n) ?? t[0] ?? null;
45
45
  },
46
46
  getFlowReactFlowData: async (...e) => n[e[0]] ?? null,
47
- getFlowVersions: async () => E([]),
47
+ getFlowVersions: async () => O([]),
48
48
  getAvailableNodes: async () => r,
49
49
  resolveNodeDefinition: async () => null,
50
50
  loadFieldOptions: async () => [],
@@ -67,26 +67,34 @@ function k(e = {}) {
67
67
  },
68
68
  getFlowRunsByFlowId: async (...e) => {
69
69
  let t = e[0];
70
- return E(o.filter((e) => e.flowId === t));
70
+ return O(o.filter((e) => e.flowId === t));
71
71
  },
72
- getAllFlowRuns: async () => E(o),
72
+ getAllFlowRuns: async () => O(o),
73
73
  getNodeExecutionsByFlowRun: async (...e) => s[e[0]] ?? [],
74
- getAllNodeExecutions: async () => E(Object.values(s).flat()),
74
+ getAllNodeExecutions: async () => O(Object.values(s).flat()),
75
75
  getModels: async () => [],
76
76
  getModelsForCredential: async () => [],
77
77
  getAvailableDatabases: async () => [],
78
78
  listTriggersForFlow: async () => [],
79
79
  getTrigger: async () => null,
80
80
  getChatStatus: async () => ({ enabled: !0 }),
81
- getChatModels: async () => [{
82
- id: "claude-sonnet-4-20250514",
83
- name: "Claude Sonnet 4",
84
- provider: "anthropic"
85
- }, {
86
- id: "gpt-4o",
87
- name: "GPT-4o",
88
- provider: "openai"
89
- }],
81
+ getChatModels: async () => [
82
+ {
83
+ id: "claude-sonnet-4-6",
84
+ name: "Claude Sonnet 4.6",
85
+ provider: "anthropic"
86
+ },
87
+ {
88
+ id: "claude-sonnet-4-20250514",
89
+ name: "Claude Sonnet 4",
90
+ provider: "anthropic"
91
+ },
92
+ {
93
+ id: "gpt-4o",
94
+ name: "GPT-4o",
95
+ provider: "openai"
96
+ }
97
+ ],
90
98
  getChatMessages: async (...e) => l[e[0]] ?? [],
91
99
  createFlow: async () => t[0] ?? {},
92
100
  createFlowWithVersion: async () => t[0] ?? {},
@@ -130,37 +138,43 @@ function k(e = {}) {
130
138
  }
131
139
  //#endregion
132
140
  //#region src/demo/DemoInvect.tsx
133
- function A({ data: e, useMemoryRouter: t = !0, ...n }) {
134
- return /* @__PURE__ */ y(f, {
135
- apiClient: h(() => k(e), [e]),
141
+ function M({ data: e, useMemoryRouter: t = !0, ...n }) {
142
+ let r = _(() => j(e), [e]), i = l((e) => e.setOpen), a = l((e) => e.updateSettings);
143
+ return g(() => {
144
+ i(!0), a({
145
+ credentialId: "cred-anthropic",
146
+ model: "claude-sonnet-4-6"
147
+ });
148
+ }, [i, a]), /* @__PURE__ */ S(p, {
149
+ apiClient: r,
136
150
  useMemoryRouter: t,
137
151
  ...n
138
152
  });
139
153
  }
140
154
  //#endregion
141
155
  //#region src/demo/FlowViewer.tsx
142
- var j = { default: p }, M = {
156
+ var N = { default: e }, P = {
143
157
  duration: 0,
144
158
  padding: .2
145
- }, N = () => {};
146
- function P({ nodes: e, edges: r, nodeDefinitions: i = [], agentTools: o = [], interactive: s = !0, showControls: f = !0 }) {
147
- let { resolvedTheme: p } = d(), _ = te(null), [v, T] = g(!1), [E, D] = g(null), O = l((e) => e.syncFromServer), k = l((e) => e.setFlowId);
148
- ee(() => {
149
- k("demo-flow", void 0), O(e, r, "demo-flow:1", "Demo Flow");
159
+ }, F = () => {};
160
+ function I({ nodes: e, edges: t, nodeDefinitions: a = [], agentTools: c = [], interactive: l = !0, showControls: u = !0 }) {
161
+ let { resolvedTheme: f } = r(), p = v(null), [b, x] = y(!1), [D, O] = y(null), k = n((e) => e.syncFromServer), A = n((e) => e.setFlowId);
162
+ g(() => {
163
+ A("demo-flow", void 0), k(e, t, "demo-flow:1", "Demo Flow");
150
164
  }, [
151
165
  e,
152
- r,
153
- O,
154
- k
166
+ t,
167
+ k,
168
+ A
155
169
  ]);
156
- let A = h(() => {
170
+ let j = _(() => {
157
171
  let e = {
158
- [x.AGENT]: n,
159
- default: c
172
+ [w.AGENT]: i,
173
+ default: m
160
174
  };
161
- for (let t of i) t.type in e || (e[t.type] = c);
175
+ for (let t of a) t.type in e || (e[t.type] = m);
162
176
  return e;
163
- }, [i]), P = h(() => o.filter((e) => e.provider?.id !== "triggers" && !e.id.startsWith("trigger.")).map((e) => ({
177
+ }, [a]), M = _(() => c.filter((e) => e.provider?.id !== "triggers" && !e.id.startsWith("trigger.")).map((e) => ({
164
178
  id: e.id,
165
179
  name: e.name,
166
180
  description: e.description,
@@ -169,91 +183,91 @@ function P({ nodes: e, edges: r, nodeDefinitions: i = [], agentTools: o = [], in
169
183
  inputSchema: e.inputSchema,
170
184
  nodeType: e.nodeType,
171
185
  provider: e.provider
172
- })), [o]), F = h(() => ({
173
- onOpenToolSelector: N,
174
- onShowMoreTools: N,
175
- onRemoveTool: N,
176
- onToolClick: N,
177
- availableTools: P,
186
+ })), [c]), I = _(() => ({
187
+ onOpenToolSelector: F,
188
+ onShowMoreTools: F,
189
+ onRemoveTool: F,
190
+ onToolClick: F,
191
+ availableTools: M,
178
192
  selectedToolNodeId: null,
179
193
  selectedToolInstanceId: null
180
- }), [P]), I = m((e, t) => {
181
- s && (D(t.id), T(!0));
182
- }, [s]), L = m((e) => {
183
- e || (T(!1), D(null));
194
+ }), [M]), L = h((e, t) => {
195
+ l && (O(t.id), x(!0));
196
+ }, [l]), R = h((e) => {
197
+ e || (x(!1), O(null));
184
198
  }, []);
185
- return /* @__PURE__ */ b("div", {
186
- ref: _,
199
+ return /* @__PURE__ */ C("div", {
200
+ ref: p,
187
201
  style: {
188
202
  width: "100%",
189
203
  height: "100%",
190
204
  background: "var(--canvas-background)"
191
205
  },
192
- children: [/* @__PURE__ */ y(a, {
193
- value: F,
194
- children: /* @__PURE__ */ b(w, {
206
+ children: [/* @__PURE__ */ S(o, {
207
+ value: I,
208
+ children: /* @__PURE__ */ C(te, {
195
209
  nodes: e,
196
- edges: r,
197
- nodeTypes: A,
198
- edgeTypes: j,
199
- defaultEdgeOptions: t,
200
- colorMode: p,
210
+ edges: t,
211
+ nodeTypes: j,
212
+ edgeTypes: N,
213
+ defaultEdgeOptions: s,
214
+ colorMode: f,
201
215
  fitView: !0,
202
- fitViewOptions: M,
203
- onNodeDoubleClick: s ? I : void 0,
216
+ fitViewOptions: P,
217
+ onNodeDoubleClick: l ? L : void 0,
204
218
  nodesDraggable: !1,
205
219
  nodesConnectable: !1,
206
- elementsSelectable: s,
220
+ elementsSelectable: l,
207
221
  panOnScroll: !0,
208
222
  panOnDrag: !0,
209
223
  zoomOnScroll: !0,
210
224
  zoomOnPinch: !0,
211
225
  zoomOnDoubleClick: !1,
212
- children: [f && /* @__PURE__ */ y(C, {}), /* @__PURE__ */ y(S, {
213
- variant: ne.Dots,
226
+ children: [u && /* @__PURE__ */ S(ee, {}), /* @__PURE__ */ S(T, {
227
+ variant: E.Dots,
214
228
  gap: 20,
215
229
  size: 1.2
216
230
  })]
217
231
  })
218
- }), s && /* @__PURE__ */ y(u, {
219
- open: v,
220
- nodeId: E,
232
+ }), l && /* @__PURE__ */ S(d, {
233
+ open: b,
234
+ nodeId: D,
221
235
  flowId: "demo-flow",
222
- onOpenChange: L,
223
- portalContainer: _.current,
224
- availableTools: P
236
+ onOpenChange: R,
237
+ portalContainer: p.current,
238
+ availableTools: M
225
239
  })]
226
240
  });
227
241
  }
228
- function F({ theme: t = "dark", className: n, style: a, containerClassName: c, nodeDefinitions: l = [], agentTools: u = [], ...d }) {
229
- let f = h(() => new _({ defaultOptions: { queries: {
242
+ function L({ theme: e = "dark", className: n, style: r, containerClassName: i, nodeDefinitions: o = [], agentTools: s = [], ...l }) {
243
+ let d = _(() => new b({ defaultOptions: { queries: {
230
244
  staleTime: Infinity,
231
245
  retry: !1
232
- } } }), []), p = h(() => k({
233
- nodeDefinitions: l,
234
- agentTools: u
235
- }), [l, u]);
236
- return /* @__PURE__ */ y("div", {
237
- className: c,
246
+ } } }), []), p = _(() => j({
247
+ nodeDefinitions: o,
248
+ agentTools: s
249
+ }), [o, s]);
250
+ return /* @__PURE__ */ S("div", {
251
+ className: i,
238
252
  style: {
239
253
  position: "relative",
240
254
  overflow: "hidden",
241
- ...a
255
+ ...r
242
256
  },
243
- children: /* @__PURE__ */ y(i, {
244
- defaultTheme: t,
257
+ children: /* @__PURE__ */ S(f, {
258
+ defaultTheme: e,
245
259
  storageKey: "invect-viewer-theme",
246
260
  className: n,
247
- children: /* @__PURE__ */ y(v, {
248
- client: f,
249
- children: /* @__PURE__ */ y(r, {
261
+ children: /* @__PURE__ */ S(x, {
262
+ client: d,
263
+ children: /* @__PURE__ */ S(c, {
250
264
  apiClient: p,
251
- children: /* @__PURE__ */ y(o, {
265
+ children: /* @__PURE__ */ S(a, {
252
266
  plugins: [],
253
- children: /* @__PURE__ */ y(e, { children: /* @__PURE__ */ y(s, { children: /* @__PURE__ */ y(T, { children: /* @__PURE__ */ y(P, {
254
- nodeDefinitions: l,
255
- agentTools: u,
256
- ...d
267
+ children: /* @__PURE__ */ S(u, { children: /* @__PURE__ */ S(t, { children: /* @__PURE__ */ S(D, { children: /* @__PURE__ */ S(I, {
268
+ nodeDefinitions: o,
269
+ agentTools: s,
270
+ ...l
257
271
  }) }) }) })
258
272
  })
259
273
  })
@@ -263,7 +277,7 @@ function F({ theme: t = "dark", className: n, style: a, containerClassName: c, n
263
277
  }
264
278
  //#endregion
265
279
  //#region src/demo/sample-data.ts
266
- var I = [
280
+ var R = [
267
281
  {
268
282
  type: "core.input",
269
283
  label: "Flow Input",
@@ -940,7 +954,7 @@ var I = [
940
954
  }
941
955
  ]
942
956
  }
943
- ], L = [
957
+ ], z = [
944
958
  {
945
959
  id: "node-input",
946
960
  type: "core.input",
@@ -1009,7 +1023,7 @@ var I = [
1009
1023
  params: {}
1010
1024
  }
1011
1025
  }
1012
- ], R = [
1026
+ ], B = [
1013
1027
  {
1014
1028
  id: "e-input-model",
1015
1029
  source: "node-input",
@@ -1025,7 +1039,7 @@ var I = [
1025
1039
  source: "node-jq",
1026
1040
  target: "node-output"
1027
1041
  }
1028
- ], z = [
1042
+ ], V = [
1029
1043
  {
1030
1044
  id: "b-input",
1031
1045
  type: "core.input",
@@ -1114,7 +1128,7 @@ var I = [
1114
1128
  params: {}
1115
1129
  }
1116
1130
  }
1117
- ], B = [
1131
+ ], H = [
1118
1132
  {
1119
1133
  id: "be-input-branch",
1120
1134
  source: "b-input",
@@ -1142,7 +1156,7 @@ var I = [
1142
1156
  source: "b-email",
1143
1157
  target: "b-output"
1144
1158
  }
1145
- ], V = {
1159
+ ], U = {
1146
1160
  action: "create",
1147
1161
  type: "Issue",
1148
1162
  data: {
@@ -1168,7 +1182,7 @@ var I = [
1168
1182
  url: "https://linear.app/acme/issue/ENG-4821",
1169
1183
  createdAt: "2025-04-07T14:32:00Z"
1170
1184
  }
1171
- }, H = {
1185
+ }, W = {
1172
1186
  summary: "Payment processing failures caused by PostgreSQL connection pool exhaustion in payment-service. The Stripe webhook handler opens a new DB connection per request but the pool limit (20) was exceeded during a traffic spike at 14:30 UTC. 847 failed payments in the last 2 hours affecting ~320 customers.",
1173
1187
  root_cause: "Connection pool exhaustion in payment-service. The `handleStripeWebhook()` function in `src/services/payments/stripe-handler.ts` acquires a connection but does not release it on the error path (missing `finally` block). Under normal load this is masked by the pool recycler, but the 3x traffic spike from the flash sale exhausted all 20 connections.",
1174
1188
  severity: "critical",
@@ -1177,7 +1191,7 @@ var I = [
1177
1191
  affected_customers: 320,
1178
1192
  failed_transactions: 847,
1179
1193
  estimated_revenue_impact: "$42,350"
1180
- }, U = {
1194
+ }, G = {
1181
1195
  id: 98712,
1182
1196
  number: 4293,
1183
1197
  html_url: "https://github.com/acme/platform/pull/4293",
@@ -1186,7 +1200,7 @@ var I = [
1186
1200
  head: { ref: "fix/ENG-4821" },
1187
1201
  base: { ref: "main" },
1188
1202
  created_at: "2025-04-07T16:32:45Z"
1189
- }, W = [
1203
+ }, K = [
1190
1204
  {
1191
1205
  id: "postgres.execute_query",
1192
1206
  name: "Query Database",
@@ -1242,7 +1256,7 @@ var I = [
1242
1256
  icon: "Github"
1243
1257
  }
1244
1258
  }
1245
- ], G = [
1259
+ ], q = [
1246
1260
  {
1247
1261
  id: "s-webhook",
1248
1262
  type: "trigger.webhook",
@@ -1472,7 +1486,7 @@ var I = [
1472
1486
  }
1473
1487
  }
1474
1488
  }
1475
- ], K = [
1489
+ ], J = [
1476
1490
  {
1477
1491
  id: "se-webhook-agent",
1478
1492
  source: "s-webhook",
@@ -1533,7 +1547,7 @@ var I = [
1533
1547
  source: "s-slack-default",
1534
1548
  target: "s-linear-update"
1535
1549
  }
1536
- ], q = [
1550
+ ], Y = [
1537
1551
  {
1538
1552
  toolId: "postgres.execute_query",
1539
1553
  toolName: "Query Database",
@@ -1641,7 +1655,7 @@ var I = [
1641
1655
  iteration: 5,
1642
1656
  executionTimeMs: 155
1643
1657
  }
1644
- ], J = {
1658
+ ], X = {
1645
1659
  matchedCase: "bug",
1646
1660
  matchedLabel: "Bug",
1647
1661
  matchMode: "first",
@@ -1662,14 +1676,14 @@ var I = [
1662
1676
  matched: !1
1663
1677
  }
1664
1678
  ]
1665
- }, Y = "2025-04-07T16:32:10.000Z", X = "2025-04-07T16:32:10.045Z", re = "2025-04-07T16:32:10.050Z", ie = "2025-04-07T16:32:26.120Z", Z = "2025-04-07T16:32:26.125Z", Q = "2025-04-07T16:32:26.180Z", ae = "2025-04-07T16:32:26.185Z", oe = "2025-04-07T16:32:28.340Z", se = "2025-04-07T16:32:28.345Z", ce = "2025-04-07T16:32:29.110Z", le = {
1679
+ }, Z = "2025-04-07T16:32:10.000Z", ne = "2025-04-07T16:32:10.045Z", re = "2025-04-07T16:32:10.050Z", ie = "2025-04-07T16:32:26.120Z", ae = "2025-04-07T16:32:26.125Z", Q = "2025-04-07T16:32:26.180Z", oe = "2025-04-07T16:32:26.185Z", se = "2025-04-07T16:32:28.340Z", ce = "2025-04-07T16:32:28.345Z", le = "2025-04-07T16:32:29.110Z", ue = {
1666
1680
  id: "run-triage-1",
1667
1681
  flowId: "flow-triage",
1668
1682
  flowVersion: 1,
1669
1683
  status: "SUCCESS",
1670
- inputs: V,
1684
+ inputs: U,
1671
1685
  outputs: {
1672
- create_fix_pr: U,
1686
+ create_fix_pr: G,
1673
1687
  update_linear_ticket: {
1674
1688
  id: "LIN-4821",
1675
1689
  identifier: "ENG-4821",
@@ -1677,7 +1691,7 @@ var I = [
1677
1691
  }
1678
1692
  },
1679
1693
  error: void 0,
1680
- startedAt: Y,
1694
+ startedAt: Z,
1681
1695
  completedAt: "2025-04-07T16:32:29.115Z",
1682
1696
  duration: 19115,
1683
1697
  triggerType: "webhook",
@@ -1686,7 +1700,7 @@ var I = [
1686
1700
  source: "linear",
1687
1701
  event: "Issue.create"
1688
1702
  }
1689
- }, ue = [
1703
+ }, de = [
1690
1704
  {
1691
1705
  id: "nexec-webhook",
1692
1706
  flowRunId: "run-triage-1",
@@ -1697,12 +1711,12 @@ var I = [
1697
1711
  outputs: {
1698
1712
  nodeType: "trigger.webhook",
1699
1713
  data: { variables: { output: {
1700
- value: V.data,
1714
+ value: U.data,
1701
1715
  type: "object"
1702
1716
  } } }
1703
1717
  },
1704
- startedAt: Y,
1705
- completedAt: X,
1718
+ startedAt: Z,
1719
+ completedAt: ne,
1706
1720
  duration: 45,
1707
1721
  retryCount: 0
1708
1722
  },
@@ -1712,14 +1726,14 @@ var I = [
1712
1726
  nodeId: "s-agent",
1713
1727
  nodeType: "AGENT",
1714
1728
  status: "SUCCESS",
1715
- inputs: { linear_webhook: V.data },
1729
+ inputs: { linear_webhook: U.data },
1716
1730
  outputs: {
1717
1731
  nodeType: "AGENT",
1718
1732
  data: {
1719
1733
  variables: { output: {
1720
1734
  value: {
1721
- finalResponse: JSON.stringify(H, null, 2),
1722
- toolResults: q,
1735
+ finalResponse: JSON.stringify(W, null, 2),
1736
+ toolResults: Y,
1723
1737
  iterations: 6,
1724
1738
  finishReason: "completed"
1725
1739
  },
@@ -1744,18 +1758,18 @@ var I = [
1744
1758
  nodeId: "s-switch",
1745
1759
  nodeType: "core.switch",
1746
1760
  status: "SUCCESS",
1747
- inputs: { investigation_agent: H },
1761
+ inputs: { investigation_agent: W },
1748
1762
  outputs: {
1749
1763
  nodeType: "core.switch",
1750
1764
  data: {
1751
1765
  variables: { bug: {
1752
- value: H,
1766
+ value: W,
1753
1767
  type: "object"
1754
1768
  } },
1755
- metadata: J
1769
+ metadata: X
1756
1770
  }
1757
1771
  },
1758
- startedAt: Z,
1772
+ startedAt: ae,
1759
1773
  completedAt: Q,
1760
1774
  duration: 55,
1761
1775
  retryCount: 0
@@ -1766,16 +1780,16 @@ var I = [
1766
1780
  nodeId: "s-gh-pr",
1767
1781
  nodeType: "github.create_pull_request",
1768
1782
  status: "SUCCESS",
1769
- inputs: { route_by_issue_type: H },
1783
+ inputs: { route_by_issue_type: W },
1770
1784
  outputs: {
1771
1785
  nodeType: "github.create_pull_request",
1772
1786
  data: { variables: { output: {
1773
- value: U,
1787
+ value: G,
1774
1788
  type: "object"
1775
1789
  } } }
1776
1790
  },
1777
- startedAt: ae,
1778
- completedAt: oe,
1791
+ startedAt: oe,
1792
+ completedAt: se,
1779
1793
  duration: 2155,
1780
1794
  retryCount: 0
1781
1795
  },
@@ -1824,7 +1838,7 @@ var I = [
1824
1838
  nodeId: "s-linear-update",
1825
1839
  nodeType: "linear.update_issue",
1826
1840
  status: "SUCCESS",
1827
- inputs: { create_fix_pr: U },
1841
+ inputs: { create_fix_pr: G },
1828
1842
  outputs: {
1829
1843
  nodeType: "linear.update_issue",
1830
1844
  data: { variables: { output: {
@@ -1837,12 +1851,12 @@ var I = [
1837
1851
  type: "object"
1838
1852
  } } }
1839
1853
  },
1840
- startedAt: se,
1841
- completedAt: ce,
1854
+ startedAt: ce,
1855
+ completedAt: le,
1842
1856
  duration: 765,
1843
1857
  retryCount: 0
1844
1858
  }
1845
- ], de = [
1859
+ ], fe = [
1846
1860
  {
1847
1861
  id: "cred-anthropic",
1848
1862
  name: "Anthropic — Production",
@@ -1989,7 +2003,7 @@ var I = [
1989
2003
  createdAt: "2025-02-20T16:00:00Z",
1990
2004
  updatedAt: "2025-02-20T16:00:00Z"
1991
2005
  }
1992
- ], $ = (e) => new Date(Date.parse("2025-04-07T15:00:00Z") + e * 1e3).toISOString(), fe = [
2006
+ ], $ = (e) => new Date(Date.parse("2025-04-07T15:00:00Z") + e * 1e3).toISOString(), pe = [
1993
2007
  {
1994
2008
  id: "chat-1",
1995
2009
  flowId: "flow-triage",
@@ -2702,7 +2716,7 @@ var I = [
2702
2716
  toolMeta: null,
2703
2717
  createdAt: $(82)
2704
2718
  }
2705
- ], pe = {
2719
+ ], me = {
2706
2720
  flows: [
2707
2721
  {
2708
2722
  id: "flow-triage",
@@ -2731,8 +2745,8 @@ var I = [
2731
2745
  ],
2732
2746
  flowReactFlowData: {
2733
2747
  "flow-triage": {
2734
- nodes: G,
2735
- edges: K,
2748
+ nodes: q,
2749
+ edges: J,
2736
2750
  version: {
2737
2751
  flowId: "flow-triage",
2738
2752
  version: 1
@@ -2741,8 +2755,8 @@ var I = [
2741
2755
  isActive: !0
2742
2756
  },
2743
2757
  "flow-simple": {
2744
- nodes: L,
2745
- edges: R,
2758
+ nodes: z,
2759
+ edges: B,
2746
2760
  version: {
2747
2761
  flowId: "flow-simple",
2748
2762
  version: 1
@@ -2751,8 +2765,8 @@ var I = [
2751
2765
  isActive: !0
2752
2766
  },
2753
2767
  "flow-branching": {
2754
- nodes: z,
2755
- edges: B,
2768
+ nodes: V,
2769
+ edges: H,
2756
2770
  version: {
2757
2771
  flowId: "flow-branching",
2758
2772
  version: 1
@@ -2761,14 +2775,14 @@ var I = [
2761
2775
  isActive: !0
2762
2776
  }
2763
2777
  },
2764
- nodeDefinitions: I,
2765
- agentTools: W,
2766
- flowRuns: [le],
2767
- nodeExecutions: { "run-triage-1": ue },
2768
- credentials: de,
2769
- chatMessages: { "flow-triage": fe }
2778
+ nodeDefinitions: R,
2779
+ agentTools: K,
2780
+ flowRuns: [ue],
2781
+ nodeExecutions: { "run-triage-1": de },
2782
+ credentials: fe,
2783
+ chatMessages: { "flow-triage": pe }
2770
2784
  };
2771
2785
  //#endregion
2772
- export { A as DemoInvect, F as FlowViewer, B as branchingFlowEdges, z as branchingFlowNodes, k as createDemoApiClient, pe as sampleDemoData, I as sampleNodeDefinitions, W as showcaseAgentTools, K as showcaseFlowEdges, G as showcaseFlowNodes, R as simpleFlowEdges, L as simpleFlowNodes };
2786
+ export { M as DemoInvect, L as FlowViewer, H as branchingFlowEdges, V as branchingFlowNodes, j as createDemoApiClient, me as sampleDemoData, R as sampleNodeDefinitions, K as showcaseAgentTools, J as showcaseFlowEdges, q as showcaseFlowNodes, B as simpleFlowEdges, z as simpleFlowNodes };
2773
2787
 
2774
2788
  //# sourceMappingURL=demo.js.map