agentglow 0.2.0 → 0.2.1
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-BuFtYuhc.js → KitScene-C3SZiKL5.js} +1101 -1045
- package/dist/chunks/{index-DO9SAG-u.js → index--dwzdFRh.js} +1 -1
- package/dist/chunks/{index-DCmhxN8v.js → index-B2PGx_wt.js} +37 -37
- package/dist/chunks/{index-HyfZ0ePz.js → index-BZOG_CQS.js} +110 -110
- package/dist/chunks/{index-Bo5HRf-O.js → index-BfGluv59.js} +69 -69
- package/dist/chunks/{index-tonipLb2.js → index-Bm4te7Ug.js} +1 -1
- package/dist/chunks/{index-e6egU2Q6.js → index-Bqv_wy49.js} +1 -1
- package/dist/chunks/{index-ZT88hgW-.js → index-Bsmr7FwH.js} +1 -1
- package/dist/chunks/{index-BPyTLdiF.js → index-Bw31uayO.js} +33 -33
- package/dist/chunks/{index-Dn6oRasS.js → index-C4F16M9q.js} +117 -117
- package/dist/chunks/{index-jLXx_Wgk.js → index-CRRHsMqy.js} +15 -15
- package/dist/chunks/{index-Cyv7bII1.js → index-CS8eZTr_.js} +1 -1
- package/dist/chunks/{index-D733n3Hf.js → index-CdzGoWrn.js} +1 -1
- package/dist/chunks/{index-XMOz-HBf.js → index-CvDEulcq.js} +1 -1
- package/dist/chunks/{index-D0UvupqM.js → index-DXBfdHew.js} +1 -1
- package/dist/chunks/{index-C42Ihyo1.js → index-DdCs_ye9.js} +222 -222
- package/dist/chunks/{index-C5YqtHnC.js → index-_KrED-np.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/types/world.d.ts +10 -0
- package/package.json +1 -1
|
@@ -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-
|
|
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
package/dist/types/world.d.ts
CHANGED
|
@@ -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