agentglow 0.2.10 → 0.2.11

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.
Files changed (28) hide show
  1. package/dist/chunks/{KitScene-Bm1I35Zc.js → KitScene-DG_pcnWW.js} +1273 -1195
  2. package/dist/chunks/{index-COLbf8XM.js → index-Agh7jdYu.js} +182 -182
  3. package/dist/chunks/{index-CGTp73GN.js → index-B2EHxcBQ.js} +400 -400
  4. package/dist/chunks/{index-D-r9aJ4u.js → index-B4Cqo621.js} +33 -33
  5. package/dist/chunks/index-BfQsJ0TH.js +751 -0
  6. package/dist/chunks/index-BmBGYhJS.js +891 -0
  7. package/dist/chunks/index-Bnn-x-aE.js +767 -0
  8. package/dist/chunks/{index-BWsSd_Wm.js → index-CTQTtm9q.js} +212 -212
  9. package/dist/chunks/{index-_IwfbZy7.js → index-CTZbUTDY.js} +62 -62
  10. package/dist/chunks/{index-cRPj-lzn.js → index-CdKvybsL.js} +284 -284
  11. package/dist/chunks/index-CeiIEWek.js +818 -0
  12. package/dist/chunks/{index-D4Wlmsay.js → index-Ci8tSMhc.js} +15 -15
  13. package/dist/chunks/{index-C2vLpNCb.js → index-Cls_VZdb.js} +100 -100
  14. package/dist/chunks/index-DFFRhihO.js +892 -0
  15. package/dist/chunks/index-DMCETM4H.js +605 -0
  16. package/dist/chunks/{index-AugvjZJN.js → index-URn4zDHp.js} +223 -223
  17. package/dist/chunks/index-u4rYZ1UO.js +495 -0
  18. package/dist/index.js +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/world.d.ts +30 -5
  21. package/package.json +1 -1
  22. package/dist/chunks/index-BAQDf-0T.js +0 -492
  23. package/dist/chunks/index-BRnLrSfZ.js +0 -605
  24. package/dist/chunks/index-CKyn9lcT.js +0 -753
  25. package/dist/chunks/index-CnoB0ZDk.js +0 -889
  26. package/dist/chunks/index-KmczAvvY.js +0 -818
  27. package/dist/chunks/index-Z4vdWCok.js +0 -763
  28. package/dist/chunks/index-uZGu9jzU.js +0 -887
@@ -4,7 +4,7 @@ var L = (e, n, r) => st(e, typeof n != "symbol" ? n + "" : n, r);
4
4
  import { jsxs as q, Fragment as de, jsx as g } from "react/jsx-runtime";
5
5
  import { EffectComposer as at, Bloom as it, Vignette as ct } from "@react-three/postprocessing";
6
6
  import * as t from "three";
7
- import { T as We, h as X, K as lt, k as je, w as N, a as ce, v as ft, E as ut, L as ye, G as dt, n as pt, c as qe, d as ht, F as Ye, R as mt, u as vt, o as gt, e as bt, s as wt, f as Ve, j as yt } from "./KitScene-Bm1I35Zc.js";
7
+ import { T as We, h as X, K as lt, n as je, w as N, a as ce, y as ft, J as ut, L as ye, G as dt, q as pt, c as qe, d as ht, N as Ye, R as mt, u as vt, t as gt, e as bt, s as wt, f as Ve, m as yt } from "./KitScene-DG_pcnWW.js";
8
8
  import { useThree as Re, useFrame as se } from "@react-three/fiber";
9
9
  import { useMemo as P, useRef as T, useEffect as Mt } from "react";
10
10
  var et;
@@ -55,7 +55,7 @@ function be(e, n, r, o, c) {
55
55
  const h = n.x - e.x, p = n.y - e.y, y = Math.hypot(h, p) || 1;
56
56
  return c.copy(e).add(n).multiplyScalar(0.5), c.x += -p / y * r, c.y += h / y * r, c.z += o, c;
57
57
  }
