agentglow 0.2.11 → 0.2.12
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 +3 -16
- package/cli/agentglow.mjs +22 -3
- package/cli/lib/server.mjs +44 -13
- package/cli/lib/settings.mjs +3 -3
- package/dist/chunks/KitScene-Cug87OSc.js +3121 -0
- package/dist/chunks/index-B0urBeRS.js +48 -0
- package/dist/chunks/{index-u4rYZ1UO.js → index-BM4W1tNM.js} +135 -135
- package/dist/chunks/{index-B4Cqo621.js → index-BTFr1mn1.js} +155 -155
- package/dist/chunks/index-Cj5cs1rS.js +948 -0
- package/dist/chunks/{index-CTZbUTDY.js → index-iZBODPwI.js} +136 -136
- package/dist/chunks/{index-URn4zDHp.js → index-ueGnGU_X.js} +297 -297
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/themes.d.ts +1 -1
- package/dist/types/world.d.ts +42 -2
- package/package.json +1 -1
- package/dist/chunks/KitScene-DG_pcnWW.js +0 -3119
- package/dist/chunks/index-Agh7jdYu.js +0 -1086
- package/dist/chunks/index-B2EHxcBQ.js +0 -1010
- package/dist/chunks/index-BfQsJ0TH.js +0 -751
- package/dist/chunks/index-BmBGYhJS.js +0 -891
- package/dist/chunks/index-Bnn-x-aE.js +0 -767
- package/dist/chunks/index-CTQTtm9q.js +0 -784
- package/dist/chunks/index-CdKvybsL.js +0 -1143
- package/dist/chunks/index-CeiIEWek.js +0 -818
- package/dist/chunks/index-Ci8tSMhc.js +0 -68
- package/dist/chunks/index-Cls_VZdb.js +0 -980
- package/dist/chunks/index-DFFRhihO.js +0 -892
- package/dist/chunks/index-DMCETM4H.js +0 -605
|
@@ -1,784 +0,0 @@
|
|
|
1
|
-
var Ke = Object.defineProperty;
|
|
2
|
-
var Ze = (e, o, t) => o in e ? Ke(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
|
-
var P = (e, o, t) => Ze(e, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
-
import { jsxs as F, jsx as y, Fragment as he } from "react/jsx-runtime";
|
|
5
|
-
import { EffectComposer as Je, Bloom as Qe, Vignette as et } from "@react-three/postprocessing";
|
|
6
|
-
import * as r from "three";
|
|
7
|
-
import { useFrame as W } from "@react-three/fiber";
|
|
8
|
-
import { useRef as E, useMemo as R, useEffect as tt } from "react";
|
|
9
|
-
import { T as Ie, r as H, h as xe, n as Y, w as V, L as re, d as ot, p as nt, s as rt, I as st, R as at, S as it, j as lt, u as ct, t as pt, q as Re, y as ut, o as ft, G as dt, m as ht } from "./KitScene-DG_pcnWW.js";
|
|
10
|
-
const K = new r.Color("#46ff9a"), ie = new r.Color("#38e8ff"), Le = new r.Color("#ffb547"), Se = new r.Color("#ff4a4a"), j = new r.Color(1, 1, 1), gt = Object.fromEntries(
|
|
11
|
-
Object.entries(Ie).map(([e, o]) => [e, new r.Color(o).lerp(K, 0.28)])
|
|
12
|
-
), B = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Ge = (e) => 1 - Math.pow(1 - B(e), 3), Q = (e) => (e = B(e), e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2), I = { r: 6 };
|
|
13
|
-
function mt() {
|
|
14
|
-
I.r = Math.max(5, Y.core.r + 1.3);
|
|
15
|
-
}
|
|
16
|
-
const X = Math.PI * 2, wt = H ? 0.22 : 0.85, Ve = (e) => e * wt % X;
|
|
17
|
-
function yt(e, o) {
|
|
18
|
-
let t = (o - e) % X;
|
|
19
|
-
return t < 0 && (t += X), Math.exp(-t * 1.4);
|
|
20
|
-
}
|
|
21
|
-
function ue(e, o, t, s) {
|
|
22
|
-
return s.set(Math.sin(e) * o, t, -Math.cos(e) * o);
|
|
23
|
-
}
|
|
24
|
-
const fe = (e) => Math.atan2(e.x, -e.z), vt = (e) => e.subagent ? 0.55 : 1.1;
|
|
25
|
-
function He(e, o, t, s) {
|
|
26
|
-
if (s.set(o.x, 0, o.z), H) return s;
|
|
27
|
-
const u = fe(o), c = xe(e.id, 7) * X, l = X / 26 * (xe(e.id, 8) > 0.5 ? 1 : -1), i = e.subagent ? 0.32 : 0.45, h = Math.cos(u), n = Math.sin(u), M = Math.cos(t * l + c) * i, m = Math.sin(t * l + c) * i * 0.55;
|
|
28
|
-
return s.x += h * M - n * m, s.z += n * M + h * m, s;
|
|
29
|
-
}
|
|
30
|
-
const L = /* @__PURE__ */ new Map();
|
|
31
|
-
function oe(e, o, t, s, u) {
|
|
32
|
-
const c = 1 - s;
|
|
33
|
-
return u.set(c * c * e.x + 2 * c * s * o.x + s * s * t.x, c * c * e.y + 2 * c * s * o.y + s * s * t.y, c * c * e.z + 2 * c * s * o.z + s * s * t.z);
|
|
34
|
-
}
|
|
35
|
-
function de(e, o, t, s, u) {
|
|
36
|
-
u.copy(e).add(o).multiplyScalar(0.5);
|
|
37
|
-
const c = o.x - e.x, l = o.z - e.z, i = Math.hypot(c, l) || 1;
|
|
38
|
-
return u.x += -l / i * s * i * 0.18, u.z += c / i * s * i * 0.18, u.y += t, u;
|
|
39
|
-
}
|
|
40
|
-
let ye = null;
|
|
41
|
-
function bt() {
|
|
42
|
-
if (ye) return ye;
|
|
43
|
-
const e = document.createElement("canvas");
|
|
44
|
-
e.width = e.height = 128;
|
|
45
|
-
const o = e.getContext("2d"), t = o.createRadialGradient(64, 64, 0, 64, 64, 64);
|
|
46
|
-
return t.addColorStop(0, "rgba(255,255,255,1)"), t.addColorStop(0.16, "rgba(255,255,255,0.55)"), t.addColorStop(0.45, "rgba(255,255,255,0.12)"), t.addColorStop(1, "rgba(255,255,255,0)"), o.fillStyle = t, o.fillRect(0, 0, 128, 128), ye = new r.CanvasTexture(e), ye;
|
|
47
|
-
}
|
|
48
|
-
const Oe = (e = "#fff") => new r.SpriteMaterial({ map: bt(), color: e, blending: r.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 }), pe = (e = "#fff") => new r.MeshBasicMaterial({ color: e, blending: r.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 }), Fe = (e = "#fff") => new r.LineBasicMaterial({ color: e, blending: r.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 }), Mt = new r.ConeGeometry(1, 1, 3).translate(0, 0.5, 0), ve = 28, D = { Solid: 0, Dash: 1, Head: 2 }, Ce = class Ce {
|
|
49
|
-
constructor(o, t) {
|
|
50
|
-
P(this, "lines");
|
|
51
|
-
P(this, "arrows");
|
|
52
|
-
P(this, "P");
|
|
53
|
-
P(this, "C");
|
|
54
|
-
P(this, "v", 0);
|
|
55
|
-
P(this, "na", 0);
|
|
56
|
-
P(this, "maxV");
|
|
57
|
-
P(this, "maxA");
|
|
58
|
-
P(this, "aColors");
|
|
59
|
-
P(this, "p", new r.Vector3());
|
|
60
|
-
P(this, "q", new r.Vector3());
|
|
61
|
-
P(this, "o", new r.Object3D());
|
|
62
|
-
P(this, "time", 0);
|
|
63
|
-
this.maxV = o * ve * 2;
|
|
64
|
-
const s = new r.BufferGeometry();
|
|
65
|
-
this.P = new r.BufferAttribute(new Float32Array(this.maxV * 3), 3), this.C = new r.BufferAttribute(new Float32Array(this.maxV * 3), 3), this.P.setUsage(r.DynamicDrawUsage), this.C.setUsage(r.DynamicDrawUsage), s.setAttribute("position", this.P), s.setAttribute("color", this.C), s.boundingSphere = new r.Sphere(new r.Vector3(), 1e4), this.lines = new r.LineSegments(s, new r.LineBasicMaterial({ vertexColors: !0, transparent: !0, blending: r.AdditiveBlending, depthWrite: !1, toneMapped: !1 })), this.lines.frustumCulled = !1, this.maxA = t, this.aColors = new Float32Array(t * 3), this.arrows = new r.InstancedMesh(Mt, new r.MeshBasicMaterial({ blending: r.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 }), t), this.arrows.instanceColor = new r.InstancedBufferAttribute(this.aColors, 3), this.arrows.frustumCulled = !1, this.arrows.count = 0;
|
|
66
|
-
}
|
|
67
|
-
begin(o) {
|
|
68
|
-
this.v = 0, this.na = 0, this.time = o;
|
|
69
|
-
}
|
|
70
|
-
push(o, t, s, u, c) {
|
|
71
|
-
const l = this.v++;
|
|
72
|
-
this.P.setXYZ(l, o, t, s), this.C.setXYZ(l, u.r * c, u.g * c, u.b * c);
|
|
73
|
-
}
|
|
74
|
-
segment(o, t, s, u, c = u) {
|
|
75
|
-
this.v + 2 > this.maxV || (this.push(o.x, o.y, o.z, s, u), this.push(t.x, t.y, t.z, s, c));
|
|
76
|
-
}
|
|
77
|
-
/** Quadratic curve p0→p1→p2, drawn up to `grow` (0..1). */
|
|
78
|
-
curve(o, t, s, u, c, l, i = 0, h = 1, n = 9, M = 1.4) {
|
|
79
|
-
if (this.v + ve * 2 > this.maxV || c <= 2e-3) return;
|
|
80
|
-
const m = Math.max(1, Math.ceil(ve * B(h)));
|
|
81
|
-
for (let x = 0; x < m; x++)
|
|
82
|
-
for (let v = 0; v < 2; v++) {
|
|
83
|
-
const f = Math.min(h, (x + v) / ve);
|
|
84
|
-
oe(o, t, s, f, this.p);
|
|
85
|
-
let d = 1;
|
|
86
|
-
if (l === D.Dash) {
|
|
87
|
-
const p = Math.sin((f * n - this.time * M) * Math.PI);
|
|
88
|
-
d = 0.18 + (p > 0 ? Math.pow(p, 3) : 0) * 1.1;
|
|
89
|
-
} else if (l === D.Head) {
|
|
90
|
-
const p = f - i;
|
|
91
|
-
d = 0.12 + (p > 0 ? Math.exp(-(p * p) / 9e-4) : Math.exp(p / 0.16)) * 2.4;
|
|
92
|
-
}
|
|
93
|
-
this.push(this.p.x, this.p.y, this.p.z, u, c * d);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
ring(o, t, s, u, c, l, i, h) {
|
|
97
|
-
const n = Math.max(4, Math.ceil(Math.abs(l - c) / 0.06));
|
|
98
|
-
for (let M = 0; M < n; M++) {
|
|
99
|
-
if (this.v + 2 > this.maxV) return;
|
|
100
|
-
const m = c + (l - c) * M / n, x = c + (l - c) * (M + 1) / n;
|
|
101
|
-
this.push(o + Math.sin(m) * u, s, t - Math.cos(m) * u, i, h), this.push(o + Math.sin(x) * u, s, t - Math.cos(x) * u, i, h);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
/** Arrowhead on the curve at t, pointing toward p2 (dir=+1) or p0 (dir=-1). */
|
|
105
|
-
arrow(o, t, s, u, c, l, i, h) {
|
|
106
|
-
this.na >= this.maxA || h <= 0.01 || (oe(o, t, s, u, this.p), oe(o, t, s, B(u + 0.02 * c), this.q), this.q.sub(this.p), !(this.q.lengthSq() < 1e-9) && (this.o.position.copy(this.p), this.o.quaternion.setFromUnitVectors(Ce.UP, this.q.normalize()), this.o.scale.set(l * 0.42, l, l * 0.42), this.o.updateMatrix(), this.arrows.setMatrixAt(this.na, this.o.matrix), this.aColors[this.na * 3] = i.r * h, this.aColors[this.na * 3 + 1] = i.g * h, this.aColors[this.na * 3 + 2] = i.b * h, this.na++));
|
|
107
|
-
}
|
|
108
|
-
end() {
|
|
109
|
-
this.lines.geometry.setDrawRange(0, this.v), this.P.needsUpdate = !0, this.C.needsUpdate = !0, this.arrows.count = this.na, this.arrows.instanceMatrix.needsUpdate = !0, this.arrows.instanceColor && (this.arrows.instanceColor.needsUpdate = !0);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
P(Ce, "UP", new r.Vector3(0, 1, 0));
|
|
113
|
-
let ne = Ce;
|
|
114
|
-
const xt = (
|
|
115
|
-
/* glsl */
|
|
116
|
-
`
|
|
117
|
-
attribute float aSize; attribute vec3 aColor; varying vec3 vC; uniform float uScale;
|
|
118
|
-
void main(){ vec4 mv = modelViewMatrix * vec4(position, 1.0); gl_PointSize = aSize * uScale / -mv.z; vC = aColor; gl_Position = projectionMatrix * mv; }`
|
|
119
|
-
), St = (
|
|
120
|
-
/* glsl */
|
|
121
|
-
`
|
|
122
|
-
varying vec3 vC;
|
|
123
|
-
void main(){ float r = length(gl_PointCoord - 0.5) * 2.0; if (r > 1.0) discard;
|
|
124
|
-
float core = smoothstep(0.35, 0.0, r); float halo = pow(1.0 - r, 2.4);
|
|
125
|
-
gl_FragColor = vec4(vC * (core * 1.3 + halo * 0.5), 1.0); }`
|
|
126
|
-
);
|
|
127
|
-
class We {
|
|
128
|
-
constructor(o) {
|
|
129
|
-
P(this, "points");
|
|
130
|
-
P(this, "material");
|
|
131
|
-
P(this, "P");
|
|
132
|
-
P(this, "C");
|
|
133
|
-
P(this, "S");
|
|
134
|
-
P(this, "n", 0);
|
|
135
|
-
P(this, "max");
|
|
136
|
-
this.max = o;
|
|
137
|
-
const t = new r.BufferGeometry();
|
|
138
|
-
this.P = new r.BufferAttribute(new Float32Array(o * 3), 3), this.C = new r.BufferAttribute(new Float32Array(o * 3), 3), this.S = new r.BufferAttribute(new Float32Array(o), 1), t.setAttribute("position", this.P), t.setAttribute("aColor", this.C), t.setAttribute("aSize", this.S), t.boundingSphere = new r.Sphere(new r.Vector3(), 1e4), this.material = new r.ShaderMaterial({ uniforms: { uScale: { value: 300 } }, vertexShader: xt, fragmentShader: St, transparent: !0, depthWrite: !1, blending: r.AdditiveBlending }), this.points = new r.Points(t, this.material), this.points.frustumCulled = !1;
|
|
139
|
-
}
|
|
140
|
-
begin() {
|
|
141
|
-
this.n = 0;
|
|
142
|
-
}
|
|
143
|
-
add(o, t, s, u, c, l) {
|
|
144
|
-
if (this.n >= this.max || l <= 3e-3) return;
|
|
145
|
-
const i = this.n++;
|
|
146
|
-
this.P.setXYZ(i, o, t, s), this.C.setXYZ(i, c.r * l, c.g * l, c.b * l), this.S.setX(i, u);
|
|
147
|
-
}
|
|
148
|
-
end() {
|
|
149
|
-
this.points.geometry.setDrawRange(0, this.n), this.P.needsUpdate = !0, this.C.needsUpdate = !0, this.S.needsUpdate = !0;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
const Ne = 64, Me = Array.from({ length: Ne }, () => ({ x: 0, y: 0, z: 0, r: 1, color: new r.Color(), start: -1e9, dur: 1, k: 1, width: 1 }));
|
|
153
|
-
let ze = 0;
|
|
154
|
-
function ce(e, o, t, s = 1200, u = 1, c = 0, l = 1) {
|
|
155
|
-
const i = Me[ze];
|
|
156
|
-
ze = (ze + 1) % Ne, i.x = e.x, i.y = e.y, i.z = e.z, i.r = o, i.color.copy(t), i.start = performance.now() + c, i.dur = s, i.k = u, i.width = l;
|
|
157
|
-
}
|
|
158
|
-
const Pe = { db: "◉", warehouse: "▤", spark: "✷", api: "⇄", storage: "▣", queue: "≡" }, je = (e) => new r.Color(e).lerp(K, 0.25), Ee = new r.PlaneGeometry(1.7, 0.16).rotateX(-Math.PI / 2), qe = new r.EdgesGeometry(Ee), At = new r.CylinderGeometry(0.07, 0.1, 0.7, 6).translate(0, 0.35, 0), Ct = new r.CylinderGeometry(0.17, 0.12, 0.14, 8).translate(0, 0.76, 0), $e = new r.BoxGeometry(0.42, 0.18, 0.42).translate(0, 0.09, 0), Rt = new r.EdgesGeometry($e);
|
|
159
|
-
function zt({ mcp: e, backend: o }) {
|
|
160
|
-
const t = e.srv, s = o.res, u = E(null), c = R(() => je(t.color).lerp(j, 0.2), [t.color]), l = R(() => ({ fill: pe(c), line: Fe(c), halo: Oe(c) }), [c]), i = E(null), h = E(null), n = E("");
|
|
161
|
-
return W(({ clock: M }) => {
|
|
162
|
-
var a, w;
|
|
163
|
-
(a = u.current) == null || a.position.set(o.pos.x, 0, o.pos.z);
|
|
164
|
-
const m = performance.now(), x = s.inflight > 0, v = Math.exp(-((m - s.activeAt) / 1e3) * 1.4), f = x && !H ? 0.5 + 0.5 * Math.sin(M.elapsedTime * 6) : 0.5, d = x ? 1.4 + f * 0.8 : 0.25 + v * 1;
|
|
165
|
-
l.fill.color.copy(c).multiplyScalar(d * 0.35), l.line.color.copy(c).multiplyScalar(d * 1.2), l.halo.color.copy(c).multiplyScalar(x ? 0.35 + f * 0.2 : 0.03 + v * 0.25), (w = i.current) == null || w.scale.setScalar(x ? 2.6 + f * 0.6 : 1.6 + v);
|
|
166
|
-
let p = `${Pe[s.kind] ?? "·"} ${s.name}`;
|
|
167
|
-
if (x) {
|
|
168
|
-
let g = "";
|
|
169
|
-
for (const b of V.mcpPending.values()) b.server === t.name && b.resource === s.name && (g = b.tool);
|
|
170
|
-
p = `${Pe[s.kind] ?? "·"} ${s.name} ▸ ${g || "query"}()`;
|
|
171
|
-
} else v > 0.25 && (p = `${Pe[s.kind] ?? "·"} ${s.name} ✓`);
|
|
172
|
-
h.current && (p !== n.current && (n.current = p, h.current.setText(p)), h.current.setOpacity(x ? 1 : 0.5 + v * 0.5), h.current.setEmphasis(x));
|
|
173
|
-
}), /* @__PURE__ */ F("group", { ref: u, children: [
|
|
174
|
-
/* @__PURE__ */ y("mesh", { geometry: $e, material: l.fill }),
|
|
175
|
-
/* @__PURE__ */ y("lineSegments", { geometry: Rt, material: l.line }),
|
|
176
|
-
/* @__PURE__ */ y("sprite", { ref: i, material: l.halo, position: [0, 0.15, 0] }),
|
|
177
|
-
/* @__PURE__ */ y(re, { ref: h, position: [0, -0.05, 0.62], text: s.name, font: "mono", plate: "underline", color: t.color, textColor: "#a6e9c6", letterSpacing: 0.03, size: 0.26, pxRange: [7.5, 10.5] })
|
|
178
|
-
] });
|
|
179
|
-
}
|
|
180
|
-
function Pt({ mcp: e }) {
|
|
181
|
-
const o = e.srv, t = E(null), s = E(null), u = R(() => Math.atan2(e.target.x, -e.target.z), [e]), c = R(() => je(o.color), [o.color]), l = R(() => ({ fill: pe(c), line: Fe(c), tower: pe(c), cab: pe(j), beacon: Oe(c) }), [c]), i = E(null);
|
|
182
|
-
return W(({ clock: h }) => {
|
|
183
|
-
var f, d;
|
|
184
|
-
(f = t.current) == null || f.position.set(e.pos.x, 0, e.pos.z), s.current && (s.current.rotation.y = -Math.atan2(e.pos.x, -e.pos.z));
|
|
185
|
-
const n = performance.now(), M = o.inflight > 0, m = Math.exp(-((n - o.activeAt) / 1e3) * 1.3), x = H ? 0.6 : Math.pow(0.5 + 0.5 * Math.sin(h.elapsedTime * (M ? 7 : 1.6) + o.slot), 4), v = 0.35 + m * 0.7 + (M ? 0.5 : 0);
|
|
186
|
-
l.fill.color.copy(c).multiplyScalar(v * 0.18), l.line.color.copy(c).multiplyScalar(v * 1.3), l.tower.color.copy(c).multiplyScalar(v * 0.7), l.cab.color.copy(c).lerp(j, 0.5).multiplyScalar(0.3 + x * (M ? 1.4 : 0.7)), l.beacon.color.copy(c).multiplyScalar(0.08 + x * (M ? 0.55 : 0.22) + m * 0.15), (d = i.current) == null || d.scale.setScalar(1.4 + x * (M ? 1.6 : 0.7));
|
|
187
|
-
}), /* @__PURE__ */ F("group", { ref: t, children: [
|
|
188
|
-
/* @__PURE__ */ F("group", { ref: s, children: [
|
|
189
|
-
/* @__PURE__ */ F("group", { rotation: [0, 0.5, 0], children: [
|
|
190
|
-
/* @__PURE__ */ y("mesh", { geometry: Ee, material: l.fill }),
|
|
191
|
-
/* @__PURE__ */ y("lineSegments", { geometry: qe, material: l.line })
|
|
192
|
-
] }),
|
|
193
|
-
/* @__PURE__ */ F("group", { rotation: [0, -0.75, 0], position: [0.1, 5e-3, 0.15], children: [
|
|
194
|
-
/* @__PURE__ */ y("mesh", { geometry: Ee, material: l.fill, scale: [0.75, 1, 1] }),
|
|
195
|
-
/* @__PURE__ */ y("lineSegments", { geometry: qe, material: l.line, scale: [0.75, 1, 1] })
|
|
196
|
-
] }),
|
|
197
|
-
/* @__PURE__ */ F("group", { position: [0.45, 0, -0.35], children: [
|
|
198
|
-
/* @__PURE__ */ y("mesh", { geometry: At, material: l.tower }),
|
|
199
|
-
/* @__PURE__ */ y("mesh", { geometry: Ct, material: l.cab }),
|
|
200
|
-
/* @__PURE__ */ y("sprite", { ref: i, material: l.beacon, position: [0, 0.8, 0] })
|
|
201
|
-
] })
|
|
202
|
-
] }),
|
|
203
|
-
/* @__PURE__ */ y(
|
|
204
|
-
re,
|
|
205
|
-
{
|
|
206
|
-
offset: [Math.sin(u) * 1.15, Math.cos(u) * 1 - 0.45],
|
|
207
|
-
text: [
|
|
208
|
-
{ text: o.name.replace(/[^a-z0-9]/gi, "").slice(0, 4).toUpperCase().padEnd(4, "X") + " ", color: o.color },
|
|
209
|
-
{ text: `MCP · ${o.name}`, color: "#c8f7de" }
|
|
210
|
-
],
|
|
211
|
-
font: "mono",
|
|
212
|
-
plate: "box",
|
|
213
|
-
color: o.color,
|
|
214
|
-
letterSpacing: 0.04,
|
|
215
|
-
size: 0.3,
|
|
216
|
-
pxRange: [8, 11.5]
|
|
217
|
-
}
|
|
218
|
-
)
|
|
219
|
-
] });
|
|
220
|
-
}
|
|
221
|
-
function Tt() {
|
|
222
|
-
const e = R(() => new ne(140, 64), []), o = R(() => new We(64), []), t = R(() => ({ ap: new r.Vector3(), gp: new r.Vector3(), c: new r.Vector3(), h: new r.Vector3(), col: new r.Color(), col2: new r.Color() }), []), s = R(() => /* @__PURE__ */ new Map(), []);
|
|
223
|
-
return W(({ clock: u, size: c }) => {
|
|
224
|
-
const l = performance.now();
|
|
225
|
-
e.begin(H ? 0 : u.elapsedTime), o.begin(), o.material.uniforms.uScale.value = c.height * 0.9;
|
|
226
|
-
const { ap: i, gp: h, c: n, h: M, col: m, col2: x } = t;
|
|
227
|
-
s.clear();
|
|
228
|
-
for (const f of V.mcpCalls) {
|
|
229
|
-
if (!f.resource) continue;
|
|
230
|
-
const d = f.server + "|" + f.resource, p = s.get(d);
|
|
231
|
-
(!p || f.start > p.start) && s.set(d, f);
|
|
232
|
-
}
|
|
233
|
-
for (const f of Y.mcp.values()) {
|
|
234
|
-
const d = f.srv;
|
|
235
|
-
m.set(d.color).lerp(K, 0.25);
|
|
236
|
-
for (const p of f.backends.values()) {
|
|
237
|
-
const a = p.res;
|
|
238
|
-
i.copy(f.pos), h.copy(p.pos), i.y = h.y = 0.03, n.copy(i).add(h).multiplyScalar(0.5);
|
|
239
|
-
const w = Math.exp(-((l - a.activeAt) / 1e3) * 1.4), g = s.get(d.name + "|" + a.name), b = g && g.phase === "result" ? (l - g.start) / g.dur : 9;
|
|
240
|
-
if (b < 1) {
|
|
241
|
-
const C = 1 - Q(b);
|
|
242
|
-
e.curve(i, n, h, x.copy(m).lerp(j, 0.35), 0.9, D.Head, C, 1), e.arrow(i, n, h, 0.12, -1, 0.3, m, 1.6 * (1 - b * 0.6));
|
|
243
|
-
} else a.inflight > 0 ? (e.curve(i, n, h, m, 0.7, D.Dash, 0, 1, 6, 1.8), e.arrow(i, n, h, 0.85, 1, 0.26, m, 1.2)) : e.curve(i, n, h, m, 0.16 + w * 0.4, D.Solid);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
const v = (f, d, p, a) => {
|
|
247
|
-
const w = L.get(f), g = V.mcpServers.get(d), b = Y.mcp.get(d);
|
|
248
|
-
if (!(!w || !g || !b))
|
|
249
|
-
if (i.copy(b.pos), i.y = 0.25, de(w.pos, i, 1.2, 0.4, n), m.set(g.color).lerp(K, 0.25), p === 0) {
|
|
250
|
-
m.lerp(Le, B(a / 1.2)), a > 1.2 && m.lerp(Se, B((a - 1.2) / 1.2));
|
|
251
|
-
const C = (0.45 + Math.min(0.5, a * 0.2)) * B(a / 0.25) * w.vis;
|
|
252
|
-
e.curve(w.pos, n, i, m, C, D.Dash, 0, 1, 12, 2.2), e.arrow(w.pos, n, i, 0.93, 1, 0.34, m, 0.6 + C);
|
|
253
|
-
} else {
|
|
254
|
-
m.lerp(j, 0.35);
|
|
255
|
-
const C = 1 - Q(a / 0.8), T = (a < 0.8 ? 1 : 1 - (a - 0.8) / 0.2) * w.vis;
|
|
256
|
-
e.curve(w.pos, n, i, m, 0.9 * T, D.Head, C, 1), e.arrow(w.pos, n, i, Math.max(0.04, C), -1, 0.36, m, 1.8 * T), oe(w.pos, n, i, C, M), o.add(M.x, M.y, M.z, 0.7, m, 1.2 * T);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
for (const f of V.mcpPending.values()) v(f.instance, f.server, 0, ot(f, l));
|
|
260
|
-
for (const f of V.mcpCalls) f.phase === "result" && v(f.instance, f.server, 1, B((l - f.start) / f.dur));
|
|
261
|
-
e.end(), o.end();
|
|
262
|
-
}), /* @__PURE__ */ F(he, { children: [
|
|
263
|
-
/* @__PURE__ */ y("primitive", { object: e.lines }),
|
|
264
|
-
/* @__PURE__ */ y("primitive", { object: e.arrows }),
|
|
265
|
-
/* @__PURE__ */ y("primitive", { object: o.points })
|
|
266
|
-
] });
|
|
267
|
-
}
|
|
268
|
-
const Xe = new r.OctahedronGeometry(0.42, 0), kt = new r.EdgesGeometry(Xe), Bt = new r.SphereGeometry(0.7, 8, 6), Et = new r.MeshBasicMaterial({ transparent: !0, opacity: 0, depthWrite: !1 }), Gt = 1.6, Vt = 1.7, Ot = (e) => e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(e);
|
|
269
|
-
function Ft({ agent: e, onSelect: o }) {
|
|
270
|
-
const t = e.inst, s = E(null), u = E(null), c = E(null), l = E(null), i = gt[t.type], h = R(() => ({ fill: pe(i), edge: Fe(i), halo: Oe(i) }), [i]), n = R(
|
|
271
|
-
() => ({
|
|
272
|
-
id: t.id,
|
|
273
|
-
pos: new r.Vector3(),
|
|
274
|
-
ground: new r.Vector3(),
|
|
275
|
-
color: new r.Color(),
|
|
276
|
-
vis: 0,
|
|
277
|
-
scale: 1,
|
|
278
|
-
takeoff: 0,
|
|
279
|
-
land: 0,
|
|
280
|
-
origin: new r.Vector3(),
|
|
281
|
-
ctrl: new r.Vector3(),
|
|
282
|
-
cruise: new r.Vector3(),
|
|
283
|
-
hold: new r.Vector3(),
|
|
284
|
-
init: !1,
|
|
285
|
-
llm: t.llmCalls,
|
|
286
|
-
landed: !1,
|
|
287
|
-
lastTag: 0,
|
|
288
|
-
t2: "",
|
|
289
|
-
c: new r.Color()
|
|
290
|
-
}),
|
|
291
|
-
[t]
|
|
292
|
-
);
|
|
293
|
-
tt(() => (L.set(t.id, n), () => {
|
|
294
|
-
L.get(t.id) === n && L.delete(t.id);
|
|
295
|
-
}), [t.id, n]), W(({ clock: d }) => {
|
|
296
|
-
var se, ge;
|
|
297
|
-
const p = performance.now(), a = d.elapsedTime, w = vt(t);
|
|
298
|
-
if (He(t, e.pos, a, n.hold), n.hold.y = w, n.init ? n.cruise.lerp(n.hold, 0.08) : n.cruise.copy(n.hold), !n.init) {
|
|
299
|
-
n.init = !0;
|
|
300
|
-
const k = t.parent ? L.get(t.parent) : void 0;
|
|
301
|
-
k && k.vis > 0.05 ? n.origin.copy(k.pos) : n.origin.set(n.cruise.x, 0, n.cruise.z), ce(n.origin, t.subagent ? 0.9 : 1.4, K, 1100, 0.7);
|
|
302
|
-
}
|
|
303
|
-
const g = (p - t.bornAt) / 1e3;
|
|
304
|
-
n.takeoff = B(g / Gt), n.takeoff < 1 ? (de(n.origin, n.cruise, t.parent ? 1.5 : 0.2, t.parent ? 0.7 : 0, n.ctrl), oe(n.origin, n.ctrl, n.cruise, Q(n.takeoff), n.pos)) : n.pos.copy(n.cruise);
|
|
305
|
-
const b = t.exitAt ? (p - t.exitAt) / 1e3 : -1;
|
|
306
|
-
if (n.land = b >= 0 ? B(b / Vt) : 0, b >= 0 && (n.pos.y *= 1 - Q(n.land)), n.land >= 1 && !n.landed && (n.landed = !0, n.ground.set(n.pos.x, 0.02, n.pos.z), ce(n.ground, 1.1 * e.scale, t.status === "failed" ? Se : K, 1300, 0.9)), n.ground.set(n.pos.x, 0.02, n.pos.z), e.live.copy(n.pos), n.vis = nt(t, p), n.scale = e.scale, t.llmCalls !== n.llm) {
|
|
307
|
-
n.llm = t.llmCalls;
|
|
308
|
-
const k = 0.55 + t.pulse * 1.05;
|
|
309
|
-
ce(n.pos, k * (t.subagent ? 0.8 : 1), i, 1500, 1.1), ce(n.pos, k * 0.62 * (t.subagent ? 0.8 : 1), i, 1300, 0.7, 170);
|
|
310
|
-
}
|
|
311
|
-
const C = yt(fe(n.pos), Ve(a)), T = b < 0 && (t.status === "thinking" || t.status === "spawning"), A = t.status === "failed", G = H ? 0.5 : 0.5 + 0.5 * Math.sin(a * 2.4 + t.index);
|
|
312
|
-
n.c.copy(i), A && n.c.lerp(Se, B(n.land * 2)), n.color.copy(n.c);
|
|
313
|
-
const O = (0.55 + C * 0.9) * n.vis;
|
|
314
|
-
h.fill.color.copy(n.c).multiplyScalar((T ? 0.85 + G * 0.25 : 0.12) * O), h.edge.color.copy(n.c).lerp(j, 0.25).multiplyScalar((T ? 1.3 : 1) * O), h.halo.color.copy(n.c).multiplyScalar((T ? 0.32 : 0.12) * O + C * 0.12 * n.vis), s.current && s.current.position.copy(n.pos);
|
|
315
|
-
const Z = 0.45 + 0.55 * Ge(n.takeoff), N = n.scale * Z * (1 - n.land * 0.45);
|
|
316
|
-
if (u.current && (u.current.scale.set(N, N * 0.75, N), u.current.rotation.y = Math.PI / 4), (se = c.current) == null || se.scale.setScalar(N * (T ? 2.6 + G * 0.3 : 1.8) + C * 0.5), (ge = l.current) == null || ge.setOpacity(rt(t.id) ? B(n.takeoff * 1.6) * n.vis * (0.75 + C * 0.25) : 0), p - n.lastTag > 200 && l.current) {
|
|
317
|
-
n.lastTag = p;
|
|
318
|
-
let k = !1;
|
|
319
|
-
for (const we of V.mcpPending.values()) we.instance === t.id && (k = !0);
|
|
320
|
-
const me = b < 0 && t.doneAt ? A ? "FAIL" : "DONE" : b >= 0 ? A ? "FAIL" : n.land < 1 ? "LAND" : "DONE" : n.takeoff < 1 ? "TKOF" : k ? "MCP" : T ? "THNK" : "WAIT", ee = `${Ot(t.tokens)} tk ${me}`;
|
|
321
|
-
ee !== n.t2 && (n.t2 = ee, l.current.setText(v, ee));
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
const M = (d) => {
|
|
325
|
-
d.stopPropagation(), o(t.id);
|
|
326
|
-
}, m = t.id.split(":")[2], x = !t.subagent, v = `${t.name.toUpperCase()}${m !== void 0 && /^\d+$/.test(m) ? ` ${Number(m) + 1}` : ""}`, f = R(() => Math.sin(fe(e.target)) < -0.15 && Math.hypot(e.target.x, e.target.z) > 1.5, [e]);
|
|
327
|
-
return /* @__PURE__ */ F("group", { ref: s, children: [
|
|
328
|
-
/* @__PURE__ */ F("group", { ref: u, children: [
|
|
329
|
-
/* @__PURE__ */ y("mesh", { geometry: Xe, material: h.fill }),
|
|
330
|
-
/* @__PURE__ */ y("lineSegments", { geometry: kt, material: h.edge })
|
|
331
|
-
] }),
|
|
332
|
-
/* @__PURE__ */ y("sprite", { ref: c, material: h.halo }),
|
|
333
|
-
/* @__PURE__ */ y(
|
|
334
|
-
"mesh",
|
|
335
|
-
{
|
|
336
|
-
geometry: Bt,
|
|
337
|
-
material: Et,
|
|
338
|
-
scale: st(t) * 1.2,
|
|
339
|
-
onClick: M,
|
|
340
|
-
onPointerOver: () => document.body.style.cursor = "pointer",
|
|
341
|
-
onPointerOut: () => document.body.style.cursor = ""
|
|
342
|
-
}
|
|
343
|
-
),
|
|
344
|
-
/* @__PURE__ */ y(
|
|
345
|
-
re,
|
|
346
|
-
{
|
|
347
|
-
ref: l,
|
|
348
|
-
text: v,
|
|
349
|
-
secondary: "",
|
|
350
|
-
font: "mono",
|
|
351
|
-
plate: "bar",
|
|
352
|
-
leader: !0,
|
|
353
|
-
offset: f ? [-0.75, 0.62] : [0.75, 0.62],
|
|
354
|
-
anchorX: f ? "right" : "left",
|
|
355
|
-
anchorY: "bottom",
|
|
356
|
-
textAlign: f ? "right" : "left",
|
|
357
|
-
color: Ie[t.type],
|
|
358
|
-
textColor: "#d9ffe9",
|
|
359
|
-
secondaryColor: "#57d897",
|
|
360
|
-
letterSpacing: 0.06,
|
|
361
|
-
size: x ? 0.36 : 0.3,
|
|
362
|
-
secondarySize: x ? 0.3 : 0.27,
|
|
363
|
-
opacity: 0,
|
|
364
|
-
fit: !0,
|
|
365
|
-
pxRange: x ? [8.5, 13] : [7.5, 11],
|
|
366
|
-
renderOrder: 26
|
|
367
|
-
}
|
|
368
|
-
)
|
|
369
|
-
] });
|
|
370
|
-
}
|
|
371
|
-
const _e = 6, Ut = 1.15;
|
|
372
|
-
function Dt() {
|
|
373
|
-
const e = R(() => new ne(220, 64), []), o = R(() => new We(600), []), t = R(() => ({ a: new r.Vector3(), b: new r.Vector3(), c: new r.Vector3(), h: new r.Vector3(), col: new r.Color() }), []), s = R(() => /* @__PURE__ */ new Map(), []);
|
|
374
|
-
return W(({ clock: u, size: c }) => {
|
|
375
|
-
const l = performance.now(), i = u.elapsedTime, h = H ? 0 : i;
|
|
376
|
-
e.begin(h), o.begin(), o.material.uniforms.uScale.value = c.height * 0.9;
|
|
377
|
-
const { a: n, b: M, c: m, h: x, col: v } = t;
|
|
378
|
-
for (const d of Y.agents.values()) {
|
|
379
|
-
const p = d.inst, a = L.get(p.id);
|
|
380
|
-
if (!a || a.vis <= 0.01) continue;
|
|
381
|
-
if (e.segment(a.pos, a.ground, a.color, 0.28 * a.vis, 0.05 * a.vis), o.add(a.ground.x, 0.03, a.ground.z, 0.22 * a.scale, a.color, 0.35 * a.vis), a.takeoff >= 1 && !H)
|
|
382
|
-
for (let g = 1; g <= _e; g++) {
|
|
383
|
-
He(p, d.pos, i - g * Ut, n);
|
|
384
|
-
const b = 1 - g / (_e + 1);
|
|
385
|
-
o.add(n.x, a.pos.y, n.z, (p.subagent ? 0.16 : 0.24) * (0.6 + b * 0.4), a.color, 0.55 * b * b * a.vis);
|
|
386
|
-
}
|
|
387
|
-
if (p.parent) {
|
|
388
|
-
const g = L.get(p.parent), b = V.instances.get(p.parent), C = !!g && !!b && !b.exitAt && !p.exitAt, T = s.get(p.id) ?? 0, A = T + ((C ? 1 : 0) - T) * (C ? 0.06 : 0.04);
|
|
389
|
-
s.set(p.id, A), g && A > 0.01 && (de(g.pos, a.pos, 0.9, 0.5, m), a.takeoff < 1 ? e.curve(g.pos, m, a.pos, a.color, 0.9, D.Head, a.takeoff, 1) : (e.curve(g.pos, m, a.pos, a.color, 0.95 * A * Math.min(g.vis, a.vis), D.Dash, 0, 1, 10, 1.2), e.arrow(g.pos, m, a.pos, 0.8, 1, p.subagent ? 0.26 : 0.34, a.color, 0.9 * A * a.vis)));
|
|
390
|
-
}
|
|
391
|
-
let w = -1;
|
|
392
|
-
for (const g of V.mcpPending.values()) g.instance === p.id && (w = Math.max(w, (l - g.since) / 1e3));
|
|
393
|
-
if (w >= 0) {
|
|
394
|
-
v.copy(Le).lerp(Se, B((w - 1.2) / 1.2));
|
|
395
|
-
const g = H ? 0.6 : 0.5 + 0.5 * Math.sin(i * 6), b = 0.62 * a.scale;
|
|
396
|
-
for (let C = 0; C < 4; C++) e.ring(a.pos.x, a.pos.z, a.pos.y, b, C * 1.5708 + 0.25, C * 1.5708 + 1.3, v, (0.6 + g * 0.6) * a.vis);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
for (const d of s.keys()) V.instances.has(d) || s.delete(d);
|
|
400
|
-
const f = V.selected ? L.get(V.selected) : void 0;
|
|
401
|
-
if (f && f.vis > 0.01) {
|
|
402
|
-
const d = 0.75 * f.scale + 0.15, p = d * 0.45, a = f.pos.y;
|
|
403
|
-
v.copy(j);
|
|
404
|
-
for (let w = -1; w <= 1; w += 2)
|
|
405
|
-
for (let g = -1; g <= 1; g += 2)
|
|
406
|
-
n.set(f.pos.x + w * d, a, f.pos.z + g * d), M.set(n.x - w * p, a, n.z), e.segment(n, M, v, 0.9), M.set(n.x, a, n.z - g * p), e.segment(n, M, v, 0.9);
|
|
407
|
-
}
|
|
408
|
-
for (const d of V.comets) {
|
|
409
|
-
const p = L.get(d.from), a = L.get(d.to);
|
|
410
|
-
if (!p || !a) continue;
|
|
411
|
-
const w = B((l - d.start) / d.dur);
|
|
412
|
-
if (w >= 1) continue;
|
|
413
|
-
de(p.pos, a.pos, 1.8, -0.9, m);
|
|
414
|
-
const g = Q(w), b = w < 0.85 ? 1 : 1 - (w - 0.85) / 0.15;
|
|
415
|
-
e.curve(p.pos, m, a.pos, p.color, 0.18 * b, D.Solid), e.curve(p.pos, m, a.pos, p.color, 0.75 * b, D.Head, g, Math.min(1, g + 0.01)), e.arrow(p.pos, m, a.pos, Math.max(0.02, g), 1, 0.36, p.color, 1.6 * b), oe(p.pos, m, a.pos, g, x), v.copy(p.color).lerp(j, 0.4), o.add(x.x, x.y, x.z, 0.75, v, 1.3 * b);
|
|
416
|
-
}
|
|
417
|
-
e.end(), o.end();
|
|
418
|
-
}), /* @__PURE__ */ F(he, { children: [
|
|
419
|
-
/* @__PURE__ */ y("primitive", { object: e.lines }),
|
|
420
|
-
/* @__PURE__ */ y("primitive", { object: e.arrows }),
|
|
421
|
-
/* @__PURE__ */ y("primitive", { object: o.points })
|
|
422
|
-
] });
|
|
423
|
-
}
|
|
424
|
-
const qt = new r.RingGeometry(0.955, 1, 96).rotateX(-Math.PI / 2);
|
|
425
|
-
function _t() {
|
|
426
|
-
const e = R(() => {
|
|
427
|
-
const t = new r.InstancedMesh(qt, new r.MeshBasicMaterial({ blending: r.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1, side: r.DoubleSide }), Me.length);
|
|
428
|
-
return t.instanceColor = new r.InstancedBufferAttribute(new Float32Array(Me.length * 3), 3), t.frustumCulled = !1, t.count = 0, t;
|
|
429
|
-
}, []), o = R(() => new r.Object3D(), []);
|
|
430
|
-
return W(() => {
|
|
431
|
-
const t = performance.now();
|
|
432
|
-
let s = 0;
|
|
433
|
-
const u = e.instanceColor.array;
|
|
434
|
-
for (const c of Me) {
|
|
435
|
-
const l = (t - c.start) / c.dur;
|
|
436
|
-
if (l < 0 || l >= 1) continue;
|
|
437
|
-
const i = Math.max(0.01, c.r * Ge(l));
|
|
438
|
-
o.position.set(c.x, c.y, c.z), o.scale.set(i, 1, i), o.updateMatrix(), e.setMatrixAt(s, o.matrix);
|
|
439
|
-
const h = c.k * Math.pow(1 - l, 1.6) * 1.4;
|
|
440
|
-
u[s * 3] = c.color.r * h, u[s * 3 + 1] = c.color.g * h, u[s * 3 + 2] = c.color.b * h, s++;
|
|
441
|
-
}
|
|
442
|
-
e.count = s, e.instanceMatrix.needsUpdate = !0, e.instanceColor.needsUpdate = !0;
|
|
443
|
-
}), /* @__PURE__ */ y("primitive", { object: e });
|
|
444
|
-
}
|
|
445
|
-
const $ = 0.36;
|
|
446
|
-
function Ae(e) {
|
|
447
|
-
return Math.hypot(e.origin.x, e.origin.z) > 1.2 ? fe(e.origin) : fe(e.axis);
|
|
448
|
-
}
|
|
449
|
-
function It({ run: e }) {
|
|
450
|
-
const o = E(null);
|
|
451
|
-
W(() => {
|
|
452
|
-
o.current && ue(Ae(e), I.r + 1.75, 0, o.current.position);
|
|
453
|
-
});
|
|
454
|
-
const t = Ae(e), s = Math.sin(t), u = Math.cos(t);
|
|
455
|
-
return /* @__PURE__ */ y("group", { ref: o, children: e.run && /* @__PURE__ */ y(Lt, { run: e.run, anchorX: s > 0.35 ? "left" : s < -0.35 ? "right" : "center", anchorY: u > 0.35 ? "bottom" : u < -0.35 ? "top" : "middle" }) });
|
|
456
|
-
}
|
|
457
|
-
function Lt({ run: e, anchorX: o, anchorY: t }) {
|
|
458
|
-
ct();
|
|
459
|
-
const s = e.status !== "started";
|
|
460
|
-
return /* @__PURE__ */ y(
|
|
461
|
-
re,
|
|
462
|
-
{
|
|
463
|
-
anchorX: o,
|
|
464
|
-
anchorY: t,
|
|
465
|
-
textAlign: "left",
|
|
466
|
-
plate: "bar",
|
|
467
|
-
text: e.topic,
|
|
468
|
-
textColor: "#e8fff1",
|
|
469
|
-
secondary: pt(e, { base: "#5fbf8d", current: "#b8ffd6", done: "#9fcfb4" }, ["airborne…", "run complete", "run failed"]),
|
|
470
|
-
color: e.color,
|
|
471
|
-
size: 0.34,
|
|
472
|
-
secondarySize: 0.27,
|
|
473
|
-
maxWidth: 8.5,
|
|
474
|
-
opacity: s ? 0.55 : 1,
|
|
475
|
-
fadeMs: 400,
|
|
476
|
-
pxRange: [9, 12.5]
|
|
477
|
-
}
|
|
478
|
-
);
|
|
479
|
-
}
|
|
480
|
-
function Ht() {
|
|
481
|
-
const e = R(() => new ne(40, 1), []), o = R(() => new r.Color(), []);
|
|
482
|
-
return W(({ clock: t }) => {
|
|
483
|
-
const s = performance.now(), u = t.elapsedTime;
|
|
484
|
-
e.begin(u);
|
|
485
|
-
for (const c of Y.runs.values()) {
|
|
486
|
-
const l = c.run;
|
|
487
|
-
if (!l) continue;
|
|
488
|
-
const i = Ae(c), h = Ge((s - l.startedAt) / 1e3), n = l.endedAt ? B(1 - (s - l.endedAt - (at - 2500)) / 2500) : 1, M = h * n;
|
|
489
|
-
o.set(l.color).lerp(K, 0.15);
|
|
490
|
-
const m = I.r + 0.3;
|
|
491
|
-
if (l.hasSteps) {
|
|
492
|
-
const x = 2 * $ * h / 3;
|
|
493
|
-
for (let f = 0; f < it.length; f++) {
|
|
494
|
-
const d = lt(l, f), p = H ? 0.7 : 0.5 + 0.5 * Math.sin(u * 4), a = d === "running" ? 1.1 + p * 0.8 : d === "done" ? 0.75 : d === "failed" ? 0.9 : 0.18, w = i - $ * h + f * x + 0.02, g = d === "failed" ? o.set("#ff4a4a") : o.set(l.color).lerp(K, 0.15);
|
|
495
|
-
e.ring(0, 0, 0.03, m, w, w + x - 0.04, g, a * M), e.ring(0, 0, 0.03, m + 0.06, w, w + x - 0.04, g, a * M * 0.5);
|
|
496
|
-
}
|
|
497
|
-
const v = l.handoffAt ? 1 - (s - l.handoffAt) / 900 : 0;
|
|
498
|
-
v > 0 && e.ring(0, 0, 0.03, m + 0.14, i - $, i + $, j, v * 0.8 * M);
|
|
499
|
-
} else
|
|
500
|
-
e.ring(0, 0, 0.03, m, i - $ * h, i + $ * h, o, 0.85 * M), e.ring(0, 0, 0.03, m + 0.06, i - $ * h, i + $ * h, o, 0.35 * M);
|
|
501
|
-
}
|
|
502
|
-
e.end();
|
|
503
|
-
}), /* @__PURE__ */ y("primitive", { object: e.lines });
|
|
504
|
-
}
|
|
505
|
-
const Te = 1, Wt = (
|
|
506
|
-
/* glsl */
|
|
507
|
-
`
|
|
508
|
-
uniform float uExt;
|
|
509
|
-
varying vec2 vP;
|
|
510
|
-
void main(){ vP = position.xy * uExt; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); }`
|
|
511
|
-
), Nt = (
|
|
512
|
-
/* glsl */
|
|
513
|
-
`
|
|
514
|
-
uniform float uSweep; uniform float uR;
|
|
515
|
-
uniform vec3 uBase; uniform vec3 uGrid; uniform vec3 uSweepC; uniform vec3 uCyan;
|
|
516
|
-
varying vec2 vP;
|
|
517
|
-
#define TAU 6.28318530718
|
|
518
|
-
float line(float d, float w){ float f = fwidth(d); return 1.0 - smoothstep(w, w + f * 1.5, abs(d)); }
|
|
519
|
-
void main(){
|
|
520
|
-
// plane is rotated -90° about X: local (x, y) → world (x, 0, -y); bearing 0 = north (local +y), clockwise
|
|
521
|
-
float r = length(vP);
|
|
522
|
-
float b = atan(vP.x, vP.y); if (b < 0.0) b += TAU;
|
|
523
|
-
float d = mod(uSweep - b, TAU); // radians behind the sweep
|
|
524
|
-
float glow = exp(-d * 1.4); // phosphor persistence
|
|
525
|
-
float inside = 1.0 - smoothstep(uR - 0.02, uR + 0.02, r);
|
|
526
|
-
|
|
527
|
-
vec3 col = uBase * (0.55 + 0.45 * (1.0 - r / uR)) * inside; // CRT bloom toward the centre
|
|
528
|
-
|
|
529
|
-
// range rings
|
|
530
|
-
float rings = 0.0;
|
|
531
|
-
for (int i = 1; i <= 4; i++) rings = max(rings, line(r - uR * float(i) / 4.0, 0.012));
|
|
532
|
-
float fine = 0.0;
|
|
533
|
-
for (int i = 1; i <= 8; i += 2) fine = max(fine, line(r - uR * float(i) / 8.0, 0.006));
|
|
534
|
-
// bearing spokes every 30° (and faint 10°)
|
|
535
|
-
float a30 = mod(b, TAU / 12.0); a30 = min(a30, TAU / 12.0 - a30) * r;
|
|
536
|
-
float a10 = mod(b, TAU / 36.0); a10 = min(a10, TAU / 36.0 - a10) * r;
|
|
537
|
-
float spokes = line(a30, 0.01) * step(0.35, r) * inside;
|
|
538
|
-
float spokes10 = line(a10, 0.005) * step(uR * 0.5, r) * inside * 0.5;
|
|
539
|
-
float lit = 0.3 + glow * 1.4;
|
|
540
|
-
col += uGrid * (rings * 1.0 + fine * 0.35 + spokes * 0.6 + spokes10) * lit * inside;
|
|
541
|
-
// centre cross
|
|
542
|
-
col += uGrid * (line(vP.x, 0.008) + line(vP.y, 0.008)) * step(r, 0.45) * 1.2;
|
|
543
|
-
|
|
544
|
-
// bezel: outer ring + 5°/10°/30° ticks just outside the scope
|
|
545
|
-
float bez = line(r - uR, 0.02) * 1.4 + line(r - (uR + 0.62), 0.008) * 0.6;
|
|
546
|
-
float t5 = mod(b, TAU / 72.0); t5 = min(t5, TAU / 72.0 - t5) * r;
|
|
547
|
-
float t10 = mod(b, TAU / 36.0); t10 = min(t10, TAU / 36.0 - t10) * r;
|
|
548
|
-
float ticks = line(t5, 0.008) * step(uR, r) * step(r, uR + 0.16) + line(t10, 0.012) * step(uR, r) * step(r, uR + 0.3) + line(a30, 0.016) * step(uR, r) * step(r, uR + 0.45);
|
|
549
|
-
col += uGrid * (bez + ticks) * (0.65 + glow * 0.6);
|
|
550
|
-
|
|
551
|
-
// the sweep: a crisp leading line + afterglow wedge
|
|
552
|
-
float edge = exp(-d * 60.0) * inside * step(0.15, r);
|
|
553
|
-
col += uSweepC * (edge * 1.8 + glow * 0.16 * inside) * (0.35 + 0.65 * smoothstep(0.0, uR * 0.25, r));
|
|
554
|
-
// faint cyan rim halo
|
|
555
|
-
col += uCyan * exp(-abs(r - uR) * 9.0) * 0.06;
|
|
556
|
-
|
|
557
|
-
float outer = 1.0 - smoothstep(uR + 0.7, uR + 0.95, r);
|
|
558
|
-
gl_FragColor = vec4(col * outer, 1.0);
|
|
559
|
-
}`
|
|
560
|
-
), ke = Array.from({ length: 12 }, (e, o) => o * 30);
|
|
561
|
-
function jt() {
|
|
562
|
-
const e = E([]);
|
|
563
|
-
return W(() => {
|
|
564
|
-
for (let o = 0; o < ke.length; o++) {
|
|
565
|
-
const t = e.current[o];
|
|
566
|
-
t && ue(ke[o] * Math.PI / 180, I.r + 0.85, 0, t.position);
|
|
567
|
-
}
|
|
568
|
-
}), /* @__PURE__ */ y(he, { children: ke.map((o, t) => /* @__PURE__ */ y("group", { ref: (s) => void (e.current[t] = s), children: /* @__PURE__ */ y(re, { text: String(o).padStart(3, "0"), font: "mono", plate: "none", textColor: "#2fae6e", letterSpacing: 0.08, size: 0.24, opacity: 0.85, pxRange: [6.5, 9.5], renderOrder: 12 }) }, o)) });
|
|
569
|
-
}
|
|
570
|
-
function $t() {
|
|
571
|
-
const e = R(
|
|
572
|
-
() => new r.ShaderMaterial({
|
|
573
|
-
uniforms: {
|
|
574
|
-
uSweep: { value: 0 },
|
|
575
|
-
uR: { value: I.r },
|
|
576
|
-
uExt: { value: I.r + Te },
|
|
577
|
-
uBase: { value: new r.Color("#04241a") },
|
|
578
|
-
uGrid: { value: new r.Color("#1fa865") },
|
|
579
|
-
uSweepC: { value: new r.Color("#5dffb4") },
|
|
580
|
-
uCyan: { value: new r.Color("#38e8ff") }
|
|
581
|
-
},
|
|
582
|
-
vertexShader: Wt,
|
|
583
|
-
fragmentShader: Nt,
|
|
584
|
-
toneMapped: !1
|
|
585
|
-
}),
|
|
586
|
-
[]
|
|
587
|
-
), o = E(null);
|
|
588
|
-
return W(({ clock: t }) => {
|
|
589
|
-
var s;
|
|
590
|
-
mt(), e.uniforms.uSweep.value = Ve(t.elapsedTime), e.uniforms.uR.value = I.r, e.uniforms.uExt.value = I.r + Te, (s = o.current) == null || s.scale.setScalar(I.r + Te);
|
|
591
|
-
}), /* @__PURE__ */ F(he, { children: [
|
|
592
|
-
/* @__PURE__ */ y("mesh", { ref: o, rotation: [-Math.PI / 2, 0, 0], material: e, renderOrder: -1, children: /* @__PURE__ */ y("circleGeometry", { args: [1, 160] }) }),
|
|
593
|
-
/* @__PURE__ */ y(jt, {})
|
|
594
|
-
] });
|
|
595
|
-
}
|
|
596
|
-
const _ = 3.4, Xt = 180, be = 4, Be = new r.Color("#ffd27a"), Yt = (
|
|
597
|
-
/* glsl */
|
|
598
|
-
`
|
|
599
|
-
attribute float aSize; attribute vec3 aColor; attribute float aHeat;
|
|
600
|
-
uniform float uScale; uniform float uSweep;
|
|
601
|
-
varying vec3 vC; varying float vHeat;
|
|
602
|
-
void main(){
|
|
603
|
-
float b = atan(position.x, -position.z); if (b < 0.0) b += 6.28318530718;
|
|
604
|
-
float d = mod(uSweep - b, 6.28318530718);
|
|
605
|
-
float glow = exp(-d * 1.4);
|
|
606
|
-
vec4 mv = modelViewMatrix * vec4(position, 1.0);
|
|
607
|
-
gl_PointSize = aSize * (1.0 + aHeat * 0.9) * uScale / -mv.z;
|
|
608
|
-
vC = aColor * (0.45 + glow * 0.9); vHeat = aHeat;
|
|
609
|
-
gl_Position = projectionMatrix * mv;
|
|
610
|
-
}`
|
|
611
|
-
), Kt = (
|
|
612
|
-
/* glsl */
|
|
613
|
-
`
|
|
614
|
-
varying vec3 vC; varying float vHeat;
|
|
615
|
-
void main(){
|
|
616
|
-
vec2 p = gl_PointCoord * 2.0 - 1.0; p.y = -p.y;
|
|
617
|
-
// equilateral triangle SDF (waypoint symbol), outline + soft glow when hot
|
|
618
|
-
const float k = 1.7320508;
|
|
619
|
-
vec2 q = p * 1.25; q.y += 0.18;
|
|
620
|
-
q.x = abs(q.x) - 1.0; q.y = q.y + 1.0 / k;
|
|
621
|
-
if (q.x + k * q.y > 0.0) q = vec2(q.x - k * q.y, -k * q.x - q.y) / 2.0;
|
|
622
|
-
q.x -= clamp(q.x, -2.0, 0.0);
|
|
623
|
-
float dist = -length(q) * sign(q.y) * 0.62;
|
|
624
|
-
float edge = 1.0 - smoothstep(0.0, 0.09, abs(dist + 0.05));
|
|
625
|
-
float fill = (1.0 - smoothstep(-0.05, 0.02, dist)) * vHeat * 0.9;
|
|
626
|
-
float halo = exp(-dot(p, p) * 2.5) * vHeat * 0.6;
|
|
627
|
-
float a = edge + fill + halo;
|
|
628
|
-
if (a < 0.01) discard;
|
|
629
|
-
gl_FragColor = vec4(vC * a, 1.0);
|
|
630
|
-
}`
|
|
631
|
-
);
|
|
632
|
-
function Zt({ galaxy: e }) {
|
|
633
|
-
const o = R(() => e.nodes.slice(0, Xt), [e]), t = o.length, s = R(() => {
|
|
634
|
-
const v = new Float32Array(t * 3), f = new r.Vector3(), d = Math.PI * (3 - Math.sqrt(5));
|
|
635
|
-
for (let A = 0; A < t; A++) {
|
|
636
|
-
const G = o[A].id, O = 0.45 + (_ - 0.75) * Math.sqrt((A + 0.5) / t) + (xe(G, 11) - 0.5) * 0.25;
|
|
637
|
-
ue(A * d + (xe(G, 12) - 0.5) * 0.12, O, 0.04, f), v.set([f.x, f.y, f.z], A * 3);
|
|
638
|
-
}
|
|
639
|
-
const p = new r.BufferGeometry();
|
|
640
|
-
p.setAttribute("position", new r.BufferAttribute(v, 3)), p.setAttribute("aSize", new r.BufferAttribute(new Float32Array(t).fill(0.32), 1));
|
|
641
|
-
const a = new Float32Array(t * 3), w = new r.Color("#2fd6c8");
|
|
642
|
-
for (let A = 0; A < t; A++) a.set([w.r, w.g, w.b], A * 3);
|
|
643
|
-
p.setAttribute("aColor", new r.BufferAttribute(a, 3)), p.setAttribute("aHeat", new r.BufferAttribute(new Float32Array(t), 1)), p.boundingSphere = new r.Sphere(new r.Vector3(), 1e4);
|
|
644
|
-
const g = new Map(o.map((A, G) => [A.id, G])), b = [];
|
|
645
|
-
for (const A of e.links) {
|
|
646
|
-
const G = g.get(A.source), O = g.get(A.target);
|
|
647
|
-
if (G === void 0 || O === void 0 || G === O) continue;
|
|
648
|
-
const Z = v[G * 3] - v[O * 3], N = v[G * 3 + 2] - v[O * 3 + 2];
|
|
649
|
-
if (Z * Z + N * N < 1.6 * 1.6 && b.push(G, O), b.length > 600) break;
|
|
650
|
-
}
|
|
651
|
-
const C = new r.BufferGeometry(), T = new Float32Array(b.length * 3);
|
|
652
|
-
for (let A = 0; A < b.length; A++) T.set([v[b[A] * 3], 0.03, v[b[A] * 3 + 2]], A * 3);
|
|
653
|
-
return C.setAttribute("position", new r.BufferAttribute(T, 3)), C.setAttribute("color", new r.BufferAttribute(new Float32Array(b.length * 3), 3)), C.boundingSphere = new r.Sphere(new r.Vector3(), 1e4), { pos: v, g: p, lg: C, pairs: b, read: new Float32Array(t), write: new Float32Array(t) };
|
|
654
|
-
}, [o, e.links, t]), u = R(
|
|
655
|
-
() => new r.ShaderMaterial({ uniforms: { uScale: { value: 300 }, uSweep: { value: 0 } }, vertexShader: Yt, fragmentShader: Kt, transparent: !0, depthWrite: !1, blending: r.AdditiveBlending }),
|
|
656
|
-
[]
|
|
657
|
-
), c = R(() => new r.LineBasicMaterial({ vertexColors: !0, transparent: !0, blending: r.AdditiveBlending, depthWrite: !1, toneMapped: !1 }), []), l = R(() => new ne(48, 32), []), i = E({ lastFlare: 0, last: 0 }), h = E([]), n = E([]), M = E(Array(be).fill("")), m = R(() => ({ wp: new r.Vector3(), ws: new r.Vector3(), bp: new r.Vector3(), c: new r.Vector3(), col: new r.Color(), base: new r.Color("#2fd6c8"), air: new r.Color("#0f6f5a") }), []), x = R(() => {
|
|
658
|
-
const v = [];
|
|
659
|
-
for (let p = 0; p < 96; p++) {
|
|
660
|
-
const a = p / 96 * X, w = (p + 1) / 96 * X;
|
|
661
|
-
v.push(Math.sin(a) * _, 0.02, -Math.cos(a) * _, Math.sin(w) * _, 0.02, -Math.cos(w) * _);
|
|
662
|
-
}
|
|
663
|
-
for (let p = 0; p < 4; p++) {
|
|
664
|
-
const a = p / 4 * X;
|
|
665
|
-
v.push(Math.sin(a) * _, 0.02, -Math.cos(a) * _, Math.sin(a) * (_ + 0.3), 0.02, -Math.cos(a) * (_ + 0.3));
|
|
666
|
-
}
|
|
667
|
-
const d = new r.BufferGeometry();
|
|
668
|
-
return d.setAttribute("position", new r.Float32BufferAttribute(v, 3)), d;
|
|
669
|
-
}, []);
|
|
670
|
-
return W(({ clock: v, size: f }) => {
|
|
671
|
-
var we;
|
|
672
|
-
const d = performance.now(), p = Math.min(0.1, i.current.last ? (d - i.current.last) / 1e3 : 0.016);
|
|
673
|
-
i.current.last = d, u.uniforms.uScale.value = f.height * 0.9 * Y.graph.scale, u.uniforms.uSweep.value = Ve(v.elapsedTime);
|
|
674
|
-
const { read: a, write: w, pos: g } = s, { wp: b, c: C, col: T, base: A, air: G } = m;
|
|
675
|
-
for (const S of V.flares) {
|
|
676
|
-
if (S.id <= i.current.lastFlare) continue;
|
|
677
|
-
i.current.lastFlare = Math.max(i.current.lastFlare, S.id);
|
|
678
|
-
const z = Re(e, S.node) % t;
|
|
679
|
-
S.op === "read" ? a[z] = 1 : (w[z] = 1, b.set(g[z * 3], 0.05, g[z * 3 + 2]), ce(ut(b, m.ws), 1.6 * Y.graph.scale, Be, 1400, 0.9));
|
|
680
|
-
}
|
|
681
|
-
const O = Math.exp(-p * 0.8), Z = s.g.getAttribute("aHeat"), N = s.g.getAttribute("aColor");
|
|
682
|
-
for (let S = 0; S < t; S++) {
|
|
683
|
-
a[S] *= O, w[S] *= O;
|
|
684
|
-
const z = Math.max(a[S], w[S]);
|
|
685
|
-
Z.setX(S, z), T.copy(A).lerp(ie, B(a[S] * 1.5)).multiplyScalar(1 + a[S] * 2.2), w[S] > 0.01 && T.lerp(Be, B(w[S] * 1.5)).multiplyScalar(1 + w[S] * 1.5), N.setXYZ(S, T.r, T.g, T.b);
|
|
686
|
-
}
|
|
687
|
-
Z.needsUpdate = !0, N.needsUpdate = !0;
|
|
688
|
-
const se = s.lg.getAttribute("color");
|
|
689
|
-
for (let S = 0; S < s.pairs.length; S++) {
|
|
690
|
-
const z = s.pairs[S], U = Math.max(a[z], w[z]), q = 0.1 + U * 1.4;
|
|
691
|
-
se.setXYZ(S, G.r * q + ie.r * U * 0.4, G.g * q + ie.g * U * 0.4, G.b * q + ie.b * U * 0.4);
|
|
692
|
-
}
|
|
693
|
-
se.needsUpdate = !0, l.begin(H ? 0 : v.elapsedTime);
|
|
694
|
-
let ge = 0;
|
|
695
|
-
for (let S = V.flares.length - 1; S >= 0; S--) {
|
|
696
|
-
const z = V.flares[S], U = (d - z.start) / 1e3;
|
|
697
|
-
if (U > 1.8) continue;
|
|
698
|
-
const q = L.get(z.instance);
|
|
699
|
-
if (!q) continue;
|
|
700
|
-
const J = Re(e, z.node) % t;
|
|
701
|
-
b.set(g[J * 3], 0.05, g[J * 3 + 2]);
|
|
702
|
-
const ae = ft(q.pos, m.bp);
|
|
703
|
-
de(ae, b, 0.6, 0.3, C);
|
|
704
|
-
const te = B(U / 1.1), Ue = U < 1.1 ? 1 : 1 - (U - 1.1) / 0.7, De = z.op === "read" ? ie : Be, Ye = z.op === "read" ? 1 - Q(te) : Q(te);
|
|
705
|
-
if (l.curve(ae, C, b, De, 0.6 * Ue * q.vis, D.Head, Ye, 1), l.arrow(ae, C, b, z.op === "read" ? 0.1 : 0.9, z.op === "read" ? -1 : 1, 0.26, De, 1.2 * Ue * q.vis), ++ge > 40) break;
|
|
706
|
-
}
|
|
707
|
-
l.end();
|
|
708
|
-
let k = 0;
|
|
709
|
-
const me = M.current, ee = [];
|
|
710
|
-
for (let S = V.flares.length - 1; S >= 0 && k < be; S--) {
|
|
711
|
-
const z = V.flares[S];
|
|
712
|
-
if (ee.includes(z.node)) continue;
|
|
713
|
-
ee.push(z.node);
|
|
714
|
-
const U = Re(e, z.node) % t, q = h.current[k], J = n.current[k];
|
|
715
|
-
q && q.position.set(g[U * 3], 0.05, g[U * 3 + 2]);
|
|
716
|
-
const ae = (d - z.start) / 1e3;
|
|
717
|
-
if (J) {
|
|
718
|
-
const te = `${z.op === "read" ? "RD" : "WR"} ${((we = e.nodes[U]) == null ? void 0 : we.name) ?? z.node}`;
|
|
719
|
-
me[k] !== te && (me[k] = te, J.setText(te), J.setColor(z.op === "read" ? "#38e8ff" : "#ffd27a")), J.setOpacity(B(1.4 - ae / 1.8));
|
|
720
|
-
}
|
|
721
|
-
k++;
|
|
722
|
-
}
|
|
723
|
-
for (; k < be; k++) {
|
|
724
|
-
const S = n.current[k];
|
|
725
|
-
S == null || S.setOpacity(0);
|
|
726
|
-
}
|
|
727
|
-
}), /* @__PURE__ */ F(he, { children: [
|
|
728
|
-
/* @__PURE__ */ y("lineSegments", { geometry: x, children: /* @__PURE__ */ y("lineBasicMaterial", { color: "#1fa865", transparent: !0, opacity: 0.55, toneMapped: !1 }) }),
|
|
729
|
-
/* @__PURE__ */ y("lineSegments", { geometry: s.lg, material: c, frustumCulled: !1 }),
|
|
730
|
-
/* @__PURE__ */ y("points", { geometry: s.g, material: u, frustumCulled: !1 }),
|
|
731
|
-
/* @__PURE__ */ y("primitive", { object: l.lines }),
|
|
732
|
-
/* @__PURE__ */ y("primitive", { object: l.arrows }),
|
|
733
|
-
Array.from({ length: be }, (v, f) => /* @__PURE__ */ y("group", { ref: (d) => void (h.current[f] = d), children: /* @__PURE__ */ y(re, { ref: (d) => void (n.current[f] = d), position: [0, 0, 0.45], text: "", font: "mono", plate: "box", letterSpacing: 0.05, size: 0.26, opacity: 0, pxRange: [7.5, 10.5], renderOrder: 22 }) }, f)),
|
|
734
|
-
/* @__PURE__ */ y(dt, { position: ue(Math.PI, _ + 0.9, 0, new r.Vector3()), prefix: "WPT waypoints · ", font: "mono", plate: "box", color: "#38e8ff", textColor: "#c8f7de", letterSpacing: 0.04, size: 0.3, pxRange: [8, 11.5] })
|
|
735
|
-
] });
|
|
736
|
-
}
|
|
737
|
-
const le = new r.Vector3();
|
|
738
|
-
function Jt(e) {
|
|
739
|
-
const o = I.r + 1.2;
|
|
740
|
-
e(le.set(o, 0, 0), 0.5), e(le.set(-o, 0, 0), 0.5), e(le.set(0, 0, o), 0.5), e(le.set(0, 0, -o), 0.5);
|
|
741
|
-
for (const t of Y.runs.values()) e(ue(Ae(t), I.r + 2.6, 0, le), 1.4);
|
|
742
|
-
}
|
|
743
|
-
function so() {
|
|
744
|
-
return /* @__PURE__ */ F(
|
|
745
|
-
ht,
|
|
746
|
-
{
|
|
747
|
-
title: "airport · radar scope",
|
|
748
|
-
subtitle: "Agents are flights (solid = thinking, hollow = waiting, amber ring = waiting on MCP) · subagents take off from their parent · rings = LLM pings sized by tokens · ✈ MCP airports with backend gates · △ waypoints = graph memory",
|
|
749
|
-
className: "ap-root",
|
|
750
|
-
preset: "radar",
|
|
751
|
-
plane: "xz",
|
|
752
|
-
camera: { position: [0, 29.5, 15.5], fov: 48 },
|
|
753
|
-
controls: { maxPolarAngle: 1.15 },
|
|
754
|
-
bg: "#010604",
|
|
755
|
-
gl: { antialias: !0 },
|
|
756
|
-
fit: { nRef: 6, min: 0.65, max: 1.9, minRadius: 5.5 },
|
|
757
|
-
agentRadius: 0.9,
|
|
758
|
-
graph: { natural: _ + 0.4, radius: 2.5 },
|
|
759
|
-
peripheryGap: 3.4,
|
|
760
|
-
Background: /* @__PURE__ */ y($t, {}),
|
|
761
|
-
Agent: Ft,
|
|
762
|
-
RunMarker: It,
|
|
763
|
-
McpServer: Pt,
|
|
764
|
-
Backend: zt,
|
|
765
|
-
GraphResource: Zt,
|
|
766
|
-
cluster: { radius: 1.2, variant: "stars", color: "#46ff9a" },
|
|
767
|
-
clusterOffset: [0, 0.9, 0],
|
|
768
|
-
extents: Jt,
|
|
769
|
-
PostFX: /* @__PURE__ */ F(Je, { multisampling: 0, children: [
|
|
770
|
-
/* @__PURE__ */ y(Qe, { mipmapBlur: !0, intensity: 0.95, luminanceThreshold: 0.22, luminanceSmoothing: 0.35, radius: 0.7 }),
|
|
771
|
-
/* @__PURE__ */ y(et, { eskil: !1, offset: 0.25, darkness: 0.85 })
|
|
772
|
-
] }),
|
|
773
|
-
children: [
|
|
774
|
-
/* @__PURE__ */ y(Ht, {}),
|
|
775
|
-
/* @__PURE__ */ y(Tt, {}),
|
|
776
|
-
/* @__PURE__ */ y(Dt, {}),
|
|
777
|
-
/* @__PURE__ */ y(_t, {})
|
|
778
|
-
]
|
|
779
|
-
}
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
export {
|
|
783
|
-
so as default
|
|
784
|
-
};
|