@omg-dev/app 0.5.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{ChangelogPage-BzsTWlhq.js → ChangelogPage-CirRyMnC.js} +54 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-K4lGGdJ4.js → SessionFilesPanel-W4QKB0HL.js} +64 -64
- package/dist-lib/{TermView-CWr-zJmM.js → TermView-CoD-VkHs.js} +495 -520
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-P0yDhFOX.js → chat-engine-CRzDKNTH.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-DCafIpWL.js → coding-agents-page-OER8HHRF.js} +152 -131
- package/dist-lib/computer-page-D9cSNLa9.js +8990 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-CLYU5z7h.js → embedded-DqTPdMCh.js} +10561 -10581
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/keyboard-Yfa1ETse.js +21 -0
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-CHwpwguS.js → resume-session-sheet-bjDJmwq6.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-BUz6b-IB.js → session-token-usage-D2zDt9P7.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-CXy85bsL.js → shipped-page-Cr7dCCc2.js} +232 -235
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-CUB9sK6V.js → streamdown-response-Qq9_RgFv.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as a, e as w, l as x } from "./index-B0neMIbR.js";
|
|
2
|
+
var d = /* @__PURE__ */ a((e, t, i, r) => {
|
|
3
|
+
e.attr("class", i);
|
|
4
|
+
const { width: o, height: h, x: n, y: c } = u(e, t);
|
|
5
|
+
w(e, h, o, r);
|
|
6
|
+
const s = l(n, c, o, h, t);
|
|
7
|
+
e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
|
|
8
|
+
}, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
|
|
9
|
+
const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
10
|
+
return {
|
|
11
|
+
width: i.width + t * 2,
|
|
12
|
+
height: i.height + t * 2,
|
|
13
|
+
x: i.x,
|
|
14
|
+
y: i.y
|
|
15
|
+
};
|
|
16
|
+
}, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
|
|
17
|
+
export {
|
|
18
|
+
d as s
|
|
19
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, d as o } from "./index-
|
|
1
|
+
import { _ as a, d as o } from "./index-B0neMIbR.js";
|
|
2
2
|
var d = /* @__PURE__ */ a((t, e) => {
|
|
3
3
|
let n;
|
|
4
4
|
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-V7JOEXUC-
|
|
2
|
-
import { _ as l } from "./index-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-V7JOEXUC-Bkakcs1-.js";
|
|
2
|
+
import { _ as l } from "./index-B0neMIbR.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-V7JOEXUC-
|
|
2
|
-
import { _ as l } from "./index-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-V7JOEXUC-Bkakcs1-.js";
|
|
2
|
+
import { _ as l } from "./index-B0neMIbR.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { R, B as d, L as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import { R, B as d, L as $, n as A, o as S, M as H, p as j, q as I, s as h, T as E, u as D, v as W, w as P, x as X, y as J, X as Q, K as V } from "./embedded-DqTPdMCh.js";
|
|
3
|
+
import { cn as M } from "cnfast";
|
|
4
4
|
import { useState as T } from "react";
|
|
5
|
-
function
|
|
6
|
-
return /CLI$|runtime$/i.test(
|
|
5
|
+
function O(s) {
|
|
6
|
+
return /CLI$|runtime$/i.test(s);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return
|
|
8
|
+
function Y(s) {
|
|
9
|
+
return s.some((a) => O(a.label) && !a.ok);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
return
|
|
11
|
+
function Z(s) {
|
|
12
|
+
const a = s.filter((r) => !r.ok);
|
|
13
|
+
return a.length ? a.some((r) => O(r.label)) ? "Install" : "Connect" : null;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
return
|
|
15
|
+
function ee(s) {
|
|
16
|
+
const a = s.filter((r) => !r.ok);
|
|
17
|
+
return a.length ? a.length === 1 ? `${a[0].label} missing` : `${a.length} checks failing` : null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return /* @__PURE__ */ e("div", { className: "space-y-1", children:
|
|
19
|
+
function ne({ checks: s }) {
|
|
20
|
+
return /* @__PURE__ */ e("div", { className: "space-y-1", children: s.map((a) => /* @__PURE__ */ t(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
className: "flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",
|
|
24
24
|
children: [
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */ e("span", { className: "shrink-0", children:
|
|
27
|
-
|
|
25
|
+
a.ok ? /* @__PURE__ */ e(J, { className: "size-3.5 shrink-0 text-success" }) : /* @__PURE__ */ e(Q, { className: "size-3.5 shrink-0 text-destructive" }),
|
|
26
|
+
/* @__PURE__ */ e("span", { className: "shrink-0", children: a.label }),
|
|
27
|
+
a.detail ? /* @__PURE__ */ e("span", { className: "min-w-0 truncate text-muted-foreground/70", children: a.detail }) : null
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
a.label
|
|
31
31
|
)) });
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
icon:
|
|
35
|
-
title:
|
|
33
|
+
function L({
|
|
34
|
+
icon: s,
|
|
35
|
+
title: a,
|
|
36
36
|
note: r,
|
|
37
37
|
ok: m,
|
|
38
38
|
showDot: o = !0,
|
|
@@ -41,9 +41,9 @@ function D({
|
|
|
41
41
|
onToggle: x,
|
|
42
42
|
children: b
|
|
43
43
|
}) {
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ t("div", { className: "px-4 py-2.5", children: [
|
|
45
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
47
|
"button",
|
|
48
48
|
{
|
|
49
49
|
type: "button",
|
|
@@ -51,18 +51,18 @@ function D({
|
|
|
51
51
|
"aria-expanded": u,
|
|
52
52
|
className: "flex min-w-0 flex-1 items-center gap-3 text-left",
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */ e("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-[8px] border border-border bg-background", children:
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */ e("span", { className: "truncate text-sm font-medium", children:
|
|
54
|
+
/* @__PURE__ */ e("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-[8px] border border-border bg-background", children: s }),
|
|
55
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1", children: [
|
|
56
|
+
/* @__PURE__ */ t("span", { className: "flex items-center gap-2", children: [
|
|
57
|
+
/* @__PURE__ */ e("span", { className: "truncate text-sm font-medium", children: a }),
|
|
58
58
|
o && !m ? /* @__PURE__ */ e("span", { className: "size-1.5 shrink-0 rounded-full bg-destructive", "aria-hidden": !0 }) : null
|
|
59
59
|
] }),
|
|
60
60
|
r ? /* @__PURE__ */ e("span", { className: "block truncate text-xs text-muted-foreground", children: r }) : null
|
|
61
61
|
] }),
|
|
62
62
|
/* @__PURE__ */ e(
|
|
63
|
-
|
|
63
|
+
X,
|
|
64
64
|
{
|
|
65
|
-
className:
|
|
65
|
+
className: M(
|
|
66
66
|
"size-4 shrink-0 text-muted-foreground/60 transition-transform duration-150",
|
|
67
67
|
u && "rotate-180"
|
|
68
68
|
)
|
|
@@ -76,38 +76,38 @@ function D({
|
|
|
76
76
|
u ? /* @__PURE__ */ e("div", { className: "mt-3 space-y-3 pl-11", children: b }) : null
|
|
77
77
|
] });
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
provider:
|
|
81
|
-
onConnect:
|
|
79
|
+
function te({
|
|
80
|
+
provider: s,
|
|
81
|
+
onConnect: a,
|
|
82
82
|
onDisconnect: r
|
|
83
83
|
}) {
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */ e("span", { className: "block truncate text-xs font-medium", children:
|
|
87
|
-
|
|
84
|
+
return /* @__PURE__ */ t("div", { className: "flex items-center gap-2 rounded-xl border border-border/70 bg-background/55 px-2.5 py-2", children: [
|
|
85
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1", children: [
|
|
86
|
+
/* @__PURE__ */ e("span", { className: "block truncate text-xs font-medium", children: s.label }),
|
|
87
|
+
s.needsReconnect ? /* @__PURE__ */ e("span", { className: "block truncate text-[11px] text-destructive", children: "Sign-in expired" }) : s.detail || s.fromEnv ? /* @__PURE__ */ e("span", { className: "block truncate text-[11px] text-muted-foreground", children: s.detail ?? "From the environment" }) : null
|
|
88
88
|
] }),
|
|
89
|
-
|
|
89
|
+
s.connected ? /* @__PURE__ */ t(B, { children: [
|
|
90
90
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-success", children: "Connected" }),
|
|
91
|
-
|
|
91
|
+
s.fromEnv ? null : /* @__PURE__ */ e(
|
|
92
92
|
"button",
|
|
93
93
|
{
|
|
94
94
|
type: "button",
|
|
95
|
-
onClick: () => r(
|
|
96
|
-
title: `Disconnect ${
|
|
97
|
-
"aria-label": `Disconnect ${
|
|
95
|
+
onClick: () => r(s),
|
|
96
|
+
title: `Disconnect ${s.label}`,
|
|
97
|
+
"aria-label": `Disconnect ${s.label}`,
|
|
98
98
|
className: "flex size-7 items-center justify-center rounded-full text-muted-foreground transition hover:bg-destructive/10 hover:text-destructive",
|
|
99
|
-
children: /* @__PURE__ */ e(
|
|
99
|
+
children: /* @__PURE__ */ e(E, { className: "size-3.5" })
|
|
100
100
|
}
|
|
101
101
|
)
|
|
102
|
-
] }) : /* @__PURE__ */
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
] }) : /* @__PURE__ */ t(d, { size: "sm", variant: "outline", onClick: () => a(s), children: [
|
|
103
|
+
s.method === "oauth" ? /* @__PURE__ */ e(h, { className: "size-3.5" }) : /* @__PURE__ */ e(V, { className: "size-3.5" }),
|
|
104
|
+
s.needsReconnect ? "Reconnect" : "Connect"
|
|
105
105
|
] })
|
|
106
106
|
] });
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
setupChecks:
|
|
110
|
-
agents:
|
|
108
|
+
function re({
|
|
109
|
+
setupChecks: s,
|
|
110
|
+
agents: a,
|
|
111
111
|
onVisibleChange: r,
|
|
112
112
|
onSetup: m,
|
|
113
113
|
onLogin: o,
|
|
@@ -115,88 +115,109 @@ function le({
|
|
|
115
115
|
onRemoveClaudeAccount: u,
|
|
116
116
|
onConnectProvider: x,
|
|
117
117
|
onDisconnectProvider: b,
|
|
118
|
-
onSetupCheck:
|
|
119
|
-
onRefresh:
|
|
118
|
+
onSetupCheck: U,
|
|
119
|
+
onRefresh: K,
|
|
120
|
+
computerMcpEnabled: g,
|
|
121
|
+
onComputerMcpChange: q
|
|
120
122
|
}) {
|
|
121
|
-
const [
|
|
122
|
-
async function
|
|
123
|
-
if (!
|
|
124
|
-
|
|
123
|
+
const [p, y] = T(!1), [v, C] = T(null), z = (n) => C((l) => l === n ? null : n);
|
|
124
|
+
async function F() {
|
|
125
|
+
if (!p) {
|
|
126
|
+
y(!0);
|
|
125
127
|
try {
|
|
126
|
-
await
|
|
128
|
+
await K(), P.success("Coding agents refreshed");
|
|
127
129
|
} catch (n) {
|
|
128
|
-
|
|
130
|
+
P.error(n instanceof Error ? n.message : "Could not refresh coding agents");
|
|
129
131
|
} finally {
|
|
130
|
-
|
|
132
|
+
y(!1);
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
+
return /* @__PURE__ */ t("div", { className: "mx-auto max-w-xl space-y-3 pb-10", "data-lfg-page-column": !0, children: [
|
|
137
|
+
/* @__PURE__ */ t("div", { className: "flex items-center justify-between px-4", children: [
|
|
136
138
|
/* @__PURE__ */ e("h2", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: "Coding agents" }),
|
|
137
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ t(
|
|
138
140
|
"button",
|
|
139
141
|
{
|
|
140
142
|
type: "button",
|
|
141
|
-
onClick: () => void
|
|
142
|
-
disabled:
|
|
143
|
+
onClick: () => void F(),
|
|
144
|
+
disabled: p,
|
|
143
145
|
className: "flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground disabled:opacity-50",
|
|
144
146
|
children: [
|
|
145
|
-
/* @__PURE__ */ e(R, { className:
|
|
147
|
+
/* @__PURE__ */ e(R, { className: M("size-3.5", p && "animate-spin") }),
|
|
146
148
|
"Refresh"
|
|
147
149
|
]
|
|
148
150
|
}
|
|
149
151
|
)
|
|
150
152
|
] }),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
153
|
+
s.length ? /* @__PURE__ */ t("div", { className: "overflow-hidden rounded-2xl border border-border bg-card/40 divide-y divide-border", children: [
|
|
154
|
+
s.map((n) => /* @__PURE__ */ t(
|
|
155
|
+
L,
|
|
156
|
+
{
|
|
157
|
+
icon: /* @__PURE__ */ e(S, { className: "size-4 text-muted-foreground" }),
|
|
158
|
+
title: n.label,
|
|
159
|
+
note: ee(n.checks),
|
|
160
|
+
ok: n.configured,
|
|
161
|
+
open: v === `setup:${n.key}`,
|
|
162
|
+
onToggle: () => z(`setup:${n.key}`),
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ e(ne, { checks: n.checks }),
|
|
165
|
+
n.instructions.map((l) => /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: l }, l)),
|
|
166
|
+
/* @__PURE__ */ t(
|
|
167
|
+
d,
|
|
168
|
+
{
|
|
169
|
+
size: "sm",
|
|
170
|
+
variant: "outline",
|
|
171
|
+
disabled: !n.canAutoSetup || n.running,
|
|
172
|
+
onClick: () => U(n.key),
|
|
173
|
+
title: n.canAutoSetup ? n.actionLabel : "Install a supported coding agent first",
|
|
174
|
+
children: [
|
|
175
|
+
n.running ? /* @__PURE__ */ e($, { className: "size-4 animate-spin" }) : /* @__PURE__ */ e(A, { className: "size-4" }),
|
|
176
|
+
n.running ? "Running…" : n.actionLabel
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
n.key
|
|
183
|
+
)),
|
|
184
|
+
/* @__PURE__ */ t("div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
185
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
186
|
+
/* @__PURE__ */ e(H, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
187
|
+
/* @__PURE__ */ t("span", { className: "min-w-0", children: [
|
|
188
|
+
/* @__PURE__ */ e("span", { className: "block truncate text-sm font-medium", children: "Computer Use MCP" }),
|
|
189
|
+
/* @__PURE__ */ e("span", { className: "block text-xs text-muted-foreground", children: g ? "Agents can drive this box's desktop and browser." : "Off. Agents cannot see or drive the desktop." })
|
|
190
|
+
] })
|
|
191
|
+
] }),
|
|
192
|
+
/* @__PURE__ */ e(
|
|
193
|
+
j,
|
|
194
|
+
{
|
|
195
|
+
checked: g,
|
|
196
|
+
onCheckedChange: q,
|
|
197
|
+
"aria-label": g ? "Disable the Computer Use MCP" : "Enable the Computer Use MCP"
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
] })
|
|
201
|
+
] }) : null,
|
|
202
|
+
/* @__PURE__ */ e("div", { className: "overflow-hidden rounded-2xl border border-border bg-card/40 divide-y divide-border", children: a.map((n) => {
|
|
203
|
+
const l = n.status, c = n.key === "aisdk" ? l.accounts ?? [] : [], k = l.providers ?? [], _ = c.some((i) => i.connected), G = c.length > 0 || k.length > 0, w = Y(l.checks);
|
|
204
|
+
return /* @__PURE__ */ t(
|
|
205
|
+
L,
|
|
185
206
|
{
|
|
186
|
-
icon: /* @__PURE__ */ e("img", { src:
|
|
207
|
+
icon: /* @__PURE__ */ e("img", { src: I(n.key), alt: W(n.key), className: "size-5" }),
|
|
187
208
|
title: n.label,
|
|
188
|
-
note:
|
|
189
|
-
ok:
|
|
209
|
+
note: Z(l.checks),
|
|
210
|
+
ok: l.configured,
|
|
190
211
|
showDot: !1,
|
|
191
|
-
open:
|
|
212
|
+
open: v === `agent:${n.key}`,
|
|
192
213
|
onToggle: () => z(`agent:${n.key}`),
|
|
193
214
|
control: /* @__PURE__ */ e(
|
|
194
|
-
|
|
215
|
+
j,
|
|
195
216
|
{
|
|
196
217
|
checked: n.visible,
|
|
197
218
|
onCheckedChange: (i) => {
|
|
198
|
-
if (i && !
|
|
199
|
-
|
|
219
|
+
if (i && !l.configured) {
|
|
220
|
+
C(`agent:${n.key}`);
|
|
200
221
|
return;
|
|
201
222
|
}
|
|
202
223
|
r(n.key, i);
|
|
@@ -205,20 +226,20 @@ function le({
|
|
|
205
226
|
}
|
|
206
227
|
),
|
|
207
228
|
children: [
|
|
208
|
-
c.length ? /* @__PURE__ */ e("div", { className: "space-y-1.5", children: c.map((i) => /* @__PURE__ */
|
|
229
|
+
c.length ? /* @__PURE__ */ e("div", { className: "space-y-1.5", children: c.map((i) => /* @__PURE__ */ t(
|
|
209
230
|
"div",
|
|
210
231
|
{
|
|
211
232
|
className: "flex items-center gap-2 rounded-xl border border-border/70 bg-background/55 px-2.5 py-2",
|
|
212
233
|
children: [
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */ e("img", { src:
|
|
234
|
+
/* @__PURE__ */ t("span", { className: "relative flex size-7 shrink-0 items-center justify-center rounded-full bg-muted", children: [
|
|
235
|
+
/* @__PURE__ */ e("img", { src: I("aisdk"), alt: "", className: "size-4.5" }),
|
|
215
236
|
/* @__PURE__ */ e("span", { className: "absolute -bottom-0.5 -right-0.5 flex size-3.5 items-center justify-center rounded-full bg-foreground text-[8px] font-bold text-background ring-1 ring-background", children: i.number })
|
|
216
237
|
] }),
|
|
217
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1", children: [
|
|
218
239
|
/* @__PURE__ */ e("span", { className: "block truncate text-xs font-medium", children: i.label }),
|
|
219
240
|
i.needsReconnect ? /* @__PURE__ */ e("span", { className: "block truncate text-[11px] text-destructive", children: "Sign-in expired" }) : null
|
|
220
241
|
] }),
|
|
221
|
-
i.connected ? /* @__PURE__ */
|
|
242
|
+
i.connected ? /* @__PURE__ */ t(B, { children: [
|
|
222
243
|
/* @__PURE__ */ e("span", { className: "text-[11px] text-success", children: "Connected" }),
|
|
223
244
|
/* @__PURE__ */ e(
|
|
224
245
|
"button",
|
|
@@ -231,7 +252,7 @@ function le({
|
|
|
231
252
|
children: /* @__PURE__ */ e(R, { className: "size-3.5" })
|
|
232
253
|
}
|
|
233
254
|
)
|
|
234
|
-
] }) : /* @__PURE__ */
|
|
255
|
+
] }) : /* @__PURE__ */ t(
|
|
235
256
|
d,
|
|
236
257
|
{
|
|
237
258
|
size: "sm",
|
|
@@ -251,49 +272,49 @@ function le({
|
|
|
251
272
|
title: `Remove ${i.label}`,
|
|
252
273
|
"aria-label": `Remove ${i.label}`,
|
|
253
274
|
className: "flex size-7 items-center justify-center rounded-full text-muted-foreground transition hover:bg-destructive/10 hover:text-destructive",
|
|
254
|
-
children: /* @__PURE__ */ e(
|
|
275
|
+
children: /* @__PURE__ */ e(E, { className: "size-3.5" })
|
|
255
276
|
}
|
|
256
277
|
) : null
|
|
257
278
|
]
|
|
258
279
|
},
|
|
259
280
|
i.id
|
|
260
281
|
)) }) : null,
|
|
261
|
-
|
|
262
|
-
|
|
282
|
+
k.length ? /* @__PURE__ */ e("div", { className: "space-y-1.5", children: k.map((i) => /* @__PURE__ */ e(
|
|
283
|
+
te,
|
|
263
284
|
{
|
|
264
285
|
provider: i,
|
|
265
|
-
onConnect: (
|
|
266
|
-
if (n.key === "jcode" &&
|
|
286
|
+
onConnect: (N) => {
|
|
287
|
+
if (n.key === "jcode" && w) {
|
|
267
288
|
m(n.key);
|
|
268
289
|
return;
|
|
269
290
|
}
|
|
270
|
-
x(n.key,
|
|
291
|
+
x(n.key, N);
|
|
271
292
|
},
|
|
272
|
-
onDisconnect: (
|
|
293
|
+
onDisconnect: (N) => b(n.key, N)
|
|
273
294
|
},
|
|
274
295
|
i.id
|
|
275
296
|
)) }) : null,
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
|
|
297
|
+
/* @__PURE__ */ t("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
298
|
+
l.canAutoSetup && w ? /* @__PURE__ */ t(
|
|
278
299
|
d,
|
|
279
300
|
{
|
|
280
301
|
size: "sm",
|
|
281
302
|
variant: "outline",
|
|
282
|
-
disabled:
|
|
303
|
+
disabled: l.setupRunning,
|
|
283
304
|
onClick: () => m(n.key),
|
|
284
305
|
title: "Run setup for this agent",
|
|
285
306
|
children: [
|
|
286
|
-
|
|
287
|
-
|
|
307
|
+
l.setupRunning ? /* @__PURE__ */ e($, { className: "size-4 animate-spin" }) : /* @__PURE__ */ e(A, { className: "size-4" }),
|
|
308
|
+
l.setupRunning ? "Running…" : "Install"
|
|
288
309
|
]
|
|
289
310
|
}
|
|
290
311
|
) : null,
|
|
291
|
-
c.length &&
|
|
312
|
+
c.length && _ ? /* @__PURE__ */ t(
|
|
292
313
|
d,
|
|
293
314
|
{
|
|
294
315
|
size: "sm",
|
|
295
316
|
variant: "outline",
|
|
296
|
-
disabled:
|
|
317
|
+
disabled: l.setupRunning,
|
|
297
318
|
onClick: () => f(),
|
|
298
319
|
title: "Add another Claude account",
|
|
299
320
|
children: [
|
|
@@ -302,16 +323,16 @@ function le({
|
|
|
302
323
|
]
|
|
303
324
|
}
|
|
304
325
|
) : null,
|
|
305
|
-
|
|
326
|
+
l.canLoginInTerminal && !G ? /* @__PURE__ */ t(
|
|
306
327
|
d,
|
|
307
328
|
{
|
|
308
329
|
size: "sm",
|
|
309
330
|
variant: "outline",
|
|
310
|
-
disabled:
|
|
331
|
+
disabled: l.setupRunning,
|
|
311
332
|
onClick: () => o(n.key),
|
|
312
|
-
title: n.key === "aisdk" && c.length ? "Add another Claude account" :
|
|
333
|
+
title: n.key === "aisdk" && c.length ? "Add another Claude account" : D.has(n.key) ? `Sign in to ${n.label} in your browser` : `Open terminal and run ${l.loginCommand}`,
|
|
313
334
|
children: [
|
|
314
|
-
|
|
335
|
+
D.has(n.key) ? /* @__PURE__ */ e(h, { className: "size-4" }) : /* @__PURE__ */ e(S, { className: "size-4" }),
|
|
315
336
|
"Login"
|
|
316
337
|
]
|
|
317
338
|
}
|
|
@@ -325,5 +346,5 @@ function le({
|
|
|
325
346
|
] });
|
|
326
347
|
}
|
|
327
348
|
export {
|
|
328
|
-
|
|
349
|
+
re as default
|
|
329
350
|
};
|