agentglow 0.2.0 → 0.2.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.
Files changed (26) hide show
  1. package/README.md +17 -0
  2. package/cli/agentglow.mjs +177 -0
  3. package/cli/lib/net.mjs +73 -0
  4. package/cli/lib/server.mjs +128 -0
  5. package/cli/lib/settings.mjs +192 -0
  6. package/cli/lib/uv.mjs +139 -0
  7. package/dist/chunks/{KitScene-BuFtYuhc.js → KitScene-C3SZiKL5.js} +1101 -1045
  8. package/dist/chunks/{index-DO9SAG-u.js → index--dwzdFRh.js} +1 -1
  9. package/dist/chunks/{index-DCmhxN8v.js → index-B2PGx_wt.js} +37 -37
  10. package/dist/chunks/{index-HyfZ0ePz.js → index-BZOG_CQS.js} +110 -110
  11. package/dist/chunks/{index-Bo5HRf-O.js → index-BfGluv59.js} +69 -69
  12. package/dist/chunks/{index-tonipLb2.js → index-Bm4te7Ug.js} +1 -1
  13. package/dist/chunks/{index-e6egU2Q6.js → index-Bqv_wy49.js} +1 -1
  14. package/dist/chunks/{index-ZT88hgW-.js → index-Bsmr7FwH.js} +1 -1
  15. package/dist/chunks/{index-BPyTLdiF.js → index-Bw31uayO.js} +33 -33
  16. package/dist/chunks/{index-Dn6oRasS.js → index-C4F16M9q.js} +117 -117
  17. package/dist/chunks/{index-jLXx_Wgk.js → index-CRRHsMqy.js} +15 -15
  18. package/dist/chunks/{index-Cyv7bII1.js → index-CS8eZTr_.js} +1 -1
  19. package/dist/chunks/{index-D733n3Hf.js → index-CdzGoWrn.js} +1 -1
  20. package/dist/chunks/{index-XMOz-HBf.js → index-CvDEulcq.js} +1 -1
  21. package/dist/chunks/{index-D0UvupqM.js → index-DXBfdHew.js} +1 -1
  22. package/dist/chunks/{index-C42Ihyo1.js → index-DdCs_ye9.js} +222 -222
  23. package/dist/chunks/{index-C5YqtHnC.js → index-_KrED-np.js} +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/types/world.d.ts +10 -0
  26. package/package.json +12 -2
@@ -7,7 +7,7 @@ import { EffectComposer as at, Bloom as st, Vignette as it } from "@react-three/
7
7
  import { useFrame as re, useThree as ct } from "@react-three/fiber";
8
8
  import { useRef as z, useMemo as P, useEffect as lt, useState as $e } from "react";
9
9
  import * as o from "three";
10
- import { T as Xe, w as L, a as ge, f as Ee, p as ut, e as pt, s as ft, r as fe, L as be, l as dt, g as mt, b as Ue, K as ht, k as gt, m as vt, G as yt, n as wt, R as bt, u as Mt, o as St, c as De, d as Ct, j as At } from "./KitScene-BuFtYuhc.js";
10
+ import { T as Xe, w as L, a as ge, f as Ee, p as ut, e as pt, s as ft, r as fe, L as be, l as dt, g as mt, b as Ue, K as ht, k as gt, m as vt, G as yt, n as wt, R as bt, u as Mt, o as St, c as De, d as Ct, j as At } from "./KitScene-C3SZiKL5.js";
11
11
  const ee = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Ie = (e) => 1 - Math.pow(1 - ee(e), 3), Me = (e) => (e = ee(e), e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2), xt = (e) => {
12
12
  e = ee(e);
13
13
  const r = 2.2;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "./style.css";
3
- import { A as E, T as s, a as T } from "./chunks/index-jLXx_Wgk.js";
3
+ import { A as E, T as s, a as T } from "./chunks/index-CRRHsMqy.js";
4
4
  export {
5
5
  E as AgentScene,
6
6
  s as THEMES,
@@ -112,6 +112,10 @@ export type Instance = {
112
112
  /** spawned by a parent agent via the deepagents `task` tool (vs a top-level workflow-step agent) */
113
113
  subagent: boolean;
114
114
  bornAt: number;
115
+ /** performance.now() when the agent finished (exit done/failed); 0 while working. A finished agent stays drawn DIMMED
116
+ * at its spot until its RUN ends (so a run reads as a chain planner -> researcher -> writer); see isDone / isLive. */
117
+ doneAt: number;
118
+ /** performance.now() when the shape starts fading out (its run ended, or it finished outside a known run); 0 before */
115
119
  exitAt: number;
116
120
  pulse: number;
117
121
  pulseAt: number;
@@ -197,6 +201,12 @@ export type Flare = {
197
201
  op: "read" | "write";
198
202
  start: number;
199
203
  };
204
+ /** Finished (exit done/failed) - drawn dimmed until its run ends, then faded out with the whole run. */
205
+ export declare const isDone: (i: Instance) => boolean;
206
+ /** Working: not finished and not fading out (HUD "alive", LOD budget, cluster counts). */
207
+ export declare const isLive: (i: Instance) => boolean;
208
+ /** A started run whose agents are all finished and that got no completion for this long fades out anyway (ms). */
209
+ export declare const ORPHAN_RUN_MS = 120000;
200
210
  /** How long finished instances/runs stay visible while fading out (ms). */
201
211
  export declare const FADE_MS = 2500;
202
212
  export declare const RUN_LINGER_MS = 6000;
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "agentglow",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Live 3D views of agent systems (LangGraph, deepagents, any OpenTelemetry-instrumented agents) as a React component.",
5
5
  "keywords": [
6
+ "claude-code",
6
7
  "opentelemetry",
7
8
  "agents",
8
9
  "3d",
@@ -36,9 +37,17 @@
36
37
  "./style.css": "./dist/style.css",
37
38
  "./package.json": "./package.json"
38
39
  },
40
+ "bin": {
41
+ "agentglow": "cli/agentglow.mjs"
42
+ },
39
43
  "files": [
40
- "dist"
44
+ "dist",
45
+ "cli",
46
+ "!cli/test"
41
47
  ],
48
+ "engines": {
49
+ "node": ">=18"
50
+ },
42
51
  "sideEffects": [
43
52
  "**/*.css",
44
53
  "./dist/index.js"
@@ -50,6 +59,7 @@
50
59
  "build:app": "tsc --noEmit && vite build",
51
60
  "build:lib": "vite build -c vite.lib.config.ts && tsc -p tsconfig.lib.json && node scripts/postbuild-lib.mjs",
52
61
  "preview": "vite preview",
62
+ "test": "node --test cli/test/*.test.mjs",
53
63
  "prepublishOnly": "npm run build:lib"
54
64
  },
55
65
  "peerDependencies": {