@tangle-network/sandbox-ui 7.0.3 → 7.0.5
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/README.md +10 -14
- package/dist/{AgentTree-Dzy6lrfP.js → AgentTree-B1iTTYNe.js} +1 -1
- package/dist/{use-follow-tail-Df965WQi.js → ConversationRowView-C4TXICBT.js} +2 -2
- package/dist/{ResearchReport-DKWDmzdK.js → ResearchReport-kYGwgHC7.js} +2 -2
- package/dist/{dashboard-CYWLMJEA.js → dashboard-C7QJJw7-.js} +1 -1
- package/dist/dashboard.js +1 -1
- package/dist/globals.css +19 -0
- package/dist/{index-DpzFSqjG.d.ts → index-Bm3Narea.d.ts} +1 -1
- package/dist/{index-PolYo7h9.d.ts → index-CGHJonni.d.ts} +65 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/record/ResearchReport.js +1 -1
- package/dist/{record-Cc_WNtG8.js → record-Dmyq0jfl.js} +2 -2
- package/dist/record.js +1 -1
- package/dist/report-viewer.js +75 -75
- package/dist/run/live.js +1 -1
- package/dist/run/record.js +3 -3
- package/dist/run-CcyjQN7y.js +238 -0
- package/dist/run.d.ts +2 -2
- package/dist/run.js +6 -6
- package/dist/runtime-viewer/AgentGraphCanvas-P_PFS2Ko-XoCELgxL.js +563 -0
- package/dist/runtime-viewer/{latest-events-CMbdBLcT-uhVN4JLh.js → latest-events-wofY6ifW-4IMNEe7c.js} +576 -107
- package/dist/styles.css +19 -0
- package/dist/terminal.js +1 -1
- package/dist/{trace-workspace-EArXc0uP.js → trace-workspace-HCTpp-qw.js} +77 -37
- package/dist/{workbench-LcgsEw_H.js → workbench-CugraIbl.js} +3 -2
- package/dist/workbench.js +1 -1
- package/dist/{workspace-CJD7oOEa.js → workspace-BGMyR5uW.js} +3 -3
- package/dist/workspace-viewer.js +10510 -10366
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +6 -4
- package/tests/visual/content-share.mjs +35 -0
- package/dist/run-CpJ_COuz.js +0 -5
- package/dist/runtime-viewer/AgentGraphCanvas-xHVW-YRV-Ch1fnK9k.js +0 -957
- /package/dist/{terminal-nUCznZRj.js → terminal-view-nUCznZRj.js} +0 -0
|
@@ -8319,7 +8319,7 @@ var wm = o.forwardRef(({ className: e, onPointerEnter: t, onPointerLeave: n, onO
|
|
|
8319
8319
|
});
|
|
8320
8320
|
});
|
|
8321
8321
|
wm.displayName = "HoverCardContent";
|
|
8322
|
-
// node_modules/.pnpm/@tangle-network+charts@4.0.
|
|
8322
|
+
// node_modules/.pnpm/@tangle-network+charts@4.0.21_@tangle-network+brand@1.31.3_react@19.3.1__@tangle-networ_60b8ccd982157f40d51e28cd98298320/node_modules/@tangle-network/charts/dist/flow-trace-CpGLZ51R.js
|
|
8323
8323
|
function Tm(e) {
|
|
8324
8324
|
if (e >= 864e5) {
|
|
8325
8325
|
let t = Math.floor(e / 864e5), n = Math.floor(e % 864e5 / 36e5);
|
|
@@ -8755,10 +8755,10 @@ function hh(e, t) {
|
|
|
8755
8755
|
let e = t.parentId === void 0 ? `root:${t.id}` : ph(t.name);
|
|
8756
8756
|
n.set(e, [...n.get(e) ?? [], t]);
|
|
8757
8757
|
}
|
|
8758
|
-
let r = []
|
|
8759
|
-
for (let [e,
|
|
8760
|
-
if (
|
|
8761
|
-
let e =
|
|
8758
|
+
let r = [];
|
|
8759
|
+
for (let [e, i] of n) {
|
|
8760
|
+
if (i.length < 2) {
|
|
8761
|
+
let e = i[0], t = e.tone;
|
|
8762
8762
|
r.push({
|
|
8763
8763
|
...e,
|
|
8764
8764
|
tone: t,
|
|
@@ -8769,20 +8769,20 @@ function hh(e, t) {
|
|
|
8769
8769
|
});
|
|
8770
8770
|
continue;
|
|
8771
8771
|
}
|
|
8772
|
-
let n = i
|
|
8772
|
+
let n = i[0].tone, a = `family:${e}`, o = Math.min(...i.map((e) => e.span.startMs)), s = Math.max(...i.map((e) => e.span.endMs)), c = i.some((e) => Zm(e.span)), l = i.map((e) => e.span.costUsd ?? (Qm(e.span, "Cost") === void 0 ? e.rollupCostUsd : void 0)).filter((e) => e !== void 0 && Number.isFinite(e)), u = i.filter((e) => e.span.outcome ? e.span.outcome.tone === "failed" : !e.ok).length, d = i.every((e) => e.span.outcome && e.span.outcome.tone === i[0].span.outcome?.tone && !e.span.outcome.ring == !i[0].span.outcome?.ring) ? i[0].span.outcome : void 0;
|
|
8773
8773
|
r.push({
|
|
8774
|
-
costFloor:
|
|
8775
|
-
id:
|
|
8776
|
-
parentId:
|
|
8774
|
+
costFloor: l.length < i.length || i.some((e) => e.costFloor),
|
|
8775
|
+
id: a,
|
|
8776
|
+
parentId: i[0].parentId,
|
|
8777
8777
|
name: e,
|
|
8778
8778
|
kind: "pipeline",
|
|
8779
|
-
durationLabel: Dm(
|
|
8780
|
-
approx:
|
|
8781
|
-
ok:
|
|
8779
|
+
durationLabel: Dm(s - o),
|
|
8780
|
+
approx: i.some((e) => e.approx),
|
|
8781
|
+
ok: u === 0,
|
|
8782
8782
|
depth: 0,
|
|
8783
8783
|
hasChildren: !0,
|
|
8784
8784
|
tone: n,
|
|
8785
|
-
outcomes: [...new Map(
|
|
8785
|
+
outcomes: [...new Map(i.map((e) => {
|
|
8786
8786
|
let t = e.span.outcome ?? {
|
|
8787
8787
|
tone: "neutral",
|
|
8788
8788
|
label: "Unknown",
|
|
@@ -8790,36 +8790,37 @@ function hh(e, t) {
|
|
|
8790
8790
|
};
|
|
8791
8791
|
return [`${t.label}:${t.tone}:${t.ring}`, t];
|
|
8792
8792
|
})).values()],
|
|
8793
|
-
descendants:
|
|
8793
|
+
descendants: i.length,
|
|
8794
8794
|
segments: [],
|
|
8795
8795
|
retry: !1,
|
|
8796
8796
|
hasAgents: !1,
|
|
8797
|
-
|
|
8797
|
+
members: i,
|
|
8798
|
+
own: i.flatMap((e, t) => e.own.map((e) => ({
|
|
8798
8799
|
...e,
|
|
8799
8800
|
tone: n,
|
|
8800
8801
|
alt: t % 2 == 1
|
|
8801
8802
|
}))).sort((e, t) => e.startMs - t.startMs),
|
|
8802
|
-
...
|
|
8803
|
-
...rh(
|
|
8803
|
+
...l.length ? { rollupCostUsd: l.reduce((e, t) => e + t, 0) } : {},
|
|
8804
|
+
...rh(i),
|
|
8804
8805
|
span: {
|
|
8805
|
-
id:
|
|
8806
|
+
id: a,
|
|
8806
8807
|
kind: "pipeline",
|
|
8807
8808
|
name: e,
|
|
8808
|
-
startMs:
|
|
8809
|
-
endMs:
|
|
8810
|
-
activityAt:
|
|
8811
|
-
status:
|
|
8812
|
-
...
|
|
8813
|
-
detail:
|
|
8809
|
+
startMs: o,
|
|
8810
|
+
endMs: s,
|
|
8811
|
+
activityAt: i.flatMap((e) => e.span.activityAt ?? e.own.flatMap((e) => [e.startMs, e.endMs])),
|
|
8812
|
+
status: c ? "running" : u ? "failed" : "done",
|
|
8813
|
+
...d ? { outcome: d } : {},
|
|
8814
|
+
detail: i.every((e) => e.span.detail === i[0].span.detail) ? i[0].span.detail : void 0,
|
|
8814
8815
|
meta: {
|
|
8815
|
-
failedAgents:
|
|
8816
|
-
costPartial:
|
|
8817
|
-
members:
|
|
8816
|
+
failedAgents: u,
|
|
8817
|
+
costPartial: l.length < i.length,
|
|
8818
|
+
members: i.map((e) => e.id)
|
|
8818
8819
|
}
|
|
8819
8820
|
}
|
|
8820
|
-
}), t.has(
|
|
8821
|
+
}), t.has(a) && r.push(...i.map((e, t) => ({
|
|
8821
8822
|
...e,
|
|
8822
|
-
family:
|
|
8823
|
+
family: a,
|
|
8823
8824
|
inset: 1,
|
|
8824
8825
|
tone: n,
|
|
8825
8826
|
own: e.own.map((e) => ({
|
|
@@ -8909,11 +8910,19 @@ function yh(e, t) {
|
|
|
8909
8910
|
}
|
|
8910
8911
|
var bh = (e) => e.id.startsWith("family:") || e.hasAgents && e.span.costUsd === void 0 && Qm(e.span, "Cost") === void 0, xh = (e, t) => Qm(e.span, "Cost") ?? (t === void 0 ? "" : `${bh(e) ? "Σ " : ""}${e.costFloor ? "≥" : ""}${Om(t)}`);
|
|
8911
8912
|
function Sh(e, t) {
|
|
8912
|
-
let n =
|
|
8913
|
+
let n = e.members?.map((e) => Sh(e, t)).filter((e) => e.quiet);
|
|
8914
|
+
if (n) return {
|
|
8915
|
+
last: NaN,
|
|
8916
|
+
quietMs: Math.max(0, ...n.map((e) => e.quietMs)),
|
|
8917
|
+
quiet: n.length > 0,
|
|
8918
|
+
quietCount: n.length
|
|
8919
|
+
};
|
|
8920
|
+
let r = [...e.span.activityAt ?? e.own.flatMap((e) => [e.startMs, e.endMs])].filter(Number.isFinite).sort((e, t) => e - t), i = r.at(-1) ?? NaN, a = r.slice(1).map((e, t) => e - r[t]).sort((e, t) => e - t), o = Math.floor(a.length / 2), s = a.length ? a.length % 2 ? a[o] : (a[o - 1] + a[o]) / 2 : 0, c = e.span.medianEventGapMs, l = Ch(i, typeof c == "number" && Number.isFinite(c) && c >= 0 ? c : s, t), u = Zm(e.span) && l.quiet;
|
|
8913
8921
|
return {
|
|
8914
|
-
last:
|
|
8915
|
-
...
|
|
8916
|
-
quiet:
|
|
8922
|
+
last: i,
|
|
8923
|
+
...l,
|
|
8924
|
+
quiet: u,
|
|
8925
|
+
quietCount: +!!u
|
|
8917
8926
|
};
|
|
8918
8927
|
}
|
|
8919
8928
|
function Ch(e, t, n) {
|
|
@@ -8999,7 +9008,7 @@ function Lh(e, t) {
|
|
|
8999
9008
|
n
|
|
9000
9009
|
]);
|
|
9001
9010
|
}
|
|
9002
|
-
// node_modules/.pnpm/@tangle-network+charts@4.0.
|
|
9011
|
+
// node_modules/.pnpm/@tangle-network+charts@4.0.21_@tangle-network+brand@1.31.3_react@19.3.1__@tangle-networ_60b8ccd982157f40d51e28cd98298320/node_modules/@tangle-network/charts/dist/elk-loader-DIsRUZtw.js
|
|
9003
9012
|
var Rh = "[transition:color_var(--motion-control),background-color_var(--motion-control),border-color_var(--motion-control),box-shadow_var(--motion-control),transform_var(--motion-control),scale_var(--motion-control),opacity_var(--motion-control)] motion-reduce:transition-none";
|
|
9004
9013
|
function zh(e) {
|
|
9005
9014
|
if (typeof document > "u" || typeof window > "u") return "light";
|
|
@@ -16676,7 +16685,7 @@ function wO({ nodeId: e, position: t, variant: n = uw.Handle, className: r, styl
|
|
|
16676
16685
|
});
|
|
16677
16686
|
}
|
|
16678
16687
|
(0, o.memo)(wO);
|
|
16679
|
-
// node_modules/.pnpm/@tangle-network+charts@4.0.
|
|
16688
|
+
// node_modules/.pnpm/@tangle-network+charts@4.0.21_@tangle-network+brand@1.31.3_react@19.3.1__@tangle-networ_60b8ccd982157f40d51e28cd98298320/node_modules/@tangle-network/charts/dist/latest-events-wofY6ifW.js
|
|
16680
16689
|
var TO = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
16681
16690
|
function EO(e, t, n = []) {
|
|
16682
16691
|
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
@@ -16787,6 +16796,18 @@ function RO(e, t = [], n = []) {
|
|
|
16787
16796
|
return r.name && (i.displayName = OO(r.name)), i;
|
|
16788
16797
|
}
|
|
16789
16798
|
var zO = {
|
|
16799
|
+
name: "book-open",
|
|
16800
|
+
size: 24,
|
|
16801
|
+
node: [["path", {
|
|
16802
|
+
d: "M12 5v16",
|
|
16803
|
+
key: "1f6ucr"
|
|
16804
|
+
}], ["path", {
|
|
16805
|
+
d: "M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",
|
|
16806
|
+
key: "1fyvmf"
|
|
16807
|
+
}]]
|
|
16808
|
+
};
|
|
16809
|
+
zO.node;
|
|
16810
|
+
var BO = RO(zO), VO = {
|
|
16790
16811
|
name: "bot",
|
|
16791
16812
|
size: 24,
|
|
16792
16813
|
node: [
|
|
@@ -16820,8 +16841,47 @@ var zO = {
|
|
|
16820
16841
|
}]
|
|
16821
16842
|
]
|
|
16822
16843
|
};
|
|
16823
|
-
|
|
16824
|
-
var
|
|
16844
|
+
VO.node;
|
|
16845
|
+
var HO = RO(VO), UO = {
|
|
16846
|
+
name: "brain",
|
|
16847
|
+
size: 24,
|
|
16848
|
+
node: [
|
|
16849
|
+
["path", {
|
|
16850
|
+
d: "M12 18V5",
|
|
16851
|
+
key: "adv99a"
|
|
16852
|
+
}],
|
|
16853
|
+
["path", {
|
|
16854
|
+
d: "M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4",
|
|
16855
|
+
key: "5nuw1p"
|
|
16856
|
+
}],
|
|
16857
|
+
["path", {
|
|
16858
|
+
d: "M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294",
|
|
16859
|
+
key: "18ldcf"
|
|
16860
|
+
}],
|
|
16861
|
+
["path", {
|
|
16862
|
+
d: "M17.996 5.125a4 4 0 012.526 5.77",
|
|
16863
|
+
key: "1sdu8q"
|
|
16864
|
+
}],
|
|
16865
|
+
["path", {
|
|
16866
|
+
d: "M18 18a4 4 0 002-7.465",
|
|
16867
|
+
key: "7xqqvr"
|
|
16868
|
+
}],
|
|
16869
|
+
["path", {
|
|
16870
|
+
d: "M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517",
|
|
16871
|
+
key: "t46ysz"
|
|
16872
|
+
}],
|
|
16873
|
+
["path", {
|
|
16874
|
+
d: "M6 18a4 4 0 01-2-7.465",
|
|
16875
|
+
key: "1y2m15"
|
|
16876
|
+
}],
|
|
16877
|
+
["path", {
|
|
16878
|
+
d: "M6.004 5.125a4 4 0 00-2.526 5.77",
|
|
16879
|
+
key: "3cw1ss"
|
|
16880
|
+
}]
|
|
16881
|
+
]
|
|
16882
|
+
};
|
|
16883
|
+
UO.node;
|
|
16884
|
+
var WO = RO(UO), GO = {
|
|
16825
16885
|
name: "chevron-down",
|
|
16826
16886
|
size: 24,
|
|
16827
16887
|
node: [["path", {
|
|
@@ -16829,8 +16889,190 @@ var BO = RO(zO), VO = {
|
|
|
16829
16889
|
key: "qrunsl"
|
|
16830
16890
|
}]]
|
|
16831
16891
|
};
|
|
16832
|
-
|
|
16833
|
-
var
|
|
16892
|
+
GO.node;
|
|
16893
|
+
var KO = RO(GO), qO = {
|
|
16894
|
+
name: "flask-conical",
|
|
16895
|
+
size: 24,
|
|
16896
|
+
node: [
|
|
16897
|
+
["path", {
|
|
16898
|
+
d: "M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",
|
|
16899
|
+
key: "18mbvz"
|
|
16900
|
+
}],
|
|
16901
|
+
["path", {
|
|
16902
|
+
d: "M6.453 15h11.094",
|
|
16903
|
+
key: "3shlmq"
|
|
16904
|
+
}],
|
|
16905
|
+
["path", {
|
|
16906
|
+
d: "M8.5 2h7",
|
|
16907
|
+
key: "csnxdl"
|
|
16908
|
+
}]
|
|
16909
|
+
]
|
|
16910
|
+
};
|
|
16911
|
+
qO.node;
|
|
16912
|
+
var JO = RO(qO), YO = {
|
|
16913
|
+
name: "hammer",
|
|
16914
|
+
size: 24,
|
|
16915
|
+
node: [
|
|
16916
|
+
["path", {
|
|
16917
|
+
d: "m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",
|
|
16918
|
+
key: "1hayfq"
|
|
16919
|
+
}],
|
|
16920
|
+
["path", {
|
|
16921
|
+
d: "m18 15 4-4",
|
|
16922
|
+
key: "16gjal"
|
|
16923
|
+
}],
|
|
16924
|
+
["path", {
|
|
16925
|
+
d: "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",
|
|
16926
|
+
key: "15ts47"
|
|
16927
|
+
}]
|
|
16928
|
+
]
|
|
16929
|
+
};
|
|
16930
|
+
YO.node;
|
|
16931
|
+
var XO = RO(YO), ZO = {
|
|
16932
|
+
name: "hourglass",
|
|
16933
|
+
size: 24,
|
|
16934
|
+
node: [
|
|
16935
|
+
["path", {
|
|
16936
|
+
d: "M5 22h14",
|
|
16937
|
+
key: "ehvnwv"
|
|
16938
|
+
}],
|
|
16939
|
+
["path", {
|
|
16940
|
+
d: "M5 2h14",
|
|
16941
|
+
key: "pdyrp9"
|
|
16942
|
+
}],
|
|
16943
|
+
["path", {
|
|
16944
|
+
d: "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",
|
|
16945
|
+
key: "1d314k"
|
|
16946
|
+
}],
|
|
16947
|
+
["path", {
|
|
16948
|
+
d: "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",
|
|
16949
|
+
key: "1vvvr6"
|
|
16950
|
+
}]
|
|
16951
|
+
]
|
|
16952
|
+
};
|
|
16953
|
+
ZO.node;
|
|
16954
|
+
var QO = RO(ZO), $O = {
|
|
16955
|
+
name: "message-square",
|
|
16956
|
+
size: 24,
|
|
16957
|
+
node: [["path", {
|
|
16958
|
+
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
16959
|
+
key: "18887p"
|
|
16960
|
+
}]]
|
|
16961
|
+
};
|
|
16962
|
+
$O.node;
|
|
16963
|
+
var ek = RO($O), tk = {
|
|
16964
|
+
name: "pen-line",
|
|
16965
|
+
size: 24,
|
|
16966
|
+
node: [["path", {
|
|
16967
|
+
d: "M13 21h8",
|
|
16968
|
+
key: "1jsn5i"
|
|
16969
|
+
}], ["path", {
|
|
16970
|
+
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
16971
|
+
key: "1a8usu"
|
|
16972
|
+
}]],
|
|
16973
|
+
aliases: ["edit-3"]
|
|
16974
|
+
};
|
|
16975
|
+
tk.node;
|
|
16976
|
+
var nk = RO(tk), rk = {
|
|
16977
|
+
name: "repeat",
|
|
16978
|
+
size: 24,
|
|
16979
|
+
node: [
|
|
16980
|
+
["path", {
|
|
16981
|
+
d: "m17 2 4 4-4 4",
|
|
16982
|
+
key: "nntrym"
|
|
16983
|
+
}],
|
|
16984
|
+
["path", {
|
|
16985
|
+
d: "M3 11v-1a4 4 0 0 1 4-4h14",
|
|
16986
|
+
key: "84bu3i"
|
|
16987
|
+
}],
|
|
16988
|
+
["path", {
|
|
16989
|
+
d: "m7 22-4-4 4-4",
|
|
16990
|
+
key: "1wqhfi"
|
|
16991
|
+
}],
|
|
16992
|
+
["path", {
|
|
16993
|
+
d: "M21 13v1a4 4 0 0 1-4 4H3",
|
|
16994
|
+
key: "1rx37r"
|
|
16995
|
+
}]
|
|
16996
|
+
]
|
|
16997
|
+
};
|
|
16998
|
+
rk.node;
|
|
16999
|
+
var ik = RO(rk), ak = {
|
|
17000
|
+
name: "rotate-ccw",
|
|
17001
|
+
size: 24,
|
|
17002
|
+
node: [["path", {
|
|
17003
|
+
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
17004
|
+
key: "1357e3"
|
|
17005
|
+
}], ["path", {
|
|
17006
|
+
d: "M3 3v5h5",
|
|
17007
|
+
key: "1xhq8a"
|
|
17008
|
+
}]]
|
|
17009
|
+
};
|
|
17010
|
+
ak.node;
|
|
17011
|
+
var ok = RO(ak), sk = {
|
|
17012
|
+
name: "scan-search",
|
|
17013
|
+
size: 24,
|
|
17014
|
+
node: [
|
|
17015
|
+
["path", {
|
|
17016
|
+
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
17017
|
+
key: "aa7l1z"
|
|
17018
|
+
}],
|
|
17019
|
+
["path", {
|
|
17020
|
+
d: "M17 3h2a2 2 0 0 1 2 2v2",
|
|
17021
|
+
key: "4qcy5o"
|
|
17022
|
+
}],
|
|
17023
|
+
["path", {
|
|
17024
|
+
d: "M21 17v2a2 2 0 0 1-2 2h-2",
|
|
17025
|
+
key: "6vwrx8"
|
|
17026
|
+
}],
|
|
17027
|
+
["path", {
|
|
17028
|
+
d: "M7 21H5a2 2 0 0 1-2-2v-2",
|
|
17029
|
+
key: "ioqczr"
|
|
17030
|
+
}],
|
|
17031
|
+
["circle", {
|
|
17032
|
+
cx: "12",
|
|
17033
|
+
cy: "12",
|
|
17034
|
+
r: "3",
|
|
17035
|
+
key: "1v7zrd"
|
|
17036
|
+
}],
|
|
17037
|
+
["path", {
|
|
17038
|
+
d: "m16 16-1.9-1.9",
|
|
17039
|
+
key: "1dq9hf"
|
|
17040
|
+
}]
|
|
17041
|
+
]
|
|
17042
|
+
};
|
|
17043
|
+
sk.node;
|
|
17044
|
+
var ck = RO(sk), lk = {
|
|
17045
|
+
name: "test-tubes",
|
|
17046
|
+
size: 24,
|
|
17047
|
+
node: [
|
|
17048
|
+
["path", {
|
|
17049
|
+
d: "M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2",
|
|
17050
|
+
key: "1hjrqt"
|
|
17051
|
+
}],
|
|
17052
|
+
["path", {
|
|
17053
|
+
d: "M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2",
|
|
17054
|
+
key: "16lc8n"
|
|
17055
|
+
}],
|
|
17056
|
+
["path", {
|
|
17057
|
+
d: "M3 2h7",
|
|
17058
|
+
key: "7s29d5"
|
|
17059
|
+
}],
|
|
17060
|
+
["path", {
|
|
17061
|
+
d: "M14 2h7",
|
|
17062
|
+
key: "7sicin"
|
|
17063
|
+
}],
|
|
17064
|
+
["path", {
|
|
17065
|
+
d: "M9 16H4",
|
|
17066
|
+
key: "1bfye3"
|
|
17067
|
+
}],
|
|
17068
|
+
["path", {
|
|
17069
|
+
d: "M20 16h-5",
|
|
17070
|
+
key: "ddnjpe"
|
|
17071
|
+
}]
|
|
17072
|
+
]
|
|
17073
|
+
};
|
|
17074
|
+
lk.node;
|
|
17075
|
+
var uk = RO(lk), dk = {
|
|
16834
17076
|
name: "wrench",
|
|
16835
17077
|
size: 24,
|
|
16836
17078
|
node: [["path", {
|
|
@@ -16838,23 +17080,23 @@ var HO = RO(VO), UO = {
|
|
|
16838
17080
|
key: "1ngwbx"
|
|
16839
17081
|
}]]
|
|
16840
17082
|
};
|
|
16841
|
-
|
|
16842
|
-
var
|
|
16843
|
-
function
|
|
16844
|
-
let { renderAgentMark: r } = (0, o.useContext)(
|
|
16845
|
-
return e && r ? r(e, t, n) : /* @__PURE__ */ (0, J.jsx)(
|
|
17083
|
+
dk.node;
|
|
17084
|
+
var fk = RO(dk), pk = (0, o.createContext)({}), mk = pk.Provider;
|
|
17085
|
+
function hk({ agent: e, layout: t, size: n }) {
|
|
17086
|
+
let { renderAgentMark: r } = (0, o.useContext)(pk);
|
|
17087
|
+
return e && r ? r(e, t, n) : /* @__PURE__ */ (0, J.jsx)(HO, {
|
|
16846
17088
|
size: t === "tree" ? n : 16,
|
|
16847
17089
|
"aria-hidden": !0
|
|
16848
17090
|
});
|
|
16849
17091
|
}
|
|
16850
|
-
function
|
|
16851
|
-
let { renderToolMark: r } = (0, o.useContext)(
|
|
16852
|
-
return r ? r(e, t, n) : /* @__PURE__ */ (0, J.jsx)(
|
|
17092
|
+
function gk({ tool: e, label: t, size: n }) {
|
|
17093
|
+
let { renderToolMark: r } = (0, o.useContext)(pk);
|
|
17094
|
+
return r ? r(e, t, n) : /* @__PURE__ */ (0, J.jsx)(fk, {
|
|
16853
17095
|
size: n * .4,
|
|
16854
17096
|
"aria-hidden": !0
|
|
16855
17097
|
});
|
|
16856
17098
|
}
|
|
16857
|
-
function
|
|
17099
|
+
function _k(e) {
|
|
16858
17100
|
let t = zm(e), n = e === "needs-you" ? "waiting" : e === "waiting" || e === "idle" || e === "unknown" ? "queued" : e === "stopped" || e === "done" ? "succeeded" : e;
|
|
16859
17101
|
return {
|
|
16860
17102
|
...t,
|
|
@@ -16862,7 +17104,7 @@ function YO(e) {
|
|
|
16862
17104
|
flow: n
|
|
16863
17105
|
};
|
|
16864
17106
|
}
|
|
16865
|
-
function
|
|
17107
|
+
function vk({ status: e, size: t }) {
|
|
16866
17108
|
return e === "running" ? /* @__PURE__ */ (0, J.jsx)("span", {
|
|
16867
17109
|
"aria-hidden": !0,
|
|
16868
17110
|
"data-motion": "essential",
|
|
@@ -16875,69 +17117,104 @@ function XO({ status: e, size: t }) {
|
|
|
16875
17117
|
"aria-hidden": !0
|
|
16876
17118
|
});
|
|
16877
17119
|
}
|
|
16878
|
-
function
|
|
17120
|
+
function yk(e) {
|
|
16879
17121
|
return e === "needs-you" || e === "failed" ? {
|
|
16880
|
-
borderColor:
|
|
17122
|
+
borderColor: _k(e).color,
|
|
16881
17123
|
borderWidth: e === "needs-you" ? 1.5 : 1
|
|
16882
17124
|
} : { borderColor: qh };
|
|
16883
17125
|
}
|
|
16884
|
-
function
|
|
16885
|
-
let t =
|
|
17126
|
+
function bk(e) {
|
|
17127
|
+
let t = Dk(e.costUsd), n = Wh(e.tokens);
|
|
16886
17128
|
return [
|
|
16887
17129
|
e.label,
|
|
16888
17130
|
e.role,
|
|
16889
17131
|
e.harness,
|
|
16890
17132
|
e.model,
|
|
16891
|
-
|
|
17133
|
+
_k(e.status).label,
|
|
16892
17134
|
e.turn,
|
|
16893
17135
|
e.result,
|
|
16894
17136
|
t,
|
|
16895
17137
|
n
|
|
16896
17138
|
].filter(Boolean).join(", ");
|
|
16897
17139
|
}
|
|
16898
|
-
|
|
16899
|
-
|
|
17140
|
+
function xk(e, t) {
|
|
17141
|
+
return [
|
|
17142
|
+
"needs-you",
|
|
17143
|
+
"failed",
|
|
17144
|
+
"quiet"
|
|
17145
|
+
].map((n) => ({
|
|
17146
|
+
status: n,
|
|
17147
|
+
ids: e.filter((e) => n === "quiet" ? Ih(e, t) : e.status === n).map((e) => e.id)
|
|
17148
|
+
})).filter((e) => e.ids.length);
|
|
17149
|
+
}
|
|
17150
|
+
function Sk({ nodes: e, now: t, highlight: n, onHighlight: r }) {
|
|
17151
|
+
return /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
17152
|
+
className: "flex min-h-10 shrink-0 flex-wrap items-center gap-x-3 gap-y-1 px-3 py-1 text-xs text-muted-foreground",
|
|
17153
|
+
"aria-label": "Run status",
|
|
17154
|
+
children: [/* @__PURE__ */ (0, J.jsxs)("span", {
|
|
17155
|
+
className: "shrink-0 whitespace-nowrap",
|
|
17156
|
+
children: [e.length, " agents"]
|
|
17157
|
+
}), xk(e, t).map((e) => /* @__PURE__ */ (0, J.jsxs)("button", {
|
|
17158
|
+
type: "button",
|
|
17159
|
+
"aria-pressed": n === e.status,
|
|
17160
|
+
className: "ag-status-button rounded-full border border-border px-2 py-1",
|
|
17161
|
+
style: { color: e.status === "quiet" ? "var(--surface-warning-text)" : _k(e.status).color },
|
|
17162
|
+
onClick: () => r(e.status),
|
|
17163
|
+
children: [
|
|
17164
|
+
/* @__PURE__ */ (0, J.jsx)(vk, {
|
|
17165
|
+
status: e.status === "quiet" ? "waiting" : e.status,
|
|
17166
|
+
size: 14
|
|
17167
|
+
}),
|
|
17168
|
+
e.ids.length,
|
|
17169
|
+
" ",
|
|
17170
|
+
e.status === "needs-you" ? "need you" : e.status
|
|
17171
|
+
]
|
|
17172
|
+
}, e.status))]
|
|
17173
|
+
});
|
|
17174
|
+
}
|
|
17175
|
+
var Ck = "group/agent !outline-none", wk = "!h-1 !w-1 !min-w-0 !border-0 !bg-transparent opacity-0";
|
|
17176
|
+
function Tk({ direction: e, source: t = !0 }) {
|
|
16900
17177
|
return /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(sE, {
|
|
16901
17178
|
type: "target",
|
|
16902
17179
|
position: e === "LR" ? X.Left : X.Top,
|
|
16903
17180
|
isConnectable: !1,
|
|
16904
|
-
className:
|
|
17181
|
+
className: wk
|
|
16905
17182
|
}), t && /* @__PURE__ */ (0, J.jsx)(sE, {
|
|
16906
17183
|
type: "source",
|
|
16907
17184
|
position: e === "LR" ? X.Right : X.Bottom,
|
|
16908
17185
|
isConnectable: !1,
|
|
16909
|
-
className:
|
|
17186
|
+
className: wk
|
|
16910
17187
|
})] });
|
|
16911
17188
|
}
|
|
16912
|
-
var
|
|
16913
|
-
function
|
|
16914
|
-
let s = Ih(e, Km(r)), c = e.status === "failed", l = [e.harness, e.model ? Oh(e.model) : null].filter(Boolean).join(" · "), u = c ?
|
|
17189
|
+
var Ek = (e) => e.result ?? e.turn ?? void 0, Dk = (e) => e != null && Number.isFinite(e) && e > 0 ? Uh(e) : void 0;
|
|
17190
|
+
function Ok({ agent: e, selected: t, direction: n, now: r, onOpen: i, parentLabel: a, handles: o = !1 }) {
|
|
17191
|
+
let s = Ih(e, Km(r)), c = e.status === "failed", l = [e.harness, e.model ? Oh(e.model) : null].filter(Boolean).join(" · "), u = c ? Ek(e) : e.status === "done" || e.status === "stopped" ? e.result ?? e.turn : void 0, d = Wh(e.tokens), f = Dk(e.costUsd);
|
|
16915
17192
|
return /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
16916
17193
|
"data-status": e.status,
|
|
16917
17194
|
"data-activity": s ? "quiet" : void 0,
|
|
16918
17195
|
"data-selected": t || void 0,
|
|
16919
|
-
title:
|
|
17196
|
+
title: bk(e),
|
|
16920
17197
|
className: `ag-agent-card relative flex h-full w-full flex-col gap-0.5 rounded-[var(--radius-card)] border bg-card px-3 py-2 text-left ${Rh}`,
|
|
16921
17198
|
style: {
|
|
16922
17199
|
boxShadow: Kh,
|
|
16923
|
-
...
|
|
17200
|
+
...yk(e.status),
|
|
16924
17201
|
...t ? Vh : {}
|
|
16925
17202
|
},
|
|
16926
17203
|
children: [
|
|
16927
|
-
o && /* @__PURE__ */ (0, J.jsx)(
|
|
17204
|
+
o && /* @__PURE__ */ (0, J.jsx)(Tk, { direction: n }),
|
|
16928
17205
|
/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
16929
17206
|
className: "flex min-w-0 items-start gap-2",
|
|
16930
17207
|
children: [
|
|
16931
|
-
/* @__PURE__ */ (0, J.jsx)(
|
|
17208
|
+
/* @__PURE__ */ (0, J.jsx)(hk, {
|
|
16932
17209
|
agent: e,
|
|
16933
17210
|
layout: "tree",
|
|
16934
17211
|
size: 24
|
|
16935
17212
|
}),
|
|
16936
17213
|
/* @__PURE__ */ (0, J.jsx)("span", {
|
|
16937
17214
|
className: "mt-0.5 flex shrink-0",
|
|
16938
|
-
style: { color:
|
|
16939
|
-
title:
|
|
16940
|
-
children: /* @__PURE__ */ (0, J.jsx)(
|
|
17215
|
+
style: { color: _k(e.status).color },
|
|
17216
|
+
title: _k(e.status).label,
|
|
17217
|
+
children: /* @__PURE__ */ (0, J.jsx)(vk, {
|
|
16941
17218
|
status: e.status,
|
|
16942
17219
|
size: 14
|
|
16943
17220
|
})
|
|
@@ -16964,7 +17241,7 @@ function ik({ agent: e, selected: t, direction: n, now: r, onOpen: i, parentLabe
|
|
|
16964
17241
|
}),
|
|
16965
17242
|
u && /* @__PURE__ */ (0, J.jsx)("p", {
|
|
16966
17243
|
className: "m-0 line-clamp-2 text-[13px] leading-4",
|
|
16967
|
-
style: c ? { color:
|
|
17244
|
+
style: c ? { color: _k("failed").color } : void 0,
|
|
16968
17245
|
title: u,
|
|
16969
17246
|
children: u
|
|
16970
17247
|
}),
|
|
@@ -16995,13 +17272,13 @@ function ik({ agent: e, selected: t, direction: n, now: r, onOpen: i, parentLabe
|
|
|
16995
17272
|
]
|
|
16996
17273
|
});
|
|
16997
17274
|
}
|
|
16998
|
-
function
|
|
16999
|
-
return /* @__PURE__ */ (0, J.jsx)(
|
|
17275
|
+
function kk({ data: e }) {
|
|
17276
|
+
return /* @__PURE__ */ (0, J.jsx)(Ok, {
|
|
17000
17277
|
...e,
|
|
17001
17278
|
handles: !0
|
|
17002
17279
|
});
|
|
17003
17280
|
}
|
|
17004
|
-
function
|
|
17281
|
+
function Ak({ data: e }) {
|
|
17005
17282
|
let { frame: t, direction: n } = e;
|
|
17006
17283
|
return /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
17007
17284
|
className: "ag-team-frame relative h-full w-full rounded-2xl border",
|
|
@@ -17009,7 +17286,7 @@ function ok({ data: e }) {
|
|
|
17009
17286
|
background: "color-mix(in srgb, hsl(var(--muted-foreground)) 7%, transparent)",
|
|
17010
17287
|
borderColor: "hsl(var(--foreground) / 0.08)"
|
|
17011
17288
|
},
|
|
17012
|
-
children: [/* @__PURE__ */ (0, J.jsx)(
|
|
17289
|
+
children: [/* @__PURE__ */ (0, J.jsx)(Tk, { direction: n }), /* @__PURE__ */ (0, J.jsxs)("button", {
|
|
17013
17290
|
type: "button",
|
|
17014
17291
|
className: `nodrag nopan absolute top-2 flex h-16 items-center justify-center gap-2 rounded text-sm text-muted-foreground hover:bg-muted focus-visible:outline ${e.groupParents ? "right-3 w-8 flex-col" : "left-3 right-3 justify-start"}`,
|
|
17015
17292
|
"aria-label": `${t.collapsed ? "Expand" : "Collapse"} ${e.label} team`,
|
|
@@ -17019,7 +17296,7 @@ function ok({ data: e }) {
|
|
|
17019
17296
|
t.stopPropagation(), e.onToggle();
|
|
17020
17297
|
},
|
|
17021
17298
|
children: [
|
|
17022
|
-
/* @__PURE__ */ (0, J.jsx)(
|
|
17299
|
+
/* @__PURE__ */ (0, J.jsx)(KO, {
|
|
17023
17300
|
size: 16,
|
|
17024
17301
|
className: t.collapsed ? "-rotate-90" : void 0
|
|
17025
17302
|
}),
|
|
@@ -17029,11 +17306,11 @@ function ok({ data: e }) {
|
|
|
17029
17306
|
})]
|
|
17030
17307
|
});
|
|
17031
17308
|
}
|
|
17032
|
-
var
|
|
17309
|
+
var jk = {
|
|
17033
17310
|
message: "color-mix(in srgb, hsl(var(--muted-foreground)) 70%, transparent)",
|
|
17034
17311
|
delegation: "color-mix(in srgb, hsl(var(--muted-foreground)) 80%, transparent)"
|
|
17035
17312
|
};
|
|
17036
|
-
function
|
|
17313
|
+
function Mk(e) {
|
|
17037
17314
|
return {
|
|
17038
17315
|
x: e.internals.positionAbsolute.x,
|
|
17039
17316
|
y: e.internals.positionAbsolute.y,
|
|
@@ -17041,7 +17318,7 @@ function ck(e) {
|
|
|
17041
17318
|
h: e.measured.height ?? e.height ?? 0
|
|
17042
17319
|
};
|
|
17043
17320
|
}
|
|
17044
|
-
function
|
|
17321
|
+
function Nk(e, t, n) {
|
|
17045
17322
|
let r = e.x + e.w / 2, i = e.y + e.h / 2, a = t.x - r, o = t.y - i, s = Math.hypot(a, o);
|
|
17046
17323
|
if (s === 0) return {
|
|
17047
17324
|
x: r,
|
|
@@ -17053,7 +17330,7 @@ function lk(e, t, n) {
|
|
|
17053
17330
|
y: i + o * c + o / s * n
|
|
17054
17331
|
};
|
|
17055
17332
|
}
|
|
17056
|
-
function
|
|
17333
|
+
function Pk(e, t) {
|
|
17057
17334
|
let n = {
|
|
17058
17335
|
x: e.x + e.w / 2,
|
|
17059
17336
|
y: e.y + e.h / 2
|
|
@@ -17063,7 +17340,7 @@ function uk(e, t) {
|
|
|
17063
17340
|
}, i = r.x - n.x, a = r.y - n.y, o = Math.hypot(i, a) || 1, s = Math.min(90, Math.max(24, o * .22)), c = {
|
|
17064
17341
|
x: (n.x + r.x) / 2 - a / o * s,
|
|
17065
17342
|
y: (n.y + r.y) / 2 + i / o * s
|
|
17066
|
-
}, l =
|
|
17343
|
+
}, l = Nk(e, c, 2), u = Nk(t, c, 4);
|
|
17067
17344
|
return {
|
|
17068
17345
|
path: `M${l.x},${l.y} Q${c.x},${c.y} ${u.x},${u.y}`,
|
|
17069
17346
|
mid: {
|
|
@@ -17072,10 +17349,10 @@ function uk(e, t) {
|
|
|
17072
17349
|
}
|
|
17073
17350
|
};
|
|
17074
17351
|
}
|
|
17075
|
-
function
|
|
17352
|
+
function Fk({ id: e, source: t, target: n, data: r, markerEnd: i }) {
|
|
17076
17353
|
let a = UD(t), o = UD(n);
|
|
17077
17354
|
if (!a || !o || !r) return null;
|
|
17078
|
-
let { path: s, mid: c } =
|
|
17355
|
+
let { path: s, mid: c } = Pk(Mk(a), Mk(o)), l = jk[r.kind] ?? jk.message, u = r.count ?? 1;
|
|
17079
17356
|
return /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(VE, {
|
|
17080
17357
|
id: e,
|
|
17081
17358
|
path: s,
|
|
@@ -17096,14 +17373,206 @@ function dk({ id: e, source: t, target: n, data: r, markerEnd: i }) {
|
|
|
17096
17373
|
children: ["×", u]
|
|
17097
17374
|
}) })] });
|
|
17098
17375
|
}
|
|
17099
|
-
var
|
|
17376
|
+
var Ik = {
|
|
17377
|
+
thinking: {
|
|
17378
|
+
label: "Thinking",
|
|
17379
|
+
icon: WO
|
|
17380
|
+
},
|
|
17381
|
+
reading: {
|
|
17382
|
+
label: "Reading",
|
|
17383
|
+
icon: BO
|
|
17384
|
+
},
|
|
17385
|
+
building: {
|
|
17386
|
+
label: "Building",
|
|
17387
|
+
icon: XO
|
|
17388
|
+
},
|
|
17389
|
+
proving: {
|
|
17390
|
+
label: "Proving",
|
|
17391
|
+
icon: JO
|
|
17392
|
+
},
|
|
17393
|
+
writing: {
|
|
17394
|
+
label: "Writing",
|
|
17395
|
+
icon: nk
|
|
17396
|
+
},
|
|
17397
|
+
waiting: {
|
|
17398
|
+
label: "Waiting",
|
|
17399
|
+
icon: QO
|
|
17400
|
+
},
|
|
17401
|
+
restarting: {
|
|
17402
|
+
label: "Restarting",
|
|
17403
|
+
icon: ok
|
|
17404
|
+
},
|
|
17405
|
+
testing: {
|
|
17406
|
+
label: "Testing",
|
|
17407
|
+
icon: uk
|
|
17408
|
+
},
|
|
17409
|
+
messaging: {
|
|
17410
|
+
label: "Messaging",
|
|
17411
|
+
icon: ek
|
|
17412
|
+
},
|
|
17413
|
+
reviewing: {
|
|
17414
|
+
label: "Reviewing",
|
|
17415
|
+
icon: ck
|
|
17416
|
+
},
|
|
17417
|
+
looping: {
|
|
17418
|
+
label: "Looping",
|
|
17419
|
+
icon: ik
|
|
17420
|
+
}
|
|
17421
|
+
};
|
|
17422
|
+
function Lk({ agent: e }) {
|
|
17423
|
+
let t = e.activity && Ik[e.activity], n = e.activityCalibrated === !1;
|
|
17424
|
+
return t ? /* @__PURE__ */ (0, J.jsxs)("span", {
|
|
17425
|
+
className: "ag-live-activity",
|
|
17426
|
+
"data-calibrated": n ? "false" : void 0,
|
|
17427
|
+
"data-serious": !n && e.activity === "looping" ? "" : void 0,
|
|
17428
|
+
title: `${t.label}${n ? " · uncalibrated classifier" : ""}`,
|
|
17429
|
+
children: [
|
|
17430
|
+
/* @__PURE__ */ (0, J.jsx)(t.icon, {
|
|
17431
|
+
size: 12,
|
|
17432
|
+
strokeWidth: 1.75,
|
|
17433
|
+
"aria-hidden": !0
|
|
17434
|
+
}),
|
|
17435
|
+
t.label,
|
|
17436
|
+
n && /* @__PURE__ */ (0, J.jsx)("small", {
|
|
17437
|
+
className: "ag-live-badge",
|
|
17438
|
+
children: "uncalibrated"
|
|
17439
|
+
})
|
|
17440
|
+
]
|
|
17441
|
+
}) : null;
|
|
17442
|
+
}
|
|
17443
|
+
function Rk({ agent: e, selected: t, direction: n = "TB", now: r, handles: i = !1, onOpen: a, parentLabel: s, renderEventIcon: c }) {
|
|
17444
|
+
let l = Km(r), u = (0, o.useRef)(null);
|
|
17445
|
+
Lh(u, e.status);
|
|
17446
|
+
let d = e.status === "failed", f = d || e.status === "done" || e.status === "stopped", p = Ih(e, l), m = _k(e.status), h = [
|
|
17447
|
+
e.harness,
|
|
17448
|
+
e.model ? Oh(e.model) : void 0,
|
|
17449
|
+
e.effort
|
|
17450
|
+
].filter(Boolean).join(" · "), g = (e.events ?? []).slice(-1), _ = Dk(e.costUsd), v = [
|
|
17451
|
+
_,
|
|
17452
|
+
e.startedAt == null ? void 0 : `${Gh(e.startedAt, l, !1)} elapsed`,
|
|
17453
|
+
Number.isFinite(e.commits) ? `${e.commits} ${e.commits === 1 ? "commit" : "commits"}` : void 0
|
|
17454
|
+
].filter(Boolean).join(" · "), y = d ? Ek(e) : f ? e.result ?? void 0 : e.turn ?? void 0;
|
|
17455
|
+
return /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
17456
|
+
className: "ag-live-slot",
|
|
17457
|
+
children: [i && /* @__PURE__ */ (0, J.jsx)(Tk, { direction: n }), /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
17458
|
+
ref: u,
|
|
17459
|
+
className: `ag-live-card${f ? " ag-live-chip" : ""}`,
|
|
17460
|
+
"data-status": e.status,
|
|
17461
|
+
"data-sparse": g.length === 0 || void 0,
|
|
17462
|
+
"data-activity": p ? "quiet" : e.activity ?? void 0,
|
|
17463
|
+
"data-selected": t || void 0,
|
|
17464
|
+
title: bk(e),
|
|
17465
|
+
style: {
|
|
17466
|
+
boxShadow: Kh,
|
|
17467
|
+
...yk(e.status),
|
|
17468
|
+
...t ? Vh : {},
|
|
17469
|
+
"--ag-status": m.color
|
|
17470
|
+
},
|
|
17471
|
+
children: [
|
|
17472
|
+
/* @__PURE__ */ (0, J.jsxs)("div", {
|
|
17473
|
+
className: "ag-live-head",
|
|
17474
|
+
children: [
|
|
17475
|
+
/* @__PURE__ */ (0, J.jsx)("span", {
|
|
17476
|
+
className: "ag-live-mark grayscale hover:grayscale-0",
|
|
17477
|
+
children: /* @__PURE__ */ (0, J.jsx)(hk, {
|
|
17478
|
+
agent: e,
|
|
17479
|
+
layout: "tree",
|
|
17480
|
+
size: 18
|
|
17481
|
+
})
|
|
17482
|
+
}),
|
|
17483
|
+
/* @__PURE__ */ (0, J.jsx)("span", {
|
|
17484
|
+
className: "ag-live-glyph",
|
|
17485
|
+
title: p?.label ?? m.label,
|
|
17486
|
+
children: /* @__PURE__ */ (0, J.jsx)(vk, {
|
|
17487
|
+
status: e.status,
|
|
17488
|
+
size: 14
|
|
17489
|
+
})
|
|
17490
|
+
}),
|
|
17491
|
+
/* @__PURE__ */ (0, J.jsxs)("span", {
|
|
17492
|
+
className: "ag-live-name",
|
|
17493
|
+
children: [s && /* @__PURE__ */ (0, J.jsxs)("span", {
|
|
17494
|
+
className: "ag-parent-label",
|
|
17495
|
+
children: [s, " / "]
|
|
17496
|
+
}), e.label]
|
|
17497
|
+
}),
|
|
17498
|
+
!f && p && /* @__PURE__ */ (0, J.jsx)("span", {
|
|
17499
|
+
className: "ag-live-quiet",
|
|
17500
|
+
children: p.label
|
|
17501
|
+
})
|
|
17502
|
+
]
|
|
17503
|
+
}),
|
|
17504
|
+
!f && (h || v) && /* @__PURE__ */ (0, J.jsx)("span", {
|
|
17505
|
+
className: "ag-live-meta",
|
|
17506
|
+
title: [h, v].filter(Boolean).join(" · "),
|
|
17507
|
+
children: [h, v].filter(Boolean).join(" · ")
|
|
17508
|
+
}),
|
|
17509
|
+
(y || _ || !f) && /* @__PURE__ */ (0, J.jsxs)("div", {
|
|
17510
|
+
className: "ag-live-thinking-row",
|
|
17511
|
+
children: [
|
|
17512
|
+
y && /* @__PURE__ */ (0, J.jsx)("p", {
|
|
17513
|
+
className: `ag-live-thinking${d ? " ag-live-failure" : ""}`,
|
|
17514
|
+
title: y,
|
|
17515
|
+
children: Dh(y)
|
|
17516
|
+
}),
|
|
17517
|
+
f && _ && /* @__PURE__ */ (0, J.jsx)("span", {
|
|
17518
|
+
className: "ag-live-chip-cost",
|
|
17519
|
+
title: "Cost",
|
|
17520
|
+
children: _
|
|
17521
|
+
}),
|
|
17522
|
+
!f && /* @__PURE__ */ (0, J.jsx)(Lk, { agent: e }),
|
|
17523
|
+
e.status === "needs-you" && /* @__PURE__ */ (0, J.jsx)("button", {
|
|
17524
|
+
type: "button",
|
|
17525
|
+
className: "ag-live-respond nodrag nopan",
|
|
17526
|
+
disabled: !a,
|
|
17527
|
+
title: a ? void 0 : "Responses unavailable in this view",
|
|
17528
|
+
onClick: (e) => {
|
|
17529
|
+
e.stopPropagation(), a?.();
|
|
17530
|
+
},
|
|
17531
|
+
children: "Respond"
|
|
17532
|
+
})
|
|
17533
|
+
]
|
|
17534
|
+
}),
|
|
17535
|
+
!f && g.length > 0 && /* @__PURE__ */ (0, J.jsx)("ol", {
|
|
17536
|
+
className: "ag-live-events",
|
|
17537
|
+
"aria-label": "Latest events",
|
|
17538
|
+
children: g.map((e) => /* @__PURE__ */ (0, J.jsxs)("li", {
|
|
17539
|
+
title: e.label,
|
|
17540
|
+
children: [
|
|
17541
|
+
c?.(e) ?? /* @__PURE__ */ (0, J.jsx)(fk, {
|
|
17542
|
+
size: 12,
|
|
17543
|
+
strokeWidth: 1.75,
|
|
17544
|
+
"aria-hidden": !0
|
|
17545
|
+
}),
|
|
17546
|
+
/* @__PURE__ */ (0, J.jsx)("span", {
|
|
17547
|
+
className: "ag-live-event-label",
|
|
17548
|
+
children: Dh(e.label)
|
|
17549
|
+
}),
|
|
17550
|
+
/* @__PURE__ */ (0, J.jsx)("time", {
|
|
17551
|
+
className: "ag-live-event-at",
|
|
17552
|
+
dateTime: Number.isFinite(e.at) ? new Date(e.at).toISOString() : void 0,
|
|
17553
|
+
children: Gh(e.at, l)
|
|
17554
|
+
})
|
|
17555
|
+
]
|
|
17556
|
+
}, e.id))
|
|
17557
|
+
})
|
|
17558
|
+
]
|
|
17559
|
+
})]
|
|
17560
|
+
});
|
|
17561
|
+
}
|
|
17562
|
+
function zk({ data: e }) {
|
|
17563
|
+
return /* @__PURE__ */ (0, J.jsx)(Rk, {
|
|
17564
|
+
...e,
|
|
17565
|
+
handles: !0
|
|
17566
|
+
});
|
|
17567
|
+
}
|
|
17568
|
+
var Bk = {
|
|
17100
17569
|
width: 232,
|
|
17101
17570
|
height: 120
|
|
17102
|
-
},
|
|
17571
|
+
}, Vk = {
|
|
17103
17572
|
width: 264,
|
|
17104
17573
|
height: 112
|
|
17105
|
-
},
|
|
17106
|
-
function
|
|
17574
|
+
}, Hk = 10, Uk = 12, Wk = 56, Gk = 24;
|
|
17575
|
+
function Kk(e, t) {
|
|
17107
17576
|
let n = /* @__PURE__ */ new Set(), r = [];
|
|
17108
17577
|
for (let t of e) n.has(t.id) || (n.add(t.id), r.push(t.id));
|
|
17109
17578
|
let i = /* @__PURE__ */ new Set(), a = [], o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
@@ -17135,25 +17604,25 @@ function vk(e, t) {
|
|
|
17135
17604
|
groupOf: l
|
|
17136
17605
|
};
|
|
17137
17606
|
}
|
|
17138
|
-
function
|
|
17607
|
+
function qk(e, t, n, r = !1) {
|
|
17139
17608
|
if (r) return {
|
|
17140
17609
|
width: n.width + 24,
|
|
17141
17610
|
height: 80
|
|
17142
17611
|
};
|
|
17143
17612
|
let i = Math.max(1, Math.min(t, e)), a = Math.ceil(e / i);
|
|
17144
17613
|
return {
|
|
17145
|
-
width: i * n.width + (i - 1) *
|
|
17146
|
-
height: 80 + a * n.height + (a - 1) *
|
|
17614
|
+
width: i * n.width + (i - 1) * Hk + 24,
|
|
17615
|
+
height: 80 + a * n.height + (a - 1) * Hk + Uk
|
|
17147
17616
|
};
|
|
17148
17617
|
}
|
|
17149
|
-
function
|
|
17618
|
+
function Jk(e, t, n, r, i) {
|
|
17150
17619
|
let a = new Map(i ? e.groups.map((e) => [e.parentId, e.id]) : []), o = e.agentIds.filter((t) => !e.groupOf.has(t) && !a.has(t)).map((e) => ({
|
|
17151
17620
|
id: e,
|
|
17152
17621
|
...n
|
|
17153
17622
|
}));
|
|
17154
17623
|
o.push(...e.groups.map((e) => ({
|
|
17155
17624
|
id: e.id,
|
|
17156
|
-
...
|
|
17625
|
+
...qk(e.memberIds.length, t, n, r.has(e.id))
|
|
17157
17626
|
})));
|
|
17158
17627
|
let s = (t) => e.groupOf.get(t) ?? a.get(t) ?? t, c = /* @__PURE__ */ new Set();
|
|
17159
17628
|
return {
|
|
@@ -17167,7 +17636,7 @@ function bk(e, t, n, r, i) {
|
|
|
17167
17636
|
})
|
|
17168
17637
|
};
|
|
17169
17638
|
}
|
|
17170
|
-
async function
|
|
17639
|
+
async function Yk(e, t, n) {
|
|
17171
17640
|
let r = await Qh();
|
|
17172
17641
|
if (!r) return null;
|
|
17173
17642
|
let i = {
|
|
@@ -17178,8 +17647,8 @@ async function xk(e, t, n) {
|
|
|
17178
17647
|
"elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
|
|
17179
17648
|
"elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
|
|
17180
17649
|
"elk.layered.nodePlacement.bk.fixedAlignment": "BALANCED",
|
|
17181
|
-
"elk.layered.spacing.nodeNodeBetweenLayers": String(
|
|
17182
|
-
"elk.spacing.nodeNode": String(
|
|
17650
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": String(Wk),
|
|
17651
|
+
"elk.spacing.nodeNode": String(Gk),
|
|
17183
17652
|
"elk.spacing.componentComponent": "48",
|
|
17184
17653
|
"elk.separateConnectedComponents": "true",
|
|
17185
17654
|
"elk.padding": "[top=0,left=0,bottom=0,right=0]"
|
|
@@ -17206,7 +17675,7 @@ async function xk(e, t, n) {
|
|
|
17206
17675
|
return null;
|
|
17207
17676
|
}
|
|
17208
17677
|
}
|
|
17209
|
-
function
|
|
17678
|
+
function Xk(e, t, n) {
|
|
17210
17679
|
let r = /* @__PURE__ */ new Map();
|
|
17211
17680
|
for (let e of t) r.set(e.to, [...r.get(e.to) ?? [], e.from]);
|
|
17212
17681
|
let i = /* @__PURE__ */ new Map(), a = (e, t) => {
|
|
@@ -17218,7 +17687,7 @@ function Sk(e, t, n) {
|
|
|
17218
17687
|
return t.delete(e), i.set(e, o), o;
|
|
17219
17688
|
}, o = [];
|
|
17220
17689
|
for (let t of e) (o[a(t.id, /* @__PURE__ */ new Set())] ??= []).push(t);
|
|
17221
|
-
let s = (e) => n === "TB" ? e.width : e.height, c = (e) => n === "TB" ? e.height : e.width, l = o.map((e) => e.reduce((e, t) => e + s(t), 0) + (e.length - 1) *
|
|
17690
|
+
let s = (e) => n === "TB" ? e.width : e.height, c = (e) => n === "TB" ? e.height : e.width, l = o.map((e) => e.reduce((e, t) => e + s(t), 0) + (e.length - 1) * Gk), u = Math.max(...l), d = /* @__PURE__ */ new Map(), f = 0;
|
|
17222
17691
|
return o.forEach((e, t) => {
|
|
17223
17692
|
let r = (u - l[t]) / 2;
|
|
17224
17693
|
for (let t of e) d.set(t.id, n === "TB" ? {
|
|
@@ -17227,12 +17696,12 @@ function Sk(e, t, n) {
|
|
|
17227
17696
|
} : {
|
|
17228
17697
|
x: f,
|
|
17229
17698
|
y: r
|
|
17230
|
-
}), r += s(t) +
|
|
17231
|
-
f += Math.max(...e.map(c)) +
|
|
17699
|
+
}), r += s(t) + Gk;
|
|
17700
|
+
f += Math.max(...e.map(c)) + Wk;
|
|
17232
17701
|
}), d;
|
|
17233
17702
|
}
|
|
17234
|
-
async function
|
|
17235
|
-
let { units: o, links: s } =
|
|
17703
|
+
async function Zk(e, t, n, r = Bk, i = /* @__PURE__ */ new Set(), a = !0) {
|
|
17704
|
+
let { units: o, links: s } = Jk(e, n, r, i, a), c = await Yk(o, s, t) ?? Xk(o, s, t), l = /* @__PURE__ */ new Map(), u = [], d = 0, f = 0;
|
|
17236
17705
|
for (let e of o) {
|
|
17237
17706
|
let t = c.get(e.id) ?? {
|
|
17238
17707
|
x: 0,
|
|
@@ -17246,14 +17715,14 @@ async function Ck(e, t, n, r = fk, i = /* @__PURE__ */ new Set(), a = !0) {
|
|
|
17246
17715
|
y: 0
|
|
17247
17716
|
};
|
|
17248
17717
|
l.delete(t.id);
|
|
17249
|
-
let o = i.has(t.id), s =
|
|
17718
|
+
let o = i.has(t.id), s = qk(t.memberIds.length, n, r, o);
|
|
17250
17719
|
if (u.push({
|
|
17251
17720
|
group: t,
|
|
17252
17721
|
...e,
|
|
17253
17722
|
...s,
|
|
17254
17723
|
collapsed: o
|
|
17255
17724
|
}), l.set(t.parentId, a ? {
|
|
17256
|
-
x: e.x +
|
|
17725
|
+
x: e.x + Uk,
|
|
17257
17726
|
y: e.y + 8
|
|
17258
17727
|
} : {
|
|
17259
17728
|
...l.get(t.parentId),
|
|
@@ -17262,8 +17731,8 @@ async function Ck(e, t, n, r = fk, i = /* @__PURE__ */ new Set(), a = !0) {
|
|
|
17262
17731
|
let c = Math.max(1, Math.min(n, t.memberIds.length));
|
|
17263
17732
|
t.memberIds.forEach((t, n) => {
|
|
17264
17733
|
l.set(t, {
|
|
17265
|
-
x: e.x +
|
|
17266
|
-
y: e.y + 80 + Math.floor(n / c) * (r.height +
|
|
17734
|
+
x: e.x + Uk + n % c * (r.width + Hk),
|
|
17735
|
+
y: e.y + 80 + Math.floor(n / c) * (r.height + Hk)
|
|
17267
17736
|
});
|
|
17268
17737
|
});
|
|
17269
17738
|
}
|
|
@@ -17275,7 +17744,7 @@ async function Ck(e, t, n, r = fk, i = /* @__PURE__ */ new Set(), a = !0) {
|
|
|
17275
17744
|
height: f
|
|
17276
17745
|
};
|
|
17277
17746
|
}
|
|
17278
|
-
function
|
|
17747
|
+
function Qk({ entry: e, now: t, onSelect: n }) {
|
|
17279
17748
|
let r = zm(e.observed ? e.status : "unknown"), i = Gh(e.at, t), a = Dh(e.label);
|
|
17280
17749
|
return /* @__PURE__ */ (0, J.jsx)("li", { children: /* @__PURE__ */ (0, J.jsxs)("button", {
|
|
17281
17750
|
type: "button",
|
|
@@ -17301,7 +17770,7 @@ function wk({ entry: e, now: t, onSelect: n }) {
|
|
|
17301
17770
|
]
|
|
17302
17771
|
}) });
|
|
17303
17772
|
}
|
|
17304
|
-
function
|
|
17773
|
+
function $k({ agents: e, n: t = 5, now: n, live: r = n === void 0, selectedId: i, onSelect: a }) {
|
|
17305
17774
|
let s = Km(n), c = Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : 5, l = (0, o.useMemo)(() => e.flatMap((e) => (e.events ?? []).map((t) => ({
|
|
17306
17775
|
id: e.id + ":" + t.id,
|
|
17307
17776
|
agentId: e.id,
|
|
@@ -17376,7 +17845,7 @@ function Tk({ agents: e, n: t = 5, now: n, live: r = n === void 0, selectedId: i
|
|
|
17376
17845
|
}) : /* @__PURE__ */ (0, J.jsx)("strong", { children: "Latest" }) }),
|
|
17377
17846
|
/* @__PURE__ */ (0, J.jsx)("ol", {
|
|
17378
17847
|
"aria-label": "Recorded activity events",
|
|
17379
|
-
children: O.map((e) => /* @__PURE__ */ (0, J.jsx)(
|
|
17848
|
+
children: O.map((e) => /* @__PURE__ */ (0, J.jsx)(Qk, {
|
|
17380
17849
|
entry: e,
|
|
17381
17850
|
now: s,
|
|
17382
17851
|
onSelect: a ? (e) => {
|
|
@@ -17398,4 +17867,4 @@ function Tk({ agents: e, n: t = 5, now: n, live: r = n === void 0, selectedId: i
|
|
|
17398
17867
|
children: m
|
|
17399
17868
|
});
|
|
17400
17869
|
}
|
|
17401
|
-
export {
|
|
17870
|
+
export { Xm as $, Jh as A, wc as At, uh as B, a as Bt, Zk as C, Sm as Ct, Gx as D, Vc as Dt, BD as E, Jc as Et, Fh as F, ct as Ft, th as G, lh as H, Ih as I, Je as It, xh as J, Eh as K, gh as L, Ke as Lt, Wh as M, Nt as Mt, Yh as N, kt as Nt, Xh as O, Mc as Ot, Bh as P, mt as Pt, Qm as Q, _h as R, u as Rt, Dk as S, Pm as St, aO as T, zl as Tt, mh as U, fh as V, r as Vt, yh as W, Oh as X, oh as Y, ch as Z, bk as _, Om as _t, Ak as a, dh as at, RO as b, jm as bt, mk as c, sh as ct, zk as d, Bm as dt, Zm as et, Rk as f, Rm as ft, gk as g, Am as gt, vk as h, Tm as ht, Ok as i, Dh as it, Uh as j, gc as jt, Hh as k, Ec as kt, Vk as l, qm as lt, Sk as m, zm as mt, Ck as n, Mh as nt, hk as o, Lh as ot, jk as p, Lm as pt, Sh as q, kk as r, Ym as rt, Fk as s, jh as st, Bk as t, Ph as tt, $k as u, Km as ut, _k as v, km as vt, XD as w, wm as wt, Ek as x, Nm as xt, Kk as y, Dm as yt, Nh as z, s as zt };
|