agentglow 0.2.9 → 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.
- package/dist/chunks/{KitScene-Bm1I35Zc.js → KitScene-DG_pcnWW.js} +1273 -1195
- package/dist/chunks/{index-COLbf8XM.js → index-Agh7jdYu.js} +182 -182
- package/dist/chunks/{index-CGTp73GN.js → index-B2EHxcBQ.js} +400 -400
- package/dist/chunks/{index-D-r9aJ4u.js → index-B4Cqo621.js} +33 -33
- package/dist/chunks/index-BfQsJ0TH.js +751 -0
- package/dist/chunks/index-BmBGYhJS.js +891 -0
- package/dist/chunks/index-Bnn-x-aE.js +767 -0
- package/dist/chunks/{index-BWsSd_Wm.js → index-CTQTtm9q.js} +212 -212
- package/dist/chunks/{index-_IwfbZy7.js → index-CTZbUTDY.js} +62 -62
- package/dist/chunks/{index-cRPj-lzn.js → index-CdKvybsL.js} +284 -284
- package/dist/chunks/index-CeiIEWek.js +818 -0
- package/dist/chunks/{index-D4Wlmsay.js → index-Ci8tSMhc.js} +15 -15
- package/dist/chunks/{index-C2vLpNCb.js → index-Cls_VZdb.js} +100 -100
- package/dist/chunks/index-DFFRhihO.js +892 -0
- package/dist/chunks/index-DMCETM4H.js +605 -0
- package/dist/chunks/{index-AugvjZJN.js → index-URn4zDHp.js} +223 -223
- package/dist/chunks/index-u4rYZ1UO.js +495 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/world.d.ts +30 -5
- package/package.json +1 -1
- package/dist/chunks/index-BAQDf-0T.js +0 -492
- package/dist/chunks/index-BRnLrSfZ.js +0 -605
- package/dist/chunks/index-CKyn9lcT.js +0 -753
- package/dist/chunks/index-CnoB0ZDk.js +0 -889
- package/dist/chunks/index-KmczAvvY.js +0 -818
- package/dist/chunks/index-Z4vdWCok.js +0 -763
- package/dist/chunks/index-uZGu9jzU.js +0 -887
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var me = (e, a, t) =>
|
|
1
|
+
var Vt = Object.defineProperty;
|
|
2
|
+
var _t = (e, a, t) => a in e ? Vt(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
|
|
3
|
+
var me = (e, a, t) => _t(e, typeof a != "symbol" ? a + "" : a, t);
|
|
4
4
|
import { jsxs as H, Fragment as de, jsx as w } from "react/jsx-runtime";
|
|
5
|
-
import { EffectComposer as
|
|
6
|
-
import { useFrame as fe, useThree as
|
|
7
|
-
import { useMemo as R, useRef as F, useState as
|
|
5
|
+
import { EffectComposer as Ot, Bloom as Et, Vignette as Lt } from "@react-three/postprocessing";
|
|
6
|
+
import { useFrame as fe, useThree as mt } from "@react-three/fiber";
|
|
7
|
+
import { useMemo as R, useRef as F, useState as dt, useEffect as It } from "react";
|
|
8
8
|
import * as n from "three";
|
|
9
|
-
import { T as
|
|
10
|
-
var
|
|
11
|
-
const ne = typeof window < "u" && !!((
|
|
12
|
-
Object.entries(
|
|
9
|
+
import { T as vt, n as ge, h as Ie, w as W, L as Re, d as Wt, a as We, c as Xt, K as kt, o as Dt, G as Yt, q as Ht, I as Nt, p as Kt, e as jt, s as Ut, v as qt, f as at, R as $t, j as je, u as Zt, t as Jt, m as Qt } from "./KitScene-DG_pcnWW.js";
|
|
10
|
+
var pt;
|
|
11
|
+
const ne = typeof window < "u" && !!((pt = window.matchMedia) != null && pt.call(window, "(prefers-reduced-motion: reduce)").matches), ht = new n.Color("#a855f7"), Ye = new n.Color("#2dd4bf"), ue = new n.Color(1, 1, 1), gt = new n.Color("#fbbf24"), wt = new n.Color("#ff3b5c"), eo = new n.Color("#3b3346"), Pe = Object.fromEntries(
|
|
12
|
+
Object.entries(vt).map(([e, a]) => {
|
|
13
13
|
const t = new n.Color(a);
|
|
14
|
-
return [e, t.lerp(e === "graph_scout" || e === "writer" ? Ye :
|
|
14
|
+
return [e, t.lerp(e === "graph_scout" || e === "writer" ? Ye : ht, 0.18)];
|
|
15
15
|
})
|
|
16
|
-
), re = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ye = (e) => 1 - Math.pow(1 - re(e), 3), He = (e) => (e = re(e), e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2),
|
|
16
|
+
), re = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ye = (e) => 1 - Math.pow(1 - re(e), 3), He = (e) => (e = re(e), e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2), to = (e) => {
|
|
17
17
|
e = re(e);
|
|
18
18
|
const a = 1.9;
|
|
19
19
|
return 1 + (a + 1) * Math.pow(e - 1, 3) + a * Math.pow(e - 1, 2);
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function rt(e, a, t) {
|
|
22
22
|
return e.r += a.r * t, e.g += a.g * t, e.b += a.b * t, e;
|
|
23
23
|
}
|
|
24
24
|
let Oe = null;
|
|
25
|
-
function
|
|
25
|
+
function yt() {
|
|
26
26
|
if (Oe) return Oe;
|
|
27
27
|
const e = document.createElement("canvas");
|
|
28
28
|
e.width = e.height = 128;
|
|
@@ -30,17 +30,17 @@ function wt() {
|
|
|
30
30
|
return t.addColorStop(0, "rgba(255,255,255,1)"), t.addColorStop(0.18, "rgba(255,255,255,0.55)"), t.addColorStop(0.5, "rgba(255,255,255,0.12)"), t.addColorStop(1, "rgba(255,255,255,0)"), a.fillStyle = t, a.fillRect(0, 0, 128, 128), Oe = new n.CanvasTexture(e), Oe;
|
|
31
31
|
}
|
|
32
32
|
function Fe(e = "#fff") {
|
|
33
|
-
return new n.SpriteMaterial({ map:
|
|
33
|
+
return new n.SpriteMaterial({ map: yt(), color: e, blending: n.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 });
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return new n.MeshBasicMaterial({ map:
|
|
35
|
+
function tt(e = "#fff") {
|
|
36
|
+
return new n.MeshBasicMaterial({ map: yt(), color: e, blending: n.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 });
|
|
37
37
|
}
|
|
38
38
|
function Xe(e = "#fff") {
|
|
39
39
|
return new n.MeshBasicMaterial({ color: e, blending: n.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 });
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const ot = new n.PlaneGeometry(1, 1).rotateX(-Math.PI / 2);
|
|
42
42
|
new n.SphereGeometry(1, 24, 16);
|
|
43
|
-
const
|
|
43
|
+
const bt = new n.ConeGeometry(1, 1, 12).translate(0, 0.5, 0), Mt = new n.RingGeometry(0.86, 1, 64, 1).rotateX(-Math.PI / 2), st = new n.LatheGeometry(
|
|
44
44
|
[
|
|
45
45
|
[0.86, -0.07],
|
|
46
46
|
[0.97, -0.02],
|
|
@@ -53,7 +53,7 @@ const yt = new n.ConeGeometry(1, 1, 12).translate(0, 0.5, 0), bt = new n.RingGeo
|
|
|
53
53
|
[0, 0.57]
|
|
54
54
|
].map(([e, a]) => new n.Vector2(e, a)),
|
|
55
55
|
48
|
|
56
|
-
),
|
|
56
|
+
), oo = new n.RingGeometry(0.1, 0.9, 64, 3).rotateX(Math.PI / 2).translate(0, -0.035, 0), it = new n.LatheGeometry(
|
|
57
57
|
[
|
|
58
58
|
[0, 0],
|
|
59
59
|
[0.26, 0],
|
|
@@ -66,7 +66,7 @@ const yt = new n.ConeGeometry(1, 1, 12).translate(0, 0.5, 0), bt = new n.RingGeo
|
|
|
66
66
|
].map(([e, a]) => new n.Vector2(e, a)),
|
|
67
67
|
20
|
|
68
68
|
);
|
|
69
|
-
function
|
|
69
|
+
function no(e = 72, a = 6) {
|
|
70
70
|
const t = [], o = [];
|
|
71
71
|
for (let r = 0; r <= e; r++) {
|
|
72
72
|
const u = r / e;
|
|
@@ -83,7 +83,7 @@ function oo(e = 72, a = 6) {
|
|
|
83
83
|
const s = new n.BufferGeometry();
|
|
84
84
|
return s.setAttribute("position", new n.Float32BufferAttribute(t, 3)), s.setIndex(o), s.boundingSphere = new n.Sphere(new n.Vector3(), 1e4), s;
|
|
85
85
|
}
|
|
86
|
-
const Ne =
|
|
86
|
+
const Ne = no(), ao = (
|
|
87
87
|
/* glsl */
|
|
88
88
|
`
|
|
89
89
|
uniform vec3 uP0; uniform vec3 uP1; uniform vec3 uP2; uniform float uWob; uniform float uSeed;
|
|
@@ -95,20 +95,20 @@ vec3 hyphaAt(float t){
|
|
|
95
95
|
float w = sin(t * 9.0 + uSeed * 6.283) * 0.6 + sin(t * 17.0 + uSeed * 3.1) * 0.4;
|
|
96
96
|
return p + side * w * uWob * sin(3.14159 * t);
|
|
97
97
|
}`
|
|
98
|
-
),
|
|
98
|
+
), Ue = new n.Vector3();
|
|
99
99
|
function Ge(e, a, t, o, s, r, u) {
|
|
100
100
|
const m = 1 - r;
|
|
101
101
|
if (u.set(m * m * e.x + 2 * m * r * a.x + r * r * t.x, m * m * e.y + 2 * m * r * a.y + r * r * t.y, m * m * e.z + 2 * m * r * a.z + r * r * t.z), o === 0) return u;
|
|
102
|
-
|
|
103
|
-
const f = -
|
|
102
|
+
Ue.set(2 * m * (a.x - e.x) + 2 * r * (t.x - a.x), 0, 2 * m * (a.z - e.z) + 2 * r * (t.z - a.z));
|
|
103
|
+
const f = -Ue.z + 1e-5, g = Ue.x + 1e-5, v = Math.hypot(f, 1e-5, g) || 1, i = (Math.sin(r * 9 + s * 6.283) * 0.6 + Math.sin(r * 17 + s * 3.1) * 0.4) * o * Math.sin(Math.PI * r);
|
|
104
104
|
return u.x += f / v * i, u.z += g / v * i, u;
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const ro = (
|
|
107
107
|
/* glsl */
|
|
108
108
|
`
|
|
109
109
|
uniform float uRadius; uniform float uTaper;
|
|
110
110
|
varying float vT; varying float vRim;
|
|
111
|
-
${
|
|
111
|
+
${ao}
|
|
112
112
|
void main(){
|
|
113
113
|
float t = position.x;
|
|
114
114
|
vec3 p = hyphaAt(t);
|
|
@@ -123,7 +123,7 @@ void main(){
|
|
|
123
123
|
vT = t;
|
|
124
124
|
gl_Position = projectionMatrix * mv;
|
|
125
125
|
}`
|
|
126
|
-
),
|
|
126
|
+
), so = (
|
|
127
127
|
/* glsl */
|
|
128
128
|
`
|
|
129
129
|
uniform vec3 uColor; uniform float uOpacity; uniform float uGrow; uniform float uStart; uniform float uTime;
|
|
@@ -170,14 +170,14 @@ function Ke(e = "#fff", a = 0.06, t = 0.45, o = 0, s = 0.25) {
|
|
|
170
170
|
uTail: { value: 0.12 },
|
|
171
171
|
uHeadColor: { value: new n.Color(3, 3, 3) }
|
|
172
172
|
},
|
|
173
|
-
vertexShader:
|
|
174
|
-
fragmentShader:
|
|
173
|
+
vertexShader: ro,
|
|
174
|
+
fragmentShader: so,
|
|
175
175
|
transparent: !0,
|
|
176
176
|
depthWrite: !1,
|
|
177
177
|
blending: n.AdditiveBlending
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function io() {
|
|
181
181
|
return new n.ShaderMaterial({
|
|
182
182
|
uniforms: {
|
|
183
183
|
uColor: { value: new n.Color() },
|
|
@@ -219,7 +219,7 @@ function so() {
|
|
|
219
219
|
transparent: !0
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function lo() {
|
|
223
223
|
return new n.ShaderMaterial({
|
|
224
224
|
uniforms: { uColor: { value: new n.Color() }, uGlow: { value: 0.5 }, uTime: { value: 0 } },
|
|
225
225
|
vertexShader: (
|
|
@@ -248,7 +248,7 @@ function io() {
|
|
|
248
248
|
blending: n.AdditiveBlending
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function co() {
|
|
252
252
|
return new n.ShaderMaterial({
|
|
253
253
|
uniforms: { uColor: { value: new n.Color() }, uGlow: { value: 0.5 }, uOpacity: { value: 1 }, uBend: { value: 0 } },
|
|
254
254
|
vertexShader: (
|
|
@@ -280,13 +280,13 @@ function lo() {
|
|
|
280
280
|
transparent: !0
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
const he = 3.8,
|
|
284
|
-
function
|
|
283
|
+
const he = 3.8, St = 1.75, xt = new n.Vector3();
|
|
284
|
+
function At(e, a = xt) {
|
|
285
285
|
const t = ge.agents.get(e);
|
|
286
286
|
if (t)
|
|
287
|
-
return a.copy(t.live), a.y += (
|
|
287
|
+
return a.copy(t.live), a.y += (St + 0.12) * t.scale, qe.p = a, qe.r = t.scale, qe;
|
|
288
288
|
}
|
|
289
|
-
const
|
|
289
|
+
const qe = { p: xt, r: 0 }, De = class De {
|
|
290
290
|
constructor(a) {
|
|
291
291
|
me(this, "mesh");
|
|
292
292
|
me(this, "colors");
|
|
@@ -295,7 +295,7 @@ const Ue = { p: St, r: 0 }, De = class De {
|
|
|
295
295
|
me(this, "o", new n.Object3D());
|
|
296
296
|
me(this, "a", new n.Vector3());
|
|
297
297
|
me(this, "b", new n.Vector3());
|
|
298
|
-
this.max = a, this.colors = new Float32Array(a * 3), this.mesh = new n.InstancedMesh(
|
|
298
|
+
this.max = a, this.colors = new Float32Array(a * 3), this.mesh = new n.InstancedMesh(bt, new n.MeshBasicMaterial({ blending: n.AdditiveBlending, depthWrite: !1, transparent: !0, toneMapped: !1 }), a), this.mesh.instanceColor = new n.InstancedBufferAttribute(this.colors, 3), this.mesh.frustumCulled = !1, this.mesh.count = 0;
|
|
299
299
|
}
|
|
300
300
|
begin() {
|
|
301
301
|
this.n = 0;
|
|
@@ -310,7 +310,7 @@ const Ue = { p: St, r: 0 }, De = class De {
|
|
|
310
310
|
};
|
|
311
311
|
me(De, "UP", new n.Vector3(0, 1, 0));
|
|
312
312
|
let ke = De;
|
|
313
|
-
function
|
|
313
|
+
function Pt() {
|
|
314
314
|
return new n.ShaderMaterial({
|
|
315
315
|
uniforms: { uScale: { value: 400 } },
|
|
316
316
|
vertexShader: (
|
|
@@ -337,11 +337,11 @@ function At() {
|
|
|
337
337
|
blending: n.AdditiveBlending
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Ct(e, a, t) {
|
|
341
341
|
return e * a / (2 * Math.tan(t * Math.PI / 360));
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
function
|
|
343
|
+
const zt = 0.9, lt = 0.7, be = new ke(64);
|
|
344
|
+
function uo(e, a) {
|
|
345
345
|
const t = new n.IcosahedronGeometry(e, 3), o = t.getAttribute("position"), s = new n.Vector3();
|
|
346
346
|
for (let r = 0; r < o.count; r++) {
|
|
347
347
|
s.fromBufferAttribute(o, r);
|
|
@@ -350,8 +350,8 @@ function co(e, a) {
|
|
|
350
350
|
}
|
|
351
351
|
return t.computeVertexNormals(), t;
|
|
352
352
|
}
|
|
353
|
-
const
|
|
354
|
-
function
|
|
353
|
+
const fo = uo(0.85, 1.7);
|
|
354
|
+
function po(e) {
|
|
355
355
|
return new n.ShaderMaterial({
|
|
356
356
|
uniforms: { uColor: { value: e.clone() }, uK: { value: 1 } },
|
|
357
357
|
vertexShader: (
|
|
@@ -372,9 +372,9 @@ function fo(e) {
|
|
|
372
372
|
blending: n.AdditiveBlending
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
const
|
|
376
|
-
function
|
|
377
|
-
const a =
|
|
375
|
+
const ct = /* @__PURE__ */ new Map();
|
|
376
|
+
function mo(e) {
|
|
377
|
+
const a = ct.get(e);
|
|
378
378
|
if (a) return a;
|
|
379
379
|
const t = (s, r, u) => ({ geo: s, edges: new n.EdgesGeometry(s, 25), pos: r, rot: u });
|
|
380
380
|
let o;
|
|
@@ -403,32 +403,32 @@ function po(e) {
|
|
|
403
403
|
o = [t(new n.CapsuleGeometry(0.2, 0.75, 6, 16), void 0, [0, 0, Math.PI / 2])];
|
|
404
404
|
break;
|
|
405
405
|
}
|
|
406
|
-
return
|
|
406
|
+
return ct.set(e, o), o;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Gt(e, a) {
|
|
409
409
|
let t = null;
|
|
410
410
|
for (const o of W.mcpCalls) o.server === e && (a === void 0 || o.resource === a) && (!t || o.start > t.start) && (t = o);
|
|
411
411
|
return t;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Tt(e, a, t, o, s, r, u) {
|
|
414
414
|
if (e.uTime.value = r, t < 1) {
|
|
415
415
|
const m = He(t);
|
|
416
416
|
e.uFlow.value = 0, e.uHead.value = 1 - m, e.uTail.value = 0.18, e.uHeadColor.value.copy(s).lerp(ue, 0.4).multiplyScalar(3), e.uOpacity.value = 0.9 * (1 - t * 0.5);
|
|
417
417
|
} else a ? (e.uFlow.value = 1, e.uFlowDir.value = 1, e.uHead.value = -1, e.uOpacity.value = 0.6) : (e.uFlow.value = o * 0.6, e.uFlowDir.value = 1, e.uHead.value = -1, e.uOpacity.value = u + o * 0.4);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
const t = e.srv, o = a.res, s = R(() =>
|
|
419
|
+
function vo({ mcp: e, backend: a }) {
|
|
420
|
+
const t = e.srv, o = a.res, s = R(() => mo(o.kind), [o.kind]), r = R(() => new n.Color(t.color).lerp(Ye, 0.2).lerp(ue, 0.25), [t.color]), u = R(() => Ie(`${t.name}:${o.name}`, 3), [t.name, o.name]), m = R(() => {
|
|
421
421
|
const h = Ke(t.color, 0.1, 0.55, u, 0.3);
|
|
422
422
|
return h.uniforms.uBeads.value = 4, { edge: h, fill: Xe(r), line: new n.LineBasicMaterial({ color: r, transparent: !0, blending: n.AdditiveBlending, depthWrite: !1, toneMapped: !1 }), halo: Fe(r) };
|
|
423
423
|
}, [t.color, r, u]), f = F(null), g = F(null), v = F(null), i = F(null), y = F("");
|
|
424
424
|
return fe(({ clock: h }) => {
|
|
425
425
|
var _, V;
|
|
426
426
|
const c = m.edge.uniforms;
|
|
427
|
-
c.uP0.value.copy(e.pos).setY(
|
|
427
|
+
c.uP0.value.copy(e.pos).setY(zt), c.uP2.value.copy(a.pos).setY(lt), c.uP1.value.copy(c.uP0.value).add(c.uP2.value).multiplyScalar(0.5).setY(0.2), (_ = f.current) == null || _.position.set(a.pos.x, lt, a.pos.z);
|
|
428
428
|
const p = performance.now(), l = ne ? 0 : h.elapsedTime, b = o.inflight > 0, M = Math.exp(-((p - o.activeAt) / 1e3) * 1.5), d = b ? 0.5 + 0.5 * Math.sin(h.elapsedTime * 5) : 0, S = b ? 1.6 + d * 0.9 : 0.14 + M * 0.9;
|
|
429
429
|
m.fill.color.copy(r).multiplyScalar(S * 0.5), m.line.color.copy(r).multiplyScalar(S * 1.5), m.halo.color.copy(r).multiplyScalar(b ? 0.4 + d * 0.2 : 0.03 + M * 0.25), (V = v.current) == null || V.scale.setScalar(b ? 4 + d * 0.8 : 2.4 + M * 1.2), g.current && (g.current.scale.setScalar(b ? 1.18 + d * 0.08 : 1 + M * 0.1), g.current.rotation.y = o.kind === "spark" || o.kind === "api" ? l * (b ? 0.6 : 0.15) : Math.sin(l * 0.2 + u) * 0.3);
|
|
430
|
-
const C =
|
|
431
|
-
|
|
430
|
+
const C = Gt(t.name, o.name), ee = C && C.phase === "result" ? (p - C.start) / C.dur : 9;
|
|
431
|
+
Tt(m.edge.uniforms, b, ee, M, r, l, 0.22);
|
|
432
432
|
const O = m.edge.uniforms;
|
|
433
433
|
ee < 1 ? be.add(O.uP0.value, O.uP1.value, O.uP2.value, O.uWob.value, u, 0.1, -1, 0.5, r, 2 * (1 - ee * 0.7)) : b && be.add(O.uP0.value, O.uP1.value, O.uP2.value, O.uWob.value, u, 0.86, 1, 0.42, r, 1.2);
|
|
434
434
|
let j = o.name;
|
|
@@ -451,15 +451,15 @@ function mo({ mcp: e, backend: a }) {
|
|
|
451
451
|
] });
|
|
452
452
|
}
|
|
453
453
|
const Te = new n.Vector3();
|
|
454
|
-
function
|
|
454
|
+
function ho({ mcp: e }) {
|
|
455
455
|
const a = e.srv, t = R(() => new n.Color(a.color).lerp(Ye, 0.15), [a.color]), o = R(() => Ie(a.name, 5), [a.name]), s = R(() => {
|
|
456
456
|
const g = Ke(t, 0.17, 0.5, o, 0.6);
|
|
457
|
-
return g.uniforms.uBeads.value = 9, g.uniforms.uSpeed.value = 0.8, { body:
|
|
457
|
+
return g.uniforms.uBeads.value = 9, g.uniforms.uSpeed.value = 0.8, { body: po(t), core: Fe(t), halo: Fe(t), trunk: g };
|
|
458
458
|
}, [t, o]), r = F(null), u = F(null), m = F(null), f = F(performance.now());
|
|
459
459
|
return fe(({ clock: g }) => {
|
|
460
460
|
var C, ee;
|
|
461
461
|
const v = e.pos;
|
|
462
|
-
(C = r.current) == null || C.position.set(v.x,
|
|
462
|
+
(C = r.current) == null || C.position.set(v.x, zt, v.z);
|
|
463
463
|
const i = s.trunk.uniforms;
|
|
464
464
|
Te.set(v.x, 0, v.z);
|
|
465
465
|
const y = Te.length();
|
|
@@ -468,56 +468,56 @@ function vo({ mcp: e }) {
|
|
|
468
468
|
i.uP0.value.set(Te.x * h, 0.08, Te.z * h), i.uP2.value.set(v.x, 0.15, v.z), i.uP1.value.copy(i.uP0.value).add(i.uP2.value).multiplyScalar(0.5).setY(0.1), i.uBeads.value = Math.max(4, (y - h) / 1.2);
|
|
469
469
|
const c = performance.now(), p = ne ? 0 : g.elapsedTime, l = a.inflight > 0, b = Math.exp(-((c - a.activeAt) / 1e3) * 1.5), M = 0.5 + 0.5 * Math.sin(g.elapsedTime * (l ? 4 : 1.2) + o * 5);
|
|
470
470
|
s.body.uniforms.uK.value = (l ? 1.1 + M * 0.4 : 0.5 + M * 0.1) + b * 0.5, s.core.color.copy(t).lerp(ue, 0.4).multiplyScalar((l ? 0.55 : 0.18) + b * 0.3), s.halo.color.copy(t).multiplyScalar((l ? 0.22 : 0.07) + b * 0.12), (ee = m.current) == null || ee.scale.setScalar(5.2 + (l ? M * 0.8 : 0)), u.current && (u.current.rotation.y = p * (l ? 0.5 : 0.1), u.current.scale.setScalar(ye((c - f.current) / 1200) * (1 + (l ? M * 0.06 : 0))));
|
|
471
|
-
const d =
|
|
472
|
-
|
|
471
|
+
const d = Gt(a.name), S = d && d.phase === "result" ? (c - d.start) / d.dur : 9;
|
|
472
|
+
Tt(i, l, 9, b, t, p, 0.3), i.uGrow.value = ye((c - f.current) / 2e3), S < 1 && (i.uOpacity.value = 0.5 + (1 - S) * 0.4);
|
|
473
473
|
}), /* @__PURE__ */ H(de, { children: [
|
|
474
474
|
/* @__PURE__ */ w("mesh", { geometry: Ne, material: s.trunk, frustumCulled: !1 }),
|
|
475
475
|
/* @__PURE__ */ H("group", { ref: r, children: [
|
|
476
476
|
/* @__PURE__ */ w("sprite", { ref: m, material: s.halo }),
|
|
477
477
|
/* @__PURE__ */ H("group", { ref: u, children: [
|
|
478
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
478
|
+
/* @__PURE__ */ w("mesh", { geometry: fo, material: s.body }),
|
|
479
479
|
/* @__PURE__ */ w("sprite", { material: s.core, scale: 1.6 })
|
|
480
480
|
] }),
|
|
481
481
|
/* @__PURE__ */ w(Re, { position: [0, 1.55, 0], text: `MCP · ${a.name}`, color: a.color, size: 0.28, pxRange: [9, 13] })
|
|
482
482
|
] })
|
|
483
483
|
] });
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
487
|
-
const e = F([]), a = R(() => Array.from({ length:
|
|
485
|
+
const $e = 20;
|
|
486
|
+
function go() {
|
|
487
|
+
const e = F([]), a = R(() => Array.from({ length: $e }, (o, s) => Ke("#fff", 0.07, 0.6, s * 0.173, 0.45)), []), t = R(() => ({ col: new n.Color(), sp: new n.Vector3() }), []);
|
|
488
488
|
return fe(({ clock: o }) => {
|
|
489
489
|
const s = performance.now(), r = ne ? 0 : o.elapsedTime;
|
|
490
490
|
let u = 0;
|
|
491
491
|
const m = (f, g, v, i) => {
|
|
492
|
-
if (u >=
|
|
493
|
-
const y = We(f), h = W.mcpServers.get(g), c =
|
|
492
|
+
if (u >= $e) return;
|
|
493
|
+
const y = We(f), h = W.mcpServers.get(g), c = Xt(g), p = e.current[u];
|
|
494
494
|
if (!y || !h || !c || !p) return;
|
|
495
495
|
const l = a[u].uniforms;
|
|
496
496
|
t.sp.copy(c), l.uP0.value.copy(y).setY(0.06), l.uP2.value.copy(t.sp).setY(0.35), l.uP1.value.copy(l.uP0.value).add(l.uP2.value).multiplyScalar(0.5), l.uP1.value.y = 0.9;
|
|
497
497
|
const b = l.uP0.value.distanceTo(l.uP2.value);
|
|
498
|
-
l.uBeads.value = b / 1.3, l.uTime.value = r, t.col.set(h.color), v === 0 ? (t.col.lerp(
|
|
498
|
+
l.uBeads.value = b / 1.3, l.uTime.value = r, t.col.set(h.color), v === 0 ? (t.col.lerp(gt, re(i / 1.2)), i > 1.2 && t.col.lerp(wt, re((i - 1.2) / 1.2)), l.uColor.value.copy(t.col), l.uGrow.value = ye(i / 0.45), l.uHead.value = i < 0.45 ? l.uGrow.value : -1, l.uHeadColor.value.copy(t.col).multiplyScalar(2.5), l.uFlow.value = 1, l.uFlowDir.value = 1, l.uSpeed.value = 1.6, l.uOpacity.value = 0.45 + Math.min(0.4, i * 0.15), be.add(l.uP0.value, l.uP1.value, l.uP2.value, l.uWob.value, l.uSeed.value, 0.9, 1, 0.42, t.col, 0.5 + Math.min(1, i * 0.5))) : (t.col.lerp(ue, 0.3), l.uColor.value.copy(t.col), l.uGrow.value = 1, l.uFlow.value = 0, l.uHead.value = 1 - He(i / 0.8), l.uTail.value = 0.2, l.uHeadColor.value.copy(t.col).multiplyScalar(3.2), l.uOpacity.value = 0.7 * (1 - i), be.add(l.uP0.value, l.uP1.value, l.uP2.value, l.uWob.value, l.uSeed.value, 0.08, -1, 0.55, t.col, 1.8 * (1 - i))), p.visible = !0, u++;
|
|
499
499
|
};
|
|
500
|
-
for (const f of W.mcpPending.values()) m(f.instance, f.server, 0,
|
|
500
|
+
for (const f of W.mcpPending.values()) m(f.instance, f.server, 0, Wt(f, s));
|
|
501
501
|
for (const f of W.mcpCalls) f.phase === "result" && m(f.instance, f.server, 1, re((s - f.start) / f.dur));
|
|
502
|
-
for (let f = u; f <
|
|
502
|
+
for (let f = u; f < $e; f++) {
|
|
503
503
|
const g = e.current[f];
|
|
504
504
|
g && (g.visible = !1);
|
|
505
505
|
}
|
|
506
506
|
}), /* @__PURE__ */ w(de, { children: a.map((o, s) => /* @__PURE__ */ w("mesh", { ref: (r) => void (e.current[s] = r), geometry: Ne, material: o, frustumCulled: !1, visible: !1 }, s)) });
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function wo() {
|
|
509
509
|
return /* @__PURE__ */ H(de, { children: [
|
|
510
|
-
/* @__PURE__ */ w(
|
|
511
|
-
/* @__PURE__ */ w(
|
|
510
|
+
/* @__PURE__ */ w(go, {}),
|
|
511
|
+
/* @__PURE__ */ w(yo, {}),
|
|
512
512
|
/* @__PURE__ */ w("primitive", { object: be.mesh })
|
|
513
513
|
] });
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function yo() {
|
|
516
516
|
return fe(() => {
|
|
517
517
|
be.end(), be.begin();
|
|
518
518
|
}, 0.5), null;
|
|
519
519
|
}
|
|
520
|
-
const Ce = 36,
|
|
520
|
+
const Ce = 36, bo = (
|
|
521
521
|
/* glsl */
|
|
522
522
|
`
|
|
523
523
|
uniform float uTime;
|
|
@@ -537,7 +537,7 @@ void main(){
|
|
|
537
537
|
gl_FragColor = vec4(col, edge);
|
|
538
538
|
}`
|
|
539
539
|
);
|
|
540
|
-
function
|
|
540
|
+
function Mo(e = 110, a = 9e3) {
|
|
541
541
|
let t = 1337;
|
|
542
542
|
const o = () => (t = t * 16807 % 2147483647) / 2147483647, s = [], r = [], u = [], m = [], f = [];
|
|
543
543
|
for (let i = 0; i < e; i++) {
|
|
@@ -559,7 +559,7 @@ function bo(e = 110, a = 9e3) {
|
|
|
559
559
|
const v = new n.BufferGeometry();
|
|
560
560
|
return v.setAttribute("position", new n.Float32BufferAttribute(s, 3)), v.setAttribute("aDist", new n.Float32BufferAttribute(r, 1)), v.setAttribute("aSeed", new n.Float32BufferAttribute(u, 1)), v.setAttribute("aW", new n.Float32BufferAttribute(m, 1)), v.boundingSphere = new n.Sphere(new n.Vector3(), 1e4), v;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function So() {
|
|
563
563
|
const e = R(
|
|
564
564
|
() => new n.ShaderMaterial({
|
|
565
565
|
uniforms: { uTime: { value: 0 } },
|
|
@@ -567,12 +567,12 @@ function Mo() {
|
|
|
567
567
|
/* glsl */
|
|
568
568
|
"varying vec2 vXZ; void main(){ vXZ = position.xz; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); }"
|
|
569
569
|
),
|
|
570
|
-
fragmentShader:
|
|
570
|
+
fragmentShader: bo,
|
|
571
571
|
transparent: !0,
|
|
572
572
|
depthWrite: !1
|
|
573
573
|
}),
|
|
574
574
|
[]
|
|
575
|
-
), a = R(() => new n.CircleGeometry(Ce, 96).rotateX(-Math.PI / 2), []), t = R(() =>
|
|
575
|
+
), a = R(() => new n.CircleGeometry(Ce, 96).rotateX(-Math.PI / 2), []), t = R(() => Mo(), []), o = R(
|
|
576
576
|
() => new n.ShaderMaterial({
|
|
577
577
|
uniforms: { uTime: { value: 0 }, uAct: { value: 0 } },
|
|
578
578
|
vertexShader: (
|
|
@@ -614,22 +614,22 @@ function Mo() {
|
|
|
614
614
|
/* @__PURE__ */ w("lineSegments", { geometry: t, material: o, frustumCulled: !1 })
|
|
615
615
|
] });
|
|
616
616
|
}
|
|
617
|
-
const
|
|
618
|
-
function
|
|
619
|
-
const a = e.nodes.slice(0,
|
|
617
|
+
const xo = 260, Ee = 40, xe = 20, Ze = 10, Le = 3;
|
|
618
|
+
function Ao(e) {
|
|
619
|
+
const a = e.nodes.slice(0, xo), t = new Set(a.map((o) => o.id));
|
|
620
620
|
return { nodes: a, links: e.links.filter((o) => t.has(o.source) && t.has(o.target)) };
|
|
621
621
|
}
|
|
622
|
-
const
|
|
623
|
-
function
|
|
624
|
-
const [a, t] =
|
|
622
|
+
const Po = (e) => 0.42 * Math.max(0, 1 - (e / he) ** 2) + 0.06, Co = 64;
|
|
623
|
+
function zo({ galaxy: e }) {
|
|
624
|
+
const [a, t] = dt("center"), o = R(() => Ao(e), [e]), s = o.nodes.length, { size: r, gl: u, camera: m } = mt(), f = F([]), g = F([]), v = F(Array(Le).fill("")), i = F([]), y = R(() => {
|
|
625
625
|
const M = new Float32Array(s * 3), d = Math.PI * (3 - Math.sqrt(5));
|
|
626
626
|
let S = 91;
|
|
627
627
|
const C = () => (S = S * 16807 % 2147483647) / 2147483647;
|
|
628
628
|
for (let x = 0; x < s; x++) {
|
|
629
629
|
const z = he * Math.sqrt((x + 0.5) / s) * (0.94 + C() * 0.08), G = x * d + (C() - 0.5) * 0.25;
|
|
630
|
-
M.set([Math.cos(G) * z,
|
|
630
|
+
M.set([Math.cos(G) * z, Po(z) + (C() - 0.5) * 0.05, Math.sin(G) * z], x * 3);
|
|
631
631
|
}
|
|
632
|
-
const ee = o.nodes.map((x, z) => new n.Color(
|
|
632
|
+
const ee = o.nodes.map((x, z) => new n.Color(kt[x.kind] ?? "#94a3b8").lerp(z % 3 ? ht : Ye, 0.45).multiplyScalar(0.5)), O = new n.BufferGeometry();
|
|
633
633
|
O.setAttribute("position", new n.BufferAttribute(M, 3)), O.setAttribute("aSize", new n.BufferAttribute(new Float32Array(s), 1)), O.setAttribute("aColor", new n.BufferAttribute(new Float32Array(s * 3), 3));
|
|
634
634
|
const j = (x, z) => (M[x * 3] - M[z * 3]) ** 2 + (M[x * 3 + 2] - M[z * 3 + 2]) ** 2, _ = [], V = /* @__PURE__ */ new Set(), L = (x, z, G) => {
|
|
635
635
|
const J = Math.min(x, z) * 4096 + Math.max(x, z);
|
|
@@ -661,30 +661,30 @@ function Co({ galaxy: e }) {
|
|
|
661
661
|
return Z.setAttribute("position", new n.BufferAttribute(new Float32Array(Ee * xe * 2 * 3), 3)), Z.setAttribute("color", new n.BufferAttribute(new Float32Array(Ee * xe * 2 * 3), 3)), Z.boundingSphere = new n.Sphere(new n.Vector3(), 1e4), { pos: M, base: ee, ngeo: O, ageo: X, bgeo: Z, owner: pe, strong: q, nPairs: _.length, SEG: N, fire: new Float32Array(s), white: new Float32Array(s), fireC: Array.from({ length: s }, () => new n.Color()) };
|
|
662
662
|
}, [o, s]), h = R(
|
|
663
663
|
() => ({
|
|
664
|
-
nodes:
|
|
664
|
+
nodes: Pt(),
|
|
665
665
|
arcs: new n.LineBasicMaterial({ vertexColors: !0, transparent: !0, blending: n.AdditiveBlending, depthWrite: !1, toneMapped: !1 }),
|
|
666
666
|
beam: new n.LineBasicMaterial({ vertexColors: !0, transparent: !0, blending: n.AdditiveBlending, depthWrite: !1, toneMapped: !1 }),
|
|
667
|
-
pool:
|
|
668
|
-
core:
|
|
669
|
-
ripple: Array.from({ length:
|
|
667
|
+
pool: tt(new n.Color("#7c3aed").multiplyScalar(0.55)),
|
|
668
|
+
core: tt(new n.Color("#c4b5fd").multiplyScalar(0.25)),
|
|
669
|
+
ripple: Array.from({ length: Ze }, () => Xe("#ffffff"))
|
|
670
670
|
}),
|
|
671
671
|
[]
|
|
672
672
|
), c = R(() => /* @__PURE__ */ new Map(), [o]), p = R(() => new ke(Ee), []), l = R(() => ({ v: new n.Vector3(), v2: new n.Vector3(), mid: new n.Vector3(), sp: new n.Vector3(), c: new n.Color(), c2: new n.Color() }), []), b = (M) => {
|
|
673
673
|
let d = c.get(M);
|
|
674
|
-
return d === void 0 && c.set(M, d =
|
|
674
|
+
return d === void 0 && c.set(M, d = Ht(o, M)), d;
|
|
675
675
|
};
|
|
676
676
|
return fe(({ clock: M }) => {
|
|
677
677
|
const d = ge.graph.out.x < -0.5 ? "left" : "center";
|
|
678
678
|
d !== a && t(d);
|
|
679
679
|
const S = performance.now(), { pos: C, base: ee, fire: O, white: j, fireC: _ } = y;
|
|
680
|
-
h.nodes.uniforms.uScale.value =
|
|
680
|
+
h.nodes.uniforms.uScale.value = Ct(r.height, u.getPixelRatio(), m.fov) * ge.graph.scale, O.fill(0), j.fill(0);
|
|
681
681
|
const { v: V, v2: L, mid: E, c: N, c2: U } = l, we = y.bgeo.getAttribute("position"), pe = y.bgeo.getAttribute("color");
|
|
682
682
|
let q = 0, X = 0;
|
|
683
683
|
p.begin();
|
|
684
684
|
const Z = W.flares;
|
|
685
|
-
for (let A = Math.max(0, Z.length -
|
|
685
|
+
for (let A = Math.max(0, Z.length - Co); A < Z.length; A++) {
|
|
686
686
|
const P = Z[A], B = b(P.node), I = (S - P.start) / 1e3, te = W.instances.get(P.instance), K = te ? Pe[te.type] : ue, D = P.op === "write", $ = I < 0.3 ? I / 0.3 : Math.exp(-(I - 0.3) * 1.3);
|
|
687
|
-
if ($ > O[B] && (O[B] = $, _[B].copy(D ? ue : K), j[B] = D ? 1 : 0), D && I < 1.6 && X <
|
|
687
|
+
if ($ > O[B] && (O[B] = $, _[B].copy(D ? ue : K), j[B] = D ? 1 : 0), D && I < 1.6 && X < Ze) {
|
|
688
688
|
const T = i.current[X];
|
|
689
689
|
if (T) {
|
|
690
690
|
T.visible = !0, T.position.set(C[B * 3], C[B * 3 + 1] + 0.02, C[B * 3 + 2]);
|
|
@@ -693,7 +693,7 @@ function Co({ galaxy: e }) {
|
|
|
693
693
|
}
|
|
694
694
|
X++;
|
|
695
695
|
}
|
|
696
|
-
const ie =
|
|
696
|
+
const ie = At(P.instance), le = ie ? Dt(ie.p, l.sp) : void 0;
|
|
697
697
|
if (le && I < 2.2 && q < Ee) {
|
|
698
698
|
V.set(C[B * 3], C[B * 3 + 1], C[B * 3 + 2]), E.copy(le).add(V).multiplyScalar(0.5), E.y += 1.6;
|
|
699
699
|
const T = Math.min(1, I / 0.25) * (1 - I / 2.2) ** 1.5, Y = D ? Math.min(1, I * 0.9) : 1 - Math.min(1, I * 0.9);
|
|
@@ -709,7 +709,7 @@ function Co({ galaxy: e }) {
|
|
|
709
709
|
D ? p.add(le, E, V, 0, 0, 0.9, 1, 0.34, ue, T * 1.1) : p.add(le, E, V, 0, 0, 0.1, -1, 0.34, K, T * 1.3), q++;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
for (let A = X; A <
|
|
712
|
+
for (let A = X; A < Ze; A++) {
|
|
713
713
|
const P = i.current[A];
|
|
714
714
|
P && (P.visible = !1);
|
|
715
715
|
}
|
|
@@ -717,7 +717,7 @@ function Co({ galaxy: e }) {
|
|
|
717
717
|
const x = ne ? 0 : M.elapsedTime, z = y.ngeo.getAttribute("aSize"), G = y.ngeo.getAttribute("aColor");
|
|
718
718
|
for (let A = 0; A < s; A++) {
|
|
719
719
|
const P = O[A], B = 0.85 + 0.15 * Math.sin(x * 0.8 + A * 1.7);
|
|
720
|
-
z.setX(A, 0.17 + P * (0.42 + j[A] * 0.22)), N.copy(ee[A]).multiplyScalar(B), P > 0.01 &&
|
|
720
|
+
z.setX(A, 0.17 + P * (0.42 + j[A] * 0.22)), N.copy(ee[A]).multiplyScalar(B), P > 0.01 && rt(rt(N, _[A], P * 1.7), ue, P * (0.25 + j[A] * 1.1)), G.setXYZ(A, N.r, N.g, N.b);
|
|
721
721
|
}
|
|
722
722
|
z.needsUpdate = !0, G.needsUpdate = !0;
|
|
723
723
|
const J = y.ageo.getAttribute("color"), se = y.SEG * 2;
|
|
@@ -748,33 +748,33 @@ function Co({ galaxy: e }) {
|
|
|
748
748
|
P == null || P.setOpacity(0), v.current[A] = "";
|
|
749
749
|
}
|
|
750
750
|
}), /* @__PURE__ */ H(de, { children: [
|
|
751
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
752
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
751
|
+
/* @__PURE__ */ w("mesh", { geometry: ot, material: h.pool, scale: he * 3.2, position: [0, 0.01, 0] }),
|
|
752
|
+
/* @__PURE__ */ w("mesh", { geometry: ot, material: h.core, scale: he * 1.8, position: [0, 0.03, 0] }),
|
|
753
753
|
/* @__PURE__ */ w("lineSegments", { geometry: y.ageo, material: h.arcs, frustumCulled: !1 }),
|
|
754
754
|
/* @__PURE__ */ w("points", { geometry: y.ngeo, material: h.nodes, frustumCulled: !1 }),
|
|
755
755
|
/* @__PURE__ */ w("lineSegments", { geometry: y.bgeo, material: h.beam, frustumCulled: !1 }),
|
|
756
756
|
/* @__PURE__ */ w("primitive", { object: p.mesh }),
|
|
757
|
-
h.ripple.map((M, d) => /* @__PURE__ */ w("mesh", { ref: (S) => void (i.current[d] = S), geometry:
|
|
757
|
+
h.ripple.map((M, d) => /* @__PURE__ */ w("mesh", { ref: (S) => void (i.current[d] = S), geometry: Mt, material: M, visible: !1 }, d)),
|
|
758
758
|
Array.from({ length: Le }, (M, d) => /* @__PURE__ */ w("group", { ref: (S) => void (g.current[d] = S), children: /* @__PURE__ */ w(Re, { ref: (S) => void (f.current[d] = S), text: "", offset: [0, 0.34], anchorX: a, size: 0.24, opacity: 0, fadeMs: 250, pxRange: [8, 12] }) }, d)),
|
|
759
|
-
/* @__PURE__ */ w(
|
|
759
|
+
/* @__PURE__ */ w(Yt, { position: [a === "left" ? -he : 0, 0.2, -he - 0.7], anchorX: a, suffix: " · mycelial mat", color: "#c084fc", size: 0.28, opacity: 0.75, pxRange: [8, 12] })
|
|
760
760
|
] });
|
|
761
761
|
}
|
|
762
|
-
const Be = /* @__PURE__ */ new Map(),
|
|
762
|
+
const Be = /* @__PURE__ */ new Map(), Go = new n.Vector3(0, 1, 0), Je = new n.Vector3(), ut = new n.Vector3(), Qe = [
|
|
763
763
|
// angle, distance (x size), scale (x size)
|
|
764
764
|
[2.2, 0.62, 0.26],
|
|
765
765
|
[3.6, 0.5, 0.18],
|
|
766
766
|
[4.9, 0.7, 0.21]
|
|
767
767
|
];
|
|
768
|
-
function
|
|
769
|
-
const t = e.inst, o = F(null), s = F(null), r = F(null), u = F(null), m = F(null), f = F(null), g = F(null), v = F(null), i = F(null), y = F([]), h = R(() => Ie(t.id, 21), [t.id]), c = Pe[t.type], p =
|
|
768
|
+
function To({ agent: e, onSelect: a }) {
|
|
769
|
+
const t = e.inst, o = F(null), s = F(null), r = F(null), u = F(null), m = F(null), f = F(null), g = F(null), v = F(null), i = F(null), y = F([]), h = R(() => Ie(t.id, 21), [t.id]), c = Pe[t.type], p = Nt(t), l = St * p, b = F(null), M = R(() => {
|
|
770
770
|
const _ = e.target.x - e.run.target.x, V = e.target.z - e.run.target.z;
|
|
771
771
|
return (_ * _ + V * V > 0.01 ? -Math.atan2(V, _) : -Math.PI / 2) + (Ie(t.id, 22) - 0.5) * 1.6;
|
|
772
772
|
}, [e, t.id]), d = R(
|
|
773
773
|
() => ({
|
|
774
|
-
cap:
|
|
775
|
-
gill:
|
|
776
|
-
stem:
|
|
777
|
-
pool:
|
|
774
|
+
cap: io(),
|
|
775
|
+
gill: lo(),
|
|
776
|
+
stem: co(),
|
|
777
|
+
pool: tt("#000"),
|
|
778
778
|
halo: Fe("#000"),
|
|
779
779
|
sel: Xe("#ffffff"),
|
|
780
780
|
arrow: Xe(c),
|
|
@@ -784,11 +784,11 @@ function Go({ agent: e, onSelect: a }) {
|
|
|
784
784
|
);
|
|
785
785
|
d.cap.uniforms.uSpots.value = h * 10;
|
|
786
786
|
const S = R(() => ({ c: new n.Color(), parentK: 0, ringK: 0, open: 0, curve: { p0: new n.Vector3(), p1: new n.Vector3(), p2: new n.Vector3(), wob: 0.35, seed: h } }), [h]);
|
|
787
|
-
|
|
787
|
+
It(() => (Be.set(t.id, S.curve), () => {
|
|
788
788
|
Be.get(t.id) === S.curve && Be.delete(t.id);
|
|
789
789
|
}), [t.id, S]), fe(({ clock: _ }) => {
|
|
790
790
|
var _e;
|
|
791
|
-
const V = performance.now(), L = ne ? 0 : _.elapsedTime, E = (V - t.bornAt) / 1e3, N = t.parent ? 0.9 : 0.75, U = ye(E / N), we = ye((E - N + 0.12) / 0.6), pe =
|
|
791
|
+
const V = performance.now(), L = ne ? 0 : _.elapsedTime, E = (V - t.bornAt) / 1e3, N = t.parent ? 0.9 : 0.75, U = ye(E / N), we = ye((E - N + 0.12) / 0.6), pe = to((E - N - 0.2) / 0.75), q = t.exitAt ? (V - t.exitAt) / 1e3 : -1, X = q >= 0 ? re(q / 2.2) : 0, Z = Kt(t, V), x = jt(t, V);
|
|
792
792
|
let z = !1;
|
|
793
793
|
for (const oe of W.mcpPending.values()) oe.instance === t.id && (z = !0);
|
|
794
794
|
const G = q < 0 && (t.status === "thinking" || t.status === "spawning"), J = 0.5 + 0.5 * Math.sin(L * 2.2 + h * 9), se = 0.5 + 0.5 * Math.sin(L * 0.9 + h * 5);
|
|
@@ -798,22 +798,22 @@ function Go({ agent: e, onSelect: a }) {
|
|
|
798
798
|
const te = p * Math.max(1e-4, pe) * (1 + x * 0.07 + (G ? J * 0.025 : se * 0.02));
|
|
799
799
|
r.current && (r.current.position.set(B, k - 0.05 * p, 0), r.current.rotation.z = -(I + X * 0.75), r.current.scale.set(te * (0.94 + S.open * 0.08), te * (1.18 - S.open * 0.25) * (1 - X * 0.35), te * (0.94 + S.open * 0.08))), o.current && (o.current.rotation.y = M);
|
|
800
800
|
const K = e.live, D = e.scale / p;
|
|
801
|
-
b.current && (b.current.position.copy(K), b.current.scale.setScalar(Math.max(1e-4, D))), S.c.copy(c), q >= 0 && S.c.lerp(t.status === "failed" ?
|
|
801
|
+
b.current && (b.current.position.copy(K), b.current.scale.setScalar(Math.max(1e-4, D))), S.c.copy(c), q >= 0 && S.c.lerp(t.status === "failed" ? wt : eo, X * 0.85);
|
|
802
802
|
const $ = ((G ? 0.95 + J * 0.3 : 0.42 + se * 0.12) + x * 0.45) * (1 - X * 0.7);
|
|
803
|
-
d.cap.uniforms.uColor.value.copy(S.c), d.cap.uniforms.uGlow.value = $, d.cap.uniforms.uOpacity.value = Z, d.stem.uniforms.uColor.value.copy(S.c), d.stem.uniforms.uGlow.value = 0.55 + $ * 0.45, d.stem.uniforms.uOpacity.value = Z, d.gill.uniforms.uColor.value.copy(S.c).lerp(
|
|
804
|
-
for (let oe = 0; oe <
|
|
803
|
+
d.cap.uniforms.uColor.value.copy(S.c), d.cap.uniforms.uGlow.value = $, d.cap.uniforms.uOpacity.value = Z, d.stem.uniforms.uColor.value.copy(S.c), d.stem.uniforms.uGlow.value = 0.55 + $ * 0.45, d.stem.uniforms.uOpacity.value = Z, d.gill.uniforms.uColor.value.copy(S.c).lerp(gt, S.ringK * 0.75), d.gill.uniforms.uGlow.value = ($ * 1.1 + x * 0.9) * Z, d.gill.uniforms.uTime.value = L, u.current && (u.current.scale.setScalar(Math.max(1e-4, p * (3.2 + $ * 1.2) * we)), d.pool.color.copy(S.c).multiplyScalar((0.06 + $ * 0.1 + x * 0.07) * Z)), m.current && (m.current.position.copy(r.current ? r.current.position : m.current.position), m.current.scale.setScalar(Math.max(1e-4, te * (2.6 + x * 0.6))), d.halo.color.copy(S.c).multiplyScalar((G ? 0.13 : 0.05) * Z + x * 0.05));
|
|
804
|
+
for (let oe = 0; oe < Qe.length; oe++) {
|
|
805
805
|
const Se = y.current[oe];
|
|
806
806
|
if (!Se) continue;
|
|
807
|
-
const
|
|
808
|
-
Se.scale.setScalar(Math.max(1e-4,
|
|
807
|
+
const Rt = Qe[oe][2] * p * ye((E - N - 0.6 - oe * 0.25) / 0.8) * (1 - X * 0.6);
|
|
808
|
+
Se.scale.setScalar(Math.max(1e-4, Rt));
|
|
809
809
|
}
|
|
810
810
|
if (f.current) {
|
|
811
811
|
const oe = W.selected === t.id;
|
|
812
812
|
f.current.visible = oe, oe && (f.current.scale.setScalar(p * (1.25 + 0.08 * Math.sin(L * 3))), d.sel.color.setScalar(0.7 * Z));
|
|
813
813
|
}
|
|
814
|
-
v.current && v.current.position.set(K.x + B * Math.cos(M) * D, K.y + (k + te * 0.75) * D + 0.32, K.z - B * Math.sin(M) * D), (_e = i.current) == null || _e.setOpacity(
|
|
814
|
+
v.current && v.current.position.set(K.x + B * Math.cos(M) * D, K.y + (k + te * 0.75) * D + 0.32, K.z - B * Math.sin(M) * D), (_e = i.current) == null || _e.setOpacity(Ut(t.id) ? re(pe) * (1 - X) * 0.95 : 0);
|
|
815
815
|
const ie = t.parent ? W.instances.get(t.parent) : void 0, le = t.parent ? We(t.parent) : void 0, T = S.curve;
|
|
816
|
-
le && ie ? T.p0.copy(le) : t.parent ? T.p0.lengthSq() === 0 && T.p0.copy(K) :
|
|
816
|
+
le && ie ? T.p0.copy(le) : t.parent ? T.p0.lengthSq() === 0 && T.p0.copy(K) : qt(e.run, 0, -2.4 * at.spread, T.p0).setY(0.05), T.p2.copy(K), T.p1.copy(T.p0).add(T.p2).multiplyScalar(0.5), T.p1.y += 0.35;
|
|
817
817
|
const Y = d.hypha.uniforms;
|
|
818
818
|
Y.uP0.value.copy(T.p0), Y.uP1.value.copy(T.p1), Y.uP2.value.copy(T.p2);
|
|
819
819
|
const ve = !!t.parent && !!ie, Me = ve && !ie.exitAt, Q = q < 0 && (!t.parent || Me) ? 1 : 0;
|
|
@@ -824,8 +824,8 @@ function Go({ agent: e, onSelect: a }) {
|
|
|
824
824
|
if (Y.uBeads.value = Math.max(2, Ve / 1.1), Y.uTime.value = L, Y.uFlow.value = U >= 1 ? S.parentK * (G ? 1 : 0.45) : 0, Y.uOpacity.value = (ve ? G ? 0.85 : 0.55 : 0.38) * Math.max(S.parentK, U < 1 ? 1 : 0) + (U < 1 ? 0.3 : 0), g.current) {
|
|
825
825
|
const oe = ve && U >= 1 && S.parentK > 0.05 && Y.uGrow.value > 0.95;
|
|
826
826
|
if (g.current.visible = oe, oe) {
|
|
827
|
-
Ge(T.p0, T.p1, T.p2, T.wob, T.seed, 0.8,
|
|
828
|
-
const Se = (t.subagent ? 0.8 : 1) * Math.min(1.3,
|
|
827
|
+
Ge(T.p0, T.p1, T.p2, T.wob, T.seed, 0.8, Je), Ge(T.p0, T.p1, T.p2, T.wob, T.seed, 0.83, ut), g.current.position.copy(Je), g.current.quaternion.setFromUnitVectors(Go, ut.sub(Je).normalize());
|
|
828
|
+
const Se = (t.subagent ? 0.8 : 1) * Math.min(1.3, at.scale);
|
|
829
829
|
g.current.scale.set(0.13 * Se, 0.36 * Se, 0.13 * Se), d.arrow.color.copy(c).multiplyScalar(1.5 * S.parentK);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
@@ -835,20 +835,20 @@ function Go({ agent: e, onSelect: a }) {
|
|
|
835
835
|
}, ee = () => document.body.style.cursor = "pointer", O = () => document.body.style.cursor = "", j = t.id.split(":")[2];
|
|
836
836
|
return /* @__PURE__ */ H(de, { children: [
|
|
837
837
|
/* @__PURE__ */ w("mesh", { geometry: Ne, material: d.hypha, frustumCulled: !1 }),
|
|
838
|
-
/* @__PURE__ */ w("mesh", { ref: g, geometry:
|
|
838
|
+
/* @__PURE__ */ w("mesh", { ref: g, geometry: bt, material: d.arrow, visible: !1 }),
|
|
839
839
|
/* @__PURE__ */ H("group", { ref: b, children: [
|
|
840
|
-
/* @__PURE__ */ w("mesh", { ref: u, geometry:
|
|
841
|
-
/* @__PURE__ */ w("mesh", { ref: f, geometry:
|
|
840
|
+
/* @__PURE__ */ w("mesh", { ref: u, geometry: ot, material: d.pool, position: [0, 0.04, 0], scale: 1e-4 }),
|
|
841
|
+
/* @__PURE__ */ w("mesh", { ref: f, geometry: Mt, material: d.sel, position: [0, 0.06, 0], visible: !1 }),
|
|
842
842
|
/* @__PURE__ */ H("group", { ref: o, children: [
|
|
843
|
-
/* @__PURE__ */ w("mesh", { ref: s, geometry:
|
|
843
|
+
/* @__PURE__ */ w("mesh", { ref: s, geometry: it, material: d.stem, scale: 1e-4, onClick: C, onPointerOver: ee, onPointerOut: O }),
|
|
844
844
|
/* @__PURE__ */ H("group", { ref: r, scale: 1e-4, children: [
|
|
845
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
846
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
845
|
+
/* @__PURE__ */ w("mesh", { geometry: st, material: d.cap, onClick: C, onPointerOver: ee, onPointerOut: O }),
|
|
846
|
+
/* @__PURE__ */ w("mesh", { geometry: oo, material: d.gill })
|
|
847
847
|
] }),
|
|
848
848
|
/* @__PURE__ */ w("sprite", { ref: m, material: d.halo }),
|
|
849
|
-
!t.subagent &&
|
|
850
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
851
|
-
/* @__PURE__ */ w("mesh", { geometry:
|
|
849
|
+
!t.subagent && Qe.map(([_, V], L) => /* @__PURE__ */ H("group", { ref: (E) => void (y.current[L] = E), position: [Math.cos(_) * V * p, 0, Math.sin(_) * V * p], scale: 1e-4, children: [
|
|
850
|
+
/* @__PURE__ */ w("mesh", { geometry: it, material: d.stem, scale: [1, 1.5, 1] }),
|
|
851
|
+
/* @__PURE__ */ w("mesh", { geometry: st, material: d.cap, position: [0.08, 1.45, 0], scale: [0.75, 0.95, 0.75] })
|
|
852
852
|
] }, L))
|
|
853
853
|
] })
|
|
854
854
|
] }),
|
|
@@ -858,7 +858,7 @@ function Go({ agent: e, onSelect: a }) {
|
|
|
858
858
|
ref: i,
|
|
859
859
|
offset: [0, 0.22],
|
|
860
860
|
text: `${t.name}${j !== void 0 ? ` ${Number(j) + 1}` : ""}`,
|
|
861
|
-
color:
|
|
861
|
+
color: vt[t.type],
|
|
862
862
|
size: t.subagent ? 0.22 : 0.28,
|
|
863
863
|
opacity: 0,
|
|
864
864
|
fit: !0,
|
|
@@ -867,14 +867,14 @@ function Go({ agent: e, onSelect: a }) {
|
|
|
867
867
|
) })
|
|
868
868
|
] });
|
|
869
869
|
}
|
|
870
|
-
const
|
|
871
|
-
function
|
|
872
|
-
const e = F([]), a = R(() => Array.from({ length:
|
|
870
|
+
const et = 24, Ae = 3;
|
|
871
|
+
function Bo() {
|
|
872
|
+
const e = F([]), a = R(() => Array.from({ length: et * Ae }, () => Fe("#fff")), []), t = R(() => ({ a: new n.Vector3(), b: new n.Vector3(), c: new n.Vector3(), p: new n.Vector3(), col: new n.Color() }), []);
|
|
873
873
|
return fe(() => {
|
|
874
874
|
const o = performance.now();
|
|
875
875
|
let s = 0;
|
|
876
876
|
for (const r of W.comets) {
|
|
877
|
-
if (s >=
|
|
877
|
+
if (s >= et) break;
|
|
878
878
|
const u = W.instances.get(r.from), m = W.instances.get(r.to), f = We(r.from), g = We(r.to);
|
|
879
879
|
if (!u || !m || !f || !g) continue;
|
|
880
880
|
const v = re((o - r.start) / r.dur);
|
|
@@ -889,27 +889,27 @@ function To() {
|
|
|
889
889
|
}
|
|
890
890
|
s++;
|
|
891
891
|
}
|
|
892
|
-
for (let r = s * Ae; r <
|
|
892
|
+
for (let r = s * Ae; r < et * Ae; r++) {
|
|
893
893
|
const u = e.current[r];
|
|
894
894
|
u && (u.visible = !1);
|
|
895
895
|
}
|
|
896
896
|
}), /* @__PURE__ */ w(de, { children: a.map((o, s) => /* @__PURE__ */ w("sprite", { ref: (r) => void (e.current[s] = r), material: o, visible: !1 }, s)) });
|
|
897
897
|
}
|
|
898
|
-
const
|
|
899
|
-
function
|
|
900
|
-
return a.a = e.hu * 1.12 +
|
|
898
|
+
const Fo = new n.RingGeometry(0.88, 1.12, 160, 1).rotateX(-Math.PI / 2), ft = 1.1, Ro = 0.9;
|
|
899
|
+
function Bt(e, a) {
|
|
900
|
+
return a.a = e.hu * 1.12 + ft, a.b = Math.max(a.a * 0.45, e.hv * 1.12 + ft), a;
|
|
901
901
|
}
|
|
902
|
-
const ze = { a: 0, b: 0 },
|
|
903
|
-
function
|
|
904
|
-
|
|
902
|
+
const ze = { a: 0, b: 0 }, nt = (e) => e.target.z < -0.5 ? -1 : 1;
|
|
903
|
+
function Ft(e, a, t = nt(e)) {
|
|
904
|
+
Bt(e, ze);
|
|
905
905
|
const o = Math.abs(e.side.z) * ze.a + Math.abs(e.axis.z) * ze.b;
|
|
906
|
-
return a.set(e.origin.x, 0.3, e.origin.z + t * (o +
|
|
907
|
-
}
|
|
908
|
-
const Ro = new n.Vector3();
|
|
909
|
-
function Vo(e) {
|
|
910
|
-
for (const a of ge.runs.values()) e(Bt(a, Ro), 1.6);
|
|
906
|
+
return a.set(e.origin.x, 0.3, e.origin.z + t * (o + Ro));
|
|
911
907
|
}
|
|
908
|
+
const Vo = new n.Vector3();
|
|
912
909
|
function _o(e) {
|
|
910
|
+
for (const a of ge.runs.values()) e(Ft(a, Vo), 1.6);
|
|
911
|
+
}
|
|
912
|
+
function Oo(e) {
|
|
913
913
|
return new n.ShaderMaterial({
|
|
914
914
|
uniforms: { uColor: { value: e.clone() }, uK: { value: 0 }, uSweep: { value: 0 }, uStart: { value: 0 }, uSteps: { value: new n.Vector3(1, 1, 1) }, uTime: { value: 0 }, uGaps: { value: 0 } },
|
|
915
915
|
vertexShader: (
|
|
@@ -939,30 +939,30 @@ function _o(e) {
|
|
|
939
939
|
blending: n.AdditiveBlending
|
|
940
940
|
});
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
const a = R(() => new n.Color(e.color), [e.color]), t = R(() =>
|
|
942
|
+
function Eo({ run: e }) {
|
|
943
|
+
const a = R(() => new n.Color(e.color), [e.color]), t = R(() => Oo(a), [a]), o = F(null), s = F(null), [r, u] = dt(() => nt(e));
|
|
944
944
|
return fe(({ clock: m }) => {
|
|
945
|
-
const f = performance.now(), g = ne ? 0 : m.elapsedTime, v = e.run ?? W.runs.get(e.id), i = v != null && v.endedAt ? re(1 - (f - v.endedAt - (
|
|
945
|
+
const f = performance.now(), g = ne ? 0 : m.elapsedTime, v = e.run ?? W.runs.get(e.id), i = v != null && v.endedAt ? re(1 - (f - v.endedAt - ($t - 2500)) / 2500) : 1, y = t.uniforms;
|
|
946
946
|
if (y.uSweep.value = v ? ye((f - v.startedAt) / 1800) : 1, y.uK.value = 0.55 * i * (!v || v.status === "started" ? 1 : 0.6), v != null && v.hasSteps) {
|
|
947
947
|
const c = (p) => p === "running" ? 1.5 + 0.5 * Math.sin(g * 3) : p === "done" ? 0.9 : p === "failed" ? 0.5 : 0.22;
|
|
948
|
-
y.uSteps.value.set(c(v
|
|
948
|
+
y.uSteps.value.set(c(je(v, 0)), c(je(v, 1)), c(je(v, 2)));
|
|
949
949
|
} else y.uSteps.value.set(1, 1, 1);
|
|
950
|
-
y.uGaps.value = v != null && v.hasSteps ? 1 : 0, y.uStart.value = Math.atan2(-e.axis.z, -e.axis.x) - Math.atan2(e.side.z, e.side.x), o.current && (
|
|
951
|
-
const h =
|
|
952
|
-
h !== r && u(h), s.current &&
|
|
950
|
+
y.uGaps.value = v != null && v.hasSteps ? 1 : 0, y.uStart.value = Math.atan2(-e.axis.z, -e.axis.x) - Math.atan2(e.side.z, e.side.x), o.current && (Bt(e, ze), o.current.position.set(e.origin.x, 0.05, e.origin.z), o.current.rotation.set(0, Math.atan2(-e.side.z, e.side.x), 0), o.current.scale.set(ze.a, 1, ze.b));
|
|
951
|
+
const h = nt(e);
|
|
952
|
+
h !== r && u(h), s.current && Ft(e, s.current.position, r);
|
|
953
953
|
}), /* @__PURE__ */ H(de, { children: [
|
|
954
|
-
/* @__PURE__ */ w("mesh", { ref: o, geometry:
|
|
955
|
-
/* @__PURE__ */ w("group", { ref: s, children: e.run && /* @__PURE__ */ w(
|
|
954
|
+
/* @__PURE__ */ w("mesh", { ref: o, geometry: Fo, material: t }),
|
|
955
|
+
/* @__PURE__ */ w("group", { ref: s, children: e.run && /* @__PURE__ */ w(Lo, { run: e.run, anchorY: r > 0 ? "top" : "bottom" }) })
|
|
956
956
|
] });
|
|
957
957
|
}
|
|
958
|
-
function
|
|
959
|
-
|
|
958
|
+
function Lo({ run: e, anchorY: a }) {
|
|
959
|
+
Zt();
|
|
960
960
|
const t = e.status !== "started";
|
|
961
961
|
return /* @__PURE__ */ w(
|
|
962
962
|
Re,
|
|
963
963
|
{
|
|
964
964
|
text: e.topic,
|
|
965
|
-
secondary:
|
|
965
|
+
secondary: Jt(e, { base: "#a1a1c2", current: "#f5d0fe", done: "#cbd5e1" }, ["colony growing…", "colony complete"]),
|
|
966
966
|
color: e.color,
|
|
967
967
|
size: 0.34,
|
|
968
968
|
maxWidth: 9,
|
|
@@ -974,8 +974,8 @@ function Eo({ run: e, anchorY: a }) {
|
|
|
974
974
|
);
|
|
975
975
|
}
|
|
976
976
|
const ce = 2600;
|
|
977
|
-
function
|
|
978
|
-
const { size: e, gl: a, camera: t } =
|
|
977
|
+
function Io() {
|
|
978
|
+
const { size: e, gl: a, camera: t } = mt(), o = R(() => {
|
|
979
979
|
const u = new n.BufferGeometry(), m = new Float32Array(ce * 3);
|
|
980
980
|
return u.setAttribute("position", new n.BufferAttribute(m, 3)), u.setAttribute("aSize", new n.BufferAttribute(new Float32Array(ce), 1)), u.setAttribute("aColor", new n.BufferAttribute(new Float32Array(ce * 3), 3)), u.boundingSphere = new n.Sphere(new n.Vector3(), 1e4), {
|
|
981
981
|
geo: u,
|
|
@@ -992,7 +992,7 @@ function Lo() {
|
|
|
992
992
|
acc: /* @__PURE__ */ new Map(),
|
|
993
993
|
c: new n.Color()
|
|
994
994
|
};
|
|
995
|
-
}, []), s = R(() =>
|
|
995
|
+
}, []), s = R(() => Pt(), []), r = (u, m, f, g, v, i, y, h, c, p) => {
|
|
996
996
|
for (let l = 0; l < v; l++) {
|
|
997
997
|
const b = o.next;
|
|
998
998
|
o.next = (o.next + 1) % ce;
|
|
@@ -1006,9 +1006,9 @@ function Lo() {
|
|
|
1006
1006
|
};
|
|
1007
1007
|
return fe(({ clock: u }, m) => {
|
|
1008
1008
|
const f = Math.min(0.05, m);
|
|
1009
|
-
s.uniforms.uScale.value =
|
|
1009
|
+
s.uniforms.uScale.value = Ct(e.height, a.getPixelRatio(), t.fov);
|
|
1010
1010
|
for (const c of W.instances.values()) {
|
|
1011
|
-
const p =
|
|
1011
|
+
const p = At(c.id);
|
|
1012
1012
|
if (!p || p.r < 0.05) continue;
|
|
1013
1013
|
const l = p.p, b = p.r, M = o.seenLlm.get(c.id);
|
|
1014
1014
|
if (M === void 0) o.seenLlm.set(c.id, c.llmCalls);
|
|
@@ -1041,13 +1041,13 @@ function Lo() {
|
|
|
1041
1041
|
g.needsUpdate = !0, v.needsUpdate = !0, i.needsUpdate = !0;
|
|
1042
1042
|
}), /* @__PURE__ */ w("points", { geometry: o.geo, material: s, frustumCulled: !1 });
|
|
1043
1043
|
}
|
|
1044
|
-
const
|
|
1044
|
+
const Wo = ["#a855f7", "#2dd4bf"], Xo = { radius: 1.4, variant: "swarm", color: (e) => Wo[e % 2] }, ko = [0, 1.6, 0], Do = /* @__PURE__ */ H(de, { children: [
|
|
1045
1045
|
/* @__PURE__ */ w("fog", { attach: "fog", args: ["#040309", 55, 140] }),
|
|
1046
|
-
/* @__PURE__ */ w(
|
|
1046
|
+
/* @__PURE__ */ w(So, {})
|
|
1047
1047
|
] });
|
|
1048
|
-
function
|
|
1048
|
+
function qo() {
|
|
1049
1049
|
return /* @__PURE__ */ H(
|
|
1050
|
-
|
|
1050
|
+
Qt,
|
|
1051
1051
|
{
|
|
1052
1052
|
title: "mycelium · fungal network",
|
|
1053
1053
|
subtitle: "Agents bloom as mushrooms (big cap = parent) on hyphae grown from their parent · spores = LLM calls (sized by tokens) · MCP servers + backends feed the network's edge · the mat on the side is graph memory",
|
|
@@ -1060,27 +1060,27 @@ function Uo() {
|
|
|
1060
1060
|
agentRadius: 1.5,
|
|
1061
1061
|
graph: { natural: he + 0.4, radius: 2.6 },
|
|
1062
1062
|
peripheryGap: 3.8,
|
|
1063
|
-
Background:
|
|
1064
|
-
Agent:
|
|
1065
|
-
RunMarker:
|
|
1066
|
-
McpServer:
|
|
1067
|
-
Backend:
|
|
1068
|
-
GraphResource:
|
|
1069
|
-
cluster:
|
|
1070
|
-
clusterOffset:
|
|
1071
|
-
extents:
|
|
1072
|
-
PostFX: /* @__PURE__ */ H(
|
|
1073
|
-
/* @__PURE__ */ w(
|
|
1074
|
-
/* @__PURE__ */ w(
|
|
1063
|
+
Background: Do,
|
|
1064
|
+
Agent: To,
|
|
1065
|
+
RunMarker: Eo,
|
|
1066
|
+
McpServer: ho,
|
|
1067
|
+
Backend: vo,
|
|
1068
|
+
GraphResource: zo,
|
|
1069
|
+
cluster: Xo,
|
|
1070
|
+
clusterOffset: ko,
|
|
1071
|
+
extents: _o,
|
|
1072
|
+
PostFX: /* @__PURE__ */ H(Ot, { multisampling: 0, children: [
|
|
1073
|
+
/* @__PURE__ */ w(Et, { mipmapBlur: !0, intensity: 1.15, luminanceThreshold: 0.18, luminanceSmoothing: 0.3, radius: 0.78 }),
|
|
1074
|
+
/* @__PURE__ */ w(Lt, { eskil: !1, offset: 0.2, darkness: 0.92 })
|
|
1075
1075
|
] }),
|
|
1076
1076
|
children: [
|
|
1077
|
-
/* @__PURE__ */ w(
|
|
1078
|
-
/* @__PURE__ */ w(
|
|
1079
|
-
/* @__PURE__ */ w(
|
|
1077
|
+
/* @__PURE__ */ w(Bo, {}),
|
|
1078
|
+
/* @__PURE__ */ w(wo, {}),
|
|
1079
|
+
/* @__PURE__ */ w(Io, {})
|
|
1080
1080
|
]
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}
|
|
1084
1084
|
export {
|
|
1085
|
-
|
|
1085
|
+
qo as default
|
|
1086
1086
|
};
|