agentglow 0.4.1 → 0.4.3
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 +6 -0
- package/dist/chunks/KitScene-DsZmpTf7.js +7095 -0
- package/dist/chunks/index-B6EboYGn.js +699 -0
- package/dist/chunks/index-CW8fTJn1.js +53 -0
- package/dist/chunks/index-CoeLwySn.js +593 -0
- package/dist/chunks/index-DATZHNA0.js +943 -0
- package/dist/chunks/index-DlvN9YSt.js +884 -0
- package/dist/chunks/index-avfwD6eP.js +770 -0
- package/dist/chunks/index-nw9i304P.js +436 -0
- package/dist/chunks/index-s99mYaJ9.js +941 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/AgentScene.d.ts +8 -1
- package/dist/types/world.d.ts +55 -0
- package/package.json +1 -1
- package/dist/chunks/KitScene-qkWr95H9.js +0 -5933
- package/dist/chunks/ResourceWire-BWQJV3bx.js +0 -36
- package/dist/chunks/index-2zvNrAfW.js +0 -921
- package/dist/chunks/index-BP5CK-0G.js +0 -495
- package/dist/chunks/index-B__6Mr7M.js +0 -839
- package/dist/chunks/index-Bfpwwg62.js +0 -793
- package/dist/chunks/index-BkOdY6y8.js +0 -678
- package/dist/chunks/index-Bxr6tpps.js +0 -1015
- package/dist/chunks/index-DjDzoHSk.js +0 -52
- package/dist/chunks/index-vbo-4RNb.js +0 -990
|
@@ -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-qkWr95H9.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
|
-
};
|