58
- const Fe = class Fe {
58
+ const Ge = class Ge {
59
59
  constructor(n) {
60
60
  L(this, "mesh");
61
61
  L(this, "colors");
@@ -69,14 +69,14 @@ const Fe = class Fe {
69
69
  this.n = 0;
70
70
  }
71
71
  add(n, r, o, c, h, p, y, A) {
72
- this.n >= this.max || A < 0.01 || (fe(n, r, o, c, this.a), fe(n, r, o, Z(c + 0.02 * h), this.b), this.b.sub(this.a), !(this.b.lengthSq() < 1e-9) && (this.o.position.copy(this.a), this.o.quaternion.setFromUnitVectors(Fe.UP, this.b.normalize()), this.o.scale.set(p * 0.32, p, p * 0.32), this.o.updateMatrix(), this.mesh.setMatrixAt(this.n, this.o.matrix), this.colors[this.n * 3] = y.r * A, this.colors[this.n * 3 + 1] = y.g * A, this.colors[this.n * 3 + 2] = y.b * A, this.n++));
72
+ this.n >= this.max || A < 0.01 || (fe(n, r, o, c, this.a), fe(n, r, o, Z(c + 0.02 * h), this.b), this.b.sub(this.a), !(this.b.lengthSq() < 1e-9) && (this.o.position.copy(this.a), this.o.quaternion.setFromUnitVectors(Ge.UP, this.b.normalize()), this.o.scale.set(p * 0.32, p, p * 0.32), this.o.updateMatrix(), this.mesh.setMatrixAt(this.n, this.o.matrix), this.colors[this.n * 3] = y.r * A, this.colors[this.n * 3 + 1] = y.g * A, this.colors[this.n * 3 + 2] = y.b * A, this.n++));
73
73
  }
74
74
  end() {
75
75
  this.mesh.count = this.n, this.mesh.instanceMatrix.needsUpdate = !0, this.mesh.instanceColor.needsUpdate = !0;
76
76
  }
77
77
  };
78
- L(Fe, "UP", new t.Vector3(0, 1, 0));
79
- let ze = Fe;
78
+ L(Ge, "UP", new t.Vector3(0, 1, 0));
79
+ let ze = Ge;
80
80
  class De {
81
81
  constructor(n, r = 32) {
82
82
  L(this, "geo", new t.BufferGeometry());
@@ -127,7 +127,7 @@ void main(){ float r = length(gl_PointCoord - 0.5) * 2.0; if (r > 1.0) discard;
127
127
  float core = smoothstep(0.35, 0.0, r); float halo = pow(1.0 - r, 2.6);
128
128
  gl_FragColor = vec4(vC * (core * 1.4 + halo * 0.5), 1.0); }`
129
129
  );
130
- class Ge {
130
+ class Fe {
131
131
  constructor(n) {
132
132
  L(this, "geo", new t.BufferGeometry());
133
133
  L(this, "mat", new t.ShaderMaterial({ uniforms: { uScale: { value: 400 } }, vertexShader: Rt, fragmentShader: Bt, transparent: !0, depthWrite: !1, blending: t.AdditiveBlending }));
@@ -189,7 +189,7 @@ void main(){
189
189
  `
190
190
  attribute float aSize; attribute vec3 aColor; uniform float uScale; varying vec3 vC;
191
191
  void main(){ vec4 mv = modelViewMatrix * vec4(position, 1.0); vC = aColor; gl_PointSize = aSize * uScale / -mv.z; gl_Position = projectionMatrix * mv; }`
192
- ), Ft = (
192
+ ), Gt = (
193
193
  /* glsl */
194
194
  `
195
195
  varying vec3 vC;
@@ -197,7 +197,7 @@ void main(){ float r = length(gl_PointCoord - 0.5) * 2.0; if (r > 1.0) discard;
197
197
  float core = smoothstep(0.4, 0.0, r); float halo = pow(1.0 - r, 2.4);
198
198
  gl_FragColor = vec4(vC * (core * 1.25 + halo * 0.4), 1.0); }`
199
199
  );
200
- function Gt({ galaxy: e }) {
200
+ function Ft({ galaxy: e }) {
201
201
  const n = P(() => ({ nodes: e.nodes.slice(0, Tt), links: e.links }), [e]), r = n.nodes.length, { size: o, gl: c, camera: h } = Re(), p = T([]), y = T([]), A = T(Array(Te).fill("")), z = T([]), S = P(() => {
202
202
  const s = new Float32Array(r * 3), f = -0.18, m = Math.cos(f), w = Math.sin(f);
203
203
  n.nodes.forEach((R, j) => {
@@ -214,10 +214,10 @@ function Gt({ galaxy: e }) {
214
214
  });
215
215
  const B = n.nodes.map((R) => new t.Color(lt[R.kind] ?? "#94a3b8").lerp(Vt, 0.55).multiplyScalar(0.5)), U = n.nodes.map((R) => 0.32 + Math.pow(X(R.id, 5), 4) * 0.5), V = new t.BufferGeometry();
216
216
  V.setAttribute("position", new t.BufferAttribute(s, 3)), V.setAttribute("aSize", new t.BufferAttribute(new Float32Array(r), 1)), V.setAttribute("aColor", new t.BufferAttribute(new Float32Array(r * 3), 3));
217
- const k = new Map(n.nodes.map((R, j) => [R.id, j])), E = [], G = new t.Vector3(), F = new t.Vector3();
217
+ const k = new Map(n.nodes.map((R, j) => [R.id, j])), E = [], F = new t.Vector3(), G = new t.Vector3();
218
218
  for (const R of n.links) {
219
219
  const j = k.get(R.source), I = k.get(R.target);
220
- j === void 0 || I === void 0 || j === I || (G.fromArray(s, j * 3), F.fromArray(s, I * 3), G.distanceTo(F) < 3.2 && E.push(j, I));
220
+ j === void 0 || I === void 0 || j === I || (F.fromArray(s, j * 3), G.fromArray(s, I * 3), F.distanceTo(G) < 3.2 && E.push(j, I));
221
221
  }
222
222
  const _ = new Float32Array(E.length * 3);
223
223
  E.forEach((R, j) => _.set([s[R * 3], s[R * 3 + 1], s[R * 3 + 2]], j * 3));
@@ -226,24 +226,24 @@ function Gt({ galaxy: e }) {
226
226
  }, [n, r]), b = P(
227
227
  () => ({
228
228
  gas: new t.ShaderMaterial({ uniforms: { uTime: { value: 0 }, uAct: { value: 0 } }, vertexShader: _t, fragmentShader: jt, transparent: !0, depthWrite: !1, blending: t.AdditiveBlending }),
229
- nodes: new t.ShaderMaterial({ uniforms: { uScale: { value: 400 } }, vertexShader: Ot, fragmentShader: Ft, transparent: !0, depthWrite: !1, blending: t.AdditiveBlending }),
229
+ nodes: new t.ShaderMaterial({ uniforms: { uScale: { value: 400 } }, vertexShader: Ot, fragmentShader: Gt, transparent: !0, depthWrite: !1, blending: t.AdditiveBlending }),
230
230
  fil: new t.LineBasicMaterial({ vertexColors: !0, transparent: !0, blending: t.AdditiveBlending, depthWrite: !1, toneMapped: !1 }),
231
231
  ripples: Array.from({ length: Ie }, () => le(tt(), "#000"))
232
232
  }),
233
233
  []
234
- ), u = P(() => new De(Ee, 24), []), M = P(() => new ze(Ee), []), a = P(() => new Ge(Ee), []), l = P(() => /* @__PURE__ */ new Map(), [n]), i = P(() => ({ v: new t.Vector3(), w: new t.Vector3(), ctrl: new t.Vector3(), h: new t.Vector3(), c: new t.Color(), act: 0 }), []), x = (s) => {
234
+ ), u = P(() => new De(Ee, 24), []), M = P(() => new ze(Ee), []), a = P(() => new Fe(Ee), []), l = P(() => /* @__PURE__ */ new Map(), [n]), i = P(() => ({ v: new t.Vector3(), w: new t.Vector3(), ctrl: new t.Vector3(), h: new t.Vector3(), c: new t.Color(), act: 0 }), []), x = (s) => {
235
235
  let f = l.get(s);
236
236
  return f === void 0 && l.set(s, f = pt(n, s)), f;
237
237
  };
238
238
  return se(({ clock: s }) => {
239
239
  const f = performance.now(), m = Math.max(1e-4, je.graph.scale), w = Q ? 0 : s.elapsedTime, B = h.fov, U = c.getPixelRatio();
240
240
  b.nodes.uniforms.uScale.value = o.height * U / (2 * Math.tan(B * Math.PI / 360)) * je.graph.scale * 1.7, a.setScale(o.height, U, B);
241
- const { pos: V, base: k, baseSize: E, fire: G, white: F, fireC: _, phase: D } = S, { v: R, w: j, ctrl: I, h: H, c: O } = i;
242
- G.fill(0), F.fill(0), u.begin(), M.begin(), a.begin();
241
+ const { pos: V, base: k, baseSize: E, fire: F, white: G, fireC: _, phase: D } = S, { v: R, w: j, ctrl: I, h: H, c: O } = i;
242
+ F.fill(0), G.fill(0), u.begin(), M.begin(), a.begin();
243
243
  let Y = 0, $ = 0;
244
244
  for (const v of N.flares) {
245
245
  const C = x(v.node), W = (f - v.start) / 1e3, me = N.instances.get(v.instance), ue = me ? Oe[me.type] : Ce, oe = v.op === "write", ee = W < 0.3 ? W / 0.3 : Math.exp(-(W - 0.3) * 1.1);
246
- if ($ = Math.max($, ee), ee > G[C] && (G[C] = ee, _[C].copy(oe ? K : ue), F[C] = oe ? 1 : 0), R.fromArray(V, C * 3), oe && W < 1.6 && Y < Ie) {
246
+ if ($ = Math.max($, ee), ee > F[C] && (F[C] = ee, _[C].copy(oe ? K : ue), G[C] = oe ? 1 : 0), R.fromArray(V, C * 3), oe && W < 1.6 && Y < Ie) {
247
247
  const re = z.current[Y];
248
248
  if (re) {
249
249
  const ie = W / 1.6;
@@ -265,13 +265,13 @@ function Gt({ galaxy: e }) {
265
265
  u.end(), M.end(), a.end(), i.act += ($ - i.act) * 0.05, b.gas.uniforms.uTime.value = w, b.gas.uniforms.uAct.value = i.act;
266
266
  const ae = S.ngeo.getAttribute("aSize"), te = S.ngeo.getAttribute("aColor");
267
267
  for (let v = 0; v < r; v++) {
268
- const C = G[v], W = Q ? 1 : 0.85 + 0.15 * Math.sin(w * 0.9 + D[v]);
269
- ae.setX(v, E[v] + C * (0.9 + F[v] * 0.5)), O.copy(k[v]).multiplyScalar(W), C > 0.01 && (O.r += _[v].r * C * 1.5 + C * (0.25 + F[v]), O.g += _[v].g * C * 1.5 + C * (0.25 + F[v]), O.b += _[v].b * C * 1.5 + C * (0.25 + F[v])), te.setXYZ(v, O.r, O.g, O.b);
268
+ const C = F[v], W = Q ? 1 : 0.85 + 0.15 * Math.sin(w * 0.9 + D[v]);
269
+ ae.setX(v, E[v] + C * (0.9 + G[v] * 0.5)), O.copy(k[v]).multiplyScalar(W), C > 0.01 && (O.r += _[v].r * C * 1.5 + C * (0.25 + G[v]), O.g += _[v].g * C * 1.5 + C * (0.25 + G[v]), O.b += _[v].b * C * 1.5 + C * (0.25 + G[v])), te.setXYZ(v, O.r, O.g, O.b);
270
270
  }
271
271
  ae.needsUpdate = !0, te.needsUpdate = !0;
272
272
  const pe = S.lgeo.getAttribute("color"), he = S.owner;
273
273
  for (let v = 0; v < he.length; v++) {
274
- const C = Math.max(G[he[v]], G[he[v ^ 1]]);
274
+ const C = Math.max(F[he[v]], F[he[v ^ 1]]);
275
275
  pe.setXYZ(v, 0.05 + C * 0.35, 0.06 + C * 0.38, 0.13 + C * 0.5);
276
276
  }
277
277
  pe.needsUpdate = !0;
@@ -357,18 +357,18 @@ function Nt({ mcp: e, backend: n }) {
357
357
  const d = performance.now();
358
358
  (k = b.current) == null || k.position.copy(n.pos), u.current && !Q && (u.current.rotation.y = x.elapsedTime * 0.3 * S), Me.subVectors(n.pos, e.pos);
359
359
  const s = Math.hypot(Me.x, Me.y), f = Math.atan2(Me.y, Me.x), m = A.getAttribute("position");
360
- for (let G = 0; G <= Le; G++) {
361
- const F = f + (G / Le - 0.5) * 2 * Lt;
362
- m.setXYZ(G, e.pos.x + Math.cos(F) * s, e.pos.y + Math.sin(F) * s, n.pos.z);
360
+ for (let F = 0; F <= Le; F++) {
361
+ const G = f + (F / Le - 0.5) * 2 * Lt;
362
+ m.setXYZ(F, e.pos.x + Math.cos(G) * s, e.pos.y + Math.sin(G) * s, n.pos.z);
363
363
  }
364
364
  m.needsUpdate = !0;
365
365
  const w = o.inflight > 0, B = Math.exp(-((d - o.activeAt) / 1e3) * 1.4), U = w ? 0.5 + 0.5 * Math.sin(x.elapsedTime * 5) : 0;
366
366
  h.uniforms.uAct.value = w ? 1 : B, h.uniforms.uGlow.value = w ? 0.8 + U * 0.5 : B * 0.6, h.uniforms.uCol.value.copy(Ze).lerp(c, w ? 0.6 : B * 0.5), p.color.copy(c).lerp(K, 0.3).multiplyScalar(w ? 0.55 + U * 0.25 : B * 0.35), (E = M.current) == null || E.scale.setScalar(w ? 2.6 + U * 0.4 : 1.6 + B), y.color.copy(c).lerp(K, 0.3).multiplyScalar(0.16 + (w ? 0.2 : B * 0.12));
367
367
  let V = o.name;
368
368
  if (w) {
369
- let G = "";
370
- for (const F of N.mcpPending.values()) F.server === r.name && F.resource === o.name && (G = F.tool);
371
- V = `${o.name} ▶ ${G || "query"}()`;
369
+ let F = "";
370
+ for (const G of N.mcpPending.values()) G.server === r.name && G.resource === o.name && (F = G.tool);
371
+ V = `${o.name} ▶ ${F || "query"}()`;
372
372
  } else B > 0.25 && o.calls > 0 && (V = `${o.name} ✓`);
373
373
  a.current && (V !== l.current && a.current.setText(l.current = V), a.current.setOpacity(w ? 1 : 0.5 + B * 0.5), a.current.setEmphasis(w));
374
374
  });
@@ -407,7 +407,7 @@ function kt({ mcp: e }) {
407
407
  }
408
408
  const Ne = 48;
409
409
  function Ut() {
410
- const { size: e, gl: n, camera: r } = Re(), o = P(() => new De(Ne, 36), []), c = P(() => new ze(Ne), []), h = P(() => new Ge(Ne), []), p = P(() => ({ a: new t.Vector3(), b: new t.Vector3(), c: new t.Vector3(), h: new t.Vector3(), col: new t.Color() }), []);
410
+ const { size: e, gl: n, camera: r } = Re(), o = P(() => new De(Ne, 36), []), c = P(() => new ze(Ne), []), h = P(() => new Fe(Ne), []), p = P(() => ({ a: new t.Vector3(), b: new t.Vector3(), c: new t.Vector3(), h: new t.Vector3(), col: new t.Color() }), []);
411
411
  return se(({ clock: y }) => {
412
412
  const A = performance.now(), z = Q ? 0 : y.elapsedTime;
413
413
  h.setScale(e.height, n.getPixelRatio(), r.fov), o.begin(), c.begin(), h.begin();
@@ -490,7 +490,7 @@ function Dt() {
490
490
  const { size: e, gl: n, camera: r } = Re(), o = T(/* @__PURE__ */ new Set()), c = T([]), h = T([]), p = T([]), y = T([]), A = P(() => {
491
491
  const u = new t.BufferGeometry();
492
492
  return u.setAttribute("position", new t.BufferAttribute(new Float32Array(ve * xe * ge * 6), 3)), u.setAttribute("color", new t.BufferAttribute(new Float32Array(ve * xe * ge * 6), 3)), u.boundingSphere = new t.Sphere(new t.Vector3(), 1e4), u;
493
- }, []), z = P(() => ot(), []), S = P(() => new Ge(ve * (2 + Se)), []), b = P(() => ({ h: new t.Vector3(), p: new t.Vector3() }), []);
493
+ }, []), z = P(() => ot(), []), S = P(() => new Fe(ve * (2 + Se)), []), b = P(() => ({ h: new t.Vector3(), p: new t.Vector3() }), []);
494
494
  return se(() => {
495
495
  const u = performance.now();
496
496
  for (const d of N.runs.values()) {
@@ -519,14 +519,14 @@ function Dt() {
519
519
  f && m && (m.position.copy(s.from).add(x.set(0, -2.3, 0)), y.current[d] !== s.run + s.start && (y.current[d] = s.run + s.start, f.setText(`final answer - ${s.text.length > 64 ? s.text.slice(0, 62) + "…" : s.text}`)), f.setOpacity(Z(w / 0.3) * Z((5.2 - w) / 1.2)));
520
520
  const B = w / Xt;
521
521
  if (B >= 1.25) continue;
522
- const U = s.travel * (Q ? 0.6 : 1), V = U * we(Math.min(1, B)), k = Math.min(7.5, U * 0.4) * Math.min(1, B * 3) * (B > 1 ? Math.max(0, 1 - (B - 1) / 0.25) : 1), E = B > 1 ? Math.max(0, 1 - (B - 1) / 0.25) : 1, G = -s.dir.y, F = s.dir.x;
522
+ const U = s.travel * (Q ? 0.6 : 1), V = U * we(Math.min(1, B)), k = Math.min(7.5, U * 0.4) * Math.min(1, B * 3) * (B > 1 ? Math.max(0, 1 - (B - 1) / 0.25) : 1), E = B > 1 ? Math.max(0, 1 - (B - 1) / 0.25) : 1, F = -s.dir.y, G = s.dir.x;
523
523
  for (let _ = 0; _ < xe; _++)
524
524
  for (let D = 0; D < ge; D++)
525
525
  for (let R = 0; R < 2; R++) {
526
526
  const j = (D + R) / ge, I = (_ - 1) * 0.05 * (1 - j);
527
527
  x.copy(s.from).addScaledVector(s.dir, V - k * (1 - j));
528
528
  const H = ((l * xe + _) * ge + D) * 2 + R;
529
- M.setXYZ(H, x.x + G * I, x.y + F * I, x.z);
529
+ M.setXYZ(H, x.x + F * I, x.y + G * I, x.z);
530
530
  const O = Math.pow(j, 2) * (_ === 1 ? 2.6 : 1.2) * E;
531
531
  a.setXYZ(H, s.color.r * O, s.color.g * O, s.color.b * O);
532
532
  }
@@ -651,17 +651,17 @@ function to({ agent: e, selected: n, onSelect: r }) {
651
651
  e.live.set(e.pos.x + Math.sin(m * 0.21 + M * 20) * w, e.pos.y + Math.cos(m * 0.17 + M * 13) * w, e.pos.z);
652
652
  const B = e.scale;
653
653
  c.current && (c.current.position.copy(e.live), c.current.scale.setScalar(Math.max(1e-4, B))), (he = b.current) == null || he.position.set(e.live.x, e.live.y - 0.95 * B - 0.35, e.live.z);
654
- const U = (f - o.bornAt) / 1e3, V = o.parent && N.instances.has(o.parent) ? Ue * 0.85 : 0.05, k = Z((U - V) / 0.55), E = we(k), G = k > 0 ? Math.exp(-(U - V) * 3.2) : 0, F = o.exitAt ? (f - o.exitAt) / 1e3 : -1, _ = F >= 0 ? Ae(F / 0.7) : 0, D = F >= 0 ? Z((F - 0.7) / 1.7) : 0, R = F < 0;
654
+ const U = (f - o.bornAt) / 1e3, V = o.parent && N.instances.has(o.parent) ? Ue * 0.85 : 0.05, k = Z((U - V) / 0.55), E = we(k), F = k > 0 ? Math.exp(-(U - V) * 3.2) : 0, G = o.exitAt ? (f - o.exitAt) / 1e3 : -1, _ = G >= 0 ? Ae(G / 0.7) : 0, D = G >= 0 ? Z((G - 0.7) / 1.7) : 0, R = G < 0;
655
655
  o.llmCalls !== i.calls && (i.calls = o.llmCalls, i.flareAt = f, i.flareK = o.pulse);
656
656
  const j = (f - i.flareAt) / 1e3, I = bt(o, f);
657
657
  let H = !1;
658
658
  for (const v of N.mcpPending.values()) v.instance === o.id && (H = !0);
659
- const O = R && (o.status === "thinking" || o.status === "spawning"), Y = Q ? 0 : 1, $ = 1 + (O ? 0.16 : 0.05) * Math.sin(m * 3.3 + M * 40) * Math.sin(m * 1.9 + M * 17) * Y, ae = (O ? 1 : 0.62) * $ + I * 0.25 + G * 1.2;
659
+ const O = R && (o.status === "thinking" || o.status === "spawning"), Y = Q ? 0 : 1, $ = 1 + (O ? 0.16 : 0.05) * Math.sin(m * 3.3 + M * 40) * Math.sin(m * 1.9 + M * 17) * Y, ae = (O ? 1 : 0.62) * $ + I * 0.25 + F * 1.2;
660
660
  i.c.copy(a), R || i.c.lerp(o.status === "failed" ? Qt : Jt, _);
661
661
  const te = (1 - _ * 0.8) * (1 - D), pe = E * (1 - _ * 0.62);
662
662
  if (y.current && (y.current.scale.setScalar(Math.max(1e-4, pe * (0.95 + I * 0.12))), l.core.color.copy(K).lerp(i.c, _).multiplyScalar(Math.min(1.6, ae) * te)), h.current && (h.current.scale.setScalar(Math.max(1e-4, pe * (O ? 3.4 : 2.7) * (1 + I * 0.18))), l.halo.color.copy(i.c).multiplyScalar(0.42 * ae * te)), p.current) {
663
663
  const v = j < 1.2 ? Math.exp(-j * 2.6) * i.flareK * 0.5 : 0, C = (O ? 1 : 0.55) * (1 - _);
664
- p.current.scale.setScalar(Math.max(1e-4, pe * (3 + I * 1.2 + v * 4 + G * 3))), l.spikes.color.copy(i.c).lerp(K, 0.3).multiplyScalar((0.55 * C * $ + I * 0.25 + v * 0.6 + G) * te);
664
+ p.current.scale.setScalar(Math.max(1e-4, pe * (3 + I * 1.2 + v * 4 + F * 3))), l.spikes.color.copy(i.c).lerp(K, 0.3).multiplyScalar((0.55 * C * $ + I * 0.25 + v * 0.6 + F) * te);
665
665
  }
666
666
  if (A.current) {
667
667
  const v = j < 1.1 && R;
@@ -707,7 +707,7 @@ function to({ agent: e, selected: n, onSelect: r }) {
707
707
  }
708
708
  const Je = 96, Qe = 32;
709
709
  function oo() {
710
- const { size: e, gl: n, camera: r } = Re(), o = P(() => new De(Je + Qe, 28), []), c = P(() => new ze(Je), []), h = P(() => new Ge(Qe), []), p = P(() => /* @__PURE__ */ new Map(), []), y = P(() => ({ ctrl: new t.Vector3(), h: new t.Vector3(), col: new t.Color(), a: new t.Vector3(), b: new t.Vector3() }), []);
710
+ const { size: e, gl: n, camera: r } = Re(), o = P(() => new De(Je + Qe, 28), []), c = P(() => new ze(Je), []), h = P(() => new Fe(Qe), []), p = P(() => /* @__PURE__ */ new Map(), []), y = P(() => ({ ctrl: new t.Vector3(), h: new t.Vector3(), col: new t.Color(), a: new t.Vector3(), b: new t.Vector3() }), []);
711
711
  return se(({ clock: A }) => {
712
712
  const z = performance.now(), S = Q ? 0 : A.elapsedTime;
713
713
  h.setScale(e.height, n.getPixelRatio(), r.fov), o.begin(), c.begin(), h.begin();
@@ -773,7 +773,7 @@ function fo() {
773
773
  RunMarker: Wt,
774
774
  McpServer: kt,
775
775
  Backend: Nt,
776
- GraphResource: Gt,
776
+ GraphResource: Ft,
777
777
  cluster: { radius: 1.5, variant: "stars", glowGain: 0.9 },
778
778
  PostFX: /* @__PURE__ */ q(at, { multisampling: 0, children: [
779
779
  /* @__PURE__ */ g(it, { mipmapBlur: !0, intensity: 0.95, luminanceThreshold: 0.22, luminanceSmoothing: 0.35, radius: 0.7 }),