agentglow 0.2.11 → 0.2.12
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 +3 -16
- package/cli/agentglow.mjs +22 -3
- package/cli/lib/server.mjs +44 -13
- package/cli/lib/settings.mjs +3 -3
- package/dist/chunks/KitScene-Cug87OSc.js +3121 -0
- package/dist/chunks/index-B0urBeRS.js +48 -0
- package/dist/chunks/{index-u4rYZ1UO.js → index-BM4W1tNM.js} +135 -135
- package/dist/chunks/{index-B4Cqo621.js → index-BTFr1mn1.js} +155 -155
- package/dist/chunks/index-Cj5cs1rS.js +948 -0
- package/dist/chunks/{index-CTZbUTDY.js → index-iZBODPwI.js} +136 -136
- package/dist/chunks/{index-URn4zDHp.js → index-ueGnGU_X.js} +297 -297
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/themes.d.ts +1 -1
- package/dist/types/world.d.ts +42 -2
- package/package.json +1 -1
- package/dist/chunks/KitScene-DG_pcnWW.js +0 -3119
- package/dist/chunks/index-Agh7jdYu.js +0 -1086
- package/dist/chunks/index-B2EHxcBQ.js +0 -1010
- package/dist/chunks/index-BfQsJ0TH.js +0 -751
- package/dist/chunks/index-BmBGYhJS.js +0 -891
- package/dist/chunks/index-Bnn-x-aE.js +0 -767
- package/dist/chunks/index-CTQTtm9q.js +0 -784
- package/dist/chunks/index-CdKvybsL.js +0 -1143
- package/dist/chunks/index-CeiIEWek.js +0 -818
- package/dist/chunks/index-Ci8tSMhc.js +0 -68
- package/dist/chunks/index-Cls_VZdb.js +0 -980
- package/dist/chunks/index-DFFRhihO.js +0 -892
- package/dist/chunks/index-DMCETM4H.js +0 -605
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as y, useContext as b, useMemo as w, Suspense as A, lazy as v } from "react";
|
|
3
|
-
const m = (e) => (e ?? "").trim().replace(/\/+$/, "");
|
|
4
|
-
function C() {
|
|
5
|
-
var t;
|
|
6
|
-
const e = typeof location > "u" ? new URLSearchParams() : new URLSearchParams(location.search), n = (a) => e.has(a) && !["0", "false", "no"].includes(e.get(a).toLowerCase());
|
|
7
|
-
return {
|
|
8
|
-
source: m(e.get("source")),
|
|
9
|
-
sim: n("sim"),
|
|
10
|
-
hud: e.get("hud") === null ? !0 : n("hud"),
|
|
11
|
-
embedded: !1,
|
|
12
|
-
run: ((t = e.get("run")) == null ? void 0 : t.trim()) || void 0
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
const f = y(null), S = f.Provider;
|
|
16
|
-
function F() {
|
|
17
|
-
return b(f) ?? C();
|
|
18
|
-
}
|
|
19
|
-
const M = ["orbit", "neural", "subway", "city", "ocean", "circuit", "tunnel", "flow", "hive", "forest", "constellation", "factory", "airport", "mycelium", "atom"], P = {
|
|
20
|
-
orbit: { name: "Orbit", tagline: "Agents orbit a graph galaxy; runs are rings, MCP servers are satellites." },
|
|
21
|
-
neural: { name: "Neural", tagline: "A living brain: agents fire as neurons, messages pulse along synapses." },
|
|
22
|
-
subway: { name: "Subway", tagline: "A neon transit map: each run is a line, each agent a train." },
|
|
23
|
-
city: { name: "City", tagline: "A night city where agents rise as skyscrapers in run districts." },
|
|
24
|
-
ocean: { name: "Ocean", tagline: "Bioluminescent jellyfish drift on run currents over a coral graph." },
|
|
25
|
-
circuit: { name: "Circuit", tagline: "Agent chips on run buses, a memory bank and MCP I/O ports." },
|
|
26
|
-
tunnel: { name: "Tunnel", tagline: "A time warp: runs are lanes and gates, agents are ships." },
|
|
27
|
-
flow: { name: "Flow", tagline: "A murmuration: agents condense as eddies out of the current." },
|
|
28
|
-
hive: { name: "Hive", tagline: "A glowing honeycomb: agents are bees, subagents fly out as workers, data fills the cells." },
|
|
29
|
-
forest: { name: "Forest", tagline: "A night forest: agents grow as trees, subagents branch, fireflies are LLM calls." },
|
|
30
|
-
constellation: { name: "Constellation", tagline: "A night sky: agents are stars linked into constellations as they delegate." },
|
|
31
|
-
factory: { name: "Factory", tagline: "A neon factory floor: agents are machines, tasks ride conveyors to loading docks." },
|
|
32
|
-
airport: { name: "Airport", tagline: "A radar scope: agents are flights, handoffs are flight paths, exits are landings." },
|
|
33
|
-
mycelium: { name: "Mycelium", tagline: "A fungal network: agents bloom as fruiting bodies on spreading glowing threads." },
|
|
34
|
-
atom: { name: "Atom", tagline: "An atom: agents are electrons in shells, subagents jump orbits, LLM calls flash photons." }
|
|
35
|
-
}, k = {
|
|
36
|
-
orbit: () => import("./index-u4rYZ1UO.js"),
|
|
37
|
-
neural: () => import("./index-CTZbUTDY.js"),
|
|
38
|
-
subway: () => import("./index-DMCETM4H.js"),
|
|
39
|
-
city: () => import("./index-BmBGYhJS.js"),
|
|
40
|
-
ocean: () => import("./index-CeiIEWek.js"),
|
|
41
|
-
circuit: () => import("./index-Bnn-x-aE.js"),
|
|
42
|
-
tunnel: () => import("./index-BfQsJ0TH.js"),
|
|
43
|
-
flow: () => import("./index-DFFRhihO.js"),
|
|
44
|
-
hive: () => import("./index-Cls_VZdb.js"),
|
|
45
|
-
forest: () => import("./index-CdKvybsL.js"),
|
|
46
|
-
constellation: () => import("./index-B4Cqo621.js"),
|
|
47
|
-
factory: () => import("./index-B2EHxcBQ.js"),
|
|
48
|
-
airport: () => import("./index-CTQTtm9q.js"),
|
|
49
|
-
mycelium: () => import("./index-Agh7jdYu.js"),
|
|
50
|
-
atom: () => import("./index-URn4zDHp.js")
|
|
51
|
-
}, g = /* @__PURE__ */ new Map();
|
|
52
|
-
function L(e) {
|
|
53
|
-
let n = g.get(e);
|
|
54
|
-
return n || g.set(e, n = v(k[e])), n;
|
|
55
|
-
}
|
|
56
|
-
function O({ theme: e = "neural", source: n = "", hud: t = !0, sim: a = !1, scope: o, run: s, token: i, style: d, className: l }) {
|
|
57
|
-
const c = M.includes(e) ? e : "neural", p = L(c), u = m(n), h = w(
|
|
58
|
-
() => ({ source: u, sim: a, hud: t, embedded: !0, scope: o || void 0, run: s || void 0, token: i || void 0 }),
|
|
59
|
-
[u, a, t, o, s, i]
|
|
60
|
-
);
|
|
61
|
-
return /* @__PURE__ */ r("div", { className: `agentglow-embed${l ? ` ${l}` : ""}`, style: d, "data-theme": c, children: /* @__PURE__ */ r(S, { value: h, children: /* @__PURE__ */ r(A, { fallback: null, children: /* @__PURE__ */ r(p, {}) }) }) });
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
O as A,
|
|
65
|
-
M as T,
|
|
66
|
-
P as a,
|
|
67
|
-
F as u
|
|
68
|
-
};
|