@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/claudeNotification.js +1 -1
- package/dist/claudePermissionRequest.js +1 -1
- package/dist/claudePostToolUse.js +1 -1
- package/dist/claudePreToolUse.js +1 -1
- package/dist/claudeSessionEnd.js +1 -1
- package/dist/claudeSessionStart.js +1 -1
- package/dist/claudeStop.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/daemon.js +177 -165
- package/dist/daemon.js.map +1 -1
- package/dist/{index-rQIAEgB9.mjs → index-B-6QlXul.mjs} +5092 -4899
- package/dist/index-B-6QlXul.mjs.map +1 -0
- package/dist/{index-CxP6kLM9.mjs → index-BXTun-Sm.mjs} +2 -2
- package/dist/index-BXTun-Sm.mjs.map +1 -0
- package/dist/{index-qXAhghID.mjs → index-ovmNbtD-.mjs} +2 -2
- package/dist/index-ovmNbtD-.mjs.map +1 -0
- package/dist/index.js +2 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/index-CxP6kLM9.mjs.map +0 -1
- package/dist/index-qXAhghID.mjs.map +0 -1
- package/dist/index-rQIAEgB9.mjs.map +0 -1
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
|
|
2
|
-
import { useQueryClient as R, useQuery as
|
|
3
|
-
import { useDispatch as
|
|
4
|
-
import { useRef as U, useEffect as V, useState as D } from "react";
|
|
5
|
-
const
|
|
6
|
-
const { Box:
|
|
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
|
|
12
|
-
|
|
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]),
|
|
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) :
|
|
27
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
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) :
|
|
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
|
-
},
|
|
52
|
-
const { Box:
|
|
53
|
-
return
|
|
54
|
-
if (
|
|
55
|
-
|
|
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 (
|
|
59
|
-
const l =
|
|
58
|
+
if (d.return) {
|
|
59
|
+
const l = r.current.trim();
|
|
60
60
|
l && i(l);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
|
-
if (
|
|
64
|
-
|
|
63
|
+
if (d.escape) {
|
|
64
|
+
s?.();
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
const l =
|
|
69
|
-
|
|
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 (
|
|
73
|
-
const l =
|
|
74
|
-
|
|
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(
|
|
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:
|
|
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
|
-
},
|
|
124
|
-
const { Box:
|
|
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
|
-
|
|
148
|
+
m(u), l(!0);
|
|
149
149
|
}
|
|
150
150
|
}), v = E({
|
|
151
151
|
mutationFn: async (u) => {
|
|
152
|
-
if (!
|
|
152
|
+
if (!r)
|
|
153
153
|
throw new Error("Device code not available");
|
|
154
|
-
const p = await b.exchangeTokenForApiKey(u,
|
|
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 && !
|
|
168
|
-
}, [x, f,
|
|
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(
|
|
176
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
186
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
216
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
226
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
227
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
243
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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 (
|
|
273
|
-
const u = `${
|
|
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(
|
|
276
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
286
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
287
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
303
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
319
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
344
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
355
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
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(
|
|
387
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
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(
|
|
415
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
439
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
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(
|
|
477
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
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
|
-
|
|
510
|
-
|
|
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(
|
|
536
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
546
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
577
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
596
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
648
|
-
const { Box: i, Text:
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
]
|
|
666
|
-
|
|
667
|
-
|
|
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:
|
|
672
|
-
columnNumber:
|
|
673
|
-
},
|
|
674
|
-
void 0
|
|
675
|
-
|
|
676
|
-
|
|
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:
|
|
680
|
+
lineNumber: 46,
|
|
679
681
|
columnNumber: 13
|
|
680
|
-
}, void 0)
|
|
681
|
-
|
|
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:
|
|
684
|
-
columnNumber:
|
|
685
|
-
}, void 0)
|
|
686
|
-
|
|
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:
|
|
700
|
+
lineNumber: 41,
|
|
689
701
|
columnNumber: 5
|
|
690
702
|
}, void 0);
|
|
691
|
-
},
|
|
692
|
-
const { Box: i } = g(),
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
723
|
-
const { Box: i, Text:
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
798
|
-
const { Box: i } = g(),
|
|
799
|
-
return /* @__PURE__ */ e.jsxDEV(
|
|
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(
|
|
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
|
-
},
|
|
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),
|
|
837
|
-
const { render: i } = await import("ink"), { waitUntilExit:
|
|
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
|
|
858
|
+
return s();
|
|
847
859
|
};
|
|
848
860
|
export {
|
|
849
|
-
|
|
861
|
+
te as startDaemonApp
|
|
850
862
|
};
|
|
851
863
|
//# sourceMappingURL=daemon.js.map
|