agentglow 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/KitScene-D8qiflCw.js +6804 -0
- package/dist/chunks/index-B-GgW6Df.js +770 -0
- package/dist/chunks/index-B8E_UpEh.js +436 -0
- package/dist/chunks/index-BGWvBQoI.js +884 -0
- package/dist/chunks/index-BxZgELLY.js +590 -0
- package/dist/chunks/index-CAK2lh3j.js +699 -0
- package/dist/chunks/index-CEd8CHA3.js +943 -0
- package/dist/chunks/index-DGp3aLoB.js +941 -0
- package/dist/chunks/{index-CxdQEVoW.js → index-rhTWZ_I3.js} +7 -7
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/world.d.ts +35 -0
- package/package.json +1 -1
- package/dist/chunks/KitScene-DQRuKA06.js +0 -5933
- package/dist/chunks/ResourceWire-BWuyirO3.js +0 -36
- package/dist/chunks/index-BMvsU_SR.js +0 -678
- package/dist/chunks/index-BdJCRn1T.js +0 -1015
- package/dist/chunks/index-BwhbmMX9.js +0 -990
- package/dist/chunks/index-CDUophR-.js +0 -921
- package/dist/chunks/index-CW7wP0kH.js +0 -495
- package/dist/chunks/index-DGesxtsp.js +0 -839
- package/dist/chunks/index-DHQVfGjR.js +0 -793
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
-
import { useFrame as W } from "@react-three/fiber";
|
|
3
|
-
import { useMemo as M } from "react";
|
|
4
|
-
import * as t from "three";
|
|
5
|
-
import { x as F, w as H, m as I } from "./KitScene-DQRuKA06.js";
|
|
6
|
-
const b = 32, y = new t.Vector3(), v = new t.Vector3(), l = new t.Vector3(), u = new t.Color(), P = new t.Color(1, 1, 1);
|
|
7
|
-
function U(r, f, p, m, s) {
|
|
8
|
-
let e = null;
|
|
9
|
-
for (const o of H.mcpCalls) o.server === r && o.resource === f && (!e || o.start > e.start) && (e = o);
|
|
10
|
-
const d = e && e.phase === "result" ? (s - e.start) / e.dur : 9;
|
|
11
|
-
return { busy: p > 0, act: I(m, s, 1.5), head: d < 1 ? 1 - d : -1 };
|
|
12
|
-
}
|
|
13
|
-
function z({ mcp: r, backend: f, color: p, gain: m = 1, y: s, yFrom: e, lift: d = 0, wave: o = 0 }) {
|
|
14
|
-
const g = M(() => {
|
|
15
|
-
const a = new t.BufferGeometry();
|
|
16
|
-
return a.setAttribute("position", new t.BufferAttribute(new Float32Array(b * 2 * 3), 3)), a.setAttribute("color", new t.BufferAttribute(new Float32Array(b * 2 * 3), 3)), a;
|
|
17
|
-
}, []), _ = M(() => new t.Color(p ?? r.srv.color), [p, r.srv.color]), G = M(() => new t.LineBasicMaterial({ vertexColors: !0, transparent: !0, blending: t.AdditiveBlending, depthWrite: !1, toneMapped: !1 }), []);
|
|
18
|
-
return W(({ clock: a }) => {
|
|
19
|
-
const x = g.getAttribute("position"), C = g.getAttribute("color"), R = performance.now(), B = F ? 0 : a.elapsedTime, A = f.res, n = U(r.name, A.name, A.inflight, A.activeAt, R);
|
|
20
|
-
y.copy(r.pos), v.copy(f.pos), s !== void 0 && (y.y = s, v.y = s), e !== void 0 && (y.y = e);
|
|
21
|
-
const S = (0.18 + n.act * 0.55 + (n.busy ? 0.35 : 0)) * m;
|
|
22
|
-
for (let w = 0; w < b; w++)
|
|
23
|
-
for (let h = 0; h < 2; h++) {
|
|
24
|
-
const i = (w + h) / b, E = Math.sin(i * Math.PI);
|
|
25
|
-
l.lerpVectors(y, v, i), l.y += d * E + (o ? Math.sin(i * 9 - B * 2.4) * o * E : 0);
|
|
26
|
-
let c = S;
|
|
27
|
-
n.busy && (c *= 0.45 + Math.pow(Math.max(0, Math.sin(i * 18 - B * 6)), 6) * 2.4), n.head >= 0 && (c += Math.exp(-(((i - n.head) / 0.08) ** 2)) * 2.6 * m), u.copy(_), n.head >= 0 && u.lerp(P, 0.3);
|
|
28
|
-
const V = w * 2 + h;
|
|
29
|
-
x.setXYZ(V, l.x, l.y, l.z), C.setXYZ(V, u.r * c, u.g * c, u.b * c);
|
|
30
|
-
}
|
|
31
|
-
x.needsUpdate = !0, C.needsUpdate = !0;
|
|
32
|
-
}), /* @__PURE__ */ T("lineSegments", { geometry: g, material: G, frustumCulled: !1 });
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
z as R
|
|
36
|
-
};
|