@agiflowai/agent-cli 0.1.9 → 0.1.10

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/daemon.js CHANGED
@@ -1,21 +1,21 @@
1
- import { bg as g, bh as O, bi as e, bj as C, bk as T, bl as y, bm as w, bn as A, bo as I, bp as B, bq as M, br as P, bs as L, bt as _ } from "./index-rQIAEgB9.mjs";
2
- import { useQueryClient as R, useQuery as F, useMutation as E, QueryClientProvider as q, QueryClient as z } from "@tanstack/react-query";
3
- import { useDispatch as K, useSelector as N, Provider as $ } from "react-redux";
4
- import { useRef as U, useEffect as V, useState as D } from "react";
5
- const G = ({ children: i }) => {
6
- const { Box: n, Text: s } = g(), o = K(), r = N((a) => a.daemonStatus.status), m = N((a) => a.daemonStatus.error), t = U(!1);
1
+ import { bg as g, bh as O, bi as e, bj as C, bk as T, bl as y, bm as w, bn as A, bo as I, bp as B, bq as M, br as P, bs as _, bt as L, bu as F } from "./index-B-6QlXul.mjs";
2
+ import { useQueryClient as R, useQuery as q, useMutation as E, QueryClientProvider as z, QueryClient as K } from "@tanstack/react-query";
3
+ import { useDispatch as W, useSelector as N, Provider as $ } from "react-redux";
4
+ import { useRef as U, useEffect as V, useState as D, useMemo as G } from "react";
5
+ const Q = ({ children: i }) => {
6
+ const { Box: s, Text: n } = g(), o = W(), c = N((r) => r.daemonStatus.status), a = N((r) => r.daemonStatus.error), t = U(!1);
7
7
  return V(() => (o(O()), C(async () => {
8
8
  if (!t.current) {
9
9
  t.current = !0;
10
10
  try {
11
- const d = y.get(w.DaemonManager);
12
- d.isRunning() && await d.stop();
11
+ const m = y.get(w.DaemonManager);
12
+ m.isRunning() && await m.stop();
13
13
  } catch {
14
14
  }
15
15
  }
16
16
  }), () => {
17
17
  T();
18
- }), [o]), r === "starting" ? /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, children: /* @__PURE__ */ e.jsxDEV(s, { color: "yellow", children: "Connecting to Agiflow..." }, void 0, !1, {
18
+ }), [o]), c === "starting" ? /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, children: /* @__PURE__ */ e.jsxDEV(n, { color: "yellow", children: "Connecting to Agiflow..." }, void 0, !1, {
19
19
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
20
20
  lineNumber: 52,
21
21
  columnNumber: 9
@@ -23,18 +23,18 @@ const G = ({ children: i }) => {
23
23
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
24
24
  lineNumber: 51,
25
25
  columnNumber: 7
26
- }, void 0) : r === "error" ? /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "red", children: [
27
- /* @__PURE__ */ e.jsxDEV(s, { color: "red", bold: !0, children: "Connection Error" }, void 0, !1, {
26
+ }, void 0) : c === "error" ? /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, borderStyle: "round", borderColor: "red", children: [
27
+ /* @__PURE__ */ e.jsxDEV(n, { color: "red", bold: !0, children: "Connection Error" }, void 0, !1, {
28
28
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
29
29
  lineNumber: 60,
30
30
  columnNumber: 9
31
31
  }, void 0),
32
- /* @__PURE__ */ e.jsxDEV(s, { children: m }, void 0, !1, {
32
+ /* @__PURE__ */ e.jsxDEV(n, { children: a }, void 0, !1, {
33
33
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
34
34
  lineNumber: 63,
35
35
  columnNumber: 9
36
36
  }, void 0),
37
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "Retrying in background..." }, void 0, !1, {
37
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "Retrying in background..." }, void 0, !1, {
38
38
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
39
39
  lineNumber: 64,
40
40
  columnNumber: 9
@@ -43,37 +43,37 @@ const G = ({ children: i }) => {
43
43
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
44
44
  lineNumber: 59,
45
45
  columnNumber: 7
46
- }, void 0) : r === "connected" ? /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: i }, void 0, !1, {
46
+ }, void 0) : c === "connected" ? /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: i }, void 0, !1, {
47
47
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/DaemonConnectionManager.tsx",
48
48
  lineNumber: 70,
49
49
  columnNumber: 12
50
50
  }, void 0) : null;
51
- }, Q = ({ onSubmit: i, onCancel: n }) => {
52
- const { Box: s, Text: o, useInput: r } = g(), [m, t] = D(""), a = U("");
53
- return r((d, c) => {
54
- if (c.ctrl && d === "c" && a.current.length > 0) {
55
- a.current = "", t("");
51
+ }, J = ({ onSubmit: i, onCancel: s }) => {
52
+ const { Box: n, Text: o, useInput: c } = g(), [a, t] = D(""), r = U("");
53
+ return c((m, d) => {
54
+ if (d.ctrl && m === "c" && r.current.length > 0) {
55
+ r.current = "", t("");
56
56
  return;
57
57
  }
58
- if (c.return) {
59
- const l = a.current.trim();
58
+ if (d.return) {
59
+ const l = r.current.trim();
60
60
  l && i(l);
61
61
  return;
62
62
  }
63
- if (c.escape) {
64
- n?.();
63
+ if (d.escape) {
64
+ s?.();
65
65
  return;
66
66
  }
67
- if (c.backspace || c.delete) {
68
- const l = a.current.slice(0, -1);
69
- a.current = l, t(l);
67
+ if (d.backspace || d.delete) {
68
+ const l = r.current.slice(0, -1);
69
+ r.current = l, t(l);
70
70
  return;
71
71
  }
72
- if (d && !c.ctrl && !c.meta) {
73
- const l = a.current + d;
74
- a.current = l, t(l);
72
+ if (m && !d.ctrl && !d.meta) {
73
+ const l = r.current + m;
74
+ r.current = l, t(l);
75
75
  }
76
- }), /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: [
76
+ }), /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: [
77
77
  /* @__PURE__ */ e.jsxDEV(o, { children: [
78
78
  /* @__PURE__ */ e.jsxDEV(o, { bold: !0, color: "cyan", children: [
79
79
  "Token:",
@@ -83,7 +83,7 @@ const G = ({ children: i }) => {
83
83
  lineNumber: 52,
84
84
  columnNumber: 9
85
85
  }, void 0),
86
- /* @__PURE__ */ e.jsxDEV(o, { color: "green", children: m.length > 0 ? `${m.slice(0, 20)}...` : /* @__PURE__ */ e.jsxDEV(o, { dimColor: !0, children: "(paste token)" }, void 0, !1, {
86
+ /* @__PURE__ */ e.jsxDEV(o, { color: "green", children: a.length > 0 ? `${a.slice(0, 20)}...` : /* @__PURE__ */ e.jsxDEV(o, { dimColor: !0, children: "(paste token)" }, void 0, !1, {
87
87
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/TokenInput.tsx",
88
88
  lineNumber: 55,
89
89
  columnNumber: 78
@@ -120,8 +120,8 @@ const G = ({ children: i }) => {
120
120
  lineNumber: 50,
121
121
  columnNumber: 5
122
122
  }, void 0);
123
- }, W = ({ children: i }) => {
124
- const { Box: n, Text: s, Newline: o, Static: r, Link: m } = g(), t = R(), [a, d] = D(null), [c, l] = D(!1), b = y.get(w.DeviceCodeAuthService), k = y.get(w.CredentialsService), { data: x, isLoading: j } = F({
123
+ }, Y = ({ children: i }) => {
124
+ const { Box: s, Text: n, Newline: o, Static: c, Link: a } = g(), t = R(), [r, m] = D(null), [d, l] = D(!1), b = y.get(w.DeviceCodeAuthService), k = y.get(w.CredentialsService), { data: x, isLoading: j } = q({
125
125
  queryKey: ["auth", "check"],
126
126
  queryFn: async () => {
127
127
  const u = await k.load();
@@ -145,13 +145,13 @@ const G = ({ children: i }) => {
145
145
  return h.json();
146
146
  },
147
147
  onSuccess: (u) => {
148
- d(u), l(!0);
148
+ m(u), l(!0);
149
149
  }
150
150
  }), v = E({
151
151
  mutationFn: async (u) => {
152
- if (!a)
152
+ if (!r)
153
153
  throw new Error("Device code not available");
154
- const p = await b.exchangeTokenForApiKey(u, a.device_code);
154
+ const p = await b.exchangeTokenForApiKey(u, r.device_code);
155
155
  return await k.setApiKey({
156
156
  apiKey: p.api_key,
157
157
  organizationId: p.organization_id,
@@ -164,16 +164,16 @@ const G = ({ children: i }) => {
164
164
  }
165
165
  });
166
166
  if (V(() => {
167
- x && !x.authenticated && !f.isPending && !a && f.mutate();
168
- }, [x, f, a]), x?.authenticated)
167
+ x && !x.authenticated && !f.isPending && !r && f.mutate();
168
+ }, [x, f, r]), x?.authenticated)
169
169
  return /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: i({ isAuthenticated: !0 }) }, void 0, !1, {
170
170
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
171
171
  lineNumber: 94,
172
172
  columnNumber: 12
173
173
  }, void 0);
174
174
  if (j)
175
- return /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, children: [
176
- /* @__PURE__ */ e.jsxDEV(n, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
175
+ return /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, children: [
176
+ /* @__PURE__ */ e.jsxDEV(s, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
177
177
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
178
178
  lineNumber: 102,
179
179
  columnNumber: 11
@@ -182,13 +182,13 @@ const G = ({ children: i }) => {
182
182
  lineNumber: 101,
183
183
  columnNumber: 9
184
184
  }, void 0),
185
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: /* @__PURE__ */ e.jsxDEV(s, { children: [
186
- /* @__PURE__ */ e.jsxDEV(s, { color: "cyan", children: "◉ " }, void 0, !1, {
185
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: /* @__PURE__ */ e.jsxDEV(n, { children: [
186
+ /* @__PURE__ */ e.jsxDEV(n, { color: "cyan", children: "◉ " }, void 0, !1, {
187
187
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
188
188
  lineNumber: 109,
189
189
  columnNumber: 15
190
190
  }, void 0),
191
- /* @__PURE__ */ e.jsxDEV(s, { children: "Checking existing credentials..." }, void 0, !1, {
191
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Checking existing credentials..." }, void 0, !1, {
192
192
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
193
193
  lineNumber: 110,
194
194
  columnNumber: 15
@@ -212,8 +212,8 @@ const G = ({ children: i }) => {
212
212
  columnNumber: 7
213
213
  }, void 0);
214
214
  if (f.isPending)
215
- return /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, children: [
216
- /* @__PURE__ */ e.jsxDEV(n, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
215
+ return /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, children: [
216
+ /* @__PURE__ */ e.jsxDEV(s, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
217
217
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
218
218
  lineNumber: 123,
219
219
  columnNumber: 11
@@ -222,14 +222,14 @@ const G = ({ children: i }) => {
222
222
  lineNumber: 122,
223
223
  columnNumber: 9
224
224
  }, void 0),
225
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: [
226
- /* @__PURE__ */ e.jsxDEV(s, { children: [
227
- /* @__PURE__ */ e.jsxDEV(s, { color: "green", children: "✓ " }, void 0, !1, {
225
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: [
226
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
227
+ /* @__PURE__ */ e.jsxDEV(n, { color: "green", children: "✓ " }, void 0, !1, {
228
228
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
229
229
  lineNumber: 130,
230
230
  columnNumber: 15
231
231
  }, void 0),
232
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "Checked existing credentials" }, void 0, !1, {
232
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "Checked existing credentials" }, void 0, !1, {
233
233
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
234
234
  lineNumber: 131,
235
235
  columnNumber: 15
@@ -239,13 +239,13 @@ const G = ({ children: i }) => {
239
239
  lineNumber: 129,
240
240
  columnNumber: 13
241
241
  }, void 0),
242
- /* @__PURE__ */ e.jsxDEV(s, { children: [
243
- /* @__PURE__ */ e.jsxDEV(s, { color: "cyan", children: "◉ " }, void 0, !1, {
242
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
243
+ /* @__PURE__ */ e.jsxDEV(n, { color: "cyan", children: "◉ " }, void 0, !1, {
244
244
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
245
245
  lineNumber: 134,
246
246
  columnNumber: 15
247
247
  }, void 0),
248
- /* @__PURE__ */ e.jsxDEV(s, { children: "Requesting device authorization..." }, void 0, !1, {
248
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Requesting device authorization..." }, void 0, !1, {
249
249
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
250
250
  lineNumber: 135,
251
251
  columnNumber: 15
@@ -269,11 +269,11 @@ const G = ({ children: i }) => {
269
269
  lineNumber: 121,
270
270
  columnNumber: 7
271
271
  }, void 0);
272
- if (a) {
273
- const u = `${a.verification_uri}?code=${encodeURIComponent(a.user_code)}`;
272
+ if (r) {
273
+ const u = `${r.verification_uri}?code=${encodeURIComponent(r.user_code)}`;
274
274
  return /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: [
275
- /* @__PURE__ */ e.jsxDEV(r, { items: [1], children: () => /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, children: [
276
- /* @__PURE__ */ e.jsxDEV(n, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
275
+ /* @__PURE__ */ e.jsxDEV(c, { items: [1], children: () => /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, children: [
276
+ /* @__PURE__ */ e.jsxDEV(s, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
277
277
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
278
278
  lineNumber: 153,
279
279
  columnNumber: 17
@@ -282,14 +282,14 @@ const G = ({ children: i }) => {
282
282
  lineNumber: 152,
283
283
  columnNumber: 15
284
284
  }, void 0),
285
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "green", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: [
286
- /* @__PURE__ */ e.jsxDEV(s, { children: [
287
- /* @__PURE__ */ e.jsxDEV(s, { color: "green", children: "✓ " }, void 0, !1, {
285
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "green", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: [
286
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
287
+ /* @__PURE__ */ e.jsxDEV(n, { color: "green", children: "✓ " }, void 0, !1, {
288
288
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
289
289
  lineNumber: 161,
290
290
  columnNumber: 21
291
291
  }, void 0),
292
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "Checked existing credentials" }, void 0, !1, {
292
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "Checked existing credentials" }, void 0, !1, {
293
293
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
294
294
  lineNumber: 162,
295
295
  columnNumber: 21
@@ -299,13 +299,13 @@ const G = ({ children: i }) => {
299
299
  lineNumber: 160,
300
300
  columnNumber: 19
301
301
  }, void 0),
302
- /* @__PURE__ */ e.jsxDEV(s, { children: [
303
- /* @__PURE__ */ e.jsxDEV(s, { color: "green", children: "✓ " }, void 0, !1, {
302
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
303
+ /* @__PURE__ */ e.jsxDEV(n, { color: "green", children: "✓ " }, void 0, !1, {
304
304
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
305
305
  lineNumber: 165,
306
306
  columnNumber: 21
307
307
  }, void 0),
308
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "Device authorization requested" }, void 0, !1, {
308
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "Device authorization requested" }, void 0, !1, {
309
309
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
310
310
  lineNumber: 166,
311
311
  columnNumber: 21
@@ -315,13 +315,13 @@ const G = ({ children: i }) => {
315
315
  lineNumber: 164,
316
316
  columnNumber: 19
317
317
  }, void 0),
318
- /* @__PURE__ */ e.jsxDEV(s, { children: [
319
- /* @__PURE__ */ e.jsxDEV(s, { color: "cyan", children: "◉ " }, void 0, !1, {
318
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
319
+ /* @__PURE__ */ e.jsxDEV(n, { color: "cyan", children: "◉ " }, void 0, !1, {
320
320
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
321
321
  lineNumber: 169,
322
322
  columnNumber: 21
323
323
  }, void 0),
324
- /* @__PURE__ */ e.jsxDEV(s, { bold: !0, children: "Waiting for browser confirmation" }, void 0, !1, {
324
+ /* @__PURE__ */ e.jsxDEV(n, { bold: !0, children: "Waiting for browser confirmation" }, void 0, !1, {
325
325
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
326
326
  lineNumber: 170,
327
327
  columnNumber: 21
@@ -340,8 +340,8 @@ const G = ({ children: i }) => {
340
340
  lineNumber: 158,
341
341
  columnNumber: 15
342
342
  }, void 0),
343
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "double", borderColor: "yellow", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: [
344
- /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "yellow", children: "📋 Authentication Steps:" }, void 0, !1, {
343
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "double", borderColor: "yellow", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: [
344
+ /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "yellow", children: "📋 Authentication Steps:" }, void 0, !1, {
345
345
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
346
346
  lineNumber: 177,
347
347
  columnNumber: 19
@@ -351,8 +351,8 @@ const G = ({ children: i }) => {
351
351
  lineNumber: 180,
352
352
  columnNumber: 19
353
353
  }, void 0),
354
- /* @__PURE__ */ e.jsxDEV(s, { children: [
355
- /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: [
354
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
355
+ /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: [
356
356
  "1.",
357
357
  " "
358
358
  ] }, void 0, !0, {
@@ -360,7 +360,7 @@ const G = ({ children: i }) => {
360
360
  lineNumber: 183,
361
361
  columnNumber: 21
362
362
  }, void 0),
363
- /* @__PURE__ */ e.jsxDEV(s, { children: "Open this URL in your browser:" }, void 0, !1, {
363
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Open this URL in your browser:" }, void 0, !1, {
364
364
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
365
365
  lineNumber: 186,
366
366
  columnNumber: 21
@@ -370,7 +370,7 @@ const G = ({ children: i }) => {
370
370
  lineNumber: 182,
371
371
  columnNumber: 19
372
372
  }, void 0),
373
- /* @__PURE__ */ e.jsxDEV(n, { paddingLeft: 3, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(m, { url: u, children: /* @__PURE__ */ e.jsxDEV(s, { color: "blue", bold: !0, children: u }, void 0, !1, {
373
+ /* @__PURE__ */ e.jsxDEV(s, { paddingLeft: 3, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(a, { url: u, children: /* @__PURE__ */ e.jsxDEV(n, { color: "blue", bold: !0, children: u }, void 0, !1, {
374
374
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
375
375
  lineNumber: 190,
376
376
  columnNumber: 23
@@ -383,8 +383,8 @@ const G = ({ children: i }) => {
383
383
  lineNumber: 188,
384
384
  columnNumber: 19
385
385
  }, void 0),
386
- /* @__PURE__ */ e.jsxDEV(s, { children: [
387
- /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: [
386
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
387
+ /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: [
388
388
  "2.",
389
389
  " "
390
390
  ] }, void 0, !0, {
@@ -392,7 +392,7 @@ const G = ({ children: i }) => {
392
392
  lineNumber: 197,
393
393
  columnNumber: 21
394
394
  }, void 0),
395
- /* @__PURE__ */ e.jsxDEV(s, { children: "Enter this verification code:" }, void 0, !1, {
395
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Enter this verification code:" }, void 0, !1, {
396
396
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
397
397
  lineNumber: 200,
398
398
  columnNumber: 21
@@ -402,7 +402,7 @@ const G = ({ children: i }) => {
402
402
  lineNumber: 196,
403
403
  columnNumber: 19
404
404
  }, void 0),
405
- /* @__PURE__ */ e.jsxDEV(n, { paddingLeft: 3, marginBottom: 1, borderStyle: "single", borderColor: "green", paddingX: 2, children: /* @__PURE__ */ e.jsxDEV(s, { color: "green", bold: !0, children: a.user_code }, void 0, !1, {
405
+ /* @__PURE__ */ e.jsxDEV(s, { paddingLeft: 3, marginBottom: 1, borderStyle: "single", borderColor: "green", paddingX: 2, children: /* @__PURE__ */ e.jsxDEV(n, { color: "green", bold: !0, children: r.user_code }, void 0, !1, {
406
406
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
407
407
  lineNumber: 203,
408
408
  columnNumber: 21
@@ -411,8 +411,8 @@ const G = ({ children: i }) => {
411
411
  lineNumber: 202,
412
412
  columnNumber: 19
413
413
  }, void 0),
414
- /* @__PURE__ */ e.jsxDEV(s, { children: [
415
- /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: [
414
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
415
+ /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: [
416
416
  "3.",
417
417
  " "
418
418
  ] }, void 0, !0, {
@@ -420,7 +420,7 @@ const G = ({ children: i }) => {
420
420
  lineNumber: 209,
421
421
  columnNumber: 21
422
422
  }, void 0),
423
- /* @__PURE__ */ e.jsxDEV(s, { children: "Sign in and authorize the device" }, void 0, !1, {
423
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Sign in and authorize the device" }, void 0, !1, {
424
424
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
425
425
  lineNumber: 212,
426
426
  columnNumber: 21
@@ -435,8 +435,8 @@ const G = ({ children: i }) => {
435
435
  lineNumber: 214,
436
436
  columnNumber: 19
437
437
  }, void 0),
438
- /* @__PURE__ */ e.jsxDEV(s, { children: [
439
- /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: [
438
+ /* @__PURE__ */ e.jsxDEV(n, { children: [
439
+ /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: [
440
440
  "4.",
441
441
  " "
442
442
  ] }, void 0, !0, {
@@ -444,7 +444,7 @@ const G = ({ children: i }) => {
444
444
  lineNumber: 217,
445
445
  columnNumber: 21
446
446
  }, void 0),
447
- /* @__PURE__ */ e.jsxDEV(s, { children: "Copy the verification token (JWT) shown after confirmation" }, void 0, !1, {
447
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Copy the verification token (JWT) shown after confirmation" }, void 0, !1, {
448
448
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
449
449
  lineNumber: 220,
450
450
  columnNumber: 21
@@ -459,7 +459,7 @@ const G = ({ children: i }) => {
459
459
  lineNumber: 222,
460
460
  columnNumber: 19
461
461
  }, void 0),
462
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: 'The browser will show a long token that starts with "eyJ..."' }, void 0, !1, {
462
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: 'The browser will show a long token that starts with "eyJ..."' }, void 0, !1, {
463
463
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
464
464
  lineNumber: 224,
465
465
  columnNumber: 19
@@ -473,17 +473,17 @@ const G = ({ children: i }) => {
473
473
  lineNumber: 175,
474
474
  columnNumber: 15
475
475
  }, void 0),
476
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "gray", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: [
477
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: [
476
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "gray", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: [
477
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: [
478
478
  "⏱️ Expires in: ",
479
- Math.floor(a.expires_in / 60),
479
+ Math.floor(r.expires_in / 60),
480
480
  " minutes"
481
481
  ] }, void 0, !0, {
482
482
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
483
483
  lineNumber: 230,
484
484
  columnNumber: 19
485
485
  }, void 0),
486
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "💡 Tip: The URL includes your verification code for convenience" }, void 0, !1, {
486
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "💡 Tip: The URL includes your verification code for convenience" }, void 0, !1, {
487
487
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
488
488
  lineNumber: 231,
489
489
  columnNumber: 19
@@ -506,8 +506,8 @@ const G = ({ children: i }) => {
506
506
  lineNumber: 149,
507
507
  columnNumber: 9
508
508
  }, void 0),
509
- c && /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(
510
- Q,
509
+ d && /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(
510
+ J,
511
511
  {
512
512
  onSubmit: (p) => v.mutate(p),
513
513
  onCancel: () => l(!1)
@@ -532,8 +532,8 @@ const G = ({ children: i }) => {
532
532
  }, void 0);
533
533
  }
534
534
  if (v.isPending)
535
- return /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, children: [
536
- /* @__PURE__ */ e.jsxDEV(n, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
535
+ return /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, children: [
536
+ /* @__PURE__ */ e.jsxDEV(s, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "cyan", children: "🔐 Agiflow Authentication" }, void 0, !1, {
537
537
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
538
538
  lineNumber: 255,
539
539
  columnNumber: 11
@@ -542,13 +542,13 @@ const G = ({ children: i }) => {
542
542
  lineNumber: 254,
543
543
  columnNumber: 9
544
544
  }, void 0),
545
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: /* @__PURE__ */ e.jsxDEV(s, { children: [
546
- /* @__PURE__ */ e.jsxDEV(s, { color: "cyan", children: "◉ " }, void 0, !1, {
545
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "cyan", padding: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: /* @__PURE__ */ e.jsxDEV(n, { children: [
546
+ /* @__PURE__ */ e.jsxDEV(n, { color: "cyan", children: "◉ " }, void 0, !1, {
547
547
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
548
548
  lineNumber: 262,
549
549
  columnNumber: 15
550
550
  }, void 0),
551
- /* @__PURE__ */ e.jsxDEV(s, { children: "Verifying token..." }, void 0, !1, {
551
+ /* @__PURE__ */ e.jsxDEV(n, { children: "Verifying token..." }, void 0, !1, {
552
552
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
553
553
  lineNumber: 263,
554
554
  columnNumber: 15
@@ -573,8 +573,8 @@ const G = ({ children: i }) => {
573
573
  }, void 0);
574
574
  if (f.isError || v.isError) {
575
575
  const u = f.error || v.error;
576
- return /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", padding: 1, children: [
577
- /* @__PURE__ */ e.jsxDEV(n, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "red", children: "❌ Authentication Error" }, void 0, !1, {
576
+ return /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", padding: 1, children: [
577
+ /* @__PURE__ */ e.jsxDEV(s, { marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "red", children: "❌ Authentication Error" }, void 0, !1, {
578
578
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
579
579
  lineNumber: 277,
580
580
  columnNumber: 11
@@ -583,7 +583,7 @@ const G = ({ children: i }) => {
583
583
  lineNumber: 276,
584
584
  columnNumber: 9
585
585
  }, void 0),
586
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "round", borderColor: "red", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(s, { color: "red", children: u?.message || "Unknown error occurred" }, void 0, !1, {
586
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "round", borderColor: "red", padding: 1, marginBottom: 1, children: /* @__PURE__ */ e.jsxDEV(n, { color: "red", children: u?.message || "Unknown error occurred" }, void 0, !1, {
587
587
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
588
588
  lineNumber: 282,
589
589
  columnNumber: 11
@@ -592,28 +592,28 @@ const G = ({ children: i }) => {
592
592
  lineNumber: 281,
593
593
  columnNumber: 9
594
594
  }, void 0),
595
- /* @__PURE__ */ e.jsxDEV(n, { borderStyle: "single", borderColor: "gray", padding: 1, children: /* @__PURE__ */ e.jsxDEV(n, { flexDirection: "column", children: [
596
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "💡 Troubleshooting:" }, void 0, !1, {
595
+ /* @__PURE__ */ e.jsxDEV(s, { borderStyle: "single", borderColor: "gray", padding: 1, children: /* @__PURE__ */ e.jsxDEV(s, { flexDirection: "column", children: [
596
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "💡 Troubleshooting:" }, void 0, !1, {
597
597
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
598
598
  lineNumber: 286,
599
599
  columnNumber: 13
600
600
  }, void 0),
601
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: " • Check your internet connection" }, void 0, !1, {
601
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: " • Check your internet connection" }, void 0, !1, {
602
602
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
603
603
  lineNumber: 287,
604
604
  columnNumber: 13
605
605
  }, void 0),
606
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: " • Verify the server URL is correct" }, void 0, !1, {
606
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: " • Verify the server URL is correct" }, void 0, !1, {
607
607
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
608
608
  lineNumber: 288,
609
609
  columnNumber: 13
610
610
  }, void 0),
611
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: " • Ensure the token is valid and not expired" }, void 0, !1, {
611
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: " • Ensure the token is valid and not expired" }, void 0, !1, {
612
612
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
613
613
  lineNumber: 289,
614
614
  columnNumber: 13
615
615
  }, void 0),
616
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: " • Try running the daemon again" }, void 0, !1, {
616
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: " • Try running the daemon again" }, void 0, !1, {
617
617
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
618
618
  lineNumber: 290,
619
619
  columnNumber: 13
@@ -623,7 +623,7 @@ const G = ({ children: i }) => {
623
623
  lineNumber: 291,
624
624
  columnNumber: 13
625
625
  }, void 0),
626
- /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "⌨️ Press Ctrl+C to exit" }, void 0, !1, {
626
+ /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "⌨️ Press Ctrl+C to exit" }, void 0, !1, {
627
627
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/guards/OauthSetup.tsx",
628
628
  lineNumber: 292,
629
629
  columnNumber: 13
@@ -644,54 +644,66 @@ const G = ({ children: i }) => {
644
644
  }, void 0);
645
645
  }
646
646
  return null;
647
- }, J = () => {
648
- const { Box: i, Text: n } = g(), s = N((r) => r.agentTabs.tabs), o = N((r) => r.agentTabs.activeTabId);
649
- return /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, borderStyle: "single", borderColor: "gray", children: s.map((r, m) => {
650
- const t = `^F${m + 1}`;
651
- return /* @__PURE__ */ e.jsxDEV(i, { paddingRight: 2, children: [
652
- /* @__PURE__ */ e.jsxDEV(
653
- n,
654
- {
655
- color: o === r.id ? "#ffffff" : "#d1d5db",
656
- bold: o === r.id,
657
- dimColor: o !== r.id,
658
- backgroundColor: o === r.id ? "#10b981" : void 0,
659
- children: [
660
- "[",
661
- t,
662
- "] ",
663
- r.label,
664
- r.unreadCount && r.unreadCount > 0 && r.id !== o ? ` (${r.unreadCount})` : ""
665
- ]
666
- },
667
- void 0,
668
- !0,
669
- {
647
+ }, X = process.platform === "darwin", H = () => {
648
+ const { Box: i, Text: s } = g(), n = N((a) => a.agentTabs.tabs), o = N((a) => a.agentTabs.activeTabId), c = G(() => {
649
+ if (!o) return null;
650
+ try {
651
+ const r = y.get(w.AgentManager).getAgentContainer(o);
652
+ if (r)
653
+ return r.get(A.AgentConfigService).getEffectiveWorkingDir();
654
+ } catch {
655
+ }
656
+ return n.find((t) => t.id === o)?.request.payload.agentConfig?.workingDirectory || process.cwd();
657
+ }, [o, n]);
658
+ return /* @__PURE__ */ e.jsxDEV(i, { flexDirection: "column", marginTop: 1, children: [
659
+ /* @__PURE__ */ e.jsxDEV(i, { borderStyle: "single", borderColor: "gray", children: n.map((a, t) => {
660
+ const r = `^F${t + 1}`;
661
+ return /* @__PURE__ */ e.jsxDEV(i, { marginRight: 2, borderStyle: o === a.id ? "round" : void 0, children: [
662
+ /* @__PURE__ */ e.jsxDEV(s, { color: "#d1d5db", bold: o === a.id, dimColor: o !== a.id, children: [
663
+ "[",
664
+ r,
665
+ "] ",
666
+ a.label,
667
+ a.unreadCount && a.unreadCount > 0 && a.id !== o ? ` (${a.unreadCount})` : ""
668
+ ] }, void 0, !0, {
670
669
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
671
- lineNumber: 17,
672
- columnNumber: 13
673
- },
674
- void 0
675
- ),
676
- /* @__PURE__ */ e.jsxDEV(A, { tab: r }, void 0, !1, {
670
+ lineNumber: 47,
671
+ columnNumber: 15
672
+ }, void 0),
673
+ /* @__PURE__ */ e.jsxDEV(I, { tab: a }, void 0, !1, {
674
+ fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
675
+ lineNumber: 51,
676
+ columnNumber: 15
677
+ }, void 0)
678
+ ] }, a.id, !0, {
677
679
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
678
- lineNumber: 26,
680
+ lineNumber: 46,
679
681
  columnNumber: 13
680
- }, void 0)
681
- ] }, r.id, !0, {
682
+ }, void 0);
683
+ }) }, void 0, !1, {
682
684
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
683
- lineNumber: 16,
684
- columnNumber: 11
685
- }, void 0);
686
- }) }, void 0, !1, {
685
+ lineNumber: 42,
686
+ columnNumber: 7
687
+ }, void 0),
688
+ c && /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: c }, void 0, !1, {
689
+ fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
690
+ lineNumber: 56,
691
+ columnNumber: 28
692
+ }, void 0),
693
+ X && /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "Press fn + Shift + F[num] to switch tabs" }, void 0, !1, {
694
+ fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
695
+ lineNumber: 57,
696
+ columnNumber: 19
697
+ }, void 0)
698
+ ] }, void 0, !0, {
687
699
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/components/AgentTabs.tsx",
688
- lineNumber: 12,
700
+ lineNumber: 41,
689
701
  columnNumber: 5
690
702
  }, void 0);
691
- }, X = () => {
692
- const { Box: i } = g(), n = N((s) => s.agentTabs.activeTabId);
703
+ }, Z = () => {
704
+ const { Box: i } = g(), s = N((n) => n.agentTabs.activeTabId);
693
705
  return /* @__PURE__ */ e.jsxDEV(i, { flexDirection: "column", flexGrow: 1, children: [
694
- /* @__PURE__ */ e.jsxDEV(I, { children: /* @__PURE__ */ e.jsxDEV(B, {}, n, !1, {
706
+ /* @__PURE__ */ e.jsxDEV(B, { children: /* @__PURE__ */ e.jsxDEV(M, {}, s, !1, {
695
707
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Agents/index.tsx",
696
708
  lineNumber: 19,
697
709
  columnNumber: 9
@@ -700,7 +712,7 @@ const G = ({ children: i }) => {
700
712
  lineNumber: 18,
701
713
  columnNumber: 7
702
714
  }, void 0),
703
- /* @__PURE__ */ e.jsxDEV(M, { children: /* @__PURE__ */ e.jsxDEV(J, {}, void 0, !1, {
715
+ /* @__PURE__ */ e.jsxDEV(P, { children: /* @__PURE__ */ e.jsxDEV(H, {}, void 0, !1, {
704
716
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Agents/index.tsx",
705
717
  lineNumber: 22,
706
718
  columnNumber: 9
@@ -709,7 +721,7 @@ const G = ({ children: i }) => {
709
721
  lineNumber: 21,
710
722
  columnNumber: 7
711
723
  }, void 0),
712
- /* @__PURE__ */ e.jsxDEV(P, {}, void 0, !1, {
724
+ /* @__PURE__ */ e.jsxDEV(_, {}, void 0, !1, {
713
725
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Agents/index.tsx",
714
726
  lineNumber: 24,
715
727
  columnNumber: 7
@@ -719,15 +731,15 @@ const G = ({ children: i }) => {
719
731
  lineNumber: 17,
720
732
  columnNumber: 5
721
733
  }, void 0);
722
- }, Y = () => {
723
- const { Box: i, Text: n } = g();
734
+ }, ee = () => {
735
+ const { Box: i, Text: s } = g();
724
736
  return /* @__PURE__ */ e.jsxDEV(i, { flexDirection: "column", borderStyle: "round", borderColor: "green", padding: 1, flexGrow: 1, children: [
725
- /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "green", children: "Welcome to Agent CLI Daemon!" }, void 0, !1, {
737
+ /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "green", children: "Welcome to Agent CLI Daemon!" }, void 0, !1, {
726
738
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Onboarding/index.tsx",
727
739
  lineNumber: 9,
728
740
  columnNumber: 7
729
741
  }, void 0),
730
- /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, children: /* @__PURE__ */ e.jsxDEV(n, { children: "It looks like you don't have any active agent sessions." }, void 0, !1, {
742
+ /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, children: /* @__PURE__ */ e.jsxDEV(s, { children: "It looks like you don't have any active agent sessions." }, void 0, !1, {
731
743
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Onboarding/index.tsx",
732
744
  lineNumber: 13,
733
745
  columnNumber: 9
@@ -736,24 +748,24 @@ const G = ({ children: i }) => {
736
748
  lineNumber: 12,
737
749
  columnNumber: 7
738
750
  }, void 0),
739
- /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, children: /* @__PURE__ */ e.jsxDEV(n, { children: [
751
+ /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, children: /* @__PURE__ */ e.jsxDEV(s, { children: [
740
752
  "Please use the Agiflow UI Dashboard to start a",
741
753
  " ",
742
- /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "blue", children: "Project Plan" }, void 0, !1, {
754
+ /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "blue", children: "Project Plan" }, void 0, !1, {
743
755
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Onboarding/index.tsx",
744
756
  lineNumber: 18,
745
757
  columnNumber: 11
746
758
  }, void 0),
747
759
  ",",
748
760
  " ",
749
- /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "blue", children: "Work Unit" }, void 0, !1, {
761
+ /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "blue", children: "Work Unit" }, void 0, !1, {
750
762
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Onboarding/index.tsx",
751
763
  lineNumber: 22,
752
764
  columnNumber: 11
753
765
  }, void 0),
754
766
  ", or",
755
767
  " ",
756
- /* @__PURE__ */ e.jsxDEV(n, { bold: !0, color: "blue", children: "Task Chat" }, void 0, !1, {
768
+ /* @__PURE__ */ e.jsxDEV(s, { bold: !0, color: "blue", children: "Task Chat" }, void 0, !1, {
757
769
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Onboarding/index.tsx",
758
770
  lineNumber: 26,
759
771
  columnNumber: 11
@@ -769,7 +781,7 @@ const G = ({ children: i }) => {
769
781
  lineNumber: 15,
770
782
  columnNumber: 7
771
783
  }, void 0),
772
- /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, children: /* @__PURE__ */ e.jsxDEV(n, { dimColor: !0, children: "The Agiflow UI Dashboard can be accessed in your browser." }, void 0, !1, {
784
+ /* @__PURE__ */ e.jsxDEV(i, { marginTop: 1, children: /* @__PURE__ */ e.jsxDEV(s, { dimColor: !0, children: "The Agiflow UI Dashboard can be accessed in your browser." }, void 0, !1, {
773
785
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/screens/Onboarding/index.tsx",
774
786
  lineNumber: 33,
775
787
  columnNumber: 9
@@ -783,7 +795,7 @@ const G = ({ children: i }) => {
783
795
  lineNumber: 8,
784
796
  columnNumber: 5
785
797
  }, void 0);
786
- }, H = new z({
798
+ }, ne = new K({
787
799
  defaultOptions: {
788
800
  queries: {
789
801
  retry: !1,
@@ -794,13 +806,13 @@ const G = ({ children: i }) => {
794
806
  // Consider data stale after 30 seconds
795
807
  }
796
808
  }
797
- }), Z = () => {
798
- const { Box: i } = g(), s = N((o) => o.agentTabs.tabs).length > 0;
799
- return /* @__PURE__ */ e.jsxDEV(W, { children: ({ isAuthenticated: o }) => /* @__PURE__ */ e.jsxDEV(G, { children: /* @__PURE__ */ e.jsxDEV(i, { flexGrow: 1, flexDirection: "column", children: o && !s ? /* @__PURE__ */ e.jsxDEV(Y, {}, void 0, !1, {
809
+ }), se = () => {
810
+ const { Box: i } = g(), n = N((o) => o.agentTabs.tabs).length > 0;
811
+ return /* @__PURE__ */ e.jsxDEV(Y, { children: ({ isAuthenticated: o }) => /* @__PURE__ */ e.jsxDEV(Q, { children: /* @__PURE__ */ e.jsxDEV(i, { flexGrow: 1, flexDirection: "column", children: o && !n ? /* @__PURE__ */ e.jsxDEV(ee, {}, void 0, !1, {
800
812
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/index.tsx",
801
813
  lineNumber: 35,
802
814
  columnNumber: 49
803
- }, void 0) : /* @__PURE__ */ e.jsxDEV(X, {}, void 0, !1, {
815
+ }, void 0) : /* @__PURE__ */ e.jsxDEV(Z, {}, void 0, !1, {
804
816
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/index.tsx",
805
817
  lineNumber: 35,
806
818
  columnNumber: 66
@@ -817,7 +829,7 @@ const G = ({ children: i }) => {
817
829
  lineNumber: 31,
818
830
  columnNumber: 5
819
831
  }, void 0);
820
- }, ee = () => /* @__PURE__ */ e.jsxDEV(L, { children: /* @__PURE__ */ e.jsxDEV($, { store: _, children: /* @__PURE__ */ e.jsxDEV(q, { client: H, children: /* @__PURE__ */ e.jsxDEV(Z, {}, void 0, !1, {
832
+ }, oe = () => /* @__PURE__ */ e.jsxDEV(L, { children: /* @__PURE__ */ e.jsxDEV($, { store: F, children: /* @__PURE__ */ e.jsxDEV(z, { client: ne, children: /* @__PURE__ */ e.jsxDEV(se, {}, void 0, !1, {
821
833
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/index.tsx",
822
834
  lineNumber: 48,
823
835
  columnNumber: 11
@@ -833,8 +845,8 @@ const G = ({ children: i }) => {
833
845
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/index.tsx",
834
846
  lineNumber: 45,
835
847
  columnNumber: 5
836
- }, void 0), ae = async () => {
837
- const { render: i } = await import("ink"), { waitUntilExit: n } = i(/* @__PURE__ */ e.jsxDEV(ee, {}, void 0, !1, {
848
+ }, void 0), te = async () => {
849
+ const { render: i } = await import("ink"), { waitUntilExit: s } = i(/* @__PURE__ */ e.jsxDEV(oe, {}, void 0, !1, {
838
850
  fileName: "/Users/vuongngo/workspace/monorepo/apps/agent-cli/src/systems/cli/apps/daemon/index.tsx",
839
851
  lineNumber: 59,
840
852
  columnNumber: 36
@@ -843,9 +855,9 @@ const G = ({ children: i }) => {
843
855
  stdout: process.stdout,
844
856
  stderr: process.stderr
845
857
  });
846
- return n();
858
+ return s();
847
859
  };
848
860
  export {
849
- ae as startDaemonApp
861
+ te as startDaemonApp
850
862
  };
851
863
  //# sourceMappingURL=daemon.js.map